OSDN Git Service

2010-07-09 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-09  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/44852
4         * tree-ssa-alias.c: Include toplev.h for exact_log2.
5         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
6         in MEM_REF.
7         (indirect_refs_may_alias_p): Likewise.
8         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
9
10 2010-07-09  Richard Guenther  <rguenther@suse.de>
11
12         PR tree-optimization/44882
13         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14         sets do conflict.
15         (vectorizable_load): Likewise.
16
17 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
18
19         PR target/40657
20         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
21         All callers changed.
22         Handle the case when we're called for the epilogue.
23         (thumb_unexpanded_epilogue): Use it.
24         (thumb1_expand_epilogue): Likewise.
25
26 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
27
28         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
29         both ranges are range_int_cst_p with non-negative minimum,
30         try harder to derive smaller range.
31
32 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
33
34         * genrecog.c: Include diagnostic-core.h before toplev.h.
35         * genoutput.c: Likewise.
36         * genextract.c: Likewise.
37         * genautomata.c: Likewise.
38         * genemit.c: Likewise.
39         * genpeep.c: Likewise.
40         * genattrtab.c: Likewise.
41         * genconditions.c: Likewise.
42         * genpreds.c: Likewise.
43
44 2010-07-08  Andi Kleen <ak@linux.intel.com>
45
46         * lto-section-in.c (lto_section_name): Add missing comma.
47
48 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
49
50         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
51         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
52         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
53         (ia64_override_options): Rename to...
54         (ia64_option_override): ... this one. Make static.
55
56 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
57
58         PR middle-end/44843
59         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
60         pointed-to type of the offset in a MEM_REF to compute the alignment.
61
62 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
63
64         * final.c (final_scan_insn): Replace
65         TARGET_UNWIND_INFO macro check by unwind_emit
66         hook NULL check.
67         * targhooks.c (default_unwind_emit): Removed.
68         * targhooks.h (default_unwind_emit): Likewise.
69         * target.def (unwind_emit): Set default value to NULL.
70
71         * config/i386/i386-protos.h (ix86_asm_output_function_label):
72         New prototype.
73         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
74         for NULL fntype argument and allow 64-bit targets.
75         (ix86_asm_output_function_label): New function.
76         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
77         (ix86_handle_fndecl_attribute): Likewise.
78         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
79         * doc/doc/tm.texi: Regenerated.
80         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
81         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
82         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
83         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
84         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
85         * config/elfos.h: Likewise.
86         * config/i386/cygming.h: Likewise.
87         * config/netbsd-aout.h: Likewise.
88         * config/openbsd.h: Likewise.
89         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
90         by ix86_asm_output_function_label function call.
91         * varasm.c (assemble_start_function): Use
92         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
93
94 2010-07-08  Jan Hubicka  <jh@suse.cz>
95
96         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
97         New function.
98         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
99         Declare.
100         * ipa-cp.c (ipcp_estimate_growth): Use it.
101         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
102         Likewise.
103
104 2010-07-08  Jan Hubicka  <jh@suse.cz>
105
106         * tree-inline.c (declare_return_variable): Allocate annotation for new
107         temporary.
108
109 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
110
111         PR tree-optimization/44710
112         * tree-if-conv.c (parse_predicate): New.
113         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
114         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
115
116 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
117
118         * common.opt (ftree-loop-if-convert): New flag.
119         * doc/invoke.texi (ftree-loop-if-convert): Documented.
120         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
121         when flag_tree_loop_if_convert is set.
122
123 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
124
125         * config/i386/i386.c: Use short syntax for function calls
126         through function pointers.
127         * config/i386/i386.md: Ditto.
128
129 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
130
131         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
132
133 2010-07-08  Richard Guenther  <rguenther@suse.de>
134
135         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
136         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
137
138 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
139
140         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
141         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
142         (loc_list_from_tree): Likewise.
143         (output_loc_operands): Handle outputting DW_OP_const[48]u
144         with loc->dtprel set.
145         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
146
147 2010-07-08  Jan Hubicka  <jh@suse.cz>
148
149         * ipa.c: Include pointer-set.h
150         (cgraph_externally_visible_p): New attribute ALIASED;
151         when in LTO, hidden symbols are local unless they are aliased.
152         (function_and_variable_visibility): Compute aliased nodes;
153         handle LTO and hidden symbol on functions and vars.
154         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
155         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
156
157 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
158
159         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
160         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
161         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
162         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
163         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
164         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
165         (ix86_gen_probe_stack_range): Likewise.
166         (override_options): Set them.
167         (ix86_target_stack_probe): New function.
168         (ix86_compute_frame_layout): Force use of push instructions to
169         save registers if stack checking with probes is enabled.
170         (get_scratch_register_on_entry): New function.
171         (release_scratch_register_on_entry): Likewise.
172         (ix86_adjust_stack_and_probe): Likewise.
173         (output_adjust_stack_and_probe): Likewise.
174         (ix86_emit_probe_stack_range): Likewise.
175         (output_probe_stack_range): Likewise.
176         (ix86_expand_prologue): Emit stack checking code if static built-in
177         stack checking is enabled.
178         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
179         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
180         (output_adjust_stack_and_probe): Likewise.
181         (output_probe_stack_range): Likewise.
182         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
183         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
184         TARGET_STACK_PROBE.
185         (allocate_stack_worker_64): Likewise.
186         (allocate_stack): Likewise.
187         (adjust_stack_and_probe): New insn.
188         (probe_stack_range): Likewise.
189
190 2010-07-08  Richard Guenther  <rguenther@suse.de>
191
192         PR tree-optimization/44831
193         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
194         a MEM_REF preserving TBAA info of the original dereference.
195         Dereference the original pointer if the address is not
196         invariant.
197         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
198         at least one invariant address that we are going to dereference.
199
200 2010-07-08  Richard Guenther  <rguenther@suse.de>
201
202         PR tree-optimization/44861
203         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
204         information when building MEM_REFs.
205         (vectorizable_load): Likewise.
206         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
207
208 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
209
210         * config/sol2-c.c: Do not include diagnostic-core.h.
211
212 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
213
214         PR bootstrap/44768
215         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
216         with respect to current_function_decl. Pass decl of the function.
217         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
218         * ipa-inline.c (compute_inline_parameters): Pass decl to
219         estimated_stack_frame_size.
220
221 2010-07-08  Richard Guenther  <rguenther@suse.de>
222
223         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
224         New function.
225         (valueize_refs): Call it.
226
227 2010-07-08  Richard Guenther  <rguenther@suse.de>
228
229         PR rtl-optimization/44838
230         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
231         SSA form do not use pointer equivalence.
232
233 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
234
235         * dwarf2out.c (AT_linkage_name): Delete.
236         (add_linkage_attr): New function.
237         (add_linkage_name): Call it to emit the linkage attribute.
238         (dwarf2out_finish): Likewise.
239         (move_linkage_attr): Explicitly accept both attribute variants.
240
241 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
242
243         * toplev.h: Do not include diagnostic-core.h.
244         Include diagnostic-core.h in every file that includes toplev.h.
245         * c-tree.h: Do not include toplev.h.
246         * pretty-print.h: Update comment.
247         * Makefile.in: Update dependencies.
248         * alias.c: Include diagnostic-core.h in every file that includes
249         toplev.h.
250         * attribs.c: Likewise.
251         * auto-inc-dec.c: Likewise.
252         * bb-reorder.c: Likewise.
253         * bt-load.c: Likewise.
254         * caller-save.c: Likewise.
255         * calls.c: Likewise.
256         * cfg.c: Likewise.
257         * cfganal.c: Likewise.
258         * cfgbuild.c: Likewise.
259         * cfgcleanup.c: Likewise.
260         * cfghooks.c: Likewise.
261         * cfgloop.c: Likewise.
262         * combine.c: Likewise.
263         * config/alpha/alpha.c: Likewise.
264         * config/arc/arc.c: Likewise.
265         * config/arm/arm.c: Likewise.
266         * config/arm/pe.c: Likewise.
267         * config/avr/avr.c: Likewise.
268         * config/bfin/bfin.c: Likewise.
269         * config/cris/cris.c: Likewise.
270         * config/crx/crx.c: Likewise.
271         * config/darwin-c.c: Likewise.
272         * config/darwin.c: Likewise.
273         * config/fr30/fr30.c: Likewise.
274         * config/frv/frv.c: Likewise.
275         * config/h8300/h8300.c: Likewise.
276         * config/host-darwin.c: Likewise.
277         * config/i386/i386.c: Likewise.
278         * config/i386/netware.c: Likewise.
279         * config/i386/nwld.c: Likewise.
280         * config/i386/winnt-cxx.c: Likewise.
281         * config/i386/winnt-stubs.c: Likewise.
282         * config/i386/winnt.c: Likewise.
283         * config/ia64/ia64-c.c: Likewise.
284         * config/ia64/ia64.c: Likewise.
285         * config/iq2000/iq2000.c: Likewise.
286         * config/lm32/lm32.c: Likewise.
287         * config/m32c/m32c-pragma.c: Likewise.
288         * config/m32c/m32c.c: Likewise.
289         * config/m32r/m32r.c: Likewise.
290         * config/m68hc11/m68hc11.c: Likewise.
291         * config/m68k/m68k.c: Likewise.
292         * config/mcore/mcore.c: Likewise.
293         * config/mep/mep-pragma.c: Likewise.
294         * config/mep/mep.c: Likewise.
295         * config/mmix/mmix.c: Likewise.
296         * config/mn10300/mn10300.c: Likewise.
297         * config/moxie/moxie.c: Likewise.
298         * config/pa/pa.c: Likewise.
299         * config/pdp11/pdp11.c: Likewise.
300         * config/picochip/picochip.c: Likewise.
301         * config/rs6000/rs6000-c.c: Likewise.
302         * config/rs6000/rs6000.c: Likewise.
303         * config/rx/rx.c: Likewise.
304         * config/s390/s390.c: Likewise.
305         * config/score/score.c: Likewise.
306         * config/score/score3.c: Likewise.
307         * config/score/score7.c: Likewise.
308         * config/sh/sh.c: Likewise.
309         * config/sh/symbian-base.c: Likewise.
310         * config/sh/symbian-c.c: Likewise.
311         * config/sh/symbian-cxx.c: Likewise.
312         * config/sol2-c.c: Likewise.
313         * config/sol2.c: Likewise.
314         * config/sparc/sparc.c: Likewise.
315         * config/spu/spu.c: Likewise.
316         * config/stormy16/stormy16.c: Likewise.
317         * config/v850/v850-c.c: Likewise.
318         * config/v850/v850.c: Likewise.
319         * config/vax/vax.c: Likewise.
320         * config/vxworks.c: Likewise.
321         * config/xtensa/xtensa.c: Likewise.
322         * convert.c: Likewise.
323         * cse.c: Likewise.
324         * cselib.c: Likewise.
325         * dbgcnt.c: Likewise.
326         * dbxout.c: Likewise.
327         * ddg.c: Likewise.
328         * dominance.c: Likewise.
329         * emit-rtl.c: Likewise.
330         * explow.c: Likewise.
331         * expmed.c: Likewise.
332         * fixed-value.c: Likewise.
333         * fold-const.c: Likewise.
334         * fwprop.c: Likewise.
335         * gcse.c: Likewise.
336         * ggc-common.c: Likewise.
337         * ggc-page.c: Likewise.
338         * ggc-zone.c: Likewise.
339         * gimple-low.c: Likewise.
340         * gimplify.c: Likewise.
341         * graph.c: Likewise.
342         * haifa-sched.c: Likewise.
343         * ifcvt.c: Likewise.
344         * implicit-zee.c: Likewise.
345         * integrate.c: Likewise.
346         * ira-build.c: Likewise.
347         * ira-color.c: Likewise.
348         * ira-conflicts.c: Likewise.
349         * ira-costs.c: Likewise.
350         * ira-lives.c: Likewise.
351         * ira.c: Likewise.
352         * lists.c: Likewise.
353         * loop-doloop.c: Likewise.
354         * loop-iv.c: Likewise.
355         * lto-opts.c: Likewise.
356         * lto-symtab.c: Likewise.
357         * main.c: Likewise.
358         * modulo-sched.c: Likewise.
359         * optabs.c: Likewise.
360         * params.c: Likewise.
361         * plugin.c: Likewise.
362         * postreload-gcse.c: Likewise.
363         * postreload.c: Likewise.
364         * predict.c: Likewise.
365         * profile.c: Likewise.
366         * real.c: Likewise.
367         * regcprop.c: Likewise.
368         * reginfo.c: Likewise.
369         * regmove.c: Likewise.
370         * reorg.c: Likewise.
371         * resource.c: Likewise.
372         * rtl.c: Likewise.
373         * rtlanal.c: Likewise.
374         * sched-deps.c: Likewise.
375         * sched-ebb.c: Likewise.
376         * sched-rgn.c: Likewise.
377         * sdbout.c: Likewise.
378         * sel-sched-dump.c: Likewise.
379         * sel-sched-ir.c: Likewise.
380         * simplify-rtx.c: Likewise.
381         * stmt.c: Likewise.
382         * stor-layout.c: Likewise.
383         * store-motion.c: Likewise.
384         * targhooks.c: Likewise.
385         * tree-cfg.c: Likewise.
386         * tree-cfgcleanup.c: Likewise.
387         * tree-dump.c: Likewise.
388         * tree-eh.c: Likewise.
389         * tree-inline.c: Likewise.
390         * tree-nomudflap.c: Likewise.
391         * tree-object-size.c: Likewise.
392         * tree-optimize.c: Likewise.
393         * tree-outof-ssa.c: Likewise.
394         * tree-phinodes.c: Likewise.
395         * tree-profile.c: Likewise.
396         * tree-ssa-ccp.c: Likewise.
397         * tree-ssa-coalesce.c: Likewise.
398         * tree-ssa-live.c: Likewise.
399         * tree-ssa-loop-niter.c: Likewise.
400         * tree-ssa-loop-prefetch.c: Likewise.
401         * tree-ssa-loop.c: Likewise.
402         * tree-ssa-structalias.c: Likewise.
403         * tree-ssa-uninit.c: Likewise.
404         * tree-ssa.c: Likewise.
405         * tree-vect-data-refs.c: Likewise.
406         * tree-vect-loop-manip.c: Likewise.
407         * tree-vect-loop.c: Likewise.
408         * tree-vect-patterns.c: Likewise.
409         * tree-vect-stmts.c: Likewise.
410         * tree-vrp.c: Likewise.
411         * varasm.c: Likewise.
412         * vec.c: Likewise.
413         * web.c: Likewise.
414         * xcoffout.c: Likewise.
415
416 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
417
418         * gengtype.c (write_field_root): New function.
419         (write_root): Use it.
420
421 2010-07-07  Wei Guozhi  <carrot@google.com>
422
423         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
424         of lowest bits to lshift/compare): Add a missing line.
425
426 2010-07-07  Wei Guozhi  <carrot@google.com>
427
428         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
429         of lowest bits to lshift/compare): New.
430
431 2010-07-07  Tom Tromey  <tromey@redhat.com>
432
433         * doc/tm.texi: Update.
434         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
435         Add @hook.
436         * target.def (want_debug_pub_sections): New hook.
437         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
438         * dwarf2out.c (add_pubname_string): Check
439         targetm.want_debug_pub_sections.
440         (add_pubname): Likewise.
441         (add_pubtype): Likewise.
442
443 2010-07-07  Jie Zhang  <jie@codesourcery.com>
444
445         * genautomata.c (output_automata_list_min_issue_delay_code):
446         Correctly decompress min_issue_delay.
447
448 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
449
450         PR rtl-optimization/44404
451         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
452         possible, use reg_overlap_mentioned_p instead.
453
454 2010-07-07  Duncan Sands  <baldrick@free.fr>
455
456         PR middle-end/41355
457         * tree.c (build_function_type_skip_args): Copy the original type using
458         build_distinct_type_copy rather than copy_node.
459
460 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
461
462         PR target/44850
463         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
464         revision 161876.
465         (ix86_expand_prologue): Likewise.
466         (ix86_handle_fndecl_attribute): Likewise.
467         (ix86_asm_declare_function_name): Likewise.
468         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
469         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
470         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
471         * config/i386/i386-protos.h (ix86_asm_declare_function_name):
472         Likewise.
473         * doc/extend.texi: Likewise.
474
475 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
476
477         PR target/44844
478         * config/i386/i386.md (rdrand<mode>): Changed to expand to
479         retry if the carry flag isn't valid.
480         (rdrand<mode>_1): New.
481
482 2010-07-07  Richard Guenther  <rguenther@suse.de>
483
484         PR middle-end/44790
485         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
486         for expanding the constant offset for MEM_REFs.
487
488 2010-07-07  Richard Guenther  <rguenther@suse.de>
489
490         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
491         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
492         * gimple.h (is_gimple_operand): Remove.
493         * gimple.c (is_gimple_operand): Likewise.
494         (walk_gimple_op): Fix wi->val_only setting for calls.
495         * tree-cfg.c (verify_gimple_call): Fix argument validation.
496         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
497         invalid gimple calls.
498
499 2010-07-06  Jan Hubicka  <jh@suse.cz>
500
501         * lto-cgraph.c (output_cgraph): Add missing declaration.
502
503 2010-07-06  Jan Hubicka  <jh@suse.cz>
504
505         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
506         partition.
507
508 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
509
510         * doc/gimple.texi (GIMPLE_DEBUG): Document.
511         * doc/rtl.texi (Debug Information): New node.
512         (NOTE_INSN_VAR_LOCATION): Document.
513         (debug_insn): Likewise.
514         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
515
516 2010-07-07  Jan Hubicka  <jh@suse.cz>
517
518         With parts by Richard Guenther
519
520         PR middle-end/44813
521         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
522         for functions passed by reference.
523         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
524         in memory when passed by reference.
525         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
526         beggining.
527         * ipa-split.c (split_function): Cleanup way return value is passed;
528         handle SSA DECL_BY_REFERENCE retvals.
529         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
530         DECL_BY_REFERENCE is set.
531         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
532         find_what_p_points_to): Handle RESULT_DECL.
533         * tree-inline.c (declare_return_variable): Get new entry_block argument;
534         when passing by reference ensure that RESULT_DECL is gimple_val.
535         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
536         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
537
538 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
539
540         PR rtl-optimization/44787
541         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
542         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
543
544 2010-07-06  Jan Hubicka  <jh@suse.cz>
545
546         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
547         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
548         with body can prevail.
549         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
550         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
551         * cgraph.c (cgraph_get_node_or_alias): New function.
552         * cgraph.h (cgraph_get_node_or_alias): Declare.
553
554 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
555
556         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
557         support.
558         (ix86_expand_prologue): Likewise.
559         (ix86_handle_fndecl_attribute): Likewise.
560         (ix86_asm_declare_function_name): New function for
561         ASM_DECLARE_FUNCTION_NAME.
562         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
563         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
564         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
565         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
566         * doc/extend.texi: Adjust documentation about ms_hook_prologue
567         attribute.
568
569 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
570
571         * config/i386/i386.md (immediate_operand): New mode attribute.
572
573         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
574         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
575         using P mode iterator.
576         (pro_epilogue_adjust_stack_di_2): Rename from
577         pro_epilogue_adjust_stack_rex64_2.
578
579         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
580
581 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
582
583         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
584         through gen_mov_insv_1 function pointer.
585         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
586         gen_truncxf<mode>2 through gen_truncxf function pointer.
587         (remainder<mode>3): Ditto.
588         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
589         (allocate_stack): Call gen_allocate_stack_worker_64 or
590         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
591         function pointer.
592         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
593         function pointer.
594
595 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
596
597         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
598         operand constraint instead of <r><i>m.
599
600 2010-07-06  Richard Guenther  <rguenther@suse.de>
601
602         PR middle-end/44828
603         * convert.c (convert_to_integer): Watch out for overflowing
604         MULT_EXPR as well.
605
606 2010-07-05  Jan Hubicka  <jh@suse.cz>
607
608         * lto-streamer.c (write_symbol_vec): Rename to ...
609         (write_symbol) ... this one; write only symbol given and when
610         present in cache. Sanity check that what is defined is present
611         in cgraph/varpool with body/finalized decl.
612         (write_symbols_of_kind): Remove.
613         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
614         pairs to produce symtab.
615         (produce_asm_for_decls): Update call of produce_symtab; don't do so
616         when doing WPA streaming.
617
618 2010-07-05  Jan Hubicka  <jh@suse.cz>
619
620         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
621         function is still available to fold into.
622
623 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
624
625         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
626         * function.h (struct_function): Change type of local_decls field
627         to a VEC.
628         (add_local_decl): New function.
629         (FOR_EACH_LOCAL_DECL): New macro.
630         * cfgexpand.c (init_vars_expansion): Adjust for new type of
631         cfun->local_decls.
632         (estimated_stack_frame_size): Likewise.
633         (expand_used_vars): Likewise.
634         * cgraphbuild.c (build_cgraph_edges): Likewise.
635         * function.c (instantiate_decls_1): Likewise.
636         * ipa-struct-reorg.c (build_data_structure): Likewise.
637         * ipa-type-escape.c (analyze_function): Likewise.
638         * lto-streamer-in.c (input_function): Likewise.
639         * lto-streamer-out.c (output_function): Likewise.
640         * tree-ssa-live.c (remove_unused_locals): Likewise.
641         * tree.c (free_lang_data_in_decl): Likewise.
642         (find_decls_types_in_node): Likewise.
643         * omp-low.c (remove_exit_barrier): Likewise.
644         (expand_omp_taskreg): Likewise.
645         (list2chain): Rename to...
646         (vec2chain): ...this.  Adjust.
647         * cgraphunit.c (assemble_thunk): Call add_local_decl.
648         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
649         * gimple-low.c (record_vars_into): Likewise.
650         * tree-inline.c (remap_decls): Likewise.
651         (declare_return_variable): Likewise.
652         (declare_inline_vars): Likewise.
653         (copy_forbidden): Adjust for new type of cfun->local_decls.
654         (add_local_variables): New function.
655         (expand_call_inline): Call it.
656         (tree_function_versioning): Likewise.
657
658 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
659
660         AVX Programming Reference (June, 2010)
661         * config/i386/cpuid.h (bit_F16C): New.
662         (bit_RDRND): Likewise.
663         (bit_FSGSBASE): Likewise.
664
665         * config/i386/i386-builtin-types.def: Add
666         "DEF_FUNCTION_TYPE (UINT16)", function types for
667         float16 <-> float conversions and
668         "DEF_FUNCTION_TYPE (VOID, UINT64)".
669
670         * config/i386/i386-c.c (ix86_target_macros_internal): Support
671         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
672         OPTION_MASK_ISA_F16C.
673
674         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
675         (OPTION_MASK_ISA_RDRND_SET): Likewise.
676         (OPTION_MASK_ISA_F16C_SET): Likewise.
677         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
678         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
679         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
680         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
681         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
682         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
683         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
684         (override_options): Handle them.
685         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
686         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
687         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
688         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
689         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
690         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
691         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
692         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
693         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
694         (bdesc_args): Likewise.
695         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
696         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
697         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
698         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
699         Handle non-memory store.
700
701         * config/i386/i386.h (TARGET_FSGSBASE): New.
702         (TARGET_RDRND): Likewise.
703         (TARGET_F12C): Likewise.
704
705         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
706         (UNSPEC_VCVTPS2PH): Likewise.
707         (UNSPECV_RDFSBASE): Likewise.
708         (UNSPECV_RDGSBASE): Likewise.
709         (UNSPECV_WRFSBASE): Likewise.
710         (UNSPECV_WRGSBASE): Likewise.
711         (UNSPECV_RDRAND): Likewise.
712         (rdfsbase<mode>): Likewise.
713         (rdgsbase<mode>): Likewise.
714         (wrfsbase<mode>): Likewise.
715         (wrgsbase<mode>): Likewise.
716         (rdrand<mode>): Likewise.
717
718         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
719
720         * config/i386/immintrin.h (_rdrand_u16): New.
721         (_rdrand_u32): Likewise.
722         (_readfsbase_u32): Likewise.
723         (_readfsbase_u64): Likewise.
724         (_readgsbase_u32): Likewise.
725         (_readgsbase_u64): Likewise.
726         (_writefsbase_u32): Likewise.
727         (_writefsbase_u64): Likewise.
728         (_writegsbase_u32): Likewise.
729         (_writegsbase_u64): Likewise.
730         (_rdrand_u64): Likewise.
731         (_cvtsh_ss): Likewise.
732         (_mm_cvtph_ps): Likewise.
733         (_mm256_cvtph_ps): Likewise.
734         (_cvtss_sh): Likewise.
735         (_mm_cvtps_ph): Likewise.
736         (_mm256_cvtps_ph): Likewise.
737
738         * config/i386/sse.md (vcvtph2ps): New.
739         (*vcvtph2ps_load): Likewise.
740         (vcvtph2ps256): Likewise.
741         (vcvtps2ph): Likewise.
742         (*vcvtps2ph): Likewise.
743         (*vcvtps2ph_store): Likewise.
744         (vcvtps2ph256): Likewise.
745
746         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
747
748         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
749
750 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
751
752         PR bootstrap/44512
753         * genenums.c (main): Output include of insn-constants.h
754         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
755
756 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
757
758         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
759         (override_options): Initialize it.
760         (ix86_expand_prologue): Use it.
761
762 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
763
764         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
765
766 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
767
768         * double-int.h (fit_double_type): Remove declaration.
769         * double-int.c (fit_double_type): Remove function.
770         * tree.h (int_fits_type_p): Adjust prototype.
771         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
772         instead of fit_double_type.
773         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
774         instead of fit_double_type and build_int_cst_wide.
775         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
776         instead of fit_double_type and build_int_cst_wide.
777         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
778         of fit_double_type.
779
780 2010-07-05  Jan Hubicka  <jh@suse.cz>
781
782         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
783         in_other_partition.
784         * lto-cgraph.c (referenced_from_other_partition_p,
785         reachable_from_other_partition_p): Use in_other_partition flags.
786         (output_node, output_varpool_node): COMDAT nodes always have private
787         copies and thus are never used from other partition.
788
789 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
790
791         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
792         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
793         * config/ia64/ia64.c Include reload.h.
794         (ia64_memory_move_cost): New function.
795         (TARGET_MEMORY_MOVE_COST): Define.
796         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
797         memory_move_cost.
798
799 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
800
801         PR middle-end/42505
802         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
803         comments about cost model.
804         (try_add_cand_for):  Add second strategy for choosing initial set
805         based on original IVs, controlled by ORIGINALP argument.
806         (get_initial_solution): Add ORIGINALP argument.
807         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
808         (find_optimal_iv_set): Try two different strategies for choosing
809         the IV set, and return the one with lower cost.
810
811 2010-07-05  Richard Guenther  <rguenther@suse.de>
812
813         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
814
815 2010-07-05  Richard Guenther  <rguenther@suse.de>
816
817         * tree.c (reference_alias_ptr_type): New function.
818         * tree.h (reference_alias_ptr_type): Declare.
819         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
820         allow non-TARGET_MEM_REF new refs.
821         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
822         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
823         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
824         (create_mem_ref): Get alias pointer type.  Adjust calls to
825         create_mem_ref_raw.
826         (maybe_fold_tmr): Likewise.
827         * tree-flow.h (create_mem_ref): Adjust prototype.
828
829 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
830
831         PR c++/44808
832         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
833         *from_p is VAR_DECL.
834
835 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
836
837         * tree.h (build_call_list): Remove.
838         * tree.c (build_call_list): Remove.
839
840 2010-07-05  Richard Guenther  <rguenther@suse.de>
841
842         * double-int.h (double_int_sub): Declare.
843         * double-int.c (double_int_sub): New function.
844         * dwarf2out.c (field_byte_offset): Use it.
845         * fixed-value.c (do_fixed_add): Likewise.
846         (do_fixed_multiply): Likewise.
847         (do_fixed_divide): Likewise.
848         * tree-predcom.c (add_ref_to_chain): Likewise.
849         (determine_roots_comp): Likewise.
850         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
851
852 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
853
854         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
855         implementations.
856
857 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
858
859         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
860         * arm-modes.def (CC_NOTB): Don't define.
861         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
862         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
863         (LTUGEU): New code_iterator.
864         (cnb, optab): New corresponding code_attrs.
865         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
866         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
867         using LTUGEU.
868         (addsi3_carryin_shift_<optab>): Likewise.
869         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
870         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
871         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
872         (subsi3_compare): Renamed from subsi3_compare0_c.
873         Change CC_NOTB to CC.
874         (arm_subsi3_insn): Allow constants for operand 0.
875         (compare_scc peephole for eq case): New.
876         (compare_scc splitters): Change CC_NOTB to CC.
877
878 2010-07-05  Richard Guenther  <rguenther@suse.de>
879
880         * tree-ssa-loop-im.c (for_each_index): Do not handle
881         ALIGN_INDIRECT_REF.
882         (gen_lsm_tmp_name): Likewise.
883         * tree-dump.c (dequeue_and_dump): Likewise.
884         * tree-pretty-print.c (dump_generic_node): Likewise.
885         (op_code_prio): Likewise.
886         (op_symbol_code): Likewise.
887         * tree.c (staticp): Likewise.
888         (build1_stat): Likewise.
889         * tree.h (INDIRECT_REF_P): Likewise.
890         * fold-const.c (maybe_lvalue_p): Likewise.
891         (operand_equal_p): Likewise.
892         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
893         (ao_ref_init_from_vn_reference): Likewise.
894         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
895         (find_interesting_uses_address): Likewise.
896         * dwarf2out.c (loc_list_from_tree): Likewise.
897         * gimplify.c (gimplify_expr): Likewise.
898         * tree-eh.c (tree_could_trap_p): Likewise.
899         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
900         * cfgexpand.c (expand_debug_expr): Likewise.
901         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
902         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
903         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
904         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
905         * tree-ssa-operands.c (get_expr_operands): Likewise.
906         * expr.c (safe_from_p): Likewise.
907         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
908         * tree-vect-data-refs.c (vect_setup_realignment): Build
909         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
910         * tree-vect-stmts.c (vectorizable_load): Likewise.
911         * tree.def (ALIGN_INDIRECT_REF): Remove.
912
913 2010-07-05  Richard Guenther  <rguenther@suse.de>
914
915         PR tree-optimization/44784
916         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
917         for inserted stmts.
918         (find_or_generate_expression): Fix SCCVN insertion check.
919
920 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
921
922         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
923         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
924         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
925         directives.
926
927 2010-07-05  Ira Rosen  <irar@il.ibm.com>
928
929         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
930         statements that are not vectorized.
931         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
932         in INSIDE_COST.
933
934 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
935
936         PR bootstrap/44820
937         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
938
939 2010-07-05  Richard Guenther  <rguenther@suse.de>
940
941         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
942         RESULT_DECLs properly.
943
944 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
945
946         PR rtl-optimization/44695
947         * config/i386/i386.md (extract_code): Removed.
948         (<u>divmodqi4): Likewise.
949         (divmodqi4): New.
950         (udivmodqi4): Likewise.
951         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
952         (udivmodhiqi3): Likewise.
953
954 2010-07-04  Jan Hubicka  <jh@suse.cz>
955
956         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
957
958 2010-07-04  Jan Hubicka  <jh@suse.cz>
959
960         * cgraphunit.c (init_cgraph): Only initialize dump file if it
961         is not already initialized.
962
963 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
964
965         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
966         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
967         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
968         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
969         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
970         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
971         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
972         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
973         (sync_new_nand_optab): Redefine as macros.
974         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
975         Delete.
976         (direct_optab_index): New enum.
977         (direct_optab_d): New structure.
978         (direct_optab): New typedef.
979         (direct_optab_table): Declare.
980         (direct_optab_handler, set_direct_optab_handler): New functions.
981         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
982         (sync_lock_release_optab): New macros.
983         * optabs.c (direct_optab_table): New variable.
984         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
985         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
986         cmpstr_optab and cmpstrn_optab.
987         (emit_conditional_move): Likewise for movcc_optab.
988         (can_conditionally_move_p): Likewise for movcc_gen_code.
989         (init_insn_codes): Clear direct_optab_table.
990         (init_optabs): Don't initialize the new "direct optabs" here.
991         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
992         vcond_gen_code.
993         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
994         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
995         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
996         (expand_sync_operation): Likewise other sync_*_optabs.
997         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
998         to sync_compare_and_swap_optab.
999         (expand_sync_lock_test_and_set): Use direct_optab_handler for
1000         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1001         to the names of both.
1002         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1003         cmpstr_optab and cmpstrn_optab.
1004         (expand_builtin_lock_release): Likewise sync_lock_release.
1005         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1006         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1007         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1008         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1009         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1010         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1011         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1012         (sync_lock_test_and_set, sync_lock_release): Delete.
1013         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1014         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1015         * genopinit.c (optabs): Use set_direct_optab_handler for the new
1016         macro optabs.
1017         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1018         the "optab" local variable.  Use direct_optab_handler for optab and
1019         sync_compare_and_swap_optab.
1020         * reload1.c (reload_in_optab, reload_out_optab): Delete.
1021         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1022         reload_in_optab and reload_out_optab.
1023         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1024         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1025         * config/pa/pa.c (pa_secondary_reload): Likewise.
1026         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1027         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1028         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1029         (VMSupportsCS8_builtin): Likewise.
1030
1031 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1032
1033         * optabs.h (optab_handlers): Change type of insn_code to int.
1034         (optab_handler, set_optab_handler, convert_optab_handler)
1035         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1036         CODE_FOR_nothing".
1037         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1038         (init_insn_codes): Zero both the above arrays.
1039         (init_optabs): Never call init_insn_codes first time around.
1040
1041 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1042
1043         * optabs.h (optab_handler, convert_optab_handler): Turn into
1044         inline functions that return an insn code.
1045         (set_optab_handler, set_convert_optab_handler): New functions.
1046         * builtins.c: Replace optab_handler(X)->insn_code with
1047         optab_handler or set_optab_handler thoughout.  Likewise
1048         convert_optab_handler(X)->insn_code with convert_optab_handler
1049         and set_convert_optab_handler.
1050         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1051         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1052         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1053         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1054         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1055         config/spu/spu.c: Likewise.
1056
1057 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1058
1059         PR target/44531
1060         * config.gcc (sh*-*-*): Use regular expressions instead of
1061         the 'i' modifier for sed substitutions.
1062
1063 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1064
1065         * gimple.c (gimple_body): Comments added.
1066
1067 2010-07-04  Richard Guenther  <rguenther@suse.de>
1068
1069         PR middle-end/44809
1070         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1071         of an INDIRECT_REF.
1072
1073 2010-07-04  Richard Guenther  <rguenther@suse.de>
1074
1075         PR tree-optimization/44479
1076         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1077         extra SSA name copy statements which preserves points-to
1078         information.
1079         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1080         Copy points-to information for all pointers.  Properly handle
1081         MEM_REFs.
1082         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
1083         copy statements.
1084         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1085         dependency.
1086
1087 2010-07-04  Richard Guenther  <rguenther@suse.de>
1088
1089         PR middle-end/44785
1090         * tree-inline.c (initialize_inlined_parameters): Do not
1091         re-use pointer-map slot over remap_type call.
1092
1093 2010-07-04  Richard Guenther  <rguenther@suse.de>
1094
1095         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1096
1097 2010-07-04  Richard Guenther  <rguenther@suse.de>
1098
1099         PR tree-optimization/44656
1100         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1101         again after value-replacing in the defintions lhs.
1102
1103 2010-07-04  Ira Rosen  <irar@il.ibm.com>
1104             Revital Eres  <eres@il.ibm.com>
1105
1106         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1107         Document new arguments.
1108         * doc/tm.texi: Regenerate.
1109         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1110         Handle unaligned store.
1111         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1112         * target.def (builtin_vectorization_cost): Add new arguments.
1113         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1114         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1115         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1116         (vect_vfa_segment_size): Fix indentation.
1117         * tree-vectorizer.h (struct _vect_peel_info): New.
1118         (struct _vect_peel_extended_info): New.
1119         (struct _loop_vec_info): Add new field for peeling hash table and a
1120         macro for its access.
1121         (VECT_MAX_COST): Define.
1122         (vect_get_load_cost): Declare.
1123         (vect_get_store_cost, vect_get_known_peeling_cost,
1124         vect_get_single_scalar_iteraion_cost): Likewise.
1125         (vect_supportable_dr_alignment): Add new argument.
1126         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1127         field.
1128         (destroy_loop_vec_info): Free peeling hash table.
1129         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1130         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1131         vect_analyze_slp. Fix indentation.
1132         (vect_get_single_scalar_iteraion_cost): New function.
1133         (vect_get_known_peeling_cost): Likewise.
1134         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1135         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1136         statement. Move outside cost calculation inside unknown peeling case.
1137         Call vect_get_known_peeling_cost for known amount of peeling.
1138         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1139         reference to the print message of forced alignment.
1140         (vect_verify_datarefs_alignment): Update call to
1141         vect_supportable_dr_alignment.
1142         (vect_get_data_access_cost): New function.
1143         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1144         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1145         vect_peeling_hash_choose_best_peeling): Likewise.
1146         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1147         to store all the accesses in the loop and find best possible access to
1148         align using peeling for known alignment case. For unknown alignment
1149         check if stores are preferred or if peeling is worthy.
1150         (vect_find_same_alignment_drs): Analyze pairs of loads too.
1151         (vect_supportable_dr_alignment): Add new argument and check aligned
1152         accesses according to it.
1153         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1154         (cost_for_stmt): Call vect_get_stmt_cost.
1155         (vect_model_simple_cost): Likewise.
1156         (vect_model_store_cost): Call vect_get_stmt_cost. Call
1157         vect_get_store_cost to calculate the cost of the statement.
1158         (vect_get_store_cost): New function.
1159         (vect_model_load_cost): Call vect_get_stmt_cost. Call
1160         vect_get_load_cost to calculate the cost of the statement.
1161         (vect_get_load_cost): New function.
1162         (vectorizable_store): Update call to vect_supportable_dr_alignment.
1163         (vectorizable_load): Likewise.
1164         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1165         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1166         arguments. Handle unaligned store.
1167         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1168         (rs6000_builtin_support_vector_misalignment): Return true for word and
1169         double word alignments for VSX.
1170         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1171         vect_supportable_dr_alignment and builtin_vectorization_cost.
1172
1173 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1174
1175         PR target/44597
1176         * config/pa/predicates.md (prefetch_cc_operand): Remove.
1177         (prefetch_nocc_operand): Likewise.
1178         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1179         (prefetch_20): New insn.
1180         (prefetch_cc): Remove.
1181         (prefetch_nocc): Likewise.
1182
1183 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1184
1185         * expr.c (vector_mode_valid_p): Move to c-common.c.
1186         * expr.h (vector_mode_valid_p): Do not declare here.
1187         * system.h: Poison GCC_EXPR_H in front-ends.
1188         * Makefile.in: Update dependencies.
1189
1190 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1191
1192         PR target/44705
1193         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1194
1195 2010-07-03  Jan Hubicka  <jh@suse.cz>
1196
1197         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1198         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1199         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1200         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1201         Likewise.
1202
1203         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1204         Update timevars.V
1205         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1206         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1207         TV_IPA_LTO_DECL_OUT): New.
1208         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1209
1210 2010-07-03  Jan Hubicka  <jh@suse.cz>
1211
1212         * ipa-inline.c (update_edge_key): Break out from ...
1213         update_callers_keys): ... here;
1214         (update_callee_keys): Update only the edges from caller to callee.
1215         (update_all_calle_keys): Do what update_calle_keys did.
1216         (decide_inlining_of_small_functions): Avoid recomputing of all
1217         callees when badness increase.
1218
1219 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1220
1221         * config/arm/arm.c (arm_attr_length_move_neon): New.
1222         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1223         * config/arm/neon.md (define_mode_attr V_slen): Remove.
1224         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1225         to compute length attribute.
1226
1227 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1228
1229         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1230         as predicate for operand 1 and remove its constraint.
1231         * config/arm/predicates.md (vfp_register_operand): New.
1232         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1233         (*push_fp_multi): Likewise.
1234
1235 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1236
1237         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1238
1239 2010-07-03  Jan Hubicka  <jh@suse.cz>
1240
1241         * config/i386/i386.c (override_options): Revert accidental commit.
1242
1243 2010-07-02  Le-Chun Wu  <lcwu@google.com>
1244
1245         PR c++/44128
1246         * doc/invoke.texi: Update documentation of -Wshadow.
1247
1248 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1249             Julian Brown  <julian@codesourcery.com>
1250             Sandra Loosemore <sandra@codesourcery.com>
1251
1252         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1253         comparisons.  Adjust to take both operands.
1254         (arm_select_cc_mode): Handle DImode comparisons.
1255         (arm_gen_compare_reg): Generate a scratch register for DImode
1256         comparisons which require one.  Use xor for Thumb equality checks.
1257         (arm_const_double_by_immediates): New.
1258         (arm_print_operand): Allow 'Q' and 'R' for constants.
1259         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1260         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1261         arm_canonicalize_comparison.
1262         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1263         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1264         prototype.
1265         (arm_const_double_by_immediates): Declare.
1266         * config/arm/constraints.md (Di): New constraint.
1267         * config/arm/predicates.md (arm_immediate_di_operand)
1268         (arm_di_operand, cmpdi_operand): New.
1269         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1270         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1271         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1272         (cstoredi4): Handle non-Cirrus also.
1273
1274 2010-07-02  Julian Brown  <julian@codesourcery.com>
1275             Sandra Loosemore <sandra@codesourcery.com>
1276
1277         PR target/43703
1278         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1279         (smax<mode>3): Disable for NEON float modes when
1280         flag_unsafe_math_optimizations is false.
1281         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1282         (*mul<mode>3_neon)
1283         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1284         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1285         for NEON float modes when flag_unsafe_math_optimizations is false.
1286         (quad_halves_<code>v4sf): Only enable if
1287         flag_unsafe_math_optimizations is true.
1288         * doc/invoke.texi (ARM Options): Add note about floating point
1289         vectorization requiring -funsafe-math-optimizations.
1290
1291 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1292             Julian Brown  <julian@codesourcery.com>
1293
1294         * config/arm/neon.md (UNSPEC_VABA): Delete.
1295         (UNSPEC_VABAL): Delete.
1296         (UNSPEC_VABS): Delete.
1297         (UNSPEC_VMUL_N): Delete.
1298         (adddi3_neon): New.
1299         (subdi3_neon): New.
1300         (mul<mode>3add<mode>_neon): Make the pattern named.
1301         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1302         (neon_vadd<mode>): Replace with define_expand, and move the remaining
1303         unspec parts...
1304         (neon_vadd<mode>_unspec): ...to this.
1305         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1306         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1307         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1308         (neon_vaba<mode>): Rewrite in terms of vabd.
1309         (neon_vabal<mode>): Rewrite in terms of vabdl.
1310         (neon_vabs<mode>): Rewrite without unspec.
1311         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1312         (*arm_subdi3): Likewise.
1313         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1314         No_op attribute to disable assembly output checks.
1315         * config/arm/arm_neon.h: Regenerated.
1316         * doc/arm-neon-intrinsics.texi: Regenerated.
1317
1318 2010-07-02  Jan Hubicka  <jh@suse.cz>
1319
1320         * ipa-split.c (split_function): For aggregate values, set the return
1321         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
1322         *<retval> = fncall.part ().
1323         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1324
1325 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1326
1327         * config/arm/neon.md (UNSPEC_VAND): Delete.
1328         (UNSPEC_VBIC): Delete.
1329         (UNSPEC_VCLZ): Delete.
1330         (UNSPEC_VCNT): Delete.
1331         (UNSPEC_VEOR): Delete.
1332         (UNSPEC_VORN): Delete.
1333         (UNSPEC_VORR): Delete.
1334         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
1335         core registers too.
1336         (anddi3_neon): Likewise.
1337         (orndi3_neon): Likewise.
1338         (bicdi3_neon): Likewise.
1339         (xordi3_neon): Likewise.
1340         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1341         rid of unspec and handle unused operand.
1342         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1343         * config/arm/predicates.md (imm_for_neon_logic_operand):
1344         Require TARGET_NEON.
1345         (imm_for_neon_inv_logic_operand): Likewise.
1346         * config/arm/arm.md (define_split for logical_binary_operator):
1347         Disable for NEON registers.
1348         (anddi3): Add new define_expand, and rename the insn.  Disable
1349         this insn for NEON, where anddi3_neon now applies.
1350         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1351         (iordi3): As for anddi3.
1352         (xordi3): Likewise.
1353         * config/arm/neon.ml (Vand): Split DImode variants and mark them
1354         as No_op to disable testing for exact instruction match.
1355         (Vorr): Likewise.
1356         (Veor): Likewise.
1357         (Vbic): Likewise.
1358         (Vorn): Likewise.
1359         * config/arm/arm_neon.h: Regenerated.
1360         * doc/arm-neon-intrinsics.texi: Regenerated.
1361
1362 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1363
1364         * expr.h (emit_stack_probe): Declare.
1365         * explow.c (emit_stack_probe): Make global.
1366         (anti_adjust_stack_and_probe): Fix comments.
1367         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1368         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1369         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1370         * config/sparc/sparc.c: Include except.h.
1371         (sparc_emit_probe_stack_range): New function.
1372         (output_probe_stack_range): Likewise.
1373         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1374         built-in stack checking is enabled.
1375         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1376         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1377         (probe_stack_range): New insn.
1378
1379 2010-07-02  Richard Guenther  <rguenther@suse.de>
1380
1381         PR target/43958
1382         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1383         for argument alignment.
1384
1385 2010-07-02  Jan Hubicka  <jh@suse.cz>
1386
1387         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1388         walk backwards from entry_bb to check only those basic block of header
1389         that might lead to execution of split part.
1390         (consider_split) ... here.
1391         (find_return_bb): Allow assignment in return BB.
1392         (find_retval): New.
1393         (split_function): Fix name of cloned function; take care of updating
1394         return value in return_bb containing move.
1395
1396 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
1397
1398         PR target/44771
1399         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1400         used variable insn.
1401
1402 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1403
1404         * implicit-zee.c (combine_reaching_defs): Fix long lines.
1405         (is_set_with_extension_DI): Delete.
1406         (struct zero_extend_info): New structure.
1407         (add_removable_zero_extend): New function.
1408         (find_removable_zero_extends): Use note_stores to find SETs.
1409         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1410
1411 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
1412
1413         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1414         is_miss_rate_acceptable. Pull total_positions computation
1415         out of the loops.  Early return if miss_positions exceeds
1416         the acceptable threshold.
1417         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1418         is_miss_rate_acceptable after renaming of compute_miss_rate.
1419
1420 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
1421
1422         PR middle-end/44576
1423         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1424         of 1000) for miss rate if the address diference is greater than or
1425         equal to the cache line size (the two reference will never hit the
1426         same cache line).
1427
1428 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
1429
1430         PR target/42835
1431         * config/arm/arm-modes.def (CC_NOTB): New mode.
1432         * config/arm/arm.c (get_arm_condition_code): Handle it.
1433         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1434         * config/arm/arm.md (subsi3_compare0_c): New pattern.
1435         (compare_scc): Now a define_and_split.  Add a number of extra
1436         splitters before it.
1437
1438         PR target/42172
1439         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1440         and ZERO_EXTEND.
1441         (arm_rtx_costs_1): Likewise.
1442         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1443         * config/arm/arm.md (is_arch6): New attribute.
1444         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1445         extendqisi2): Tighten the code somewhat, avoiding invalid
1446         RTL to occur in the expander patterns.
1447         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1448         (thumb1_zero_extendhisi2_v6): Delete.
1449         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1450         (thumb1_extendhisi2_v6): Delete.
1451         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1452         (thumb1_extendqisi2_v6): Delete.
1453         (zero_extendhisi2 for register input splitter): New.
1454         (zero_extendqisi2 for register input splitter): New.
1455         (thumb1_extendhisi2 for register input splitter): New.
1456         (extendhisi2 for register input splitter): New.
1457         (extendqisi2 for register input splitter): New.
1458         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1459         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1460         and add support for a register alternative requiring a split.
1461         (thumb1_zero_extendqisi2): Likewise.
1462         (arm_zero_extendqisi2): Likewise.
1463         (arm_extendhisi2): Likewise.
1464         (arm_extendqisi2): Likewise.
1465
1466 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1467
1468         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1469         instead of an unspec.
1470         (neon_expand_vector_init): Likewise.
1471         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1472         (UNSPEC_VDUP_LANE): Delete.
1473         (UNSPEC VDUP_N): Delete.
1474         (UNSPEC_VGET_HIGH): Delete.
1475         (UNSPEC_VGET_LANE): Delete.
1476         (UNSPEC_VGET_LOW): Delete.
1477         (UNSPEC_VMVN): Delete.
1478         (UNSPEC_VSET_LANE): Delete.
1479         (V_double_vector_mode): New.
1480         (vec_set<mode>_internal): Make code emitted match that for the
1481         corresponding intrinsics.
1482         (vec_setv2di_internal): Likewise.
1483         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1484         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1485         (neon_vset_lane<mode>): Combine double and quad patterns and
1486         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1487         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1488         (neon_vdup_n<mode>): Rewrite RTL without unspec.
1489         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1490         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1491         with neon_vdup_lanev2di, adjusting the pattern from the latter
1492         to be predicable for consistency.
1493         (neon_vdup_lane<mode>_internal): New.
1494         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1495         to avoid using an unspec.
1496         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1497         (neon_vdup_lanev2di): Turn into a define_expand.
1498         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1499         (neon_vget_high<mode>): Replace with....
1500         (neon_vget_highv16qi): New pattern using canonical RTL.
1501         (neon_vget_highv8hi): Likewise.
1502         (neon_vget_highv4si): Likewise.
1503         (neon_vget_highv4sf): Likewise.
1504         (neon_vget_highv2di): Likewise.
1505         (neon_vget_low<mode>): Replace with....
1506         (neon_vget_lowv16qi): New pattern using canonical RTL.
1507         (neon_vget_lowv8hi): Likewise.
1508         (neon_vget_lowv4si): Likewise.
1509         (neon_vget_lowv4sf): Likewise.
1510         (neon_vget_lowv2di): Likewise.
1511
1512         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1513         test for this emitting vmov.
1514         (Vset_lane): Likewise.
1515         (Vdup_n): Likewise.
1516         (Vmov_n): Likewise.
1517
1518         * doc/arm-neon-intrinsics.texi: Regenerated.
1519
1520 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1521
1522         * config/arm/neon.md (vec_extractv2di): Correct error in register
1523         numbering to reconcile with neon_vget_lanev2di.
1524
1525 2010-07-02  Richard Guenther  <rguenther@suse.de>
1526
1527         * tree-ssa-structalias.c (pt_solution_set_var): New function.
1528         * tree-ssa-alias.h (pt_solution_set_var): Declare.
1529         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1530         points-to information.
1531
1532 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
1533
1534         * config/s390/s390.c (override_options): Adopt prefetching
1535         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1536
1537 2010-07-02  Jan Hubicka  <jh@suse.cz>
1538
1539         * df-problems.c (df_kill_notes): Do not collect dead  notes.
1540         (df_set_note): Just call add_reg_note.
1541         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1542         df_create_unused_note): Do not deal with lists of old notes.
1543         (df_note_bb_compute): Likewise.
1544
1545 2010-07-02  Richard Guenther  <rguenther@suse.de>
1546
1547         * tree-ssa-structalias.c (find_func_aliases): Handle
1548         pointer alignment via BIT_AND_EXPR.
1549         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1550
1551 2010-07-02  Richard Guenther  <rguenther@suse.de>
1552
1553         * tree-data-ref.c (initialize_data_dependence_relation): Handle
1554         mismatching number of dimensions properly.
1555
1556 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1557
1558         PR target/44707
1559         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1560         (lo_sum (high ...) ...) patterns generated by earlier passes.
1561
1562 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1563
1564         * doc/install.texi (Prerequisites): Document Perl requirement on
1565         Solaris 2.
1566         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1567
1568 2010-07-02  Richard Guenther  <rguenther@suse.de>
1569
1570         PR middle-end/44777
1571         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1572
1573 2010-07-02  Jan Hubicka  <jh@suse.cz>
1574
1575         PR middle-end/44706
1576         * predict.c (predict_paths_for_bb): Handle case when control dependence
1577         BB has only abnormal edges.
1578
1579 2010-07-02  Richard Guenther  <rguenther@suse.de>
1580
1581         PR tree-optimization/44748
1582         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1583         the embedded conversion in MEM_REFs.
1584
1585 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
1586
1587         * reload.c: Include toplev.h.
1588         * recog.c:  Likewise.
1589         * Makefile.in: Adjust dependencies.
1590
1591 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
1592
1593         PR debug/44694
1594         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1595         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1596
1597 2010-07-01  Richard Guenther  <rguenther@suse.de>
1598
1599         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1600         types for offsets.
1601
1602 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1603
1604         PR target/44732
1605         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1606         Fix argument types.
1607
1608 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
1609
1610         PR target/44727
1611         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1612         Make sure operand 0 dies.
1613
1614 2010-07-01  Richard Guenther  <rguenther@suse.de>
1615
1616         PR middle-end/42834
1617         PR middle-end/44468
1618         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1619         * doc/generic.texi (References to storage): Document MEM_REF.
1620         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1621         (print_call_name): Likewise.
1622         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1623         (build_simple_mem_ref_loc): New function.
1624         (mem_ref_offset): Likewise.
1625         * tree.h (build_simple_mem_ref_loc): Declare.
1626         (build_simple_mem_ref): Define.
1627         (mem_ref_offset): Declare.
1628         * fold-const.c: Include tree-flow.h.
1629         (operand_equal_p): Handle MEM_REF.
1630         (build_fold_addr_expr_with_type_loc): Likewise.
1631         (fold_comparison): Likewise.
1632         (fold_unary_loc): Fold
1633         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
1634         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
1635         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
1636         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
1637         (ptr_deref_may_alias_ref_p_1): Likewise.
1638         (ao_ref_base_alias_set): Properly differentiate base object for
1639         offset and TBAA.
1640         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
1641         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
1642         (indirect_refs_may_alias_p): Likewise.
1643         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
1644         chasing code.
1645         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
1646         (call_may_clobber_ref_p_1): Likewise.
1647         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
1648         * expr.c (expand_assignment): Handle MEM_REF.
1649         (store_expr): Handle MEM_REFs from STRING_CSTs.
1650         (store_field): If expanding a MEM_REF of a non-addressable
1651         decl use bitfield operations.
1652         (get_inner_reference): Handle MEM_REF.
1653         (expand_expr_addr_expr_1): Likewise.
1654         (expand_expr_real_1): Likewise.
1655         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
1656         * alias.c (ao_ref_from_mem): Handle MEM_REF.
1657         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
1658         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
1659         (dr_analyze_indices): Likewise.
1660         (dr_analyze_alias): Likewise.
1661         (object_address_invariant_in_loop_p): Likewise.
1662         * gimplify.c (mark_addressable): Handle MEM_REF.
1663         (gimplify_cond_expr): Build MEM_REFs.
1664         (gimplify_modify_expr_to_memcpy): Likewise.
1665         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
1666         (gimple_fold_indirect_ref): Adjust.
1667         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
1668         * tree.def (MEM_REF): New tree code.
1669         * tree-dfa.c: Include toplev.h.
1670         (get_ref_base_and_extent): Handle MEM_REF.
1671         (get_addr_base_and_unit_offset): New function.
1672         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
1673         * gimple-fold.c (may_propagate_address_into_dereference): Handle
1674         MEM_REF.
1675         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
1676         accesses if the array has just one dimension.  Remove always true
1677         parameter.  Do not require type compatibility here.
1678         (maybe_fold_offset_to_component_ref): Remove.
1679         (maybe_fold_stmt_indirect): Remove.
1680         (maybe_fold_reference): Remove INDIRECT_REF handling.
1681         Fold back to non-MEM_REF.
1682         (maybe_fold_offset_to_address): Simplify.  Deal with type
1683         mismatches here.
1684         (maybe_fold_reference): Likewise.
1685         (maybe_fold_stmt_addition): Likewise.  Also handle
1686         &ARRAY + I in addition to &ARRAY[0] + I.
1687         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
1688         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
1689         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
1690         * tree-ssa.c (useless_type_conversion_p): Make most pointer
1691         conversions useless.
1692         (warn_uninitialized_var): Handle MEM_REF.
1693         (maybe_rewrite_mem_ref_base): New function.
1694         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
1695         to SSA form.
1696         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
1697         INDIRECT_REF handling.
1698         (copy_tree_body_r): Handle MEM_REF.
1699         * gimple.c (is_gimple_addressable): Adjust.
1700         (is_gimple_address): Likewise.
1701         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
1702         invariant base are invariant.
1703         (is_gimple_min_lval): Adjust.
1704         (is_gimple_mem_ref_addr): New function.
1705         (get_base_address): Handle MEM_REF.
1706         (count_ptr_derefs): Likewise.
1707         (get_base_loadstore): Likewise.
1708         * gimple.h (is_gimple_mem_ref_addr): Declare.
1709         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
1710         * tree-cfg.c (verify_address): New function, split out from ...
1711         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
1712         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
1713         INDIRECT_REFs.
1714         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
1715         INDIRECT_REF.  Allow conversions.
1716         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
1717         a register does not change its size.
1718         (verify_types_in_gimple_reference): Verify MEM_REF.
1719         (verify_gimple_assign_single): Disallow INDIRECT_REF.
1720         Handle MEM_REF.
1721         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
1722         New.
1723         (mark_address_taken): Handle MEM_REF.
1724         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
1725         (get_asm_expr_operands): Pass opf_not_non_addressable.
1726         (get_expr_operands): Handle opf_[not_]non_addressable.
1727         Handle MEM_REF.  Remove INDIRECT_REF handling.
1728         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
1729         (search_for_addr_array): Likewise.
1730         (check_array_bounds): Likewise.
1731         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
1732         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
1733         (ref_always_accessed_p): Likewise.
1734         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
1735         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
1736         Handle MEM_REF.
1737         * cgraphbuild.c (mark_load): Properly check for NULL result
1738         from get_base_address.
1739         (mark_store): Likewise.
1740         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
1741         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
1742         handling for MEM_REF.
1743         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
1744         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
1745         * builtins.c (stabilize_va_list_loc): Use the function ABI
1746         valist type if we couldn't canonicalize the argument type.
1747         Always dereference with the canonical va-list type.
1748         (maybe_emit_free_warning): Handle MEM_REF.
1749         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
1750         memmove to memcpy.
1751         * builtins.c (fold_builtin_memory_op): Use ref-all types
1752         for all memcpy foldings.
1753         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
1754         (build_outer_var_ref): Likewise.
1755         (scan_omp_1_op): Likewise.
1756         (lower_rec_input_clauses): Likewise.
1757         (lower_lastprivate_clauses): Likewise.
1758         (lower_reduction_clauses): Likewise.
1759         (lower_copyprivate_clauses): Likewise.
1760         (expand_omp_atomic_pipeline): Likewise.
1761         (expand_omp_atomic_mutex): Likewise.
1762         (create_task_copyfn): Likewise.
1763         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
1764         Remove old union trick.  Initialize constant offsets.
1765         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
1766         INDIRECT_REF.  Init base_alias_set properly.
1767         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
1768         (vn_reference_fold_indirect): Adjust for MEM_REFs.
1769         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
1770         for ARRAY_REFs.
1771         (may_insert): Remove.
1772         (visit_reference_op_load): Do not test may_insert.
1773         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
1774         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
1775         a field to store the constant offset this op applies.
1776         (run_scc_vn): Adjust prototype.
1777         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
1778         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
1779         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
1780         bother about volatile qualifiers on pointers.
1781         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
1782         * tree-ssa-loop-ivopts.c
1783         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
1784         (strip_offset_1): Likewise.
1785         (find_interesting_uses_address): Replace INDIRECT_REF handling with
1786         MEM_REF handling.
1787         (get_computation_cost_at): Likewise.
1788         * ipa-pure-const.c (check_op): Handle MEM_REF.
1789         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
1790         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
1791         and constants.
1792         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
1793         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
1794         (eliminate_local_variables_1): Likewise.
1795         (create_call_for_reduction_1): Likewise.
1796         (create_loads_for_reductions): Likewise.
1797         (create_loads_and_stores_for_name): Likewise.
1798         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
1799         (ssa_accessed_in_tree): Handle MEM_REF.
1800         (ssa_accessed_in_assign_rhs): Likewise.
1801         (update_type_size): Likewise.
1802         (analyze_accesses_for_call_stmt): Likewise.
1803         (analyze_accesses_for_assign_stmt): Likewise.
1804         (transform_access_sites): Likewise.
1805         (transform_allocation_sites): Likewise.
1806         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
1807         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
1808         not handle INDIRECT_REF.
1809         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
1810         (cond_store_replacement): Likewise.
1811         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
1812         MEM_REF, no not handle INDIRECT_REFs.
1813         (insert_into_preds_of_block): Properly initialize avail.
1814         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
1815         for ARRAY_REFs.  Properly handle reference lookups that
1816         require a bit re-interpretation.
1817         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
1818         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
1819         (build_ref_for_offset_1): Remove.
1820         (build_ref_for_offset): Build MEM_REFs.
1821         (gate_intra_sra): Disable for now.
1822         (sra_ipa_modify_expr): Handle MEM_REF.
1823         (ipa_early_sra_gate): Disable for now.
1824         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
1825         MEM_REF handling.
1826         (disqualify_base_of_expr): Likewise.
1827         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
1828         MEM_REF handling.
1829         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
1830         Use mem_ref_offset.  Remove bogus folding.
1831         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
1832         (make_fancy_name_1): Add support for MEM_REF.
1833         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
1834         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
1835         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
1836         (compute_complex_ancestor_jump_func): Likewise.
1837         (ipa_analyze_virtual_call_uses): Likewise.
1838         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
1839         INDIRECT_REF folding with more generalized MEM_REF folding.
1840         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
1841         (forward_propagate_addr_into_variable_array_index): Also handle
1842         &ARRAY + I in addition to &ARRAY[0] + I.
1843         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
1844         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
1845         creates assignments with overlap.
1846         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
1847         (get_frame_field): Likewise.
1848         (get_nonlocal_debug_decl): Likewise.
1849         (convert_nonlocal_reference_op): Likewise.
1850         (struct nesting_info): Add mem_refs pointer-set.
1851         (create_nesting_tree): Allocate it.
1852         (convert_local_reference_op): Insert to be folded mem-refs.
1853         (fold_mem_refs): New function.
1854         (finalize_nesting_tree_1): Perform defered folding of mem-refs
1855         (free_nesting_tree): Free the pointer-set.
1856         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
1857         (vectorizable_load): Likewise.
1858         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
1859         (propagate_with_phi): Likewise.
1860         * tree-object-size.c (addr_object_size): Handle MEM_REFs
1861         instead of INDIRECT_REFs.
1862         (compute_object_offset): Handle MEM_REF.
1863         (plus_stmt_object_size): Handle MEM_REF.
1864         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
1865         for &MEM_REF.
1866         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
1867         (symbol_marked_for_renaming): Likewise.
1868         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
1869         (fold-const.o): Add $(TREE_FLOW_H).
1870         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
1871         (find_func_clobbers): Likewise.
1872         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
1873         (decompose_access): Likewise.
1874         (replace_field_acc): Likewise.
1875         (replace_field_access_stmt): Likewise.
1876         (insert_new_var_in_stmt): Likewise.
1877         (get_stmt_accesses): Likewise.
1878         (reorg_structs_drive): Disable.
1879         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
1880         (ix86_canonical_va_list_type): Likewise.
1881
1882 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1883
1884         PR other/44566
1885         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
1886         * target.def (struct gcc_target): Replace enum reg_class with
1887         reg_class_t in hook argument / return types.
1888         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
1889         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
1890         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
1891         * targhooks.h (default_branch_target_register_class): Likewise.
1892         (default_ira_cover_classes, default_secondary_reload): Likewise.
1893         (default_memory_move_cost, default_register_move_cost): Likewise.
1894         * targhooks.c (default_branch_target_register_class): Likewise.
1895         (default_ira_cover_classes, default_secondary_reload): Likewise.
1896         (default_memory_move_cost, default_register_move_cost): Likewise.
1897         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
1898         * bt-load.c (branch_target_load_optimize): Likewise.
1899         * ira.c (setup_cover_and_important_classes): Likewise.
1900         * ira-costs.c (copy_cost): Likewise.
1901         * reload1.c (emit_input_reload_insns): Likewise.
1902         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1903         * config/frv/frv.c (frv_secondary_reload): Likewise.
1904         * config/s390/s390.c (s390_secondary_reload): Likewise.
1905         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
1906         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
1907         (ix86_register_move_cost): Likewise.
1908         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
1909         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
1910         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1911         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1912         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1913         (rs6000_ira_cover_classes): Likewise.
1914         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1915         * config/picochip/picochip-protos.h (picochip_secondary_reload):
1916         Likewise.
1917         * config/pa/pa.c (pa_secondary_reload): Likewise.
1918         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1919         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1920         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1921         * doc/tm.texi: Regenerate.
1922
1923 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1924
1925         PR bootstrrap/44726
1926         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1927         use.
1928         (build_alias_set_optimal_p): Likewise.
1929         (build_base_obj_set_for_drs): Likewise.
1930
1931 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1932
1933         * target.def: Remove comment about licensing problems of function
1934         declarations.
1935
1936         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
1937         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1938         * doc/tm.texi: Regenerate.
1939
1940         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
1941         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1942
1943         * target.def (enum_va_list_p): Use DEFHOOK.
1944         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1945         Rename ptype to ptree.
1946         * doc/tm.texi: Regenerate.
1947
1948         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
1949         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1950         * doc/tm.texi: Regenerate.
1951
1952         * target.def (memory_move_cost): Use DEFHOOK.
1953         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1954         Rename regclass AKA class to rclass.
1955         * doc/tm.texi: Regenerate.
1956
1957         * target.def (pragma_parse): Use DEFHOOK.
1958         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1959         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1960         * doc/tm.texi: Regenerate.
1961
1962         * target.def (pass_by_reference): Use DEFHOOK.
1963         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1964         * doc/tm.texi: Regenerate.
1965
1966         * target.def (resolve_overloaded_builtin): Rename params to arglist.
1967         Use DEFHOOK.
1968         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1969         * doc/tm.texi: Regenerate.
1970
1971         * target.def (return_pops_args): Use DEFHOOK.
1972         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1973         Rename stack-size to size.
1974         * doc/tm.texi: Regenerate.
1975
1976         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
1977         last-sched_cycle to last_clock, cur_cycle to clock.
1978         * doc/tm.texi.in: Use @hook.
1979         * doc/tm.texi: Regenerate.
1980
1981         * target.def (print_operand, print_operand_address): Update comment.
1982         (print_operand_punct_valid_p): Likewise.
1983
1984 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1985
1986         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1987         to rtl.h.
1988         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1989         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
1990         * rtl-error.h: New.
1991         * regrename.c: Do not include toplev.h. Include rtl-error.h.
1992         * rtl-error.c: Likewise.
1993         * reload.c: Likewise.
1994         * recog.c:  Likewise.
1995         * sel-sched.c: Likewise.
1996         * function.c: Likewise.
1997         * reg-stack.c: Likewise.
1998         * cfgrtl.c: Likewise.
1999         * reload1.c: Likewise.
2000         * final.c: Include rtl-error.
2001         * Makefile.in: Adjust dependencies.
2002
2003 2010-06-30  Jan Hubicka  <jh@suse.cz>
2004
2005         PR middle-end/PR44706
2006         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2007         to return the value.
2008
2009 2010-06-30  Michael Matz  <matz@suse.de>
2010
2011         PR bootstrap/44699
2012         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2013         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2014         a gimple reg, attach the original VDEF to the last store in the
2015         sequence.
2016
2017 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
2018
2019         PR other/44034
2020         * config/darwin.c (darwin_override_options): Use renamed
2021         targetm.asm_out.emit_unwind_label.
2022
2023 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2024
2025         PR tree-optimization/39799
2026         * tree-inline.c (remap_ssa_name): Initialize variable only if
2027         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2028
2029 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
2030
2031         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2032
2033 2010-06-30  Richard Guenther  <rguenther@suse.de>
2034
2035         PR target/44722
2036         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2037         against oscillation with reverse peephole2.
2038
2039 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2040
2041         PR target/44721
2042         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2043         Fix last commit.
2044
2045 2010-06-30  Nick Clifton  <nickc@redhat.com>
2046
2047         * config/rx/rx-modes.def: New file.
2048         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2049         (CC_REGNUM): Define.
2050         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2051         register.
2052         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2053         (SELECT_CC_MODE): Define.
2054         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
2055         (reg:CC CC_REG) instead of (cc0).
2056         (attr "cc"): Delete.
2057         (cbranchsi4): Do not split compare and branch here. Instead move
2058         it to...
2059         (cbranchsi4_<code>): ... here.  New patterns.
2060         (cmpsi): Call rx-compare_redundant to find out if it is necessary
2061         to emit the compare instruction.
2062         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2063         cc_status flags.
2064         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2065         FIRST_PSEUDO_REGNUM.
2066         (rx_expand_prologue, rx_expand_epilogue): Likewise.
2067         (rx_notice_update_cc): Delete.
2068         (rx_cc_modes_compatible): New function.
2069         (flags_needed_for_conditional): New function.
2070         (flags_from_mode): New function.
2071         (rx_compare_redundant): New function - scans backwards through
2072         insn list to find out if condition flags are already set correctly.
2073         (TARGET_CC_MODES_COMPATIBLE): Define.
2074         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2075
2076         * config/rx/rx.h (BRANCH_COST): Define.
2077         (REGISTER_MOVE_COST): Define.
2078         * config/rx/predicates (rx_source_operand): Allow all constant types.
2079         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2080         (tstsi4): New pattern.
2081         * config/rx/rx.c (rx_memory_move_cost): Define.
2082         (TARGET_MEMORY_MOVE_COST): Define.
2083
2084 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2085
2086         * tree.h (block_may_fallthru): Declare here.
2087         * tree-flow.h (block_may_fallthru): Do not declare here.
2088         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2089         bitmap.h
2090         * Makefile.in (c-typeck.o): Update dependencies.
2091
2092 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
2093
2094         PR debug/44694
2095         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2096         * cselib.c (cfa_base_preserved_regno): New static variable.
2097         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2098         of REGNO (cfa_base_preserved_val->locs->loc).
2099         (cselib_preserve_cfa_base_value): Add regno argument, set
2100         cfa_base_preserved_regno to it.
2101         (cselib_invalidate_regno): Allow removal of registers other than
2102         cfa_base_preserved_regno from cfa_base_preserved_val.
2103         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2104         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2105         of MEM addresses, if not on LHS.
2106         (reverse_op): Don't add reverse ops for cfa_base_rtx.
2107         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2108
2109 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2110
2111         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2112         static variables.
2113         (peep2_buf_position): New static function.
2114         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2115         peephole2_optimize): Use it.
2116         (peep2_attempt, peep2_update_life): New static functions, broken out
2117         of peephole2_optimize.
2118         (peep2_fill_buffer): New static function.
2119         (peephole2_optimize): Change the main loop to try to fill the buffer
2120         with the maximum number of insns before matching them against
2121         peepholes.  Use a forward scan.  Remove special case for targets with
2122         conditional execution.
2123         * genrecog.c (change_state): Delete dead code.
2124         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2125         Rewrite so as not to expect the second insn to have had a peephole
2126         applied yet.
2127
2128 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2129
2130         * genhooks.c (emit_findices): Cast field precision to int.
2131         (emit_documentation): Likewise.
2132
2133 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
2134
2135         PR tree-optimization/43801
2136         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2137         if old_decl was DECL_ONE_ONLY.
2138
2139         PR debug/44668
2140         * dwarf2out.c (add_accessibility_attribute): New function.
2141         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2142         instead of adding DW_AT_accessibility manually.
2143         (gen_enumeration_type_die, gen_struct_or_union_type_die,
2144         gen_typedef_die): Use it.
2145
2146 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2147
2148         * vmsdbgout.c (full_name): Just output the file name if not native.
2149
2150 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2151
2152         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2153         (funcnam_table): New static table.
2154         (funcnum_table): New static table.
2155         (write_rtnbeg): Write value saved in funcnum_table.
2156         (write_rtnend): Write value saved in funcnum_table.
2157         (vmsdbgout_begin_function): Save current function info in
2158         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2159         (vmsdbgout_finish): Iterate over funcnum_table.
2160
2161 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2162
2163         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2164         (vmsdbgout_type_decl): Declare
2165         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2166         (FUNC_EPILOGUE_LABEL): New macro
2167         (vmsdbgout_begin_epilogue): New function.
2168         (vmsdbgout_type_decl): New function.
2169
2170 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2171
2172         * vmsdbg.h: Update copyright.
2173
2174 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2175
2176         * vmsdbg.h (DST_K_TBG): New DST constant.
2177         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2178         (write_modbeg): Cast module_language to avoid warning.
2179         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2180
2181 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2182
2183         PR other/44034
2184         * target.def, doc/tm.texi.in, genhooks.c: New files.
2185         * target.h: Instead of defining individual hook members,
2186         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2187         include target.def.
2188         * target-def.h: Instead of defining individual hook initializers,
2189         include target-hooks-def.h.
2190         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2191         targetm.live_on_entry -> targetm.extra_live_on_entry
2192         targetm.sched.md_finish ->targetm.sched.finish
2193         targetm.sched.md_init -> targetm.sched.init
2194         targetm.sched.md_init_global -> targetm.sched.init_global
2195         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2196         targetm.asm_out.except_table_label ->
2197           targetm.asm_out.emit_except_table_label
2198         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2199         targetm.target_help -> targetm.help
2200         targetm.vectorize.builtin_support_vector_misalignment ->
2201           targetm.vectorize.support_vector_misalignment
2202         targetm.file_start_app_off -> targetm.asm_file_start_app_off
2203         targetm.file_start_file_directive ->
2204          targetm.asm_file_start_file_directive
2205         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2206         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2207         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2208         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2209           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2210         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2211           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2212         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2213         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2214         * Makefile.in (TARGET_H): Depend on target.def.
2215         (TARGET_DEF_H): Depend on target-hooks-def.h.
2216         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2217         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2218         * doc/tm.texi: Regenerate.
2219
2220         * Makefile.in (s-tm-texi): Remove stray tab / rule.
2221
2222         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2223         (targetm.sched.init): Likewise.
2224
2225 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2226
2227         PR bootstrap/44713
2228         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2229         (function_arg_advance_32): Const-ify TYPE parameter.
2230         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
2231         (ix86_function_arg_advance): Change type of NAMED to bool.
2232         (function_arg_32): Const-ify CUM and TYPE parameters.
2233         (function_arg_64): Likewise.  Change type of NAMED to bool.
2234         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2235         to bool.
2236         (ix86_function_arg): Change type of NAMED to bool.
2237         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
2238         last argument as a bool.
2239
2240 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2241
2242         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2243         (OVERRIDE_OPTIONS): Add note of obsolescence.
2244         Replace references with references to TARGET_OPTION_OVERRIDE.
2245         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2246          the macro).
2247         * targhooks.c (default_target_option_override): New function.
2248         * targhooks.h (default_target_option_override): Declare.
2249         * target.h (struct gcc_target): Add override member to
2250         target_option member.
2251         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2252         targetm.target_option.override call.
2253         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2254         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2255
2256 2010-06-29  Jan Hubicka  <jh@suse.cz>
2257
2258         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2259
2260 2010-06-29  Jan Hubicka  <jh@suse.cz>
2261
2262         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2263         unreachable.
2264         (rebuild_frequencies): New function.
2265         * predict.h (rebuild_frequencies): Declare.
2266         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2267         entry block and edge reaching new_entry.
2268         (tree_function_versioning): When doing partial cloning, rebuild
2269         frequencies when done.
2270         * passes.c (execute_function_todo): Use rebild_frequencies.
2271
2272 2010-06-29  Richard Guenther  <rguenther@suse.de>
2273
2274         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2275         * tree-flow.h (enum noalias_state): Remove.
2276         (struct var_ann_d): Remove noalias_state member.
2277
2278 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2279
2280         PR target/43902
2281         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2282         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
2283         (maddhidi4): Likewise.
2284
2285         Revert parts of the change for PR25130.
2286         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2287         MEM_ALIAS_SET.
2288
2289 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2290
2291         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2292         targetm.calls.function_incoming_arg, and
2293         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2294         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2295         * target.h (struct gcc_target): Add function_arg_advance,
2296         function_arg, and function_incoming_arg fields.
2297         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2298         (TARGET_FUNCTION_INCOMING_ARG): Define.
2299         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2300         and TARGET_FUNCTION_INCOMING_ARG.
2301         * targhooks.h (default_function_arg_advance): Declare.
2302         (default_function_arg, default_function_incoming_arg): Declare.
2303         * targhooks.c (default_function_arg_advance): New function.
2304         (default_function_arg, default_function_incoming_arg): New function.
2305         * config/i386/i386.c (function_arg_advance): Rename to...
2306         (ix86_function_arg_advance): ...this.  Make static.
2307         (function_arg): Rename to...
2308         (ix86_function_arg): ...this.  Make static.
2309         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2310         (TARGET_FUNCTION_ARG): Define.
2311         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2312         (FUNCTION_ARG): Delete.
2313         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2314         (function_arg): Delete prototype.
2315
2316 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2317
2318         * reginfo.c (init_reg_sets_1): Adjust comments.
2319         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2320         * calls.c (prepare_call_address): Likewise.
2321         (emit_call_1): Use targetm.calls.return_pops_args.
2322         (expand_call): Likewise.
2323         * function.c (assign_parms): Likewise.
2324         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2325         * target.h (struct gcc_target) [struct calls]: Add
2326         return_pops_args field.
2327         * targhooks.h (default_return_pops_args): Declare.
2328         * targhooks.c (default_return_pops_args): Define.
2329         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2330         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2331         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2332         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
2333         documentation.
2334         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2335         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2336         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2337         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2338         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2339         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2340         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2341         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2342         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2343         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2344         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2345         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2346         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2347         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2348         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2349         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2350         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2351         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2352         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2353         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2354         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2355         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2356         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2357         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2358         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2359         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2360         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2361         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2362         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2363         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2364         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2365         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2366         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2367         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2368         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2369         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2370         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2371         * config/i386/i386.c (ix86_return_pops_args): Make static.
2372         Constify arguments.
2373         (TARGET_RETURN_POPS_ARGS): Define.
2374         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2375         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
2376         (TARGET_RETURN_POPS_ARGS): Define.
2377         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2378         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
2379         (TARGET_RETURN_POPS_ARGS): Define.
2380
2381 2010-06-29  Richard Guenther  <rguenther@suse.de>
2382
2383         PR middle-end/44667
2384         * tree-inline.c (initialize_inlined_parameters): Make sure
2385         to remap the inlined parameter variable substitutions types.
2386
2387 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2388
2389         PR rtl-optimization/44659
2390         * combine.c (make_compound_operation) <SUBREG>: Do not return the
2391         result of force_to_mode if it partially re-expanded the compound.
2392
2393 2010-06-28  Jan Hubicka  <jh@suse.cz>
2394
2395         PR middle-end/44671
2396         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2397         RESULT_DECL.
2398
2399 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
2400
2401         * double-int.h (force_fit_type_double): Remove declaration.
2402         * double-int.c (force_fit_type_double): Move to tree.c.
2403         * tree.h (force_fit_type_double): Declare.
2404         * tree.h (force_fit_type_double): Moved from double-int.c. Use
2405         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2406         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2407         * convert.c (convert_to_pointer): Adjust call to
2408         force_fit_type_double.
2409         * tree-vrp.c (extract_range_from_assert,
2410         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2411         * fold-const.c: Update comment.
2412         (int_const_binop, fold_convert_const_int_from_int,
2413         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2414         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2415         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2416         round_up_loc): Adjust call to force_fit_type_double.
2417
2418 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2419
2420         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2421
2422 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2423
2424         * tree-sra.c (convert_callers): New parameter, change fndecls of
2425         recursive calls.
2426         (modify_function): Pass the old decl to convert_callers.
2427
2428 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2429
2430         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2431         ipa_check_create_node_params and ipa_initialize_node_params with
2432         checking asserts they are not necessary.
2433
2434 2010-06-28  Jan Hubicka  <jh@suse.cz>
2435
2436         PR tree-optimization/44687
2437         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2438
2439 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2440
2441         PR c++/44535
2442         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2443         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2444         instead of BINFO_BASE_BINFO.
2445
2446 2010-06-28  Michael Matz  <matz@suse.de>
2447
2448         PR middle-end/44592
2449         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2450         proper VDEF chain for intermediate stores in the sequence.
2451
2452 2010-06-28  Jan Hubicka  <jh@suse.cz>
2453
2454         PR tree-optimization/44357
2455         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2456         uninlinable functions.
2457
2458 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2459
2460         * config.gcc (powerpc*-*-*): Handle titan.
2461         * config/rs6000/rs6000.c (titan_cost): New costs.
2462         (rs6000_override_options): Add "titan" to processor_target_table.
2463         Add Titan to branch alignment logic.
2464         Correctly set rs6000_cost for titan.
2465         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
2466         * config/rs6000/titan.md: New file.
2467         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2468
2469 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2470
2471         * tree-browser.c (TB_history_stack): Convert to a VEC.
2472         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2473         (TB_history_prev): Likewise.
2474
2475 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2476
2477         * vec.h (vec_heap_free): Add parentheses around free.
2478
2479 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
2480
2481         * system.h: Poison GCC_EXCEPT_H for front-end files.
2482
2483         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2484         langhook.
2485         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2486         Define to NULL by default.
2487         * except.h: Define GCC_EXCEPT_H.
2488         (doing_eh): Remove prototype.
2489         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2490         (lang_protect_cleanup_actions): Remove.
2491         * except.c (lang_protect_cleanup_actions): Remove.
2492         (doing_eh): Remove.
2493         (gen_eh_region): Don't check doing_eh here.
2494         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2495         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2496         instead of lang_protect_cleanup_actions.
2497         * omp-low.c (maybe_catch_exception): Likewise.
2498         * Makefile.in: Update dependencies.
2499
2500 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
2501
2502         * cgraph.h (struct varpool_node): new used_from_object_file flag.
2503         (struct cgraph_local_info): new used_from_object_file flag.
2504         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2505         (cgraph_clone_node): initialize used_from_object_file.
2506         (cgraph_create_virtual_clone): initialize used_from_object_file.
2507         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2508         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2509         when compiling with -fwhole-program.
2510         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2511         internal resolver.
2512         * ipa.c (function_and_variable_visibility): Set externally_visible
2513         flag of varpool_node if used_from_object_file flag is set.
2514         (cgraph_externally_visible_p): check used_from_object_file flag.
2515         * doc/invoke.texi (-fwhole-program option): Change description of
2516         externally_visible attribute accordingly.
2517         * doc/extend.texi (externally_visible): Ditto.
2518
2519 2010-06-27  Jan Hubicka  <jh@suse.cz>
2520
2521         * params.def (max-inline-insns-auto): Default to 40.
2522         * doc/invoke.texi (max-inline-insns-auto): Document the change.
2523
2524 2010-06-27  Jan Hubicka  <jh@suse.cz>
2525
2526         PR middle-end/44671
2527         PR middle-end/44686
2528         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2529         signature change.
2530         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2531         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2532
2533 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
2534
2535         * target.h (struct gcc_target): Add register_move_cost field.
2536         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2537         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2538         * targhooks.c (default_register_move_cost): New function.
2539         * targhooks.h (default_register_move_cost): Declare function.
2540         * defaults.h (REGISTER_MOVE_COST): Delete.
2541         * ira-int.h (ira_register_move_cost): Update comment.
2542         * ira.c: (ira_register_move_cost): Update comment.
2543         * reload.h (register_move_cost): Declare.
2544         * reginfo.c (register_move_cost): New function.
2545         (move_cost): Update comment.
2546         (init_move_cost, memory_move_secondary_cost): Replace
2547         REGISTER_MOVE_COST with register_move_cost.
2548         * postreload.c (reload_cse_simplify_set): (Ditto.).
2549         * reload.c (find_valid_class, find_reloads): (Ditto.).
2550         * reload1.c (choose_reload_regs): (Ditto.).
2551         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2552         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2553         * doc/md.texi (can_create_pseudo_p): Update documentation.
2554
2555         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2556         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2557         * config/i386/i386.h (ix86_memory_move_cost): Make static.
2558         (TARGET_MEMORY_MOVE_COST): Define.
2559
2560         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2561         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2562         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2563         (TARGET_MEMORY_MOVE_COST): Define.
2564
2565 2010-06-27  Richard Guenther  <rguenther@suse.de>
2566
2567         PR tree-optimization/44683
2568         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2569         false edge from the inverted condition.
2570
2571 2010-06-27  Richard Guenther  <rguenther@suse.de>
2572
2573         PR middle-end/44684
2574         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2575         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2576         for register LHS.  Or non-store assignments.
2577
2578 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2579
2580         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2581         (sparc_emit_set_const64): Likewise.  Remove disabled code.
2582         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2583         (sparc_emit_set_const64): Likewise.
2584
2585 2010-06-26  Catherine Moore  <clm@codesourcery.com>
2586
2587         * config/mips/mips.md (alu_type): New attribute.
2588         (type): Infer type from alu_type.
2589         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2590         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2591         *subsi3_extended, negsi2, negdi2, *low<mode>,
2592         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2593         xor<mode>3, *nor<mode>3,
2594         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2595         *zero_extendhi_truncqi):  Set alu_type instead of type.
2596
2597 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
2598
2599         * config/alpha/alpha.c (alpha_need_linkage): Adjust
2600         splay_tree_new_ggc call.
2601         (alpha_use_linkage): Likewise.
2602
2603 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2604
2605         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2606         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2607         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2608         (static_specs): Remove switches_need_spaces.
2609         (process_command, do_self_spec): Hardcode handling "-o" instead of
2610         checking switches_need_spaces.
2611         * system.h (SWITCHES_NEED_SPACES): Poison.
2612
2613 2010-06-26  Richard Guenther  <rguenther@suse.de>
2614
2615         PR tree-optimization/44393
2616         * tree-loop-distribution.c (generate_loops_for_partition): Fix
2617         stmt removal and VOP renaming.
2618         (generate_memset_zero): Remove redundant stmt updating.
2619         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2620         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2621
2622 2010-06-26  Jan Hubicka  <jh@suse.cz>
2623
2624         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2625         edges comming from header are equivalent.
2626         (visit_bb): Handle PHIs correctly.
2627         * tree-inline.c (copy_phis_for_bb): Be able to copy
2628         PHI from entry edge.
2629         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
2630
2631 2010-06-26  Richard Guenther  <rguenther@suse.de>
2632
2633         PR middle-end/44674
2634         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
2635         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
2636
2637 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2638
2639         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
2640         add_infile, alloc_switch): New.
2641         (process_command): Remove variable lang_n_infiles.  Process
2642         options in a single pass.  Use new functions for allocating
2643         infiles and switches arrays.  Properly skip operands of
2644         -Xpreprocessor and -Xassembler.
2645
2646 2010-06-26  Jan Hubicka  <jh@suse.cz>
2647
2648         PR middle-end/44671
2649         * cgraphunit.c (cgraph_function_versioning): Remove wrong
2650         cgraph_make_decl_local call; fix typo copying RTL data.
2651
2652 2010-06-25  DJ Delorie  <dj@redhat.com>
2653
2654         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
2655         (m32c_output_aligned_common): Likewise.
2656         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
2657         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
2658         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
2659         (m32c_register_pragmas): Register it.
2660         * config/m32c/m32c.c (m32c_get_pragma_address): New.
2661         (m32c_insert_attributes): Set #pragma address decls volatile.
2662         (pragma_entry_eq): New.
2663         (pragma_entry_hash): New.
2664         (m32c_note_pragma_address): New.
2665         (m32c_get_pragma_address): New.
2666         (m32c_output_aligned_common): New.
2667         * doc/extend.texi: Document the new pragma.
2668
2669         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
2670         also.
2671         * config/m32c/predicates.md (m32c_any_operand): Check the code
2672         instead of memory_operand so as to allow matching volatile MEMs.
2673         (m32c_nonimmediate_operand): Likewise.
2674         (mra_operand): Allow volatiles.
2675
2676 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
2677
2678         PR debug/44610
2679         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
2680         address if the offset is unknown.
2681
2682 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
2683
2684         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
2685         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
2686         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
2687         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
2688         to ia64_start_function. Invoke it.
2689         * config/ia64/ia64.c (ia64_start_function): Call new function
2690         dwarf2out_vms_debug_main_pointer.
2691
2692 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2693
2694         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
2695         statements computing the true predicate.
2696
2697 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2698
2699         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
2700         to boolean_true_node.
2701         (reset_bb_predicate): New.
2702         (predicate_bbs): Call reset_bb_predicate.
2703
2704 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2705
2706         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
2707         (tree_if_conversion): Returns true when something has been changed.
2708         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
2709         changed something.
2710
2711 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
2712
2713         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
2714         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
2715         * tree-if-conv.c: Include dbgcnt.h.
2716         (tree_if_conversion): Use if_conversion_tree to count the number of
2717         if-convertible loops.
2718
2719 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
2720
2721         * common.opt (fprefetch-loop-arrays): Re-define
2722         -fprefetch-loop-arrays as a tri-state option with the initial
2723         value of -1.
2724         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
2725         pass only when flag_prefetch_loop_arrays > 0.
2726         * toplev.c (process_options): Note that, with tri-states,
2727         flag_prefetch_loop_arrays>0 means prefetching is enabled.
2728         * config/i386/i386.c (override_options): Enable prefetching at -O3
2729         for a set of CPUs that sw prefetching is helpful.
2730         (software_prefetching_beneficial_p): New.  Return TRUE if software
2731         prefetching is beneficial for the given CPU.
2732
2733 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
2734
2735         PR rtl-optimization/44326
2736         * implicit-zee.c (find_removable_zero_extends): Replace
2737         INSN_P with NONDEBUG_INSN_P.
2738
2739 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2740
2741         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
2742         (struct ipa_node_params): Removed the modification_analysis_done flag.
2743         (ipa_is_param_modified): Removed.
2744         (ipa_analyze_node): Declare.
2745         (ipa_compute_jump_functions): Remove declaration.
2746         (ipa_count_arguments): Likewise.
2747         (ipa_detect_param_modifications): Likewise.
2748         (ipa_analyze_params_uses): Likewise.
2749         * ipa-prop.c (struct param_analysis_info): New type.
2750         (visit_store_addr_for_mod_analysis): Removed.
2751         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
2752         moved down in the file.
2753         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
2754         (ipa_count_arguments): Made static.
2755         (mark_modified): New function.
2756         (is_parm_modified_before_call): New function.
2757         (compute_pass_through_member_ptrs): New parameter parms_info, call
2758         is_parm_modified_before_call instead of ipa_is_param_modified.
2759         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
2760         it to compute_pass_through_member_ptrs.
2761         (ipa_compute_jump_functions): New parameter parms_info, pass it to
2762         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
2763         on the callee if it is analyzed.  Made static.
2764         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
2765         is_parm_modified_before_call instead of ipa_is_param_modified.
2766         (ipa_analyze_call_uses): New parameter parms_info, pass it to
2767         ipa_analyze_indirect_call_uses.
2768         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
2769         ipa_analyze_call_uses.
2770         (ipa_analyze_params_uses): New parameter parms_info, pass it to
2771         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
2772         (ipa_analyze_node): New function.
2773         (ipa_print_node_params): Do not dump the modified flag.
2774         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
2775         it.  Do not stream the modified parameter flag.
2776         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
2777         it.  Do not stream the modified parameter flag.
2778         * ipa-cp.c (ipcp_analyze_node): Removed.
2779         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
2780         with only a call to ipa_analyze_node.
2781         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
2782         node with only a call to ipa_analyze_node.
2783
2784 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2785
2786         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
2787
2788 2010-06-25  Jan Hubicka  <jh@suse.cz>
2789
2790         * tree-pass.h (pass_split_functions): Declare.
2791         * opts.c (decode_options): Enable function splitting at -O2
2792         * timevar.def (TV_IPA_FNSPLIT): New macro.
2793         * ipa-split.c: New file.
2794         * common.opt (-fpartial-inlining): New flag.
2795         * Makefile.in (ipa-split.o): New object file.
2796         * passes.c (init_optimization_passes): Add ipa-split.
2797         * params.def (partial-inlining-entry-probability): New parameters.
2798         * doc/invoke.texi (-fpartial-inlining): New.
2799
2800 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2801
2802         PR 44665
2803         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
2804         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
2805         (gimplify_expr): Likewise.
2806
2807 2010-06-25  Martin Jambor  <mjambor@suse.cz>
2808
2809         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
2810         statements instead of bailing out on them.
2811         (ipa_analyze_indirect_call_uses): Do not require that loads from the
2812         parameter are in the same BB as the condition.  Update comments.
2813
2814 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
2815
2816         PR middle-end/43866
2817         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
2818         true or always false, return NULL_TREE.
2819         (tree_unswitch_single_loop): Optimize conditions even when reaching
2820         max-unswitch-level parameter.  If num > 0, optimize first all conditions
2821         using entry checks, then do still reachable block discovery and consider
2822         only conditions in still reachable basic blocks in the loop.
2823
2824         PR tree-optimization/44539
2825         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
2826         the call doesn't have LHS, but has VDEF.
2827
2828 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2829
2830         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
2831         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
2832         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
2833         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
2834         * system.h (MODIFY_TARGET_NAME): Poison.
2835
2836 2010-06-25  Alan Modra  <amodra@gmail.com>
2837
2838         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
2839         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
2840         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
2841         CMODEL_LARGE as default.
2842         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
2843         (offsettable_ok_by_alignment): Delete.
2844         (rs6000_emit_move): Remove mcmodel=medium optimization.
2845
2846 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2847
2848         With large parts from Jim Wilson:
2849         PR target/43902
2850         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
2851         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2852         * optabs.c (optab_for_tree_code): Likewise.
2853         (expand_widen_pattern_expr): Likewise.
2854         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
2855         out of execute_optimize_widening_mul.
2856         (convert_plusminus_to_widen): New function.
2857         (execute_optimize_widening_mul): Use the two new functions.
2858         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
2859         Remove code to generate widening multiply-accumulate.  Add support
2860         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
2861         * gimple-pretty-print.c (dump_ternary_rhs): New function.
2862         (dump_gimple_assign): Call it when appropriate.
2863         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
2864         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
2865         (expand_gimple_stmt_1): Likewise.
2866         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
2867         WIDEN_MULT_MINUS_EXPR.
2868         * tree-ssa-operands.c (get_expr_operands): Likewise.
2869         * tree-inline.c (estimate_operator_cost): Likewise.
2870         * gimple.c (extract_ops_from_tree_1): Renamed from
2871         extract_ops_from_tree.  Add new arg for a third operand; fill it.
2872         (gimple_build_assign_stat): Support operations with three operands.
2873         (gimple_build_assign_with_ops_stat): Likewise.
2874         (gimple_assign_set_rhs_from_tree): Likewise.
2875         (gimple_assign_set_rhs_with_ops_1): Renamed from
2876         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
2877         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
2878         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
2879         WIDEN_MULT_MINUS_EXPR.
2880         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
2881         (extract_ops_from_tree_1): Adjust declaration.
2882         (gimple_assign_set_rhs_with_ops_1): Likewise.
2883         (gimple_build_assign_with_ops): Pass NULL for last operand.
2884         (gimple_build_assign_with_ops3): New macro.
2885         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
2886         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
2887         functions.
2888         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
2889         (verify_gimple_assign): Call it.
2890         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
2891         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
2892         functions for dealing with three-operand statements.
2893         * tree.c (commutative_ternary_tree_code): New function.
2894         * tree.h (commutative_ternary_tree_code): Declare it.
2895         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
2896         ternary statements.
2897         (gimple_assign_nonzero_warnv_p): Likewise.
2898         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
2899         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
2900         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
2901         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
2902         (struct hashtable_expr): New member ternary in the union.
2903         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
2904         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
2905         (iterative_hash_hashable_expr): Likewise.
2906         (print_expr_hash_elt): Handle EXPR_TERNARY.
2907         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2908         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2909         statements.  Handle GIMPLE_TERNARY_RHS.
2910
2911 2010-06-25  Jan Hubicka  <jh@suse.cz>
2912
2913         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2914
2915 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
2916
2917         PR c/44517
2918         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2919         parameters are not good.
2920         (c_parser_parameter_declaration): Error unknown type name if the type
2921         name can't start declaration specifiers.
2922
2923 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2924
2925         * gcc.c (translate_options): Don't mention +e in comment.
2926         (process_command): Don't handle +e specially.
2927
2928 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2929
2930         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2931
2932         * ira-build.c (merge_hard_reg_conflicts): New function.
2933         (create_cap_allocno, copy_info_to_removed_store_destinations,
2934         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2935         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2936         (remove_unnecessary_allocnos, remove_low_level_allocnos)
2937         copy_nifo_to_removed_store_destination): Use them.
2938         * ira-lives.c (make_hard_regno_born): New function, split out of
2939         make_regno_born.
2940         (make_allocno_born): Likewise.
2941         (make_hard_regno_dead): New function, split out of make_regno_dead.
2942         (make_allocno_dead): Likewise.
2943         (inc_register_pressure): New function, split out of set_allocno_live.
2944         (dec_register_pressure): New function, split out of clear_allocno_live.
2945         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2946         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
2947         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2948         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
2949         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2950         mark_pseudo_regno_live.
2951         (process_bb_node_lives): Use mark_pseudo_regno_live,
2952         make_hard_regno_born and make_allocno_dead.
2953         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2954         set_allocno_live, clear_allocno_live): Delete functions.
2955
2956         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2957         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2958         functions.
2959         (ira_flattening): Use ira_parent_allocno.
2960         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2961         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2962
2963         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2964         statement.
2965
2966         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2967         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2968         minmax_set_iter_cond, minmax_set_iter_next,
2969         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2970         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2971         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2972         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
2973         uses changed.
2974
2975         * ira-int.h (struct live_range, live_range_t): Renamed from struct
2976         ira_allocno_live_range and allocno_live_range_t; all uses changed.
2977         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2978         All uses changed.
2979
2980 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
2981
2982         * thumb2.md (thumb2_tlobits_cbranch): Delete.
2983         (peephole2 to convert zero_extract/compare of single bit to
2984          lshift/compare): New.
2985
2986 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
2987
2988         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2989         recursive call and call to 'int_const_binop'.
2990         (build_range_check, fold_cond_expr_with_comparison, unextend,
2991         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2992         multiple_of_p): Adjust call to const_binop.
2993
2994 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
2995
2996         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2997         determine size of XFmode operand.
2998         (XFmode extended DFmode push splitter): Ditto.
2999         (XFmode extended SFmode push splitter): Ditto.
3000
3001 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3002
3003         PR target/44588
3004         * config/i386/i386.md (extract_code): New.
3005         (<u>divmodqi4): Likewise.
3006         (divmodhiqi3): Likewise.
3007         (udivmodhiqi3): Likewise.
3008         (<u>divqi3): Remvoved.
3009
3010 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
3011
3012         PR middle-end/44492
3013         * recog.h (struct recog_data): Add is_asm field.
3014         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3015         present in constraints of inline-asm operand and memory operand
3016         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3017         (extract_insn): Initialize recog_data.is_asm.
3018         * doc/md.texi (Constraints): Document operand side-effect rules.
3019
3020 2010-06-24  Andi Kleen  <ak@linux.intel.com>
3021
3022         * c-parser.c (c_parser_conditional_expression): Call
3023         warn_for_omitted_condop.
3024         * doc/invoke.texi: Document omitted condop warning.
3025
3026 2010-06-24  Nick Clifton<nickc@redhat.com>
3027
3028         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3029         insn in the sequence is a jump insn before setting its label.
3030
3031 2010-06-24  Alan Modra  <amodra@gmail.com>
3032
3033         * collect2.c (main): Match exactly --version and --help.
3034
3035 2010-06-24  DJ Delorie  <dj@redhat.com>
3036
3037         * config/m32c/m32c-pragma.c: Don't include rtl.h.
3038
3039 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
3040
3041         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3042         using X87MODEF mode iterator.
3043         (pushsf splitter): Macroize splitter using P mode iterator.
3044         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3045         mode iterator.
3046
3047         (*movxf_internal): Rename from *movxf_integer.
3048         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3049         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3050         (*movdf_internal): Rename from *movdf_integer.
3051         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3052         (*movsf_internal): Rename from *movdf_1.
3053
3054 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
3055
3056         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3057         (const_gimple_seq_node): Removed typedefs.
3058
3059         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3060         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3061
3062 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3063
3064         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3065         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3066         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3067         and CODE_FOR_vec_extract_lo_v4df.
3068
3069         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3070         Changed to define_insn_and_split.
3071         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3072         (vec_extract_lo_v16hi): Likewise.
3073         (vec_extract_lo_v32qi): Likewise.
3074         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3075         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3076
3077 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
3078
3079         PR target/44640
3080         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3081         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3082         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3083         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3084         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3085
3086         PR target/44640
3087         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3088
3089         PR other/44644
3090         * df-core.c (struct df): Rename to df_d.
3091         * df.h (struct df): Likewise.
3092         * dse.h (struct df): Remove forward declaration.
3093         * recog.h (struct insn_data): Rename to:
3094         (struct_insn_data_d).  Adjusted all users.
3095
3096 2010-06-23  Arnaud Charlet  <charlet@adacore.com
3097
3098         PR ada/22220
3099         * doc/install.texi: Update requirements to build GNAT.
3100
3101 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
3102
3103         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3104         enum type.
3105         (m68k_sched_attr_opx_type): Remove unreachable return.
3106         (m68k_sched_attr_opy_type): Likewise.
3107         (m68k_sched_attr_size): Likewise.
3108         (sched_get_opxy_mem_type): Likewise.
3109         (m68k_sched_attr_op_mem): Likewise.
3110
3111 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3112
3113         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3114         new statement and adjust VDEF only if necessary.  Remove superfluous
3115         call to maybe_clean_or_replace_eh_stmt.
3116         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3117         copy the flags.
3118         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3119         * tree-inline.c (copy_bb): ...and not there.
3120
3121 2010-06-22  Cary Coutant  <ccoutant@google.com>
3122
3123         * dwarf2out.c (is_nested_in_subprogram): New function.
3124         (should_move_die_to_comdat): Use it.
3125         (copy_ancestor_tree): Don't mark DIEs here.
3126         (copy_decls_walk): Start walk from root of newly-added tree;
3127         mark DIEs here instead.
3128
3129 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3130
3131         * config/i386/i386.md (unit): Also check sseishft1.
3132
3133 2010-06-22  Jan Hubicka  <jh@suse.cz>
3134
3135         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3136         enabled.
3137
3138 2010-06-22  Jan Hubicka  <jh@suse.cz>
3139
3140         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3141         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3142         Return true if something changed.
3143         * df.h (df_confluence_function_n): Return bool.
3144         * df-core.c (df_worklist_propagate_forward,
3145         df_worklist_propagate_backward): Track changes and ages.
3146         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3147         track ages.
3148         * dse.c (dse_confluence_n): Return always true.
3149
3150 2010-06-22  Jan Hubicka  <jh@suse.cz>
3151
3152         * bitmap.c (bitmap_clear_bit): Micro optimize.
3153
3154 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
3155
3156         * config/i386/i386.md (SWI1248x): New mode iterator.
3157         (SWI48x): Ditto.
3158         (SWI12): Ditto.
3159         (SWI24): Ditto.
3160
3161         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3162         SWI1248x mode iterator.
3163         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3164         using SWI124 mode iterator.
3165         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3166         mode iterator.
3167         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
3168         *pushdi2_prologue_rex64 using P mode iterator.
3169         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3170         using SWI48 mode iterator.
3171         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3172         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3173         using SWI1248x mode iterator.
3174         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3175         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3176         SWI48 mode iterator.
3177         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3178         iterator.
3179         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3180         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3181         SWI12 mode iterator.
3182         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3183         SWI12 mode iterator.
3184         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3185         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3186         SWI24 mode iterator.
3187         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3188         SWI48 mode iterator.
3189         (mov<mode>_insn_1): New expander.
3190         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3191         using SWI48x mode iterator.
3192
3193         (*movoi_internal_avx): Rename from *movoi_internal.
3194         (*movti_internal_rex64): Rename from *movti_rex64.
3195         (*movti_internal_sse): Rename from *movti_sse.
3196         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3197         (*movdi_internal): Rename from *movdi_2.
3198         (*movsi_internal): Rename from *movsi_1.
3199         (*movhi_internal): Rename from *movhi_1.
3200         (*movqi_internal): Rename from *movqi_1.
3201
3202         (insv): Update the call to gen_movsi_insv_1 for rename.
3203         * config/i386/i386.c (promote_duplicated_reg): Ditto.
3204
3205 2010-06-22  Jan Hubicka  <jh@suse.cz>
3206
3207         * passes.c (execute_function_todo): Move call of statistics_fini_pass
3208         to ...
3209         (execute_todo) ... this one.
3210
3211 2010-06-22  Alan Modra  <amodra@gmail.com>
3212
3213         PR target/44364
3214         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3215         * caller-save.c (insert_restore, insert_save): Use non-validate
3216         form of adjust_address.
3217
3218 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3219
3220         PR target/39690
3221         * config/pa/pa.c (override_options): Disable
3222         -freorder-blocks-and-partition.
3223
3224 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3225
3226         PR target/44615
3227         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3228
3229         * config/i386/i386.md (type): Add sseishft1
3230
3231         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3232         (ppro_insn_load): Likewise.
3233         (ppro_insn_store): Likewise.
3234         (ppro_insn_both): Likewise.
3235
3236         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3237         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3238         for type.
3239         (*vec_extractv2di_1_avx): Likewise.
3240         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3241         type.  Remove atom_unit.
3242         (*vec_extractv2di_1_sse2): Likewise.
3243
3244 2010-06-21  DJ Delorie  <dj@redhat.com>
3245
3246         * diagnostic.h (diagnostic_classification_change_t): New.
3247         (diagnostic_context): Add history and push/pop list.
3248         (diagnostic_push_diagnostics): Declare.
3249         (diagnostic_pop_diagnostics): Declare.
3250         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3251         from pragmas in a history chain instead of the global table.
3252         (diagnostic_push_diagnostics): New.
3253         (diagnostic_pop_diagnostics): New.
3254         (diagnostic_report_diagnostic): Scan history chain to find state
3255         of diagnostics as of the diagnostic location.
3256         * opts.c (set_option): Pass UNKNOWN_LOCATION to
3257         diagnostic_classify_diagnostic.
3258         (enable_warning_as_error): Likewise.
3259         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3260         use in the history chain.
3261         * doc/extend.texi: Document pragma GCC diagnostic changes.
3262
3263 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
3264
3265         * dwarf2out.c (add_linkage_name): New function.  Don't add
3266         anything to DW_TAG_member DIEs.
3267         (add_name_and_src_coords_attributes): Use it.
3268         (gen_variable_die): Call it for C++ static data members if
3269         specification is DW_TAG_member.
3270
3271         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3272         C++ char16_t and char32_t.
3273
3274         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3275         * genattrtab.c: Include vecprim.h.
3276         (cached_attrs, cached_attr_count, attrs_seen_once,
3277         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3278         attrs_cached_after): New variables.
3279         (find_attrs_to_cache): New function.
3280         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3281         (write_test_expr): Add attrs_cached argument, return it too,
3282         attempt to cache non-const attributes used more than once in
3283         a single case handling.
3284         (write_attr_get): Use find_attrs_to_cache, for caching candidates
3285         emit cached_* variables.  Adjust write_attr_set callers.
3286         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3287         to find attributes that should be cached in this block.  Adjust
3288         write_test_expr callers.
3289         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
3290         callers.
3291         (make_automaton_attrs): Adjust write_test_expr caller.
3292
3293         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3294         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3295         (make_automaton_attrs): If find_tune_attr returns non-NULL,
3296         write separate internal_dfa_insn_code_* and insn_default_latency_*
3297         functions for each attribute's value and emit init_sched_attrs
3298         function and function pointers.
3299         * genattr.c (const_attrs, reservations): New variables.
3300         (gen_attr): Add const attributes to const_attrs vector.
3301         (check_tune_attr, find_tune_attr): New functions.
3302         (main): Add reservations to reservations vector.  If find_tune_attr
3303         returns true, add prototype for init_sched_attrs and make
3304         internal_dfa_insn_code and insn_default_latency function pointers,
3305         otherwise define init_sched_attrs as dummy macro.
3306         * cfgexpand.c: Include insn-attr.h.
3307         (gimple_expand_cfg): Call init_sched_attrs.
3308
3309         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3310
3311         PR target/44575
3312         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3313         va_arg from a set of register save slots into a temporary,
3314         if the container is bigger than type size, do the copying
3315         using smaller mode or using memcpy.
3316
3317         PR bootstrap/44426
3318         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3319         prototype.
3320         (sel_print_to_dot): Remove macro.
3321         (sel_print): Likewise.  New prototype.
3322         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3323         (sel_print): New function.
3324
3325 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3326
3327         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3328         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3329
3330 2010-06-21  Nick Clifton  <nickc@redhat.com>
3331
3332         * config/rx/rx.h (PTRDIFF_TYPE): Define.
3333         (SMALL_REGISTER_CLASS): Define (to zero).
3334         (PRINT_OPERAND): Delete.
3335         (PRINT_OPERAND_ADDRESS): Delete.
3336         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3337         (rx_print_operand_address): Delete prototype.
3338         * config/rx/rx.c (rx_print_operand): Make static.
3339         Allow %H and %L to handle CONST_DOUBLEs.
3340         (rx_print_operand_address): Make static.
3341         (rx_gen_move_template): Rename local variable 'template' to
3342         out_template.
3343         (rx_function_arg): Do not pass unknown sized objects in registers.
3344         (TARGET_PRINT_OPERAND): Define.
3345         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3346
3347 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3348
3349         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3350
3351 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
3352
3353         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3354         stack-alignment for simple leaf-functions.
3355
3356 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
3357
3358         * doc/install.texi: Document bootstrap-lto.
3359
3360 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
3361
3362         PR debug/44248
3363         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3364         (input_function): Drop them here, if VTA is disabled.
3365
3366 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
3367
3368         PR target/44546
3369         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3370         New predicate.
3371         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3372         ix86_swapped_fp_comparsion_operator instead of
3373         ix86_fp_comparison_operator.
3374
3375         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3376         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3377         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3378         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3379         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3380         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3381
3382 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
3383
3384         PR other/32998
3385         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3386         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3387         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3388         (decode_cmdline_option): Update for this return value.  Set
3389         orig_option_with_args_text field.  Set arg field for unknown
3390         options.  Make static.
3391         (decode_cmdline_options_to_array): New.
3392         (prune_options): Update handling of find_opt return value.
3393         * opts.c (read_cmdline_option): Take decoded option.  Return void.
3394         (read_cmdline_options): Take decoded options.
3395         (decode_options): Add parameters for decoded options.  Use
3396         decode_cmdline_options_to_array.  Use decoded options for -O
3397         scan.  Use integral_argument for -O parameters.  Update call to
3398         read_cmdline_options.
3399         (enable_warning_as_error): Update handling of find_opt return value.
3400         * opts.h: Update comment on unknown options.
3401         (struct cl_decoded_option): Update comments on opt_index and arg.
3402         Add orig_option_with_args_text.
3403         (decode_cmdline_option): Remove.
3404         (decode_cmdline_options_to_array): Declare.
3405         (decode_options): Update prototype.
3406         * toplev.c (save_argv): Remove.
3407         (save_decoded_options, save_decoded_options_count): New.
3408         (read_integral_parameter): Remove.
3409         (print_switch_values): Use decoded options.
3410         (toplev_main): Don't set save_argv.  Update call to decode_options.
3411         * toplev.h (read_integral_parameter): Remove.
3412         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3413
3414 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
3415
3416         PR target/44072
3417         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3418         immediate.
3419         * constraints.md (Pw, Px): New constraints.
3420         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3421
3422 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
3423
3424         * config/i386/sse.md (fma4modesuffixf4): Removed.
3425         (ssemodesuffixf2s): Likewise.
3426         (ssemodesuffixf4): Likewise.
3427         (ssemodesuffixf2c): Likewise.
3428         (ssescalarmodesuffix2s): Likewise.
3429         (avxmodesuffixf2c): Likewise.
3430         (ssemodesuffix): New.
3431         (ssescalarmodesuffix): Likewise.
3432         Update patterns with ssemodesuffix and ssescalarmodesuffix.
3433
3434 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
3435
3436         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3437
3438 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3439
3440         * stor-layout.c (debug_rli): Remove unused local variables.
3441
3442 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3443
3444         PR rtl-optimization/40900
3445         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
3446         original expression for later reuse.
3447         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3448         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3449
3450 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
3451
3452         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3453         double_int_fits_in_uhwi_p): Implement as static inline.
3454         (double_int_xor): New inline function.
3455         (double_int_lrotate, double_int_rrotate, double_int_max,
3456         double_int_umax, double_int_smax, double_int_min, double_int_umin,
3457         double_int_smin): Declare.
3458         (lrotate_double, rrotate_double): Remove declaration.
3459         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3460         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3461         (double_int_lrotate, double_int_rrotate, double_int_max,
3462         double_int_umax, double_int_smax, double_int_min, double_int_umin,
3463         double_int_smin): New function.
3464         * fold-const.c (int_const_binop): Clean up, use double_int_*
3465         functions.
3466         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3467         double_int_* and immed_double_int_const functions.
3468
3469 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3470
3471         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3472         * function.c (types_used_by_cur_var_decl): Likewise.
3473         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3474
3475 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3476
3477         * tree.h (record_layout_info): Change type of pending_statics field
3478         to a VEC.
3479         * stor-layout.c (start_record_layout): Store NULL into
3480         pending_statics.
3481         (debug_rli): Call debug_vec_tree instead of debug_tree.
3482         (place_field): Likewise.
3483         (finish_record_layout): Likewise.
3484
3485 2010-06-18  Alan Modra  <amodra@gmail.com>
3486
3487         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3488
3489 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3490
3491         PR target/43740
3492         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3493         for SET source operand from SET destination operand.
3494
3495 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
3496
3497         PR rtl-optimization/39871
3498         * reload1.c (init_eliminable_invariants): For flag_pic, disable
3499         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3500         (function_invariant_p): Rule out a plus of frame or arg pointer with
3501         a SYMBOL_REF.
3502         * ira.c (find_reg_equiv_invariant_const): Likewise.
3503
3504 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
3505
3506         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3507         print_operand_address and puts to output the operand for CONST.
3508
3509 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
3510
3511         PR debug/44572
3512         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3513         hook.
3514
3515 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3516
3517         * v850-protos.h (print_operand): Delete.
3518         (print_operand_address): Delete.
3519         * v850.h (PRINT_OPERAND): Delete.
3520         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3521         (PRINT_OPERAND_ADDRESS): Delete.
3522         * v850.c (print_operand_address): Rename to...
3523         (v850_print_operand_address): ...this.  Make static. Call
3524         v850_print_operand.
3525         (print_operand): Rename to...
3526         (v850_print_operand): ...this.  Make static.  Call
3527         v850_print_operand_address.
3528         (v850_print_operand_punct_valid_p): New function.
3529         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3530         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3531
3532 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3533
3534         * config/sh/sh-protos.h (print_operand): Delete.
3535         (print_operand_address): Delete.
3536         * config/sh/sh.h (PRINT_OPERAND): Delete.
3537         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3538         (PRINT_OPERAND_ADDRESS): Delete.
3539         * config/sh/sh.c (sh_print_operand_address): Make static.
3540         (sh_print_operand): Make static.  Call sh_print_operand_address
3541         and sh_print_operand.
3542         (sh_print_operand_punct_valid_p): New function.
3543         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3544         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3545
3546 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3547
3548         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3549         (mcore_print_operand_address): Delete.
3550         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3551         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3552         (PRINT_OPERAND_ADDRESS): Delete.
3553         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3554         (mcore_print_operand): Make static.
3555         (mcore_print_operand_punct_valid_p): New function.
3556         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3557         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3558
3559 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3560
3561         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3562         (print_operand_address): Delete.
3563         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3564         (PRINT_OPERAND_ADDRESS): Delete.
3565         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3566         static.
3567         (m68hc11_print_operand): Make static.
3568         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3569
3570 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3571
3572         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3573         (m32r_print_operand_address): Delete.
3574         * config/m32r/m32r.h (m32r_punct_chars): Delete.
3575         (PRINT_OPERAND): Delete.
3576         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3577         (PRINT_OPERAND_ADDRESS): Delete.
3578         * config/m32r/m32r.c (m32r_punct_chars): Make static.
3579         (m32r_print_operand_address): Make static.
3580         (m32r_print_operand): Make static.
3581         (m32r_print_operand_punct_valid_p): New function.
3582         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3583         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3584
3585 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3586
3587         * config/iq2000/iq2000-protos.h (print_operand): Delete.
3588         (print_operand_address): Delete.
3589         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3590         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3591         (PRINT_OPERAND_ADDRESS): Delete.
3592         (iq2000_print_operand_punct): Delete.
3593         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3594         (iq2000_print_operand_address): Make static.
3595         (iq2000_print_operand): Make static.
3596         (iq2000_print_operand_punct_valid_p): New function.
3597         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3598         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3599
3600 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3601
3602         * config/frv/frv-protos.h (frv_print_operand): Delete.
3603         (frv_print_operand_address): Delete.
3604         * config/frv/frv.h (PRINT_OPERAND): Delete.
3605         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3606         (PRINT_OPERAND_ADDRESS): Delete.
3607         * config/frv/frv.c (frv_print_operand_address): Make static.
3608         (frv_print_operand): Make static.
3609         (frv_print_operand_punct_valid_p): New function.
3610         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3611         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3612
3613 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3614
3615         * tree.h (vec_member): Declare.
3616         * tree.c (vec_member): Define.
3617
3618 2010-06-17  Richard Guenther  <rguenther@suse.de>
3619
3620         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3621         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3622
3623 2010-06-17  Richard Guenther  <rguenther@suse.de>
3624
3625         * tree-inline.c (declare_return_variable): Remove bogus code.
3626
3627 2010-06-17  Richard Guenther  <rguenther@suse.de>
3628
3629         * gimplify.c (gimplify_bind_expr): Always promote complex
3630         and vector variables to registers if possible.
3631
3632 2010-06-17  Richard Guenther  <rguenther@suse.de>
3633
3634         * expr.c (get_inner_reference): Use double_int for bit_offset
3635         calculation.
3636
3637 2010-06-16  DJ Delorie  <dj@redhat.com>
3638
3639         * common.opt (-fstrict-volatile-bitfields): new.
3640         * doc/invoke.texi: Document it.
3641         * fold-const.c (optimize_bit_field_compare): For volatile
3642         bitfields, use the field's type to determine the mode, not the
3643         field's size.
3644         * expr.c (expand_assignment): Likewise.
3645         (get_inner_reference): Likewise.
3646         (expand_expr_real_1): Likewise.
3647         * expmed.c (store_fixed_bit_field): Likewise.
3648         (extract_bit_field_1): Likewise.
3649         (extract_fixed_bit_field): Likewise.
3650
3651 2010-06-16  Richard Guenther  <rguenther@suse.de>
3652
3653         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
3654
3655 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
3656
3657         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
3658         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
3659         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
3660         * debug.c: Likewise.
3661         * sdbout.c: Likewise.
3662         * vmsdbgout.c: Likewise.
3663         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
3664         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
3665         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
3666         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
3667         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
3668         * dwarf2out.c (dw_fde_struct): New fields
3669         dw_fde_vms_{end,begin}_prologue.
3670         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
3671         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
3672         (dwarf2out_vms_end_prologue): New function.
3673         (dwarf2out_vms_begin_epilogue): New function.
3674         (dw_val_struct): New value dw_val_class_vms_delta.
3675         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
3676         begin_epilogue for VMS.
3677         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
3678         new static functions.
3679         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
3680         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
3681         static functions.
3682         (print_die): New case dw_val_class_vms_delta.
3683         (attr_checksum): Likewise.
3684         (same_dw_val_p: Likewise.
3685         (size_of_die): Likewise.
3686         (value_format): Likewise.
3687         (output_die): Likewise.
3688         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
3689         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
3690         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
3691         dwarf2out_cfi_begin_epilogue
3692         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
3693
3694 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3695
3696         * config/cris/cris-protos.h (cris_print_operand): Delete.
3697         (cris_print_operand_address): Delete.
3698         * config/cris/cris.h (PRINT_OPERAND): Delete.
3699         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3700         (PRINT_OPERAND_ADDRESS): Delete.
3701         * config/cris/cris.c (cris_print_operand_address): Make static.
3702         (cris_print_operand): Make static.
3703         (cris_print_operand_punct_valid_p): New function.
3704         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3705         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3706
3707 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
3708
3709         * config/arm/arm-protos.h (arm_print_operand): Delete.
3710         (arm_print_operand_address): Delete.
3711         * config/arm/arm.h (PRINT_OPERAND): Delete.
3712         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3713         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
3714         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
3715         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
3716         (arm_print_operand): Make static.
3717         (arm_print_operand_punct_valid_p): New function.
3718         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3719         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3720
3721 2010-06-16  Nick Clifton  <nickc@redhat.com>
3722
3723         * config/rx/constraints.md (NEGint4): New constraint.
3724         * config/rx/rx.md (attr cc): Add set_zsc.
3725         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
3726         initialised.
3727         (cmpsf): Likewise.
3728         (call_internal): Clobber the cc0 register.
3729         (call_value_internal): Likewise.
3730         (cstoresi4): Likewise.
3731         (movsieq): Likewise.
3732         (movsine): Likewise.
3733         (addsi3): Add alternative to handle small negative constants.
3734         (sunsi3): Likewise.
3735         (addsi3): Do not set the O bit in the cc0 register.
3736         (adddi3): Likewise.
3737         (subsi3): Likewise.
3738         (subdi3): Likewise.
3739         (andsi3): Reorder alternatives to prefer shorter forms.
3740         (mulsi3): Likewise.
3741         (iorsi3): Likewise.
3742         (negsi2): Note that the cc0 flags are set.
3743         (rotlsi3): Note that only the Z and S bits are set in cc0.
3744         (lshrsi3): Likewise.
3745         (ashlsi3): Likewise.
3746         (subsf3): Use %Q for the MEM operand.
3747         (fix_truncsfsi2): Likewise.
3748         (floatsisf2): Likewise.
3749         (bitset): Remove early clobber from destination.
3750         (bitset_in_memory): Likewise.
3751         (lrintsf2): Clobber the cc0 register.
3752         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
3753         (rx_print_operand): Handle %N.
3754
3755 2010-06-16  Jan Hubicka  <jh@suse.cz>
3756
3757         * df-core.c (df_compact_blocks): Free problem_temps vector.
3758
3759 2010-06-16  Martin Jambor  <mjambor@suse.cz>
3760
3761         PR tree-optimization/43905
3762         * tree-sra.c: Include tree-inline.h.
3763         (create_abstract_origin): Removed.
3764         (modify_function): Version the call graph node instead of creating
3765         abstract origins and dealing with same_body aliases.
3766         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
3767         function is versionable.
3768         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
3769
3770 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
3771
3772         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
3773         (CHOOSE_DYNAMIC_LINKER): Update.
3774
3775 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
3776
3777         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
3778         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
3779         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
3780         *prefetch_3dnow_rex.
3781
3782 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
3783
3784         * target.h (struct asm_out):Add declare_constant_name field.
3785         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3786         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
3787         * output.h (default_asm_declare_constant_name): Declare.
3788         (assemble_label): Update prototype.
3789         * varasm.c (assemble_constant_contents): Use
3790         targetm.asm_out.declare_constant_name target hook.
3791         (assemble_label): Add 'file' argument.
3792         (default_asm_declare_constant_name): New function.
3793         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
3794         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
3795         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
3796
3797         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
3798         * config/darwin.c (darwin_asm_declare_constant_name): New function.
3799         (machopic_output_indirection): Update assemble_label argument list.
3800         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
3801         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
3802
3803 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
3804
3805         PR middle-end/44391
3806         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
3807         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
3808
3809 2010-06-15  Richard Guenther  <rguenther@suse.de>
3810
3811         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
3812
3813 2010-06-15  Paul Brook  <paul@codesourcery.com>
3814
3815         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
3816         hard-float ABI.
3817
3818 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
3819
3820         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
3821         don't get a vector type for output.
3822
3823 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
3824
3825         PR fortran/44536
3826         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
3827         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
3828         (LANG_HOOKS_DECLS): Add it.
3829         * gimplify.c (omp_notice_variable): Call
3830         lang_hooks.decls.omp_report_decl.
3831
3832 2010-06-15  Martin Jambor  <mjambor@suse.cz>
3833
3834         PR lto/44464
3835         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
3836         on the newly dead SSA name.
3837
3838 2010-06-15  Alan Modra  <amodra@gmail.com>
3839
3840         * doc/invoke.texi: Add mcmodel to powerpc options.
3841         * configure.ac: Add HAVE_LD_LARGE_TOC test.
3842         * configure: Regenerate.
3843         * config.in: Regenerate.
3844         * config/rs6000/linux64.opt (mcmodel): New.
3845         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
3846         (TARGET_CMODEL, SET_CMODEL): Define.
3847         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
3848         select CMODEL_MEDIUM default.
3849         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
3850         (TARGET_CMODEL): Define default.
3851         * config/rs6000/rs6000.c (cmodel): New variable.
3852         (rs6000_explicit_options): Add cmodel field.
3853         (rs6000_handle_option): Handle -mcmodel.
3854         (create_TOC_reference): Add largetoc_reg param.  Generate high,
3855         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
3856         (rs6000_delegitimize_address): Recognise new toc reference rtl
3857         and minimal-toc rtl.
3858         (rs6000_legitimize_reload_address): Handle new toc references.
3859         (print_operand_address): Handle legitimate_constant_pool_address_p
3860         match before lo_sum.
3861         (rs6000_eliminate_indexed_memrefs): Tidy.
3862         (rs6000_emit_move): Tweak threshold for inlining constants.
3863         Keep rs6000_emit_allocate_stack large stack frame offsets
3864         loaded into r0 inline.
3865         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
3866         (tocrel_base, tocrel_offset): New variables.
3867         (toc_relative_expr_p): Set them here.
3868         (print_operand_address): Skip over any offset on constant pool address.
3869         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
3870         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
3871         (offsettable_ok_by_alignment): New function.
3872         (rs6000_emit_move): Address suitably aligned local symbol_refs
3873         relative to the toc pointer for -mcmodel=medium.
3874         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
3875         strict param.  Allow lo_sum version of addressing.  Verify reg
3876         used for -mminimal-toc and -mcmodel != small.  Update all callers.
3877         * config/rs6000/constraints.md: Update for above change.
3878         * config/rs6000/predicates.md: Likewise.
3879         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
3880         code.
3881         (tls_gd): Split for -mcmodel=medium/large.
3882         (tls_gd_high, tls_gd_low): New.
3883         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
3884         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
3885         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
3886         (largetoc_high, largetoc_low): New.
3887         (cmptf_internal2): Add clobber.
3888         * config/rs6000/rs6000-protos.h: Update.
3889
3890 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
3891
3892         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
3893         true if no prefetch is going to be generated for a given group.
3894         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
3895         estimate the prefetch_count.
3896         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
3897         prefetch count by considering the unroll_factor and prefetch_mod
3898         for is_loop_prefetching_profitable.
3899
3900 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
3901
3902         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
3903         anything if the argument is not a MEM.
3904
3905 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3906
3907         PR debug/43650
3908         PR debug/44181
3909         PR debug/44247
3910         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3911         debug stmts.
3912         (canonicalize_loop_ivs): Likewise.
3913
3914 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3915
3916         PR debug/43656
3917         * haifa-sched.c (setup_insn_reg_pressure_info,
3918         update_register_pressure): Reject debug insns.
3919         (ready_sort): Don't setup reg pressure for debug insns.
3920         (schedule_insn): Don't update reg pressure for debug insns.
3921
3922 2010-06-14  Richard Guenther  <rguenther@suse.de>
3923
3924         * lto-streamer.c (cached_bp): Remove.
3925         (bitpack_delete): Likewise.
3926         (bitpack_create): Likewise.
3927         (bp_get_next_word): Likewise.
3928         (bp_pack_value, bp_unpack_value): Move ...
3929         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3930         Re-implement.
3931         (struct bitpack_d): Likewise.
3932         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3933         New inline functions.
3934         * lto-streamer-out.c (lto_output_bitpack): Remove.
3935         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3936         (pack_value_fields): Adjust.
3937         (lto_write_tree): Likewise.
3938         (output_gimple_stmt): Likewise.
3939         (output_function): Likewise.
3940         * lto-streamer-in.c (input_gimple_stmt): Adjust.
3941         (input_function): Likewise.
3942         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3943         (lto_input_bitpack): Remove.
3944         (lto_materialize_tree): Adjust.
3945         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3946         * lto-cgraph.c (lto_output_edge): Adjust.
3947         (lto_output_node): Likewise.
3948         (lto_output_varpool_node): Likewise.
3949         (lto_output_ref): Likewise.
3950         (input_node): Likewise.
3951         (input_varpool_node): Likewise.
3952         (input_ref): Likewise.
3953         (input_edge): Likewise.
3954         (output_node_opt_summary): Likewise.
3955         (input_node_opt_summary): Likewise.
3956         * ipa-pure-const.c (pure_const_write_summary): Likewise.
3957         (pure_const_read_summary): Likewise.
3958         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3959         (ipa_read_indirect_edge_info): Likewise.
3960         (ipa_write_node_info): Likewise.
3961         (ipa_read_node_info): Likewise.
3962
3963 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3964
3965         PR target/44534
3966         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3967         (vec_extract_lo_v16hi): Likewise.
3968         (vec_extract_lo_v32qi): Likewise.
3969
3970 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3971
3972         PR bootstrap/44426
3973         * tree.h (build_call_expr): Don't define as vararg macro, instead
3974         add a prototype.
3975         * builtins.c (build_call_nofold): Remove.
3976         (expand_builtin_int_roundingfn, expand_builtin_pow,
3977         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3978         expand_builtin_memset_args, expand_builtin_strcmp,
3979         expand_builtin_strncmp, expand_builtin_memory_chk): Use
3980         build_call_nofold_loc instead of build_call_nofold.
3981         (build_call_expr): New function.
3982
3983         PR tree-optimization/44508
3984         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3985         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3986         don't eliminate trivially dead stmts.
3987         * tree-vrp.c (vrp_finalize): Pass false as last argument
3988         to substitute_and_fold.
3989         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3990         to substitute_and_fold.
3991         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3992
3993         PR bootstrap/44509
3994         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3995
3996 2010-06-14  Ira Rosen  <irar@il.ibm.com>
3997
3998         PR tree-optimization/44507
3999         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4000         to build initial vector for BIT_AND_EXPR.
4001         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4002
4003 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4004
4005         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4006         adjust z10prop set_attr.
4007
4008 2010-06-13  Jan Hubicka  <jh@suse.cz>
4009
4010         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4011         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4012         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4013         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4014         datastructure checks into checking asserts.
4015         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4016         * tree-ssa-sccvn.c (VN_INFO): Likewise.
4017         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4018         df_ref_create_structure): Likewise.
4019         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4020         pool_free): Use gcc_checking_assert.
4021         * alias.c (get_alias_set): Likewise.
4022         * var-tracking.c (variable_htab_free, shared_hash_copy,
4023         canonicalize_values_mark, variable_merge_over_cur): Likewise.
4024         * lto-streamer.c (bp_unpack_value): Likewise.
4025
4026 2010-06-13  Richard Guenther  <rguenther@suse.de>
4027
4028         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4029         Do not stream but initialize TYPE_CANONICAL to NULL.
4030         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4031         * gimple.c (gimple_types_compatible_p): Disregard
4032         TYPE_STRUCTURAL_EQUALITY_P.
4033         (gimple_register_type): Use TYPE_CANONICAL as cache.
4034         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4035         before registering common types.
4036         * config/i386/i386.c (ix86_function_arg_boundary): Do not
4037         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4038         * tree.h (TYPE_CANONICAL): Clarify documentation.
4039
4040 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
4041
4042         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4043         LIBCALL_VALUE): Remove macros.
4044         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4045         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4046         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4047         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4048         (ia64_function_value): Make static. Handle receiving the function
4049         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4050
4051 2010-06-12  Jan Hubicka  <jh@suse.cz>
4052
4053         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4054         at correct place.
4055
4056 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
4057
4058         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4059
4060 2010-06-12  Jan Hubicka  <jh@suse.cz>
4061
4062         * df-core.c (df_clear_bb_info): New function.
4063         (df_set_blocks): bb_info is always allocated.
4064         (df_get_bb_info): Use block_info_elt_size.
4065         (df_set_bb_info): Likewise.
4066         (df_compact_blocks): Update for new block_info.
4067         (grow_bb_info): New function.
4068         * df-problems.c (df_grow_bb_info): Move to df-core.c
4069         (df_rd_set_bb_info): Remove.
4070         (df_rd_free_bb_info): Do not free block pool.
4071         (df_rd_alloc): Do not create pool, use check for
4072         obstack presence instead of NULL pointer for new blocks.
4073         (df_rd_free): DO not free alloc pool; clear block_info.
4074         (problem_RD): Add size of block info structure.
4075         (df_lr_set_bb_info): Remove.
4076         (df_lr_free_bb_info): Do not free block pool.
4077         (df_lr_alloc): Do not create pool, use check for
4078         obstack presence instead of NULL pointer for new blocks.
4079         (df_lr_free): DO not free alloc pool; clear block_info.
4080         (problem_LR): Add size of block info structure.
4081         (df_live_set_bb_info): Remove.
4082         (df_live_free_bb_info): Do not free block pool.
4083         (df_live_alloc): Do not create pool, use check for
4084         obstack presence instead of NULL pointer for new blocks.
4085         (df_live_free): DO not free alloc pool; clear block_info.
4086         (problem_LIVE): Add size of block info structure.
4087         (problem_CHAIN): Add size of block info structure.
4088         (df_byte_lr_set_bb_info): Remove.
4089         (df_byte_lr_free_bb_info): Do not free block pool.
4090         (df_byte_lr_alloc): Do not create pool, use check for
4091         obstack presence instead of NULL pointer for new blocks.
4092         (df_byte_lr_free): DO not free alloc pool; clear block_info.
4093         (problem_BYTE_LR): Add size of block info structure.
4094         (problem_NOTE): Add size of block info structure.
4095         (df_byte_MD_set_bb_info): Remove.
4096         (df_byte_MD_free_bb_info): Do not free block pool.
4097         (df_byte_MD_alloc): Do not create pool, use check for
4098         obstack presence instead of NULL pointer for new blocks.
4099         (df_byte_MD_free): DO not free alloc pool; clear block_info.
4100         (problem_BD): Add size of block info structure.
4101         * df-scan.c (df_scan_free_internal): Free block pool.
4102         (df_scan_set_bb_info): Remove.
4103         (df_scan_free_bb_info): Check for artificial_defs instead
4104         of bb_info being non-NULL.
4105         (df_scan_alloc): DO not create df_scan_block pool.
4106         (problem_SCAN): Set size of block info.
4107         (df_bb_refs_record): Do not allocate bb_info.
4108         * df.h (df_problem): Add block_info_elt_size.
4109         (struct dataflow): Change block_info to void *.
4110         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4111         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4112         in-line structures.
4113
4114 2010-06-12  Jan Hubicka  <jh@suse.cz>
4115
4116         PR tree-optimize/44485
4117         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4118         containing use of return value of noreturn function.
4119
4120 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
4121
4122         * targhooks.c (default_function_value): Don't use
4123         FUNCTION_OUTGOING_VALUE.
4124         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4125         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4126
4127 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
4128
4129         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4130         Add crtfastmath.o to extra_parts.
4131         * config/mips/crtfastmath.c: New.
4132         * config/mips/linux.h (ENDFILE_SPEC): New.
4133
4134 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
4135
4136         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4137         old_type in parameter.
4138         (gcc_type_for_value): Update call to gcc_type_for_interval.
4139         (compute_type_for_level_1): Renamed compute_type_for_level.
4140         Update call to gcc_type_for_interval.
4141
4142 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4143
4144         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4145         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4146
4147 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4148
4149         * opts-common.c: Include options.h.
4150         (integral_argument): Move from opts.c.
4151         (decode_cmdline_option): New.  Based on read_cmdline_option.
4152         * opts.c (integral_argument): Move to opts-common.c.
4153         (read_cmdline_option): Move most contents to
4154         decode_cmdline_option.  Use %qs in diagnostics.
4155         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4156         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4157         decode_cmdline_option): New.
4158
4159 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4160
4161         PR target/44481
4162         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4163         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4164         (partiysi2_cmp): Ditto.
4165         (*partiyhi2_cmp): Ditto.
4166         (*parityqi2_cmp): Remove.
4167
4168 2010-06-11  Jan Hubicka  <jh@suse.cz>
4169
4170         * bitmap.h (bmp_iter_next_bit): New.
4171         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4172
4173 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
4174             Eric Botcazou  <ebotcazou@adacore.com>
4175
4176         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4177         computed cost.
4178
4179 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4180
4181         * config/i386/i386.md (unspec): New define_c_enum.
4182         (unspecv): Ditto.
4183
4184 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4185
4186         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4187
4188 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
4189
4190         PR middle-end/44483
4191         * tree-if-conv.c (bb_predicate_s): New struct.
4192         (bb_predicate_p): New.
4193         (bb_has_predicate): New.
4194         (bb_predicate): New.
4195         (set_bb_predicate): New.
4196         (bb_predicate_gimplified_stmts): New.
4197         (set_bb_predicate_gimplified_stmts): New.
4198         (add_bb_predicate_gimplified_stmts): New.
4199         (init_bb_predicate): New.
4200         (free_bb_predicate): New.
4201         (is_predicated): Use bb_predicate.
4202         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4203         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
4204         before processing their successors.
4205         (clean_predicate_lists): Removed.
4206         (find_phi_replacement_condition): Use bb_predicate.
4207         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
4208         computations.
4209         (insert_gimplified_predicates): New.
4210         (combine_blocks): Call insert_gimplified_predicates.
4211         (tree_if_conversion): Call free_bb_predicate instead of
4212         clean_predicate_lists.
4213
4214 2010-10-11  Paul Brook  <paul@codesourcery.com>
4215
4216         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4217         * config/arm/arm.c (all_architectures): Change v7e-m default to
4218         cortexm4.
4219         * config/arm/arm-cores.def: Add cortex-m4.
4220         * config/arm/arm-tune.md: Regenerate.
4221
4222 2010-06-11  Jan Hubicka  <jh@suse.cz>
4223
4224         * ipa-pure-const.c (special_builtlin_state): New function.
4225         (check_call): Use it instead of special casign BUILT_IN_RETURN.
4226         (propagate_pure_const): Use it.
4227
4228 2010-06-11  Jan Hubicka  <jh@suse.cz>
4229
4230         * df-problems.c (df_live_scratch): Convert to bitmap_head.
4231         (df_live_alloc): Initialize df_live_scratch when initializing
4232         problem_data.
4233         (df_live_transfer_function): Update uses of df_live_scratch.
4234         (df_live_free): Free problem_data; clear df_live_scratch before
4235         releasing the obstack.
4236         (df_md_free): Free problem data.
4237
4238 2010-06-11  Jan Hubicka  <jh@suse.cz>
4239
4240         * doc/invoke.texi (Wsuggest-attribute): Document.
4241         (Wmissing-noreturn): Remove.
4242         * ipa-pure-const.c (warn_function_noreturn): New function.
4243         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4244         warn_missing_noreturn.
4245         * common.opt (Wsuggest-attribute=noreturn): New.
4246         * tree-flow.h (warn_function_noreturn): Declare.
4247         * tree-cfg.c (execute_warn_function_noreturn): Use
4248         warn_function_noreturn.
4249         (gate_warn_function_noreturn): New.
4250         (pass_warn_function_noreturn): Update.
4251
4252 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4253
4254         * c-typeck.c (handle_warn_cast_qual): Add loc
4255         parameter. Improve warning message.
4256         (build_c_cast): Pass location to handle_warn_cast_qual.
4257
4258 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4259
4260         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4261         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
4262         insn mnemonic.
4263         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4264
4265 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
4266
4267         Fix bootstap on mips
4268         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4269         be naming typedefs.
4270
4271 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
4272
4273         * system.h (helper_const_non_const_cast): New inline for
4274         gcc version <= 4.0.
4275         (CONST_CAST2): For gcc version <= 4.0 use
4276         new helper to do const/non-const casting.
4277
4278 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4279
4280         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4281         * Makefile.in (OBJS-common): Include insn-enums.o.
4282         (insn-enums.o): New rule.
4283         (simple_generated_c): Add insn-enums.c.
4284         (build/genenums.o): New rule.
4285         (genprogmd): Add "enums".
4286         * genconstants.c (print_enum_type): Declare a C string array
4287         for each enum.
4288         * genenums.c: New file.
4289         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4290         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
4291         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4292
4293 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4294
4295         * doc/md.texi (define_enum_attr): Document.
4296         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4297         * read-md.h (lookup_enum_type): Declare.
4298         * read-md.c (lookup_enum_type): New function.
4299         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4300         * genattrtab.c (attr_desc): Add an enum_name field.
4301         (evaluate_eq_attr): Take the associated attribute as argument.
4302         Get the enum prefix from the enum_name field, if defined.
4303         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
4304         (simplify_test_exp): Pass attr to evaluate_eq_attr.
4305         (add_attr_value): New function, split out from...
4306         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
4307         (write_test_expr): Pass attr to evaluate_eq_attr.
4308         (write_attr_get): Use the enum_name as the enum tag, if defined.
4309         (write_attr_valueq): Use the enum_name as a prefix, if defined.
4310         (find_attr): Initialize enum_name.
4311         (main): Handle DEFINE_ENUM_ATTR.
4312         * gensupport.c (process_rtx): Likewise.
4313         * config/mips/mips.h (mips_tune_attr): Delete.
4314         * config/mips/mips.md (cpu): Use define_attr_enum.
4315
4316 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4317
4318         * doc/md.texi (define_c_enum, define_enum): Document.
4319         * read-md.h (md_constant): Add a parent_enum field.
4320         (enum_value, enum_type): New structures.
4321         (upcase_string, traverse_enum_types): Declare.
4322         * read-md.c (enum_types): New variable.
4323         (upcase_string, add_constant): New functions.
4324         (handle_constants): Don't create the hash table here.
4325         Use add_constant.
4326         (traverse_md_constants): Don't check for a null md_constants.
4327         (decimal_string, handle_enum, traverse_enum_types): New functions.
4328         (read_md_files): Initialize md_constants and md_enums.
4329         * genconstants.c (print_md_constant): Ignore info argument.
4330         Only print constants that belong to no enum.
4331         (print_enum_type): New function.
4332         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
4333         for each defined enum type.
4334         * config/mips/mips.md (processor): New define_enum.
4335         (unspec): New define_c_enum.
4336         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4337         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4338         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4339         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4340         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4341         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4342         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4343         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4344         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4345         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4346         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4347         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4348         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4349         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4350         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4351         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4352         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4353         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4354         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4355         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4356         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4357         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4358         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4359         (UNSPEC_RDDSP): Move to mips-dsp.md.
4360         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4361         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4362         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4363         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4364         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4365         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4366         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4367         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4368         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4369         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4370         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4371         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4372         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4373         Moved to mips-dspr2.md.
4374         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4375         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4376         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4377         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4378         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4379         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4380         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4381         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4382         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4383         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4384         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4385         UNSPEC_LOONGSON_PSADBH)
4386         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4387         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4388         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4389         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4390         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4391         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4392         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4393         (cpu): Update comment.
4394         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4395         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4396         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4397         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4398         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4399         UNSPEC_LOONGSON_PCMPEQ)
4400         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4401         UNSPEC_LOONGSON_PINSR_0)
4402         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4403         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4404         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4405         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4406         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4407         UNSPEC_LOONGSON_PSADBH)
4408         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4409         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4410         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4411         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4412         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4413         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4414         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4415         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4416         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4417         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4418         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4419         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4420         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4421         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4422         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4423         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4424         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4425         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4426         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4427         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4428         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4429         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4430         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4431         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4432         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4433         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4434         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4435         (UNSPEC_RDDSP): Moved from mips.md.
4436         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4437         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4438         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4439         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4440         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4441         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4442         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4443         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4444         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4445         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4446         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4447         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4448         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4449         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4450         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4451         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4452         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4453         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4454         (UNSPEC_SCC): Moved from mips.md.
4455         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4456         "processor_type" to "processor".
4457         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4458         * config/mips/mips.h (processor_type): Delete.
4459         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4460         "processor_type" to "processor".
4461
4462 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4463
4464         * configure.ac (tm_include_list): Add insn-constants.h.
4465         * configure: Regenerate.
4466         * Makefile.in (GTM_H): Move insn-constants.h here from...
4467         (TM_H): ...here.
4468         * mkconfig.sh: Remove special handling for insn-constants.h.
4469
4470 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4471
4472         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4473         (BUILD_MD): ...this new variable.
4474         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4475         that include the old contents of simple_generated_h and
4476         simple_generated_c.
4477         (simple_generated_h, simple_generated_c): Include them.  Add
4478         insn-constants.h.
4479         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4480         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4481         Remove these dependencies from the main rule and include
4482         insn-conditions.md in the command line only if it appears
4483         in the dependency list.
4484         (insn-constants.h, s-constants): Delete.
4485         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4486         or gensupport.h.
4487         (build/genmddeps.o): Likewise.
4488         (genprogrtl): New variable that contains everything from genprogmd
4489         except mddeps and constants.
4490         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
4491         depend on $(BUILD_MD)
4492         (genprog): New variable.  Make these programs depend on
4493         $(BUILD_ERRORS).
4494         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4495         (main): Use read_md_files instead of init_rtx_reader_args.
4496         * genconstants.c: As for genmddeps.c.
4497         * read-md.h (read_skip_construct): Declare.
4498         * read-md.c (read_skip_construct): New function.
4499         (handle_file): Allow a null handle_directive, skipping the
4500         construct if so.
4501         (parse_include): Update the comment accordingly.
4502
4503 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4504
4505         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4506         * genmddeps.c: Include read-md.h.
4507         (main): Call init_rtx_reader_args instead of init_md_reader_args.
4508         * genattr.c (main): Likewise.
4509         * genattrtab.c (main): Likewise.
4510         * genautomata.c (main): Likewise.
4511         * gencodes.c (main): Likewise.
4512         * genconditions.c (main): Likewise.
4513         * genconfig.c (main): Likewise.
4514         * genconstants.c (main): Likewise.
4515         * genemit.c (main): Likewise.
4516         * genextract.c (main): Likewise.
4517         * genflags.c (main): Likewise.
4518         * genopinit.c (main): Likewise.
4519         * genoutput.c (main): Likewise.
4520         * genpeep.c (main): Likewise.
4521         * genrecog.c (main): Likewise.
4522         * genpreds.c (main): Likewise.
4523         * gensupport.h (in_fname): Move to read-md.h.
4524         (init_md_reader_args_cb): Rename to...
4525         (init_rtx_reader_args_cb): ...this and return a bool.
4526         (init_md_reader_args): Rename to...
4527         (init_rtx_reader_args): ...this and return a bool.
4528         (include_callback): Move to read-md.h.
4529         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4530         (file_name_list, first_dir_md_include): Move to read-md.c
4531         (first_bracket_include): Delete unused variable.
4532         (last_dir_md_include): Move to read-md.c.
4533         (process_include): Delete, moving code to read-md.c:handle_include.
4534         (process_rtx): Don't handle INCLUDE.
4535         (save_string): Delete.
4536         (rtx_handle_directive): New function.
4537         (init_md_reader_args_cb): Rename to...
4538         (init_rtx_reader_args_cb): ...this and return a boolean success value.
4539         Use read_md_args.
4540         (init_md_reader_args): Rename to...
4541         (init_rtx_reader_args): ...this and return a boolean success value.
4542         * rtl.def (INCLUDE): Delete.
4543         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
4544         argument.
4545         * read-rtl.c (read_conditions): Don't gobble ')' here.
4546         (read_mapping): Likewise.
4547         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
4548         Handle top-level non-rtx constructs here rather than in read_rtx_1.
4549         Store the whole queue in *X.  Remove call to init_md_reader.
4550         (read_rtx_1): Rename to...
4551         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
4552         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
4553         here.
4554         (read_nested_rtx): New function.  Handle (nil) here rather than
4555         in read_rtx_code.
4556         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
4557         gobble ')' here.
4558         * read-md.h (directive_handler_t): New type.
4559         (in_fname, include_callback): Moved from read-md.h.
4560         (read_constants, init_md_reader): Delete.
4561         (read_md_files): Declare.
4562         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4563         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4564         from gensupport.c.
4565         (read_constants): Rename to...
4566         (handle_constants): ...this.  Don't gobble ')' here.
4567         (handle_include, handle_file, handle_toplevel_file)
4568         (parse_include): New functions, mostly taken from gensupport.c.
4569         (init_md_reader): Subsume into...
4570         (read_md_files): ...this new function.
4571
4572 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4573
4574         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4575         (unread_char): Decrement read_md_lineno after putting back '\n'.
4576         * read-md.c (fatal_with_file_and_line): Push back any characters
4577         that we decide not to add to the context.
4578         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
4579         fatal_expected_char in cases where '/' ends a line (for example).
4580         (read_name): Don't increment read_md_lineno here.
4581         (read_escape): Likewise.
4582         (read_quoted_string): Likewise.
4583         (read_braced_string): Likewise.
4584
4585 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4586
4587         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4588         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4589         * genconstants.c: Include read-md.h.
4590         * read-rtl.c (md_constants): Move to read-md.c.
4591         (md_name): Move to read-md.h.
4592         (initialize_iterators): Use leading_string_hash instead of def_hash
4593         and leading_string_eq_p instead of def_name_eq_p.
4594         (read_name): Move to read-md.c.
4595         (def_hash, def_name_eq_p): Delete.
4596         (read_constants, traverse_md_constants): Move to read-md.c.
4597         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4598         * read-md.h: Include hashtab.h.
4599         (md_name): Moved from read-rtl.c.
4600         (md_constant): Moved from read-md.h.
4601         (leading_string_hash, leading_string_eq_p, read_name)
4602         (read_constants, traverse_md_constants): Declare.
4603         * read-md.c (md_constants): Moved from read-rtl.c.
4604         (leading_string_hash, leading_string_eq_p): New functions.
4605         (read_name, read_constants, traverse_md_constants): Moved from
4606         read-rtl.c.
4607
4608 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4609
4610         * read-rtl.c (md_name): New structure.
4611         (read_name): Take an md_name instead of a buffer pointer.
4612         Use the "string" field instead of strcpy when expanding constants.
4613         (read_constants): Remove the tmp_char argument.  Update the calls
4614         to read_name, using two local name buffers instead of the tmp_char
4615         argument.  Merge the constant-creation code.
4616         (read_conditions): Remove the tmp_char argument.  Update the calls
4617         to read_name, using a local name buffer instead of the tmp_char
4618         argument.
4619         (read_mapping): Replace tmp_char variable with a local name buffer.
4620         Update the calls to read_name.
4621         (read_rtx_1): Likewise.  Update the calls to read_constants and
4622         read_conditions.
4623
4624 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4625
4626         * Makefile.in (build/read-md.o): Depend on errors.h.
4627         * read-md.h (error_with_line): Declare.
4628         * read-md.c: Include errors.h.
4629         (message_with_line_1): New function, extracted from...
4630         (message_with_line): ...here.
4631         (error_with_line): New function.
4632         * genattrtab.c: If a call to message_with_line is followed by
4633         "have_error = 1;", replace both statements with a call to
4634         error_with_line.
4635         * genoutput.c: Likewise.
4636         * genpreds.c: Likewise.
4637         * genrecog.c: If a call to message_with_line is followed by
4638         "error_count++;", replace both statements with a call to
4639         error_with_line.
4640         (errorcount): Delete.
4641         (main): Don't check it.
4642         * gensupport.c: If a call to message_with_line is followed by
4643         "errors = 1;", replace both statements with a call to error_with_line.
4644         (errors): Delete.
4645         (process_define_cond_exec): Check have_error instead of errors.
4646         (init_md_reader_args_cb): Likewise.  Don't set errors.
4647
4648 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4649
4650         * read-md.h (read_md_file): Declare.
4651         (read_char, unread_char): New functions.
4652         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4653         (read_quoted_string, read_string): Remove FILE * argument.
4654         * read-md.c (read_md_file): New variable.
4655         (read_md_filename, read_md_lineno): Update comments and remove
4656         unnecessary initialization.
4657         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
4658         (read_escape, read_quoted_string, read_braced_string, read_string):
4659         Remove FILE * argument.  Update calls accordingly, using read_char
4660         and unread_char instead of getc and ungetc.
4661         * rtl.h (read_rtx): Remove FILE * argument.
4662         * read-rtl.c (iterator_group): Remove FILE * argument from
4663         "find_builtin".
4664         (iterator_traverse_data): Remove "infile" field.
4665         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
4666         (add_mapping, read_name, read_constants, read_conditions)
4667         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
4668         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
4669         Remove file arguments from all calls, using read_char and unread_char
4670         instead of getc and ungetc.
4671         * gensupport.c (process_include): Preserve read_md_file around
4672         the include.  Set read_md_file to the handle of the included file.
4673         Update call to read_rtx.
4674         (init_md_reader_args_cb): Set read_md_file to the handle of the file
4675         and remove local FILE *.  Update calls to read_rtx.
4676
4677 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4678
4679         * read-md.h (read_rtx_lineno): Rename to...
4680         (read_md_lineno): ...this.
4681         (read_rtx_filename): Rename to...
4682         (read_md_filename): ...this.
4683         (copy_rtx_ptr_loc): Rename to...
4684         (copy_md_ptr_loc): ...this.
4685         (print_rtx_ptr_loc): Rename to...
4686         (print_md_ptr_loc): ...this.
4687         * read-md.c: Likewise.  Update references after renaming.
4688         (string_obstack): Replace RTL with MD in comment.
4689         (set_rtx_ptr_loc): Rename to...
4690         (set_md_ptr_loc): ...this.
4691         (get_rtx_ptr_loc): Rename to...
4692         (get_md_ptr_loc): ...this.
4693         * genconditions.c: Update references after renaming.
4694         * genemit.c: Likewise.
4695         * genoutput.c: Likewise.
4696         * genpreds.c: Likewise.
4697         * gensupport.c: Likewise.
4698         * read-rtl.c: Likewise.
4699
4700 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4701
4702         * Makefile.in (READ_MD_H): New variable.
4703         (BUILD_RTL): Add build/read-md.o.
4704         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
4705         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
4706         (build/genattrtab.o, build/genconditions.o build/genemit.o)
4707         (build/genextract.o, build/genflags.o, build/genoutput.o)
4708         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
4709         (build/read-md.o): New rule.
4710         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
4711         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
4712         * coretypes.h: ...here.
4713         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
4714         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
4715         * genattr.c: Include read-md.h.
4716         * genattrtab.c: Likewise.
4717         * genconditions.c: Likewise.
4718         * genemit.c: Likewise.
4719         * genextract.c: Likewise.
4720         * genflags.c: Likewise.
4721         * genoutput.c: Likewise.
4722         * genpreds.c: Likewise.
4723         * genrecog.c: Likewise.
4724         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
4725         (join_c_conditions, print_c_condition, read_rtx_filename)
4726         (read_rtx_lineno): Move to read-md.h.
4727         * read-rtl.c: Include read-md.h.
4728         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
4729         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
4730         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
4731         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
4732         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
4733         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
4734         (read_braced_string, read_string): Move to read-md.c.
4735         (read_rtx): Move some initialization to init_md_reader and call
4736         init_md_reader here.
4737         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
4738         Move to read-md.h.
4739         * gensupport.c: Include read-md.h.
4740         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
4741         * read-md.h, read-md.c: New files.
4742
4743 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
4744
4745         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4746         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4747         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
4748         * config/moxie/moxie.c (moxie_function_value): Make static.
4749         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
4750         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4751
4752 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4753
4754         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
4755         * dbgcnt.def (tree_sra): New counter.
4756         * tree-sra.c: Include dbgcnt.h.
4757         (gate_intra_sra): Check tree_sra debug counter.
4758
4759 2010-06-10  Martin Jambor  <mjambor@suse.cz>
4760
4761         PR tree-optimization/44258
4762         * tree-sra.c (build_access_subtree): Return false iff there is a
4763         partial overlap.
4764         (build_access_trees): Likewise.
4765         (analyze_all_variable_accesses): Disqualify candidates if
4766         build_access_trees returns true for them.
4767
4768 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
4769
4770         PR debug/41371
4771         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
4772         tail-recurse into canonical node.  Fast-forward over
4773         non-canonical VALUEs.
4774
4775 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
4776
4777         PR boostrap/44470
4778         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
4779         (*addsi_1_zext) <TYPE_LEA>: Likewise.
4780         (add lea splitter): Likewise.
4781         (add_zext lea splitter): Likewise.
4782
4783 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
4784
4785         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
4786
4787 2010-06-10  Jan Hubicka  <jh@suse.cz>
4788
4789         * df-problems.c (df_live_problem_data): Add live_bitmaps.
4790         (df_live_alloc): Initialize problem data and live_osbtacks.
4791         (df_live_finalize): Remove obstack, problem data; do not
4792         clear all bitmaps.
4793         (df_live_top_dump, df_live_bottom_dump): Do not dump old
4794         data when not allocated.
4795         (df_live_verify_solution_start): Do not allocate problem data.
4796         (df_live_verify_solution_end): Check if out is allocated.
4797         (struct df_md_problem_data): New structure.
4798         (df_md_alloc): Allocate problem data.
4799         (df_md_free): Free problem data; do not clear bitmaps.
4800
4801 2010-06-10  Jan Beulich  <jbeulich@novell.com>
4802
4803         PR bootstrap/37304
4804         * configure.ac: Replace $() with ${} when intending to expand
4805         variables rather than invoking commands.
4806         * configure: Re-generate.
4807
4808 2010-06-10  Jan Hubicka  <jh@suse.cz>
4809
4810         PR rtl-optimization/44460
4811         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
4812         TYPE_NEEDS_CONSTRUCTING sanity check.
4813
4814 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
4815
4816         * doc/include/fdl.texi: Move to GFDL version 1.3.
4817
4818         * doc/cpp.texi: Move to GFDL version 1.3.
4819         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
4820         * doc/gccint.texi: Move to GFDL version 1.3.
4821         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
4822         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
4823         * doc/invoke.texi: Move to GFDL version 1.3.
4824
4825 2010-06-09  Jan Hubicka  <jh@suse.cz>
4826
4827         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
4828         Break out from ...
4829         (propagate) ... here; swap the order.
4830
4831 2010-06-09  Jan Hubicka  <jh@suse.cz>
4832
4833         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
4834         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
4835         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
4836         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
4837
4838 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4839
4840         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
4841         Do not the gather memory reference in the outer loop if the step
4842         is not a constant.
4843
4844 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
4845
4846         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
4847         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
4848         8 to 4.  Minor change of the related comments.
4849
4850 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4851
4852         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
4853         the scev analysis when the variable is not used outside the loop
4854         in a close phi node: call compute_overall_effect_of_inner_loop.
4855
4856 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4857
4858         * graphite-sese-to-poly.c (single_pred_cond): Renamed
4859         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
4860         (build_sese_conditions_before): Renamed call to single_pred_cond.
4861         (build_sese_conditions_after): Same.
4862
4863 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
4864
4865         * graphite-poly.h: Fix comments and indentation.
4866         * graphite-sese-to-poly.c: Same.
4867         (build_sese_conditions_before): Compute stmt and gbb only when needed.
4868         * tree-chrec.c: Fix comments and indentation.
4869         (tree-ssa-loop-niter.c): Same.
4870
4871 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
4872
4873         PR rtl-optimization/42461
4874         * dce.c (deletable_insn_p): Return true for const or pure calls again.
4875         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
4876
4877 2010-06-09  Jan Hubicka  <jh@suse.cz>
4878
4879         * bitmap.c (bitmap_and): Walk array forward.
4880         (bitmap_and_compl_into): Likewise.
4881         (bitmap_xor): Likewise.
4882         (bitmap_xor_into):  Likewise.
4883         (bitmap_equal_p): Likewise.
4884         (bitmap_intersect_p): Likewise.
4885         (bitmap_intersect_compl_p): Likewise.
4886         (bitmap_ior_and_into): Likewise.
4887         (bitmap_elt_copy): Likewise.
4888         (bitmap_and_compl): Likewise.
4889         (bitmap_elt_ior): Likewise.
4890
4891 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
4892
4893         * opts-common.c (prune_options): Ensure replacement argv array
4894         is correctly terminated by a NULL entry.
4895
4896 2010-06-09  Jan Hubicka  <jh@suse.cz>
4897
4898         * cgraph.h (varpool_first_static_initializer,
4899         varpool_next_static_initializer): Make checking only when
4900         checking enabled.
4901         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
4902         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
4903         gcc_assert to gcc_checking_assert.
4904         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
4905         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4906         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4907         op_iter_init_phiuse, op_iter_init_phidef,
4908         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4909         gcc_checking_assert.
4910         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4911         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4912         partition_is_global, live_on_entry, live_on_exit,
4913         live_merge_and_clear): Likewise.
4914         * system.h (gcc_checking_assert): New macro.
4915         * gimple.h (set_bb_seq): Use gcc_checking_assert.
4916
4917 2010-06-09  Jason Merrill  <jason@redhat.com>
4918
4919         * Makefile.in (TAGS): Collect tags info from c-family.
4920
4921 2010-06-09  Jan Hubicka  <jh@suse.cz>
4922
4923         * gimple.h (gcc_gimple_checking_assert): New macro.
4924         (gimple_set_def_ops, gimple_set_use_ops,
4925         gimple_set_vuse, gimple_set_vdef,
4926         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4927         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4928         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4929         gimple_asm_output_op, gimple_asm_output_op_ptr,
4930         gimple_asm_set_output_op, gimple_asm_clobber_op,
4931         gimple_asm_set_clobber_op, gimple_asm_label_op,
4932         gimple_asm_set_label_op, gimple_try_set_kind,
4933         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4934         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4935         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4936         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4937         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4938         gimple_omp_for_set_initial, gimple_omp_for_final,
4939         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4940         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4941         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4942         conditional with ENABLE_GIMPLE_CHECKING.
4943         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4944
4945 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
4946
4947         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4948         (get_computation_cost_at): Use it.
4949         (determine_use_iv_cost_condition): Likewise.
4950         (determine_iv_cost): Likewise.
4951
4952 2010-06-09  Richard Guenther  <rguenther@suse.de>
4953
4954         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4955         replace constants.
4956
4957 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
4958
4959         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4960
4961 2010-06-09  Martin Jambor  <mjambor@suse.cz>
4962
4963         PR tree-optimization/44423
4964         * tree-sra.c (dump_access): Dump also grp_assignment_read.
4965         (analyze_access_subtree): Pass negative allow_replacements to children
4966         if the current type is scalar.
4967
4968 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4969
4970         PR testsuite/42843
4971         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4972         * doc/plugins.texi (Plugin license check): Update information
4973         on type of plugin_is_GPL_compatible.
4974         * Makefile.in (PLUGINCC): Define as $(COMPILER).
4975         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4976
4977 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
4978
4979         * config/arm/arm.c (thumb2_reorg): New function.
4980         (arm_reorg): Call it.
4981         * config/arm/thumb2.md (define_peephole2 for flag clobbering
4982         arithmetic operations): Delete.
4983
4984 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
4985
4986         PR target/44067
4987         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4988         e500v2 target.
4989
4990 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4991
4992         PR plugins/44459
4993         * gcc-plugin.h: Encapsulate all declarations in extern "C".
4994
4995 2010-06-08  Jan Hubicka  <jh@suse.cz>
4996
4997         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4998         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4999
5000 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
5001
5002         PR tree-optimization/39874
5003         PR middle-end/28685
5004         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5005         Declare.
5006         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5007         same_bool_result_p): New.
5008         (and_var_with_comparison, and_var_with_comparison_1,
5009         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5010         (or_var_with_comparison, or_var_with_comparison_1,
5011         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5012         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5013         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5014         of combine_comparisons.
5015         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5016
5017 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
5018
5019         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5020         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5021         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5022         pdp11_function_value_regno_p): New functions.
5023         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5024         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5025
5026 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
5027
5028         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5029         Thumb-2 in the MINUS case.
5030
5031 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5032
5033         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5034
5035         * doc/gty.texi (GTY Options): Document typed GC allocation and
5036         variable_size GTY option.
5037
5038         * ggc-internal.h: New.
5039
5040         * ggc.h: Update copyright year.
5041         (digit_string): Move to stringpool.c.
5042         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5043         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5044         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5045         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5046         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5047         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5048         (ggc_force_collect, ggc_get_size, ggc_statistics)
5049         (ggc_print_common_statistics): Move to ggc-internal.h.
5050         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5051         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5052         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5053         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5054         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5055         (ggc_alloc_zone_pass_stat): Remove.
5056         (ggc_internal_alloc_stat, ggc_internal_alloc)
5057         (ggc_internal_cleared_alloc_stat): New.
5058         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5059         (ggc_internal_vec_alloc_stat)
5060         (ggc_internal_cleared_vec_alloc_stat)
5061         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5062         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5063         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5064         (ggc_cleared_alloc_ptr_array_two_args): New.
5065         (htab_create_ggc, splay_tree_new_ggc): Redefine.
5066         (ggc_splay_alloc): Change the type of the first argument to
5067         enum gt_types_enum.
5068         (ggc_alloc_string): Make macro.
5069         (ggc_alloc_string_stat): New.
5070         (ggc_strdup): Redefine.
5071         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5072         (ggc_alloc_rtvec_sized): New.
5073         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5074         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5075         (ggc_internal_cleared_alloc_zone_stat)
5076         (ggc_internal_zone_alloc_stat)
5077         (ggc_internal_zone_cleared_alloc_stat)
5078         (ggc_internal_zone_vec_alloc_stat)
5079         (ggc_alloc_zone_rtx_def_stat)
5080         (ggc_alloc_zone_tree_node_stat)
5081         (ggc_alloc_zone_cleared_tree_node_stat)
5082         (ggc_alloc_cleared_gimple_statement_d_stat): New.
5083
5084         * ggc-common.c: Include ggc-internal.h.
5085         (ggc_internal_cleared_alloc_stat): Rename from
5086         ggc_alloc_cleared_stat.
5087         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5088         (ggc_calloc): Remove.
5089         (ggc_cleared_alloc_htab_ignore_args): New.
5090         (ggc_cleared_alloc_ptr_array_two_args): New.
5091         (ggc_splay_alloc): Add obj_type parameter.
5092         (init_ggc_heuristics): Formatting fixes.
5093
5094         * ggc-none.c: Update copyright year.
5095         (ggc_alloc_stat): Rename to ggc_alloc_stat.
5096         (ggc_alloc_cleared_stat): Rename to
5097         ggc_internal_cleared_alloc_stat.
5098         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5099
5100         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
5101         Remove references to ggc_alloc in comments.
5102         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5103         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5104         (new_ggc_zone, destroy_ggc_zone): Remove.
5105         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5106
5107         * ggc-zone.c: Include ggc-internal.h.  Remove references to
5108         ggc_alloc in comments.
5109         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5110         (ggc_internal_alloc_zone_pass_stat): New.
5111         (ggc_internal_cleared_alloc_zone_stat): New.
5112         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5113         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5114         (new_ggc_zone, destroy_ggc_zone): Remove.
5115
5116         * stringpool.c: Update copyright year.  Include ggc-internal.h
5117         (digit_vector): Make static.
5118         (digit_string): Moved from ggc.h.
5119         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5120         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5121
5122         * Makefile.in (GGC_INTERNAL_H): New.
5123         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5124         $(GGC_INTERNAL_H) to dependencies.
5125
5126         * gentype.c: Update copyright year.
5127         (walk_type): Accept variable_size GTY option.
5128         (USED_BY_TYPED_GC_P): New macro.
5129         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
5130         whitespace at the end of strings.
5131         (get_type_specifier, variable_size_p): New functions.
5132         (alloc_quantity, alloc_zone): New enums.
5133         (write_typed_alloc_def): New function.
5134         (write_typed_struct_alloc_def): Likewise.
5135         (write_typed_typed_typedef_alloc_def): Likewise.
5136         (write_typed_alloc_defns): Likewise.
5137         (output_typename, write_splay_tree_allocator_def): Likewise.
5138         (write_splay_tree_allocators): Likewise.
5139         (main): Call write_typed_alloc_defns and
5140         write_splay_tree_allocators.
5141
5142         * lto-streamer.h (lto_file_decl_data_ptr): New.
5143
5144         * passes.c (order): Define using cgraph_node_ptr.
5145
5146         * strinpool.c (struct string_pool_data): Declare nested_ptr using
5147         ht_identifier_ptr.
5148
5149         * gimple.h (union gimple_statement_d): Likewise.
5150
5151         * rtl.h (struct rtx_def): Likewise.
5152         (struct rtvec_def): Likewise.
5153
5154         * tree.h (union tree_node): Likewise.
5155
5156         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5157
5158         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5159
5160         * tree-scalar-evolution.c (scev_initialize): Likewise.
5161
5162         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5163
5164         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5165
5166         * omp-low.c (lower_omp_critical): Likewise.
5167
5168         * bitmap.h (struct bitmap_head_def): Update comment to not
5169         reference ggc_alloc.
5170
5171         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5172
5173         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5174
5175         * ipa-prop.c (duplicate_ggc_array): Rename to
5176         duplicate_ipa_jump_func_array.  Use typed GC allocation.
5177         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5178
5179         * gimple.c (gimple_alloc_stat): Use
5180         ggc_alloc_cleared_gimple_statement_d_stat.
5181
5182         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5183
5184         * tree.c (make_node_stat): Use
5185         ggc_alloc_zone_cleared_tree_node_stat.
5186         (make_tree_vec_stat): Likewise.
5187         (build_vl_exp_stat): Likewise.
5188         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5189         (make_tree_binfo_stat): Likewise.
5190         (tree_cons_stat): Likewise.
5191
5192         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5193         (shallow_copy_rtx_stat): Likewise.
5194         (make_node_stat): Likewise.
5195
5196         * lto-symtab.c: Fix comment.
5197
5198         * tree-cfg.c (create_bb): Update comment to not reference
5199         ggc_alloc_cleared.
5200         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5201
5202         * varpool.c (varpool_node): Use typed GC allocation.
5203         (varpool_extra_name_alias): Likewise.
5204
5205         * varasm.c (emutls_decl): Likewise.
5206         (get_unnamed_section): Likewise.
5207         (get_noswitch_section): Likewise.
5208         (get_section): Likewise.
5209         (get_block_for_section): Likewise.
5210         (build_constant_desc): Likewise.
5211         (create_constant_pool): Likewise.
5212         (force_const_mem): Likewise.
5213
5214         * tree.c (build_vl_exp_stat): Likewise.
5215         (build_real): Likewise.
5216         (build_string): Likewise.
5217         (decl_debug_expr_insert): Likewise.
5218         (decl_value_expr_insert): Likewise.
5219         (type_hash_add): Likewise.
5220         (build_omp_clause): Likewise.
5221
5222         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5223
5224         * tree-ssa.c (init_tree_ssa): Likewise.
5225
5226         * tree-ssa-structalias.c (heapvar_insert): Likewise.
5227
5228         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5229
5230         * tree-ssa-loop-niter.c (record_estimate): Likewise.
5231
5232         * tree-ssa-alias.c (get_ptr_info): Likewise.
5233
5234         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5235
5236         * tree-phinodes.c (allocate_phi_node): Likewise.
5237
5238         * tree-iterator.c (tsi_link_before): Likewise.
5239         (tsi_link_after): Likewise.
5240
5241         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5242
5243         * tree-dfa.c (create_var_ann): Likewise.
5244
5245         * tree-cfg.c (create_bb): Likewise.
5246
5247         * toplev.c (alloc_for_identifier_to_locale): Likewise.
5248         (general_init): Likewise.
5249
5250         * stringpool.c (stringpool_ggc_alloc): Likewise.
5251         (gt_pch_save_stringpool): Likewise.
5252
5253         * sese.c (if_region_set_false_region): Likewise.
5254
5255         * passes.c (do_per_function_toporder): Likewise.
5256
5257         * optabs.c (set_optab_libfunc): Likewise.
5258         (set_conv_libfunc): Likewise.
5259
5260         * lto-symtab.c (lto_symtab_register_decl): Likewise.
5261
5262         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5263         (input_eh_region): Likewise.
5264         (input_eh_lp): Likewise.
5265         (make_new_block): Likewise.
5266         (unpack_ts_real_cst_value_fields): Likewise.
5267
5268         * lto-section-in.c (lto_new_in_decl_state): Likewise.
5269
5270         * lto-cgraph.c (input_node_opt_summary): Likewise.
5271
5272         * loop-init.c (loop_optimizer_init): Likewise.
5273
5274         * lambda.h (lambda_vector_new): Likewise.
5275
5276         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5277
5278         * ira.c (update_equiv_regs): Likewise.
5279
5280         * ipa.c (cgraph_node_set_new): Likewise.
5281         (cgraph_node_set_add): Likewise.
5282         (varpool_node_set_new): Likewise.
5283         (varpool_node_set_add): Likewise.
5284
5285         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5286         (duplicate_ipa_jump_func_array): Likewise.
5287         (ipa_read_node_info): Likewise.
5288
5289         * ipa-cp.c (ipcp_create_replace_map): Likewise.
5290
5291         * integrate.c (get_hard_reg_initial_val): Likewise.
5292
5293         * gimple.c (gimple_alloc_stat): Likewise.
5294         (gimple_build_omp_for): Likewise.
5295         (gimple_seq_alloc): Likewise.
5296         (gimple_copy): Likewise.
5297
5298         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5299         (gsi_insert_after_without_update): Likewise.
5300
5301         * function.c (add_frame_space): Likewise.
5302         (insert_temp_slot_address): Likewise.
5303         (assign_stack_temp_for_type): Likewise.
5304         (allocate_struct_function): Likewise.
5305         (types_used_by_var_decl_insert): Likewise.
5306
5307         * except.c (init_eh_for_function): Likewise.
5308         (gen_eh_region): Likewise.
5309         (gen_eh_region_catch): Likewise.
5310         (gen_eh_landing_pad): Likewise.
5311         (add_call_site): Likewise.
5312
5313         * emit-rtl.c (get_mem_attrs): Likewise.
5314         (get_reg_attrs): Likewise.
5315         (start_sequence): Likewise.
5316         (init_emit): Likewise.
5317
5318         * dwarf2out.c (new_cfi): Likewise.
5319         (queue_reg_save): Likewise.
5320         (dwarf2out_frame_init): Likewise.
5321         (new_loc_descr): Likewise.
5322         (find_AT_string): Likewise.
5323         (new_die): Likewise.
5324         (add_var_loc_to_decl): Likewise.
5325         (clone_die): Likewise.
5326         (clone_as_declaration): Likewise.
5327         (break_out_comdat_types): Likewise.
5328         (new_loc_list): Likewise.
5329         (loc_descriptor): Likewise.
5330         (add_loc_descr_to_each): Likewise.
5331         (add_const_value_attribute): Likewise.
5332         (tree_add_const_value_attribute): Likewise.
5333         (add_comp_dir_attribute): Likewise.
5334         (add_name_and_src_coords_attributes): Likewise.
5335         (lookup_filename): Likewise.
5336         (store_vcall_insn): Likewise.
5337         (dwarf2out_init): Likewise.
5338
5339         * dbxout.c (dbxout_init): Likewise.
5340
5341         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5342
5343         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5344
5345         * config/score/score7.c (score7_output_external): Likewise.
5346
5347         * config/score/score3.c (score3_output_external): Likewise.
5348
5349         * config/s390/s390.c (s390_init_machine_status): Likewise.
5350
5351         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5352         (rs6000_init_machine_status): Likewise.
5353         (output_toc): Likewise.
5354
5355         * config/pa/pa.c (pa_init_machine_status): Likewise.
5356         (get_deferred_plabel): Likewise.
5357
5358         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5359
5360         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5361
5362         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5363
5364         * config/mep/mep.c (mep_init_machine_status): Likewise.
5365         (mep_note_pragma_flag): Likewise.
5366
5367         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5368
5369         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5370
5371         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5372
5373         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5374         (i386_pe_maybe_record_exported_symbol): Likewise.
5375
5376         * config/i386/i386.c (get_dllimport_decl): Likewise.
5377         (ix86_init_machine_status): Likewise.
5378         (assign_386_stack_local): Likewise.
5379
5380         * config/frv/frv.c (frv_init_machine_status): Likewise.
5381
5382         * config/darwin.c (machopic_indirection_name): Likewise.
5383
5384         * config/cris/cris.c (cris_init_machine_status): Likewise.
5385
5386         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5387
5388         * config/avr/avr.c (avr_init_machine_status): Likewise.
5389
5390         * config/arm/arm.c (arm_init_machine_status): Likewise.
5391
5392         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5393         (alpha_need_linkage): Likewise.
5394         (alpha_use_linkage): Likewise.
5395
5396         * cgraph.c (cgraph_allocate_node): Likewise.
5397         (cgraph_create_edge_1): Likewise.
5398         (cgraph_create_indirect_edge): Likewise.
5399         (cgraph_add_asm_node): Likewise.
5400
5401         * cfgrtl.c (init_rtl_bb_info): Likewise.
5402
5403         * cfgloop.c (alloc_loop): Likewise.
5404         (rescan_loop_exit): Likewise.
5405
5406         * cfg.c (init_flow): Likewise.
5407         (alloc_block): Likewise.
5408         (unchecked_make_edge): Likewise.
5409
5410         * c-parser.c (c_parse_init): Likewise.
5411         (c_parse_file): Likewise.
5412
5413         * c-decl.c (bind): Likewise.
5414         (record_inline_static): Likewise.
5415         (push_scope): Likewise.
5416         (make_label): Likewise.
5417         (lookup_label_for_goto): Likewise.
5418         (finish_struct): Likewise.
5419         (finish_enum): Likewise.
5420         (c_push_function_context): Likewise.
5421
5422         * bitmap.c (bitmap_element_allocate): Likewise.
5423         (bitmap_gc_alloc_stat): Likewise.
5424
5425         * alias.c (record_alias_subset): Likewise.
5426         (init_alias_analysis): Likewise.
5427
5428 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
5429
5430         * fold-const.c (fold_comparison): Remove redundant parenthesis.
5431         * tree-inline.c (expand_call_inline): Pass translated return value of
5432         cgraph_inline_failed_string to diagnostic function.
5433
5434 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
5435             Shujing Zhao  <pearly.zhao@oracle.com>
5436
5437         PR c/37724
5438         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5439         implicit bad conversions is initialization.
5440         (error_init): Use gmsgid instead of msgid for argument name and change
5441         the call for error.
5442         (pedwarn_init): Use gmsgid instead of msgid for argument name and
5443         change the call for pedwarn.
5444         (warning_init): Use gmsgid instead of msgid for argument name and
5445         change the call for warning.
5446
5447 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
5448
5449         * config/mips/mips-protos.h (mips_print_operand): Delete.
5450         (mips_print_operand_address): Delete.
5451         * config/mips/mips.h (mips_print_operand_punct): Delete.
5452         (PRINT_OPERAND): Delete.
5453         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5454         (PRINT_OPERAND_ADDRESS): Delete.
5455         * config/mips/mips.c (mips_print_operand_punct): Make static.
5456         (mips_print_operand_address): Make static.
5457         (mips_print_operand): Make static.  Call
5458         mips_print_operand_punct_valid_p.
5459         (mips_print_operand_punct_valid_p): New function.
5460         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5461         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5462
5463 2010-06-07  Jan Hubicka  <jh@suse.cz>
5464
5465         PR middle-end/44454
5466         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5467         are allocated.
5468
5469 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
5470
5471         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5472         name of RECORD.
5473
5474 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5475
5476         * doc/sourcebuild.texi (Effective-Target Keywords, Other
5477         attributes): Document gas.
5478
5479 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
5480
5481         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5482         <TYPE_LEA>: Split instruction.
5483         <default>: Remove alternative 2 handling.
5484         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5485         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5486         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5487
5488         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5489         (ashift_zext lea splitter): Use DImode for multiplication.
5490
5491         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5492         to generate addition.
5493
5494 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
5495
5496         * common.opt (fira-verbose): Use Var.
5497         (fpcc-struct-return): Use Init instead of VarExists.
5498         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5499         toplev.c.
5500         * flags.h (flag_signed_char, flag_short_enums,
5501         flag_pcc_struct_return, flag_ira_verbose,
5502         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5503         * toplev.c (flag_detailed_statistics, flag_signed_char,
5504         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5505         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5506         * toplev.h (flag_crossjumping, flag_if_conversion,
5507         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5508         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5509         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5510         flag_cprop_registers, time_report, flag_ira_loop_pressure,
5511         flag_ira_coalesce, flag_ira_move_spills,
5512         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5513
5514 2010-06-07  Jan Hubicka  <jh@suse.cz>
5515
5516         * df-core.c (df_analyze_problem): Do verification after allocation.
5517
5518         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5519         (df_lr_alloc): Initialize problem data; move bitmaps to
5520         lr_bitmaps obstack.
5521         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5522         (df_lr_verify_solution_start): Do not initialize problem data;
5523         allocate bitmaps in lr_bitmaps.
5524         (df_lr_verify_solution_end): Do not free problem data.
5525
5526 2010-06-07  Jan Hubicka  <jh@suse.cz>
5527
5528         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5529         if caller is noreturn.
5530         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5531         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5532         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5533         * ipa-pure-const.c (check_decl): Add IPA parameter.
5534         (state_from_flags): New function.
5535         (better_state, worse_state): New functions.
5536         (check_call): When in IPA mode, do not care about callees.
5537         (check_load, check_store): Update.
5538         (check_ipa_load, check_ipa_store): New.
5539         (check_stmt): When in IPA mode, use IPA checkers.
5540         (analyze_function): Use state_from_flags.
5541         (propagate): Check indirect edges and references.
5542
5543 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
5544
5545         PR rtl-optimization/44404
5546         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5547         of count_occurrences to see if it's safe to modify mem_insn.
5548
5549 2010-06-07  Richard Guenther  <rguenther@suse.de>
5550
5551         * gimplify.c (gimplify_cleanup_point_expr): For empty body
5552         and EH-only cleanup drop the cleanup instead of inserting it
5553         unconditionally.
5554
5555 2010-06-07  Ira Rosen  <irar@il.ibm.com>
5556
5557         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5558         documentation.
5559         * targhooks.c (default_builtin_vectorization_cost): New function.
5560         * targhooks.h (default_builtin_vectorization_cost): Declare.
5561         * target.h (enum vect_cost_for_stmt): Define.
5562         (builtin_vectorization_cost): Change argument and comment.
5563         * tree-vectorizer.h: Remove cost model macros.
5564         * tree-vect-loop.c: Include target.h.
5565         (vect_get_cost): New function.
5566         (vect_estimate_min_profitable_iters): Replace cost model macros with
5567         calls to vect_get_cost.
5568         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5569         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5570         default implementation.
5571         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5572         calls to target hook builtin_vectorization_cost.
5573         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5574         Likewise.
5575         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5576         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5577         implementation to return costs.
5578         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5579         * config/spu/spu.h: Remove vectorizer cost model macros.
5580         * config/i386/i386.h: Likewise.
5581         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5582         a call to target hook builtin_vectorization_cost.
5583
5584 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
5585
5586         PR target/44319
5587         * config/i386/i386.c (override_options): Turn zee pass on for level 2
5588         and above and defer till target is known.
5589         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5590         turn off otherwise.
5591
5592 2010-05-25  Jan Hubicka  <jh@suse.cz>
5593
5594         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5595         (df_compact_blocks): Likewise.
5596         * df.h (struct df): Turn hardware_regs_used,
5597         regular_block_artificial_uses, eh_block_artificial_uses,
5598         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5599         bitmap_head.
5600         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5601         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5602         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5603         df_scan_blocks, df_insn_delete, df_insn_rescan,
5604         df_insn_rescan_debug_internal, df_insn_rescan_all,
5605         df_process_deferred_rescans, df_process_deferred_rescans,
5606         df_notes_rescan, df_get_call_refs, df_get_call_refs,
5607         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5608         df_record_entry_block_defs, df_record_exit_block_uses,
5609         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5610         df_scan_verify): Update.
5611
5612 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
5613
5614         PR c++/44188
5615         * c-common.c (is_typedef_decl): Move this definition ...
5616         * tree.c (is_typedef_decl): ... here.
5617         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5618         * c-common.h (is_typedef_decl): Move this declaration ...
5619         * tree.h (is_typedef_decl): ... here.
5620         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5621         * dwarf2out.c (is_naming_typedef_decl): New function.
5622         (gen_tagged_type_die): Split out of ...
5623         (gen_type_die_with_usage): ... this function. When an anonymous
5624         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5625         is emitted for the typedef.
5626         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5627         anonymous tagged types.
5628
5629 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5630
5631         PR c/20000
5632         * c-decl.c (grokdeclarator): Delete warning.
5633
5634 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
5635
5636         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
5637         newly built CALL_EXPR.
5638         * tree-profile.c (tree_profiling): Don't profile functions produced
5639         for built-in stuff.
5640
5641 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
5642
5643         PR bootstrap/44427
5644         PR bootstrap/44428
5645         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
5646         endianness-independent.
5647
5648 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
5649
5650         * c-common.c: Move to c-family/.
5651         * c-common.def: Likewise.
5652         * c-common.h: Likewise.
5653         * c-cppbuiltin.c: Likewise.
5654         * c-dump.c: Likewise.
5655         * c-format.c: Likewise.
5656         * c-format.h : Likewise.
5657         * c-gimplify.c: Likewise.
5658         * c-lex.c: Likewise.
5659         * c-omp.c: Likewise.
5660         * c.opt: Likewise.
5661         * c-opts.c: Likewise.
5662         * c-pch.c: Likewise.
5663         * c-ppoutput.c: Likewise.
5664         * c-pragma.c: Likewise.
5665         * c-pragma.h: Likewise.
5666         * c-pretty-print.c: Likewise.
5667         * c-pretty-print.h: Likewise.
5668         * c-semantics.c: Likewise.
5669         * stub-objc.c: Likewise.
5670
5671         * gengtype.c (get_file_langdir): Special-case files in c-family/.
5672         (get_output_file_with_visibility): Fix name for c-common.h.
5673         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
5674
5675         * c-tree.h: Update include path for moved files.
5676         * c-lang.c: Likewise.
5677         * c-lang.h: Likewise.
5678         * c-parser.c: Likewise.
5679         * c-convert.c: Likewise.
5680         * c-decl.c: Likewise.
5681         * c-objc-common.c: Likewise.
5682         * configure.ac: Make sure c-family/ exists in the build directory.
5683         * configure: Regenerate.
5684         * Makefile.in: Update paths for moved files.  Regroup files per
5685         location and update dependencies.  Move generated_files down after
5686         ALL_GTFILES_H.
5687
5688         * config/spu/spu-c.c: Update paths for moved files.
5689         * config/mep/mep-pragma.c: Likewise.
5690         * config/darwin-c.c: Likewise.
5691         * config/i386/msformat-c.c: Likewise.
5692         * config/i386/i386-c.c: Likewise.
5693         * config/avr/avr-c.c: Likewise.
5694         * config/sol2-c.c: Likewise.
5695         * config/ia64/ia64-c.c: Likewise.
5696         * config/rs6000/rs6000-c.c: Likewise.
5697         * config/arm/arm.c: Likewise.
5698         * config/arm/arm-c.c: Likewise.
5699         * config/h8300/h8300.c: Likewise.
5700         * config/v850/v850-c.c: Likewise.
5701
5702         * config/t-darwin: Fix dependencies for moved files.
5703         * config/t-sol2: Fix dependencies for moved files.
5704         * config/mep/t-mep: Fix dependencies for moved files.
5705         * config/ia64/t-ia64: Fix dependencies for moved files.
5706         * config/rs6000/t-rs6000: Fix dependencies for moved files.
5707         * config/v850/t-v850: Fix dependencies for moved files.
5708         * config/v850/t-v850e: Fix dependencies for moved files.
5709
5710         * config/m32c/m32c-pragma.c
5711
5712         * po/exgettext: Look in c-family/ also.
5713
5714 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
5715
5716         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
5717         (mark_control_dependent_edges_necessary): Call it instead of marking
5718         the last statement manually.
5719         (propagate_necessity): Likewise.
5720
5721 2010-06-05  Jan Hubicka  <jh@suse.cz>
5722
5723         * basic-block.h (compute_dominance_frontiers): Updated.
5724         (compute_idf): Likewise.
5725
5726         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
5727         for dominance frontiers.
5728         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
5729         (insert_updated_phi_nodes_for): Likewise.
5730         (update_ssa): Likewise.
5731         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5732         (compute_dominance_frontiers): Likewise.
5733         (compute_idf): Likewise.
5734         * df-problems.c (df_md_local_compute): Likewise.
5735
5736 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
5737
5738         * target.h (struct gcc_target): Add memory_move_cost field.
5739         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
5740         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
5741         * targhooks.c (default_memory_move_cost): New function.
5742         * targhooks.h (default_memory_move_cost): Declare function.
5743         * reload.h (memory_move_cost): Declare.
5744         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5745         * reginfo.c (memory_move_cost): New function.
5746         (memory_move_secondary_cost): Change type of 'in' argument to bool.
5747         * ira.h (ira_memory_move_cost): Update comment.
5748         * ira.c: (ira_memory_move_cost): Update comment.
5749         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
5750         with memory_move_cost.
5751         * postreload.c (reload_cse_simplify_set): (Ditto.).
5752         * reload1.c (choose_reload_regs): (Ditto.).
5753         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
5754         (MEMORY_MOVE_COST):  Revise documentation.
5755
5756         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
5757         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
5758         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
5759         type of 'in' argument to bool.
5760         (TARGET_MEMORY_MOVE_COST): Define.
5761
5762 2010-06-05  Jan Hubicka  <jh@suse.cz>
5763
5764         * ipa-pure-const.c (propagate): Fix typo in handling of functions
5765         that cannot return.  Be more careful when merging the results with
5766         previously known ones.
5767
5768 2010-06-05  Matthias Klose  <doko@ubuntu.com>
5769
5770         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
5771         function to add the -iplugindir option.
5772         (find_plugindir_spec_function): Add new declaration and function.
5773         (static_spec_func): Use it for "find-plugindir".
5774
5775 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
5776
5777         PR c++/44361
5778         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
5779         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
5780         statement expression.
5781
5782 2010-06-05  Jan Hubicka  <jh@suse.cz>
5783
5784         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
5785         (df_rd_problem_data): Convert sparse_invalidated_by_call,
5786         dense_invalidated_by_call to bitmap head.
5787         (df_rd_alloc, df_rd_bb_local_compute_process_def,
5788         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
5789         df_rd_start_dump, df_lr_verify_transfer_functions,
5790         df_live_verify_transfer_functions, df_chain_create_bb,
5791         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
5792         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
5793         df_simulate_one_insn_forwards, df_md_alloc,
5794         df_md_bb_local_compute_process_def,
5795         df_md_bb_local_compute_process_def, df_md_local_compute,
5796         df_md_transfer_function df_md_free): Update.
5797
5798 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
5799
5800         PR c/44322
5801         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
5802         target type for ADDR_EXPR; require no changes to qualifiers except
5803         for function types.
5804         * c-tree.h (c_build_type_variant): Remove.
5805
5806 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5807
5808         * genautomata.c (get_excl_set): Do work per element, not per char.
5809         (check_presence_pattern_sets): Similar.
5810         (check_absence_pattern_sets): Similar.
5811
5812 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
5813
5814         * genautomata.c (curr_state_pass_num): Delete.
5815         (min_issue_delay_pass_states): Delete.
5816         (min_issue_delay): Delete.
5817         (initiate_min_issue_delay_pass_states): Delete.
5818         (output_min_issue_delay_table): Compute min_issue_delay_vect
5819         using a breadth-first search variant.
5820         (output_tables): Don't call initiate_min_issue_delay_pass_states.
5821
5822 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5823
5824         PR boostrap/44421
5825         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
5826         (df_byte_lr_bb_local_compute): Likewise.
5827
5828 2010-06-03  Jason Merrill  <jason@redhat.com>
5829
5830         Implement noexcept operator (5.3.7)
5831         * c-common.c (c_common_reswords): Add noexcept.
5832         * c-common.h (enum rid): Add RID_NOEXCEPT.
5833
5834 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
5835
5836         * config/darwin-driver.c (darwin_default_min_version): Use
5837         GCC-specific formats in diagnostics.
5838         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
5839         diagnostics.
5840         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
5841         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
5842         eval_spec_function, handle_braces, process_brace_body, main,
5843         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
5844         getenv_spec_function, compare_version_strings,
5845         version_compare_spec_function): Use GCC-specific formats in
5846         diagnostics.
5847
5848 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5849
5850         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
5851         that operand 0 and operand 1 are equal.
5852         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
5853         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
5854         and operand 1 are equal.
5855         <default>: Ditto.  Remove ??? comment.
5856         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
5857         and operand 1 are equal.
5858         <default>: Ditto.  Remove ??? comment.
5859         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
5860         are equal.
5861         (*add<mode>_4) <default>: Ditto.
5862         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
5863
5864 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
5865
5866         * config/i386/i386-protos.h (ix86_print_operand): Declare.
5867         * config/i386/i386.c (ix86_print_operand): Make non-static.
5868         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
5869         * output.h (output_operand): Declare.
5870         * final.c (output_operand): Make non-static.
5871
5872 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
5873
5874         PR rtl-optimization/44013
5875         * sched-deps.c (add_dependence_list_and_free): Don't free lists
5876         when processing debug insns.
5877
5878         PR debug/41371
5879         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
5880         recursing.  Check that recursion is bounded.  Rename inner var
5881         to avoid hiding incoming argument.
5882
5883 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5884
5885         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
5886         operands[2] == 255.
5887         (*addqi_3): Ditto.
5888         (*addqi_4): Ditto.
5889         (*addqi_5): Ditto.
5890         (*addqi_ext_1_rex64): Ditto.
5891         (*addqi_ext_1): Ditto.
5892
5893         (*addqi_4): Check for incdec_operand in QImode.
5894
5895         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
5896         using SWI mode iterator.
5897         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
5898         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
5899         mode iterator.
5900         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
5901         using SWI mode iterator.
5902
5903 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5904
5905         PR c/25880
5906         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5907         * c-format.c (gcc_diag_flag_specs): Add hash.
5908         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5909         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5910         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5911         pp_c_cv_qualifiers. Handle qualifiers spelling here.
5912         (pp_c_type_qualifier_list): Call the function above.
5913         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5914         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5915         (WARN_FOR_QUALIFIERS): New macro.
5916         (convert_for_assignment): Use it.
5917
5918 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
5919
5920         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5921
5922 2010-06-04  Jan Hubicka  <jh@suse.cz>
5923
5924         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5925         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5926         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5927         DF_BYTE_LR_OUT): Update for embedded bitmaps.
5928         * fwprop.c (single_def_use_enter_block): Likewise.
5929         * ddg.c (create_ddg_dep_from_intra_loop_link,
5930         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5931         * loop-iv.c (latch_dominating_def): Likewise.
5932         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5933         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5934         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5935         df_rd_transfer_function, df_rd_top_dump,
5936         df_rd_bottom_dump): Update.
5937         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5938         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5939         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5940         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5941         df_lr_verify_solution_start, df_lr_verify_solution_end,
5942         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5943         df_live_free_bb_info, df_live_alloc, df_live_reset,
5944         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5945         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5946         df_live_verify_solution_start, df_live_verify_solution_end,
5947         df_live_verify_transfer_functions, df_chain_create_bb,
5948         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5949         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5950         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5951         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5952         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5953         df_byte_lr_transfer_function, df_byte_lr_top_dump,
5954         df_byte_lr_bottom_dump, df_create_unused_note,
5955         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5956         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5957         df_md_transfer_function, df_md_init, df_md_confluence_0,
5958         df_md_confluence_n,
5959         df_md_top_dump, df_md_bottom_dump): Update.
5960         (struct df_lr_problem_data): Embedd bitmap headers.
5961
5962 2010-06-04  Jan Hubicka  <jh@suse.cz>
5963
5964         * dce.c (dce_process_block): Do not re-scan already marked
5965         instructions.
5966
5967 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5968
5969         PR rtl-optimization/39871
5970         PR rtl-optimization/40615
5971         PR rtl-optimization/42500
5972         PR rtl-optimization/42502
5973         * ira.c (init_reg_equiv_memory_loc: New function.
5974         (ira): Call it twice.
5975         * reload.h (calculate_elim_costs_all_insns): Declare.
5976         * ira-costs.c: Include "reload.h".
5977         (regno_equiv_gains): New static variable.
5978         (init_costs): Allocate it.
5979         (finish_costs): Free it.
5980         (ira_costs): Call calculate_elim_costs_all_insns.
5981         (find_costs_and_classes): Take estimated elimination costs
5982         into account.
5983         (ira_adjust_equiv_reg_cost): New function.
5984         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5985         * reload1.c (init_eliminable_invariants, free_reg_equiv,
5986         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5987         (elim_bb): New static variable.
5988         (reload): Move code out of here into init_eliminable_invariants and
5989         free_reg_equiv.  Call them.
5990         (calculate_elim_costs_all_insns): New function.
5991         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
5992         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
5993         but call note_reg_elim_costly if we turned a valid memory address
5994         into an invalid one.
5995         * Makefile.in (ira-costs.o): Depend on reload.h.
5996
5997 2010-06-04  Julian Brown  <julian@codesourcery.com>
5998
5999         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6000         for pool ranges.
6001
6002 2010-06-04  Richard Guenther  <rguenther@suse.de>
6003
6004         PR lto/41584
6005         * cgraph.h (struct varpool_node): Add lto_file_data field.
6006         * lto-cgraph.c (input_varpool_node): Initialize it.
6007
6008 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6009
6010         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6011         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6012         predicate in "type" attribute calculation.
6013         (*addsi_1_zext): Ditto.
6014         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6015         (*addsi_2_zext): Ditto.
6016         (*add<mode>_3): Ditto.
6017         (*addsi_3_zext): Ditto.
6018         (*add<mode>_5): Ditto.
6019
6020 2010-06-03  Jan Hubicka  <jh@suse.cz>
6021
6022         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6023         of bitmap_bit_p.
6024         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6025
6026 2010-06-03  Jan Hubicka  <jh@suse.cz>
6027
6028         * df-problems.c (df_create_unused_note, df_note_bb_compute):
6029         micro-optimize the checks when to add new note.
6030
6031 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
6032
6033         * final.c (output_asm_insn): Call
6034         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
6035         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
6036         (output_address): Call targetm.asm_out.print_operand_address.
6037         Update comments.
6038         * target.h (struct gcc_target): Add print_operand,
6039         print_operand_address, and print_operand_punct_valid_p fields.
6040         * targhooks.h (default_print_operand): Declare.
6041         (default_print_operand_address): Declare.
6042         (default_print_operand_punct_valid_p): Declare.
6043         * targhooks.c (default_print_operand): Define.
6044         (default_print_operand_address): Define.
6045         (default_print_operand_punct_valid_p): Define.
6046         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6047         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6048         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6049         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6050         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6051         * vmsdbgout.c (addr_const_to_string): Update comment.
6052         * config/i386/i386.c (print_operand): Rename to...
6053         (ix86_print_operand): ...this.  Make static.
6054         (print_operand_address): Rename to...
6055         (ix86_print_operand_address): ...this.  Make static.  Call
6056         ix86_print_operand instead of PRINT_OPERAND.
6057         (ix86_print_operand_punct_valid_p): New function.
6058         (TARGET_PRINT_OPERAND): Define.
6059         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6060         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6061         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6062         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6063         (PRINT_OPERAND): Delete.
6064         (PRINT_OPERAND_ADDRESS): Delete.
6065         * config/i386/i386-protos.h (print_operand): Delete prototype.
6066         (print_operand_address): Delete prototype.
6067
6068 2010-06-03  Richard Guenther  <rguenther@suse.de>
6069
6070         PR tree-optimization/44403
6071         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6072         Preserve pointer qualifiers.
6073         (vect_create_data_ref_ptr): Likewise.
6074
6075 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6076
6077         PR c++/44294
6078         * defaults.h (MAX_FIXED_MODE_SIZE): New.
6079
6080         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6081
6082 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
6083
6084         PR debug/44375
6085         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6086         return false if merging the bbs would lead to goto_locus
6087         location being lost from the IL.
6088
6089 2010-06-03  Jan Hubicka  <jh@suse.cz>
6090             Jakub Jelinek  <jakub@redhat.com>
6091
6092         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6093         set->regs[i] is NULL or has just one entry.
6094
6095 2010-06-03  Jan Hubicka  <jh@suse.cz>
6096
6097         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6098         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6099
6100 2010-06-03  Paul Brook  <paul@codesourcery.com>
6101
6102         * config/arm/arm.c (FL_TUNE): Define.
6103         (arm_default_cpu, arm_cpu_select): Remove.
6104         (all_cores): Populate core field.
6105         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6106         (arm_find_cpu): New function.
6107         (arm_handle_option): Lookup cpu/architecture names.
6108         (arm_override_options): Cleanup mcpu/march/mtune handling.
6109         (arm_file_start): Ditto.
6110
6111 2010-06-03  Alan Modra  <amodra@gmail.com>
6112
6113         PR target/44169
6114         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6115         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6116         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
6117         (rs6000_emit_load_toc_table): Likewise.
6118
6119 2010-06-02  Jan Hubicka  <jh@suse.cz>
6120
6121         * passes.c (init_optimization_passes): Put ipa reference
6122         after ipa pure-const.
6123
6124 2010-06-02  Jan Hubicka  <jh@suse.cz>
6125
6126         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6127         calls_read_all and calls_write_all.
6128         (get_reference_optimization_summary): Fix formatting.
6129         (is_proper_for_analysis): Check that decl is not readonly.
6130         (propagate_bits): Check CONST/PURE/noreturn flags.
6131         (ipa_init): Move all_module_statics to optimization_summary_obstack.
6132         (analyze_function): Ignore indirect edges.
6133         (copy_global_bitmap): For all module statics, do nothing.
6134         (generate_summary): Do not print calls_read_all/calls_write_all.
6135         (read_write_all_from_decl): Take node as argument; check
6136         cgraph_node_cannot_return.
6137         (propagate): Reorganize read_all/write_all computation;
6138         check indirect edges; check ecf flags; use all_module_statics
6139         in the results; do not free all_module_statics.
6140         (stream_out_bitmap): Handle all_module_statics.
6141         (ipa_reference_write_optimization_summary): Likewise; use
6142         varpool/cgraph encoders to get boundaries.
6143         (ipa_reference_read_optimization_summary): Read in all_module_statics;
6144         use it when possible.
6145
6146 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6147
6148         PR target/44218
6149         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6150         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6151
6152         * doc/extend.texi (powerpc builtins): Document vec_recip,
6153         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6154
6155         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6156         (rs6000_emit_swrsqrt): Ditto.
6157         (rs6000_emit_swdivsf): Delete.
6158         (rs6000_emit_swdivdf): Ditto.
6159         (rs6000_emit_swrsqrtsf): Ditto.
6160
6161         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6162         describe the reciprocal estimate support for each type.
6163         (recip_options): Map -mrecip=<opt> into option bits.
6164         (gen_2arg_fn_t): New typedef for binary rtx gen function.
6165         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6166         reciprocal estimate instructions.
6167         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6168         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6169         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
6170         cost information if -mdebug=cost or -mdebug=reg.
6171         (rs6000_override_options): Set -mrecip-precision for power6, and
6172         power7 machines.  If -mvsx or -mdfp, enable various options that
6173         came in previous instruction set ISAs, unless the option was
6174         explicitly disabled by the command line option.  Parse
6175         -mrecip=<opt> options.
6176         (rs6000_builtin_vectorized_function): Add support for vectorizing
6177         the reciprocal estimate builtins and expansions.
6178         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6179         (bdesc_2arg): Add reciprocal estimate builtins.
6180         (bdesc_1arg): Add reciprocal square root estimate builtins.
6181         (rs6000_expand_builtin): Rewrite to use a switch statement,
6182         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
6183         (rs6000_init_builtins): Create declarations for reciprocal
6184         estimate builtins.
6185         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6186         sized, prefer traditional floating point registers, if integer
6187         vector types, prefer altivec registers.  Don't actually look at
6188         the memory address any more.
6189         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6190         builtins.
6191         (rs6000_load_constant_and_splat): New helper function to load up
6192         the constant for reciprocal estimate instructions.
6193         (rs6000_emit_madd): New helper function for generating
6194         multiply/add type instructions, based on the current switches.
6195         (rs6000_emit_msub): Ditto.
6196         (rs6000_emit_mnsub): Ditto.
6197         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6198         replace a divide with a reciprocal estimate and fixup, adding
6199         support for machines with high precision and vectors.
6200         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6201         low precision machines.
6202         (rs6000_emit_swdiv): New common function to be called to replace a
6203         division with reciprocal estimate and fixup.
6204         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
6205         for double and vector types.  Add support for high precision machines.
6206
6207         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6208         the reciprocal estimate instructions can be generated.
6209         (TARGET_FRE): Ditto.
6210         (TARGET_FRSQRTES): Ditto.
6211         (TARGET_FRSQRTE): Ditto.
6212         (RS6000_RECIP_*): New macros for reciprocal estimate support.
6213
6214         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6215         square root estimate on vectors.
6216         (re<mode>2): New insn for reciprocal division estimate on vectors.
6217
6218         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6219         New builtin.
6220         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6221         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6222         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6223         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6224         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6225         (RS6000_BUILTIN_RSQRT): Ditto.
6226         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6227         floating point builtin.
6228
6229         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6230         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6231         __RECIP_PRECISION__ based on the command line switches.
6232         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6233
6234         * config/rs6000/rs6000.opt (-mrecip): Document add support for
6235         replacing division instructions with reciprocal estimate and fixup.
6236         (-mrecip=<opt>): New option.
6237         (-mrecip-precision): Ditto.
6238
6239         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6240         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6241         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6242         precision scalar.
6243
6244         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6245         (UNSPEC_VREFP): Ditto.
6246         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6247         conterparts with regard to support of -mno-fused-madd and -ffast-math.
6248         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6249         reciprocal estimate instructions to be generated.
6250         (altivec_vrefp): Ditto.
6251
6252         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6253         estimate support.
6254         (rreg): New mode attribute for reciprocal estimate support.
6255         (recip<mode>3): New insn for division using reciprocal estimate
6256         and fixup builtins.
6257         (divide define_split): New define_split to convert floating point
6258         division to use reciprocal estimate if the user used the
6259         appropriate options and the split is run when we can add new
6260         pseudo registers for the fixup.
6261         (rsqrt<mode>2): New insn for reciprocal square root support.
6262         (recipsf3): Move into recip<mode>3.
6263         (recipdf3): Ditto.
6264         (fres): Use TARGET_FRES.
6265         (rsqrtsf2): Move into rsqrt<mode>2.
6266         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6267         (copysignsf3): Add support for VSX.
6268         (fred): Use TARGET_FRE.
6269         (fred_fpr): Ditto.
6270         (rsqrtdf_internal1): New function for frsqrte instruciton.
6271
6272         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6273         (vec_rsqrt): Ditto.
6274
6275 2010-06-03  Richard Guenther  <rguenther@suse.de>
6276
6277         PR middle-end/44291
6278         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6279         (set_user_assembler_libfunc): Likewise.
6280
6281 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6282
6283         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6284         defaults.h.
6285         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6286         to defaults.h
6287         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6288         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6289         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6290         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6291         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6292         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6293         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6294         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6295         * defaults.h: Updated for above mentioned changes.
6296
6297 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
6298
6299         * c-common.c: Remove header include of tm_p.h.
6300         * Makefile.in (c-common.o): Remove TM_P_H dependency.
6301
6302 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
6303
6304         * tree.h (struct tree_decl_map): New type.
6305         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6306         (tree_decl_map_hash): New prototype.
6307         (debug_expr_for_decl, value_expr_for_decl): Change into
6308         tree_decl_map hashtab from tree_map.
6309         (init_ttree): Adjust initialization.
6310         (tree_decl_map_hash): New function.
6311         (decl_debug_expr_lookup, decl_debug_expr_insert,
6312         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6313
6314 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6315
6316         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6317         linker emulations.
6318         * configure: Regenerate.
6319         * config.in: Regenerate.
6320
6321         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6322         (X86_64_EMULATION): Define.
6323         (TARGET_LD_EMULATION): Use them.
6324
6325         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6326         (SPARC64_EMULATION): Define.
6327         (LINK_ARCH_SPEC): Use them.
6328
6329 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6330
6331         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6332         smallest_mode_for_size for computing the precision types of new
6333         graphite IVs.  Do not call lang_hooks.types.type_for_size.
6334
6335 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6336
6337         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6338         information.
6339         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6340
6341 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6342
6343         PR middle-end/44363
6344         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6345         return false instead.
6346
6347 2010-06-02  Jan Hubicka  <jh@suse.cz>
6348
6349         PR middle-end/44295
6350         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6351         create new cgraph node to check callee.
6352
6353 2010-06-02  Richard Guenther  <rguenther@suse.de>
6354
6355         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6356
6357 2010-06-02  Richard Guenther  <rguenther@suse.de>
6358
6359         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6360         (lto_wrapper_cleanup): ... this.  Do not exit.
6361         (fatal): Adjust.  Exit here.
6362         (fatal_perror): Likewise.
6363         (fatal_signal): New function.
6364         (main): Set up signal handlers to cleanup temporary files.
6365         * Makefile.in (lto-wrapper.o): Adjust dependencies.
6366
6367 2010-06-02  Richard Guenther  <rguenther@suse.de>
6368
6369         PR tree-optimization/44377
6370         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6371
6372 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6373
6374         * config/s390/2097.md (z10_fhex): Remove insn reservation.
6375         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6376         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6377         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6378         instruction.
6379         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6380
6381 2010-06-02  Jan Hubicka  <jh@suse.cz>
6382
6383         * bitmap.c (bitmap_descriptor): Add search_iter.
6384         (bitmap_find_bit): Increment it.
6385         (print_statistics): Print it.
6386
6387 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
6388
6389         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6390         instead of gimple_build_call_vec.  Delete unnecessary local variable.
6391
6392 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6393
6394         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6395         change from yesterday.
6396
6397 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6398
6399         * c-ada-spec.c: Clean up redundant includes.
6400
6401 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
6402
6403         * gimplify.c: Do not include except.h and optabs.h.
6404         (gimplify_body): Do not initialize RTL profiling.
6405         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6406         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6407         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6408         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6409         langhooks.h.
6410
6411         * tree-pretty-print.h: Include pretty-print.h.
6412         * gimple-pretty-print.h: Include pretty-print.h.
6413
6414         * tree-pretty-print.c: Do not include diagnostic.h.
6415         * tree-vrp.c: Likewise.
6416         * tree-tailcall.c: Likewise
6417         * tree-scalar-evolution.c: Likewise
6418         * tree-ssa-dse.c: Likewise
6419         * tree-chrec.c: Likewise
6420         * tree-ssa-sccvn.c: Likewise
6421         * tree-ssa-copyrename.c: Likewise
6422         * tree-nomudflap.c: Likewise
6423         * tree-call-cdce.c: Likewise
6424         * tree-stdarg.c: Likewise
6425         * tree-ssa-math-opts.c: Likewise
6426         * tree-nrv.c: Likewise
6427         * tree-ssa-sink.c: Likewise
6428         * tree-browser.c: Likewise
6429         * tree-ssa-loop-ivcanon.c: Likewise
6430         * tree-ssa-loop.c: Likewise
6431         * tree-parloops.c: Likewise
6432         * tree-ssa-address.c: Likewise
6433         * tree-ssa-ifcombine.c: Likewise
6434         * tree-if-conv.c: Likewise
6435         * tree-data-ref.c: Likewise
6436         * tree-affine.c: Likewise
6437         * tree-ssa-phiopt.c: Likewise
6438         * tree-ssa-coalesce.c: Likewise
6439         * tree-ssa-pre.c: Likewise
6440         * tree-ssa-live.c: Likewise
6441         * tree-predcom.c: Likewise
6442         * tree-ssa-forwprop.c: Likewise
6443         * tree-ssa-dce.c: Likewise
6444         * tree-ssa-ter.c: Likewise
6445         * tree-ssa-loop-prefetch.c: Likewise
6446         * tree-optimize.c: Likewise
6447         * tree-ssa-phiprop.c: Likewise
6448         * tree-object-size.c: Likewise
6449         * tree-outof-ssa.c: Likewise
6450         * tree-ssa-structalias.c: Likewise
6451         * tree-switch-conversion.c: Likewise
6452         * tree-ssa-reassoc.c: Likewise
6453         * tree-ssa-operands.c: Likewise
6454         * tree-vectorizer.c: Likewise
6455         * tree-vect-data-refs.c: Likewise
6456         * tree-vect-generic.c: Likewise
6457         * tree-vect-stmts.c: Likewise
6458         * tree-vect-patterns.c: Likewise
6459         * tree-vect-slp.c: Likewise
6460         * tree-vect-loop.c: Likewise
6461         * tree-ssa-loop-ivopts.c: Likewise
6462         * tree-ssa-loop-im.c: Likewise
6463         * tree-ssa-loop-niter.c: Likewise
6464         * tree-ssa-loop-unswitch.c: Likewise
6465         * tree-ssa-loop-manip.c: Likewise
6466         * tree-ssa-loop-ch.c: Likewise
6467         * tree-dump.c: Likewise
6468         * tree-complex.c: Likewise
6469
6470         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6471         * tree-ssa-uninit.c: Likewise
6472         * tree-ssa-threadupdate.c: Likewise
6473         * tree-ssa-uncprop.c: Likewise
6474         * tree-ssa-ccp.c: Likewise
6475         * tree-ssa-dom.c: Likewise
6476         * tree-ssa-propagate.c: Likewise
6477         * tree-ssa-alias.c: Likewise
6478         * tree-dfa.c: Likewise
6479         * tree-cfgcleanup.c: Likewise
6480         * tree-sra.c: Likewise
6481         * tree-ssa-copy.c: Likewise
6482         * tree-ssa.c: Likewise
6483         * tree-profile.c: Likewise
6484         * tree-cfg.c: Likewise
6485         * tree-ssa-threadedge.c: Likewise
6486         * tree-vect-loop-manip.c: Likewise
6487
6488         * tree-inline.c: Do not include diagnostic.h and expr.h.
6489         Include rtl.h.
6490         (copy_decl_for_dup_finish): Do not use NULL_RTX.
6491
6492         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6493         * tree-loop-distribution.c: Likewise.
6494
6495 2010-06-01  Jan Hubicka  <jh@suse.cz>
6496
6497         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6498
6499 2010-06-01  Jan Hubicka  <jh@suse.cz>
6500
6501         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6502         remove return value.
6503         (split_bbs_on_noreturn_calls) .... here.
6504         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6505         * tree-flow.h (fixup_noreturn_call): New.
6506
6507 2010-06-01  Jan Hubicka  <jh@suse.cz>
6508
6509         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6510
6511 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
6512
6513         * tree.h (build_nt_call_list): Delete.
6514         * tree.c (build_nt_call_list): Delete.
6515
6516 2010-06-01  Jan Hubicka  <jh@suse.cz>
6517
6518         * fwprop.c: Make emit-rtl.h include last.
6519         * rtlanal.c: Include emit-rtl.h.
6520         * genautomata.c: Output emit-rtl include into insn-automata.c
6521         * df-scan.c: Include emit-rtl.h.
6522         * haifa-sched.c: Indlude emit-rtl.h.
6523         * mode-switching.c: Indlude emit-rtl.h.
6524         * graph.c: Indlude emit-rtl.h.
6525         * sel-sched.c: Include emit-rtl.h.
6526         * sel-sched-ir.c: Include emit-rtl.h.
6527         * ira-build.c: Include emit-rtl.h.
6528         * emit-rtl.c: (first_insn, last_insn): Remove defines.
6529         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6530         Move to emit-rtl.h.
6531         (set_new_first_and_last_insn, get_last_insn_anywhere,
6532         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6533         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6534         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6535         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6536         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6537         Use accessor functions.
6538         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6539          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6540         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6541         mem_expr_equal_p): Move here from rtl.h.
6542         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6543         Move here from emit-rtl.c; make inline.
6544         * cfglayout.h: Include emit-rtl.h.
6545         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6546          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6547         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6548         mem_expr_equal_p, get_insns, set_first-insn,
6549         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6550         * reg-stack.c: Include emit-rtl.h.
6551         * dce.c: Likewise.
6552
6553 2010-06-01  Jan Hubicka  <jh@suse.cz>
6554
6555         * cgraph.h (tree_function_versioning): Update prototype.
6556         (cgraph_function_versioning): Update prototype.
6557         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6558         bitmap.
6559         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6560         (cgraph_materialize_clone, save_inline_function_body): Update use of
6561         tree_function_versioning.
6562         * tree-inline.c (copy_bb): Look for previous copied block to link
6563         after; fix debug output.
6564         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6565         (copy_body): Likewise.
6566         (expand_call_inline): Update use of copy_body.
6567         (tree_function_versioning): Update use of copy body; accept
6568         blocks_to_copy and new_entry.
6569
6570 2010-06-01  Jan Hubicka  <jh@suse.cz>
6571
6572         * gegenrtl.c: Remove unnecesary prototypes.
6573         (gendecl): Remove.
6574         (gendef): Produce static inline.
6575         (gencode): Remove.
6576         (main): Do not decode parameters; generate header only.
6577         * Makefile.in (genrtl.c): Remove.
6578
6579 2010-06-01  Jan Hubicka  <jh@suse.cz>
6580
6581         * tree-switch-conversion.c (build_one_array): Make it readonly.
6582
6583 2010-06-01  Richard Guenther  <rguenther@suse.de>
6584
6585         * optabs.c (init_optabs): Guard all accesses to reinit.
6586         * ipa-pure-const.c (propagate): Fix another typo.
6587         * opts.c (common_handle_option): Split assignment to bool.
6588         * c-opts.c (c_common_handle_option): Likewise.
6589
6590 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
6591             Matthew Gingell  <gingell@adacore.com>
6592
6593         * doc/invoke.texi: Mention -fdump-ada-spec.
6594         * tree-dump.c (dump_files): Add ada-spec.
6595         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6596         * tree-pass.h (tree_dump_index): Add TDI_ada.
6597         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6598         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6599         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6600         * c-decl.c: Include c-ada-spec.h.
6601         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6602         functions.
6603         (c_write_global_declarations): Add handling of -fdump-ada-spec.
6604         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6605         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6606         * c-ada-spec.h, c-ada-spec.c: New files.
6607
6608 2010-06-01  Richard Guenther  <rguenther@suse.de>
6609
6610         PR lto/43853
6611         * ipa-pure-const.c (get_function_state): Hand back varying state
6612         if we do not have one.
6613         (has_function_state): New function.
6614         (duplicate_node_data): Adjust.
6615         (remove_node_data): Likewise.
6616         (pure_const_write_summary): Likewise.
6617         (propagate): Likewise.  Fix typo.
6618
6619 2010-06-01  Jan Hubicka  <jh@suse.cz>
6620
6621         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6622         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6623         (execute_all_ipa_transforms): Do not play with the states.
6624
6625 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6626
6627         * config/arm/t-linux-androideabi: New.
6628         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
6629
6630 2010-06-01  Jan Hubicka  <jh@suse.cz>
6631
6632         * tree-inline.c (estimate_num_insns): For stdarg functions look
6633         into call statement to count cost of argument passing.
6634
6635 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
6636
6637         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
6638         argument for fprintf.
6639         (ix86_output_addr_diff_elt): Likewise.
6640         (x86_function_profiler): Likewise.
6641         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
6642         (LPREFIX): Likewise.
6643         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
6644
6645 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6646
6647         PR target/44338
6648         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
6649         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
6650         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
6651         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
6652         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
6653         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
6654         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
6655         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
6656         TARGET_FUSED_MADD.
6657
6658 2010-05-31  Jan Hubicka  <jh@suse.cz>
6659
6660         * tree.h (tree_range_check_failed): Declare noreturn.
6661
6662 2010-05-31  Jan Hubicka  <jh@suse.cz>
6663
6664         * gimple.c (gimple_call_builtin_p): New function.
6665         * gimple.h (gimple_call_builtin_p): Declare.
6666         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
6667         to exit.
6668         (execute_warn_function_return): BUILT_IN_RETURN is return.
6669         (split_critical_edges): Return edges are not critical.
6670         (is_ctrl_altering_stmt): Builtin_in_return is altering.
6671         (gimple_verify_flow_info): Handle built_in_return.
6672         (execute_warn_function_return): Handle built_in_return.
6673         * ipa-pure-const.c (check_call): Ignore builtin_return.
6674
6675 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
6676
6677         PR middle-end/44337
6678         * expr.c (expand_assignment): Don't store anything for out-of-bounds
6679         array accesses with non-MEM.
6680
6681         PR tree-optimization/44182
6682         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
6683         newly needs to end a bb is followed by debug stmts, instead return
6684         true from the function at the end.
6685         (maybe_move_debug_stmts_to_successors): New function.
6686         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
6687
6688 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
6689
6690         PR target/44161
6691         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
6692
6693 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
6694
6695         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
6696         for nested functions in non-optimized compilation.
6697
6698 2010-05-31  Richard Guenther  <rguenther@suse.de>
6699
6700         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
6701
6702 2010-05-30  Jan Hubicka  <jh@suse.cz>
6703
6704         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
6705
6706 2010-05-30  Richard Guenther  <rguenther@suse.de>
6707
6708         PR lto/42975
6709         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
6710         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
6711         no longer needed.
6712
6713 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
6714
6715         * config/darwin.c (output_objc_section_asm_op): Add comment.
6716         (name_needs_quotes): Add '_' to list of valid comment chars.
6717         (machopic_output_function_base_name): Remove unneeded quotes.
6718         (darwin_encode_section_info): Adjust asm whitespace.
6719         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
6720         (ASM_OUTPUT_LOCAL): Ditto.
6721         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
6722         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
6723         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
6724
6725 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6726
6727         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
6728         RS6000_OUTPUT_BASENAME unconditionally.
6729         (rs6000_output_function_epilogue): Likewise.
6730
6731 2010-05-30  Jan Hubicka  <jh@suse.cz>
6732
6733         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
6734         nodes.
6735
6736 2010-05-30  Richard Guenther  <rguenther@suse.de>
6737
6738         * tree-cfg.c (verify_gimple_assign_single): Implement
6739         verification for COND_EXPR rhs.
6740
6741 2010-05-30  Jan Hubicka  <jh@suse.cz>
6742
6743         * cgraph.h (cgraph_dump_file): Declare.
6744         * cgraphunit.c (cgraph_dump_file): Export.
6745         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
6746
6747 2010-05-30  Jan Hubicka  <jh@suse.cz>
6748
6749         * dwarf2out.c (reference_to_unused,
6750         premark_types_used_by_global_vars_helper): Avoid creation of new
6751         varpool nodes.
6752
6753 2010-05-30  Jan Hubicka  <jh@suse.cz>
6754
6755         * cgraph.h (cgraph_node_cannot_return,
6756         cgraph_edge_cannot_lead_to_return): New functions.
6757         * cgraph.c (cgraph_node_cannot_return,
6758         cgraph_edge_cannot_lead_to_return): Use them.
6759         * ipa-pure-const.c (pure_const_names): New static var.
6760         (check_call): Handle calls not leading to return.
6761         (pure_const_read_summary): Dump info read.
6762         (propagate): Dump info about propagation process; ignore side effects
6763         of functions not leading to exit; fix handling of pure functions.
6764
6765 2010-05-30  Jan Hubicka  <jh@suse.cz>
6766
6767         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
6768         for tail call epilogues.
6769
6770 2010-05-30  Jan Hubicka  <jh@suse.cz>
6771
6772         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
6773         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
6774         dump files.
6775
6776 2010-05-29  Jan Hubicka  <jh@suse.cz>
6777
6778         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
6779         node; remove references in node we no longer keep in cgrpah but need
6780         body of.
6781
6782 2010-05-29  Jan Hubicka  <jh@suse.cz>
6783
6784         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
6785
6786 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6787
6788         PR target/44165
6789         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
6790
6791 2010-05-29  Jan Hubicka  <jh@suse.cz>
6792
6793         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
6794         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
6795         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
6796         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
6797         debug_names_replaced_by, debug_update_ssa): Likewise.
6798         * sbitmap.c (debug_sbitmap): Likewise.
6799         * genrecog.c (debug_decision, debug_decision_list): Likewise.
6800         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
6801         debug_tree_chain): Likewise.
6802         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
6803         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
6804         * optabs.c  (debug_optab_libfuncs): Likewise.
6805         (verify_loop_closed_ssa): Likewise.
6806         * value-prof.c (verify_histograms): Likewise.
6807         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
6808         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
6809         * cfghooks.c (verify_flow_info): Likewise.
6810         * fold-const.c (debug_fold_checksum): Likewise.
6811         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
6812         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
6813         Likewise.
6814         * omega.c (debug_omega_problem): Likewise.
6815         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
6816         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
6817         * dominance.c (verify_dominators, debug_dominance_info,
6818         debug_dominance_tree): Likewise.
6819         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
6820         * df_regno_debug, df_ref_debug,
6821         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
6822         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
6823         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
6824         * sel-sched.c (debug_state): Likewise.
6825         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
6826         Likewise.
6827         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
6828         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
6829         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
6830         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
6831         Likewise.
6832         * c-pretty-print.c (debug_c_tree): Likewise.
6833         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
6834         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
6835         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
6836         * ebitmap.c (debug_ebitmap): Likewise.
6837         * function.c (debug_find_var_in_block_tree): Likewise.
6838         * print-rtl.c (debug_rtx): Likewise.
6839         (debug_rtx_count): Likewise.
6840         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
6841         * stor-layout.c (debug_rli): Likewise.
6842         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
6843         * tree-data-ref.c (debug_data_references,
6844         debug_data_dependence_relations, debug_data_reference,
6845         debug_data_dependence_relation, debug_rdg_vertex,
6846         debug_rdg_component, debug_rdg): Likewise.
6847         * tree-affine.c (debug_aff): Likewise.
6848         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
6849         Likewise.
6850         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
6851         * emit-rtl.c (verify_rtl_sharing): Likewise.
6852         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
6853         debug_value_expressions): Likewise.
6854         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
6855         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
6856         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
6857         * cfglayout.c (verify_insn_chain): Likewise.
6858         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
6859         debug_clast_stmt, debug_generated_program): Likewise.
6860         * ggc-page.c (debug_print_page_list): Likewise.
6861         * tree-ssa-ter.c (debug_ter): Likewise.
6862         * graphite-dependences.c (debug_pddr): Likewise.
6863         * sched-deps.c (debug_ds): Likewise.
6864         * tree-ssa.c (verify_ssa): Likewise.
6865         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
6866         debug_scattering_functions, debug_iteration_domains, debug_pdr,
6867         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
6868         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
6869         * tree-inline.c (debug_find_tree): Likewise.
6870         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
6871         debug_ppl_powerset_matrix): Likewise.
6872         * var-tracking.c (debug_dv): Likewise.
6873         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
6874         * cfgloop.c (verify_loop_structure): Likewise.
6875         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
6876         * c-common.c (verify_sequence_points): Likewise.
6877         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
6878         debug_candidates, debug_rgn_dependencies): Likewise.
6879         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
6880         * debug_constraint_graph, debug_solution_for_var,
6881         debug_sa_points_to_info): Likewise.
6882         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
6883         Likewie.
6884         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
6885         debug_loops, debug_loop, debug_loop_num): Likewise.
6886         * passes.c (debug_pass): Likewise.
6887         (dump_properties): Likewise; add cfglayout property.
6888         (debug_properties): Likewise.
6889         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
6890         * varpool.c (debug_varpool): Likewise.
6891         * regcprop.c (debug_value_data): Likewise.
6892         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
6893         debug_immediate_uses_for): Likewise.
6894
6895 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6896
6897         PR bootstrap/44315
6898         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
6899         Filter out insn-flags.h.
6900
6901 2010-05-29  Jan Hubicka  <jh@suse.cz>
6902
6903         * cgraph.h (struct varpool_node_set_def,
6904         struct cgraph_node_set_def): Remove unused AUX pointer.
6905         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6906         VEC_empty macro.
6907
6908 2010-05-29  Jan Hubicka  <jh@suse.cz>
6909
6910         PR middle-end/44324
6911         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6912
6913 2010-05-29  Richard Guenther  <rguenther@suse.de>
6914
6915         * lto-streamer.c (cached_bp): New global variable.
6916         (bitpack_create): Return the cached bitpack, if available.
6917         (bitpack_delete): Clear and cache the bitpack, if appropriate.
6918         (bp_pack_value): Remove redundant asserts.
6919
6920 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6921
6922         PR middle-end/44306
6923         * tree-if-conv.c (is_true_predicate): New.
6924         (is_predicated): Use is_true_predicate.
6925         (add_to_predicate_list): Same.  Do not use unshare_expr.
6926         (add_to_dst_predicate_list): Same.
6927
6928 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6929
6930         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6931         field on edges.
6932         (predicate_bbs): Same.
6933         (clean_predicate_lists): Same.
6934         (find_phi_replacement_condition): Do not AND the predicate from
6935         edge->aux.
6936
6937 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6938
6939         PR bootstrap/44315
6940         * Makefile.in (build/gencondmd.o): Add a missing `\'.
6941
6942 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6943
6944         PR target/44261
6945         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6946         (negdf2): Adjust expander pattern and use negdf2_slow.
6947         (negsf2): Likewise.
6948
6949 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
6950
6951         * basic-block.h (struct control_flow_graph): Move last_label_uid field
6952         up.
6953         * df.h (struct df_base_ref): Move regno field up.
6954         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6955         * expr.h (struct separate_ops): Move location field up.
6956         * optabs.h (struct optab_d): Move libcall_basename field down.
6957         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6958         * config/i386/i386.h (struct machine_function): Convert call_abi field
6959         into a bitfield.  Move cfa field to the end of the structure.
6960
6961 2010-05-29  Jan Hubicka  <jh@suse.cz>
6962
6963         * varpool.c (varpool_get_node): Fix lookup.
6964
6965 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6966
6967         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
6968         RTL specific prototypes with #ifdef RTX_CODE.
6969         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6970         * config/spu/t-spu-elf: Fix dependencies.
6971
6972         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6973
6974 2010-05-29  Mike Stump  <mikestump@comcast.net>
6975
6976         PR bootstrap/44315
6977         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6978         TM_H when building to avoid dependency loops.
6979
6980 2010-05-29  Jan Hubicka  <jh@suse.cz>
6981
6982         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6983         refs and body; not the whole node for masters of materialized clones.
6984
6985 2010-05-29  Mike Stump  <mikestump@comcast.net>
6986
6987         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6988
6989 2010-05-29  Jan Hubicka  <jh@suse.cz>
6990
6991         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6992         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6993         use of clone_function_name.
6994         * cgraph.h (cgraph_create_virtual_clone,
6995         cgraph_function_versioning): update prototypes.
6996         (clone_function_name): Declare.
6997         * ipa-cp.c (ipcp_insert_stage): Update call of
6998         cgraph_create_virtual_clone.
6999         * omp-low.c (create_omp_child_function_name): Use
7000         cgraph_create_virtual_clone.
7001         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7002         (cgraph_function_versioning): Take SUFFIX argument; produce new name
7003         and make decl local.
7004
7005 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7006
7007         * vec.h: Include statistics.h
7008         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
7009         with VEC_H.
7010
7011 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7012
7013         * c-lex.c: Do not include c-tree.h.
7014         * c-pretty-print.c: Likewise.
7015         * c-opts.c: Likewise.
7016         * c-gimplify.c: Likewise.
7017         * c-common.c: Likewise.
7018         * c-dump.c: Likewise.  Include c-common.h.
7019
7020 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7021
7022         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7023         before including diagnostic-core.h.
7024         (c_cpp_error): New prototype moved from c-tree.h.
7025         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7026         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7027         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7028         (c_cpp_error): Prototype moved to c-common.h.
7029         * Makefile.in: Update dependency for C_COMMON_H.
7030
7031 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7032
7033         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7034         * c-common.c (c_register_addr_space): Remove here.
7035         * c-decl.c (c_register_addr_space): Re-add here.
7036
7037 2010-05-28  Mike Stump  <mikestump@comcast.net>
7038
7039         * config/darwin-c.c: Remove c-tree.h include.
7040
7041 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7042
7043         * gcc.c: Include diagnostic.h.
7044         (error_count): Remove.  All users changed to use errorcount.
7045         (programname): Remove.  All users changed to use progname.
7046         (fancy_abort, internal_error, fatal_error, error, warning, inform,
7047         fnotice): Remove.
7048         (execute): Don't include "Internal error" and bug reporting
7049         information in argument of internal_error call.
7050         (process_command): Don't increment error_count after calling
7051         perror_with_name.
7052         (input_filename): Rename to gcc_input_filename.  All users
7053         changed.
7054         (main): Call diagnostic_initialize.  Register delete_temp_files
7055         with atexit.  Use seen_error to test for errors.
7056         * gcc.h: Include diagnostic-core.h.
7057         (fatal_error, error, warning): Remove.
7058         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7059         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7060         (gcc.o): Update dependencies.
7061
7062 2010-05-28  Jeff Law  <law@redhat.com>
7063
7064         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7065         functions.
7066         * ira.h (ira_bad_reload_regno): Declare
7067         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7068
7069         * ira-color.c (update_curr_costs): Free updated hard reg costs.
7070         (ira_reassign_conflict_allocnos): Remove bogus asserts.
7071         (allocno_reload_assign): Likewise.
7072
7073 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
7074
7075         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7076         build1_stat.
7077
7078 2010-05-28  Richard Guenther  <rguenther@suse.de>
7079
7080         PR lto/44312
7081         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7082         Stream fixed-point constants mode.
7083         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7084         and TYPE_PRECISION.
7085         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7086         Stream fixed-point constants mode.
7087         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7088         and TYPE_PRECISION.
7089
7090 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7091
7092         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7093         only place it was called from.
7094         (number_of_latch_executions): Do not return chrec_dont_know when the
7095         may_be_zero is a runtime condition: instead, return a COND_EXPR
7096         including the may_be_zero condition.
7097         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7098         of nb_iterations.
7099         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7100         COND_EXPRs.
7101
7102 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7103
7104         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7105         generate COND_EXPRs for degenerate_phi_result.
7106
7107 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7108
7109         PR middle-end/44293
7110         * tree-if-conv.c (if_convertible_loop_p): Check the
7111         if-convertibility of phi nodes in non predicated BBs.
7112
7113 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7114
7115         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7116
7117 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7118
7119         PR driver/15303
7120         * gcc.c (inform, warning, inform): New functions.
7121         (fatal_ice): Rename to internal_error; change cmsgid parameter to
7122         gmsgid.  All callers changed.
7123         (notice): Rename to fnotice; add parameter fp.  All callers changed.
7124         (fatal_error): Rename to fatal_signal.  All users changed.
7125         (fatal): Rename to fatal_error; change cmsgid parameter to
7126         gmsgid.  All callers changed.
7127         (process_command): Use warning instead of error for warnings.
7128         (end_going_arg): Don't use _() around argument of error.
7129         (do_spec_1): Use inform for message from %n specs.  Use warning
7130         instead of error for warnings.
7131         (main): Use inform for comparison messages.  Use warning for
7132         message about unused linker input.
7133         (error): Increment error_count.  Print "error: ".
7134         * gcc.h (fatal): Change to fatal_error.
7135         (warning): Declare.
7136         * config/darwin-driver.c (darwin_default_min_version): Use warning
7137         instead of fprintf for warnings.
7138         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7139
7140 2010-05-28  Julian Brown  <julian@codesourcery.com>
7141
7142         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7143         (*thumb2_addsi3_compare0_scratch): New.
7144         * config/arm/constraints.md (Pv): New.
7145         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7146         for ARM mode only.
7147         (*addsi3_compare0_scratch): Likewise.
7148
7149 2010-05-28  Jan Hubicka  <jh@suse.cz>
7150
7151         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7152         check.
7153         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7154         only on local statics.
7155
7156 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
7157
7158         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7159
7160 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7161
7162         PR bootstrap/44314
7163         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7164         (OPTION_GLIBC): Define.
7165
7166 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7167
7168         PR debug/41048
7169         * dwarf2out.c (double_int_type_size_in_bits): New function.
7170         (round_up_to_align): Change first argument and return value to
7171         double_int.
7172         (field_byte_offset): Work internally on double_ints.
7173
7174         PR target/43636
7175         * builtins.c (expand_movstr): Use a temporary pseudo instead
7176         of target even when target is not NULL and not const0_rtx, but
7177         fails movstr predicate.
7178         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7179
7180 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7181
7182         * final.c (rest_of_clean_state): Use %m in errors instead of
7183         strerror (errno).
7184         * gengtype.c (read_input_list, close_output_files): Use xstrerror
7185         instead of strerror.
7186         * toplev.c (process_options): Use %m in errors instead of strerror
7187         (errno).
7188         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7189         (errno).
7190
7191 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
7192
7193         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7194         (ix86_canonical_va_list_type): Make static.  Add declaration.
7195         (ix86_enum_va_list): Make static.  Reindent.
7196         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7197         (ix86_canonical_va_list_type): Ditto.
7198         (ix86_enum_va_list): Ditto.
7199
7200 2010-05-28  Richard Guenther  <rguenther@suse.de>
7201
7202         * lto-wrapper.c (run_gcc): With -save-temps generate a
7203         user-visible ltrans filename.  Fixup ltrans unit numbering.
7204
7205 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
7206
7207         * c-common.c (c_common_nodes_and_builtins): Replace use
7208         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7209         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7210         to ix86_enum_va_list.
7211         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7212         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7213         (TARGET_ENUM_VA_LIST_P): Add hook description.
7214         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7215         * target.h (gcc_target): Add enum_va_list hook.
7216
7217         PR bootstrap/44299
7218         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7219         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7220         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7221
7222 2010-05-28  Alan Modra  <amodra@gmail.com>
7223
7224         PR target/44266
7225         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7226         emit_library_call machinery to set up __tls_get_addr calls.
7227
7228 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7229
7230         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7231
7232 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
7233
7234         Revert fix for PR c++/44188
7235         * c-common.c (is_typedef_decl): Revert the moving of  this
7236         definition ...
7237         * tree.c (is_typedef_decl): ... here.
7238         (typdef_variant_p): Revert the moving of this  definition
7239         here from gcc/cp/tree.c.
7240         * c-common.h (is_typedef_decl): Revert the moving of this
7241         declaration ...
7242         * tree.h (is_typedef_decl): ... here.
7243         (typedef_variant_p): Revert the moving of this  declaration here
7244         from gcc/cp/cp-tree.h
7245         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7246         (gen_tagged_type_die): Revert the splitting out of ...
7247         (gen_type_die_with_usage): ... this function. Revert the anonymous
7248         tagged type handling.
7249         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
7250         typedefs naming anonymous tagged types.
7251
7252 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7253
7254         * config/rs6000/rs6000-modes.def (PSImode): Delete.
7255
7256 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7257
7258         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7259         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7260         throughout.
7261         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7262         "xer" to "ca".
7263         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7264         XER_REGS to CA_REGS throughout.
7265         * config/rs6000/rs6000.h: Same.
7266         (ADDITIONAL_REGISTER_NAMES): Add "xer".
7267         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
7268         that mode_iterator "P" is the size for arithmetic carries as well.
7269         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7270
7271 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7272
7273         PR bootstrap/44255
7274         * combine.c (struct rtx_subst_pair): Define unconditionally.
7275         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
7276         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7277         Call make_compound_operation on pair->to.
7278         (propagate_for_debug): Don't call make_compound_operation here.
7279         Always use simplify_replace_fn_rtx.
7280
7281 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
7282
7283         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7284         * config/xtensa/xtensa.c (override_options): Check
7285           TARGET_FORCE_NO_PIC and set flag_pic.
7286         * config/xtensa/xtensa.opt: Document -mforce-no-pic
7287
7288 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7289
7290         PR bootstrap/44299
7291         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7292         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7293
7294 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7295
7296         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
7297         toplev.h.
7298         * diagnostic.c: Don't include toplev.h.
7299         (progname): Define.  Moved from toplev.c.
7300         (seen_error): New function.
7301         * diagnostic.h: Include diagnostic-core.h.
7302         (diagnostic_t, emit_diagnostic): Don't declare here.
7303         * toplev.c (progname): Move to toplev.c.
7304         (emit_debug_global_declarations, compile_file, finalize,
7305         do_compile, toplev_main): Use seen_error.
7306         * toplev.h: Include diagnostic-core.h.
7307         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7308         internal_error, warning, warning_at, error, error_n, error_at,
7309         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7310         verbatim, fnotice, progname): Move to diagnostic-core.h.
7311         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7312         (expand_builtin_expect): Use seen_error.
7313         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7314         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7315         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7316         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7317         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7318         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7319         errorcount for errors.
7320         * c-opts.c (c_common_finish): Use seen_error.
7321         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7322         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7323         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7324         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7325         (get_coverage_counts): Use seen_error.
7326         * dwarf2out.c (dwarf2out_finish): Use seen_error.
7327         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7328         gimplify_body): Use seen_error.
7329         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7330         * ipa-pure-const.c (gate_pure_const): Use seen_error.
7331         * ipa-reference.c (gate_reference): Use seen_error.
7332         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7333         * lambda-code.c: Include diagnostic-core.h instead of
7334         diagnostic.h.
7335         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7336         * lto-compress.c: Include diagnostic-core.h instead of
7337         diagnostic.h.
7338         * lto-section-in.c: Include diagnostic-core.h instead of
7339         diagnostic.h.
7340         * lto-streamer-out.c: Include diagnostic-core.h instead of
7341         diagnostic.h.
7342         * lto-streamer.c: Include diagnostic-core.h instead of
7343         diagnostic.h.
7344         (gate_lto_out): Use seen_error.
7345         * matrix-reorg.c: Include diagnostic-core.h instead of
7346         diagnostic.h.
7347         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7348         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7349         (gate_expand_omp, lower_omp_1): Use seen_error.
7350         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7351         (rest_of_decl_compilation, rest_of_type_compilation,
7352         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7353         * tree-cfg.c (label_to_block_fn): Use seen_error.
7354         * tree-inline.c (optimize_inline_calls): Use seen_error.
7355         * tree-mudflap.c (mudflap_finish_file): Use
7356         seen_error.
7357         * tree-optimize.c (gate_all_optimizations,
7358         gate_all_early_local_passes, gate_all_early_optimizations): Use
7359         seen_error.
7360         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7361         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7362         (varpool_remove_unreferenced_decls,
7363         varpool_assemble_pending_decls): Use seen_error.
7364         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7365         (TOPLEV_H, DIAGNOSTIC_H): Update.
7366         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7367         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7368         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7369         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7370         coverage.o, lambda-code.o): Update dependencies.
7371
7372 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
7373
7374         PR c++/44188
7375         * c-common.c (is_typedef_decl): Move this definition ...
7376         * tree.c (is_typedef_decl): ... here.
7377         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7378         * c-common.h (is_typedef_decl): Move this declaration ...
7379         * tree.h (is_typedef_decl): ... here.
7380         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7381         * dwarf2out.c (is_naming_typedef_decl): New function.
7382         (gen_tagged_type_die): Split out of ...
7383         (gen_type_die_with_usage): ... this function. When an anonymous
7384         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7385         is emitted for the typedef.
7386         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7387         anonymous tagged types.
7388
7389 2010-05-27  Jason Merrill  <jason@redhat.com>
7390
7391         * print-tree.c (debug_vec_tree): New fn.
7392         (print_vec_tree): New fn.
7393         * tree.h: Declare them.
7394         * gdbinit.in (pvt): New command.
7395
7396         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7397
7398         * gdbinit.in (pdd): New command.
7399
7400 2010-05-27  Jan Hubicka  <jh@suse.cz>
7401
7402         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7403         (update_caller_keys): Return early if there are no callers;
7404         only update fibheap when decresing the key.
7405         (update_callee_keys): Avoid recursion.
7406         (decide_inlining_of_small_functions): When badness does not match;
7407         re-insert into fibheap.
7408
7409 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
7410
7411         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7412         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7413         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7414         (ALL_HOST_OBJS): Now a union of the above two.
7415         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7416         all files in ALL_HOST_FRONTEND_OBJS.
7417         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7418
7419         * c-common.c: Pretend to be a backend file by undefining
7420         IN_GCC_FRONTEND (still need rtl.h here).
7421
7422 2010-05-27  Jan Hubicka  <jh@suse.cz>
7423
7424         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7425         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7426
7427 2010-05-27  Jan Hubicka  <jh@suse.cz>
7428
7429         * sched-ebb.c: Rename struct deps to struct deps_desc.
7430         * ddg.c: Likewise.
7431         * sel-sched-ir.c: Likewise.
7432         * sched-deps.c: Likewise.
7433         * sched-int.h: Likewise.
7434         * sched-rgn.c: Likewise.
7435
7436 2010-05-27  Jon Beniston  <jon@beniston.com>
7437
7438         PR 43726
7439         * config/lm32/lm32.h: Remove definition of
7440         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7441
7442 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7443
7444         PR lto/44230
7445         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7446
7447 2010-05-27  Richard Guenther  <rguenther@suse.de>
7448
7449         PR tree-optimization/44284
7450         * tree-vect-stmts.c (vectorizable_assignment): Handle
7451         sign-changing conversions as simple copy.
7452
7453 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7454
7455         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7456         Bionic C library.
7457         (__gthread_active_p): Check for pthread_create if compiling against
7458         Bionic C library.
7459
7460 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7461
7462         Support compilation for Android platform.  Reimplement -mandroid.
7463
7464         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7465         (*android*): Set ANDROID_DEFAULT.
7466         (arm*-*-linux*): Include linux-android.h.
7467         (arm*-*-eabi*): Don't include previous -mandroid implementation.
7468         * config/arm/eabi.h: Remove, move Android-specific parts ...
7469         * config/linux-android.h: ... here.  New file.
7470         * config/arm/eabi.opt: Rename to ...
7471         * config/linux-android.opt: ... this.
7472         (mandroid): Allow -mno-android option.  Initialize based on
7473         ANDROID_DEFAULT.
7474         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7475         Move logic to corresponding LINUX_TARGET_* macros.
7476         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7477         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7478         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7479         Android definitions.
7480         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7481         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7482         Document.
7483
7484 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7485
7486         Add support for Bionic C library
7487
7488         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7489         macro.
7490         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7491         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7492
7493         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7494         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7495         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7496         to support multiple C libraries.  Handle Bionic.
7497         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7498         (BIONIC_DYNAMIC_LINKER64): Define.
7499         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7500         Update.
7501         (TARGET_HAS_SINCOS): Enable for Bionic.
7502
7503         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
7504         the last option specified on command line take effect.
7505         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7506         (mbionic): New.
7507         (mglibc, muclibc): Update.
7508
7509         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7510         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7511         DEFAULT_LIBC.
7512
7513         * doc/invoke.texi (-mglibc, -muclibc): Update.
7514         (-mbionic): Document.
7515
7516 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7517
7518         * c-common.h (c_register_addr_space): Add prototype.
7519         (ADDR_SPACE_KEYWORD): Remove.
7520         * c-common.c (c_register_addr_space): New function.
7521         (c_addr_space_name): Reimplement.
7522         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7523
7524         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7525         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7526
7527         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7528         Remove TARGET_ADDR_SPACE_KEYWORDS.
7529
7530 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7531
7532         * input.c: New file.
7533         * input.h (main_input_filename): Move declaration to toplev.h.
7534         * toplev.c (input_location, line_table): Move to input.c
7535         * toplev.h (main_input_filename): Move declaration from input.h.
7536         * tree.c (expand_location): Move to input.c.
7537         * Makefile.in (OBJS-common): Add input.o.
7538         (input.o): Add dependencies.
7539
7540 2010-05-27  Richard Guenther  <rguenther@suse.de>
7541
7542         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7543         for non-existant files.
7544         (fork_execute): Mark args_name file as deleted.
7545
7546 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7547
7548         PR bootstrp/44287
7549         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7550         (narrow_signed_type): Likewise.
7551
7552 2010-05-26  Jan Hubicka  <jh@suse.cz>
7553
7554         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7555         edge only when checking is enabled; check using former_clone_of;
7556         check inline clones too.
7557         (cgraph_materialize_clone): Record former_clone_of pointer.
7558         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7559         combining redirections; dump args_to_skip bitmap
7560         (cgraph_materialize_all_clones): Do no redirection here.
7561         * ipa-inline.c (inline_transform): Do redirection here.
7562         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7563         cheking only).
7564
7565 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7566
7567         * config/avr/avr-c.c: Do not include regs.h.
7568         Include cpplib.h for cpp_define and tree.h for c-common.h.
7569         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7570         * config/avr/t-avr: Fix dependencies for avr-c.o.
7571
7572 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7573
7574         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7575         string instead of SYMBOL_REF rtx.
7576         * rtl.h (set_stack_check_libfunc): Move prototype from here...
7577         * libfuncs.h: ...to here.  Adjust for explow.c change.
7578
7579 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7580
7581         * pretty-print.c: Don't include ggc.h.
7582         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7583         (identifier_to_locale): Use them for allocation.
7584         * pretty-print.h (identifier_to_locale_alloc,
7585         identifier_to_locale_free): Declare.
7586         * toplev.c (alloc_for_identifier_to_locale): New.
7587         (general_init): Set identifier_to_locale_alloc and
7588         identifier_to_locale_free.
7589         * Makefile.in (pretty-print.o): Update dependencies.
7590
7591 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7592
7593         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7594         pointer types if they have different alignment or mode.
7595
7596 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
7597
7598         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7599         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7600         * config/sparc/sparc-protos.h (function_value): Remove declaration.
7601         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7602         sparc_function_value_regno_p): New functions.
7603         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7604         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7605         (function_value): Rename to...
7606         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7607         argument to 'outgoing'.
7608         (function_arg_record_value, function_arg_union_value,
7609         function_arg_vector_value): Update comment.
7610
7611 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7612
7613         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7614         (fde_needed_for_eh_p): New predicate.
7615         (output_call_frame_info): Use it throughout to decide whether FDEs
7616         are needed for EH purpose.
7617         (dwarf2out_begin_prologue): Reorder assignments.
7618
7619 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7620
7621         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7622         special case loop->header.
7623         (is_predicated): New.
7624         (if_convertible_loop_p): Call it.
7625
7626 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7627
7628         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
7629         iterator in parameter.  Do not generate code during the analysis.
7630         (tree_if_convert_cond_stmt): Removed.
7631         (tree_if_convert_stmt): Removed.
7632         (predicate_bbs): New.
7633         (if_convertible_loop_p): Call predicate_bbs.
7634         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
7635         now contains all the analysis part.
7636
7637 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7638
7639         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
7640         statements in the analysis part.
7641         (tree_if_convert_stmt): Update comment.
7642         (remove_conditions_and_labels): New.
7643         (combine_blocks): Call remove_conditions_and_labels.
7644         (tree_if_conversion): Update comment.
7645
7646 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7647
7648         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
7649         than 2 predecessors or more than 2 successors.
7650
7651 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7652
7653         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
7654         of loops in which the data dependence analysis fails.
7655
7656 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7657
7658         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
7659         CDI_POST_DOMINATORS.
7660         (tree_if_conversion): Same.
7661
7662 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7663
7664         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
7665
7666 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7667
7668         * tree-if-conv.c: Update copyright years.  Fix comments.
7669         Fix indentation.
7670
7671 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
7672
7673         * builtin-types.def (BT_INT128): New primitive type.
7674         (BT_UINT128): Likewise.
7675         * c-common.c (c_common_r): Add __int128 keyword.
7676         (c_common_type_for_size): Handle __int128.
7677         (c_common_type_for_mode): Likewise.
7678         (c_common_signed_or_unsigned_type): Likewise.
7679         (c_common_nodes_and_builtins): Add builtin type
7680         if target supports 128-bit integer scalar.
7681         * c-common.h (enum rid): Add RID_INT128.
7682         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
7683         if target supports 128-bit integer scalar.
7684         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
7685         (finish_declspecs): Likewise.
7686         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
7687         (c_token_starts_declspecs): Likewise.
7688         (c_parser_declspecs): Likewise.
7689         (c_parser_attributes): Likewise.
7690         (c_parser_objc_selector): Likewise.
7691         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
7692         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
7693         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
7694         * tree.c (make_or_reuse_type): Likewise.
7695         (make_unsigned_type): Likewise.
7696         (build_common_tree_nodes_2): Likewise.
7697         * tree.h (enum integer_type_kind): Add itk_int128 and
7698         itk_unsigned_int128.
7699         (int128_integer_type_node): New define.
7700         (int128_unsigned_type_node): New define.
7701         * doc/extend.texi: Add documentation about __int128 type.
7702
7703 2010-05-26  Richard Guenther  <rguenther@suse.de>
7704
7705         * tree-ssa-sccvn.c (copy_nary): Adjust.
7706         (copy_phis): Rename to ...
7707         (copy_phi): ... this.  Adjust.
7708         (copy_references): Rename to ...
7709         (copy_reference): ... this.  Adjust.
7710         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
7711         result into the valid table.
7712
7713 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7714
7715         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
7716         insn-config.h, insn-codes.h, recog.h, and optabs.h.
7717
7718 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7719
7720         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
7721
7722 2010-05-26  Richard Guenther  <rguenther@suse.de>
7723
7724         * opts.c (common_handle_option): Handle OPT_Ofast.
7725
7726 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7727
7728         * diagnostic.c: Don't include opts.h.
7729         (permissive_error_option): Define.
7730         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
7731         for classify_diagnostic.  Don't use memset for
7732         classify_diagnostic.  Initialize new and recently added fields.
7733         (diagnostic_classify_diagnostic): Use context->n_opts instead of
7734         N_OPTS.
7735         (diagnostic_report_diagnostic): Pass context parameter to
7736         diagnostic_report_warnings_p.  Use option_enabled and option_name
7737         hooks from context.
7738         (emit_diagnostic): Use permissive_error_option.
7739         (permerror): Likewise.
7740         * diagnostic.h: Don't include options.h.
7741         (struct diagnostic_context): Add n_opts, opt_permissive,
7742         inhibit_warnings, warn_system_headers, option_enabled and
7743         option_name fields.  Change classify_diagnostic to a pointer.
7744         * opts-diagnostic.h: New file.
7745         * opts.c: Include opts-diagnostic.h.
7746         (common_handle_option): Set global_dc fields for -Wfatal-errors,
7747         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
7748         (option_name): New function.
7749         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
7750         (c_common_handle_option): Set global_dc->permissive for
7751         -fpermissive.
7752         * c-common.c (c_cpp_error): Save and restore
7753         global_dc->warn_system_headers, not variable warn_system_headers.
7754         * toplev.c: Include opts-diagnostic.h.
7755         (general_init): Update call to diagnostic_initialize.  Set
7756         global_dc->show_column, global_dc->option_enabled and
7757         global_dc->option_name.
7758         (process_options): Don't set global_dc fields here.
7759         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
7760         (diagnostic.o, opts.o, toplev.o): Update dependencies.
7761
7762 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
7763
7764         * config/picochip/picochip.md (movsi): Split a movsi from a
7765         const after reload.
7766
7767 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7768
7769         * ggc-zone.c: Update copyright year.
7770         (poison_region): Mark memory for Valgrind as undefined before
7771         memset () call and inaccessible afterwards.
7772         (ggc_pch_total_size): Change type of i to int.
7773
7774 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7775
7776         * ggc-common.c (ggc_free_overhead): Allow empty slot.
7777
7778 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
7779
7780         * ggc-common.c: Update copyright year.
7781         (ggc_rlimit_bound): Remove prototype.  Compile only if
7782         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
7783         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
7784         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
7785         (ggc_min_heapsize_heuristic): Likewise.
7786
7787 2010-05-26  Richard Guenther  <rguenther@suse.de>
7788
7789         PR rtl-optimization/44164
7790         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
7791         no-common access-path disambiguation.
7792         (indirect_ref_may_alias_decl_p): Adjust.
7793         (indirect_refs_may_alias_p): Likewise.
7794         (refs_may_alias_p_1): Likewise.
7795
7796 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7797
7798         * c-typeck.c: Do not include expr.h.
7799
7800 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7801
7802         * rtl.h (decl_default_tls_model): Move prototype from here...
7803         * output.h: ...to here.
7804         * c-decl.c: Do not include rtl.h.
7805         * c-pragma.c: Likewise.
7806         * c-parser.c: Likewise.
7807         * c-gimplify.c: Likewise.  And also not hard-reg-set.
7808         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
7809         FIXME note for it.  Add a FIXME note for expr.h.
7810         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
7811         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
7812         defined.
7813
7814 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
7815
7816         PR target/44199
7817         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
7818         or total_size is larger than red zone size for non-V4 ABI, emit a
7819         stack_tie resp. frame_tie insn before stack pointer restore.
7820         * config/rs6000/rs6000.md (frame_tie): New insn.
7821
7822 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
7823
7824         * function.h (struct function): Add can_throw_non_call_exceptions bit.
7825         * lto-streamer-in.c (input_function): Stream it in.
7826         * lto-streamer-out.c (output_function): Stream it out.
7827         * function.c (allocate_struct_function): Set it.
7828         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
7829         for flag_non_call_exceptions.
7830         * cfgbuild.c (control_flow_insn_p): Likewise.
7831         (make_edges): Likewise.
7832         * cfgexpand.c (expand_stack_alignment): Likewise.
7833         * combine.c (distribute_notes): Likewise.
7834         * cse.c (cse_extended_basic_block): Likewise.
7835         * except.c (insn_could_throw_p): Likewise.
7836         * gcse.c (simple_mem): Likewise.
7837         * ipa-pure-const.c (check_call): Likewise.
7838         (check_stmt ): Likewise.
7839         * lower-subreg.c (lower-subreg.c): Likewise.
7840         * optabs.c (emit_libcall_block): Likewise.
7841         (prepare_cmp_insn): Likewise.
7842         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
7843         * postreload.c (rest_of_handle_postreload): Likewise.
7844         * reload1.c (reload_as_needed): Likewise.
7845         (emit_input_reload_insns): Likewise.
7846         (emit_output_reload_insns): Likewise.
7847         (fixup_abnormal_edges): Likewise.
7848         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
7849         * store-motion.c (find_moveable_store): Likewise.
7850         * tree-eh.c (stmt_could_throw_p): Likewise.
7851         (tree_could_throw_p): Likewise.
7852         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7853         * config/arm/arm.c (arm_expand_prologue): Likewise.
7854         (thumb1_expand_prologue): Likewise.
7855         * config/rx/rx.md (cbranchsf4): Likewise.
7856         (cmpsf): Likewise.
7857         * config/s390/s390.c (s390_emit_prologue): Likewise.
7858         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
7859         (inline_forbidden_into_p): New predicate.
7860         (expand_call_inline): Use it to forbid inlining.
7861         (tree_can_inline_p): Likewise.
7862
7863 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7864
7865         * config/i386/i386-c.c: Do not include rtl.h.
7866         * config/i386/t-i386: Update dependencies.
7867
7868 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7869
7870         * attribs.c: Do not include rtl.h.
7871         * Makefile.in: Update dependencies.
7872
7873 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
7874
7875         * double-int.h (double_int_and): New.
7876         * combine.c (try_combine): Clean up, use double_int_* and
7877         immed_double_int_const functions.
7878
7879 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7880
7881         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
7882         stderr to /dev/null instead of grep -q.
7883         * configure: Regenerate.
7884
7885 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
7886
7887         * Makefile.in (EXCEPT_H): Fix typo.
7888
7889 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
7890
7891         * ira-build.c (update_conflict_hard_reg_costs): New.
7892         (ira_build): Call update_conflict_hard_reg_costs.
7893
7894 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7895
7896         PR debug/41371
7897         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
7898         ENABLE_CHECKING.
7899         (intersect_loc_chains): Walk the s2var's loc_chain together
7900         with s1node chain as long as the locations are equal, don't
7901         call find_loc_in_1pdv in that case.
7902
7903         PR debug/42801
7904         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
7905         (copy_bind_expr): ... instead of here.
7906         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7907         if the block hasn't been remapped.
7908         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7909         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7910
7911 2010-05-25  Richard Guenther  <rguenther@suse.de>
7912
7913         PR middle-end/44069
7914         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7915         out-of-bounds array accesses.
7916
7917 2010-05-25  Richard Guenther  <rguenther@suse.de>
7918
7919         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7920         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7921         (run_gcc): Re-organize to make cleanup easier.
7922
7923 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7924
7925         * config/s390/s390.c (optimization_options): Fix and move the
7926         flag_prefetch_loop_arrays override ...
7927         (override_options): ... here.
7928
7929 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7930
7931         * diagnostic.c: Don't include plugin.h.
7932         (diagnostic_report_diagnostic): Don't handle plugins specially
7933         here.  Pass context to internal_error callback.
7934         * diagnostic.h (struct diagnostic_context): Add context parameter
7935         to internal_error callback.
7936         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7937         * plugin.h (struct diagnostic_context): Declare.
7938         (warn_if_plugins, plugins_internal_error_function): Declare.
7939         * toplev.c (general_init): Set global_dc->internal_error.
7940         * Makefile.in (diagnostic.o): Update dependencies.
7941
7942 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
7943
7944         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7945         * config/rs6000/t-darwin64: New.
7946         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7947         build crt2.
7948
7949 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
7950
7951         PR 44203
7952         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7953         match the original (and intended) behaviour before r159557.  This
7954         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7955         in two ways.
7956
7957 2010-05-25  Richard Guenther  <rguenther@suse.de>
7958
7959         * doc/invoke.texi: Document -Ofast.
7960         * target.h (struct gcc_target): Add handle_ofast.
7961         * target-def.h (TARGET_HANDLE_OFAST): Add.
7962         (TARGET_INITIALIZER): Adjust.
7963         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
7964         * common.opt (Ofast): Add.
7965
7966 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7967
7968         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7969         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7970
7971 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7972
7973         PR target/43610
7974         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7975         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
7976         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
7977         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7978
7979 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7980
7981         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7982         DW_OP_minus with negated offset instead of DW_OP_plus.
7983         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7984
7985 2010-05-25  Wei Guozhi  <carrot@google.com>
7986
7987         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7988         tst instruction and a new alternative.
7989         * config/arm/constraints.md (Pu): New constraint.
7990
7991 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
7992
7993         * function.c (assign_stack_local_1): Initialize variable
7994         to avoid warning when bootstrapping at -O3.
7995
7996 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
7997
7998         * configure.ac (all_lang_makefiles): Remove everything related to it.
7999         * configure: Regenerate.
8000         * Makefile.in: Fix reference to ada Make-lang.in.
8001         Remove support for LANG_MAKEFILES.
8002
8003 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
8004             Sandra Loosemore  <sandra@codesourcery.com>
8005
8006         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8007         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8008         description.  Add arm_neon_fp16_ok.
8009         (Add Options): Add arm_neon and arm_neon_fp16.
8010
8011 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
8012
8013         * diagnostic.c: Don't include flags.h.
8014         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8015         context parameters.  Check flags in the context passed as a parameter.
8016         (diagnostic_build_prefix): Add context parameter.  Check
8017         show_column flag in context.
8018         (diagnostic_action_after_output): Check fatal_errors flag in context.
8019         (diagnostic_report_current_module): Check show_column flag in context.
8020         (default_diagnostic_starter): Update call to
8021         diagnostic_build_prefix.
8022         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8023         (emit_diagnostic): Pass context to permissive_error_kind.
8024         (permerror): Pass context to permissive_error_kind.
8025         * diagnostic.h (struct diagnostic_context): Add show_column,
8026         pedantic_errors, permissive and fatal_errors fields.
8027         (diagnostic_build_prefix): Update prototype.
8028         * langhooks.c
8029         * toplev.c (process_options): Set flags in global_dc from
8030         flag_show_column, flag_pedantic_errors, flag_permissive,
8031         flag_fatal_errors.
8032         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8033         to diagnostic_build_prefix.
8034         * Makefile.in (diagnostic.o): Update dependencies.
8035
8036 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8037
8038         * config/i386/ia32intrin.h (__crc32q): Define only if
8039         __SSE4_2__ is defined.
8040
8041 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
8042
8043         PR target/44132
8044         PR middle-end/43602
8045         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8046         DECL_VISIBILITY_SPECIFIED.
8047         (emutls_decl): Set DECL_PRESERVE_P and copy
8048         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8049         (emutls_finalize_control_var): New callback.
8050         (emutls_finish): Finalize emutls control variables.
8051         * toplev.c (compile_file): Move the call to emutls_finish ()
8052         before varpool_assemble_pending_decls ().
8053
8054 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
8055
8056         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8057         added to the preprocessor condition.
8058
8059 2010-05-24  Paul Brook  <paul@codesourcery.com>
8060
8061         * gengtype-lex.l: Add HARD_REG_SET.
8062         * expr.c (expand_expr_real_1): Record writes to hard registers.
8063         * function.c (rtl_data): Add asm_clobbers.
8064         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8065         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8066         Use crtl->asm_clobbers.
8067
8068 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8069
8070         * doc/makefile.texi (Makefile): Mention stages 'profile'
8071         and 'feedback' for profiledbootstrap.
8072
8073 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8074
8075         PR target/44245
8076         * config/i386/i386.c (def_builtin): Properly check
8077         OPTION_MASK_ISA_64BIT.
8078
8079 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
8080
8081         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8082         typedefs with different but compatible types.  Allow duplicate
8083         typedefs with the same type except for pedantic non-C1X, but give
8084         warning for variably modified types.
8085         * c-typeck.c (tagged_types_tu_compatible_p,
8086         function_types_compatible_p, type_lists_compatible_p,
8087         comptypes_internal): Add parameter different_types_p; set
8088         *different_types_p for different but compatible types.  All
8089         callers changed.
8090         (comptypes_check_different_types): New.
8091         * c-tree.h (comptypes_check_different_types): Declare.
8092
8093 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8094
8095         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
8096         * jump.c: Include basic-block.h.
8097         * profile.c: Likewise.
8098         * tree-profile.c: Likewise.
8099         * coverage.c: Likewise.
8100         * basic-block.h (optimize_function_for_size_p): Move to function.h.
8101         (optimize_function_for_speed_p): Likewise.
8102         * function.h (optimize_function_for_size_p,
8103         optimize_function_for_speed_p): Moved here from basic-block.h.
8104         * Makefile.in: Update dependencies.
8105
8106 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8107
8108         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8109         before calling make; allow override through $MAKE.
8110         * doc/invoke.texi (Optimize Options): Document override.
8111
8112 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
8113
8114         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8115         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8116         (rs6000_mode_dependent_address_ptr): Make static.
8117         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8118         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8119         Remove.
8120
8121 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
8122
8123         PR target/43869
8124         * config/i386/i386.c: Make sure that the correct regparm is passed.
8125
8126 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8127
8128         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8129         * sbitmap.c: ...to here to internalize sbitmap element access.
8130         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8131         Explain why basic-block.h is included.
8132         * function.h: Include tm.h for CUMULATIVE_ARGS.
8133         * Makefile.in: Update dependencies.
8134
8135 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8136
8137         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8138         New core types.
8139         * sbitmap.h (struct sbitmap_def): Do not typedef here.
8140         * sbitmap.c: Include sbitmap.h.
8141         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8142         hard-reg-set.h.  Split everything related to regsets out from here...
8143         * regset.h: ...to here.  New file.
8144         * df.h: Include regset.h and sbitmap.h.
8145         * tree-flow.h: Likewise.
8146         * cfgloop.h: Likewise.
8147         * except.h: Do not include sbitmap.h.  Include hashtab.h.
8148         * cgraph.h: Include vec.h and function.h.
8149         * reload.h (struct insn_chain): Change types of live_throughout
8150         and dead_or_set from regset_head to bitmap_head.
8151         (compute_use_by_pseudos): Be defined also if regset.h is not included.
8152         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8153         spilled_regs from regset_head to bitmap_head to avoid dependency
8154         in regset.h.
8155         * sel-sched-ir.h: Include regset.h.
8156         * reload.c: Include df.h before reload.h.
8157         * caller-save.c: Likewise.
8158         * reload1.c: Likewise.
8159         * ira.c: Likewise.
8160         (mark_elimination): Update type of r to bitmap, consistent with
8161         DF_LR_IN.
8162         * dominance.c: Include bitmap.h.
8163         * modulo-sched.c: Include df.h.
8164         * cfganal.c: Include bitmap.h and sbitmap.h.
8165         * cfgbuild.c: Include sbitmap.h.
8166         * lcm.c: Include sbitmap.h.
8167         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8168         * domwalk.c: Include sbitmap.h, exclude ggc.h.
8169         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8170         * cselib.c: Include bitmap.h.
8171         * tree-optimize.c: Include regset.h.
8172         * stmt.c: Include bitmap.h.
8173         * Makefile.in: Update dependencies.
8174
8175 2010-05-22  Jan Hubicka  <jh@suse.cz>
8176
8177         * cgraph.h (struct varpool_node): Add same_comdat_group.
8178         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8179         pointer.
8180         (output_varpool): Update call of lto_output_varpool_node.
8181         (input_varpool): Read same_comdat_group pointer.
8182         (input_varpool_1): Fixup same_comdat_group pointer.
8183         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8184         group is needed, all are.
8185         * varpool.c (varpool_remove_node): Remove node from same comdat group
8186         linklist too.
8187         (varpool_analyze_pending_decls): Walk same comdat groups.
8188
8189 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8190
8191         * rtl.h (union rtunion_def): Remove rt_bit member.
8192         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8193         * print-rtl (print_rtx): Do not print the member.
8194         * gengtype.c (adjust_field_rtx_def): Do not handle it.
8195         * gengenrtl.c (type_from_format): Likewise.
8196         (accessor_from_format): Likewise.
8197
8198 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
8199
8200         * dbgcnt.c: Include toplev.h instead of errors.h.
8201         * ira-emit.c: Don't include errors.h.
8202         * ira.c: Include toplev.h instead of errors.h.
8203         * lto-compress.c: Include toplev.h instead of errors.h.
8204         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8205         ira.o, dbgcnt.o): Update dependencies.
8206
8207 2010-05-22  Richard Guenther  <rguenther@suse.de>
8208
8209         * gimple.c (gimple_types_compatible_p): Check type qualifications
8210         before merging pointer to complete and pointer to incomplete type.
8211         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8212         we use our own resolution algorithm.  The gold linker plugin
8213         doesn't do the job we want it to do here.
8214
8215 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
8216
8217         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8218         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8219         (sparc_mode_dependent_address_p): New function.
8220
8221 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8222
8223         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8224
8225         * timevar.c: Do not include any core headers.
8226         (timevar_print): De-i18n-ize.
8227         (print_time): Likewise.
8228         * timevar.h (timevar_push, timevar_pop): Make inline functions.
8229
8230 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
8231
8232         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8233         langhooks-def.h.
8234         (diagnostic_initialize): Initialize x_data not last_function.
8235         (diagnostic_report_current_function): Move to tree-diagnostic.c.
8236         (default_diagnostic_starter): Call
8237         diagnostic_report_current_module not
8238         diagnostic_report_current_function.
8239         (diagnostic_report_diagnostic): Initialize x_data not
8240         abstract_origin.
8241         (verbatim): Likewise.
8242         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8243         x_data.
8244         (struct diagnostic_context): Change last_function to x_data.
8245         (diagnostic_auxiliary_data): Replace with
8246         diagnostic_context_auxiliary_data and
8247         diagnostic_info_auxiliary_data.
8248         (diagnostic_last_function_changed, diagnostic_set_last_function,
8249         diagnostic_report_current_function): Move to tree-diagnostic.h.
8250         (print_declaration, dump_generic_node, print_generic_stmt,
8251         print_generic_stmt_indented, print_generic_expr,
8252         print_generic_decl, debug_c_tree, dump_omp_clauses,
8253         print_call_name, debug_generic_expr, debug_generic_stmt,
8254         debug_tree_chain, default_tree_printer): Move to
8255         tree-pretty-print.h.
8256         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8257         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8258         gimple-pretty-print.h.
8259         * pretty-print.c: Don't include tree.h
8260         (pp_base_format): Don't handle %K here.
8261         (pp_base_tree_identifier): Move to tree-pretty-print.c.
8262         * pretty-print.h (text_info): Change abstract_origin to x_data.
8263         (pp_tree_identifier, pp_unsupported_tree,
8264         pp_base_tree_identifier): Move to tree-pretty-print.h.
8265         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8266         tree-pretty-print.h: New files.
8267         * tree-pretty-print.c: Include tree-pretty-print.h.
8268         (percent_K_format): New.  Moved from pretty-print.c.
8269         (pp_base_tree_identifier): Move from pretty-print.c.
8270         * c-objc-common.c: Include tree-pretty-print.h.
8271         (c_tree_printer): Handle %K here.
8272         * langhooks.c: Include tree-diagnostic.h.
8273         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8274         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8275         (default_tree_printer): Handle %K using percent_K_format.
8276         (general_init): Use default_tree_diagnostic_starter.
8277         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8278         (free_lang_data): Use default_tree_diagnostic_starter.
8279         * c-pretty-print.c: Include tree-pretty-print.h.
8280         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8281         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8282         * dwarf2out.c: Include tree-pretty-print.h.
8283         * except.c: Include tree-pretty-print.h.
8284         * gimple-pretty-print.c: Include tree-pretty-print.h and
8285         gimple-pretty-print.h.
8286         * gimplify.c: Include tree-pretty-print.h.
8287         * graphite-poly.c: Include tree-pretty-print.h and
8288         gimple-pretty-print.h.
8289         * ipa-cp.c: Include tree-pretty-print.h.
8290         * ipa-inline.c: Include gimple-pretty-print.h.
8291         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8292         * ipa-pure-const.c: Include gimple-pretty-print.h.
8293         * ipa-struct-reorg.c: Include tree-pretty-print.h and
8294         gimple-pretty-print.h.
8295         * ipa-type-escape.c: Include tree-pretty-print.h.
8296         * print-rtl.c: Include tree-pretty-print.h.
8297         * print-tree.c: Include gimple-pretty-print.h.
8298         * sese.c: Include tree-pretty-print.h.
8299         * tree-affine.c: Include tree-pretty-print.h.
8300         * tree-browser.c: Include tree-pretty-print.h.
8301         * tree-call-cdce.c: Include gimple-pretty-print.h.
8302         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8303         * tree-chrec.c: Include tree-pretty-print.h.
8304         * tree-data-ref.c: Include tree-pretty-print.h and
8305         gimple-pretty-print.h.
8306         * tree-dfa.c: Include tree-pretty-print.h.
8307         * tree-if-conv.c: Include tree-pretty-print.h and
8308         gimple-pretty-print.h.
8309         * tree-inline.c: Include tree-pretty-print.h.
8310         * tree-into-ssa.c: Include tree-pretty-print.h and
8311         gimple-pretty-print.h.
8312         * tree-nrv.c: Include tree-pretty-print.h.
8313         * tree-object-size.c: Include tree-pretty-print.h and
8314         gimple-pretty-print.h.
8315         * tree-outof-ssa.c: Include tree-pretty-print.h and
8316         gimple-pretty-print.h.
8317         * tree-parloops.c: Include tree-pretty-print.h and
8318         gimple-pretty-print.h.
8319         * tree-predcom.c: Include tree-pretty-print.h and
8320         gimple-pretty-print.h.
8321         * tree-scalar-evolution.c: Include tree-pretty-print.h and
8322         gimple-pretty-print.h.
8323         * tree-sra.c: Include tree-pretty-print.h.
8324         * tree-ssa-address.c: Include tree-pretty-print.h.
8325         * tree-ssa-alias.c: Include tree-pretty-print.h.
8326         * tree-ssa-ccp.c: Include tree-pretty-print.h and
8327         gimple-pretty-print.h.
8328         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8329         * tree-ssa-copy.c: Include tree-pretty-print.h and
8330         gimple-pretty-print.h.
8331         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8332         * tree-ssa-dce.c: Include tree-pretty-print.h and
8333         gimple-pretty-print.h.
8334         * tree-ssa-dom.c: Include tree-pretty-print.h and
8335         gimple-pretty-print.h.
8336         * tree-ssa-dse.c: Include gimple-pretty-print.h.
8337         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8338         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8339         * tree-ssa-live.c: Include tree-pretty-print.h and
8340         gimple-pretty-print.h.
8341         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8342         gimple-pretty-print.h.
8343         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8344         gimple-pretty-print.h.
8345         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8346         gimple-pretty-print.h.
8347         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8348         gimple-pretty-print.h.
8349         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8350         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8351         * tree-ssa-operands.c: Include tree-pretty-print.h and
8352         gimple-pretty-print.h.
8353         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8354         gimple-pretty-print.h.
8355         * tree-ssa-pre.c: Include tree-pretty-print.h and
8356         gimple-pretty-print.h.
8357         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8358         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8359         gimple-pretty-print.h.
8360         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8361         gimple-pretty-print.h.
8362         * tree-ssa-sink.c: Include gimple-pretty-print.h.
8363         * tree-ssa-ter.c: Include tree-pretty-print.h and
8364         gimple-pretty-print.h.
8365         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8366         * tree-ssa.c: Include tree-pretty-print.h and
8367         gimple-pretty-print.h.
8368         * tree-stdarg.c: Include gimple-pretty-print.h.
8369         * tree-switch-conversion.c: Include gimple-pretty-print.h.
8370         * tree-tailcall.c: Include tree-pretty-print.h and
8371         gimple-pretty-print.h.
8372         * tree-vect-data-refs.c: Include tree-pretty-print.h and
8373         gimple-pretty-print.h.
8374         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8375         gimple-pretty-print.h.
8376         * tree-vect-loop.c: Include tree-pretty-print.h and
8377         gimple-pretty-print.h.
8378         * tree-vect-patterns.c: Include gimple-pretty-print.h.
8379         * tree-vect-slp.c: Include tree-pretty-print.h and
8380         gimple-pretty-print.h.
8381         * tree-vect-stmts.c: Include tree-pretty-print.h and
8382         gimple-pretty-print.h.
8383         * tree-vectorizer.c: Include tree-pretty-print.h.
8384         * tree-vrp.c: Include tree-pretty-print.h and
8385         gimple-pretty-print.h.
8386         * value-prof.c: Include tree-pretty-print.h and
8387         gimple-pretty-print.h.
8388         * var-tracking.c: Include tree-pretty-print.h.
8389         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8390         (tree-diagnostic.o): New dependencies.
8391         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8392         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8393         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8394         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8395         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8396         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8397         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8398         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8399         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8400         tree-ssa-address.o, tree-ssa-loop-niter.o,
8401         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8402         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8403         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8404         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8405         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8406         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8407         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8408         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8409         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8410         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8411         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8412         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8413         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8414         tree-switch-conversion.o, var-tracking.o, value-prof.o,
8415         cfgexpand.o, pretty-print.o): Update dependencies.
8416
8417 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
8418
8419         * tree-ssa-structalias.c: Remove tm_p.h from include.
8420
8421 2010-05-21  Jeff Law  <law@redhat.com>
8422
8423         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8424
8425 2010-05-21  Jason Merrill  <jason@redhat.com>
8426
8427         * tree-eh.c (cleanup_is_dead_in): New.
8428         (lower_try_finally): Don't generate a dead cleanup region.
8429         (lower_cleanup): Likewise.
8430
8431 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8432
8433         PR debug/44223
8434         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8435         unchain each use from the cyclic next_regno_use chain first.
8436
8437 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8438
8439         * real: Do not include gmp.h, mpfr.h, and mpc.h.
8440         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8441         (real_value_negate, real_value_abs): New prototypes.
8442         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8443         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8444         new include file for interface between MPFR and REAL_VALUE_TYPE.
8445         * real.c: Include realmpfr.h.
8446         (real_arithmetic2): Remove legacy function.
8447         (real_value_negate): New.
8448         (real_value_abs): New.
8449         (mfpr_from_real, real_from_mpfr): Move from here...
8450         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8451         * builtins.c: Include realmpfr.h.
8452         * fold-const.c: Include realmpfr.h.
8453         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8454         (fold_negate_const): Likewise.
8455         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8456         * toplev.c: Include realmpfr.h.
8457         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8458         and real_value_negate.
8459         * fixed-value.c (check_real_for_fixed_mode): Likewise.
8460         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8461         (vfp3_const_double_index): Likewise.
8462         (arm_print_operand): Likewise.
8463         * Makefile.in: Update dependencies.
8464
8465 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8466
8467         * config/s390/s390.c (override_options): Increase the default
8468         of max-completely-peel-times.
8469
8470 2010-05-21  Julian Brown  <julian@codesourcery.com>
8471             Mark Mitchell  <mark@codesourcery.com>
8472
8473         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8474         sibling calls for Thumb-1.
8475         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8476         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8477         Thumb-2.
8478         (*call_insn, *call_value_insn): Don't use for Thumb-2.
8479         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8480         for Thumb-2.
8481         (return): New expander.
8482         (*arm_return): New name for ARM return insn.
8483         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8484
8485 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
8486
8487         * config.gcc (sparc64-*-rtems*): New target.
8488
8489 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8490
8491         * tree.c (build_function_decl_skip_args): Fix grammar.
8492         (build_function_type_list_1): Fix typos, adjust formatting.
8493
8494 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8495
8496         * tree.h: Include real.h and fixed-value.h as basic datatypes.
8497         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8498         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8499         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8500         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8501         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8502         tree-pretty-print.c, tree-loop-distribution.c,
8503         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8504         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8505         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8506         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8507         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8508         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8509         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8510         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8511         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8512         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8513         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8514         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8515         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8516         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8517         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8518         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8519         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8520         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8521         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8522         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8523         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8524         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8525         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8526         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8527         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8528         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8529         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8530         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8531         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8532         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8533         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8534         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8535         config/score/score7.c, config/score/score.c, config/arm/arm.c,
8536         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8537         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8538         config/bfin/bfin.c: Clean up redundant includes.
8539         * Makefile.in: Update accordingly.
8540
8541 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8542
8543         PR middle-end/44204
8544         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8545         statement has no arguments.
8546
8547 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
8548
8549         PR/44139
8550         * varasm.c (emutls_decl): Merge attributes to new decl.
8551
8552 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8553
8554         PR middle-end/44101
8555         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8556         around the uniquized constructor if its type requires a conversion.
8557
8558 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8559
8560         PR debug/44205
8561         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8562         at -O0 goto_locus of any of the incoming edges differs from
8563         goto_locus of outgoing edge, or gimple_location of any of the
8564         labels differs.
8565
8566 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
8567
8568         * ira.c (ira_non_ordered_class_hard_regs): Define.
8569         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8570         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8571         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8572         cost of unaligned hard regs when allocating multi-reg pseudos.
8573
8574 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8575
8576         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8577         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8578         for TARGET_NO_FLOAT.
8579         * config/mips/mips.c (mips_file_start): Expand conditional expression
8580         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8581         (mips_override_options): Move -mno-float override -msoft-float and
8582         -mhard-float.
8583         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8584         Condition(TARGET_SUPPORTS_NO_FLOAT).
8585         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8586         __mips_no_float here.
8587         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8588         (TARGET_SUPPORTS_NO_FLOAT): Define.
8589         * config/mips/sdemtk.opt: Delete.
8590
8591 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
8592
8593         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8594
8595 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
8596
8597         PR target/43733
8598         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8599         * configure: Regenerate.
8600         * config.in: Regenerate.
8601         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8602         instead of sahf only for 64bit targets.
8603
8604 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8605
8606         PR debug/44178
8607         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8608         setup_ref_regs for DEBUG_INSNs.
8609
8610 2010-05-20  Jan Hubicka  <jh@suse.cz>
8611
8612         PR middle-end/44197
8613         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8614
8615 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8616
8617         PR bootstrap/43870
8618         * df-scan.c (df_ref_compare): Stabilize sort.
8619
8620 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8621
8622         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8623         argument.  Don't use DW_OP_piece if offset is non-zero,
8624         put offset into second DW_OP_bit_piece argument.
8625         (dw_sra_loc_expr): Adjust callers.  For memory expressions
8626         compute offset.
8627
8628 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
8629
8630         PR target/44202
8631         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
8632         settings for 16-bit-constant "addo" alternative.
8633
8634 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
8635
8636         * config/mips/mips-dsp.md (add<DSPV:mode>3,
8637         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
8638
8639         PR target/43764
8640         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
8641         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
8642         Use it.
8643
8644 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
8645
8646         * diagnostic.c (FLOAT, FFS): Don't undefine.
8647         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
8648         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
8649         include ordering.
8650
8651 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
8652
8653         * combine.c (propagate_for_debug): Call make_compound_operation
8654         on the source value.
8655         (try_combine): When implementing a split chosen by find_split_point,
8656         either copy i2src or set it to null.  Assert that i2src is not null
8657         before substituting into CALL_INSN_FUNCTION_USAGE.
8658
8659 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
8660
8661         * double-int.h (double_int_ior): New function.
8662         * tree.h (build_int_cst_wide_type): Remove.
8663         * tree.c (build_int_cst_wide_type): Remove.
8664         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
8665         of build_int_cst_wide_type.
8666         * stor-layout.c (set_sizetype): (Ditto.).
8667         * dojump.c (do_jump): Use build_int_cstu instead of
8668         build_int_cst_wide_type.
8669
8670 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
8671
8672         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
8673         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
8674         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
8675         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
8676         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
8677         propagate the 'data' argument to copy_tree_r.
8678         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
8679         Propagate 'data' argument to walk_tree.
8680         (copy_if_shared): New function.
8681         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
8682         (unmark_visited): New function.
8683         (unshare_body): Call copy_if_shared instead of doing it manually.
8684         (unvisit_body): Call unmark_visited instead of doing it manually.
8685
8686 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
8687
8688         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
8689         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
8690         * hooks.c: Likewise.
8691         * target-def.h (TARGET_FOLD_BUILTIN): Define to
8692         hook_tree_tree_int_treep_bool_null.
8693         * target.h (struct gcc_target): Update signature of fold_builtin
8694         field.
8695         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
8696         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
8697         instead of the call expression.
8698         (fold_builtin_call_array): Pass n and argarray directly.
8699         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
8700         consing a list.
8701         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
8702         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
8703         `i' and use it in place of `arity'.
8704         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
8705         Dereference `args' directly.
8706         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
8707
8708 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8709
8710         * doc/sourcebuild.texi (Effective-Target Keywords): Document
8711         3dnow, sse3, sse2.
8712         (Directives): Document optional dg-require-effective-target
8713         selector.
8714
8715 2010-05-19  Richard Guenther  <rguenther@suse.de>
8716
8717         PR lto/44196
8718         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
8719
8720 2010-05-19  Richard Guenther  <rguenther@suse.de>
8721
8722         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
8723         * common.opt (fwhopr=): New.
8724         * opts.c (common_handle_option): Handle OPT_fwhopr.
8725         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
8726         * collect2.c (main): Match -fwhopr*.
8727         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
8728         Execute ltrans stage in parallel when jobs is bigger than 1.
8729
8730 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8731
8732         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
8733         pentiumpro on Solaris 8/x86 with Sun as.
8734         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
8735         hidden alias bug.
8736         (gcc_cv_as_ix86_quad): Check for .quad directive.
8737         * configure: Regenerate.
8738         * config.in: Regenerate.
8739         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
8740
8741 2010-05-19  Martin Jambor  <mjambor@suse.cz>
8742
8743         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
8744         also for indirect edges.  Actual printing moved...
8745         (ipa_print_node_jump_functions_for_edge): ...here.
8746         (ipa_compute_jump_functions): Renamed to
8747         ipa_compute_jump_functions_for_edge and made static.
8748         (ipa_compute_jump_functions): New function.
8749         (make_edge_direct_to_target): Check if the number of arguments on
8750         the newly direct edge is the same as the number of parametrs of
8751         the callee.
8752         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
8753         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
8754         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
8755         analysis functions unconditionally, call the new
8756         ipa_analyze_params_uses on the node instead of every edge.
8757
8758 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
8759
8760         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
8761         to tree.
8762         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
8763         also checks for a constant int vs.  non-constant but
8764         loop-invariant steps.
8765         (find_or_create_group): Change the sort algorithm to only consider
8766         steps that are constant ints.
8767         (idx_analyze_ref): Adopt code to handle a tree instead of a
8768         HOST_WIDE_INT for step.
8769         (gather_memory_references_ref): Handle tree instead of int and be
8770         prepared to see a NULL_TREE.
8771         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
8772         prefetches if the step cannot be calculated at compile time.
8773         (issue_prefetch_ref): Issue prefetches for non-constant but
8774         loop-invariant steps.
8775
8776 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8777
8778         Revert:
8779         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8780
8781         * tree.h (build_call_list): Remove.
8782         * tree.c (build_call_list): Remove.
8783
8784 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
8785
8786         * tree.h (build_call_list): Remove.
8787         * tree.c (build_call_list): Remove.
8788
8789 2010-05-18  Jan Hubicka  <jh@suse.cz>
8790
8791         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
8792
8793 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
8794
8795         PR rtl-optimization/43332
8796         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
8797
8798 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
8799
8800         * tree.h (build_int_cstu): Implement as static inline.
8801         * tree.c (build_int_cstu): Remove function.
8802         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
8803         sign extended.
8804
8805 2010-05-18  Richard Guenther  <rguenther@suse.de>
8806
8807         PR lto/44143
8808         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
8809         (debug): Initialize from -save-temps.
8810         (collect_execute): Print command-line when verbose.
8811         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
8812         for ltrans invocation.  Produce -dumpbase flag again.
8813         (process_args): Remove.
8814         (main): Simplify.
8815         * collect2.c (maybe_run_lto_and_relink): Only pass object
8816         files to lto-wrapper.
8817         * gcc.c (LINK_COMMAND_SPEC): Likewise.
8818
8819 2010-05-18  Jan Hubicka  <jh@suse.cz>
8820
8821         * opts.c (decode_options): Do not disable whopr at ipa_cp.
8822         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
8823
8824 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8825
8826         PR lto/44184
8827         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
8828         in a GIMPLE_ASM.
8829         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
8830         in a GIMPLE_ASM.
8831
8832 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
8833
8834         PR debug/41371
8835         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
8836         rtx_equal_p inline.
8837
8838 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
8839
8840         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
8841         lto-macho as lto_binary_reader.
8842
8843         * darwin.c (darwin_asm_named_section): Do not add assembler comment
8844         after .section directive; just print it before the directive instead.
8845
8846 2010-05-17  Jan Hubicka  <jh@suse.cz>
8847
8848         * cgraph.c (cgraph_create_virtual_clone): Only check
8849         versionable_function_p when not in wpa and checking is enabled.
8850         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
8851         there are no more functions to materialize.
8852
8853 2010-05-17  Jan Hubicka  <jh@suse.cz>
8854
8855         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
8856         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
8857         New functions.
8858         (output_cgraph): Call output_cgraph_opt_summary.
8859         (input_cgrpah): Call input_cgraph_opt_summary.
8860         (output_cgraph_opt_summary_p, output_node_opt_summary,
8861         input_node_opt_summary, input_cgraph_opt_section): New functions.
8862         * lto-section-in.c (lto_section_name): Add cgraphopt.
8863         * tree-inline.c (tree_function_versioning): Handle parm_num.
8864         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
8865         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
8866
8867 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8868
8869         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
8870         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
8871         the insn to prefetch ratio heuristic to loops with known trip count.
8872
8873 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
8874
8875         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
8876         (schedule_prefetches): Do not generate a prefetch if the unroll factor
8877         is far from what is required by the prefetch.
8878
8879 2010-05-17  Jan Hubicka  <jh@suse.cz>
8880
8881         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
8882         (ipcp_estimate_growth): Likewise.
8883         (ipcp_const_param_count): Likewise.
8884         (ipcp_insert_stage): Likewise.
8885         * ipa-prop.c (visit_load_for_mod_analysis): New function.
8886         (visit_store_addr_for_mod_analysis): Set used flag.
8887         (ipa_detect_param_modifications): Set used flag for SSE params;
8888         update use of walk_stmt_load_store_addr_ops.
8889         (ipa_print_node_params): Print used flag.
8890         (ipa_write_node_info): Stream used flag.
8891         (ipa_read_node_info): Likewise.
8892         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
8893         (ipa_is_param_used): New function.
8894         (lto_ipa_fixup_call_notes): Remove unused declaration.
8895
8896 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8897
8898         PR target/44074
8899         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
8900         * configure: Regenerate.
8901         * config.in: Regenerate.
8902         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
8903         !HAVE_AS_IX86_REP_LOCK_PREFIX.
8904         Don't emit whitespace.
8905         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8906         (*rep_movsi): Likewise.
8907         (*rep_movsi_rex64): Likewise.
8908         (*rep_movqi): Likewise.
8909         (*rep_movqi_rex64): Likewise.
8910         (*rep_stosdi_rex64): Likewise.
8911         (*rep_stossi): Likewise.
8912         (*rep_stossi_rex64): Likewise.
8913         (*rep_stosqi): Likewise.
8914         (*rep_stosqi_rex64): Likewise.
8915         (*cmpstrnqi_nz_1): Use {%;} after repz.
8916         (*cmpstrnqi_nz_rex_1): Likewise.
8917         (*cmpstrnqi_1): Likewise.
8918         (*cmpstrnqi_rex_1): Likewise.
8919         (*strlenqi_1): Use {%;} after repnz.
8920         (*strlenqi_rex_1): Likewise.
8921         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8922         (*sync_compare_and_swap<mode>): Likewise.
8923         (sync_double_compare_and_swap<mode>): Likewise.
8924         (*sync_double_compare_and_swapdi_pic): Likewise.
8925         (sync_old_add<mode>): Likewise.
8926         (sync_add<mode>): Likewise.
8927         (sync_sub<mode>): Likewise.
8928         (sync_<code><mode>): Likewise.
8929
8930 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8931
8932         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8933         otr_token and polymorphic.
8934         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8935         (cgraph_clone_edge): Copy the above fields.
8936         * tree.c (get_binfo_at_offset): New function.
8937         * tree.h (get_binfo_at_offset): Declare.
8938         * ipa-prop.h (enum jump_func_type): Added known_type jump function
8939         type, reordered items, updated comments.
8940         (union jump_func_value): Added base_type field, reordered fields.
8941         (enum ipa_lattice_type): Moved down in the file.
8942         (struct ipa_param_descriptor): New field polymorphic.
8943         (ipa_is_param_polymorphic): New function.
8944         * ipa-prop.c: Include gimple.h and gimple-fold.h.
8945         (ipa_print_node_jump_functions): Print known type jump functions.
8946         (compute_complex_pass_through): Renamed to...
8947         (compute_complex_assign_jump_func): this.
8948         (compute_complex_ancestor_jump_func): New function.
8949         (compute_known_type_jump_func): Likewise.
8950         (compute_scalar_jump_functions): Create known type and complex ancestor
8951         jump functions.
8952         (ipa_note_param_call): New parameter polymorphic, set the corresponding
8953         flag in the call note accordingly.
8954         (ipa_analyze_call_uses): Renamed to...
8955         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
8956         variable var only in the block where it is used.
8957         (ipa_analyze_virtual_call_uses): New function.
8958         (ipa_analyze_call_uses): Likewise.
8959         (combine_known_type_and_ancestor_jfs): Likewise.
8960         (update_jump_functions_after_inlining): Implemented handling of a
8961         number of new jump function types combination.
8962         (print_edge_addition_message): Removed.
8963         (make_edge_direct_to_target): New function.
8964         (try_make_edge_direct_simple_call): Likewise.
8965         (try_make_edge_direct_virtual_call): Likewise.
8966         (update_call_notes_after_inlining): Renamed to...
8967         (update_indirect_edges_after_inlining): this.  Moved edge creation for
8968         indirect calls to try_make_edge_direct_simple_call, also calls
8969         try_make_edge_direct_virtual_call for virtual calls.
8970         (ipa_print_node_params): Changed the header message.
8971         (ipa_write_jump_function): Stream also known type jump functions.
8972         (ipa_read_jump_function): Likewise.
8973         (ipa_write_indirect_edge_info): Stream new fields in
8974         cgraph_indirect_call_info.
8975         (ipa_read_indirect_edge_info): Likewise.
8976         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8977         GIMPLE_FOLD_H.
8978
8979 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8980
8981         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8982
8983 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8984
8985         * tree.h (CALL_EXPR_ARGS): Delete.
8986         (call_expr_arglist): Delete.
8987         * tree.c (call_expr_arglist): Delete.
8988         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8989         targetm.fold_builtin.
8990         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8991         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8992         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8993         arglist parameter.  Use CALL_EXPR_ARG.
8994         (picochip_expand_builtin_3op): Likewise.
8995         (picochip_expand_builtin_2opvoid): Likewise.
8996         (picochip_expand_array_get): Likewise.
8997         (picochip_expand_array_put): Likewise.
8998         (picochip_expand_array_testport): Likewise.
8999         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
9000         rather than arglist.
9001         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9002         CALL_EXPR_ARGS.
9003         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9004         than TREE_VALUE and TREE_CHAIN.
9005         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9006         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9007         the arglist.
9008
9009 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9010
9011         PR bootstrap/42347
9012         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9013         to have no fallthru edge.
9014
9015         PR middle-end/44102
9016         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9017         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9018         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9019         add BARRIER after previous bb if needed.
9020
9021 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9022
9023         * tree.c (build_function_type_list_1): Remove bogus assert condition.
9024
9025 2010-05-17  Alan Modra  <amodra@gmail.com>
9026
9027         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9028         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
9029         with copy_reg rtx param.
9030         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9031         Correct cases where code for ABI_V4 did not initialise the reg
9032         used to access frame.  Also leave frame_reg_rtx as sp for large
9033         frames that save no regs.
9034
9035 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9036
9037         PR middle-end/44133
9038         * tree-sra.c (create_access_replacement): New parameter rename, mark
9039         the replaement for renaming only when it is true.
9040         (get_access_replacement): Pass true in the rename parameter of
9041         create_access_replacement.
9042         (get_unrenamed_access_replacement): New function.
9043         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9044         replacement declaration from it.
9045
9046 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
9047
9048         * function.c (try_fit_stack_local, add_frame_space): New static
9049         functions.
9050         (assign_stack_local_1): Use them.  Look for opportunities to use
9051         space previously wasted on alignment.
9052         * function.h (struct frame_space): New.
9053         (struct rtl_data): Add FRAME_SPACE_LIST member.
9054         * reload1.c (something_was_spilled): New static variable.
9055         (alter_reg): Set it.
9056         (reload): Test it in addition to testing if the frame size changed.
9057
9058 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
9059
9060         * config/s390/s390.c: Define sane prefetch settings and activate
9061         flag_prefetch_loop_arrays on -O3.
9062         * config/s390/s390.h: Declare that read can use write prefetch.
9063
9064 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9065
9066         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9067         build.
9068
9069 2010-05-16  Jan Hubicka  <jh@suse.cz>
9070
9071         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9072         function body; do not check stdarg field of struct function.
9073
9074 2010-05-16  Jan Hubicka  <jh@suse.cz>
9075
9076         * cgraph.c (dump_cgraph_node): Dump versionable flag.
9077         * cgraph.h (cgraph_local_info): Add versionable flag.
9078         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9079         (ipcp_versionable_function_p): Use it.
9080         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9081         versionable flag.
9082
9083 2010-05-16  Jan Hubicka  <jh@suse.cz>
9084
9085         * cgraph.c (cgraph_clone_node): Take decl argument and insert
9086         clone into hash when it is different from orig.
9087         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9088         * cgraph.h (cgraph_clone_node): Update prototype.
9089         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9090         (lto_cgraph_encoder_delete): Delete body map.
9091         (lto_cgraph_encoder_size): Move to header.
9092         (lto_cgraph_encoder_encode_body_p,
9093         lto_set_cgraph_encoder_encode_body): New.
9094         (lto_output_node): Do not take written_decls argument; output clone_of
9095         pointer.
9096         (add_node_to): Add include_body_argument; call
9097         lto_set_cgraph_encoder_encode_body on master of the clone.
9098         (add_references): Update use of add_node_to.
9099         (compute_ltrans_boundary): Likewise.
9100         (output_cgraph): Do not create written_decls bitmap.
9101         (input_node): Take nodes argument; stream in clone_of correctly.
9102         (input_cgraph_1): Update use of input_node.
9103         * lto-streamer-out.c (lto_output): Use encoder info to decide
9104         what bodies to output.
9105         * ipa-inline.c (cgraph_clone_inlined_nodes,
9106         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9107         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9108         (lto_cgraph_encoder_size): Define here.
9109         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9110         Declare.
9111
9112 2010-05-16  Richard Guenther  <rguenther@suse.de>
9113
9114         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9115         -fipa-type-escape.
9116         * ipa-type-escape.c (gate_type_escape_vars): Run when
9117         -fipa-struct-reorg runs.
9118         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9119         * common.opt (fipa-type-escape): Remove.
9120
9121 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9122
9123         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9124         (decode_options): Likewise.
9125         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9126
9127 2010-05-16  Jan Hubicka  <jh@suse.cz>
9128
9129         * ipa.c (function_and_variable_visibility): Also bring local all
9130         aliases.
9131
9132 2010-05-16  Richard Guenther  <rguenther@suse.de>
9133
9134         * alias.c (nonoverlapping_memrefs_p): Remove use of
9135         IPA type-escape information.
9136
9137 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
9138
9139         * c-common.c (c_common_reswords): Add _Static_assert for C.
9140         * c-parser.c (c_token_starts_declaration,
9141         c_parser_next_token_starts_declaration,
9142         c_parser_static_assert_declaration_no_semi,
9143         c_parser_static_assert_declaration): New.
9144         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9145         Handle static assertions if static_assert_ok.
9146         (c_parser_external_declaration, c_parser_declaration_or_fndef,
9147         c_parser_compound_statement_nostart, c_parser_label,
9148         c_parser_for_statement, c_parser_objc_methodprotolist,
9149         c_parser_omp_for_loop): All callers of
9150         c_parser_declaration_or_fndef changed.
9151         (c_parser_struct_declaration): Handle static assertions.
9152         (c_parser_compound_statement_nostart): Use
9153         c_parser_next_token_starts_declaration and
9154         c_token_starts_declaration to detect start of declarations.
9155         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9156         Likewise.
9157
9158 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
9159
9160         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9161         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9162         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9163         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9164         (mmix_function_outgoing_value): Rename to...
9165         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9166         (mmix_function_value_regno_p): Make static.
9167         (mmix_libcall_value): New function.
9168         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9169         mmix_function_value_regno_p): Remove declaration.
9170
9171 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9172
9173         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9174         BUILT_IN_ALLOCA if stack checking is enabled.
9175
9176 2010-05-16  Richard Guenther  <rguenther@suse.de>
9177
9178         * var-tracking.c (vars_copy_1): Inline ...
9179         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9180         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
9181         (variable_merge_over_cur): Adjust.  Merge asserts.
9182         (variable_merge_over_src): Likewise.
9183         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9184         (variable_post_merge_new_vals): Merge asserts.
9185         (variable_post_merge_perm_vals): Likewise.
9186         (find_mem_expr_in_1pdv): Likewise.
9187         (dataflow_set_different_value): Remove.
9188         (onepart_variable_different_p): Merge asserts.
9189         (variable_different_p): Likewise.
9190         (dataflow_set_different_1): Inline ...
9191         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9192         (emit_notes_for_differences_1): Merge asserts.
9193
9194 2010-05-16  Richard Guenther  <rguenther@suse.de>
9195
9196         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9197         * optabs.c (libfunc_decl_hash): Likewise.
9198         * varasm.c (emutls_decl): Likewise.
9199
9200 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
9201
9202         * c-decl.c: Don't include gimple.h.
9203         (merge_decls): Do not copy gimple_body.
9204
9205 2010-05-15  Jason Merrill  <jason@redhat.com>
9206
9207         * c.opt: Add -fnothrow-opt.
9208
9209 2010-05-15  Jan Hubicka  <jh@suse.cz>
9210
9211         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9212         analyzed.
9213         * passes.c (ipa_write_summaries): Write all analyzed nodes.
9214
9215 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
9216
9217         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9218         * Makefile.in: Add it.
9219         Fix all other Makefile dependencies for changes below.
9220         * tree.h: Include it instead of defining VEC primitives here.
9221         * gimple.h: Likewise.
9222         * rtl.h: Likewise.
9223         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9224         * except.h: Include vecir.h, break dependence on tree.h.
9225
9226         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9227         Move from here...
9228         * tree-iterator.c: ...to here.
9229         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
9230
9231         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
9232         tm_p.h.
9233         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9234         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9235         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9236         tree-mudflap.h, and target.h.
9237         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9238         predict.h, tree-inline.h, gimple.h, and langhooks.h.
9239         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9240         Add FIXME for why gimple.h is still included (should be unnecessary
9241         since GCC 4.5 gimplification unit-at-a-time).
9242         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9243         * c-pragma.c: Add FIXME for why function.h needs to be included just
9244         for cfun, at front-end level.
9245         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9246         Do not include ggc.h, but include vecprim.h for VEC(char).
9247         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9248         Explain why target.h is included.
9249         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9250         Explain why gimple.h is included.
9251         * c-ppoutput.c: Do not include tm.h.
9252         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
9253         * c-parses.c: Explain why rtl.h is included, and that this (and only
9254         this) is also why tm.h must be included.
9255         Do not include except.h.
9256         * c-lang.c: Do not include ggc.h.
9257
9258 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
9259
9260         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9261
9262 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
9263
9264         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9265         unions by default if those structs and unions have no tags.  Do
9266         not condition anonymous struct and unions handling on flag_iso.
9267         Allow anonymous structs and unions for C1X.
9268         (finish_struct): Do not diagnose lack of named fields when
9269         anonymous structs and unions present for C1X.  Accept flexible
9270         array members in structure with anonymous structs or unions but no
9271         directly named fields.
9272         * doc/extend.texi (Unnamed Fields): Update.
9273
9274 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
9275
9276         * gimple.h (compare_field_offset): Rename into...
9277         (gimple_compare_field_offset): ...this.
9278         * gimple.c (compare_field_offset): Rename into...
9279         (gimple_compare_field_offset): ...this.  Compare the full access if
9280         the offset is self-referential.
9281         (gimple_types_compatible_p): Adjust for above renaming.
9282         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
9283         DECL_NONADDRESSABLE_P flag of fields before merging them.
9284
9285 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
9286
9287         * tree.h (ctor_to_list): Delete.
9288         * tree.c (ctor_to_list): Delete.
9289
9290 2010-05-15  Jan Hubicka  <jh@suse.cz>
9291
9292         * ipa-reference.c: Include toplev.h
9293         (is_proper_for_analysis): Only add to all_module_statics
9294         if it is allocated.
9295         (write_node_summary_p, stream_out_bitmap,
9296         ipa_reference_write_optimization_summary,
9297         ipa_reference_read_optimization_summary): New.
9298         (struct ipa_opt_pass_d pass_ipa_reference): Add
9299         optimization summary streaming.
9300         * lto-cgraph.c (referenced_from_this_partition_p,
9301         reachable_from_this_partition_p): New functions.
9302         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9303         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9304         * opts.c (decode_options): Enable ipa_reference.
9305         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9306         * lto-streamer.h (referenced_from_this_partition_p,
9307         reachable_from_this_partition_p): Declare.
9308
9309 2010-05-15  Richard Guenther  <rguenther@suse.de>
9310
9311         PR tree-optimization/44038
9312         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9313         taking the address of a V_C_E of a constant.
9314
9315 2010-05-14  Jan Hubicka  <jh@suse.cz>
9316
9317         * tree.h (memory_identifier_string): Remove.
9318         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9319         (ipa_reference_global_vars_info_d): Remove statics_not_read and
9320         statics_not_written.
9321         (ipa_reference_optimization_summary_d): New structure.
9322         (ipa_reference_optimization_summary_t): New type and vector.
9323         (ipa_reference_vars_info_d): Embedd structures instead of using
9324         pointers.
9325         (reference_vars_to_consider): Remove out of GGC space.
9326         (module_statics_escape): Remove.
9327         (global_info_obstack): Rename to ...
9328         (optimization_summary_obstack): ... this one.
9329         (initialization_status_t): Remove.
9330         (memory_identifier_string): Remove.
9331         (get_reference_vars_info): Fix indenting.
9332         (set_reference_vars_info): Likewise.
9333         (get_reference_optimization_summary): New.
9334         (set_reference_optimization_summary): New.
9335         (get_global_reference_vars_info): Remove.
9336         (ipa_reference_get_read_global): Remove.
9337         (ipa_reference_get_written_global): Remove.
9338         (ipa_reference_get_not_read_global): Update.
9339         (ipa_reference_get_not_written_global): Update.
9340         (is_proper_for_analysis): Outlaw addressable.
9341         (propagate_bits): Update for new datastructures.
9342         (analyze_variable): Remove.
9343         (init_function_info): Update for new datastructures.
9344         (clean_function_local_data): Remove.
9345         (clean_function): Remove.
9346         (copy_global_bitmap): Use optimizations_summary_obstack.
9347         (duplicate_node_data): Duplicate optimization summary only.
9348         (remove_node_data): Remove optimization summary only.
9349         (generate_summary): Do not analyze variables; do not compute
9350         module_statics_escape; do not prune solutions by it.
9351         (read_write_all_from_decl): Fix typos in comments.
9352         (propagate): Doscover readonly and nonaddressable first;
9353         update for new datastructures; share global bitmaps.
9354         * ipa-reference.h (ipa_reference_get_read_global,
9355         ipa_reference_get_written_global): Remove.
9356         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9357         * Makefile.in: Remove ipa-refereference from GT files.
9358
9359 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
9360
9361         PR debug/44112
9362         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9363         for all SYMBOL_REF_DECLs.
9364
9365 2010-05-14  Jan Hubicka  <jh@suse.cz>
9366
9367         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9368         (varpool_all_refs_explicit_p): New inline function.
9369         * ipa-reference.c: Update comment.
9370         (module_statics_written): Remove.
9371         (get_static_decl): Remove.
9372         (ipa_init): Do not initialize module_statics_written.
9373         (analyze_function): Likewise.
9374         (generate_summary): Likewise; do not compute module_statics_readonly
9375         and do not update variable flags.
9376         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9377         * ipa.c: Inlucde flags.h
9378         (cgraph_local_node_p): New.
9379         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9380         promote functions to local.
9381         (ipa_discover_readonly_nonaddressable_vars): New function.
9382         (function_and_variable_visibility): Use cgraph_local_node_p.
9383         * varpool.c (varpool_finalize_decl): Set force_output for
9384         DECL_PRESERVE_P vars.
9385
9386 2010-05-14  Jan Hubicka  <jh@suse.cz>
9387
9388         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9389
9390 2010-05-14  Richard Guenther  <rguenther@suse.de>
9391
9392         PR tree-optimization/44119
9393         * tree-ssa-pre.c (eliminate): Properly mark replacement of
9394         a PHI node necessary.
9395
9396 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9397
9398         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9399
9400 2010-05-14  Jason Merrill  <jason@redhat.com>
9401
9402         PR c++/44127
9403         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9404         (gimple_call_set_nothrow): New.
9405         * gimple.c (gimple_build_call_from_tree): Call it.
9406         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9407
9408         PR c++/44127
9409         * gimplify.c (gimplify_seq_add_stmt): No longer static.
9410         * gimple.h: Declare it.
9411         * gimple.c (gimple_build_eh_filter): No ops.
9412
9413 2010-05-14  Jan Hubicka  <jh@suse.cz>
9414
9415         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9416         nodes already in queue.
9417         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9418         re-enqueueing node.
9419
9420 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
9421
9422         PR debug/44136
9423         * cfgexpand.c (expand_debug_expr): If non-memory op0
9424         has BLKmode, return NULL.
9425
9426 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
9427
9428         * config.gcc: Add support for --with-cpu option for bdver1.
9429         * config/i386/i386.h (TARGET_BDVER1): New macro.
9430         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9431         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9432         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9433         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9434         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9435         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9436         (processor_type): Add PROCESSOR_BDVER1.
9437         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9438         processor_type in config/i386/i386.h.
9439         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9440         movaps <reg, reg> instead of movapd <reg, reg> when replacing
9441         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9442         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9443         to emit packed xor instead of packed double/packed integer
9444         xor for SSE and AVX when moving a zero value.
9445         * config/i386/sse.md: Add check for
9446         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9447         movapd/movdqa for SSE and AVX.
9448         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9449         single logical operations i.e and, or and xor instead of packed double
9450         logical operations for SSE and AVX.
9451         * config/i386/i386-c.c (ix86_target_macros_internal):
9452         Add PROCESSOR_BDVER1.
9453         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9454         (has_fma4, has_xop): New.
9455         * config/i386/i386.c (bdver1_cost): New variable.
9456         (m_BDVER1): New macro.
9457         (m_AMD_MULTIPLE): Add m_BDVER1.
9458         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9459         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9460         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9461         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9462         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9463         x86_tune_sse_partial_reg_dependency,
9464         x86_tune_sse_unaligned_load_optimal,
9465         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9466         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9467         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9468         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9469         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9470         Enable/disable for bdver1.
9471         (processor_target_table): Add bdver1_cost.
9472         (cpu_names): Add bdver1.
9473         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9474          processor_alias_table.
9475         (ix86_expand_vector_move_misalign): Change.
9476         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9477         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9478         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9479         of movupd/movdqu for SSE and AVX.
9480         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9481         (ix86_tune_adjust_cost): Add code for bdver1.
9482         (standard_sse_constant_opcode): Add check for
9483         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9484         of packed double xor for SSE and AVX.
9485
9486 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
9487
9488         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9489         result to unsigned.
9490
9491 2010-05-14  Tristan Gingold  <gingold@adacore.com>
9492
9493         * toplev.c (default_debug_hooks): Remove this variable.
9494         (process_options): Remove assignments to default_debug_hooks.
9495
9496 2010-05-14  Martin Jambor  <mjambor@suse.cz>
9497
9498         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9499         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9500         * langhooks.h (struct lang_hooks_for_decls): Removed field
9501         fold_obj_type_ref.
9502         * tree.c (free_lang_data): Remove assignment to
9503         lang_hooks.fold_obj_type_ref.
9504         * tree.def (OBJ_TYPE_REF): Update comment.
9505
9506 2010-05-14  Richard Guenther  <rguenther@suse.de>
9507
9508         PR tree-optimization/44124
9509         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9510
9511 2010-05-14  Alan Modra  <amodra@gmail.com>
9512
9513         PR target/44075
9514         * config/rs6000/rs6000.c (struct machine_function): Reorder
9515         fields for better packing.  Add lr_save_state.
9516         (rs6000_ra_ever_killed): Return lr_save_state if set.
9517         (rs6000_emit_eh_reg_restore): Set lr_save_state.
9518
9519 2010-05-13  Jan Hubicka  <jh@suse.cz>
9520
9521         * varpool.c (decide_is_variable_needed): Drop code checking
9522         TREE_SYMBOL_REFERENCED.
9523
9524 2010-05-13  Jan Hubicka  <jh@suse.cz>
9525
9526         * final.c (output_addr_const): Do not call mark_decl_referenced.
9527         * cgraphunit.c (process_function_and_variable_attributes): Use
9528         mark_needed_node dirrectly.
9529         (assemble_thunk): Do not call mark_decl_referenced.
9530
9531 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
9532
9533         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9534
9535 2010-05-13  Jeff Law  <law@redhat.com>
9536
9537         * ira-conflicts.c (print_allocno_conflicts): New function broken out
9538         from...
9539         (print_conflicts): Call print_allocno_conflicts.
9540
9541 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9542
9543         PR debug/44104
9544         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9545         if it is NULL.
9546
9547 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
9548
9549         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9550         t-mingw-w64 or t-mingw-w32 for multilib configuration.
9551         * config/i386/t-mingw-w32: New.
9552         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9553
9554 2010-05-13  Martin Jambor  <mjambor@suse.cz>
9555
9556         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9557         gimple-fold.c).
9558         * gimple-fold.c (get_base_binfo_for_type): New function.
9559         (gimple_get_relevant_ref_binfo): Likewise.
9560         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9561         (gimple_fold_obj_type_ref): Likewise.
9562         (fold_gimple_call): Simplify condition for folding virtual calls
9563         and call gimple_fold_obj_type_ref.
9564         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9565         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9566
9567 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
9568
9569         * config/rs6000/rs6000-protos.h
9570         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9571         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9572         (rs6000_debug_mode_dependent_address)
9573         (rs6000_mode_dependent_address_ptr): Likewise.
9574
9575 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9576
9577         PR debug/43983
9578         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9579         by SRA.
9580         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9581         * tree-sra.c (create_access_replacement): Call unshare_expr before
9582         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9583         * dwarf2out.c: Include tree-flow.h.
9584         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9585         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9586         Handle DW_OP_bit_piece.
9587         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9588         construct_piece_list, adjust_piece_list): New functions.
9589         (add_var_loc_to_decl): Handle SRA optimized variables.
9590         Adjust for var_loc_note to loc field renaming.
9591         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9592         in VAR_LOCATION note.
9593         (new_loc_descr_op_bit_piece): New function.
9594         (dw_sra_loc_expr): New function.
9595         (dw_loc_list): Use it.  Don't handle the last range after the
9596         loop, handle it inside of the loop.  Adjust for var_loc_note
9597         to loc field renaming.
9598         (add_location_or_const_value_attribute): Only special case
9599         single entry loc lists if loc is NOTE_P.  Adjust for
9600         var_loc_note to loc field renaming.
9601         (dwarf2out_var_location): Don't set newloc->var_loc_note
9602         and newloc->next here.
9603
9604 2010-05-12  Jan Hubicka  <jh@suse.cz>
9605
9606         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9607         flag.
9608         * cgraph.h (cgraph_only_called_directly_p,
9609         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9610         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9611         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9612         (assemble
9613         * ipa.c (cgraph_remove_unreachable_nodes): Use
9614         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9615         flags.
9616         * tree-inline.c (copy_bb): Check address_taken flag.
9617         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9618         externally_visible flag.
9619
9620 2010-05-12  Jason Merrill  <jason@redhat.com>
9621
9622         PR bootstrap/44048
9623         PR target/44099
9624         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9625         * sdbout.c (plain_type_1): Likewise.
9626         * dwarf2out.c (is_base_type): Likewise.
9627         (gen_type_die_with_usage): Likewise.  Generate
9628         DW_TAG_unspecified_type for any LANG_TYPE.
9629
9630 2010-05-12  Jan Hubicka  <jh@suse.cz>
9631
9632         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
9633         indrect edges too.
9634         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
9635         (cgraph_clone_edge): Update.
9636         (cgraph_node_remove_callees): Remove indirect calls too.
9637         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
9638         (cgraph_create_indirect_edge): Update prototype.
9639         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
9640         is_proper_for_analysis.
9641         (add_new_function, visited_nodes, function_insertion_hook_holder,
9642         get_local_reference_vars_info, mark_address_taken, mark_address,
9643         mark_load, mark_store, check_asm_memory_clobber, check_call,
9644         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
9645         (ipa_init): Do not initialize visited_nodes;
9646         function_insertion_hook_holder.
9647         (analyze_variable): Rewrite.
9648         (analyze_function): Rewrite.
9649         (copy_local_bitmap): Remove.
9650         (duplicate_node_dat): Do not duplicate local info.
9651         (generate_summary): Simplify to only walk cgraph.
9652         (write_node_summary_p, ipa_reference_write_summary,
9653         ipa_reference_read_summary): Remove.
9654         (propagate): Do not remove function insertion;
9655         generate summary.
9656         (pass_ipa_reference): NULLify summary handling fields.
9657         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
9658         (input_edge): Input ecf_flags.
9659         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
9660         (update_indirect_edges_after_inlining): Ignore edges with unknown
9661         param.
9662
9663 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
9664
9665         * implicit-zee.c: New file.
9666         * tree-pass.h (pass_implicit_zee): Declare.
9667         * passes.c (init_optimization_passes): Add zee pass.
9668         * common.opt (fzee): New flag.
9669         * timevar.def (TV_ZEE): Define.
9670         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
9671         and beyond.
9672         * Makefile.in (implicit-zee.o): Add new build file.
9673
9674 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9675             Nathan Froyd  <froydnj@codesourcery.com>
9676
9677         * c-common.c (sync_resolve_params): Remove write-only variable.
9678
9679 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
9680
9681         * target.h (struct gcc_target): Add mode_dependent_address_p field.
9682         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9683         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
9684         * targhooks.c (default_mode_dependent_address_p): New function.
9685         * targhooks.h (default_mode_dependent_address_p): Declare function.
9686         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
9687         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
9688         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
9689         target hook. Change return type to bool.
9690         * recog.h (mode_dependent_address_p): Change return type to bool.
9691
9692 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9693             Nathan Froyd  <froydnj@codesourcery.com>
9694
9695         * tree-mudflap.c (build_function_type_0, build_function_type_1,
9696         build_function_type_2, build_function_type_3): Remove.
9697         (mudflap_init): Use build_function_type_list.
9698
9699 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
9700             Nathan Froyd  <froydnj@codesourcery.com>
9701
9702         * coverage.c (build_fn_info_value): Call build_constructor instead of
9703         build_constructor_from_list.
9704         (build_ctr_info_value): Likewise.
9705         (build_gcov_info): Likewise.
9706
9707 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
9708
9709         * tree.c (build_constructor): Compute TREE_CONSTANT for the
9710         resultant constructor.
9711         (build_constructor_single): Don't set TREE_CONSTANT.
9712         (build_constructor_from_list): Don't compute TREE_CONSTANT.
9713
9714 2010-05-12  Jan Hubicka  <jh@suse.cz>
9715
9716         * cgraph.h (struct varpool_node): Add aux.
9717         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
9718         * varpool.c (varpool_remove_node): Do not remove initializer.
9719         (varpool_reset_queue): Export.
9720         (varpool_finalize_decl): Volatile vars are forced to be output.
9721         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
9722         replaced decl.
9723         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
9724         process_references, varpool_can_remove_if_no_refs): New functions.
9725         (cgraph_remove_unreachable_nodes): Handle variables too.
9726
9727 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
9728
9729         PR target/44088
9730         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
9731
9732 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
9733
9734         PR middle-end/44085
9735         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
9736         change value of ORT_TASK.
9737         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
9738         (omp_notice_threadprivate_variable): New function.
9739         (omp_notice_variable): Call it for threadprivate variables.
9740         If enclosing ctx is a task, print enclosing task rather than
9741         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
9742         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
9743         if task has untied clause.
9744
9745         PR debug/42278
9746         * dwarf2out.c (base_type_die): Don't add name attribute here.
9747         (modified_type_die): Instead of sizetype use
9748         its underlying original type.  If a DW_TAG_base_type doesn't
9749         have name added, add __unknown__.
9750         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
9751         always call force_type_die instead.
9752
9753 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
9754
9755         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
9756         for __stack_chk_guard.
9757
9758 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9759
9760         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
9761         don't call start_source_file debug hook here...
9762         (finish_options): ... but here, after outputting predefined and
9763         command line defines and undefs.
9764
9765         PR middle-end/44071
9766         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
9767         no fallthru edge.
9768         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
9769         optimizing away empty bb with no successors, move over its
9770         footer chain to fallthru predecessor.
9771         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
9772         (rtl_split_edge): For asm goto call patch_jump_insn even if
9773         splitting fallthru edge.
9774
9775         PR c++/44059
9776         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
9777         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
9778         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
9779         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
9780         on DW.ref.* decls.
9781
9782         PR c++/44062
9783         * c-parser.c (c_parser_expression): Mark LHS of a comma
9784         expression as read if it is a decl, handled component or
9785         COMPOUND_EXPR with that on the RHS.
9786         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
9787         if it is a decl or handled component.
9788
9789 2010-05-11  Jan Hubicka  <jh@suse.cz>
9790
9791         * lto-symtab.c (lto_symtab_free): New function.
9792         * lto-streamer.h (lto_symtab_free): Declare.
9793
9794 2010-05-11  Jan Hubicka  <jh@suse.cz>
9795
9796         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
9797         that if function is needed it is reachable.
9798         (lto_output_node): See if it the function is reachable or referenced.
9799         (output_cgraph): Update call of lto_output_node.
9800         * lto-streamer.h (reachable_from_other_partition_p): Declare.
9801
9802 2010-05-11  Jan Hubicka  <jh@suse.cz>
9803
9804         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
9805         Mark as used.
9806
9807 2010-05-11  Jan Hubicka  <jh@suse.cz>
9808
9809         PR tree-optimize/44063
9810         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
9811         queue.
9812         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
9813         limits.
9814         (estimate_function_body_sizes): Compute sizes even when disregarding.
9815
9816 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
9817
9818         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
9819
9820 2010-05-11  Jan Hubicka  <jh@suse.cz>
9821
9822         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
9823         into every boundary.
9824
9825 2010-05-11  Jan Hubicka  <jh@suse.cz>
9826
9827         * matrix-reorg.c (matrix_reorg): Rebuild edges.
9828
9829 2010-05-11  Jan Hubicka  <jh@suse.cz>
9830
9831         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
9832         lto_streamer_cache_delete): Put nodes into heap.
9833         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
9834         heap.
9835
9836 2010-05-11  Jan Hubicka  <jh@suse.cz>
9837
9838         * cgraphbuild.c (cgraph_rebuild_references): New.
9839         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
9840         out extern inlines.
9841         * cgraph.h (cgraph_rebuild_references): Declare.
9842         * tree-inline.c (tree_function_versioning): Use it.
9843         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
9844
9845 2010-05-11  Jan Hubicka  <jh@suse.cz>
9846
9847         * cgraph.c: Include ipa-utils.h
9848         (cgraph_create_virtual_clone): Update references.
9849         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
9850
9851 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9852
9853         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
9854         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
9855         cache size.
9856
9857 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
9858
9859         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
9860
9861 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
9862
9863         * gcc.c (execute): For -### don't quote arguments that
9864         contain just alphanumerics and _/-. characters.
9865         * doc/invoke.texi: Document that change for -###.
9866
9867         PR debug/44023
9868         * df-problems.c (struct dead_debug): Add to_rescan field.
9869         (dead_debug_init): Clear to_rescan field.
9870         (dead_debug_finish): Rescan all debug insns in to_rescan
9871         bitmap and free the bitmap.
9872         (dead_debug_insert_before): Instead of rescanning debug insns
9873         immediately queue their rescanning until dead_debug_finish.
9874         (df_note_bb_compute): After dead_debug_add do continue instead
9875         of break.
9876
9877 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
9878
9879         PR debug/44028
9880         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
9881         clear also INSN_REG_USE_LIST.
9882
9883 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9884
9885         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
9886
9887 2010-05-10  Jan Hubicka  <jh@suse.cz>
9888
9889         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
9890         commited change.
9891
9892 2010-05-10  Jan Hubicka  <jh@suse.cz>
9893
9894         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
9895         Allocate encoders.
9896         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
9897         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
9898         (lto_streamer_cache_create): Init alloc pool.
9899         (lto_streamer_cache_delete): Free alloc pool.
9900         * lto-streamer.h: Include alloc pool.
9901         (lto_streamer_cache_d): Use alloc pool.
9902         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
9903
9904 2010-05-10  Jan Hubicka  <jh@suse.cz>
9905
9906         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9907         * cgraphbuild.c: Include except.h
9908         (record_type_list, record_eh_tables): New function.
9909         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9910
9911 2010-05-10  Jan Hubicka  <jh@suse.cz>
9912
9913         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9914         __frame_dummy_init_array_entry, force_to_data): Attribute as used
9915         rather than unused.
9916
9917 2010-05-10  Michael Matz  <matz@suse.de>
9918
9919         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9920         (can_reassociate_p): Use FLOAT_TYPE_P.
9921         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9922         (vect_force_simple_reduction): ... this.
9923         * tree-parloops.c (gather_scalar_reductions): Use
9924         vect_force_simple_reduction.
9925         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9926         vect_is_simple_reduction, add modify argument, if true rewrite
9927         "a-b" into "a+(-b)".
9928         (vect_is_simple_reduction, vect_force_simple_reduction): New
9929         functions.
9930         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9931
9932 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9933             Vladimir Makarov  <vmakarov@redhat.com>
9934
9935         PR rtl-optimization/44012
9936         * ira-build.c (remove_unnecessary_allocnos): Nullify
9937         regno_allocno_map of the removed allocno.
9938
9939 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9940
9941         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9942         to /dev/null.
9943         * configure: Regenerate.
9944
9945 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9946
9947         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9948         unused.
9949         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9950         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9951         support in Sun ld.
9952         * configure: Regenerate.
9953
9954 2010-05-10  Richard Guenther  <rguenther@suse.de>
9955
9956         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9957         marked if the entry identifier is marked.
9958
9959 2010-05-10  Richard Guenther  <rguenther@suse.de>
9960
9961         * c-common.c (struct c_common_attributes): Add fnspec attribute.
9962         (handle_fnspec_attribute): New function.
9963         * gimple.h (gimple_call_return_flags): Declare.
9964         (gimple_call_arg_flags): Likewise.
9965         * gimple.c (gimple_call_arg_flags): New function.
9966         (gimple_call_return_flags): Likewise.
9967         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9968         New argument flags.
9969         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9970         return value flags.
9971         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9972         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9973         main work to ...
9974         (make_heapvar_for): ... this new function.
9975         (handle_rhs_call): Handle fnspec attribute argument specifiers.
9976         (handle_lhs_call): Likewise.
9977         (find_func_aliases): Adjust.
9978
9979 2010-05-10  Richard Guenther  <rguenther@suse.de>
9980
9981         PR tree-optimization/44050
9982         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9983
9984 2010-05-10  Wei Guozhi  <carrot@google.com>
9985
9986         PR target/42879
9987         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9988
9989 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9990
9991         PR c/10676
9992         * c-typeck.c (lookup_field): Take a type directly.  Update
9993         recursive calls.
9994         (build_component_ref): Update call to lookup_field.
9995         (set_init_label): Use lookup_field to find initialized field.
9996         Handle returned list of fields like a sequence of designators.
9997
9998 2010-05-09  Richard Guenther  <rguenther@suse.de>
9999
10000         PR middle-end/44024
10001         * fold-const.c (tree_single_nonzero_warnv_p): Properly
10002         handle &FUNCTION_DECL.
10003
10004 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10005
10006         PR c/4784
10007         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
10008         structures and unions recursively.
10009         (detect_field_duplicates): Move duplicate detection with a hash to
10010         detect_field_duplicates_hash.  Always use a hash if anonymous
10011         structures or unions are present.
10012         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10013         give errors.
10014
10015 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10016
10017         PR target/44046
10018         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10019         detect Atom, Core 2 and Core i7.
10020
10021 2010-05-09  Richard Guenther  <rguenther@suse.de>
10022
10023         * gcc.c (store_arg): Handle temporary file deletion for
10024         joined arguments.
10025
10026 2010-05-09  Richard Guenther  <rguenther@suse.de>
10027
10028         PR middle-end/44043
10029         * ipa-inline.c (estimate_function_body_sizes): Return after
10030         disregarding inline limits.
10031
10032 2010-05-09  Richard Guenther  <rguenther@suse.de>
10033
10034         * gcc.c (store_arg): Revert last change.
10035
10036 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
10037
10038         PR middle-end/28685
10039         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10040         (optimize_ops_list): Call it.
10041
10042 2010-05-08  Richard Guenther  <rguenther@suse.de>
10043
10044         PR tree-optimization/44030
10045         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
10046         NECESSARY flag if we propagate from a inserted expression.
10047
10048 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10049
10050         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10051         domain types as equal if they are both PLACEHOLDER_EXPRs.
10052
10053 2010-05-08  Richard Guenther  <rguenther@suse.de>
10054
10055         * lto-wrapper.c (run_gcc): Remove linker output from
10056         command line for LTRANS invocation.
10057
10058 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10059
10060         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10061         lto-macho as lto_binary_reader.
10062         * target.h (struct gcc_target): New hooks lto_start and lto_end.
10063         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10064         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10065         in lto_start and lto_end calls.
10066         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
10067         magic numbers.
10068         (scan_prog_file): Update is_elf_or_coff call.
10069         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10070
10071         * collect2.c (main): Fix enum comparison.
10072
10073         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10074         Add prototypes.
10075         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10076         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
10077         and TARGET_ASM_LTO_END.
10078         * darwin.c: Include obstack.h and lto-streamer.h.
10079         (lto_section_names_offset, lto_section_names_obstack,
10080         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10081         global variables.
10082         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10083         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
10084         to a temporary file.
10085         (darwin_asm_lto_end): New function.  Restore asm_out_file.
10086         (darwin_asm_named_section): For LTO sections, replace the name with
10087         the offset of the section name in a string table, and build this
10088         table.
10089         (darwin_file_start): Initialize global vars for LTO support.
10090         (darwin_file_end): If output to asm_out_file was redirected, append it
10091         to the proper asm_out_file here.  Add the section names section.
10092
10093 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10094
10095         * c-pragma.c (pending_weak_d, pending_weak): New.
10096         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10097         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10098         handle_pragma_weak): Update the uses of pending_weaks.
10099
10100 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10101
10102         PR documentation/44016
10103         * doc/standards.texi (Standards): Link to unversioned
10104         cxx0x_status.html page.
10105
10106 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
10107
10108         PR target/43708
10109         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10110         in addition to TREE_USED, to avoid "set but unused" warnings.
10111
10112 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10113
10114         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10115         (is_loop_prefetching_profitable): Do not insert prefetches
10116         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10117         times the prefetch ahead distance.
10118
10119 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10120
10121         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10122         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10123         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10124         the unroll_factor.
10125
10126 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10127
10128         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10129         a diagnostic info when the insn-to-mem ratio is too small.
10130
10131 2010-05-07  Richard Guenther  <rguenther@suse.de>
10132
10133         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10134         the linker plugin.
10135         (store_arg): Queue temp_filename for deletion instead of
10136         the whole argument.
10137
10138 2010-05-07  Richard Guenther  <rguenther@suse.de>
10139
10140         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10141         (run_gcc): Handle LTRANS phase invocation.
10142         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10143
10144 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
10145
10146         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10147         this is also meaningful on PARM_DECLs and RESULT_DECLs.
10148
10149 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10150
10151         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10152
10153 2010-05-07  Richard Guenther  <rguenther@suse.de>
10154
10155         PR tree-optimization/44020
10156         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10157         code when PRE is not yet initialized.
10158
10159 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10160
10161         * config/mips/dbxmdebug.h: Remove.
10162         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10163
10164 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
10165
10166         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10167         with null pointer and also warn about ordered comparison of zero with
10168         pointer if -Wextra.
10169
10170 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10171
10172         * graphite-blocking.c
10173         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10174         * graphite-clast-to-gimple.c
10175         (clast_to_gcc_expression): Same.
10176         (precision_for_value): Same.
10177         (precision_for_interval): Same.
10178         (gcc_type_for_interval): Same.
10179         (graphite_create_new_guard): Same.
10180         (compute_bounds_for_level): Same.
10181         (graphite_create_new_loop_guard): Same.
10182         * graphite-interchange.c
10183         (build_linearized_memory_access): Same.
10184         (pdr_stride_in_loop): Same.
10185         (memory_strides_in_loop_1): Same.
10186         (memory_strides_in_loop): Same.
10187         (extend_scattering): Same.
10188         (psct_scattering_dim_for_loop_depth): Same.
10189         (pbb_number_of_iterations): Same.
10190         * graphite-poly.h
10191         (debug_iteration_domains): Same.
10192         * graphite-ppl.c
10193         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10194         (ppl_set_inhomogeneous_gmp): Same.
10195         (ppl_strip_loop): Same.
10196         (ppl_lexico_compare_linear_expressions): Same.
10197         (ppl_read_polyhedron_matrix): Same.
10198         (ppl_max_for_le_pointset): Same.
10199         * graphite-ppl.h
10200         (ppl_read_polyhedron_matrix): Same.
10201         (tree_int_to_gmp): Same.
10202         (gmp_cst_to_tree): Same.
10203         (ppl_set_inhomogeneous): Same.
10204         (ppl_set_inhomogeneous_tree): Same.
10205         (ppl_set_coef): Same.
10206         (ppl_set_coef_tree): Same.
10207         * graphite-sese-to-poly.c
10208         (build_pbb_scattering_polyhedrons): Same.
10209         (build_scop_scattering): Same.
10210         (scan_tree_for_params_right_scev): Same.
10211         (scan_tree_for_params): Same.
10212         (find_params_in_bb): Same.
10213         (find_scop_parameters): Same.
10214         (add_upper_bounds_from_estimated_nit): Same.
10215         (build_loop_iteration_domains): Same.
10216         (add_condition_to_domain): Same.
10217         (pdr_add_memory_accesses): Same.
10218
10219 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10220
10221         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10222         CLooG's value_* macros to their respective mpz_* counterparts.
10223         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10224         (graphite_create_new_loop_guard): Same.
10225         * graphite-interchange.c (build_linearized_memory_access): Same.
10226         (pdr_stride_in_loop): Same.
10227         (memory_strides_in_loop_1): Same.
10228         (1st_interchange_profitable_p): Same.
10229         * graphite-poly.c (extend_scattering): Same.
10230         (psct_scattering_dim_for_loop_depth): Same.
10231         (pbb_number_of_iterations): Same.
10232         (pbb_number_of_iterations_at_time): Same.
10233         * graphite-poly.h (new_1st_loop): Same.
10234         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10235         (oppose_constraint): Same.
10236         (insert_constraint_into_matrix): Same.
10237         (ppl_set_inhomogeneous_gmp): Same.
10238         (ppl_set_coef_gmp): Same.
10239         (ppl_strip_loop): Same.
10240         (ppl_lexico_compare_linear_expressions): Same.
10241         (ppl_max_for_le_pointset): Same.
10242         (ppl_min_for_le_pointset): Same.
10243         (ppl_build_realtion): Same.
10244         * graphite-ppl.h (gmp_cst_to_tree): Same.
10245         (ppl_set_inhomogeneous): Same.
10246         (ppl_set_inhomogeneous_tree): Same.
10247         (ppl_set_coef): Same.
10248         (ppl_set_coef_tree): Same.
10249         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10250         (build_scop_scattering): Same.
10251         (add_value_to_dim): Same.
10252         (scan_tree_for_params_right_scev): Same.
10253         (scan_tree_for_params_int): Same.
10254         (scan_tree_for_params): Same.
10255         (find_params_in_bb): Same.
10256         (find_scop_parameters): Same.
10257         (add_upper_bounds_from_estimated_nit): Same.
10258         (build_loop_iteration_domains): Same.
10259         (create_linear_expr_from_tree): Same.
10260         (add_condition_to_domain): Same.
10261         (pdr_add_memory_accesses): Same.
10262
10263 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
10264             Jason Merrill  <jason@redhat.com>
10265
10266         * c-common.c (c_common_reswords): Add nullptr.
10267         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
10268         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10269         (gen_type_die_with_usage): Likewise.
10270         * dbxout.c (dbxout_type): Likewise.
10271         * sdbout.c (plain_type_1): Likewise.
10272
10273 2010-05-06  Jason Merrill  <jason@redhat.com>
10274
10275         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10276         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
10277         ret appropriately.
10278         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10279
10280         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10281         stripping WITH_SIZE_EXPR.
10282         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10283         change.
10284
10285 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10286
10287         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10288         list of obsolete configurations.
10289         Disabled check for obsolete configurations.
10290         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10291         Removed support for previous versions.
10292         * config/mips/iris.h: Removed.
10293         * config/mips/iris5.h: Removed.
10294         * config/mips/iris6.h: Merged old iris.h contents.
10295         (TARGET_IRIX): Removed.
10296         (DRIVER_SELF_SPECS): Removed mabi=32.
10297         (IDENT_ASM_OP): Removed undef.
10298         (STARTFILE_SPEC): Removed mabi=32.
10299         (ENDFILE_SPEC): Likewise.
10300         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10301         (MACHINE_TYPE): Update for IRIX 6.5.
10302         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10303         TARGET_IRIX by TARGET_IRIX6.
10304         (mips_file_start): Likewise.
10305         (mips_output_external): Remove IRIX 5/6 O32 support.
10306         (mips_output_function_prologue): Likewise.
10307         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10308         TARGET_IRIX6.
10309         (TARGET_CPU_CPP_BUILTINS): Likewise.
10310         (TARGET_IRIX): Removed.
10311         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10312         (MULTILIB_DIRNAMES): Removed 32.
10313         (MULTILIB_OSDIRNAMES): Removed ../lib.
10314         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10315         (Specific, mips-sgi-irix5): Document removal.
10316         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10317         Remove references to older IRIX 6 releases and the O32 ABI.
10318
10319 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
10320
10321         PR bootstrap/43994
10322         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10323         instead of DF_REF_REAL_REG.
10324
10325 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
10326
10327         PR target/43888
10328         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10329         handling to still return true for x64 targets.
10330
10331 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10332
10333         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10334
10335 2010-05-06  Jan Hubicka  <jh@suse.cz>
10336
10337         PR tree-optimization/43791
10338         * ipa-inline.c (update_caller_keys): Remove bogus
10339         disregard_inline_limits check.
10340
10341 2010-05-06  Michael Matz  <matz@suse.de>
10342
10343         PR tree-optimization/43984
10344         * tree-ssa-pre.c (inserted_phi_names): Remove.
10345         (inserted_exprs): Change to bitmap.
10346         (create_expression_by_pieces): Set bits, don't append to vector.
10347         (insert_into_preds_of_block): Don't handle inserted_phi_names.
10348         (eliminate): Don't look at inserted_phi_names, remove deleted
10349         insns from inserted_exprs.
10350         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10351         (init_pre, fini_pre): Allocate and free bitmaps.
10352         (execute_pre): Insert insns on edges before elimination.
10353
10354 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10355
10356         * tree.c (initializer_zerop): Handle STRING_CST.
10357
10358 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10359
10360         PR 40989
10361         * doc/invoke.texi (Wimplicit): Document as C only.
10362         * opts.c (common_handle_option): Add argument kind.
10363         (handle_option): Rename as read_cmdline_option. Factor out code to...
10364         (handle_option): ... here. New.
10365         (handle_options): Rename as read_cmdline_options.
10366         (decode_options): Update call.
10367         (set_option): Use option index instead of option pointer. Classify
10368         diagnostics correctly.
10369         (enable_warning_as_error): Call handle_option.
10370         * opts.h (set_option): Update declaration.
10371         (handle_option): Declare.
10372         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10373         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10374         * c-opts.c (set_Wimplicit): Delete.
10375         (c_family_lang_mask): New static constant.
10376         (c_common_handle_option): Add argument kind. Use handle_option
10377         instead of set_Wimplicit.
10378         (c_common_post_options): warn_implicit and warn_implicit_int
10379         are disabled by default.
10380         * c-common.c (warn_implicit): Do not define here.
10381         * c-common.h (warn_implicit): Do not declare here.
10382         (c_common_handle_option): Update declaration.
10383         * lto-opts.c (lto_reissue_options): Update call to set_option.
10384
10385 2010-05-06  Richard Guenther  <rguenther@suse.de>
10386
10387         PR tree-optimization/43571
10388         * domwalk.c (walk_dominator_tree): Walk the dominator
10389         sons in more optimal order.
10390
10391 2010-05-06  Richard Guenther  <rguenther@suse.de>
10392
10393         PR tree-optimization/43934
10394         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10395         (stmt_cost): Likewise.
10396         (extract_true_false_args_from_phi): New helper.
10397         (determine_max_movement): For PHI nodes verify we can hoist them
10398         and compute their cost.
10399         (determine_invariantness_stmt): Handle PHI nodes.
10400         (move_computations_stmt): Likewise.  Hoist PHI nodes in
10401         if-converted form using COND_EXPRs.
10402         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10403         (tree_ssa_lim): Likewise.
10404         * tree-flow.h (tree_ssa_lim): Adjust prototype.
10405         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10406
10407 2010-05-06  Richard Guenther  <rguenther@suse.de>
10408
10409         PR tree-optimization/43987
10410         * tree-ssa-structalias.c (could_have_pointers): For possibly
10411         address-taken variables force pointers to be recorded.
10412         (create_variable_info_for_1): Likewise.
10413         (push_fields_onto_fieldstack): Pass in wheter all fields
10414         must have pointers.
10415         (find_func_aliases): Query types instead of vars whether
10416         they contain pointers where appropriate.
10417
10418 2010-05-06  Jan Hubicka  <jh@suse.cz>
10419
10420         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10421         (record_reference, mark_address, mark_load, mark_store): Record
10422         references.
10423         (record_references_in_initializer): Update call of record_references.
10424         (rebuild_cgraph_edges): Remove all references before rebuiding.
10425         * cgraph.c (cgraph_create_node): Clear ref list.
10426         (cgraph_remove_node): Remove references.
10427         (dump_cgraph_node): Dump references.
10428         (cgraph_clone_node): Clone references.
10429         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10430         (struct cgraph_node, varpool_node): Add ref_lst.
10431         * ipa-ref.c: New file.
10432         * ipa-ref.h: New file.
10433         * ipa-ref-inline.h: New file.
10434         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10435         (referenced_from_other_partition_p): New function.
10436         (lto_output_varpool_node): Take set arugment; call
10437         referenced_from_other_partition.
10438         (lto_output_ref): New.
10439         (add_references): New.
10440         (output_refs): New.
10441         (output_cgraph): Compute boundary based on references; output refs.
10442         (output_varpool): Accept cgraph_node_set argument.
10443         (input_ref): New.
10444         (input_refs): New.
10445         (input_cgraph): Call input_refs.
10446         * lto-section-in.c (lto_section_name): Add refs.
10447         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10448         (ipa-ref.o): New file.
10449         * varpool.c (varpool_node): Clear ipa ref list.
10450         (varpool_remove_node): Remove references.
10451         (dump_varpool_node): Dump references.
10452         (varpool_assemble_decl): Only compile finalized ones.
10453         (varpool_extra_name_alias): Initialize ref list.
10454         * lto-streamer.c (lto-get_section_name): Add .refs section.
10455         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10456         (referenced_from_other_partition_p): Declared.
10457
10458 2010-05-06  Ira Rosen  <irar@il.ibm.com>
10459
10460         PR tree-optimization/43901
10461         * tree-vect-stmts.c (vectorizable_call): Assert that vector
10462         type is not NULL if it's transformation phase, and return
10463         FALSE if it's analysis.
10464         (vectorizable_conversion, vectorizable_operation,
10465         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10466
10467 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
10468
10469         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10470         Delete.
10471         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10472         New define.
10473         * config/mips/mips-protos.h
10474         (mips_small_register_classes_for_mode_p): Delete prototype.
10475
10476 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
10477
10478         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10479         * config/arm/arm.c (multiple_operation_profitable_p,
10480         compute_offset_order): New static functions.
10481         (load_multiple_sequence, store_multiple_sequence): Use them.
10482         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
10483         memory offsets, not register numbers.
10484         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10485
10486 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
10487
10488         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10489         (get_pending_sizes, put_pending_size, put_pending_sizes):
10490         Update the uses of pending_sizes.
10491         * c-decl.c (store_parm_decls): Likewise.
10492         * c-tree.h (struct c_arg_info): Likewise.
10493         * tree.h: Update the prototype for get_pending_sizes and
10494         put_pending_sizes.
10495
10496 2010-05-05  Jason Merrill  <jason@redhat.com>
10497
10498         PR debug/43370
10499         * c-common.c (handle_aligned_attribute): Respect
10500         ATTR_FLAG_TYPE_IN_PLACE.
10501
10502         PR testsuite/43758
10503         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10504         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10505         (TARGET_INITIALIZER): Use it.
10506         * c-common.c (attribute_takes_identifier_p): Call it.
10507         * c-common.h: Update prototype.
10508         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10509         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10510
10511 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10512
10513         PR debug/43950
10514         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10515         DW_ID_down_case for Fortran compilation units.
10516
10517 2010-05-05  Jan Hubicka  <jh@suse.cz>
10518
10519         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10520         handle aliases.
10521
10522 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10523
10524         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10525         a variable-sized RESULT_DECL.
10526
10527 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
10528
10529         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10530
10531 2010-05-05  Jason Merrill  <jason@redhat.com>
10532
10533         PR c++/43787
10534         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10535         returns GS_OK.
10536         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10537
10538 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
10539             Jakub Jelinek  <jakub@redhat.com>
10540
10541         PR debug/43478
10542         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10543         (dead_debug_init, dead_debug_finish): New functions.
10544         (dead_debug_add, dead_debug_insert_before): Likewise.
10545         (df_note_bb_compute): Initialize a dead_debug object, add dead
10546         debug uses to it, insert debug bind insns before death insns,
10547         reset debug insns that refer to pending uses at the end.
10548         * rtl.h (make_debug_expr_from_rtl): New prototype.
10549         * varasm.c (make_debug_expr_from_rtl): New function.
10550
10551 2010-05-05  Jan Hubicka  <jh@suse.cz>
10552
10553         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10554         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10555         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10556         lto_varpool_encoder_deref, lto_varpool_encoder_size,
10557         lto_varpool_encoder_encode_initializer_p,
10558         lto_set_varpool_encoder_encode_initializer): New functions.
10559         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10560         call output_varpool.
10561         (input_varpool_node): Do not always set analyzed.
10562         (input_cgraph_1): Return vector of cgraph nodes.
10563         (input_varpool_1): Return vector of varpools.
10564         (input_cgraph): Free the vectors.
10565         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10566         output only initializers needed.
10567         (lto_output): Only call output_cgraph.
10568         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10569         * lto-section-out.c (lto_new_out_decl_state): Initialize
10570         state->varpool_node_encoder.
10571         * lto-streamer.h (lto_varpool_encoder_d): New.
10572         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10573         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10574         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10575         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10576         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10577         Declare.
10578         (output_varpool, input_varpool): Remove declarations.
10579
10580 2010-05-05  Jan Hubicka  <jh@suse.cz>
10581
10582         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10583         with body can prevail.
10584
10585 2010-05-05  Jan Hubicka  <jh@suse.cz>
10586
10587         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10588         size.
10589
10590 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10591
10592         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10593
10594         * gengtype.h (erro_at_line): Constify pos argument.
10595
10596         * gengtype.c: Include hashtab.h.
10597         (enum gc_used): Document GC_MAYBE_POINTED_TO.
10598         (error_at_line): Constify pos argument.
10599         (do_typedef): Initialize p->opt field.
10600         (get_file_gtfilename): Fix comment typo.
10601         (struct walk_type_data): Constify line field.
10602         (get_output_file_for_structure): New function.
10603         (write_local_func_for_structure): Constify orig_s argument.
10604         Use get_output_file_for_structure.
10605         (write_func_for_structure): Use get_output_file_for_structure.
10606         (INDENT): New define.
10607         (dump_pair, dump_type, dump_type_list, dump_typekind)
10608         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10609         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10610         functions.
10611         (seen_types): New variable.
10612         (main): New variable do_dump.  Process "-d" command line option.
10613         Call dump_everything if dump requested.
10614
10615 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10616
10617         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10618         in a temporary instead of invoking the macro multiple times.
10619         (track_expr_p): Likewise.
10620
10621 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
10622
10623         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10624         per new semantics.
10625         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10626         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
10627         conditions for printing notes.
10628         * common.opt (-Wcoverage-mismatch): Allow negative, default to
10629         true, update documentation.
10630         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
10631
10632 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
10633
10634         PR c/43981
10635         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
10636         on dimen.
10637
10638 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10639
10640         PR target/43799
10641         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
10642         (*sse_prologue_save_insn1): Likewise.
10643         (SSE prologue save splitter): Likewise.
10644
10645 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
10646
10647         * tree.c (free_lang_data_in_one_sizepos): New inline function.
10648         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
10649         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
10650         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
10651         all decls.  Call it on DECL_FIELD_OFFSET of fields.
10652         (find_decls_types_r): Follow DECL_VALUE_EXPR.
10653         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
10654
10655 2010-05-04  Martin Jambor  <mjambor@suse.cz>
10656
10657         * tree-sra.c (build_access_from_expr_1): The first parameter type
10658         changed to simple tree.
10659         (build_access_from_expr): Likewise, gsi parameter was eliminated.
10660         (scan_assign_result): Renamed to assignment_mod_result, enum elements
10661         renamed as well.
10662         (build_accesses_from_assign): Removed all parameters except for a
10663         simple gimple statement.  Now returns a simple bool.
10664         (scan_function): All non-analysis parts moved to separate functions
10665         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
10666         parameters and updated both callers.
10667         (sra_modify_expr): Removed parameter data.
10668         (sra_modify_function_body): New function.
10669         (perform_intra_sra): Call sra_modify_function_body to modify the
10670         function body.
10671         (replace_removed_params_ssa_names): Parameter data changed into
10672         adjustments vector.
10673         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
10674         changed the parameter dont_convert to convert with the opposite
10675         meaning.
10676         (sra_ipa_modify_assign): Parameter data changed into adjustments
10677         vector, return value changed to bool.
10678         (ipa_sra_modify_function_body): New function.
10679         (sra_ipa_reset_debug_stmts): Updated a comment.
10680         (modify_function): Use ipa_sra_modify_function_body to modify function
10681         body.
10682
10683 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
10684
10685         PR middle-end/43671
10686         * alias.c (true_dependence): Handle the same VALUE in x and mem.
10687         (canon_true_dependence): Likewise.
10688         (write_dependence_p): Likewise.
10689
10690 2010-05-04  Jan Hubicka  <jh@suse.cz>
10691
10692         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
10693         * cgraphbuild.c: Include ipa-utils.h
10694         (record_reference_ctx): New struct.
10695         (record_reference): Simplify to work on initializers; not statements.
10696         (mark_address, mark_load, mark_store): New.
10697         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10698         walk PHI nodes too.
10699         (record_references_in_initializer): Update use of record_reference.
10700         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
10701         walk PHI nodes too.
10702
10703 2010-05-04  Jan Hubicka  <jh@suse.cz>
10704
10705         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
10706         node will be removed anyway.
10707         (lto_varpool_replace_node): Allow also unanalyzed nodes;
10708         relink aliases of node into prevailing node.
10709         * varpool.c (varpool_remove_node): Remove aliases properly;
10710         when removing node, remove all its aliases too; remove DECL_INITIAL
10711         of removed node; ggc_free the varpool node.
10712
10713 2010-05-04  Richard Guenther  <rguenther@suse.de>
10714
10715         PR tree-optimization/43879
10716         * tree-ssa-structalias.c (alias_get_name): Use
10717         DECL_ASSEMBLER_NAME if available.
10718         (create_function_info_for): Return the varinfo node.
10719         (ipa_pta_execute): Associate same-body aliases and extra names
10720         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
10721
10722 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
10723
10724         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
10725
10726 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
10727
10728         PR bootstrap/43964
10729         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
10730         only if HONOR_REG_ALLOC_ORDER is not defined.
10731
10732 2010-05-04  Richard Guenther  <rguenther@suse.de>
10733
10734         PR tree-optimization/43949
10735         * tree-vrp.c (extract_range_from_binary_expr): Only handle
10736         TRUNC_MOD_EXPR.
10737
10738 2010-04-26  Jason Merrill  <jason@redhat.com>
10739
10740         * c.opt (-fstrict-enums): New.
10741         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
10742
10743 2010-05-03  David Ung  <davidu@mips.com>
10744             James E. Wilson  <wilson@codesourcery.com>
10745
10746         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
10747         emit the trap instruction before the divide for TUNE_74K.
10748
10749 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
10750
10751         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
10752         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
10753         based on the above, for new target hook.
10754
10755         * hooks.c (hook_bool_mode_true): New generic hook.
10756         * hooks.h (hook_bool_mode_true): Add prototype.
10757
10758         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
10759         target hook.
10760         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
10761         target hook, set to hook_bool_mode_false.
10762         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
10763         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
10764         with targetm.small_register_classes_for_mode_p.
10765         (find_reusable_reload): Likewise.
10766         (combine_reloads): Likewise.
10767         * reload1.c (reload_as_needed): Likewise.
10768         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
10769         * ifcvt.c (noce_process_if_block, check_cond_move_block,
10770         dead_or_predicable): Likewise.
10771         * regmove.c (optimize_reg_copy_1): Likewise.
10772         * calls.c (prepare_call_address): Likewise.
10773         (precompute_register_parameters): Likewise.
10774
10775         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
10776         hook definition.
10777         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
10778         implementation of the hook that considers all register classes
10779         small except for SH64.
10780         (sh_override_options): Use the new hook.
10781         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
10782         Add prototype.
10783
10784         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
10785         hook definition.
10786         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
10787         implementation of the hook that considers all register classes
10788         small for THUMB1.
10789         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
10790         Add prototype.
10791
10792         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
10793         hook definition.
10794         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
10795         implementation of the hook that considers all register classes
10796         small for MIPS16.
10797         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
10798         Add prototype.
10799
10800         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
10801         hook definition.
10802         * config/m32c/m32c.h: Likewise.
10803         * config/pdp11/pdp11.h: Likewise.
10804         * config/avr/avr.h: Likewise.
10805         * config/xtensa/xtensa.h: Likewise.
10806         * config/m68hc11/m68hc11.h: Likewise.
10807         * config/mn10300/mn10300.h: Likewise.
10808         * config/mcore/mcore.h: Likewise.
10809         * config/h8300/h8300.h: Likewise.
10810         * config/bfin/bfin.h: Likewise.
10811
10812         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
10813         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
10814
10815 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
10816
10817         * double-int.h (tree_to_double_int): Remove macro.
10818         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
10819         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10820         (tree_to_double_int): New function.
10821         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
10822         Move ...
10823         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
10824
10825 2010-05-03  Richard Guenther  <rguenther@suse.de>
10826
10827         PR tree-optimization/43971
10828         * tree-ssa-structalias.c (get_constraint_for_1): Fix
10829         constraints in the !flag_delete_null_pointer_checks case.
10830
10831 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
10832
10833         PR debug/43972
10834         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
10835         result mode matches original rtl mode.
10836
10837 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
10838
10839         PR target/43888
10840         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
10841
10842 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10843
10844         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
10845         when processing flag options.
10846
10847 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10848
10849         * gcov-iov.c (main): Change format string placeholder
10850         from %#08x to 0x%08x.
10851         * genchecksum.c (dosum): Change format string placeholder
10852         from %#02x to 0x%02x.
10853
10854 2010-05-02  Richard Guenther  <rguenther@suse.de>
10855
10856         PR tree-optimization/43879
10857         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
10858
10859 2010-05-02  Bruno Haible  <bruno@clisp.org>
10860
10861         * doc/extend.texi (Function Attributes): Fix a typo.
10862
10863 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10864
10865         Revert:
10866         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
10867         placeholder from 0x%x to %#x.
10868         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10869         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10870         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10871         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10872         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10873         * config/i386/i386.c (ix86_target_string): Ditto.
10874         * config/i386/i386.c (output_pic_addr_const): Ditto.
10875         (print_operand): Ditto.
10876
10877 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
10878
10879         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
10880         placeholder from 0x%x to %#x.
10881         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
10882         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
10883         (ASM_OUTPUT_DEBUG_DATA): Ditto.
10884         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
10885         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
10886         * optc-gen.awk: Ditto.
10887         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
10888         (HOST_WIDE_INT_PRINT_HEX): Ditto.
10889         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
10890         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
10891
10892 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10893
10894         * target.h (struct calls): Add function_value_regno_p field.
10895         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10896         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
10897         * targhooks.c (default_function_value_regno_p): New function.
10898         * targhooks.h (default_function_value_regno_p): Declare function.
10899         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
10900         * builtins.c. (apply_result_size): (Ditto.).
10901         * combine.c. (likely_spilled_retval_p): (Ditto.).
10902         * mode-switching.c. Include 'target.h'.
10903         (create_pre_exit): Use function_value_regno_p hook.
10904         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
10905         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10906         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10907
10908         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10909         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10910         (ix86_function_value_regno_p): Declare as static, change argument
10911         type to const unsigned int.
10912         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10913
10914 2010-05-01  Richard Guenther  <rguenther@suse.de>
10915
10916         PR tree-optimization/43949
10917         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10918         types.
10919         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10920
10921 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10922
10923         * rtl.h (CONST_DOUBLE_P): Define.
10924         (rtx_to_double_int): Declare.
10925         * emit-rtl.c (rtx_to_double_int): New function.
10926         * dwarf2out.c (insert_double): New function.
10927         (loc_descriptor, add_const_value_attribute): Clean up, use
10928         rtx_to_double_int and insert_double functions.
10929
10930 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
10931
10932         * doc/extend.texi (Inline): Add missing return keyword to examples.
10933         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10934         "command-line".
10935
10936 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10937
10938         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10939         the variable part of the offset as well.  Use highest_pow2_factor for
10940         all alignment checks.
10941
10942 2010-04-30  Richard Guenther  <rguenther@suse.de>
10943
10944         PR tree-optimization/43879
10945         * tree-ssa-structalias.c (type_could_have_pointers): Functions
10946         can have pointers.
10947
10948 2010-04-30  Jan Hubicka  <jh@suse.cz>
10949
10950         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10951         varpool.
10952         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10953
10954 2010-04-30  Jan Hubicka  <jh@suse.cz>
10955
10956         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10957         New.
10958         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10959         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10960         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10961         cgraph_node_set_needs_ltrans_p): Remove.
10962
10963 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10964
10965         * sdbout.c: Include vec.h, do not include varray.h.
10966         (deferred_global_decls, sdbout_global_decl,
10967         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10968         * toplev.c: Do not include varray.h.
10969         (dump_memory_report): Do not dump VARRAY statistics.
10970         * gengtype.c (open_base_file): Ignore varray.h.
10971         * Makefile.in: Update for abovementioned changes.
10972         Remove all traces of varray.c and varray.h.
10973         * varray.c: Remove file.
10974         * varray.h: Remove file.
10975
10976 2010-04-30  Jan Hubicka  <jh@suse.cz>
10977
10978         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10979         references.
10980
10981 2010-04-30  Jan Hubicka  <jh@suse.cz>
10982
10983         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10984         needed.
10985
10986 2010-04-30  Richard Guenther  <rguenther@suse.de>
10987
10988         * tree-ssa-structalias.c (get_constraint_for_1): Generate
10989         constraints for CONSTRUCTOR.
10990
10991 2010-04-30  Richard Guenther  <rguenther@suse.de>
10992
10993         PR lto/43946
10994         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10995         first after all lowering passes.
10996
10997 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10998
10999         * toplev.c: Include varray.h for statistics dumping.
11000         * tree.h: Do not declare varray_head_tag.
11001         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11002         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11003         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11004         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11005         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11006         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11007         c-common.c, c-common.h, reg-stack.c, basic-block.h,
11008         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11009         include varray.h.
11010         * Makefile.in: Update for abovementioned changes.
11011
11012 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
11013
11014         PR debug/43942
11015         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11016
11017 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
11018
11019         * config/picochip/picochip.c (picochip_legitimize_address): Define.
11020         Use this function to do machine-specific conversion.
11021         (picochip_legitimize_reload_address): Likewise.
11022         (picochip_legitimate_address_p): Check valid base register only if
11023         strict.
11024         (picochip_check_conditional_copy): Check for modw only if opnd is
11025         register.
11026         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11027         to call the function in c.
11028         * config/picochip/picochip-protos.h
11029         (picochip_legitimize_reload_address): Define.
11030         * config/picochip/picochip.md (supported_compare1): Define.
11031
11032 2010-04-30  Jan Hubicka  <jh@suse.cz>
11033
11034         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11035         (cgraph_global_info): Remove inlined.
11036         (LTO_cgraph_tag_names): Remove.
11037         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11038         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11039         simplify cgraph tags and document.
11040         (lto_output_node): Use only LTO_cgraph_unavail_node and
11041         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11042         for_functions_valid, global info, process and output flags.
11043         (input_overwrite_node): Initialize estimated stack size and
11044         estimated growth.  Do not read flags we no longer store.
11045         (input_node): Likewise do not read info no longer stored.
11046         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11047         flag.
11048
11049 2010-04-30  Richard Guenther  <rguenther@suse.de>
11050
11051         PR tree-optimization/43879
11052         * tree-ssa-structalias.c (get_constraint_for_1): Properly
11053         handle non-zero initializers.
11054
11055 2010-04-30  Richard Guenther  <rguenther@suse.de>
11056
11057         * builtins.c (fold_builtin_1): Delete free (0).
11058
11059 2010-04-29  Jan Hubicka  <jh@suse.cz>
11060
11061         * gengtype.c (open_base_files): Add lto-streamer.h
11062         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11063         (pass_ipa_cp): GGC collect.
11064         * toplev. (compile_file): Do not output symbols.
11065         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11066         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11067         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11068         * lto-section-in.c: Include ggc.h
11069         (lto_new_in_decl_state): Alloc in GGC.
11070         (lto_delete_in_decl_state): Likewise.
11071         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11072         Collect.
11073
11074 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11075
11076         PR target/42895
11077         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11078         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
11079         (HONOR_REG_ALLOC_ORDER): Describe new macro.
11080         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11081         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11082         account only if HONOR_REG_ALLOC_ORDER is not defined.
11083         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11084         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11085
11086 2010-04-29  Jon Grant  <04@jguk.org>
11087
11088         * collect2.c (vflag): Change type from int to bool.
11089         (debug): Likewise.
11090         (helpflag): New global bool.
11091         (main): Set vflag and debug with boolean, not integer truth values.
11092         Accept new "--help" option and output usage text if found.
11093         * collect2.h (vflag): Update prototype.
11094         (debug): Likewise.
11095
11096 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11097
11098         PR bootstrap/43936
11099         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11100
11101 2010-04-29  Richard Guenther  <rguenther@suse.de>
11102
11103         PR bootstrap/43935
11104         * plugin.h (invoke_plugin_callbacks): Annotate arguments
11105         with ATTRIBUTE_UNUSED.
11106
11107 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11108
11109         PR target/43921
11110         * config/i386/i386.c (get_some_local_dynamic_name): Replace
11111         INSN_P with NONDEBUG_INSN_P.
11112         (distance_non_agu_define): Likewise.
11113         (distance_agu_use): Likewise.
11114
11115 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11116
11117         From Dominique d'Humieres  <dominiq@lps.ens.fr>
11118         PR bootstrap/43858
11119         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11120         test_set.
11121
11122 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
11123
11124         * plugin.h (invoke_plugin_callbacks): New inline function.
11125         * plugin.c (flag_plugin_added): New global flag.
11126         (add_new_plugin): Initialize above flag.
11127         (invoke_plugin_callbacks): Rename to ...
11128         (invoke_plugin_callbacks_full): ... this.
11129
11130 2010-04-28  Jan Hubicka  <jh@suse.cz>
11131
11132         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11133         (lto_varpool_replace_node): New.
11134         (lto_symtab_resolve_symbols): Resolve varpool nodes.
11135         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11136         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11137         * cgraph.h (varpool_node_ptr): New type.
11138         (varpool_node_ptr): New vector.
11139         (varpool_node_set_def): New structure.
11140         (varpool_node_set): New type.
11141         (varpool_node_set): New vector.
11142         (varpool_node_set_element_def): New structure.
11143         (varpool_node_set_element, const_varpool_node_set_element): New types.
11144         (varpool_node_set_iterator): New type.
11145         (varpool_node): Add prev pointers, add used_from_other_partition,
11146         in_other_partition.
11147         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11148         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11149         varpool_get_node, varpool_remove_node): Declare.
11150         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11151         varpool_node_set_size): New inlines.
11152         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11153         * tree-pass.h (varpool_node_set_def): Forward declare.
11154         (ipa_opt_pass_d): Summary writting takes vnode sets too.
11155         (ipa_write_optimization_summaries): Update prototype.
11156         * ipa-cp.c (ipcp_write_summary): Update.
11157         * ipa-reference.c (ipa_reference_write_summary): Update.
11158         * lto-cgraph.c (lto_output_varpool_node): New static function.
11159         (output_varpool): New function.
11160         (input_varpool_node): New static function.
11161         (input_varpool_1): New function.
11162         (input_cgraph): Input varpool.
11163         * ipa-pure-const.c (pure_const_write_summary): Update.
11164         * lto-streamer-out.c (lto_output): Update, output varpool too.
11165         (write_global_stream): Kill WPA hack.
11166         (produce_asm_for_decls): Update.
11167         (output_alias_pair_p): Handle variables.
11168         (output_unreferenced_globals): Output only needed partition of varpool.
11169         * ipa-inline.c (inline_write_summary): Update.
11170         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11171         cgraph.
11172         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11173         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11174         varpool_node_set_new, varpool_node_set_add,
11175         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11176         debug_varpool_node_set): New functions.
11177         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11178         (execute_one_pass): Process new decls too.
11179         (ipa_write_summaries_2): Pass around vsets.
11180         (ipa_write_summaries_1): Likewise.
11181         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11182         to add.
11183         (ipa_write_optimization_summaries_1): Pass around vsets.
11184         (ipa_write_optimization_summaries): Likewise.
11185         * varpool.c (varpool_get_node): New.
11186         (varpool_node): Update doubly linked lists.
11187         (varpool_remove_node): New.
11188         (dump_varpool_node): More dumping.
11189         (varpool_enqueue_needed_node): Update doubly linked lists.
11190         (decide_is_variable_needed): Kill ltrans hack.
11191         (varpool_finalize_decl): Kill lto hack.
11192         (varpool_assemble_decl): Skip decls in other partitions.
11193         (varpool_assemble_pending_decls): Update doubly linkes lists.
11194         (varpool_empty_needed_queue): Likewise.
11195         (varpool_extra_name_alias): Likewise.
11196         * lto-streamer.c (lto_get_section_name): Add vars section.
11197         * lto-streamer.h (lto_section_type): Update.
11198         (output_varpool, input_varpool): Declare.
11199
11200 2010-04-28  Mike Stump  <mikestump@comcast.net>
11201
11202         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11203
11204 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11205
11206         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11207         record or union type with RECORD_OR_UNION_TYPE_P predicate.
11208         (lto_input_ts_type_tree_pointers): Likewise.
11209         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11210         (lto_output_ts_type_tree_pointers): Likewise.
11211
11212 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11213
11214         Uniquization of constants at the Tree level
11215         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11216         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11217         bit to the end.
11218         (tree_output_constant_def): Declare.
11219         * gimplify.c (gimplify_init_constructor): When using block copy, first
11220         uniquize the constant constructor on the RHS.
11221         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11222         DECL_IN_CONSTANT_POOL flag.
11223         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11224         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11225         constant pool.
11226         (assemble_variable): Deal with symbols belonging to the tree constant
11227         pool.
11228         (get_constant_section): Add ALIGN parameter and simplify.
11229         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11230         (assemble_constant_contents): Use the expression of the VAR_DECL.
11231         (output_constant_def_contents): Use the alignment of the VAR_DECL.
11232         (tree_output_constant_def): New global function.
11233         (mark_constant): Use the expression of the VAR_DECL.
11234         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11235         its expression.
11236         (output_object_block): Likewise and assemble the expression.
11237
11238 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11239
11240         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11241         hash_tree, eq_tree): New tree hash table.
11242         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11243         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11244         lto_orig_address_remove): Reimplement.
11245
11246 2010-04-28  Xinliang David Li  <davidxl@google.com>
11247
11248         PR c/42643
11249         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11250         (compute_uninit_opnds_pos): New function.
11251         (is_non_loop_exit_postdominating): New function.
11252         (compute_control_dep_chain): New function.
11253         (find_pdom): New function.
11254         (convert_control_dep_chain_into_preds): New function.
11255         (find_predicates): New function.
11256         (find_control_equiv_block): New function.
11257         (collect_phi_def_edges): New function.
11258         (find_def_preds): New function.
11259         (find_dom): New function.
11260         (dump_predicates): New function.
11261         (get_cmp_code): New function.
11262         (is_value_included_in): New function.
11263         (find_matching_predicate_in_rest_chains): New function.
11264         (use_pred_not_overlap_with_undef_path_pred): New function.
11265         (is_use_properly_guarded): New function.
11266         (normalize_cond_1): New function.
11267         (is_and_or_or): New function.
11268         (normalize_cond): New function.
11269         (is_gcond_subset_of): New function.
11270         (is_subset_of_any): New function.
11271         (is_or_set_subset_of): New function.
11272         (is_and_set_subset_of): New function.
11273         (is_norm_cond_subset_of): New function.
11274         (is_pred_expr_subset_of): New function.
11275         (is_pred_chain_subset_of): New function.
11276         (is_included_in): New function.
11277         (is_superset_of): New function.
11278         (find_uninit_use): New function.
11279         (warn_uninitialized_phi): New function.
11280         (compute_possibly_undefined_names): New function.
11281         (ssa_undefined_value_p): New function.
11282         (execute_late_warn_uninitialized): New function.
11283         * tree-ssa.c (ssa_undefined_value_p): Removed.
11284         (warn_uninit): Changed to extern.
11285         (warn_uninitialized_phi): Removed.
11286         (warn_uninitialized_vars): Changed to extern.
11287         (execute_late_warn_uninitialized): Removed
11288         * tree-flow.h: Add new prototypes.
11289         * timevar.def: Add new time variable.
11290         * Makefile.in: Add new build file.
11291
11292 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
11293
11294         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11295         type if available.
11296
11297 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11298
11299         PR target/22224
11300         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11301
11302 2010-04-28  Martin Jambor  <mjambor@suse.cz>
11303
11304         * cgraph.h (struct cgraph_node): New field indirect_calls.
11305         (struct cgraph_indirect_call_info): New type.
11306         (struct cgraph_edge): Removed field indirect_call. New fields
11307         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11308         (cgraph_create_indirect_edge): Declare.
11309         (cgraph_make_edge_direct): Likewise.
11310         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11311         * ipa-prop.h (struct ipa_param_call_note): Removed.
11312         (struct ipa_node_params): Removed field param_calls.
11313         (ipa_create_all_structures_for_iinln): Declare.
11314         * cgraph.c: Described indirect edges and uids in initial comment.
11315         (cgraph_add_edge_to_call_site_hash): New function.
11316         (cgraph_edge): Search also among the indirect edges, use
11317         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11318         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11319         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11320         site hash.
11321         (initialize_inline_failed): Assign a reason to indirect edges.
11322         (cgraph_create_edge_1): New function.
11323         (cgraph_create_edge): Moved some functionality to
11324         cgraph_create_edge_1.
11325         (cgraph_create_indirect_edge): New function.
11326         (cgraph_edge_remove_callee): Add an assert checking for
11327         non-indirectness.
11328         (cgraph_edge_remove_caller): Special-case indirect edges.
11329         (cgraph_remove_edge): Likewise.
11330         (cgraph_set_edge_callee): New function.
11331         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11332         (cgraph_make_edge_direct): New function.
11333         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11334         the declaration of the call statement matches.
11335         (cgraph_node_remove_callees): Special-case indirect edges.
11336         (cgraph_clone_edge): Likewise.
11337         (cgraph_clone_node): Clone also the indirect edges.
11338         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11339         indirect_call, dump count of indirect_calls edges.
11340         * ipa-prop.c (iinlining_processed_edges): New variable.
11341         (ipa_note_param_call): Create indirect edges instead of
11342         creating notes.  New parameter node.
11343         (ipa_analyze_call_uses): New parameter node, pass it on to
11344         ipa_note_param_call.
11345         (ipa_analyze_stmt_uses): Likewise.
11346         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11347         (print_edge_addition_message): Work on edges rather than on notes.
11348         (update_call_notes_after_inlining): Likewise, renamed to
11349         update_indirect_edges_after_inlining.
11350         (ipa_create_all_structures_for_iinln): New function.
11351         (ipa_free_node_params_substructures): Do not free notes.
11352         (ipa_edge_duplication_hook): Propagate bits within
11353         iinlining_processed_edges bitmap.
11354         (ipa_node_duplication_hook): Do not duplicate notes.
11355         (free_all_ipa_structures_after_ipa_cp): Renamed to
11356         ipa_free_all_structures_after_ipa_cp.
11357         (free_all_ipa_structures_after_iinln): Renamed to
11358         ipa_free_all_structures_after_iinln.
11359         (ipa_write_param_call_note): Removed.
11360         (ipa_read_param_call_note): Removed.
11361         (ipa_write_indirect_edge_info): New function.
11362         (ipa_read_indirect_edge_info): Likewise.
11363         (ipa_write_node_info): Do not stream notes, do stream information
11364         in indirect edges.
11365         (ipa_read_node_info): Likewise.
11366         (lto_ipa_fixup_call_notes): Removed.
11367         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11368         * ipa-inline.c (pass_ipa_inline): Likewise.
11369         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11370         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11371         * tree-inline.c (copy_bb): Removed an unnecessary double check for
11372         is_gimple_call.
11373         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11374         edges.
11375         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11376         (output_cgraph): Stream also indirect edges.
11377         (lto_output_edge): Added capability to stream indirect edges.
11378         (input_edge): Likewise.
11379         (input_cgraph_1): Likewise.
11380         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11381         of indirect edges.
11382
11383 2010-04-28  Richard Guenther  <rguenther@suse.de>
11384
11385         PR tree-optimization/43879
11386         PR tree-optimization/43909
11387         * tree-ssa-structalias.c (struct variable_info): Add
11388         only_restrict_pointers flag.
11389         (new_var_info): Initialize it.  Increment stats.total_vars here.
11390         (create_function_info_for): Do not increment stats.total_vars here.
11391         (get_function_part_constraint): Fix build with C++.
11392         (insert_into_field_list): Remove.
11393         (push_fields_onto_fieldstack): Properly merge fields.
11394         (create_variable_info_for): Split and simplify.
11395         (create_variable_info_for_1): New piece.
11396         (intra_create_variable_infos): Properly make restrict constraints
11397         from parameters.
11398
11399 2010-04-28  Richard Guenther  <rguenther@suse.de>
11400
11401         PR c++/43880
11402         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11403
11404 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11405             Jan Hubicka  <hubicka@ucw.cz>
11406
11407         * doc/invoke.texi (-Wsuggest-attribute=const,
11408         -Wsuggest-attribute=pure): Document.
11409         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11410         (function_always_visible_to_compiler_p,
11411         suggest_attribute, warn_function_pure, warn_function_const):
11412         New functions.
11413         (check_call): Improve debug info.
11414         (analyze_function): Do not check availability.
11415         (add_new_function): Check availability.
11416         (propagate): Output warnings.
11417         (skip_function_for_local_pure_const): New function.
11418         (local_pure_const): Use it; output warnings.
11419         * common.opt (Wsuggest-attribute=const,
11420         Wsuggest-attribute=pure): New.
11421
11422 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
11423
11424         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11425         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11426         or DW_CFA_def_cfa_offset{,_sf}.
11427
11428 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11429
11430         * tree.h: Fix truncated long macros.
11431
11432 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
11433
11434         * collect2.c (TARGET_64BIT): Redefine to target's default.
11435         * tlink.c: Likewise.
11436         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11437         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11438         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11439         for underscoring __USER_LABEL_PREFIX__.
11440         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11441         (SUB_LINK_ENTRY32): New.
11442         (SUB_LINK_ENTRY64): New.
11443         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11444         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11445         (SUB_LINK_ENTRY64): New.
11446         (SUB_LINK_ENTRY): New.
11447         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11448         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11449         x64 target is choosen.
11450         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11451         * configure: Regenerated.
11452         * configure.ac (leading-mingw64-underscores): Option added.
11453
11454 2010-04-27  Jan Hubicka  <jh@suse.cz>
11455
11456         * doc/invoke.texi (-fipa-profile): Document.
11457         * opts.c (decode_options): Enable ipa-profile at -O1.
11458         * timevar.def (TV_IPA_PROFILE): Define.
11459         * common.opt (fipa-profile): Add.
11460         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11461         flag for clones.
11462         (cgraph_propagate_frequency): Handle only local ones.
11463         * tree-pass.h (pass_ipa_profile): Declare.
11464         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11465         (pass_ipa_profile): Use TV_IPA_PROFILE.
11466         * ipa.c (ipa_profile): New function.
11467         (gate_ipa_profile): Likewise.
11468         (pass_ipa_profile): New global variable.
11469         * passes.c (pass_ipa_profile): New.
11470
11471 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
11472
11473         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11474
11475 2010-04-27  Martin Jambor  <mjambor@suse.cz>
11476
11477         PR middle-end/43812
11478         * ipa.c (dissolve_same_comdat_group_list): New function.
11479         (function_and_variable_visibility): Call
11480         dissolve_same_comdat_group_list when comdat group contains external or
11481         newly local nodes.
11482         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11483         lists are circular and that they contain only DECL_ONE_ONLY nodes.
11484
11485 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11486
11487         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11488         (const_hash_1) <VECTOR_CST>: New case.
11489         (compare_constant) <VECTOR_CST>: Likewise.
11490         <ADDR_EXPR>: Deal with LABEL_REFs.
11491         (copy_constant) <VECTOR_CST>: New case.
11492
11493 2010-04-27  Jan Hubicka  <jh@suse.cz>
11494
11495         * cgraph.c (cgraph_propagate_frequency): New function.
11496         * cgraph.h (cgraph_propagate_frequency): Declare.
11497         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11498         cgraph_propagate_frequency.
11499
11500 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
11501
11502         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11503
11504 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
11505
11506         PR target/40657
11507         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11508         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11509         here to determine which regs to push and how much stack to reserve.
11510
11511 2010-04-27  Jie Zhang  <jie@codesourcery.com>
11512
11513         * doc/gimple.texi (gimple_statement_with_ops): Remove
11514         addresses_taken field.
11515         (gimple_statement_with_memory_ops): Likewise.
11516
11517 2010-04-27  Jan Hubicka  <jh@suse.cz>
11518
11519         * tree-inline.c (eni_inlining_weights): Remove.
11520         (estimate_num_insns): Special case more builtins.
11521
11522 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
11523
11524         PR c/32207
11525         * c-typeck.c (build_binary_op): Move forward check for comparison
11526         pointer with null pointer constant and adjust the diagnostic message.
11527
11528 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
11529
11530         PR lto/42776
11531         * configure.ac (gcc_cv_as_section_has_align): Set if installed
11532         binutils supports extended .section directive needed by LTO, or
11533         warn if older binutils found.
11534         (LTO_BINARY_READER): New AC_SUBST'd variable.
11535         (LTO_USE_LIBELF): Likewise.
11536         * gcc/config.gcc (lto_binary_reader): New target-specific configure
11537         variable.
11538         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11539         (LTO_USE_LIBELF): Likewise.
11540         * configure: Regenerate.
11541
11542         * collect2.c (is_elf): Rename from this ...
11543         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11544          object files in addition to ELF-formatted ones.
11545         (scan_prog_file): Caller updated.  Also allow for LTO info marker
11546         symbol to be prefixed or not by an extra underscore.
11547
11548         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11549         * config/i386/winnt.c: Also #include lto-streamer.h
11550         (i386_pe_asm_named_section): Specify 1-byte section alignment for
11551         LTO named sections.
11552         (i386_pe_asm_output_aligned_decl_common): Add comment.
11553         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11554
11555 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
11556
11557         PR target/43889
11558         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11559         Add missing earlyclobber for second alternative.
11560
11561 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
11562
11563         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11564         bits for artificial defs at the top of the block.
11565         * fwprop.c (single_def_use_enter_block): Don't call it.
11566
11567 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
11568
11569         PR 43715
11570         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11571         instead of "$gcc_cv_objdump -T".
11572         Use "-undefined dynamic_lookup" on darwin.
11573         * gcc/configure: Regenerate.
11574
11575 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
11576
11577         PR c/43893
11578         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11579
11580 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11581
11582         * c-parser.c (struct c_token): Move location field up.
11583         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11584         (struct c_declspecs): Convert typespec_word, storage_class, and
11585         default_int_p into bitfields.
11586         (struct c_declarator): Move loc field up.
11587
11588 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11589
11590         * cfgloop.h (struct loop): Move can_be_parallel field up.
11591         * ipa-prop.h (struct ip_node_params): Move bitfields up.
11592         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11593         down.
11594         (struct iv_cand): Convert pos field into a bitfield.
11595         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11596         field up.
11597         (struct _stmt_vec_info): Shuffle fields for better packing.
11598
11599 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11600
11601         * varasm.c (IN_NAMED_SECTION): Remove guard.
11602         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11603         (IN_NAMED_SECTION_P): ...this.
11604         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11605         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11606
11607 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11608
11609         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11610         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
11611         of shadowing it.  Fix comments.
11612
11613 2010-04-26  Jan Hubicka  <jh@suse.cz>
11614
11615         * cgraph.c (cgraph_create_node): Set node frequency to normal.
11616         (cgraph_clone_node): Copy function frequency.
11617         * cgraph.h (node_frequency): New enum
11618         (struct cgraph_node): Add.
11619         * final.c (rest_of_clean_state): Update.
11620         * lto-cgraph.c (lto_output_node): Output node frequency.
11621         (input_overwrite_node): Input node frequency.
11622         * tre-ssa-loop-ivopts (computation_cost): Update.
11623         * lto-streamer-out.c (output_function): Do not output function
11624         frequency.
11625         * predict.c (maybe_hot_frequency_p): Update and handle functions
11626         executed once.
11627         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11628         attribute lookup.
11629         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
11630         (compute_function_frequency): Set noreturn functions to be executed
11631         once.
11632         (choose_function_section): Update.
11633         * lto-streamer-in.c (input_function): Do not input function frequency.
11634         * function.c (allocate_struct_function): Do not initialize function
11635         frequency.
11636         * function.h (function_frequency): Remove.
11637         (struct function): Remove function frequency.
11638         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
11639         (try_update): Update.
11640         * tree-inline.c (initialize_cfun): Do not update function frequency.
11641         * passes.c (pass_init_dump_file): Update.
11642         * i386.c (ix86_compute_frame_layout): Update.
11643         (ix86_pad_returns): Update.
11644
11645 2010-04-26  Jie Zhang  <jie@codesourcery.com>
11646
11647         PR tree-optimization/43833
11648         * tree-vrp.c (range_int_cst_p): New.
11649         (range_int_cst_singleton_p): New.
11650         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
11651         when both operands are constants.  Use range_int_cst_p in
11652         BIT_IOR_EXPR case.
11653
11654 2010-04-26  Jan Hubicka  <jh@suse.cz>
11655
11656         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
11657
11658 2010-04-26  Richard Guenther  <rguenther@suse.de>
11659
11660         PR lto/43080
11661         * gimple.c (gimple_decl_printable_name): Deal gracefully
11662         with a NULL DECL_NAME.
11663
11664 2010-04-26  Richard Guenther  <rguenther@suse.de>
11665
11666         PR lto/42425
11667         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
11668         if emitting debug information and it is either a function
11669         or a namespace decl.
11670
11671 2010-04-26  Ira Rosen  <irar@il.ibm.com>
11672
11673         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
11674         determine if the statement is vectorizable, and a macro to access it.
11675         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11676         Skip statements that can't be vectorized. If the analysis fails,
11677         mark the statement as unvectorizable if vectorizing basic block.
11678         (vect_compute_data_refs_alignment): Likewise.
11679         (vect_verify_datarefs_alignment): Skip statements marked as
11680         unvectorizable. Add print.
11681         (vect_analyze_group_access): Skip statements that can't be
11682         vectorized. If the analysis fails, mark the statement as
11683         unvectorizable if vectorizing basic block.
11684         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
11685         * tree-vect-stmts.c (vectorizable_store): Fix the number of
11686         generated stmts for SLP.
11687         (new_stmt_vec_info): Initialize the new field.
11688         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
11689         statements marked as unvectorizable.
11690
11691 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
11692
11693         * c-common.c (flag_isoc1x): New.
11694         (flag_isoc99): Update comment.
11695         * c-common.h (flag_isoc1x): New.
11696         (flag_isoc99): Update comment.
11697         * c-cppbuiltin.c (builtin_define_float_constants): Also define
11698         __<type>_DECIMAL_DIG__.
11699         * c-opts.c (set_std_c1x): New.
11700         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
11701         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
11702         * c.opt (-std=c1x, -std=gnu1x): New options.
11703         * doc/cpp.texi: Mention -std=c1x.
11704         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
11705         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
11706         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
11707         * doc/standards.texi: Mention C1X.
11708         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
11709         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
11710         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
11711         Define for C1X.
11712
11713 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
11714
11715         * config/i386/gmon-sol2.c (_mcleanup): Change format string
11716         placeholder from 0x%x to %#x.
11717         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11718         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11719         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11720         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11721         * config/i386/i386.c (ix86_target_string): Ditto.
11722         (output_pic_addr_const): Ditto.
11723         (print_operand): Ditto.
11724
11725 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
11726
11727         * combine.c (find_split_point): Add third argument.  Use it
11728         to find nested multiply-accumulate instructions.  Adjust calls.
11729         (try_combine): Adjust call to find_split_point.
11730
11731 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
11732
11733         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
11734
11735 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
11736
11737         PR tree-optimization/41442
11738         * fold-const.c (merge_truthop_with_opposite_arm): New function.
11739         (fold_binary_loc): Call it.
11740
11741 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11742
11743         * toplev.c (general_init): Set default for fdiagnostics-show-option.
11744         * opts.c (common_handle_option): Allow disabling it.
11745         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
11746
11747 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
11748
11749         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
11750         between modes if both types are integral.
11751
11752 2010-04-23  Richard Guenther  <rguenther@suse.de>
11753
11754         PR tree-optimization/43572
11755         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
11756
11757 2010-04-23  Richard Guenther  <rguenther@suse.de>
11758
11759         PR lto/43455
11760         * tree-inline.c (tree_can_inline_p): Also check compatibility
11761         of return types.
11762
11763 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11764
11765         PR tree-optimization/43846
11766         * tree-sra.c (struct access): New flag grp_assignment_read.
11767         (build_accesses_from_assign): Set grp_assignment_read.
11768         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
11769         (enum mark_read_status): New type.
11770         (analyze_access_subtree): Propagate grp_assignment_read, create
11771         accesses also if both direct_read and root->grp_assignment_read.
11772
11773 2010-04-23  Martin Jambor  <mjambor@suse.cz>
11774
11775         PR middle-end/43835
11776         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
11777         function does not have type attributes.
11778
11779 2010-04-23  Richard Guenther  <rguenther@suse.de>
11780
11781         PR lto/42653
11782         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
11783         of FUNCTION_DECLs.
11784
11785 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11786
11787         * sese.h (create_if_region_on_edge): Remove.
11788
11789         * sese.c (create_if_region_on_edge): Make static.
11790
11791         * tree-inline.c: Do not include ggc.h.
11792
11793         * expr.c: Do not include ggc.h.
11794
11795         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
11796         dependencies.
11797
11798 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
11799
11800         PR target/43744
11801         * config/sh/sh.c (find_barrier): Don't emit a constant pool
11802         in the middle of insns for casesi_worker_2.
11803
11804 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
11805
11806         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
11807
11808 2010-04-22  Ira Rosen  <irar@il.ibm.com>
11809
11810         PR tree-optimization/43842
11811         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
11812         loop unrolling in update of exit phis. Fix comment.
11813         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
11814         least two reduction statements in the loop before starting SLP
11815         analysis.
11816
11817 2010-04-22  Nick Clifton  <nickc@redhat.com>
11818
11819         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
11820
11821 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
11822
11823         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
11824         to simplify a + ~a.
11825
11826 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11827
11828         * tree-parloops.c (loop_parallel_p): New argument
11829         parloop_obstack.  Pass it down.
11830         (parallelize_loops): New variable parloop_obstack.  Initialize it,
11831         pass it down, free it.
11832
11833         * tree-loop-linear.c (linear_transform_loops): Pass down
11834         lambda_obstack.
11835
11836         * tree-data-ref.h (lambda_compute_access_matrices): New argument
11837         of type struct obstack *.
11838
11839         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
11840         scratch_obstack.  Initialize it, pass down, free it.
11841
11842         * lambda.h (lambda_loop_new): Remove.
11843         (lambda_matrix_new, lambda_matrix_inverse)
11844         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
11845         argument of type struct obstack *.
11846
11847         * lambda-trans.c (lambda_trans_matrix_new): New argument
11848         lambda_obstack.  Pass it down, use obstack allocation for ret.
11849         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
11850         it down.
11851
11852         * lambda-mat.c (lambda_matrix_get_column)
11853         (lambda_matrix_project_to_null): Remove.
11854         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
11855         allocation for mat.
11856         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
11857         lambda_obstack.
11858
11859         * lambda-code.c (lambda_loop_new): New function.
11860         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
11861         (lambda_compute_auxillary_space, lambda_compute_target_space)
11862         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
11863         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
11864         (build_access_matrix): New argument lambda_obstack.  Use obstack
11865         allocation for am.
11866         (lambda_compute_step_signs, lambda_compute_access_matrices): New
11867         argument lambda_obstack.  Pass it down.
11868
11869 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11870
11871         * optabs.h (expand_widening_mult): Declare.
11872
11873 2010-04-22  Richard Guenther  <rguenther@suse.de>
11874
11875         PR tree-optimization/43845
11876         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
11877         lookup the CALL_EXPR function and arguments.
11878
11879 2010-04-22  Nick Clifton  <nickc@redhat.com>
11880
11881         * config/stormy16/stormy16.c
11882         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
11883         * config/stormy16/stormy16.h: Tidy up formatting.
11884         (DONT_USE_BUILTIN_SETJMP): Remove definition.
11885         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
11886         (ineqbranchsi): Delete pattern.
11887         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
11888         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
11889         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11890         stormy16-lib2-ucmpsi2.c.
11891
11892 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11893
11894         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
11895         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
11896         extra set merge_set_noclobber, and use it to relax the final test
11897         slightly.
11898         * df.h (df_simulate_find_noclobber_defs): Declare.
11899         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
11900         conditional defs.
11901         (df_simulate_find_noclobber_defs): New function.
11902
11903 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
11904
11905         * config/i386/i386.md: Use {} around multi-line preparation statements.
11906
11907 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11908
11909         * c-tree.h (push_init_level, pop_init_level, set_init_index)
11910         (process_init_element): New argument of type struct obstack *.
11911
11912         * c-typeck.c (push_init_level, pop_init_level, set_designator)
11913         (set_init_index, set_init_label, set_nonincremental_init)
11914         (set_nonincremental_init_from_string, find_init_member)
11915         (output_init_element, output_pending_init_elements)
11916         (process_init_element): New argument braced_init_obstack.  Pass it
11917         down.
11918         (push_range_stack, add_pending_init): New argument
11919         braced_init_obstack.  Use obstack allocation.
11920
11921         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11922         braced_init_obstack.  Pass it down.
11923         (c_parser_braced_init): New variables ret, braced_init_obstack.
11924         Initialize obstack, pass it down and finally free it.
11925
11926 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11927
11928         PR middle-end/29274
11929         * tree-pass.h (pass_optimize_widening_mul): Declare.
11930         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11931         gate_optimize_widening_mul): New static functions.
11932         (pass_optimize_widening_mul): New.
11933         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11934         <case MULT_EXPR>: Remove support for widening multiplies.
11935         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11936         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11937         simplify_gen_unary rather than directly building extensions.
11938         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11939         WIDEN_MULT_EXPR.
11940         * expmed.c (expand_widening_mult): New function.
11941         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11942
11943 2010-04-21  Jan Hubicka  <jh@suse.cz>
11944
11945         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11946         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11947         * lto-wpa-fixup.c: Remove.
11948         * Makefile.in (lto-wpa-fixup.o): Remove.
11949         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11950         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11951         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11952
11953 2010-04-21  Jan Hubicka  <jh@suse.cz>
11954
11955         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11956         add write_optimization_summary, read_optimization_summary.
11957         (ipa_write_summaries_of_cgraph_node_set): Remove.
11958         (ipa_write_optimization_summaries): Declare.
11959         (ipa_read_optimization_summaries): Declare.
11960         * ipa-cp.c (pass_ipa_cp): Update.
11961         * ipa-reference.c (pass_ipa_reference): Update.
11962         * ipa-pure-const.c (pass_ipa_pure_const): Update.
11963         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11964         Update.
11965         * ipa-inline.c (pass_ipa_inline): Update.
11966         * ipa.c (pass_ipa_whole_program): Update.
11967         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11968         * passes.c (ipa_write_summaries_1): Do not test wpa.
11969         (ipa_write_optimization_summaries_1): New.
11970         (ipa_write_optimization_summaries): New.
11971         (ipa_read_summaries): Do not test ltrans.
11972         (ipa_read_optimization_summaries_1): New.
11973         (ipa_read_optimization_summaries): New.
11974
11975 2010-04-21  Jan Hubicka  <jh@suse.cz>
11976
11977         * lto-cgraph.c (lto_output_node): Do not output comdat groups
11978         for boundary nodes.
11979         (output_cgraph): Do not arrange comdat groups for boundary nodes.
11980
11981 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11982
11983         PR debug/40040
11984         * dwarf2out.c (add_name_and_src_coords_attributes): Add
11985         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11986
11987 2010-04-21  Jan Hubicka  <jh@suse.cz>
11988
11989         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11990
11991 2010-04-21  Jan Hubicka  <jh@suse.cz>
11992
11993         * varpool.c (decide_is_variable_needed): Variable is always needed
11994         during ltrans.
11995
11996 2010-04-21  Jan Hubicka  <jh@suse.cz>
11997
11998         * opts.c (decode_options): Enable pure-const pass for whopr.
11999
12000 2010-04-21  Jan Hubicka  <jh@suse.cz>
12001
12002         * cgraph.c (dump_cgraph_node): Dump also assembler name.
12003         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12004         at WPA dumping.
12005         (cgraph_decide_inlining): Do not expect callee to be removed in all
12006         cases.
12007
12008 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
12009
12010         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12011
12012 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12013
12014         * config/i386/i386.md (x86_shrd): Add athlon_decode and
12015         amdfam10_decode attributes.
12016
12017 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12018
12019         PR middle-end/43570
12020         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12021         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12022         (lower_copyprivate_clauses): Use private var in outer
12023         context instead of original var.  Make sure the types
12024         are correct for VLAs.
12025
12026 2010-04-21  Richard Guenther  <rguenther@suse.de>
12027
12028         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12029         to non-pointer objects.
12030
12031 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12032
12033         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
12034         last chain entry if it starts with the still current label.
12035         (add_location_or_const_value_attribute): Check that
12036         loc_list->first->next is NULL instead of comparing ->first with ->last.
12037         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12038         to add_var_loc_to_decl.
12039
12040         * dwarf2out.c (output_call_frame_info): For dw_cie_version
12041         >= 4 add also address size and segment size fields into CIE header.
12042
12043         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12044         long as address size is the same as sizeof (void *) and
12045         segment size is 0.
12046         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
12047         address size or segment size is unexpected, return DW_EH_PE_omit.
12048         (classify_object_over_fdes): If get_cie_encoding returned
12049         DW_EH_PE_omit, return -1.
12050         (init_object): If classify_object_over_fdes returned -1,
12051         pretend there were no FDEs at all.
12052
12053 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12054
12055         * config/i386/i386.md (bswap<mode>2): Macroize expander from
12056         bswap{si,di}2 using SWI48 mode iterator.
12057         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12058         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
12059         set modrm attribute of bswap insn to 0 and remove length attribute.
12060         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12061         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
12062         set mode attribute to <MODE> and remove length attribute.
12063
12064 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
12065
12066         PR rtl-optimization/43520
12067         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12068         zero available registers.
12069
12070 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12071
12072         * builtins.c (fold_builtin_cproj): Fold more cases.
12073
12074 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12075
12076         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12077         (fold_builtin_1): Fold builtin cproj.
12078         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12079         Use ATTR_CONST_NOTHROW_LIST.
12080
12081 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
12082
12083         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12084         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
12085         ffsi2_no_cmove for !TARGET_CMOVE.
12086         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
12087         (ffssi2): Remove expander.
12088         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12089         mode iterator.
12090         (ctz<mode>2): Ditto from ctz{si,di}2.
12091         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12092         mode iterator.
12093         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12094         mode iterator.
12095
12096 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12097
12098         * dwarf2out.c (AT_linkage_name): Define.
12099         (clone_as_declaration): Handle DW_AT_linkage_name.
12100         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12101         of DW_AT_MIPS_linkage_name.
12102         (move_linkage_attr): Likewise.
12103         (dwarf2out_finish): Likewise.
12104
12105 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
12106
12107         PR middle-end/41952
12108         * fold-const.c (fold_comparison): New folding rule.
12109
12110 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
12111
12112         * double-int.h (double_int_setbit): Declare.
12113         * double-int.c (double_int_setbit): New function.
12114         * rtl.h (immed_double_int_const): Declare.
12115         * emit-rtl.c (immed_double_int_const): New function.
12116         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12117         and immed_double_int_const functions.
12118         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12119         expand_copysign_bit):  (Ditto.).
12120         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12121         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12122         * dojump.c (prefer_and_bit_test): (Ditto.).
12123         * expr.c (convert_modes, reduce_to_bit_field_precision,
12124         const_vector_from_tree): (Ditto.).
12125         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12126
12127 2010-04-20  Jan Hubicka  <jh@suse.cz>
12128
12129         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12130         (dump_cgraph_node): Dump new flags.
12131         * cgraph.h (struct cgraph_node): Add flags
12132         reachable_from_other_partition and in_other_partition.
12133         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12134         other partition can not be removed.
12135         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12136         the other partition must be output; silence sanity checking on
12137         leaking functions bodies from other paritition.
12138         * lto-cgraph.c (reachable_from_other_partition_p): New function.
12139         (lto_output_node): Output new flags; do not sanity check that inline
12140         clones are output; drop lto_forced_extern_inline_p code; do not mock
12141         visibility flags at partition boundaries.
12142         (add_node_to): New function.
12143         (output_cgraph): Use it to sort functions so masters appear before
12144         clones.
12145         (input_overwrite_node): Input new flags.
12146         * passes.c (ipa_write_summaries): Do not call
12147         lto_new_extern_inline_states.
12148         * lto-section-out.c (forced_extern_inline,
12149         lto_new_extern_inline_states lto_delete_extern_inline_states,
12150         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12151         * lto-streamer.h (lto_new_extern_inline_states,
12152         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12153         lto_forced_extern_inline_p): Kill.
12154
12155 2010-04-20  Richard Guenther  <rguenther@suse.de>
12156
12157         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12158         from vars that can have pointers.
12159         (process_constraint): Dump useless constraints.
12160
12161 2010-04-20  Richard Guenther  <rguenther@suse.de>
12162
12163         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12164         (dump_sa_points_to_info): Remove asserts.
12165         (init_base_vars): nothing_id isn't an escape point nor does it
12166         have pointers.
12167
12168 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12169
12170         * tree.h (TYPE_REF_IS_RVALUE): Define.
12171         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12172         should_move_die_to_comdat, prune_unused_types_walk): Handle
12173         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12174         (modified_type_die, gen_reference_type_die): Emit
12175         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12176         if TYPE_REF_IS_RVALUE and -gdwarf-4.
12177
12178 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12179
12180         PR target/43635
12181         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12182         calls for -fpic -m31 if they have been sibcall optimized.
12183
12184 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
12185
12186         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12187         ar.lc fixed and call-used.
12188
12189         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12190
12191 2010-04-19  Jan Hubicka  <jh@suse.cz>
12192
12193         * opts.c (decode_options): Disable whpr incompatible passes.
12194         * lto/lto.c (lto_1_to_1_map): Skip clones.
12195         (read_cgraph_and_symbols): Do not mark everything as needed.
12196         (do_whole_program_analysis): Do map only after optimizing;
12197         set proper cgraph_state; use passmanager.
12198
12199 2010-04-19  DJ Delorie  <dj@redhat.com>
12200
12201         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12202         POINTER_PLUS_EXPR and fix them.
12203
12204 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
12205
12206         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12207         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12208         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12209         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12210         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12211         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12212         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12213         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12214         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12215         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12216         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12217
12218 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12219
12220         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12221         (check_cond_move_block): Likewise.
12222         (cond_move_process_if_block): Likewise.
12223         (noce_find_if_block): Improve formatting.
12224         (find_if_header): Pass 0 to memset and tweak conditions.
12225         (cond_exec_find_if_block): Fix long lines and tweak conditions.
12226
12227 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12228
12229         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12230         for -gdwarf-4.
12231
12232         PR middle-end/43337
12233         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12234         with non-local decl doesn't need chain.
12235
12236 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
12237
12238         * ira-color.c (allocno_reload_assign): Avoid accumulating
12239         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12240
12241 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12242
12243         * gimple.h (create_tmp_reg): Declare.
12244         * gimplify.c (create_tmp_reg): New function.
12245         (gimplify_return_expr): Use create_tmp_reg.
12246         (gimplify_omp_atomic): Likewise.
12247         (gimple_regimplify_operands): Likewise.
12248         * tree-dfa.c (make_rename_temp): Likewise.
12249         * tree-predcom.c (predcom_tmp_var): Likewise.
12250         (reassociate_to_the_same_stmt): Likewise.
12251         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12252         (get_replaced_param_substitute): Likewise.
12253         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12254         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12255         * tree-ssa-pre.c (get_representative_for): Likewise.
12256         (create_expression_by_pieces): Likewise.
12257         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12258         (create_tailcall_accumulator): Likewise.
12259
12260 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12261
12262         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12263         new_stmt.
12264         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12265
12266 2010-04-19  Richard Guenther  <rguenther@suse.de>
12267
12268         PR tree-optimization/43796
12269         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12270         from SCEV in the lattice.
12271         (vrp_visit_phi_node): Dump change.
12272
12273 2010-04-19  Richard Guenther  <rguenther@suse.de>
12274
12275         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12276         * configure: Re-generated.
12277
12278 2010-04-19  Richard Guenther  <rguenther@suse.de>
12279
12280         PR tree-optimization/43783
12281         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12282         constant ARRAY_REF operands two and three if possible.
12283
12284 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
12285
12286         PR target/43766
12287         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12288
12289 2010-04-19  Jie Zhang  <jie@codesourcery.com>
12290
12291         PR target/43662
12292         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12293
12294 2010-04-19  Ira Rosen  <irar@il.ibm.com>
12295
12296         PR tree-optimization/37027
12297         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12298         and macro to access it.
12299         (vectorizable_reduction): Add argument.
12300         (vect_get_slp_defs): Likewise.
12301         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12302         statements for possible use in SLP.
12303         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12304         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12305         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12306         add new argument.
12307         (vectorizable_reduction): Likewise.
12308         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12309         vect_get_slp_defs.
12310         (vectorizable_type_demotion, vectorizable_type_promotion,
12311         vectorizable_store): Likewise.
12312         (vect_analyze_stmt): Update call to vectorizable_reduction.
12313         (vect_transform_stmt): Likewise.
12314         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12315         (vect_build_slp_tree): Fix indentation. Check that there are no loads
12316         from different interleaving chains in same node.
12317         (vect_slp_rearrange_stmts): New function.
12318         (vect_supported_load_permutation_p): Allow load permutations for
12319         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12320         inside SLP nodes if necessary.
12321         (vect_analyze_slp_instance): Handle reductions.
12322         (vect_analyze_slp): Try to build SLP instances originating from groups
12323         of reductions.
12324         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12325         (vect_get_constant_vectors): Create initial vectors for reductions
12326         according to reduction code. Add new argument.
12327         (vect_get_slp_defs): Add new argument, pass it to
12328         vect_get_constant_vectors.
12329         (vect_schedule_slp_instance): Remove SLP tree root statements.
12330
12331 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12332
12333         * tree.h (ENUM_IS_SCOPED): Define.
12334         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12335         for ENUM_IS_SCOPED enums.
12336
12337 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12338
12339         * fold-const.c (fold_comparison): Use ssizetype.
12340         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12341         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12342         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12343         * tree-object-size.c (compute_object_sizes): Use size_type_node.
12344
12345         * tree.h (initialize_sizetypes): Remove parameter.
12346         (build_common_tree_nodes): Remove second parameter.
12347         * stor-layout.c (initialize_sizetypes): Remove parameter.
12348         Always create an unsigned type.
12349         (set_sizetype): Assert that the passed type is unsigned and simplify.
12350         * tree.c (build_common_tree_nodes): Remove second parameter.
12351         Adjust call to initialize_sizetypes.
12352         * c-decl.c (c_init_decl_processing): Remove second argument in call to
12353         build_common_tree_nodes.
12354
12355 2010-04-18  Matthias Klose  <doko@ubuntu.com>
12356
12357         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12358
12359 2010-04-18  Ira Rosen  <irar@il.ibm.com>
12360
12361         PR tree-optimization/43771
12362         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12363         load permutation doesn't have gaps.
12364
12365 2010-04-18  Jan Hubicka  <jh@suse.cz>
12366
12367         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12368         (sse_prologue_save_insn expander): Use new pattern.
12369         (sse_prologue_save_insn1): New pattern and splitter.
12370         (sse_prologue_save_insn): Update to deal also with 64bit aligned
12371         blocks.
12372         * i386.c (setup_incoming_varargs_64): Do not compute jump
12373         destination here.
12374         (ix86_gimplify_va_arg): Update alignment needed.
12375         (ix86_local_alignment): Do not align all local arrays to 128bit.
12376
12377 2010-04-17  Jan Hubicka  <jh@suse.cz>
12378
12379         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12380
12381 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12382
12383         * arm.md (negdi2): Remove redundant code to force values into a
12384         register.
12385
12386 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12387
12388         * arm/bpabi.S: Add EABI alignment attributes to objects.
12389         * arm/bpabi-v6m.S: Likewise.
12390         * arm/crti.asm: Likewise.
12391         * arm/crtn.asm: Likewise.
12392         * arm/lib1funcs.asm: Likewise.
12393         * arm/libunwind.S: Likewise.
12394
12395 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12396
12397         * arm-protos.h (tune_params): New structure.
12398         * arm.c (current_tune): New variable.
12399         (arm_constant_limit): Delete.
12400         (struct processors): Add pointer to the tune parameters.
12401         (arm_slowmul_tune): New tuning option.
12402         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12403         (all_cores): Adjust to pick up the tuning model.
12404         (arm_constant_limit): New function.
12405         (arm_override_options): Select the appropriate tuning model.  Delete
12406         initialization of arm_const_limit.
12407         (arm_split_constant): Use the new constant-limit model.
12408         (arm_rtx_costs): Pick up the current tuning model.
12409         * arm.md (is_strongarm, is_xscale): Delete.
12410         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12411         for Xscale variant architectures.
12412         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12413
12414 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12415
12416         * config/arm/arm.c (arm_gen_constant): Remove unused variable
12417         can_shift.
12418         (arm_rtx_costs_1): Remove unused variable extra_cost.
12419         (arm_unwind_emit_set): Use variable offset.
12420         (thumb1_output_casesi): Remove unused variable flags.
12421
12422 2010-04-16  Jeff Law  <law@redhat.com>
12423
12424         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12425         needing assignment rather than doing a two-phase assignment.  Remove
12426         unused variable 'm'.
12427
12428 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12429
12430         PR bootstrap/43767
12431         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12432
12433 2010-04-16  Doug Kwan  <dougkwan@google.com>
12434
12435         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12436         (next_operand_entry_id): New static variable.
12437         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12438         (add_to_ops_vec): Assigned unique ID to operand entry.
12439         (struct oecount_s): New field ID.
12440         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12441         (undistribute_ops_list): Assign unique IDs to oecounts.
12442         (init_reassoc): reset next_operand_entry_id.
12443
12444 2010-04-16  Doug Kwan  <dougkwan@google.com>
12445
12446         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12447         missing left parenthesis.
12448
12449 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
12450
12451         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12452         *btdi_rex64 using SWI48 mode iterator.
12453         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12454         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12455         *jcc_btdi_mask_rex64.
12456
12457 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
12458
12459         * double-int.h (tree_to_double_int): Convert to macro.
12460         * double-int.c (tree_to_double_int): Remove.
12461
12462 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12463
12464         PR debug/43762
12465         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12466         with want_address 2 and in case a single element list might be
12467         possible, call it again with want_address 0.
12468
12469 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12470
12471         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12472         case 'W' print operands for HI mode.
12473         * config/h8300/h8300.h (Y0, Y2) : New constraints.
12474         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12475         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12476         * config/h8300/predicate.md (bit_register_indirect_operand): New.
12477
12478         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12479
12480         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12481         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12482         #xx:3 and #xx:4 mode.
12483
12484         * config/h8300/h8300.md (inverted load with HImode dest): Add
12485         support for H8300SX.
12486
12487         * config/h8300/predicate.md (bit_operand): Allow immediate values that
12488         satisfy 'U' constraint.
12489
12490 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12491
12492         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12493         * configure: Regenerate.
12494         * config.in: Regenerate.
12495         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12496         works.
12497
12498 2010-04-16  Richard Guenther  <rguenther@suse.de>
12499
12500         * tree.h (struct tree_decl_minimal): Move pt_uid ...
12501         (struct tree_decl_common): ... here.
12502         (DECL_PT_UID): Adjust.
12503         (SET_DECL_PT_UID): Likewise.
12504         (DECL_PT_UID_SET_P): Likewise.
12505
12506 2010-04-16  Richard Guenther  <rguenther@suse.de>
12507
12508         PR tree-optimization/43572
12509         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12510         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12511         * tree-flow.h (is_call_clobbered): Remove.
12512         * tree-flow-inline.h (is_call_clobbered): Likewise.
12513         * tree-dfa.c (dump_variable): Do not dump call clobber state.
12514         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12515         (execute_return_slot_opt): Adjust.
12516         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12517         check for call clobbered vars here.
12518         (find_tail_calls): Move tailcall verification to the
12519         proper place.
12520
12521 2010-04-16  Diego Novillo  <dnovillo@google.com>
12522
12523         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12524
12525 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12526
12527         PR target/40603
12528         * config/arm/arm.md (cbranchqi4): New pattern.
12529         * config/arm/predicates.md (const0_operand,
12530         cbranchqi4_comparison_operator): New predicates.
12531
12532 2010-04-16  Richard Guenther  <rguenther@suse.de>
12533
12534         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12535         (dump_gimple_stmt): Likewise.
12536
12537 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12538
12539         * recog.h (struct recog_data): New field is_operator.
12540         (struct insn_operand_data): New field is_operator.
12541         * recog.c (extract_insn): Set recog_data.is_operator.
12542         * genoutput.c (output_operand_data): Emit code to set the
12543         is_operator field.
12544         * reload.c (find_reloads): Use it rather than testing for an
12545         empty constraint string.
12546
12547         PR target/41514
12548         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12549         If the previous insn is a cbranchsi4_insn with the same arguments,
12550         omit the compare instruction.
12551
12552         * config/arm/arm.md (addsi3_cbranch): If destination is a high
12553         register, inputs must be low registers and we need a low register
12554         scratch.  Handle alternative 2 like alternative 3.
12555
12556 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12557
12558         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12559         don't call get_addr on both.  If one expression is a VALUE and
12560         the other a REG, check VALUE's locs if the REG isn't among them.
12561
12562 2010-04-16  Christian Bruel  <christian.bruel@st.com>
12563
12564         * config/sh/sh.h (sh_frame_pointer_required): New function.
12565         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12566         (flag_omit_frame_pointer) Set.
12567         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12568         (rounded_frame_size): Adjust size with outgoing_args_size.
12569         (sh_set_return_address): Must return from stack pointer.
12570         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12571         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12572         (ACCUMULATE_OUTGOING_ARGS): Define.
12573         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12574         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12575
12576 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12577
12578         PR target/43471
12579         * config/sh/sh.c (sh_legitimize_reload_address): Use
12580         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12581         Remove a unneeded check for offset_base.
12582
12583 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12584
12585         * configure: Regenerated.
12586
12587 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12588
12589         * config/s390/s390.c (s390_call_save_register_used): Switch back
12590         to HARD_REGNO_NREGS.
12591
12592 2010-04-15  Richard Guenther  <rguenther@suse.de>
12593
12594         * alias.c (alias_set_subset_of): Handle alias-set zero
12595         child properly.
12596
12597 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
12598             Julian Brown  <julian@codesourcery.com>
12599
12600         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12601         alternatives according to use of high and low regs.
12602         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12603         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12604         optimizing for size on Thumb-2.
12605
12606 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
12607
12608         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12609
12610 2010-04-15  Richard Guenther  <rguenther@suse.de>
12611
12612         * tree-ssa-structalias.c (struct variable_info): Add
12613         is_fn_info flag.
12614         (new_var_info): Initialize it.
12615         (dump_constraints): Support printing last added constraints.
12616         (debug_constraints): Adjust.
12617         (dump_constraint_graph): Likewise.
12618         (make_heapvar_for): Check for NULL cfun.
12619         (get_function_part_constraint): New function.
12620         (get_fi_for_callee): Likewise.
12621         (find_func_aliases): Properly implement IPA PTA constraints.
12622         (process_ipa_clobber): New function.
12623         (find_func_clobbers): Likewise.
12624         (insert_into_field_list_sorted): Remove.
12625         (create_function_info_for): Properly allocate vars for IPA mode.
12626         Do not use insert_into_field_list_sorted.
12627         (create_variable_info_for): Properly generate constraints for
12628         global vars in IPA mode.
12629         (dump_solution_for_var): Always dump the solution.
12630         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
12631         (find_what_var_points_to): Adjust.
12632         (pt_solution_set): Change.
12633         (pt_solution_ior_into): New function.
12634         (pt_solution_empty_p): Export.
12635         (pt_solution_includes_global): Adjust.
12636         (pt_solution_includes_1): Likewise.
12637         (pt_solutions_intersect_1): Likewise.
12638         (dump_sa_points_to_info): Check some invariants.
12639         (solve_constraints): Move constraint dumping ...
12640         (compute_points_to_sets): ... here.
12641         (ipa_pta_execute): ... and here.
12642         (compute_may_aliases): Do not re-compute points-to info
12643         locally if IPA info is available.
12644         (ipa_escaped_pt): New global var.
12645         (ipa_pta_execute): Properly implement IPA PTA.
12646         * tree-into-ssa.c (dump_decl_set): Support dumping
12647         decls not in referenced-vars.
12648         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
12649         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
12650         (dump_points_to_solution): Likewise.
12651         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
12652         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
12653         (remap_gimple_stmt): Reset call clobber/use information if necessary.
12654         (copy_decl_to_var): Copy DECL_PT_UID.
12655         (copy_result_decl_to_var): Likewise.
12656         * tree.c (make_node_stat): Initialize DECL_PT_UID.
12657         (copy_node_stat): Copy it.
12658         * tree.h (DECL_PT_UID): New macro.
12659         (SET_DECL_PT_UID): Likewise.
12660         (DECL_PT_UID_SET_P): Likewise.
12661         (struct tree_decl_minimal): Add pt_uid member.
12662         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
12663         (pt_solution_empty_p): Declare.
12664         (pt_solution_set): Adjust.
12665         (ipa_escaped_pt): Declare.
12666         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
12667         * gimple-pretty-print.c (pp_points_to_solution): New function.
12668         (dump_gimple_call): Dump call clobber/use information.
12669         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
12670         * tree-pass.h (TDF_ALIAS): New dump option.
12671         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
12672         * doc/invoke.texi (-fipa-pta): Update documentation.
12673
12674 2010-04-15  Richard Guenther  <rguenther@suse.de>
12675
12676         * Makefile.in (OBJS-common): Add gimple-fold.o.
12677         (gimple-fold.o): New rule.
12678         * tree.h (maybe_fold_offset_to_reference,
12679         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
12680         prototypes ...
12681         * gimple.h: ... here.
12682         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
12683         may_propagate_address_into_dereference): Move prototypes ...
12684         * gimple.h: ... here.
12685         * tree-ssa-ccp.c (get_symbol_constant_value,
12686         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
12687         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
12688         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
12689         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
12690         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
12691         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
12692         gimplify_and_update_call_from_tree): Move ...
12693         * gimple-fold.c: ... here.  New file.
12694         (ccp_fold_builtin): Rename to ...
12695         (gimple_fold_builtin): ... this.
12696         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
12697
12698 2010-04-15  Richard Guenther  <rguenther@suse.de>
12699
12700         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
12701         fit_double_type, force_fit_type_double, add_double_with_sign,
12702         neg_double, mul_double_with_sign, lshift_double, rshift_double,
12703         lrotate_double, rrotate_double, div_and_round_double): Move ...
12704         * double-int.c: ... here.
12705         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
12706         add_double, neg_double, mul_double_with_sign, mul_double,
12707         lshift_double, rshift_double, lrotate_double, rrotate_double,
12708         div_and_round_double): Move prototypes ...
12709         * double-int.h: ... here.
12710
12711 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
12712
12713         PR target/43742
12714         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
12715         matching constraints to ensure inputs match the output.
12716
12717 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12718
12719         PR target/43742
12720         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
12721         in an input-only operand.
12722
12723 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
12724
12725         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
12726         (double_int_not, double_int_lshift, double_int_rshift): Declare.
12727         (double_int_negative_p): Convert to static inline function.
12728         * double-int.c (double_int_lshift, double_int_lshift): New functions.
12729         (double_int_negative_p): Remove.
12730         * tree.h (lshift_double, rshift_double):
12731         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
12732         * fold-const.c (fold_convert_const_int_from_real,
12733         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
12734         (lshift_double): Change type of arith argument to bool.
12735         (rshift_double): Change type of arith argument to bool. Correct
12736         comment.
12737         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12738
12739 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
12740
12741         PR target/21803
12742         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
12743         at the start and end of the then/else blocks, and omit them from the
12744         conversion.
12745         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
12746         argument; all callers changed.  Pass zero to old_insns_match_p instead.
12747         (flow_find_head_matching_sequence): New function.
12748         (old_insns_match_p): Check REG_EH_REGION notes for calls.
12749         * basic-block.h (flow_find_cross_jump,
12750         flow_find_head_matching_sequence): Declare functions.
12751
12752 2010-04-14  Jason Merrill  <jason@redhat.com>
12753
12754         PR c++/36625
12755         * c-common.c (attribute_takes_identifier_p): New fn.
12756         * c-common.h: Declare it.
12757
12758 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12759
12760         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
12761         splitter condition.
12762         (*udivmod<mode>4): Ditto.
12763
12764 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12765
12766         * config/i386/i386.md (maxmin_int): Rename code attribute from
12767         maxminiprefix and update all users.
12768         (maxmin_float): Ditto from maxminfprefix.
12769         (logic): Ditto from logicprefix.
12770         (absneg_mnemonic): Ditto from absnegprefix.
12771         * config/i386/mmx.md: Update all users of maxminiprefix,
12772         maxminfprefix and logicprefix for rename.
12773         * config/i386/sse.md: Ditto.
12774         * config/i386/sync.md (sync_<code><mode>): Update for
12775         logicprefix rename.
12776
12777 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12778
12779         PR 42966
12780         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
12781         warnings converted to errors.
12782
12783 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12784
12785         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
12786         used insn_type variable.
12787         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
12788         to avoid set-but-not-used warning.
12789
12790 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12791
12792         * df-core.c (df_ref_debug): Change format string placeholder
12793         from 0x%x to %#x.
12794         * dwarf2asm.c (dw2_asm_output_data_raw,
12795         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
12796         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
12797         * dwarf2out.c (output_cfi, output_cfi_directive,
12798         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
12799         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
12800         Ditto.
12801         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
12802         * print-rtl.c (print_rtx): Ditto.
12803
12804 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12805
12806         PR middle-end/42694
12807         * builtins.c (expand_builtin_pow_root): New function to expand pow
12808         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
12809         series of sqrt and cbrt calls under -ffast-math.
12810         (expand_builtin_pow): Call it.
12811
12812 2010-04-14  Michael Matz  <matz@suse.de>
12813
12814         PR tree-optimization/42963
12815         * tree-cfg.c (touched_switch_bbs): New static variable.
12816         (group_case_labels_stmt): New function broken out from ...
12817         (group_case_labels): ... here, use the above.
12818         (start_recording_case_labels): Allocate touched_switch_bbs.
12819         (end_recording_case_labels): Deallocate it, call
12820         group_case_labels_stmt.
12821         (gimple_redirect_edge_and_branch): Remember index of affected BB.
12822
12823 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12824
12825         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
12826         from insn template.
12827
12828 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
12829
12830         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
12831
12832 2010-04-13  Jan Hubicka  <jh@suse.cz>
12833
12834         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
12835         of optimized out static functions.
12836         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
12837         cost computation.  Also sanity check for overflows.
12838         (update_caller_keys): Update cgraph_edge_badness call; properly
12839         update fibheap and sanity check that it is up to date.
12840         (add_new_edges_to_heap): Update cgraph_edge_badness.
12841         (cgraph_decide_inlining_of_small_function): Likewise;
12842         add sanity checking that badness in heap is up to date;
12843         improve dumping of reason; Update badness of calls to the
12844         offline copy of function currently inlined; dump badness
12845         of functions not inlined because of unit growth limits.
12846
12847 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12848
12849         PR middle-end/32628
12850         * c-common.c (pointer_int_sum): Disregard overflow that occured only
12851         because of sign-extension change when converting to sizetype here...
12852         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
12853
12854         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
12855         the folding to constants.  Remove redundant final conversion.
12856         (fold_binary) <associate>: Do not associate if the re-association of
12857         constants alone overflows.
12858         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
12859         to the end of the list.
12860         (multiple_of_p) <COND_EXPR>: New case.
12861
12862 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12863
12864         * opt-functions.awk (opt_sanitized_name): New.
12865         (opt_enum): New.
12866         * optc-gen.awk: Use it
12867         * opth-gen.awk: Use it.
12868
12869 2010-04-13  Martin Jambor  <mjambor@suse.cz>
12870
12871         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
12872         (sra_modify_assign): Delete stmts loading dead data even if racc has no
12873         children.  Call replace_uses_with_default_def_ssa_name to handle
12874         SSA_NAES on lhs.
12875
12876 2010-04-13  Michael Matz  <matz@suse.de>
12877
12878         PR middle-end/43730
12879         * builtins.c (expand_builtin_interclass_mathfn): Also create
12880         a register if the predicate doesn't match.
12881
12882 2010-04-13  Diego Novillo  <dnovillo@google.com>
12883
12884         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
12885         * c-pch.c: Include timevar.h.
12886         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
12887         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
12888         * ggc-common.c: Include timevar.h.
12889         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
12890         * timevar.def (TV_PCH_SAVE): Define.
12891         (TV_PCH_CPP_SAVE): Define.
12892         (TV_PCH_PTR_REALLOC): Define.
12893         (TV_PCH_PTR_SORT): Define.
12894         (TV_PCH_RESTORE): Define.
12895         (TV_PCH_CPP_RESTORE): Define.
12896
12897 2010-04-13  Michael Matz  <matz@suse.de>
12898
12899         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
12900         into MINUS_EXPRs.
12901         (can_reassociate_p): New function.
12902         (break_up_subtract_bb, reassociate_bb): Use it.
12903
12904 2010-04-13  Richard Guenther  <rguenther@suse.de>
12905
12906         PR bootstrap/43737
12907         * builtins.c (c_readstr): Fix assert.
12908
12909 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
12910
12911         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12912         when generating cltd insn.
12913
12914         (*ashl<mode>3_1): Remove special handling for register operand 2.
12915         (*ashlsi3_1_zext): Ditto.
12916         (*ashlhi3_1): Ditto.
12917         (*ashlhi3_1_lea): Ditto.
12918         (*ashlqi3_1): Ditto.
12919         (*ashlqi3_1_lea): Ditto.
12920         (*<shiftrt_insn><mode>3_1): Ditto.
12921         (*<shiftrt_insn>si3_1_zext): Ditto.
12922         (*<shiftrt_insn>qi3_1_slp): Ditto.
12923         (*<rotate_insn><mode>3_1): Ditto.
12924         (*<rotate_insn>si3_1_zext): Ditto.
12925         (*<rotate_insn>qi3_1_slp): Ditto.
12926
12927 2010-04-13  Richard Guenther  <rguenther@suse.de>
12928
12929         * tree-ssa-structalias.c (callused_id): Remove.
12930         (call_stmt_vars): New.
12931         (get_call_vi): Likewise.
12932         (lookup_call_use_vi): Likewise.
12933         (lookup_call_clobber_vi): Likewise.
12934         (get_call_use_vi): Likewise.
12935         (get_call_clobber_vi): Likewise.
12936         (make_transitive_closure_constraints): Likewise.
12937         (handle_const_call): Adjust to do per-call call-used handling.
12938         (handle_pure_call): Likewise.
12939         (find_what_var_points_to): Remove general callused handling.
12940         (init_base_vars): Likewise.
12941         (init_alias_vars): Initialize call_stmt_vars.
12942         (compute_points_to_sets): Process call-used and call-clobbered
12943         vars for call statements.
12944         (delete_points_to_sets): Free call_stmt_vars.
12945
12946 2010-04-13  Richard Guenther  <rguenther@suse.de>
12947
12948         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12949         Only add RW dependence for dependence distance zero.
12950         Adjust maximal vectorization factor according to dependences.
12951         Move alignment handling ...
12952         (vect_find_same_alignment_drs): ... here.  New function.
12953         (vect_analyze_data_ref_dependences): Adjust.
12954         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12955         (vect_analyze_data_refs): Adjust minimal vectorization factor
12956         according to data references.
12957         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12958         dependences before determining the vectorization factor.
12959         Analyze alignment after determining the vectorization factor.
12960         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12961         dependences before alignment.
12962         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12963         Adjust prototype.
12964         (vect_analyze_data_refs): Likewise.
12965         (MAX_VECTORIZATION_FACTOR): New define.
12966
12967 2010-04-13  Duncan Sands  <baldrick@free.fr>
12968
12969         * except.h (lang_eh_type_covers): Remove.
12970         * except.c (lang_eh_type_covers): Likewise.
12971
12972 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12973             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12974
12975         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12976         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12977         UNITS_PER_LONG where it is ABI relevant.
12978         (s390_return_addr_rtx): Likewise.
12979         (s390_back_chain_rtx): Likewise.
12980         (s390_frame_area): Likewise.
12981         (s390_frame_info): Likewise.
12982         (s390_initial_elimination_offset): Likewise.
12983         (save_gprs): Likewise.
12984         (s390_emit_prologue): Likewise.
12985         (s390_emit_epilogue): Likewise.
12986         (s390_function_arg_advance): Likewise.
12987         (s390_function_arg): Likewise.
12988         (s390_va_start): Likewise.
12989         (s390_gimplify_va_arg): Likewise.
12990         (s390_function_profiler): Likewise.
12991         (s390_optimize_prologue): Likewise.
12992         (s390_rtx_costs): Likewise.
12993         (s390_secondary_reload): Likewise.
12994         (s390_promote_function_mode): Likewise.
12995         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12996         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12997         registers available.
12998         (s390_unwind_word_mode): New function.
12999         (s390_function_value): Split 64 bit values into register pair if
13000         used as return value.
13001         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13002         function call parameters.  Handle parallels.
13003         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13004         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13005         (DWARF_CIE_DATA_ALIGNMENT): New macro.
13006         (s390_expand_setmem): Remove unused variable src_addr.
13007         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13008         deal with 64 bit registers.
13009         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13010         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13011         (UNITS_PER_LONG): New macro.
13012         * libjava/include/s390-signal.h: Define extended ucontext
13013         structure containing the upper halfs of the 64 bit registers.
13014
13015 2010-04-13  Simon Baldwin  <simonb@google.com>
13016
13017         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13018
13019 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13020
13021         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13022         rvalue on the RHS if the LHS is of a non-renamable type.
13023         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13024
13025 2010-04-13  Matthias Klose  <doko@ubuntu.com>
13026
13027         * gcc.c (cc1_options): Handle -iplugindir before processing
13028         the cc1 spec. Only add -iplugindir once.
13029         (cpp_unique_options): Add -iplugindir option if -fplugin* options
13030         found.
13031         * common.opt (iplugindir): Remove `Separate' property, initialize.
13032         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13033         option.
13034         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13035         (distclean): Remove plugin dir.
13036         * doc/invoke.texi: Document -iplugindir.
13037
13038 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
13039
13040         * doc/plugins.texi (Loading Plugins): Document short
13041         -fplugin=foo option.
13042         (Plugin API): Mention default_plugin_dir_name function.
13043
13044         * gcc.c (find_file_spec_function): Add new declaration.
13045         (static_spec_func): Use it for "find-file".
13046         (find_file_spec_function): Add new function.
13047         (cc1_options): Add -iplugindir option if -fplugin* options found.
13048
13049         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13050
13051         * plugin.c (add_new_plugin): Updated comment, and handle short
13052         plugin name.
13053         (default_plugin_dir_name): Added new function.
13054
13055         * common.opt (iplugindir): New option to set the plugin directory.
13056
13057 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
13058
13059         * config/i386/i386.md (any_rotate): New code iterator.
13060         (rotate_insn): New code attribute.
13061         (rotate): Ditto.
13062         (SWIM124): New mode iterator.
13063         (<rotate_insn>ti3): New expander.
13064         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13065         any_rotate code iterator.
13066         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13067         using any_rotate code iterator and SWIM124 mode iterator.
13068         (ix86_rotlti3): New insn_and_split pattern.
13069         (ix86_rotrti3): Ditto.
13070         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13071         ix86_rotl{di,ti}3 patterns.
13072         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13073         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13074         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13075         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13076         code iterator and SWI mode iterator.
13077         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13078         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13079         code iterator.
13080         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13081         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13082         (bswap rotatert splitter): Add splitter.
13083         (bswap splitter): Macroize splitter using any_rotate code iterator.
13084         Add insn predicate to split only for TARGET_USE_XCHGB or when
13085         optimizing function for size.
13086
13087 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13088
13089         * config/pa/pa.c (emit_move_sequence): Remove use of
13090         deleted variable flag_argument_noalias.
13091
13092 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13093
13094         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13095         configurations.
13096         Add to unsupported targets list.
13097         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13098         sparc*-sun-solaris2.[567]* from target lists.
13099         * configure: Regenerate.
13100         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13101         removal.
13102         Remove Solaris 7 patch references.
13103         (Specific, sparc-sun-solaris2.7): Removed.
13104         (sparc-sun-solaris2*): Update Solaris 7 example.
13105         (sparc64-*-solaris2*): Likewise.
13106
13107 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13108
13109         * config.build (alpha*-dec-osf4*): Remove.
13110         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13111         of obsolete configurations.
13112         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13113         support.
13114         * config/alpha/t-osf4: Renamed to ...
13115         * config/alpha/t-osf5: ... this.
13116         * config/alpha/osf.h: Renamed to ...
13117         * config/alpha/osf5.h: ... this.
13118         Merged old osf5.h contents.
13119         Update comments.
13120         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13121         (EXTRA_SPECS): Removed.
13122         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13123         reflect removal of Tru64 UNIX V4.0/V5.0 support.
13124         Document that.
13125
13126 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13127
13128         * doc/contrib.texi (Contributors, Rainer Orth): Update.
13129
13130 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
13131
13132         PR/43702
13133         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13134         __thiscall convention.
13135
13136 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13137
13138         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13139         orig_base.
13140         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13141
13142 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13143
13144         * function.c (assign_parms_initialize_all): Add unused attribute
13145         to fntype.
13146
13147 2010-04-12  Richard Guenther  <rguenther@suse.de>
13148
13149         * gsstruct.def (GSS_CALL): New.
13150         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13151         * gimple.h: Include tree-ssa-alias.h.
13152         (struct gimple_statement_call): New.
13153         (union gimple_statement_struct_d): Add gimple_call member.
13154         (gimple_call_reset_alias_info): Declare.
13155         (gimple_call_use_set): New function.
13156         (gimple_call_clobber_set): Likewise.
13157         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13158         * gimple.c (gimple_call_reset_alias_info): New function.
13159         (gimple_build_call_1): Call it.
13160         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13161         * tree-inline.c (remap_gimple_stmt): Likewise.
13162         (expand_call_inline): Remove callused handling.
13163         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13164         * tree-dfa.c (dump_variable): Likewise.
13165         * tree-parloops.c (parallelize_loops): Likewise.
13166         * tree-ssa.c (init_tree_ssa): Likewise.
13167         (delete_tree_ssa): Likewise.
13168         * tree-flow-inline.h (is_call_used): Remove.
13169         * tree-flow.h (struct gimple_df): Remove callused member.
13170         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13171         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13172         (ref_maybe_used_by_call_p_1): Simplify.
13173         (call_may_clobber_ref_p_1): Likewise.
13174         * tree-ssa-structalias.c (compute_points_to_sets): Set
13175         the call stmt used and clobbered sets.
13176         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13177         (find_tail_calls): Verify the tail call.
13178
13179 2010-04-12  Richard Guenther  <rguenther@suse.de>
13180
13181         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13182         single-iteration always-inline inlining.
13183         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13184         (cgraph_decide_inlining): Do not handle always-inline specially.
13185         (try_inline): Remove always-inline cycle detection special case.
13186         Do not recurse on always-inlines.
13187         (cgraph_early_inlining): Do not iterate if not optimizing.
13188         (cgraph_gate_early_inlining): remove.
13189         (pass_early_inline): Run unconditionally.
13190         (gate_cgraph_decide_inlining): New function.
13191         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
13192         not inlining or optimizing.
13193         (cgraph_decide_inlining_of_small_functions): Also consider
13194         always-inline functions.
13195         (cgraph_default_inline_p): Return true for nodes which should
13196         disregard inline limits.
13197         (estimate_function_body_sizes): Assume zero size and time for
13198         nodes which are marked as disregarding inline limits.
13199         (cgraph_decide_recursive_inlining): Do not perform recursive
13200         inlining on always-inline nodes.
13201
13202 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
13203
13204         PR bootstrap/43699
13205         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13206         for exprs satisfying handled_component_p.
13207
13208 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13209
13210         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13211         non-constant aggregate elements.
13212
13213         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13214         is a real initialization.
13215
13216 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
13217
13218         PR c/36774
13219         * c-decl.c (start_function): Move forward check for nested function.
13220
13221 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
13222
13223         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13224         * config/sh/sh.c: Include reload.h.
13225         (sh_legitimize_reload_address): New.
13226         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13227         sh_legitimize_reload_address.
13228
13229 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13230
13231         * config/sh/sh.md (*movqi_pop): New insn pattern.
13232         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13233
13234 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13235
13236         * config/i386/i386.md (any_shiftrt): New code iterator.
13237         (shiftrt_insn): New code attribute.
13238         (shiftrt): Ditto.
13239         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13240         using any_shiftrt code iterator.
13241         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13242         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13243         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13244         pattern from corresponding peephole2 patterns.
13245         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13246         using any_shiftrt code iterator.
13247         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13248         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13249         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13250         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13251         *{ashr,lshr}<mode>3_cmp_zext.
13252         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13253
13254 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13255
13256         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13257         scratch register.
13258         (*lshr<mode>3_cconly): Ditto.
13259
13260 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13261
13262         * config/i386/i386.md (lshr<mode>3): Macroize expander from
13263         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13264         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13265         pattern from *lshr{di,ti}3_1 and corresponding splitters using
13266         DWI mode iterator.
13267         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13268         from corresponding peephole2 patterns.
13269         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13270         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13271         and *lshrdi3_1_rex64 using SWI mode iterator.
13272         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13273         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13274         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13275         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13276         and *lshrdi3_cmp_rex64 using SWI mode iterator.
13277         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13278         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13279         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13280         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13281         SWI mode iterator.
13282
13283 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
13284
13285         * config/i386/i386.md (ashr<mode>3): Macroize expander from
13286         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13287         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13288         pattern from *ashr{di,ti}3_1 and corresponding splitters using
13289         DWI mode iterator.
13290         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13291         from corresponding peephole2 patterns.
13292         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13293         (ashrsi3_cvt): Rename from ashrsi3_31.
13294         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13295         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13296         and x86_64_shift_adj_3 using SWI48 mode iterator.
13297         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13298         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13299         and *ashrdi3_1_rex64 using SWI mode iterator.
13300         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13301         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13302         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13303         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13304         and *ashrdi3_cmp_rex64 using SWI mode iterator.
13305         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13306         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13307         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13308         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13309         SWI mode iterator.
13310         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13311         * config/i386/i386.c (ix86_split_ashr): Update for renamed
13312         x86_shift<mode>_adj_3 expanders.
13313
13314 2010-04-10  Wei Guozhi  <carrot@google.com>
13315
13316         PR target/42601
13317         * config/arm/arm.c (arm_pic_static_addr): New function.
13318         (legitimize_pic_address): Call arm_pic_static_addr when it detects
13319         a static symbol.
13320         (arm_output_addr_const_extra): Output expression for new pattern.
13321         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13322
13323 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
13324
13325         * ira-costs.c (record_reg_classes): Ignore alternatives that are
13326         not enabled.
13327
13328         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13329         * web.c: Include "insn-config.h" and "recog.h".
13330         (union_match_dups): New function.
13331         (web_main): Call it.
13332         (union_defs): Don't try to recognize match_dups.
13333
13334         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13335         if doing so would replace the entire pattern.
13336
13337 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
13338
13339         PR target/43707
13340         PR target/43709
13341         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13342         and splitter pattern.  Change splitter operand 1 predicate to
13343         nonmemory_operand.
13344
13345 2010-04-09  Martin Jambor  <mjambor@suse.cz>
13346
13347         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13348         lattices are addresses of CONST_DECLs with the same initial value.
13349         (ipcp_print_all_lattices): Print values of CONST_DECLs.
13350         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13351
13352 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
13353             Bernd Schmidt  <bernds@codesourcery.com>
13354
13355         * loop-invariant.c (replace_uses): New static function.
13356         (move_invariant_reg): Use it to ensure we can replace the uses.
13357
13358 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
13359
13360         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13361         function template.
13362         (picochip_override_options): Enable section anchors only above -O1.
13363         (picochip_reorg): Fixed a couple of build warnings.
13364
13365 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13366
13367         * configure.ac (plugin -rdynamic test): Log result.
13368         * configure: Regenerate.
13369         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13370         (RDYNAMIC_SPEC): Define.
13371         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13372
13373 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13374
13375         * configure.ac: Determine Sun ld version numbers.
13376         (comdat_group): Restrict GNU ld version checks to gld.
13377         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13378         (enable_comdat): Support --enable-comdat.
13379         * configure: Regenerate.
13380         * doc/install.texi (Configuration): Document --enable-comdat.
13381
13382 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13383
13384         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
13385         * config/sol2-gld.h: ... here.
13386         * config.gcc (sparc*-*-solaris2*): Reflect this.
13387         (i[34567]86-*-solaris2*): Use it.
13388
13389 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
13390
13391         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13392         setup_clocks_p.
13393         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13394
13395 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13396
13397         PR 42965
13398         * diagnostic.c (diagnostic_initialize): Initialize
13399         some_warnings_are_errors.
13400         (diagnostic_finish): New.
13401         (diagnostic_action_after_output): Call it before exiting.
13402         (diagnostic_report_diagnostic): Do not print message here. Set
13403         some_warnings_are_errors.
13404         * diagnostic.h (diagnostic_context): Delete
13405         issue_warnings_are_errors_message. Add some_warnings_are_errors.
13406         (diagnostic_finish): Declare.
13407         * toplev.c (toplev_main): Call it before exit.
13408
13409 2010-04-09  Jason Merrill  <jason@redhat.com>
13410
13411         PR c++/42623
13412         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13413         for incomplete type.
13414
13415         PR c++/41788
13416         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13417         based on a warning flag.
13418
13419 2010-04-09  Richard Guenther  <rguenther@suse.de>
13420
13421         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13422
13423 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
13424
13425         PR bootstrap/43684
13426         * varasm.c (default_assemble_visibility): Wrap vars that are
13427         set, but unused, by targets without GAS.
13428         * config/rs6000/rs6000.c (paired_emit_vector_compare):
13429         Remove set, but unused, vars.
13430         (rs6000_legitimize_tls_address): Likewise.
13431         (altivec_expand_dst_builtin): Likewise.
13432         * config/darwin.c (machopic_classify_symbol): Likewise.
13433         (machopic_indirection_name): Likewise.
13434
13435 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
13436
13437         * config/i386/i386.md (DWI): New mode iterator.
13438         (S): New mode attribute.
13439         (shift_operand): Ditto.
13440         (shift_immediate_operand): Ditto.
13441         (ashl_input_operand): Ditto.
13442         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13443         using SDWIM mode iterator.
13444         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13445         pattern from *ashl{di,ti}3_1 and corresponding splitters using
13446         DWI mode iterator.
13447         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13448         from corresponding peephole2 patterns.
13449         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13450         and x86_64_shift_adj_1 using SWI48 mode iterator.
13451         (x86_shift<mode>_adj_2): Ditto.
13452         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13453         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13454         using SWI48 mode iterator.
13455         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13456         *ashldi3_cmp_rex64 using SWI mode iterator.
13457         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13458         *ashldi3_cconly_rex64 using SWI mode iterator.
13459         * config/i386/i386.c (ix86_split_ashl): Update for renamed
13460         x86_shift<mode>_adj_{1,2}.
13461         (ix86_split_ashr): Ditto.
13462         (ix86_split_lshr): Ditto.
13463
13464 2010-04-09  Richard Guenther  <rguenther@suse.de>
13465
13466         * target.h (builtin_conversion): Pass in input and output types.
13467         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13468         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13469         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13470         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13471
13472         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13473         Handle AVX modes.
13474         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13475
13476 2010-04-09  Richard Guenther  <rguenther@suse.de>
13477
13478         PR target/43152
13479         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13480
13481 2010-04-09  Richard Guenther  <rguenther@suse.de>
13482
13483         * tree-vectorizer.h (struct _stmt_vec_info): Document
13484         that vectype is the type of the LHS.
13485         (supportable_widening_operation, supportable_narrowing_operation):
13486         Get both input and output vector types as arguments.
13487         (vect_is_simple_use_1): Declare.
13488         (get_same_sized_vectype): Likewise.
13489         * tree-vect-loop.c (vect_determine_vectorization_factor):
13490         Set STMT_VINFO_VECTYPE to the vector type of the def.
13491         (vectorizable_reduction): Adjust.
13492         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13493         Adjust.  Specify the output vector type.
13494         (vect_pattern_recog_1): Adjust.
13495         * tree-vect-stmts.c (get_same_sized_vectype): New function.
13496         (vectorizable_call): Adjust.
13497         (vectorizable_conversion): Likewise.
13498         (vectorizable_operation): Likewise.
13499         (vectorizable_type_demotion): Likewise.
13500         (vectorizable_type_promotion): Likewise.
13501         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13502         the def.
13503         (vect_is_simple_use_1): New function.
13504         (supportable_widening_operation): Get both input and output
13505         vector types.
13506         (supportable_narrowing_operation): Likewise.
13507         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13508
13509 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
13510
13511         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13512         __thiscall and _thiscall as predefined macros.
13513         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13514         thiscall attribute handling.
13515         (ix86_comp_type_attributes): Likewise.
13516         (ix86_function_regparm): Likewise.
13517         (ix86_return_pops_args): Likewise.
13518         (init_cumulative_args): Likewise.
13519         (find_drap_reg): Likewise.
13520         (ix86_static_chain): Likewise.
13521         (x86_this_parameter): Likewise.
13522         (x86_output_mi_thunk): Likewise.
13523         (ix86_attribute_table): Add description for thiscall attribute.
13524         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13525         * doc/extend.texi: Add documentation for thiscall.
13526
13527 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13528
13529         PR c++/28584
13530         * c.opt (Wint-to-pointer-cast): Available in C++.
13531         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13532
13533 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13534
13535         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13536         * calls.c (expand_call): Pass the function type to aggregate_value_p.
13537         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13538         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
13539         function type instead.  Reorder and simplify checks.
13540
13541         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13542
13543 2010-04-08  Jing Yu  <jingyu@google.com>
13544             Zdenek Dvorak  <ook@ucw.cz>
13545
13546         PR tree-optimization/42720
13547         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13548         loop unswitch conditions here from ...
13549         (tree_unswitch_single_loop): ... here.
13550
13551 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13552
13553         * tree-if-conv.c: Fix comments and simplify logic.
13554
13555 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13556
13557         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13558         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
13559         (main_tree_if_conversion): Update call to tree_if_conversion.
13560
13561 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13562
13563         PR 42485
13564         * doc/invoke.texi (-b,-V): Delete.
13565         * doc/tm.texi: Do not mention -b.
13566         * gcc.c (display_help): Delete -b and -V.
13567         (process_command): Delete -b and -V.
13568         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13569
13570 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
13571             Wolfgang Gellerich  <gellerich@de.ibm.com>
13572
13573         Implement target hook for loop unrolling
13574         * target.h (loop_unroll_adjust): Add a new target hook function.
13575         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13576         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13577         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13578         (s390_loop_unroll_adjust): Implement the new target hook for s390.
13579         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13580         target hook.
13581         (decide_unroll_stupid): Likewise.
13582
13583 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13584
13585         PR target/43643
13586         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13587
13588 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13589
13590         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13591         (Specific, *-*-solaris2*): Likewise.
13592         Don't prefer Sun as over GNU as.
13593
13594 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
13595
13596         * config/s390/s390.c (override_options): Adjust the z10 defaults
13597         for max-unroll-times, max-completely-peeled-insns
13598         and max-completely-peel-times.
13599
13600 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13601
13602         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13603         instructions for z10.
13604         (s390_expand_setmem): Likewise.
13605         (s390_expand_cmpmem): Likewise.
13606
13607 2010-04-08  Richard Guenther  <rguenther@suse.de>
13608
13609         PR tree-optimization/43679
13610         * tree-ssa-pre.c (eliminate): Only propagate copies.
13611
13612 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13613
13614         PR bootstrap/43681
13615         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13616         set but not used variable warning.
13617
13618 2010-04-08  Wei Guozhi  <carrot@google.com>
13619
13620         PR target/41653
13621         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13622         (arm_size_rtx_costs): Call the new function when optimized for size.
13623
13624 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13625
13626         PR debug/43670
13627         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13628         op0 is not a MEM, just return NULL instead of assertion
13629         failure.
13630         (discover_nonconstant_array_refs): Don't walk debug stmts.
13631
13632 2010-04-08  Doug Kwan  <dougkwan@google.com>
13633
13634         * configure.ac: Recognize gold and do not use its version number
13635         to test ld features.
13636         * configure: Regenerate.
13637
13638 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13639
13640         PR middle-end/40815
13641         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
13642         (negate_value): Move code to push elements to broken_up_substracts ...
13643         (eliminate_plus_minus_pair): ... here.  Push operands that have no
13644         negative pair to plus_negates.
13645         (repropagate_negates, init_reassoc, fini_reassoc): Update.
13646
13647 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13648
13649         * doc/install.texi (Configuration): Move description of
13650         --enable-lto, --with-libelf*, --enable-gold from Java section to
13651         general section.
13652
13653         * doc/generic.texi (Working with declarations)
13654         (Function Properties, C and C++ Trees): Fix typos.
13655         * doc/sourcebuild.texi (Top Level): Likewise.
13656
13657 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13658
13659         PR c/18624
13660         * tree.h (DECL_READ_P): Define.
13661         (struct tree_decl_common): Add decl_read_flag.
13662         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
13663         a set but not used warning.
13664         (merge_decls): Merge DECL_READ_P flag.
13665         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
13666         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
13667         * c-common.c (handle_used_attribute, handle_unused_attribute):
13668         Likewise.
13669         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
13670         New prototypes.
13671         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
13672         New functions.
13673         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
13674         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
13675         c_parser_binary_expression, c_parser_cast_expression,
13676         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
13677         Call default_function_array_read_conversion instead of
13678         default_function_array_conversion where needed.
13679         (c_parser_unary_expression, c_parser_conditional_expression,
13680         c_parser_postfix_expression_after_primary, c_parser_initelt):
13681         Likewise.  Call mark_exp_read where needed.
13682         (c_parser_statement_after_labels, c_parser_asm_operands,
13683         c_parser_typeof_specifier, c_parser_sizeof_expression,
13684         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
13685         where needed.
13686         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
13687         New.
13688         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
13689         (warn_unused_but_set_parameter): Default to warn_unused
13690         && extra_warnings.
13691         * doc/invoke.texi: Document -Wunused-but-set-variable and
13692         -Wunused-but-set-parameter.
13693
13694         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
13695         used count variable.
13696         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
13697         when operandN variables aren't used in the body of the expander
13698         or splitter.
13699         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
13700         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
13701         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
13702         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
13703         FOR_EACH_IMM_USE_ON_STMT): Likewise.
13704         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
13705         * tree.c (PROCESS_ARG): Likewise.
13706
13707 2010-04-07  Simon Baldwin  <simonb@google.com>
13708
13709         * diagnostic.h (diagnostic_override_option_index): New macro to
13710         set a diagnostic's option_index.
13711         * c-tree.h (c_cpp_error): Add warning reason argument.
13712         * opts.c (_warning_as_error_callback): New.
13713         (register_warning_as_error_callback): Store callback for
13714         warnings enabled via enable_warning_as_error.
13715         (enable_warning_as_error): Call callback, minor code tidy.
13716         * opts.h (register_warning_as_error_callback): Declare.
13717         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
13718         response to -Werror=.
13719         (c_common_init_options): Register warning_as_error_callback in opts.c.
13720         * common.opt: Add -Wno-cpp option.
13721         * c-common.c (struct reason_option_codes_t): Map cpp warning
13722         reason codes to gcc option indexes.
13723         * (c_option_controlling_cpp_error): New function, lookup the gcc
13724         option index for a cpp warning reason code.
13725         * (c_cpp_error): Add warning reason argument, call
13726         c_option_controlling_cpp_error for diagnostic_override_option_index.
13727         * doc/invoke.texi: Document -Wno-cpp.
13728
13729 2010-04-07  Richard Guenther  <rguenther@suse.de>
13730
13731         * ipa-reference.c (mark_load): Use get_base_address.
13732         (mark_store): Likewise.
13733
13734         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
13735         inserting GIMPLE_NOPs into the IL.
13736         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13737         Explicitly strip handled components and indirect references.
13738
13739         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
13740         folding address expressions.
13741         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
13742         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
13743         operand_equal_p to compare decls.
13744         (ptr_deref_may_alias_decl_p): Likewise.
13745         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
13746         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
13747         Handle reversed comparison ops.
13748         * tree-sra.c (asm_visit_addr): Use get_base_address.
13749         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
13750         * ipa-reference.c (mark_address): Use get_base_address.
13751
13752 2010-04-07  Richard Guenther  <rguenther@suse.de>
13753
13754         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
13755         Propagate constants everywhere.
13756
13757 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
13758
13759         PR debug/43516
13760         * tree.c (MAX_INT_CACHED_PREC): Define.
13761         (nonstandard_integer_type_cache): New array.
13762         (build_nonstandard_integer_type): Cache results for precision
13763         <= MAX_INT_CACHED_PREC.
13764
13765 2010-04-07  Richard Guenther  <rguenther@suse.de>
13766
13767         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
13768         -fargument-noalias-global, -fargument-noalias-anything): Remove.
13769         * common.opt: Likewise.
13770         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
13771         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
13772         (nonoverlapping_memrefs_p): Likewise.
13773         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
13774         * opts.c (common_handle_option): Handle OPT_fargument_alias,
13775         OPT_fargument_noalias, OPT_fargument_noalias_anything and
13776         OPT_fargument_noalias_global for backward compatibility.
13777
13778 2010-04-07  Richard Guenther  <rguenther@suse.de>
13779
13780         PR tree-optimization/43270
13781         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
13782         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
13783         * tree-ssa-pre.c (phi_translate_1): Adjust.
13784         (fully_constant_expression): Split out vn_reference handling to ...
13785         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
13786         Fold reads from constant strings.
13787         (vn_reference_lookup): Handle fully constant references.
13788         (vn_reference_lookup_pieces): Likewise.
13789         * Makefile.in (expmed.o-warn): Add -Wno-error.
13790
13791 2010-04-07  Martin Jambor  <mjambor@suse.cz>
13792
13793         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
13794
13795 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
13796
13797         PR driver/41594
13798         * gcc.c: Add -static-libstdc++ to list of recognized options.
13799
13800 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13801
13802         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
13803
13804 2010-04-07  Richard Guenther  <rguenther@suse.de>
13805
13806         PR middle-end/42617
13807         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
13808         bases build simple mem attributes to retain points-to information.
13809
13810 2010-04-07  Richard Guenther  <rguenther@suse.de>
13811
13812         PR middle-end/42617
13813         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
13814         preserve points-to related information.
13815
13816 2010-04-07  Richard Guenther  <rguenther@suse.de>
13817
13818         PR middle-end/42617
13819         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
13820         discard plain indirect references.
13821         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
13822         * tree.c (tree_nop_conversion): Likewise.
13823
13824 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
13825
13826         PR debug/43628
13827         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
13828
13829 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
13830
13831         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
13832         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
13833
13834 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13835
13836         * tree-if-conv.c: Fix indentation and comments.
13837
13838 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13839
13840         * tree-if-conv.c: Sort static functions in topological order.
13841
13842 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
13843
13844         * tree-if-conv.c: Fix indentation and comments.
13845
13846 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13847
13848         PR middle-end/43519
13849         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
13850         lang_hooks.types.type_for_size instead of
13851         build_nonstandard_integer_type.
13852         When converting an unsigned type to signed, double its precision.
13853         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
13854         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
13855         (graphite_create_new_loop_guard): When ub + 1 wraps around,
13856         use lb <= ub.
13857
13858 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13859
13860         PR middle-end/43519
13861         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
13862         POINTER_PLUS_EXPR for pointer types.
13863
13864 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13865
13866         PR middle-end/43519
13867         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
13868         * graphite-clast-to-gimple.c: Include langhooks.h.
13869         (max_signed_precision_type): New.
13870         (max_precision_type): Takes two types as arguments.
13871         (precision_for_value): New.
13872         (precision_for_interval): New.
13873         (gcc_type_for_interval): New.
13874         (gcc_type_for_value): New.
13875         (gcc_type_for_clast_term): New.
13876         (gcc_type_for_clast_red): New.
13877         (gcc_type_for_clast_bin): New.
13878         (gcc_type_for_clast_expr): Split up into several functions.
13879         (gcc_type_for_clast_eq): Rewritten.
13880         (compute_bounds_for_level): New.
13881         (compute_type_for_level_1): New.
13882         (compute_type_for_level): New.
13883         (gcc_type_for_cloog_iv): Removed.
13884         (gcc_type_for_iv_of_clast_loop): Rewritten.
13885         (graphite_create_new_loop): Compute the lower and upper bound types
13886         with gcc_type_for_clast_expr.
13887         (graphite_create_new_loop_guard): Same.
13888         (find_cloog_iv_in_expr): Removed.
13889         (compute_cloog_iv_types_1): Removed.
13890         (compute_cloog_iv_types): Removed.
13891         (gloog): Do not call compute_cloog_iv_types.
13892         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
13893         GBB_CLOOG_IV_TYPES.
13894         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
13895         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
13896         (GBB_CLOOG_IV_TYPES): Removed.
13897
13898 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13899
13900         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
13901         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
13902         (detect_commutative_reduction): Same.
13903
13904 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13905
13906         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13907         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
13908         argument.
13909         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13910         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13911         (rewrite_commutative_reductions_out_of_ssa): Same.
13912         * passes.c (execute_function_todo): Call verify_ssa for every pass
13913         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
13914         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13915         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13916         with an extra argument.
13917         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
13918         verify_ssa only when the extra argument is true.
13919         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13920         with an extra argument.
13921         (tree_transform_and_unroll_loop): Same.
13922
13923 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13924
13925         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13926         for all the passes of the LNO having LOOP_CLOSED_SSA.
13927         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13928         * tree-loop-distribution.c (pass_loop_distribution): Same.
13929         * tree-pass.h (TODO_verify_loops): Removed.
13930         * tree-ssa-loop.c (pass_tree_loop_init): Same.
13931         (pass_lim): Same.
13932         (pass_tree_unswitch): Same.
13933         (pass_predcom): Same.
13934         (pass_vectorize): Same.
13935         (pass_linear_transform): Same.
13936         (pass_graphite_transforms): Same.
13937         (pass_iv_canon): Same.
13938         (pass_complete_unroll): Same.
13939         (pass_complete_unrolli): Same.
13940         (pass_parallelize_loops): Same.
13941         (pass_loop_prefetch): Same.
13942         (pass_iv_optimize): Same.
13943
13944 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
13945
13946         PR middle-end/32824
13947         * passes.c (init_optimization_passes): Move pass_lim before
13948         pass_copy_prop and pass_dce_loop.
13949
13950 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13951
13952         PR target/43667
13953         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13954         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13955         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13956         MULTI_* defines for 4 argument vpermil2p* builtins.
13957
13958 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13959
13960         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13961         * config/i386/i386.c (x86_maybe_negate_const_int): New.
13962         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13963         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13964         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13965         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13966         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13967         Use x86_maybe_negate_const_int to output insn mnemonic.
13968         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
13969         check from instruction predicate.  Update comments.
13970         * config/i386/sync.md (sync_add<mode>): Use
13971         x86_maybe_negate_const_int to output insn mnemonic.
13972
13973 2010-04-06  Jan Hubicka  <jh@suse.cz>
13974
13975         PR tree-optimization/42906
13976         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13977         IGNORE_SELF argument.  Set visited_control_parents for fully
13978         processed BBs.
13979         (find_obviously_necessary_stmts): Update call of
13980         mark_control_dependent_edges_necessary.
13981         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
13982
13983 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13984
13985         * config/i386/i386.md: Remove comment about 'e' and 'E'
13986         operand modifier.
13987
13988 2010-04-06  Richard Guenther  <rguenther@suse.de>
13989
13990         PR tree-optimization/43627
13991         * tree-vrp.c (extract_range_from_unary_expr): Widenings
13992         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13993         not varying.
13994
13995 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13996
13997         * BASE-VER: Change to 4.6.0.
13998
13999         PR target/43638
14000         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14001         handling.
14002
14003 2010-04-06  Richard Guenther  <rguenther@suse.de>
14004
14005         PR middle-end/43661
14006         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14007
14008 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14009
14010         * doc/invoke.texi (Optimize Options): Document that LTO
14011         won't remove object access purely due to incompatible
14012         declarations.
14013
14014 2010-04-04  Matthias Klose  <doko@ubuntu.com>
14015
14016         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14017         Initialize variable.
14018
14019 2010-04-03  Richard Guenther  <rguenther@suse.de>
14020
14021         PR middle-end/42509
14022         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14023         require a non-NULL MEM_OFFSET.
14024
14025 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
14026
14027         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14028         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14029         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14030         config/alpha/predicates.md, config/arm/arm.md,
14031         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14032         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14033         config/darwin9.h, config/darwin.c, config/darwin.h,
14034         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14035         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14036         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14037         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14038         config/mips/mips.md, config/mn10300/mn10300.c,
14039         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14040         config/rs6000/aix.h, config/rs6000/dfp.md,
14041         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14042         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14043         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14044         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14045         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14046         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14047         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14048         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14049         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14050         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14051         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14052         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14053         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14054         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14055         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14056         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14057         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14058         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14059         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14060         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14061         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14062         opt-functions.awk, opth-gen.awk, params.def, passes.c,
14063         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14064         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14065         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14066         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14067         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14068         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14069         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14070         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14071         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14072         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14073         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14074         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14075         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14076         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14077
14078 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14079
14080         PR other/43620
14081         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14082         * aclocal.m4: Regenerate.
14083
14084 2010-04-02  Richard Guenther  <rguenther@suse.de>
14085
14086         PR tree-optimization/43629
14087         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14088         if we have seen a constant value.
14089
14090 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
14091
14092         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14093
14094 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
14095
14096         PR target/43469
14097         * arm.c (legitimize_tls_address): Adjust call to
14098         gen_tls_load_dot_plus_four.
14099         (arm_note_pic_base): New function.
14100         (arm_cannot_copy_insn_p): Use it.
14101         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14102         constraint.
14103
14104 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14105
14106         PR bootstrap/43531
14107
14108         Revert:
14109         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14110
14111         * Makefile.in ($(out_object_file)): Depend on
14112         gt-$(basename $(notdir $(out_file))).h.
14113
14114 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
14115
14116         * config.gcc (lm32-*-rtems*): Add t-lm32.
14117
14118 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
14119
14120         * config.gcc: Add lm32-*-rtems*.
14121         * config/lm32/rtems.h: New file.
14122
14123 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
14124
14125         PR target/42609
14126         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14127
14128 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
14129
14130         * dwarf2out.c (output_compilation_unit_header): For
14131         -gdwarf-4 use version 4 instead of version 3.
14132         (output_line_info): For version 4 and above emit additional
14133         maximum ops per insn header field.
14134         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14135
14136         * dwarf2out.c (is_c_family, is_java): Remove.
14137         (lower_bound_default): New function.
14138         (add_bound_info, gen_descr_array_type_die): Use it.
14139
14140 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
14141
14142         PR debug/43325
14143         * dwarf2out.c (gen_variable_die): Allow debug info for variable
14144         re-declaration when it happens in a function.
14145
14146 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
14147
14148         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14149         (cgraph_remove_function_insertion_hook): Same.
14150         (cgraph_call_function_insertion_hooks): Same.
14151
14152 2010-04-01  Richard Guenther  <rguenther@suse.de>
14153
14154         PR middle-end/43614
14155         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14156         and TREE_THIS_VOLATILE.
14157         (copy_ref_info): Likewise.
14158         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14159         * tree.c (build6_stat): Ignore side-effects of all but arg5
14160         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
14161         TARGET_MEM_REF.
14162
14163 2010-04-01  Richard Guenther  <rguenther@suse.de>
14164
14165         PR tree-optimization/43607
14166         * ipa-type-escape.c (check_call): Do not access non-existing
14167         arguments.
14168
14169 2010-04-01  Richard Guenther  <rguenther@suse.de>
14170
14171         PR middle-end/43602
14172         Revert
14173         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14174                     Jack Howarth  <howarth@bromo.med.uc.edu>
14175
14176         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14177         variables TLS.
14178
14179 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14180
14181         * doc/install.texi (Prerequisites): Document libelf usability on
14182         IRIX 5/6 and Solaris 2.
14183         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14184         Update GNU as, GNU ld requirements.
14185         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14186         Document Sun Studio compiler download.
14187         Update and simplify as, ld recommendations.
14188         (Specific, *-*-solaris2.7): Note obsoletion, removal.
14189
14190 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14191
14192         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14193         with_tune_32 to pentium4.
14194
14195 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
14196
14197         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14198
14199 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14200
14201         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14202         obsoletion, removal.
14203         Update IDO URL.
14204         Document GNU as requirement.
14205         Update configure requirements.
14206         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14207         Recomment IRIX 6.5.18+.
14208         Document IDF/IDL requirement.
14209         Document GNU as requirement.
14210         Document GNU ld bootstrap failure.
14211         Remove freeware.sgi.com reference.
14212
14213 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14214
14215         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14216         UNIX V4.0, V5.0 obsoletion, removal.
14217         Remove --with-gc=simple reference.
14218         Update VM requirements during bootstrap.
14219         Remove -oldas bootstrap description.
14220         Update binutils reference.
14221         Remove comparison failure note.
14222
14223 2010-03-31  Richard Guenther  <rguenther@suse.de>
14224             Zdenek Dvorak  <ook@ucw.cz>
14225             Sebastian Pop  <sebastian.pop@amd.com>
14226
14227         PR middle-end/43464
14228         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14229         with multiple arguments.
14230         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14231
14232 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14233
14234         * graphite-dependences.c (print_pddr): Call print_pdr with an
14235         extra argument.
14236         * graphite-poly.c (debug_pdr): Add an extra argument for the
14237         verbosity level.
14238         (print_pdr): Same.
14239         (print_pbb_domain): Same.
14240         (print_pbb): Same.
14241         (print_scop_context): Same.
14242         (print_scop): Same.
14243         (print_cloog): Same.
14244         (debug_pbb_domain): Same.
14245         (debug_pbb): Same.
14246         (print_pdrs): Same.
14247         (debug_pdrs): Same.
14248         (debug_scop_context): Same.
14249         (debug_scop): Same.
14250         (debug_cloog): Same.
14251         (print_scop_params): Same.
14252         (debug_scop_params): Same.
14253         (print_iteration_domain): Same.
14254         (print_iteration_domains): Same.
14255         (debug_iteration_domain): Same.
14256         (debug_iteration_domains): Same.
14257         (print_scattering_function): Same.
14258         (print_scattering_functions): Same.
14259         (debug_scattering_function): Same.
14260         (debug_scattering_functions): Same.
14261         * graphite-poly.h (debug_pdr): Update declaration.
14262         (print_pdr): Same.
14263         (print_pbb_domain): Same.
14264         (print_pbb): Same.
14265         (print_scop_context): Same.
14266         (print_scop): Same.
14267         (print_cloog): Same.
14268         (debug_pbb_domain): Same.
14269         (debug_pbb): Same.
14270         (print_pdrs): Same.
14271         (debug_pdrs): Same.
14272         (debug_scop_context): Same.
14273         (debug_scop): Same.
14274         (debug_cloog): Same.
14275         (print_scop_params): Same.
14276         (debug_scop_params): Same.
14277         (print_iteration_domain): Same.
14278         (print_iteration_domains): Same.
14279         (debug_iteration_domain): Same.
14280         (debug_iteration_domains): Same.
14281         (print_scattering_function): Same.
14282         (print_scattering_functions): Same.
14283         (debug_scattering_function): Same.
14284         (debug_scattering_functions): Same.
14285
14286 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14287
14288         * graphite-poly.c (print_scattering_function_1): New.
14289         (print_scattering_function): Call it.
14290         (print_scop_params): Remove spaces at the end of lines.
14291         (print_cloog): New.
14292         (debug_cloog): New.
14293         * graphite-poly.h (print_cloog): Declared.
14294         (debug_cloog): Declared.
14295
14296 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14297
14298         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14299         in loop->header.
14300         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14301         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14302         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14303         to switch between adding the IV bump in loop->latch or in loop->header.
14304
14305 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14306
14307         * graphite-poly.c (print_scattering_function): Pretty print following
14308         the scoplib format.
14309         (print_pdr): Same.
14310         (print_pbb_domain): Same.
14311         (dump_gbb_cases): Same.
14312         (dump_gbb_conditions): Same.
14313         (print_pdrs): Same.
14314         (print_pbb): Same.
14315         (print_scop_params): Same.
14316         (print_scop_context): Same.
14317         (print_scop): Same.
14318         (print_pbb_body): New.
14319         (lst_indent_to): New.
14320         (print_lst): Start new lines with a #.
14321         * graphite-poly.h (pbb_bb): New.
14322         (pbb_index): Use pbb_bb.
14323         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14324         disjuncts.
14325         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14326
14327 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
14328
14329         * dwarf2out.c (size_of_die): For -gdwarf-4 use
14330         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14331         and 0 instead of 1 for dw_val_class_flag.
14332         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14333         dw_val_class_range_list, dw_val_class_loc_list,
14334         dw_val_class_lineptr and dw_val_class_macptr, use
14335         DW_FORM_flag_present for dw_val_class_flag and
14336         DW_FORM_exprloc for dw_val_class_loc.
14337         (output_die): For -gdwarf-4 print dw_val_class_loc
14338         size as uleb128 instead of 1 or 2 bytes and don't print
14339         anything for dw_val_class_flag.
14340
14341         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14342         instead of cselib_lookup following by tweaking locs->setting_insn.
14343
14344         PR bootstrap/43596
14345         * cselib.c (cselib_process_insn): Clear cselib_current_insn
14346         even before returning from label, setjmp call or volatile asm
14347         handling.
14348
14349 2010-03-31  Richard Guenther  <rguenther@suse.de>
14350
14351         PR middle-end/43600
14352         * cgraphunit.c (cgraph_output_in_order): Do not allocate
14353         temporary data on stack.
14354
14355 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14356
14357         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14358         (PUSHSECTION_ASM_OP): Remove.
14359         (POPSECTION_ASM_OP): Remove.
14360         (PUSHSECTION_FORMAT): Remove.
14361         * config/sol2.h (PUSHSECTION_FORMAT): Define.
14362         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14363         * config/sol2.c (solaris_output_init_fini): Use it.
14364
14365 2010-03-31  Jie Zhang  <jie@codesourcery.com>
14366
14367         PR 43574
14368         * opt-functions.awk (var_type_struct): Use signed char type
14369         for simple variables.
14370
14371 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14372
14373         * config/sol2.c: Include output.h.
14374         (solaris_assemble_visibility): New function.
14375         * config/t-sol2 (sol2.o): Add output.h dependency.
14376         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14377         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14378         Redefine.
14379
14380 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
14381
14382         PR target/43580
14383         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14384         V2SImode or XFmode on PRE_DEC.
14385
14386         PR debug/43557
14387         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14388         BLKmode.
14389
14390 2010-03-31  Jie Zhang  <jie@codesourcery.com>
14391
14392         PR 43562
14393         * reload.h (caller_save_initialized_p): Declare.
14394         * toplev.c (backend_init_target): Don't call
14395         init_caller_save but set caller_save_initialized_p to false.
14396         * caller-save.c (caller_save_initialized_p): Define.
14397         (init_caller_save): Check caller_save_initialized_p.
14398         * ira.c (ira): Call init_caller_save if flag_caller_saves.
14399
14400 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14401
14402         PR target/39048
14403         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14404         and soft-fp/t-softfp to tmake_file.
14405         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14406         (LIBGCC2_TF_CEXT): Define.
14407         (TF_SIZE): Define.
14408
14409 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
14410
14411         PR debug/42977
14412         * cselib.c (n_useless_values): Document handling of debug locs.
14413         (n_useless_debug_values, n_debug_values): New variables.
14414         (new_elt_loc_list): Don't add to debug values, keep count.
14415         (promote_debug_loc): New.
14416         (cselib_reset_table): Zero new variables.
14417         (entry_and_rtx_equal_p): Promote debug locs.
14418         (discard_useless_locs): Increment n_useless_debug_values for
14419         debug values.
14420         (remove_useless_values): Adjust n_useless_values and n_debug_values
14421         with n_useless_debug_values.
14422         (add_mem_for_addr): Promote debug locs.
14423         (cselib_lookup_mem): Likewise.
14424         (cselib_lookup_addr): Renamed to...
14425         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
14426         (cselib_log_lookup): ... this.  Turn into...
14427         (cselib_lookup_addr): ... new wrapper.
14428         (cselib_lookup_from_insn): New.
14429         (cselib_invalidate_regno): Increment n_useless_debug_values for
14430         debug values.
14431         (cselib_invalidate_mem): Likewise.
14432         (cselib_process_insn): Take n_deleted and n_debug_values into
14433         account to guard remove_useless_value call.
14434         (cselib_finish): Zero n_useless_debug_values.
14435         * cselib.h (cselib_lookup_from_insn): Declare.
14436         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14437         (sched_analyze_2): Likewise.
14438
14439 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
14440
14441         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14442         functions.
14443         (adjust_mems): Replace narrowing SUBREG of expression containing
14444         just PLUS, MINUS, MULT and ASHIFT of registers and constants
14445         with operations in the narrower mode.
14446
14447         PR debug/43593
14448         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14449         regs_invalidated_by_call instead all call_used_reg_set registers.
14450
14451 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
14452
14453         PR middle-end/43430
14454         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14455         pointer comparisons with types_compatible_p.
14456         * tree-vect-stmts.c (vectorizable_call): Same.
14457         (vectorizable_condition): Same.
14458
14459 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14460
14461         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14462         stack check if the mask would be zero.
14463
14464 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14465             Jack Howarth  <howarth@bromo.med.uc.edu>
14466
14467         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14468         variables TLS.
14469
14470 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
14471
14472         PR other/25232
14473         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
14474         and __unordtf2.
14475         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14476         Include ___unordxf2 and ___unordtf2.
14477         * config/i386/libgcc-glibc.ver: Do not define inheritance from
14478         GCC_4.4.0 here.
14479
14480 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
14481
14482         * config/lm32/t-lm32: New file.
14483         * config.gcc: Use the above file when targetting lm32.
14484
14485 2010-03-28  Duncan Sands  <baldrick@free.fr>
14486
14487         * Makefile.in (PLUGIN_HEADERS): Add except.h.
14488
14489 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
14490
14491         PR middle-end/43431
14492         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14493         Improve vectorization cost model diagnostic.
14494
14495 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
14496
14497         PR middle-end/43436
14498         * tree-vect-data-refs.c (vect_analyze_data_refs): When
14499         compute_data_dependences_for_loop returns false, early exit
14500         and output an extra diagnostic for the failed data reference
14501         analysis.
14502
14503 2010-03-29  Richard Guenther  <rguenther@suse.de>
14504
14505         PR tree-optimization/43560
14506         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14507         (can_sm_ref_p): Treat stores to readonly locations as trapping.
14508
14509 2010-03-29  Jie Zhang  <jie@codesourcery.com>
14510
14511         PR 43564
14512         * toplev.c (process_options): Set optimization_default_node
14513         and optimization_current_node.
14514         * opts.c (decode_options): Don't set optimization_default_node
14515         and optimization_current_node.
14516
14517 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
14518
14519         * config/rtems.h: Abandon -qrtems_debug.
14520
14521 2010-03-28  Jan Hubicka  <jh@suse.cz>
14522
14523         PR tree-optimization/43505
14524         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14525         map should not be copied.
14526
14527 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14528
14529         PR middle-end/41674
14530         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14531         cdtors, set DECL_PRESERVE_P.
14532         * ipa.c (cgraph_externally_visible_p): Return true if declaration
14533         should be preseved.
14534
14535 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
14536
14537         PR tree-optimization/43528
14538         * stor-layout.c (place_field): Check that constant fits into
14539         unsigned HWI when skipping calculation of MS bitfield layout.
14540
14541 2010-03-27  Jan Hubicka  <jh@suse.cz>
14542
14543         PR middle-end/43391
14544         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14545         notice_global_symbol work.
14546
14547 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
14548
14549         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14550         instead of dwarf2out_decl.
14551         (struct var_loc_node): Remove section_label field.
14552         (dwarf2out_function_decl): New function.
14553         (dwarf2out_var_location): Don't set section_label field.
14554         (dwarf2out_begin_function): Don't empty decl_loc_table here.
14555
14556 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14557
14558         PR tree-optimization/43544
14559         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14560         First argument for builtin vectorized function hook is now a
14561         tree to be able to distinguish between machine specific and
14562         standard builtins.
14563         * targhooks.c (default_builtin_vectorized_function): Ditto.
14564         * targhooks.h (default_builtin_vectorized_function): Ditto.
14565         * target.h (struct gcc_target): Ditto.
14566         * tree-vect-stmts.c (vectorizable_function): Ditto.
14567         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14568         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14569         Ditto.
14570
14571 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
14572
14573         PR c/43381
14574         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14575         nested binding iff it is a FUNCTION_DECL.
14576         (store_parm_decls_newstyle): Pass nested=true to bind for
14577         FUNCTION_DECLs amongst parameters.
14578
14579 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14580
14581         * var-tracking.c (vt_expand_loc_callback): Don't run
14582         cselib_expand_value_rtx_cb in dummy mode if
14583         cselib_dummy_expand_value_rtx_cb returned false.
14584
14585         * var-tracking.c (emit_note_insn_var_location): For one part
14586         notes with offset 0, don't add EXPR_LIST around the location.
14587         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14588         add_location_or_const_value_attribute): Adjust for that change.
14589
14590         PR debug/43540
14591         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14592         into first operand and location into second.
14593         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14594         dw_cfi_oprnd_loc for DW_CFA_expression.
14595         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14596         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14597         assume first argument is regnum and second argument is location.
14598
14599 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14600
14601         PR target/42113
14602         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14603         of scratch register to DImode.  Split to DImode comparison operator.
14604         Use SImode subreg of scratch register in the multiplication.
14605         (*cmp_sadd_sidi): Ditto.
14606         (*cmp_ssub_si): Ditto.
14607         (*cmp_ssub_sidi): Ditto.
14608
14609 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14610
14611         PR target/43524
14612         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14613         Remove invalid assert and wrong comment.
14614
14615 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14616
14617         PR debug/43516
14618         * flags.h (final_insns_dump_p): New extern.
14619         * final.c (final_insns_dump_p): New variable.
14620         (rest_of_clean_state): Set it before -fdump-final-insns=
14621         dumping, clear afterwards.
14622         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14623         MEM_ALIAS_SET on MEMs.
14624
14625 2010-03-26  David S. Miller  <davem@davemloft.net>
14626
14627         * configure.ac: Fix sparc GOTDATA_OP bug check.
14628         * configure: Rebuild.
14629
14630 2010-03-26  Alan Modra  <amodra@gmail.com>
14631
14632         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
14633
14634 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14635
14636         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
14637         TLS_SECTION_ASM_FLAG.
14638
14639 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
14640
14641         PR bootstrap/43511
14642         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
14643         Clear first_function_block_is_cold.
14644
14645         PR c/43385
14646         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
14647         argument if the argument is truth_value_p.
14648
14649 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14650
14651         * config/rs6000/constraints.md: Update copyright year for my changes.
14652
14653         PR target/43484
14654         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
14655         used in reg+reg addressing, swap registers.
14656
14657 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14658
14659         PR debug/43293
14660         * target.h (struct gcc_target): Add code_end hook.
14661         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
14662         if not yet defined.
14663         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
14664         * toplev.c (compile_file): Call targetm.asm_out.code_end
14665         hook before unwind info/debug info output.
14666         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
14667         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
14668         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14669         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
14670         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
14671         * config/i386/i386.c (ix86_file_end): Renamed to...
14672         (ix86_code_end): ... this.  Make static.  Don't call
14673         file_end_indicate_exec_stack.  Emit unwind info using
14674         final_start_function/final_end_function.
14675         (darwin_x86_file_end): Remove.
14676         (TARGET_ASM_CODE_END): Define.
14677         * config/i386/i386.h (TARGET_ASM_FILE_END,
14678         NEED_INDICATE_EXEC_STACK): Don't define.
14679         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
14680         (TARGET_ASM_FILE_END): Define to darwin_file_end.
14681         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
14682         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
14683
14684         PR target/43498
14685         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
14686         at the beginning and final_end_function at the end.
14687         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
14688
14689 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14690
14691         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
14692         and Sun as TLS syntax.
14693         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
14694         * configure: Regenerate.
14695         * config.in: Regenerate.
14696         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
14697         (default_elf_asm_named_section): Use it.
14698         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
14699         (i386_output_dwarf_dtprel): Likewise.
14700         (output_addr_const_extra): Likewise.
14701         (output_pic_addr_const): Lowercase @GOTTPOFF.
14702         (output_addr_const_extra): Likewise.
14703         (output_pic_addr_const): Lowercase @GOTNTPOFF.
14704         (output_addr_const_extra): Likewise.
14705         (output_pic_addr_const): Lowercase @INDNTPOFF.
14706         (output_addr_const_extra): Likewise.
14707         (output_pic_addr_const): Lowercase @NTPOFF.
14708         (output_addr_const_extra): Likewise.
14709         (output_pic_addr_const): Lowercase @TPOFF.
14710         (output_addr_const_extra): Likewise.
14711         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
14712         (*tls_global_dynamic_64): Likewise.
14713         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
14714         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
14715
14716         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
14717         (ASM_OUTPUT_TLS_COMMON): Use it.
14718         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
14719
14720         PR target/38118
14721         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
14722         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
14723         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
14724         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
14725         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14726         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
14727
14728 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14729
14730         * config/i386/i386.c (override_options): Don't accept
14731         -mtls-dialect=sun any longer.
14732         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
14733         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
14734         (*tls_local_dynamic_base_32_sun): Likewise.
14735         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
14736
14737 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
14738
14739         PR debug/43508
14740         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
14741         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
14742
14743         PR debug/43479
14744         * ira.c (adjust_cleared_regs): New function.
14745         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
14746
14747         PR debug/19192
14748         PR debug/43479
14749         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
14750         from gimple_block.
14751         * expr.c (expand_expr_real): Restore previous
14752         curr_insn_source_location and curr_insn_block after
14753         expand_expr_real_1 call.
14754         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
14755         instead of expand_expr_real_1.
14756
14757 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
14758
14759         PR rtl-optimization/43413
14760         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
14761         hard regs too.
14762
14763 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
14764
14765         PR target/43348
14766         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
14767         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
14768
14769 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
14770
14771         * config/i386/i386.c (ix86_target_string): Add -mfma.
14772         Fix a typo in comment.
14773
14774 2010-03-22  Mike Stump  <mikestump@comcast.net>
14775
14776         PR target/23071
14777         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
14778         Don't overly align based upon packed packed fields.
14779
14780 2010-03-22  Jason Merrill  <jason@redhat.com>
14781
14782         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
14783         Use () rather than [], and move before the element type.
14784
14785 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14786
14787         * doc/configfiles.texi (Configuration Files): Removed
14788         fixinc/Makefile*, intl/Makefile.*.
14789         * doc/makefile.texi: Fixed markup. Abstract from version
14790         control system used.
14791         (Makefile): Removed obsolete gcc/java/parse.y example.
14792         * doc/sourcebuild.texi: Likewise.
14793         (Top Level): Added config, gnattools, libdecnumber, libgcc,
14794         libgomp, libssp.  Removed fastjar.
14795         (Miscellaneous Docs): Clarify location.
14796         Added COPYING3, COPYING3.LIB.
14797         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
14798
14799 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14800
14801         PR target/38085
14802         * config/i386/i386.c (x86_function_profiler)
14803         [!NO_PROFILE_COUNTERS]: Fix typo.
14804         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
14805         instead of callq.
14806
14807 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
14808             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14809
14810         * doc/sourcebuild.texi (Test Directives): Split into six
14811         subsections, with most of the current text in new subsections
14812         Directives, Selectors, and Final Actions.
14813         (Directives): Split list of test directives into multiple
14814         subsubsections.
14815         (Selectors): Describe use and syntax of selectors.
14816         (Effective-Target Keywords): Describe all existing keywords.
14817         (Add Options): Describe features for dg-add-options.
14818         (Require Support): Describe variants of dg-require-support.
14819         (Final Actions): Describe commands to use in dg-final.
14820
14821 2010-03-22  Michael Matz  <matz@suse.de>
14822
14823         PR middle-end/43475
14824         * recog.c (validate_replace_rtx_group): Replace also in
14825         REG_EQUAL and REG_EQUIV notes.
14826
14827 2010-03-22  Richard Guenther  <rguenther@suse.de>
14828
14829         PR tree-optimization/43390
14830         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
14831         sure vector extracts are type correct.
14832
14833 2010-03-22  Richard Guenther  <rguenther@suse.de>
14834
14835         PR middle-end/40106
14836         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
14837         x * sqrt (x) even when optimizing for size if the target
14838         has native support for sqrt.
14839
14840 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
14841
14842         * varasm.c (make_decl_rtl_for_debug): Also clear
14843         flag_mudflap for the duration of make_decl_rtl call.
14844
14845         PR debug/43443
14846         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
14847         locs from preserved VALUEs.
14848
14849 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14850
14851         PR middle-end/42718
14852         * pa.md (movmemsi): Set align to one if zero.
14853         (movmemdi): Likewise.
14854
14855 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
14856
14857         PR target/42321
14858         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
14859         with their corresponding prologue pushes.
14860
14861 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
14862
14863         PR target/43156
14864         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
14865         at the begining or end.
14866         (spu_expand_epilogue): Likewise.
14867
14868 2010-03-20  Richard Guenther  <rguenther@suse.de>
14869
14870         PR rtl-optimization/43438
14871         * combine.c (make_extraction): Properly zero-/sign-extend an
14872         extraction of the low part of a CONST_INT.  Also handle
14873         CONST_DOUBLE.
14874
14875 2010-03-19  Mike Stump  <mikestump@comcast.net>
14876
14877         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
14878         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
14879         (override_options): Use SUBTARGET32_DEFAULT_CPU.
14880
14881 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14882
14883         PR c/43211
14884         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
14885         an error.
14886
14887 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
14888
14889         PR rtl-optimization/42258
14890         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
14891         use that may match DEF.
14892
14893         PR target/40697
14894         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
14895         the cost of loading the constant rather than assuming
14896         COSTS_N_INSNS (1).
14897         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
14898         outer code is AND, do the same tests as the andsi3 expander and
14899         return COSTS_N_INSNS (1) if and is cheap.
14900
14901         * optabs.c (avoid_expensive_constant): Fix formatting.
14902
14903 2010-03-19  Michael Matz  <matz@suse.de>
14904
14905         PR c++/43116
14906         * attribs.c (decl_attributes): When rebuilding a function pointer
14907         type use the same qualifiers as the original pointer type.
14908
14909 2010-03-19  Martin Jambor  <mjambor@suse.cz>
14910
14911         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14912         and is_gimple_ip_invariant_address.
14913
14914 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14915
14916         Revert
14917         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14918
14919         * config/arm/arm.c (arm_override_options): Turn off
14920         flag_dwarf2_cfi_asm for AAPCS variants.
14921
14922 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14923
14924         PR target/43399
14925         * config/arm/arm.c (emit_multi_reg_push): Update comments.
14926         Use PRE_MODIFY instead of PRE_DEC.
14927         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14928         (vfp_emit_fstmd): Likewise.
14929
14930 2010-03-19  Michael Matz  <matz@suse.de>
14931
14932         PR target/43305
14933         * builtins.c (expand_builtin_interclass_mathfn,
14934         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14935         if that fails.
14936
14937 2010-03-19  Richard Guenther  <rguenther@suse.de>
14938
14939         PR tree-optimization/43415
14940         * tree-ssa-pre.c (phi_translate): Split out worker to ...
14941         (phi_translate_1): ... this.
14942         (phi_translate): Move all caching here.  Cache all NARY
14943         and REFERENCE translations.
14944
14945 2010-03-19  David S. Miller  <davem@davemloft.net>
14946
14947         With help from Eric Botcazou.
14948         * config/sparc/sparc.c: Include dwarf2out.h.
14949         (emit_pic_helper): Delete.
14950         (pic_helper_symbol_name): Delete.
14951         (pic_helper_emitted_p): Delete.
14952         (pic_helper_needed): New.
14953         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14954         (get_pc_thunk_name): New.
14955         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
14956         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14957         Set pic_helper_needed to true.  Don't call emit_pic_helper.
14958         (sparc_expand_prologue): Update load_pic_register call.
14959         (sparc_output_mi_thunk): Likewise.
14960         (sparc_file_end): Emit a hidden comdat symbol for the PIC
14961         thunk if possible.  Output CFI information as needed.
14962
14963 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14964             Jack Howarth  <howarth@bromo.med.uc.edu>
14965
14966         PR target/36399
14967         * config/i386/i386.h: Fix ABI on darwin x86-32.
14968
14969 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
14970
14971         * tree.h: Declare make_decl_rtl_for_debug.
14972         * varasm.c (make_decl_rtl_for_debug): New.
14973         * dwarf2out.c (rtl_for_decl_location): Call it.
14974         * cfgexpand.c (expand_debug_expr): Call it.
14975
14976 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14977
14978         PR bootstrap/43399
14979         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14980         mem_mode.
14981
14982         PR bootstrap/43403
14983         * var-tracking.c (vt_init_cfa_base): Do nothing if
14984         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14985
14986 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
14987
14988         PR debug/42873
14989         * var-tracking.c (canonicalize_vars_star): New.
14990         (dataflow_post_merge_adjust): Use it.
14991
14992 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14993
14994         PR debug/43058
14995         * var-tracking.c (non_suitable_const): New function.
14996         (add_uses): For DEBUG_INSNs with constants, don't record any
14997         value, instead just the constant value itself.
14998         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14999         is not VAR_LOC_UNKNOWN_P, set var to the constant.
15000         (emit_notes_in_bb): Likewise.
15001         (emit_note_insn_var_location): For onepart variables if
15002         cur_loc is a VOIDmode constant, use DECL_MODE.
15003
15004 2010-03-18  Martin Jambor  <mjambor@suse.cz>
15005
15006         PR middle-end/42450
15007         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15008         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15009         all non-clones.  Moved call redirection...
15010         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15011         (cgraph_materialize_all_clones): Dispose of all
15012         combined_args_to_skip bitmaps.
15013         (verify_cgraph_node): Do not check for edges pointing to wrong
15014         nodes in inline clones.
15015         * tree-inline.c (copy_bb): Call
15016         cgraph_redirect_edge_call_stmt_to_callee.
15017         * ipa.c (cgraph_remove_unreachable_nodes): Call
15018         cgraph_node_remove_callees even when there are used clones.
15019
15020 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15021
15022         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15023
15024 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15025
15026         PR target/43383
15027         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15028         for 32bit.
15029
15030 2010-03-18  Michael Matz  <matz@suse.de>
15031
15032         PR middle-end/43419
15033         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15034         into sqrt(x) if we need to preserve signed zeros.
15035
15036 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
15037             Eric Botcazou  <ebotcazou@adacore.com>
15038
15039         PR rtl-optimization/43360
15040         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15041         note if we don't know its invariant status.
15042
15043 2010-03-18  Michael Matz  <matz@suse.de>
15044
15045         PR tree-optimization/43402
15046         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15047         PHI chains of ssa names registered for update.
15048
15049 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
15050
15051         PR target/42427
15052         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15053         non-offsettable and pre_modify update addressing.
15054         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15055         and "2" alternatives "#".
15056         (*movdd_softfloat32): Make all alternatives "#";
15057         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15058         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15059         (*movdf_softfloat32): Make all alternatives "#";
15060         (movdi): Use the new DIFD mode iterator to create a common splitter
15061         for movdi, movdf and movdd patterns.
15062
15063 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
15064
15065         * common.opt (dumpdir): Remove redundant tab.
15066
15067 2010-03-17  Martin Jambor  <mjambor@suse.cz>
15068
15069         PR tree-optimization/43347
15070         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15071         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15072
15073 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
15074
15075         PR rtl-optimization/42216
15076         * regrename.c (create_new_chain): New function, broken out from...
15077         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
15078         appending a use to an empty chain.
15079         (build_def_use): Remove previous changes that convert OP_INOUT to
15080         OP_OUT operands; instead detect the case where an OP_INOUT operand
15081         uses a previously untracked register and create an empty chain for it.
15082
15083 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15084
15085         * doc/extend.texi (Function Attributes): Rewrite unfinished
15086         sentence in ms_abi documentation.
15087
15088 2010-03-17  Alan Modra  <amodra@gmail.com>
15089
15090         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15091         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15092         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15093         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15094
15095 2010-03-16  Richard Henderson  <rth@redhat.com>
15096
15097         PR middle-end/43365
15098         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15099         (lower_try_finally): Save and restore eh_seq around the expansion
15100         of the try-finally.
15101
15102 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15103
15104         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15105         statements before splitting block.
15106
15107 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15108
15109         * doc/sourcebuild.texi (Testsuites): Fix markup.
15110         Use pathnames relative to gcc/testsuite.
15111         (Test Directives): Move description of how timeout is determined.
15112         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15113         (C Tests): Correct gcc.misc-tests directory.
15114         Framework tests now live in gcc.test-framework.
15115
15116 2010-03-16  Richard Guenther  <rguenther@suse.de>
15117
15118         PR middle-end/43379
15119         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15120         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15121
15122 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15123             Alexandre Oliva  <aoliva@redhat.com>
15124
15125         PR tree-optimization/42917
15126         * lambda-code.c (remove_iv): Skip debug statements.
15127         (lambda_loopnest_to_gcc_loopnest): Likewise.
15128         (not_interesting_stmt): Debug statements are not interesting.
15129
15130 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
15131
15132         PR debug/43051
15133         PR debug/43092
15134         * cselib.c (cselib_preserve_constants,
15135         cfa_base_preserved_val): New static variables.
15136         (preserve_only_constants): New function.
15137         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15138         clear its REG_VALUES.  If cselib_preserve_constants, don't
15139         empty the whole hash table, but preserve there VALUEs with constants,
15140         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15141         (cselib_preserve_cfa_base_value): New function.
15142         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15143         (cselib_init): Change argument to int bitfield.  Set
15144         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15145         is in it.
15146         (cselib_finish): Clear cselib_preserve_constants and
15147         cfa_base_preserved_val.
15148         * cselib.h (enum cselib_record_what): New enum.
15149         (cselib_init): Change argument to int.
15150         (cselib_preserve_cfa_base_value): New prototype.
15151         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15152         * dse.c (dse_step1): Likewise.
15153         * cfgcleanup.c (thread_jump): Likewise.
15154         * sched-deps.c (sched_analyze): Likewise.
15155         * gcse.c (local_cprop_pass): Likewise.
15156         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15157         If FN is non-NULL, call the callback always and whenever it returns
15158         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
15159         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15160         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15161         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15162         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15163         * var-tracking.c: Include recog.h.
15164         (bb_stack_adjust_offset): Remove.
15165         (vt_stack_adjustments): Don't call it, instead just gather the
15166         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15167         (adjust_stack_reference): Remove.
15168         (compute_cfa_pointer): New function.
15169         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15170         (struct adjust_mem_data): New type.
15171         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15172         functions.
15173         (get_address_mode): New function.
15174         (replace_expr_with_values): Use it.
15175         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15176         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
15177         (adjust_sets): Remove.
15178         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15179         Use get_address_mode.
15180         (get_adjusted_src): Remove.
15181         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
15182         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
15183         (add_with_sets): Don't call adjust_sets.
15184         (fp_setter, vt_init_cfa_base): New functions.
15185         (vt_initialize): Change return type to bool.  Move most of pool etc.
15186         initialization to the beginning of the function from end.  Pass
15187         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15188         If !frame_pointer_needed, call vt_stack_adjustment before mos
15189         vector is filled, call vt_init_cfa_base if argp/framep has been
15190         eliminated to sp.  If frame_pointer_needed and argp/framep has
15191         been eliminated to hard frame pointer, set
15192         hard_frame_pointer_adjustment and call vt_init_cfa_base after
15193         encountering fp setter in the prologue.  For MO_ADJUST, call
15194         log_op_type before pusing the op into mos vector, not afterwards.
15195         Call adjust_insn before cselib_process_insn/add_with_sets,
15196         call cancel_changes (0) afterwards.
15197         (variable_tracking_main_1): Adjust for vt_initialize calling
15198         vt_stack_adjustments and returning whether it succeeded or not.
15199
15200 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
15201
15202         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15203         debug statements.
15204
15205 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
15206
15207         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15208         has been set.
15209         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15210         drap_reg has not been set.
15211
15212 2010-03-15  Michael Matz  <matz@suse.de>
15213
15214         PR middle-end/43300
15215         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15216         use it to expand block copies.
15217         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15218         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15219         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15220
15221 2010-03-15  Richard Guenther  <rguenther@suse.de>
15222
15223         PR tree-optimization/43367
15224         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15225         elimination check.
15226
15227 2010-03-15  Richard Guenther  <rguenther@suse.de>
15228
15229         PR tree-optimization/43317
15230         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15231
15232 2010-03-15  Martin Jambor  <mjambor@suse.cz>
15233
15234         PR tree-optimization/43141
15235         * tree-sra.c (create_abstract_origin): New function.
15236         (modify_function): Call create_abstract_origin.
15237
15238 2010-03-15  Chris Demetriou  <cgd@google.com>
15239
15240         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15241         wasn't copied.
15242
15243 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15244
15245         PR middle-end/43354
15246         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15247         call insert_out_of_ssa_copy for default definitions.
15248
15249 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15250
15251         * graphite-clast-to-gimple.c (my_long_long): Defined.
15252         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15253         * graphite-sese-to-poly.c (my_long_long): Defined.
15254         (scop_ivs_can_be_represented): Use it.
15255
15256 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15257
15258         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15259         graphite-max-bbs-per-function, and loop-block-tile-size.
15260         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15261         with "maximum".
15262         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15263
15264 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15265
15266         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15267         forward declaration.
15268         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15269         (add_upper_bounds_from_estimated_nit): New.
15270         (build_loop_iteration_domains): Use it.
15271
15272 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15273
15274         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15275
15276 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15277
15278         PR middle-end/43306
15279         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15280         should be an INTEGER_CST.  Also handle CASE_CONVERT.
15281
15282 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15283
15284         * graphite.c (graphite_initialize): To bound the number of bbs per
15285         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15286         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15287         * doc/invoke.texi: Document it.
15288
15289 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15290
15291         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15292         * graphite-sese-to-poly.h (build_poly_scop): Same.
15293
15294 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15295
15296         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15297         the number of parameters in the scop.  Use as an upper bound
15298         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15299         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15300         * doc/invoke.texi: Document it.
15301
15302 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
15303
15304         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15305         * doc/c-tree.texi: Remove.
15306         * doc/generic.texi: Merge c-tree.texi here.
15307         * doc/gccint.texi (Trees): Remove menu entry.
15308         (c-tree.texi): Remove @include.
15309         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15310         * doc/languages.texi (Reading RTL): Ditto.
15311
15312 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
15313
15314         PR target/42869
15315         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15316
15317 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15318
15319         PR middle-end/42431
15320         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15321         code added to work around reload clobbering CONST insns.
15322
15323 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
15324
15325         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15326         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15327         (cselib_preserve_only_values): Remove retain argument, don't
15328         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15329         * cselib.h (cselib_preserve_only_values): Remove retain argument.
15330         * var-tracking.c (micro_operation): Move insn field before union.
15331         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15332         (struct variable_tracking_info_def): Remove n_mos field, change
15333         mos into a vector of micro_operations.
15334         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15335         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15336         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15337         changing into a vector.
15338         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
15339         come before all other uops generated by add_stores.
15340         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15341         argument removal.
15342         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
15343         a vector.  Run just one pass over the bbs instead of separate counting
15344         and computation phase.
15345         (vt_finalize): Free VTI (bb)->mos vector instead of array.
15346
15347         PR debug/43329
15348         * tree-inline.c (remap_decls): Put old_var rather than origin_var
15349         into *nonlocalized_list vector.
15350         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15351         even if origin is non-NULL.
15352         (gen_variable_die): Likewise.
15353         (process_scope_var): Don't change origin.
15354         (gen_decl_die): Likewise.
15355         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15356         before adding new edges instead of after it, fix moving over
15357         debug stmts.
15358
15359 2010-03-11  David S. Miller  <davem@davemloft.net>
15360
15361         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15362         of four.
15363         * configure: Rebuild.
15364
15365 2010-03-11  Martin Jambor  <mjambor@suse.cz>
15366
15367         PR tree-optimization/43257
15368         * tree.c (assign_assembler_name_if_neeeded): New function.
15369         (free_lang_data_in_cgraph): Assembler name assignment moved to the
15370         above new function.
15371         * tree.h (assign_assembler_name_if_neeeded): Declare.
15372         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15373         the function if needed.
15374
15375 2010-03-11  Chris Demetriou  <cgd@google.com>
15376
15377         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15378         include/stdint-gcc.h, and include/stdint.h world-readable.
15379
15380 2010-03-11  Richard Guenther  <rguenther@suse.de>
15381
15382         PR tree-optimization/43255
15383         * tree-vrp.c (process_assert_insertions_for): Do not insert
15384         asserts for trivial conditions.
15385
15386 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15387
15388         PR tree-optimization/43280
15389         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15390         generation.  Move calculation of size out of the if branch.
15391         (find_bswap): Modify compare number generation.
15392
15393 2010-03-11  Richard Guenther  <rguenther@suse.de>
15394
15395         PR lto/43200
15396         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15397         (input_gimple_stmt): Fixup handled component types during
15398         operand read.  Also fix up decls in ADDR_EXPRs.
15399
15400 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
15401
15402         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15403         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15404
15405 2010-03-10  Jan Hubicka  <jh@suse.cz>
15406
15407         PR c/43288
15408         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15409         * varasm.c (get_variable_section): Don't do that here...
15410         (make_decl_rtl): ... and here.
15411         (do_assemble_alias): Produce decl RTL.
15412         (assemble_alias): Likewise.
15413
15414 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
15415
15416         PR debug/43290
15417         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15418         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15419         of fde->vdrap_reg.
15420         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15421         (based_loc_descr): Only express drap or vdrap regno based expressions
15422         using DW_OP_fbreg when not optimizing.
15423         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15424         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15425         REG_CFA_SET_VDRAP note.
15426
15427 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
15428
15429         PR tree-optimization/43236
15430         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15431         error in calculation of base address in reverse iteration case.
15432         (generate_builtin): Take number of latch executions if the statement
15433         is in the latch.
15434
15435 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
15436
15437         PR middle-end/42859
15438         * tree-eh.c: Include pointer-set.h.
15439         (lower_eh_dispatch): Filter out duplicate case labels and
15440         remove the unneeded edge when the label is unused.  Return
15441         true when some edges are removed.
15442         (execute_lower_eh_dispatch): When any lowering resulted in
15443         removing an edge, also delete unreachable blocks.
15444
15445 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
15446
15447         PR bootstrap/43287
15448         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15449         UNSPEC_MACHOPIC_OFFSET.
15450
15451 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
15452
15453         PR target/43294
15454         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15455         (m68k_delegitimize_address): New function.
15456
15457 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
15458
15459         PR debug/43299
15460         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15461
15462         PR debug/43299
15463         * var-tracking.c (adjust_sets): New function.
15464         (count_with_sets, add_with_sets): Use it.
15465         (get_adjusted_src): New inline function.
15466         (add_stores): Use it.
15467
15468         PR debug/43304
15469         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15470         call cselib_dummy_expand_value_rtx_cb instead of
15471         cselib_expand_value_rtx_cb.
15472
15473         PR debug/43293
15474         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15475         * config/i386/i386.c: Include debug.h and dwarf2out.h.
15476         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15477         and .cfi_endproc around the pic thunks.
15478         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15479         all queued unwind info register saves are saved before the call.
15480         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15481         considered as sp-=4 for unwind info and the pop as sp+=4 which
15482         also clobbers dest, but doesn't actually restore it.
15483
15484         PR debug/43290
15485         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15486         RTX_FRAME_RELATED_P.
15487
15488 2010-03-09  Jie Zhang  <jie@codesourcery.com>
15489
15490         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15491         whitespaces in output template.
15492
15493 2010-03-09  Jie Zhang  <jie@codesourcery.com>
15494
15495         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15496         out array boundary.
15497
15498 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15499
15500         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15501         builtins.exp in a separate job.
15502
15503 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15504
15505         * graphite-sese-to-poly.c (add_param_constraints): Use
15506         lower_bound_in_type and upper_bound_in_type.
15507
15508 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15509
15510         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15511         instead of unsigned_type_node.
15512
15513 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15514             Reza Yazdani  <reza.yazdani@amd.com>
15515
15516         PR middle-end/43065
15517         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15518         on pointer type parameters.
15519
15520 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15521
15522         PR middle-end/42644
15523         PR middle-end/42130
15524         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15525         handle conversions from pointer to integers.
15526         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15527         induction variable, to be able to work with code generated by CLooG.
15528         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15529         (build_poly_scop): Bail out if we cannot codegen a loop.
15530
15531 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15532
15533         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15534         code generation with gloog_error.
15535
15536 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15537
15538         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15539         Call fold_convert on all the returned values.
15540         (expand_scalar_variables_expr): Pass to
15541         expand_scalar_variables_ssa_name the type of the resulting expression.
15542
15543 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15544
15545         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15546         ppl_min_for_le_pointset.
15547         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15548         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15549
15550 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15551
15552         * graphite-dependences.c (map_into_dep_poly): Removed.
15553         (dependence_polyhedron_1): Use combine_context_id_scat.
15554
15555 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15556
15557         * graphite-poly.h (struct poly_scattering): Add layout documentation.
15558         (struct poly_bb): Same.
15559         (combine_context_id_scat): New.
15560
15561 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15562
15563         PR middle-end/42326
15564         * sese.c (name_defined_in_loop_p): Return false for default
15565         definitions.
15566
15567 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15568
15569         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15570         and clean up the logic.
15571
15572 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15573
15574         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15575         early return.
15576
15577 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15578
15579         * var-tracking.c (remove_cselib_value_chains): Define only for
15580         ENABLE_CHECKING.
15581         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15582         delete_slot_part, emit_notes_for_differences_1): Don't call
15583         remove_cselib_value_chains here.
15584         (set_slot_part, emit_notes_for_differences_2): Don't call
15585         add_cselib_value_chains here.
15586         (preserved_values): New vector.
15587         (preserve_value): New function.
15588         (add_uses, add_stores, vt_add_function_parameters): Use it
15589         instead of cselib_preserve_value.
15590         (changed_values_stack): New vector.
15591         (check_changed_vars_0): New function.
15592         (check_changed_vars_1, check_changed_vars_2): Use it.
15593         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15594         changed_values_stack VALUEs.
15595         (vt_emit_notes): For all preserved_values call
15596         add_cselib_value_chains.  If ENABLE_CHECKING call
15597         remove_cselib_value_chains before verifying value_chains is empty.
15598         Initialize and free changed_values_stack.
15599         (vt_initialize): Initialize preserved_values.
15600         (vt_finalize): Free preserved_values.
15601
15602 2010-03-08  Richard Guenther  <rguenther@suse.de>
15603
15604         PR tree-optimization/43269
15605         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15606         region detection.
15607
15608 2010-03-08  Martin Jambor  <mjambor@suse.cz>
15609
15610         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15611         (ipa_is_param_called): Removed.
15612         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15613         (ipa_print_node_params): Do not print the called flag.
15614         (ipa_write_node_info): Do not stream the called flag.
15615         (ipa_read_node_info): Likewise.
15616
15617 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
15618
15619         PR debug/43176
15620         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15621         * cselib.c (struct expand_value_data): Add dummy field.
15622         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15623         dummy to false.
15624         (cselib_dummy_expand_value_rtx_cb): New function.
15625         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15626         any rtl.
15627         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15628         * var-tracking.c: Include pointer-set.h.
15629         (variable): Change n_var_parts to char from int.  Add
15630         cur_loc_changed and in_changed_variables fields.
15631         (variable_canonicalize): Remove.
15632         (shared_var_p): New inline function.
15633         (unshare_variable): Maintain cur_loc_changed and
15634         in_changed_variables fields.  If var was in changed_variables,
15635         replace it there with new_var.  Just copy cur_loc instead of
15636         resetting it to something else.
15637         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
15638         (dataflow_set_union): Don't call variable_canonicalize.
15639         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
15640         of their DEBUG_EXPR_TREE_DECLs.
15641         (canonicalize_loc_order_check): Verify that cur_loc is NULL
15642         and in_changed_variables and cur_loc_changed is false.
15643         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
15644         and cur_loc_changed.  Don't update cur_loc here.
15645         (variable_merge_over_src): Don't call variable_canonicalize.
15646         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
15647         removing loc that is equal to cur_loc, clear cur_loc,
15648         set cur_loc_changed and ensure variable_was_changed is called.
15649         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
15650         compare pointers in cur_loc check, if it is equal to loc,
15651         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
15652         (variable_different_p): Remove compare_current_location argument,
15653         don't compare cur_loc.
15654         (dataflow_set_different_1): Adjust variable_different_p caller.
15655         (variable_was_changed): If dv had some var in changed_variables
15656         already, reset in_changed_variables flag for it and propagate
15657         cur_loc_changed over to the new variable.  On empty var
15658         always set cur_loc_changed.  Set in_changed_variables on whatever
15659         var is added to changed_variables.
15660         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
15661         Use shared_var_p.  When removing loc that is equal to cur_loc,
15662         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
15663         end, don't set it to something else, just call variable_was_changed.
15664         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
15665         loc being removed, clear cur_loc and set cur_loc_changed.
15666         Set cur_loc_changed if all locations have been removed.
15667         (struct expand_loc_callback_data): New type.
15668         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
15669         allocated.  Always create SUBREGs if simplify_subreg failed.
15670         Prefer to use cur_loc, when that fails and still in
15671         changed_variables (and seen first time) recompute it.  Set
15672         cur_loc_changed of variables which had to change cur_loc and
15673         compute elcd->cur_loc_changed if any of the subexpressions used
15674         had to change cur_loc.
15675         (vt_expand_loc): Adjust to pass arguments in
15676         expand_loc_callback_data structure.
15677         (vt_expand_loc_dummy): New function.
15678         (emitted_notes): New variable.
15679         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
15680         that weren't used for any other decl in current
15681         emit_notes_for_changes call call vt_expand_loc_dummy to update
15682         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
15683         first loc_chain location if NULL before.  Always use just
15684         cur_loc instead of first loc_chain location.  When cur_loc_changed
15685         is false, when not --enable-checking=rtl just don't emit any note.
15686         When rtl checking, compute the note and assert it is the same
15687         as previous note.  Clear cur_loc_changed and in_changed_variables
15688         at the end before removing from changed_variables.
15689         (check_changed_vars_3): New function.
15690         (emit_notes_for_changes): Traverse changed_vars to call
15691         check_changed_vars_3 on each changed var.
15692         (emit_notes_for_differences_1): Clear cur_loc_changed and
15693         in_changed_variables.  Recompute cur_loc of new_var.
15694         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
15695         (vt_emit_notes): Initialize and destroy emitted_notes.
15696
15697 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
15698
15699         PR rtl-optimization/42220
15700         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
15701         Use verify_reg_tracked to determine if we should use OP_OUT rather
15702         than OP_INOUT.
15703         (build_def_use): If we see an in-out operand for a register that we
15704         know nothing about, treat is an output if possible, fail the block if
15705         not.
15706
15707 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15708
15709         PR debug/42897
15710         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
15711         permanently.
15712
15713 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15714
15715         PR debug/42897
15716         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
15717         uses of relevant DEFs that are dead outside the loop too.
15718
15719 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
15720
15721         * var-tracking.c (dataflow_set_merge): Swap src and src2.
15722         Reverted:
15723         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
15724         PR debug/41371
15725         * var-tracking.c (values_to_unmark): New variable.
15726         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
15727         values_to_unmark vector.  Moved body to...
15728         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
15729         instead queue it into values_to_unmark vector.
15730         (vt_find_locations): Free values_to_unmark vector.
15731
15732 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
15733
15734         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
15735         (site.exp): Export them when plugins are enabled.
15736
15737 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
15738
15739         PR middle-end/42326
15740         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
15741         that contain scevs.
15742         (chrec_fold_multiply): Same.
15743
15744 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15745
15746         PR c/43248
15747         * c-decl.c (build_compound_literal): Return early if init is
15748         an error_mark_node.
15749
15750 2010-03-04  Martin Jambor  <mjambor@suse.cz>
15751
15752         PR tree-optimization/43164
15753         PR tree-optimization/43191
15754         * tree-sra.c (type_consists_of_records_p): Reject records with
15755         zero-size bit-fields at the end.
15756
15757 2010-03-04  Mike Stump  <mikestump@comcast.net>
15758
15759         * Makefile.in (TAGS): Remove *.y.
15760
15761 2010-03-04  Richard Guenther  <rguenther@suse.de>
15762
15763         PR tree-optimization/40761
15764         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
15765         in reverse order.
15766         (my_rev_post_order_compute): New function.
15767         (init_pre): Call it.
15768
15769 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
15770
15771         PR middle-end/43209
15772         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
15773         decrease the cost of an IV candidate when the cost is infinite.
15774
15775 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15776
15777         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
15778         Use '3DNow!' for the extension of that name, ensure normal space
15779         after the string.
15780         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
15781
15782 2010-03-03  Jeff Law  <law@redhat.com>
15783
15784         * PR middle-end/32693
15785         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
15786         than gen_rtx_SUBREG.
15787         (extract_bit_field_1): Likewise.
15788
15789 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
15790
15791         * doc/sourcebuild.texi (Test directives): Document that arguments
15792         include-opts and exclude-opts are now optional for dg-skip-if,
15793         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
15794
15795 2010-03-03  Jason Merrill  <jason@redhat.com>
15796
15797         PR c++/12909
15798         * cgraph.h (varpool_node): Add extra_name field.
15799         * varpool.c (varpool_extra_name_alias): New.
15800         (varpool_assemble_decl): Emit extra name aliases.
15801         (varpool_mark_needed_node): Look past an extra name alias.
15802         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
15803         * lto-streamer-in.c (lto_input_tree): Read it.
15804         * lto-streamer-out.c (output_unreferenced_globals): Write it.
15805
15806 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
15807
15808         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
15809         (sparc*-*-solaris2*): ...this.
15810
15811 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
15812
15813         PR debug/43229
15814         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
15815         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
15816         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
15817         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
15818
15819         PR debug/43237
15820         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
15821         fallthrough to default handling, just with want_address 0 instead of 2.
15822         For single element lists, add_AT_loc directly, otherwise create an
15823         artificial variable DIE and stick location list to it.
15824
15825         PR debug/43177
15826         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
15827         (VAL_EXPR_HAS_REVERSE): Define.
15828         (reverse_op): New function.
15829         (add_stores): For reversible operations add an extra MO_VAL_USE.
15830
15831 2010-03-02  Jason Merrill  <jason@redhat.com>
15832
15833         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
15834
15835 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
15836
15837         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
15838         (sparc64-*-linux*): Likewise.
15839         (sparc64-*-solaris2*): Include assembler files before linker ones.
15840         (sparc-*-solaris2*): Simplify and reorder to match previous case.
15841         * config/sparc/gas.h: Delete.
15842         * config/sparc/sol2-64.h: Add copyright notice.
15843         * config/sparc/sol2-gas-bi.h: Likewise.
15844         * config/sparc/sol2-gld.h: Likewise.
15845         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
15846         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
15847         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
15848         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
15849         (sparc_elf_asm_named_section): Rename into...
15850         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
15851
15852 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
15853
15854         * config/alpha/alpha.c (override_options): Fix -mtune error message.
15855
15856 2010-03-02  Jeff Law  <law@redhat.com>
15857
15858         PR middle-end/42431
15859         * reload1.c (rtx_p, substitute_stack): Declare.
15860         (substitute): Record addresses of changed rtxs.
15861         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
15862         Restore the original rtx when complete.
15863         (reload): Free subsitute_stack when complete.
15864
15865 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
15866
15867         * doc/gccint.texi (menu): Add Testsuites as a chapter.
15868         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
15869         new chapter.
15870         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
15871         LTO Testing, gcov Testing, profopt Testing, compat Testing,
15872         Torture Tests): Change from subsection to section.
15873
15874 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
15875             Steven Bosscher  <steven@gcc.gnu.org>
15876
15877         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
15878         instead of bb.
15879
15880 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
15881
15882         PR middle-end/42640
15883         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
15884         the assignment from the new induction variable to the assignment
15885         of the value from the original loop PHI function.
15886
15887 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
15888             Daniel Jacobowitz  <dan@codesourcery.com>
15889
15890         * doc/sourcebuild.texi (Test directives): Clarify options to
15891         dg-skip-if.
15892
15893 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15894
15895         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
15896         Disable cfi directives unless GCC and gas agree on using read-only
15897         .eh_frame sections for 64-bit.
15898         * configure: Regenerate.
15899
15900 2010-03-01  Richard Guenther  <rguenther@suse.de>
15901
15902         PR tree-optimization/43220
15903         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
15904         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15905
15906 2010-03-01  Richard Guenther  <rguenther@suse.de>
15907             Martin Jambor  <mjambor@suse.cz>
15908
15909         PR middle-end/41250
15910         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15911         gimplified parameters.
15912
15913 2010-03-01  Christian Bruel  <christian.bruel@st.com>
15914
15915         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15916
15917 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
15918
15919         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15920
15921 2010-03-01  Richard Guenther  <rguenther@suse.de>
15922
15923         PR middle-end/43213
15924         * expr.c (expand_assignment): Use the alias-oracle to tell
15925         if the rhs aliases the result decl.
15926
15927 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15928
15929         PR pch/14940
15930         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15931         to sol_gt_pch_get_address.
15932         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15933         64-bit, SPARC and x86.
15934         (sol_gt_pch_get_address): New function.
15935
15936 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
15937
15938         * toplev.h (inform_n, error_n): Declare.
15939         * diagnostic.c (inform_n, error_n): New function.
15940
15941 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
15942
15943         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15944         has no rtl yet when processing local_decls, queue it and recheck
15945         if deferred stack allocation hasn't assigned it rtl.
15946
15947 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15948
15949         * config/sh/sh.c (unspec_bbr_uid): New.
15950         (gen_block_redirect): Use it instead of INSN_UID.
15951         (gen_far_branch): Likewise.
15952
15953 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15954
15955         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15956         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15957
15958 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15959
15960         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15961         (Warning Options): -Wno-conversion-null is valid for
15962         Objective-C++ as well.
15963         * doc/tm.texi (Named Address Spaces): Likewise.
15964         * doc/plugins.texi (Plugins): Replace TABs with spaces.
15965         * doc/tree-ssa.texi (Tree SSA): Likewise.
15966
15967 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15968
15969         PR bootstrap/43202
15970         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15971         by default.  Don't set the default arch for
15972         i[34567]86-*-darwin*|x86_64-*-darwin*.
15973
15974 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15975
15976         PR bootstrap/43202
15977         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15978         default.  Set the default 32bit/64bit archs with $with_arch
15979         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15980
15981 2010-02-27  Richard Guenther  <rguenther@suse.de>
15982
15983         PR tree-optimization/43186
15984         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15985         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15986         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15987         unroller iterations.
15988
15989 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15990
15991         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15992         required and i[34567]86-*-* targets don't support 64bit ISA.
15993
15994 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
15995
15996         PR ada/43096
15997         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15998         the same alias set.
15999
16000 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16001
16002         * config.gcc: Set the default arch at least to Prescott for
16003         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16004         if SSE math is enabled.
16005
16006 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16007
16008         * diagnostic.c (diagnostic_initialize): Update.
16009         (diagnostic_report_diagnostic): Test inhibit_notes_p for
16010         informative notes.
16011         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16012         (diagnostic_inhibit_notes): New.
16013         * toplev.c (process_options): inhibit notes with -fcompare-debug.
16014
16015 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16016
16017         PR c/20631
16018         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16019         * doc/standards.texi: Likewise.
16020         * doc/extend.texi: Likewise.
16021         * doc/trouble.texi: Likewise.
16022         * doc/cppopts.texi: Likewise.
16023         * doc/install.texi: Likewise.
16024         * c.opt (std=c90,std=gnu90): New options.
16025         * c-opts.c (c_common_handle_option): Handle them.
16026
16027 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16028
16029         PR c/24577
16030         * c-decl.c (undeclared_variable): Use an informative note.
16031
16032 2010-02-26  Richard Guenther  <rguenther@suse.de>
16033
16034         PR tree-optimization/43186
16035         * gimple.h (gimple_fold): Remove.
16036         * gimple.c (gimple_fold): Remove.  Inline into single user ...
16037         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16038         Try harder for conditions.
16039
16040 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16041
16042         PR debug/43190
16043         * function.c (used_types_insert): Don't skip through named pointer
16044         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
16045         and it is different from the main variant's type.
16046
16047 2010-02-26  Nick Clifton  <nickc@redhat.com>
16048
16049         * config/rx/rx.md (sminsi3): Remove bogus alternative.
16050
16051 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16052
16053         * config.gcc: Support --with-fpmath=sse for x86.
16054
16055         * config/i386/ssemath.h: New.
16056
16057         * doc/install.texi (--with-fpmath=sse): Documented.
16058
16059 2010-02-26  Richard Guenther  <rguenther@suse.de>
16060
16061         PR tree-optimization/43188
16062         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16063         vector types of over-aligned element type.
16064
16065 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
16066
16067         PR target/43175
16068         * config/i386/i386.c (expand_vec_perm_blend): Use correct
16069         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
16070
16071 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
16072
16073         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16074
16075 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16076
16077         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16078         * var-tracking.c: Include diagnostic.h.
16079         (debug_dv): New function.
16080         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16081
16082         PR debug/43160
16083         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16084         (add_value_chain, add_value_chains, remove_value_chain,
16085         remove_value_chains): Handle DEBUG_EXPRs.
16086         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16087
16088         PR debug/43161
16089         * regcprop.c (struct queued_debug_insn_change): New type.
16090         (struct value_data_entry): Add debug_insn_changes field.
16091         (struct value_data): Add n_debug_insn_changes field.
16092         (debug_insn_changes_pool): New variable.
16093         (free_debug_insn_changes, apply_debug_insn_changes,
16094         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16095         (kill_value_one_regno): Call free_debug_insn_changes if needed.
16096         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16097         fields.
16098         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16099         changes for them.
16100         (copyprop_hardreg_forward_1): Don't call apply_change_group for
16101         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
16102         changes, call cprop_find_used_regs via note_stores.
16103         (copyprop_hardreg_forward): When copying vd from predecessor
16104         which has any queued DEBUG_INSN changes, make sure the pointers are
16105         cleared.  At the end call df_analyze and then if there are any
16106         DEBUG_INSN changes queued at the end of some basic block for still
16107         live registers, apply them.
16108         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16109
16110 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
16111
16112         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16113         (arm*-*-*): Ditto.
16114
16115 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
16116
16117         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16118         targets.  Set the default with_cpu/with_arch from arch/cpu.
16119         Allow x86-64 and native for with_cpu/with_arch.
16120
16121 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
16122
16123         * ebitmap.c: Change calls to verify_popcount with calls to
16124         sbitmap_verify_popcount.
16125         (ebitmap_clear_bit): Fixed map->cacheindex test and
16126         map>cache update when bit clearing results in an empty
16127         element.
16128
16129 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16130
16131         PR target/43154
16132         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16133         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16134         and support both V2DF and V2DI modes.
16135         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16136         support both V2DF and V2DI modes.
16137         (general): Delete trailing whitespace from a few patterns.
16138
16139         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16140         V2DF/V2DI interleave high/low builtins.
16141
16142         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16143         new VSX builtins.
16144
16145         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16146         interleave high/low functions.
16147
16148 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16149
16150         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16151         #pragma extern_prefix.
16152
16153 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
16154
16155         PR debug/43166
16156         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16157         BLKmode, assert op0 is a MEM and just adjust its mode.
16158
16159         PR debug/43165
16160         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16161         if bitpos isn't multiple of mode's bitsize.
16162
16163 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16164
16165         * c.opt (-ftemplate-depth=): New.
16166         (-ftemplate-depth-): Deprecate.
16167         * optc-gen.awk: Handle -ftemplate-depth=.
16168         * opth-gen.awk: Likewise.
16169         * c-opts.c (c_common_handle_option): Likewise.
16170         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16171
16172 2010-02-24  Jason Merrill  <jason@redhat.com>
16173
16174         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16175
16176 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16177
16178         * cfg.c (alloc_aux_for_block): Remove inline.
16179         (alloc_aux_for_edge): Likewise.
16180
16181 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16182
16183         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16184
16185 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16186
16187         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16188         * config/i386/sol2-gas.h: New file.
16189         * config.gcc (i[34567]86-*-solaris2*): Use it.
16190
16191 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16192
16193         PR c/43128
16194         * c-typeck.c (ep_convert_and_check): New.
16195         (build_conditional_expr): Use it.
16196         (build_binary_op): Likewise.
16197
16198 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
16199
16200         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16201
16202         PR debug/43150
16203         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16204         bounds even for -O+.
16205         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16206         expr needs to have DECL_NAME set.
16207
16208 2010-02-24  Nick Clifton  <nickc@redhat.com>
16209
16210         * config/mep/mep.c: Include gimple.h.
16211         (mep_function_uses_sp): Delete unused function.
16212         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16213         parameters.  Use unsigned integers to count args.  Return a
16214         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
16215
16216 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16217
16218         PR target/43107
16219         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16220         greater or equal to nelt instead of 2 * nelt.
16221         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16222         with nelt - 1.
16223
16224 2010-02-23  Jason Merrill  <jason@redhat.com>
16225
16226         PR debug/42800
16227         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16228         in cfun->local_decls even if they have register types.
16229
16230         PR c++/42837
16231         * stor-layout.c (place_field): Don't warn about unnecessary
16232         DECL_PACKED if the type is packed.
16233
16234 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16235
16236         PR target/43139
16237         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16238         GOTOFF relocs, even when the base reg isn't pic pointer.
16239
16240 2010-02-23  Michael Matz  <matz@suse.de>
16241
16242         PR debug/43077
16243         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16244         (expand_gimple_basic_block): Generate and use debug temps if there
16245         are debug uses left after the last real use of TERed ssa names.
16246         Unlink debug immediate uses when they are expanded.
16247
16248 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16249
16250         PR 43123
16251         * config/i386/i386.c (override_options): Reorganise to provide
16252         better error messages.
16253
16254 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16255
16256         PR middle-end/43083
16257         * graphite-scop-detection.c (create_single_exit_edge): Move
16258         the call to find_single_exit_edge to....
16259         (create_sese_edges): ...here.  Don't handle multiple edges
16260         exiting the function.
16261         (build_graphite_scops): Don't handle multiple edges
16262         exiting the function.
16263
16264 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16265
16266         PR middle-end/43097
16267         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16268         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16269
16270 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16271
16272         PR middle-end/43026
16273         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16274
16275 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16276
16277         PR c++/43126
16278         * c-typeck.c (convert_arguments): Print declaration location.
16279         * c-common.c (validate_nargs): Rename as
16280         builtin_function_validate_nargs.
16281         (check_builtin_function_arguments): Update.
16282
16283 2010-02-22  Richard Guenther  <rguenther@suse.de>
16284
16285         PR lto/43045
16286         * tree-inline.c (declare_return_variable): Use the type of
16287         the call stmt lhs if available.
16288
16289 2010-02-22  Duncan Sands  <baldrick@free.fr>
16290
16291         * passes.c (register_pass): Always consider all pass lists when
16292         ref_pass_instance_number is zero.
16293
16294 2010-02-22  Richard Guenther  <rguenther@suse.de>
16295
16296         PR tree-optimization/42749
16297         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16298         parameter.  Do arithmetic in the original type.
16299         (update_accumulator_with_ops): Likewise.
16300         (adjust_accumulator_values): Adjust.
16301
16302 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16303
16304         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16305         (QI to BLKmode splitter): New splitter.
16306
16307 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
16308
16309         * config/i386/i386.c (initial_ix86_tune_features): Turn on
16310         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16311
16312 2010-02-22  Richard Guenther  <rguenther@suse.de>
16313
16314         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16315
16316 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
16317
16318         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16319         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16320         ($(T)crti.o, $(T)crtn.o): Remove rules.
16321
16322 2010-02-21  Tobias Burnus  <burnus@net-b.de>
16323
16324         PR fortran/35259
16325         * doc/invoke.texi (-fassociative-math): Document that this
16326         option is automatically enabled for Fortran.
16327
16328 2010-02-20  David S. Miller  <davem@davemloft.net>
16329
16330         * configure.ac: Test if linker and assembler properly support
16331         GOTDATA_OP relocations.
16332         * configure: Rebuild.
16333         * config.in: Likewise.
16334         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16335         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16336         (movsi_high_pic): Likewise.
16337         (movdi_lo_sum_pic): Likewise.
16338         (movdi_high_pic): Likewise.
16339         (movsi_pic_gotdata_op): New pattern.
16340         (movdi_pic_gotdata_op): Likewise.
16341         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16342         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16343
16344 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
16345
16346         PR target/43067
16347         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16348         attribute to ssemul.
16349         (xop_mulv2div2di3_high): Ditto.
16350
16351 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16352
16353         PR c++/35669
16354         * c.opt (Wconversion-null): New option.
16355         * doc/invoke.texi (Wconversion-null): Document.
16356
16357 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16358
16359         * common.opt (Wlarger-than-): Add Undocumented.
16360
16361 2010-02-19  Mike Stump  <mikestump@comcast.net>
16362
16363         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16364
16365 2010-02-19  Jason Merrill  <jason@redhat.com>
16366
16367         PR target/40332
16368         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16369         * configure: Likewise.
16370
16371 2010-02-20  Alan Modra  <amodra@gmail.com>
16372
16373         PR middle-end/42344
16374         * cgraph.h (cgraph_make_decl_local): Declare.
16375         * cgraph.c (cgraph_make_decl_local): New function.
16376         (cgraph_make_node_local): Use it.
16377         * cgraphunit.c (cgraph_function_versioning): Likewise.
16378         * ipa.c (function_and_variable_visibility): Likewise.
16379
16380 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16381
16382         PR bootstrap/43121
16383         * except.c (sjlj_emit_function_enter): Don't call
16384         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16385         directly.
16386         * rtl.h (add_reg_br_prob_note): Remove prototype.
16387
16388 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16389
16390         PR 41779
16391         * c-common.c (conversion_warning): Remove widening conversions
16392         before checking the conversion of integers to reals.
16393
16394 2010-02-19  Mike Stump  <mikestump@comcast.net>
16395
16396         PR middle-end/43125
16397         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16398
16399         PR objc/43061
16400         * cgraphunit.c (process_function_and_variable_attributes): Check
16401         DECL_PRESERVE_P instead of looking up attribute "used".
16402         * ipa-pure-const.c (check_decl): Likewise.
16403         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16404         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16405         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16406         instead of attribute "used".
16407         * config/sol2-c.c (solaris_pragma_init): Likewise.
16408         (solaris_pragma_fini): Likewise.
16409
16410 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16411
16412         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16413         Use XCNEW instead of xcalloc.
16414         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16415         XNEW instead of xmalloc.
16416         (get_fields): Use XNEWVEC instead of xmalloc.
16417
16418         PR debug/43084
16419         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16420         populate vars array.
16421         (create_new_general_access): For debug stmts just reset value.
16422         (get_stmt_accesses): For accesses within debug stmts just record them
16423         using add_access_to_acc_sites instead of preventing the peeling or
16424         counting them as accesses.
16425
16426         PR middle-end/42233
16427         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16428
16429 2010-02-19  Richard Guenther  <rguenther@suse.de>
16430
16431         PR tree-optimization/42916
16432         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16433         instructions.
16434
16435 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
16436
16437         * configure.ac: Replace all uses of changequote in macro arguments
16438         with proper quoting.
16439
16440 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16441
16442         PR middle-end/42233
16443         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16444
16445 2010-02-19  Richard Guenther  <rguenther@suse.de>
16446
16447         PR tree-optimization/42944
16448         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16449         test for aliasing with errno.
16450
16451 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16452
16453         PR middle-end/42233
16454         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16455         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16456         * dojump.c: Include output.h.
16457         (inv): New inline function.
16458         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16459         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16460         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16461         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16462         argument, pass it down to other calls.
16463         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
16464         add REG_BR_PROB note to the conditional jump.
16465         * cfgexpand.c (add_reg_br_prob_note): Removed.
16466         (expand_gimple_cond): Don't call it, add the probability
16467         as last argument to jumpif_1/jumpifnot_1.
16468         * Makefile.in (dojump.o): Depend on output.h.
16469         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16470         callers.
16471         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16472         * stmt.c (do_jump_if_equal): Likewise.
16473         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16474         * loop-unswitch.c (compare_and_jump_seq): Likewise.
16475         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16476         Likewise.
16477         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16478         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16479         jumpifnot_1 callers.
16480         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16481         callers.
16482         (store_expr): Adjust jumpifnot caller.
16483         (store_constructor): Adjust jumpif caller.
16484
16485         PR middle-end/42233
16486         * gimplify.c (gimple_boolify): For __builtin_expect call
16487         gimple_boolify also on its first argument.
16488
16489 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
16490
16491         * configure.ac (gnu-unique-object): Wrap regexps using [] in
16492         changequote block.
16493         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
16494         * configure: Regenerated.
16495
16496 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16497
16498         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16499         lang_hooks.types_compatible_p instead of comptypes.
16500
16501 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16502
16503         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16504         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16505         if __prefer_thumb__ is defined.
16506
16507 2010-02-18  Martin Jambor  <mjambor@suse.cz>
16508
16509         PR tree-optimization/43066
16510         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16511         array with zero-sized element type.
16512
16513 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
16514
16515         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16516         rtx, allocate struct var_loc_node here and return it to the
16517         caller, and only if it is actually needed.
16518         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16519         move it earlier and return immediately if it returns NULL.
16520
16521 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
16522
16523         * config/sparc/gas.h: New file.  Restore
16524         TARGET_ASM_NAMED_SECTION to its ELF default.
16525         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16526         check !HAVE_GNU_AS.
16527         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16528         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
16529         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16530         after sparc/sysv4.h.
16531
16532 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
16533
16534         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16535
16536 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
16537
16538         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16539         patterns from predicated pattern.
16540
16541 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
16542
16543         PR target/43103
16544         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16545         for insn mnemonic suffix.
16546
16547 2010-02-17  Richard Guenther  <rguenther@suse.de>
16548
16549         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16550         to loop PHI nodes.
16551
16552 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
16553
16554         PR debug/42918
16555         * caller-save.c (save_call_clobbered_regs): If BB ends with
16556         a DEBUG_INSN, move any notes in between last real insn and the last
16557         DEBUG_INSN after the last DEBUG_INSN.
16558
16559 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16560
16561         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16562         Fix return type.  Fix argument type.  Explain meaning of return value.
16563
16564 2010-02-16  Richard Guenther  <rguenther@suse.de>
16565
16566         PR tree-optimization/41043
16567         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
16568         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16569         statements ...
16570         (vrp_visit_phi_node): ... but only for loop PHI nodes.
16571
16572 2010-02-16  Ira Rosen  <irar@il.ibm.com>
16573
16574         PR tree-optimization/43074
16575         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16576         * tree-vect-loop.c (vect_analyze_loop_operations): Add
16577         vectorizable cycles in hybrid SLP check.
16578         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16579
16580 2010-02-16  Richard Guenther  <rguenther@suse.de>
16581
16582         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16583         (true_dependence): If memrefs_conflict_p computes must-alias
16584         trust it.  Move TBAA check after offset-based disambiguation.
16585         (canon_true_dependence): Likewise.
16586
16587 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
16588
16589         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16590         * doc/invoke.texi: Document it.
16591         * var-tracking.c: Include toplev.h and params.h.
16592         (vt_find_locations): Return bool indicating success.  Compute
16593         hash sizes unconditionally.  Check new parameter, report.
16594         (variable_tracking_main_1): Check vt_find_locations results and
16595         retry.  Renamed from...
16596         (variable_tracking_main): ... this.  New wrapper to preserve
16597         flag_var_tracking_assignments.
16598         * Makefile.in (var-tracking.o): Adjust dependencies.
16599
16600 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
16601             Jakub Jelinek  <jakub@redhat.com>
16602
16603         PR target/42854
16604         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16605         if weak_import attribute is present.
16606         * config/darwin.c (machopic_select_section): Likewise.
16607
16608 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
16609
16610         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16611         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16612         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16613         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16614
16615         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16616         types.
16617
16618         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16619         Fix argument types.
16620
16621         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16622         Rewrite text to refer to the names.
16623
16624 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
16625
16626         * config/i386/i386-builtin-types.def
16627         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16628         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
16629         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
16630         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
16631         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
16632         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
16633         IX86_BUILTIN_VPERMIL2PS256.
16634         (MULTI_ARG_4_DF2_DI_I): Defined.
16635         (MULTI_ARG_4_DF2_DI_I1): Defined.
16636         (MULTI_ARG_4_SF2_SI_I): Defined.
16637         (MULTI_ARG_4_SF2_SI_I1): Defined.
16638         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
16639         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
16640         __builtin_ia32_vpermil2ps256.
16641         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16642         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16643         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
16644         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
16645         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
16646         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
16647         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
16648         CODE_FOR_xop_vpermil2v8sf3.
16649         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
16650         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
16651         * config/i386/xopintrin.h (_mm_permute2_pd): New.
16652         (_mm256_permute2_pd): New.
16653         (_mm_permute2_ps): New.
16654         (_mm256_permute2_ps): New.
16655
16656 2010-02-15  Nick Clifton  <nickc@redhat.com>
16657
16658         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
16659         boolean parameters.  Use emit_jump_insn when emitting a pop
16660         instruction containing a return insn.
16661         (push): Use 'true' rather than '1' as second parameter to F.
16662         (h8300_expand_prologue): Likewise.
16663         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
16664         (h8300_expand_epilogue): Likewise.
16665
16666 2010-02-15  Richard Guenther  <rguenther@suse.de>
16667
16668         PR middle-end/43068
16669         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
16670         if that is zero.
16671
16672 2010-02-15  Nick Clifton  <nickc@redhat.com>
16673
16674         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
16675         delta.
16676
16677 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
16678
16679         * intl.c (fake_ngettext): New function.
16680         * intl.h (fake_ngettext): Declare.
16681         (ngettext): Define macro.
16682         * collect2.c (notice_translated): New function.
16683         (main): Use notice_translated and ngettext.
16684         * collect2.h (notice_translated): Declare.
16685
16686 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
16687
16688         * reorg.c (delete_computation): Comment fixes.
16689         * caller-save.c (setup_save_areas): Idem.
16690         * sel-sched-dump.c (dump_lv_set): Idem.
16691         * rtl.def: Idem.
16692
16693 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16694
16695         * config/s390/s390.c (s390_sched_init): New function.
16696         (TARGET_SCHED_INIT): Target hook defined.
16697
16698 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
16699             Jack Howarth  <howarth@bromo.med.uc.edu>
16700             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
16701
16702         PR target/42982
16703         Partial revert of unintended change in fix for PR41605.
16704         * config/darwin.h: Fix typo.
16705         * config/darwin9.h: Same.
16706
16707 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16708
16709         * c-pch.c (pch_init): Clear v.
16710
16711 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16712
16713         PR middle-end/42930
16714         * graphite-scop-detection.c (graphite_can_represent_scev): Call
16715         graphite_can_represent_init for MULT_EXPR.
16716
16717 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16718
16719         PR middle-end/42914
16720         PR middle-end/42530
16721         * graphite-sese-to-poly.c (remove_phi): New.
16722         (translate_scalar_reduction_to_array): Call remove_phi.
16723
16724 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16725
16726         PR middle-end/42771
16727         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
16728         * graphite-clast-to-gimple.h (gloog): Update declaration.
16729         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
16730         * graphite-poly.h (struct poly_bb): Add missing comments.
16731         (struct scop): Add poly_scop_p field.
16732         (POLY_SCOP_P): New.
16733         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
16734         * graphite.c (graphite_transform_loops): Build the polyhedral
16735         representation for each scop before code generation.
16736         * sese.c (rename_variables_in_operand): Removed.
16737         (rename_variables_in_expr): Return the renamed expression.
16738         (rename_sese_parameters): New.
16739         * sese.h (rename_sese_parameters): Declared.
16740
16741 2010-02-11  Richard Guenther  <rguenther@suse.de>
16742
16743         PR tree-optimization/42998
16744         * tree-ssa-pre.c (create_expression_by_pieces): Treat
16745         POINTER_PLUS_EXPR properly.
16746
16747 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
16748             Changpeng Fang  <changpeng.fang@amd.com>
16749
16750         PR middle-end/40886
16751         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
16752         the cost of an IV candidate when the IV is used in a test against zero.
16753
16754         * gcc.dg/tree-ssa/ivopts-3.c: New.
16755
16756 2010-02-11  Richard Guenther  <rguenther@suse.de>
16757
16758         PR lto/41664
16759         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
16760         pointer-vs-decl case by swapping refs.  Handle some cases
16761         of pointer-vs-decl disambiguations more conservatively.
16762         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
16763         to false after expanding.
16764
16765 2010-02-11  Richard Guenther  <rguenther@suse.de>
16766
16767         PR driver/43021
16768         * gcc.c (process_command): Handle LTO file@offset case more
16769         appropriately.
16770
16771 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
16772
16773         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
16774         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
16775         of DEBUG_INSNs.
16776         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
16777
16778         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
16779         if MEM's mode size isn't DWARF2_ADDR_SIZE.
16780         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
16781         Optimize eq/ne comparisons when both arguments are known to be
16782         zero-extended.
16783         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
16784         Don't mask operands unnecessarily if they are known to be already
16785         zero-extended.
16786
16787 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
16788
16789         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
16790         instead of loop.
16791
16792 2010-02-10  Richard Guenther  <rguenther@suse.de>
16793
16794         PR tree-optimization/43017
16795         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
16796         for wrapping signed arithmetic.
16797
16798 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16799
16800         PR debug/43010
16801         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
16802         if no debug info should be emitted for it.
16803
16804 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
16805
16806         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
16807         note when flag_exceptions is set.
16808
16809 2010-02-10  Duncan Sands  <baldrick@free.fr>
16810
16811         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
16812
16813 2010-02-10  Richard Guenther  <rguenther@suse.de>
16814
16815         PR c/43007
16816         * tree.c (get_unwidened): Handle constants.
16817         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
16818
16819 2010-02-10  Martin Jambor  <mjambor@suse.cz>
16820
16821         PR lto/42985
16822         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
16823         check for variable argument counts independently.
16824
16825 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16826
16827         PR target/42841
16828         * config/sh/sh.c (find_barrier): Increase length for non delayed
16829         conditional branches.
16830
16831 2010-02-10  Christian Bruel  <christian.bruel@st.com>
16832
16833         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
16834
16835 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
16836
16837         * builtins.c (set_builtin_user_assembler_name): Also handle
16838         ffs if int is smaller than word.
16839
16840 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
16841
16842         PR middle-end/42973
16843         * ira-conflicts.c (get_dup): Remove.
16844         (process_reg_shuffles): Add new parameter.  Use it as an
16845         additional guard for copy generation.
16846         (add_insn_allocno_copies): Rewrite.
16847
16848 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
16849
16850         * common.opt (fsched2-use-traces): Preserved for backward
16851         compatibility.
16852         * doc/invoke.texi: Remove the documentation about option
16853         -fsched2-use-traces.
16854         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
16855         flag_sched2_use_traces.
16856         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
16857         the backward compatibility flag section.
16858
16859 2010-02-09  Richard Guenther  <rguenther@suse.de>
16860
16861         PR tree-optimization/43008
16862         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
16863         make HEAP variables initialized from global memory if they
16864         are not known builtin functions.
16865         (find_func_aliases): Adjust.
16866
16867 2010-02-09  Richard Guenther  <rguenther@suse.de>
16868
16869         PR tree-optimization/43000
16870         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
16871         arithmetic manually.
16872
16873 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
16874
16875         PR tree-optimization/42931
16876         * tree-loop-linear.c (try_interchange_loops): Don't call
16877         double_int_mul if estimated_loop_iterations failed.
16878
16879 2010-02-08  Martin Jambor  <mjambor@suse.cz>
16880
16881         PR middle-end/42898
16882         * tree-sra.c (build_accesses_from_assign): Do not mark in
16883         should_scalarize_away_bitmap if stmt has volatile ops.
16884         (sra_modify_assign): Do not process assigns piecemeal if if stmt
16885         has volatile ops.
16886
16887 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
16888
16889         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
16890
16891 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
16892
16893         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
16894         before the pattern.
16895
16896 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
16897
16898         PR middle-end/42946
16899         * df-core.c (df_finish_pass): Change type of saved_flags to int.
16900
16901 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16902
16903         PR middle-end/42988
16904         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
16905         to unknown_dependence.
16906         (graphite_legal_transform_dr): Handle the unknown_dependence.
16907         (graphite_carried_dependence_level_k): Same.
16908
16909 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16910
16911         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16912
16913 2010-02-07  Richard Guenther  <rguenther@suse.de>
16914
16915         PR middle-end/42991
16916         * expr.c (get_inner_reference): Always initialize *pbitsize.
16917
16918 2010-02-07  Richard Guenther  <rguenther@suse.de>
16919
16920         PR middle-end/42956
16921         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16922         new ARRAY_REFs on variable size element or minimal index arrays.
16923         Complete.
16924         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16925         gimple_fold_indirect_ref.
16926
16927 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
16928
16929         PR target/42957
16930         * arm.c (arm_override_options): Just return if the user has specified
16931         an invalid fpu name.
16932
16933 2010-02-03  Jason Merrill  <jason@redhat.com>
16934
16935         PR c++/42870
16936         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16937         i386_pe_maybe_record_exported_symbol.
16938
16939 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
16940
16941         PR target/42924
16942         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16943         (pa_delegitimize_address): New function.
16944
16945 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
16946
16947         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16948         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16949
16950 2010-02-05  Richard Guenther  <rguenther@suse.de>
16951
16952         PR lto/42762
16953         * lto-streamer-in.c (get_resolution): Deal with references
16954         to undefined functions.
16955
16956 2010-02-05  Richard Guenther  <rguenther@suse.de>
16957
16958         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16959         (fold_const_aggregate_ref): Likewise.
16960         (ccp_fold_stmt): Substitute loads.
16961         (maybe_fold_reference): Verify types before substituting.
16962         Unshare properly.
16963         (fold_gimple_assign): Unshare properly.
16964         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16965
16966 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
16967
16968         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16969         for rs6000_gen_cell_microcode.
16970
16971 2010-02-04  Richard Guenther  <rguenther@suse.de>
16972
16973         PR rtl-optimization/42952
16974         * dse.c (const_or_frame_p): Remove MEM handling.
16975
16976 2010-02-04  Nick Clifton  <nickc@redhat.com>
16977
16978         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16979         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16980         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16981         (mn10300_asm_output_mi_thunk): New function.
16982         (mn10300_can_output_mu_thunk): New function.
16983         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16984         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
16985         (FUNCTION_ARG): Delete incorrect comment.
16986
16987 2010-02-03  Jason Merrill  <jason@redhat.com>
16988
16989         PR c++/40138
16990         * fold-const.c (operand_equal_p): Handle erroneous types.
16991
16992 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16993
16994         * config/h8300/h8300.md (can_delay): Fix attibute condition.
16995
16996 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16997
16998         PR rtl-optimization/42941
16999         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17000         of xmalloc.
17001
17002 2010-02-03  Jason Merrill  <jason@redhat.com>
17003
17004         PR c++/35652
17005         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17006
17007 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
17008
17009         PR debug/42896
17010         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
17011         (cselib_reset_table): Renamed from...
17012         (cselib_reset_table_with_next_value): ... this.
17013         (cselib_get_next_uid): Renamed from...
17014         (cselib_get_next_unknown_value): ... this.
17015         * cselib.c (next_uid): Renamed from...
17016         (next_unknown_value): ... this.
17017         (cselib_clear_table): Adjust.
17018         (cselib_reset_table): Adjust.  Renamed from...
17019         (cselib_reset_table_with_next_value): ... this.
17020         (cselib_get_next_uid): Adjust.  Renamed from...
17021         (cselib_get_next_unknown_value): ... this.
17022         (get_value_hash): Use hash.
17023         (cselib_hash_rtx): Likewise.
17024         (new_cselib_val): Adjust.  Set and dump uid.
17025         (cselib_lookup_mem): Pass next_uid as hash.
17026         (cselib_subst_to_values): Likewise.
17027         (cselib_log_lookup): Dump uid.
17028         (cselib_lookup): Pass next_uid as hash.  Adjust.
17029         (cselib_process_insn): Adjust.
17030         (cselib_init): Initialize next_uid.
17031         (cselib_finish): Adjust.
17032         (dump_cselib_table): Likewise.
17033         * dse.c (canon_address): Dump value uid.
17034         * print-rtl.c (print_rtx): Print value uid.
17035         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17036         (dvuid): New type.
17037         (dv_uid): New function, sort of renamed from...
17038         (dv_htab_hash): ... this, reimplemented in terms of it and...
17039         (dv_uid2hash): ... this.  New.
17040         (variable_htab_eq): Drop excess assertions.
17041         (tie_break_pointers): Removed.
17042         (canon_value_cmp): Compare uids.
17043         (variable_post_merge_New_vals): Print uids.
17044         (vt_add_function_parameters): Adjust.
17045         (vt_initialize): Reset table.  Adjust.
17046
17047 2010-02-03  Richard Guenther  <rguenther@suse.de>
17048
17049         PR tree-optimization/42944
17050         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17051         (call_may_clobber_ref_p_1): Likewise.  Properly handle
17052         malloc and calloc clobbering errno.
17053
17054 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
17055
17056         * doc/invoke.texi: Fix name of sched1 dump.
17057
17058         * opts.c (decode_options): Set flag_tree_switch_conversion
17059         only conditionally on optimize >= 2.
17060
17061         * gcse.c: Assorted comment fixes in pass description.
17062
17063 2010-02-03  Anthony Green  <green@moxielogic.com>
17064
17065         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17066         nop padding in order to maintain alignment of storage location of
17067         target function address.
17068         (moxie_trampoline_init): Store target function address at newly
17069         aligned location.
17070         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17071         to 32.
17072         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17073
17074 2010-02-03  Richard Guenther  <rguenther@suse.de>
17075
17076         PR middle-end/42927
17077         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17078
17079 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17080
17081         * config.gcc: Reenable check for obsolete targets.
17082         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17083         mips-sgi-irix6.[0-4]*.
17084
17085 2010-02-02  Nick Clifton  <nickc@redhat.com>
17086
17087         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17088         constant size of 4 as being the same as 0.
17089         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17090         can take values in the range 0..4.
17091
17092 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
17093
17094         PR java/41991
17095         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17096         as _darwin10_Unwind_FindEnclosingFunction().
17097         * libgcc-libsystem.ver: New.
17098
17099 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
17100
17101         PR target/41399
17102         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17103         implicitly set registers.
17104
17105 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
17106
17107         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17108         (arm_override_options): Allow automatic selection of the thread
17109         pointer register if thumb2.
17110         (legitimize_pic_address): Improve code sequences for Thumb2.
17111         (arm_call_tls_get_addr): Likewise.
17112         (legitimize_tls_address): Likewise.
17113         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
17114         (pic_load_addr_32bit): ... this.  New named pattern.
17115         * thumb2.md (pic_load_addr_thumb2): Delete.
17116         (pic_load_dot_plus_four): Delete.
17117         (tls_load_dot_plus_four): New named pattern.
17118
17119 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17120
17121         PR libgomp/29986
17122         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17123         Document fix for TLS bug.
17124
17125 2010-01-31  Richard Guenther  <rguenther@suse.de>
17126
17127         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17128         conservatively correct.
17129
17130 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17131
17132         PR target/42850
17133         Revert:
17134         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17135
17136         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17137
17138 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17139
17140         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17141
17142 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
17143
17144         * config.gcc: Adjust order of makefile fragments for mingw targets.
17145
17146 2010-01-31  Richard Guenther  <rguenther@suse.de>
17147
17148         PR middle-end/42898
17149         * gimplify.c (gimplify_init_constructor): For volatile LHS
17150         initialize a temporary.
17151
17152 2010-01-31  Matthias Klose  <doko@ubuntu.com>
17153
17154         * configure.ac: Fix __stack_chk_fail check for cross builds configured
17155         --with-headers
17156         * configure: Regenerate.
17157
17158 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
17159
17160         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17161         the same alias set and their sizes different constantness.
17162         (aliasing_component_refs_p): Revert 2009-10-24 change.
17163
17164 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17165
17166         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17167         unused.
17168
17169 2010-01-29  Richard Guenther  <rguenther@suse.de>
17170
17171         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17172         Assert we successfully updated the call.
17173
17174 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
17175
17176         PR rtl-optimization/42889
17177         * df.h (df_set_bb_dirty_nonlr): New prototype.
17178         * df-core.c (df_set_bb_dirty_nonlr): New function.
17179         * df-scan.c (df_insn_rescan): Call it instead of
17180         df_set_bb_dirty for DEBUG_INSNs.
17181
17182 2010-01-29  Richard Guenther  <rguenther@suse.de>
17183
17184         PR middle-end/37448
17185         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17186         quadratic behavior in most cases.
17187
17188 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
17189
17190         PR target/42891
17191         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17192         in the call to gen_x86_movsicc_0_m1.
17193
17194 2010-01-28  Richard Guenther  <rguenther@suse.de>
17195
17196         PR tree-optimization/42871
17197         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17198
17199 2010-01-28  Richard Guenther  <rguenther@suse.de>
17200
17201         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17202         into call arguments.
17203
17204 2010-01-28  Richard Guenther  <rguenther@suse.de>
17205
17206         PR middle-end/42883
17207         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17208         the forwarder if the destination is an EH landing pad.
17209
17210 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
17211
17212         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17213         block list passed to gimple_duplicate_sese_tail.
17214         (parallelize_loops): Avoid parallelization when the function
17215         has_nonlocal_label.
17216         Avoid parallelization when the preheader is IRREDUCIBLE.
17217         Try to optimize when estimated_loop_iterations_int is unresolved.
17218         Add the loop's location to the dump file.
17219         * tree-cfg.c (add_phi_args_after_redirect): Remove.
17220         (gimple_duplicate_sese_tail): Remove the check for the latch.
17221         Redirect nexits to the exit block.
17222         Remove handling of the incoming edges to the latch.
17223         Redirect the backedge from the copied latch to the exit bb.
17224
17225 2010-01-28  Michael Matz  <matz@suse.de>
17226
17227         PR target/42881
17228         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17229         Wrap force_reg into a sequence, emit it before user.
17230
17231 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
17232
17233         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17234         (arm_rev): New.
17235         (arm_legacy_rev): Likewise.
17236         (thumb_legacy_rev): Likewise.
17237
17238 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17239
17240         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17241         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
17242         on MEM's address failed, try avoid_constant_pool_reference and
17243         recurse if it returned something different.
17244         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17245         address, try avoid_constant_pool_reference and recurse if it
17246         returned something different.
17247         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17248         address and avoid_constant_pool_reference returned something
17249         different, don't set have_address.
17250
17251 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
17252
17253         PR debug/42861
17254         * var-tracking.c (val_store): Add modified argument, obey it.
17255         Adjust callers.
17256         (count_uses): Move down logging of main.
17257         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17258         don't need resolution.
17259         (emit_notes_in_bb): Likewise.
17260
17261 2010-01-27  Richard Guenther  <rguenther@suse.de>
17262
17263         PR middle-end/42878
17264         * tree-inline.c (remap_decl): Delay remapping of SSA name
17265         default definitions until we need them.
17266
17267 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17268
17269         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17270         (rs6000_delegitimize_address): New function.
17271
17272         * config/s390/s390.c (s390_delegitimize_address): Call
17273         delegitimize_mem_from_attrs.
17274
17275         PR middle-end/42874
17276         * tree-inline.c (cannot_copy_type_1): Removed.
17277         (copy_forbidden): Don't forbid copying of functions containing
17278         records/unions with variable length fields.
17279
17280 2010-01-27  Christian Bruel  <christian.bruel@st.com>
17281
17282         Revert:
17283         PR target/42841
17284         * config/sh/sh.c (find_barrier): Increase length for non delayed
17285         conditional branches.
17286
17287 2010-01-27  Matthias Klose  <doko@ubuntu.com>
17288
17289         * configure.ac (gnu-unique-object): Fix ldd version check.
17290         * configure: Regenerate.
17291
17292 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17293
17294         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17295         HAVE_GNU_AS value.
17296         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17297         Test for HAVE_GNU_AS value.
17298
17299 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17300
17301         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17302         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17303         INT64_TYPE): Define.
17304         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17305         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17306         INT_LEAST64_TYPE): Define.
17307         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17308         UINT_LEAST64_TYPE): Define.
17309         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17310         INT_FAST64_TYPE): Define.
17311         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17312         UINT_FAST64_TYPE): Define.
17313         (INTMAX_TYPE, UINTMAX_TYPE): Define.
17314         (INTPTR_TYPE, UINTPTR_TYPE): Define.
17315         (SIG_ATOMIC_TYPE): Define.
17316
17317 2010-01-26  Richard Guenther  <rguenther@suse.de>
17318
17319         * df-scan.c (df_scan_set_bb_info): Remove assert.
17320         (df_insn_rescan_debug_internal): Merge asserts.
17321         (df_install_ref): Likewise.
17322         (df_mark_reg): Use bitmap_set_range.
17323         (df_hard_reg_used_p): Remove assert.
17324         (df_hard_reg_used_count): Likewise.
17325
17326 2010-01-26  Richard Guenther  <rguenther@suse.de>
17327
17328         PR rtl-optimization/42685
17329         * web.c (web_main): Ignore DEBUG_INSNs.
17330
17331 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
17332
17333         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17334
17335         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17336         Fix types of fndecl and arglist parameters.
17337
17338 2010-01-26  Richard Guenther  <rguenther@suse.de>
17339
17340         PR middle-end/42806
17341         * tree-eh.c (unsplit_eh): Skip debug insns.
17342
17343 2010-01-26  Richard Guenther  <rguenther@suse.de>
17344
17345         PR tree-optimization/42250
17346         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17347
17348 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17349
17350         PR fortran/42866
17351         * omp-low.c (expand_omp_sections): Only use single_pred if
17352         l2_bb is single_pred_p.
17353
17354 2010-01-25  Christian Bruel  <christian.bruel@st.com>
17355
17356         PR target/42841
17357         * config/sh/sh.c (find_barrier): Increase length for non delayed
17358         conditional branches.
17359         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17360
17361 2010-01-24  David S. Miller  <davem@davemloft.net>
17362
17363         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17364         define if not using GAS.
17365         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17366         Likewise.  Delete SECTION_MERGE code, which is only applicable
17367         when using GAS.
17368
17369 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
17370
17371         PR c++/42748
17372         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17373         mangling of va_list in system headers.
17374
17375 2010-01-23  Toon Moene  <toon@moene.org>
17376
17377         * tree-predcom.c (combine_chains): Return NULL, not false.
17378
17379 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
17380
17381         * tree-loop-distribution.c (distribute_loop): Fix declaration and
17382         initialization of variable res to agree with return type.
17383
17384 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
17385
17386         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17387         * tree-sra.c: Add include of expr.h.
17388
17389 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
17390
17391         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17392         insert the debug stmt on the single non-EH edge from the stmt.
17393
17394 2010-01-22  Richard Henderson  <rth@redhat.com>
17395
17396         PR tree-opt/42833
17397         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17398         the RHS until after generate_subtree_copies has insertted its
17399         code before the current statement.
17400
17401 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
17402
17403         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17404
17405         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17406
17407 2010-01-21  Martin Jambor  <mjambor@suse.cz>
17408
17409         PR tree-optimization/42585
17410         * tree-sra.c (struct access): New field grp_total_scalarization.
17411         (dump_access): Dump the new field.
17412         (should_scalarize_away_bitmap): New variable.
17413         (cannot_scalarize_away_bitmap): Likewise.
17414         (sra_initialize): Allocate new bitmaps.
17415         (sra_deinitialize): Free new bitmaps.
17416         (create_access_1): New function.
17417         (create_access): Parts moved to create_access_1.
17418         (type_consists_of_records_p): New function.
17419         (completely_scalarize_record): Likewise.
17420         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17421         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17422         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17423         access.
17424         (analyze_all_variable_accesses): Completely scalarize small eligible
17425         records.
17426
17427 2010-01-21  Martin Jambor  <mjambor@suse.cz>
17428
17429         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17430
17431 2010-01-21  Andrew Haley  <aph@redhat.com>
17432
17433         * gcc.c (process_command): Move lang_specific_driver before
17434         setting cc_libexec_prefix.
17435
17436 2010-01-21  Richard Guenther  <rguenther@suse.de>
17437
17438         PR middle-end/19988
17439         * fold-const.c (negate_expr_p): Pretend only negative
17440         real constants are easily negatable.
17441
17442 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
17443             Jason Merrill  <jason@redhat.com>
17444
17445         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17446         (TYPE_TRANSPARENT_AGGR): this, for union and record.
17447         * calls.c (initialize argument_information): Handle it.
17448         * c-common.c (handle_transparent_union_attribute): Use new name.
17449         * c-decl.c (finish_struct): Ditto.
17450         * c-typeck.c (type_lists_compatible_p): Ditto.
17451         (convert_for_assignment): Use new name and also handle record.
17452         * function.c (aggregate_value_p): Handle it.
17453         (pass_by_reference): Ditto.
17454         (assign_parm_data_types): Ditto.
17455         * print-tree.c (print_node): Ditto.
17456         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17457         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17458         * tree.c (first_field): New fn.
17459
17460 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
17461
17462         PR target/42818
17463         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17464         even when linking statically, for now.
17465
17466 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
17467
17468         PR debug/42715
17469         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17470         without a cselib val.
17471         (count_uses): Accept MO_VAL_SET with no val on stores.
17472         (add_stores): Likewise.
17473
17474 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17475
17476         * var-tracking.c (check_value_val): Add a compile time assertion.
17477         (dv_is_decl_p): Simplify.
17478         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17479         gcc_assert if ENABLE_CHECKING.
17480
17481 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
17482
17483         PR debug/42782
17484         * var-tracking.c: Include tree-flow.h.
17485         (mem_dies_at_call): New.
17486         (dataflow_set_preserve_mem_locs): Use it.
17487         (dataflow_set_remove_mem_locs): Likewise.
17488         (dump_var): Renamed from dump_variable.  Adjust all callers.
17489         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
17490         * Makefile.in (var-tracking.o): Adjust deps.
17491
17492 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
17493
17494         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17495
17496 2010-01-20  Richard Guenther  <rguenther@suse.de>
17497
17498         PR tree-optimization/42717
17499         * tree-ssa-dce.c (get_live_post_dom): Remove.
17500         (forward_edge_to_pdom): Take an arbitrary edge to copy
17501         degenerate PHI args from.
17502         (remove_dead_stmt): Use the first post-dominator even if it
17503         does not contain live statements as redirection destination.
17504
17505 2010-01-20  Richard Guenther  <rguenther@suse.de>
17506
17507         * tree-inline.c (estimate_num_insns): Handle EH builtins.
17508
17509 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17510
17511         * sel-sched.c (create_speculation_check): Remove set but not used
17512         variable twin.
17513         (try_transformation_cache): Remove set but not used variable ds.
17514         (calculate_privileged_insns): Remove set but not used variables
17515         cur_insn and min_spec_insn.
17516         (find_best_expr): Remove set but not used variable avail_n.
17517         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17518         variable e.
17519         * cgraphunit.c (assemble_thunk): Remove set but not used variable
17520         false_label.
17521         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17522         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17523         new_scop_exit_edge.
17524
17525 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
17526
17527         PR bootstrap/42786
17528         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17529         cpu types.  Add support for *-sse3 cpu types.
17530         (x86_64-*-*): Ditto.
17531
17532 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17533
17534         PR middle-end/42803
17535         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17536         argument, call initializer_constant_valid_p_1 instead of
17537         initializer_constant_valid_p, pass CACHE to it, return NULL
17538         immediately if first call returns NULL.
17539         (initializer_constant_valid_p_1): New function.
17540         (initializer_constant_valid_p): Use it.
17541
17542 2010-01-20  Thomas Quinot  <quinot@adacore.com>
17543
17544         * tree.def (PLACEHOLDER_EXPR): Fix comment.
17545
17546 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17547
17548         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17549         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17550         (loc_list_from_tree): Don't handle unsigned division.  Handle
17551         signed modulo using DW_OP_{over,over,div,mul,minus}.
17552         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17553         modulo instead of signed.
17554
17555 2010-01-20  DJ Delorie  <dj@redhat.com>
17556
17557         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17558         (Fpa): Pass it
17559         (h8300_emit_stack_adjustment): Propogate it.
17560         (push): Pass it.
17561         (h8300_expand_prologue): Likewise.
17562         (h8300_expand_epilogue): Likewise.
17563
17564 2010-01-19  Michael Matz  <matz@suse.de>
17565
17566         PR tree-optimization/41783
17567         * tree-data-ref.c (toplevel): Include flags.h.
17568         (dump_data_dependence_relation):  Also dump the inputs if the
17569         result will be unknown.
17570         (split_constant_offset_1): Look through some conversions.
17571         * tree-predcom.c (determine_roots_comp): Restart a new chain if
17572         the offset from last element is too large.
17573         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17574         (reassociate_to_the_same_stmt): Handle vector registers.
17575         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17576         (e.g. conversions).
17577         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17578         wide_prolog_niters argument, emit widening instructions.
17579         (vect_do_peeling_for_alignment): Adjust caller, use widened
17580         variant of the iteration cound.
17581         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17582
17583 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17584
17585         PR target/38697
17586         * config/arm/neon-testgen.m (emit_automatics): New parameter
17587         features. Adjust for Fixed_return_reg feature.
17588         (test_intrinsic): Call emit_automatics with new feature.
17589         * config/arm/neon.ml: Update copyright years.
17590         (features): New Fixed_return_reg feature.
17591         (ops): Update feature for Vget_low.
17592
17593 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
17594
17595         PR tree-optimization/42719
17596         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17597         stmt uses.
17598
17599         PR debug/42728
17600         * fwprop.c (all_uses_available_at): Return false if def_set dest
17601         is a REG that is used in def_insn.
17602
17603 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
17604
17605         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17606
17607         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17608         Add argument names.
17609
17610         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17611
17612         * target.h (struct gcc_target) <secondary_reload>: Change type
17613         of last argument to secondary_reload_info *.
17614
17615 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
17616
17617         PR target/42774
17618         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17619         memory references with unaligned offsets.  Remove CQImode handling.
17620         (unaligned_memory_operand): Return 1 for memory references with
17621         unaligned offsets.  Remove CQImode handling.
17622
17623 2010-01-18  Richard Guenther  <rguenther@suse.de>
17624
17625         PR middle-end/39954
17626         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17627         builtin calls.
17628
17629 2010-01-18  Richard Guenther  <rguenther@suse.de>
17630
17631         PR tree-optimization/42781
17632         * tree-ssa-structalias.c (find_what_var_points_to): Skip
17633         restrict processing only if the original variable was artificial.
17634
17635 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
17636
17637         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
17638         find number of popped argument bytes.
17639
17640         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
17641         Fix the text that describes the return value for invalid insns.
17642
17643         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
17644
17645         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
17646         Clarify what 'cost of the -dependence' is.  Fix quoting.
17647
17648         * toplev.c (default_get_pch_validity): Rename argument to "sz".
17649         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
17650
17651 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
17652
17653         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
17654         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
17655
17656 2010-01-17  Richard Guenther  <rguenther@suse.de>
17657
17658         PR middle-end/42248
17659         * function.c (split_complex_args): Take a VEC to modify.
17660         (assign_parms_augmented_arg_list): Build a VEC instead of
17661         a chain of PARM_DECLs.
17662         (assign_parms_unsplit_complex): Take a VEC of arguments.
17663         Do not fixup unmodified parms.
17664         (assign_parms): Deal with the VEC.
17665         (gimplify_parameters): Likewise.
17666
17667 2010-01-17  Richard Guenther  <rguenther@suse.de>
17668
17669         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
17670         node existence check.
17671         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
17672         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
17673         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17674         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
17675         (gimple_execute_on_growing_pred): Likewise.
17676
17677 2010-01-17  Richard Guenther  <rguenther@suse.de>
17678
17679         PR tree-optimization/42773
17680         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
17681         (compute_antic_aux): Likewise.
17682         (compute_partial_antic_aux): Likewise.
17683
17684 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
17685
17686         PR debug/42767
17687         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
17688         and US_TRUNCATE.
17689
17690 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
17691
17692         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
17693         appearance.
17694
17695         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
17696         Fix markup for strict argument.
17697
17698         (TARGET_SCHED_REORDER2): Fix argument types.
17699
17700         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
17701         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
17702
17703         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
17704         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
17705
17706         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
17707         Add argument name.
17708
17709         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
17710         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
17711         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
17712         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
17713         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
17714
17715         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
17716
17717         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
17718
17719         (TARGET_ASM_RELOC_RW_MASK): Add return type.
17720         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
17721
17722         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
17723
17724         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
17725         Use prototype.
17726
17727         (TARGET_ASM_NAMED_SECTION): Fix argument list.
17728
17729         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
17730         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
17731
17732         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
17733
17734         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
17735
17736         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
17737         referring to it.  Fix language.
17738
17739         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
17740
17741         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
17742
17743         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
17744
17745         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
17746
17747         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
17748         '@var{stream}.  Remove stray 'and'.
17749
17750         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
17751
17752         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
17753
17754         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
17755
17756         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
17757         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
17758
17759         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
17760         Fix description of return value.
17761         Rename argument "sz" to "len."
17762
17763         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
17764         Clarify meaning of 'true' return value.
17765
17766         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
17767
17768         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
17769         rep_mode versus mode_rep.
17770
17771         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
17772
17773         (TARGET_BUILTIN_DECL): Fix name.
17774
17775         (TARGET_COMMUTATIVE_P): Fix type of first argument.
17776
17777         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
17778
17779         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
17780
17781         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
17782
17783         (TARGET_RELAXED_ORDERING): Use @deftypevr.
17784
17785         (TARGET_GET_DRAP_RTX): Note that this is a hook.
17786         Clarify language.
17787
17788         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
17789         Rename argument tm_fn to md_fn.
17790
17791         (TARGET_OPTION_PRINT): Fix argument list.
17792
17793 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
17794
17795         PR target/42664
17796         * config/i386/i386.c (ix86_fixup_binary_operands):
17797         Revert FMA4 fixup of operands.
17798
17799 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17800
17801         PR gcc/42525
17802         * Makefile.in (write_entries_to_file, install-plugin):
17803         Use \012 instead of \n with tr.
17804
17805 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
17806
17807         * configure.ac (HAVE_AS_REF): New C macro.
17808         * configure: Regenerate.
17809         * config.in: Likewise.
17810         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
17811         if HAVE_AS_REF.
17812         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
17813         if HAVE_AS_REF.
17814
17815 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
17816
17817         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
17818
17819         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
17820
17821         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
17822
17823         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
17824
17825         (TARGET_IN_SMALL_DATA_P): Fix argument type.
17826
17827         (TARGET_BINDS_LOCAL_P): Fix argument type.
17828
17829         (TARGET_ASM_FILE_END): Use prototype.
17830
17831         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
17832
17833         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
17834
17835         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
17836
17837         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
17838
17839         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
17840         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
17841
17842         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
17843         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
17844
17845         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
17846         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
17847         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
17848         (TARGET_ADDR_SPACE_CONVERT): Likewise.
17849
17850         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
17851
17852         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
17853
17854         (TARGET_INIT_BUILTINS): Use prototype.
17855
17856         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
17857         Put 'const char *' in braces.  Fix parameter types.
17858         (TARGET_INVALID_CONVERSION): Fix parameter types.
17859         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
17860         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
17861
17862         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
17863         Fix argument type.
17864
17865         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
17866
17867         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
17868
17869 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
17870
17871         * doc/tm.texi (TARGET_HELP): Fix return type.
17872
17873         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
17874         in braces.  Fix argument types.
17875
17876         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
17877
17878         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
17879
17880         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
17881
17882         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
17883         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
17884
17885         (TARGET_MANGLE_TYPE): Fix argument types.
17886
17887         (TARGET_IRA_COVER_CLASSES): Use prototype.
17888
17889         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
17890
17891         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
17892
17893         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
17894
17895         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
17896
17897         (TARGET_CALLEE_COPIES): Fix argument types.
17898
17899         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
17900
17901         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
17902
17903         (TARGET_FUNCTION_VALUE): Fix argument types.
17904
17905         (TARGET_RETURN_IN_MSB): Fix argument type.
17906
17907         (TARGET_RETURN_IN_MEMORY): Fix argument types.
17908
17909         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17910
17911         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17912
17913         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17914         agree with return type.
17915
17916         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17917
17918 2010-01-15  Jing Yu  <jingyu@google.com>
17919
17920         PR rtl-optimization/42691
17921         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17922         a pseudo to a constant and are merged, and adjust comments.
17923
17924 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17925
17926         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17927
17928 2010-01-15  Richard Guenther  <rguenther@suse.de>
17929
17930         PR middle-end/42739
17931         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17932         labels of computed or non-local gotos to the destination.
17933         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17934         landing pad label is the first label.
17935
17936 2010-01-15  Richard Guenther  <rguenther@suse.de>
17937
17938         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17939
17940 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17941
17942         PR target/42747
17943         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17944         to allow generation of the xssqrtdp instruction on power7.
17945         (sqrtdf2_fpr): Ditto.
17946
17947 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17948
17949         PR middle-end/42674
17950         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17951         functions with noreturn attribute.
17952
17953         PR c++/42608
17954         * varasm.c (declare_weak): Add weak attribute to decl if it
17955         doesn't have one already.
17956         (assemble_external): Only add decls to weak_decls if they also
17957         have weak attribute.
17958
17959 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
17960
17961         * var-tracking.c (var_reg_delete): Don't delete the association
17962         between REGs and values or one-part variables if the register
17963         isn't clobbered.
17964
17965 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17966
17967         PR debug/42657
17968         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17969         because its first operand is a non-localized variable.
17970
17971 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17972
17973         PR tree-optimization/42706
17974         * tree-sra.c (encountered_recursive_call): New variable.
17975         (encountered_unchangable_recursive_call): Likewise.
17976         (sra_initialize): Initialize both new variables.
17977         (callsite_has_enough_arguments_p): New function.
17978         (scan_function): Call decl and flags check only for IPA-SRA, check
17979         whether there is a recursive call and whether it has enough arguments.
17980         (all_callers_have_enough_arguments_p): New function.
17981         (convert_callers): Look for recursive calls only when
17982         encountered_recursive_call is set.
17983         (ipa_early_sra): Bail out either if
17984         !all_callers_have_enough_arguments_p or
17985         encountered_unchangable_recursive_call.
17986
17987 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17988
17989         * sel-sched.c: Add 2010 to copyright years.
17990         * sel-sched-ir.c: Likewise.
17991         * sel-sched-ir.h: Likewise.
17992
17993 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17994
17995         PR tree-optimization/42714
17996         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17997         constructors specially.
17998
17999 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18000
18001         * config/i386/drivers-i386.c (detect_caches_intel):
18002         Add l2sizekb parameter and fill in.
18003         (host_detect_local_cpu): Add l2sizekb, fill in.
18004         Add Atom small cache heuristic.
18005
18006 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18007
18008         * config/i386/drivers-i386.c (detect_caches_cpuid4):
18009         Add level3 parameter and fill in.
18010         (detect_caches_intel): Handle level3 cache.
18011
18012 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18013
18014         * config/i386/drivers-i386.c (host_detect_local_cpu):
18015         Fix core duo detection.
18016
18017 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18018
18019         * config/i386/drivers-i386.c (host_detect_local_cpu):
18020         Fix Atom detection.
18021
18022 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18023
18024         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18025         (rs6000_variable_issue_1): this.  Use...
18026         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
18027
18028 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18029
18030         * sel-sched-ir.c (sel_restore_other_notes): Rename to
18031         sel_restore_notes.  Update all callers.  Call reemit_notes
18032         for all insns.
18033
18034 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18035
18036         PR rtl-optimization/42246
18037         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18038         loops.
18039
18040 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18041
18042         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18043         all successors is the same as number of successors in current region.
18044
18045 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18046
18047         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18048         to rename is not separable.  Otherwise check that its LHS is not NULL.
18049
18050 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18051
18052         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
18053
18054 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18055
18056         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18057         available registers when failed to discover LHS register class.
18058         Fix indentation.  Update comment.
18059
18060 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18061             Alexander Monakov  <amonakov@ispras.ru>
18062
18063         PR rtl-optimization/42389
18064         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18065         to can_issue_more.
18066         (advance_state_on_fence): Likewise.
18067         (sel_target_adjust_priority): Print debug output only when
18068         sched_verbose >= 4, not 2.
18069         (get_expr_cost): Do not issue all unique insns on the next cycle.
18070         (fill_insns): Initialize can_issue_more from the value saved
18071         with the fence.
18072         * sel-sched-ir.c (flist_add): New parameter issue_more.
18073         Init FENCE_ISSUE_MORE with it.
18074         (merge_fences): Likewise.
18075         (init_fences): Update call to flist_add.
18076         (add_to_fences, add_clean_fence_to_fences)
18077         (add_dirty_fence_to_fences): Likewise.
18078         (move_fence_to_fences): Update call to merge_fences.
18079         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18080         sched groups.
18081         * sel-sched-ir.h (struct _fence): New field issue_more.
18082         (FENCE_ISSUE_MORE): New accessor macro.
18083
18084 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18085
18086         PR rtl-optimization/42388
18087         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18088         that have no predecessors nor successors.  Do not call move_bb_info
18089         for empty blocks outside of current region.
18090
18091 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18092
18093         PR rtl-optimization/42294
18094         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18095         * sel-sched.c (move_exprs_to_boundary): Transitively add all
18096         originators' originators.
18097
18098 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18099
18100         PR rtl-optimization/39453
18101         PR rtl-optimization/42246
18102         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18103         for pipelining_p.
18104         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18105
18106 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18107             Alexander Monakov  <amonakov@ispras.ru>
18108
18109         PR middle-end/42245
18110         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
18111         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
18112         argument.  Update all callers.
18113         (tidy_control_flow): ... and here.  Recompute topological order
18114         of basic blocks in region if necessary.
18115         (sel_redirect_edge_and_branch): Change return type.  Return true
18116         if topological order might have been invalidated.
18117         (purge_empty_blocks): Export and move from...
18118         * sel-sched.c (purge_empty_blocks): ... here.
18119         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18120         (maybe_tidy_empty_bb): Delete prototype.
18121         (purge_empty_blocks): Declare.
18122
18123 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18124
18125         PR rtl-optimization/42249
18126         * sel-sched.c (try_replace_dest_reg): When chosen register
18127         and original register is the same, do not bail out early, but
18128         still check all original insns for validity of replacing destination
18129         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18130         in this case.
18131
18132 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18133
18134         PR c/42721
18135         Port from no-undefined-overflow branch:
18136         2009-03-09  Richard Guenther  <rguenther@suse.de>
18137
18138         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18139
18140 2010-01-14  Richard Guenther  <rguenther@suse.de>
18141
18142         PR lto/42665
18143         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18144
18145 2010-01-14  Ira Rosen  <irar@il.ibm.com>
18146
18147         PR tree-optimization/42709
18148         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18149         as scalar type in creation of constant vector operand.
18150
18151 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18152
18153         PR testsuite/42414
18154         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18155         (check-parallel-%): Match `testsuite' directory component only
18156         at the end.
18157
18158 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
18159
18160         PR translation/39521
18161         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18162         strings with _().
18163
18164 2010-01-13  Richard Guenther  <rguenther@suse.de>
18165
18166         PR tree-optimization/42730
18167         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18168         offset zero.
18169
18170 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
18171
18172         PR target/pr42542
18173         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18174         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18175         them signed.
18176
18177 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18178
18179         * config/bfin/libgcc-bfin.ver: Regenerate based on current
18180         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
18181         ___umulsi3_highpart.
18182
18183         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18184         rather than schedule_insns if the pass is enabled.
18185
18186 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18187
18188         PR tree-optimization/42704
18189         * tree-sra.c (sra_modify_assign): Do not delete assignments to
18190         SSA_NAMEs.
18191
18192 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18193
18194         PR tree-optimization/42703
18195         * tree-sra.c (analyze_access_subtree): Check that we can build a
18196         reference to the original data within the aggregate.
18197
18198 2010-01-13  Richard Guenther  <rguenther@suse.de>
18199
18200         PR tree-optimization/42705
18201         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18202
18203 2010-01-13  Richard Guenther  <rguenther@suse.de>
18204
18205         PR middle-end/42716
18206         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18207
18208 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18209
18210         PR debug/41371
18211         * var-tracking.c (values_to_unmark): New variable.
18212         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18213         values_to_unmark vector.  Moved body to...
18214         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
18215         instead queue it into values_to_unmark vector.
18216         (vt_find_locations): Free values_to_unmark vector.
18217
18218 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
18219
18220         * config/s390/s390.c (override_options): Set
18221         default of max-pending-list-length to 256
18222
18223 2010-01-13  Richard Guenther  <rguenther@suse.de>
18224
18225         PR lto/42678
18226         * tree-pass.h (PROP_gimple_lcx): New.
18227         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18228         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18229         before the final cleanup_eh.
18230         (dump_properties): Dump PROP_gimple_lcx.
18231         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18232         (tree_lower_complex_O0): Remove.
18233         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18234         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
18235         tree_lower_complex, schedule TODO_update_ssa.
18236         * lto-streamer-out.c (output_function): Stream the functions
18237         properties.
18238         * lto-streamer-in.c (input_function): Likewise.
18239         (lto_read_body): Do not override them here.
18240
18241 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
18242
18243         PR c/42708
18244         * c-typeck.c (build_c_cast): Fold value cast to union type before
18245         wrapping it in a CONSTRUCTOR.
18246
18247 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18248
18249         PR rtl-optimization/42699
18250         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18251         involved.
18252
18253 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18254
18255         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18256         SUBTARGET_WARN_UNUSED_SPEC): Move ...
18257         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18258         SUBTARGET_WARN_UNUSED_SPEC): ... here
18259         * config/mips/iris5.h (LIBGCC_SPEC): Define.
18260
18261 2010-01-12  Julian Brown  <julian@codesourcery.com>
18262
18263         * config/arm/neon-schedgen.ml (Utils): Don't try to
18264         open missing module.
18265         (find_with_result): New.
18266
18267 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18268
18269         PR debug/42662
18270         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18271         sharing when canonicalizing ({lt,ge}u (plus a b) b).
18272
18273         PR tree-optimization/42645
18274         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
18275         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18276         decl_map, set processing_debug_stmt to -1 and return name without
18277         any remapping.
18278
18279 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
18280
18281         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18282         binutils version, and reword target configuration description.
18283
18284 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18285
18286         * config/avr/avr.h (LINKER_NAME): Remove.
18287
18288 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
18289
18290         PR target/42416
18291         * config/rs6000/rs6000.c (rs6000_override_options): On targets
18292         that support VSX, warn for -mno-altivec if vsx is not disabled,
18293         and disable vsx.
18294
18295 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
18296             Shujing Zhao  <pearly.zhao@oracle.com>
18297
18298         PR translation/42469
18299         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18300         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18301         character between option name and help text.
18302         * c.opt (imultilib): Likewise.
18303
18304 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
18305
18306         * lto-streamer-out.c (output_unreferenced_globals): Output static
18307         variables.
18308
18309 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
18310
18311         PR rtl-optimization/42621
18312         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18313         optimizing for size.
18314         (duplicate_computed_gotos): Remove now-redundant check.
18315
18316 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
18317
18318         PR target/37454
18319         * configure.ac: Save and restore LDFLAGS and LIBS
18320         * configure: Regenerate.
18321
18322 2010-01-10  Richard Guenther  <rguenther@suse.de>
18323
18324         PR middle-end/42667
18325         * builtins.c (fold_builtin_strlen): Add type argument and
18326         convert the resulting length to it.
18327         (fold_builtin_1): Adjust.
18328
18329 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
18330
18331         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18332         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18333         1 insn.
18334         (num_insns_constant_wide): Adjust for that change.
18335
18336 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18337
18338         PR debug/42631
18339         * web.c (union_defs): Add used argument, to combine uses of
18340         uninitialized regs.
18341         (entry_register): Adjust type and tests of used argument.
18342         (web_main): Widen used for new use.  Pass it to union_defs.
18343         * df.h (union_defs): Adjust prototype.
18344
18345 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18346
18347         PR debug/42630
18348         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18349         uses in new incoming argument.  Free body.
18350         (reset_debug_uses_in_loop): New.
18351         (analyze_insn_to_expand_var): Call the latter if the former found
18352         anything.  Fix whitespace.  Reject invalid dest overlaps before
18353         going through all insns in the loop.
18354
18355 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18356
18357         PR debug/42629
18358         * haifa-sched.c (dying_use_p): Debug insns don't count.
18359
18360 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18361
18362         PR middle-end/42363
18363         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18364         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18365         (verify_gimple_call): Reject LHS in noreturn calls.
18366
18367 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18368
18369         PR debug/42604
18370         PR debug/42395
18371         * tree-vect-loop-manip.c (adjust_info): New type.
18372         (adjust_vec): New pointer to vector.
18373         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18374         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18375         (slpeel_update_phis_for_duplicate_loop): Use them.
18376         (slpeel_update_phi_nodes_for_guard1): Likewise.
18377         (slpeel_update_phi_nodes_for_guard2): Likewise.
18378         (slpeel_tree_peel_loop_to_edge): Likewise.
18379         (vect_update_ivs_after_vectorizer): Likewise.
18380
18381 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18382
18383         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18384         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18385
18386 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18387
18388         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18389         bogus uninitialized warning.
18390
18391 2010-01-09  Richard Guenther  <rguenther@suse.de>
18392
18393         PR middle-end/42512
18394         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18395         the evolution is compatible with the initial condition.
18396
18397 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
18398
18399         * gcc.c (process_command): Update copyright notice dates.
18400         * gcov.c (print_version): Likewise.
18401         * gcov-dump.c (print_version): Likewise.
18402         * mips-tfile.c (main): Likewise.
18403         * mips-tdump.c (main): Likewise.
18404
18405 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18406
18407         PR target/41885
18408         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18409         (rotlhi3): Delete.
18410         (rotlhi3_8): Delete.
18411         (rotlsi3): Delete.
18412         (rotlsi3_8): Delete.
18413         (rotlsi3_16): Delete.
18414         (rotlsi3_24): Delete.
18415         (rotl<mode>3): New.
18416         (*rotw<mode>3): New.
18417         (*rotb<mode>3): New.
18418         * config/avr/avr.c (avr_rotate_bytes): New function.
18419         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18420
18421 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
18422
18423         PR target/37454
18424         * configure.ac: Modify -rdynamic check.
18425         * configure: Regenerate.
18426
18427 2010-01-08  DJ Delorie  <dj@redhat.com>
18428
18429         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18430         register popping order.
18431
18432 2010-01-08  Richard Guenther  <rguenther@suse.de>
18433
18434         PR lto/42528
18435         * c.opt (fsigned-char): Also let LTO handle this option.
18436         (funsigned-char): Likewise.
18437
18438 2010-01-07  Richard Guenther  <rguenther@suse.de>
18439
18440         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18441         (gimple_op): Likewise.
18442         (gimple_op_ptr): Likewise.
18443         (gimple_assign_set_lhs): Remove gcc_assert.
18444         (gimple_assign_set_rhs1): Likewise.
18445         (gimple_assign_set_rhs2): Likewise.
18446         (gimple_call_set_lhs): Likewise.
18447         (gimple_call_set_fn): Likewise.
18448         (gimple_call_set_fndecl): Likewise.
18449         (gimple_call_fndecl): Likewise.
18450         (gimple_call_return_type): Likewise.
18451         (gimple_call_set_chain): Likewise.
18452         (gimple_call_num_args): Likewise.
18453         (gimple_call_set_arg): Likewise.
18454         (gimple_cond_set_code): Likewise.
18455         (gimple_cond_set_lhs): Likewise.
18456         (gimple_cond_set_rhs): Likewise.
18457         (gimple_cond_set_true_label): Likewise.
18458         (gimple_cond_set_false_label): Likewise.
18459         (gimple_label_set_label): Likewise.
18460         (gimple_goto_set_dest): Likewise.
18461         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18462         (gimple_debug_bind_get_value): Likewise.
18463         (gimple_debug_bind_get_value_ptr): Likewise.
18464         (gimple_debug_bind_set_var): Likewise.
18465         (gimple_debug_bind_set_value): Likewise.
18466         (gimple_debug_bind_reset_value): Likewise.
18467         (gimple_debug_bind_has_value_p): Likewise.
18468         (gimple_return_retval_ptr): Remove gcc_assert.
18469         (gimple_return_retval): Likewise.
18470         (gimple_return_set_retval): Likewise.
18471         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18472         (safe_referenced_var_iterator): Remove.
18473         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18474         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18475         (fill_referenced_var_vec): Remove.
18476         (first_readonly_imm_use): Remove redundant gcc_assert.
18477         (phi_arg_index_from_use): Combine gcc_asserts.
18478         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18479         (first_imm_use_stmt): Remove redundant gcc_assert.
18480         * tree-cfg.c (verify_gimple_call): Verify function and chain
18481         operands.  Verify arguments.
18482         (verify_types_in_gimple_stmt): Verify condition code and labels.
18483
18484 2010-01-07  Richard Guenther  <rguenther@suse.de>
18485
18486         PR tree-optimization/42641
18487         * sese.c (rename_map_elt_info): Use the SSA name version, do
18488         not hash pointers.
18489
18490 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
18491
18492         PR tree-optimization/42625
18493         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18494         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18495
18496 2010-01-07  Duncan Sands  <baldrick@free.fr>
18497
18498         * Makefile.in (PLUGIN_HEADERS): Add version.h.
18499
18500 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
18501
18502         PR target/42511
18503         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18504         note itself is not function_invariant_p.
18505
18506 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
18507
18508         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18509         Do not add the DF_NOTE problem.
18510         * store-motion.c (execute_rtl_store_motion): Likewise.
18511
18512 2010-01-07  Martin Jambor  <mjambor@suse.cz>
18513
18514         PR tree-optimization/42157
18515         * tree-sra.c (compare_access_positions): Stabilize sort if both
18516         accesses have integer types, return zero immediately if they are the
18517         same.
18518
18519 2010-01-06  Richard Henderson  <rth@redhat.com>
18520
18521         PR middle-end/41883
18522         * haifa-sched.c (add_to_note_list): Merge into ...
18523         (concat_note_lists): ... here, and ...
18524         (unlink_other_notes, rm_other_notes): Merge into...
18525         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
18526         NOTE_INSN_EPILOGUE_BEG.
18527
18528 2010-01-06  Richard Guenther  <rguenther@suse.de>
18529
18530         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18531         not inline regular functions into always-inline functions.
18532
18533 2010-01-06  Nick Clifton  <nickc@redhat.com>
18534
18535         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18536         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18537         used together.
18538         (OVERRIDE_OPTIONS): Delete.
18539         (OPTIMIZATION_OPTIONS): Define.
18540         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18541         * config/rx/rx.c (rx_handle_option): Issue an error message if
18542         -mcpu=rx200 and -fpu are used together.
18543         (rx_set_optimization_options): New function.  Issue an error
18544         message if an optimization attribute attempts to reset the FPU/
18545         math optimization pairing.
18546         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18547         * config/rx/rx.opt: Set the default to 32-bit doubles.
18548         * config/rx/t-rx: Add multilibs for -nofpu option.
18549         * doc/invoke.texi: Update documentation of RX options.
18550
18551 2010-01-06  Richard Guenther  <rguenther@suse.de>
18552
18553         * tree-ssa-pre.c (name_to_id): New global.
18554         (alloc_expression_id): Simplify SSA name handling.
18555         (lookup_expression_id): Likewise.
18556         (init_pre): Zero name_to_id.
18557         (fini_pre): Free it.
18558
18559 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
18560
18561         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18562
18563 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18564
18565         PR target/42542
18566         * config/i386/sse.md (smaxv2di3): New.
18567         (umaxv2di3): Likewise.
18568         (sminv2di3): Likewise.
18569         (uminv2di3): Likewise.
18570
18571 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18572
18573         PR target/42564
18574         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18575         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18576         (legitimize_tls_address): Likewise.
18577         (sparc_tls_referenced_p): Likewise.
18578         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18579         and adjust calls to legitimize_pic_address.
18580         (legitimate_constant_p) Use sparc_tls_referenced_p.
18581         (legitimate_pic_operand_p): Likewise.
18582         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18583         (sparc_tls_symbol_ref_1): Delete.
18584         (sparc_tls_referenced_p): Make static, recognize specific patterns.
18585         (legitimize_tls_address): Make static, handle CONST patterns.
18586         (legitimize_pic_address): Make static, remove unused parameter and
18587         adjust recursive calls.
18588         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18589         and adjust call to legitimize_pic_address.
18590         (sparc_output_mi_thunk): Likewise.
18591
18592 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
18593             H.J. Lu  <hongjiu.lu@intel.com>
18594
18595         PR target/42542
18596         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18597         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18598         operands to make them signed.
18599
18600         Revert:
18601         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18602
18603         PR target/42542
18604         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18605         GTU to GT for V4SI and V2DI.
18606
18607         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18608         (umin<mode>3): Removed.
18609         (uminv8hi3): New.
18610         (uminv4si3): Likewise.
18611
18612 2010-01-05  Martin Jambor  <mjambor@suse.cz>
18613
18614         PR tree-optimization/42462
18615         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18616         current_function_decl to helper functions and macros.
18617
18618 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18619
18620         PR bootstrap/41771
18621         * flags.h: Don't include real.h.
18622         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18623         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18624         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18625         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18626         * dominance.c: Update copyright.
18627         * gimple.c (walk_gimple_op): Remove inline.
18628         * tree-ssa-reassoc.c: Include real.h.
18629         * Makefile.in (FLAGS_H): Remove $(REAL_H).
18630         (tree-ssa-reassoc.o): Depend on $(REAL_H).
18631
18632 2010-01-05  Nick Clifton  <nickc@redhat.com>
18633
18634         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
18635         register to push into the stack frame when the accumulator has to
18636         be saved during interrupts.
18637
18638 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
18639
18640         * doc/invoke.texi: Remove the documentation about option
18641         -Wunreachable-code.
18642         * common.opt (Wunreachable-code):  Preserved for backward
18643         compatibility.
18644         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
18645         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
18646         the backward compatibility flag section.
18647
18648 2010-01-05  Richard Guenther  <rguenther@suse.de>
18649
18650         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
18651
18652 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
18653
18654         PR other/42611
18655         * cfgexpand.c (expand_one_var): Diagnose too large variables.
18656
18657         PR tree-optimization/42508
18658         * tree-sra.c (convert_callers): Check for recursive call
18659         by comparing cgraph nodes instead of decls.
18660         (modify_function): Call ipa_modify_formal_parameters also
18661         on all same_body aliases.
18662
18663         * cgraphunit.c (cgraph_materialize_all_clones): Compare
18664         cgraph nodes when checking for same_body aliases.
18665
18666 2010-01-05  Richard Guenther  <rguenther@suse.de>
18667
18668         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
18669         allocation and lookup.
18670         (get_or_alloc_expr_for_constant): Likewise.
18671         (phi_translate): Sink allocation.
18672
18673 2010-01-04  Richard Guenther  <rguenther@suse.de>
18674
18675         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
18676         a new entry only if needed.
18677         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
18678         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
18679         hashtable lookup.
18680         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
18681         the result array.
18682         (phi_translate): Handle CONSTANTs early.
18683
18684 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18685
18686         PR tree-optimization/42398
18687         * tree-sra.c (struct access): Removed flag grp_different_types.
18688         (dump_access): Do not dump the removed flag.
18689         (sort_and_splice_var_accesses): Do not set the removed flag.
18690         (sra_modify_expr): Check for type compatibility directly.
18691
18692 2010-01-04  Martin Jambor  <mjambor@suse.cz>
18693
18694         PR tree-optimization/42366
18695         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
18696         edges with variable number of parameters.
18697         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
18698         flag instead of asserting it.
18699         (ipa_read_node_info): Read uses_analysis_done flag.
18700
18701 2010-01-04  Richard Guenther  <rguenther@suse.de>
18702
18703         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
18704         iterative_hash_* as intended.
18705         (vn_reference_compute_hash): Likewise.  Simplify hashing
18706         SSA names.
18707         (vn_reference_lookup_2): Likewise.
18708         (vn_nary_op_compute_hash): Likewise.
18709         (vn_phi_compute_hash): Likewise.
18710         (expressions_equal_p): Remove strange code.
18711         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
18712         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
18713         (bitmap_insert_into_set_1): Take value-id as parameter.
18714         (add_to_value): Pass it.
18715         (bitmap_insert_into_set): Likewise.
18716         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
18717
18718 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
18719
18720         PR driver/42442
18721         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
18722         (do_self_spec): For switches with SWITCH_IGNORE set set also
18723         SWITCH_IGNORE_PERMANENTLY.
18724         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
18725         of SWITCH_IGNORE.
18726
18727 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
18728
18729         * lto-streamer-out.c (output_unreferenced_globals): Output the full
18730         tree of an unreferenced global var.
18731
18732 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18733
18734         PR target/42542
18735         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18736         GTU to GT for V4SI and V2DI.
18737
18738         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18739         (umin<mode>3): Removed.
18740         (uminv8hi3): New.
18741         (uminv4si3): Likewise.
18742
18743 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18744
18745         PR lto/42581
18746         * collect2.c (main): Turn on trace in collect2 if -v is passed
18747         to gcc with LTO.
18748
18749 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
18750
18751         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
18752         description of expression operand.
18753
18754 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
18755
18756         * configure.ac: Add install-html to target_list for Make-hooks.
18757         * configure: Regenerate.
18758         * fortran/Make-lang.in (F95_HTMLFILES): New.
18759         (fortran.html): Use it.
18760         (fortran.install-html): New.
18761         * Makefile.in (install-html): Add lang.install-html.
18762         * java/Make-lang.in (JAVA_HTMLFILES): New.
18763         (java.html): Use it.
18764         (java.install-html): New.
18765         * objc/Make-lang.in (objc.install-html): New.
18766         * objcp/Make-lang.in (obj-c++.install-html): New.
18767         * cp/Make-lang.in (c++.install-html): New.
18768         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
18769         * lto/Make-lang.in (lto.install-html): New.
18770
18771 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18772
18773         PR lto/42520
18774         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
18775
18776 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18777
18778         PR rtl-optimization/41862
18779         * store-motion.c (store_killed_in_insn, compute_store_table,
18780         remove_reachable_equiv_notes, replace_store_insn,
18781         build_store_vectors): Ignore all DEBUG_INSNs.
18782
18783 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
18784
18785         PR lto/41564
18786         * common.opt: Add dumpdir.
18787
18788         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
18789         isn't specified.
18790         (option_map): Add --dumpdir.
18791
18792         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
18793
18794         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
18795
18796         * opts.c (decode_options): Try dump_dir_name first if
18797         dump_base_name isn't an absolute path.
18798         (common_handle_option): Handle OPT_dumpdir.
18799
18800         * toplev.c (dump_dir_name): New.
18801         (print_switch_values): Also ignore -dumpdir.
18802
18803         * toplev.h (dump_dir_name): New.
18804
18805 2010-01-03  Richard Guenther  <rguenther@suse.de>
18806
18807         PR tree-optimization/42589
18808         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
18809         double-word expansion of bswap32.
18810
18811 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
18812
18813         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
18814         with BLOCK_FOR_INSN.
18815         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
18816         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
18817         noce_process_if_block): Likewise.
18818         * gcse.c (compute_local_properties, insert_expr_in_table,
18819         insert_set_in_table, canon_list_insert, find_avail_set,
18820         pre_insert_copy_insn): Likewise.
18821
18822         * basic-block.h (BLOCK_NUM): Move from here...
18823         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
18824
18825 2010-01-03  Richard Guenther  <rguenther@suse.de>
18826
18827         PR tree-optimization/42438
18828         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
18829         contains_may_not_return_call flag.
18830         (BB_MAY_NOTRETURN): New.
18831         (valid_in_sets): Trapping nary operations are not valid
18832         in blocks that may not return.
18833         (insert_into_preds_of_block): Remove check for trapping expressions.
18834         (compute_avail): Compute also BB_MAY_NOTRETURN.
18835
18836 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
18837
18838         * doc/invoke.texi: Add 2010 to copyright years.
18839
18840 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
18841
18842         * config/sparc/sparc.c: Fix formatting nits.
18843
18844 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
18845             Alexander Monakov  <amonakov@ispras.ru>
18846
18847         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
18848
18849 2010-01-02  Richard Guenther  <rguenther@suse.de>
18850
18851         PR middle-end/42577
18852         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
18853         (simplify_switch_using_ranges): Mark to be removed edges
18854         as non-executable.
18855
18856 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18857
18858         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
18859
18860         * collect2.c (scan_libraries): Add missing argument in call to
18861         scan_prog_file.
18862
18863 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
18864
18865         PR target/42448
18866         * config/alpha/predicates.md (aligned_memory_operand): Return false
18867         for CQImode.
18868         (unaligned_memory_operand): Return true for CQImode.
18869         * config/alpha/alpha.c (get_aligned_mem): Assert that location
18870         doesn not cross aligned SImode word boundary.
18871
18872 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
18873
18874         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
18875         Remove.
18876         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
18877         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
18878
18879 2010-01-02  Richard Guenther  <rguenther@suse.de>
18880
18881         PR lto/41597
18882         * toplev.c (compile_file): Emit LTO marker properly.  Change
18883         it to __gnu_lto_v1.
18884         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
18885
18886 2010-01-01  Richard Guenther  <rguenther@suse.de>
18887
18888         PR debug/42455
18889         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
18890
18891 2010-01-01  Richard Guenther  <rguenther@suse.de>
18892
18893         PR c/42570
18894         * c-decl.c (grokdeclarator): For zero-size arrays force
18895         structural equality checks as layout_type does.
18896
18897 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18898
18899         * builtins.c: Update copyright to 2010.
18900
18901 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
18902
18903         PR lto/42531
18904         * lto-streamer-out.c (produce_asm): Revert the last change.
18905         (copy_function): Likewise.
18906
18907         * lto-streamer.c (lto_get_section_name): Skip any leading
18908         asterisk in name.
18909
18910 2010-01-01  Richard Guenther  <rguenther@suse.de>
18911
18912         PR middle-end/42559
18913         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18914         for LABEL_DECLs.
18915
18916 \f
18917 Copyright (C) 2010 Free Software Foundation, Inc.
18918
18919 Copying and distribution of this file, with or without modification,
18920 are permitted in any medium without royalty provided the copyright
18921 notice and this notice are preserved.