tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL is TS_TRANSLATION_UNIT_DECL.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2010-09-16  Richard Guenther  <rguenther@suse.de>
2
3         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
4         is TS_TRANSLATION_UNIT_DECL.
5         (initialize_tree_contains_struct): Adjust.
6         (all_translation_units): New global vector.
7         (build_translation_unit_decl): New function.
8         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
9         (struct tree_translation_unit_decl): New.
10         (all_translation_units): Declare.
11         (union tree_node): Add translation_unit_decl member.
12         (build_translation_unit_decl): Declare.
13         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
14         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
15         New function.
16         (pack_value_fields): Call it.
17         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
18         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
19         (lto_output_tree_pointers): Call it.
20         * lto-streamer-in.c (lto_input_tree_ref): Handle references
21         to TRANSLATION_UNIT_DECL.
22         (unpack_ts_translation_unit_decl_value_fields): New function.
23         (unpack_value_fields): Call it.
24         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
25         (lto_input_tree_pointers): Call it.
26         * lto-streamer.c (check_handled_ts_structures): Adjust.
27         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
28         * c-decl.c (all_translation_units): Remove.
29         (pop_scope): Use build_translation_unit_decl.
30         (collect_all_refs): Adjust.
31         (for_each_global_decl): Likewise.
32         (c_write_global_declarations): Likewise.
33
34 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
35
36         PR bootstrap/45686
37         * fold-const.c (fold_checksum_tree): Change slot from const void **
38         to void **, use CONST_CAST_TREE to store into *slot.
39
40 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
41
42         * config/i386/i386.md: Remove unneeded empty conditions and
43         preparation statements from expanders.
44         * config/i386/mmx.md: Ditto.
45         * config/i386/sse.md: Ditto.
46
47 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
48
49         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
50
51 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
52
53         PR rtl-optimization/45593
54         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
55         insns that were in delay slots as stand-alone insns.
56
57 2010-09-15  Ian Lance Taylor  <iant@google.com>
58
59         * incpath.c (remove_duplicates): If name is not a directory, issue
60         a warning rather than an error.
61
62 2010-09-15  Martin Jambor  <mjambor@suse.cz>
63
64         PR middle-end/45644
65         * tree-sra.c (create_access): Check for bit-fields directly.
66
67 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
68
69         PR tree-optimization/45633
70         * tree-cfg.c (verify_gimple_assign_binary): Allow
71         MINUS_EXPR with lhs and rhs1 pointer vector and
72         rhs2 sizetype vector.
73         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
74         or vector pointer use TER to optimize pointer subtraction.
75
76 2010-09-15  Jie Zhang  <jie@codesourcery.com>
77
78         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
79         fcmpd to fcmps.
80
81 2010-09-15  Ian Lance Taylor  <iant@google.com>
82
83         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
84
85 2010-09-15  Ian Lance Taylor  <iant@google.com>
86
87         * function.c (get_arg_pointer_save_area): Set
88         arg_pointer_save_area_init to true.
89
90 2010-09-15  Martin Jambor  <mjambor@suse.cz>
91
92         * tree-sra.c (generate_subtree_copies): Updated comment.
93         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
94         obtained from the statement iterator instead.
95         (load_assign_lhs_subreplacements): Removed parameters lhs and
96         right_offset, which is obtained from top_racc instead.  Parameter lacc
97         is now expected to be the root of the processed tree rather than root's
98         first child.  Updated all callers.
99
100 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
101
102         * config/pdp11/pdp11.c (register_move_cost): Rename to
103         pdp11_register_move_cost.
104         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
105         pdp11_register_move_cost.
106         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
107         pdp11_register_move_cost instead of register_move_cost.
108
109 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
110
111         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
112         pattern for vmovn. Expansion in case of non 
113         -mvectorize-with-neon-quad.
114         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
115         non- -mvectorize-with-neon-quad case.
116         (move_lo_quad_<mode>): New expansion to vmov into low part.
117         (move_hi_quad_<mode>): New expansion to vmov into high part.
118         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
119         (move_lo_quad_v4sf): Likewise.
120         (move_lo_quad_v8hi): Likewise.
121         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
122         low part.
123         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
124         high part.
125         * config/arm/iterators.md (ANY128): New mode iterator.
126         (V_narrow_pack): New mode attribute.
127         (V_HALF): Add attribute.
128         (V_DOUBLE): Add attribute.
129         (V_mode_nunits): Add attribute.
130
131 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
132
133         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
134         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
135
136 2010-09-15  Olivier Hainque  <hainque@adacore.com>
137             Jose Ruiz  <ruiz@adacore.com>
138
139         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
140         * config/alpha/osf5-unwind.h: New file.
141
142 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
143
144         PR bootstrap/45672
145         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
146         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
147         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
148
149 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
150
151         * c-lang.h (struct lang_type): Add variable_size GTY option.
152
153 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
154
155         PR bootstrap/45672
156         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
157
158 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
159
160         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
161         result isn't used in memory address.
162
163 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
164
165         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
166         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
167         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
168         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
169         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
170         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
171
172         * target.def: Add units_per_simd_word to vectorize.
173
174         * targhooks.c (default_units_per_simd_word): New.
175         * targhooks.h (default_units_per_simd_word): Likewise.
176         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
177         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
178         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
179         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
180         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
181         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
182         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
183         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
184
185         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
186         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
187
188         * tree-vect-stmts.c: Don't include "tm_p.h".
189         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
190         with targetm.vectorize.units_per_simd_word.
191
192         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
193
194         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
195
196         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
197         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
198
199         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
200         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
201
202         * doc/tm.texi: Regenerated.
203
204 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
205
206         * tree-vect-stmts.c: Include "tm_p.h".
207
208         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
209         out of RTX_CODE.
210
211 2010-09-14  Martin Jambor  <mjambor@suse.cz>
212
213         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
214         location of generated statement.  Changed all callers.
215         (build_ref_for_model): New parameter loc which used to set location of
216         all generated expressions.  Changed all callers.
217         (generate_subtree_copies): Likewise.
218         (init_subtree_with_zero): Likewise.
219         (sra_modify_expr): Set locations of all generated statements and
220         expressions to the location the original statement.
221         (handle_unscalarized_data_in_subtree): Likewise.
222         (load_assign_lhs_subreplacements): Likewise.
223         (sra_modify_constructor_assign): Likewise.
224         (sra_modify_assign): Likewise.
225
226 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
227
228         PR target/45277
229         PR target/45363
230         PR target/45407
231         * doc/install.texi (sparc*-*-*): New section.
232         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
233
234 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
235
236         PR middle-end/45567
237         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
238         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
239         (expand_builtin): Adjust caller.
240         (expand_builtin_unop): Only use subtarget if it has the right mode.
241
242 2010-09-14  Tristan Gingold  <gingold@adacore.com>
243
244         * configure.ac (plugins): Fix typos.
245         * configure: Regenerate.
246
247 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
248
249         PR debug/45660
250         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
251         gen_type_die for function/method return type.
252
253 2010-09-14  Ira Rosen  <irar@il.ibm.com>
254
255         PR tree-optimization/45470
256         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
257         can throw an exception.
258         * tree-vect-stmts.c (vectorizable_call): Likewise.
259
260 2010-09-14  DJ Delorie  <dj@redhat.com>
261
262         PR target/44749
263         * config/mep/mep-protos.h (mep_save_register_info,
264         mep_reinit_regs, mep_init_regs): Declare.
265
266         * config/mep/mep.c: Move all target definitions to the end of the
267         file to avoid the need for duplicate declarations.
268         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
269         (mep_reorg_erepeat): Remove unused variables.
270         (mep_expand_builtin): Likewise.
271
272         * config/mep/mep-pragma.c: Don't include rtl.h.
273         (INVALID_REGNUM): New.
274         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
275         functions.
276         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
277         Avoid enum/integer math.
278
279 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
280
281         PR target/44749
282         * config/mep/t-mep (GTM_H): Add insn-constants.h.
283         * config/mep/mep.c (mep_conditional_register_usage): Take no
284         parameters.
285         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
286         prototype.
287         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
288         call to mep_conditional_register_usage.
289
290 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
291
292         PR debug/43937
293         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
294         the DECL as well.
295
296 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
297
298         PR rtl-optimization/45617
299         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
300         even if low N bits of X aren't known to be zero.
301
302 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
303
304         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
305
306         * config/i386/i386.c (initial_ix86_tune_features): Add
307         X86_TUNE_VECTORIZE_DOUBLE.
308         (ix86_units_per_simd_word): New.
309
310         * config/i386/i386.h (ix86_tune_indices): Add
311         X86_TUNE_VECTORIZE_DOUBLE.
312         (TARGET_VECTORIZE_DOUBLE): New.
313         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
314
315 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
316
317         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
318         (new_temp_expr_table): Allocate call_cnt vector.
319         (free_temp_expr_table): Free it.
320         (process_replaceable): Add call_cnt parm and set in vector.
321         (find_replaceable_in_bb): Skip replacement if def/use span a call.
322         (debug_ter): Dump call_cnt value, remove stderr uses.
323
324 2010-09-13  Jan Hubicka  <jh@suse.cz>
325
326         * tree.c (build_zero_cst): New.
327         * tree.h (build_zero_cst): Declare.
328         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
329         (get_base_constructor): Break out from ...
330         (fold_const_aggregate_ref): Here; handle empty constructors.
331
332 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
333
334         * config/arm/arm.md: (define_attr "conds"): Update comment.
335         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
336         conds attribute to clob.
337         (arm_sync_compare_and_swapsi): Likewise.
338         (arm_sync_compare_and_swap<mode>): Likewise.
339         (arm_sync_lock_test_and_setsi): Likewise.
340         (arm_sync_lock_test_and_set<mode>): Likewise.
341         (arm_sync_new_<sync_optab>si): Likewise.
342         (arm_sync_new_nandsi): Likewise.
343         (arm_sync_new_<sync_optab><mode>): Likewise.
344         (arm_sync_new_nand<mode>): Likewise.
345         (arm_sync_old_<sync_optab>si): Likewise.
346         (arm_sync_old_nandsi): Likewise.
347         (arm_sync_old_<sync_optab><mode>): Likewise.
348         (arm_sync_old_nand<mode>): Likewise.
349
350 2010-09-13  Olivier Hainque  <hainque@adacore.com>
351
352         * fwprop.c (forward_propagate_and_simplify): Only attach a
353         REG_EQUAL note to an insn if the destination is a register.
354         * gcse.c (try_replace_reg): Likewise.
355
356 2010-09-13  Richard Guenther  <rguenther@suse.de>
357
358         PR tree-optimization/45611
359         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
360         (copy_ref_info): Likewise.
361
362 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
363
364         PR debug/45604
365         PR debug/45419
366         PR debug/45408
367         * tree-pretty-print.c (dump_generic_node): Disregard top-level
368         types of MEM_REF pointer types to the same type.
369
370 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
371
372         PR rtl-optimization/41087
373         * ifcvt.c (noce_get_condition): Don't allow conditions with
374         side-effects.
375
376 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
377
378         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
379         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
380         * config/frv/frv.c (frv_register_move_cost): Make static. Change
381         arguments type to reg_class_t. Add mode argument.
382         (frv_memory_move_cost): New.
383         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
384
385 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
386
387         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
388         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
389
390 2010-09-10  Jan Hubicka  <jh@suse.cz>
391
392         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
393
394 2010-09-10  Richard Guenther  <rguenther@suse.de>
395
396         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
397         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
398         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
399         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
400         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
401
402 2010-09-10  Richard Guenther  <rguenther@suse.de>
403
404         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
405         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
406         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
407         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
408
409 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
410
411         PR middle-end/45634
412         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
413         of string folding is of integral type.
414
415 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
416
417         * doc/invoke.texi (-x): Fix typo.
418
419 2010-09-10  Richard Guenther  <rguenther@suse.de>
420
421         PR debug/44115
422         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
423         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
424         Output DECL_DEBUG_EXPR.
425         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
426         Input DECL_DEBUG_EXPR.
427
428 2010-09-10  Richard Guenther  <rguenther@suse.de>
429
430         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
431         (build_index_type): Implement in terms of build_range_type.
432         (build_range_type): Do not allow NULL_TREE type, improve
433         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
434         if we didn't hash.
435         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
436         create a distinct copy of the type.
437
438 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
439
440         * configure: Regenerated.
441         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
442
443 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
444
445         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
446         * config/arm/cortex-a9-neon.md: New and partially generated.
447         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
448
449 2010-09-10  Richard Guenther  <rguenther@suse.de>
450
451         * tree.h (build_index_2_type): Remove.
452         * tree.c (build_index_2_type): Remove.
453
454 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
455
456         PR bootstrap/45630
457         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
458         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
459         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
460
461 2010-09-10  Martin Jambor  <mjambor@suse.cz>
462
463         PR tree-optimization/44972
464         * tree-sra.c: Include toplev.h.
465         (build_ref_for_offset): Entirely reimplemented.
466         (build_ref_for_model): New function.
467         (build_user_friendly_ref_for_offset): New function.
468         (analyze_access_subtree): Removed build_ref_for_offset check.
469         (propagate_subaccesses_across_link): Likewise.
470         (create_artificial_child_access): Use
471         build_user_friendly_ref_for_offset.
472         (propagate_subaccesses_across_link): Likewise.
473         (ref_expr_for_all_replacements_p): Removed.
474         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
475         (sra_modify_expr): Use build_ref_for_model.
476         (load_assign_lhs_subreplacements): Likewise.
477         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
478         checks for return values of build_ref_for_offset.
479         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
480         build_ref_for_offset.
481         * ipa-prop.h: Include gimple.h
482         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
483         (ipa_analyze_indirect_call_uses): Update comment.
484         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
485         (IPA_PROP_H): Likewise.
486
487 2010-09-10  Martin Jambor  <mjambor@suse.cz>
488
489         PR tree-optimization/44972
490         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
491         calling build_ref_for_offset.
492
493 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
494
495         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
496         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
497         * config/arm/arm-tune.md: Regenerate.
498         * doc/invoke.texi (ARM Options): Document it.
499
500 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
501
502         * config/i386/i386.c: Include sched-int.h.
503         (TARGET_SCHED_DISPATCH): Defined.
504         (TARGET_SCHED_DISPATCH_DO): Defined.
505         (DISPATCH_WINDOW_SIZE): Defined.
506         (MAX_DISPATCH_WINDOWS): Defined.
507         (MAX_INSN): Defined.
508         (MAX_IMM): Defined.
509         (MAX_IMM_SIZE): Defined.
510         (MAX_IMM_32): Defined.
511         (MAX_IMM_64): Defined.
512         (MAX_LOAD): Defined.
513         (MAX_STORE): Defined.
514         (BIG): Defined.
515         (dispatch_group): New.
516         (num_allowable_groups): New.
517         (group_name): New.
518         (sched_insn_info_s): New.
519         (dispatch_windows_s): New.
520         (imm_info_s): New.
521         (dispatch_window_list): New.
522         (dispatch_window_list1): New.
523         (get_mem_group): New.
524         (is_cmp): New.
525         (dispatch_violation): New.
526         (is_branch): New.
527         (is_prefetch): New.
528         (init_window): New.
529         (allocate_window): New.
530         (init_dispatch_sched): New.
531         (is_end_basic_block): New.
532         (process_end_window): New.
533         (allocate_next_window): New.
534         (find_constant_1): New.
535         (find_constant): New.
536         (get_num_immediates): New.
537         (has_immediate): New.
538         (get_insn_path): New.
539         (get_insn_group): New.
540         (count_num_restricted): New.
541         (fits_dispatch_window): New.
542         (add_insn_window): New.
543         (add_to_dispatch_window): New.
544         (debug_dispatch_window_file): New.
545         (debug_dispatch_window): New.
546         (debug_insn_dispatch_info_file): New.
547         (debug_ready_dispatch): New.
548         (do_dispatch): New.
549         (has_dispatch): New.
550         * config/i386/i386.h (debug_ready_dispatch): Declared.
551         (debug_dispatch_window): Declared.
552         * config/i386/i386.opt (mdispatch-scheduler): New flag.
553         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
554         (TARGET_SCHED_DISPATCH_DO): New.
555         * doc/tm.texi: Regererated.
556         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
557         ready_remove_first_dispatch
558         (schedule_block): Call targetm.sched.dispatch and
559         targetm.sched.dispatch_do.
560         (sched_init): Call targetm.sched.dispatch and
561         targetm.sched.dispatch_do.
562         (ready_remove_first_dispatch): New.
563         (number_in_ready): New.
564         (get_ready_element): New.
565         * hooks.c (hook_bool_rtx_int_false): New.
566         (hook_void_rtx_int): New.
567         * hooks.h (hook_bool_rtx_int_false): Declared.
568         (hook_void_rtx_int): Declared.
569         * sched-int.h (IS_DISPATCH_ON): Defined.
570         (IS_CMP): Defined.
571         (DISPATCH_VIOLATION): Defined.
572         (FITS_DISPATCH_WINDOW): Defined.
573         (DISPATCH_INIT): Defined.
574         (ADD_TO_DISPATCH_WINDOW): Defined.
575         (get_ready_element): Declared.
576         (number_in_ready): Declared.
577         * target.def (dispatch): Defined.
578         (dispatch_do): Defined.
579
580 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
581
582         PR middle-end/45312
583         * reload1.c (merge_assigned_reloads): Remove.
584         (reload_as_needed): Don't call it.
585
586 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
587
588         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
589         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
590         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
591
592 2010-09-09  Matthias Klose  <doko@ubuntu.com>
593
594         PR bootstrap/43847
595         * configure.ac (--enable-plugin): Enhance for cross builds.
596         * configure: Regenerate.
597
598 2010-09-09  Jan Hubicka  <jh@suse.cz>
599
600         PR tree-optimization/45598
601         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
602         string folding is of integral type.
603
604 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
605
606         * configure.ac (gnu_indirect_function): New test.
607         * configure: Rebuilt.
608         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
609         * defaults.h (IFUNC_ASM_TYPE): Provide default.
610
611         * doc/extend.texi (Function Attributes): Document ifunc.
612         * varasm.c (do_assemble_alias): Deal with ifuncs too.
613
614 2010-09-09  Hariharan Sandanagobalane <hariharan@picochip.com>
615
616         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
617         epilogue instruction move.
618
619 2010-09-09  Jan Hubicka  <jh@suse.cz>
620
621         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
622         command line to allow more partitions than input files.
623
624 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
625
626         PR middle-end/44554
627         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
628
629 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
630
631         PR middle-end/40386
632         * ira.c (pseudo_for_reload_consideration_p): Don't use
633         flag_ira_share_spill_slots.
634
635 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
636
637         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
638         point zero operands that fit into a single GPR.
639         (s390_preferred_reload_class): Ensure we only return general-purpose
640         register classes.
641         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
642         floating-point zero operands into GPRs.
643         ("*mov<mode>_64"): Likewise.
644         ("mov<mode>"): Likewise using lhi.
645
646 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
647
648         * config/s390/s390.c (s390_symref_operand_p): Return false for
649         literal pool references.
650         (s390_check_qrst_address): Update caller.
651
652 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
653
654         * config/i386/predicates.md (ext_register_operand): Check that
655         SUBREG_REG is really a register before looking for REGNO.
656         (reg_not_xmm0_operand): Handle SUBREGs correctly.
657         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
658
659 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
660
661         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
662         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
663         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
664         * print-rtl.c (print_rtx): Likewise.
665         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
666         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
667         for ADDR_EXPR with non-addressable object.
668         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
669         (struct dw_val_struct): Add v.val_decl_ref.
670         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
671         Handle DW_OP_GNU_implicit_pointer.
672         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
673         (get_ref_die_offset_label): New function.
674         (implicit_ptr_descriptor): New function.
675         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
676         (loc_descriptor): Likewise.
677         (gen_variable_die): Put even definitions into decl_die_table.
678         (resolve_addr_in_expr): Resolve still unresolved
679         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
680         return false.
681         (dwarf2out_finish): Call output_location_lists after outputting
682         .debug_info and .debug_abbrev instead of before.
683
684 2010-09-09  Roland McGrath  <roland@redhat.com>
685
686         * dwarf2out.c (DWARF_REF_SIZE): Define.
687         (size_of_loc_descr): Use it for DW_OP_call_ref.
688
689 2010-09-09  Alan Modra  <amodra@gmail.com>
690
691         * doc/invoke.text: Reinstate mcmodel=medium.
692         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
693         CMODEL_MEDIUM as default.
694         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
695         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
696         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
697         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
698
699 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
700
701         PR target/45250
702         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
703         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
704         (builtin_longjmp): Likewise.
705         (allocate_stack): Use hard_frame_pointer_rtx instead of
706         frame_pointer_rtx.
707         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
708         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
709         (pa_can_eliminate): Likewise.
710         (TARGET_INTERNAL_ARG_POINTER): Define.
711         (TARGET_CAN_ELIMINATE): Define.
712         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
713         pointer.
714         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
715         (pa_internal_arg_pointer, pa_can_eliminate,
716         pa_initial_elimination_offset): New.
717         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
718         (HARD_FRAME_POINTER_REGNUM): Set to register three.
719         (INITIAL_FRAME_POINTER_OFFSET): Delete.
720         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
721         Define.
722         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
723         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
724         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
725         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
726         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
727         new soft frame pointer.
728         * config/pa/pa64-regs.h: Likewise.
729
730 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
731
732         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
733         numerical constant.
734         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
735
736 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
737
738         PR debug/45531
739         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
740
741 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
742
743         PR debug/45419
744         PR debug/45408
745         * tree-pretty-print.c (dump_generic_node): Disregard top-level
746         qualifiers in otherwise equal MEM_REF pointer types.
747         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
748         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
749
750 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
751
752         PR target/44392
753         * config/arm/arm.md (bswapsi2): Handle condition correctly
754         for armv6 and optimize_size.
755
756 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
757
758         PR other/18555
759         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
760
761 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
762
763         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
764         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
765         ix86_expand_strlen, legitimate_pic_address_disp_p,
766         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
767         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
768         ix86_check_movabs, ix86_secondary_memory_needed): Change function
769         prototype to bool.
770         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
771         return_in_memory_ms_64, ix86_check_movabs,
772         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
773         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
774         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
775         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
776         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
777         ix86_secondary_memory_needed): Change to bool.  Return
778         "true" and "false" values.
779         * config/i386/i386.md: Return "true" and "false" values.
780
781 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
782
783         * doc/sourcebuild.texi (Effective-Target Keywords): Document
784         run_expensive_tests.
785
786 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
787
788         * toplev.c (output_stack_usage): Use lbasename instead of basename.
789
790 2010-09-08  Martin Jambor  <mjambor@suse.cz>
791
792         PR other/45443
793         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
794         at -O3.
795
796 2010-09-08  Richard Guenther  <rguenther@suse.de>
797
798         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
799         (visit): Adjust.
800         (iterative_hash_gimple_type): Likewise.
801         (gimple_type_hash): Likewise.
802         (gimple_register_type): Likewise.
803         (print_gimple_types_stats): Likewise.
804         (free_gimple_type_tables): Likewise.
805
806 2010-09-08  Michael Matz  <matz@suse.de>
807
808         PR tree-optimization/43430
809         * tree-vect-stmts.c (vectorizable_condition): Support multiple
810         copies for conditional statements if it's not part of a reduction.
811
812 2010-09-08  Michael Matz  <matz@suse.de>
813
814         PR tree-optimization/33244
815         * tree-ssa-sink.c (statement_sink_location): Don't sink into
816         empty loop latches.
817
818 2010-09-08  Richard Guenther  <rguenther@suse.de>
819
820         PR tree-optimization/45578
821         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
822         Be more careful when transfering alignment information to
823         the new induction variable.
824         (copy_ref_info): Likewise.
825
826 2010-09-08  Richard Guenther  <rguenther@suse.de>
827
828         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
829         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
830
831 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
832
833         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
834         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
835
836 2010-09-08  Kenneth Zadeck <zadeck@naturalbridge.com>
837
838         PR doc/45587
839         * doc/md.texi: Fixed modes on several standard pattern names.
840
841 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
842
843         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
844         (ashl<mode>3): ...this.
845         (loongson_psra<V_suffix>): Rename to...
846         (ashr<mode>3): ...this.
847         (loongson_psrl<V_suffix>): Rename to...
848         (lshr<mode>3): ...this.
849         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
850         (CODE_FOR_loongson_psllw): Define.
851         (CODE_FOR_loongson_psrlh): Define.
852         (CODE_FOR_loongson_psrlw): Define.
853         (CODE_FOR_loongson_psrah): Define.
854         (CODE_FOR_loongson_psraw): Define.
855
856 2010-09-07  Richard Henderson  <rth@redhat.com>
857
858         * tree-vect-data-refs.c: Include tm_p.h.
859         * Makefile.in (tree-vect-data-refs.o): Update deps.
860         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
861         Move delarations outside #ifdef RTX_CODE.
862
863 2010-09-07  Richard Henderson  <rth@redhat.com>
864
865         * final.c (rest_of_handle_final): Unconditionally do
866         output_function_exception_table before assemble_end_function.
867
868 2010-09-07  Jan Hubicka  <jh@suse.cz>
869
870         * tree-inline.c (tree_inlinable_function_p): Do not test
871         DECL_REPLACEABLE_P.
872         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
873         update_callee_keys, cgraph_decide_inlining): Test function availability.
874         * cif-code.def (OVERWRITABLE): New code.
875
876 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
877             Jack Howarth <howarth@bromo.med.uc.edu>
878
879         PR target/36502
880         PR target/42313
881         PR target/44651
882         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
883         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
884         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
885         MAX macro.
886
887 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
888
889         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
890         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
891
892 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
893
894         * config.gcc: Don't append t-android for Android targets.
895
896         * config/t-android: Removed.
897
898 2010-09-07  Richard Henderson  <rth@redhat.com>
899
900         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
901         * doc/tm.texi.in: Add doc marker.
902         * doc/tm.texi: Rebuild.
903         * except.c (switch_to_exception_section): Always build.
904         (output_one_function_exception_table): Move section switch,
905         personality output, and label output ...
906         (output_function_exception_table): ... here.  Use the new
907         personality hook.
908
909         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
910         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
911         TARGET_ASM_INIT_SECTIONS): New.
912         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
913         make static.
914         (TARGET_ASM_UNWIND_EMIT): Update to match.
915         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
916
917         * config/arm/arm.c (arm_asm_emit_except_personality): New.
918         (arm_asm_init_sections): New.
919         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
920
921 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
922
923         * config/arm/arm.md: Remove unused variable.
924
925 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
926
927         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
928         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
929         (m32r_memory_move_cost): New function.
930
931 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
932
933         * config.gcc: Append t-android for Android targets.
934
935         * config/t-android: New.
936
937 2010-09-07  Richard Henderson  <rth@redhat.com>
938
939         * target.def (unwind_emit_before_insn): New hook.
940         * doc/tm.texi.in: Add @hook marker for it.
941         * doc/tm.texi: Rebuild.
942         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
943
944 2010-09-07  Martin Jambor  <mjambor@suse.cz>
945
946         PR fortran/43665
947         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
948         are any type attributes.
949
950 2010-09-07  Jan Hubicka  <jh@suse.cz>
951
952         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
953         array_ref_low_bound in string access folding.
954
955 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
956
957         PR target/45206
958         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
959         eh_return fixup sequence.
960
961 2010-09-07  Jan Hubicka  <jh@suse.cz>
962
963         * gimple-fold.c (maybe_fold_reference): Verify that operand is
964         gimple_min_invariant.
965
966 2010-09-07  Richard Guenther  <rguenther@suse.de>
967
968         PR middle-end/45569
969         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
970         nor CONSTRUCTOR can trap.
971         * tree-complex.c (update_complex_assignment): Update EH info.
972
973 2010-09-07  Richard Guenther  <rguenther@suse.de>
974
975         PR middle-end/45569
976         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
977         * passes.c (execute_function_todo): Do not verify anything if
978         we saw errors.
979
980 2010-09-07  Richard Guenther  <rguenther@suse.de>
981
982         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
983
984 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
985
986         PR target/43137
987         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
988         New define_mode_attrs.
989         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
990         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
991         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
992         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
993         Remove pool_range attribute.
994         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
995         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
996         pool_range and neg_pool_range attributes.
997         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
998         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
999         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
1000
1001 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1002
1003         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
1004         check glibc.
1005
1006 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
1007
1008         PR target/22152
1009         * config/i386/mmx.md (*mov<mode>_internal_rex64,
1010         *mov<mode>_internal_avx, *mov<mode>_internal,
1011         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
1012         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
1013
1014 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
1015
1016         * c-typeck.c (do_warn_double_promotion): Remove.
1017         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
1018         Objective-C++ too.
1019
1020 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
1021
1022         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
1023         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
1024         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
1025         argument type to reg_class_t. Change result type to bool.
1026         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1027
1028 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
1029
1030         PR libobjc/19850
1031         * gthr-posix.h (__gthread_objc_thread_detach): Use
1032         _objc_thread_attribs when detaching a thread.
1033         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
1034
1035 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
1036
1037         PR target/45524
1038         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
1039         * configure: Regenerated.
1040
1041 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1042
1043         * combine.c (try_combine): Set subst_low_luid to i0.
1044
1045 2010-09-06  Richard Guenther  <rguenther@suse.de>
1046
1047         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
1048         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
1049         (build_aligned_type): Declare.
1050         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
1051         (check_aligned_type): New function.
1052         (build_aligned_type): Likewise.
1053         * expr.c (expand_assignment): Handle misaligned stores via
1054         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
1055         (expand_expr_real_1): Likewise.
1056         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
1057         * tree-vect-stmts.c (vectorizable_store): Do not build
1058         MISALIGNED_INDIRECT_REF but initialize alignment information.
1059         (vectorizable_load): Likewise.
1060         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
1061         handling.
1062         * cfgexpand.c (expand_debug_expr): Likewise.
1063         * dwarf2out.c (loc_list_from_tree): Likewise.
1064         * fold-const.c (maybe_lvalue_p): Likewise.
1065         (operand_equal_p): Likewise.
1066         (build_fold_addr_expr_with_type_loc): Likewise.
1067         * gimplify.c (gimplify_addr_expr): Likewise.
1068         (gimplify_expr): Likewise.
1069         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1070         (verify_gimple_assign_single): Likewise.
1071         * tree-dump.c (dequeue_and_dump): Likewise.
1072         (tree_could_trap_p): Likewise.
1073         * tree-predcom.c (ref_at_iteration): Likewise.
1074         * tree-pretty-print.c (dump_generic_node): Likewise.
1075         (op_code_prio): Likewise.
1076         (op_symbol_code): Likewise.
1077         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
1078         * tree-ssa-loop-im.c (for_each_index): Likewise.
1079         (gen_lsm_tmp_name): Likewise.
1080         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1081         (find_interesting_uses_address): Likewise.
1082         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1083         * tree-ssa-operands.c (get_expr_operands): Likewise.
1084         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1085         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1086         (ao_ref_init_from_vn_reference): Likewise.
1087         * tree.c (staticp): Likewise.
1088         (build1_stat): Likewise.
1089         (reference_alias_ptr_type): Likewise.
1090         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1091         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
1092         MISALIGNED_INDIRECT_REF handling.
1093
1094 2010-09-06  Richard Guenther  <rguenther@suse.de>
1095
1096         PR tree-optimization/45534
1097         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
1098         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
1099         on the target.
1100         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
1101         valid on the target.
1102
1103 2010-09-06  Andreas Schwab  <schwab@redhat.com>
1104
1105         * configure.ac: Quote argument of AC_MSG_WARN.
1106         * configure: Regenerate.
1107
1108 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
1109
1110         * sel-sched.c (move_cond_jump): Correct arguments to
1111         maybe_tidy_empty_bb.
1112         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
1113
1114 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
1115
1116         PR rtl-optimization/44919
1117         * sel-sched.c (move_cond_jump): Remove assert, check that
1118         the several blocks case can only happen with mutually exclusive
1119         insns instead.  Rewrite the movement code to support moving through
1120         several basic blocks.
1121
1122 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
1123
1124         * config/i386/i386.md (iptrsize): New mode attribute.
1125         (tp_seg): Ditto.
1126         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
1127         mode iterator.
1128         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
1129         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
1130         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
1131         (stack_tls_protect_set_<mode>): Ditto from
1132         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
1133         of thread base pointer load.
1134         (stack_tls_protect_test_<mode>): Ditto from
1135         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
1136         of thread base pointer load.
1137         (stack_protect_set): Rewrite using indirect functions.
1138         (stack_protect_test): Ditto.
1139         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
1140         (ix86_print_operand): Handle '@'.
1141
1142 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
1143
1144         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
1145         MINUS_EXPR.
1146
1147 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
1148
1149         * doc/invoke.texi: Document -Wdouble-promotion.
1150         * c-typeck.c (convert_arguments): Check for implicit conversions
1151         from float to double.
1152         (do_warn_double_promotion): New function.
1153         (build_conditional_expr): Use it.
1154         (build_binary_op): Likewise.
1155
1156 2010-09-05  Richard Guenther  <rguenther@suse.de>
1157
1158         PR tree-optimization/45535
1159         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
1160         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
1161         dereferencing it.
1162         (indirect_refs_may_alias_p): Likewise.
1163
1164 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
1165
1166         * config/sh/sh.c (sh_option_override): Make static.
1167         Adjust comments.  Declare.
1168         (sh_function_value_regno_p): Likewise.
1169         (sh_register_move_cost): Modify the arguments, make static.
1170         Adjust comments.  Declare.
1171         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
1172         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1173         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
1174         REGISTER_MOVE_COST): Delete.
1175         * config/sh/sh-protos.h (sh_override_options): Delete.
1176         (sh_register_move_cost): Delete.
1177         (sh_function_value_regno_p): Delete.
1178
1179 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
1180
1181         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
1182         m32r_function_value_regno_p): New functions.
1183         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1184         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
1185         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
1186         FUNCTION_VALUE_REGNO_P): Remove.
1187
1188 2010-09-04  Jan Hubicka  <jh@suse.cz>
1189
1190         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
1191         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
1192         fold_read_from_constant_string.
1193
1194         * gimple.h (canonicalize_constructor_val): Declare.
1195         * gimple-fold.c (canonicalize_constructor_val): New function.
1196         (get_symbol_constant_value):Use it.
1197         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
1198
1199 2010-09-04  Jan Hubicka  <jh@suse.cz>
1200
1201         * tree-switch-conversion.c (build_one_array): Set constructor to be
1202         static.
1203         * varpool.c (varpool_finalize_decl): Compute const_value_known.
1204
1205 2010-09-04  Richard Guenther  <rguenther@suse.de>
1206
1207         PR bootstrap/45519
1208         * tree-flow.h (force_gimple_operand_1): Declare.
1209         (force_gimple_operand_gsi_1): Likewise.
1210         * gimplify.c (force_gimple_operand_1): New worker taking a
1211         gimple predicate for ...
1212         (force_gimple_operand): ... which now wraps it.
1213         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
1214         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
1215         last change.
1216         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
1217         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
1218         (create_mem_ref): Likewise.
1219
1220 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
1221
1222         * config/i386/predicates.md (sse_reg_operand): New predicate.
1223         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
1224         predicate for operand 1.
1225         (XFmode push splitter): Use fp_register_operand predicate
1226         for operand 1.
1227         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
1228         (SF-DF float_extend push splitter): Add reload_completed insn
1229         predicate.
1230         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
1231         MODEF mode macro.  Add reload_completed insn predicate.
1232
1233 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
1234
1235         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
1236         (struct df_extract_ref): Remove.
1237         (union df_ref_d): Remove extract_ref member.
1238         (df_ref_create): Remove last three arguments.
1239         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
1240         * df-scan.c (df_ref_record): Remove last three arguments, do not
1241         pass them to df_ref_create_structure.
1242         (df_uses_record): Remove first and last three arguments.  Replace
1243         first argument with DF_REF_REGULAR, adjust calls to remove the
1244         width, offset and mode.  Always call recursively on the second
1245         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
1246         (df_ref_create_structure): Remove first argument.
1247         (struct df_scan_problem_data): Remove ref_extract_pool.
1248         (df_scan_free_internal): Do not free it.
1249         (df_scan_alloc): Do not allocate it.
1250         (df_ref_create): Remove last three arguments, do not pass them to
1251         df_ref_create_structure.
1252         (df_free_ref): Remove DF_REF_EXTRACT case.
1253         (df_notes_rescan): Adjust call to df_uses_record.
1254         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
1255         Remove DF_REF_EXTRACT case.
1256         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
1257         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
1258         and SUBREG definitions.
1259         (df_get_conditional_uses): Remove references to width/offset/mode,
1260         adjust call to df_ref_create_structure.
1261         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
1262         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
1263         calls to df_uses_record and df_ref_record.
1264         * fwprop.c (update_df): Remove references to width/offset/mode,
1265         adjust call to df_ref_create.
1266
1267 2010-09-03  Jan Hubicka  <jh@suse.cz>
1268
1269         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
1270         (build_cdtor_fns): Update use of build_cdtor.
1271
1272 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
1273
1274         * doc/options.texi (SeparateAlias): Document.
1275         * opt-functions.awk (switch_flags): Handle SeparateAlias.
1276         * opth-gen.awk: Generate enumeration names for options marked
1277         SeparateAlias, but not for those marked Ignore.
1278         * opts-common.c (generate_canonical_option): Don't output separate
1279         argument for options marked CL_SEPARATE_ALIAS.
1280         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
1281         * opts.h (CL_SEPARATE_ALIAS): New.
1282         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
1283         CL_COMMON): Adjust definitions.
1284         * config/i386/darwin.opt, config/mips/sde.opt: New.
1285         * common.opt (fdump-final-insns): New.
1286         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1287         i386/darwin.opt.
1288         (mips*-sde-elf*): Add mips/sde.opt.
1289         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
1290         -mno-data-in-code and -mcode-xonly here.
1291         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
1292         * gcc.c (option_map): Add "j" to --dump entry.
1293         (translate_options): Don't translate -d to -foutput-class-dir= here.
1294
1295 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
1296
1297         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
1298         DR_IS_WRITE.
1299         (compute_all_dependences): Same.
1300         (create_rdg_edge_for_ddr): Same.
1301         * tree-data-ref.h (DR_IS_WRITE): New.
1302         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
1303         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
1304         (write_memrefs_written_at_least_once): Same.
1305         * tree-predcom.c (suitable_component_p): Same.
1306         (determine_roots_comp): Same.
1307         (execute_load_motion): Same.
1308         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
1309         (vect_enhance_data_refs_alignment): Same.
1310         (vect_analyze_group_access): Same.
1311
1312 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
1313
1314         PR testsuite/42843
1315         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
1316         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
1317
1318 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
1319
1320         * dwarf2out.c (file scope): Remove #if0'd code.
1321         (gen_subprogram_die): Same.
1322
1323 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1324
1325         PR middle-end/45484
1326         * dwarf2out.c (flush_queued_reg_saves): Rename to...
1327         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
1328         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
1329         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
1330         * config/i386/i386.c (output_set_got): Call it.
1331
1332 2010-09-03  Michael Matz  <matz@suse.de>
1333
1334         PR middle-end/45415
1335         * tree-sra.c (sra_modify_assign): If we modify the statement,
1336         say so.
1337
1338         * tree-ssa.c (verify_ssa): Check number of operands and links
1339         per statement to agree.
1340
1341 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1342             Iain Sandoe  <iains@gcc.gnu.org>
1343
1344         PR target/45476
1345         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
1346         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
1347         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1348
1349 2010-09-03  Richard Guenther  <rguenther@suse.de>
1350
1351         * lto-streamer-out.c (output_function): Output function
1352         start and end loci.
1353         * lto-streamer-in.c (input_function): Input function start
1354         and end loci.
1355
1356 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1357
1358         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
1359         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
1360         * configure: Regenerate.
1361         * aclocal.m4: Regenerate.
1362
1363 2010-09-03  Jan Hubicka  <jh@suse.cz>
1364
1365         PR lto/44812
1366         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
1367         on functions/variables in other partition.
1368
1369 2010-09-03  Jan Hubicka  <jh@suse.cz>
1370
1371         * cgraph.h (struct varpool_node): Add const_value_known.
1372         (varpool_decide_const_value_known): Declare.
1373         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
1374         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
1375         (input_varpool_node): Restore const_value_known.
1376         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
1377         initializer folding.
1378         * ipa.c (ipa_discover_readonly_nonaddressable_var,
1379         function_and_variable_visibility): Compute const_value_known.
1380         * gimple-fold.c (get_symbol_constant_value): Use varpool for
1381         initializer folding.
1382         * varpool.c (varpool_decide_const_value_known): New function.
1383
1384 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
1385
1386         * config/i386/i386.md: Remove empty preparation statements
1387         from splitters.
1388
1389 2010-09-03  Jan Hubicka  <jh@suse.cz>
1390
1391         * passes.c (rest_of_decl_compilation): Do not add local vars into
1392         varpool.
1393         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
1394         static or extern vars are in varpool.
1395         (varpool_finalize_decl): Sanity check that only static vars are
1396         finalized.
1397
1398 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
1399
1400         PR debug/45500
1401         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
1402         not just generic vectors with BLKmode.
1403
1404 2010-09-03  Richard Guenther  <rguenther@suse.de>
1405
1406         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
1407         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
1408         * tree.h (TMR_SYMBOL): Remove.
1409         (TMR_BASE, TMR_OFFSET): Adjust.
1410         (TMR_INDEX2): New.
1411         * alias.c (ao_ref_from_mem): Use TMR_BASE.
1412         * builtins.c (get_object_alignment): Merge TMR_BASE and
1413         TMR_SYMBOL handling.
1414         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
1415         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
1416         handling.  Also allow TARGET_MEM_REF as base address.
1417         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
1418         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
1419         base.  Gimplify TMR_INDEX2.
1420         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
1421         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1422         (get_addr_base_and_unit_offset): Likewise.
1423         * tree-eh.c (tree_could_trap_p): Likewise.
1424         * tree-pretty-print.c (dump_generic_node): Likewise.
1425         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
1426         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
1427         base to index2.
1428         (get_address_description): Reconstruct addres description
1429         from merged TMR_BASE and TMR_INDEX2.
1430         (maybe_fold_tmr): Fold propagated addresses.
1431         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
1432         MEM_REF and TARGET_MEM_REF paths.
1433         (indirect_refs_may_alias_p): Likewise.
1434         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
1435         instead of TMR_SYMBOL.
1436         * tree-ssa-operands.c (get_tmr_operands): Simplify.
1437         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
1438         according to changes ...
1439         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
1440         Split TARGET_MEM_REF into two fields plus the base.
1441         * tree.c (mem_ref_offset): Simplify.
1442         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
1443         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
1444         Strip NOPs when folding MEM_REF addresses.
1445         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
1446         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
1447         (fold_gimple_assign): ... not here.
1448
1449 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
1450
1451         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
1452         * config/mips/mips.c (mips_shift_truncation_mask): New function.
1453         (TARGET_SHIFT_TRUNCATION_MASK): Define.
1454
1455 2010-09-02  Richard Henderson  <rth@redhat.com>
1456
1457         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
1458         instead of readelf in the test.
1459         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
1460         in the .debug_frame section for coff targets.
1461         * configure: Rebuild.
1462
1463 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1464
1465         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
1466         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
1467         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1468         (m32c_class_likely_spilled_p): Make static. Change argument type to
1469         reg_class_t. Change result type to bool.
1470
1471 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
1472
1473         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
1474         to convert (double)(long) into a single FRIZ instruction or not
1475         when -ffast-math is used.
1476
1477         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
1478         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
1479         or FRIZ instruction if -ffast-math.
1480         * config/rs6000/rs6000.md (friz): Ditto.
1481
1482         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
1483
1484 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1485
1486         * opth-gen.awk (quote, comma): Remove unused variables.
1487
1488 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
1489
1490         * arm.c (arm_override_options): Correct fall-back code to use
1491         SUBTARGET_CPU_DEFAULT.
1492
1493 2010-09-02  Julian Brown  <julian@codesourcery.com>
1494
1495         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
1496         unspecs.
1497         (vcond<mode>, vcondu<mode>): New expanders.
1498         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
1499         comparisons with zero.
1500         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
1501         * config/arm/constraints.md (Dz): New constraint.
1502
1503 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
1504
1505         * target.def (class_likely_spilled_p): New hook.
1506         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
1507         * doc/tm.texi: Regenerate.
1508         * targhooks.c (default_class_likely_spilled_p): New function.
1509         * targhooks.h (default_class_likely_spilled_p): Declare.
1510         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
1511         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
1512         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
1513         Use fixed_reg_set instead of fixed_regs.
1514         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1515         * calls.c (avoid_likely_spilled_reg): Ditto.
1516         * ira-conflicts.c (ira_build_conflicts): Ditto.
1517         * ira.c (update_equiv_regs): Ditto.
1518         * mode-switching.c (create_pre_exit): Ditto.
1519         * regmove.c (find_matches): Ditto.
1520         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
1521         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
1522         (small_register_class_p): New inline function.
1523         (push_secondary_reload, find_reusable_reload, find_reloads): Use
1524         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
1525
1526         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
1527         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
1528         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1529
1530 2010-09-02  Richard Guenther  <rguenther@suse.de>
1531
1532         PR tree-optimization/44937
1533         PR tree-optimization/45412
1534         * ipa-split.c (split_function): Properly remove PHI nodes.
1535
1536 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1537
1538         * opts.h (struct cl_option): Add warn_message field.
1539         (struct cl_decoded_option): Add warn_message field.
1540         * doc/options.texi (Ignore, Warn): Document.
1541         * opt-functions.awk (needs_state_p): Don't consider aliases or
1542         ignored options to need state saved.
1543         * optc-gen.awk: Handle Warn and Ignore.
1544         * opth-gen.awk: Output OPT_SPECIAL_ignore.
1545         * opts-common.c (decode_cmdline_option): Set warn_message field.
1546         Handle ignored options.
1547         (decode_cmdline_options_to_array, generate_option,
1548         generate_option_input_file): Set warn_message field.
1549         (read_cmdline_option): Generate warnings from warn_message field.
1550         Handle ignored options.
1551         * common.opt (Wunreachable-code, fargument-alias,
1552         fargument-noalias, fargument-noalias-global,
1553         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
1554         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
1555         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
1556         ftree-salias): Mark Ignore.
1557         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
1558         -mintel-syntax and -mno-intel-syntax here.
1559         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
1560         using Warn.
1561         * opts.c (common_handle_option): Don't handle options marked as
1562         ignored.
1563         (enable_warning_as_error): Handle ignored options.
1564
1565 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
1566
1567         PR driver/44076
1568         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
1569         alias_target fields.
1570         * opt-functions.awk (opt_sanitized_name): Don't handle
1571         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
1572         * optc-gen.awk: Generate alias fields.
1573         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
1574         Don't generate such constants for aliases.
1575         * opts-common.c (generate_canonical_option): New.
1576         (decode_cmdline_option): Handle aliases.  Use
1577         generate_canonical_option for known options instead of copying the
1578         input option text.
1579         * doc/options.texi (Alias): Document.
1580         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
1581         fstack-check, specs): Mark as aliases.
1582         * gcc.c (driver_handle_option): Canonicalize -L options to joined
1583         arguments.
1584         (driver_handle_option): Don't handle OPT_specs.
1585         * opts.c (common_handle_option): Don't handle options marked as
1586         aliases.
1587         (enable_warning_as_error): Handle aliases.
1588         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
1589         OPT_Wlarger_than_eq.
1590         * tree-optimize.c (tree_rest_of_compilation): Use
1591         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
1592
1593 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1594
1595         * config/i386/i386.md (nonmemory_operand): New mode attribute.
1596         (push memory peephole2): Macroize peepholes using SWI mode iterator.
1597         (move immediate to memory peephole2): Macroize peepholes using
1598         SWI124 mode iterator.
1599         (non-pairable NOT peephole2): Macroize peepholes using SWI124
1600         mode iterator.
1601         (simple lea add peephole2): Macroize peepholes using SWI48
1602         mode iterator.
1603         (simple lea mult peephole2): Ditto.
1604         (imul by 3,5,9 to lea peephole2): Ditto.
1605         (mov $-1, reg peephole2): Macroize peepholes using SWI248
1606         mode iterator.
1607         (imul $32bit_imm,mem,reg peephole2): Ditto.
1608         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
1609
1610 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
1611
1612         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
1613
1614 2010-09-02  Olivier Hainque  <hainque@adacore.com>
1615
1616         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
1617         (allocno_priority_compare_func): Use it instead of a straight
1618         difference computation over priorities.
1619
1620 2010-09-02  Andi Kleen  <ak@linux.intel.com>
1621
1622         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
1623
1624 2010-09-02  Ira Rosen  <irar@il.ibm.com>
1625
1626         * tree-vectorizer.h (get_later_stmt): New function.
1627         (vect_analyze_data_ref_dependences): Add argument.
1628         * tree-vect-loop.c (vect_analyze_loop): Update call to
1629         vect_analyze_data_ref_dependences.
1630         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
1631         New function.
1632         (vect_analyze_data_ref_dependence): Add argument for basic block
1633         dependencies. Check dependencies in basic block vectorization.
1634         (vect_analyze_data_ref_dependences): Add argument and update call to
1635         vect_analyze_data_ref_dependences.
1636         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
1637         (vect_bb_vectorizable_with_dependencies): New.
1638         (vect_slp_analyze_bb): Check dependencies in basic block.
1639         (vect_schedule_slp_instance): Insert stores before the last store in
1640         SLP instance.
1641
1642 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
1643
1644         PR target/45476
1645         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
1646         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
1647
1648 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
1649
1650         PR middle-end/45458
1651         * bb-reorder.c (add_labels_and_missing_jumps): Treat
1652         bbs ending with throwing insns like blocks ending with a call.
1653         (fix_up_fall_thru_edges): Likewise.
1654
1655 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
1656
1657         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
1658         (m32c_function_arg_advance): Delete.
1659         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1660         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
1661         comments.  Take a const_tree and a bool.  Declare.
1662         (m32c_function_arg_advance): Likewise.
1663         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1664
1665 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1666
1667         PR target/45476
1668         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
1669         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
1670         * config/i386/mingw32.h: ... here.
1671
1672 2010-09-01  Andi Kleen  <ak@linux.intel.com>
1673
1674         PR lto/45475
1675         * lto-streamer-in.c (lto_input_ts_target_option): Add.
1676         (lto_input_tree_pointers): Call lto_input_ts_target_option.
1677         * lto-streamer-out (lto_output_ts_target_option): Add.
1678         (lto_output_tree_pointers): Call lto_output_ts_target_option.
1679
1680 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
1681
1682         PR/target 45452
1683         * config/i386/cygwin.h: Change order of specified import libraries.
1684         * config/i386/mingw32.h: Likewise.
1685         * config/i386/t-cygwin: Likewise.
1686         * config/i386/t-mingw32: Likewise.
1687         * config/i386/t-mingw-w32: Likewise.
1688         * config/i386/t-mingw-w64: Likewise.
1689
1690 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1691
1692         * config/arm/neon-schedgen.ml (core): New type.
1693         (allCores): List of supported cores.
1694         (availability_table): Add supported cores.
1695         (collate_bypasses): Accept core as a parameter.
1696         (worst_case_latencies_and_bypasses): Accept core as a parameter.
1697         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
1698         and coreStr to get tune attribute and prefix for functional units.
1699         (emit_bypasses): Accept core name and use it.
1700         (calculate_per_core_availability_table): New.
1701         (filter_core): New.
1702         (calculate_core_availability_table): New.
1703         (main): Use calculate_core_availablity_table.
1704         * config/arm/cortex-a8-neon.md: Update copyright year.
1705         Regenerated from ml file and merged in.
1706         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
1707         cortex_a8_neon_mrc.
1708
1709 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
1710
1711         * Makefile.in (tree-switch-conversion.o): Update dependencies.
1712
1713 2010-09-01  Richard Guenther  <rguenther@suse.de>
1714
1715         * alias.c (ao_ref_from_mem): Adjust.
1716         * builtins.c (get_object_alignment): Likewise.
1717         * cfgexpand.c (expand_debug_expr): Likewise.
1718         * gimple.c (get_base_address): Likewise.
1719         * tree-dfa.c (get_ref_base_and_extent): Likewise.
1720         (get_addr_base_and_unit_offset): Likewise.  Fix for
1721         both TMR_SYMBOL and TMR_BASE being set.
1722         * tree-eh.c (tree_could_trap_p): Likewise.
1723         * gimplify.c (gimplify_expr): Do not attempt to gimplify
1724         TMR_SYMBOL.  Always gimplify TMR_BASE.
1725         * tree-cfg.c (verify_types_in_gimple_reference): Verify
1726         TMR_BASE if there is a TMR_SYMBOL.
1727         * tree-pretty-print.c (dump_generic_node): Adjust.
1728         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
1729         (tree_mem_ref_addr): Likewise.
1730         (create_mem_ref_raw): Likewise.
1731         (move_fixed_address_to_symbol): Likewise.
1732         (create_mem_ref): Likewise.
1733         (dump_mem_address): Likewise.
1734         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
1735         Fix for both TMR_SYMBOL and TMR_BASE being set.
1736         (indirect_refs_may_alias_p): Likewise.
1737         * tree-ssa-operands.c (get_tmr_operands): Adjust.
1738         * tree.def (TARGET_MEM_REF): Adjust documentation.
1739
1740 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1741
1742         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
1743         Rename from X86_TUNE_ADD_ESP_4.
1744         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
1745         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
1746         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
1747         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
1748         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
1749         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
1750         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
1751         * config/i386/i386.c (initial_ix86_tune_features)
1752         <X86_TUNE_SINGLE_POP>: Invert members.
1753         <X86_TUNE_DOUBLE_POP>: Ditto.
1754         <X86_TUNE_SINGLE_PUSH>: Ditto.
1755         <X86_TUNE_DOUBLE_PUSH>: Ditto.
1756         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
1757         No longer exported.
1758         (push peephole2 patterns): Macroize peepholes using P mode iterator.
1759         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
1760         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
1761         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
1762
1763 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
1764
1765         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
1766         a volatile LHS if the constructor has only one element.
1767
1768 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
1769
1770         PR bootstrap/45321
1771         * tree.c (stdarg_p): Make fntype parameter const.
1772         * tree.h (stdarg_p): Likewise.
1773         (function_args_iterator): Remove unused fntype field.
1774         (function_args_iter_init): Do not initialize fntype
1775         field.  Make fntype parameter const.
1776
1777 2010-09-01  Richard Guenther  <rguenther@suse.de>
1778
1779         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
1780         estimate.
1781         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
1782         (execute_vrp): Compute number of iteration estimates.
1783         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
1784         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
1785         * tree-data-ref.c (estimated_loop_iterations): Adjust.
1786         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
1787         Infer loop bounds from undefined behavior based on a new parameter.
1788         (estimate_numbers_of_iterations): Likewise.
1789         (scev_probably_wraps_p): Adjust.
1790         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
1791
1792 2010-09-01  Nick Clifton  <nickc@redhat.com>
1793
1794         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
1795         where appropriate.
1796         (xstormy16_legitimate_address_p): Use true and false instead of 1
1797         and 0.
1798         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
1799         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
1800         magic constant 2.
1801         (xstormy16_expand_call): Fix comment at start of function.
1802
1803 2010-09-01  Nick Clifton  <nickc@redhat.com>
1804
1805         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
1806         when pushing accumulator register.
1807         (rx_get_stack_layout): Always save call clobbered registers inside
1808         interrupt handlers.
1809         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
1810
1811 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
1812
1813         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
1814         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
1815
1816         * libgcc-std.ver (GCC_4.6.0): Define version.
1817
1818 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1819
1820         * tree-nested.c (convert_all_function_calls): Iterate until after the
1821         sum of static chains in the nest doesn't change.
1822
1823 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
1824
1825         * config/m32c/m32c.c (classes_intersect): Remove.
1826         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
1827         reg_classes_intersect_p instead of classes_intersect.
1828         (class_can_hold_mode): Change arguments type from enum reg_class to
1829         reg_class_t.  Use reg_class_contents instead of class_contents.
1830         (m32c_register_move_cost): Make static. Change arguments type from
1831         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
1832         classes_intersect. Use reg_class_contents instead of class_contents.
1833         (m32c_memory_move_cost): Make static. Change arguments type from
1834         enum reg_class to reg_class_t.
1835         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
1836         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
1837         * config/m32c/m32c-protos.h (m32c_register_move_cost,
1838         m32c_memory_move_cost): Remove.
1839
1840 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1841
1842         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
1843         (arm_function_arg): Delete.
1844         (arm_needs_doubleword_align): Take a const_tree.
1845         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1846         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
1847         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
1848         (arm_function_arg): Make static.  Take a const_tree and a bool.
1849         (arm_function_arg_advance): Likewise.
1850         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1851
1852 2010-08-31  Andi Kleen  <ak@linux.intel.com>
1853
1854         * common.opt (fwhopr=): Update for -fwhopr=jobserver
1855         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
1856         * lto-wrapper.c (run_gcc): Add jobserver mode.
1857         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
1858         argument.
1859
1860 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
1861
1862         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
1863         (popsi1): Ditto.
1864         (*popdi1_epilogue): Ditto.
1865         (*popsi1_epilogue): Ditto.
1866         (popsi, popdi peephole2 patterns): Update peepholes for changed
1867         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
1868
1869         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
1870         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
1871
1872         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
1873         (override_options): Do not initialize removed ix86_gen_pop1.
1874         (gen_pop): New static function.
1875         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
1876         (release_scratch_register_on_entry): Ditto.
1877         (ix86_restore_reg_using_pop): Ditto.
1878         (ix86_expand_epilogue): Ditto.
1879
1880 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
1881
1882         PR middle-end/45461
1883         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
1884
1885 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1886
1887         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
1888         semicolons.
1889
1890 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
1891
1892         * doc/extend.texi: Fix documentation of the return value of
1893         __builtin_choose_expr.
1894
1895 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1896
1897         * config/v850/v850-protos.h (function_arg): Delete.
1898         * config/v850/v850.h (FUNCTION_ARG): Delete.
1899         (FUNCTION_ARG_ADVANCE): Move code to...
1900         * config/v850/v850.c (v850_function_arg_advance): ...here.
1901         (v850_function_arg): Make static.  Take a const_tree and a bool.
1902         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1903
1904 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1905
1906         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
1907         these...
1908         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1909         ...and these...
1910         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
1911         ..to here..
1912         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
1913         ...and here.
1914         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1915
1916 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
1917
1918         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
1919         Delete.
1920         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1921         * config/rx/rx.c (rx_function_arg_size): Make static.
1922         (rx_function_arg): Likewise.
1923         (rx_function_arg_advance): New function.
1924         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1925
1926 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
1927
1928         * config/arm/arm.c (arm_override_options): Remove superfluous test.
1929         Fix indentation.
1930
1931 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
1932
1933         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
1934         (dwarf2out_decl) <CONST_DECL>: Likewise.
1935
1936 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
1937
1938         Stack usage support
1939         * common.opt (-fstack-usage): New option.
1940         * doc/invoke.texi (Debugging options): Document it.
1941         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
1942         allocate_dynamic_stack_space.
1943         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
1944         and propagate it to allocate_dynamic_stack_space.
1945         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
1946         * calls.c (initialize_argument_information): Pass TRUE as 4th
1947         argument to allocate_dynamic_stack_space.
1948         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
1949         to 1 when pushing a variable-sized argument onto the stack.  Pass
1950         TRUE as 4th argument to allocate_dynamic_stack_space.
1951         Update current_function_pushed_stack_size.
1952         (emit_library_call_value_1): Likewise.
1953         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
1954         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
1955         attempt to find an upper bound.  Remove redundant code for the
1956         SETJMP_VIA_SAVE_AREA case.
1957         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
1958         * function.h (struct stack_usage): New structure.
1959         (current_function_static_stack_size): New macro.
1960         (current_function_dynamic_stack_size): Likewise.
1961         (current_function_pushed_stack_size): Likewise.
1962         (current_function_dynamic_alloc_count): Likewise.
1963         (current_function_has_unbounded_dynamic_stack_size): Likewise.
1964         (current_function_allocates_dynamic_stack_space): Likewise.
1965         (struct function): Add new field 'su'.
1966         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
1967         add the value of the dynamic offset to the dynamic stack usage.
1968         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
1969         for variable-sized objects.
1970         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
1971         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
1972         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
1973         BUILT_IN_ALLOCA for variable-sized objects.
1974         * output.h (output_stack_usage): Declare.
1975         * toplev.c (stack_usage_file): New file pointer.
1976         (output_stack_usage): New function.
1977         (open_auxiliary_file): Likewise.
1978         (lang_dependent_init): Open file if flag_stack_usage is set.
1979         (finalize): Close file if stack_usage_file is not null.
1980         * tree.h (ALLOCA_FOR_VAR_P): New macro.
1981         * config/alpha/alpha.c (compute_frame_size): New function.
1982         (alpha_expand_prologue): Use it.
1983         (alpha_start_function): Likewise.
1984         (alpha_expand_epilogue): Likewise.  Set stack usage info.
1985         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1986         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1987         * config/mips/mips.c (mips_expand_prologue): Likewise.
1988         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1989         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1990         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1991
1992 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
1993
1994         PR tree-optimization/45427
1995         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
1996         Handle the case that the exit is never taken correctly.
1997         (number_of_iterations_ne): Pass exit_must_be_taken to
1998         number_of_iterations_ne_max.
1999
2000 2010-08-30  Catherine Moore  <clm@codesourcery.com>
2001
2002         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
2003         Infer -mdspr2 for the the 74K.
2004
2005 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
2006
2007         PR debug/45419
2008         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
2009
2010         PR middle-end/45423
2011         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
2012         and TRUTH_{AND,OR,XOR}_EXPR.
2013         * c-parser.c (c_parser_omp_atomic): Handle boolean
2014         {PRE,POST}_{INC,DEC}REMENT.
2015
2016 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
2017
2018         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
2019         (function_arg): Delete.
2020         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2021         (FUNCTION_INCOMING_ARG): Delete.
2022         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
2023         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
2024         and a bool.
2025         (function_arg): Rename to...
2026         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
2027         a bool.
2028         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
2029         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2030         (TARGET_FUNCTION_INCOMING_ARG): Define.
2031
2032 2010-08-30  Richard Guenther  <rguenther@suse.de>
2033
2034         PR tree-optimization/21602
2035         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
2036         using points-to information.
2037
2038 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
2039
2040         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
2041
2042 2010-08-30  Richard Guenther  <rguenther@suse.de>
2043
2044         PR tree-optimization/45449
2045         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
2046         variables.
2047
2048 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
2049
2050         * opts.h (CL_ERR_NEGATIVE): Define.
2051         * opts.c (unknown_option_callback): Don't postpone warnings for
2052         options marked with CL_ERR_NEGATIVE.
2053         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
2054         for negative versions of CL_REJECT_NEGATIVE options.
2055
2056 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
2057
2058         * config/i386/i386.md (zero_extendsidi2_1): Rename from
2059         zero_extendsidi2_32.
2060         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
2061         using SWI12 mode iterator.
2062         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
2063         to define_insn_and_split pattern.
2064         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
2065         using SWI24 mode iterator.
2066         (*zero_extendqi<mode>2_and): Macroize insn from
2067         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
2068         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
2069         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
2070         SWI24 mode iterator.
2071         (*zero_extendqi<mode>2_movzbl): Ditto from
2072         *zero_extendqi{hi,si}2_movzbl.
2073         (extendsidi2_1): Rename from extendsidi2_32.
2074         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
2075         SWI12 mode iterator.
2076
2077 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
2078
2079         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
2080         general purpose registers.
2081         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
2082         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
2083         with general purpose registers and memory operands.  Add associated
2084         CCImode post-reload splitter.
2085         * config/ia64/div.md: Change BImode to CCImode throughout.
2086
2087 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
2088
2089         * config/ia64/ia64.md (cstorebi4): Fix thinko.
2090
2091 2010-08-28  Hariharan Sandanagobalane <hariharan@picochip.com>
2092
2093         * config/picochip/picochip.c (reorder_var_tracking_notes): This
2094         function was dropping debug insns which caused PR45299.
2095
2096 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
2097
2098         * config/i386/sse.md (extsuffix): New code attribute.
2099         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
2100         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
2101         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
2102         and sse4_1_zero_extendv4qiv4si2.
2103         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
2104         and sse4_1_zero_extendv2qiv2di2.
2105         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
2106         and sse4_1_zero_extendv4hiv4si2.
2107         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
2108         and sse4_1_zero_extendv2hiv2di2.
2109         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
2110         and sse4_1_zero_extendv2siv2di2
2111
2112         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
2113         using any_extend code iterator.
2114         (*avx_<s>mulv8hi3_highpart): Macroize insn from
2115         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
2116         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
2117
2118         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
2119         gen_sse4_1_sign_extend* functions.
2120         (struct builtin_description bdesc_args): Ditto.
2121
2122 2010-08-27  Xinliang David Li  <davidxl@google.com>
2123
2124         PR/45422
2125         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
2126         (iv_ca_set_no_cp): Update used inv expr count.
2127         (iv_ca_set_cp): Ditto.
2128         (iv_ca_new): Initialize new member.
2129         (iv_ca_free): Free memory.
2130
2131 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2132
2133         * config/sh/sh-protos.h (sh_function_arg): Delete.
2134         (sh_function_arg_advance): Delete.
2135         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2136         (PASS_IN_REG_P): Eliminate cast.
2137         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
2138         const_tree and a bool.
2139         (sh_function_arg): Likewise.
2140         (sh_output_mi_thunk): Call sh_function_arg_advance) and
2141         sh_function_arg.
2142         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2143
2144 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
2145             Kaz Kojima  <kkojima@gcc.gnu.org>
2146
2147         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
2148         when possible.
2149         (sh_expand_epilogue): Likewise.
2150         * config/sh/sh.md (movml_push_banked): New insn.
2151         (movml_pop_banked): Likewise.
2152
2153 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
2154
2155         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
2156         gen_regexp_oneof, gen_regexp_sequence): Use the string found
2157         in vector element 0 rather than the original string when there's
2158         only one element.
2159         (gen_regexp): Remove extra semicolon.
2160
2161         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
2162         thumb2_movsf_vfp): Set attribute "insn".
2163         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
2164         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
2165         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
2166         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
2167         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
2168         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
2169         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
2170         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
2171         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
2172         if_not_arith, if_arith_not, cond_move_not): Likewise.
2173
2174 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2175
2176         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
2177         New declaration.
2178         (rs6000_allocate_stack_temp): Ditto.
2179         (rs6000_expand_convert_si_to_sfdf): Ditto.
2180
2181         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
2182         line.  Update the options set if power6 or power7 server/embedded
2183         type options are used.  If we give a warning for no vsx under
2184         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
2185         (rs6000_allocate_stack_temp): New function to allocate a stack
2186         tempoary and adjust the address so it meets either REG+OFFSET or
2187         REG+REG addressing requirements.
2188         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
2189         that they can be used with the LFIWAX/LFIWZX instrucitons.
2190         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
2191         converting signed/unsigned SImode to either SFmode/DFmode.
2192
2193         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
2194         whether certain instructions can be generated.
2195         (TARGET_FCTIDZ): Ditto.
2196         (TARGET_STFIWX): Ditto.
2197         (TARGET_LFIWAX): Ditto.
2198         (TARGET_LFIWZX): Ditto.
2199         (TARGET_FCFIDS): Ditto.
2200         (TARGET_FCFIDU): Ditto.
2201         (TARGET_FCFIDUS): Ditto.
2202         (TARGET_FCTIDUZ): Ditto.
2203         (TARGET_FCTIWUZ): Ditto.
2204
2205         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
2206         (UNSPEC_FCTID): Ditto.
2207         (UNSPEC_LFIWAX): Ditto.
2208         (UNSPEC_LFIWZX): Ditto.
2209         (UNSPEC_FCTIWUZ): Ditto.
2210         (rreg): Use correct constraints.
2211         (SI_CONVERT_FP): New mode attribute for floating point conversion
2212         tests.
2213         (E500_CONVERT): Ditto.
2214         (lfiwax): New insns for converting from integer to floating point
2215         utilizing newer instructions.  Attempt to optimize conversions
2216         that come from memory so that we don't load the value into a GPR,
2217         spill it to the stack and reload it into a FPR.
2218         (floatsi<mode>2_lfiwax): Ditto.
2219         (floatsi<mode>2_lfiwax_mem): Ditto.
2220         (floatsi<mode>2_lfiwax_mem2): Ditto.
2221         (lfiwzx): Ditto.
2222         (floatunssi<mode>2_lfiwzx): Ditto.
2223         (floatunssi<mode>2_lfiwzx_mem): Ditto.
2224         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
2225         (floatdidf2_mem): Ditto.
2226         (floatunsdidf2_fcfidu): Ditto.
2227         (floatunsdidf2_mem): Ditto.
2228         (floatunsdisf2): Ditto.
2229         (floatunsdisf2_fcfidus): Ditto.
2230         (floatunsdisf2_mem): Ditto.
2231         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
2232         Use FCFID on 32-bit hosts that support it.
2233         (floatsidf2_internal): Ditto.
2234         (floatunssisf2): Ditto.
2235         (floatunssidf2): Ditto.
2236         (floatunssidf2_internal): Ditto.
2237         (floatsisf2): Ditto.
2238         (floatdidf2): Ditto.
2239         (floatdidf2_fpr): Ditto.
2240         (floatunsdidf2): Ditto.
2241         (floatdisf2): Ditto.
2242         (floatdisf2_fcfids): Ditto.
2243         (floatdisf2_internal1): Ditto.
2244         (fixuns_truncsfsi2): Delete, merge into common pattern for both
2245         SF/DF.  Add power7 support.
2246         (fix_truncsfsi2): Ditto.
2247         (fixuns_truncdfsi2): Ditto.
2248         (fixuns_truncdfdi2): Ditto.
2249         (fix_truncdfsi2): Ditto.
2250         (fix_truncdfsi2_internal): Ditto.
2251         (fix_truncdfsi2_internal_gfxopt): Ditto.
2252         (fix_truncdfsi2_mfpgpr): Ditto.
2253         (fctiwz): Ditto.
2254         (btruncdf2): Ditto.
2255         (btruncdf2_fpr): Ditto.
2256         (btructsf2): Ditto.
2257         (ceildf2): Ditto.
2258         (ceildf2_fpr): Ditto.
2259         (ceilsf2): Ditto.
2260         (floordf2): Ditto.
2261         (floordf2_fpr): Ditto.
2262         (floorsf2): Ditto.
2263         (rounddf2): Ditto.
2264         (rounddf2_fpr): Ditto.
2265         (roundsf2): Ditto.
2266         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
2267         (fix_trunc<mode>di2): Ditto.
2268         (fixuns_trunc<mode>si2): Ditto.
2269         (fixuns_trunc<mode>di2): Ditto.
2270         (fctiwz_<mode>): Ditto.
2271         (btrunc<mode>2): Ditto.
2272         (btrunc<mode>2_fpr): Ditto.
2273         (ceil<mode>2): Ditto.
2274         (ceil<mode>2_fpr): Ditto.
2275         (floor<mode>2): Ditto.
2276         (float<mode>2_fpr): Ditto.
2277         (round<mode>2): Ditto.
2278         (round<mode>2_fpr): Ditto.
2279         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
2280         (fixuns_trunc<mode>si2_stfiwx): Ditto.
2281         (fix_truncdfsi2_internal): Ditto.
2282         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
2283         converted value on stack, loaded into GPR, and then stored into
2284         the final destination.
2285         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
2286         FCTIDZ.
2287         (lrint<mode>di2): New insn, provide the lrint builtin functions.
2288         (ftruncdf2): Delete, unused.
2289         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
2290
2291         * config/rs6000/vsx.md (toplevel): Update copyright year.
2292         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
2293         (VSr3): Ditto.
2294
2295 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
2296             Jeremie Salvucci  <jeremie.salvucci@free.fr>
2297
2298         * gengtype.c (output_type_enum): Test the right union member.
2299
2300 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
2301
2302         PR target/41484
2303         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
2304         operands for operand 1.
2305         (sse4_1_extendv4qiv4si2): Ditto.
2306         (sse4_1_extendv2qiv2di2): Ditto.
2307         (sse4_1_extendv4hiv4si2): Ditto.
2308         (sse4_1_extendv2hiv2di2): Ditto.
2309         (sse4_1_extendv2siv2di2): Ditto.
2310         (sse4_1_zero_extendv8qiv8hi2): Ditto.
2311         (sse4_1_zero_extendv4qiv4si2): Ditto.
2312         (sse4_1_zero_extendv2qiv2di2): Ditto.
2313         (sse4_1_zero_extendv4hiv4si2): Ditto.
2314         (sse4_1_zero_extendv2hiv2di2): Ditto.
2315         (sse4_1_zero_extendv2siv2di2): Ditto.
2316         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
2317         (*sse4_1_extendv4qiv4si2): Ditto.
2318         (*sse4_1_extendv2qiv2di2): Ditto.
2319         (*sse4_1_extendv4hiv4si2): Ditto.
2320         (*sse4_1_extendv2hiv2di2): Ditto.
2321         (*sse4_1_extendv2siv2di2): Ditto.
2322         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
2323         (*sse4_1_zero_extendv4qiv4si2): Ditto.
2324         (*sse4_1_zero_extendv2qiv2di2): Ditto.
2325         (*sse4_1_zero_extendv4hiv4si2): Ditto.
2326         (*sse4_1_zero_extendv2hiv2di2): Ditto.
2327         (*sse4_1_zero_extendv2siv2di2): Ditto.
2328
2329 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2330
2331         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
2332         (mips_function_arg): Delete.
2333         (mips_function_arg_boundary): Take a const_tree.
2334         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
2335         (mips_arg_info): Likewise.
2336         (mips_setup_incoming_varargs): Call mips_function_arg_advance
2337         instead of FUNCTION_ARG_ADVANCE.
2338         (mips_function_arg_advance): Adjust prototype.  Make static.
2339         (mips_function_arg): Likewise.
2340         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2341         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
2342
2343 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
2344
2345         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
2346         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
2347         (function_arg): Delete.
2348         (function_arg_boundary): Take a const_tree.
2349         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
2350         (rs6000_spe_function_arg): Likewise.
2351         (rs6000_parm_start): Likewise.
2352         (rs6000_arg_size): Likewise.
2353         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
2354         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
2355         (rs6000_mixed_function_arg): Likewise.
2356         (function_arg): Rename to...
2357         (rs6000_function_arg): ...this.
2358         (function_arg_advance): Rename to...
2359         (rs6000_function_arg_advance_1): ...this
2360         (rs6000_function_arg_advance): New function.  Call it.
2361         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
2362         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
2363         (rs6000_function_value): Likewise.
2364         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
2365
2366 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2367
2368         * config/arm/arm.md (enabled): Test the value of arch_enabled
2369         rather than just using it.
2370
2371 2010-08-27  Olivier Hainque  <hainque@adacore.com>
2372             Eric Botcazou  <ebotcazou@adacore.com>
2373
2374         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
2375         cover all the possible offsets from this base.
2376         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
2377
2378 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
2379
2380         PR tree-optimization/44485
2381         * calls.c (flags_from_decl_or_type): For const or pure
2382         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
2383         together with ECF_CONST resp. ECF_PURE.
2384         * builtins.c (expand_builtin): Use flags_from_decl_or_type
2385         instead of querying flags directly.
2386         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
2387         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
2388
2389 2010-08-26  Richard Guenther  <rguenther@suse.de>
2390
2391         PR tree-optimization/45255
2392         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
2393         and externals are also invariant.
2394
2395 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2396
2397         PR rtl-optimization/44858
2398         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
2399         newi2pat, make sure they don't affect newpat.
2400
2401         PR rtl-optimization/45400
2402         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
2403         SUBREG_REG if both modes are of MODE_INT class.
2404
2405 2010-08-25  Julian Brown  <julian@codesourcery.com>
2406
2407         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
2408         * config/arm/arm.md (generic_sched): No for Cortex-A5.
2409         (generic_vfp): Likewise.
2410         (cortex-a5.md): Include.
2411         * config/arm/cortex-a5.md: New.
2412
2413 2010-08-25  Richard Guenther  <rguenther@suse.de>
2414
2415         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
2416         * gimple.c (gimple_get_alias_set): Remove special handling
2417         for pointers.
2418
2419 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
2420
2421         PR middle-end/45355
2422         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
2423         dead_or_set_p when computing i0_feeds_i2_n.
2424
2425         * combine.c (find_split_point): Undo canonicalization of multiply-add
2426         to (minus x (mult)) when it seems likely that this will increase the
2427         chances of a split.
2428
2429 2010-08-25  Richard Guenther  <rguenther@suse.de>
2430
2431         PR lto/44562
2432         * lto-streamer.c (lto_record_common_node): Do not mess with
2433         TYPE_CANONICAL when not in lto.
2434         * gimple.c (gimple_register_type): Likewise.
2435
2436 2010-08-25  Richard Guenther  <rguenther@suse.de>
2437
2438         PR tree-optimization/45316
2439         * tree-ssa-pre.c (eliminate): Properly clean EH info.
2440
2441 2010-08-25  Richard Guenther  <rguenther@suse.de>
2442
2443         PR tree-optimization/45393
2444         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
2445         and clean EH info.  Avoid SSA update.
2446         (execute_cse_sincos): Cleanup the CFG if it has changed.
2447
2448 2010-08-25  Richard Guenther  <rguenther@suse.de>
2449
2450         PR middle-end/45379
2451         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
2452         TARGET_MEM_REF in alignment computation.
2453
2454 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
2455
2456         PR tree-optimization/45059
2457         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
2458         type conversions from newop{1,2}.  Assert t is a comparison and
2459         newop{1,2} after the stripping are gimple vals.
2460
2461 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
2462
2463         * config/arm/iterators.md (VU, SE, V_widen_l): New.
2464         (V_unpack, US): New.
2465         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
2466         (vec_unpack<US>_lo_<mode>): Likewise.
2467         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
2468         (neon_vec_unpack<US>_lo_<mode>): Likewise.
2469         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
2470         (vec_widen_<US>mult_hi_<mode>): Likewise.
2471         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
2472         (neon_vec_<US>mult_hi_<mode>"): Likewise.
2473         (neon_unpack<US>_<mode>): Widening move intermediate step for
2474         vectorizing without -mvectorize-with-neon-quad.
2475         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
2476         for vectorizing without -mvectorize-with-neon-quad.
2477         * config/arm/predicates.md (vect_par_constant_high): Check for
2478         high-half lanes of a vector.
2479         (vect_par_constant_low): Check for low-half lanes of a vector.
2480
2481 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2482
2483         * tree-if-conv.c (struct ifc_dr): New.
2484         (IFC_DR): New.
2485         (DR_WRITTEN_AT_LEAST_ONCE): New.
2486         (DR_RW_UNCONDITIONALLY): New.
2487         (memref_read_or_written_unconditionally): Use the cached values
2488         when possible.
2489         (write_memref_written_at_least_once): Same.
2490         (if_convertible_loop_p): Initialize and free DR->aux fields.
2491
2492 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2493
2494         * gimple.c (gimple_could_trap_p_1): Not static anymore.
2495         Pass an extra bool parameter include_mem.
2496         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
2497         (gimple_assign_rhs_could_trap_p): Same.
2498         * gimple.h (gimple_could_trap_p_1): Declared.
2499         * tree-data-ref.h (same_data_refs_base_objects): New.
2500         (same_data_refs): New.
2501         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
2502         (write_memrefs_written_at_least_once): New.
2503         (ifcvt_memrefs_wont_trap): New.
2504         (operations_could_trap): New.
2505         (ifcvt_could_trap_p): New.
2506         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
2507         Gets a vector of data refs.
2508         (if_convertible_stmt_p): Same.
2509         (if_convertible_loop_p_1): New.
2510         (if_convertible_loop_p): Call if_convertible_loop_p_1.
2511
2512 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
2513
2514         * common.opt (ftree-loop-if-convert-stores): New flag.
2515         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
2516         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
2517         the created statement before GSI.
2518         (if_convertible_phi_p): Allow virtual phi nodes when
2519         flag_loop_if_convert_stores is set.
2520         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
2521         Do not handle types that do not match is_gimple_reg_type.
2522         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
2523         when flag_loop_if_convert_stores is set, as LHS can contain
2524         memory refs.
2525         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
2526         to if_convertible_gimple_assign_stmt_p.
2527         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
2528         (replace_phi_with_cond_gimple_assign_stmt): Renamed
2529         predicate_scalar_phi.  Do not handle virtual phi nodes.
2530         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
2531         Call predicate_scalar_phi.
2532         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
2533         just after the labels for flag_loop_if_convert_stores, otherwise
2534         insert the predicate in the end of the BB.
2535         (predicate_mem_writes): New.
2536         (combine_blocks): Call predicate_all_scalar_phis.  When
2537         flag_loop_if_convert_stores is set, call predicate_mem_writes.
2538         (tree_if_conversion): Call mark_sym_for_renaming when
2539         flag_loop_if_convert_stores is set.
2540         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
2541         flag_loop_if_convert_stores is set.
2542
2543 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
2544
2545         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
2546         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
2547         (pa_function_value): Make static.
2548         (override_options): Rename to...
2549         (pa_option_override): ...this. Make static.
2550         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
2551         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
2552         TARGET_OPTION_OVERRIDE): Define.
2553         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
2554         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
2555         Remove.
2556         * config/pa/pa-protos.h (override_options): Remove.
2557
2558 2010-08-24  Richard Guenther  <rguenther@suse.de>
2559
2560         PR middle-end/45379
2561         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
2562         if addr->index is NULL or zero.
2563         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
2564         TARGET_MEM_REF more properly.
2565         (indirect_ref_may_alias_decl_p): Likewise.
2566         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
2567         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
2568
2569 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
2570
2571         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
2572         (m32c_override_options): Rename to...
2573         (m32c_option_override): ...this. Make static.
2574         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
2575         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
2576         Remove.
2577         * config/m32c/m32c-protos.h (m32c_override_options,
2578         m32c_function_value_regno_p): Remove.
2579
2580 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2581
2582         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
2583         Fix a typo in a previous commit.
2584
2585 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
2586
2587         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
2588         Pre-initialize innerloop_iters to one.
2589
2590 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
2591
2592         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
2593         existing static function global.
2594
2595         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
2596         is changed to global.
2597
2598         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
2599         may_be_nonaddressable_p on base, and don't collect this reference
2600         if the address of the base could not be taken.
2601
2602 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2603
2604         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
2605         enable the compiler to autovectorize mathmetical functions for
2606         power7 using the Mathematical Acceleration Subsystem library.
2607
2608         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
2609         handle which vector math library we have.
2610         (rs6000_override_options): Add -mveclibabi=mass support.
2611         (rs6000_builtin_vectorized_libmass): New function to handle auto
2612         vectorizing math functions that are in the MASS library.
2613         (rs6000_builtin_vectorized_function): Call it.
2614
2615         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2616         -mveclibabi=mass.
2617
2618 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2619
2620         PR boehm-gc/34544
2621         * gthr-posix.h (__gthread_active_init): Delete.
2622         (__gthread_active_p): Do activity check here.
2623         Don't include errno.h on hppa-hpux.  Update comment.
2624         * gthr-posix95.h (__gthread_active_init): Delete.
2625         (__gthread_active_p): Do activity check here.
2626         Don't include errno.h on hppa-hpux.  Update comment.
2627         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
2628         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
2629         add -lpthread when -mt or -pthread is specified.
2630         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
2631         (LINK_GCC_C_SEQUENCE_SPEC): Define.
2632         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
2633         (stublib.c, pthread_default_stacksize_np-stub.o,
2634         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
2635         $(T)libgcc_stub.a): Add methods.
2636         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
2637         (stublib.c, pthread_default_stacksize_np-stub.o,
2638         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
2639         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
2640         pthread_mutex_unlock): New stubs.
2641
2642 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
2643
2644         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
2645         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
2646         options.
2647         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
2648         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
2649         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
2650         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
2651         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
2652         "-l".
2653         * cppspec.c: Include opts.h.
2654         (lang_specific_driver): Use cl_decoded_option structures.
2655         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
2656         * doc/tm.texi: Regenerate.
2657         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
2658         (driver_handle_option): Allow driver options needing no special
2659         processing.
2660         (process_command): Decode options before call to
2661         lang_specific_driver.  Pass decoded options to
2662         lang_specific_driver.
2663         * gcc.h (lang_specific_driver): Update prototype.
2664         * gccspec.c: Include opts.h.
2665         (lang_specific_driver): Use cl_decoded_option structures.
2666         * opts-common.c (option_ok_for_language, generate_option,
2667         generate_option_input_file): New.
2668         (decode_cmdline_option): Use option_ok_for_language.
2669         (decode_cmdline_options_to_array): Use generate_option_input_file.
2670         (handle_generated_option): Use generate_option.
2671         * opts.h (generate_option, generate_option_input_file): Declare.
2672
2673 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
2674
2675         * config/mips/mips.c (mips_override_options): Rename to...
2676         (mips_option_override): ...this. Make static.
2677         (TARGET_OPTION_OVERRIDE): Define.
2678         (mips_in_small_data_p): Update comment.
2679         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
2680         (FIXED_REGISTERS): Update comment.
2681         * config/mips/mips-protos.h (mips_override_options): Remove.
2682
2683 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2684
2685         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
2686
2687 2010-08-21  Olivier Hainque  <hainque@adacore.com>
2688
2689         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
2690         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
2691
2692 2010-08-20  Jan Hubicka  <jh@suse.cz>
2693
2694         * tree-pass.h (pass_ipa_cdtor_merge): New function.
2695         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
2696         heap allocated.
2697         (record_cdtor_fn): Move to ipa.c; do not test for
2698         have_ctors_dtors.
2699         (build_cdtor): Move to ipa.c; add code avoiding construction
2700         when target have ctors/dtors and there is only one ctor/dtor at given
2701         priority.
2702         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
2703         sort; reverse order of constructors.
2704         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
2705         (cgraph_finalize_function): Do not call record_cdtor_fn.
2706         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
2707         (cgraph_build_static_cdtor): Move to ipa.c.
2708         * ipa.c: Include target.h and tree-iterator.h.
2709         (cgraph_build_static_cdtor, static_ctors, static_dtors,
2710         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
2711         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
2712         pass_ipa_cdtor_merge): New.
2713         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
2714         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
2715         bounds access.
2716
2717 2010-08-20  Jan Hubicka  <jh@suse.cz>
2718
2719         PR c++/45307
2720         PR c++/17736
2721         * cgraph.h (cgraph_only_called_directly_p,
2722         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
2723         static cdtors.
2724         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
2725         are not needed.
2726         (cgraph_finalize_function): Static cdtors are reachable.
2727         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
2728
2729 2010-08-20  Jan Hubicka  <jh@suse.cz>
2730
2731         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
2732         flag_wpa.
2733         * lto-streamer-out.c (lto_output): Likewise.
2734         * passes.c (ipa_write_optimization_summaries): Initialize statement
2735         uids.
2736
2737 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2738
2739         * tree.h (alias_diag_flags): New enum.
2740         (alias_pair): Add an 'emitted_diags' field.
2741         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
2742         (assemble_alias): Initialize emitted_diags of new pairs.
2743
2744 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
2745
2746         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
2747         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2748         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
2749         (STACK_CHECK_PROTECT): Define.
2750         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
2751         (output_probe_stack_range): Likewise.
2752         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
2753         builtin stack checking is enabled.
2754         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
2755         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
2756         (probe_stack_range): New insn.
2757
2758 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
2759
2760         PR target/45336
2761         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
2762         short first.
2763
2764         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
2765         char first.
2766
2767 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2768
2769         PR target/45336
2770         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
2771         to cover zero extension into 64-bit register.
2772         (*sse2_pextrw): Likewise.
2773         (*sse4_1_pextrd_zext): New insn.
2774
2775 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2776
2777         revert r163410, partially revert r163267.
2778         * config/rs6000/darwin.h (LIB_SPEC): Remove.
2779         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
2780         Darwin versions.
2781
2782 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2783
2784         PR middle-end/44974
2785         * builtins.c (expand_builtin): Don't optimize away
2786         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
2787
2788 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
2789
2790         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
2791         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
2792         alternative 1 of operand 2.
2793
2794 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2795             Paolo Bonzini  <bonzini@gnu.org>
2796
2797         * simplify-rtx.c (simplify_unary_operation_1): Optimize
2798         (sign_extend (zero_extend (...)) and
2799         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
2800
2801 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2802
2803         PR rtl-optimization/45353
2804         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
2805         after bb_note is a BARRIER.
2806
2807 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
2808
2809         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
2810         linking libgcc.a.
2811
2812 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
2813             Michael Matz  <matz@suse.de>
2814
2815         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
2816
2817 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2818
2819         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
2820         (ggc_mark_roots): ...here.
2821
2822 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
2823
2824         * vec.h (FOR_EACH_VEC_ELT): Define.
2825         * c-decl.c: Use it.
2826         * cfgloop.c: Likewise.
2827         * cfgloopmanip.c: Likewise.
2828         * cgraph.c: Likewise.
2829         * cgraphunit.c: Likewise.
2830         * combine.c: Likewise.
2831         * config/bfin/bfin.c: Likewise.
2832         * config/mips/mips.c: Likewise.
2833         * config/rs6000/rs6000.c: Likewise.
2834         * dbxout.c: Likewise.
2835         * df-scan.c: Likewise.
2836         * dominance.c: Likewise.
2837         * dse.c: Likewise.
2838         * dwarf2out.c: Likewise.
2839         * except.c: Likewise.
2840         * expr.c: Likewise.
2841         * function.c: Likewise.
2842         * gcse.c: Likewise.
2843         * genattr.c: Likewise.
2844         * ggc-common.c: Likewise.
2845         * gimplify.c: Likewise.
2846         * graphite-blocking.c: Likewise.
2847         * graphite-clast-to-gimple.c: Likewise.
2848         * graphite-dependences.c: Likewise.
2849         * graphite-interchange.c: Likewise.
2850         * graphite-poly.c: Likewise.
2851         * graphite-scop-detection.c: Likewise.
2852         * graphite-sese-to-poly.c: Likewise.
2853         * graphite.c: Likewise.
2854         * haifa-sched.c: Likewise.
2855         * ifcvt.c: Likewise.
2856         * implicit-zee.c: Likewise.
2857         * ipa-prop.c: Likewise.
2858         * ipa-struct-reorg.c: Likewise.
2859         * ipa.c: Likewise.
2860         * ira-build.c: Likewise.
2861         * ira-color.c: Likewise.
2862         * ira-emit.c: Likewise.
2863         * lambda-code.c: Likewise.
2864         * loop-invariant.c: Likewise.
2865         * loop-unroll.c: Likewise.
2866         * lower-subreg.c: Likewise.
2867         * lto-cgraph.c: Likewise.
2868         * lto-opts.c: Likewise.
2869         * lto-streamer-in.c: Likewise.
2870         * lto-streamer-out.c: Likewise.
2871         * lto-streamer.c: Likewise.
2872         * lto-symtab.c: Likewise.
2873         * matrix-reorg.c: Likewise.
2874         * opts.c: Likewise.
2875         * predict.c: Likewise.
2876         * print-tree.c: Likewise.
2877         * sdbout.c: Likewise.
2878         * sel-sched-dump.c: Likewise.
2879         * sel-sched-ir.c: Likewise.
2880         * sel-sched.c: Likewise.
2881         * sese.c: Likewise.
2882         * stor-layout.c: Likewise.
2883         * tree-cfg.c: Likewise.
2884         * tree-cfgcleanup.c: Likewise.
2885         * tree-chrec.c: Likewise.
2886         * tree-data-ref.c: Likewise.
2887         * tree-emutls.c: Likewise.
2888         * tree-inline.c: Likewise.
2889         * tree-into-ssa.c: Likewise.
2890         * tree-loop-distribution.c: Likewise.
2891         * tree-loop-linear.c: Likewise.
2892         * tree-mudflap.c: Likewise.
2893         * tree-outof-ssa.c: Likewise.
2894         * tree-parloops.c: Likewise.
2895         * tree-predcom.c: Likewise.
2896         * tree-pretty-print.c: Likewise.
2897         * tree-scalar-evolution.c: Likewise.
2898         * tree-ssa-live.c: Likewise.
2899         * tree-ssa-loop-im.c: Likewise.
2900         * tree-ssa-loop-ivcanon.c: Likewise.
2901         * tree-ssa-loop-ivopts.c: Likewise.
2902         * tree-ssa-loop-manip.c: Likewise.
2903         * tree-ssa-loop-niter.c: Likewise.
2904         * tree-ssa-loop-prefetch.c: Likewise.
2905         * tree-ssa-phiprop.c: Likewise.
2906         * tree-ssa-pre.c: Likewise.
2907         * tree-ssa-reassoc.c: Likewise.
2908         * tree-ssa-sccvn.c: Likewise.
2909         * tree-ssa-structalias.c: Likewise.
2910         * tree-ssa.c: Likewise.
2911         * tree-vect-data-refs.c: Likewise.
2912         * tree-vect-loop-manip.c: Likewise.
2913         * tree-vect-loop.c: Likewise.
2914         * tree-vect-patterns.c: Likewise.
2915         * tree-vect-slp.c: Likewise.
2916         * tree-vect-stmts.c: Likewise.
2917         * tree-vrp.c: Likewise.
2918         * tree.c: Likewise.
2919         * value-prof.c: Likewise.
2920         * var-tracking.c: Likewise.
2921         * varasm.c: Likewise.
2922         * vmsdbgout.c: Likewise.
2923
2924 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
2925             Richard Guenther  <richard.guenther@gmail.com>
2926
2927         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
2928         copy the src value and return a copy.
2929         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
2930         (C++ Volatiles): Adjust to describe C++ semantics only.
2931
2932 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
2933
2934         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
2935         be zero or nonzero.
2936         * doc/tm.texi: Regenerate.
2937         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
2938         * df-scan.c (df_get_exit_block_use_set), reginfo.c
2939         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
2940         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
2941         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
2942         to 1.
2943
2944 2010-08-20  Olivier Hainque  <hainque@adacore.com>
2945
2946         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
2947         an extra nop past a sibling call at the very end.
2948
2949 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2950
2951         PR bootstrap/45350
2952         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
2953         a comment.
2954
2955 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2956
2957         * target.def (function_arg, function_incoming_arg): Remove const
2958         qualifier on CUMULATIVE_ARGS parameter.
2959         * targhooks.h (default_function_arg, default_function_incoming_arg):
2960         Likewise.
2961         * targhooks.c (default_function_arg, default_function_incoming_arg):
2962         Likewise.
2963         * config/i386/i386.c (ix86_function_arg): Likewise.
2964
2965 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
2966
2967         PR target/45336
2968         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
2969         SIGN_EXTENDs or ZERO_EXTENDs.
2970
2971 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
2972
2973         PR target/42172
2974         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
2975         Take its cost into account if nonnull.
2976         (insn_a_feeds_b): New static function.
2977         (combine_instructions): Look for four-insn combinations.
2978         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
2979         them into account when computing all_adjacent and looking for other
2980         uses.
2981         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
2982         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
2983         (try_combine): New arg I0.  Handle four-insn combinations.
2984         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
2985         like ELIM_I1.
2986
2987 2010-08-19  Jason Merrill  <jason@redhat.com>
2988
2989         PR c++/45307
2990         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
2991         if ctor is empty.
2992         (gimplify_modify_expr_rhs): Adjust.
2993
2994 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
2995
2996         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
2997         bitmap_bit_p.
2998         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
2999         * dominance.c (iterate_fix_dominators): Likewise.
3000         * dse.c (set_usage_bits): Likewise.
3001         (set_position_unneeded, record_store): Likewise.
3002         * gimple-fold.c (get_maxval_strlen): Likewise.
3003         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
3004         * ipa-inline.c (update_caller_keys): Likewise.
3005         * ipa-split.c (verify_non_ssa_vars): Likewise.
3006         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
3007         (close_type_exposed_parameter, close_type_full_escape): Likewise.
3008         (close_addressof_down): Likewise.
3009         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
3010         (setup_allocno_left_conflicts_size): Likewise.
3011         (ira_reassign_conflict_allocnos): Likewise.
3012         (ira_reassign_pseudos): Likewise.
3013         * ira-emit.c (change_loop): Likewise.
3014         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
3015         * lto-streamer-out.c (write_symbol): Likewise.
3016         * predict.c (expr_expected_value_1): Likewise.
3017         * regstat.c (regstat_bb_compute_ri): Likewise.
3018         * sel-sched.c (create_block_for_bookkeeping): Likewise.
3019         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
3020         * stmt.c (expand_case): Likewise.
3021         * tree-eh.c (emit_eh_dispatch): Likewise.
3022         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
3023         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
3024         Likewise.
3025         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
3026         (rdg_build_components): Likewise.
3027         * tree-object-size.c (collect_object_sizes_for): Likewise.
3028         * tree-sra.c (convert_callers): Likewise.
3029         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
3030         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
3031         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
3032
3033 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
3034
3035         * config/i386/i386.md (*lea_1): Use P mode iterator.
3036         (lea add splitter): Also handle DImode operands.
3037         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
3038         predicate.  Do not use ix86_lea_for_add_ok.
3039         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
3040         (lea ashift splitter): Also handle DImode operands.
3041         (DImode lea ashift splitter): Remove splitter.
3042
3043 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
3044
3045         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
3046         ix86_binary_operator_ok.
3047
3048 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
3049
3050         PR rtl-optimization/44691
3051         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
3052         is not a register.
3053
3054 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
3055
3056         PR target/45070
3057         * config/arm/arm.c (arm_output_epilogue): Ensure that return
3058          value of size 1-3 is handled correctly.
3059
3060 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
3061
3062         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
3063         type for the conditional has wide enough range.
3064
3065 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
3066
3067         PR target/45327
3068         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
3069         ix86_binary_operator_ok.
3070
3071 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
3072
3073         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
3074         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
3075         code to output insn mnemonic.  Fix comment.
3076         (*addsi_1_zext): Add r-r-0 alternative 1.
3077         <TYPE_LEA>: Split insn to lea.
3078         <default>: Handle alternative 1.
3079         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
3080         multi-level if_then_else RTX to set "type" attribute.
3081         <default>: Handle alternative 2.
3082         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
3083         Use cond RTX instead of multi-level if_then_else RTX to set
3084         "type" attribute.
3085         <default>: Handle alternatives 2 and 4.
3086         (lea splitters): Update calls to ix86_lea_for_add_ok.
3087
3088         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
3089         argument.
3090         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
3091
3092 2010-08-18  Richard Guenther  <rguenther@suse.de>
3093
3094         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
3095         use operand helpers.
3096
3097 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
3098
3099         PR middle-end/45292
3100         * optabs.c (expand_bool_compare_and_swap): Expand pending
3101         pops before trying the optab.
3102
3103 2010-08-18  Yao Qi  <yao@codesourcery.com>
3104
3105         PR target/45094
3106         * config/arm/arm.c (output_move_double): Fix typo generating
3107         instructions ('ldr'->'str').
3108
3109 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
3110
3111         PR rtl-optimization/42575
3112         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
3113         live ranges.
3114
3115 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3116
3117         * config/arm/arm-protos.h (arm_expand_sync): New.
3118         (arm_output_memory_barrier, arm_output_sync_insn): New.
3119         (arm_sync_loop_insns): New.
3120         * config/arm/arm.c (FL_ARCH7): New.
3121         (FL_FOR_ARCH7): Include FL_ARCH7.
3122         (arm_arch7): New.
3123         (arm_print_operand): Support %C markup.
3124         (arm_legitimize_sync_memory): New.
3125         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
3126         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
3127         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
3128         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
3129         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
3130         (arm_process_output_sync_insn, arm_output_sync_insn): New.
3131         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
3132         * config/arm/arm.h (struct arm_sync_generator): New.
3133         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
3134         (TARGET_HAVE_MEMORY_BARRIER): New.
3135         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
3136         * config/arm/arm.md: Include sync.md.
3137         (UNSPEC_MEMORY_BARRIER): New.
3138         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
3139         (VUNSPEC_SYNC_OP):New.
3140         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
3141         (sync_result, sync_memory, sync_required_value): New attributes.
3142         (sync_new_value, sync_t1, sync_t2): Likewise.
3143         (sync_release_barrier, sync_op): Likewise.
3144         (length): Add logic to length attribute defintion to call
3145         arm_sync_loop_insns when appropriate.
3146         * config/arm/sync.md: New file.
3147
3148 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
3149
3150         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
3151         ENABLE_TREE_CHECKING.
3152         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
3153         and GCC >= 4.3.
3154
3155 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
3156
3157         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
3158         or optimizing for size, always avoid lea if possible.
3159
3160         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
3161
3162 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
3163
3164         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
3165         Dunmmy function with NULL return unless the target is
3166         OSX >= 10.6 (Darwin10).
3167
3168 2010-08-17  Jack Howarth <howarth@bromo.med.uc.edu>
3169
3170         * gcc.c (spec_function): Add remove-outfile.
3171         (remove_outfile_spec_function): New function.
3172         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
3173         * invoke.texi (replace-outfile): Document.
3174
3175 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
3176
3177         PR target/45296
3178         * reginfo.c (globalize_reg): Reject stack registers.
3179
3180 2010-08-17  Richard Guenther  <rguenther@suse.de>
3181
3182         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
3183         list of conditional equivalences.
3184         (free_all_edge_infos): Adjust.
3185         (record_equivalences_from_incoming_edge): Likewise.
3186         (record_cond): Likewise.
3187         (build_and_record_new_cond): Likewise.
3188         (record_conditions): Likewise.
3189         (dom_opt_leave_block): Likewise.
3190
3191 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
3192
3193         * doc/invoke.texi (ms-extension): Add documentation.
3194
3195 2010-08-17  Richard Guenther  <rguenther@suse.de>
3196
3197         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
3198
3199 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
3200
3201         PR c/40563
3202         * c-decl.c (diagnose_uninitialized_cst_member): New function.
3203         (finish_decl): Use it to issue a -Wc++-compat warning about
3204         uninitialized const field in struct or union.
3205
3206         (finish_struct): Use strip_array_types.
3207
3208 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
3209
3210         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
3211         functions.
3212         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
3213         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
3214         call block_nreverse here.
3215         (blocks_nreverse): Rename decl temporary to block.
3216
3217 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
3218
3219         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
3220         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
3221         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
3222         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
3223         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
3224         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
3225         thumb2_iorsi3): Delete.
3226         (orsi_notsi_si): No longer a named pattern.
3227         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
3228         * config/arm/predicates.md (shift_amount_operand): New.
3229         (mult_operator): New.
3230         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
3231         attr enabled): New.
3232         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
3233         arch matches t2.
3234         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
3235         (not_shiftsi_compare0): Likewise, renamed from
3236         arm_notsi_shiftsi_compare0.
3237         (not_shiftsi_compare0_scratch): Likweise, renamed from
3238         arm_notsi_shiftsi_compare0_scratch.
3239         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
3240         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
3241         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
3242         so that the register alternative is disabled when the shift_operator
3243         is MULT.  Use "M" as the constraint for constants.
3244         (arith_shiftsi splitter): Enable for TARGET_32BIT.
3245         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
3246         constraint for constants.
3247         (arith_shiftsi_compare0_scratch): Likewise.
3248         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
3249         Handle Thumb2 alternative.
3250
3251 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3252
3253         * doc/options.texi (NoDriverArg): Document.
3254         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
3255         -MDX and -MMDX.
3256         * opt-functions.awk (switch_flags): Handle NoDriverArg.
3257         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
3258         marking for CL_NO_DRIVER_ARG options when in the driver.
3259         * opts.h (CL_NO_DRIVER_ARG): Define.
3260         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3261         CL_COMMON): Update values.
3262
3263 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
3264
3265         * common.opt: Add driver options.
3266         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
3267         * doc/options.texi (Driver, RejectDriver): Document.
3268         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
3269         print_prog_name, print_multi_directory, print_sysroot,
3270         print_multi_os_directory, print_multi_lib,
3271         print_sysroot_headers_suffix, report_times, combine_flag,
3272         use_pipes, wrapper_string): Remove.
3273         (save_switch, driver_unknown_option_callback,
3274         driver_wrong_lang_callback, driver_post_handling_callback,
3275         driver_handle_option): New.
3276         (spec_lang, last_language_n_infiles): Make file-scope static
3277         instead of local to process_command.
3278         (process_command): Use decode_cmdline_options_to_array and
3279         read_cmdline_option for option processing.  Compute have_c in
3280         prescan of decoded options.
3281         * opt-functions.awk (switch_flags): Handle Driver and
3282         RejectDriver.
3283         (var_type, var_type_struct): Handle Separate options as generating
3284         const char * variables.
3285         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
3286         CL_TARGET to be passed by caller if required.
3287         (decode_cmdline_options_to_array): Update comment.
3288         * opts.c (complain_wrong_lang): Handle options only valid for the
3289         driver.
3290         (decode_options): Update call to decode_cmdline_options_to_array.
3291         (print_filtered_help): Ignore driver-only options.
3292         (print_specific_help): Ignore CL_DRIVER.
3293         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
3294         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
3295         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
3296         Update values.
3297
3298 2010-08-16  Richard Guenther  <rguenther@suse.de>
3299
3300         * tree-cfg.c (verify_types_in_gimple_reference): Verify
3301         TARGET_MEM_REF a bit.
3302         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
3303         (create_mem_ref_raw): Always create TMR_OFFSET, store the
3304         alias pointer type via it.
3305         (copy_mem_ref_info): Adjust.
3306         (maybe_fold_tmr): Likewise.
3307         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
3308         (reference_alias_ptr_type): Likewise.
3309         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
3310         adjust documentation of TMR_OFFSET operand.
3311         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
3312         use the alias pointer type.
3313         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
3314         initialize mem attrs but the TMR itself.
3315         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
3316         similar to MEM_REF.
3317         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
3318         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
3319         (unshare_and_remove_ssa_names): Likewise.
3320         (copy_ref_info): Adjust.
3321         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
3322         TARGET_MEM_REF case.
3323         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
3324         at TMR_ORIGINAL.
3325         * tree.h (TMR_ORIGINAL): Remove.
3326         * gimple.c (get_base_address): For TARGET_MEM_REF with a
3327         symbol return that.
3328         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
3329         with a symbol.
3330         (get_addr_base_and_unit_offset): Likewise.
3331         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
3332         TARGET_MEM_REFs.
3333         (indirect_ref_may_alias_decl_p): Likewise.
3334         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
3335
3336 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
3337
3338         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
3339         with GCC version 4.6, the default setting (when not optimizing
3340         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
3341         been changed to -fomit-frame-pointer.
3342
3343 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
3344
3345         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
3346         Darwin10.  Do not link libgcc.a for Darwin >= 9.
3347
3348 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
3349
3350         * doc/invoke.texi (Warning Options): Fix terminology and markup
3351         in the description of how unknown warning options are handled.
3352
3353 2010-08-15  Ira Rosen  <irar@il.ibm.com>
3354
3355         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
3356         in basic blocks.
3357         (vect_supportable_dr_alignment): Check alignment for basic blocks.
3358         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
3359         data references.
3360         (vect_bb_vectorization_profitable_p): New function.
3361         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
3362         check if it's worthwhile to vectorize the basic block.
3363
3364 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
3365
3366         * reload.h (register_move_cost, memory_move_secondary_cost,
3367         secondary_reload_class): Adjust prototype.
3368         * rtl.h (reg_class_subset_p): Adjust prototype.
3369         * reload.c (secondary_reload_class): Change arguments type from
3370         enum reg_class to reg_class_t. Change result type to reg_class_t.
3371         * reginfo.c (register_move_cost, reg_class_subset_p): Change
3372         arguments type from enum reg_class to reg_class_t.
3373         (memory_move_secondary_cost): Change arguments type from
3374         enum reg_class to reg_class_t. Change type of saved_flags to
3375         reg_class_t.
3376
3377         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
3378         Remove macros.
3379         (mips_cost): Remove.
3380         (struct mips_rtx_cost_data): Moved to mips.c.
3381         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
3382         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
3383         (mips_cost): Make static.
3384         (mips_canonicalize_move_class): Change argument type to reg_class_t.
3385         Change result type to reg_class_t.
3386         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
3387         type from enum reg_class to reg_class_t.
3388         (mips_register_move_cost): Make static. Change arguments
3389         type from enum reg_class to reg_class_t.
3390         (mips_memory_move_cost): New function.
3391         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
3392
3393 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
3394
3395         PR rtl-optimization/43358
3396         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
3397         of a single hard register, using simplify_subreg_regno to decide
3398         what that register should be.
3399
3400 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
3401
3402         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
3403         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
3404         (loongson_pmull<V_suffix>): Rename to...
3405         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
3406
3407 2010-08-13  Jack Howarth <howarth@bromo.med.uc.edu>
3408
3409         * configure.ac: Enable -fomit-frame-pointer on darwin
3410         which support dwarf2.
3411         * config/i386/i386.c (override_options): Same.
3412
3413 2010-08-13  Jie Zhang  <jie@codesourcery.com>
3414
3415         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
3416
3417 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
3418
3419         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
3420         -MMD.
3421
3422 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
3423
3424         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
3425         up dot_prod pattern searching if a stmt is outside the loop.
3426
3427 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
3428             Uros Bizjak  <ubizjak@gmail.com>
3429
3430         * config.gcc: Handle --enable-frame-pointer.
3431
3432         * configure.ac: Add --enable-frame-pointer.
3433         * configure: Regenerated.
3434
3435         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
3436         (override_options): If not configured with --enable-frame-pointer,
3437         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
3438         optimizing for size), -fasynchronous-unwind-tables and
3439         -maccumulate-outgoing-args by default.
3440
3441 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3442
3443         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
3444
3445         PR middle-end/45262
3446         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
3447         -a overflows.  Normalize the range.
3448
3449 2010-08-12  Richard Guenther  <rguenther@suse.de>
3450
3451         PR tree-optimization/45232
3452         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
3453         for types with undefined overflow.
3454         (reassociate_bb): Allow re-associating of bit and min/max
3455         operations for types with undefined overflow.
3456         * tree-ssa-forwprop.c (associate_plusminus): New function.
3457         (tree_ssa_forward_propagate_single_use_vars): Call it.
3458
3459 2010-08-12  Richard Guenther  <rguenther@suse.de>
3460
3461         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
3462         * tree-ssa-alias.c (get_ptr_info): Move ...
3463         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
3464         align and misalign fields conservatively.
3465         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
3466         derive alignment information.
3467         (evaluate_stmt): Derive alignment information from memory
3468         allocation functions.
3469         * tree.h (get_pointer_alignment): Make unsigned.
3470         * builtins.c (get_object_alignment): Use alignment information we
3471         have computed for pointers.
3472         (get_pointer_alignment): Likewise.  Make conservative, return
3473         and unsigned value.
3474         (expand_builtin_strlen): Adjust.
3475         (expand_builtin_memcmp): Likewise.
3476         (expand_builtin_strcmp): Likewise.
3477         (expand_builtin_strncmp): Likewise.
3478         (get_builtin_sync_mem): Use at least mode alignment.
3479         (fold_builtin_memset): Adjust.
3480         (fold_builtin_memory_op): Likewise.
3481         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
3482         information also dump pointer alignment knowledge.
3483         (dump_gimple_stmt): Likewise.
3484
3485 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
3486
3487         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
3488         (EMPTY_FIELD_BOUNDARY): Remove.
3489         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
3490
3491 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
3492
3493         PR debug/45259
3494         * caller-save.c (save_call_clobbered_regs): Only swap notes with
3495         DEBUG_INSNs if n_regs_saved.
3496
3497 2010-08-12  Wei Guozhi  <carrot@google.com>
3498
3499         PR target/44999
3500         * config/arm/arm.md (andsi3): Change to zero extension if possible.
3501         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
3502
3503 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
3504
3505         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
3506
3507         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
3508
3509 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3510
3511         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
3512         the case removed in the previous patch, when the only phi argument
3513         is defined in the same loop as the phi node itself.  Handle it
3514         separately from the invariant case by both propagating it outside
3515         the region and replacing the phi node with an assign.
3516
3517 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3518
3519         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
3520         constant phi nodes with one argument are is_gimple_min_invariant
3521         and SSA_NAME_IS_DEFAULT_DEF.
3522
3523 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3524
3525         * graphite-cloog-util.c (oppose_constraint):
3526         Extend loop counter's value range (CLOOG_ORG).
3527         (cloog_matrix_to_ppl_constraint): Same.
3528         (new_Constraint_System_from_Cloog_matrix): Same.
3529         * graphite-cloog-compat.h (matrix_num_type): New.
3530
3531 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3532
3533         * graphite.c (graphite_initialize): Do not initialize
3534         CLooG and initialize the Parma Polyhedra Library
3535         manually when using CLOOG_ORG.
3536         (graphite_finalize): Do not finalize CLooG and finalize
3537         the Parma Polyhedra Library manually when using CLOOG_ORG.
3538         * graphite-cloog-compat.h (cloog_initialize): Hide function
3539         when using CLOOG_ORG.
3540         (cloog_finalize): Same.
3541
3542 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3543
3544         * graphite-clast-to-gimple.c (free_scattering): Change
3545         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
3546         (CLOOG_ORG).
3547         (build_cloog_prog): Same.
3548         * graphite-cloog-compat.h (cloog_domain): Removed.
3549         (cloog_scattering): New.
3550         (cloog_set_domain): Removed.
3551         (cloog_set_scattering): New.
3552         (cloog_next_domain): Removed.
3553         (cloog_next_scattering): New.
3554         (cloog_set_next_domain): Removed.
3555         (cloog_set_next_scattering): New.
3556         (CloogScatteringList): New.
3557         (CloogScattering): New.
3558         (cloog_scattering_free): New.
3559         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
3560         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
3561         New.
3562
3563 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3564
3565         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
3566         CloogState.
3567         (set_cloog_options): Same.
3568         (print_clast_stmt): Same.
3569         (scop_to_clast): Same.
3570         (print_generated_program): Same.
3571         (gloog): Same.
3572         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
3573         (scop_to_clast): Extend with CloogState.
3574         * graphite-cloog-util.c: Include graphite-cloog-compat.h
3575         (new_Cloog_Domain_from_ppl_Polyhedron):
3576         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
3577         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
3578         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3579         * graphite-cloog-util.h (build_cloog_prog): Same.
3580         * graphite-cloog-copat.h (build_cloog_prog): New.
3581         (CloogState): New.
3582         (cloog_state_malloc): New.
3583         (cloog_state_free): New.
3584         (cloog_loop_malloc): New.
3585         (cloog_options_malloc): New.
3586         (cloog_statement_alloc): New.
3587         (cloog_domain_from_cloog_matrix): New.
3588         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3589         (new_Cloog_Domain_from_ppl_Polyhedron): New.
3590
3591 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3592
3593         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
3594         type of NAME now depends on used CLooG version.
3595         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
3596         (gcc_type_for_clast_expr): Same.
3597         (print_clast_stmt): Replace pprint with clast_pprint.
3598         * graphite-cloog-compat.h: Provide compatibility macros for
3599         CLooG Legacy.
3600         (clast_name_p): New.
3601         (clast_expr_term): New.
3602         (clast_expr_red): New.
3603         (clast_expr_bin): New.
3604         (clast_pprint): New.
3605
3606 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3607
3608         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
3609         compatible to newer CLooG releases (CLOOG_ORG).
3610         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
3611         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
3612         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
3613         (build_cloog_prog) : New.
3614         (cloog_program_extract_scalars): New.
3615         (cloog_program_scatter): New.
3616
3617 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3618
3619         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
3620         conditionally (CLOOG_ORG).
3621         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
3622         (cloog_statement_usr): New.
3623         (cloog_domain): Same.
3624         (cloog_set_domain): Same.
3625         (cloog_next_domain): Same.
3626         (cloog_set_next_domain): Same.
3627         (cloog_program_nb_scattdims): Same.
3628         (cloog_program_set_nb_scattdims): Same.
3629         (cloog_program_names): Same.
3630         (cloog_program_set_names): Same.
3631         (cloog_program_set_context): Same.
3632         (cloog_program_set_loop): Same.
3633         (cloog_program_blocklist): Same.
3634         (cloog_program_set_blocklist): Same.
3635         (cloog_program_scaldims): Same.
3636         (cloog_program_set_scaldims): Same.
3637         (cloog_names_nb_parameters): Same.
3638         (cloog_names_set_nb_parameters): Same.
3639         (cloog_names_parameters): Same.
3640         (cloog_names_set_parameters): Same.
3641         (cloog_names_set_nb_iterators): Same.
3642         (cloog_names_set_iterators): Same.
3643         (cloog_names_set_nb_scattering): Same.
3644         (cloog_names_set_scattering): Same.
3645         (cloog_statement_set_usr): Same.
3646         (cloog_loop_set_next): Same.
3647         (cloog_loop_set_domain): Same.
3648         (cloog_loop_set_block): Same.
3649         (cloog_block_list_next): Same.
3650         (cloog_block_list_set_next):
3651         (cloog_block_list_set_block): Same.
3652
3653 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3654
3655         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
3656         a bool.
3657         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
3658         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
3659         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
3660         when something has been changed.
3661         (rewrite_commutative_reductions_out_of_ssa): Same.
3662
3663 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3664
3665         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
3666         handle the case when def is in the sese region.
3667         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
3668         for invariant expressions.
3669         (rewrite_cross_bb_phi_deps): Removed.
3670         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
3671         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
3672         rewrite_cross_bb_phi_deps.
3673
3674 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3675
3676         * graphite-sese-to-poly.c
3677         (rewrite_commutative_reductions_out_of_ssa_loop): Call
3678         scev_analyzable_p only on is_gimple_reg
3679
3680 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3681
3682         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
3683         (rewrite_close_phi_out_of_ssa): Propagate constant values or
3684         parametric expressions outside the scop region.
3685         (rewrite_cross_bb_scalar_deps): Same.
3686         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
3687
3688 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3689
3690         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
3691         SSA_NAME_DEF_STMT only on SSA_NAMEs.
3692
3693 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3694
3695         * tree-scalar-evolution.c (instantiate_scev_name): Do not
3696         instantiate default definitions.
3697
3698 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
3699             Sebastian Pop  <sebastian.pop@amd.com>
3700
3701         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
3702         (loop_exits_from_bb_p): New.
3703         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
3704         (loop_exits_from_bb_p): Declared.
3705         * graphite-scop-detection.c (scopdet_basic_block_info): Call
3706         loop_exits_to_bb_p.
3707
3708 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3709
3710         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
3711         extra parameter for the region.  Call scev_analyzable_p.
3712         (rewrite_reductions_out_of_ssa): Update call to
3713         rewrite_close_phi_out_of_ssa.
3714         (rewrite_cross_bb_phi_deps): Same.
3715         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
3716         parameter for the region.  Call scev_analyzable_p.
3717         (rewrite_commutative_reductions_out_of_ssa): Update call to
3718         rewrite_commutative_reductions_out_of_ssa_loop.
3719
3720 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3721
3722         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
3723
3724 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3725
3726         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
3727         SSA scalar phi nodes that can be scev_analyzable_p.
3728
3729 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3730
3731         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
3732         handle SSA_NAME_IS_DEFAULT_DEF.
3733
3734 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3735
3736         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
3737
3738 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3739
3740         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
3741         case non close-phi nodes with one argument.
3742
3743 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3744
3745         * sese.h (scev_analyzable_p): Scevs could be expressions without
3746         chrecs and still be scev_analyzable_p.
3747
3748 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3749
3750         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
3751
3752 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3753
3754         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
3755         * cfgloop.h (struct loop): Remove single_iv field.
3756         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
3757         (scop_canonicalize_loops): Removed.
3758         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
3759         over all the loop phi nodes in loop->header.
3760         (build_poly_scop): Remove use of scop_canonicalize_loops.
3761
3762 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3763
3764         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
3765         handle GIMPLE_CALL.
3766
3767 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3768
3769         * tree-chrec.c (chrec_apply): Should only apply to the specified
3770         variable.  Also handle multivariate chains of recurrences that
3771         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
3772
3773 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3774
3775         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
3776         (debug_clast_name_indexes_1): Removed.
3777         (debug_clast_name_indexes): Removed.
3778         (pbb_to_depth_to_oldiv): Removed.
3779         (build_iv_mapping): Replace the use of rename_map with iv_map.
3780         (translate_clast_user): Remove uses of rename_map.  Allocate and
3781         free iv_map.
3782         (translate_clast_for_loop): Remove uses of rename_map.
3783         (translate_clast_for): Same.
3784         (translate_clast_guard): Same.
3785         (translate_clast): Same.
3786         (gloog): Same.
3787         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
3788         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
3789         * sese.c (set_rename): Now static.
3790         (rename_variables_in_stmt): Removed.
3791         (rename_uses): New.
3792         (is_parameter): Removed.
3793         (is_iv): Removed.
3794         (expand_scalar_variables_call): Removed.
3795         (expand_scalar_variables_ssa_name): Removed.
3796         (expand_scalar_variables_expr): Removed.
3797         (expand_scalar_variables_stmt): Removed.
3798         (expand_scalar_variables): Removed.
3799         (rename_variables): Removed.
3800         (remove_condition): Removed.
3801         (get_true_edge_from_guard_bb): Removed.
3802         (get_false_edge_from_guard_bb): Removed.
3803         (struct igp): Removed.
3804         (default_before_guard): Removed.
3805         (convert_for_phi_arg): Removed.
3806         (add_guard_exit_phis): Removed.
3807         (insert_guard_phis): Removed.
3808         (graphite_copy_stmts_from_block): Now also uses iv_map and a
3809         region.  Do not copy conditions.  Do not copy induction variables.
3810         Call rename_uses.
3811         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
3812         the translated statement.  Use the iv_map for the induction
3813         variable renaming.
3814         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
3815         (set_rename): Removed declaration.
3816         (scev_analyzable_p): ...here.
3817         * tree-chrec.c (chrec_apply_map): New.
3818         * tree-chrec.h (chrec_apply_map): Declared.
3819
3820 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3821
3822         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
3823         insert_loop_close_phis.
3824         * sese.c (name_defined_in_loop_p): Removed.
3825         (expr_defined_in_loop_p): Removed.
3826         (alive_after_loop): Removed.
3827         (close_phi_not_yet_inserted_p): Removed.
3828         (struct alep): Removed.
3829         (add_loop_exit_phis): Removed.
3830         (insert_loop_close_phis): Removed.
3831
3832 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3833
3834         * graphite-cloog-util.c
3835         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
3836         * graphite-poly.c
3837         (psct_scattering_dim_for_loop_depth): Same.
3838
3839 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3840
3841         * graphite-cloog-util.h: Added cloog.h.
3842         * graphite-blocking.c: Removed cloog.h.
3843         * graphite-dependences.c: Same.
3844         * graphite-interchange.c: Same.
3845         * graphite-poly.c: Same.
3846         * graphite-ppl.c: Same.
3847         * graphite-scop-detection.c: Same.
3848         * graphite-sese-to-poly.c:
3849         Removed cloog.h.
3850         Removed graphite-clast-to-gimple.h.
3851         (check_poly_representation): Removed (unused).
3852         * graphite-sese-to-poly.h
3853         (check_poly_representation): Removed (unused).
3854
3855 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3856
3857         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
3858         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
3859         (graphite-cloog-util.o): New.
3860         (graphite-ppl.o): Added graphite-cloog-util.h.
3861         * graphite-clast-to-gimple.c:
3862         Added graphite-cloog-util.h to include statements.
3863         * graphite-cloog-util.c: New.
3864         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
3865         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3866         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3867         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3868         (insert_constraint_into_matrix): Same.
3869         (ppl_Constrain_System_number_of_constraints): Same.
3870         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3871         (oppose_constraint): Same.
3872         (cloog_matrix_to_ppl_constraint): Same.
3873         (new_Constraint_System_from_Cloog_Matrix): Same.
3874         * graphite-cloog-util.h: New.
3875         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
3876         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3877         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3878         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3879         (insert_constraint_into_matrix): Same.
3880         * graphite-ppl.c:
3881         Added graphite-cloog-util.h to include statements.
3882         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
3883         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3884         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3885         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3886         (insert_constraint_into_matrix): Same.
3887         (ppl_Constrain_System_number_of_constraints): Same.
3888         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
3889         (oppose_constraint): Same.
3890         (cloog_matrix_to_ppl_constraint): Same.
3891         (new_Constraint_System_from_Cloog_Matrix): Same.
3892         * graphite-ppl.h:
3893         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
3894         graphite-cloog-util.h.
3895         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
3896         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
3897         (new_C_Polyhedron_from_Cloog_Matrix): Same.
3898         (insert_constraint_into_matrix): Same.
3899
3900 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
3901
3902         * graphite-clast-to-gimple.c
3903         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
3904         (precision_for_interval): Same.
3905         (gcc_type_for_interval): Same.
3906         (compute_type_for_level): Same.
3907         * graphite-interchange.c
3908         (lst_interchange_profitable_p): Same.
3909         * graphite-poly.c
3910         (psct_scattering_dim_for_loop_depth): Same.
3911         * graphite-ppl.c
3912         (ppl_max_for_le_pointset): Same.
3913         (ppl_min_for_le_pointset): Same.
3914
3915 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3916
3917         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
3918         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
3919
3920 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3921
3922         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
3923         rewrite_close_phi_out_of_ssa.
3924
3925 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3926
3927         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
3928
3929 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3930
3931         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
3932         rename_map.
3933         * sese.c (debug_rename_map): Same.
3934         (get_rename): Same.
3935         (set_rename): Same.
3936         (rename_variables_in_stmt): Same.
3937         (expand_scalar_variables_call): Same.
3938         (expand_scalar_variables_ssa_name): Same.
3939         (expand_scalar_variables_expr): Same.
3940         (expand_scalar_variables_stmt): Same.
3941         (expand_scalar_variables): Same.
3942         (rename_variables): Same.
3943         (graphite_copy_stmts_from_block): Same.
3944         (copy_bb_and_scalar_dependences): Same.
3945
3946 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3947
3948         * graphite-clast-to-gimple.c (copy_renames): Removed.
3949         (translate_clast_for): Do not call copy_renames.
3950         (translate_clast_guard): Same.
3951
3952 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3953
3954         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
3955         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
3956         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
3957         before rewrite_cross_bb_scalar_deps.
3958
3959 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3960
3961         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
3962         Early return in when flag_associative_math is not set.
3963
3964 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3965
3966         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
3967         of SSA copies on edges except for loop->latch.
3968
3969 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3970
3971         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
3972         Split out of rewrite_reductions_out_of_ssa.
3973         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
3974         Declared.
3975         * graphite.c (graphite_transform_loops): Call it.
3976
3977 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3978
3979         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
3980
3981 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
3982
3983         * dbgcnt.def (graphite_scop): New counter.
3984         * graphite.c: Include dbgcnt.h.
3985         (graphite_transform_loops): Use new counter to limit transformations.
3986         * Makefile.in (graphite.o): Depend on DBGCNT_H.
3987
3988 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3989
3990         * passes.c (init_optimization_passes): Add pass_graphite.
3991         Schedule a pass_copy_prop before pass_graphite_transforms.
3992         * timevar.def (TV_GRAPHITE): Declared.
3993         * tree-pass.h (pass_graphite): Declared.
3994         * tree-ssa-loop.c (pass_graphite): New.
3995
3996 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
3997
3998         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
3999         Remove calls to rename_nb_iterations and rename_sese_parameters.
4000         * graphite-clast-to-gimple.h (gloog): Update declaration.
4001         * graphite.c (graphite_transform_loops): Update call to gloog.
4002         * sese.c (rename_variables_in_expr): Removed.
4003         (rename_nb_iterations): Removed.
4004         (rename_sese_parameters): Removed.
4005         * sese.h (rename_nb_iterations): Removed.
4006         (rename_sese_parameters): Removed.
4007
4008 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4009
4010         * graphite-clast-to-gimple.c (gloog): Remove call to
4011         sese_adjust_liveout_phis.
4012         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
4013         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
4014         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
4015         rewrite_phi_out_of_ssa.
4016         * sese.c (get_vdef_before_sese): Removed.
4017         (sese_adjust_vphi): Removed.
4018         (sese_adjust_liveout_phis): Removed.
4019         * sese.h (sese_adjust_liveout_phis): Removed.
4020
4021 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4022
4023         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
4024         argument for the place after which to insert the out of SSA copy.
4025         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
4026         (rewrite_phi_out_of_ssa): Same.
4027         (rewrite_cross_bb_scalar_deps): Same.
4028         (insert_copyout): Removed.
4029         (insert_copyin): Removed.
4030         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
4031         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
4032         insert_copyin.
4033
4034 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4035
4036         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
4037         (rewrite_reductions_out_of_ssa): Same.
4038         (rewrite_commutative_reductions_out_of_ssa): Same.
4039         (build_poly_scop): Do not call these functions.
4040         * graphite-sese-to-poly.h (build_poly_scop): Declared.
4041         (rewrite_reductions_out_of_ssa): Declared.
4042         (rewrite_commutative_reductions_out_of_ssa): Declared.
4043         * graphite.c (graphite_transform_loops): Call on every scop
4044         rewrite_commutative_reductions_out_of_ssa before calling
4045         rewrite_reductions_out_of_ssa and build_scop_bbs.
4046
4047 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4048
4049         * graphite-dependences.c (dot_deps): Make system call to dotty run
4050         in background.
4051         (dot_deps_stmt): Same.
4052         * graphite-poly.c (dot_lst): Same.
4053
4054 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
4055
4056         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
4057         phi_arg_in_outermost_loop.
4058         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
4059         (remove_invariant_phi): Same.
4060
4061 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
4062
4063         * target.def (output_addr_const_extra): New hook.
4064         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
4065         * doc/tm.texi: Regenerate.
4066         * targhooks.c (default_asm_output_addr_const_extra): New function.
4067         * targhooks.h (default_asm_output_addr_const_extra): Declare.
4068         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
4069         target hook.
4070
4071         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4072         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
4073         * config/i386/i386.h (output_addr_const_extra): Rename to...
4074         (i386_asm_output_addr_const_extra): ...this. Make static.
4075         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4076
4077 2010-08-11  Richard Henderson  <rth@redhat.com>
4078
4079         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
4080
4081 2010-08-11  Nick Clifton  <nickc@redhat.com>
4082
4083         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
4084         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
4085         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
4086         stormy16-lib2-cmpsi.c.
4087
4088         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
4089         -O2.
4090
4091 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
4092
4093         * opts.h (struct cl_option_handler_func): Make handler take
4094         cl_decoded_option structure as parameter, not individual elements.
4095         (struct cl_option_handlers): Make callbacks take cl_decoded_option
4096         structure as parameter, not individual elements.
4097         (handle_option): Take cl_decoded_option structure as parameter,
4098         not individual elements.
4099         (handle_generated_option): Declare.
4100         * opts-common.c (handle_option): Take cl_decoded_option structure
4101         as parameter, not individual elements.  Update calls to callback
4102         and handler functions.
4103         (handle_generated_option): New.
4104         (read_cmdline_option): Update calls to callback functions and
4105         handle_option.
4106         * opts.c (common_handle_option, complain_wrong_lang,
4107         unknown_option_callback, post_handling_callback,
4108         lang_handle_option, target_handle_option): Take cl_decoded_option
4109         structure as parameter, not individual elements.
4110         (lang_handle_option, target_handle_option, common_handle_option):
4111         Assert option has at most one argument.
4112         (enable_warning_as_error): Call handle_generated_option instead of
4113         handle_option.  Do not pass -Werror argument as argument of
4114         generated option.
4115
4116 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4117
4118         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4119         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4120         (SUBWORD_BOOL_CAS): Likewise.
4121         (SUBWORD_SYNC_OP): Likewise.
4122         (SUBWORD_TEST_AND_SET): Likewise.
4123         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4124         (SUBWORD_SYNC_OP): Likewise.
4125         (OP_AND_FETCH_WORD): Likewise.
4126
4127 2010-08-10  Xinliang David Li  <davidxl@google.com>
4128
4129         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
4130         compute max/min offset in address.
4131
4132 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
4133
4134         * ira-live.c: Include sbitmap.h.
4135         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
4136         Compress live ranges even more.
4137
4138 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4139
4140         * coverage.c (ctr_labels): Delete.
4141
4142 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
4143
4144         PR bootstrap/45177
4145         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
4146         test here from arm_gen_load_multiple_1.
4147         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
4148         multiple_operation_profitable_p.
4149
4150 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4151
4152         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
4153         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
4154
4155 2010-08-10  Richard Henderson  <rth@redhat.com>
4156
4157         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
4158         after saving registers.  Assert that SSE registers are only saved
4159         with a sufficiently aligned frame.
4160         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
4161         remove stack_realign_fp handling.
4162         (ix86_expand_prologue): Save int registers before stack_realign_fp,
4163         and do not mark the stack alignment as frame related.
4164         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
4165
4166         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
4167         saves when re-aligning the stack.
4168
4169 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4170
4171         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
4172         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
4173         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
4174
4175 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
4176
4177         * dwarf2out.c (struct die_struct): Move die_tag to the end.
4178
4179 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
4180
4181         * config/arm/iterators.md: New file.
4182         * config/arm/arm.md: Include iterators.md.
4183         (QHSI): Move to new file.
4184         (LTUGEU, cnb, optab, ior_xor): Likewise.
4185         * config/arm/iwmmxt.md (VMMX): Move to new file.
4186         (VSHFT, MMX_char): Likewise.
4187         * config/arm/neon.md (VD): Move to new file.
4188         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
4189         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
4190         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
4191         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
4192         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
4193         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
4194         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
4195         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
4196         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
4197         (Is_d_reg, V_mode_nunits): Likewise.
4198         * config/arm/vec-common.md (VALL): Move to new file.
4199         (VALLW, VINT, VINTW): Likewise.
4200
4201 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
4202
4203         PR middle-end/45182
4204         * combine.c (make_compound_operation): Don't try to convert
4205         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
4206
4207 2010-08-10  Richard Guenther  <rguenther@suse.de>
4208
4209         * tree.h (get_object_alignment): Adjust prototype.
4210         * builtins.c (get_object_alignment): Return unsigned int,
4211         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
4212         and TARGET_MEM_REF properly.
4213         (get_pointer_alignment): Adjust.
4214         * emit-rtl.c (get_mem_align_offset): Adjust comment.
4215         (set_mem_attributes_minus_bitpos): Adjust.
4216         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
4217
4218 2010-08-10  Richard Guenther  <rguenther@suse.de>
4219
4220         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
4221         (copy_prop_visit_assignment): Simplify.
4222         (copy_prop_visit_stmt): Also visit assignments from
4223         constants.
4224         (copy_prop_visit_phi_node): Use operand_equal_p.
4225
4226 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4227
4228         * ipa-split.c (find_split_points): Free stack.
4229
4230 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4231
4232         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
4233         * tree.c (tree_node_kind): Delete corresponding entries.
4234
4235 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
4236
4237         * alias.c (may_alias_p): Remove unused ret.
4238
4239 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
4240
4241         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
4242         alias_sets_conflict_p.
4243         (walk_mems_1): Moved from alias.c.
4244         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
4245         in alias.c.
4246         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
4247         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
4248         * alias.c (walk_mems_2): Moved to ddg.c.
4249         (walk_mems_1): Ditto.
4250         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
4251         to ddg.c.
4252         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
4253         disambiguation.
4254         *(may_alias_p): New function to check whether two memory expression
4255         may alias or not. Currently used in buidling inter-iteration memory
4256         dependence.
4257         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
4258         (insn_alias_sets_conflict_p): Removed
4259         *rtl.h (may_alias_p): New function prototype.
4260
4261 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4262
4263         * tree.c (nreverse): Assert that we don't have a BLOCK.
4264
4265 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
4266
4267         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
4268         * config/arm/arm.c (arm_get_pcs_model): Likewise.
4269         * config/avr/avr.c (init_cumulative_args): Likewise.
4270         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
4271         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4272         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
4273         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
4274         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4275         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
4276         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
4277         * dwarf2out.c (gen_subprogram_die): Likewise.
4278         * function.c (allocate_struct_function): Likewise.
4279         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
4280         (deserves_ellipsis): Delete.
4281
4282 2010-08-09  Richard Guenther  <rguenther@suse.de>
4283
4284         * tree-ssa-copy.c (cached_last_copy_of): Remove.
4285         (valueize_val): New function.
4286         (get_last_copy_of): Remove.
4287         (set_copy_of_val): Simplify.
4288         (dump_copy_of): Likewise.
4289         (copy_prop_visit_cond_stmt): Use valueize_val.
4290         (copy_prop_visit_phi_node): Properly handle unvisited names.
4291         Drop code managing copy-of chains.
4292         (init_copy_prop): Adjust.
4293         (fini_copy_prop): Likewise.
4294         (execute_copy_prop): Remove obsolete comment.
4295
4296 2010-08-09  Richard Guenther  <rguenther@suse.de>
4297
4298         PR middle-end/44632
4299         * function.c (gimplify_parameters): Do not clear addressable
4300         bit of the original parameter.
4301
4302 2010-08-09  Richard Guenther  <rguenther@suse.de>
4303
4304         PR middle-end/45212
4305         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
4306         alignment from MEM_REF offset only if we took it from the
4307         base object.
4308
4309 2010-08-09  Eric Fisher <joefoxreal@gmail.com>
4310
4311         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
4312
4313 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4314
4315         * c-tree.h (build_arg_info): Declare.
4316         * c-decl.c (build_arg_info): Define.
4317         (get_parm_info): Call it.  Delete initialization code.
4318         * c-parser.c (c_parser_parms_declarator): Likewise.
4319         (c_parser_parms_list_declaractor): Likewise.
4320
4321 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4322
4323         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
4324         (struct c_arg_info): Change type of tags field.
4325         * c-decl.c (grokdeclarator): Update for changed type of tags field.
4326         (get_parm_info): Likewise.
4327         (store_parm_decls_newstyle): Likewise.
4328
4329 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
4330
4331         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
4332         (branch_island_list): Delete.
4333         (branch_islands): Declare.
4334         (add_compiler_branch_island): Adjust for branch_islands instead of
4335         branch_island_list.
4336         (macho_branch_islands): Likewise.
4337         (no_previous_def): Likewise.
4338         (get_prev_label): Likewise.
4339
4340 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4341
4342         PR boehm-gc/34544
4343         * gthr-posix.h (__gthread_start): Delete.
4344         (__gthread_active_init): Use pthread_default_stacksize_np instead of
4345         pthread_create to determine if hpux pthreads are active.
4346         * gthr-posix95.h (__gthread_start): Delete.
4347         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
4348
4349 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
4350
4351         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
4352         _WIN64 not expanded.
4353
4354 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
4355             H.J. Lu  <hongjiu.lu@intel.com>
4356
4357         PR target/45213
4358         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
4359         to output 32bit SFmode immediate as 8 byte sign extended value.
4360
4361 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
4362
4363         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
4364         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
4365         (SUBWORD_BOOL_CAS): Likewise.
4366         (SUBWORD_SYNC_OP): Likewise.
4367         (SUBWORD_TEST_AND_SET): Likewise.
4368         (FETCH_AND_OP_WORD): Parenthesise INF_OP
4369         (SUBWORD_SYNC_OP): Likewise.
4370         (OP_AND_FETCH_WORD): Likewise.
4371
4372 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4373
4374         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
4375         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
4376         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
4377         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
4378         generic part.
4379         (cortex_a9_sched_adjust_cost): New function.
4380         (xscale_sched_adjust_cost): New function.
4381         * config/arm/arm-protos.h (struct tune_params): New field
4382         sched_adjust_cost.
4383         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
4384
4385 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
4386
4387         PR target/44942
4388         * config/sparc/sparc.c (function_arg_advance): Always take into account
4389         the padding, if any.
4390
4391 2010-08-06  Richard Guenther  <rguenther@suse.de>
4392
4393         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
4394         (dump_lattice_value): Dump it.
4395         (get_default_value): Adjust.
4396         (get_constant_value): Likewise.
4397         (set_value_varying): Likewise.
4398         (set_lattice_value): Make sure to not go up the lattice
4399         with bitwise constant values.
4400         (get_value_for_expr): Handle ADDR_EXPRs.
4401         (value_to_double_int): New function.
4402         (get_value_from_alignment): Likewise.
4403         (do_dbg_cnt): Adjust.
4404         (ccp_lattice_meet): Handle partially constant values.
4405         (bit_value_unop_1): New function.
4406         (bit_value_binop_1): Likewise.
4407         (bit_value_unop): Likewise.
4408         (bit_value_binop): Likewise.
4409         (evaluate_stmt): Track partially constant values if
4410         flag_tree_bit_ccp is set.
4411         (ccp_fold_stmt): Dump if we folded a predicate.
4412         (ccp_visit_stmt): Adjust.
4413         * common.opt (ftree-bit-ccp): New flag.
4414         * doc/invoke.texi (ftree-bit-ccp): Document.
4415         * opts.c (decode_options): Enable bit-CCP at -O1.
4416
4417 2010-08-06  Alan Modra  <amodra@gmail.com>
4418
4419         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
4420         and -mrelocatable-lib description.
4421
4422 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
4423
4424         From Martin Thuresson  <martint@google.com>
4425         * postreload.c (reload_cse_simplify_operands): Use
4426         SET_REGNO_RAW instead of SET_REGNO.
4427         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
4428         SET_REGNO.
4429         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
4430         instead of SET_REGNO.
4431         * rtl.h (SET_REGNO_RAW): New macro.
4432
4433 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
4434
4435         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
4436         computations.  Fix formatting issues.
4437         (num_sign_bit_copies1): Likewise.
4438         (canonicalize_condition): Likewise.
4439
4440 2010-08-05  Richard Henderson  <rth@redhat.com>
4441
4442         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
4443         (floor_log2): Use clz_hwi.
4444         (exact_log2): Use ctz_hwi.
4445         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
4446         * builtins.c (fold_builtin_bitop): Use them.
4447         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
4448         * combine.c (get_pos_from_mask): Use ctz_hwi.
4449         * double-int.c (double_int_ctz): Likewise.
4450         * explow.c (force_reg): Likewise.
4451         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
4452
4453 2010-08-05  Richard Henderson  <rth@redhat.com>
4454
4455         PR target/45189
4456         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
4457         the alignment constant is properly sign-extended.
4458
4459 2010-08-05  Richard Guenther  <rguenther@suse.de>
4460
4461         * expr.c (store_expr): Use emit_block_move only if both
4462         source and target are MEMs.  Use store_bit_field if only
4463         the target is a MEM.
4464
4465 2010-08-05  Richard Henderson  <rth@redhat.com>
4466
4467         PR debug/45188
4468         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
4469         (INCOMING_RETURN_ADDR_RTX): Likewise.
4470         (dwarf2out_do_frame): Remove conditional compilation.
4471         (dwarf2out_frame_init): Likewise.
4472
4473 2010-08-05  Nicolas Setton  <setton@adacore.com>
4474
4475         * gcov.c (flag_display_progress): New static variable.
4476         (main): Display progress info on standard output if requested.
4477         (options): Add -d/--display-progress.
4478         (print_usage): Print them.
4479         (process_args): Handle them.
4480         * doc/gcov.texi: Document them.
4481
4482 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4483
4484         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
4485         (ipcp_insert_stage): Redirect only edges not flagged with
4486         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
4487         discovered constants.
4488
4489 2010-08-05  Martin Jambor  <mjambor@suse.cz>
4490
4491         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
4492         (struct ipa_param_descriptor): New fields types and
4493         cannot_devirtualize.
4494         (ipa_param_cannot_devirtualize_p): New function.
4495         (ipa_param_types_vec_empty): Likewise.
4496         (ipa_make_edge_direct_to_target): Declare.
4497         * ipa-cp.c: Fixed first stage driver name in initial comment,
4498         described devirtualization there too.
4499         (ipcp_analyze_node): Call ipa_analyze_params_uses.
4500         (ipcp_print_all_lattices): Print devirtualization info.
4501         (ipa_set_param_cannot_devirtualize): New function.
4502         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
4503         lattice to BOTTOM.
4504         (ipcp_init_stage): Merged into...
4505         (ipcp_generate_summary): ...its caller.
4506         (ipcp_change_tops_to_bottom): Also process type lists.
4507         (ipcp_add_param_type): New function.
4508         (ipcp_copy_types): Likewise.
4509         (ipcp_propagate_types): Likewise.
4510         (ipcp_propagate_stage): Also propagate types.
4511         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
4512         Also return true if propagated types require it.
4513         (ipcp_update_callgraph): Dump redirection info.
4514         (ipcp_process_devirtualization_opportunities): New function.
4515         (ipcp_const_param_count): Include known type information.
4516         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
4517         on new node.  Fixed formatting.
4518         * ipa-prop.c (make_edge_direct_to_target): Renamed to
4519         ipa_make_edge_direct_to_target and changed all callers.  Made
4520         externally visible.
4521         (ipa_node_duplication_hook): Duplicate types vector.
4522         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
4523         redirect outgoing calls for which we can't get a decl from the
4524         statement.  Check that we can get a decl from the call statement.
4525         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
4526         ipa_analyze_params_uses only when ipa-cp is disabled.
4527         * tree-inline.c (get_indirect_callee_fndecl): Removed.
4528         (expand_call_inline): Do not call get_indirect_callee_fndecl.
4529         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
4530         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
4531
4532 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4533
4534         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
4535         temporary. Emit move from temporary to accum, so REG_EQUAL note will
4536         be attached to this insn in correct mode.
4537
4538 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
4539
4540         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
4541         using REGNO of base_reg directly.
4542
4543 2010-08-05  Jie Zhang  <jie@codesourcery.com>
4544
4545         PR tree-optimization/45144
4546         * tree-sra.c (type_consists_of_records_p): Return false
4547         if the record contains bit-field.
4548
4549 2010-08-04  Richard Henderson  <rth@redhat.com>
4550
4551         * config/i386/i386.c (struct ix86_frame): Remove padding and
4552         to_allocate members.
4553         (ix86_compute_frame_layout): Don't store them.
4554         (ix86_can_use_return_insn_p): Use a more direct and more obviously
4555         correct condition for the position of the stack pointer.
4556         (ix86_expand_prologue): Compute remaining stack allocation based
4557         on the ultimate stack pointer offset.
4558         (ix86_expand_epilogue): Use more obvious expressions testing for
4559         the stack pointer already pointing to the saved registers.
4560
4561         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
4562         duplication deconstructing the frame pointer.  Simplify
4563         deallocation of the local stack frame.
4564
4565         * reg-notes.def (CFA_EXPRESSION): New.
4566         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
4567         (dwarf2out_frame_debug_cfa_expression): New.
4568         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
4569
4570         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
4571         * config/i386/i386.c (ix86_expand_prologue): Set it.
4572         (ix86_expand_epilogue): Clear it.
4573         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
4574         context, add REG_CFA_EXPRESSION notes.
4575
4576         * config/i386/i386.h (struct machine_frame_state): Rename from
4577         machine_cfa_state.  Add members tracking SP and FP regardless
4578         of the current CFA register.
4579         (ix86_cfa_state): Remove.
4580         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
4581         and sse_reg_save_offset members.
4582         (ix86_compute_frame_layout): Set them.
4583         (gen_push): Increment sp_offset too.
4584         (choose_baseaddr_len, choose_baseaddr): New.
4585         (ix86_emit_save_reg_using_mov): New.
4586         (ix86_emit_save_regs_using_mov): Use it.
4587         (ix86_emit_save_sse_regs_using_mov): Likewise.
4588         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
4589         compare vs the saved red_zone_offset.
4590         (pro_epilogue_adjust_stack): Adjust sp_offset.
4591         (ix86_adjust_stack_and_probe): Likewise.
4592         (ix86_expand_prologue): Set up, use, and validate the new
4593         frame_state_info members.  Use gen_frame_mem.
4594         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
4595         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
4596         new frame_state_info members.
4597         (ix86_emit_leave): Likewise.
4598         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
4599         out-of-range stack pointer offsets here.
4600         (ix86_emit_restore_sse_regs_using_mov): Likewise.
4601         (ix86_expand_epilogue): Use and validate the new frame_state_info
4602         members.  Break up and simplify the logic selecting the
4603         restore_regs_via_mov code path.  Ensure that there will be no
4604         out-of-range stack pointer offsets.
4605
4606         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
4607
4608         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
4609         argument name to reflect the expected tree; fix indentation.
4610         (ix86_asm_output_function_label): Output the entire 32-bit
4611         ms_hook here as bytes ...
4612         (ix86_expand_prologue): ... not here as insns.  Attach the
4613         unwind info for the ms_hook to a blockage insn.
4614         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
4615         (ix86_ms_bitfield_layout_p): Fix indentation.
4616         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
4617
4618         * config/i386/i386.c (ix86_using_red_zone): New.
4619         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
4620         ix86_expand_prologue, ix86_force_to_memory): Use it.
4621
4622         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
4623         saving the int registers.
4624
4625         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
4626         and DWARF2_UNWIND_INFO conditional compilation.
4627
4628 2010-08-04  Richard Henderson  <rth@redhat.com>
4629
4630         PR debug/45171
4631         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
4632         an is_naming_typedef_decl.
4633
4634 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
4635
4636         PR rtl-optimization/45162
4637         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
4638         * dce.c (word_dce_process_block): Likewise.
4639
4640 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
4641
4642         PR target/44583
4643         * config/ia64/constraints.md (Z): New.
4644         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
4645         (xfreg_or_signed_fp01_operand): New.
4646         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
4647         with fr_reg_or_signed_fp01_operand and constraint G with Z.
4648         (subsf3): Ditto.
4649         (*maddsf4): Ditto.
4650         (*msubsf4): Ditto.
4651         (adddf3): Ditto.
4652         (adddf3_trunc): Ditto.
4653         (subdf3): Ditto.
4654         (*subdf3_trunc): Ditto.
4655         (*madddf4): Ditto.
4656         (*madddf4_trunc): Ditto.
4657         (*msubdf4): Ditto.
4658         (*msubdf4_trunc): Ditto.
4659         (addxf3): Replace xfreg_or_fp01_operand with
4660         xfreg_or_signed_fp01_operand and constraint G with Z.
4661         (*addxf3_truncsf): Ditto.
4662         (*addxf3_truncdf): Ditto.
4663         (subxf3): Ditto.
4664         (*subxf3_truncsf): Ditto.
4665         (*subxf3_truncdf): Ditto.
4666         (*maddxf4): Ditto.
4667         (*maddxf4_truncsf): Ditto.
4668         (*maddxf4_truncdf): Ditto.
4669         (*msubxf4): Ditto.
4670         (*msubxf4_truncsf): Ditto.
4671         (*msubxf4_truncdf): Ditto.
4672
4673 2010-08-04  Richard Guenther  <rguenther@suse.de>
4674
4675         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
4676         if either alias-set is zero.
4677
4678 2010-08-04  Richard Guenther  <rguenther@suse.de>
4679
4680         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
4681         * tree-ssa-ccp.c: ... here.
4682         * tree-ssa-copy.c: ... and here.
4683         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
4684         value_range_t): Move ...
4685         * tree-vrp.c: ... here.
4686         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
4687         (substitute_and_fold): Adjust prototype.
4688         * tree-ssa-propagate.c (replace_uses_in): Adjust.
4689         (replace_phi_args_in): Likewise.
4690         (substitute_and_fold): Take callback to query lattice instead
4691         of pointer to lattice.  Replace SSA name defs with lattice
4692         values first.
4693         * tree-ssa-ccp.c (ccp_finalize): Adjust.
4694         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
4695         (get_value): New function.
4696         (fini_copy_prop): Adjust.
4697         * tree-vrp.c (vrp_finalize): Adjust.
4698
4699 2010-08-04  Richard Guenther  <rguenther@suse.de>
4700
4701         PR middle-end/45176
4702         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
4703         points-to set for original MEM_REF.
4704
4705 2010-08-04  Richard Guenther  <rguenther@suse.de>
4706
4707         * tree-ssa-ccp.c (get_constant_value): New function.
4708         (get_rhs_assign_op_for_ccp): Remove.
4709         (valueize_op): New function.
4710         (ccp_fold): Use get_constant_value and valueize_op.
4711         (fold_const_aggregate_ref): Likewise.
4712         (ccp_fold_stmt): Likewise.
4713         (visit_assignment): Simplify.
4714
4715 2010-08-04  Richard Guenther  <rguenther@suse.de>
4716
4717         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
4718         * double-int.h (double_int_ctz): Declare.
4719         * double-int.c (double_int_ctz): New function.
4720
4721 2010-08-04  Hariharan Sandanagobalane <hariharan@picochip.com>
4722
4723         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
4724         Define.
4725         picochip_expand_movmemhi : Expand movmem pattern.
4726         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
4727         Declare.
4728         * config/picochip/picochip.md (movmemhi) : New pattern.
4729
4730 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4731
4732         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
4733
4734 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
4735
4736         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
4737         NEG as operand of a MULT by merging it with the other operand.
4738         * combine.c (make_compound_operation): Use trunc_int_for_mode when
4739         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
4740         MULT.
4741         * config/arm/constraints.md (M): Examine only 32 bits of a
4742         HOST_WIDE_INT.
4743         * config/arm/predicates.md (power_of_two_operand): Likewise.
4744
4745 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4746
4747         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
4748         non-NOTE insns.
4749
4750 2010-08-03  Jan Hubicka  <jh@suse.cz>
4751
4752         * ipa-split.c (struct split_point): Add split_part_set_retval.
4753         (find_retval): Forward declare.
4754         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
4755         (consider_split): Compute current->split_part_set_retval.
4756         (visit_bb): Do not look into return value.
4757         (split_function): Handle !split_part_set_retval
4758
4759 2010-08-03  Martin Jambor  <mjambor@suse.cz>
4760
4761         * tree-sra.c (completely_scalarize_record): New parameter REF, create
4762         its own access->expr intead of using build_ref_for_offset.
4763
4764 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
4765
4766         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
4767         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
4768         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
4769         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
4770         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
4771         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
4772         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
4773         DEFAULT_SWITCH_TAKES_ARG.
4774         * config/rx/rx.opt (-patch=): Remove option.
4775         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
4776         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
4777         * doc/invoke.texi (RX Options): Remove -patch=.
4778         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
4779         (option_map): Remove --profile-blocks, --quiet and --silent.
4780
4781 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
4782
4783         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
4784         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
4785         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
4786         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4787         Update calls to ix86_expand_compare and ix86_expand_branch.
4788         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
4789         ix86_expand_compare.
4790         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
4791         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
4792         Make static.
4793         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
4794         and ix86_compare_op1.  Update calls to ix86_expand_compare.
4795         (ix86_expand_int_movcc): Ditto.
4796         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
4797         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
4798         (ix86_expand_setcc): Ditto.
4799         (ix86_expand_compare): Remove prototype.
4800         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
4801         ix86_compare_op0 and ix86_compare_op1.  Update calls
4802         to ix86_expand_branch to directly pass operands[1] and operands[2].
4803         (cbranchxf4): Ditto.
4804         (cbranch<MODEF:mode>4): Ditto.
4805         (cbranchcc4): Ditto.
4806         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
4807         Update calls to ix86_expand_setcc to directly pass operands[2] and
4808         operands[3].
4809         (cstorexf4): Ditto.
4810         (cstore<MODEF:mode>4): Ditto.
4811         (cstorecc4): Ditto.
4812
4813 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4814
4815         PR target/45063
4816         * caller-save.c (save_call_clobbered_regs): Remove regs from
4817         hard_regs_saved when they are set.
4818
4819 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
4820
4821         PR target/41089
4822         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
4823         as volatile.
4824
4825 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
4826
4827         * common.opt (ftree-loop-distribute-patterns): New.
4828         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
4829         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
4830         at -O3.
4831         * tree-data-ref.c (stores_zero_from_loop): New.
4832         * tree-data-ref.h (stores_zero_from_loop): Declared.
4833         * tree-loop-distribution.c (tree_loop_distribution): Call
4834         stores_zero_from_loop.
4835         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
4836
4837 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
4838
4839         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
4840         into account.
4841
4842         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
4843         * config/arm/arm.c (thumb1_code): New variable.
4844         (arm_override_options): Set it.
4845         (thumb1_final_prescan_insn): Keep track of condition code status.
4846         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
4847         jumps that depend on them.
4848         * config/arm/arm.h (thumb1_code): Declare variable.
4849         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
4850         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
4851         thumb1_cc_mode.
4852         (CC_STATUS_INIT): New macro.
4853         * config/arm/constraints.md (Pd): New constraint.
4854         * config/arm/predicates.md (noov_comparison_operator): New predicate.
4855         * config/arm/arm.md (is_thumb1): New define_attr.
4856         (conds): Set default to "clob" when generating Thumb1 code.
4857         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
4858         code are set.  Use two-operand assembly syntax.
4859         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
4860         pattern.
4861         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
4862         codes are set.  Use two-operand assembly syntax.
4863         (zero_extendhisi splitter): Remove constraints.
4864         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
4865         thumb1_movsf_insn): Set conds attribute as appropriate.
4866         (cbranchsi4_insn): Use condition code status from struct
4867         machine_function to determine whether the comparison can be eliminated.
4868         Discourage the alternative using high registers.
4869         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
4870         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
4871         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
4872         subsi3_cbranch): Delete.
4873         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
4874         one subtract and one cbranch insn.
4875
4876         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
4877         thumb2_movdf_soft_insn): Delete patterns.
4878         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
4879         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
4880         (pool_range, neg_pool_range): Use them to define defaults.
4881         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
4882         and allow for TARGET_32BIT.
4883
4884         PR target/40457
4885         * config/arm/arm.h (arm_regs_in_sequence): Declare.
4886         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
4887         load_multiple_sequence, store_multiple_sequence): Delete
4888         declarations.
4889         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
4890         declarations.
4891         * config/arm/ldmstm.md: New file.
4892         * config/arm/arm.c (arm_regs_in_sequence): New array.
4893         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
4894         CHECK_REGS.  All callers changed.
4895         If SAVED_ORDER is nonnull, copy the computed order into it.
4896         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
4897         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
4898         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
4899         If SAVED_ORDER is nonnull, copy the computed order into it.
4900         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
4901         like REGS.  Handle Thumb mode.
4902         (arm_gen_load_multiple_1): New function, broken out of
4903         arm_gen_load_multiple.
4904         (arm_gen_store_multiple_1): New function, broken out of
4905         arm_gen_store_multiple.
4906         (arm_gen_multiple_op): New function, with code from
4907         arm_gen_load_multiple and arm_gen_store_multiple moved here.
4908         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
4909         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
4910         changed.
4911         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
4912         * config/arm/predicates.md (commutative_binary_operator): New.
4913         (load_multiple_operation, store_multiple_operation): Handle more
4914         variants of these patterns with different starting offsets.  Handle
4915         Thumb-1.
4916         * config/arm/arm.md: Include "ldmstm.md".
4917         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
4918         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
4919         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
4920         peepholes): Delete.
4921         * config/arm/ldmstm.md: New file.
4922         * config/arm/arm-ldmstm.ml: New file.
4923
4924         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
4925         if statement which adds extra costs to frame-related expressions.
4926
4927 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4928
4929         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
4930
4931 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
4932
4933         PR target/45142
4934         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
4935         alternative 2.
4936         (vec_set<moode>_0 splitter): Use SSEMODE4S mode iterator to also
4937         split V4SI operands.
4938
4939 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
4940
4941         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4942         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
4943         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
4944         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
4945
4946 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
4947
4948         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
4949         LOCAL_INCLUDE_DIR.
4950
4951 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
4952
4953         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
4954         used in the call to optab_for_tree_code.  Fix the second
4955         is_widening_mult_p call.  Check that both unwidened operands
4956         have the same sign.
4957
4958 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
4959
4960         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
4961
4962 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
4963
4964         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
4965
4966 2010-07-30  DJ Delorie  <dj@redhat.com>
4967
4968         * config/rx/predicates.md (rx_constshift_operand): New.
4969         * config/rx/rx.md (zs_cond): New.
4970         (cbranchsi4): Remove mode.
4971         (*cbranchsi4_<code>): Likewise.
4972         (*tstbranchsi4_<code>): New.
4973         (*tstbranchsi4r_<code>): New.
4974         (*tstbranchsi4m_eq): New.
4975         (*tstbranchsi4m_ne): New.
4976         (cbranchsf4): Remove mode.
4977         (*cbranchsf4_<code>): Likewise.
4978
4979 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
4980
4981         * rtlanal.c (simplify_subreg_regno): Don't treat
4982         HARD_FRAME_POINTER_REGNUM specially.
4983
4984 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
4985
4986         * common.opt (-G): Don't define option here.
4987         * config/g.opt: New.
4988         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
4989         rs6000/powerpc and score targets.
4990         * opts.c (common_handle_option): Don't handle -G here.
4991         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
4992         * config/frv/frv.c (frv_handle_option): Handle -G.
4993         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
4994         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
4995         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
4996         * config/mips/mips.c (mips_handle_option): Handle -G.
4997         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
4998         * config/score/score.c (score_handle_option): Handle -G.
4999
5000 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
5001
5002         * config/mmix/mmix.c: Include basic-block.h.
5003
5004 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
5005
5006         PR debug/45055
5007         PR rtl-optimization/45137
5008         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
5009         prototypes.
5010         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
5011         New functions.
5012         * combine.c (next_nonnote_nondebug_insn): Removed.
5013         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
5014         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
5015         * sched-deps.c (sched_analyze_insn): Likewise.
5016         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
5017         * rtlanal.c (canonicalize_condition): Likewise.
5018         * postreload.c (reload_combine_recognize_pattern): Likewise.
5019         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
5020
5021 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
5022
5023         * config/i386/i386.md (int_cond): Remove code iterator.
5024         (fp_cond): Ditto.
5025         (cbranch<mode>4): Use ordered_comparison_operator predicate
5026         for operator0.
5027         (cstore<mode>4): Ditto for operator1.
5028         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
5029         (add<mode>cc): ditto.
5030
5031 2010-07-30  Richard Guenther  <rguenther@suse.de>
5032
5033         PR middle-end/45141
5034         * expr.c (expand_expr_real_1): Check for not handled base address.
5035
5036 2010-07-30  Richard Guenther  <rguenther@suse.de>
5037
5038         * ipa-prop.c (ipa_modify_formal_parameters): Use
5039         build_distinct_type_copy.
5040
5041 2010-07-30  Anthony Green  <green@moxielogic.com>
5042
5043         * config/moxie/rtems.h: New file.
5044         * config.gcc: Add moxie-rtems support.
5045
5046 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5047
5048         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
5049         df flags as in run_fast_df_dce.
5050
5051 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
5052
5053         Revert:
5054         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5055
5056         * rtl.def (NOTE): Swap operands 4 and 5.
5057         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
5058         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
5059         Adjust accordingly.
5060         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
5061
5062 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
5063
5064         PR debug/45110
5065         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
5066         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
5067         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
5068         formal parameters.
5069         (gen_decl_die): Change return type to dw_die_ref, return what
5070         gen_formal_parameter_die returned.
5071
5072 2010-07-29  Martin Jambor  <mjambor@suse.cz>
5073
5074         * dbgcnt.def (eipa_sra): New counter.
5075         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
5076
5077 2010-07-29  Xinliang David Li  <davidxl@google.com>
5078
5079         PR bootstrap/45119
5080         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
5081         in revision 162652.
5082
5083 2010-07-29  Richard Guenther  <rguenther@suse.de>
5084
5085         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
5086         (TV_TREE_STORE_CCP): Likewise.
5087         (TV_TREE_REDPHI): Likewise.
5088
5089 2010-07-29  Richard Guenther  <rguenther@suse.de>
5090
5091         * double-int.h (double_int_and_not): New function.
5092         * combine.c (try_combine): Use it.
5093         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
5094
5095 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
5096
5097         PR rtl-optimization/42575
5098         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
5099         Argument AU removed.  All callers changed.  Ignore artificial refs.
5100         Use return value of df_word_lr_simulate_defs to decide whether an insn
5101         is necessary.
5102         (fast_dce): Rename arg to WORD_LEVEL.
5103         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
5104         static.
5105         (pass_fast_rtl_byte_dce): Delete.
5106         * dce.h (run_word_dce): Declare.
5107         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
5108         All callers changed.  Simplify code to only deal with two-word regs.
5109         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
5110         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
5111         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
5112         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
5113         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
5114         (df_word_lr_mark_ref): Declare.
5115         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
5116         df_word_lr_simulate_uses): Declare or rename from byte variants.
5117         (df_byte_lr_simulate_artificial_refs_at_top,
5118         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5119         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
5120         declarations.
5121         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
5122         (enum df_mm): Delete.
5123         * df-byte-scan.c: Delete file.
5124         * df-problems.c (df_word_lr_problem_data): Renamed from
5125         df_byte_lr_problem_data, all members deleted except for
5126         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
5127         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
5128         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
5129         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
5130         df_byte_lr_confluence_0): Delete functions.
5131         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
5132         callers changed.
5133         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
5134         Don't initialize members that were deleted, don't try to discover data
5135         about registers.  Ignore hard regs.
5136         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
5137         (df_word_lr_mark_ref): New function.
5138         (df_word_lr_bb_local_compute): Renamed from
5139         df_byte_bb_lr_local_compute; all callers changed.  Use
5140         df_word_lr_mark_ref.  Assert that artificial refs don't include
5141         pseudos.  Ignore hard registers.
5142         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
5143         Assert that exit block uses don't contain pseudos.
5144         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
5145         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
5146         callers changed.  Ignore hard regs.
5147         (df_word_lr_transfer_function): Renamed from
5148         df_byte_lr_transfer_function; all callers changed.
5149         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
5150         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
5151         changed.
5152         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
5153         callers changed.
5154         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
5155         confluence operator 0 set to NULL.
5156         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
5157         callers changed.
5158         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
5159         Return bool, true if bitmap changed or insn otherwise necessary.
5160         All callers changed.  Simplify using df_word_lr_mark_ref.
5161         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
5162         all callers changed.  Simplify using df_word_lr_mark_ref.
5163         * lower-subreg.c: Include "dce.h"
5164         (decompose_multiword_subregs): Call run_word_dce if df available.
5165         * Makefile.in (lower-subreg.o): Adjust dependencies.
5166         (df-byte-scan.o): Delete.
5167         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
5168
5169 2010-07-29  Richard Guenther  <rguenther@suse.de>
5170
5171         * tree.c (build_vector): Assert that the vector constant
5172         has enough elements.
5173         (build_vector_from_ctor): Pad with trailing zeros.
5174
5175 2010-07-29  Richard Guenther  <rguenther@suse.de>
5176
5177         PR tree-optimization/45120
5178         * tree-ssa-structalias.c (get_constraint_for_component_ref):
5179         Handle offset in DEREFs properly.
5180         (get_constraint_for_1): Handle MEM_REF offset properly.
5181
5182 2010-07-29  Richard Guenther  <rguenther@suse.de>
5183
5184         PR middle-end/45034
5185         * convert.c (convert_to_integer): Always use an unsigned
5186         type for narrowed negate and bitwise not.
5187
5188 2010-07-29  Ira Rosen  <irar@il.ibm.com>
5189
5190         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
5191         to outer loop when creating reduction epilogue for double reduction,
5192         and switch back to the inner loop when updating the phi nodes.
5193         Update uses of outer loop exit phi nodes in double reduction (instead
5194         of uses of reduction).
5195
5196 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
5197
5198         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
5199         popcount on power7 and parity on power6 systems.
5200         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
5201         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
5202         instructions.
5203
5204         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
5205         (UNSPEC_PARITY): Ditto.
5206         (SFDF): New iterator for SF/DF.
5207         (rreg2): New mode attribute for floating register constraint.
5208         (TARGET_FLOAT): New mode attribute for whether single/double float
5209         is supported.
5210         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
5211         pattern.
5212         (parity<mode>2_cmpb): New insn for parity on power6 and newer
5213         machines.
5214         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
5215         pattern.  Add support for fcpsgn instruction added in power6.
5216         (copysignsf3): Delete.
5217         (copysigndf3): Delete.
5218         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
5219         instead of if_then_else in RTL to avoid problems with -0.
5220
5221         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
5222         of if_then_else to mirror scalar code.
5223         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
5224         rs6000.md.
5225
5226         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
5227         instead of if_then_else.
5228
5229 2010-07-28  Xinliang David Li  <davidxl@google.com>
5230
5231         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
5232         (dump_cand): Dump var_before/after.
5233         (htab_inv_expr_eq): New function.
5234         (htab_inv_expr_hash): New function.
5235         (tree_ssa_iv_optimize_init): Support pseudo invariants.
5236         (add_candidate_1): consider base type precision.
5237         (set_use_iv_cost): New parameter.
5238         (adjust_setup_cost): Use profile information.
5239         (get_address_cost): Do not hard code width in computing address
5240         offset limits.
5241         (compare_aff_trees): New function.
5242         (get_loop_invariant_expr_id): New function.
5243         (get_computation_cost_at): New parameter and use profile information.
5244         (get_computation_cost): New parameter.
5245         (determine_use_iv_cost_generic): Pass new parameter.
5246         (determine_use_iv_cost_address): Ditto.
5247         (determine_use_iv_cost_condition): Ditto.
5248         (autoinc_possible_for_pair): Ditto.
5249         (determine_use_iv_costs): More dumps.
5250         (iv_ca_get_num_inv_exprs): New function.
5251         (iv_ca_recount_cost): Consider loop invariants in register pressure
5252         cost.
5253         (iv_ca_add_use): New parameter.
5254         (iv_ca_dump): Better dumping.
5255         (iv_ca_extend): New parameter.
5256         (try_add_cand_for): Attempt to get better partial solution.
5257         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
5258         (create_new-ivs): More dumps.
5259         (rewrite_use_compare): Ditto.
5260         (free_loop_data): More cleanup.
5261         (treee_ssa_iv_optimize_finalize): Ditto.
5262
5263 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
5264
5265         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
5266         * config/i386/i386.c (ix86_profile_before_prologue): New.
5267         (override_options): Add special handling for -mfentry.
5268         (ix86_function_regparm): Likewise.
5269         (ix86_function_sseregparm): Likewise.
5270         (ix86_frame_pointer_required): Likewise.
5271         (ix86_expand_prologue): Check for ms_hook_prologue.
5272         (x86_function_profiler): Adjust mcount output.
5273         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
5274         * config/i386/i386.opt (mfentry): New.
5275         * doc/invoke.texi (mfentry): Add documentation.
5276         * doc/tm.texi: Regenerated..
5277         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
5278         * final.c (final_start_function): Replace macro
5279         PROFILE_BEFORE_PROLOGUE by target hook.
5280         * function.c (thread_prologue_and_epilogue_insns): Likewise.
5281         * target.def (profile_before_prologue): New hook.
5282         * targhooks.c (default_profile_before_prologue): New.
5283         * targhooks.h (default_profile_before_prologue): New.
5284
5285 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
5286
5287         PR debug/45105
5288         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
5289
5290         PR debug/45103
5291         * dwarf2out.c (dwarf2out_var_location): Always consider
5292         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
5293
5294 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5295
5296         PR rtl-optimization/45107
5297         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
5298
5299 2010-07-28  Richard Guenther  <rguenther@suse.de>
5300
5301         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
5302         (set_lattice_value): Do not query an old default value.
5303         (get_value_for_expr): New function.  Properly canonicalize
5304         float values.
5305         (ccp_visit_phi_node): Use it.
5306
5307 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
5308
5309         * config/arm/arm.c (arm_pcs_default): Remove static.
5310         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
5311         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
5312         (arm_pcs_default): Declare.
5313
5314 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
5315
5316         * config/rs6000/rs6000.c (rs6000_override_options):
5317         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
5318         ... to darwin_rs6000_override_options.
5319         (rs6000_return_in_memory): Update preceding comment for darwin
5320         64 bit ABI.  Use TARGET_MACHO inline.
5321         (rs6000_darwin64_struct_check_p): New.
5322         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
5323         (function_arg): Likewise.
5324         (rs6000_arg_partial_bytes): Likewise.
5325         (rs6000_function_value): Likewise.
5326
5327 2010-07-28  Andi Kleen <ak@linux.intel.com>
5328
5329         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
5330
5331 2010-07-28  Richard Guenther  <rguenther@suse.de>
5332
5333         PR middle-end/44903
5334         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
5335         targets try harder to not generate unaligned accesses.
5336
5337 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
5338
5339         PR rtl-optimization/45101
5340         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
5341         for gcse-las.
5342
5343 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5344
5345         PR tree-optimization/44885
5346         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
5347         with non-aliased component.
5348
5349 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
5350
5351         * config/darwin-driver.c (SWITCH_TAKES_ARG,
5352         WORD_SWITCH_TAKES_ARG): Remove.
5353         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
5354         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
5355         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
5356         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
5357         definitions from gcc.c.
5358         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
5359         defaults.h.
5360         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
5361         Move to defaults.h.
5362         * opts-common.c: Include tm.h.
5363         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
5364         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
5365         Handle more than one argument.  Set canonical_option_num_elements.
5366         (decode_cmdline_options_to_array): Set
5367         canonical_option_num_elements and trailing elements of
5368         canonical_option.
5369         * opts.h (struct cl_decoded_option): Allow four elements in
5370         canonical_option.  Add field canonical_option_num_elements.
5371         * Makefile.in (opts-common.o): Update dependencies.
5372
5373 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
5374
5375         PR middle-end/44790
5376         PR middle-end/44993
5377         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
5378         sure the base has address_mode before adding the offset.
5379
5380 2010-07-27  Xinliang David Li <davidxl@google.com>
5381
5382         * tree-flow.h (create_mem_ref): Add one new parameter.
5383         * tree-ssa-address.c (create_mem_ref): New parameter.
5384         (addr_to_parts): Ditto.
5385         (move_variant_to_index): New function.
5386         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
5387
5388 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5389
5390         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
5391         4 and 5.
5392         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
5393         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
5394         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
5395         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
5396         CODE_LABELs and NOTEs.
5397         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
5398         * combine.c (try_combine): Likewise.
5399         * ira.c (setup_prohibited_mode_move_regs): Likewise.
5400         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
5401
5402 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5403
5404         * coretypes.h (struct cl_option_handlers): Declare.
5405         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
5406         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
5407         * langhooks-def.h (lhd_handle_option): Declare.
5408         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
5409         * langhooks.c (lhd_handle_option): New.
5410         * langhooks.h (struct lang_hooks): Update prototype and return
5411         value type of handle_option hook.
5412         * optc-gen.awk: Generate target_flags_explicit definition for the
5413         driver.
5414         * opts-common.c: Include diagnostic.h.
5415         (handle_option): Move from opts.c.  Update prototype and return
5416         value type.  Use handlers structure.
5417         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
5418         handlers structure.
5419         (set_option): Move from opts.c.
5420         * opts.c (common_handle_option): Update prototype and return value
5421         type.  Update calls to handle_option and enable_warning_as_error.
5422         (unknown_option_callback, post_handling_callback,
5423         lang_handle_option, target_handle_option): New.
5424         (handle_option, read_cmdline_option): Move to opts-common.c.
5425         (read_cmdline_options): Update prototype.  Update call to
5426         read_cmdline_option.
5427         (decode_options): Initialize and use handlers structure.
5428         (set_option): Move to opts-common.c.
5429         (enable_warning_as_error): Update prototype.  Update call to
5430         handle_option.
5431         * opts.h (struct cl_option_handler_func, struct
5432         cl_option_handlers): New.
5433         (handle_option, enable_warning_as_error): Update prototypes.
5434         (read_cmdline_option): Declare.
5435         * Makefile.in (opts-common.o): Update dependencies.
5436
5437 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5438
5439         * config/arm/arm.c (params.h): Include.
5440         (arm_override_options): Tune gcse-unrestricted-cost.
5441         * config/arm/t-arm (arm.o): Define dependencies.
5442
5443 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5444
5445         PR target/42495
5446         PR middle-end/42574
5447         * basic-block.h (get_dominated_to_depth): Declare.
5448         * dominance.c (get_dominated_to_depth): New function, use
5449         get_all_dominated_blocks as a base.
5450         (get_all_dominated_blocks): Use get_dominated_to_depth.
5451
5452         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
5453         (hoist_exprs): Remove.
5454         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
5455         (compute_code_hoist_vbeinout): Add debug print outs.
5456         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
5457
5458         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
5459         quadratic behavior.
5460         * params.h (MAX_HOIST_DEPTH): New macro.
5461         * doc/invoke.texi (max-hoist-depth): Document.
5462
5463 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5464
5465         PR rtl-optimization/40956
5466         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
5467         constants.
5468
5469 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5470
5471         PR target/42495
5472         PR middle-end/42574
5473         * config/arm/arm.c (legitimize_pic_address): Use
5474         gen_calculate_pic_address pattern to emit calculation of PIC address.
5475         (will_be_in_index_register): New function.
5476         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
5477         (thumb1_legitimate_address_p): Use it provided !strict_p.
5478         * config/arm/arm.md (calculate_pic_address): New expand and split.
5479
5480 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5481
5482         PR target/42495
5483         PR middle-end/42574
5484         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
5485         * config/arm/arm.md (define_split "J", define_split "K"): Make
5486         IRA/reload friendly.
5487
5488 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5489
5490         * gcse.c (insert_insn_end_basic_block): Update signature, remove
5491         unused checks.
5492         (pre_edge_insert, hoist_code): Update.
5493
5494 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5495
5496         PR target/42495
5497         PR middle-end/42574
5498         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
5499
5500 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5501
5502         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
5503
5504 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5505
5506         PR rtl-optimization/40956
5507         PR target/42495
5508         PR middle-end/42574
5509         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
5510         for hoisting.
5511         (hoist_code): Count occurences in current block too.
5512
5513 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5514
5515         * gcse.c (struct expr:max_distance): New field.
5516         (doing_code_hoisting_p): New static variable.
5517         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
5518         simple expressions, don't change behavior for PRE.  Set max_distance.
5519         (insert_expr_in_table): Set new max_distance field.
5520         (hash_scan_set): Update.
5521         (hoist_expr_reaches_here_p): Stop search after max_distance
5522         instructions.
5523         (find_occr_in_bb): New static function.  Use it in ...
5524         (hoist_code): Calculate sizes of basic block before any changes are
5525         done.  Pass max_distance to hoist_expr_reaches_here_p.
5526         (one_code_hoisting_pass): Set doing_code_hoisting_p.
5527
5528         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
5529         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
5530         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
5531         macros.
5532         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
5533         Document.
5534
5535 2010-07-27  Jeff Law  <law@redhat.com>
5536             Maxim Kuvyrkov  <maxim@codesourcery.com>
5537
5538         * gcse.c (compute_transpout, transpout): Remove, move logic
5539         to prune_expressions.
5540         (compute_pre_data): Move pruning of trapping expressions ...
5541         (prune_expressions): ... here.  New static function.
5542         (compute_code_hoist_data): Use it.
5543         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
5544
5545 2010-07-27  Xinliang David Li  <davidxl@google.com>
5546
5547         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
5548         (rewrite_use_address): Adjust iv update position when needed.
5549
5550 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
5551
5552         * dbgcnt.def (hoist_insn): New debug counter.
5553         * gcse.c (hoist_code): Use it.
5554
5555 2010-07-27  Xinliang David Li  <davidxl@google.com>
5556
5557         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
5558         (niter_for_single_dom_exit): Passes additional parameter.
5559         (iv_period): Fix comments.
5560         (may_eliminate_iv): Handles multiple exit loops properly.
5561         (free_tree_niter_desc): New function.
5562         (free_loop_data): Frees up loop iteration descriptors.
5563
5564 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5565
5566         PR target/44542
5567         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
5568         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
5569         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
5570         (expand_one_var): Don't consider DECL_ALIGN for variables for
5571         which expand_one_stack_var_at has been already called.
5572
5573         PR testsuite/44701
5574         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
5575         constraints on IA-64.
5576
5577 2010-07-27  Jie Zhang  <jie@codesourcery.com>
5578
5579         PR target/44290
5580         Revert:
5581         2010-07-23  Jie Zhang  <jie@codesourcery.com>
5582
5583         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
5584         false if ! tree_versionable_function_p.
5585
5586 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5587
5588         * dwarf2out.c (add_data_member_location_attribute): Use
5589         add_AT_unsigned instead of add_AT_int if offset is non-negative.
5590
5591 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5592
5593         * postreload.c (try_replace_in_use): New static function.
5594         (reload_combine_recognize_const_pattern): Use it here.  Allow
5595         substituting into a final add insn, and substituting into a memory
5596         reference in an insn that sets the reg.
5597
5598 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5599
5600         * common.opt (o): Add MissingArgError.
5601         * doc/options.texi (MissingArgError): Document.
5602         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
5603         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
5604         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
5605         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
5606         * langhooks.h (struct lang_hooks): Remove missing_argument.
5607         * optc-gen.awk: Handle MissingArgError and output new structure
5608         field initializers.
5609         * opts.c (read_cmdline_option): Use missing_argument_error field
5610         instead of missing_argument langhook.
5611         * opts.h (struct cl_option): Add missing_argument_error field.
5612         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
5613
5614 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5615
5616         PR target/29090
5617         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
5618         Darwin64 ABI, for zero-sized objects.
5619
5620 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
5621
5622         PR target/35491
5623         PR target/29090
5624
5625         Merge from Apple local 4.2.1.
5626         2005-05-11  Stan Shebs  <shebs@apple.com>
5627         Fix 64-bit varargs for Darwin (Radar 4028089).
5628         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
5629         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5630         Add argument, add case for 8-byte register half-filled with a float.
5631         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
5632         single-precision floats specially.
5633
5634 2010-07-27  Ira Rosen  <irar@il.ibm.com>
5635
5636         PR tree-optimization/44152
5637         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
5638         complex numbers for further check.
5639         (vect_supported_load_permutation_p): Check nodes with
5640         complex numbers.
5641
5642 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
5643
5644         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
5645         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
5646         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
5647         (LANG_HOOKS_INITIALIZER): Add new hooks.
5648         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
5649         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
5650         and complain_wrong_lang_p.  Update init_options prototype.
5651         * c-objc-common.c (c_initialize_diagnostics): First call
5652         c_common_initialize_diagnostics.
5653         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
5654         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
5655         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
5656         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
5657         (hook_uint_void_0): New.
5658         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
5659         (hook_uint_void_0): New.
5660         * opts-common.c (decode_cmdline_option,
5661         decode_cmdline_options_to_array): Also fill in canonical_option field.
5662         * opts.c (complain_wrong_lang): Use langhook to determine whether
5663         to complain instead of special-casing LTO.
5664         (decode_options): Separate lang_mask determination with
5665         option_lang_mask hook from call of init_options hook.
5666         * opts.h (struct cl_decoded_option): Add canonical_option.
5667
5668 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
5669
5670         PR tree-optimization/45083
5671         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
5672
5673 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
5674
5675         * postreload.c (reload_combine_recognize_const_pattern): Move test
5676         for limiting the insn movement to the right scope.
5677
5678         PR rtl-optimization/45051
5679         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
5680         than reg_mentioned_p.
5681
5682 2010-07-26  Richard Henderson  <rth@redhat.com>
5683
5684         PR target/44132
5685         * tree-emutls.c: New file.
5686         * Makefile.in (OBJS-common): Add it.
5687         * tree-pass.h (pass_ipa_lower_emutls): Declare.
5688         * passes.c (init_optimization_passes): Add it.
5689
5690         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
5691         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
5692         * expr.c (emutls_var_address): Delete.
5693         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
5694         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
5695         (emutls_finish): Delete.
5696         * toplev.c (compile_file): Don't call it.
5697         * tree.h (emutls_decl): Delete.
5698         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
5699         (emutls_finish, emutls_finalize_control_var): Delete.
5700         (emutls_object_type): Move to tree-emutls.c.
5701         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
5702         default_emutls_var_fields, get_emutls_object_type,
5703         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
5704         default_emutls_var_init): Likewise.
5705         (get_variable_section): Don't special case emutls.
5706         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
5707         default_elf_select_section, default_unique_section,
5708         default_encode_section_info): Likewise.
5709         * varpool.c (decide_is_variable_needed): Likewise.
5710         * gimple-iterator.c (update_call_edge_frequencies): New
5711         (gsi_insert_on_edge_immediate): Use it.
5712         (gsi_insert_seq_on_edge_immediate): Likewise.
5713         (gsi_commit_one_edge_insert): Likewise.
5714
5715         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
5716         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
5717         (x86_64_elf_unique_section): Likewise.
5718
5719 2010-07-26  Jan Hubicka  <jh@suse.cz>
5720
5721         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
5722         GTY((skip)).
5723
5724 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
5725
5726         * target.def (output_source_filename): New hook.
5727         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
5728         * doc/tm.texi: Regenerate.
5729         * toplev.c (output_file_directive) Remove function.
5730         * toplev.h (output_file_directive) Remove.
5731         * output.h (default_asm_output_source_filename,
5732         output_file_directive): Declare.
5733         * varasm.h (default_asm_output_source_filename,
5734         output_file_directive): New functions.
5735
5736         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
5737         * config/mips/mips-protos.h (mips_output_filename): Remove.
5738         * config/mips/mips.c (mips_output_filename): Make Static.
5739         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
5740
5741 2010-07-26  Richard Guenther  <rguenther@suse.de>
5742
5743         PR tree-optimization/43784
5744         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
5745         if the destination is used by the call.
5746
5747 2010-07-26  Richard Guenther  <rguenther@suse.de>
5748
5749         PR middle-end/45073
5750         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
5751         SSA updating on being in SSA form.
5752
5753 2010-07-26  Richard Guenther  <rguenther@suse.de>
5754
5755         PR middle-end/45056
5756         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
5757
5758 2010-07-26  Richard Guenther  <rguenther@suse.de>
5759
5760         PR tree-optimization/45071
5761         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
5762         adjust op->opcode.
5763
5764 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
5765
5766         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
5767         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
5768         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
5769         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
5770         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
5771         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
5772         save_r31, return_r31, save_interrupt, return_interrupt,
5773         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
5774         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
5775         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
5776         new ABI requirements.
5777         (save_r6_r9, L_callt_save_r6_r9): Remove.
5778         * config/v850/predicates.md (even_reg_operand, disp23_operand,
5779         const_float_1_operand const_float_0_operand): New Predicates.
5780         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
5781         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
5782         * config/v850/t-v850: Update multilibs for new target variants.
5783         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
5784         * config/v850/t-v850e: Likewise.
5785         * config/v850/v850.c (v850_issue_rate): New.
5786         (v850_strict_argument_naming): New.
5787         (function_arg): Modify to generate a different ABI.
5788         (print_operand): Update case 'z' to support float modes.
5789         (output_move_single): Modify to generate appropriate and better
5790         assembly.
5791         (v850_float_z_comparison_operator, v850_select_cc_mode,
5792         v850_float_nz_comparison_operator,  v850_gen_float_compare,
5793         v850_gen_compare): New functions to support comparison of float values.
5794         (ep_memory_offset): Add support for V850E2 targets.
5795         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
5796         (INTERRUPT_REGPARM_NUM): Remove.
5797         (compute_register_save_size): Add extra case to save/restore long call.
5798         (use_prolog_function): New function to support prologue.
5799         (expand_prologue): Add support for V850E2 targets and modified
5800         as per the current ABI requirements.
5801         (expand_epilogue): Likewise.
5802         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
5803         (construct_save_jarl): Likewise.
5804         (construct_dispose_instruction): Update as per the current ABI
5805         requirements.
5806         (construct_prepare_instruction): Likewise.
5807         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
5808         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
5809         (CPP_SPEC): Updated to support v850e2 targets.
5810         (STRICT_ALIGNMENT): Modified.
5811         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
5812         (FIXED_REGISTERS): Likewise.
5813         (CALL_USED_REGISTERS): Likewise.
5814         (CONDITIONAL_REGISTER_USAGE): Updated.
5815         (HARD_REGNO_MODE_OK): Updated.
5816         (reg_class): Updated to add even registers.
5817         (REG_CLASS_NAMES): Likewise.
5818         (REG_CLASS_CONTENTS): Likewise.
5819         (REGNO_REG_CLASS): Updated for CC registers.
5820         (REG_CLASS_FROM_LETTER): Added support for even registers.
5821         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
5822         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
5823         ARG_POINTER_REGNUM): Updated.
5824         (FUNCTION_ARG_ADVANCE): Define.
5825         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
5826         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
5827         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
5828         (GO_IF_LEGITIMATE_ADDRESS): Updated.
5829         (SELECT_CC_MODE): Define.
5830         (REGISTER_NAMES): Updated to add psw and fcc registers.
5831         (ADDITIONAL_REGISTER_NAMES): Updated.
5832         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
5833         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
5834         * config/v850/v850.md (define_constants): Define new constants.
5835         (type): Update store,bit1,macc,div,fpu and single attributes.
5836         (cpu): New attribute.
5837         (cc): Add set_z attribute.
5838         (unsign23byte_load, sign23byte_load, unsign23hword_load,
5839         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
5840         23word_store): New instructions for 23-bit displacement load and store.
5841         (movqi_internal, movhi_internal): Update the attributes.
5842         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
5843         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
5844         the attributes.
5845         (v850_tst1): Modified using CC_REGNUM.
5846         (tstsi): Remove.
5847         (cmpsi): Modified as define_expand from define_insn.
5848         (cmpsi_insn, cmpsf, cmpdf): New instructions.
5849         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
5850         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
5851         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
5852         one_cmplsi2): Clobber the CC_REGNUM register.
5853         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
5854         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
5855         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
5856         (setf_insn, set_z_insn, set_nz_insn): New instructions for
5857         v850e2v3 target.
5858         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
5859         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
5860         targets.
5861         (sasf_1, sasf_2): Remove.
5862         (sasf): New instruction.
5863         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
5864         targets. CC_REGNUM register is clobbered and attributes are
5865         updated.
5866         (branch_z_normal, branch_z_invert, branch_nz_normal,
5867         branch_nz_invert): New branch related instructions.
5868         (jump): Updated the attributes.
5869         (switch): Update to support new targets. CC_REGNUM register is
5870         clobbered and attributes are updated.
5871         (call_internal_short, call_internal_long, call_value_internal_short,
5872         call_value_internal_long): Updated the attributes.
5873         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
5874         clobbered and attributes are updated.
5875         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
5876         Update to support new targets. CC_REGNUM register is clobbered.
5877         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
5878         instructions.
5879         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
5880         are updated.
5881         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
5882         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
5883         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
5884         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
5885         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
5886         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
5887         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
5888         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
5889         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
5890         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
5891         point instructions defined for V850e2v3 target.
5892         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
5893         Add support for V850E2 targets and CC_REGNUM register is clobbered.
5894         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
5895         support for new targets.
5896         * config/v850/v850-modes.def: New file.
5897         * config/v850/v850.opt(mstrict-align): Remove.
5898         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
5899         mv850e2v3): New command line options for V850.
5900         * config.gcc: Update the newly added files.
5901         * doc/invoke.texi: Update the newly added command line options for
5902         V850 target.
5903
5904 2010-07-26  Richard Guenther  <rguenther@suse.de>
5905
5906         PR tree-optimization/45052
5907         * ipa-pure-const.c (check_stmt): Check volatileness.
5908
5909 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5910
5911         PR target/44707
5912         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
5913         * config/sparc/sparc.c: Include reload.h.
5914         (legitimize_tls_address): Rename into...
5915         (sparc_legitimize_tls_address): ...this.
5916         (legitimize_pic_address): Rename into...
5917         (sparc_legitimize_pic_address): ...this.
5918         (sparc_expand_move): Adjust to above renaming.
5919         (sparc_tls_referenced_p): Likewise.
5920         (sparc_legitimize_tls_address): Likewise.
5921         (sparc_legitimize_pic_address): Likewise.
5922         (sparc_legitimize_address): Likewise.
5923         (sparc_output_mi_thunk): Likewise.
5924         (sparc_legitimize_reload_address): New global function.  Recognize
5925         (lo_sum (high ...) ...) patterns generated by earlier passes.
5926         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
5927
5928 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
5929
5930         PR target/44484
5931         * config/sparc/predicates.md (memory_reg_operand): Delete.
5932         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
5933         (*sync_compare_and_swap): Encode the address form in the pattern.
5934         (*sync_compare_and_swapdi_v8plus): Likewise.
5935
5936 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
5937
5938         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
5939         Streamline paragraph on compatibility with the system compiler.
5940
5941 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
5942
5943         PR middle-end/45035
5944         * alias.c (true_dependence_1): Fix thinko in merge of old
5945         true_dependence and canon_true_dependence.
5946
5947 2010-07-23  Jan Hubicka  <jh@suse.cz>
5948
5949         * lto-streamer-out.c (write_symbol): Fix visibilities of external
5950         references.
5951
5952 2010-07-23  Le-Chun Wu  <lcwu@google.com>
5953
5954         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
5955         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
5956         and an unnecessary assignment.
5957         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
5958         self-assign warning.
5959         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
5960         unnecessary self-init.
5961
5962 2010-07-23  Richard Guenther  <rguenther@suse.de>
5963
5964         PR lto/43071
5965         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
5966         for -flto and -fwhopr.
5967
5968 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
5969
5970         PR target/41943
5971         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
5972         (stmp-int-hdrs): Prefix/postfix headers by include_next.
5973         * config.gcc (user_headers_inc_next_pre): New.
5974         (user_headers_inc_next_post): Likewise.
5975         (*-w64-mingw*): Use for float.h post-fixing, and for
5976         stddef.h/stdarg.h pre-fixing by include_next.
5977         * configure.ac (user_headers_inc_next_post): New.
5978         (user_headers_inc_next_pre): New.
5979         * configure: Regenerated.
5980
5981 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5982
5983         * configure.ac: Don't disable TLS on Solaris 8/9 by default
5984         Set tga_func for Solaris 2/x86 resp. SPARC.
5985         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
5986         (LIB_THREAD_LDFLAGS_SPEC): Define.
5987         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
5988         * configure: Regenerate.
5989         * config.in: Regenerate.
5990         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
5991         -pthread, -threads, LIB_TLS_SPEC with -pthread.
5992         * doc/install.texi (Specific, *-*-solaris2*): Document use of
5993         alternate thread libraries on Solaris 8.
5994         Document TLS patch requirements.
5995         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
5996         Document tls.
5997
5998         PR target/18788
5999         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
6000         -shared.
6001
6002 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
6003
6004         * tree.h (struct tree_base): Add nameless_flag bitfield.
6005         (TYPE_NAMELESS, DECL_NAMELESS): Define.
6006         * omp-low.c (create_omp_child_function, scan_omp_parallel,
6007         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
6008         DECL_ARTIFICIAL where needed.
6009         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
6010         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
6011         has DECL_NAMELESS set.
6012
6013 2010-07-23  Martin Jambor  <mjambor@suse.cz>
6014
6015         PR tree-optimization/44915
6016         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
6017         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
6018         (analyze_function): Likewise.
6019
6020 2010-07-23  Martin Jambor  <mjambor@suse.cz>
6021
6022         PR tree-optimization/44914
6023         * tree-sra.c (sra_modify_function_body): Return true if CFG was
6024         changed, add purging dead eh edges.
6025         (ipa_sra_modify_function_body): Return true if CFG was changed,
6026         simplify purging dead eh edges.
6027         (modify_function): Return true if CFG was changed.
6028         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
6029         was changed.
6030         (ipa_early_sra): Likewise.
6031
6032 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6033
6034         PR target/44290
6035         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
6036         if "naked".
6037         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
6038         false if ! tree_versionable_function_p.
6039
6040 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
6041
6042         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
6043         * ipa-pure-const.c (special_builtlin_state): Remove
6044         BUILT_IN_ARGS_INFO case.
6045         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
6046         * builtins.c (expand_builtin): Likewise.
6047         (expand_builtin_args_info): Remove.
6048         * doc/tm.texi (__builtin_args_info): Remove.
6049         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
6050         * doc/tm.text.in: Likewise.
6051
6052 2010-07-23  Richard Guenther  <rguenther@suse.de>
6053
6054         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
6055         (lto_symtab_merge_decls_2): Likewise.
6056         * tree-ssa.c (useless_type_conversion_p): Likewise.
6057         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6058         * gimple.c (gtc_visited2, gtc_ob2): Remove.
6059         (struct type_pair_d): Make same_p an array indexed by mode.
6060         Update comment.
6061         (lookup_type_pair): Update initialization.
6062         (struct sccs): Adjust same_p type.
6063         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
6064         Adjust.
6065         (print_gimple_types_stats): Likewise.
6066         * gimple.h (enum gtc_mode): New.
6067         (gimple_types_compatible_p): Adjust prototype.
6068
6069 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
6070
6071         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
6072         again after processing insn.
6073
6074 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6075
6076         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
6077         proper words when !tree_versionable_function_p.
6078
6079 2010-07-23  Richard Guenther  <rguenther@suse.de>
6080
6081         PR tree-optimization/45037
6082         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
6083
6084 2010-07-23  Jie Zhang  <jie@codesourcery.com>
6085
6086         * doc/extend.texi: Remove IP2K from the description of naked attribute.
6087         Add MCORE instead.
6088
6089 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6090
6091         PR lto/44992
6092         * lto-opts.c (lto_write_options): Add NULL file_data argument to
6093         lto_get_section_name.
6094         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
6095         * lto-streamer-out.c (produce_asm): Likewise.
6096         (copy_function): Likewise.
6097         (produce_symtab): Likewise.
6098         (produce_asm_for_decls): Likewise.
6099         * lto-streamer.c (lto_get_section_name): Add file_data argument.
6100         Rewrite to add random postfix to LTO sections.
6101         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
6102         (lto_get_section_name): Add file_data argument to prototype.
6103
6104 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6105
6106         * lto-section-in.c (lto_section_name): Synchronize names
6107         with lto_get_section_name.
6108
6109 2010-07-10  Andi Kleen  <ak@linux.intel.com>
6110
6111         * lto-opts.c (lto_read_file_options): Check for missing section.
6112
6113 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6114
6115         * ira.c (check_allocation): Correctly handle the case where an allocno
6116         with two objects was allocated to a single reg.
6117
6118 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
6119
6120         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
6121         (is_widening_mult_p): Likewise.
6122         (convert_to_widen): Use them.
6123         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
6124         well as integer ones.
6125
6126 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
6127
6128         * alias.c (true_dependence_1): New function, merged version of
6129         true_dependence and canon_true_dependence.
6130         (true_dependence): Simplify.
6131         (canon_true_dependence): Simplify.
6132
6133 2010-07-22  Richard Henderson  <rth@redhat.com>
6134
6135         PR target/45027
6136         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
6137         of V4SFmode for the SSE saves; increase stack alignment if needed.
6138         (ix86_gimplify_va_arg): Don't increase stack alignment here.
6139
6140 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
6141
6142         PR bootstrap/45028
6143         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
6144         call cprop_find_used_regs again via note_uses.
6145
6146 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
6147
6148         * alias.c (get_alias_set): Fix formatting issues.
6149
6150 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
6151
6152         PR middle-end/44878
6153         * stmt.c (expand_value_return):  Call promote_function_mode with
6154         a for_return argument of 2 when returning by reference.
6155
6156 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
6157
6158         PR debug/45024
6159         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
6160         unit DIE if we can find the scope DIE.
6161
6162 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6163
6164         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
6165         changed.  Initialize OBJECT_SUBWORD.
6166         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
6167         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
6168         all callers changed.
6169         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
6170         (finish_allocno): Likewise.
6171         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
6172         (remove_low_level_allocnos): Likewise.
6173         (update_bad_spill_attribute): Likewise.
6174         (setup_min_max_allocno_live_range_point): Likewise.
6175         (sort_conflict_id_map): Likewise.
6176         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
6177         (ior_hard_reg_conflicts): New function.
6178         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
6179         (compress_conflict_vecs): Iterate over objects, not allocnos.
6180         (ira_add_live_range_to_object): New function.
6181         (object_range_compare_func): Renamed from allocno_range_compare_func.
6182         All callers changed.
6183         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
6184         subobjects, widen the min/max range of the lowest-order object to
6185         potentially include all other such low-order objects.
6186         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
6187         (check_allocation): Likewise.  Use more fine-grained tests for register
6188         conflicts.
6189         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
6190         allocno subobjects.
6191         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
6192         choices about which bits to set in each set.  Don't use
6193         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
6194         using the multiple sets we computed.
6195         (push_allocno_to_stack): Iterate over allocno subobjects.
6196         (all_conflicting_hard_regs_coalesced): New static function.
6197         (setup_allocno_available_regs_num): Use it.
6198         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
6199         subobjects.
6200         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
6201         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6202         by ALLOCNO_NUM_OBJECTS.
6203         (calculate_spill_cost): Likewise.
6204         (color_pass): Express if statement in a more normal way.
6205         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
6206         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
6207         (setup_slot_coalesced_allocno_live_ranges): Likewise.
6208         (allocno_reload_assign): Likewise.
6209         (ira_reassign_pseudos): Likewise.
6210         (fast_allocation): Likewise.
6211         * ira-conflicts.c (build_conflict_bit_table): Likewise.
6212         (print_allocno_conflicts): Likewise.
6213         (ira_build_conflicts): Likewise.
6214         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
6215         callers changed.  Test subword 0 of each allocno for conflicts.
6216         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
6217         callers changed.  Iterate over allocno subobjects.
6218         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
6219         * ira-int.h (struct ira_allocno): New member: num_objects.
6220         Rename object to objects and change it into an array.
6221         (ALLOCNO_OBJECT): Add new argument N.
6222         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
6223         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
6224         (ior_hard_reg_conflicts): Declare.
6225         (ira_add_live_range_to_object): Declare.
6226         (ira_allocno_object_iterator): New.
6227         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
6228         (FOR_EACH_ALLOCNO_OBJECT): New macro.
6229         * ira-lives.c (objects_live): Renamed from allocnos_live; all
6230         uses changed.
6231         (allocnos_processed): New sparseset.
6232         (make_object_born): Renamed from make_allocno_born; take an
6233         ira_object_t argument.  All callers changed.
6234         (make_object_dead): Renamed from make_allocno_dead; take an
6235         ira_object_t argument.  All callers changed.
6236         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
6237         All callers changed.
6238         (mark_pseudo_regno_live): Iterate over allocno subobjects.
6239         (mark_pseudo_regno_dead): Likewise.
6240         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
6241         functions.
6242         (mark_ref_live): Detect subword accesses and call
6243         mark_pseudo_regno_subword_live as appropriate.
6244         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
6245         (process_bb_nodes_live): Deal with object-related updates first; set
6246         and test bits in allocnos_processed to avoid computing allocno
6247         statistics more than once.
6248         (create_start_finish_chains): Iterate over objects, not allocnos.
6249         (print_object_live_ranges): New function.
6250         (print_allocno_live_ranges): Use it.
6251         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
6252         and objects_live.
6253
6254 2010-07-22  Richard Guenther  <rguenther@suse.de>
6255
6256         PR lto/42451
6257         * gimple.c (gtc_next_dfs_num): New global.
6258         (struct sccs): Make value a union, add integer same_p member.
6259         (gtc_visit): New function.
6260         (gimple_types_compatible_p_1): New function, split out from ...
6261         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
6262         (iterative_hash_gimple_type): Adjust for sccs change.
6263
6264 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6265
6266         PR tree-optimization/44891
6267         * tree-sra.c: Include gimple-pretty-print.h.
6268         (replace_uses_with_default_def_ssa_name): Renamed to
6269         get_repl_default_def_ssa_name, return the new SSA name instead of
6270         replacing the old one.
6271         (sra_modify_assign): Dump a message when removing a load, if the LHS
6272         is an SSA_NAME, do not do any propagation, just set the RHS to a
6273         default definition SSA NAME, type convert if necessary.
6274         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
6275
6276 2010-07-22  Richard Guenther  <rguenther@suse.de>
6277
6278         PR tree-optimization/45017
6279         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
6280         TYPE_PRECISION of integral types in addition to size.
6281
6282 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
6283
6284         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
6285         when no C library is specified.
6286
6287 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6288
6289         * ipa-prop.h (struct ipa_node_params): Updated comment.
6290         (struct ipa_edge_args): Likewise.
6291         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
6292
6293 2010-07-22  Martin Jambor  <mjambor@suse.cz>
6294
6295         * cgraphunit.c (verify_edge_count_and_frequency): New function.
6296         (verify_cgraph_node): Verify frequencies of indirect edges.
6297         * tree-inline.c (tree_function_versioning): Update frequencies of
6298         indirect edges.
6299
6300 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6301
6302         PR target/43698
6303         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
6304         Set *arm_rev to be predicable.
6305
6306 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
6307
6308         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
6309         (LINK_COMMAND_SPEC_A): New.
6310         (DSYMUTIL): New.
6311         (DSYMUTIL_SPEC): New.
6312         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
6313         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
6314
6315 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
6316
6317         * calls.c (load_register_parameters): Move check for zero
6318         sized items so that only the call to
6319         mem_overlaps_already_clobbered_arg_p () is protected.
6320
6321 2010-07-22  Jan Hubicka  <jh@suse.cz>
6322
6323         * ipa-pure-const.c (varying_state): Break out from ...
6324         (get_function_state): ... here; always return varying_state
6325         when state would be NULL otherwise.
6326         (remove_node_data): Do not free varying state.
6327
6328 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
6329
6330         PR bootstrap/44970
6331         PR middle-end/45009
6332         * postreload.c: Include "target.h".
6333         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
6334         into account.
6335         (fixup_debug_insns): Don't copy the rtx.
6336         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
6337         Don't copy when replacing.  Call fixup_debug_insns in the case where
6338         we merged one add with another.
6339         (reload_combine_recognize_pattern): Fail if there aren't any uses.
6340         Try harder to determine whether we're picking a valid index register.
6341         Don't set store_ruid for an insn we're going to scan in the
6342         next iteration.
6343         (reload_combine): Remove unused code.
6344         (reload_combine_note_use): When updating use information for
6345         an old insn, ignore a use that occurs after store_ruid.
6346         * Makefile.in (postreload.o): Update dependencies.
6347
6348         * function.c (record_hard_reg_sets): Restrict the previous change
6349         to cases where the incoming nominal mode is the same as the
6350         incoming promoted mode and everything happens in MODE_INT.
6351
6352 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6353
6354         PR debug/45015
6355         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
6356         ASM_OPERANDS_OUTPUT_IDX.
6357         (adjust_insn): For inline asm with multiple sets ensure first
6358         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
6359         the insn.
6360
6361 2010-07-21  Richard Henderson  <rth@redhat.com>
6362
6363         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
6364         comparison for avoiding xmm register saves.  Emit the xmm register
6365         saves explicitly.
6366         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
6367         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
6368         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
6369         Remove patterns and the associated splitters.
6370
6371 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
6372
6373         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
6374         and imagine parts of a complex, so that they can have the same
6375         base and fall into the same group.
6376
6377 2010-07-21  Richard Guenther  <rguenther@suse.de>
6378
6379         PR lto/45018
6380         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
6381         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
6382         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
6383
6384 2010-07-21  Martin Jambor  <mjambor@suse.cz>
6385
6386         PR tree-optimization/44900
6387         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
6388         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
6389
6390 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
6391
6392         PR middle-end/44738
6393         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
6394
6395 2010-07-21  Richard Guenther  <rguenther@suse.de>
6396
6397         PR middle-end/45013
6398         * tree-ssa.c (useless_type_conversion_p): Dispatch to
6399         gimple_types_compatible_p only when in lto.
6400         * gimple.c (gimple_types_compatible_p): Use canonical types
6401         to speed up comparison.
6402
6403 2010-07-21  Richard Guenther  <rguenther@suse.de>
6404
6405         * tree-flow.h (referenced_var): Move define ...
6406         * tree-flow-inline.h (referenced_var): ... here as an inline
6407         function.  Assert here ...
6408         * tree-dfa.c (referenced_var_lookup): ... instead of here.
6409         * tree-ssa.c (maybe_optimize_var): Check if the variable
6410         is in referenced vars.
6411         (execute_update_addresses_taken): Remove old broken check.
6412         * gimple-pretty-print.c (pp_points_to_solution): Use
6413         referenced_var_lookup.
6414         * tree-into-ssa.c (dump_decl_set): Likewise.
6415
6416 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
6417
6418         PR debug/45003
6419         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
6420         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
6421         ZERO_EXTEND here.
6422
6423 2010-07-20  Richard Henderson  <rth@redhat.com>
6424
6425         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
6426
6427 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6428
6429         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
6430         computing the sum of the stack pointer and a large constant.
6431         * config/arm/constraints.md (M): Remove superfluous parentheses.
6432         (Pc): New constraint.
6433
6434 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6435
6436         PR debug/45006
6437         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
6438         operand's type if exp is tcc_unary class tree.
6439
6440 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6441
6442         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
6443         Reverse sense of if_then_else condition.
6444
6445 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
6446
6447         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
6448         * config/rs6000/rs6000.c (rs6000_override_options): Set
6449         rs6000_block_move_inline_limit appropriately.
6450         (expand_block_move): Use rs6000_block_move_inline_limit.
6451         * doc/invoke.texi (mblock-move-inline-limit): Document.
6452
6453 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
6454
6455         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
6456         FROM and TO.  All callers changed.  Don't look for tracked uses,
6457         just scan the RTL for DEBUG_INSNs and substitute.
6458         (reload_combine_recognize_pattern): Call fixup_debug_insns.
6459         (reload_combine): Ignore DEBUG_INSNs.
6460
6461 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
6462
6463         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
6464         depth to 8 from 5.
6465
6466         PR debug/45003
6467         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
6468         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
6469         instead of the result's type.
6470
6471 2010-07-20  Richard Guenther  <rguenther@suse.de>
6472
6473         PR tree-optimization/44977
6474         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
6475         SSA form.
6476
6477 2010-07-20  Richard Guenther  <rguenther@suse.de>
6478
6479         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
6480         (lto_symtab_merge_decls_2): Likewise.
6481         * gimple.h (gimple_types_compatible_p): Declare.
6482         * gimple.c (gimple_queue_type_fixup): Remove.
6483         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
6484         (gimple_compatible_complete_and_incomplete_type_p): New function.
6485         (gimple_types_compatible_p): Adjust.
6486         (gimple_register_type): Remove type fixup code.
6487         (print_gimple_types_stats): Adjust.
6488         (free_gimple_type_tables): Likewise.
6489         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
6490         * tree-ssa.c (useless_type_conversion_p): Likewise.
6491
6492 2010-07-20  Richard Guenther  <rguenther@suse.de>
6493
6494         PR middle-end/44971
6495         PR middle-end/44988
6496         * tree-ssa.c (maybe_optimize_var): New function split out from ...
6497         (execute_update_addresses_taken): ... here.
6498         (non_rewritable_mem_ref_base): Likewise.
6499         (execute_update_addresses_taken): Do not iterate over all referenced
6500         vars but just all local decls and parms.
6501         Properly check call and asm arguments and rewrite call arguments.
6502
6503 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
6504
6505         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
6506         to top level.
6507         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
6508         definitions ...
6509         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
6510         New macro.
6511         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
6512
6513 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
6514
6515         * gengtype.c (start_root_entry): New function, split out from
6516         write_root.  Check whether V is null and raise an error if so.
6517         (write_field_root): Check for V being null.  Don't raise an error here;
6518         set V to null instead.
6519         (write_root): Update comment above function.  Use start_root_entry.
6520
6521 2010-07-19  Xinliang David Li  <davidxl@google.com>
6522
6523         PR testsuite/44932
6524         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
6525         def edges.
6526         (find_uninit_use): Add dump.
6527         (is_use_properly_guarded): Ditto.
6528         (warn_uninitialized_phi): Ditto.
6529         (execute_late_warn_uninitialized): Ditto.
6530
6531 2010-07-19  Richard Guenther  <rguenther@suse.de>
6532
6533         PR middle-end/44941
6534         * expr.c (emit_block_move_hints): Move zero size check first.
6535         Move asserts to more useful places.
6536         * calls.c (load_register_parameters): Check for zero size.
6537
6538 2010-07-19  Richard Henderson  <rth@redhat.com>
6539
6540         * tree-optimize.c (execute_all_early_local_passes): New.  Change
6541         cgraph_state here ...
6542         (execute_early_local_optimizations): ... not here.  Remove.
6543         (pass_early_local_passes, pass_all_early_optimizations): Update.
6544
6545 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
6546
6547         * postreload.c (reload_combine_closest_single_use): Ignore the
6548         number of uses for DEBUG_INSNs.
6549         (fixup_debug_insns): New static function.
6550         (reload_combine_recognize_const_pattern): Use it.  Don't let the
6551         main loop be affected by DEBUG_INSNs.
6552         Really disallow moving adds past a jump insn.
6553         (reload_combine_recognize_pattern): Don't update use_ruid here.
6554         (reload_combine_note_use): Do it here.
6555         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
6556
6557 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
6558
6559         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
6560         of a loop.
6561         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
6562
6563 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
6564
6565         * config/i386/darwin.h: Define darwin_emit_branch_islands.
6566         (TARGET_MACHO_BRANCH_ISLANDS): New.
6567         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
6568         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
6569         default value.
6570         * config/i386/i386.c (output_pic_addr_const): Do not emit
6571         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
6572         (x86_output_mi_thunk): Adjust symbol creation.
6573         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
6574         Remove out of date comment.
6575         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
6576         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6577         (DARWIN_GENERATE_ISLANDS): Ditto.
6578         (output_call):  Do not emit branch islands unless
6579         darwin_emit_branch_islands is set.
6580         * config/darwin.c: Declare darwin_emit_branch_islands.
6581         (machopic_indirect_data_reference): Do not emit unless
6582         darwin_emit_branch_islands is set.
6583         (darwin_override_options): Set darwin_emit_branch_islands
6584         where it is needed.
6585         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
6586
6587 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6588
6589         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6590         sse_runtime, sse2_runtime.
6591
6592 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
6593
6594         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
6595         low half of a single-register SCmode return value before ORing
6596         it with the high half.
6597         * config/mips/mips16.S (MERGE_GPRf): Likewise.
6598
6599 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6600
6601         PR target/44805
6602         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
6603         on all targets.
6604
6605 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
6606
6607         PR target/42235
6608         * postreload.c (reload_cse_move2add): Return bool, true if anything.
6609         changed.  All callers changed.
6610         (move2add_use_add2_insn): Likewise.
6611         (move2add_use_add3_insn): Likewise.
6612         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
6613         reload_combine.
6614         (RELOAD_COMBINE_MAX_USES): Bump to 16.
6615         (last_jump_ruid): New static variable.
6616         (struct reg_use): New members CONTAINING_MEM and RUID.
6617         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
6618         (reload_combine_split_one_ruid, reload_combine_split_ruids,
6619         reload_combine_purge_insn_uses, reload_combine_closest_single_use
6620         reload_combine_purge_reg_uses_after_ruid,
6621         reload_combine_recognize_const_pattern): New static functions.
6622         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
6623         is true for our reg and that we have available index regs.
6624         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
6625         callers changed.  Use them to initialize fields in struct reg_use.
6626         (reload_combine): Initialize last_jump_ruid.  Be careful when to
6627         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
6628         Call reload_combine_recognize_const_pattern.
6629         (reload_combine_note_store): Update REAL_STORE_RUID field.
6630
6631 2010-07-16  Jason Merrill  <jason@redhat.com>
6632
6633         * Makefile.in (opts-common.o): Depend on options.h.
6634
6635 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
6636
6637         * tree.c (build_common_builtin_nodes): Use build_function_type_list
6638         instead of build_function_type.
6639         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
6640         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
6641
6642 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
6643
6644         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
6645         do all the work.
6646         (rs6000_emit_int_cmove): Use function pointers for insn generation.
6647         Don't force values into registers unnecessarily.
6648         (output_isel): Assert that we're not given conditions we can't handle.
6649         Delete corresponding code.
6650         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
6651         scc_comparison_operator constraint.  Permit 0 for the consequent
6652         operand.  Permit any GPR for the alternative operand.
6653         (isel_unsigned_<mode>): Likewise.
6654
6655 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
6656
6657         PR target/44942
6658         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
6659         argument to const_tree.
6660         * config/i386/i386.c (function_arg_advance): If padding needs to be
6661         inserted before argument, increment cum->words by number of padding
6662         words as well.
6663         (contains_aligned_value_p): Change argument to const_tree.
6664         (ix86_function_arg_boundary): Change second argument to const_tree.
6665
6666 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
6667
6668         PR target/42235
6669         * function.c (record_hard_reg_sets): New static function.
6670         (assign_parm_setup_reg): If an optab for extending exists and the
6671         generated code clobbbers no hard regs, emit the insn directly and
6672         create a REG_EQUIV note.
6673
6674 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6675
6676         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
6677         TREE_CHAIN.
6678         * c-typeck.c (push_init_level): Likewise.
6679         (process_init_element): Likewise.
6680
6681 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
6682
6683         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
6684         (integer_three_node): Add.
6685         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
6686         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
6687         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
6688         of call build_int_cst.
6689         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
6690         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
6691         (find_interesting_uses_address): Ditto.
6692         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
6693         * tree-eh.c (lower_eh_constructs_2): Ditto.
6694         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
6695         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
6696         * expmed.c (expand_divmod): Ditto.
6697         * tree-mudflap.c (mx_register_decls): Ditto.
6698         * varasm.c (array_size_for_constructor): Ditto.
6699         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
6700         * c-parser.c (c_parser_postfix_expression): Ditto.
6701
6702 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
6703
6704         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
6705         New static variables.
6706         (reload_combine_recognize_pattern): New static function, broken out
6707         of reload_combine.
6708         (reload_combine): Use it.  Only initialize first_index_reg and
6709         last_index_reg once.
6710
6711 2010-07-15  Richard Henderson  <rth@redhat.com>
6712
6713         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
6714         when done.
6715
6716 2010-07-15  Jan Hubicka  <jh@suse.cz>
6717
6718         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
6719         comdats for broken gold.
6720         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
6721
6722 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6723
6724         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
6725
6726 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
6727
6728         * tree.h (DECL_CHAIN): Define.
6729         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
6730         * c-decl.c: Likewise.
6731         * c-parser.c: Likewise.
6732         * c-typeck.c: Likewise.
6733         * cfgexpand.c: Likewise.
6734         * cgraph.c: Likewise.
6735         * cgraphunit.c: Likewise.
6736         * combine.c: Likewise.
6737         * config/alpha/alpha.c: Likewise.
6738         * config/arm/arm.c: Likewise.
6739         * config/frv/frv.c: Likewise.
6740         * config/i386/i386.c: Likewise.
6741         * config/i386/winnt-cxx.c: Likewise.
6742         * config/ia64/ia64.c: Likewise.
6743         * config/iq2000/iq2000.c: Likewise.
6744         * config/mep/mep.c: Likewise.
6745         * config/mips/mips.c: Likewise.
6746         * config/pa/som.h: Likewise.
6747         * config/rs6000/rs6000.c: Likewise.
6748         * config/s390/s390.c: Likewise.
6749         * config/sh/sh.c: Likewise.
6750         * config/sh/symbian-cxx.c: Likewise.
6751         * config/sparc/sparc.c: Likewise.
6752         * config/spu/spu.c: Likewise.
6753         * config/stormy16/stormy16.c: Likewise.
6754         * config/vxworks.c: Likewise.
6755         * config/xtensa/xtensa.c: Likewise.
6756         * coverage.c: Likewise.
6757         * dbxout.c: Likewise.
6758         * dwarf2out.c: Likewise.
6759         * emit-rtl.c: Likewise.
6760         * expr.c: Likewise.
6761         * function.c: Likewise.
6762         * gimple-low.c: Likewise.
6763         * gimple-pretty-print.c: Likewise.
6764         * gimplify.c: Likewise.
6765         * integrate.c: Likewise.
6766         * ipa-inline.c: Likewise.
6767         * ipa-prop.c: Likewise.
6768         * ipa-split.c: Likewise.
6769         * ipa-struct-reorg.c: Likewise.
6770         * ipa-type-escape.c: Likewise.
6771         * langhooks.c: Likewise.
6772         * lto-cgraph.c: Likewise.
6773         * omp-low.c: Likewise.
6774         * stor-layout.c: Likewise.
6775         * tree-cfg.c: Likewise.
6776         * tree-complex.c: Likewise.
6777         * tree-dfa.c: Likewise.
6778         * tree-dump.c: Likewise.
6779         * tree-inline.c: Likewise.
6780         * tree-mudflap.c: Likewise.
6781         * tree-nested.c: Likewise.
6782         * tree-object-size.c: Likewise.
6783         * tree-pretty-print.c: Likewise.
6784         * tree-sra.c: Likewise.
6785         * tree-ssa-live.c: Likewise.
6786         * tree-ssa-loop-niter.c: Likewise.
6787         * tree-ssa-math-opts.c: Likewise.
6788         * tree-ssa-reassoc.c: Likewise.
6789         * tree-ssa-sccvn.c: Likewise.
6790         * tree-ssa-structalias.c: Likewise.
6791         * tree-tailcall.c: Likewise.
6792         * tree-vrp.c: Likewise.
6793         * tree.c: Likewise.
6794         * var-tracking.c: Likewise.
6795         * varasm.c: Likewise.
6796
6797 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6798
6799         PR target/44877
6800         * config/spu/spu.c (spu_expand_builtin_1): Allow references
6801         (as well as pointers) as argument to mask_for_load builtins.
6802
6803 2010-07-15  Richard Guenther  <rguenther@suse.de>
6804
6805         PR tree-optimization/44946
6806         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
6807         with accessing only padding properly.
6808
6809 2010-07-15  Jan Hubicka  <jh@suse.cz>
6810
6811         * ipa.c (function_and_variable_visibility): Variables marked as used
6812         should not be localized.
6813
6814 2010-07-15  Jan Hubicka  <jh@suse.cz>
6815
6816         * cgraph.c: Include lto-streamer.h
6817         (change_decl_assembler_name): Work when assembler name hash is at place.
6818         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
6819         be sure to rename it to avoid name clash.
6820         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
6821         Localize hidden symbols only when locally defined.
6822
6823 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
6824
6825         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
6826
6827 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
6828             Kevin F. Quinn  <kevquinn@gentoo.org>
6829
6830         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
6831         * common.opt: Add -Wtrampolines.
6832         * doc/invoke.texi: Add -Wtrampolines.
6833
6834 2010-07-15  Jie Zhang  <jie@codesourcery.com>
6835
6836         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
6837         cortex_a8_issue_ls.
6838
6839 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
6840
6841         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
6842         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
6843
6844 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6845
6846         * config/spu/spu.c (reg_names): Remove prototype.
6847         (call_used_regs): Likewise.
6848
6849 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
6850
6851         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
6852         "unused" with attribute "used".
6853         (__JCR_END__): Likewise.
6854         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
6855         "used" attribute.
6856         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
6857
6858 2010-07-14  Richard Guenther  <rguenther@suse.de>
6859
6860         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
6861         (maybe_fixup_decls): Likewise.
6862         (input_gimple_stmt): Do not fixup anything.
6863         * lto-streamer-out.c (output_gimple_stmt): Make sure all
6864         non-automatic variable uses are wrapped inside a MEM_REF.
6865
6866 2010-07-14  Richard Henderson  <rth@redhat.com>
6867
6868         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
6869         for functions.
6870         * varasm.c (assemble_variable): Remove early exit for functions;
6871         assert that we're given a variable.
6872
6873 2010-07-14  Jie Zhang  <jie@codesourcery.com>
6874
6875         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
6876         cortex_a8_default when neon_type is not none.
6877
6878 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6879
6880         * lower-subreg.c (subreg_context): New static bitmap.
6881         (decompose_multiword_subregs): Allocate and free it.
6882         (find_decomposable_subregs): Set a bit in it for a register that
6883         occurs in a subreg that changes mode but not size.
6884         (can_decompose_p): Test it instead of non_decomposable_context.
6885
6886 2010-07-14  Richard Guenther  <rguenther@suse.de>
6887
6888         PR tree-optimization/44824
6889         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
6890         is_gimple_mem_ref_addr.
6891         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
6892         non-decl_address_invariant_p addresses.
6893
6894 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6895
6896         * reload.c (find_reloads): Revert code to penalize small register
6897         classes that was brought in with the IRA merge.
6898
6899 2010-07-14  Richard Guenther  <rguenther@suse.de>
6900
6901         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
6902         as base of ARRAY_REFs.
6903
6904 2010-07-14  Richard Guenther  <rguenther@suse.de>
6905
6906         PR middle-end/44930
6907         * tree-pretty-print.c (do_niy): Do not print a newline.
6908
6909 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
6910
6911         * ira-int.h (struct ira_object): New.
6912         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
6913         (struct ira_allocno): Remove members min, max,
6914         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
6915         conflict_allocnos_num and conflict_vec_p.  Add new member object.
6916         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
6917         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
6918         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
6919         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
6920         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
6921         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
6922         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
6923         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
6924         an ira_object_t rather than ira_allocno_t.  All uses changed.
6925         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6926         contains a vector of ira_object_t; all uses changed.
6927         (ira_objects_num): Declare variable.
6928         (ira_create_allocno_object): Declare function.
6929         (ira_conflict_vector_profitable_p): Adjust prototype.
6930         (ira_allocate_conflict_vec): Renamed from
6931         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
6932         (ira_allocate_object_conflicts): Renamed from
6933         ira_allocate_allocno_conflicts; first arg now ira_object_t.
6934         (struct ira_object_iterator): New.
6935         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
6936         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
6937         to conflict_vec_p.  All uses changed.
6938         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
6939         Changed to take into account that conflicts are now tracked for
6940         objects.
6941         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
6942         Args changed to accept ira_object_t.  All uses changed.
6943         (allocnos_conflict_p): New static function.
6944         (collected_conflict_objects): Renamed from collected_allocno_objects;
6945         now a vector of ira_object_t.  All uses changed.
6946         (build_conflict_bit_table): Changed to take into account that
6947         conflicts are now tracked for objects.
6948         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
6949         (print_allocno_conflicts, ira_build_conflicts): Likewise.
6950         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
6951         setup_allocno_left_conflicts_size, allocno_reload_assign,
6952         fast_allocation): Likewise.
6953         * ira-lives.c (make_hard_regno_born, make_allocno_born)
6954         process_single_reg_class_operands, process_bb_node_lives): Likewise.
6955         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
6956         Likewise.
6957         * ira-build.c (ira_objects_num): New variable.
6958         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
6959         contains a vector of ira_object_t; all uses changed.
6960         (ira_object_id_map_vec): Corresponding change.
6961         (object_pool): New static variable.
6962         (initiate_allocnos): Initialize it.
6963         (finish_allocnos): Free it.
6964         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
6965         New functions.
6966         (ira_create_allocno): Don't set members that were removed.
6967         (ira_set_allocno_cover_class): Don't change conflict hard regs.
6968         (merge_hard_reg_conflicts): Changed to take into account that
6969         conflicts are now tracked for objects.
6970         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
6971         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
6972         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
6973         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
6974         setup_min_max_conflict_allocno_ids, ):  Likewise.
6975         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
6976         to ira_object_t; all callers changed.
6977         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
6978         to ira_object_t, all callers changed.
6979         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
6980         to ira_object_t, all callers changed.
6981         (conflict_check, curr_conflict_check_tick): Renamed from
6982         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
6983         changed.
6984         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
6985         arg changed to ira_object_t, all callers changed.
6986         (create_cap_allocno): Call ira_create_allocno_object.
6987         (finish_allocno): Free the corresponding object.
6988         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
6989         callers changed.  Adjusted for dealing with objects.
6990         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
6991         dealing with objects.
6992         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
6993
6994         * ira-int.h (struct live_range): Rename allocno member to object
6995         and change type to ira_object_t.
6996         (struct ira_object): New member live_ranges.
6997         (struct ira_allocno): Remove member live_ranges.
6998         (ALLOCNO_LIVE_RANGES): Remove.
6999         (OBJECT_LIVE_RANGES): New macro.
7000         (ira_create_live_range, ira_copy_live_range_list,
7001         ira_merge_live_range_list, ira_live_ranges_intersect_p,
7002         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
7003         * ira-build.c (ira_create_object): Initialize live ranges here.
7004         (ira_create_allocno): Not here.
7005         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
7006         changed to ira_object_t, all callers changed.
7007         (copy_live_range): Rename from copy_allocno_live_range, all callers
7008         changed.
7009         (ira_copy_live_range_list): Rename from
7010         ira_copy_allocno_live_range_list, all callers changed.
7011         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
7012         all callers changed.
7013         (ira_live_ranges_intersect_p): Rename from
7014         ira_allocno_live_ranges_intersect_p, all callers changed.
7015         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
7016         callers changed.
7017         (ira_finish_live_range_list): Rename from
7018         ira_finish_allocno_live_range_list, all callers changed.
7019         (change_object_in_range_list): Rename from change_allocno_in_range_list,
7020         last arg changed to ira_object_t, all callers changed.
7021         (finish_allocno): Changed to expect live ranges in the allocno's object.
7022         (move_allocno_live_ranges, copy_allocno_live_ranges,
7023         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
7024         ira_flattening, ira_build): Likewise.
7025         * ira-color.c (allocnos_have_intersected_live_ranges_p,
7026         slot_coalesced_allocno_live_ranges_intersect,
7027         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
7028         * ira-conflicts.c (build_conflict_bit_table): Likewise.
7029         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
7030         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
7031         make_allocno_dead, create_start_finish_chains,
7032         remove_some_program_points_and_update_live_ranges,
7033         ira_debug_live_range_list): Likewise.
7034
7035         * ira-int.h (ira_object_conflict_iterator): Rename from
7036         ira_allocno_conflict_iterator.
7037         (ira_object_conflict_iter_init): Rename from
7038         ira_allocno_conflict_iter_init, second arg changed to
7039         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
7040         FOR_EACH_ALLOCNO_CONFLICT.
7041         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
7042         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
7043         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
7044         * ira-conflicts.c (print_allocno_conflicts): Likewise.
7045
7046 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
7047
7048         PR other/44874
7049         * tree-dump.c (dump_options): Add enumerate_locals entry.
7050         Add TDF_NOID exclusion to all entry.
7051         * tree-dump.h (dump_enumerated_decls): Declare.
7052         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
7053         Don't display type uid.
7054         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
7055         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
7056         * tree-ssa-live.c: Include gimple.h.
7057         (numbered_tree_d): New struct.
7058         (numbered_tree): New typedef.
7059         (DEF_VEC_O (numbered_tree): New.
7060         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
7061         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
7062         (dump_enumerated_decls): Likewise.
7063         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
7064         debug info and flag_dump_final_insns, call dump_enumerated_decls.
7065         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
7066         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
7067
7068 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
7069
7070         * expmed.h (MAX_BITS_PER_WORD): Move to...
7071         * defaults.h (MAX_BITS_PER_WORD): ...here.
7072
7073 2010-07-13  DJ Delorie  <dj@redhat.com>
7074
7075         * config/h8300/h8300.c (h8300_init_once): Default to
7076         -fstrict_volatile_bitfields.
7077
7078         * config/sh/sh.c (sh_override_options): Default to
7079         -fstrict_volatile_bitfields.
7080
7081         * config/rx/rx.c (rx_option_override): New.
7082
7083         * config/m32c/m32c.c (m32c_override_options): Default to
7084         -fstrict_volatile_bitfields.
7085
7086 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
7087
7088         * tree.h (build_function_call_expr): Delete.
7089         (build_call_expr_loc_array): New function.
7090         (build_call_expr_loc_vec): New function.
7091         * tree-flow.h (struct omp_region): Change type of ws_args field
7092         to a VEC.
7093         * builtins.c (build_function_call_expr): Delete.
7094         (build_call_expr_loc_array): New function.
7095         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
7096         (build_call_expr): Likewise.
7097         (build_call_expr_loc_vec): New function.
7098         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
7099         build_function_call_expr.
7100         * expr.c (emutls_var_address): Likewise.
7101         * varasm.c (emutls_common_1): Likewise.
7102         * omp-low.c (expand_omp_atomic_mutex): Likewise.
7103         (expand_omp_taskreg): Adjust for new type of region->ws_args.
7104         (get_ws_args_for): Return a VEC instead of a tree.
7105         (expand_parallel_call): Call build_call_expr_loc_vec instead of
7106         build_function_call_expr.
7107         * stor-layout.c (self_referential_size): Likewise.
7108
7109 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7110
7111         PR testsuite/44701
7112         * recog.c (constrain_operands): Allow side-effects in memory
7113         operands if either < or > constraint is used, rather than if
7114         both < and > is used.
7115
7116 2010-07-13  Richard Guenther  <rguenther@suse.de>
7117
7118         PR middle-end/44911
7119         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
7120         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
7121         without name.
7122
7123 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
7124
7125         PR target/44761
7126         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
7127         to variable emited.
7128         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
7129         * config/sh/sh.md (symGOT_load): Likewise.
7130         (symDTPOFF2reg): Likewise.
7131         (symTPOFF2reg): Likewise.
7132
7133 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7134
7135         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
7136         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
7137
7138 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7139
7140         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
7141         explanation.
7142         Find ucontext_t * on Solaris 11.
7143         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
7144         Handle new Solaris 11 __sighndlr patterns.
7145
7146 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
7147
7148         PR debug/44901
7149         * vec.h (VEC_block_remove): Fix comment.
7150         * tree-ssa-live.c (remove_unused_locals): Don't use
7151         VEC_unordered_remove on local_decls, instead replace a single
7152         vector element in each iteration if at least one element had
7153         to be removed and VEC_truncate at the end.
7154         * omp-low.c (expand_omp_taskreg): Likewise.
7155
7156 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7157
7158         * c-decl.c (finish_function): Fix typo in comment.
7159
7160 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
7161
7162         PR bootstrap/44921
7163         * postreload.c (move2add_use_add3_insn): Silence gcc warning
7164         on min_regno.
7165
7166 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
7167
7168         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
7169         (simplify_stmt_using_ranges): Use it.
7170
7171 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7172
7173         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
7174         member.  Do not mark as GTY(()).
7175         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
7176         (spu_builtin_decls): New static variable.
7177         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
7178         (spu_init_builtins): Likewise.
7179         (spu_builtin_mul_widen_even): Likewise.
7180         (spu_builtin_mul_widen_odd): Likewise.
7181         (spu_builtin_mask_for_load): Likewise.
7182         (spu_builtin_vec_perm): Likewise.
7183         * config/spu/spu-c.c: Include "target.h".
7184         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
7185         of using spu_builtins[].fndecl.
7186
7187 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7188
7189         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
7190         imply -minterlink-mips16.
7191
7192 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7193
7194         * config/mips/mips.h (mips16_globals): Declare.
7195         (SWITCHABLE_TARGET): Define.
7196         * config/mips/mips.c: Include target-globals.h.
7197         (mips16_globals): New variable.
7198         (mips_set_mips16_mode): Use save_target_globals and
7199         restore_target_globals instead of target_reinit.
7200
7201 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7202
7203         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
7204         to say that the function can be called more than once.
7205         * target-globals.c (save_target_globals): Call init_reg_sets.
7206
7207 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7208
7209         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
7210         * bb-reorder.h: New file.
7211         * bb-reorder.c (default_target_bb_reorder): New variable.
7212         (this_target_bb_reorder): New conditional variable.
7213         (uncond_jump_length): Redefine as a macro.
7214         * target-globals.h (this_target_bb_reorder): Declare.
7215         (target_globals): Add a bb_reorder field.
7216         (restore_target_globals): Copy the bb_reorder field to
7217         this_target_bb-reorder.
7218         * target-globals.c: Include bb-reorder.h.
7219         (default_target_globals): Initialize the bb_reorder field.
7220         (save_target_globals): Likewise.
7221
7222 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7223
7224         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
7225         * gcse.h: New file.
7226         * gcse.c: Include gcse.h.
7227         (default_target_gcse): New variable.
7228         (this_target_gcse): New conditional variable.
7229         (can_copy): Redefine as a macro.
7230         (can_copy_init_p): New macro.
7231         (can_copy_p): Remove can_copy_init_p.
7232         * target-globals.h (this_target_gcse): Declare.
7233         (target_globals): Add a gcse field.
7234         (restore_target_globals): Copy the gcse field to this_target_gcse.
7235         * target-globals.c: Include gcse.h.
7236         (default_target_globals): Initialize the gcse field.
7237         (save_target_globals): Likewise.
7238
7239 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7240
7241         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
7242         and x_ira_prohibited_mode_move_regs_initialized_p.
7243         (ira_prohibited_mode_move_regs): Redefine as a macro.
7244         * ira.c (ira_prohibited_mode_move_regs): Delete.
7245         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
7246
7247 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7248
7249         * reload.h (target_reload): Add x_cached_reg_save_code and
7250         x_cached_reg_restore_code.
7251         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
7252         Redefine as macros.
7253
7254 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7255
7256         * Makefile.in (target-globals.o): Depend on builtins.h.
7257         * builtins.h: New file.
7258         * builtins.c: Include builtins.h.
7259         (default_target_builtins): New variable.
7260         (this_target_builtins): New conditional variable.
7261         (apply_args_mode, apply_result_mode): Redefine as macros.
7262         * target-globals.h (this_target_builtins): Declare.
7263         (target_globals): Add a builtins field.
7264         (restore_target_globals): Copy the builtins field to
7265         this_target_builtins.
7266         * target-globals.c: Include builtins.h.
7267         (default_target_globals): Initialize the builtins field.
7268         (save_target_globals): Likewise.
7269
7270 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7271
7272         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
7273         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
7274         from expmed.c.
7275         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
7276         (alg_hash, alg_hash_used_p): New macros.
7277         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
7278         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
7279         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
7280
7281 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7282
7283         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
7284         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
7285         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
7286         (this_op_costs, costs_classes): Redefine as macros.
7287         (record_reg_classes): Don't take op_costs as a parameter.
7288         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
7289         (scan_one_insn): Update call to record_operand_costs.
7290
7291 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7292
7293         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
7294         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
7295         (target_ira_int): New structure.
7296         (default_target_ira_int): Declare.
7297         (this_target_ira_int): Declare as a variable or define as a macro.
7298         (ira_reg_mode_hard_regset, ira_register_move_cost)
7299         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
7300         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
7301         (prohibited_class_mode_regs, ira_important_classes_num)
7302         (ira_important_classes, ira_reg_class_intersect)
7303         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
7304         (ira_reg_class_union): Redefine as macros.
7305         * ira.h (target_ira): New structure.
7306         (default_target_ira): Declare.
7307         (this_target_ira): Declare as a variable or define as a macro.
7308         (ira_available_class_regs, ira_hard_regno_cover_class)
7309         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
7310         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
7311         (ira_class_hard_regs_num): Redefine as macros.
7312         * ira.c (default_target_ira, default_target_ira_int): New variables.
7313         (this_target_ira, this_target_ira_int): New conditional variables.
7314         (ira_reg_mode_hard_regset, ira_memory_move_cost)
7315         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
7316         (ira_class_subset_p): Delete.
7317         (no_unit_alloc_regs): Redefine as a macro.
7318         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
7319         (ira_class_hard_regs_num, ira_class_hard_reg_index)
7320         (ira_available_class_regs): Delete.
7321         (alloc_reg_class_subclasses): Redefine as a macro.
7322         (ira_reg_class_cover_size, ira_reg_class_cover)
7323         (ira_important_classes_num, ira_important_classes)
7324         (ira_important_class_nums, ira_class_translate): Delete.
7325         (cover_class_order): Document the variable's lifetime.
7326         (reorder_important_classes): Don't set ira_important_class_nums.
7327         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
7328         (ira_reg_class_super_classes, ira_reg_class_union)
7329         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
7330         Delete.
7331         (setup_reg_class_nregs): Don't set ira_max_regs.
7332         (prohibited_class_mode_regs): Delete.
7333         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
7334         (target_globals): Add ira and ira_int fields.
7335         (restore_target_globals): Copy the ira field to this_target_ira
7336         and the ira_int field to this_target_ira_int.
7337         * target-globals.c: Include ira-int.h.
7338         (default_target_globals): Initialize the ira and ira_int fields.
7339         (save_target_globals): Likewise.
7340
7341 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7342
7343         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
7344         * cfgloop.h (target_cfgloop): New structure.
7345         (default_target_cfgloop): Declare.
7346         (this_target_cfgloop): Declare as a variable or define as a macro.
7347         (target_avail_regs, target_clobbered_regs, target_res_regs)
7348         (target_reg_cost, target_spill_cost): Redefine as macros.
7349         * cfgloopanal.c (default_target_cfgloop): New variable.
7350         (this_target_cfgloop): New conditional variable.
7351         (target_avail_regs, target_clobbered_regs, target_res_regs)
7352         (target_reg_cost, target_spill_cost): Delete.
7353         * target-globals.h (this_target_cfgloop): Declare.
7354         (target_globals): Add a cfgloop field.
7355         (restore_target_globals): Copy the cfgloop field to
7356         this_target_cfgloop.
7357         * target-globals.c: Include cfgloop.h.
7358         (default_target_globals): Initialize the cfgloop field.
7359         (save_target_globals): Likewise.
7360
7361 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7362
7363         * regs.h (target_regs): Add x_direct_load, x_direct_store and
7364         x_float_extend_from_mem.
7365         (direct_load, direct_store, float_extend_from_mem): New macros.
7366         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
7367
7368 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7369
7370         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
7371         (target-globals.o): Depend on $(LIBFUNCS_H).
7372         * libfuncs.h: Include hashtab.h.
7373         (libfunc_entry): Moved from optabs.c.
7374         (target_libfuncs): New structure.
7375         (default_target_libfuncs): Declare.
7376         (this_target_libfuncs): Declare as a variable or define as a macro.
7377         (libfunc_table): Redefine as a macro.
7378         * optabs.c (default_target_libfuncs): New variable.
7379         (this_target_libfuncs): New conditional variable.
7380         (libfunc_table): Delete.
7381         (libfunc_entry): Moved to optabs.h.
7382         (libfunc_hash): Redefine as a macro.
7383         (hash_libfunc, eq_libfunc): Fix comments.
7384         (init_optabs): Use libfunc_hash to detect cases where the function
7385         has already been called.  Clear the hash table instead of
7386         recreating it.
7387         * target-globals.h (this_target_libfuncs): Declare.
7388         (target_globals): Add a libfuncs field.
7389         (restore_target_globals): Copy the libfuncs field to
7390         this_target_libfuncs.
7391         * target-globals.c: Include libfuncs.h.
7392         (default_target_globals): Initialize the libfuncs field.
7393         (save_target_globals): Likewise.
7394
7395 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7396
7397         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
7398         in all dependency lists.
7399
7400 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7401
7402         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
7403         * optabs.h (target_optabs): New structure.
7404         (default_target_optabs): Declare.
7405         (this_target_optabs): Declare as a variable or define as a macro.
7406         (optab_table, convert_optab_table, direct_optab_table): Redefine
7407         as macros.
7408         * optabs.c (default_target_optabs): New variable.
7409         (this_target_optabs): New conditional variable.
7410         (optab_table, convert_optab_table, direct_optab_table): Delete.
7411         * target-globals.h (this_target_optabs): Declare.
7412         (target_globals): Add a optabs field.
7413         (restore_target_globals): Copy the optabs field to
7414         this_target_optabs.
7415         * target-globals.c: Include expr.h and optabs.h.
7416         (default_target_globals): Initialize the optabs field.
7417         (save_target_globals): Likewise.
7418
7419 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7420
7421         * flags.h (target_flagstate): Add x_flag_excess_precision.
7422         (flag_excess_precision): Redefine as a macro.
7423         * toplev.c (flag_excess_precision): Delete.
7424
7425 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7426
7427         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
7428         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
7429         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
7430         (no_caller_save_reg_set): Redefine as a macro.
7431         * reload.h (target_reload): Add x_caller_save_initialized_p and
7432         x_regno_save_mode.
7433         (caller_save_initialized_p): Redefine as a macro.
7434         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
7435         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
7436         (regno_save_mode): Redefine as a macro.
7437
7438 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7439
7440         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
7441         * expmed.h: New file.
7442         * expmed.c (default_target_costs): New variable.
7443         (this_target_costs): New conditional variable.
7444         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
7445         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
7446         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
7447         * target-globals.h (this_target_expmed): Declare.
7448         (target_globals): Add a expmed field.
7449         (restore_target_globals): Copy the expmed field to
7450         this_target_expmed.
7451         * target-globals.c: Include expmed.h.
7452         (default_target_globals): Initialize the expmed field.
7453         (save_target_globals): Likewise.
7454
7455 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7456
7457         * Makefile.in (target-globals.o): Depend on reload.h.
7458         * reload.h (target_reload): New structure.
7459         (default_target_reload): Declare.
7460         (this_target_reload): Declare as a variable or define as a macro.
7461         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
7462         * reload1.c (default_target_reload): New variable
7463         (this_target_reload): New conditional variable.
7464         (indirect_symref_ok, double_reg_address_ok): Delete.
7465         (spill_indirect_levels): Redefine as a macro.
7466         * target-globals.h (this_target_reload): Declare.
7467         (target_globals): Add a reload field.
7468         (restore_target_globals): Copy the reload field to
7469         this_target_reload.
7470         * target-globals.c: Include hard-reg-set.h.
7471         (default_target_globals): Initialize the reload field.
7472         (save_target_globals): Likewise.
7473
7474 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7475
7476         * rtl.h (target_rtl): Add x_static_reg_base_value.
7477         * alias.c (static_reg_base_value): Redefine as a macro.
7478
7479 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7480
7481         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
7482         (GTFILES): Remove reginfo.c.
7483         * rtl.h (target_rtl): Add x_top_of_stack.
7484         (top_of_stack): New macro.
7485         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
7486         (top_of_stack): Delete.
7487
7488 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7489
7490         * regs.h (target_regs): Add x_hard_regs_of_mode,
7491         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
7492         x_may_move_out_cost and x_last_mode_for_init_move_cost.
7493         (have_regs_of_mode, contains_reg_of_mode, move_cost)
7494         (may_move_in_cost, may_move_out_cost): Redefine as macros.
7495         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
7496         (may_move_in_cost, may_move_out_cost): Delete.
7497         (last_mode_for_init_move_cost): Redefine as a macro.
7498
7499 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7500
7501         * hard-reg-set.h (target_hard_regs): New structure.
7502         (default_target_hard_regs): Declare.
7503         (this_target_hard_regs): Declare as a variable or define as a macro.
7504         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
7505         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
7506         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
7507         (reg_class_size, reg_class_subclasses, reg_class_subunion)
7508         (reg_class_superunion, reg_names): Redefine as macros.
7509         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
7510         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
7511         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
7512         (reg_class_contents, reg_class_size, reg_class_subclasses)
7513         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
7514         (default_target_hard_regs): New variable
7515         (this_target_hard_regs, initial_call_really_used_regs)
7516         (initial_reg_alloc_order): New conditional variables.
7517         (initial_reg_names): New variable.
7518         (init_reg_sets): Assert that initial_call_really_used_regs,
7519         initial_reg_alloc_order and initial_reg_names
7520         are all the same size as their variable counterparts.  Use them to
7521         initialize those counterparts.
7522         * target-globals.h (this_target_hard_regs): Declare.
7523         (target_globals): Add a hard_regs field.
7524         (restore_target_globals): Copy the hard_regs field to
7525         this_target_hard_regs.
7526         * target-globals.c: Include hard-reg-set.h.
7527         (default_target_globals): Initialize the hard_regs field.
7528         (save_target_globals): Likewise.
7529
7530 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7531
7532         * Makefile.in (target-globals.o): Depend on $(RTL_H).
7533         * rtl.h (target_rtl): New structure.
7534         (default_target_rtl): Declare.
7535         (this_target_rtl): Declare as a variable or define as a macro.
7536         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
7537         Redefine as macros.
7538         * emit-rtl.c (default_target_rtl): New variable.
7539         (this_target_rtl): New conditional variable.
7540         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
7541         (return_address_pointer_rtx): Delete.
7542         (initial_regno_reg_rtx): New macro.
7543         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
7544         (init_emit_regs): Likewise.
7545         * target-globals.h (this_target_rtl): Declare.
7546         (target_globals): Add a rtl field.
7547         (restore_target_globals): Copy the rtl field to this_target_rtl.
7548         * target-globals.c: Include rtl.h.
7549         (default_target_globals): Initialize the rtl field.
7550         (save_target_globals): Likewise.
7551
7552 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7553
7554         * Makefile.in (target-globals.o): Depend on $(REGS_H).
7555         * regs.h (target_reg_modes): New structure.
7556         (default_target_reg_modes): Declare.
7557         (this_target_reg_modes): Declare as a variable or define as a macro.
7558         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
7559         * reginfo.c (default_target_reg_modes): New variable.
7560         (this_target_reg_modes): New conditional variable.
7561         (hard_regno_nregs, reg_raw_mode): Delete.
7562         * target-globals.h (this_target_regs): Declare.
7563         (target_globals): Add a regs field.
7564         (restore_target_globals): Copy the regs field to this_target_regs.
7565         * target-globals.c: Include regs.h.
7566         (default_target_globals): Initialize the regs field.
7567         (save_target_globals): Likewise.
7568
7569 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
7570
7571         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
7572         * doc/tm.texi: Regenerate.
7573         * Makefile.in (OBJS-common): Add target-globals.o.
7574         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
7575         and target-globals.h.
7576         (target-globals.o): New rule.
7577         (GTFILES): Include $(srcdir)/target-globals.h.
7578         * defaults.h (SWITCHABLE_TARGET): Define.
7579         * gengtype.c (open_base_files): Add target-globals.h to the
7580         list of includes.
7581         * target-globals.h: New file.
7582         * target-globals.c: Likewise.
7583
7584         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
7585         * flags.h (target_flag_state): New structure.
7586         (default_target_flag_state): Declare.
7587         (this_target_flag_state): Declare as a variable or define as a macro.
7588         (align_loops_log): Redefine as a macro.
7589         (align_loops_max_skip, align_jumps_log): Likewise.
7590         (align_jumps_max_skip, align_labels_log): Likewise.
7591         (align_labels_max_skip, align_functions_log): Likewise.
7592         * toplev.c (default_target_flag_state): New variable.
7593         (this_target_flag_state): New conditional variable.
7594         (align_loops_log): Delete.
7595         (align_loops_max_skip, align_jumps_log): Likewise.
7596         (align_jumps_max_skip, align_labels_log): Likewise.
7597         (align_labels_max_skip, align_functions_log): Likewise.
7598         * target-globals.h (this_target_flag_state): Declare.
7599         (target_globals): Add a flag_state field.
7600         (restore_target_globals): Copy the flag_state field to
7601         this_target_flag_state.
7602         * target-globals.c: Include flags.h.
7603         (default_target_globals): Initialize the flag_state field.
7604         (save_target_globals): Likewise.
7605
7606 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7607
7608         * postreload.c (reg_symbol_ref[]): New.
7609         (move2add_use_add2_insn): New.
7610         (move2add_use_add3_insn): New.
7611         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
7612         (move2add_note_store): Likewise.
7613
7614 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
7615
7616         PR rtl-optimization/44752
7617         * genautomata.c (main): Don't emit an empty file even if there
7618         is no automaton.
7619
7620 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7621
7622         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
7623         ix86_solaris_return_in_memory.
7624         * config/i386-protos.h: Reflect this.
7625         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
7626         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
7627         Move ...
7628         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
7629
7630 2010-07-12  Jie Zhang  <jie@codesourcery.com>
7631
7632         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
7633         align the stack when it's going to be saved.
7634
7635 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7636
7637         PR pch/14940
7638         * config/host-solaris.c (mmap_fixed): New function.
7639         (sol_gt_pch_get_address): Use it.
7640         (sol_gt_pch_use_address): Likewise.
7641
7642 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7643
7644         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7645         pentiumpro on Solaris 8 and 9/x86.
7646         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
7647         Document SSE/SSE2 support.
7648         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
7649
7650 2010-07-12  Andi Kleen  <ak@linux.intel.com>
7651
7652         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
7653         instead of gcc_assert to print better error message for multiple
7654         prevailing defs.
7655
7656 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
7657
7658         * config/i386/i386.c (ix86_asm_output_function_label): Change format
7659         string placeholder from 0x%x to %#x.
7660         (ix86_code_end): Use putc to output '\n'.
7661         (ix86_print_operand) <case ';'>: Use putc to output ';'.
7662
7663 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
7664
7665         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
7666         in directive -export.
7667
7668 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
7669
7670         * reginfo.h (reg_classes_intersect_p): Change arguments type to
7671         reg_class_t.
7672         * rtl.h (reg_classes_intersect_p): Adjust prototype.
7673
7674         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
7675         Remove macros.
7676         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
7677         rs6000_memory_move_cost): Remove
7678         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
7679         TARGET_MEMORY_MOVE_COST): Define.
7680         (rs6000_register_move_cost): Make static. Change arguments type from
7681         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
7682         (rs6000_memory_move_cost): Make static. Change arguments type from
7683         'enum reg_class' to reg_class_t.
7684
7685 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
7686
7687         PR middle-end/42505
7688         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
7689         lookup code into....
7690         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
7691         new functions.
7692         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
7693         * cfgloopanal.c (target_clobbered_regs): Define.
7694         (init_set_costs): Initialize target_clobbered_regs.
7695         (estimate_reg_pressure_cost): Add call_p argument.  When true,
7696         adjust the number of available registers to exclude the
7697         call-clobbered registers.
7698         * cfgloop.h (target_clobbered_regs): Declare.
7699         (estimate_reg_pressure_cost): Adjust declaration.
7700         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
7701         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
7702         (determine_set_costs): Dump target_clobbered_regs.
7703         (loop_body_includes_call): New function.
7704         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
7705         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
7706         call_p flag through.
7707         (best_gain_for_invariant): Likewise.
7708         (find_invariants_to_move): Likewise.
7709         (move_single_loop_invariants): Likewise, using already-computed
7710         has_call field.
7711
7712 2010-07-10  Richard Guenther  <rguenther@suse.de>
7713             Joern Rennecke  <joern.rennecke@embecosm.com>
7714
7715         PR debug/44832
7716         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
7717         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
7718         unless they have DECL_IGNORED_P set.
7719
7720 2010-07-10  Richard Guenther  <rguenther@suse.de>
7721
7722         PR lto/44889
7723         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
7724         helper function.
7725         (gimple_types_compatible_p): Similar to pointed-to
7726         types allow and merge a mix of complete and incomplete aggregate.
7727         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
7728         (iterative_hash_gimple_type): Adjust for that.
7729
7730 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
7731
7732         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
7733
7734 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
7735
7736         PR objc/44140
7737         * config/darwin.c (output_objc_section_asm_op): Save and restore
7738         section when outputting ObjC section list.
7739
7740 2010-07-09  Jan Hubicka  <jh@suse.cz>
7741
7742         * lto-streamer-out.c (produce_symtab): Do not write alias
7743         cgraph/varpool nodes.
7744
7745 2010-07-09  Jan Hubicka  <jh@suse.cz>
7746
7747         * tree-inline.c (declare_return_variable): Fix ICE while
7748         inlining DECL_BY_VALUE function not in SSA form
7749
7750 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
7751
7752         PR tree-optimization/44576
7753         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
7754         New.  Pull out from is_loop_prefetching_profitable to implement
7755         the trip count to ahead ratio heuristic.
7756         (mem_ref_count_reasonable_p): New.  Pull out from
7757         is_loop_prefetching_profitable to implement the instruction to
7758         memory reference ratio heuristic.  Also consider not reasonable if
7759         the memory reference count is above a threshold (to avoid
7760         explosive compilation time.
7761         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
7762         is_loop_prefetching_profitable to implement the instruction to
7763         prefetch ratio heuristic.
7764         (is_loop_prefetching_profitable): Removed.
7765         (loop_prefetch_arrays): Distribute the cost analysis across the
7766         function to allow early exit of the prefetch analysis.
7767         is_loop_prefetching_profitable is splitted into three functions,
7768         with each one called as early as possible.
7769         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
7770         number of memory references in a loop is considered too many.
7771
7772 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7773
7774         * reload.c (find_reloads): Don't clear badop if we have a winreg
7775         alternative, but not win, and the class only has fixed regs.
7776         * hard-reg-set.h (class_only_fixed_regs): Declare.
7777         * reginfo.c (class_only_fixed_regs): New array.
7778         (init_reg_sets_1): Initialize it.
7779         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
7780         discourage alternatives using the stack pointer.
7781
7782         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
7783
7784         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
7785
7786         * config/arm/arm.md (cbranchqi4): Fix array size.
7787         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
7788         calculating length.
7789
7790 2010-07-09  Richard Guenther  <rguenther@suse.de>
7791
7792         * gimple.c (struct type_fixup_s): New struct and VEC type.
7793         (gimple_register_type_fixups): New static global.
7794         (gimple_queue_type_fixup): New function.
7795         (gimple_types_compatible_p): Queue type fixups instead of
7796         applying them here.
7797         (gimple_register_type): Apply queued fixups for the
7798         canonical type.  Empty the type fixup queue.
7799
7800 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7801
7802         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
7803         * configure: Regenerate.
7804         * config.in: Ditto.
7805
7806 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7807             Denys Vlasenko  <dvlasenk@redhat.com>
7808             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
7809
7810         PR tree-optimization/28632
7811         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
7812         (extract_range_from_binary_expr): Further optimize
7813         BIT_AND_EXPR and BIT_IOR_EXPR.
7814
7815 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
7816
7817         * tree-if-conv.c (fold_or_predicates): New.
7818         (add_to_predicate_list): Call it.
7819
7820 2010-07-09  Richard Guenther  <rguenther@suse.de>
7821
7822         PR middle-end/44890
7823         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
7824         if base is a pointer.
7825         * tree-cfg.c (verify_expr): Update MEM_REF checking.
7826
7827 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
7828
7829         PR target/44877
7830         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
7831         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
7832         builtin mask for load/store builtins.
7833
7834 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7835
7836         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
7837         for "lock addl".
7838         * configure: Regenerate.
7839         * config/i386/i386.c (ix86_print_operand) <case ';'>:
7840         Remove TARGET_MACHO.
7841
7842 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
7843
7844         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
7845         default ISA flags.
7846         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
7847
7848 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
7849
7850         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
7851
7852 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
7853
7854         * config/picochip/picochip.md (commsTestPort): Emit more
7855         efficient sequence for tstport instruction.
7856
7857 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
7858
7859         * config/i386/i386.c (ix86_veclib_handler): Make static.
7860
7861 2010-07-09  Richard Guenther  <rguenther@suse.de>
7862
7863         PR tree-optimization/44852
7864         * tree-ssa-alias.c: Include toplev.h for exact_log2.
7865         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
7866         in MEM_REF.
7867         (indirect_refs_may_alias_p): Likewise.
7868         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
7869
7870 2010-07-09  Richard Guenther  <rguenther@suse.de>
7871
7872         PR tree-optimization/44882
7873         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
7874         sets do conflict.
7875         (vectorizable_load): Likewise.
7876
7877 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
7878
7879         PR target/40657
7880         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
7881         All callers changed.
7882         Handle the case when we're called for the epilogue.
7883         (thumb_unexpanded_epilogue): Use it.
7884         (thumb1_expand_epilogue): Likewise.
7885
7886 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
7887
7888         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
7889         both ranges are range_int_cst_p with non-negative minimum,
7890         try harder to derive smaller range.
7891
7892 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7893
7894         * genrecog.c: Include diagnostic-core.h before toplev.h.
7895         * genoutput.c: Likewise.
7896         * genextract.c: Likewise.
7897         * genautomata.c: Likewise.
7898         * genemit.c: Likewise.
7899         * genpeep.c: Likewise.
7900         * genattrtab.c: Likewise.
7901         * genconditions.c: Likewise.
7902         * genpreds.c: Likewise.
7903
7904 2010-07-08  Andi Kleen  <ak@linux.intel.com>
7905
7906         * lto-section-in.c (lto_section_name): Add missing comma.
7907
7908 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
7909
7910         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
7911         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
7912         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
7913         (ia64_override_options): Rename to...
7914         (ia64_option_override): ... this one. Make static.
7915
7916 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7917
7918         PR middle-end/44843
7919         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
7920         pointed-to type of the offset in a MEM_REF to compute the alignment.
7921
7922 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
7923
7924         * final.c (final_scan_insn): Replace
7925         TARGET_UNWIND_INFO macro check by unwind_emit
7926         hook NULL check.
7927         * targhooks.c (default_unwind_emit): Removed.
7928         * targhooks.h (default_unwind_emit): Likewise.
7929         * target.def (unwind_emit): Set default value to NULL.
7930
7931         * config/i386/i386-protos.h (ix86_asm_output_function_label):
7932         New prototype.
7933         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
7934         for NULL fntype argument and allow 64-bit targets.
7935         (ix86_asm_output_function_label): New function.
7936         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
7937         (ix86_handle_fndecl_attribute): Likewise.
7938         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
7939         * doc/doc/tm.texi: Regenerated.
7940         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
7941         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
7942         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
7943         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
7944         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7945         * config/elfos.h: Likewise.
7946         * config/i386/cygming.h: Likewise.
7947         * config/netbsd-aout.h: Likewise.
7948         * config/openbsd.h: Likewise.
7949         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
7950         by ix86_asm_output_function_label function call.
7951         * varasm.c (assemble_start_function): Use
7952         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
7953
7954 2010-07-08  Jan Hubicka  <jh@suse.cz>
7955
7956         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
7957         New function.
7958         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
7959         Declare.
7960         * ipa-cp.c (ipcp_estimate_growth): Use it.
7961         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
7962         Likewise.
7963
7964 2010-07-08  Jan Hubicka  <jh@suse.cz>
7965
7966         * tree-inline.c (declare_return_variable): Allocate annotation for new
7967         temporary.
7968
7969 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7970
7971         PR tree-optimization/44710
7972         * tree-if-conv.c (parse_predicate): New.
7973         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
7974         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
7975
7976 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
7977
7978         * common.opt (ftree-loop-if-convert): New flag.
7979         * doc/invoke.texi (ftree-loop-if-convert): Documented.
7980         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
7981         when flag_tree_loop_if_convert is set.
7982
7983 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
7984
7985         * config/i386/i386.c: Use short syntax for function calls
7986         through function pointers.
7987         * config/i386/i386.md: Ditto.
7988
7989 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
7990
7991         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
7992
7993 2010-07-08  Richard Guenther  <rguenther@suse.de>
7994
7995         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
7996         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
7997
7998 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
7999
8000         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
8001         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
8002         (loc_list_from_tree): Likewise.
8003         (output_loc_operands): Handle outputting DW_OP_const[48]u
8004         with loc->dtprel set.
8005         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
8006
8007 2010-07-08  Jan Hubicka  <jh@suse.cz>
8008
8009         * ipa.c: Include pointer-set.h
8010         (cgraph_externally_visible_p): New attribute ALIASED;
8011         when in LTO, hidden symbols are local unless they are aliased.
8012         (function_and_variable_visibility): Compute aliased nodes;
8013         handle LTO and hidden symbol on functions and vars.
8014         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
8015         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
8016
8017 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8018
8019         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
8020         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8021         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8022         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8023         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
8024         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
8025         (ix86_gen_probe_stack_range): Likewise.
8026         (override_options): Set them.
8027         (ix86_target_stack_probe): New function.
8028         (ix86_compute_frame_layout): Force use of push instructions to
8029         save registers if stack checking with probes is enabled.
8030         (get_scratch_register_on_entry): New function.
8031         (release_scratch_register_on_entry): Likewise.
8032         (ix86_adjust_stack_and_probe): Likewise.
8033         (output_adjust_stack_and_probe): Likewise.
8034         (ix86_emit_probe_stack_range): Likewise.
8035         (output_probe_stack_range): Likewise.
8036         (ix86_expand_prologue): Emit stack checking code if static built-in
8037         stack checking is enabled.
8038         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
8039         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
8040         (output_adjust_stack_and_probe): Likewise.
8041         (output_probe_stack_range): Likewise.
8042         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
8043         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
8044         TARGET_STACK_PROBE.
8045         (allocate_stack_worker_64): Likewise.
8046         (allocate_stack): Likewise.
8047         (adjust_stack_and_probe): New insn.
8048         (probe_stack_range): Likewise.
8049
8050 2010-07-08  Richard Guenther  <rguenther@suse.de>
8051
8052         PR tree-optimization/44831
8053         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
8054         a MEM_REF preserving TBAA info of the original dereference.
8055         Dereference the original pointer if the address is not invariant.
8056         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
8057         at least one invariant address that we are going to dereference.
8058
8059 2010-07-08  Richard Guenther  <rguenther@suse.de>
8060
8061         PR tree-optimization/44861
8062         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
8063         information when building MEM_REFs.
8064         (vectorizable_load): Likewise.
8065         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
8066
8067 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8068
8069         * config/sol2-c.c: Do not include diagnostic-core.h.
8070
8071 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8072
8073         PR bootstrap/44768
8074         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
8075         with respect to current_function_decl. Pass decl of the function.
8076         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
8077         * ipa-inline.c (compute_inline_parameters): Pass decl to
8078         estimated_stack_frame_size.
8079
8080 2010-07-08  Richard Guenther  <rguenther@suse.de>
8081
8082         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
8083         New function.
8084         (valueize_refs): Call it.
8085
8086 2010-07-08  Richard Guenther  <rguenther@suse.de>
8087
8088         PR rtl-optimization/44838
8089         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
8090         SSA form do not use pointer equivalence.
8091
8092 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
8093
8094         * dwarf2out.c (AT_linkage_name): Delete.
8095         (add_linkage_attr): New function.
8096         (add_linkage_name): Call it to emit the linkage attribute.
8097         (dwarf2out_finish): Likewise.
8098         (move_linkage_attr): Explicitly accept both attribute variants.
8099
8100 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
8101
8102         * toplev.h: Do not include diagnostic-core.h.
8103         Include diagnostic-core.h in every file that includes toplev.h.
8104         * c-tree.h: Do not include toplev.h.
8105         * pretty-print.h: Update comment.
8106         * Makefile.in: Update dependencies.
8107         * alias.c: Include diagnostic-core.h in every file that includes
8108         toplev.h.
8109         * attribs.c: Likewise.
8110         * auto-inc-dec.c: Likewise.
8111         * bb-reorder.c: Likewise.
8112         * bt-load.c: Likewise.
8113         * caller-save.c: Likewise.
8114         * calls.c: Likewise.
8115         * cfg.c: Likewise.
8116         * cfganal.c: Likewise.
8117         * cfgbuild.c: Likewise.
8118         * cfgcleanup.c: Likewise.
8119         * cfghooks.c: Likewise.
8120         * cfgloop.c: Likewise.
8121         * combine.c: Likewise.
8122         * config/alpha/alpha.c: Likewise.
8123         * config/arc/arc.c: Likewise.
8124         * config/arm/arm.c: Likewise.
8125         * config/arm/pe.c: Likewise.
8126         * config/avr/avr.c: Likewise.
8127         * config/bfin/bfin.c: Likewise.
8128         * config/cris/cris.c: Likewise.
8129         * config/crx/crx.c: Likewise.
8130         * config/darwin-c.c: Likewise.
8131         * config/darwin.c: Likewise.
8132         * config/fr30/fr30.c: Likewise.
8133         * config/frv/frv.c: Likewise.
8134         * config/h8300/h8300.c: Likewise.
8135         * config/host-darwin.c: Likewise.
8136         * config/i386/i386.c: Likewise.
8137         * config/i386/netware.c: Likewise.
8138         * config/i386/nwld.c: Likewise.
8139         * config/i386/winnt-cxx.c: Likewise.
8140         * config/i386/winnt-stubs.c: Likewise.
8141         * config/i386/winnt.c: Likewise.
8142         * config/ia64/ia64-c.c: Likewise.
8143         * config/ia64/ia64.c: Likewise.
8144         * config/iq2000/iq2000.c: Likewise.
8145         * config/lm32/lm32.c: Likewise.
8146         * config/m32c/m32c-pragma.c: Likewise.
8147         * config/m32c/m32c.c: Likewise.
8148         * config/m32r/m32r.c: Likewise.
8149         * config/m68hc11/m68hc11.c: Likewise.
8150         * config/m68k/m68k.c: Likewise.
8151         * config/mcore/mcore.c: Likewise.
8152         * config/mep/mep-pragma.c: Likewise.
8153         * config/mep/mep.c: Likewise.
8154         * config/mmix/mmix.c: Likewise.
8155         * config/mn10300/mn10300.c: Likewise.
8156         * config/moxie/moxie.c: Likewise.
8157         * config/pa/pa.c: Likewise.
8158         * config/pdp11/pdp11.c: Likewise.
8159         * config/picochip/picochip.c: Likewise.
8160         * config/rs6000/rs6000-c.c: Likewise.
8161         * config/rs6000/rs6000.c: Likewise.
8162         * config/rx/rx.c: Likewise.
8163         * config/s390/s390.c: Likewise.
8164         * config/score/score.c: Likewise.
8165         * config/score/score3.c: Likewise.
8166         * config/score/score7.c: Likewise.
8167         * config/sh/sh.c: Likewise.
8168         * config/sh/symbian-base.c: Likewise.
8169         * config/sh/symbian-c.c: Likewise.
8170         * config/sh/symbian-cxx.c: Likewise.
8171         * config/sol2-c.c: Likewise.
8172         * config/sol2.c: Likewise.
8173         * config/sparc/sparc.c: Likewise.
8174         * config/spu/spu.c: Likewise.
8175         * config/stormy16/stormy16.c: Likewise.
8176         * config/v850/v850-c.c: Likewise.
8177         * config/v850/v850.c: Likewise.
8178         * config/vax/vax.c: Likewise.
8179         * config/vxworks.c: Likewise.
8180         * config/xtensa/xtensa.c: Likewise.
8181         * convert.c: Likewise.
8182         * cse.c: Likewise.
8183         * cselib.c: Likewise.
8184         * dbgcnt.c: Likewise.
8185         * dbxout.c: Likewise.
8186         * ddg.c: Likewise.
8187         * dominance.c: Likewise.
8188         * emit-rtl.c: Likewise.
8189         * explow.c: Likewise.
8190         * expmed.c: Likewise.
8191         * fixed-value.c: Likewise.
8192         * fold-const.c: Likewise.
8193         * fwprop.c: Likewise.
8194         * gcse.c: Likewise.
8195         * ggc-common.c: Likewise.
8196         * ggc-page.c: Likewise.
8197         * ggc-zone.c: Likewise.
8198         * gimple-low.c: Likewise.
8199         * gimplify.c: Likewise.
8200         * graph.c: Likewise.
8201         * haifa-sched.c: Likewise.
8202         * ifcvt.c: Likewise.
8203         * implicit-zee.c: Likewise.
8204         * integrate.c: Likewise.
8205         * ira-build.c: Likewise.
8206         * ira-color.c: Likewise.
8207         * ira-conflicts.c: Likewise.
8208         * ira-costs.c: Likewise.
8209         * ira-lives.c: Likewise.
8210         * ira.c: Likewise.
8211         * lists.c: Likewise.
8212         * loop-doloop.c: Likewise.
8213         * loop-iv.c: Likewise.
8214         * lto-opts.c: Likewise.
8215         * lto-symtab.c: Likewise.
8216         * main.c: Likewise.
8217         * modulo-sched.c: Likewise.
8218         * optabs.c: Likewise.
8219         * params.c: Likewise.
8220         * plugin.c: Likewise.
8221         * postreload-gcse.c: Likewise.
8222         * postreload.c: Likewise.
8223         * predict.c: Likewise.
8224         * profile.c: Likewise.
8225         * real.c: Likewise.
8226         * regcprop.c: Likewise.
8227         * reginfo.c: Likewise.
8228         * regmove.c: Likewise.
8229         * reorg.c: Likewise.
8230         * resource.c: Likewise.
8231         * rtl.c: Likewise.
8232         * rtlanal.c: Likewise.
8233         * sched-deps.c: Likewise.
8234         * sched-ebb.c: Likewise.
8235         * sched-rgn.c: Likewise.
8236         * sdbout.c: Likewise.
8237         * sel-sched-dump.c: Likewise.
8238         * sel-sched-ir.c: Likewise.
8239         * simplify-rtx.c: Likewise.
8240         * stmt.c: Likewise.
8241         * stor-layout.c: Likewise.
8242         * store-motion.c: Likewise.
8243         * targhooks.c: Likewise.
8244         * tree-cfg.c: Likewise.
8245         * tree-cfgcleanup.c: Likewise.
8246         * tree-dump.c: Likewise.
8247         * tree-eh.c: Likewise.
8248         * tree-inline.c: Likewise.
8249         * tree-nomudflap.c: Likewise.
8250         * tree-object-size.c: Likewise.
8251         * tree-optimize.c: Likewise.
8252         * tree-outof-ssa.c: Likewise.
8253         * tree-phinodes.c: Likewise.
8254         * tree-profile.c: Likewise.
8255         * tree-ssa-ccp.c: Likewise.
8256         * tree-ssa-coalesce.c: Likewise.
8257         * tree-ssa-live.c: Likewise.
8258         * tree-ssa-loop-niter.c: Likewise.
8259         * tree-ssa-loop-prefetch.c: Likewise.
8260         * tree-ssa-loop.c: Likewise.
8261         * tree-ssa-structalias.c: Likewise.
8262         * tree-ssa-uninit.c: Likewise.
8263         * tree-ssa.c: Likewise.
8264         * tree-vect-data-refs.c: Likewise.
8265         * tree-vect-loop-manip.c: Likewise.
8266         * tree-vect-loop.c: Likewise.
8267         * tree-vect-patterns.c: Likewise.
8268         * tree-vect-stmts.c: Likewise.
8269         * tree-vrp.c: Likewise.
8270         * varasm.c: Likewise.
8271         * vec.c: Likewise.
8272         * web.c: Likewise.
8273         * xcoffout.c: Likewise.
8274
8275 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
8276
8277         * gengtype.c (write_field_root): New function.
8278         (write_root): Use it.
8279
8280 2010-07-07  Wei Guozhi  <carrot@google.com>
8281
8282         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
8283         of lowest bits to lshift/compare): Add a missing line.
8284
8285 2010-07-07  Wei Guozhi  <carrot@google.com>
8286
8287         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
8288         of lowest bits to lshift/compare): New.
8289
8290 2010-07-07  Tom Tromey  <tromey@redhat.com>
8291
8292         * doc/tm.texi: Update.
8293         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
8294         Add @hook.
8295         * target.def (want_debug_pub_sections): New hook.
8296         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
8297         * dwarf2out.c (add_pubname_string): Check
8298         targetm.want_debug_pub_sections.
8299         (add_pubname): Likewise.
8300         (add_pubtype): Likewise.
8301
8302 2010-07-07  Jie Zhang  <jie@codesourcery.com>
8303
8304         * genautomata.c (output_automata_list_min_issue_delay_code):
8305         Correctly decompress min_issue_delay.
8306
8307 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8308
8309         PR rtl-optimization/44404
8310         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
8311         possible, use reg_overlap_mentioned_p instead.
8312
8313 2010-07-07  Duncan Sands  <baldrick@free.fr>
8314
8315         PR middle-end/41355
8316         * tree.c (build_function_type_skip_args): Copy the original type using
8317         build_distinct_type_copy rather than copy_node.
8318
8319 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8320
8321         PR target/44850
8322         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
8323         revision 161876.
8324         (ix86_expand_prologue): Likewise.
8325         (ix86_handle_fndecl_attribute): Likewise.
8326         (ix86_asm_declare_function_name): Likewise.
8327         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8328         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8329         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
8330         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
8331         * doc/extend.texi: Likewise.
8332
8333 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
8334
8335         PR target/44844
8336         * config/i386/i386.md (rdrand<mode>): Changed to expand to
8337         retry if the carry flag isn't valid.
8338         (rdrand<mode>_1): New.
8339
8340 2010-07-07  Richard Guenther  <rguenther@suse.de>
8341
8342         PR middle-end/44790
8343         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
8344         for expanding the constant offset for MEM_REFs.
8345
8346 2010-07-07  Richard Guenther  <rguenther@suse.de>
8347
8348         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
8349         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
8350         * gimple.h (is_gimple_operand): Remove.
8351         * gimple.c (is_gimple_operand): Likewise.
8352         (walk_gimple_op): Fix wi->val_only setting for calls.
8353         * tree-cfg.c (verify_gimple_call): Fix argument validation.
8354         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
8355         invalid gimple calls.
8356
8357 2010-07-06  Jan Hubicka  <jh@suse.cz>
8358
8359         * lto-cgraph.c (output_cgraph): Add missing declaration.
8360
8361 2010-07-06  Jan Hubicka  <jh@suse.cz>
8362
8363         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
8364         partition.
8365
8366 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
8367
8368         * doc/gimple.texi (GIMPLE_DEBUG): Document.
8369         * doc/rtl.texi (Debug Information): New node.
8370         (NOTE_INSN_VAR_LOCATION): Document.
8371         (debug_insn): Likewise.
8372         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
8373
8374 2010-07-07  Jan Hubicka  <jh@suse.cz>
8375
8376         With parts by Richard Guenther.
8377
8378         PR middle-end/44813
8379         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
8380         for functions passed by reference.
8381         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
8382         in memory when passed by reference.
8383         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
8384         beggining.
8385         * ipa-split.c (split_function): Cleanup way return value is passed;
8386         handle SSA DECL_BY_REFERENCE retvals.
8387         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
8388         DECL_BY_REFERENCE is set.
8389         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
8390         find_what_p_points_to): Handle RESULT_DECL.
8391         * tree-inline.c (declare_return_variable): Get new entry_block argument;
8392         when passing by reference ensure that RESULT_DECL is gimple_val.
8393         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
8394         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
8395
8396 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
8397
8398         PR rtl-optimization/44787
8399         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
8400         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
8401
8402 2010-07-06  Jan Hubicka  <jh@suse.cz>
8403
8404         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
8405         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
8406         with body can prevail.
8407         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
8408         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
8409         * cgraph.c (cgraph_get_node_or_alias): New function.
8410         * cgraph.h (cgraph_get_node_or_alias): Declare.
8411
8412 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
8413
8414         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
8415         support.
8416         (ix86_expand_prologue): Likewise.
8417         (ix86_handle_fndecl_attribute): Likewise.
8418         (ix86_asm_declare_function_name): New function for
8419         ASM_DECLARE_FUNCTION_NAME.
8420         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
8421         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
8422         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
8423         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
8424         * doc/extend.texi: Adjust documentation about ms_hook_prologue
8425         attribute.
8426
8427 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8428
8429         * config/i386/i386.md (immediate_operand): New mode attribute.
8430
8431         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
8432         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
8433         using P mode iterator.
8434         (pro_epilogue_adjust_stack_di_2): Rename from
8435         pro_epilogue_adjust_stack_rex64_2.
8436
8437         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
8438
8439 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8440
8441         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
8442         through gen_mov_insv_1 function pointer.
8443         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
8444         gen_truncxf<mode>2 through gen_truncxf function pointer.
8445         (remainder<mode>3): Ditto.
8446         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
8447         (allocate_stack): Call gen_allocate_stack_worker_64 or
8448         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
8449         function pointer.
8450         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
8451         function pointer.
8452
8453 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
8454
8455         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
8456         operand constraint instead of <r><i>m.
8457
8458 2010-07-06  Richard Guenther  <rguenther@suse.de>
8459
8460         PR middle-end/44828
8461         * convert.c (convert_to_integer): Watch out for overflowing
8462         MULT_EXPR as well.
8463
8464 2010-07-05  Jan Hubicka  <jh@suse.cz>
8465
8466         * lto-streamer.c (write_symbol_vec): Rename to ...
8467         (write_symbol) ... this one; write only symbol given and when
8468         present in cache. Sanity check that what is defined is present
8469         in cgraph/varpool with body/finalized decl.
8470         (write_symbols_of_kind): Remove.
8471         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
8472         pairs to produce symtab.
8473         (produce_asm_for_decls): Update call of produce_symtab; don't do so
8474         when doing WPA streaming.
8475
8476 2010-07-05  Jan Hubicka  <jh@suse.cz>
8477
8478         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
8479         function is still available to fold into.
8480
8481 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8482
8483         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
8484         * function.h (struct_function): Change type of local_decls field
8485         to a VEC.
8486         (add_local_decl): New function.
8487         (FOR_EACH_LOCAL_DECL): New macro.
8488         * cfgexpand.c (init_vars_expansion): Adjust for new type of
8489         cfun->local_decls.
8490         (estimated_stack_frame_size): Likewise.
8491         (expand_used_vars): Likewise.
8492         * cgraphbuild.c (build_cgraph_edges): Likewise.
8493         * function.c (instantiate_decls_1): Likewise.
8494         * ipa-struct-reorg.c (build_data_structure): Likewise.
8495         * ipa-type-escape.c (analyze_function): Likewise.
8496         * lto-streamer-in.c (input_function): Likewise.
8497         * lto-streamer-out.c (output_function): Likewise.
8498         * tree-ssa-live.c (remove_unused_locals): Likewise.
8499         * tree.c (free_lang_data_in_decl): Likewise.
8500         (find_decls_types_in_node): Likewise.
8501         * omp-low.c (remove_exit_barrier): Likewise.
8502         (expand_omp_taskreg): Likewise.
8503         (list2chain): Rename to...
8504         (vec2chain): ...this.  Adjust.
8505         * cgraphunit.c (assemble_thunk): Call add_local_decl.
8506         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
8507         * gimple-low.c (record_vars_into): Likewise.
8508         * tree-inline.c (remap_decls): Likewise.
8509         (declare_return_variable): Likewise.
8510         (declare_inline_vars): Likewise.
8511         (copy_forbidden): Adjust for new type of cfun->local_decls.
8512         (add_local_variables): New function.
8513         (expand_call_inline): Call it.
8514         (tree_function_versioning): Likewise.
8515
8516 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
8517
8518         AVX Programming Reference (June, 2010)
8519         * config/i386/cpuid.h (bit_F16C): New.
8520         (bit_RDRND): Likewise.
8521         (bit_FSGSBASE): Likewise.
8522
8523         * config/i386/i386-builtin-types.def: Add
8524         "DEF_FUNCTION_TYPE (UINT16)", function types for
8525         float16 <-> float conversions and
8526         "DEF_FUNCTION_TYPE (VOID, UINT64)".
8527
8528         * config/i386/i386-c.c (ix86_target_macros_internal): Support
8529         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
8530         OPTION_MASK_ISA_F16C.
8531
8532         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
8533         (OPTION_MASK_ISA_RDRND_SET): Likewise.
8534         (OPTION_MASK_ISA_F16C_SET): Likewise.
8535         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
8536         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
8537         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
8538         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
8539         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
8540         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
8541         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
8542         (override_options): Handle them.
8543         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
8544         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
8545         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
8546         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
8547         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
8548         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
8549         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
8550         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
8551         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
8552         (bdesc_args): Likewise.
8553         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
8554         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
8555         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
8556         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
8557         Handle non-memory store.
8558
8559         * config/i386/i386.h (TARGET_FSGSBASE): New.
8560         (TARGET_RDRND): Likewise.
8561         (TARGET_F12C): Likewise.
8562
8563         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
8564         (UNSPEC_VCVTPS2PH): Likewise.
8565         (UNSPECV_RDFSBASE): Likewise.
8566         (UNSPECV_RDGSBASE): Likewise.
8567         (UNSPECV_WRFSBASE): Likewise.
8568         (UNSPECV_WRGSBASE): Likewise.
8569         (UNSPECV_RDRAND): Likewise.
8570         (rdfsbase<mode>): Likewise.
8571         (rdgsbase<mode>): Likewise.
8572         (wrfsbase<mode>): Likewise.
8573         (wrgsbase<mode>): Likewise.
8574         (rdrand<mode>): Likewise.
8575
8576         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
8577
8578         * config/i386/immintrin.h (_rdrand_u16): New.
8579         (_rdrand_u32): Likewise.
8580         (_readfsbase_u32): Likewise.
8581         (_readfsbase_u64): Likewise.
8582         (_readgsbase_u32): Likewise.
8583         (_readgsbase_u64): Likewise.
8584         (_writefsbase_u32): Likewise.
8585         (_writefsbase_u64): Likewise.
8586         (_writegsbase_u32): Likewise.
8587         (_writegsbase_u64): Likewise.
8588         (_rdrand_u64): Likewise.
8589         (_cvtsh_ss): Likewise.
8590         (_mm_cvtph_ps): Likewise.
8591         (_mm256_cvtph_ps): Likewise.
8592         (_cvtss_sh): Likewise.
8593         (_mm_cvtps_ph): Likewise.
8594         (_mm256_cvtps_ph): Likewise.
8595
8596         * config/i386/sse.md (vcvtph2ps): New.
8597         (*vcvtph2ps_load): Likewise.
8598         (vcvtph2ps256): Likewise.
8599         (vcvtps2ph): Likewise.
8600         (*vcvtps2ph): Likewise.
8601         (*vcvtps2ph_store): Likewise.
8602         (vcvtps2ph256): Likewise.
8603
8604         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
8605
8606         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
8607
8608 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
8609
8610         PR bootstrap/44512
8611         * genenums.c (main): Output include of insn-constants.h
8612         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
8613
8614 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
8615
8616         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
8617         (override_options): Initialize it.
8618         (ix86_expand_prologue): Use it.
8619
8620 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8621
8622         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
8623
8624 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8625
8626         * double-int.h (fit_double_type): Remove declaration.
8627         * double-int.c (fit_double_type): Remove function.
8628         * tree.h (int_fits_type_p): Adjust prototype.
8629         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
8630         instead of fit_double_type.
8631         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
8632         instead of fit_double_type and build_int_cst_wide.
8633         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
8634         instead of fit_double_type and build_int_cst_wide.
8635         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
8636         of fit_double_type.
8637
8638 2010-07-05  Jan Hubicka  <jh@suse.cz>
8639
8640         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
8641         in_other_partition.
8642         * lto-cgraph.c (referenced_from_other_partition_p,
8643         reachable_from_other_partition_p): Use in_other_partition flags.
8644         (output_node, output_varpool_node): COMDAT nodes always have private
8645         copies and thus are never used from other partition.
8646
8647 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
8648
8649         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
8650         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
8651         * config/ia64/ia64.c Include reload.h.
8652         (ia64_memory_move_cost): New function.
8653         (TARGET_MEMORY_MOVE_COST): Define.
8654         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
8655         memory_move_cost.
8656
8657 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
8658
8659         PR middle-end/42505
8660         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
8661         comments about cost model.
8662         (try_add_cand_for):  Add second strategy for choosing initial set
8663         based on original IVs, controlled by ORIGINALP argument.
8664         (get_initial_solution): Add ORIGINALP argument.
8665         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
8666         (find_optimal_iv_set): Try two different strategies for choosing
8667         the IV set, and return the one with lower cost.
8668
8669 2010-07-05  Richard Guenther  <rguenther@suse.de>
8670
8671         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
8672
8673 2010-07-05  Richard Guenther  <rguenther@suse.de>
8674
8675         * tree.c (reference_alias_ptr_type): New function.
8676         * tree.h (reference_alias_ptr_type): Declare.
8677         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
8678         allow non-TARGET_MEM_REF new refs.
8679         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
8680         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
8681         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
8682         (create_mem_ref): Get alias pointer type.  Adjust calls to
8683         create_mem_ref_raw.
8684         (maybe_fold_tmr): Likewise.
8685         * tree-flow.h (create_mem_ref): Adjust prototype.
8686
8687 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
8688
8689         PR c++/44808
8690         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
8691         *from_p is VAR_DECL.
8692
8693 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8694
8695         * tree.h (build_call_list): Remove.
8696         * tree.c (build_call_list): Remove.
8697
8698 2010-07-05  Richard Guenther  <rguenther@suse.de>
8699
8700         * double-int.h (double_int_sub): Declare.
8701         * double-int.c (double_int_sub): New function.
8702         * dwarf2out.c (field_byte_offset): Use it.
8703         * fixed-value.c (do_fixed_add): Likewise.
8704         (do_fixed_multiply): Likewise.
8705         (do_fixed_divide): Likewise.
8706         * tree-predcom.c (add_ref_to_chain): Likewise.
8707         (determine_roots_comp): Likewise.
8708         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
8709
8710 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
8711
8712         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
8713         implementations.
8714
8715 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
8716
8717         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
8718         * arm-modes.def (CC_NOTB): Don't define.
8719         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
8720         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
8721         (LTUGEU): New code_iterator.
8722         (cnb, optab): New corresponding code_attrs.
8723         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
8724         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
8725         using LTUGEU.
8726         (addsi3_carryin_shift_<optab>): Likewise.
8727         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
8728         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
8729         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
8730         (subsi3_compare): Renamed from subsi3_compare0_c.
8731         Change CC_NOTB to CC.
8732         (arm_subsi3_insn): Allow constants for operand 0.
8733         (compare_scc peephole for eq case): New.
8734         (compare_scc splitters): Change CC_NOTB to CC.
8735
8736 2010-07-05  Richard Guenther  <rguenther@suse.de>
8737
8738         * tree-ssa-loop-im.c (for_each_index): Do not handle
8739         ALIGN_INDIRECT_REF.
8740         (gen_lsm_tmp_name): Likewise.
8741         * tree-dump.c (dequeue_and_dump): Likewise.
8742         * tree-pretty-print.c (dump_generic_node): Likewise.
8743         (op_code_prio): Likewise.
8744         (op_symbol_code): Likewise.
8745         * tree.c (staticp): Likewise.
8746         (build1_stat): Likewise.
8747         * tree.h (INDIRECT_REF_P): Likewise.
8748         * fold-const.c (maybe_lvalue_p): Likewise.
8749         (operand_equal_p): Likewise.
8750         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8751         (ao_ref_init_from_vn_reference): Likewise.
8752         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8753         (find_interesting_uses_address): Likewise.
8754         * dwarf2out.c (loc_list_from_tree): Likewise.
8755         * gimplify.c (gimplify_expr): Likewise.
8756         * tree-eh.c (tree_could_trap_p): Likewise.
8757         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8758         * cfgexpand.c (expand_debug_expr): Likewise.
8759         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8760         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8761         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8762         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
8763         * tree-ssa-operands.c (get_expr_operands): Likewise.
8764         * expr.c (safe_from_p): Likewise.
8765         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
8766         * tree-vect-data-refs.c (vect_setup_realignment): Build
8767         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
8768         * tree-vect-stmts.c (vectorizable_load): Likewise.
8769         * tree.def (ALIGN_INDIRECT_REF): Remove.
8770
8771 2010-07-05  Richard Guenther  <rguenther@suse.de>
8772
8773         PR tree-optimization/44784
8774         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
8775         for inserted stmts.
8776         (find_or_generate_expression): Fix SCCVN insertion check.
8777
8778 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
8779
8780         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
8781         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
8782         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
8783         directives.
8784
8785 2010-07-05  Ira Rosen  <irar@il.ibm.com>
8786
8787         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
8788         statements that are not vectorized.
8789         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
8790         in INSIDE_COST.
8791
8792 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
8793
8794         PR bootstrap/44820
8795         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
8796
8797 2010-07-05  Richard Guenther  <rguenther@suse.de>
8798
8799         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
8800         RESULT_DECLs properly.
8801
8802 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
8803
8804         PR rtl-optimization/44695
8805         * config/i386/i386.md (extract_code): Removed.
8806         (<u>divmodqi4): Likewise.
8807         (divmodqi4): New.
8808         (udivmodqi4): Likewise.
8809         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
8810         (udivmodhiqi3): Likewise.
8811
8812 2010-07-04  Jan Hubicka  <jh@suse.cz>
8813
8814         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
8815
8816 2010-07-04  Jan Hubicka  <jh@suse.cz>
8817
8818         * cgraphunit.c (init_cgraph): Only initialize dump file if it
8819         is not already initialized.
8820
8821 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8822
8823         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
8824         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
8825         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
8826         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
8827         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
8828         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
8829         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
8830         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
8831         (sync_new_nand_optab): Redefine as macros.
8832         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
8833         Delete.
8834         (direct_optab_index): New enum.
8835         (direct_optab_d): New structure.
8836         (direct_optab): New typedef.
8837         (direct_optab_table): Declare.
8838         (direct_optab_handler, set_direct_optab_handler): New functions.
8839         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
8840         (sync_lock_release_optab): New macros.
8841         * optabs.c (direct_optab_table): New variable.
8842         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
8843         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
8844         cmpstr_optab and cmpstrn_optab.
8845         (emit_conditional_move): Likewise for movcc_optab.
8846         (can_conditionally_move_p): Likewise for movcc_gen_code.
8847         (init_insn_codes): Clear direct_optab_table.
8848         (init_optabs): Don't initialize the new "direct optabs" here.
8849         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
8850         vcond_gen_code.
8851         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
8852         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
8853         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
8854         (expand_sync_operation): Likewise other sync_*_optabs.
8855         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
8856         to sync_compare_and_swap_optab.
8857         (expand_sync_lock_test_and_set): Use direct_optab_handler for
8858         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
8859         to the names of both.
8860         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
8861         cmpstr_optab and cmpstrn_optab.
8862         (expand_builtin_lock_release): Likewise sync_lock_release.
8863         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
8864         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
8865         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
8866         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
8867         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
8868         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
8869         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
8870         (sync_lock_test_and_set, sync_lock_release): Delete.
8871         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
8872         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
8873         * genopinit.c (optabs): Use set_direct_optab_handler for the new
8874         macro optabs.
8875         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
8876         the "optab" local variable.  Use direct_optab_handler for optab and
8877         sync_compare_and_swap_optab.
8878         * reload1.c (reload_in_optab, reload_out_optab): Delete.
8879         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
8880         reload_in_optab and reload_out_optab.
8881         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
8882         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
8883         * config/pa/pa.c (pa_secondary_reload): Likewise.
8884         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
8885         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
8886         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
8887         (VMSupportsCS8_builtin): Likewise.
8888
8889 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8890
8891         * optabs.h (optab_handlers): Change type of insn_code to int.
8892         (optab_handler, set_optab_handler, convert_optab_handler)
8893         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
8894         CODE_FOR_nothing".
8895         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
8896         (init_insn_codes): Zero both the above arrays.
8897         (init_optabs): Never call init_insn_codes first time around.
8898
8899 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
8900
8901         * optabs.h (optab_handler, convert_optab_handler): Turn into
8902         inline functions that return an insn code.
8903         (set_optab_handler, set_convert_optab_handler): New functions.
8904         * builtins.c: Replace optab_handler(X)->insn_code with
8905         optab_handler or set_optab_handler thoughout.  Likewise
8906         convert_optab_handler(X)->insn_code with convert_optab_handler
8907         and set_convert_optab_handler.
8908         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
8909         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
8910         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
8911         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
8912         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
8913         config/spu/spu.c: Likewise.
8914
8915 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8916
8917         PR target/44531
8918         * config.gcc (sh*-*-*): Use regular expressions instead of
8919         the 'i' modifier for sed substitutions.
8920
8921 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
8922
8923         * gimple.c (gimple_body): Comments added.
8924
8925 2010-07-04  Richard Guenther  <rguenther@suse.de>
8926
8927         PR middle-end/44809
8928         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
8929         of an INDIRECT_REF.
8930
8931 2010-07-04  Richard Guenther  <rguenther@suse.de>
8932
8933         PR tree-optimization/44479
8934         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
8935         extra SSA name copy statements which preserves points-to
8936         information.
8937         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8938         Copy points-to information for all pointers.  Properly handle
8939         MEM_REFs.
8940         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
8941         copy statements.
8942         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
8943         dependency.
8944
8945 2010-07-04  Richard Guenther  <rguenther@suse.de>
8946
8947         PR middle-end/44785
8948         * tree-inline.c (initialize_inlined_parameters): Do not
8949         re-use pointer-map slot over remap_type call.
8950
8951 2010-07-04  Richard Guenther  <rguenther@suse.de>
8952
8953         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
8954
8955 2010-07-04  Richard Guenther  <rguenther@suse.de>
8956
8957         PR tree-optimization/44656
8958         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
8959         again after value-replacing in the defintions lhs.
8960
8961 2010-07-04  Ira Rosen  <irar@il.ibm.com>
8962             Revital Eres  <eres@il.ibm.com>
8963
8964         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
8965         Document new arguments.
8966         * doc/tm.texi: Regenerate.
8967         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
8968         Handle unaligned store.
8969         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
8970         * target.def (builtin_vectorization_cost): Add new arguments.
8971         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
8972         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
8973         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
8974         (vect_vfa_segment_size): Fix indentation.
8975         * tree-vectorizer.h (struct _vect_peel_info): New.
8976         (struct _vect_peel_extended_info): New.
8977         (struct _loop_vec_info): Add new field for peeling hash table and a
8978         macro for its access.
8979         (VECT_MAX_COST): Define.
8980         (vect_get_load_cost): Declare.
8981         (vect_get_store_cost, vect_get_known_peeling_cost,
8982         vect_get_single_scalar_iteraion_cost): Likewise.
8983         (vect_supportable_dr_alignment): Add new argument.
8984         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
8985         field.
8986         (destroy_loop_vec_info): Free peeling hash table.
8987         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
8988         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
8989         vect_analyze_slp. Fix indentation.
8990         (vect_get_single_scalar_iteraion_cost): New function.
8991         (vect_get_known_peeling_cost): Likewise.
8992         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
8993         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
8994         statement. Move outside cost calculation inside unknown peeling case.
8995         Call vect_get_known_peeling_cost for known amount of peeling.
8996         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
8997         reference to the print message of forced alignment.
8998         (vect_verify_datarefs_alignment): Update call to
8999         vect_supportable_dr_alignment.
9000         (vect_get_data_access_cost): New function.
9001         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
9002         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
9003         vect_peeling_hash_choose_best_peeling): Likewise.
9004         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
9005         to store all the accesses in the loop and find best possible access to
9006         align using peeling for known alignment case. For unknown alignment
9007         check if stores are preferred or if peeling is worthy.
9008         (vect_find_same_alignment_drs): Analyze pairs of loads too.
9009         (vect_supportable_dr_alignment): Add new argument and check aligned
9010         accesses according to it.
9011         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
9012         (cost_for_stmt): Call vect_get_stmt_cost.
9013         (vect_model_simple_cost): Likewise.
9014         (vect_model_store_cost): Call vect_get_stmt_cost. Call
9015         vect_get_store_cost to calculate the cost of the statement.
9016         (vect_get_store_cost): New function.
9017         (vect_model_load_cost): Call vect_get_stmt_cost. Call
9018         vect_get_load_cost to calculate the cost of the statement.
9019         (vect_get_load_cost): New function.
9020         (vectorizable_store): Update call to vect_supportable_dr_alignment.
9021         (vectorizable_load): Likewise.
9022         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
9023         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
9024         arguments. Handle unaligned store.
9025         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
9026         (rs6000_builtin_support_vector_misalignment): Return true for word and
9027         double word alignments for VSX.
9028         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
9029         vect_supportable_dr_alignment and builtin_vectorization_cost.
9030
9031 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9032
9033         PR target/44597
9034         * config/pa/predicates.md (prefetch_cc_operand): Remove.
9035         (prefetch_nocc_operand): Likewise.
9036         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
9037         (prefetch_20): New insn.
9038         (prefetch_cc): Remove.
9039         (prefetch_nocc): Likewise.
9040
9041 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9042
9043         * expr.c (vector_mode_valid_p): Move to c-common.c.
9044         * expr.h (vector_mode_valid_p): Do not declare here.
9045         * system.h: Poison GCC_EXPR_H in front-ends.
9046         * Makefile.in: Update dependencies.
9047
9048 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9049
9050         PR target/44705
9051         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
9052
9053 2010-07-03  Jan Hubicka  <jh@suse.cz>
9054
9055         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
9056         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
9057         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
9058         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
9059         Likewise.
9060
9061         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
9062         Update timevars.V
9063         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
9064         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
9065         TV_IPA_LTO_DECL_OUT): New.
9066         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
9067
9068 2010-07-03  Jan Hubicka  <jh@suse.cz>
9069
9070         * ipa-inline.c (update_edge_key): Break out from ...
9071         update_callers_keys): ... here;
9072         (update_callee_keys): Update only the edges from caller to callee.
9073         (update_all_calle_keys): Do what update_calle_keys did.
9074         (decide_inlining_of_small_functions): Avoid recomputing of all
9075         callees when badness increase.
9076
9077 2010-07-03  Jie Zhang  <jie@codesourcery.com>
9078
9079         * config/arm/arm.c (arm_attr_length_move_neon): New.
9080         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
9081         * config/arm/neon.md (define_mode_attr V_slen): Remove.
9082         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
9083         to compute length attribute.
9084
9085 2010-07-03  Jie Zhang  <jie@codesourcery.com>
9086
9087         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
9088         as predicate for operand 1 and remove its constraint.
9089         * config/arm/predicates.md (vfp_register_operand): New.
9090         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
9091         (*push_fp_multi): Likewise.
9092
9093 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
9094
9095         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
9096
9097 2010-07-03  Jan Hubicka  <jh@suse.cz>
9098
9099         * config/i386/i386.c (override_options): Revert accidental commit.
9100
9101 2010-07-02  Le-Chun Wu  <lcwu@google.com>
9102
9103         PR c++/44128
9104         * doc/invoke.texi: Update documentation of -Wshadow.
9105
9106 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
9107             Julian Brown  <julian@codesourcery.com>
9108             Sandra Loosemore <sandra@codesourcery.com>
9109
9110         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
9111         comparisons.  Adjust to take both operands.
9112         (arm_select_cc_mode): Handle DImode comparisons.
9113         (arm_gen_compare_reg): Generate a scratch register for DImode
9114         comparisons which require one.  Use xor for Thumb equality checks.
9115         (arm_const_double_by_immediates): New.
9116         (arm_print_operand): Allow 'Q' and 'R' for constants.
9117         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
9118         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
9119         arm_canonicalize_comparison.
9120         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
9121         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
9122         prototype.
9123         (arm_const_double_by_immediates): Declare.
9124         * config/arm/constraints.md (Di): New constraint.
9125         * config/arm/predicates.md (arm_immediate_di_operand)
9126         (arm_di_operand, cmpdi_operand): New.
9127         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
9128         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
9129         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
9130         (cstoredi4): Handle non-Cirrus also.
9131
9132 2010-07-02  Julian Brown  <julian@codesourcery.com>
9133             Sandra Loosemore <sandra@codesourcery.com>
9134
9135         PR target/43703
9136         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
9137         (smax<mode>3): Disable for NEON float modes when
9138         flag_unsafe_math_optimizations is false.
9139         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
9140         (*mul<mode>3_neon)
9141         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
9142         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
9143         for NEON float modes when flag_unsafe_math_optimizations is false.
9144         (quad_halves_<code>v4sf): Only enable if
9145         flag_unsafe_math_optimizations is true.
9146         * doc/invoke.texi (ARM Options): Add note about floating point
9147         vectorization requiring -funsafe-math-optimizations.
9148
9149 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9150             Julian Brown  <julian@codesourcery.com>
9151
9152         * config/arm/neon.md (UNSPEC_VABA): Delete.
9153         (UNSPEC_VABAL): Delete.
9154         (UNSPEC_VABS): Delete.
9155         (UNSPEC_VMUL_N): Delete.
9156         (adddi3_neon): New.
9157         (subdi3_neon): New.
9158         (mul<mode>3add<mode>_neon): Make the pattern named.
9159         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
9160         (neon_vadd<mode>): Replace with define_expand, and move the remaining
9161         unspec parts...
9162         (neon_vadd<mode>_unspec): ...to this.
9163         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
9164         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
9165         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
9166         (neon_vaba<mode>): Rewrite in terms of vabd.
9167         (neon_vabal<mode>): Rewrite in terms of vabdl.
9168         (neon_vabs<mode>): Rewrite without unspec.
9169         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
9170         (*arm_subdi3): Likewise.
9171         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
9172         No_op attribute to disable assembly output checks.
9173         * config/arm/arm_neon.h: Regenerated.
9174         * doc/arm-neon-intrinsics.texi: Regenerated.
9175
9176 2010-07-02  Jan Hubicka  <jh@suse.cz>
9177
9178         * ipa-split.c (split_function): For aggregate values, set the return
9179         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
9180         *<retval> = fncall.part ().
9181         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
9182
9183 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9184
9185         * config/arm/neon.md (UNSPEC_VAND): Delete.
9186         (UNSPEC_VBIC): Delete.
9187         (UNSPEC_VCLZ): Delete.
9188         (UNSPEC_VCNT): Delete.
9189         (UNSPEC_VEOR): Delete.
9190         (UNSPEC_VORN): Delete.
9191         (UNSPEC_VORR): Delete.
9192         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
9193         core registers too.
9194         (anddi3_neon): Likewise.
9195         (orndi3_neon): Likewise.
9196         (bicdi3_neon): Likewise.
9197         (xordi3_neon): Likewise.
9198         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
9199         rid of unspec and handle unused operand.
9200         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
9201         * config/arm/predicates.md (imm_for_neon_logic_operand):
9202         Require TARGET_NEON.
9203         (imm_for_neon_inv_logic_operand): Likewise.
9204         * config/arm/arm.md (define_split for logical_binary_operator):
9205         Disable for NEON registers.
9206         (anddi3): Add new define_expand, and rename the insn.  Disable
9207         this insn for NEON, where anddi3_neon now applies.
9208         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
9209         (iordi3): As for anddi3.
9210         (xordi3): Likewise.
9211         * config/arm/neon.ml (Vand): Split DImode variants and mark them
9212         as No_op to disable testing for exact instruction match.
9213         (Vorr): Likewise.
9214         (Veor): Likewise.
9215         (Vbic): Likewise.
9216         (Vorn): Likewise.
9217         * config/arm/arm_neon.h: Regenerated.
9218         * doc/arm-neon-intrinsics.texi: Regenerated.
9219
9220 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9221
9222         * expr.h (emit_stack_probe): Declare.
9223         * explow.c (emit_stack_probe): Make global.
9224         (anti_adjust_stack_and_probe): Fix comments.
9225         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9226         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9227         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9228         * config/sparc/sparc.c: Include except.h.
9229         (sparc_emit_probe_stack_range): New function.
9230         (output_probe_stack_range): Likewise.
9231         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
9232         built-in stack checking is enabled.
9233         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
9234         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9235         (probe_stack_range): New insn.
9236
9237 2010-07-02  Richard Guenther  <rguenther@suse.de>
9238
9239         PR target/43958
9240         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
9241         for argument alignment.
9242
9243 2010-07-02  Jan Hubicka  <jh@suse.cz>
9244
9245         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
9246         walk backwards from entry_bb to check only those basic block of header
9247         that might lead to execution of split part.
9248         (consider_split) ... here.
9249         (find_return_bb): Allow assignment in return BB.
9250         (find_retval): New.
9251         (split_function): Fix name of cloned function; take care of updating
9252         return value in return_bb containing move.
9253
9254 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
9255
9256         PR target/44771
9257         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
9258         used variable insn.
9259
9260 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
9261
9262         * implicit-zee.c (combine_reaching_defs): Fix long lines.
9263         (is_set_with_extension_DI): Delete.
9264         (struct zero_extend_info): New structure.
9265         (add_removable_zero_extend): New function.
9266         (find_removable_zero_extends): Use note_stores to find SETs.
9267         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
9268
9269 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
9270
9271         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
9272         is_miss_rate_acceptable. Pull total_positions computation
9273         out of the loops.  Early return if miss_positions exceeds
9274         the acceptable threshold.
9275         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
9276         is_miss_rate_acceptable after renaming of compute_miss_rate.
9277
9278 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
9279
9280         PR middle-end/44576
9281         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
9282         of 1000) for miss rate if the address diference is greater than or
9283         equal to the cache line size (the two reference will never hit the
9284         same cache line).
9285
9286 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
9287
9288         PR target/42835
9289         * config/arm/arm-modes.def (CC_NOTB): New mode.
9290         * config/arm/arm.c (get_arm_condition_code): Handle it.
9291         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
9292         * config/arm/arm.md (subsi3_compare0_c): New pattern.
9293         (compare_scc): Now a define_and_split.  Add a number of extra
9294         splitters before it.
9295
9296         PR target/42172
9297         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
9298         and ZERO_EXTEND.
9299         (arm_rtx_costs_1): Likewise.
9300         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
9301         * config/arm/arm.md (is_arch6): New attribute.
9302         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
9303         extendqisi2): Tighten the code somewhat, avoiding invalid
9304         RTL to occur in the expander patterns.
9305         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
9306         (thumb1_zero_extendhisi2_v6): Delete.
9307         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
9308         (thumb1_extendhisi2_v6): Delete.
9309         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
9310         (thumb1_extendqisi2_v6): Delete.
9311         (zero_extendhisi2 for register input splitter): New.
9312         (zero_extendqisi2 for register input splitter): New.
9313         (thumb1_extendhisi2 for register input splitter): New.
9314         (extendhisi2 for register input splitter): New.
9315         (extendqisi2 for register input splitter): New.
9316         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
9317         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
9318         and add support for a register alternative requiring a split.
9319         (thumb1_zero_extendqisi2): Likewise.
9320         (arm_zero_extendqisi2): Likewise.
9321         (arm_extendhisi2): Likewise.
9322         (arm_extendqisi2): Likewise.
9323
9324 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9325
9326         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
9327         instead of an unspec.
9328         (neon_expand_vector_init): Likewise.
9329         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
9330         (UNSPEC_VDUP_LANE): Delete.
9331         (UNSPEC VDUP_N): Delete.
9332         (UNSPEC_VGET_HIGH): Delete.
9333         (UNSPEC_VGET_LANE): Delete.
9334         (UNSPEC_VGET_LOW): Delete.
9335         (UNSPEC_VMVN): Delete.
9336         (UNSPEC_VSET_LANE): Delete.
9337         (V_double_vector_mode): New.
9338         (vec_set<mode>_internal): Make code emitted match that for the
9339         corresponding intrinsics.
9340         (vec_setv2di_internal): Likewise.
9341         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
9342         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
9343         (neon_vset_lane<mode>): Combine double and quad patterns and
9344         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
9345         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
9346         (neon_vdup_n<mode>): Rewrite RTL without unspec.
9347         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
9348         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
9349         with neon_vdup_lanev2di, adjusting the pattern from the latter
9350         to be predicable for consistency.
9351         (neon_vdup_lane<mode>_internal): New.
9352         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
9353         to avoid using an unspec.
9354         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
9355         (neon_vdup_lanev2di): Turn into a define_expand.
9356         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
9357         (neon_vget_high<mode>): Replace with....
9358         (neon_vget_highv16qi): New pattern using canonical RTL.
9359         (neon_vget_highv8hi): Likewise.
9360         (neon_vget_highv4si): Likewise.
9361         (neon_vget_highv4sf): Likewise.
9362         (neon_vget_highv2di): Likewise.
9363         (neon_vget_low<mode>): Replace with....
9364         (neon_vget_lowv16qi): New pattern using canonical RTL.
9365         (neon_vget_lowv8hi): Likewise.
9366         (neon_vget_lowv4si): Likewise.
9367         (neon_vget_lowv4sf): Likewise.
9368         (neon_vget_lowv2di): Likewise.
9369
9370         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
9371         test for this emitting vmov.
9372         (Vset_lane): Likewise.
9373         (Vdup_n): Likewise.
9374         (Vmov_n): Likewise.
9375
9376         * doc/arm-neon-intrinsics.texi: Regenerated.
9377
9378 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
9379
9380         * config/arm/neon.md (vec_extractv2di): Correct error in register
9381         numbering to reconcile with neon_vget_lanev2di.
9382
9383 2010-07-02  Richard Guenther  <rguenther@suse.de>
9384
9385         * tree-ssa-structalias.c (pt_solution_set_var): New function.
9386         * tree-ssa-alias.h (pt_solution_set_var): Declare.
9387         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
9388         points-to information.
9389
9390 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
9391
9392         * config/s390/s390.c (override_options): Adopt prefetching
9393         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
9394
9395 2010-07-02  Jan Hubicka  <jh@suse.cz>
9396
9397         * df-problems.c (df_kill_notes): Do not collect dead  notes.
9398         (df_set_note): Just call add_reg_note.
9399         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
9400         df_create_unused_note): Do not deal with lists of old notes.
9401         (df_note_bb_compute): Likewise.
9402
9403 2010-07-02  Richard Guenther  <rguenther@suse.de>
9404
9405         * tree-ssa-structalias.c (find_func_aliases): Handle
9406         pointer alignment via BIT_AND_EXPR.
9407         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
9408
9409 2010-07-02  Richard Guenther  <rguenther@suse.de>
9410
9411         * tree-data-ref.c (initialize_data_dependence_relation): Handle
9412         mismatching number of dimensions properly.
9413
9414 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9415
9416         PR target/44707
9417         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
9418         (lo_sum (high ...) ...) patterns generated by earlier passes.
9419
9420 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9421
9422         * doc/install.texi (Prerequisites): Document Perl requirement on
9423         Solaris 2.
9424         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
9425
9426 2010-07-02  Richard Guenther  <rguenther@suse.de>
9427
9428         PR middle-end/44777
9429         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
9430
9431 2010-07-02  Jan Hubicka  <jh@suse.cz>
9432
9433         PR middle-end/44706
9434         * predict.c (predict_paths_for_bb): Handle case when control dependence
9435         BB has only abnormal edges.
9436
9437 2010-07-02  Richard Guenther  <rguenther@suse.de>
9438
9439         PR tree-optimization/44748
9440         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
9441         the embedded conversion in MEM_REFs.
9442
9443 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
9444
9445         * reload.c: Include toplev.h.
9446         * recog.c:  Likewise.
9447         * Makefile.in: Adjust dependencies.
9448
9449 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
9450
9451         PR debug/44694
9452         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
9453         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
9454
9455 2010-07-01  Richard Guenther  <rguenther@suse.de>
9456
9457         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
9458         types for offsets.
9459
9460 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
9461
9462         PR target/44732
9463         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
9464         Fix argument types.
9465
9466 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
9467
9468         PR target/44727
9469         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9470         Make sure operand 0 dies.
9471
9472 2010-07-01  Richard Guenther  <rguenther@suse.de>
9473
9474         PR middle-end/42834
9475         PR middle-end/44468
9476         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
9477         * doc/generic.texi (References to storage): Document MEM_REF.
9478         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
9479         (print_call_name): Likewise.
9480         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
9481         (build_simple_mem_ref_loc): New function.
9482         (mem_ref_offset): Likewise.
9483         * tree.h (build_simple_mem_ref_loc): Declare.
9484         (build_simple_mem_ref): Define.
9485         (mem_ref_offset): Declare.
9486         * fold-const.c: Include tree-flow.h.
9487         (operand_equal_p): Handle MEM_REF.
9488         (build_fold_addr_expr_with_type_loc): Likewise.
9489         (fold_comparison): Likewise.
9490         (fold_unary_loc): Fold
9491         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
9492         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
9493         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
9494         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
9495         (ptr_deref_may_alias_ref_p_1): Likewise.
9496         (ao_ref_base_alias_set): Properly differentiate base object for
9497         offset and TBAA.
9498         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
9499         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
9500         (indirect_refs_may_alias_p): Likewise.
9501         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
9502         chasing code.
9503         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
9504         (call_may_clobber_ref_p_1): Likewise.
9505         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
9506         * expr.c (expand_assignment): Handle MEM_REF.
9507         (store_expr): Handle MEM_REFs from STRING_CSTs.
9508         (store_field): If expanding a MEM_REF of a non-addressable
9509         decl use bitfield operations.
9510         (get_inner_reference): Handle MEM_REF.
9511         (expand_expr_addr_expr_1): Likewise.
9512         (expand_expr_real_1): Likewise.
9513         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
9514         * alias.c (ao_ref_from_mem): Handle MEM_REF.
9515         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
9516         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
9517         (dr_analyze_indices): Likewise.
9518         (dr_analyze_alias): Likewise.
9519         (object_address_invariant_in_loop_p): Likewise.
9520         * gimplify.c (mark_addressable): Handle MEM_REF.
9521         (gimplify_cond_expr): Build MEM_REFs.
9522         (gimplify_modify_expr_to_memcpy): Likewise.
9523         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
9524         (gimple_fold_indirect_ref): Adjust.
9525         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
9526         * tree.def (MEM_REF): New tree code.
9527         * tree-dfa.c: Include toplev.h.
9528         (get_ref_base_and_extent): Handle MEM_REF.
9529         (get_addr_base_and_unit_offset): New function.
9530         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
9531         * gimple-fold.c (may_propagate_address_into_dereference): Handle
9532         MEM_REF.
9533         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
9534         accesses if the array has just one dimension.  Remove always true
9535         parameter.  Do not require type compatibility here.
9536         (maybe_fold_offset_to_component_ref): Remove.
9537         (maybe_fold_stmt_indirect): Remove.
9538         (maybe_fold_reference): Remove INDIRECT_REF handling.
9539         Fold back to non-MEM_REF.
9540         (maybe_fold_offset_to_address): Simplify.  Deal with type
9541         mismatches here.
9542         (maybe_fold_reference): Likewise.
9543         (maybe_fold_stmt_addition): Likewise.  Also handle
9544         &ARRAY + I in addition to &ARRAY[0] + I.
9545         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
9546         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
9547         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
9548         * tree-ssa.c (useless_type_conversion_p): Make most pointer
9549         conversions useless.
9550         (warn_uninitialized_var): Handle MEM_REF.
9551         (maybe_rewrite_mem_ref_base): New function.
9552         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
9553         to SSA form.
9554         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
9555         INDIRECT_REF handling.
9556         (copy_tree_body_r): Handle MEM_REF.
9557         * gimple.c (is_gimple_addressable): Adjust.
9558         (is_gimple_address): Likewise.
9559         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
9560         invariant base are invariant.
9561         (is_gimple_min_lval): Adjust.
9562         (is_gimple_mem_ref_addr): New function.
9563         (get_base_address): Handle MEM_REF.
9564         (count_ptr_derefs): Likewise.
9565         (get_base_loadstore): Likewise.
9566         * gimple.h (is_gimple_mem_ref_addr): Declare.
9567         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
9568         * tree-cfg.c (verify_address): New function, split out from ...
9569         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
9570         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
9571         INDIRECT_REFs.
9572         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
9573         INDIRECT_REF.  Allow conversions.
9574         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
9575         a register does not change its size.
9576         (verify_types_in_gimple_reference): Verify MEM_REF.
9577         (verify_gimple_assign_single): Disallow INDIRECT_REF.
9578         Handle MEM_REF.
9579         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
9580         New.
9581         (mark_address_taken): Handle MEM_REF.
9582         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
9583         (get_asm_expr_operands): Pass opf_not_non_addressable.
9584         (get_expr_operands): Handle opf_[not_]non_addressable.
9585         Handle MEM_REF.  Remove INDIRECT_REF handling.
9586         * tree-vrp.c (check_array_ref): Handle MEM_REF.
9587         (search_for_addr_array): Likewise.
9588         (check_array_bounds): Likewise.
9589         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
9590         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
9591         (ref_always_accessed_p): Likewise.
9592         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
9593         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
9594         Handle MEM_REF.
9595         * cgraphbuild.c (mark_load): Properly check for NULL result
9596         from get_base_address.
9597         (mark_store): Likewise.
9598         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
9599         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
9600         handling for MEM_REF.
9601         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
9602         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
9603         * builtins.c (stabilize_va_list_loc): Use the function ABI
9604         valist type if we couldn't canonicalize the argument type.
9605         Always dereference with the canonical va-list type.
9606         (maybe_emit_free_warning): Handle MEM_REF.
9607         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
9608         memmove to memcpy.
9609         * builtins.c (fold_builtin_memory_op): Use ref-all types
9610         for all memcpy foldings.
9611         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
9612         (build_outer_var_ref): Likewise.
9613         (scan_omp_1_op): Likewise.
9614         (lower_rec_input_clauses): Likewise.
9615         (lower_lastprivate_clauses): Likewise.
9616         (lower_reduction_clauses): Likewise.
9617         (lower_copyprivate_clauses): Likewise.
9618         (expand_omp_atomic_pipeline): Likewise.
9619         (expand_omp_atomic_mutex): Likewise.
9620         (create_task_copyfn): Likewise.
9621         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
9622         Remove old union trick.  Initialize constant offsets.
9623         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
9624         INDIRECT_REF.  Init base_alias_set properly.
9625         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
9626         (vn_reference_fold_indirect): Adjust for MEM_REFs.
9627         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
9628         for ARRAY_REFs.
9629         (may_insert): Remove.
9630         (visit_reference_op_load): Do not test may_insert.
9631         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
9632         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
9633         a field to store the constant offset this op applies.
9634         (run_scc_vn): Adjust prototype.
9635         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
9636         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
9637         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
9638         bother about volatile qualifiers on pointers.
9639         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
9640         * tree-ssa-loop-ivopts.c
9641         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
9642         (strip_offset_1): Likewise.
9643         (find_interesting_uses_address): Replace INDIRECT_REF handling with
9644         MEM_REF handling.
9645         (get_computation_cost_at): Likewise.
9646         * ipa-pure-const.c (check_op): Handle MEM_REF.
9647         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
9648         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
9649         and constants.
9650         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
9651         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
9652         (eliminate_local_variables_1): Likewise.
9653         (create_call_for_reduction_1): Likewise.
9654         (create_loads_for_reductions): Likewise.
9655         (create_loads_and_stores_for_name): Likewise.
9656         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
9657         (ssa_accessed_in_tree): Handle MEM_REF.
9658         (ssa_accessed_in_assign_rhs): Likewise.
9659         (update_type_size): Likewise.
9660         (analyze_accesses_for_call_stmt): Likewise.
9661         (analyze_accesses_for_assign_stmt): Likewise.
9662         (transform_access_sites): Likewise.
9663         (transform_allocation_sites): Likewise.
9664         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
9665         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
9666         not handle INDIRECT_REF.
9667         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
9668         (cond_store_replacement): Likewise.
9669         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
9670         MEM_REF, no not handle INDIRECT_REFs.
9671         (insert_into_preds_of_block): Properly initialize avail.
9672         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
9673         for ARRAY_REFs.  Properly handle reference lookups that
9674         require a bit re-interpretation.
9675         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
9676         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
9677         (build_ref_for_offset_1): Remove.
9678         (build_ref_for_offset): Build MEM_REFs.
9679         (gate_intra_sra): Disable for now.
9680         (sra_ipa_modify_expr): Handle MEM_REF.
9681         (ipa_early_sra_gate): Disable for now.
9682         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
9683         MEM_REF handling.
9684         (disqualify_base_of_expr): Likewise.
9685         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
9686         MEM_REF handling.
9687         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
9688         Use mem_ref_offset.  Remove bogus folding.
9689         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
9690         (make_fancy_name_1): Add support for MEM_REF.
9691         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
9692         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
9693         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
9694         (compute_complex_ancestor_jump_func): Likewise.
9695         (ipa_analyze_virtual_call_uses): Likewise.
9696         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
9697         INDIRECT_REF folding with more generalized MEM_REF folding.
9698         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
9699         (forward_propagate_addr_into_variable_array_index): Also handle
9700         &ARRAY + I in addition to &ARRAY[0] + I.
9701         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
9702         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
9703         creates assignments with overlap.
9704         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
9705         (get_frame_field): Likewise.
9706         (get_nonlocal_debug_decl): Likewise.
9707         (convert_nonlocal_reference_op): Likewise.
9708         (struct nesting_info): Add mem_refs pointer-set.
9709         (create_nesting_tree): Allocate it.
9710         (convert_local_reference_op): Insert to be folded mem-refs.
9711         (fold_mem_refs): New function.
9712         (finalize_nesting_tree_1): Perform defered folding of mem-refs
9713         (free_nesting_tree): Free the pointer-set.
9714         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
9715         (vectorizable_load): Likewise.
9716         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
9717         (propagate_with_phi): Likewise.
9718         * tree-object-size.c (addr_object_size): Handle MEM_REFs
9719         instead of INDIRECT_REFs.
9720         (compute_object_offset): Handle MEM_REF.
9721         (plus_stmt_object_size): Handle MEM_REF.
9722         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
9723         for &MEM_REF.
9724         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
9725         (symbol_marked_for_renaming): Likewise.
9726         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
9727         (fold-const.o): Add $(TREE_FLOW_H).
9728         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
9729         (find_func_clobbers): Likewise.
9730         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
9731         (decompose_access): Likewise.
9732         (replace_field_acc): Likewise.
9733         (replace_field_access_stmt): Likewise.
9734         (insert_new_var_in_stmt): Likewise.
9735         (get_stmt_accesses): Likewise.
9736         (reorg_structs_drive): Disable.
9737         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
9738         (ix86_canonical_va_list_type): Likewise.
9739
9740 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9741
9742         PR other/44566
9743         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
9744         * target.def (struct gcc_target): Replace enum reg_class with
9745         reg_class_t in hook argument / return types.
9746         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
9747         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
9748         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
9749         * targhooks.h (default_branch_target_register_class): Likewise.
9750         (default_ira_cover_classes, default_secondary_reload): Likewise.
9751         (default_memory_move_cost, default_register_move_cost): Likewise.
9752         * targhooks.c (default_branch_target_register_class): Likewise.
9753         (default_ira_cover_classes, default_secondary_reload): Likewise.
9754         (default_memory_move_cost, default_register_move_cost): Likewise.
9755         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
9756         * bt-load.c (branch_target_load_optimize): Likewise.
9757         * ira.c (setup_cover_and_important_classes): Likewise.
9758         * ira-costs.c (copy_cost): Likewise.
9759         * reload1.c (emit_input_reload_insns): Likewise.
9760         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
9761         * config/frv/frv.c (frv_secondary_reload): Likewise.
9762         * config/s390/s390.c (s390_secondary_reload): Likewise.
9763         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
9764         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
9765         (ix86_register_move_cost): Likewise.
9766         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
9767         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
9768         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
9769         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
9770         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
9771         (rs6000_ira_cover_classes): Likewise.
9772         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
9773         * config/picochip/picochip-protos.h (picochip_secondary_reload):
9774         Likewise.
9775         * config/pa/pa.c (pa_secondary_reload): Likewise.
9776         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
9777         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
9778         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
9779         * doc/tm.texi: Regenerate.
9780
9781 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
9782
9783         PR bootstrrap/44726
9784         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
9785         use.
9786         (build_alias_set_optimal_p): Likewise.
9787         (build_base_obj_set_for_drs): Likewise.
9788
9789 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
9790
9791         * target.def: Remove comment about licensing problems of function
9792         declarations.
9793
9794         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
9795         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
9796         * doc/tm.texi: Regenerate.
9797
9798         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
9799         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
9800
9801         * target.def (enum_va_list_p): Use DEFHOOK.
9802         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
9803         Rename ptype to ptree.
9804         * doc/tm.texi: Regenerate.
9805
9806         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
9807         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
9808         * doc/tm.texi: Regenerate.
9809
9810         * target.def (memory_move_cost): Use DEFHOOK.
9811         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
9812         Rename regclass AKA class to rclass.
9813         * doc/tm.texi: Regenerate.
9814
9815         * target.def (pragma_parse): Use DEFHOOK.
9816         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
9817         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
9818         * doc/tm.texi: Regenerate.
9819
9820         * target.def (pass_by_reference): Use DEFHOOK.
9821         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
9822         * doc/tm.texi: Regenerate.
9823
9824         * target.def (resolve_overloaded_builtin): Rename params to arglist.
9825         Use DEFHOOK.
9826         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
9827         * doc/tm.texi: Regenerate.
9828
9829         * target.def (return_pops_args): Use DEFHOOK.
9830         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
9831         Rename stack-size to size.
9832         * doc/tm.texi: Regenerate.
9833
9834         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
9835         last-sched_cycle to last_clock, cur_cycle to clock.
9836         * doc/tm.texi.in: Use @hook.
9837         * doc/tm.texi: Regenerate.
9838
9839         * target.def (print_operand, print_operand_address): Update comment.
9840         (print_operand_punct_valid_p): Likewise.
9841
9842 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9843
9844         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
9845         to rtl.h.
9846         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
9847         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
9848         * rtl-error.h: New.
9849         * regrename.c: Do not include toplev.h. Include rtl-error.h.
9850         * rtl-error.c: Likewise.
9851         * reload.c: Likewise.
9852         * recog.c:  Likewise.
9853         * sel-sched.c: Likewise.
9854         * function.c: Likewise.
9855         * reg-stack.c: Likewise.
9856         * cfgrtl.c: Likewise.
9857         * reload1.c: Likewise.
9858         * final.c: Include rtl-error.
9859         * Makefile.in: Adjust dependencies.
9860
9861 2010-06-30  Jan Hubicka  <jh@suse.cz>
9862
9863         PR middle-end/PR44706
9864         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
9865         to return the value.
9866
9867 2010-06-30  Michael Matz  <matz@suse.de>
9868
9869         PR bootstrap/44699
9870         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
9871         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
9872         a gimple reg, attach the original VDEF to the last store in the
9873         sequence.
9874
9875 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
9876
9877         PR other/44034
9878         * config/darwin.c (darwin_override_options): Use renamed
9879         targetm.asm_out.emit_unwind_label.
9880
9881 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9882
9883         PR tree-optimization/39799
9884         * tree-inline.c (remap_ssa_name): Initialize variable only if
9885         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9886
9887 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
9888
9889         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
9890
9891 2010-06-30  Richard Guenther  <rguenther@suse.de>
9892
9893         PR target/44722
9894         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
9895         against oscillation with reverse peephole2.
9896
9897 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
9898
9899         PR target/44721
9900         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9901         Fix last commit.
9902
9903 2010-06-30  Nick Clifton  <nickc@redhat.com>
9904
9905         * config/rx/rx-modes.def: New file.
9906         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
9907         (CC_REGNUM): Define.
9908         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
9909         register.
9910         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
9911         (SELECT_CC_MODE): Define.
9912         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
9913         (reg:CC CC_REG) instead of (cc0).
9914         (attr "cc"): Delete.
9915         (cbranchsi4): Do not split compare and branch here. Instead move
9916         it to...
9917         (cbranchsi4_<code>): ... here.  New patterns.
9918         (cmpsi): Call rx-compare_redundant to find out if it is necessary
9919         to emit the compare instruction.
9920         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
9921         cc_status flags.
9922         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
9923         FIRST_PSEUDO_REGNUM.
9924         (rx_expand_prologue, rx_expand_epilogue): Likewise.
9925         (rx_notice_update_cc): Delete.
9926         (rx_cc_modes_compatible): New function.
9927         (flags_needed_for_conditional): New function.
9928         (flags_from_mode): New function.
9929         (rx_compare_redundant): New function - scans backwards through
9930         insn list to find out if condition flags are already set correctly.
9931         (TARGET_CC_MODES_COMPATIBLE): Define.
9932         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
9933
9934         * config/rx/rx.h (BRANCH_COST): Define.
9935         (REGISTER_MOVE_COST): Define.
9936         * config/rx/predicates (rx_source_operand): Allow all constant types.
9937         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
9938         (tstsi4): New pattern.
9939         * config/rx/rx.c (rx_memory_move_cost): Define.
9940         (TARGET_MEMORY_MOVE_COST): Define.
9941
9942 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9943
9944         * tree.h (block_may_fallthru): Declare here.
9945         * tree-flow.h (block_may_fallthru): Do not declare here.
9946         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
9947         bitmap.h
9948         * Makefile.in (c-typeck.o): Update dependencies.
9949
9950 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
9951
9952         PR debug/44694
9953         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
9954         * cselib.c (cfa_base_preserved_regno): New static variable.
9955         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
9956         of REGNO (cfa_base_preserved_val->locs->loc).
9957         (cselib_preserve_cfa_base_value): Add regno argument, set
9958         cfa_base_preserved_regno to it.
9959         (cselib_invalidate_regno): Allow removal of registers other than
9960         cfa_base_preserved_regno from cfa_base_preserved_val.
9961         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
9962         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
9963         of MEM addresses, if not on LHS.
9964         (reverse_op): Don't add reverse ops for cfa_base_rtx.
9965         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
9966
9967 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
9968
9969         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
9970         static variables.
9971         (peep2_buf_position): New static function.
9972         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
9973         peephole2_optimize): Use it.
9974         (peep2_attempt, peep2_update_life): New static functions, broken out
9975         of peephole2_optimize.
9976         (peep2_fill_buffer): New static function.
9977         (peephole2_optimize): Change the main loop to try to fill the buffer
9978         with the maximum number of insns before matching them against
9979         peepholes.  Use a forward scan.  Remove special case for targets with
9980         conditional execution.
9981         * genrecog.c (change_state): Delete dead code.
9982         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
9983         Rewrite so as not to expect the second insn to have had a peephole
9984         applied yet.
9985
9986 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
9987
9988         * genhooks.c (emit_findices): Cast field precision to int.
9989         (emit_documentation): Likewise.
9990
9991 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
9992
9993         PR tree-optimization/43801
9994         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
9995         if old_decl was DECL_ONE_ONLY.
9996
9997         PR debug/44668
9998         * dwarf2out.c (add_accessibility_attribute): New function.
9999         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
10000         instead of adding DW_AT_accessibility manually.
10001         (gen_enumeration_type_die, gen_struct_or_union_type_die,
10002         gen_typedef_die): Use it.
10003
10004 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10005
10006         * vmsdbgout.c (full_name): Just output the file name if not native.
10007
10008 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10009
10010         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
10011         (funcnam_table): New static table.
10012         (funcnum_table): New static table.
10013         (write_rtnbeg): Write value saved in funcnum_table.
10014         (write_rtnend): Write value saved in funcnum_table.
10015         (vmsdbgout_begin_function): Save current function info in
10016         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
10017         (vmsdbgout_finish): Iterate over funcnum_table.
10018
10019 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10020
10021         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
10022         (vmsdbgout_type_decl): Declare
10023         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
10024         (FUNC_EPILOGUE_LABEL): New macro
10025         (vmsdbgout_begin_epilogue): New function.
10026         (vmsdbgout_type_decl): New function.
10027
10028 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10029
10030         * vmsdbg.h: Update copyright.
10031
10032 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
10033
10034         * vmsdbg.h (DST_K_TBG): New DST constant.
10035         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
10036         (write_modbeg): Cast module_language to avoid warning.
10037         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
10038
10039 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10040
10041         PR other/44034
10042         * target.def, doc/tm.texi.in, genhooks.c: New files.
10043         * target.h: Instead of defining individual hook members,
10044         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
10045         include target.def.
10046         * target-def.h: Instead of defining individual hook initializers,
10047         include target-hooks-def.h.
10048         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
10049         targetm.live_on_entry -> targetm.extra_live_on_entry
10050         targetm.sched.md_finish ->targetm.sched.finish
10051         targetm.sched.md_init -> targetm.sched.init
10052         targetm.sched.md_init_global -> targetm.sched.init_global
10053         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
10054         targetm.asm_out.except_table_label ->
10055           targetm.asm_out.emit_except_table_label
10056         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
10057         targetm.target_help -> targetm.help
10058         targetm.vectorize.builtin_support_vector_misalignment ->
10059           targetm.vectorize.support_vector_misalignment
10060         targetm.file_start_app_off -> targetm.asm_file_start_app_off
10061         targetm.file_start_file_directive ->
10062          targetm.asm_file_start_file_directive
10063         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
10064         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
10065         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
10066         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
10067           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
10068         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
10069           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
10070         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
10071         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
10072         * Makefile.in (TARGET_H): Depend on target.def.
10073         (TARGET_DEF_H): Depend on target-hooks-def.h.
10074         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
10075         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
10076         * doc/tm.texi: Regenerate.
10077
10078         * Makefile.in (s-tm-texi): Remove stray tab / rule.
10079
10080         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
10081         (targetm.sched.init): Likewise.
10082
10083 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10084
10085         PR bootstrap/44713
10086         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
10087         (function_arg_advance_32): Const-ify TYPE parameter.
10088         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
10089         (ix86_function_arg_advance): Change type of NAMED to bool.
10090         (function_arg_32): Const-ify CUM and TYPE parameters.
10091         (function_arg_64): Likewise.  Change type of NAMED to bool.
10092         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
10093         to bool.
10094         (ix86_function_arg): Change type of NAMED to bool.
10095         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
10096         last argument as a bool.
10097
10098 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
10099
10100         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
10101         (OVERRIDE_OPTIONS): Add note of obsolescence.
10102         Replace references with references to TARGET_OPTION_OVERRIDE.
10103         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
10104          the macro).
10105         * targhooks.c (default_target_option_override): New function.
10106         * targhooks.h (default_target_option_override): Declare.
10107         * target.h (struct gcc_target): Add override member to
10108         target_option member.
10109         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
10110         targetm.target_option.override call.
10111         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
10112         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
10113
10114 2010-06-29  Jan Hubicka  <jh@suse.cz>
10115
10116         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
10117
10118 2010-06-29  Jan Hubicka  <jh@suse.cz>
10119
10120         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
10121         unreachable.
10122         (rebuild_frequencies): New function.
10123         * predict.h (rebuild_frequencies): Declare.
10124         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
10125         entry block and edge reaching new_entry.
10126         (tree_function_versioning): When doing partial cloning, rebuild
10127         frequencies when done.
10128         * passes.c (execute_function_todo): Use rebild_frequencies.
10129
10130 2010-06-29  Richard Guenther  <rguenther@suse.de>
10131
10132         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
10133         * tree-flow.h (enum noalias_state): Remove.
10134         (struct var_ann_d): Remove noalias_state member.
10135
10136 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
10137
10138         PR target/43902
10139         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
10140         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
10141         (maddhidi4): Likewise.
10142
10143         Revert parts of the change for PR25130.
10144         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
10145         MEM_ALIAS_SET.
10146
10147 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10148
10149         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
10150         targetm.calls.function_incoming_arg, and
10151         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
10152         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
10153         * target.h (struct gcc_target): Add function_arg_advance,
10154         function_arg, and function_incoming_arg fields.
10155         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
10156         (TARGET_FUNCTION_INCOMING_ARG): Define.
10157         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
10158         and TARGET_FUNCTION_INCOMING_ARG.
10159         * targhooks.h (default_function_arg_advance): Declare.
10160         (default_function_arg, default_function_incoming_arg): Declare.
10161         * targhooks.c (default_function_arg_advance): New function.
10162         (default_function_arg, default_function_incoming_arg): New function.
10163         * config/i386/i386.c (function_arg_advance): Rename to...
10164         (ix86_function_arg_advance): ...this.  Make static.
10165         (function_arg): Rename to...
10166         (ix86_function_arg): ...this.  Make static.
10167         (TARGET_FUNCTION_ARG_ADVANCE): Define.
10168         (TARGET_FUNCTION_ARG): Define.
10169         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
10170         (FUNCTION_ARG): Delete.
10171         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
10172         (function_arg): Delete prototype.
10173
10174 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
10175
10176         * reginfo.c (init_reg_sets_1): Adjust comments.
10177         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
10178         * calls.c (prepare_call_address): Likewise.
10179         (emit_call_1): Use targetm.calls.return_pops_args.
10180         (expand_call): Likewise.
10181         * function.c (assign_parms): Likewise.
10182         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
10183         * target.h (struct gcc_target) [struct calls]: Add
10184         return_pops_args field.
10185         * targhooks.h (default_return_pops_args): Declare.
10186         * targhooks.c (default_return_pops_args): Define.
10187         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
10188         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
10189         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
10190         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
10191         documentation.
10192         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
10193         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
10194         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
10195         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
10196         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
10197         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
10198         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
10199         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
10200         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
10201         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
10202         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
10203         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
10204         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
10205         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
10206         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
10207         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
10208         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
10209         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
10210         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
10211         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
10212         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
10213         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
10214         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
10215         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
10216         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
10217         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
10218         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
10219         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
10220         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
10221         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
10222         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
10223         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
10224         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
10225         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
10226         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
10227         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
10228         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
10229         * config/i386/i386.c (ix86_return_pops_args): Make static.
10230         Constify arguments.
10231         (TARGET_RETURN_POPS_ARGS): Define.
10232         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
10233         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
10234         (TARGET_RETURN_POPS_ARGS): Define.
10235         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
10236         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
10237         (TARGET_RETURN_POPS_ARGS): Define.
10238
10239 2010-06-29  Richard Guenther  <rguenther@suse.de>
10240
10241         PR middle-end/44667
10242         * tree-inline.c (initialize_inlined_parameters): Make sure
10243         to remap the inlined parameter variable substitutions types.
10244
10245 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
10246
10247         PR rtl-optimization/44659
10248         * combine.c (make_compound_operation) <SUBREG>: Do not return the
10249         result of force_to_mode if it partially re-expanded the compound.
10250
10251 2010-06-28  Jan Hubicka  <jh@suse.cz>
10252
10253         PR middle-end/44671
10254         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
10255         RESULT_DECL.
10256
10257 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
10258
10259         * double-int.h (force_fit_type_double): Remove declaration.
10260         * double-int.c (force_fit_type_double): Move to tree.c.
10261         * tree.h (force_fit_type_double): Declare.
10262         * tree.h (force_fit_type_double): Moved from double-int.c. Use
10263         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
10264         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
10265         * convert.c (convert_to_pointer): Adjust call to
10266         force_fit_type_double.
10267         * tree-vrp.c (extract_range_from_assert,
10268         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
10269         * fold-const.c: Update comment.
10270         (int_const_binop, fold_convert_const_int_from_int,
10271         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
10272         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
10273         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
10274         round_up_loc): Adjust call to force_fit_type_double.
10275
10276 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
10277
10278         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
10279
10280 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10281
10282         * tree-sra.c (convert_callers): New parameter, change fndecls of
10283         recursive calls.
10284         (modify_function): Pass the old decl to convert_callers.
10285
10286 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10287
10288         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
10289         ipa_check_create_node_params and ipa_initialize_node_params with
10290         checking asserts they are not necessary.
10291
10292 2010-06-28  Jan Hubicka  <jh@suse.cz>
10293
10294         PR tree-optimization/44687
10295         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
10296
10297 2010-06-28  Martin Jambor  <mjambor@suse.cz>
10298
10299         PR c++/44535
10300         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
10301         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
10302         instead of BINFO_BASE_BINFO.
10303
10304 2010-06-28  Michael Matz  <matz@suse.de>
10305
10306         PR middle-end/44592
10307         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
10308         proper VDEF chain for intermediate stores in the sequence.
10309
10310 2010-06-28  Jan Hubicka  <jh@suse.cz>
10311
10312         PR tree-optimization/44357
10313         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
10314         uninlinable functions.
10315
10316 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
10317
10318         * config.gcc (powerpc*-*-*): Handle titan.
10319         * config/rs6000/rs6000.c (titan_cost): New costs.
10320         (rs6000_override_options): Add "titan" to processor_target_table.
10321         Add Titan to branch alignment logic.
10322         Correctly set rs6000_cost for titan.
10323         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
10324         * config/rs6000/titan.md: New file.
10325         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
10326
10327 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10328
10329         * tree-browser.c (TB_history_stack): Convert to a VEC.
10330         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
10331         (TB_history_prev): Likewise.
10332
10333 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
10334
10335         * vec.h (vec_heap_free): Add parentheses around free.
10336
10337 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
10338
10339         * system.h: Poison GCC_EXCEPT_H for front-end files.
10340
10341         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
10342         langhook.
10343         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
10344         Define to NULL by default.
10345         * except.h: Define GCC_EXCEPT_H.
10346         (doing_eh): Remove prototype.
10347         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
10348         (lang_protect_cleanup_actions): Remove.
10349         * except.c (lang_protect_cleanup_actions): Remove.
10350         (doing_eh): Remove.
10351         (gen_eh_region): Don't check doing_eh here.
10352         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
10353         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
10354         instead of lang_protect_cleanup_actions.
10355         * omp-low.c (maybe_catch_exception): Likewise.
10356         * Makefile.in: Update dependencies.
10357
10358 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
10359
10360         * cgraph.h (struct varpool_node): new used_from_object_file flag.
10361         (struct cgraph_local_info): new used_from_object_file flag.
10362         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
10363         (cgraph_clone_node): initialize used_from_object_file.
10364         (cgraph_create_virtual_clone): initialize used_from_object_file.
10365         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
10366         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
10367         when compiling with -fwhole-program.
10368         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
10369         internal resolver.
10370         * ipa.c (function_and_variable_visibility): Set externally_visible
10371         flag of varpool_node if used_from_object_file flag is set.
10372         (cgraph_externally_visible_p): check used_from_object_file flag.
10373         * doc/invoke.texi (-fwhole-program option): Change description of
10374         externally_visible attribute accordingly.
10375         * doc/extend.texi (externally_visible): Ditto.
10376
10377 2010-06-27  Jan Hubicka  <jh@suse.cz>
10378
10379         * params.def (max-inline-insns-auto): Default to 40.
10380         * doc/invoke.texi (max-inline-insns-auto): Document the change.
10381
10382 2010-06-27  Jan Hubicka  <jh@suse.cz>
10383
10384         PR middle-end/44671
10385         PR middle-end/44686
10386         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
10387         signature change.
10388         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
10389         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
10390
10391 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
10392
10393         * target.h (struct gcc_target): Add register_move_cost field.
10394         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
10395         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
10396         * targhooks.c (default_register_move_cost): New function.
10397         * targhooks.h (default_register_move_cost): Declare function.
10398         * defaults.h (REGISTER_MOVE_COST): Delete.
10399         * ira-int.h (ira_register_move_cost): Update comment.
10400         * ira.c (ira_register_move_cost): Update comment.
10401         * reload.h (register_move_cost): Declare.
10402         * reginfo.c (register_move_cost): New function.
10403         (move_cost): Update comment.
10404         (init_move_cost, memory_move_secondary_cost): Replace
10405         REGISTER_MOVE_COST with register_move_cost.
10406         * postreload.c (reload_cse_simplify_set): (Ditto.).
10407         * reload.c (find_valid_class, find_reloads): (Ditto.).
10408         * reload1.c (choose_reload_regs): (Ditto.).
10409         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
10410         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
10411         * doc/md.texi (can_create_pseudo_p): Update documentation.
10412
10413         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
10414         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
10415         * config/i386/i386.h (ix86_memory_move_cost): Make static.
10416         (TARGET_MEMORY_MOVE_COST): Define.
10417
10418         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
10419         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
10420         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
10421         (TARGET_MEMORY_MOVE_COST): Define.
10422
10423 2010-06-27  Richard Guenther  <rguenther@suse.de>
10424
10425         PR tree-optimization/44683
10426         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
10427         false edge from the inverted condition.
10428
10429 2010-06-27  Richard Guenther  <rguenther@suse.de>
10430
10431         PR middle-end/44684
10432         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
10433         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
10434         for register LHS.  Or non-store assignments.
10435
10436 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
10437
10438         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
10439         (sparc_emit_set_const64): Likewise.  Remove disabled code.
10440         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
10441         (sparc_emit_set_const64): Likewise.
10442
10443 2010-06-26  Catherine Moore  <clm@codesourcery.com>
10444
10445         * config/mips/mips.md (alu_type): New attribute.
10446         (type): Infer type from alu_type.
10447         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
10448         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
10449         *subsi3_extended, negsi2, negdi2, *low<mode>,
10450         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
10451         xor<mode>3, *nor<mode>3,
10452         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
10453         *zero_extendhi_truncqi):  Set alu_type instead of type.
10454
10455 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
10456
10457         * config/alpha/alpha.c (alpha_need_linkage): Adjust
10458         splay_tree_new_ggc call.
10459         (alpha_use_linkage): Likewise.
10460
10461 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10462
10463         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
10464         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
10465         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
10466         (static_specs): Remove switches_need_spaces.
10467         (process_command, do_self_spec): Hardcode handling "-o" instead of
10468         checking switches_need_spaces.
10469         * system.h (SWITCHES_NEED_SPACES): Poison.
10470
10471 2010-06-26  Richard Guenther  <rguenther@suse.de>
10472
10473         PR tree-optimization/44393
10474         * tree-loop-distribution.c (generate_loops_for_partition): Fix
10475         stmt removal and VOP renaming.
10476         (generate_memset_zero): Remove redundant stmt updating.
10477         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
10478         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
10479
10480 2010-06-26  Jan Hubicka  <jh@suse.cz>
10481
10482         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
10483         edges comming from header are equivalent.
10484         (visit_bb): Handle PHIs correctly.
10485         * tree-inline.c (copy_phis_for_bb): Be able to copy
10486         PHI from entry edge.
10487         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
10488
10489 2010-06-26  Richard Guenther  <rguenther@suse.de>
10490
10491         PR middle-end/44674
10492         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
10493         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
10494
10495 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
10496
10497         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
10498         add_infile, alloc_switch): New.
10499         (process_command): Remove variable lang_n_infiles.  Process
10500         options in a single pass.  Use new functions for allocating
10501         infiles and switches arrays.  Properly skip operands of
10502         -Xpreprocessor and -Xassembler.
10503
10504 2010-06-26  Jan Hubicka  <jh@suse.cz>
10505
10506         PR middle-end/44671
10507         * cgraphunit.c (cgraph_function_versioning): Remove wrong
10508         cgraph_make_decl_local call; fix typo copying RTL data.
10509
10510 2010-06-25  DJ Delorie  <dj@redhat.com>
10511
10512         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
10513         (m32c_output_aligned_common): Likewise.
10514         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
10515         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
10516         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
10517         (m32c_register_pragmas): Register it.
10518         * config/m32c/m32c.c (m32c_get_pragma_address): New.
10519         (m32c_insert_attributes): Set #pragma address decls volatile.
10520         (pragma_entry_eq): New.
10521         (pragma_entry_hash): New.
10522         (m32c_note_pragma_address): New.
10523         (m32c_get_pragma_address): New.
10524         (m32c_output_aligned_common): New.
10525         * doc/extend.texi: Document the new pragma.
10526
10527         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
10528         also.
10529         * config/m32c/predicates.md (m32c_any_operand): Check the code
10530         instead of memory_operand so as to allow matching volatile MEMs.
10531         (m32c_nonimmediate_operand): Likewise.
10532         (mra_operand): Allow volatiles.
10533
10534 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
10535
10536         PR debug/44610
10537         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
10538         address if the offset is unknown.
10539
10540 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
10541
10542         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
10543         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
10544         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
10545         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
10546         to ia64_start_function. Invoke it.
10547         * config/ia64/ia64.c (ia64_start_function): Call new function
10548         dwarf2out_vms_debug_main_pointer.
10549
10550 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10551
10552         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
10553         statements computing the true predicate.
10554
10555 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10556
10557         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
10558         to boolean_true_node.
10559         (reset_bb_predicate): New.
10560         (predicate_bbs): Call reset_bb_predicate.
10561
10562 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10563
10564         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
10565         (tree_if_conversion): Returns true when something has been changed.
10566         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
10567         changed something.
10568
10569 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
10570
10571         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
10572         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
10573         * tree-if-conv.c: Include dbgcnt.h.
10574         (tree_if_conversion): Use if_conversion_tree to count the number of
10575         if-convertible loops.
10576
10577 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
10578
10579         * common.opt (fprefetch-loop-arrays): Re-define
10580         -fprefetch-loop-arrays as a tri-state option with the initial
10581         value of -1.
10582         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
10583         pass only when flag_prefetch_loop_arrays > 0.
10584         * toplev.c (process_options): Note that, with tri-states,
10585         flag_prefetch_loop_arrays>0 means prefetching is enabled.
10586         * config/i386/i386.c (override_options): Enable prefetching at -O3
10587         for a set of CPUs that sw prefetching is helpful.
10588         (software_prefetching_beneficial_p): New.  Return TRUE if software
10589         prefetching is beneficial for the given CPU.
10590
10591 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
10592
10593         PR rtl-optimization/44326
10594         * implicit-zee.c (find_removable_zero_extends): Replace
10595         INSN_P with NONDEBUG_INSN_P.
10596
10597 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10598
10599         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
10600         (struct ipa_node_params): Removed the modification_analysis_done flag.
10601         (ipa_is_param_modified): Removed.
10602         (ipa_analyze_node): Declare.
10603         (ipa_compute_jump_functions): Remove declaration.
10604         (ipa_count_arguments): Likewise.
10605         (ipa_detect_param_modifications): Likewise.
10606         (ipa_analyze_params_uses): Likewise.
10607         * ipa-prop.c (struct param_analysis_info): New type.
10608         (visit_store_addr_for_mod_analysis): Removed.
10609         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
10610         moved down in the file.
10611         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
10612         (ipa_count_arguments): Made static.
10613         (mark_modified): New function.
10614         (is_parm_modified_before_call): New function.
10615         (compute_pass_through_member_ptrs): New parameter parms_info, call
10616         is_parm_modified_before_call instead of ipa_is_param_modified.
10617         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
10618         it to compute_pass_through_member_ptrs.
10619         (ipa_compute_jump_functions): New parameter parms_info, pass it to
10620         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
10621         on the callee if it is analyzed.  Made static.
10622         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
10623         is_parm_modified_before_call instead of ipa_is_param_modified.
10624         (ipa_analyze_call_uses): New parameter parms_info, pass it to
10625         ipa_analyze_indirect_call_uses.
10626         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
10627         ipa_analyze_call_uses.
10628         (ipa_analyze_params_uses): New parameter parms_info, pass it to
10629         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
10630         (ipa_analyze_node): New function.
10631         (ipa_print_node_params): Do not dump the modified flag.
10632         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
10633         it.  Do not stream the modified parameter flag.
10634         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
10635         it.  Do not stream the modified parameter flag.
10636         * ipa-cp.c (ipcp_analyze_node): Removed.
10637         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
10638         with only a call to ipa_analyze_node.
10639         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
10640         node with only a call to ipa_analyze_node.
10641
10642 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10643
10644         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
10645
10646 2010-06-25  Jan Hubicka  <jh@suse.cz>
10647
10648         * tree-pass.h (pass_split_functions): Declare.
10649         * opts.c (decode_options): Enable function splitting at -O2
10650         * timevar.def (TV_IPA_FNSPLIT): New macro.
10651         * ipa-split.c: New file.
10652         * common.opt (-fpartial-inlining): New flag.
10653         * Makefile.in (ipa-split.o): New object file.
10654         * passes.c (init_optimization_passes): Add ipa-split.
10655         * params.def (partial-inlining-entry-probability): New parameters.
10656         * doc/invoke.texi (-fpartial-inlining): New.
10657
10658 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10659
10660         PR 44665
10661         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
10662         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
10663         (gimplify_expr): Likewise.
10664
10665 2010-06-25  Martin Jambor  <mjambor@suse.cz>
10666
10667         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
10668         statements instead of bailing out on them.
10669         (ipa_analyze_indirect_call_uses): Do not require that loads from the
10670         parameter are in the same BB as the condition.  Update comments.
10671
10672 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
10673
10674         PR middle-end/43866
10675         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
10676         true or always false, return NULL_TREE.
10677         (tree_unswitch_single_loop): Optimize conditions even when reaching
10678         max-unswitch-level parameter.  If num > 0, optimize first all conditions
10679         using entry checks, then do still reachable block discovery and consider
10680         only conditions in still reachable basic blocks in the loop.
10681
10682         PR tree-optimization/44539
10683         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
10684         the call doesn't have LHS, but has VDEF.
10685
10686 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10687
10688         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
10689         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
10690         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
10691         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
10692         * system.h (MODIFY_TARGET_NAME): Poison.
10693
10694 2010-06-25  Alan Modra  <amodra@gmail.com>
10695
10696         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
10697         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
10698         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
10699         CMODEL_LARGE as default.
10700         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
10701         (offsettable_ok_by_alignment): Delete.
10702         (rs6000_emit_move): Remove mcmodel=medium optimization.
10703
10704 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10705
10706         With large parts from Jim Wilson:
10707         PR target/43902
10708         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
10709         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10710         * optabs.c (optab_for_tree_code): Likewise.
10711         (expand_widen_pattern_expr): Likewise.
10712         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
10713         out of execute_optimize_widening_mul.
10714         (convert_plusminus_to_widen): New function.
10715         (execute_optimize_widening_mul): Use the two new functions.
10716         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
10717         Remove code to generate widening multiply-accumulate.  Add support
10718         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
10719         * gimple-pretty-print.c (dump_ternary_rhs): New function.
10720         (dump_gimple_assign): Call it when appropriate.
10721         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
10722         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
10723         (expand_gimple_stmt_1): Likewise.
10724         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
10725         WIDEN_MULT_MINUS_EXPR.
10726         * tree-ssa-operands.c (get_expr_operands): Likewise.
10727         * tree-inline.c (estimate_operator_cost): Likewise.
10728         * gimple.c (extract_ops_from_tree_1): Renamed from
10729         extract_ops_from_tree.  Add new arg for a third operand; fill it.
10730         (gimple_build_assign_stat): Support operations with three operands.
10731         (gimple_build_assign_with_ops_stat): Likewise.
10732         (gimple_assign_set_rhs_from_tree): Likewise.
10733         (gimple_assign_set_rhs_with_ops_1): Renamed from
10734         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
10735         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
10736         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
10737         WIDEN_MULT_MINUS_EXPR.
10738         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
10739         (extract_ops_from_tree_1): Adjust declaration.
10740         (gimple_assign_set_rhs_with_ops_1): Likewise.
10741         (gimple_build_assign_with_ops): Pass NULL for last operand.
10742         (gimple_build_assign_with_ops3): New macro.
10743         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
10744         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
10745         functions.
10746         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
10747         (verify_gimple_assign): Call it.
10748         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
10749         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
10750         functions for dealing with three-operand statements.
10751         * tree.c (commutative_ternary_tree_code): New function.
10752         * tree.h (commutative_ternary_tree_code): Declare it.
10753         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
10754         ternary statements.
10755         (gimple_assign_nonzero_warnv_p): Likewise.
10756         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
10757         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
10758         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
10759         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
10760         (struct hashtable_expr): New member ternary in the union.
10761         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
10762         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
10763         (iterative_hash_hashable_expr): Likewise.
10764         (print_expr_hash_elt): Handle EXPR_TERNARY.
10765         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
10766         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
10767         statements.  Handle GIMPLE_TERNARY_RHS.
10768
10769 2010-06-25  Jan Hubicka  <jh@suse.cz>
10770
10771         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
10772
10773 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
10774
10775         PR c/44517
10776         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
10777         parameters are not good.
10778         (c_parser_parameter_declaration): Error unknown type name if the type
10779         name can't start declaration specifiers.
10780
10781 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
10782
10783         * gcc.c (translate_options): Don't mention +e in comment.
10784         (process_command): Don't handle +e specially.
10785
10786 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
10787
10788         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
10789
10790         * ira-build.c (merge_hard_reg_conflicts): New function.
10791         (create_cap_allocno, copy_info_to_removed_store_destinations,
10792         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
10793         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
10794         (remove_unnecessary_allocnos, remove_low_level_allocnos)
10795         copy_nifo_to_removed_store_destination): Use them.
10796         * ira-lives.c (make_hard_regno_born): New function, split out of
10797         make_regno_born.
10798         (make_allocno_born): Likewise.
10799         (make_hard_regno_dead): New function, split out of make_regno_dead.
10800         (make_allocno_dead): Likewise.
10801         (inc_register_pressure): New function, split out of set_allocno_live.
10802         (dec_register_pressure): New function, split out of clear_allocno_live.
10803         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
10804         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
10805         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
10806         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
10807         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
10808         mark_pseudo_regno_live.
10809         (process_bb_node_lives): Use mark_pseudo_regno_live,
10810         make_hard_regno_born and make_allocno_dead.
10811         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
10812         set_allocno_live, clear_allocno_live): Delete functions.
10813
10814         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
10815         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
10816         functions.
10817         (ira_flattening): Use ira_parent_allocno.
10818         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
10819         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
10820
10821         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
10822         statement.
10823
10824         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
10825         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
10826         minmax_set_iter_cond, minmax_set_iter_next,
10827         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
10828         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
10829         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
10830         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
10831         uses changed.
10832
10833         * ira-int.h (struct live_range, live_range_t): Renamed from struct
10834         ira_allocno_live_range and allocno_live_range_t; all uses changed.
10835         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
10836         All uses changed.
10837
10838 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
10839
10840         * thumb2.md (thumb2_tlobits_cbranch): Delete.
10841         (peephole2 to convert zero_extract/compare of single bit to
10842          lshift/compare): New.
10843
10844 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
10845
10846         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
10847         recursive call and call to 'int_const_binop'.
10848         (build_range_check, fold_cond_expr_with_comparison, unextend,
10849         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
10850         multiple_of_p): Adjust call to const_binop.
10851
10852 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
10853
10854         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
10855         determine size of XFmode operand.
10856         (XFmode extended DFmode push splitter): Ditto.
10857         (XFmode extended SFmode push splitter): Ditto.
10858
10859 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
10860
10861         PR target/44588
10862         * config/i386/i386.md (extract_code): New.
10863         (<u>divmodqi4): Likewise.
10864         (divmodhiqi3): Likewise.
10865         (udivmodhiqi3): Likewise.
10866         (<u>divqi3): Remvoved.
10867
10868 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
10869
10870         PR middle-end/44492
10871         * recog.h (struct recog_data): Add is_asm field.
10872         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
10873         present in constraints of inline-asm operand and memory operand
10874         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
10875         (extract_insn): Initialize recog_data.is_asm.
10876         * doc/md.texi (Constraints): Document operand side-effect rules.
10877
10878 2010-06-24  Andi Kleen  <ak@linux.intel.com>
10879
10880         * c-parser.c (c_parser_conditional_expression): Call
10881         warn_for_omitted_condop.
10882         * doc/invoke.texi: Document omitted condop warning.
10883
10884 2010-06-24  Nick Clifton<nickc@redhat.com>
10885
10886         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
10887         insn in the sequence is a jump insn before setting its label.
10888
10889 2010-06-24  Alan Modra  <amodra@gmail.com>
10890
10891         * collect2.c (main): Match exactly --version and --help.
10892
10893 2010-06-24  DJ Delorie  <dj@redhat.com>
10894
10895         * config/m32c/m32c-pragma.c: Don't include rtl.h.
10896
10897 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
10898
10899         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
10900         using X87MODEF mode iterator.
10901         (pushsf splitter): Macroize splitter using P mode iterator.
10902         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
10903         mode iterator.
10904
10905         (*movxf_internal): Rename from *movxf_integer.
10906         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
10907         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
10908         (*movdf_internal): Rename from *movdf_integer.
10909         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
10910         (*movsf_internal): Rename from *movdf_1.
10911
10912 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
10913
10914         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
10915         (const_gimple_seq_node): Removed typedefs.
10916
10917         * gimple.h (gimple_seq_node_d, gimple_seq_node)
10918         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
10919
10920 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
10921
10922         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
10923         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
10924         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
10925         and CODE_FOR_vec_extract_lo_v4df.
10926
10927         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
10928         Changed to define_insn_and_split.
10929         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
10930         (vec_extract_lo_v16hi): Likewise.
10931         (vec_extract_lo_v32qi): Likewise.
10932         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
10933         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
10934
10935 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
10936
10937         PR target/44640
10938         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
10939         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
10940         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
10941         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
10942         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
10943
10944         PR target/44640
10945         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
10946
10947         PR other/44644
10948         * df-core.c (struct df): Rename to df_d.
10949         * df.h (struct df): Likewise.
10950         * dse.h (struct df): Remove forward declaration.
10951         * recog.h (struct insn_data): Rename to:
10952         (struct_insn_data_d).  Adjusted all users.
10953
10954 2010-06-23  Arnaud Charlet  <charlet@adacore.com
10955
10956         PR ada/22220
10957         * doc/install.texi: Update requirements to build GNAT.
10958
10959 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
10960
10961         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
10962         enum type.
10963         (m68k_sched_attr_opx_type): Remove unreachable return.
10964         (m68k_sched_attr_opy_type): Likewise.
10965         (m68k_sched_attr_size): Likewise.
10966         (sched_get_opxy_mem_type): Likewise.
10967         (m68k_sched_attr_op_mem): Likewise.
10968
10969 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
10970
10971         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
10972         new statement and adjust VDEF only if necessary.  Remove superfluous
10973         call to maybe_clean_or_replace_eh_stmt.
10974         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
10975         copy the flags.
10976         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
10977         * tree-inline.c (copy_bb): ...and not there.
10978
10979 2010-06-22  Cary Coutant  <ccoutant@google.com>
10980
10981         * dwarf2out.c (is_nested_in_subprogram): New function.
10982         (should_move_die_to_comdat): Use it.
10983         (copy_ancestor_tree): Don't mark DIEs here.
10984         (copy_decls_walk): Start walk from root of newly-added tree;
10985         mark DIEs here instead.
10986
10987 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
10988
10989         * config/i386/i386.md (unit): Also check sseishft1.
10990
10991 2010-06-22  Jan Hubicka  <jh@suse.cz>
10992
10993         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
10994         enabled.
10995
10996 2010-06-22  Jan Hubicka  <jh@suse.cz>
10997
10998         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
10999         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
11000         Return true if something changed.
11001         * df.h (df_confluence_function_n): Return bool.
11002         * df-core.c (df_worklist_propagate_forward,
11003         df_worklist_propagate_backward): Track changes and ages.
11004         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
11005         track ages.
11006         * dse.c (dse_confluence_n): Return always true.
11007
11008 2010-06-22  Jan Hubicka  <jh@suse.cz>
11009
11010         * bitmap.c (bitmap_clear_bit): Micro optimize.
11011
11012 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
11013
11014         * config/i386/i386.md (SWI1248x): New mode iterator.
11015         (SWI48x): Ditto.
11016         (SWI12): Ditto.
11017         (SWI24): Ditto.
11018
11019         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
11020         SWI1248x mode iterator.
11021         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
11022         using SWI124 mode iterator.
11023         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
11024         mode iterator.
11025         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
11026         *pushdi2_prologue_rex64 using P mode iterator.
11027         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
11028         using SWI48 mode iterator.
11029         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
11030         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
11031         using SWI1248x mode iterator.
11032         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
11033         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
11034         SWI48 mode iterator.
11035         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
11036         iterator.
11037         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
11038         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
11039         SWI12 mode iterator.
11040         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
11041         SWI12 mode iterator.
11042         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
11043         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
11044         SWI24 mode iterator.
11045         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
11046         SWI48 mode iterator.
11047         (mov<mode>_insn_1): New expander.
11048         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
11049         using SWI48x mode iterator.
11050
11051         (*movoi_internal_avx): Rename from *movoi_internal.
11052         (*movti_internal_rex64): Rename from *movti_rex64.
11053         (*movti_internal_sse): Rename from *movti_sse.
11054         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
11055         (*movdi_internal): Rename from *movdi_2.
11056         (*movsi_internal): Rename from *movsi_1.
11057         (*movhi_internal): Rename from *movhi_1.
11058         (*movqi_internal): Rename from *movqi_1.
11059
11060         (insv): Update the call to gen_movsi_insv_1 for rename.
11061         * config/i386/i386.c (promote_duplicated_reg): Ditto.
11062
11063 2010-06-22  Jan Hubicka  <jh@suse.cz>
11064
11065         * passes.c (execute_function_todo): Move call of statistics_fini_pass
11066         to ...
11067         (execute_todo) ... this one.
11068
11069 2010-06-22  Alan Modra  <amodra@gmail.com>
11070
11071         PR target/44364
11072         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11073         * caller-save.c (insert_restore, insert_save): Use non-validate
11074         form of adjust_address.
11075
11076 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11077
11078         PR target/39690
11079         * config/pa/pa.c (override_options): Disable
11080         -freorder-blocks-and-partition.
11081
11082 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
11083
11084         PR target/44615
11085         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
11086
11087         * config/i386/i386.md (type): Add sseishft1
11088
11089         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
11090         (ppro_insn_load): Likewise.
11091         (ppro_insn_store): Likewise.
11092         (ppro_insn_both): Likewise.
11093
11094         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
11095         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
11096         for type.
11097         (*vec_extractv2di_1_avx): Likewise.
11098         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
11099         type.  Remove atom_unit.
11100         (*vec_extractv2di_1_sse2): Likewise.
11101
11102 2010-06-21  DJ Delorie  <dj@redhat.com>
11103
11104         * diagnostic.h (diagnostic_classification_change_t): New.
11105         (diagnostic_context): Add history and push/pop list.
11106         (diagnostic_push_diagnostics): Declare.
11107         (diagnostic_pop_diagnostics): Declare.
11108         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
11109         from pragmas in a history chain instead of the global table.
11110         (diagnostic_push_diagnostics): New.
11111         (diagnostic_pop_diagnostics): New.
11112         (diagnostic_report_diagnostic): Scan history chain to find state
11113         of diagnostics as of the diagnostic location.
11114         * opts.c (set_option): Pass UNKNOWN_LOCATION to
11115         diagnostic_classify_diagnostic.
11116         (enable_warning_as_error): Likewise.
11117         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
11118         use in the history chain.
11119         * doc/extend.texi: Document pragma GCC diagnostic changes.
11120
11121 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
11122
11123         * dwarf2out.c (add_linkage_name): New function.  Don't add
11124         anything to DW_TAG_member DIEs.
11125         (add_name_and_src_coords_attributes): Use it.
11126         (gen_variable_die): Call it for C++ static data members if
11127         specification is DW_TAG_member.
11128
11129         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
11130         C++ char16_t and char32_t.
11131
11132         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
11133         * genattrtab.c: Include vecprim.h.
11134         (cached_attrs, cached_attr_count, attrs_seen_once,
11135         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
11136         attrs_cached_after): New variables.
11137         (find_attrs_to_cache): New function.
11138         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
11139         (write_test_expr): Add attrs_cached argument, return it too,
11140         attempt to cache non-const attributes used more than once in
11141         a single case handling.
11142         (write_attr_get): Use find_attrs_to_cache, for caching candidates
11143         emit cached_* variables.  Adjust write_attr_set callers.
11144         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
11145         to find attributes that should be cached in this block.  Adjust
11146         write_test_expr callers.
11147         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
11148         callers.
11149         (make_automaton_attrs): Adjust write_test_expr caller.
11150
11151         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
11152         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
11153         (make_automaton_attrs): If find_tune_attr returns non-NULL,
11154         write separate internal_dfa_insn_code_* and insn_default_latency_*
11155         functions for each attribute's value and emit init_sched_attrs
11156         function and function pointers.
11157         * genattr.c (const_attrs, reservations): New variables.
11158         (gen_attr): Add const attributes to const_attrs vector.
11159         (check_tune_attr, find_tune_attr): New functions.
11160         (main): Add reservations to reservations vector.  If find_tune_attr
11161         returns true, add prototype for init_sched_attrs and make
11162         internal_dfa_insn_code and insn_default_latency function pointers,
11163         otherwise define init_sched_attrs as dummy macro.
11164         * cfgexpand.c: Include insn-attr.h.
11165         (gimple_expand_cfg): Call init_sched_attrs.
11166
11167         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
11168
11169         PR target/44575
11170         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
11171         va_arg from a set of register save slots into a temporary,
11172         if the container is bigger than type size, do the copying
11173         using smaller mode or using memcpy.
11174
11175         PR bootstrap/44426
11176         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
11177         prototype.
11178         (sel_print_to_dot): Remove macro.
11179         (sel_print): Likewise.  New prototype.
11180         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
11181         (sel_print): New function.
11182
11183 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11184
11185         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
11186         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
11187
11188 2010-06-21  Nick Clifton  <nickc@redhat.com>
11189
11190         * config/rx/rx.h (PTRDIFF_TYPE): Define.
11191         (SMALL_REGISTER_CLASS): Define (to zero).
11192         (PRINT_OPERAND): Delete.
11193         (PRINT_OPERAND_ADDRESS): Delete.
11194         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
11195         (rx_print_operand_address): Delete prototype.
11196         * config/rx/rx.c (rx_print_operand): Make static.
11197         Allow %H and %L to handle CONST_DOUBLEs.
11198         (rx_print_operand_address): Make static.
11199         (rx_gen_move_template): Rename local variable 'template' to
11200         out_template.
11201         (rx_function_arg): Do not pass unknown sized objects in registers.
11202         (TARGET_PRINT_OPERAND): Define.
11203         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11204
11205 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
11206
11207         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
11208
11209 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
11210
11211         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
11212         stack-alignment for simple leaf-functions.
11213
11214 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
11215
11216         * doc/install.texi: Document bootstrap-lto.
11217
11218 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
11219
11220         PR debug/44248
11221         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
11222         (input_function): Drop them here, if VTA is disabled.
11223
11224 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
11225
11226         PR target/44546
11227         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
11228         New predicate.
11229         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
11230         ix86_swapped_fp_comparsion_operator instead of
11231         ix86_fp_comparison_operator.
11232
11233         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
11234         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
11235         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
11236         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
11237         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
11238         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
11239
11240 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
11241
11242         PR other/32998
11243         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
11244         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
11245         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
11246         (decode_cmdline_option): Update for this return value.  Set
11247         orig_option_with_args_text field.  Set arg field for unknown
11248         options.  Make static.
11249         (decode_cmdline_options_to_array): New.
11250         (prune_options): Update handling of find_opt return value.
11251         * opts.c (read_cmdline_option): Take decoded option.  Return void.
11252         (read_cmdline_options): Take decoded options.
11253         (decode_options): Add parameters for decoded options.  Use
11254         decode_cmdline_options_to_array.  Use decoded options for -O
11255         scan.  Use integral_argument for -O parameters.  Update call to
11256         read_cmdline_options.
11257         (enable_warning_as_error): Update handling of find_opt return value.
11258         * opts.h: Update comment on unknown options.
11259         (struct cl_decoded_option): Update comments on opt_index and arg.
11260         Add orig_option_with_args_text.
11261         (decode_cmdline_option): Remove.
11262         (decode_cmdline_options_to_array): Declare.
11263         (decode_options): Update prototype.
11264         * toplev.c (save_argv): Remove.
11265         (save_decoded_options, save_decoded_options_count): New.
11266         (read_integral_parameter): Remove.
11267         (print_switch_values): Use decoded options.
11268         (toplev_main): Don't set save_argv.  Update call to decode_options.
11269         * toplev.h (read_integral_parameter): Remove.
11270         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
11271
11272 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
11273
11274         PR target/44072
11275         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
11276         immediate.
11277         * constraints.md (Pw, Px): New constraints.
11278         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
11279
11280 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
11281
11282         * config/i386/sse.md (fma4modesuffixf4): Removed.
11283         (ssemodesuffixf2s): Likewise.
11284         (ssemodesuffixf4): Likewise.
11285         (ssemodesuffixf2c): Likewise.
11286         (ssescalarmodesuffix2s): Likewise.
11287         (avxmodesuffixf2c): Likewise.
11288         (ssemodesuffix): New.
11289         (ssescalarmodesuffix): Likewise.
11290         Update patterns with ssemodesuffix and ssescalarmodesuffix.
11291
11292 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
11293
11294         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
11295
11296 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
11297
11298         * stor-layout.c (debug_rli): Remove unused local variables.
11299
11300 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
11301
11302         PR rtl-optimization/40900
11303         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
11304         original expression for later reuse.
11305         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
11306         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
11307
11308 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
11309
11310         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
11311         double_int_fits_in_uhwi_p): Implement as static inline.
11312         (double_int_xor): New inline function.
11313         (double_int_lrotate, double_int_rrotate, double_int_max,
11314         double_int_umax, double_int_smax, double_int_min, double_int_umin,
11315         double_int_smin): Declare.
11316         (lrotate_double, rrotate_double): Remove declaration.
11317         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
11318         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
11319         (double_int_lrotate, double_int_rrotate, double_int_max,
11320         double_int_umax, double_int_smax, double_int_min, double_int_umin,
11321         double_int_smin): New function.
11322         * fold-const.c (int_const_binop): Clean up, use double_int_*
11323         functions.
11324         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
11325         double_int_* and immed_double_int_const functions.
11326
11327 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11328
11329         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
11330         * function.c (types_used_by_cur_var_decl): Likewise.
11331         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
11332
11333 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
11334
11335         * tree.h (record_layout_info): Change type of pending_statics field
11336         to a VEC.
11337         * stor-layout.c (start_record_layout): Store NULL into
11338         pending_statics.
11339         (debug_rli): Call debug_vec_tree instead of debug_tree.
11340         (place_field): Likewise.
11341         (finish_record_layout): Likewise.
11342
11343 2010-06-18  Alan Modra  <amodra@gmail.com>
11344
11345         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
11346
11347 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11348
11349         PR target/43740
11350         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
11351         for SET source operand from SET destination operand.
11352
11353 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
11354
11355         PR rtl-optimization/39871
11356         * reload1.c (init_eliminable_invariants): For flag_pic, disable
11357         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
11358         (function_invariant_p): Rule out a plus of frame or arg pointer with
11359         a SYMBOL_REF.
11360         * ira.c (find_reg_equiv_invariant_const): Likewise.
11361
11362 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
11363
11364         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
11365         print_operand_address and puts to output the operand for CONST.
11366
11367 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
11368
11369         PR debug/44572
11370         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
11371         hook.
11372
11373 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11374
11375         * v850-protos.h (print_operand): Delete.
11376         (print_operand_address): Delete.
11377         * v850.h (PRINT_OPERAND): Delete.
11378         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11379         (PRINT_OPERAND_ADDRESS): Delete.
11380         * v850.c (print_operand_address): Rename to...
11381         (v850_print_operand_address): ...this.  Make static. Call
11382         v850_print_operand.
11383         (print_operand): Rename to...
11384         (v850_print_operand): ...this.  Make static.  Call
11385         v850_print_operand_address.
11386         (v850_print_operand_punct_valid_p): New function.
11387         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11388         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11389
11390 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11391
11392         * config/sh/sh-protos.h (print_operand): Delete.
11393         (print_operand_address): Delete.
11394         * config/sh/sh.h (PRINT_OPERAND): Delete.
11395         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11396         (PRINT_OPERAND_ADDRESS): Delete.
11397         * config/sh/sh.c (sh_print_operand_address): Make static.
11398         (sh_print_operand): Make static.  Call sh_print_operand_address
11399         and sh_print_operand.
11400         (sh_print_operand_punct_valid_p): New function.
11401         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11402         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11403
11404 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11405
11406         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
11407         (mcore_print_operand_address): Delete.
11408         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
11409         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11410         (PRINT_OPERAND_ADDRESS): Delete.
11411         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
11412         (mcore_print_operand): Make static.
11413         (mcore_print_operand_punct_valid_p): New function.
11414         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
11415         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
11416
11417 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11418
11419         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
11420         (print_operand_address): Delete.
11421         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
11422         (PRINT_OPERAND_ADDRESS): Delete.
11423         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
11424         static.
11425         (m68hc11_print_operand): Make static.
11426         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11427
11428 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11429
11430         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
11431         (m32r_print_operand_address): Delete.
11432         * config/m32r/m32r.h (m32r_punct_chars): Delete.
11433         (PRINT_OPERAND): Delete.
11434         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11435         (PRINT_OPERAND_ADDRESS): Delete.
11436         * config/m32r/m32r.c (m32r_punct_chars): Make static.
11437         (m32r_print_operand_address): Make static.
11438         (m32r_print_operand): Make static.
11439         (m32r_print_operand_punct_valid_p): New function.
11440         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11441         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11442
11443 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11444
11445         * config/iq2000/iq2000-protos.h (print_operand): Delete.
11446         (print_operand_address): Delete.
11447         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
11448         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11449         (PRINT_OPERAND_ADDRESS): Delete.
11450         (iq2000_print_operand_punct): Delete.
11451         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
11452         (iq2000_print_operand_address): Make static.
11453         (iq2000_print_operand): Make static.
11454         (iq2000_print_operand_punct_valid_p): New function.
11455         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11456         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11457
11458 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11459
11460         * config/frv/frv-protos.h (frv_print_operand): Delete.
11461         (frv_print_operand_address): Delete.
11462         * config/frv/frv.h (PRINT_OPERAND): Delete.
11463         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11464         (PRINT_OPERAND_ADDRESS): Delete.
11465         * config/frv/frv.c (frv_print_operand_address): Make static.
11466         (frv_print_operand): Make static.
11467         (frv_print_operand_punct_valid_p): New function.
11468         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11469         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11470
11471 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
11472
11473         * tree.h (vec_member): Declare.
11474         * tree.c (vec_member): Define.
11475
11476 2010-06-17  Richard Guenther  <rguenther@suse.de>
11477
11478         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
11479         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
11480
11481 2010-06-17  Richard Guenther  <rguenther@suse.de>
11482
11483         * tree-inline.c (declare_return_variable): Remove bogus code.
11484
11485 2010-06-17  Richard Guenther  <rguenther@suse.de>
11486
11487         * gimplify.c (gimplify_bind_expr): Always promote complex
11488         and vector variables to registers if possible.
11489
11490 2010-06-17  Richard Guenther  <rguenther@suse.de>
11491
11492         * expr.c (get_inner_reference): Use double_int for bit_offset
11493         calculation.
11494
11495 2010-06-16  DJ Delorie  <dj@redhat.com>
11496
11497         * common.opt (-fstrict-volatile-bitfields): new.
11498         * doc/invoke.texi: Document it.
11499         * fold-const.c (optimize_bit_field_compare): For volatile
11500         bitfields, use the field's type to determine the mode, not the
11501         field's size.
11502         * expr.c (expand_assignment): Likewise.
11503         (get_inner_reference): Likewise.
11504         (expand_expr_real_1): Likewise.
11505         * expmed.c (store_fixed_bit_field): Likewise.
11506         (extract_bit_field_1): Likewise.
11507         (extract_fixed_bit_field): Likewise.
11508
11509 2010-06-16  Richard Guenther  <rguenther@suse.de>
11510
11511         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
11512
11513 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
11514
11515         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
11516         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
11517         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
11518         * debug.c: Likewise.
11519         * sdbout.c: Likewise.
11520         * vmsdbgout.c: Likewise.
11521         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
11522         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
11523         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
11524         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
11525         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
11526         * dwarf2out.c (dw_fde_struct): New fields
11527         dw_fde_vms_{end,begin}_prologue.
11528         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
11529         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
11530         (dwarf2out_vms_end_prologue): New function.
11531         (dwarf2out_vms_begin_epilogue): New function.
11532         (dw_val_struct): New value dw_val_class_vms_delta.
11533         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
11534         begin_epilogue for VMS.
11535         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
11536         new static functions.
11537         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
11538         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
11539         static functions.
11540         (print_die): New case dw_val_class_vms_delta.
11541         (attr_checksum): Likewise.
11542         (same_dw_val_p: Likewise.
11543         (size_of_die): Likewise.
11544         (value_format): Likewise.
11545         (output_die): Likewise.
11546         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
11547         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
11548         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
11549         dwarf2out_cfi_begin_epilogue
11550         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
11551
11552 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11553
11554         * config/cris/cris-protos.h (cris_print_operand): Delete.
11555         (cris_print_operand_address): Delete.
11556         * config/cris/cris.h (PRINT_OPERAND): Delete.
11557         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11558         (PRINT_OPERAND_ADDRESS): Delete.
11559         * config/cris/cris.c (cris_print_operand_address): Make static.
11560         (cris_print_operand): Make static.
11561         (cris_print_operand_punct_valid_p): New function.
11562         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11563         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11564
11565 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
11566
11567         * config/arm/arm-protos.h (arm_print_operand): Delete.
11568         (arm_print_operand_address): Delete.
11569         * config/arm/arm.h (PRINT_OPERAND): Delete.
11570         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
11571         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
11572         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
11573         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
11574         (arm_print_operand): Make static.
11575         (arm_print_operand_punct_valid_p): New function.
11576         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
11577         (TARGET_PRINT_OPERAND_ADDRESS): Define.
11578
11579 2010-06-16  Nick Clifton  <nickc@redhat.com>
11580
11581         * config/rx/constraints.md (NEGint4): New constraint.
11582         * config/rx/rx.md (attr cc): Add set_zsc.
11583         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
11584         initialised.
11585         (cmpsf): Likewise.
11586         (call_internal): Clobber the cc0 register.
11587         (call_value_internal): Likewise.
11588         (cstoresi4): Likewise.
11589         (movsieq): Likewise.
11590         (movsine): Likewise.
11591         (addsi3): Add alternative to handle small negative constants.
11592         (sunsi3): Likewise.
11593         (addsi3): Do not set the O bit in the cc0 register.
11594         (adddi3): Likewise.
11595         (subsi3): Likewise.
11596         (subdi3): Likewise.
11597         (andsi3): Reorder alternatives to prefer shorter forms.
11598         (mulsi3): Likewise.
11599         (iorsi3): Likewise.
11600         (negsi2): Note that the cc0 flags are set.
11601         (rotlsi3): Note that only the Z and S bits are set in cc0.
11602         (lshrsi3): Likewise.
11603         (ashlsi3): Likewise.
11604         (subsf3): Use %Q for the MEM operand.
11605         (fix_truncsfsi2): Likewise.
11606         (floatsisf2): Likewise.
11607         (bitset): Remove early clobber from destination.
11608         (bitset_in_memory): Likewise.
11609         (lrintsf2): Clobber the cc0 register.
11610         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
11611         (rx_print_operand): Handle %N.
11612
11613 2010-06-16  Jan Hubicka  <jh@suse.cz>
11614
11615         * df-core.c (df_compact_blocks): Free problem_temps vector.
11616
11617 2010-06-16  Martin Jambor  <mjambor@suse.cz>
11618
11619         PR tree-optimization/43905
11620         * tree-sra.c: Include tree-inline.h.
11621         (create_abstract_origin): Removed.
11622         (modify_function): Version the call graph node instead of creating
11623         abstract origins and dealing with same_body aliases.
11624         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
11625         function is versionable.
11626         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
11627
11628 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
11629
11630         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
11631         (CHOOSE_DYNAMIC_LINKER): Update.
11632
11633 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
11634
11635         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
11636         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
11637         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
11638         *prefetch_3dnow_rex.
11639
11640 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
11641
11642         * target.h (struct asm_out):Add declare_constant_name field.
11643         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11644         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
11645         * output.h (default_asm_declare_constant_name): Declare.
11646         (assemble_label): Update prototype.
11647         * varasm.c (assemble_constant_contents): Use
11648         targetm.asm_out.declare_constant_name target hook.
11649         (assemble_label): Add 'file' argument.
11650         (default_asm_declare_constant_name): New function.
11651         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
11652         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
11653         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
11654
11655         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
11656         * config/darwin.c (darwin_asm_declare_constant_name): New function.
11657         (machopic_output_indirection): Update assemble_label argument list.
11658         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
11659         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
11660
11661 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
11662
11663         PR middle-end/44391
11664         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
11665         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
11666
11667 2010-06-15  Richard Guenther  <rguenther@suse.de>
11668
11669         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
11670
11671 2010-06-15  Paul Brook  <paul@codesourcery.com>
11672
11673         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
11674         hard-float ABI.
11675
11676 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
11677
11678         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
11679         don't get a vector type for output.
11680
11681 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
11682
11683         PR fortran/44536
11684         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
11685         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
11686         (LANG_HOOKS_DECLS): Add it.
11687         * gimplify.c (omp_notice_variable): Call
11688         lang_hooks.decls.omp_report_decl.
11689
11690 2010-06-15  Martin Jambor  <mjambor@suse.cz>
11691
11692         PR lto/44464
11693         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
11694         on the newly dead SSA name.
11695
11696 2010-06-15  Alan Modra  <amodra@gmail.com>
11697
11698         * doc/invoke.texi: Add mcmodel to powerpc options.
11699         * configure.ac: Add HAVE_LD_LARGE_TOC test.
11700         * configure: Regenerate.
11701         * config.in: Regenerate.
11702         * config/rs6000/linux64.opt (mcmodel): New.
11703         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
11704         (TARGET_CMODEL, SET_CMODEL): Define.
11705         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
11706         select CMODEL_MEDIUM default.
11707         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
11708         (TARGET_CMODEL): Define default.
11709         * config/rs6000/rs6000.c (cmodel): New variable.
11710         (rs6000_explicit_options): Add cmodel field.
11711         (rs6000_handle_option): Handle -mcmodel.
11712         (create_TOC_reference): Add largetoc_reg param.  Generate high,
11713         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
11714         (rs6000_delegitimize_address): Recognise new toc reference rtl
11715         and minimal-toc rtl.
11716         (rs6000_legitimize_reload_address): Handle new toc references.
11717         (print_operand_address): Handle legitimate_constant_pool_address_p
11718         match before lo_sum.
11719         (rs6000_eliminate_indexed_memrefs): Tidy.
11720         (rs6000_emit_move): Tweak threshold for inlining constants.
11721         Keep rs6000_emit_allocate_stack large stack frame offsets
11722         loaded into r0 inline.
11723         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
11724         (tocrel_base, tocrel_offset): New variables.
11725         (toc_relative_expr_p): Set them here.
11726         (print_operand_address): Skip over any offset on constant pool address.
11727         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
11728         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
11729         (offsettable_ok_by_alignment): New function.
11730         (rs6000_emit_move): Address suitably aligned local symbol_refs
11731         relative to the toc pointer for -mcmodel=medium.
11732         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
11733         strict param.  Allow lo_sum version of addressing.  Verify reg
11734         used for -mminimal-toc and -mcmodel != small.  Update all callers.
11735         * config/rs6000/constraints.md: Update for above change.
11736         * config/rs6000/predicates.md: Likewise.
11737         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
11738         code.
11739         (tls_gd): Split for -mcmodel=medium/large.
11740         (tls_gd_high, tls_gd_low): New.
11741         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
11742         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
11743         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
11744         (largetoc_high, largetoc_low): New.
11745         (cmptf_internal2): Add clobber.
11746         * config/rs6000/rs6000-protos.h: Update.
11747
11748 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
11749
11750         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
11751         true if no prefetch is going to be generated for a given group.
11752         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
11753         estimate the prefetch_count.
11754         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
11755         prefetch count by considering the unroll_factor and prefetch_mod
11756         for is_loop_prefetching_profitable.
11757
11758 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
11759
11760         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
11761         anything if the argument is not a MEM.
11762
11763 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11764
11765         PR debug/43650
11766         PR debug/44181
11767         PR debug/44247
11768         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
11769         debug stmts.
11770         (canonicalize_loop_ivs): Likewise.
11771
11772 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
11773
11774         PR debug/43656
11775         * haifa-sched.c (setup_insn_reg_pressure_info,
11776         update_register_pressure): Reject debug insns.
11777         (ready_sort): Don't setup reg pressure for debug insns.
11778         (schedule_insn): Don't update reg pressure for debug insns.
11779
11780 2010-06-14  Richard Guenther  <rguenther@suse.de>
11781
11782         * lto-streamer.c (cached_bp): Remove.
11783         (bitpack_delete): Likewise.
11784         (bitpack_create): Likewise.
11785         (bp_get_next_word): Likewise.
11786         (bp_pack_value, bp_unpack_value): Move ...
11787         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
11788         Re-implement.
11789         (struct bitpack_d): Likewise.
11790         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
11791         New inline functions.
11792         * lto-streamer-out.c (lto_output_bitpack): Remove.
11793         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11794         (pack_value_fields): Adjust.
11795         (lto_write_tree): Likewise.
11796         (output_gimple_stmt): Likewise.
11797         (output_function): Likewise.
11798         * lto-streamer-in.c (input_gimple_stmt): Adjust.
11799         (input_function): Likewise.
11800         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
11801         (lto_input_bitpack): Remove.
11802         (lto_materialize_tree): Adjust.
11803         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
11804         * lto-cgraph.c (lto_output_edge): Adjust.
11805         (lto_output_node): Likewise.
11806         (lto_output_varpool_node): Likewise.
11807         (lto_output_ref): Likewise.
11808         (input_node): Likewise.
11809         (input_varpool_node): Likewise.
11810         (input_ref): Likewise.
11811         (input_edge): Likewise.
11812         (output_node_opt_summary): Likewise.
11813         (input_node_opt_summary): Likewise.
11814         * ipa-pure-const.c (pure_const_write_summary): Likewise.
11815         (pure_const_read_summary): Likewise.
11816         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
11817         (ipa_read_indirect_edge_info): Likewise.
11818         (ipa_write_node_info): Likewise.
11819         (ipa_read_node_info): Likewise.
11820
11821 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
11822
11823         PR target/44534
11824         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
11825         (vec_extract_lo_v16hi): Likewise.
11826         (vec_extract_lo_v32qi): Likewise.
11827
11828 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11829
11830         PR bootstrap/44426
11831         * tree.h (build_call_expr): Don't define as vararg macro, instead
11832         add a prototype.
11833         * builtins.c (build_call_nofold): Remove.
11834         (expand_builtin_int_roundingfn, expand_builtin_pow,
11835         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
11836         expand_builtin_memset_args, expand_builtin_strcmp,
11837         expand_builtin_strncmp, expand_builtin_memory_chk): Use
11838         build_call_nofold_loc instead of build_call_nofold.
11839         (build_call_expr): New function.
11840
11841         PR tree-optimization/44508
11842         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
11843         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
11844         don't eliminate trivially dead stmts.
11845         * tree-vrp.c (vrp_finalize): Pass false as last argument
11846         to substitute_and_fold.
11847         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
11848         to substitute_and_fold.
11849         * tree-ssa-ccp.c (ccp_finalize): Likewise.
11850
11851         PR bootstrap/44509
11852         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
11853
11854 2010-06-14  Ira Rosen  <irar@il.ibm.com>
11855
11856         PR tree-optimization/44507
11857         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
11858         to build initial vector for BIT_AND_EXPR.
11859         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
11860
11861 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
11862
11863         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
11864         adjust z10prop set_attr.
11865
11866 2010-06-13  Jan Hubicka  <jh@suse.cz>
11867
11868         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11869         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
11870         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
11871         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
11872         datastructure checks into checking asserts.
11873         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
11874         * tree-ssa-sccvn.c (VN_INFO): Likewise.
11875         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
11876         df_ref_create_structure): Likewise.
11877         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
11878         pool_free): Use gcc_checking_assert.
11879         * alias.c (get_alias_set): Likewise.
11880         * var-tracking.c (variable_htab_free, shared_hash_copy,
11881         canonicalize_values_mark, variable_merge_over_cur): Likewise.
11882         * lto-streamer.c (bp_unpack_value): Likewise.
11883
11884 2010-06-13  Richard Guenther  <rguenther@suse.de>
11885
11886         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
11887         Do not stream but initialize TYPE_CANONICAL to NULL.
11888         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
11889         * gimple.c (gimple_types_compatible_p): Disregard
11890         TYPE_STRUCTURAL_EQUALITY_P.
11891         (gimple_register_type): Use TYPE_CANONICAL as cache.
11892         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
11893         before registering common types.
11894         * config/i386/i386.c (ix86_function_arg_boundary): Do not
11895         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
11896         * tree.h (TYPE_CANONICAL): Clarify documentation.
11897
11898 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
11899
11900         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
11901         LIBCALL_VALUE): Remove macros.
11902         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
11903         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11904         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11905         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
11906         (ia64_function_value): Make static. Handle receiving the function
11907         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
11908
11909 2010-06-12  Jan Hubicka  <jh@suse.cz>
11910
11911         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
11912         at correct place.
11913
11914 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
11915
11916         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
11917
11918 2010-06-12  Jan Hubicka  <jh@suse.cz>
11919
11920         * df-core.c (df_clear_bb_info): New function.
11921         (df_set_blocks): bb_info is always allocated.
11922         (df_get_bb_info): Use block_info_elt_size.
11923         (df_set_bb_info): Likewise.
11924         (df_compact_blocks): Update for new block_info.
11925         (grow_bb_info): New function.
11926         * df-problems.c (df_grow_bb_info): Move to df-core.c
11927         (df_rd_set_bb_info): Remove.
11928         (df_rd_free_bb_info): Do not free block pool.
11929         (df_rd_alloc): Do not create pool, use check for
11930         obstack presence instead of NULL pointer for new blocks.
11931         (df_rd_free): DO not free alloc pool; clear block_info.
11932         (problem_RD): Add size of block info structure.
11933         (df_lr_set_bb_info): Remove.
11934         (df_lr_free_bb_info): Do not free block pool.
11935         (df_lr_alloc): Do not create pool, use check for
11936         obstack presence instead of NULL pointer for new blocks.
11937         (df_lr_free): DO not free alloc pool; clear block_info.
11938         (problem_LR): Add size of block info structure.
11939         (df_live_set_bb_info): Remove.
11940         (df_live_free_bb_info): Do not free block pool.
11941         (df_live_alloc): Do not create pool, use check for
11942         obstack presence instead of NULL pointer for new blocks.
11943         (df_live_free): DO not free alloc pool; clear block_info.
11944         (problem_LIVE): Add size of block info structure.
11945         (problem_CHAIN): Add size of block info structure.
11946         (df_byte_lr_set_bb_info): Remove.
11947         (df_byte_lr_free_bb_info): Do not free block pool.
11948         (df_byte_lr_alloc): Do not create pool, use check for
11949         obstack presence instead of NULL pointer for new blocks.
11950         (df_byte_lr_free): DO not free alloc pool; clear block_info.
11951         (problem_BYTE_LR): Add size of block info structure.
11952         (problem_NOTE): Add size of block info structure.
11953         (df_byte_MD_set_bb_info): Remove.
11954         (df_byte_MD_free_bb_info): Do not free block pool.
11955         (df_byte_MD_alloc): Do not create pool, use check for
11956         obstack presence instead of NULL pointer for new blocks.
11957         (df_byte_MD_free): DO not free alloc pool; clear block_info.
11958         (problem_BD): Add size of block info structure.
11959         * df-scan.c (df_scan_free_internal): Free block pool.
11960         (df_scan_set_bb_info): Remove.
11961         (df_scan_free_bb_info): Check for artificial_defs instead
11962         of bb_info being non-NULL.
11963         (df_scan_alloc): DO not create df_scan_block pool.
11964         (problem_SCAN): Set size of block info.
11965         (df_bb_refs_record): Do not allocate bb_info.
11966         * df.h (df_problem): Add block_info_elt_size.
11967         (struct dataflow): Change block_info to void *.
11968         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
11969         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
11970         in-line structures.
11971
11972 2010-06-12  Jan Hubicka  <jh@suse.cz>
11973
11974         PR tree-optimize/44485
11975         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
11976         containing use of return value of noreturn function.
11977
11978 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
11979
11980         * targhooks.c (default_function_value): Don't use
11981         FUNCTION_OUTGOING_VALUE.
11982         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
11983         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
11984
11985 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
11986
11987         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
11988         Add crtfastmath.o to extra_parts.
11989         * config/mips/crtfastmath.c: New.
11990         * config/mips/linux.h (ENDFILE_SPEC): New.
11991
11992 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
11993
11994         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
11995         old_type in parameter.
11996         (gcc_type_for_value): Update call to gcc_type_for_interval.
11997         (compute_type_for_level_1): Renamed compute_type_for_level.
11998         Update call to gcc_type_for_interval.
11999
12000 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
12001
12002         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
12003         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
12004
12005 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
12006
12007         * opts-common.c: Include options.h.
12008         (integral_argument): Move from opts.c.
12009         (decode_cmdline_option): New.  Based on read_cmdline_option.
12010         * opts.c (integral_argument): Move to opts-common.c.
12011         (read_cmdline_option): Move most contents to
12012         decode_cmdline_option.  Use %qs in diagnostics.
12013         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
12014         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
12015         decode_cmdline_option): New.
12016
12017 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12018
12019         PR target/44481
12020         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
12021         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
12022         (partiysi2_cmp): Ditto.
12023         (*partiyhi2_cmp): Ditto.
12024         (*parityqi2_cmp): Remove.
12025
12026 2010-06-11  Jan Hubicka  <jh@suse.cz>
12027
12028         * bitmap.h (bmp_iter_next_bit): New.
12029         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
12030
12031 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
12032             Eric Botcazou  <ebotcazou@adacore.com>
12033
12034         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
12035         computed cost.
12036
12037 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12038
12039         * config/i386/i386.md (unspec): New define_c_enum.
12040         (unspecv): Ditto.
12041
12042 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
12043
12044         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
12045
12046 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
12047
12048         PR middle-end/44483
12049         * tree-if-conv.c (bb_predicate_s): New struct.
12050         (bb_predicate_p): New.
12051         (bb_has_predicate): New.
12052         (bb_predicate): New.
12053         (set_bb_predicate): New.
12054         (bb_predicate_gimplified_stmts): New.
12055         (set_bb_predicate_gimplified_stmts): New.
12056         (add_bb_predicate_gimplified_stmts): New.
12057         (init_bb_predicate): New.
12058         (free_bb_predicate): New.
12059         (is_predicated): Use bb_predicate.
12060         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
12061         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
12062         before processing their successors.
12063         (clean_predicate_lists): Removed.
12064         (find_phi_replacement_condition): Use bb_predicate.
12065         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
12066         computations.
12067         (insert_gimplified_predicates): New.
12068         (combine_blocks): Call insert_gimplified_predicates.
12069         (tree_if_conversion): Call free_bb_predicate instead of
12070         clean_predicate_lists.
12071
12072 2010-10-11  Paul Brook  <paul@codesourcery.com>
12073
12074         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
12075         * config/arm/arm.c (all_architectures): Change v7e-m default to
12076         cortexm4.
12077         * config/arm/arm-cores.def: Add cortex-m4.
12078         * config/arm/arm-tune.md: Regenerate.
12079
12080 2010-06-11  Jan Hubicka  <jh@suse.cz>
12081
12082         * ipa-pure-const.c (special_builtlin_state): New function.
12083         (check_call): Use it instead of special casign BUILT_IN_RETURN.
12084         (propagate_pure_const): Use it.
12085
12086 2010-06-11  Jan Hubicka  <jh@suse.cz>
12087
12088         * df-problems.c (df_live_scratch): Convert to bitmap_head.
12089         (df_live_alloc): Initialize df_live_scratch when initializing
12090         problem_data.
12091         (df_live_transfer_function): Update uses of df_live_scratch.
12092         (df_live_free): Free problem_data; clear df_live_scratch before
12093         releasing the obstack.
12094         (df_md_free): Free problem data.
12095
12096 2010-06-11  Jan Hubicka  <jh@suse.cz>
12097
12098         * doc/invoke.texi (Wsuggest-attribute): Document.
12099         (Wmissing-noreturn): Remove.
12100         * ipa-pure-const.c (warn_function_noreturn): New function.
12101         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
12102         warn_missing_noreturn.
12103         * common.opt (Wsuggest-attribute=noreturn): New.
12104         * tree-flow.h (warn_function_noreturn): Declare.
12105         * tree-cfg.c (execute_warn_function_noreturn): Use
12106         warn_function_noreturn.
12107         (gate_warn_function_noreturn): New.
12108         (pass_warn_function_noreturn): Update.
12109
12110 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12111
12112         * c-typeck.c (handle_warn_cast_qual): Add loc
12113         parameter. Improve warning message.
12114         (build_c_cast): Pass location to handle_warn_cast_qual.
12115
12116 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
12117
12118         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
12119         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
12120         insn mnemonic.
12121         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
12122
12123 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
12124
12125         Fix bootstap on mips
12126         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
12127         be naming typedefs.
12128
12129 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
12130
12131         * system.h (helper_const_non_const_cast): New inline for
12132         gcc version <= 4.0.
12133         (CONST_CAST2): For gcc version <= 4.0 use
12134         new helper to do const/non-const casting.
12135
12136 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12137
12138         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
12139         * Makefile.in (OBJS-common): Include insn-enums.o.
12140         (insn-enums.o): New rule.
12141         (simple_generated_c): Add insn-enums.c.
12142         (build/genenums.o): New rule.
12143         (genprogmd): Add "enums".
12144         * genconstants.c (print_enum_type): Declare a C string array
12145         for each enum.
12146         * genenums.c: New file.
12147         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
12148         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
12149         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
12150
12151 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12152
12153         * doc/md.texi (define_enum_attr): Document.
12154         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
12155         * read-md.h (lookup_enum_type): Declare.
12156         * read-md.c (lookup_enum_type): New function.
12157         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
12158         * genattrtab.c (attr_desc): Add an enum_name field.
12159         (evaluate_eq_attr): Take the associated attribute as argument.
12160         Get the enum prefix from the enum_name field, if defined.
12161         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
12162         (simplify_test_exp): Pass attr to evaluate_eq_attr.
12163         (add_attr_value): New function, split out from...
12164         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
12165         (write_test_expr): Pass attr to evaluate_eq_attr.
12166         (write_attr_get): Use the enum_name as the enum tag, if defined.
12167         (write_attr_valueq): Use the enum_name as a prefix, if defined.
12168         (find_attr): Initialize enum_name.
12169         (main): Handle DEFINE_ENUM_ATTR.
12170         * gensupport.c (process_rtx): Likewise.
12171         * config/mips/mips.h (mips_tune_attr): Delete.
12172         * config/mips/mips.md (cpu): Use define_attr_enum.
12173
12174 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12175
12176         * doc/md.texi (define_c_enum, define_enum): Document.
12177         * read-md.h (md_constant): Add a parent_enum field.
12178         (enum_value, enum_type): New structures.
12179         (upcase_string, traverse_enum_types): Declare.
12180         * read-md.c (enum_types): New variable.
12181         (upcase_string, add_constant): New functions.
12182         (handle_constants): Don't create the hash table here.
12183         Use add_constant.
12184         (traverse_md_constants): Don't check for a null md_constants.
12185         (decimal_string, handle_enum, traverse_enum_types): New functions.
12186         (read_md_files): Initialize md_constants and md_enums.
12187         * genconstants.c (print_md_constant): Ignore info argument.
12188         Only print constants that belong to no enum.
12189         (print_enum_type): New function.
12190         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
12191         for each defined enum type.
12192         * config/mips/mips.md (processor): New define_enum.
12193         (unspec): New define_c_enum.
12194         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
12195         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
12196         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
12197         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
12198         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
12199         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
12200         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
12201         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
12202         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
12203         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
12204         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
12205         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
12206         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
12207         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
12208         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
12209         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
12210         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
12211         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
12212         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
12213         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
12214         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
12215         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
12216         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12217         (UNSPEC_RDDSP): Move to mips-dsp.md.
12218         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
12219         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
12220         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
12221         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
12222         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
12223         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
12224         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
12225         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
12226         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
12227         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
12228         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
12229         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
12230         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
12231         Moved to mips-dspr2.md.
12232         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
12233         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
12234         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
12235         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
12236         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
12237         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
12238         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
12239         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
12240         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
12241         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
12242         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
12243         UNSPEC_LOONGSON_PSADBH)
12244         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
12245         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
12246         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
12247         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12248         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12249         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12250         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
12251         (cpu): Update comment.
12252         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
12253         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
12254         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
12255         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
12256         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
12257         UNSPEC_LOONGSON_PCMPEQ)
12258         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
12259         UNSPEC_LOONGSON_PINSR_0)
12260         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
12261         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
12262         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
12263         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
12264         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
12265         UNSPEC_LOONGSON_PSADBH)
12266         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
12267         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
12268         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
12269         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
12270         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
12271         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
12272         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
12273         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
12274         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
12275         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
12276         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
12277         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
12278         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
12279         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
12280         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
12281         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
12282         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
12283         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
12284         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
12285         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
12286         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
12287         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
12288         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
12289         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
12290         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
12291         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
12292         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
12293         (UNSPEC_RDDSP): Moved from mips.md.
12294         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
12295         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
12296         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
12297         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
12298         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
12299         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
12300         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
12301         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
12302         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
12303         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
12304         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
12305         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
12306         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
12307         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
12308         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
12309         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
12310         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
12311         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
12312         (UNSPEC_SCC): Moved from mips.md.
12313         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
12314         "processor_type" to "processor".
12315         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
12316         * config/mips/mips.h (processor_type): Delete.
12317         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
12318         "processor_type" to "processor".
12319
12320 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12321
12322         * configure.ac (tm_include_list): Add insn-constants.h.
12323         * configure: Regenerate.
12324         * Makefile.in (GTM_H): Move insn-constants.h here from...
12325         (TM_H): ...here.
12326         * mkconfig.sh: Remove special handling for insn-constants.h.
12327
12328 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12329
12330         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
12331         (BUILD_MD): ...this new variable.
12332         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
12333         that include the old contents of simple_generated_h and
12334         simple_generated_c.
12335         (simple_generated_h, simple_generated_c): Include them.  Add
12336         insn-constants.h.
12337         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
12338         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
12339         Remove these dependencies from the main rule and include
12340         insn-conditions.md in the command line only if it appears
12341         in the dependency list.
12342         (insn-constants.h, s-constants): Delete.
12343         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
12344         or gensupport.h.
12345         (build/genmddeps.o): Likewise.
12346         (genprogrtl): New variable that contains everything from genprogmd
12347         except mddeps and constants.
12348         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
12349         depend on $(BUILD_MD)
12350         (genprog): New variable.  Make these programs depend on
12351         $(BUILD_ERRORS).
12352         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
12353         (main): Use read_md_files instead of init_rtx_reader_args.
12354         * genconstants.c: As for genmddeps.c.
12355         * read-md.h (read_skip_construct): Declare.
12356         * read-md.c (read_skip_construct): New function.
12357         (handle_file): Allow a null handle_directive, skipping the
12358         construct if so.
12359         (parse_include): Update the comment accordingly.
12360
12361 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12362
12363         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
12364         * genmddeps.c: Include read-md.h.
12365         (main): Call init_rtx_reader_args instead of init_md_reader_args.
12366         * genattr.c (main): Likewise.
12367         * genattrtab.c (main): Likewise.
12368         * genautomata.c (main): Likewise.
12369         * gencodes.c (main): Likewise.
12370         * genconditions.c (main): Likewise.
12371         * genconfig.c (main): Likewise.
12372         * genconstants.c (main): Likewise.
12373         * genemit.c (main): Likewise.
12374         * genextract.c (main): Likewise.
12375         * genflags.c (main): Likewise.
12376         * genopinit.c (main): Likewise.
12377         * genoutput.c (main): Likewise.
12378         * genpeep.c (main): Likewise.
12379         * genrecog.c (main): Likewise.
12380         * genpreds.c (main): Likewise.
12381         * gensupport.h (in_fname): Move to read-md.h.
12382         (init_md_reader_args_cb): Rename to...
12383         (init_rtx_reader_args_cb): ...this and return a bool.
12384         (init_md_reader_args): Rename to...
12385         (init_rtx_reader_args): ...this and return a bool.
12386         (include_callback): Move to read-md.h.
12387         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
12388         (file_name_list, first_dir_md_include): Move to read-md.c
12389         (first_bracket_include): Delete unused variable.
12390         (last_dir_md_include): Move to read-md.c.
12391         (process_include): Delete, moving code to read-md.c:handle_include.
12392         (process_rtx): Don't handle INCLUDE.
12393         (save_string): Delete.
12394         (rtx_handle_directive): New function.
12395         (init_md_reader_args_cb): Rename to...
12396         (init_rtx_reader_args_cb): ...this and return a boolean success value.
12397         Use read_md_args.
12398         (init_md_reader_args): Rename to...
12399         (init_rtx_reader_args): ...this and return a boolean success value.
12400         * rtl.def (INCLUDE): Delete.
12401         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
12402         argument.
12403         * read-rtl.c (read_conditions): Don't gobble ')' here.
12404         (read_mapping): Likewise.
12405         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
12406         Handle top-level non-rtx constructs here rather than in read_rtx_1.
12407         Store the whole queue in *X.  Remove call to init_md_reader.
12408         (read_rtx_1): Rename to...
12409         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
12410         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
12411         here.
12412         (read_nested_rtx): New function.  Handle (nil) here rather than
12413         in read_rtx_code.
12414         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
12415         gobble ')' here.
12416         * read-md.h (directive_handler_t): New type.
12417         (in_fname, include_callback): Moved from read-md.h.
12418         (read_constants, init_md_reader): Delete.
12419         (read_md_files): Declare.
12420         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
12421         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
12422         from gensupport.c.
12423         (read_constants): Rename to...
12424         (handle_constants): ...this.  Don't gobble ')' here.
12425         (handle_include, handle_file, handle_toplevel_file)
12426         (parse_include): New functions, mostly taken from gensupport.c.
12427         (init_md_reader): Subsume into...
12428         (read_md_files): ...this new function.
12429
12430 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12431
12432         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
12433         (unread_char): Decrement read_md_lineno after putting back '\n'.
12434         * read-md.c (fatal_with_file_and_line): Push back any characters
12435         that we decide not to add to the context.
12436         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
12437         fatal_expected_char in cases where '/' ends a line (for example).
12438         (read_name): Don't increment read_md_lineno here.
12439         (read_escape): Likewise.
12440         (read_quoted_string): Likewise.
12441         (read_braced_string): Likewise.
12442
12443 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12444
12445         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
12446         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
12447         * genconstants.c: Include read-md.h.
12448         * read-rtl.c (md_constants): Move to read-md.c.
12449         (md_name): Move to read-md.h.
12450         (initialize_iterators): Use leading_string_hash instead of def_hash
12451         and leading_string_eq_p instead of def_name_eq_p.
12452         (read_name): Move to read-md.c.
12453         (def_hash, def_name_eq_p): Delete.
12454         (read_constants, traverse_md_constants): Move to read-md.c.
12455         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
12456         * read-md.h: Include hashtab.h.
12457         (md_name): Moved from read-rtl.c.
12458         (md_constant): Moved from read-md.h.
12459         (leading_string_hash, leading_string_eq_p, read_name)
12460         (read_constants, traverse_md_constants): Declare.
12461         * read-md.c (md_constants): Moved from read-rtl.c.
12462         (leading_string_hash, leading_string_eq_p): New functions.
12463         (read_name, read_constants, traverse_md_constants): Moved from
12464         read-rtl.c.
12465
12466 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12467
12468         * read-rtl.c (md_name): New structure.
12469         (read_name): Take an md_name instead of a buffer pointer.
12470         Use the "string" field instead of strcpy when expanding constants.
12471         (read_constants): Remove the tmp_char argument.  Update the calls
12472         to read_name, using two local name buffers instead of the tmp_char
12473         argument.  Merge the constant-creation code.
12474         (read_conditions): Remove the tmp_char argument.  Update the calls
12475         to read_name, using a local name buffer instead of the tmp_char
12476         argument.
12477         (read_mapping): Replace tmp_char variable with a local name buffer.
12478         Update the calls to read_name.
12479         (read_rtx_1): Likewise.  Update the calls to read_constants and
12480         read_conditions.
12481
12482 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12483
12484         * Makefile.in (build/read-md.o): Depend on errors.h.
12485         * read-md.h (error_with_line): Declare.
12486         * read-md.c: Include errors.h.
12487         (message_with_line_1): New function, extracted from...
12488         (message_with_line): ...here.
12489         (error_with_line): New function.
12490         * genattrtab.c: If a call to message_with_line is followed by
12491         "have_error = 1;", replace both statements with a call to
12492         error_with_line.
12493         * genoutput.c: Likewise.
12494         * genpreds.c: Likewise.
12495         * genrecog.c: If a call to message_with_line is followed by
12496         "error_count++;", replace both statements with a call to
12497         error_with_line.
12498         (errorcount): Delete.
12499         (main): Don't check it.
12500         * gensupport.c: If a call to message_with_line is followed by
12501         "errors = 1;", replace both statements with a call to error_with_line.
12502         (errors): Delete.
12503         (process_define_cond_exec): Check have_error instead of errors.
12504         (init_md_reader_args_cb): Likewise.  Don't set errors.
12505
12506 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12507
12508         * read-md.h (read_md_file): Declare.
12509         (read_char, unread_char): New functions.
12510         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12511         (read_quoted_string, read_string): Remove FILE * argument.
12512         * read-md.c (read_md_file): New variable.
12513         (read_md_filename, read_md_lineno): Update comments and remove
12514         unnecessary initialization.
12515         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
12516         (read_escape, read_quoted_string, read_braced_string, read_string):
12517         Remove FILE * argument.  Update calls accordingly, using read_char
12518         and unread_char instead of getc and ungetc.
12519         * rtl.h (read_rtx): Remove FILE * argument.
12520         * read-rtl.c (iterator_group): Remove FILE * argument from
12521         "find_builtin".
12522         (iterator_traverse_data): Remove "infile" field.
12523         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
12524         (add_mapping, read_name, read_constants, read_conditions)
12525         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
12526         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
12527         Remove file arguments from all calls, using read_char and unread_char
12528         instead of getc and ungetc.
12529         * gensupport.c (process_include): Preserve read_md_file around
12530         the include.  Set read_md_file to the handle of the included file.
12531         Update call to read_rtx.
12532         (init_md_reader_args_cb): Set read_md_file to the handle of the file
12533         and remove local FILE *.  Update calls to read_rtx.
12534
12535 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12536
12537         * read-md.h (read_rtx_lineno): Rename to...
12538         (read_md_lineno): ...this.
12539         (read_rtx_filename): Rename to...
12540         (read_md_filename): ...this.
12541         (copy_rtx_ptr_loc): Rename to...
12542         (copy_md_ptr_loc): ...this.
12543         (print_rtx_ptr_loc): Rename to...
12544         (print_md_ptr_loc): ...this.
12545         * read-md.c: Likewise.  Update references after renaming.
12546         (string_obstack): Replace RTL with MD in comment.
12547         (set_rtx_ptr_loc): Rename to...
12548         (set_md_ptr_loc): ...this.
12549         (get_rtx_ptr_loc): Rename to...
12550         (get_md_ptr_loc): ...this.
12551         * genconditions.c: Update references after renaming.
12552         * genemit.c: Likewise.
12553         * genoutput.c: Likewise.
12554         * genpreds.c: Likewise.
12555         * gensupport.c: Likewise.
12556         * read-rtl.c: Likewise.
12557
12558 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
12559
12560         * Makefile.in (READ_MD_H): New variable.
12561         (BUILD_RTL): Add build/read-md.o.
12562         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
12563         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
12564         (build/genattrtab.o, build/genconditions.o build/genemit.o)
12565         (build/genextract.o, build/genflags.o, build/genoutput.o)
12566         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
12567         (build/read-md.o): New rule.
12568         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
12569         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
12570         * coretypes.h: ...here.
12571         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
12572         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
12573         * genattr.c: Include read-md.h.
12574         * genattrtab.c: Likewise.
12575         * genconditions.c: Likewise.
12576         * genemit.c: Likewise.
12577         * genextract.c: Likewise.
12578         * genflags.c: Likewise.
12579         * genoutput.c: Likewise.
12580         * genpreds.c: Likewise.
12581         * genrecog.c: Likewise.
12582         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
12583         (join_c_conditions, print_c_condition, read_rtx_filename)
12584         (read_rtx_lineno): Move to read-md.h.
12585         * read-rtl.c: Include read-md.h.
12586         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
12587         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
12588         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
12589         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
12590         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
12591         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
12592         (read_braced_string, read_string): Move to read-md.c.
12593         (read_rtx): Move some initialization to init_md_reader and call
12594         init_md_reader here.
12595         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
12596         Move to read-md.h.
12597         * gensupport.c: Include read-md.h.
12598         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
12599         * read-md.h, read-md.c: New files.
12600
12601 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
12602
12603         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12604         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12605         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
12606         * config/moxie/moxie.c (moxie_function_value): Make static.
12607         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
12608         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12609
12610 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12611
12612         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
12613         * dbgcnt.def (tree_sra): New counter.
12614         * tree-sra.c: Include dbgcnt.h.
12615         (gate_intra_sra): Check tree_sra debug counter.
12616
12617 2010-06-10  Martin Jambor  <mjambor@suse.cz>
12618
12619         PR tree-optimization/44258
12620         * tree-sra.c (build_access_subtree): Return false iff there is a
12621         partial overlap.
12622         (build_access_trees): Likewise.
12623         (analyze_all_variable_accesses): Disqualify candidates if
12624         build_access_trees returns true for them.
12625
12626 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
12627
12628         PR debug/41371
12629         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
12630         tail-recurse into canonical node.  Fast-forward over
12631         non-canonical VALUEs.
12632
12633 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
12634
12635         PR boostrap/44470
12636         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
12637         (*addsi_1_zext) <TYPE_LEA>: Likewise.
12638         (add lea splitter): Likewise.
12639         (add_zext lea splitter): Likewise.
12640
12641 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
12642
12643         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
12644
12645 2010-06-10  Jan Hubicka  <jh@suse.cz>
12646
12647         * df-problems.c (df_live_problem_data): Add live_bitmaps.
12648         (df_live_alloc): Initialize problem data and live_osbtacks.
12649         (df_live_finalize): Remove obstack, problem data; do not
12650         clear all bitmaps.
12651         (df_live_top_dump, df_live_bottom_dump): Do not dump old
12652         data when not allocated.
12653         (df_live_verify_solution_start): Do not allocate problem data.
12654         (df_live_verify_solution_end): Check if out is allocated.
12655         (struct df_md_problem_data): New structure.
12656         (df_md_alloc): Allocate problem data.
12657         (df_md_free): Free problem data; do not clear bitmaps.
12658
12659 2010-06-10  Jan Beulich  <jbeulich@novell.com>
12660
12661         PR bootstrap/37304
12662         * configure.ac: Replace $() with ${} when intending to expand
12663         variables rather than invoking commands.
12664         * configure: Re-generate.
12665
12666 2010-06-10  Jan Hubicka  <jh@suse.cz>
12667
12668         PR rtl-optimization/44460
12669         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
12670         TYPE_NEEDS_CONSTRUCTING sanity check.
12671
12672 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
12673
12674         * doc/include/fdl.texi: Move to GFDL version 1.3.
12675
12676         * doc/cpp.texi: Move to GFDL version 1.3.
12677         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
12678         * doc/gccint.texi: Move to GFDL version 1.3.
12679         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
12680         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
12681         * doc/invoke.texi: Move to GFDL version 1.3.
12682
12683 2010-06-09  Jan Hubicka  <jh@suse.cz>
12684
12685         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
12686         Break out from ...
12687         (propagate) ... here; swap the order.
12688
12689 2010-06-09  Jan Hubicka  <jh@suse.cz>
12690
12691         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
12692         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
12693         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
12694         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
12695
12696 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12697
12698         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
12699         Do not the gather memory reference in the outer loop if the step
12700         is not a constant.
12701
12702 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
12703
12704         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
12705         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
12706         8 to 4.  Minor change of the related comments.
12707
12708 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12709
12710         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
12711         the scev analysis when the variable is not used outside the loop
12712         in a close phi node: call compute_overall_effect_of_inner_loop.
12713
12714 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12715
12716         * graphite-sese-to-poly.c (single_pred_cond): Renamed
12717         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
12718         (build_sese_conditions_before): Renamed call to single_pred_cond.
12719         (build_sese_conditions_after): Same.
12720
12721 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
12722
12723         * graphite-poly.h: Fix comments and indentation.
12724         * graphite-sese-to-poly.c: Same.
12725         (build_sese_conditions_before): Compute stmt and gbb only when needed.
12726         * tree-chrec.c: Fix comments and indentation.
12727         (tree-ssa-loop-niter.c): Same.
12728
12729 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
12730
12731         PR rtl-optimization/42461
12732         * dce.c (deletable_insn_p): Return true for const or pure calls again.
12733         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
12734
12735 2010-06-09  Jan Hubicka  <jh@suse.cz>
12736
12737         * bitmap.c (bitmap_and): Walk array forward.
12738         (bitmap_and_compl_into): Likewise.
12739         (bitmap_xor): Likewise.
12740         (bitmap_xor_into):  Likewise.
12741         (bitmap_equal_p): Likewise.
12742         (bitmap_intersect_p): Likewise.
12743         (bitmap_intersect_compl_p): Likewise.
12744         (bitmap_ior_and_into): Likewise.
12745         (bitmap_elt_copy): Likewise.
12746         (bitmap_and_compl): Likewise.
12747         (bitmap_elt_ior): Likewise.
12748
12749 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
12750
12751         * opts-common.c (prune_options): Ensure replacement argv array
12752         is correctly terminated by a NULL entry.
12753
12754 2010-06-09  Jan Hubicka  <jh@suse.cz>
12755
12756         * cgraph.h (varpool_first_static_initializer,
12757         varpool_next_static_initializer): Make checking only when
12758         checking enabled.
12759         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
12760         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
12761         gcc_assert to gcc_checking_assert.
12762         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
12763         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
12764         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
12765         op_iter_init_phiuse, op_iter_init_phidef,
12766         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
12767         gcc_checking_assert.
12768         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
12769         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
12770         partition_is_global, live_on_entry, live_on_exit,
12771         live_merge_and_clear): Likewise.
12772         * system.h (gcc_checking_assert): New macro.
12773         * gimple.h (set_bb_seq): Use gcc_checking_assert.
12774
12775 2010-06-09  Jason Merrill  <jason@redhat.com>
12776
12777         * Makefile.in (TAGS): Collect tags info from c-family.
12778
12779 2010-06-09  Jan Hubicka  <jh@suse.cz>
12780
12781         * gimple.h (gcc_gimple_checking_assert): New macro.
12782         (gimple_set_def_ops, gimple_set_use_ops,
12783         gimple_set_vuse, gimple_set_vdef,
12784         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
12785         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
12786         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
12787         gimple_asm_output_op, gimple_asm_output_op_ptr,
12788         gimple_asm_set_output_op, gimple_asm_clobber_op,
12789         gimple_asm_set_clobber_op, gimple_asm_label_op,
12790         gimple_asm_set_label_op, gimple_try_set_kind,
12791         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
12792         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
12793         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
12794         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
12795         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
12796         gimple_omp_for_set_initial, gimple_omp_for_final,
12797         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
12798         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
12799         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
12800         conditional with ENABLE_GIMPLE_CHECKING.
12801         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
12802
12803 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
12804
12805         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
12806         (get_computation_cost_at): Use it.
12807         (determine_use_iv_cost_condition): Likewise.
12808         (determine_iv_cost): Likewise.
12809
12810 2010-06-09  Richard Guenther  <rguenther@suse.de>
12811
12812         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
12813         replace constants.
12814
12815 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
12816
12817         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
12818
12819 2010-06-09  Martin Jambor  <mjambor@suse.cz>
12820
12821         PR tree-optimization/44423
12822         * tree-sra.c (dump_access): Dump also grp_assignment_read.
12823         (analyze_access_subtree): Pass negative allow_replacements to children
12824         if the current type is scalar.
12825
12826 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12827
12828         PR testsuite/42843
12829         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
12830         * doc/plugins.texi (Plugin license check): Update information
12831         on type of plugin_is_GPL_compatible.
12832         * Makefile.in (PLUGINCC): Define as $(COMPILER).
12833         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
12834
12835 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
12836
12837         * config/arm/arm.c (thumb2_reorg): New function.
12838         (arm_reorg): Call it.
12839         * config/arm/thumb2.md (define_peephole2 for flag clobbering
12840         arithmetic operations): Delete.
12841
12842 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
12843
12844         PR target/44067
12845         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
12846         e500v2 target.
12847
12848 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
12849
12850         PR plugins/44459
12851         * gcc-plugin.h: Encapsulate all declarations in extern "C".
12852
12853 2010-06-08  Jan Hubicka  <jh@suse.cz>
12854
12855         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
12856         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
12857
12858 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
12859
12860         PR tree-optimization/39874
12861         PR middle-end/28685
12862         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
12863         Declare.
12864         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
12865         same_bool_result_p): New.
12866         (and_var_with_comparison, and_var_with_comparison_1,
12867         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
12868         (or_var_with_comparison, or_var_with_comparison_1,
12869         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
12870         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
12871         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
12872         of combine_comparisons.
12873         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
12874
12875 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
12876
12877         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
12878         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
12879         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
12880         pdp11_function_value_regno_p): New functions.
12881         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12882         TARGET_FUNCTION_VALUE_REGNO_P): Define.
12883
12884 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
12885
12886         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
12887         Thumb-2 in the MINUS case.
12888
12889 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12890
12891         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
12892
12893         * doc/gty.texi (GTY Options): Document typed GC allocation and
12894         variable_size GTY option.
12895
12896         * ggc-internal.h: New.
12897
12898         * ggc.h: Update copyright year.
12899         (digit_string): Move to stringpool.c.
12900         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
12901         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
12902         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
12903         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
12904         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
12905         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
12906         (ggc_force_collect, ggc_get_size, ggc_statistics)
12907         (ggc_print_common_statistics): Move to ggc-internal.h.
12908         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
12909         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
12910         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
12911         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
12912         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
12913         (ggc_alloc_zone_pass_stat): Remove.
12914         (ggc_internal_alloc_stat, ggc_internal_alloc)
12915         (ggc_internal_cleared_alloc_stat): New.
12916         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
12917         (ggc_internal_vec_alloc_stat)
12918         (ggc_internal_cleared_vec_alloc_stat)
12919         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
12920         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
12921         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
12922         (ggc_cleared_alloc_ptr_array_two_args): New.
12923         (htab_create_ggc, splay_tree_new_ggc): Redefine.
12924         (ggc_splay_alloc): Change the type of the first argument to
12925         enum gt_types_enum.
12926         (ggc_alloc_string): Make macro.
12927         (ggc_alloc_string_stat): New.
12928         (ggc_strdup): Redefine.
12929         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
12930         (ggc_alloc_rtvec_sized): New.
12931         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
12932         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
12933         (ggc_internal_cleared_alloc_zone_stat)
12934         (ggc_internal_zone_alloc_stat)
12935         (ggc_internal_zone_cleared_alloc_stat)
12936         (ggc_internal_zone_vec_alloc_stat)
12937         (ggc_alloc_zone_rtx_def_stat)
12938         (ggc_alloc_zone_tree_node_stat)
12939         (ggc_alloc_zone_cleared_tree_node_stat)
12940         (ggc_alloc_cleared_gimple_statement_d_stat): New.
12941
12942         * ggc-common.c: Include ggc-internal.h.
12943         (ggc_internal_cleared_alloc_stat): Rename from
12944         ggc_alloc_cleared_stat.
12945         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
12946         (ggc_calloc): Remove.
12947         (ggc_cleared_alloc_htab_ignore_args): New.
12948         (ggc_cleared_alloc_ptr_array_two_args): New.
12949         (ggc_splay_alloc): Add obj_type parameter.
12950         (init_ggc_heuristics): Formatting fixes.
12951
12952         * ggc-none.c: Update copyright year.
12953         (ggc_alloc_stat): Rename to ggc_alloc_stat.
12954         (ggc_alloc_cleared_stat): Rename to
12955         ggc_internal_cleared_alloc_stat.
12956         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12957
12958         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
12959         Remove references to ggc_alloc in comments.
12960         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
12961         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
12962         (new_ggc_zone, destroy_ggc_zone): Remove.
12963         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
12964
12965         * ggc-zone.c: Include ggc-internal.h.  Remove references to
12966         ggc_alloc in comments.
12967         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
12968         (ggc_internal_alloc_zone_pass_stat): New.
12969         (ggc_internal_cleared_alloc_zone_stat): New.
12970         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
12971         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
12972         (new_ggc_zone, destroy_ggc_zone): Remove.
12973
12974         * stringpool.c: Update copyright year.  Include ggc-internal.h
12975         (digit_vector): Make static.
12976         (digit_string): Moved from ggc.h.
12977         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
12978         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
12979
12980         * Makefile.in (GGC_INTERNAL_H): New.
12981         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
12982         $(GGC_INTERNAL_H) to dependencies.
12983
12984         * gentype.c: Update copyright year.
12985         (walk_type): Accept variable_size GTY option.
12986         (USED_BY_TYPED_GC_P): New macro.
12987         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
12988         whitespace at the end of strings.
12989         (get_type_specifier, variable_size_p): New functions.
12990         (alloc_quantity, alloc_zone): New enums.
12991         (write_typed_alloc_def): New function.
12992         (write_typed_struct_alloc_def): Likewise.
12993         (write_typed_typed_typedef_alloc_def): Likewise.
12994         (write_typed_alloc_defns): Likewise.
12995         (output_typename, write_splay_tree_allocator_def): Likewise.
12996         (write_splay_tree_allocators): Likewise.
12997         (main): Call write_typed_alloc_defns and
12998         write_splay_tree_allocators.
12999
13000         * lto-streamer.h (lto_file_decl_data_ptr): New.
13001
13002         * passes.c (order): Define using cgraph_node_ptr.
13003
13004         * strinpool.c (struct string_pool_data): Declare nested_ptr using
13005         ht_identifier_ptr.
13006
13007         * gimple.h (union gimple_statement_d): Likewise.
13008
13009         * rtl.h (struct rtx_def): Likewise.
13010         (struct rtvec_def): Likewise.
13011
13012         * tree.h (union tree_node): Likewise.
13013
13014         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
13015
13016         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
13017
13018         * tree-scalar-evolution.c (scev_initialize): Likewise.
13019
13020         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
13021
13022         * dwarf2asm.c (dw2_force_const_mem): Likewise.
13023
13024         * omp-low.c (lower_omp_critical): Likewise.
13025
13026         * bitmap.h (struct bitmap_head_def): Update comment to not
13027         reference ggc_alloc.
13028
13029         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
13030
13031         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
13032
13033         * ipa-prop.c (duplicate_ggc_array): Rename to
13034         duplicate_ipa_jump_func_array.  Use typed GC allocation.
13035         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
13036
13037         * gimple.c (gimple_alloc_stat): Use
13038         ggc_alloc_cleared_gimple_statement_d_stat.
13039
13040         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
13041
13042         * tree.c (make_node_stat): Use
13043         ggc_alloc_zone_cleared_tree_node_stat.
13044         (make_tree_vec_stat): Likewise.
13045         (build_vl_exp_stat): Likewise.
13046         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
13047         (make_tree_binfo_stat): Likewise.
13048         (tree_cons_stat): Likewise.
13049
13050         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
13051         (shallow_copy_rtx_stat): Likewise.
13052         (make_node_stat): Likewise.
13053
13054         * lto-symtab.c: Fix comment.
13055
13056         * tree-cfg.c (create_bb): Update comment to not reference
13057         ggc_alloc_cleared.
13058         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
13059
13060         * varpool.c (varpool_node): Use typed GC allocation.
13061         (varpool_extra_name_alias): Likewise.
13062
13063         * varasm.c (emutls_decl): Likewise.
13064         (get_unnamed_section): Likewise.
13065         (get_noswitch_section): Likewise.
13066         (get_section): Likewise.
13067         (get_block_for_section): Likewise.
13068         (build_constant_desc): Likewise.
13069         (create_constant_pool): Likewise.
13070         (force_const_mem): Likewise.
13071
13072         * tree.c (build_vl_exp_stat): Likewise.
13073         (build_real): Likewise.
13074         (build_string): Likewise.
13075         (decl_debug_expr_insert): Likewise.
13076         (decl_value_expr_insert): Likewise.
13077         (type_hash_add): Likewise.
13078         (build_omp_clause): Likewise.
13079
13080         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
13081
13082         * tree-ssa.c (init_tree_ssa): Likewise.
13083
13084         * tree-ssa-structalias.c (heapvar_insert): Likewise.
13085
13086         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
13087
13088         * tree-ssa-loop-niter.c (record_estimate): Likewise.
13089
13090         * tree-ssa-alias.c (get_ptr_info): Likewise.
13091
13092         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
13093
13094         * tree-phinodes.c (allocate_phi_node): Likewise.
13095
13096         * tree-iterator.c (tsi_link_before): Likewise.
13097         (tsi_link_after): Likewise.
13098
13099         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
13100
13101         * tree-dfa.c (create_var_ann): Likewise.
13102
13103         * tree-cfg.c (create_bb): Likewise.
13104
13105         * toplev.c (alloc_for_identifier_to_locale): Likewise.
13106         (general_init): Likewise.
13107
13108         * stringpool.c (stringpool_ggc_alloc): Likewise.
13109         (gt_pch_save_stringpool): Likewise.
13110
13111         * sese.c (if_region_set_false_region): Likewise.
13112
13113         * passes.c (do_per_function_toporder): Likewise.
13114
13115         * optabs.c (set_optab_libfunc): Likewise.
13116         (set_conv_libfunc): Likewise.
13117
13118         * lto-symtab.c (lto_symtab_register_decl): Likewise.
13119
13120         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
13121         (input_eh_region): Likewise.
13122         (input_eh_lp): Likewise.
13123         (make_new_block): Likewise.
13124         (unpack_ts_real_cst_value_fields): Likewise.
13125
13126         * lto-section-in.c (lto_new_in_decl_state): Likewise.
13127
13128         * lto-cgraph.c (input_node_opt_summary): Likewise.
13129
13130         * loop-init.c (loop_optimizer_init): Likewise.
13131
13132         * lambda.h (lambda_vector_new): Likewise.
13133
13134         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
13135
13136         * ira.c (update_equiv_regs): Likewise.
13137
13138         * ipa.c (cgraph_node_set_new): Likewise.
13139         (cgraph_node_set_add): Likewise.
13140         (varpool_node_set_new): Likewise.
13141         (varpool_node_set_add): Likewise.
13142
13143         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
13144         (duplicate_ipa_jump_func_array): Likewise.
13145         (ipa_read_node_info): Likewise.
13146
13147         * ipa-cp.c (ipcp_create_replace_map): Likewise.
13148
13149         * integrate.c (get_hard_reg_initial_val): Likewise.
13150
13151         * gimple.c (gimple_alloc_stat): Likewise.
13152         (gimple_build_omp_for): Likewise.
13153         (gimple_seq_alloc): Likewise.
13154         (gimple_copy): Likewise.
13155
13156         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
13157         (gsi_insert_after_without_update): Likewise.
13158
13159         * function.c (add_frame_space): Likewise.
13160         (insert_temp_slot_address): Likewise.
13161         (assign_stack_temp_for_type): Likewise.
13162         (allocate_struct_function): Likewise.
13163         (types_used_by_var_decl_insert): Likewise.
13164
13165         * except.c (init_eh_for_function): Likewise.
13166         (gen_eh_region): Likewise.
13167         (gen_eh_region_catch): Likewise.
13168         (gen_eh_landing_pad): Likewise.
13169         (add_call_site): Likewise.
13170
13171         * emit-rtl.c (get_mem_attrs): Likewise.
13172         (get_reg_attrs): Likewise.
13173         (start_sequence): Likewise.
13174         (init_emit): Likewise.
13175
13176         * dwarf2out.c (new_cfi): Likewise.
13177         (queue_reg_save): Likewise.
13178         (dwarf2out_frame_init): Likewise.
13179         (new_loc_descr): Likewise.
13180         (find_AT_string): Likewise.
13181         (new_die): Likewise.
13182         (add_var_loc_to_decl): Likewise.
13183         (clone_die): Likewise.
13184         (clone_as_declaration): Likewise.
13185         (break_out_comdat_types): Likewise.
13186         (new_loc_list): Likewise.
13187         (loc_descriptor): Likewise.
13188         (add_loc_descr_to_each): Likewise.
13189         (add_const_value_attribute): Likewise.
13190         (tree_add_const_value_attribute): Likewise.
13191         (add_comp_dir_attribute): Likewise.
13192         (add_name_and_src_coords_attributes): Likewise.
13193         (lookup_filename): Likewise.
13194         (store_vcall_insn): Likewise.
13195         (dwarf2out_init): Likewise.
13196
13197         * dbxout.c (dbxout_init): Likewise.
13198
13199         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
13200
13201         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
13202
13203         * config/score/score7.c (score7_output_external): Likewise.
13204
13205         * config/score/score3.c (score3_output_external): Likewise.
13206
13207         * config/s390/s390.c (s390_init_machine_status): Likewise.
13208
13209         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
13210         (rs6000_init_machine_status): Likewise.
13211         (output_toc): Likewise.
13212
13213         * config/pa/pa.c (pa_init_machine_status): Likewise.
13214         (get_deferred_plabel): Likewise.
13215
13216         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
13217
13218         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
13219
13220         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
13221
13222         * config/mep/mep.c (mep_init_machine_status): Likewise.
13223         (mep_note_pragma_flag): Likewise.
13224
13225         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
13226
13227         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
13228
13229         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
13230
13231         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
13232         (i386_pe_maybe_record_exported_symbol): Likewise.
13233
13234         * config/i386/i386.c (get_dllimport_decl): Likewise.
13235         (ix86_init_machine_status): Likewise.
13236         (assign_386_stack_local): Likewise.
13237
13238         * config/frv/frv.c (frv_init_machine_status): Likewise.
13239
13240         * config/darwin.c (machopic_indirection_name): Likewise.
13241
13242         * config/cris/cris.c (cris_init_machine_status): Likewise.
13243
13244         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
13245
13246         * config/avr/avr.c (avr_init_machine_status): Likewise.
13247
13248         * config/arm/arm.c (arm_init_machine_status): Likewise.
13249
13250         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
13251         (alpha_need_linkage): Likewise.
13252         (alpha_use_linkage): Likewise.
13253
13254         * cgraph.c (cgraph_allocate_node): Likewise.
13255         (cgraph_create_edge_1): Likewise.
13256         (cgraph_create_indirect_edge): Likewise.
13257         (cgraph_add_asm_node): Likewise.
13258
13259         * cfgrtl.c (init_rtl_bb_info): Likewise.
13260
13261         * cfgloop.c (alloc_loop): Likewise.
13262         (rescan_loop_exit): Likewise.
13263
13264         * cfg.c (init_flow): Likewise.
13265         (alloc_block): Likewise.
13266         (unchecked_make_edge): Likewise.
13267
13268         * c-parser.c (c_parse_init): Likewise.
13269         (c_parse_file): Likewise.
13270
13271         * c-decl.c (bind): Likewise.
13272         (record_inline_static): Likewise.
13273         (push_scope): Likewise.
13274         (make_label): Likewise.
13275         (lookup_label_for_goto): Likewise.
13276         (finish_struct): Likewise.
13277         (finish_enum): Likewise.
13278         (c_push_function_context): Likewise.
13279
13280         * bitmap.c (bitmap_element_allocate): Likewise.
13281         (bitmap_gc_alloc_stat): Likewise.
13282
13283         * alias.c (record_alias_subset): Likewise.
13284         (init_alias_analysis): Likewise.
13285
13286 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
13287
13288         * fold-const.c (fold_comparison): Remove redundant parenthesis.
13289         * tree-inline.c (expand_call_inline): Pass translated return value of
13290         cgraph_inline_failed_string to diagnostic function.
13291
13292 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
13293             Shujing Zhao  <pearly.zhao@oracle.com>
13294
13295         PR c/37724
13296         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
13297         implicit bad conversions is initialization.
13298         (error_init): Use gmsgid instead of msgid for argument name and change
13299         the call for error.
13300         (pedwarn_init): Use gmsgid instead of msgid for argument name and
13301         change the call for pedwarn.
13302         (warning_init): Use gmsgid instead of msgid for argument name and
13303         change the call for warning.
13304
13305 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
13306
13307         * config/mips/mips-protos.h (mips_print_operand): Delete.
13308         (mips_print_operand_address): Delete.
13309         * config/mips/mips.h (mips_print_operand_punct): Delete.
13310         (PRINT_OPERAND): Delete.
13311         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13312         (PRINT_OPERAND_ADDRESS): Delete.
13313         * config/mips/mips.c (mips_print_operand_punct): Make static.
13314         (mips_print_operand_address): Make static.
13315         (mips_print_operand): Make static.  Call
13316         mips_print_operand_punct_valid_p.
13317         (mips_print_operand_punct_valid_p): New function.
13318         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13319         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13320
13321 2010-06-07  Jan Hubicka  <jh@suse.cz>
13322
13323         PR middle-end/44454
13324         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
13325         are allocated.
13326
13327 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
13328
13329         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
13330         name of RECORD.
13331
13332 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13333
13334         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13335         attributes): Document gas.
13336
13337 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
13338
13339         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
13340         <TYPE_LEA>: Split instruction.
13341         <default>: Remove alternative 2 handling.
13342         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
13343         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
13344         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
13345
13346         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
13347         (ashift_zext lea splitter): Use DImode for multiplication.
13348
13349         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
13350         to generate addition.
13351
13352 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
13353
13354         * common.opt (fira-verbose): Use Var.
13355         (fpcc-struct-return): Use Init instead of VarExists.
13356         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
13357         toplev.c.
13358         * flags.h (flag_signed_char, flag_short_enums,
13359         flag_pcc_struct_return, flag_ira_verbose,
13360         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
13361         * toplev.c (flag_detailed_statistics, flag_signed_char,
13362         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
13363         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
13364         * toplev.h (flag_crossjumping, flag_if_conversion,
13365         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
13366         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
13367         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
13368         flag_cprop_registers, time_report, flag_ira_loop_pressure,
13369         flag_ira_coalesce, flag_ira_move_spills,
13370         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
13371
13372 2010-06-07  Jan Hubicka  <jh@suse.cz>
13373
13374         * df-core.c (df_analyze_problem): Do verification after allocation.
13375
13376         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
13377         (df_lr_alloc): Initialize problem data; move bitmaps to
13378         lr_bitmaps obstack.
13379         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
13380         (df_lr_verify_solution_start): Do not initialize problem data;
13381         allocate bitmaps in lr_bitmaps.
13382         (df_lr_verify_solution_end): Do not free problem data.
13383
13384 2010-06-07  Jan Hubicka  <jh@suse.cz>
13385
13386         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
13387         if caller is noreturn.
13388         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
13389         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
13390         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
13391         * ipa-pure-const.c (check_decl): Add IPA parameter.
13392         (state_from_flags): New function.
13393         (better_state, worse_state): New functions.
13394         (check_call): When in IPA mode, do not care about callees.
13395         (check_load, check_store): Update.
13396         (check_ipa_load, check_ipa_store): New.
13397         (check_stmt): When in IPA mode, use IPA checkers.
13398         (analyze_function): Use state_from_flags.
13399         (propagate): Check indirect edges and references.
13400
13401 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
13402
13403         PR rtl-optimization/44404
13404         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
13405         of count_occurrences to see if it's safe to modify mem_insn.
13406
13407 2010-06-07  Richard Guenther  <rguenther@suse.de>
13408
13409         * gimplify.c (gimplify_cleanup_point_expr): For empty body
13410         and EH-only cleanup drop the cleanup instead of inserting it
13411         unconditionally.
13412
13413 2010-06-07  Ira Rosen  <irar@il.ibm.com>
13414
13415         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
13416         documentation.
13417         * targhooks.c (default_builtin_vectorization_cost): New function.
13418         * targhooks.h (default_builtin_vectorization_cost): Declare.
13419         * target.h (enum vect_cost_for_stmt): Define.
13420         (builtin_vectorization_cost): Change argument and comment.
13421         * tree-vectorizer.h: Remove cost model macros.
13422         * tree-vect-loop.c: Include target.h.
13423         (vect_get_cost): New function.
13424         (vect_estimate_min_profitable_iters): Replace cost model macros with
13425         calls to vect_get_cost.
13426         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
13427         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
13428         default implementation.
13429         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
13430         calls to target hook builtin_vectorization_cost.
13431         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
13432         Likewise.
13433         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
13434         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
13435         implementation to return costs.
13436         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
13437         * config/spu/spu.h: Remove vectorizer cost model macros.
13438         * config/i386/i386.h: Likewise.
13439         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
13440         a call to target hook builtin_vectorization_cost.
13441
13442 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
13443
13444         PR target/44319
13445         * config/i386/i386.c (override_options): Turn zee pass on for level 2
13446         and above and defer till target is known.
13447         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
13448         turn off otherwise.
13449
13450 2010-05-25  Jan Hubicka  <jh@suse.cz>
13451
13452         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
13453         (df_compact_blocks): Likewise.
13454         * df.h (struct df): Turn hardware_regs_used,
13455         regular_block_artificial_uses, eh_block_artificial_uses,
13456         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
13457         bitmap_head.
13458         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
13459         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
13460         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
13461         df_scan_blocks, df_insn_delete, df_insn_rescan,
13462         df_insn_rescan_debug_internal, df_insn_rescan_all,
13463         df_process_deferred_rescans, df_process_deferred_rescans,
13464         df_notes_rescan, df_get_call_refs, df_get_call_refs,
13465         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
13466         df_record_entry_block_defs, df_record_exit_block_uses,
13467         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
13468         df_scan_verify): Update.
13469
13470 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
13471
13472         PR c++/44188
13473         * c-common.c (is_typedef_decl): Move this definition ...
13474         * tree.c (is_typedef_decl): ... here.
13475         (typdef_variant_p): Move definition here from cp/tree.c.
13476         * c-common.h (is_typedef_decl): Move this declaration ...
13477         * tree.h (is_typedef_decl): ... here.
13478         (typedef_variant_p): Move declaration here from cp/cp-tree.h
13479         * dwarf2out.c (is_naming_typedef_decl): New function.
13480         (gen_tagged_type_die): Split out of ...
13481         (gen_type_die_with_usage): ... this function. When an anonymous
13482         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
13483         is emitted for the typedef.
13484         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
13485         anonymous tagged types.
13486
13487 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13488
13489         PR c/20000
13490         * c-decl.c (grokdeclarator): Delete warning.
13491
13492 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
13493
13494         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
13495         newly built CALL_EXPR.
13496         * tree-profile.c (tree_profiling): Don't profile functions produced
13497         for built-in stuff.
13498
13499 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
13500
13501         PR bootstrap/44427
13502         PR bootstrap/44428
13503         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
13504         endianness-independent.
13505
13506 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
13507
13508         * c-common.c: Move to c-family/.
13509         * c-common.def: Likewise.
13510         * c-common.h: Likewise.
13511         * c-cppbuiltin.c: Likewise.
13512         * c-dump.c: Likewise.
13513         * c-format.c: Likewise.
13514         * c-format.h : Likewise.
13515         * c-gimplify.c: Likewise.
13516         * c-lex.c: Likewise.
13517         * c-omp.c: Likewise.
13518         * c.opt: Likewise.
13519         * c-opts.c: Likewise.
13520         * c-pch.c: Likewise.
13521         * c-ppoutput.c: Likewise.
13522         * c-pragma.c: Likewise.
13523         * c-pragma.h: Likewise.
13524         * c-pretty-print.c: Likewise.
13525         * c-pretty-print.h: Likewise.
13526         * c-semantics.c: Likewise.
13527         * stub-objc.c: Likewise.
13528
13529         * gengtype.c (get_file_langdir): Special-case files in c-family/.
13530         (get_output_file_with_visibility): Fix name for c-common.h.
13531         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
13532
13533         * c-tree.h: Update include path for moved files.
13534         * c-lang.c: Likewise.
13535         * c-lang.h: Likewise.
13536         * c-parser.c: Likewise.
13537         * c-convert.c: Likewise.
13538         * c-decl.c: Likewise.
13539         * c-objc-common.c: Likewise.
13540         * configure.ac: Make sure c-family/ exists in the build directory.
13541         * configure: Regenerate.
13542         * Makefile.in: Update paths for moved files.  Regroup files per
13543         location and update dependencies.  Move generated_files down after
13544         ALL_GTFILES_H.
13545
13546         * config/spu/spu-c.c: Update paths for moved files.
13547         * config/mep/mep-pragma.c: Likewise.
13548         * config/darwin-c.c: Likewise.
13549         * config/i386/msformat-c.c: Likewise.
13550         * config/i386/i386-c.c: Likewise.
13551         * config/avr/avr-c.c: Likewise.
13552         * config/sol2-c.c: Likewise.
13553         * config/ia64/ia64-c.c: Likewise.
13554         * config/rs6000/rs6000-c.c: Likewise.
13555         * config/arm/arm.c: Likewise.
13556         * config/arm/arm-c.c: Likewise.
13557         * config/h8300/h8300.c: Likewise.
13558         * config/v850/v850-c.c: Likewise.
13559
13560         * config/t-darwin: Fix dependencies for moved files.
13561         * config/t-sol2: Fix dependencies for moved files.
13562         * config/mep/t-mep: Fix dependencies for moved files.
13563         * config/ia64/t-ia64: Fix dependencies for moved files.
13564         * config/rs6000/t-rs6000: Fix dependencies for moved files.
13565         * config/v850/t-v850: Fix dependencies for moved files.
13566         * config/v850/t-v850e: Fix dependencies for moved files.
13567
13568         * config/m32c/m32c-pragma.c
13569
13570         * po/exgettext: Look in c-family/ also.
13571
13572 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
13573
13574         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
13575         (mark_control_dependent_edges_necessary): Call it instead of marking
13576         the last statement manually.
13577         (propagate_necessity): Likewise.
13578
13579 2010-06-05  Jan Hubicka  <jh@suse.cz>
13580
13581         * basic-block.h (compute_dominance_frontiers): Updated.
13582         (compute_idf): Likewise.
13583
13584         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
13585         for dominance frontiers.
13586         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
13587         (insert_updated_phi_nodes_for): Likewise.
13588         (update_ssa): Likewise.
13589         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13590         (compute_dominance_frontiers): Likewise.
13591         (compute_idf): Likewise.
13592         * df-problems.c (df_md_local_compute): Likewise.
13593
13594 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
13595
13596         * target.h (struct gcc_target): Add memory_move_cost field.
13597         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
13598         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
13599         * targhooks.c (default_memory_move_cost): New function.
13600         * targhooks.h (default_memory_move_cost): Declare function.
13601         * reload.h (memory_move_cost): Declare.
13602         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13603         * reginfo.c (memory_move_cost): New function.
13604         (memory_move_secondary_cost): Change type of 'in' argument to bool.
13605         * ira.h (ira_memory_move_cost): Update comment.
13606         * ira.c (ira_memory_move_cost): Update comment.
13607         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
13608         with memory_move_cost.
13609         * postreload.c (reload_cse_simplify_set): (Ditto.).
13610         * reload1.c (choose_reload_regs): (Ditto.).
13611         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
13612         (MEMORY_MOVE_COST):  Revise documentation.
13613
13614         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13615         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13616         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
13617         type of 'in' argument to bool.
13618         (TARGET_MEMORY_MOVE_COST): Define.
13619
13620 2010-06-05  Jan Hubicka  <jh@suse.cz>
13621
13622         * ipa-pure-const.c (propagate): Fix typo in handling of functions
13623         that cannot return.  Be more careful when merging the results with
13624         previously known ones.
13625
13626 2010-06-05  Matthias Klose  <doko@ubuntu.com>
13627
13628         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
13629         function to add the -iplugindir option.
13630         (find_plugindir_spec_function): Add new declaration and function.
13631         (static_spec_func): Use it for "find-plugindir".
13632
13633 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
13634
13635         PR c++/44361
13636         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
13637         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
13638         statement expression.
13639
13640 2010-06-05  Jan Hubicka  <jh@suse.cz>
13641
13642         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
13643         (df_rd_problem_data): Convert sparse_invalidated_by_call,
13644         dense_invalidated_by_call to bitmap head.
13645         (df_rd_alloc, df_rd_bb_local_compute_process_def,
13646         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
13647         df_rd_start_dump, df_lr_verify_transfer_functions,
13648         df_live_verify_transfer_functions, df_chain_create_bb,
13649         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
13650         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
13651         df_simulate_one_insn_forwards, df_md_alloc,
13652         df_md_bb_local_compute_process_def,
13653         df_md_bb_local_compute_process_def, df_md_local_compute,
13654         df_md_transfer_function df_md_free): Update.
13655
13656 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
13657
13658         PR c/44322
13659         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
13660         target type for ADDR_EXPR; require no changes to qualifiers except
13661         for function types.
13662         * c-tree.h (c_build_type_variant): Remove.
13663
13664 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13665
13666         * genautomata.c (get_excl_set): Do work per element, not per char.
13667         (check_presence_pattern_sets): Similar.
13668         (check_absence_pattern_sets): Similar.
13669
13670 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
13671
13672         * genautomata.c (curr_state_pass_num): Delete.
13673         (min_issue_delay_pass_states): Delete.
13674         (min_issue_delay): Delete.
13675         (initiate_min_issue_delay_pass_states): Delete.
13676         (output_min_issue_delay_table): Compute min_issue_delay_vect
13677         using a breadth-first search variant.
13678         (output_tables): Don't call initiate_min_issue_delay_pass_states.
13679
13680 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
13681
13682         PR boostrap/44421
13683         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
13684         (df_byte_lr_bb_local_compute): Likewise.
13685
13686 2010-06-03  Jason Merrill  <jason@redhat.com>
13687
13688         Implement noexcept operator (5.3.7)
13689         * c-common.c (c_common_reswords): Add noexcept.
13690         * c-common.h (enum rid): Add RID_NOEXCEPT.
13691
13692 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
13693
13694         * config/darwin-driver.c (darwin_default_min_version): Use
13695         GCC-specific formats in diagnostics.
13696         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
13697         diagnostics.
13698         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
13699         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
13700         eval_spec_function, handle_braces, process_brace_body, main,
13701         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
13702         getenv_spec_function, compare_version_strings,
13703         version_compare_spec_function): Use GCC-specific formats in
13704         diagnostics.
13705
13706 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13707
13708         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
13709         that operand 0 and operand 1 are equal.
13710         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
13711         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
13712         and operand 1 are equal.
13713         <default>: Ditto.  Remove ??? comment.
13714         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
13715         and operand 1 are equal.
13716         <default>: Ditto.  Remove ??? comment.
13717         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
13718         are equal.
13719         (*add<mode>_4) <default>: Ditto.
13720         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
13721
13722 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
13723
13724         * config/i386/i386-protos.h (ix86_print_operand): Declare.
13725         * config/i386/i386.c (ix86_print_operand): Make non-static.
13726         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
13727         * output.h (output_operand): Declare.
13728         * final.c (output_operand): Make non-static.
13729
13730 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
13731
13732         PR rtl-optimization/44013
13733         * sched-deps.c (add_dependence_list_and_free): Don't free lists
13734         when processing debug insns.
13735
13736         PR debug/41371
13737         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
13738         recursing.  Check that recursion is bounded.  Rename inner var
13739         to avoid hiding incoming argument.
13740
13741 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13742
13743         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
13744         operands[2] == 255.
13745         (*addqi_3): Ditto.
13746         (*addqi_4): Ditto.
13747         (*addqi_5): Ditto.
13748         (*addqi_ext_1_rex64): Ditto.
13749         (*addqi_ext_1): Ditto.
13750
13751         (*addqi_4): Check for incdec_operand in QImode.
13752
13753         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
13754         using SWI mode iterator.
13755         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
13756         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
13757         mode iterator.
13758         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
13759         using SWI mode iterator.
13760
13761 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13762
13763         PR c/25880
13764         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
13765         * c-format.c (gcc_diag_flag_specs): Add hash.
13766         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
13767         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
13768         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
13769         pp_c_cv_qualifiers. Handle qualifiers spelling here.
13770         (pp_c_type_qualifier_list): Call the function above.
13771         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
13772         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
13773         (WARN_FOR_QUALIFIERS): New macro.
13774         (convert_for_assignment): Use it.
13775
13776 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
13777
13778         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
13779
13780 2010-06-04  Jan Hubicka  <jh@suse.cz>
13781
13782         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
13783         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
13784         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
13785         DF_BYTE_LR_OUT): Update for embedded bitmaps.
13786         * fwprop.c (single_def_use_enter_block): Likewise.
13787         * ddg.c (create_ddg_dep_from_intra_loop_link,
13788         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
13789         * loop-iv.c (latch_dominating_def): Likewise.
13790         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
13791         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
13792         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
13793         df_rd_transfer_function, df_rd_top_dump,
13794         df_rd_bottom_dump): Update.
13795         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
13796         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
13797         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
13798         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
13799         df_lr_verify_solution_start, df_lr_verify_solution_end,
13800         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
13801         df_live_free_bb_info, df_live_alloc, df_live_reset,
13802         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
13803         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
13804         df_live_verify_solution_start, df_live_verify_solution_end,
13805         df_live_verify_transfer_functions, df_chain_create_bb,
13806         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
13807         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13808         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
13809         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
13810         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
13811         df_byte_lr_transfer_function, df_byte_lr_top_dump,
13812         df_byte_lr_bottom_dump, df_create_unused_note,
13813         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
13814         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
13815         df_md_transfer_function, df_md_init, df_md_confluence_0,
13816         df_md_confluence_n,
13817         df_md_top_dump, df_md_bottom_dump): Update.
13818         (struct df_lr_problem_data): Embedd bitmap headers.
13819
13820 2010-06-04  Jan Hubicka  <jh@suse.cz>
13821
13822         * dce.c (dce_process_block): Do not re-scan already marked
13823         instructions.
13824
13825 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
13826
13827         PR rtl-optimization/39871
13828         PR rtl-optimization/40615
13829         PR rtl-optimization/42500
13830         PR rtl-optimization/42502
13831         * ira.c (init_reg_equiv_memory_loc: New function.
13832         (ira): Call it twice.
13833         * reload.h (calculate_elim_costs_all_insns): Declare.
13834         * ira-costs.c: Include "reload.h".
13835         (regno_equiv_gains): New static variable.
13836         (init_costs): Allocate it.
13837         (finish_costs): Free it.
13838         (ira_costs): Call calculate_elim_costs_all_insns.
13839         (find_costs_and_classes): Take estimated elimination costs
13840         into account.
13841         (ira_adjust_equiv_reg_cost): New function.
13842         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
13843         * reload1.c (init_eliminable_invariants, free_reg_equiv,
13844         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
13845         (elim_bb): New static variable.
13846         (reload): Move code out of here into init_eliminable_invariants and
13847         free_reg_equiv.  Call them.
13848         (calculate_elim_costs_all_insns): New function.
13849         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
13850         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
13851         but call note_reg_elim_costly if we turned a valid memory address
13852         into an invalid one.
13853         * Makefile.in (ira-costs.o): Depend on reload.h.
13854
13855 2010-06-04  Julian Brown  <julian@codesourcery.com>
13856
13857         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
13858         for pool ranges.
13859
13860 2010-06-04  Richard Guenther  <rguenther@suse.de>
13861
13862         PR lto/41584
13863         * cgraph.h (struct varpool_node): Add lto_file_data field.
13864         * lto-cgraph.c (input_varpool_node): Initialize it.
13865
13866 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
13867
13868         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
13869         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
13870         predicate in "type" attribute calculation.
13871         (*addsi_1_zext): Ditto.
13872         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
13873         (*addsi_2_zext): Ditto.
13874         (*add<mode>_3): Ditto.
13875         (*addsi_3_zext): Ditto.
13876         (*add<mode>_5): Ditto.
13877
13878 2010-06-03  Jan Hubicka  <jh@suse.cz>
13879
13880         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
13881         of bitmap_bit_p.
13882         * cfganal.c (compute_dominance_frontiers_1): Likewise.
13883
13884 2010-06-03  Jan Hubicka  <jh@suse.cz>
13885
13886         * df-problems.c (df_create_unused_note, df_note_bb_compute):
13887         micro-optimize the checks when to add new note.
13888
13889 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
13890
13891         * final.c (output_asm_insn): Call
13892         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
13893         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
13894         (output_address): Call targetm.asm_out.print_operand_address.
13895         Update comments.
13896         * target.h (struct gcc_target): Add print_operand,
13897         print_operand_address, and print_operand_punct_valid_p fields.
13898         * targhooks.h (default_print_operand): Declare.
13899         (default_print_operand_address): Declare.
13900         (default_print_operand_punct_valid_p): Declare.
13901         * targhooks.c (default_print_operand): Define.
13902         (default_print_operand_address): Define.
13903         (default_print_operand_punct_valid_p): Define.
13904         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
13905         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
13906         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
13907         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
13908         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
13909         * vmsdbgout.c (addr_const_to_string): Update comment.
13910         * config/i386/i386.c (print_operand): Rename to...
13911         (ix86_print_operand): ...this.  Make static.
13912         (print_operand_address): Rename to...
13913         (ix86_print_operand_address): ...this.  Make static.  Call
13914         ix86_print_operand instead of PRINT_OPERAND.
13915         (ix86_print_operand_punct_valid_p): New function.
13916         (TARGET_PRINT_OPERAND): Define.
13917         (TARGET_PRINT_OPERAND_ADDRESS): Define.
13918         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
13919         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
13920         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
13921         (PRINT_OPERAND): Delete.
13922         (PRINT_OPERAND_ADDRESS): Delete.
13923         * config/i386/i386-protos.h (print_operand): Delete prototype.
13924         (print_operand_address): Delete prototype.
13925
13926 2010-06-03  Richard Guenther  <rguenther@suse.de>
13927
13928         PR tree-optimization/44403
13929         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
13930         Preserve pointer qualifiers.
13931         (vect_create_data_ref_ptr): Likewise.
13932
13933 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
13934
13935         PR c++/44294
13936         * defaults.h (MAX_FIXED_MODE_SIZE): New.
13937
13938         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
13939
13940 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
13941
13942         PR debug/44375
13943         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
13944         return false if merging the bbs would lead to goto_locus
13945         location being lost from the IL.
13946
13947 2010-06-03  Jan Hubicka  <jh@suse.cz>
13948             Jakub Jelinek  <jakub@redhat.com>
13949
13950         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
13951         set->regs[i] is NULL or has just one entry.
13952
13953 2010-06-03  Jan Hubicka  <jh@suse.cz>
13954
13955         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
13956         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
13957
13958 2010-06-03  Paul Brook  <paul@codesourcery.com>
13959
13960         * config/arm/arm.c (FL_TUNE): Define.
13961         (arm_default_cpu, arm_cpu_select): Remove.
13962         (all_cores): Populate core field.
13963         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
13964         (arm_find_cpu): New function.
13965         (arm_handle_option): Lookup cpu/architecture names.
13966         (arm_override_options): Cleanup mcpu/march/mtune handling.
13967         (arm_file_start): Ditto.
13968
13969 2010-06-03  Alan Modra  <amodra@gmail.com>
13970
13971         PR target/44169
13972         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
13973         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
13974         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
13975         (rs6000_emit_load_toc_table): Likewise.
13976
13977 2010-06-02  Jan Hubicka  <jh@suse.cz>
13978
13979         * passes.c (init_optimization_passes): Put ipa reference
13980         after ipa pure-const.
13981
13982 2010-06-02  Jan Hubicka  <jh@suse.cz>
13983
13984         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
13985         calls_read_all and calls_write_all.
13986         (get_reference_optimization_summary): Fix formatting.
13987         (is_proper_for_analysis): Check that decl is not readonly.
13988         (propagate_bits): Check CONST/PURE/noreturn flags.
13989         (ipa_init): Move all_module_statics to optimization_summary_obstack.
13990         (analyze_function): Ignore indirect edges.
13991         (copy_global_bitmap): For all module statics, do nothing.
13992         (generate_summary): Do not print calls_read_all/calls_write_all.
13993         (read_write_all_from_decl): Take node as argument; check
13994         cgraph_node_cannot_return.
13995         (propagate): Reorganize read_all/write_all computation;
13996         check indirect edges; check ecf flags; use all_module_statics
13997         in the results; do not free all_module_statics.
13998         (stream_out_bitmap): Handle all_module_statics.
13999         (ipa_reference_write_optimization_summary): Likewise; use
14000         varpool/cgraph encoders to get boundaries.
14001         (ipa_reference_read_optimization_summary): Read in all_module_statics;
14002         use it when possible.
14003
14004 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14005
14006         PR target/44218
14007         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
14008         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
14009
14010         * doc/extend.texi (powerpc builtins): Document vec_recip,
14011         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
14012
14013         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
14014         (rs6000_emit_swrsqrt): Ditto.
14015         (rs6000_emit_swdivsf): Delete.
14016         (rs6000_emit_swdivdf): Ditto.
14017         (rs6000_emit_swrsqrtsf): Ditto.
14018
14019         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
14020         describe the reciprocal estimate support for each type.
14021         (recip_options): Map -mrecip=<opt> into option bits.
14022         (gen_2arg_fn_t): New typedef for binary rtx gen function.
14023         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
14024         reciprocal estimate instructions.
14025         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
14026         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
14027         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
14028         cost information if -mdebug=cost or -mdebug=reg.
14029         (rs6000_override_options): Set -mrecip-precision for power6, and
14030         power7 machines.  If -mvsx or -mdfp, enable various options that
14031         came in previous instruction set ISAs, unless the option was
14032         explicitly disabled by the command line option.  Parse
14033         -mrecip=<opt> options.
14034         (rs6000_builtin_vectorized_function): Add support for vectorizing
14035         the reciprocal estimate builtins and expansions.
14036         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
14037         (bdesc_2arg): Add reciprocal estimate builtins.
14038         (bdesc_1arg): Add reciprocal square root estimate builtins.
14039         (rs6000_expand_builtin): Rewrite to use a switch statement,
14040         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
14041         (rs6000_init_builtins): Create declarations for reciprocal
14042         estimate builtins.
14043         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
14044         sized, prefer traditional floating point registers, if integer
14045         vector types, prefer altivec registers.  Don't actually look at
14046         the memory address any more.
14047         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
14048         builtins.
14049         (rs6000_load_constant_and_splat): New helper function to load up
14050         the constant for reciprocal estimate instructions.
14051         (rs6000_emit_madd): New helper function for generating
14052         multiply/add type instructions, based on the current switches.
14053         (rs6000_emit_msub): Ditto.
14054         (rs6000_emit_mnsub): Ditto.
14055         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
14056         replace a divide with a reciprocal estimate and fixup, adding
14057         support for machines with high precision and vectors.
14058         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
14059         low precision machines.
14060         (rs6000_emit_swdiv): New common function to be called to replace a
14061         division with reciprocal estimate and fixup.
14062         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
14063         for double and vector types.  Add support for high precision machines.
14064
14065         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
14066         the reciprocal estimate instructions can be generated.
14067         (TARGET_FRE): Ditto.
14068         (TARGET_FRSQRTES): Ditto.
14069         (TARGET_FRSQRTE): Ditto.
14070         (RS6000_RECIP_*): New macros for reciprocal estimate support.
14071
14072         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
14073         square root estimate on vectors.
14074         (re<mode>2): New insn for reciprocal division estimate on vectors.
14075
14076         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
14077         New builtin.
14078         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
14079         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
14080         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
14081         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
14082         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
14083         (RS6000_BUILTIN_RSQRT): Ditto.
14084         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
14085         floating point builtin.
14086
14087         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
14088         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
14089         __RECIP_PRECISION__ based on the command line switches.
14090         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
14091
14092         * config/rs6000/rs6000.opt (-mrecip): Document add support for
14093         replacing division instructions with reciprocal estimate and fixup.
14094         (-mrecip=<opt>): New option.
14095         (-mrecip-precision): Ditto.
14096
14097         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
14098         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
14099         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
14100         precision scalar.
14101
14102         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
14103         (UNSPEC_VREFP): Ditto.
14104         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
14105         conterparts with regard to support of -mno-fused-madd and -ffast-math.
14106         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
14107         reciprocal estimate instructions to be generated.
14108         (altivec_vrefp): Ditto.
14109
14110         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
14111         estimate support.
14112         (rreg): New mode attribute for reciprocal estimate support.
14113         (recip<mode>3): New insn for division using reciprocal estimate
14114         and fixup builtins.
14115         (divide define_split): New define_split to convert floating point
14116         division to use reciprocal estimate if the user used the
14117         appropriate options and the split is run when we can add new
14118         pseudo registers for the fixup.
14119         (rsqrt<mode>2): New insn for reciprocal square root support.
14120         (recipsf3): Move into recip<mode>3.
14121         (recipdf3): Ditto.
14122         (fres): Use TARGET_FRES.
14123         (rsqrtsf2): Move into rsqrt<mode>2.
14124         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
14125         (copysignsf3): Add support for VSX.
14126         (fred): Use TARGET_FRE.
14127         (fred_fpr): Ditto.
14128         (rsqrtdf_internal1): New function for frsqrte instruciton.
14129
14130         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
14131         (vec_rsqrt): Ditto.
14132
14133 2010-06-03  Richard Guenther  <rguenther@suse.de>
14134
14135         PR middle-end/44291
14136         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
14137         (set_user_assembler_libfunc): Likewise.
14138
14139 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14140
14141         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
14142         defaults.h.
14143         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
14144         to defaults.h
14145         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
14146         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
14147         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
14148         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
14149         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
14150         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
14151         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
14152         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
14153         * defaults.h: Updated for above mentioned changes.
14154
14155 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
14156
14157         * c-common.c: Remove header include of tm_p.h.
14158         * Makefile.in (c-common.o): Remove TM_P_H dependency.
14159
14160 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
14161
14162         * tree.h (struct tree_decl_map): New type.
14163         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
14164         (tree_decl_map_hash): New prototype.
14165         (debug_expr_for_decl, value_expr_for_decl): Change into
14166         tree_decl_map hashtab from tree_map.
14167         (init_ttree): Adjust initialization.
14168         (tree_decl_map_hash): New function.
14169         (decl_debug_expr_lookup, decl_debug_expr_insert,
14170         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
14171
14172 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14173
14174         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
14175         linker emulations.
14176         * configure: Regenerate.
14177         * config.in: Regenerate.
14178
14179         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
14180         (X86_64_EMULATION): Define.
14181         (TARGET_LD_EMULATION): Use them.
14182
14183         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
14184         (SPARC64_EMULATION): Define.
14185         (LINK_ARCH_SPEC): Use them.
14186
14187 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14188
14189         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
14190         smallest_mode_for_size for computing the precision types of new
14191         graphite IVs.  Do not call lang_hooks.types.type_for_size.
14192
14193 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14194
14195         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
14196         information.
14197         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
14198
14199 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
14200
14201         PR middle-end/44363
14202         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
14203         return false instead.
14204
14205 2010-06-02  Jan Hubicka  <jh@suse.cz>
14206
14207         PR middle-end/44295
14208         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
14209         create new cgraph node to check callee.
14210
14211 2010-06-02  Richard Guenther  <rguenther@suse.de>
14212
14213         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
14214
14215 2010-06-02  Richard Guenther  <rguenther@suse.de>
14216
14217         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
14218         (lto_wrapper_cleanup): ... this.  Do not exit.
14219         (fatal): Adjust.  Exit here.
14220         (fatal_perror): Likewise.
14221         (fatal_signal): New function.
14222         (main): Set up signal handlers to cleanup temporary files.
14223         * Makefile.in (lto-wrapper.o): Adjust dependencies.
14224
14225 2010-06-02  Richard Guenther  <rguenther@suse.de>
14226
14227         PR tree-optimization/44377
14228         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
14229
14230 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14231
14232         * config/s390/2097.md (z10_fhex): Remove insn reservation.
14233         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
14234         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
14235         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
14236         instruction.
14237         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
14238
14239 2010-06-02  Jan Hubicka  <jh@suse.cz>
14240
14241         * bitmap.c (bitmap_descriptor): Add search_iter.
14242         (bitmap_find_bit): Increment it.
14243         (print_statistics): Print it.
14244
14245 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
14246
14247         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
14248         instead of gimple_build_call_vec.  Delete unnecessary local variable.
14249
14250 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14251
14252         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
14253         change from yesterday.
14254
14255 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
14256
14257         * c-ada-spec.c: Clean up redundant includes.
14258
14259 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
14260
14261         * gimplify.c: Do not include except.h and optabs.h.
14262         (gimplify_body): Do not initialize RTL profiling.
14263         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
14264         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
14265         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
14266         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
14267         langhooks.h.
14268
14269         * tree-pretty-print.h: Include pretty-print.h.
14270         * gimple-pretty-print.h: Include pretty-print.h.
14271
14272         * tree-pretty-print.c: Do not include diagnostic.h.
14273         * tree-vrp.c: Likewise.
14274         * tree-tailcall.c: Likewise
14275         * tree-scalar-evolution.c: Likewise
14276         * tree-ssa-dse.c: Likewise
14277         * tree-chrec.c: Likewise
14278         * tree-ssa-sccvn.c: Likewise
14279         * tree-ssa-copyrename.c: Likewise
14280         * tree-nomudflap.c: Likewise
14281         * tree-call-cdce.c: Likewise
14282         * tree-stdarg.c: Likewise
14283         * tree-ssa-math-opts.c: Likewise
14284         * tree-nrv.c: Likewise
14285         * tree-ssa-sink.c: Likewise
14286         * tree-browser.c: Likewise
14287         * tree-ssa-loop-ivcanon.c: Likewise
14288         * tree-ssa-loop.c: Likewise
14289         * tree-parloops.c: Likewise
14290         * tree-ssa-address.c: Likewise
14291         * tree-ssa-ifcombine.c: Likewise
14292         * tree-if-conv.c: Likewise
14293         * tree-data-ref.c: Likewise
14294         * tree-affine.c: Likewise
14295         * tree-ssa-phiopt.c: Likewise
14296         * tree-ssa-coalesce.c: Likewise
14297         * tree-ssa-pre.c: Likewise
14298         * tree-ssa-live.c: Likewise
14299         * tree-predcom.c: Likewise
14300         * tree-ssa-forwprop.c: Likewise
14301         * tree-ssa-dce.c: Likewise
14302         * tree-ssa-ter.c: Likewise
14303         * tree-ssa-loop-prefetch.c: Likewise
14304         * tree-optimize.c: Likewise
14305         * tree-ssa-phiprop.c: Likewise
14306         * tree-object-size.c: Likewise
14307         * tree-outof-ssa.c: Likewise
14308         * tree-ssa-structalias.c: Likewise
14309         * tree-switch-conversion.c: Likewise
14310         * tree-ssa-reassoc.c: Likewise
14311         * tree-ssa-operands.c: Likewise
14312         * tree-vectorizer.c: Likewise
14313         * tree-vect-data-refs.c: Likewise
14314         * tree-vect-generic.c: Likewise
14315         * tree-vect-stmts.c: Likewise
14316         * tree-vect-patterns.c: Likewise
14317         * tree-vect-slp.c: Likewise
14318         * tree-vect-loop.c: Likewise
14319         * tree-ssa-loop-ivopts.c: Likewise
14320         * tree-ssa-loop-im.c: Likewise
14321         * tree-ssa-loop-niter.c: Likewise
14322         * tree-ssa-loop-unswitch.c: Likewise
14323         * tree-ssa-loop-manip.c: Likewise
14324         * tree-ssa-loop-ch.c: Likewise
14325         * tree-dump.c: Likewise
14326         * tree-complex.c: Likewise
14327
14328         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
14329         * tree-ssa-uninit.c: Likewise
14330         * tree-ssa-threadupdate.c: Likewise
14331         * tree-ssa-uncprop.c: Likewise
14332         * tree-ssa-ccp.c: Likewise
14333         * tree-ssa-dom.c: Likewise
14334         * tree-ssa-propagate.c: Likewise
14335         * tree-ssa-alias.c: Likewise
14336         * tree-dfa.c: Likewise
14337         * tree-cfgcleanup.c: Likewise
14338         * tree-sra.c: Likewise
14339         * tree-ssa-copy.c: Likewise
14340         * tree-ssa.c: Likewise
14341         * tree-profile.c: Likewise
14342         * tree-cfg.c: Likewise
14343         * tree-ssa-threadedge.c: Likewise
14344         * tree-vect-loop-manip.c: Likewise
14345
14346         * tree-inline.c: Do not include diagnostic.h and expr.h.
14347         Include rtl.h.
14348         (copy_decl_for_dup_finish): Do not use NULL_RTX.
14349
14350         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
14351         * tree-loop-distribution.c: Likewise.
14352
14353 2010-06-01  Jan Hubicka  <jh@suse.cz>
14354
14355         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
14356
14357 2010-06-01  Jan Hubicka  <jh@suse.cz>
14358
14359         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
14360         remove return value.
14361         (split_bbs_on_noreturn_calls) .... here.
14362         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
14363         * tree-flow.h (fixup_noreturn_call): New.
14364
14365 2010-06-01  Jan Hubicka  <jh@suse.cz>
14366
14367         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
14368
14369 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
14370
14371         * tree.h (build_nt_call_list): Delete.
14372         * tree.c (build_nt_call_list): Delete.
14373
14374 2010-06-01  Jan Hubicka  <jh@suse.cz>
14375
14376         * fwprop.c: Make emit-rtl.h include last.
14377         * rtlanal.c: Include emit-rtl.h.
14378         * genautomata.c: Output emit-rtl include into insn-automata.c
14379         * df-scan.c: Include emit-rtl.h.
14380         * haifa-sched.c: Indlude emit-rtl.h.
14381         * mode-switching.c: Indlude emit-rtl.h.
14382         * graph.c: Indlude emit-rtl.h.
14383         * sel-sched.c: Include emit-rtl.h.
14384         * sel-sched-ir.c: Include emit-rtl.h.
14385         * ira-build.c: Include emit-rtl.h.
14386         * emit-rtl.c (first_insn, last_insn): Remove defines.
14387         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
14388         Move to emit-rtl.h.
14389         (set_new_first_and_last_insn, get_last_insn_anywhere,
14390         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
14391         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
14392         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
14393         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
14394         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
14395         Use accessor functions.
14396         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14397          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14398         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14399         mem_expr_equal_p): Move here from rtl.h.
14400         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
14401         Move here from emit-rtl.c; make inline.
14402         * cfglayout.h: Include emit-rtl.h.
14403         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
14404          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
14405         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
14406         mem_expr_equal_p, get_insns, set_first-insn,
14407         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
14408         * reg-stack.c: Include emit-rtl.h.
14409         * dce.c: Likewise.
14410
14411 2010-06-01  Jan Hubicka  <jh@suse.cz>
14412
14413         * cgraph.h (tree_function_versioning): Update prototype.
14414         (cgraph_function_versioning): Update prototype.
14415         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
14416         bitmap.
14417         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
14418         (cgraph_materialize_clone, save_inline_function_body): Update use of
14419         tree_function_versioning.
14420         * tree-inline.c (copy_bb): Look for previous copied block to link
14421         after; fix debug output.
14422         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
14423         (copy_body): Likewise.
14424         (expand_call_inline): Update use of copy_body.
14425         (tree_function_versioning): Update use of copy body; accept
14426         blocks_to_copy and new_entry.
14427
14428 2010-06-01  Jan Hubicka  <jh@suse.cz>
14429
14430         * gegenrtl.c: Remove unnecesary prototypes.
14431         (gendecl): Remove.
14432         (gendef): Produce static inline.
14433         (gencode): Remove.
14434         (main): Do not decode parameters; generate header only.
14435         * Makefile.in (genrtl.c): Remove.
14436
14437 2010-06-01  Jan Hubicka  <jh@suse.cz>
14438
14439         * tree-switch-conversion.c (build_one_array): Make it readonly.
14440
14441 2010-06-01  Richard Guenther  <rguenther@suse.de>
14442
14443         * optabs.c (init_optabs): Guard all accesses to reinit.
14444         * ipa-pure-const.c (propagate): Fix another typo.
14445         * opts.c (common_handle_option): Split assignment to bool.
14446         * c-opts.c (c_common_handle_option): Likewise.
14447
14448 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
14449             Matthew Gingell  <gingell@adacore.com>
14450
14451         * doc/invoke.texi: Mention -fdump-ada-spec.
14452         * tree-dump.c (dump_files): Add ada-spec.
14453         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
14454         * tree-pass.h (tree_dump_index): Add TDI_ada.
14455         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
14456         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
14457         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
14458         * c-decl.c: Include c-ada-spec.h.
14459         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
14460         functions.
14461         (c_write_global_declarations): Add handling of -fdump-ada-spec.
14462         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
14463         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
14464         * c-ada-spec.h, c-ada-spec.c: New files.
14465
14466 2010-06-01  Richard Guenther  <rguenther@suse.de>
14467
14468         PR lto/43853
14469         * ipa-pure-const.c (get_function_state): Hand back varying state
14470         if we do not have one.
14471         (has_function_state): New function.
14472         (duplicate_node_data): Adjust.
14473         (remove_node_data): Likewise.
14474         (pure_const_write_summary): Likewise.
14475         (propagate): Likewise.  Fix typo.
14476
14477 2010-06-01  Jan Hubicka  <jh@suse.cz>
14478
14479         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
14480         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
14481         (execute_all_ipa_transforms): Do not play with the states.
14482
14483 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
14484
14485         * config/arm/t-linux-androideabi: New.
14486         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
14487
14488 2010-06-01  Jan Hubicka  <jh@suse.cz>
14489
14490         * tree-inline.c (estimate_num_insns): For stdarg functions look
14491         into call statement to count cost of argument passing.
14492
14493 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
14494
14495         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
14496         argument for fprintf.
14497         (ix86_output_addr_diff_elt): Likewise.
14498         (x86_function_profiler): Likewise.
14499         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
14500         (LPREFIX): Likewise.
14501         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
14502
14503 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14504
14505         PR target/44338
14506         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
14507         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
14508         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
14509         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
14510         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
14511         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
14512         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
14513         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
14514         TARGET_FUSED_MADD.
14515
14516 2010-05-31  Jan Hubicka  <jh@suse.cz>
14517
14518         * tree.h (tree_range_check_failed): Declare noreturn.
14519
14520 2010-05-31  Jan Hubicka  <jh@suse.cz>
14521
14522         * gimple.c (gimple_call_builtin_p): New function.
14523         * gimple.h (gimple_call_builtin_p): Declare.
14524         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
14525         to exit.
14526         (execute_warn_function_return): BUILT_IN_RETURN is return.
14527         (split_critical_edges): Return edges are not critical.
14528         (is_ctrl_altering_stmt): Builtin_in_return is altering.
14529         (gimple_verify_flow_info): Handle built_in_return.
14530         (execute_warn_function_return): Handle built_in_return.
14531         * ipa-pure-const.c (check_call): Ignore builtin_return.
14532
14533 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
14534
14535         PR middle-end/44337
14536         * expr.c (expand_assignment): Don't store anything for out-of-bounds
14537         array accesses with non-MEM.
14538
14539         PR tree-optimization/44182
14540         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
14541         newly needs to end a bb is followed by debug stmts, instead return
14542         true from the function at the end.
14543         (maybe_move_debug_stmts_to_successors): New function.
14544         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
14545
14546 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
14547
14548         PR target/44161
14549         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
14550
14551 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
14552
14553         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
14554         for nested functions in non-optimized compilation.
14555
14556 2010-05-31  Richard Guenther  <rguenther@suse.de>
14557
14558         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
14559
14560 2010-05-30  Jan Hubicka  <jh@suse.cz>
14561
14562         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
14563
14564 2010-05-30  Richard Guenther  <rguenther@suse.de>
14565
14566         PR lto/42975
14567         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
14568         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
14569         no longer needed.
14570
14571 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
14572
14573         * config/darwin.c (output_objc_section_asm_op): Add comment.
14574         (name_needs_quotes): Add '_' to list of valid comment chars.
14575         (machopic_output_function_base_name): Remove unneeded quotes.
14576         (darwin_encode_section_info): Adjust asm whitespace.
14577         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
14578         (ASM_OUTPUT_LOCAL): Ditto.
14579         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
14580         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
14581         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
14582
14583 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
14584
14585         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
14586         RS6000_OUTPUT_BASENAME unconditionally.
14587         (rs6000_output_function_epilogue): Likewise.
14588
14589 2010-05-30  Jan Hubicka  <jh@suse.cz>
14590
14591         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
14592         nodes.
14593
14594 2010-05-30  Richard Guenther  <rguenther@suse.de>
14595
14596         * tree-cfg.c (verify_gimple_assign_single): Implement
14597         verification for COND_EXPR rhs.
14598
14599 2010-05-30  Jan Hubicka  <jh@suse.cz>
14600
14601         * cgraph.h (cgraph_dump_file): Declare.
14602         * cgraphunit.c (cgraph_dump_file): Export.
14603         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
14604
14605 2010-05-30  Jan Hubicka  <jh@suse.cz>
14606
14607         * dwarf2out.c (reference_to_unused,
14608         premark_types_used_by_global_vars_helper): Avoid creation of new
14609         varpool nodes.
14610
14611 2010-05-30  Jan Hubicka  <jh@suse.cz>
14612
14613         * cgraph.h (cgraph_node_cannot_return,
14614         cgraph_edge_cannot_lead_to_return): New functions.
14615         * cgraph.c (cgraph_node_cannot_return,
14616         cgraph_edge_cannot_lead_to_return): Use them.
14617         * ipa-pure-const.c (pure_const_names): New static var.
14618         (check_call): Handle calls not leading to return.
14619         (pure_const_read_summary): Dump info read.
14620         (propagate): Dump info about propagation process; ignore side effects
14621         of functions not leading to exit; fix handling of pure functions.
14622
14623 2010-05-30  Jan Hubicka  <jh@suse.cz>
14624
14625         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
14626         for tail call epilogues.
14627
14628 2010-05-30  Jan Hubicka  <jh@suse.cz>
14629
14630         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
14631         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
14632         dump files.
14633
14634 2010-05-29  Jan Hubicka  <jh@suse.cz>
14635
14636         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
14637         node; remove references in node we no longer keep in cgrpah but need
14638         body of.
14639
14640 2010-05-29  Jan Hubicka  <jh@suse.cz>
14641
14642         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
14643
14644 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14645
14646         PR target/44165
14647         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
14648
14649 2010-05-29  Jan Hubicka  <jh@suse.cz>
14650
14651         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
14652         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
14653         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
14654         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
14655         debug_names_replaced_by, debug_update_ssa): Likewise.
14656         * sbitmap.c (debug_sbitmap): Likewise.
14657         * genrecog.c (debug_decision, debug_decision_list): Likewise.
14658         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
14659         debug_tree_chain): Likewise.
14660         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
14661         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
14662         * optabs.c (debug_optab_libfuncs): Likewise.
14663         (verify_loop_closed_ssa): Likewise.
14664         * value-prof.c (verify_histograms): Likewise.
14665         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
14666         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
14667         * cfghooks.c (verify_flow_info): Likewise.
14668         * fold-const.c (debug_fold_checksum): Likewise.
14669         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
14670         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
14671         Likewise.
14672         * omega.c (debug_omega_problem): Likewise.
14673         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
14674         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
14675         * dominance.c (verify_dominators, debug_dominance_info,
14676         debug_dominance_tree): Likewise.
14677         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
14678         * df_regno_debug, df_ref_debug,
14679         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
14680         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
14681         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
14682         * sel-sched.c (debug_state): Likewise.
14683         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
14684         Likewise.
14685         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
14686         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
14687         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
14688         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
14689         Likewise.
14690         * c-pretty-print.c (debug_c_tree): Likewise.
14691         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
14692         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
14693         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
14694         * ebitmap.c (debug_ebitmap): Likewise.
14695         * function.c (debug_find_var_in_block_tree): Likewise.
14696         * print-rtl.c (debug_rtx): Likewise.
14697         (debug_rtx_count): Likewise.
14698         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
14699         * stor-layout.c (debug_rli): Likewise.
14700         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
14701         * tree-data-ref.c (debug_data_references,
14702         debug_data_dependence_relations, debug_data_reference,
14703         debug_data_dependence_relation, debug_rdg_vertex,
14704         debug_rdg_component, debug_rdg): Likewise.
14705         * tree-affine.c (debug_aff): Likewise.
14706         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
14707         Likewise.
14708         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
14709         * emit-rtl.c (verify_rtl_sharing): Likewise.
14710         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
14711         debug_value_expressions): Likewise.
14712         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
14713         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
14714         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
14715         * cfglayout.c (verify_insn_chain): Likewise.
14716         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
14717         debug_clast_stmt, debug_generated_program): Likewise.
14718         * ggc-page.c (debug_print_page_list): Likewise.
14719         * tree-ssa-ter.c (debug_ter): Likewise.
14720         * graphite-dependences.c (debug_pddr): Likewise.
14721         * sched-deps.c (debug_ds): Likewise.
14722         * tree-ssa.c (verify_ssa): Likewise.
14723         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
14724         debug_scattering_functions, debug_iteration_domains, debug_pdr,
14725         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
14726         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
14727         * tree-inline.c (debug_find_tree): Likewise.
14728         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
14729         debug_ppl_powerset_matrix): Likewise.
14730         * var-tracking.c (debug_dv): Likewise.
14731         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
14732         * cfgloop.c (verify_loop_structure): Likewise.
14733         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
14734         * c-common.c (verify_sequence_points): Likewise.
14735         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
14736         debug_candidates, debug_rgn_dependencies): Likewise.
14737         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
14738         * debug_constraint_graph, debug_solution_for_var,
14739         debug_sa_points_to_info): Likewise.
14740         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
14741         Likewie.
14742         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
14743         debug_loops, debug_loop, debug_loop_num): Likewise.
14744         * passes.c (debug_pass): Likewise.
14745         (dump_properties): Likewise; add cfglayout property.
14746         (debug_properties): Likewise.
14747         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
14748         * varpool.c (debug_varpool): Likewise.
14749         * regcprop.c (debug_value_data): Likewise.
14750         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
14751         debug_immediate_uses_for): Likewise.
14752
14753 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14754
14755         PR bootstrap/44315
14756         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
14757         Filter out insn-flags.h.
14758
14759 2010-05-29  Jan Hubicka  <jh@suse.cz>
14760
14761         * cgraph.h (struct varpool_node_set_def,
14762         struct cgraph_node_set_def): Remove unused AUX pointer.
14763         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
14764         VEC_empty macro.
14765
14766 2010-05-29  Jan Hubicka  <jh@suse.cz>
14767
14768         PR middle-end/44324
14769         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
14770
14771 2010-05-29  Richard Guenther  <rguenther@suse.de>
14772
14773         * lto-streamer.c (cached_bp): New global variable.
14774         (bitpack_create): Return the cached bitpack, if available.
14775         (bitpack_delete): Clear and cache the bitpack, if appropriate.
14776         (bp_pack_value): Remove redundant asserts.
14777
14778 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14779
14780         PR middle-end/44306
14781         * tree-if-conv.c (is_true_predicate): New.
14782         (is_predicated): Use is_true_predicate.
14783         (add_to_predicate_list): Same.  Do not use unshare_expr.
14784         (add_to_dst_predicate_list): Same.
14785
14786 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
14787
14788         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
14789         field on edges.
14790         (predicate_bbs): Same.
14791         (clean_predicate_lists): Same.
14792         (find_phi_replacement_condition): Do not AND the predicate from
14793         edge->aux.
14794
14795 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
14796
14797         PR bootstrap/44315
14798         * Makefile.in (build/gencondmd.o): Add a missing `\'.
14799
14800 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14801
14802         PR target/44261
14803         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
14804         (negdf2): Adjust expander pattern and use negdf2_slow.
14805         (negsf2): Likewise.
14806
14807 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
14808
14809         * basic-block.h (struct control_flow_graph): Move last_label_uid field
14810         up.
14811         * df.h (struct df_base_ref): Move regno field up.
14812         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
14813         * expr.h (struct separate_ops): Move location field up.
14814         * optabs.h (struct optab_d): Move libcall_basename field down.
14815         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
14816         * config/i386/i386.h (struct machine_function): Convert call_abi field
14817         into a bitfield.  Move cfa field to the end of the structure.
14818
14819 2010-05-29  Jan Hubicka  <jh@suse.cz>
14820
14821         * varpool.c (varpool_get_node): Fix lookup.
14822
14823 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14824
14825         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
14826         RTL specific prototypes with #ifdef RTX_CODE.
14827         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
14828         * config/spu/t-spu-elf: Fix dependencies.
14829
14830         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
14831
14832 2010-05-29  Mike Stump  <mikestump@comcast.net>
14833
14834         PR bootstrap/44315
14835         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
14836         TM_H when building to avoid dependency loops.
14837
14838 2010-05-29  Jan Hubicka  <jh@suse.cz>
14839
14840         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
14841         refs and body; not the whole node for masters of materialized clones.
14842
14843 2010-05-29  Mike Stump  <mikestump@comcast.net>
14844
14845         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
14846
14847 2010-05-29  Jan Hubicka  <jh@suse.cz>
14848
14849         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
14850         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
14851         use of clone_function_name.
14852         * cgraph.h (cgraph_create_virtual_clone,
14853         cgraph_function_versioning): update prototypes.
14854         (clone_function_name): Declare.
14855         * ipa-cp.c (ipcp_insert_stage): Update call of
14856         cgraph_create_virtual_clone.
14857         * omp-low.c (create_omp_child_function_name): Use
14858         cgraph_create_virtual_clone.
14859         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
14860         (cgraph_function_versioning): Take SUFFIX argument; produce new name
14861         and make decl local.
14862
14863 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14864
14865         * vec.h: Include statistics.h
14866         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
14867         with VEC_H.
14868
14869 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14870
14871         * c-lex.c: Do not include c-tree.h.
14872         * c-pretty-print.c: Likewise.
14873         * c-opts.c: Likewise.
14874         * c-gimplify.c: Likewise.
14875         * c-common.c: Likewise.
14876         * c-dump.c: Likewise.  Include c-common.h.
14877
14878 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14879
14880         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
14881         before including diagnostic-core.h.
14882         (c_cpp_error): New prototype moved from c-tree.h.
14883         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
14884         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
14885         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
14886         (c_cpp_error): Prototype moved to c-common.h.
14887         * Makefile.in: Update dependency for C_COMMON_H.
14888
14889 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
14890
14891         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
14892         * c-common.c (c_register_addr_space): Remove here.
14893         * c-decl.c (c_register_addr_space): Re-add here.
14894
14895 2010-05-28  Mike Stump  <mikestump@comcast.net>
14896
14897         * config/darwin-c.c: Remove c-tree.h include.
14898
14899 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14900
14901         * gcc.c: Include diagnostic.h.
14902         (error_count): Remove.  All users changed to use errorcount.
14903         (programname): Remove.  All users changed to use progname.
14904         (fancy_abort, internal_error, fatal_error, error, warning, inform,
14905         fnotice): Remove.
14906         (execute): Don't include "Internal error" and bug reporting
14907         information in argument of internal_error call.
14908         (process_command): Don't increment error_count after calling
14909         perror_with_name.
14910         (input_filename): Rename to gcc_input_filename.  All users
14911         changed.
14912         (main): Call diagnostic_initialize.  Register delete_temp_files
14913         with atexit.  Use seen_error to test for errors.
14914         * gcc.h: Include diagnostic-core.h.
14915         (fatal_error, error, warning): Remove.
14916         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
14917         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
14918         (gcc.o): Update dependencies.
14919
14920 2010-05-28  Jeff Law  <law@redhat.com>
14921
14922         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
14923         functions.
14924         * ira.h (ira_bad_reload_regno): Declare
14925         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
14926
14927         * ira-color.c (update_curr_costs): Free updated hard reg costs.
14928         (ira_reassign_conflict_allocnos): Remove bogus asserts.
14929         (allocno_reload_assign): Likewise.
14930
14931 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
14932
14933         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
14934         build1_stat.
14935
14936 2010-05-28  Richard Guenther  <rguenther@suse.de>
14937
14938         PR lto/44312
14939         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
14940         Stream fixed-point constants mode.
14941         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
14942         and TYPE_PRECISION.
14943         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
14944         Stream fixed-point constants mode.
14945         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
14946         and TYPE_PRECISION.
14947
14948 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14949
14950         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
14951         only place it was called from.
14952         (number_of_latch_executions): Do not return chrec_dont_know when the
14953         may_be_zero is a runtime condition: instead, return a COND_EXPR
14954         including the may_be_zero condition.
14955         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
14956         of nb_iterations.
14957         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
14958         COND_EXPRs.
14959
14960 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14961
14962         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
14963         generate COND_EXPRs for degenerate_phi_result.
14964
14965 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
14966
14967         PR middle-end/44293
14968         * tree-if-conv.c (if_convertible_loop_p): Check the
14969         if-convertibility of phi nodes in non predicated BBs.
14970
14971 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14972
14973         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
14974
14975 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
14976
14977         PR driver/15303
14978         * gcc.c (inform, warning, inform): New functions.
14979         (fatal_ice): Rename to internal_error; change cmsgid parameter to
14980         gmsgid.  All callers changed.
14981         (notice): Rename to fnotice; add parameter fp.  All callers changed.
14982         (fatal_error): Rename to fatal_signal.  All users changed.
14983         (fatal): Rename to fatal_error; change cmsgid parameter to
14984         gmsgid.  All callers changed.
14985         (process_command): Use warning instead of error for warnings.
14986         (end_going_arg): Don't use _() around argument of error.
14987         (do_spec_1): Use inform for message from %n specs.  Use warning
14988         instead of error for warnings.
14989         (main): Use inform for comparison messages.  Use warning for
14990         message about unused linker input.
14991         (error): Increment error_count.  Print "error: ".
14992         * gcc.h (fatal): Change to fatal_error.
14993         (warning): Declare.
14994         * config/darwin-driver.c (darwin_default_min_version): Use warning
14995         instead of fprintf for warnings.
14996         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
14997
14998 2010-05-28  Julian Brown  <julian@codesourcery.com>
14999
15000         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
15001         (*thumb2_addsi3_compare0_scratch): New.
15002         * config/arm/constraints.md (Pv): New.
15003         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
15004         for ARM mode only.
15005         (*addsi3_compare0_scratch): Likewise.
15006
15007 2010-05-28  Jan Hubicka  <jh@suse.cz>
15008
15009         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
15010         check.
15011         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
15012         only on local statics.
15013
15014 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
15015
15016         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
15017
15018 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
15019
15020         PR bootstrap/44314
15021         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
15022         (OPTION_GLIBC): Define.
15023
15024 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
15025
15026         PR debug/41048
15027         * dwarf2out.c (double_int_type_size_in_bits): New function.
15028         (round_up_to_align): Change first argument and return value to
15029         double_int.
15030         (field_byte_offset): Work internally on double_ints.
15031
15032         PR target/43636
15033         * builtins.c (expand_movstr): Use a temporary pseudo instead
15034         of target even when target is not NULL and not const0_rtx, but
15035         fails movstr predicate.
15036         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
15037
15038 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
15039
15040         * final.c (rest_of_clean_state): Use %m in errors instead of
15041         strerror (errno).
15042         * gengtype.c (read_input_list, close_output_files): Use xstrerror
15043         instead of strerror.
15044         * toplev.c (process_options): Use %m in errors instead of strerror
15045         (errno).
15046         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
15047         (errno).
15048
15049 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
15050
15051         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
15052         (ix86_canonical_va_list_type): Make static.  Add declaration.
15053         (ix86_enum_va_list): Make static.  Reindent.
15054         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
15055         (ix86_canonical_va_list_type): Ditto.
15056         (ix86_enum_va_list): Ditto.
15057
15058 2010-05-28  Richard Guenther  <rguenther@suse.de>
15059
15060         * lto-wrapper.c (run_gcc): With -save-temps generate a
15061         user-visible ltrans filename.  Fixup ltrans unit numbering.
15062
15063 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
15064
15065         * c-common.c (c_common_nodes_and_builtins): Replace use
15066         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
15067         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
15068         to ix86_enum_va_list.
15069         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
15070         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
15071         (TARGET_ENUM_VA_LIST_P): Add hook description.
15072         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
15073         * target.h (gcc_target): Add enum_va_list hook.
15074
15075         PR bootstrap/44299
15076         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
15077         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
15078         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
15079
15080 2010-05-28  Alan Modra  <amodra@gmail.com>
15081
15082         PR target/44266
15083         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
15084         emit_library_call machinery to set up __tls_get_addr calls.
15085
15086 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15087
15088         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
15089
15090 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
15091
15092         Revert fix for PR c++/44188
15093         * c-common.c (is_typedef_decl): Revert the moving of  this
15094         definition ...
15095         * tree.c (is_typedef_decl): ... here.
15096         (typdef_variant_p): Revert the moving of this  definition
15097         here from cp/tree.c.
15098         * c-common.h (is_typedef_decl): Revert the moving of this
15099         declaration ...
15100         * tree.h (is_typedef_decl): ... here.
15101         (typedef_variant_p): Revert the moving of this  declaration here
15102         from cp/cp-tree.h
15103         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
15104         (gen_tagged_type_die): Revert the splitting out of ...
15105         (gen_type_die_with_usage): ... this function. Revert the anonymous
15106         tagged type handling.
15107         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
15108         typedefs naming anonymous tagged types.
15109
15110 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
15111
15112         * config/rs6000/rs6000-modes.def (PSImode): Delete.
15113
15114 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
15115
15116         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
15117         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
15118         throughout.
15119         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
15120         "xer" to "ca".
15121         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
15122         XER_REGS to CA_REGS throughout.
15123         * config/rs6000/rs6000.h: Same.
15124         (ADDITIONAL_REGISTER_NAMES): Add "xer".
15125         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
15126         that mode_iterator "P" is the size for arithmetic carries as well.
15127         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
15128
15129 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
15130
15131         PR bootstrap/44255
15132         * combine.c (struct rtx_subst_pair): Define unconditionally.
15133         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
15134         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
15135         Call make_compound_operation on pair->to.
15136         (propagate_for_debug): Don't call make_compound_operation here.
15137         Always use simplify_replace_fn_rtx.
15138
15139 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
15140
15141         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
15142         * config/xtensa/xtensa.c (override_options): Check
15143           TARGET_FORCE_NO_PIC and set flag_pic.
15144         * config/xtensa/xtensa.opt: Document -mforce-no-pic
15145
15146 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15147
15148         PR bootstrap/44299
15149         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
15150         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
15151
15152 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15153
15154         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
15155         toplev.h.
15156         * diagnostic.c: Don't include toplev.h.
15157         (progname): Define.  Moved from toplev.c.
15158         (seen_error): New function.
15159         * diagnostic.h: Include diagnostic-core.h.
15160         (diagnostic_t, emit_diagnostic): Don't declare here.
15161         * toplev.c (progname): Move to toplev.c.
15162         (emit_debug_global_declarations, compile_file, finalize,
15163         do_compile, toplev_main): Use seen_error.
15164         * toplev.h: Include diagnostic-core.h.
15165         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
15166         internal_error, warning, warning_at, error, error_n, error_at,
15167         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
15168         verbatim, fnotice, progname): Move to diagnostic-core.h.
15169         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
15170         (expand_builtin_expect): Use seen_error.
15171         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
15172         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
15173         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
15174         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
15175         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
15176         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
15177         errorcount for errors.
15178         * c-opts.c (c_common_finish): Use seen_error.
15179         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15180         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
15181         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
15182         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
15183         (get_coverage_counts): Use seen_error.
15184         * dwarf2out.c (dwarf2out_finish): Use seen_error.
15185         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
15186         gimplify_body): Use seen_error.
15187         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
15188         * ipa-pure-const.c (gate_pure_const): Use seen_error.
15189         * ipa-reference.c (gate_reference): Use seen_error.
15190         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
15191         * lambda-code.c: Include diagnostic-core.h instead of
15192         diagnostic.h.
15193         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
15194         * lto-compress.c: Include diagnostic-core.h instead of
15195         diagnostic.h.
15196         * lto-section-in.c: Include diagnostic-core.h instead of
15197         diagnostic.h.
15198         * lto-streamer-out.c: Include diagnostic-core.h instead of
15199         diagnostic.h.
15200         * lto-streamer.c: Include diagnostic-core.h instead of
15201         diagnostic.h.
15202         (gate_lto_out): Use seen_error.
15203         * matrix-reorg.c: Include diagnostic-core.h instead of
15204         diagnostic.h.
15205         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
15206         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
15207         (gate_expand_omp, lower_omp_1): Use seen_error.
15208         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
15209         (rest_of_decl_compilation, rest_of_type_compilation,
15210         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
15211         * tree-cfg.c (label_to_block_fn): Use seen_error.
15212         * tree-inline.c (optimize_inline_calls): Use seen_error.
15213         * tree-mudflap.c (mudflap_finish_file): Use
15214         seen_error.
15215         * tree-optimize.c (gate_all_optimizations,
15216         gate_all_early_local_passes, gate_all_early_optimizations): Use
15217         seen_error.
15218         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
15219         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
15220         (varpool_remove_unreferenced_decls,
15221         varpool_assemble_pending_decls): Use seen_error.
15222         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
15223         (TOPLEV_H, DIAGNOSTIC_H): Update.
15224         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
15225         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
15226         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
15227         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
15228         coverage.o, lambda-code.o): Update dependencies.
15229
15230 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
15231
15232         PR c++/44188
15233         * c-common.c (is_typedef_decl): Move this definition ...
15234         * tree.c (is_typedef_decl): ... here.
15235         (typdef_variant_p): Move definition here from cp/tree.c.
15236         * c-common.h (is_typedef_decl): Move this declaration ...
15237         * tree.h (is_typedef_decl): ... here.
15238         (typedef_variant_p): Move declaration here from cp/cp-tree.h
15239         * dwarf2out.c (is_naming_typedef_decl): New function.
15240         (gen_tagged_type_die): Split out of ...
15241         (gen_type_die_with_usage): ... this function. When an anonymous
15242         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
15243         is emitted for the typedef.
15244         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
15245         anonymous tagged types.
15246
15247 2010-05-27  Jason Merrill  <jason@redhat.com>
15248
15249         * print-tree.c (debug_vec_tree): New fn.
15250         (print_vec_tree): New fn.
15251         * tree.h: Declare them.
15252         * gdbinit.in (pvt): New command.
15253
15254         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
15255
15256         * gdbinit.in (pdd): New command.
15257
15258 2010-05-27  Jan Hubicka  <jh@suse.cz>
15259
15260         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
15261         (update_caller_keys): Return early if there are no callers;
15262         only update fibheap when decresing the key.
15263         (update_callee_keys): Avoid recursion.
15264         (decide_inlining_of_small_functions): When badness does not match;
15265         re-insert into fibheap.
15266
15267 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
15268
15269         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
15270         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
15271         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
15272         (ALL_HOST_OBJS): Now a union of the above two.
15273         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
15274         all files in ALL_HOST_FRONTEND_OBJS.
15275         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
15276
15277         * c-common.c: Pretend to be a backend file by undefining
15278         IN_GCC_FRONTEND (still need rtl.h here).
15279
15280 2010-05-27  Jan Hubicka  <jh@suse.cz>
15281
15282         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
15283         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
15284
15285 2010-05-27  Jan Hubicka  <jh@suse.cz>
15286
15287         * sched-ebb.c: Rename struct deps to struct deps_desc.
15288         * ddg.c: Likewise.
15289         * sel-sched-ir.c: Likewise.
15290         * sched-deps.c: Likewise.
15291         * sched-int.h: Likewise.
15292         * sched-rgn.c: Likewise.
15293
15294 2010-05-27  Jon Beniston  <jon@beniston.com>
15295
15296         PR 43726
15297         * config/lm32/lm32.h: Remove definition of
15298         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
15299
15300 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15301
15302         PR lto/44230
15303         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
15304
15305 2010-05-27  Richard Guenther  <rguenther@suse.de>
15306
15307         PR tree-optimization/44284
15308         * tree-vect-stmts.c (vectorizable_assignment): Handle
15309         sign-changing conversions as simple copy.
15310
15311 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15312
15313         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
15314         Bionic C library.
15315         (__gthread_active_p): Check for pthread_create if compiling against
15316         Bionic C library.
15317
15318 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15319
15320         Support compilation for Android platform.  Reimplement -mandroid.
15321
15322         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
15323         (*android*): Set ANDROID_DEFAULT.
15324         (arm*-*-linux*): Include linux-android.h.
15325         (arm*-*-eabi*): Don't include previous -mandroid implementation.
15326         * config/arm/eabi.h: Remove, move Android-specific parts ...
15327         * config/linux-android.h: ... here.  New file.
15328         * config/arm/eabi.opt: Rename to ...
15329         * config/linux-android.opt: ... this.
15330         (mandroid): Allow -mno-android option.  Initialize based on
15331         ANDROID_DEFAULT.
15332         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
15333         Move logic to corresponding LINUX_TARGET_* macros.
15334         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
15335         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
15336         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
15337         Android definitions.
15338         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
15339         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
15340         Document.
15341
15342 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
15343
15344         Add support for Bionic C library
15345
15346         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
15347         macro.
15348         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
15349         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
15350
15351         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
15352         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
15353         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
15354         to support multiple C libraries.  Handle Bionic.
15355         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
15356         (BIONIC_DYNAMIC_LINKER64): Define.
15357         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
15358         Update.
15359         (TARGET_HAS_SINCOS): Enable for Bionic.
15360
15361         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
15362         the last option specified on command line take effect.
15363         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
15364         (mbionic): New.
15365         (mglibc, muclibc): Update.
15366
15367         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
15368         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
15369         DEFAULT_LIBC.
15370
15371         * doc/invoke.texi (-mglibc, -muclibc): Update.
15372         (-mbionic): Document.
15373
15374 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15375
15376         * c-common.h (c_register_addr_space): Add prototype.
15377         (ADDR_SPACE_KEYWORD): Remove.
15378         * c-common.c (c_register_addr_space): New function.
15379         (c_addr_space_name): Reimplement.
15380         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
15381
15382         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
15383         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
15384
15385         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
15386         Remove TARGET_ADDR_SPACE_KEYWORDS.
15387
15388 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
15389
15390         * input.c: New file.
15391         * input.h (main_input_filename): Move declaration to toplev.h.
15392         * toplev.c (input_location, line_table): Move to input.c
15393         * toplev.h (main_input_filename): Move declaration from input.h.
15394         * tree.c (expand_location): Move to input.c.
15395         * Makefile.in (OBJS-common): Add input.o.
15396         (input.o): Add dependencies.
15397
15398 2010-05-27  Richard Guenther  <rguenther@suse.de>
15399
15400         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
15401         for non-existant files.
15402         (fork_execute): Mark args_name file as deleted.
15403
15404 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
15405
15406         PR bootstrp/44287
15407         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
15408         (narrow_signed_type): Likewise.
15409
15410 2010-05-26  Jan Hubicka  <jh@suse.cz>
15411
15412         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
15413         edge only when checking is enabled; check using former_clone_of;
15414         check inline clones too.
15415         (cgraph_materialize_clone): Record former_clone_of pointer.
15416         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
15417         combining redirections; dump args_to_skip bitmap
15418         (cgraph_materialize_all_clones): Do no redirection here.
15419         * ipa-inline.c (inline_transform): Do redirection here.
15420         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
15421         cheking only).
15422
15423 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15424
15425         * config/avr/avr-c.c: Do not include regs.h.
15426         Include cpplib.h for cpp_define and tree.h for c-common.h.
15427         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
15428         * config/avr/t-avr: Fix dependencies for avr-c.o.
15429
15430 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15431
15432         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
15433         string instead of SYMBOL_REF rtx.
15434         * rtl.h (set_stack_check_libfunc): Move prototype from here...
15435         * libfuncs.h: ...to here.  Adjust for explow.c change.
15436
15437 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15438
15439         * pretty-print.c: Don't include ggc.h.
15440         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
15441         (identifier_to_locale): Use them for allocation.
15442         * pretty-print.h (identifier_to_locale_alloc,
15443         identifier_to_locale_free): Declare.
15444         * toplev.c (alloc_for_identifier_to_locale): New.
15445         (general_init): Set identifier_to_locale_alloc and
15446         identifier_to_locale_free.
15447         * Makefile.in (pretty-print.o): Update dependencies.
15448
15449 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15450
15451         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
15452         pointer types if they have different alignment or mode.
15453
15454 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
15455
15456         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15457         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15458         * config/sparc/sparc-protos.h (function_value): Remove declaration.
15459         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
15460         sparc_function_value_regno_p): New functions.
15461         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15462         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15463         (function_value): Rename to...
15464         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
15465         argument to 'outgoing'.
15466         (function_arg_record_value, function_arg_union_value,
15467         function_arg_vector_value): Update comment.
15468
15469 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
15470
15471         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
15472         (fde_needed_for_eh_p): New predicate.
15473         (output_call_frame_info): Use it throughout to decide whether FDEs
15474         are needed for EH purpose.
15475         (dwarf2out_begin_prologue): Reorder assignments.
15476
15477 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15478
15479         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
15480         special case loop->header.
15481         (is_predicated): New.
15482         (if_convertible_loop_p): Call it.
15483
15484 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15485
15486         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
15487         iterator in parameter.  Do not generate code during the analysis.
15488         (tree_if_convert_cond_stmt): Removed.
15489         (tree_if_convert_stmt): Removed.
15490         (predicate_bbs): New.
15491         (if_convertible_loop_p): Call predicate_bbs.
15492         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
15493         now contains all the analysis part.
15494
15495 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15496
15497         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
15498         statements in the analysis part.
15499         (tree_if_convert_stmt): Update comment.
15500         (remove_conditions_and_labels): New.
15501         (combine_blocks): Call remove_conditions_and_labels.
15502         (tree_if_conversion): Update comment.
15503
15504 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15505
15506         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
15507         than 2 predecessors or more than 2 successors.
15508
15509 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15510
15511         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
15512         of loops in which the data dependence analysis fails.
15513
15514 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15515
15516         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
15517         CDI_POST_DOMINATORS.
15518         (tree_if_conversion): Same.
15519
15520 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15521
15522         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
15523
15524 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
15525
15526         * tree-if-conv.c: Update copyright years.  Fix comments.
15527         Fix indentation.
15528
15529 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
15530
15531         * builtin-types.def (BT_INT128): New primitive type.
15532         (BT_UINT128): Likewise.
15533         * c-common.c (c_common_r): Add __int128 keyword.
15534         (c_common_type_for_size): Handle __int128.
15535         (c_common_type_for_mode): Likewise.
15536         (c_common_signed_or_unsigned_type): Likewise.
15537         (c_common_nodes_and_builtins): Add builtin type
15538         if target supports 128-bit integer scalar.
15539         * c-common.h (enum rid): Add RID_INT128.
15540         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
15541         if target supports 128-bit integer scalar.
15542         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
15543         (finish_declspecs): Likewise.
15544         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
15545         (c_token_starts_declspecs): Likewise.
15546         (c_parser_declspecs): Likewise.
15547         (c_parser_attributes): Likewise.
15548         (c_parser_objc_selector): Likewise.
15549         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
15550         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
15551         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
15552         * tree.c (make_or_reuse_type): Likewise.
15553         (make_unsigned_type): Likewise.
15554         (build_common_tree_nodes_2): Likewise.
15555         * tree.h (enum integer_type_kind): Add itk_int128 and
15556         itk_unsigned_int128.
15557         (int128_integer_type_node): New define.
15558         (int128_unsigned_type_node): New define.
15559         * doc/extend.texi: Add documentation about __int128 type.
15560
15561 2010-05-26  Richard Guenther  <rguenther@suse.de>
15562
15563         * tree-ssa-sccvn.c (copy_nary): Adjust.
15564         (copy_phis): Rename to ...
15565         (copy_phi): ... this.  Adjust.
15566         (copy_references): Rename to ...
15567         (copy_reference): ... this.  Adjust.
15568         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
15569         result into the valid table.
15570
15571 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15572
15573         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
15574         insn-config.h, insn-codes.h, recog.h, and optabs.h.
15575
15576 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15577
15578         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
15579
15580 2010-05-26  Richard Guenther  <rguenther@suse.de>
15581
15582         * opts.c (common_handle_option): Handle OPT_Ofast.
15583
15584 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
15585
15586         * diagnostic.c: Don't include opts.h.
15587         (permissive_error_option): Define.
15588         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
15589         for classify_diagnostic.  Don't use memset for
15590         classify_diagnostic.  Initialize new and recently added fields.
15591         (diagnostic_classify_diagnostic): Use context->n_opts instead of
15592         N_OPTS.
15593         (diagnostic_report_diagnostic): Pass context parameter to
15594         diagnostic_report_warnings_p.  Use option_enabled and option_name
15595         hooks from context.
15596         (emit_diagnostic): Use permissive_error_option.
15597         (permerror): Likewise.
15598         * diagnostic.h: Don't include options.h.
15599         (struct diagnostic_context): Add n_opts, opt_permissive,
15600         inhibit_warnings, warn_system_headers, option_enabled and
15601         option_name fields.  Change classify_diagnostic to a pointer.
15602         * opts-diagnostic.h: New file.
15603         * opts.c: Include opts-diagnostic.h.
15604         (common_handle_option): Set global_dc fields for -Wfatal-errors,
15605         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
15606         (option_name): New function.
15607         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
15608         (c_common_handle_option): Set global_dc->permissive for
15609         -fpermissive.
15610         * c-common.c (c_cpp_error): Save and restore
15611         global_dc->warn_system_headers, not variable warn_system_headers.
15612         * toplev.c: Include opts-diagnostic.h.
15613         (general_init): Update call to diagnostic_initialize.  Set
15614         global_dc->show_column, global_dc->option_enabled and
15615         global_dc->option_name.
15616         (process_options): Don't set global_dc fields here.
15617         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
15618         (diagnostic.o, opts.o, toplev.o): Update dependencies.
15619
15620 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
15621
15622         * config/picochip/picochip.md (movsi): Split a movsi from a
15623         const after reload.
15624
15625 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15626
15627         * ggc-zone.c: Update copyright year.
15628         (poison_region): Mark memory for Valgrind as undefined before
15629         memset () call and inaccessible afterwards.
15630         (ggc_pch_total_size): Change type of i to int.
15631
15632 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15633
15634         * ggc-common.c (ggc_free_overhead): Allow empty slot.
15635
15636 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15637
15638         * ggc-common.c: Update copyright year.
15639         (ggc_rlimit_bound): Remove prototype.  Compile only if
15640         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
15641         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
15642         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
15643         (ggc_min_heapsize_heuristic): Likewise.
15644
15645 2010-05-26  Richard Guenther  <rguenther@suse.de>
15646
15647         PR rtl-optimization/44164
15648         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
15649         no-common access-path disambiguation.
15650         (indirect_ref_may_alias_decl_p): Adjust.
15651         (indirect_refs_may_alias_p): Likewise.
15652         (refs_may_alias_p_1): Likewise.
15653
15654 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15655
15656         * c-typeck.c: Do not include expr.h.
15657
15658 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
15659
15660         * rtl.h (decl_default_tls_model): Move prototype from here...
15661         * output.h: ...to here.
15662         * c-decl.c: Do not include rtl.h.
15663         * c-pragma.c: Likewise.
15664         * c-parser.c: Likewise.
15665         * c-gimplify.c: Likewise.  And also not hard-reg-set.
15666         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
15667         FIXME note for it.  Add a FIXME note for expr.h.
15668         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
15669         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
15670         defined.
15671
15672 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
15673
15674         PR target/44199
15675         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
15676         or total_size is larger than red zone size for non-V4 ABI, emit a
15677         stack_tie resp. frame_tie insn before stack pointer restore.
15678         * config/rs6000/rs6000.md (frame_tie): New insn.
15679
15680 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
15681
15682         * function.h (struct function): Add can_throw_non_call_exceptions bit.
15683         * lto-streamer-in.c (input_function): Stream it in.
15684         * lto-streamer-out.c (output_function): Stream it out.
15685         * function.c (allocate_struct_function): Set it.
15686         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
15687         for flag_non_call_exceptions.
15688         * cfgbuild.c (control_flow_insn_p): Likewise.
15689         (make_edges): Likewise.
15690         * cfgexpand.c (expand_stack_alignment): Likewise.
15691         * combine.c (distribute_notes): Likewise.
15692         * cse.c (cse_extended_basic_block): Likewise.
15693         * except.c (insn_could_throw_p): Likewise.
15694         * gcse.c (simple_mem): Likewise.
15695         * ipa-pure-const.c (check_call): Likewise.
15696         (check_stmt ): Likewise.
15697         * lower-subreg.c (lower-subreg.c): Likewise.
15698         * optabs.c (emit_libcall_block): Likewise.
15699         (prepare_cmp_insn): Likewise.
15700         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
15701         * postreload.c (rest_of_handle_postreload): Likewise.
15702         * reload1.c (reload_as_needed): Likewise.
15703         (emit_input_reload_insns): Likewise.
15704         (emit_output_reload_insns): Likewise.
15705         (fixup_abnormal_edges): Likewise.
15706         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
15707         * store-motion.c (find_moveable_store): Likewise.
15708         * tree-eh.c (stmt_could_throw_p): Likewise.
15709         (tree_could_throw_p): Likewise.
15710         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
15711         * config/arm/arm.c (arm_expand_prologue): Likewise.
15712         (thumb1_expand_prologue): Likewise.
15713         * config/rx/rx.md (cbranchsf4): Likewise.
15714         (cmpsf): Likewise.
15715         * config/s390/s390.c (s390_emit_prologue): Likewise.
15716         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
15717         (inline_forbidden_into_p): New predicate.
15718         (expand_call_inline): Use it to forbid inlining.
15719         (tree_can_inline_p): Likewise.
15720
15721 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15722
15723         * config/i386/i386-c.c: Do not include rtl.h.
15724         * config/i386/t-i386: Update dependencies.
15725
15726 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15727
15728         * attribs.c: Do not include rtl.h.
15729         * Makefile.in: Update dependencies.
15730
15731 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
15732
15733         * double-int.h (double_int_and): New.
15734         * combine.c (try_combine): Clean up, use double_int_* and
15735         immed_double_int_const functions.
15736
15737 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15738
15739         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
15740         stderr to /dev/null instead of grep -q.
15741         * configure: Regenerate.
15742
15743 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
15744
15745         * Makefile.in (EXCEPT_H): Fix typo.
15746
15747 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
15748
15749         * ira-build.c (update_conflict_hard_reg_costs): New.
15750         (ira_build): Call update_conflict_hard_reg_costs.
15751
15752 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15753
15754         PR debug/41371
15755         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
15756         ENABLE_CHECKING.
15757         (intersect_loc_chains): Walk the s2var's loc_chain together
15758         with s1node chain as long as the locations are equal, don't
15759         call find_loc_in_1pdv in that case.
15760
15761         PR debug/42801
15762         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
15763         (copy_bind_expr): ... instead of here.
15764         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
15765         if the block hasn't been remapped.
15766         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
15767         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
15768
15769 2010-05-25  Richard Guenther  <rguenther@suse.de>
15770
15771         PR middle-end/44069
15772         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
15773         out-of-bounds array accesses.
15774
15775 2010-05-25  Richard Guenther  <rguenther@suse.de>
15776
15777         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
15778         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
15779         (run_gcc): Re-organize to make cleanup easier.
15780
15781 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15782
15783         * config/s390/s390.c (optimization_options): Fix and move the
15784         flag_prefetch_loop_arrays override ...
15785         (override_options): ... here.
15786
15787 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
15788
15789         * diagnostic.c: Don't include plugin.h.
15790         (diagnostic_report_diagnostic): Don't handle plugins specially
15791         here.  Pass context to internal_error callback.
15792         * diagnostic.h (struct diagnostic_context): Add context parameter
15793         to internal_error callback.
15794         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
15795         * plugin.h (struct diagnostic_context): Declare.
15796         (warn_if_plugins, plugins_internal_error_function): Declare.
15797         * toplev.c (general_init): Set global_dc->internal_error.
15798         * Makefile.in (diagnostic.o): Update dependencies.
15799
15800 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
15801
15802         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
15803         * config/rs6000/t-darwin64: New.
15804         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
15805         build crt2.
15806
15807 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
15808
15809         PR 44203
15810         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
15811         match the original (and intended) behaviour before r159557.  This
15812         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
15813         in two ways.
15814
15815 2010-05-25  Richard Guenther  <rguenther@suse.de>
15816
15817         * doc/invoke.texi: Document -Ofast.
15818         * target.h (struct gcc_target): Add handle_ofast.
15819         * target-def.h (TARGET_HANDLE_OFAST): Add.
15820         (TARGET_INITIALIZER): Adjust.
15821         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
15822         * common.opt (Ofast): Add.
15823
15824 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15825
15826         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
15827         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
15828
15829 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
15830
15831         PR target/43610
15832         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
15833         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
15834         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
15835         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
15836
15837 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
15838
15839         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
15840         DW_OP_minus with negated offset instead of DW_OP_plus.
15841         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
15842
15843 2010-05-25  Wei Guozhi  <carrot@google.com>
15844
15845         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
15846         tst instruction and a new alternative.
15847         * config/arm/constraints.md (Pu): New constraint.
15848
15849 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
15850
15851         * function.c (assign_stack_local_1): Initialize variable
15852         to avoid warning when bootstrapping at -O3.
15853
15854 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
15855
15856         * configure.ac (all_lang_makefiles): Remove everything related to it.
15857         * configure: Regenerate.
15858         * Makefile.in: Fix reference to ada Make-lang.in.
15859         Remove support for LANG_MAKEFILES.
15860
15861 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
15862             Sandra Loosemore  <sandra@codesourcery.com>
15863
15864         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
15865         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
15866         description.  Add arm_neon_fp16_ok.
15867         (Add Options): Add arm_neon and arm_neon_fp16.
15868
15869 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
15870
15871         * diagnostic.c: Don't include flags.h.
15872         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
15873         context parameters.  Check flags in the context passed as a parameter.
15874         (diagnostic_build_prefix): Add context parameter.  Check
15875         show_column flag in context.
15876         (diagnostic_action_after_output): Check fatal_errors flag in context.
15877         (diagnostic_report_current_module): Check show_column flag in context.
15878         (default_diagnostic_starter): Update call to
15879         diagnostic_build_prefix.
15880         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
15881         (emit_diagnostic): Pass context to permissive_error_kind.
15882         (permerror): Pass context to permissive_error_kind.
15883         * diagnostic.h (struct diagnostic_context): Add show_column,
15884         pedantic_errors, permissive and fatal_errors fields.
15885         (diagnostic_build_prefix): Update prototype.
15886         * langhooks.c
15887         * toplev.c (process_options): Set flags in global_dc from
15888         flag_show_column, flag_pedantic_errors, flag_permissive,
15889         flag_fatal_errors.
15890         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
15891         to diagnostic_build_prefix.
15892         * Makefile.in (diagnostic.o): Update dependencies.
15893
15894 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15895
15896         * config/i386/ia32intrin.h (__crc32q): Define only if
15897         __SSE4_2__ is defined.
15898
15899 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
15900
15901         PR target/44132
15902         PR middle-end/43602
15903         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
15904         DECL_VISIBILITY_SPECIFIED.
15905         (emutls_decl): Set DECL_PRESERVE_P and copy
15906         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
15907         (emutls_finalize_control_var): New callback.
15908         (emutls_finish): Finalize emutls control variables.
15909         * toplev.c (compile_file): Move the call to emutls_finish ()
15910         before varpool_assemble_pending_decls ().
15911
15912 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
15913
15914         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
15915         added to the preprocessor condition.
15916
15917 2010-05-24  Paul Brook  <paul@codesourcery.com>
15918
15919         * gengtype-lex.l: Add HARD_REG_SET.
15920         * expr.c (expand_expr_real_1): Record writes to hard registers.
15921         * function.c (rtl_data): Add asm_clobbers.
15922         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
15923         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
15924         Use crtl->asm_clobbers.
15925
15926 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15927
15928         * doc/makefile.texi (Makefile): Mention stages 'profile'
15929         and 'feedback' for profiledbootstrap.
15930
15931 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
15932
15933         PR target/44245
15934         * config/i386/i386.c (def_builtin): Properly check
15935         OPTION_MASK_ISA_64BIT.
15936
15937 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
15938
15939         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
15940         typedefs with different but compatible types.  Allow duplicate
15941         typedefs with the same type except for pedantic non-C1X, but give
15942         warning for variably modified types.
15943         * c-typeck.c (tagged_types_tu_compatible_p,
15944         function_types_compatible_p, type_lists_compatible_p,
15945         comptypes_internal): Add parameter different_types_p; set
15946         *different_types_p for different but compatible types.  All
15947         callers changed.
15948         (comptypes_check_different_types): New.
15949         * c-tree.h (comptypes_check_different_types): Declare.
15950
15951 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15952
15953         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
15954         * jump.c: Include basic-block.h.
15955         * profile.c: Likewise.
15956         * tree-profile.c: Likewise.
15957         * coverage.c: Likewise.
15958         * basic-block.h (optimize_function_for_size_p): Move to function.h.
15959         (optimize_function_for_speed_p): Likewise.
15960         * function.h (optimize_function_for_size_p,
15961         optimize_function_for_speed_p): Moved here from basic-block.h.
15962         * Makefile.in: Update dependencies.
15963
15964 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15965
15966         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
15967         before calling make; allow override through $MAKE.
15968         * doc/invoke.texi (Optimize Options): Document override.
15969
15970 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
15971
15972         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
15973         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15974         (rs6000_mode_dependent_address_ptr): Make static.
15975         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15976         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
15977         Remove.
15978
15979 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
15980
15981         PR target/43869
15982         * config/i386/i386.c: Make sure that the correct regparm is passed.
15983
15984 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
15985
15986         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
15987         * sbitmap.c: ...to here to internalize sbitmap element access.
15988         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
15989         Explain why basic-block.h is included.
15990         * function.h: Include tm.h for CUMULATIVE_ARGS.
15991         * Makefile.in: Update dependencies.
15992
15993 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
15994
15995         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
15996         New core types.
15997         * sbitmap.h (struct sbitmap_def): Do not typedef here.
15998         * sbitmap.c: Include sbitmap.h.
15999         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
16000         hard-reg-set.h.  Split everything related to regsets out from here...
16001         * regset.h: ...to here.  New file.
16002         * df.h: Include regset.h and sbitmap.h.
16003         * tree-flow.h: Likewise.
16004         * cfgloop.h: Likewise.
16005         * except.h: Do not include sbitmap.h.  Include hashtab.h.
16006         * cgraph.h: Include vec.h and function.h.
16007         * reload.h (struct insn_chain): Change types of live_throughout
16008         and dead_or_set from regset_head to bitmap_head.
16009         (compute_use_by_pseudos): Be defined also if regset.h is not included.
16010         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
16011         spilled_regs from regset_head to bitmap_head to avoid dependency
16012         in regset.h.
16013         * sel-sched-ir.h: Include regset.h.
16014         * reload.c: Include df.h before reload.h.
16015         * caller-save.c: Likewise.
16016         * reload1.c: Likewise.
16017         * ira.c: Likewise.
16018         (mark_elimination): Update type of r to bitmap, consistent with
16019         DF_LR_IN.
16020         * dominance.c: Include bitmap.h.
16021         * modulo-sched.c: Include df.h.
16022         * cfganal.c: Include bitmap.h and sbitmap.h.
16023         * cfgbuild.c: Include sbitmap.h.
16024         * lcm.c: Include sbitmap.h.
16025         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
16026         * domwalk.c: Include sbitmap.h, exclude ggc.h.
16027         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
16028         * cselib.c: Include bitmap.h.
16029         * tree-optimize.c: Include regset.h.
16030         * stmt.c: Include bitmap.h.
16031         * Makefile.in: Update dependencies.
16032
16033 2010-05-22  Jan Hubicka  <jh@suse.cz>
16034
16035         * cgraph.h (struct varpool_node): Add same_comdat_group.
16036         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
16037         pointer.
16038         (output_varpool): Update call of lto_output_varpool_node.
16039         (input_varpool): Read same_comdat_group pointer.
16040         (input_varpool_1): Fixup same_comdat_group pointer.
16041         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
16042         group is needed, all are.
16043         * varpool.c (varpool_remove_node): Remove node from same comdat group
16044         linklist too.
16045         (varpool_analyze_pending_decls): Walk same comdat groups.
16046
16047 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
16048
16049         * rtl.h (union rtunion_def): Remove rt_bit member.
16050         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
16051         * print-rtl (print_rtx): Do not print the member.
16052         * gengtype.c (adjust_field_rtx_def): Do not handle it.
16053         * gengenrtl.c (type_from_format): Likewise.
16054         (accessor_from_format): Likewise.
16055
16056 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
16057
16058         * dbgcnt.c: Include toplev.h instead of errors.h.
16059         * ira-emit.c: Don't include errors.h.
16060         * ira.c: Include toplev.h instead of errors.h.
16061         * lto-compress.c: Include toplev.h instead of errors.h.
16062         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
16063         ira.o, dbgcnt.o): Update dependencies.
16064
16065 2010-05-22  Richard Guenther  <rguenther@suse.de>
16066
16067         * gimple.c (gimple_types_compatible_p): Check type qualifications
16068         before merging pointer to complete and pointer to incomplete type.
16069         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
16070         we use our own resolution algorithm.  The gold linker plugin
16071         doesn't do the job we want it to do here.
16072
16073 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
16074
16075         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
16076         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
16077         (sparc_mode_dependent_address_p): New function.
16078
16079 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16080
16081         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
16082
16083         * timevar.c: Do not include any core headers.
16084         (timevar_print): De-i18n-ize.
16085         (print_time): Likewise.
16086         * timevar.h (timevar_push, timevar_pop): Make inline functions.
16087
16088 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
16089
16090         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
16091         langhooks-def.h.
16092         (diagnostic_initialize): Initialize x_data not last_function.
16093         (diagnostic_report_current_function): Move to tree-diagnostic.c.
16094         (default_diagnostic_starter): Call
16095         diagnostic_report_current_module not
16096         diagnostic_report_current_function.
16097         (diagnostic_report_diagnostic): Initialize x_data not
16098         abstract_origin.
16099         (verbatim): Likewise.
16100         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
16101         x_data.
16102         (struct diagnostic_context): Change last_function to x_data.
16103         (diagnostic_auxiliary_data): Replace with
16104         diagnostic_context_auxiliary_data and
16105         diagnostic_info_auxiliary_data.
16106         (diagnostic_last_function_changed, diagnostic_set_last_function,
16107         diagnostic_report_current_function): Move to tree-diagnostic.h.
16108         (print_declaration, dump_generic_node, print_generic_stmt,
16109         print_generic_stmt_indented, print_generic_expr,
16110         print_generic_decl, debug_c_tree, dump_omp_clauses,
16111         print_call_name, debug_generic_expr, debug_generic_stmt,
16112         debug_tree_chain, default_tree_printer): Move to
16113         tree-pretty-print.h.
16114         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
16115         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
16116         gimple-pretty-print.h.
16117         * pretty-print.c: Don't include tree.h
16118         (pp_base_format): Don't handle %K here.
16119         (pp_base_tree_identifier): Move to tree-pretty-print.c.
16120         * pretty-print.h (text_info): Change abstract_origin to x_data.
16121         (pp_tree_identifier, pp_unsupported_tree,
16122         pp_base_tree_identifier): Move to tree-pretty-print.h.
16123         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
16124         tree-pretty-print.h: New files.
16125         * tree-pretty-print.c: Include tree-pretty-print.h.
16126         (percent_K_format): New.  Moved from pretty-print.c.
16127         (pp_base_tree_identifier): Move from pretty-print.c.
16128         * c-objc-common.c: Include tree-pretty-print.h.
16129         (c_tree_printer): Handle %K here.
16130         * langhooks.c: Include tree-diagnostic.h.
16131         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
16132         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
16133         (default_tree_printer): Handle %K using percent_K_format.
16134         (general_init): Use default_tree_diagnostic_starter.
16135         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
16136         (free_lang_data): Use default_tree_diagnostic_starter.
16137         * c-pretty-print.c: Include tree-pretty-print.h.
16138         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16139         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16140         * dwarf2out.c: Include tree-pretty-print.h.
16141         * except.c: Include tree-pretty-print.h.
16142         * gimple-pretty-print.c: Include tree-pretty-print.h and
16143         gimple-pretty-print.h.
16144         * gimplify.c: Include tree-pretty-print.h.
16145         * graphite-poly.c: Include tree-pretty-print.h and
16146         gimple-pretty-print.h.
16147         * ipa-cp.c: Include tree-pretty-print.h.
16148         * ipa-inline.c: Include gimple-pretty-print.h.
16149         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16150         * ipa-pure-const.c: Include gimple-pretty-print.h.
16151         * ipa-struct-reorg.c: Include tree-pretty-print.h and
16152         gimple-pretty-print.h.
16153         * ipa-type-escape.c: Include tree-pretty-print.h.
16154         * print-rtl.c: Include tree-pretty-print.h.
16155         * print-tree.c: Include gimple-pretty-print.h.
16156         * sese.c: Include tree-pretty-print.h.
16157         * tree-affine.c: Include tree-pretty-print.h.
16158         * tree-browser.c: Include tree-pretty-print.h.
16159         * tree-call-cdce.c: Include gimple-pretty-print.h.
16160         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
16161         * tree-chrec.c: Include tree-pretty-print.h.
16162         * tree-data-ref.c: Include tree-pretty-print.h and
16163         gimple-pretty-print.h.
16164         * tree-dfa.c: Include tree-pretty-print.h.
16165         * tree-if-conv.c: Include tree-pretty-print.h and
16166         gimple-pretty-print.h.
16167         * tree-inline.c: Include tree-pretty-print.h.
16168         * tree-into-ssa.c: Include tree-pretty-print.h and
16169         gimple-pretty-print.h.
16170         * tree-nrv.c: Include tree-pretty-print.h.
16171         * tree-object-size.c: Include tree-pretty-print.h and
16172         gimple-pretty-print.h.
16173         * tree-outof-ssa.c: Include tree-pretty-print.h and
16174         gimple-pretty-print.h.
16175         * tree-parloops.c: Include tree-pretty-print.h and
16176         gimple-pretty-print.h.
16177         * tree-predcom.c: Include tree-pretty-print.h and
16178         gimple-pretty-print.h.
16179         * tree-scalar-evolution.c: Include tree-pretty-print.h and
16180         gimple-pretty-print.h.
16181         * tree-sra.c: Include tree-pretty-print.h.
16182         * tree-ssa-address.c: Include tree-pretty-print.h.
16183         * tree-ssa-alias.c: Include tree-pretty-print.h.
16184         * tree-ssa-ccp.c: Include tree-pretty-print.h and
16185         gimple-pretty-print.h.
16186         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
16187         * tree-ssa-copy.c: Include tree-pretty-print.h and
16188         gimple-pretty-print.h.
16189         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
16190         * tree-ssa-dce.c: Include tree-pretty-print.h and
16191         gimple-pretty-print.h.
16192         * tree-ssa-dom.c: Include tree-pretty-print.h and
16193         gimple-pretty-print.h.
16194         * tree-ssa-dse.c: Include gimple-pretty-print.h.
16195         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
16196         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
16197         * tree-ssa-live.c: Include tree-pretty-print.h and
16198         gimple-pretty-print.h.
16199         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
16200         gimple-pretty-print.h.
16201         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
16202         gimple-pretty-print.h.
16203         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
16204         gimple-pretty-print.h.
16205         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
16206         gimple-pretty-print.h.
16207         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
16208         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
16209         * tree-ssa-operands.c: Include tree-pretty-print.h and
16210         gimple-pretty-print.h.
16211         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
16212         gimple-pretty-print.h.
16213         * tree-ssa-pre.c: Include tree-pretty-print.h and
16214         gimple-pretty-print.h.
16215         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
16216         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
16217         gimple-pretty-print.h.
16218         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
16219         gimple-pretty-print.h.
16220         * tree-ssa-sink.c: Include gimple-pretty-print.h.
16221         * tree-ssa-ter.c: Include tree-pretty-print.h and
16222         gimple-pretty-print.h.
16223         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
16224         * tree-ssa.c: Include tree-pretty-print.h and
16225         gimple-pretty-print.h.
16226         * tree-stdarg.c: Include gimple-pretty-print.h.
16227         * tree-switch-conversion.c: Include gimple-pretty-print.h.
16228         * tree-tailcall.c: Include tree-pretty-print.h and
16229         gimple-pretty-print.h.
16230         * tree-vect-data-refs.c: Include tree-pretty-print.h and
16231         gimple-pretty-print.h.
16232         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
16233         gimple-pretty-print.h.
16234         * tree-vect-loop.c: Include tree-pretty-print.h and
16235         gimple-pretty-print.h.
16236         * tree-vect-patterns.c: Include gimple-pretty-print.h.
16237         * tree-vect-slp.c: Include tree-pretty-print.h and
16238         gimple-pretty-print.h.
16239         * tree-vect-stmts.c: Include tree-pretty-print.h and
16240         gimple-pretty-print.h.
16241         * tree-vectorizer.c: Include tree-pretty-print.h.
16242         * tree-vrp.c: Include tree-pretty-print.h and
16243         gimple-pretty-print.h.
16244         * value-prof.c: Include tree-pretty-print.h and
16245         gimple-pretty-print.h.
16246         * var-tracking.c: Include tree-pretty-print.h.
16247         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
16248         (tree-diagnostic.o): New dependencies.
16249         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
16250         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
16251         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
16252         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
16253         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
16254         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
16255         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
16256         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
16257         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
16258         tree-ssa-address.o, tree-ssa-loop-niter.o,
16259         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
16260         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
16261         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
16262         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
16263         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
16264         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
16265         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
16266         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
16267         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
16268         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
16269         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
16270         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
16271         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
16272         tree-switch-conversion.o, var-tracking.o, value-prof.o,
16273         cfgexpand.o, pretty-print.o): Update dependencies.
16274
16275 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
16276
16277         * tree-ssa-structalias.c: Remove tm_p.h from include.
16278
16279 2010-05-21  Jeff Law  <law@redhat.com>
16280
16281         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
16282
16283 2010-05-21  Jason Merrill  <jason@redhat.com>
16284
16285         * tree-eh.c (cleanup_is_dead_in): New.
16286         (lower_try_finally): Don't generate a dead cleanup region.
16287         (lower_cleanup): Likewise.
16288
16289 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16290
16291         PR debug/44223
16292         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
16293         unchain each use from the cyclic next_regno_use chain first.
16294
16295 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16296
16297         * real: Do not include gmp.h, mpfr.h, and mpc.h.
16298         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
16299         (real_value_negate, real_value_abs): New prototypes.
16300         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
16301         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
16302         new include file for interface between MPFR and REAL_VALUE_TYPE.
16303         * real.c: Include realmpfr.h.
16304         (real_arithmetic2): Remove legacy function.
16305         (real_value_negate): New.
16306         (real_value_abs): New.
16307         (mfpr_from_real, real_from_mpfr): Move from here...
16308         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
16309         * builtins.c: Include realmpfr.h.
16310         * fold-const.c: Include realmpfr.h.
16311         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
16312         (fold_negate_const): Likewise.
16313         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
16314         * toplev.c: Include realmpfr.h.
16315         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
16316         and real_value_negate.
16317         * fixed-value.c (check_real_for_fixed_mode): Likewise.
16318         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
16319         (vfp3_const_double_index): Likewise.
16320         (arm_print_operand): Likewise.
16321         * Makefile.in: Update dependencies.
16322
16323 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16324
16325         * config/s390/s390.c (override_options): Increase the default
16326         of max-completely-peel-times.
16327
16328 2010-05-21  Julian Brown  <julian@codesourcery.com>
16329             Mark Mitchell  <mark@codesourcery.com>
16330
16331         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
16332         sibling calls for Thumb-1.
16333         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
16334         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
16335         Thumb-2.
16336         (*call_insn, *call_value_insn): Don't use for Thumb-2.
16337         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
16338         for Thumb-2.
16339         (return): New expander.
16340         (*arm_return): New name for ARM return insn.
16341         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
16342
16343 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
16344
16345         * config.gcc (sparc64-*-rtems*): New target.
16346
16347 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16348
16349         * tree.c (build_function_decl_skip_args): Fix grammar.
16350         (build_function_type_list_1): Fix typos, adjust formatting.
16351
16352 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
16353
16354         * tree.h: Include real.h and fixed-value.h as basic datatypes.
16355         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
16356         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
16357         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
16358         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
16359         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
16360         tree-pretty-print.c, tree-loop-distribution.c,
16361         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
16362         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
16363         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
16364         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
16365         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
16366         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
16367         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
16368         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
16369         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
16370         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
16371         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
16372         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
16373         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
16374         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
16375         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
16376         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
16377         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
16378         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
16379         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
16380         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
16381         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
16382         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
16383         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
16384         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
16385         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
16386         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
16387         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
16388         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
16389         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
16390         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
16391         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
16392         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
16393         config/score/score7.c, config/score/score.c, config/arm/arm.c,
16394         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
16395         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
16396         config/bfin/bfin.c: Clean up redundant includes.
16397         * Makefile.in: Update accordingly.
16398
16399 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
16400
16401         PR middle-end/44204
16402         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
16403         statement has no arguments.
16404
16405 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
16406
16407         PR/44139
16408         * varasm.c (emutls_decl): Merge attributes to new decl.
16409
16410 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
16411
16412         PR middle-end/44101
16413         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
16414         around the uniquized constructor if its type requires a conversion.
16415
16416 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
16417
16418         PR debug/44205
16419         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
16420         at -O0 goto_locus of any of the incoming edges differs from
16421         goto_locus of outgoing edge, or gimple_location of any of the
16422         labels differs.
16423
16424 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
16425
16426         * ira.c (ira_non_ordered_class_hard_regs): Define.
16427         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
16428         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
16429         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
16430         cost of unaligned hard regs when allocating multi-reg pseudos.
16431
16432 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
16433
16434         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
16435         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
16436         for TARGET_NO_FLOAT.
16437         * config/mips/mips.c (mips_file_start): Expand conditional expression
16438         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
16439         (mips_override_options): Move -mno-float override -msoft-float and
16440         -mhard-float.
16441         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
16442         Condition(TARGET_SUPPORTS_NO_FLOAT).
16443         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
16444         __mips_no_float here.
16445         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
16446         (TARGET_SUPPORTS_NO_FLOAT): Define.
16447         * config/mips/sdemtk.opt: Delete.
16448
16449 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
16450
16451         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
16452
16453 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
16454
16455         PR target/43733
16456         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
16457         * configure: Regenerate.
16458         * config.in: Regenerate.
16459         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
16460         instead of sahf only for 64bit targets.
16461
16462 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16463
16464         PR debug/44178
16465         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
16466         setup_ref_regs for DEBUG_INSNs.
16467
16468 2010-05-20  Jan Hubicka  <jh@suse.cz>
16469
16470         PR middle-end/44197
16471         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
16472
16473 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16474
16475         PR bootstrap/43870
16476         * df-scan.c (df_ref_compare): Stabilize sort.
16477
16478 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
16479
16480         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
16481         argument.  Don't use DW_OP_piece if offset is non-zero,
16482         put offset into second DW_OP_bit_piece argument.
16483         (dw_sra_loc_expr): Adjust callers.  For memory expressions
16484         compute offset.
16485
16486 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
16487
16488         PR target/44202
16489         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
16490         settings for 16-bit-constant "addo" alternative.
16491
16492 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
16493
16494         * config/mips/mips-dsp.md (add<DSPV:mode>3,
16495         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
16496
16497         PR target/43764
16498         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
16499         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
16500         Use it.
16501
16502 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
16503
16504         * diagnostic.c (FLOAT, FFS): Don't undefine.
16505         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
16506         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
16507         include ordering.
16508
16509 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
16510
16511         * combine.c (propagate_for_debug): Call make_compound_operation
16512         on the source value.
16513         (try_combine): When implementing a split chosen by find_split_point,
16514         either copy i2src or set it to null.  Assert that i2src is not null
16515         before substituting into CALL_INSN_FUNCTION_USAGE.
16516
16517 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
16518
16519         * double-int.h (double_int_ior): New function.
16520         * tree.h (build_int_cst_wide_type): Remove.
16521         * tree.c (build_int_cst_wide_type): Remove.
16522         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
16523         of build_int_cst_wide_type.
16524         * stor-layout.c (set_sizetype): (Ditto.).
16525         * dojump.c (do_jump): Use build_int_cstu instead of
16526         build_int_cst_wide_type.
16527
16528 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
16529
16530         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
16531         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
16532         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
16533         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
16534         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
16535         propagate the 'data' argument to copy_tree_r.
16536         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
16537         Propagate 'data' argument to walk_tree.
16538         (copy_if_shared): New function.
16539         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
16540         (unmark_visited): New function.
16541         (unshare_body): Call copy_if_shared instead of doing it manually.
16542         (unvisit_body): Call unmark_visited instead of doing it manually.
16543
16544 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
16545
16546         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
16547         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
16548         * hooks.c: Likewise.
16549         * target-def.h (TARGET_FOLD_BUILTIN): Define to
16550         hook_tree_tree_int_treep_bool_null.
16551         * target.h (struct gcc_target): Update signature of fold_builtin
16552         field.
16553         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
16554         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
16555         instead of the call expression.
16556         (fold_builtin_call_array): Pass n and argarray directly.
16557         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
16558         consing a list.
16559         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
16560         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
16561         `i' and use it in place of `arity'.
16562         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
16563         Dereference `args' directly.
16564         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
16565
16566 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16567
16568         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16569         3dnow, sse3, sse2.
16570         (Directives): Document optional dg-require-effective-target
16571         selector.
16572
16573 2010-05-19  Richard Guenther  <rguenther@suse.de>
16574
16575         PR lto/44196
16576         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
16577
16578 2010-05-19  Richard Guenther  <rguenther@suse.de>
16579
16580         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
16581         * common.opt (fwhopr=): New.
16582         * opts.c (common_handle_option): Handle OPT_fwhopr.
16583         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
16584         * collect2.c (main): Match -fwhopr*.
16585         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
16586         Execute ltrans stage in parallel when jobs is bigger than 1.
16587
16588 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16589
16590         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
16591         pentiumpro on Solaris 8/x86 with Sun as.
16592         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
16593         hidden alias bug.
16594         (gcc_cv_as_ix86_quad): Check for .quad directive.
16595         * configure: Regenerate.
16596         * config.in: Regenerate.
16597         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
16598
16599 2010-05-19  Martin Jambor  <mjambor@suse.cz>
16600
16601         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
16602         also for indirect edges.  Actual printing moved...
16603         (ipa_print_node_jump_functions_for_edge): ...here.
16604         (ipa_compute_jump_functions): Renamed to
16605         ipa_compute_jump_functions_for_edge and made static.
16606         (ipa_compute_jump_functions): New function.
16607         (make_edge_direct_to_target): Check if the number of arguments on
16608         the newly direct edge is the same as the number of parametrs of
16609         the callee.
16610         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
16611         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
16612         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
16613         analysis functions unconditionally, call the new
16614         ipa_analyze_params_uses on the node instead of every edge.
16615
16616 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
16617
16618         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
16619         to tree.
16620         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
16621         also checks for a constant int vs.  non-constant but
16622         loop-invariant steps.
16623         (find_or_create_group): Change the sort algorithm to only consider
16624         steps that are constant ints.
16625         (idx_analyze_ref): Adopt code to handle a tree instead of a
16626         HOST_WIDE_INT for step.
16627         (gather_memory_references_ref): Handle tree instead of int and be
16628         prepared to see a NULL_TREE.
16629         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
16630         prefetches if the step cannot be calculated at compile time.
16631         (issue_prefetch_ref): Issue prefetches for non-constant but
16632         loop-invariant steps.
16633
16634 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16635
16636         Revert:
16637         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16638
16639         * tree.h (build_call_list): Remove.
16640         * tree.c (build_call_list): Remove.
16641
16642 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
16643
16644         * tree.h (build_call_list): Remove.
16645         * tree.c (build_call_list): Remove.
16646
16647 2010-05-18  Jan Hubicka  <jh@suse.cz>
16648
16649         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
16650
16651 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
16652
16653         PR rtl-optimization/43332
16654         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
16655
16656 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
16657
16658         * tree.h (build_int_cstu): Implement as static inline.
16659         * tree.c (build_int_cstu): Remove function.
16660         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
16661         sign extended.
16662
16663 2010-05-18  Richard Guenther  <rguenther@suse.de>
16664
16665         PR lto/44143
16666         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
16667         (debug): Initialize from -save-temps.
16668         (collect_execute): Print command-line when verbose.
16669         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
16670         for ltrans invocation.  Produce -dumpbase flag again.
16671         (process_args): Remove.
16672         (main): Simplify.
16673         * collect2.c (maybe_run_lto_and_relink): Only pass object
16674         files to lto-wrapper.
16675         * gcc.c (LINK_COMMAND_SPEC): Likewise.
16676
16677 2010-05-18  Jan Hubicka  <jh@suse.cz>
16678
16679         * opts.c (decode_options): Do not disable whopr at ipa_cp.
16680         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
16681
16682 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16683
16684         PR lto/44184
16685         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
16686         in a GIMPLE_ASM.
16687         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
16688         in a GIMPLE_ASM.
16689
16690 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
16691
16692         PR debug/41371
16693         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
16694         rtx_equal_p inline.
16695
16696 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
16697
16698         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
16699         lto-macho as lto_binary_reader.
16700
16701         * darwin.c (darwin_asm_named_section): Do not add assembler comment
16702         after .section directive; just print it before the directive instead.
16703
16704 2010-05-17  Jan Hubicka  <jh@suse.cz>
16705
16706         * cgraph.c (cgraph_create_virtual_clone): Only check
16707         versionable_function_p when not in wpa and checking is enabled.
16708         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
16709         there are no more functions to materialize.
16710
16711 2010-05-17  Jan Hubicka  <jh@suse.cz>
16712
16713         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
16714         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
16715         New functions.
16716         (output_cgraph): Call output_cgraph_opt_summary.
16717         (input_cgrpah): Call input_cgraph_opt_summary.
16718         (output_cgraph_opt_summary_p, output_node_opt_summary,
16719         input_node_opt_summary, input_cgraph_opt_section): New functions.
16720         * lto-section-in.c (lto_section_name): Add cgraphopt.
16721         * tree-inline.c (tree_function_versioning): Handle parm_num.
16722         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
16723         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
16724
16725 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16726
16727         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
16728         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
16729         the insn to prefetch ratio heuristic to loops with known trip count.
16730
16731 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
16732
16733         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
16734         (schedule_prefetches): Do not generate a prefetch if the unroll factor
16735         is far from what is required by the prefetch.
16736
16737 2010-05-17  Jan Hubicka  <jh@suse.cz>
16738
16739         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
16740         (ipcp_estimate_growth): Likewise.
16741         (ipcp_const_param_count): Likewise.
16742         (ipcp_insert_stage): Likewise.
16743         * ipa-prop.c (visit_load_for_mod_analysis): New function.
16744         (visit_store_addr_for_mod_analysis): Set used flag.
16745         (ipa_detect_param_modifications): Set used flag for SSE params;
16746         update use of walk_stmt_load_store_addr_ops.
16747         (ipa_print_node_params): Print used flag.
16748         (ipa_write_node_info): Stream used flag.
16749         (ipa_read_node_info): Likewise.
16750         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
16751         (ipa_is_param_used): New function.
16752         (lto_ipa_fixup_call_notes): Remove unused declaration.
16753
16754 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16755
16756         PR target/44074
16757         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
16758         * configure: Regenerate.
16759         * config.in: Regenerate.
16760         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
16761         !HAVE_AS_IX86_REP_LOCK_PREFIX.
16762         Don't emit whitespace.
16763         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
16764         (*rep_movsi): Likewise.
16765         (*rep_movsi_rex64): Likewise.
16766         (*rep_movqi): Likewise.
16767         (*rep_movqi_rex64): Likewise.
16768         (*rep_stosdi_rex64): Likewise.
16769         (*rep_stossi): Likewise.
16770         (*rep_stossi_rex64): Likewise.
16771         (*rep_stosqi): Likewise.
16772         (*rep_stosqi_rex64): Likewise.
16773         (*cmpstrnqi_nz_1): Use {%;} after repz.
16774         (*cmpstrnqi_nz_rex_1): Likewise.
16775         (*cmpstrnqi_1): Likewise.
16776         (*cmpstrnqi_rex_1): Likewise.
16777         (*strlenqi_1): Use {%;} after repnz.
16778         (*strlenqi_rex_1): Likewise.
16779         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
16780         (*sync_compare_and_swap<mode>): Likewise.
16781         (sync_double_compare_and_swap<mode>): Likewise.
16782         (*sync_double_compare_and_swapdi_pic): Likewise.
16783         (sync_old_add<mode>): Likewise.
16784         (sync_add<mode>): Likewise.
16785         (sync_sub<mode>): Likewise.
16786         (sync_<code><mode>): Likewise.
16787
16788 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16789
16790         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
16791         otr_token and polymorphic.
16792         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
16793         (cgraph_clone_edge): Copy the above fields.
16794         * tree.c (get_binfo_at_offset): New function.
16795         * tree.h (get_binfo_at_offset): Declare.
16796         * ipa-prop.h (enum jump_func_type): Added known_type jump function
16797         type, reordered items, updated comments.
16798         (union jump_func_value): Added base_type field, reordered fields.
16799         (enum ipa_lattice_type): Moved down in the file.
16800         (struct ipa_param_descriptor): New field polymorphic.
16801         (ipa_is_param_polymorphic): New function.
16802         * ipa-prop.c: Include gimple.h and gimple-fold.h.
16803         (ipa_print_node_jump_functions): Print known type jump functions.
16804         (compute_complex_pass_through): Renamed to...
16805         (compute_complex_assign_jump_func): this.
16806         (compute_complex_ancestor_jump_func): New function.
16807         (compute_known_type_jump_func): Likewise.
16808         (compute_scalar_jump_functions): Create known type and complex ancestor
16809         jump functions.
16810         (ipa_note_param_call): New parameter polymorphic, set the corresponding
16811         flag in the call note accordingly.
16812         (ipa_analyze_call_uses): Renamed to...
16813         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
16814         variable var only in the block where it is used.
16815         (ipa_analyze_virtual_call_uses): New function.
16816         (ipa_analyze_call_uses): Likewise.
16817         (combine_known_type_and_ancestor_jfs): Likewise.
16818         (update_jump_functions_after_inlining): Implemented handling of a
16819         number of new jump function types combination.
16820         (print_edge_addition_message): Removed.
16821         (make_edge_direct_to_target): New function.
16822         (try_make_edge_direct_simple_call): Likewise.
16823         (try_make_edge_direct_virtual_call): Likewise.
16824         (update_call_notes_after_inlining): Renamed to...
16825         (update_indirect_edges_after_inlining): this.  Moved edge creation for
16826         indirect calls to try_make_edge_direct_simple_call, also calls
16827         try_make_edge_direct_virtual_call for virtual calls.
16828         (ipa_print_node_params): Changed the header message.
16829         (ipa_write_jump_function): Stream also known type jump functions.
16830         (ipa_read_jump_function): Likewise.
16831         (ipa_write_indirect_edge_info): Stream new fields in
16832         cgraph_indirect_call_info.
16833         (ipa_read_indirect_edge_info): Likewise.
16834         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
16835         GIMPLE_FOLD_H.
16836
16837 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16838
16839         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
16840
16841 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16842
16843         * tree.h (CALL_EXPR_ARGS): Delete.
16844         (call_expr_arglist): Delete.
16845         * tree.c (call_expr_arglist): Delete.
16846         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
16847         targetm.fold_builtin.
16848         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
16849         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
16850         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
16851         arglist parameter.  Use CALL_EXPR_ARG.
16852         (picochip_expand_builtin_3op): Likewise.
16853         (picochip_expand_builtin_2opvoid): Likewise.
16854         (picochip_expand_array_get): Likewise.
16855         (picochip_expand_array_put): Likewise.
16856         (picochip_expand_array_testport): Likewise.
16857         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
16858         rather than arglist.
16859         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
16860         CALL_EXPR_ARGS.
16861         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
16862         than TREE_VALUE and TREE_CHAIN.
16863         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
16864         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
16865         the arglist.
16866
16867 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16868
16869         PR bootstrap/42347
16870         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
16871         to have no fallthru edge.
16872
16873         PR middle-end/44102
16874         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
16875         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
16876         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
16877         add BARRIER after previous bb if needed.
16878
16879 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
16880
16881         * tree.c (build_function_type_list_1): Remove bogus assert condition.
16882
16883 2010-05-17  Alan Modra  <amodra@gmail.com>
16884
16885         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
16886         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
16887         with copy_reg rtx param.
16888         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
16889         Correct cases where code for ABI_V4 did not initialise the reg
16890         used to access frame.  Also leave frame_reg_rtx as sp for large
16891         frames that save no regs.
16892
16893 2010-05-17  Martin Jambor  <mjambor@suse.cz>
16894
16895         PR middle-end/44133
16896         * tree-sra.c (create_access_replacement): New parameter rename, mark
16897         the replaement for renaming only when it is true.
16898         (get_access_replacement): Pass true in the rename parameter of
16899         create_access_replacement.
16900         (get_unrenamed_access_replacement): New function.
16901         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
16902         replacement declaration from it.
16903
16904 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
16905
16906         * function.c (try_fit_stack_local, add_frame_space): New static
16907         functions.
16908         (assign_stack_local_1): Use them.  Look for opportunities to use
16909         space previously wasted on alignment.
16910         * function.h (struct frame_space): New.
16911         (struct rtl_data): Add FRAME_SPACE_LIST member.
16912         * reload1.c (something_was_spilled): New static variable.
16913         (alter_reg): Set it.
16914         (reload): Test it in addition to testing if the frame size changed.
16915
16916 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
16917
16918         * config/s390/s390.c: Define sane prefetch settings and activate
16919         flag_prefetch_loop_arrays on -O3.
16920         * config/s390/s390.h: Declare that read can use write prefetch.
16921
16922 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
16923
16924         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
16925         build.
16926
16927 2010-05-16  Jan Hubicka  <jh@suse.cz>
16928
16929         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
16930         function body; do not check stdarg field of struct function.
16931
16932 2010-05-16  Jan Hubicka  <jh@suse.cz>
16933
16934         * cgraph.c (dump_cgraph_node): Dump versionable flag.
16935         * cgraph.h (cgraph_local_info): Add versionable flag.
16936         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
16937         (ipcp_versionable_function_p): Use it.
16938         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
16939         versionable flag.
16940
16941 2010-05-16  Jan Hubicka  <jh@suse.cz>
16942
16943         * cgraph.c (cgraph_clone_node): Take decl argument and insert
16944         clone into hash when it is different from orig.
16945         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
16946         * cgraph.h (cgraph_clone_node): Update prototype.
16947         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
16948         (lto_cgraph_encoder_delete): Delete body map.
16949         (lto_cgraph_encoder_size): Move to header.
16950         (lto_cgraph_encoder_encode_body_p,
16951         lto_set_cgraph_encoder_encode_body): New.
16952         (lto_output_node): Do not take written_decls argument; output clone_of
16953         pointer.
16954         (add_node_to): Add include_body_argument; call
16955         lto_set_cgraph_encoder_encode_body on master of the clone.
16956         (add_references): Update use of add_node_to.
16957         (compute_ltrans_boundary): Likewise.
16958         (output_cgraph): Do not create written_decls bitmap.
16959         (input_node): Take nodes argument; stream in clone_of correctly.
16960         (input_cgraph_1): Update use of input_node.
16961         * lto-streamer-out.c (lto_output): Use encoder info to decide
16962         what bodies to output.
16963         * ipa-inline.c (cgraph_clone_inlined_nodes,
16964         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
16965         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
16966         (lto_cgraph_encoder_size): Define here.
16967         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
16968         Declare.
16969
16970 2010-05-16  Richard Guenther  <rguenther@suse.de>
16971
16972         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
16973         -fipa-type-escape.
16974         * ipa-type-escape.c (gate_type_escape_vars): Run when
16975         -fipa-struct-reorg runs.
16976         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
16977         * common.opt (fipa-type-escape): Remove.
16978
16979 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
16980
16981         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
16982         (decode_options): Likewise.
16983         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
16984
16985 2010-05-16  Jan Hubicka  <jh@suse.cz>
16986
16987         * ipa.c (function_and_variable_visibility): Also bring local all
16988         aliases.
16989
16990 2010-05-16  Richard Guenther  <rguenther@suse.de>
16991
16992         * alias.c (nonoverlapping_memrefs_p): Remove use of
16993         IPA type-escape information.
16994
16995 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
16996
16997         * c-common.c (c_common_reswords): Add _Static_assert for C.
16998         * c-parser.c (c_token_starts_declaration,
16999         c_parser_next_token_starts_declaration,
17000         c_parser_static_assert_declaration_no_semi,
17001         c_parser_static_assert_declaration): New.
17002         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
17003         Handle static assertions if static_assert_ok.
17004         (c_parser_external_declaration, c_parser_declaration_or_fndef,
17005         c_parser_compound_statement_nostart, c_parser_label,
17006         c_parser_for_statement, c_parser_objc_methodprotolist,
17007         c_parser_omp_for_loop): All callers of
17008         c_parser_declaration_or_fndef changed.
17009         (c_parser_struct_declaration): Handle static assertions.
17010         (c_parser_compound_statement_nostart): Use
17011         c_parser_next_token_starts_declaration and
17012         c_token_starts_declaration to detect start of declarations.
17013         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
17014         Likewise.
17015
17016 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
17017
17018         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
17019         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
17020         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
17021         TARGET_FUNCTION_VALUE_REGNO_P): Define.
17022         (mmix_function_outgoing_value): Rename to...
17023         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
17024         (mmix_function_value_regno_p): Make static.
17025         (mmix_libcall_value): New function.
17026         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
17027         mmix_function_value_regno_p): Remove declaration.
17028
17029 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
17030
17031         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
17032         BUILT_IN_ALLOCA if stack checking is enabled.
17033
17034 2010-05-16  Richard Guenther  <rguenther@suse.de>
17035
17036         * var-tracking.c (vars_copy_1): Inline ...
17037         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
17038         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
17039         (variable_merge_over_cur): Adjust.  Merge asserts.
17040         (variable_merge_over_src): Likewise.
17041         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
17042         (variable_post_merge_new_vals): Merge asserts.
17043         (variable_post_merge_perm_vals): Likewise.
17044         (find_mem_expr_in_1pdv): Likewise.
17045         (dataflow_set_different_value): Remove.
17046         (onepart_variable_different_p): Merge asserts.
17047         (variable_different_p): Likewise.
17048         (dataflow_set_different_1): Inline ...
17049         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
17050         (emit_notes_for_differences_1): Merge asserts.
17051
17052 2010-05-16  Richard Guenther  <rguenther@suse.de>
17053
17054         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
17055         * optabs.c (libfunc_decl_hash): Likewise.
17056         * varasm.c (emutls_decl): Likewise.
17057
17058 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
17059
17060         * c-decl.c: Don't include gimple.h.
17061         (merge_decls): Do not copy gimple_body.
17062
17063 2010-05-15  Jason Merrill  <jason@redhat.com>
17064
17065         * c.opt: Add -fnothrow-opt.
17066
17067 2010-05-15  Jan Hubicka  <jh@suse.cz>
17068
17069         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
17070         analyzed.
17071         * passes.c (ipa_write_summaries): Write all analyzed nodes.
17072
17073 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
17074
17075         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
17076         * Makefile.in: Add it.
17077         Fix all other Makefile dependencies for changes below.
17078         * tree.h: Include it instead of defining VEC primitives here.
17079         * gimple.h: Likewise.
17080         * rtl.h: Likewise.
17081         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
17082         * except.h: Include vecir.h, break dependence on tree.h.
17083
17084         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
17085         Move from here...
17086         * tree-iterator.c: ...to here.
17087         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
17088
17089         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
17090         tm_p.h.
17091         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
17092         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
17093         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
17094         tree-mudflap.h, and target.h.
17095         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
17096         predict.h, tree-inline.h, gimple.h, and langhooks.h.
17097         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
17098         Add FIXME for why gimple.h is still included (should be unnecessary
17099         since GCC 4.5 gimplification unit-at-a-time).
17100         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
17101         * c-pragma.c: Add FIXME for why function.h needs to be included just
17102         for cfun, at front-end level.
17103         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
17104         Do not include ggc.h, but include vecprim.h for VEC(char).
17105         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
17106         Explain why target.h is included.
17107         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
17108         Explain why gimple.h is included.
17109         * c-ppoutput.c: Do not include tm.h.
17110         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
17111         * c-parses.c: Explain why rtl.h is included, and that this (and only
17112         this) is also why tm.h must be included.
17113         Do not include except.h.
17114         * c-lang.c: Do not include ggc.h.
17115
17116 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
17117
17118         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
17119
17120 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
17121
17122         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
17123         unions by default if those structs and unions have no tags.  Do
17124         not condition anonymous struct and unions handling on flag_iso.
17125         Allow anonymous structs and unions for C1X.
17126         (finish_struct): Do not diagnose lack of named fields when
17127         anonymous structs and unions present for C1X.  Accept flexible
17128         array members in structure with anonymous structs or unions but no
17129         directly named fields.
17130         * doc/extend.texi (Unnamed Fields): Update.
17131
17132 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
17133
17134         * gimple.h (compare_field_offset): Rename into...
17135         (gimple_compare_field_offset): ...this.
17136         * gimple.c (compare_field_offset): Rename into...
17137         (gimple_compare_field_offset): ...this.  Compare the full access if
17138         the offset is self-referential.
17139         (gimple_types_compatible_p): Adjust for above renaming.
17140         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
17141         DECL_NONADDRESSABLE_P flag of fields before merging them.
17142
17143 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
17144
17145         * tree.h (ctor_to_list): Delete.
17146         * tree.c (ctor_to_list): Delete.
17147
17148 2010-05-15  Jan Hubicka  <jh@suse.cz>
17149
17150         * ipa-reference.c: Include toplev.h
17151         (is_proper_for_analysis): Only add to all_module_statics
17152         if it is allocated.
17153         (write_node_summary_p, stream_out_bitmap,
17154         ipa_reference_write_optimization_summary,
17155         ipa_reference_read_optimization_summary): New.
17156         (struct ipa_opt_pass_d pass_ipa_reference): Add
17157         optimization summary streaming.
17158         * lto-cgraph.c (referenced_from_this_partition_p,
17159         reachable_from_this_partition_p): New functions.
17160         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
17161         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
17162         * opts.c (decode_options): Enable ipa_reference.
17163         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
17164         * lto-streamer.h (referenced_from_this_partition_p,
17165         reachable_from_this_partition_p): Declare.
17166
17167 2010-05-15  Richard Guenther  <rguenther@suse.de>
17168
17169         PR tree-optimization/44038
17170         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
17171         taking the address of a V_C_E of a constant.
17172
17173 2010-05-14  Jan Hubicka  <jh@suse.cz>
17174
17175         * tree.h (memory_identifier_string): Remove.
17176         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
17177         (ipa_reference_global_vars_info_d): Remove statics_not_read and
17178         statics_not_written.
17179         (ipa_reference_optimization_summary_d): New structure.
17180         (ipa_reference_optimization_summary_t): New type and vector.
17181         (ipa_reference_vars_info_d): Embedd structures instead of using
17182         pointers.
17183         (reference_vars_to_consider): Remove out of GGC space.
17184         (module_statics_escape): Remove.
17185         (global_info_obstack): Rename to ...
17186         (optimization_summary_obstack): ... this one.
17187         (initialization_status_t): Remove.
17188         (memory_identifier_string): Remove.
17189         (get_reference_vars_info): Fix indenting.
17190         (set_reference_vars_info): Likewise.
17191         (get_reference_optimization_summary): New.
17192         (set_reference_optimization_summary): New.
17193         (get_global_reference_vars_info): Remove.
17194         (ipa_reference_get_read_global): Remove.
17195         (ipa_reference_get_written_global): Remove.
17196         (ipa_reference_get_not_read_global): Update.
17197         (ipa_reference_get_not_written_global): Update.
17198         (is_proper_for_analysis): Outlaw addressable.
17199         (propagate_bits): Update for new datastructures.
17200         (analyze_variable): Remove.
17201         (init_function_info): Update for new datastructures.
17202         (clean_function_local_data): Remove.
17203         (clean_function): Remove.
17204         (copy_global_bitmap): Use optimizations_summary_obstack.
17205         (duplicate_node_data): Duplicate optimization summary only.
17206         (remove_node_data): Remove optimization summary only.
17207         (generate_summary): Do not analyze variables; do not compute
17208         module_statics_escape; do not prune solutions by it.
17209         (read_write_all_from_decl): Fix typos in comments.
17210         (propagate): Doscover readonly and nonaddressable first;
17211         update for new datastructures; share global bitmaps.
17212         * ipa-reference.h (ipa_reference_get_read_global,
17213         ipa_reference_get_written_global): Remove.
17214         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
17215         * Makefile.in: Remove ipa-refereference from GT files.
17216
17217 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
17218
17219         PR debug/44112
17220         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
17221         for all SYMBOL_REF_DECLs.
17222
17223 2010-05-14  Jan Hubicka  <jh@suse.cz>
17224
17225         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
17226         (varpool_all_refs_explicit_p): New inline function.
17227         * ipa-reference.c: Update comment.
17228         (module_statics_written): Remove.
17229         (get_static_decl): Remove.
17230         (ipa_init): Do not initialize module_statics_written.
17231         (analyze_function): Likewise.
17232         (generate_summary): Likewise; do not compute module_statics_readonly
17233         and do not update variable flags.
17234         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
17235         * ipa.c: Inlucde flags.h
17236         (cgraph_local_node_p): New.
17237         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
17238         promote functions to local.
17239         (ipa_discover_readonly_nonaddressable_vars): New function.
17240         (function_and_variable_visibility): Use cgraph_local_node_p.
17241         * varpool.c (varpool_finalize_decl): Set force_output for
17242         DECL_PRESERVE_P vars.
17243
17244 2010-05-14  Jan Hubicka  <jh@suse.cz>
17245
17246         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
17247
17248 2010-05-14  Richard Guenther  <rguenther@suse.de>
17249
17250         PR tree-optimization/44119
17251         * tree-ssa-pre.c (eliminate): Properly mark replacement of
17252         a PHI node necessary.
17253
17254 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
17255
17256         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
17257
17258 2010-05-14  Jason Merrill  <jason@redhat.com>
17259
17260         PR c++/44127
17261         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
17262         (gimple_call_set_nothrow): New.
17263         * gimple.c (gimple_build_call_from_tree): Call it.
17264         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
17265
17266         PR c++/44127
17267         * gimplify.c (gimplify_seq_add_stmt): No longer static.
17268         * gimple.h: Declare it.
17269         * gimple.c (gimple_build_eh_filter): No ops.
17270
17271 2010-05-14  Jan Hubicka  <jh@suse.cz>
17272
17273         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
17274         nodes already in queue.
17275         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
17276         re-enqueueing node.
17277
17278 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
17279
17280         PR debug/44136
17281         * cfgexpand.c (expand_debug_expr): If non-memory op0
17282         has BLKmode, return NULL.
17283
17284 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
17285
17286         * config.gcc: Add support for --with-cpu option for bdver1.
17287         * config/i386/i386.h (TARGET_BDVER1): New macro.
17288         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
17289         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
17290         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
17291         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
17292         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
17293         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
17294         (processor_type): Add PROCESSOR_BDVER1.
17295         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
17296         processor_type in config/i386/i386.h.
17297         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
17298         movaps <reg, reg> instead of movapd <reg, reg> when replacing
17299         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
17300         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
17301         to emit packed xor instead of packed double/packed integer
17302         xor for SSE and AVX when moving a zero value.
17303         * config/i386/sse.md: Add check for
17304         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
17305         movapd/movdqa for SSE and AVX.
17306         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
17307         single logical operations i.e and, or and xor instead of packed double
17308         logical operations for SSE and AVX.
17309         * config/i386/i386-c.c (ix86_target_macros_internal):
17310         Add PROCESSOR_BDVER1.
17311         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
17312         (has_fma4, has_xop): New.
17313         * config/i386/i386.c (bdver1_cost): New variable.
17314         (m_BDVER1): New macro.
17315         (m_AMD_MULTIPLE): Add m_BDVER1.
17316         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
17317         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
17318         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
17319         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
17320         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
17321         x86_tune_sse_partial_reg_dependency,
17322         x86_tune_sse_unaligned_load_optimal,
17323         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
17324         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
17325         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
17326         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
17327         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
17328         Enable/disable for bdver1.
17329         (processor_target_table): Add bdver1_cost.
17330         (cpu_names): Add bdver1.
17331         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
17332          processor_alias_table.
17333         (ix86_expand_vector_move_misalign): Change.
17334         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
17335         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
17336         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
17337         of movupd/movdqu for SSE and AVX.
17338         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
17339         (ix86_tune_adjust_cost): Add code for bdver1.
17340         (standard_sse_constant_opcode): Add check for
17341         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
17342         of packed double xor for SSE and AVX.
17343
17344 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
17345
17346         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
17347         result to unsigned.
17348
17349 2010-05-14  Tristan Gingold  <gingold@adacore.com>
17350
17351         * toplev.c (default_debug_hooks): Remove this variable.
17352         (process_options): Remove assignments to default_debug_hooks.
17353
17354 2010-05-14  Martin Jambor  <mjambor@suse.cz>
17355
17356         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
17357         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
17358         * langhooks.h (struct lang_hooks_for_decls): Removed field
17359         fold_obj_type_ref.
17360         * tree.c (free_lang_data): Remove assignment to
17361         lang_hooks.fold_obj_type_ref.
17362         * tree.def (OBJ_TYPE_REF): Update comment.
17363
17364 2010-05-14  Richard Guenther  <rguenther@suse.de>
17365
17366         PR tree-optimization/44124
17367         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
17368
17369 2010-05-14  Alan Modra  <amodra@gmail.com>
17370
17371         PR target/44075
17372         * config/rs6000/rs6000.c (struct machine_function): Reorder
17373         fields for better packing.  Add lr_save_state.
17374         (rs6000_ra_ever_killed): Return lr_save_state if set.
17375         (rs6000_emit_eh_reg_restore): Set lr_save_state.
17376
17377 2010-05-13  Jan Hubicka  <jh@suse.cz>
17378
17379         * varpool.c (decide_is_variable_needed): Drop code checking
17380         TREE_SYMBOL_REFERENCED.
17381
17382 2010-05-13  Jan Hubicka  <jh@suse.cz>
17383
17384         * final.c (output_addr_const): Do not call mark_decl_referenced.
17385         * cgraphunit.c (process_function_and_variable_attributes): Use
17386         mark_needed_node dirrectly.
17387         (assemble_thunk): Do not call mark_decl_referenced.
17388
17389 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
17390
17391         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
17392
17393 2010-05-13  Jeff Law  <law@redhat.com>
17394
17395         * ira-conflicts.c (print_allocno_conflicts): New function broken out
17396         from...
17397         (print_conflicts): Call print_allocno_conflicts.
17398
17399 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17400
17401         PR debug/44104
17402         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
17403         if it is NULL.
17404
17405 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
17406
17407         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
17408         t-mingw-w64 or t-mingw-w32 for multilib configuration.
17409         * config/i386/t-mingw-w32: New.
17410         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
17411
17412 2010-05-13  Martin Jambor  <mjambor@suse.cz>
17413
17414         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
17415         gimple-fold.c).
17416         * gimple-fold.c (get_base_binfo_for_type): New function.
17417         (gimple_get_relevant_ref_binfo): Likewise.
17418         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17419         (gimple_fold_obj_type_ref): Likewise.
17420         (fold_gimple_call): Simplify condition for folding virtual calls
17421         and call gimple_fold_obj_type_ref.
17422         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
17423         (gimple_fold_obj_type_ref_known_binfo): Likewise.
17424
17425 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
17426
17427         * config/rs6000/rs6000-protos.h
17428         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
17429         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
17430         (rs6000_debug_mode_dependent_address)
17431         (rs6000_mode_dependent_address_ptr): Likewise.
17432
17433 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
17434
17435         PR debug/43983
17436         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
17437         by SRA.
17438         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
17439         * tree-sra.c (create_access_replacement): Call unshare_expr before
17440         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
17441         * dwarf2out.c: Include tree-flow.h.
17442         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
17443         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
17444         Handle DW_OP_bit_piece.
17445         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
17446         construct_piece_list, adjust_piece_list): New functions.
17447         (add_var_loc_to_decl): Handle SRA optimized variables.
17448         Adjust for var_loc_note to loc field renaming.
17449         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
17450         in VAR_LOCATION note.
17451         (new_loc_descr_op_bit_piece): New function.
17452         (dw_sra_loc_expr): New function.
17453         (dw_loc_list): Use it.  Don't handle the last range after the
17454         loop, handle it inside of the loop.  Adjust for var_loc_note
17455         to loc field renaming.
17456         (add_location_or_const_value_attribute): Only special case
17457         single entry loc lists if loc is NOTE_P.  Adjust for
17458         var_loc_note to loc field renaming.
17459         (dwarf2out_var_location): Don't set newloc->var_loc_note
17460         and newloc->next here.
17461
17462 2010-05-12  Jan Hubicka  <jh@suse.cz>
17463
17464         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
17465         flag.
17466         * cgraph.h (cgraph_only_called_directly_p,
17467         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
17468         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
17469         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
17470         (assemble
17471         * ipa.c (cgraph_remove_unreachable_nodes): Use
17472         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
17473         flags.
17474         * tree-inline.c (copy_bb): Check address_taken flag.
17475         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
17476         externally_visible flag.
17477
17478 2010-05-12  Jason Merrill  <jason@redhat.com>
17479
17480         PR bootstrap/44048
17481         PR target/44099
17482         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
17483         * sdbout.c (plain_type_1): Likewise.
17484         * dwarf2out.c (is_base_type): Likewise.
17485         (gen_type_die_with_usage): Likewise.  Generate
17486         DW_TAG_unspecified_type for any LANG_TYPE.
17487
17488 2010-05-12  Jan Hubicka  <jh@suse.cz>
17489
17490         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
17491         indrect edges too.
17492         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
17493         (cgraph_clone_edge): Update.
17494         (cgraph_node_remove_callees): Remove indirect calls too.
17495         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
17496         (cgraph_create_indirect_edge): Update prototype.
17497         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
17498         is_proper_for_analysis.
17499         (add_new_function, visited_nodes, function_insertion_hook_holder,
17500         get_local_reference_vars_info, mark_address_taken, mark_address,
17501         mark_load, mark_store, check_asm_memory_clobber, check_call,
17502         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
17503         (ipa_init): Do not initialize visited_nodes;
17504         function_insertion_hook_holder.
17505         (analyze_variable): Rewrite.
17506         (analyze_function): Rewrite.
17507         (copy_local_bitmap): Remove.
17508         (duplicate_node_dat): Do not duplicate local info.
17509         (generate_summary): Simplify to only walk cgraph.
17510         (write_node_summary_p, ipa_reference_write_summary,
17511         ipa_reference_read_summary): Remove.
17512         (propagate): Do not remove function insertion;
17513         generate summary.
17514         (pass_ipa_reference): NULLify summary handling fields.
17515         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
17516         (input_edge): Input ecf_flags.
17517         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
17518         (update_indirect_edges_after_inlining): Ignore edges with unknown
17519         param.
17520
17521 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
17522
17523         * implicit-zee.c: New file.
17524         * tree-pass.h (pass_implicit_zee): Declare.
17525         * passes.c (init_optimization_passes): Add zee pass.
17526         * common.opt (fzee): New flag.
17527         * timevar.def (TV_ZEE): Define.
17528         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
17529         and beyond.
17530         * Makefile.in (implicit-zee.o): Add new build file.
17531
17532 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17533             Nathan Froyd  <froydnj@codesourcery.com>
17534
17535         * c-common.c (sync_resolve_params): Remove write-only variable.
17536
17537 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
17538
17539         * target.h (struct gcc_target): Add mode_dependent_address_p field.
17540         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17541         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
17542         * targhooks.c (default_mode_dependent_address_p): New function.
17543         * targhooks.h (default_mode_dependent_address_p): Declare function.
17544         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
17545         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
17546         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
17547         target hook. Change return type to bool.
17548         * recog.h (mode_dependent_address_p): Change return type to bool.
17549
17550 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17551             Nathan Froyd  <froydnj@codesourcery.com>
17552
17553         * tree-mudflap.c (build_function_type_0, build_function_type_1,
17554         build_function_type_2, build_function_type_3): Remove.
17555         (mudflap_init): Use build_function_type_list.
17556
17557 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
17558             Nathan Froyd  <froydnj@codesourcery.com>
17559
17560         * coverage.c (build_fn_info_value): Call build_constructor instead of
17561         build_constructor_from_list.
17562         (build_ctr_info_value): Likewise.
17563         (build_gcov_info): Likewise.
17564
17565 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
17566
17567         * tree.c (build_constructor): Compute TREE_CONSTANT for the
17568         resultant constructor.
17569         (build_constructor_single): Don't set TREE_CONSTANT.
17570         (build_constructor_from_list): Don't compute TREE_CONSTANT.
17571
17572 2010-05-12  Jan Hubicka  <jh@suse.cz>
17573
17574         * cgraph.h (struct varpool_node): Add aux.
17575         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
17576         * varpool.c (varpool_remove_node): Do not remove initializer.
17577         (varpool_reset_queue): Export.
17578         (varpool_finalize_decl): Volatile vars are forced to be output.
17579         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
17580         replaced decl.
17581         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
17582         process_references, varpool_can_remove_if_no_refs): New functions.
17583         (cgraph_remove_unreachable_nodes): Handle variables too.
17584
17585 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
17586
17587         PR target/44088
17588         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
17589
17590 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
17591
17592         PR middle-end/44085
17593         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
17594         change value of ORT_TASK.
17595         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
17596         (omp_notice_threadprivate_variable): New function.
17597         (omp_notice_variable): Call it for threadprivate variables.
17598         If enclosing ctx is a task, print enclosing task rather than
17599         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
17600         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
17601         if task has untied clause.
17602
17603         PR debug/42278
17604         * dwarf2out.c (base_type_die): Don't add name attribute here.
17605         (modified_type_die): Instead of sizetype use
17606         its underlying original type.  If a DW_TAG_base_type doesn't
17607         have name added, add __unknown__.
17608         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
17609         always call force_type_die instead.
17610
17611 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
17612
17613         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
17614         for __stack_chk_guard.
17615
17616 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17617
17618         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
17619         don't call start_source_file debug hook here...
17620         (finish_options): ... but here, after outputting predefined and
17621         command line defines and undefs.
17622
17623         PR middle-end/44071
17624         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
17625         no fallthru edge.
17626         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
17627         optimizing away empty bb with no successors, move over its
17628         footer chain to fallthru predecessor.
17629         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
17630         (rtl_split_edge): For asm goto call patch_jump_insn even if
17631         splitting fallthru edge.
17632
17633         PR c++/44059
17634         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
17635         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
17636         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
17637         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
17638         on DW.ref.* decls.
17639
17640         PR c++/44062
17641         * c-parser.c (c_parser_expression): Mark LHS of a comma
17642         expression as read if it is a decl, handled component or
17643         COMPOUND_EXPR with that on the RHS.
17644         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
17645         if it is a decl or handled component.
17646
17647 2010-05-11  Jan Hubicka  <jh@suse.cz>
17648
17649         * lto-symtab.c (lto_symtab_free): New function.
17650         * lto-streamer.h (lto_symtab_free): Declare.
17651
17652 2010-05-11  Jan Hubicka  <jh@suse.cz>
17653
17654         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
17655         that if function is needed it is reachable.
17656         (lto_output_node): See if it the function is reachable or referenced.
17657         (output_cgraph): Update call of lto_output_node.
17658         * lto-streamer.h (reachable_from_other_partition_p): Declare.
17659
17660 2010-05-11  Jan Hubicka  <jh@suse.cz>
17661
17662         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
17663         Mark as used.
17664
17665 2010-05-11  Jan Hubicka  <jh@suse.cz>
17666
17667         PR tree-optimize/44063
17668         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
17669         queue.
17670         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
17671         limits.
17672         (estimate_function_body_sizes): Compute sizes even when disregarding.
17673
17674 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
17675
17676         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
17677
17678 2010-05-11  Jan Hubicka  <jh@suse.cz>
17679
17680         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
17681         into every boundary.
17682
17683 2010-05-11  Jan Hubicka  <jh@suse.cz>
17684
17685         * matrix-reorg.c (matrix_reorg): Rebuild edges.
17686
17687 2010-05-11  Jan Hubicka  <jh@suse.cz>
17688
17689         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
17690         lto_streamer_cache_delete): Put nodes into heap.
17691         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
17692         heap.
17693
17694 2010-05-11  Jan Hubicka  <jh@suse.cz>
17695
17696         * cgraphbuild.c (cgraph_rebuild_references): New.
17697         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
17698         out extern inlines.
17699         * cgraph.h (cgraph_rebuild_references): Declare.
17700         * tree-inline.c (tree_function_versioning): Use it.
17701         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
17702
17703 2010-05-11  Jan Hubicka  <jh@suse.cz>
17704
17705         * cgraph.c: Include ipa-utils.h
17706         (cgraph_create_virtual_clone): Update references.
17707         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
17708
17709 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17710
17711         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
17712         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
17713         cache size.
17714
17715 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
17716
17717         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
17718
17719 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
17720
17721         * gcc.c (execute): For -### don't quote arguments that
17722         contain just alphanumerics and _/-. characters.
17723         * doc/invoke.texi: Document that change for -###.
17724
17725         PR debug/44023
17726         * df-problems.c (struct dead_debug): Add to_rescan field.
17727         (dead_debug_init): Clear to_rescan field.
17728         (dead_debug_finish): Rescan all debug insns in to_rescan
17729         bitmap and free the bitmap.
17730         (dead_debug_insert_before): Instead of rescanning debug insns
17731         immediately queue their rescanning until dead_debug_finish.
17732         (df_note_bb_compute): After dead_debug_add do continue instead
17733         of break.
17734
17735 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
17736
17737         PR debug/44028
17738         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
17739         clear also INSN_REG_USE_LIST.
17740
17741 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17742
17743         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
17744
17745 2010-05-10  Jan Hubicka  <jh@suse.cz>
17746
17747         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
17748         commited change.
17749
17750 2010-05-10  Jan Hubicka  <jh@suse.cz>
17751
17752         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
17753         Allocate encoders.
17754         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
17755         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
17756         (lto_streamer_cache_create): Init alloc pool.
17757         (lto_streamer_cache_delete): Free alloc pool.
17758         * lto-streamer.h: Include alloc pool.
17759         (lto_streamer_cache_d): Use alloc pool.
17760         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
17761
17762 2010-05-10  Jan Hubicka  <jh@suse.cz>
17763
17764         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
17765         * cgraphbuild.c: Include except.h
17766         (record_type_list, record_eh_tables): New function.
17767         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
17768
17769 2010-05-10  Jan Hubicka  <jh@suse.cz>
17770
17771         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
17772         __frame_dummy_init_array_entry, force_to_data): Attribute as used
17773         rather than unused.
17774
17775 2010-05-10  Michael Matz  <matz@suse.de>
17776
17777         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
17778         (can_reassociate_p): Use FLOAT_TYPE_P.
17779         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
17780         (vect_force_simple_reduction): ... this.
17781         * tree-parloops.c (gather_scalar_reductions): Use
17782         vect_force_simple_reduction.
17783         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
17784         vect_is_simple_reduction, add modify argument, if true rewrite
17785         "a-b" into "a+(-b)".
17786         (vect_is_simple_reduction, vect_force_simple_reduction): New
17787         functions.
17788         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
17789
17790 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
17791             Vladimir Makarov  <vmakarov@redhat.com>
17792
17793         PR rtl-optimization/44012
17794         * ira-build.c (remove_unnecessary_allocnos): Nullify
17795         regno_allocno_map of the removed allocno.
17796
17797 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17798
17799         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
17800         to /dev/null.
17801         * configure: Regenerate.
17802
17803 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17804
17805         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
17806         unused.
17807         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
17808         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
17809         support in Sun ld.
17810         * configure: Regenerate.
17811
17812 2010-05-10  Richard Guenther  <rguenther@suse.de>
17813
17814         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
17815         marked if the entry identifier is marked.
17816
17817 2010-05-10  Richard Guenther  <rguenther@suse.de>
17818
17819         * c-common.c (struct c_common_attributes): Add fnspec attribute.
17820         (handle_fnspec_attribute): New function.
17821         * gimple.h (gimple_call_return_flags): Declare.
17822         (gimple_call_arg_flags): Likewise.
17823         * gimple.c (gimple_call_arg_flags): New function.
17824         (gimple_call_return_flags): Likewise.
17825         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
17826         New argument flags.
17827         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
17828         return value flags.
17829         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
17830         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
17831         main work to ...
17832         (make_heapvar_for): ... this new function.
17833         (handle_rhs_call): Handle fnspec attribute argument specifiers.
17834         (handle_lhs_call): Likewise.
17835         (find_func_aliases): Adjust.
17836
17837 2010-05-10  Richard Guenther  <rguenther@suse.de>
17838
17839         PR tree-optimization/44050
17840         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
17841
17842 2010-05-10  Wei Guozhi  <carrot@google.com>
17843
17844         PR target/42879
17845         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
17846
17847 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17848
17849         PR c/10676
17850         * c-typeck.c (lookup_field): Take a type directly.  Update
17851         recursive calls.
17852         (build_component_ref): Update call to lookup_field.
17853         (set_init_label): Use lookup_field to find initialized field.
17854         Handle returned list of fields like a sequence of designators.
17855
17856 2010-05-09  Richard Guenther  <rguenther@suse.de>
17857
17858         PR middle-end/44024
17859         * fold-const.c (tree_single_nonzero_warnv_p): Properly
17860         handle &FUNCTION_DECL.
17861
17862 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
17863
17864         PR c/4784
17865         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
17866         structures and unions recursively.
17867         (detect_field_duplicates): Move duplicate detection with a hash to
17868         detect_field_duplicates_hash.  Always use a hash if anonymous
17869         structures or unions are present.
17870         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
17871         give errors.
17872
17873 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
17874
17875         PR target/44046
17876         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
17877         detect Atom, Core 2 and Core i7.
17878
17879 2010-05-09  Richard Guenther  <rguenther@suse.de>
17880
17881         * gcc.c (store_arg): Handle temporary file deletion for
17882         joined arguments.
17883
17884 2010-05-09  Richard Guenther  <rguenther@suse.de>
17885
17886         PR middle-end/44043
17887         * ipa-inline.c (estimate_function_body_sizes): Return after
17888         disregarding inline limits.
17889
17890 2010-05-09  Richard Guenther  <rguenther@suse.de>
17891
17892         * gcc.c (store_arg): Revert last change.
17893
17894 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
17895
17896         PR middle-end/28685
17897         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
17898         (optimize_ops_list): Call it.
17899
17900 2010-05-08  Richard Guenther  <rguenther@suse.de>
17901
17902         PR tree-optimization/44030
17903         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
17904         NECESSARY flag if we propagate from a inserted expression.
17905
17906 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
17907
17908         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
17909         domain types as equal if they are both PLACEHOLDER_EXPRs.
17910
17911 2010-05-08  Richard Guenther  <rguenther@suse.de>
17912
17913         * lto-wrapper.c (run_gcc): Remove linker output from
17914         command line for LTRANS invocation.
17915
17916 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17917
17918         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
17919         lto-macho as lto_binary_reader.
17920         * target.h (struct gcc_target): New hooks lto_start and lto_end.
17921         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
17922         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
17923         in lto_start and lto_end calls.
17924         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
17925         magic numbers.
17926         (scan_prog_file): Update is_elf_or_coff call.
17927         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
17928
17929         * collect2.c (main): Fix enum comparison.
17930
17931         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
17932         Add prototypes.
17933         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
17934         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
17935         and TARGET_ASM_LTO_END.
17936         * darwin.c: Include obstack.h and lto-streamer.h.
17937         (lto_section_names_offset, lto_section_names_obstack,
17938         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
17939         global variables.
17940         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
17941         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
17942         to a temporary file.
17943         (darwin_asm_lto_end): New function.  Restore asm_out_file.
17944         (darwin_asm_named_section): For LTO sections, replace the name with
17945         the offset of the section name in a string table, and build this
17946         table.
17947         (darwin_file_start): Initialize global vars for LTO support.
17948         (darwin_file_end): If output to asm_out_file was redirected, append it
17949         to the proper asm_out_file here.  Add the section names section.
17950
17951 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
17952
17953         * c-pragma.c (pending_weak_d, pending_weak): New.
17954         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
17955         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
17956         handle_pragma_weak): Update the uses of pending_weaks.
17957
17958 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17959
17960         PR documentation/44016
17961         * doc/standards.texi (Standards): Link to unversioned
17962         cxx0x_status.html page.
17963
17964 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
17965
17966         PR target/43708
17967         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
17968         in addition to TREE_USED, to avoid "set but unused" warnings.
17969
17970 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17971
17972         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
17973         (is_loop_prefetching_profitable): Do not insert prefetches
17974         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
17975         times the prefetch ahead distance.
17976
17977 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17978
17979         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
17980         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
17981         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
17982         the unroll_factor.
17983
17984 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
17985
17986         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
17987         a diagnostic info when the insn-to-mem ratio is too small.
17988
17989 2010-05-07  Richard Guenther  <rguenther@suse.de>
17990
17991         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
17992         the linker plugin.
17993         (store_arg): Queue temp_filename for deletion instead of
17994         the whole argument.
17995
17996 2010-05-07  Richard Guenther  <rguenther@suse.de>
17997
17998         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
17999         (run_gcc): Handle LTRANS phase invocation.
18000         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
18001
18002 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
18003
18004         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
18005         this is also meaningful on PARM_DECLs and RESULT_DECLs.
18006
18007 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18008
18009         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
18010
18011 2010-05-07  Richard Guenther  <rguenther@suse.de>
18012
18013         PR tree-optimization/44020
18014         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
18015         code when PRE is not yet initialized.
18016
18017 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18018
18019         * config/mips/dbxmdebug.h: Remove.
18020         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
18021
18022 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
18023
18024         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
18025         with null pointer and also warn about ordered comparison of zero with
18026         pointer if -Wextra.
18027
18028 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
18029
18030         * graphite-blocking.c
18031         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
18032         * graphite-clast-to-gimple.c
18033         (clast_to_gcc_expression): Same.
18034         (precision_for_value): Same.
18035         (precision_for_interval): Same.
18036         (gcc_type_for_interval): Same.
18037         (graphite_create_new_guard): Same.
18038         (compute_bounds_for_level): Same.
18039         (graphite_create_new_loop_guard): Same.
18040         * graphite-interchange.c
18041         (build_linearized_memory_access): Same.
18042         (pdr_stride_in_loop): Same.
18043         (memory_strides_in_loop_1): Same.
18044         (memory_strides_in_loop): Same.
18045         (extend_scattering): Same.
18046         (psct_scattering_dim_for_loop_depth): Same.
18047         (pbb_number_of_iterations): Same.
18048         * graphite-poly.h
18049         (debug_iteration_domains): Same.
18050         * graphite-ppl.c
18051         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
18052         (ppl_set_inhomogeneous_gmp): Same.
18053         (ppl_strip_loop): Same.
18054         (ppl_lexico_compare_linear_expressions): Same.
18055         (ppl_read_polyhedron_matrix): Same.
18056         (ppl_max_for_le_pointset): Same.
18057         * graphite-ppl.h
18058         (ppl_read_polyhedron_matrix): Same.
18059         (tree_int_to_gmp): Same.
18060         (gmp_cst_to_tree): Same.
18061         (ppl_set_inhomogeneous): Same.
18062         (ppl_set_inhomogeneous_tree): Same.
18063         (ppl_set_coef): Same.
18064         (ppl_set_coef_tree): Same.
18065         * graphite-sese-to-poly.c
18066         (build_pbb_scattering_polyhedrons): Same.
18067         (build_scop_scattering): Same.
18068         (scan_tree_for_params_right_scev): Same.
18069         (scan_tree_for_params): Same.
18070         (find_params_in_bb): Same.
18071         (find_scop_parameters): Same.
18072         (add_upper_bounds_from_estimated_nit): Same.
18073         (build_loop_iteration_domains): Same.
18074         (add_condition_to_domain): Same.
18075         (pdr_add_memory_accesses): Same.
18076
18077 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
18078
18079         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
18080         CLooG's value_* macros to their respective mpz_* counterparts.
18081         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
18082         (graphite_create_new_loop_guard): Same.
18083         * graphite-interchange.c (build_linearized_memory_access): Same.
18084         (pdr_stride_in_loop): Same.
18085         (memory_strides_in_loop_1): Same.
18086         (1st_interchange_profitable_p): Same.
18087         * graphite-poly.c (extend_scattering): Same.
18088         (psct_scattering_dim_for_loop_depth): Same.
18089         (pbb_number_of_iterations): Same.
18090         (pbb_number_of_iterations_at_time): Same.
18091         * graphite-poly.h (new_1st_loop): Same.
18092         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
18093         (oppose_constraint): Same.
18094         (insert_constraint_into_matrix): Same.
18095         (ppl_set_inhomogeneous_gmp): Same.
18096         (ppl_set_coef_gmp): Same.
18097         (ppl_strip_loop): Same.
18098         (ppl_lexico_compare_linear_expressions): Same.
18099         (ppl_max_for_le_pointset): Same.
18100         (ppl_min_for_le_pointset): Same.
18101         (ppl_build_realtion): Same.
18102         * graphite-ppl.h (gmp_cst_to_tree): Same.
18103         (ppl_set_inhomogeneous): Same.
18104         (ppl_set_inhomogeneous_tree): Same.
18105         (ppl_set_coef): Same.
18106         (ppl_set_coef_tree): Same.
18107         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
18108         (build_scop_scattering): Same.
18109         (add_value_to_dim): Same.
18110         (scan_tree_for_params_right_scev): Same.
18111         (scan_tree_for_params_int): Same.
18112         (scan_tree_for_params): Same.
18113         (find_params_in_bb): Same.
18114         (find_scop_parameters): Same.
18115         (add_upper_bounds_from_estimated_nit): Same.
18116         (build_loop_iteration_domains): Same.
18117         (create_linear_expr_from_tree): Same.
18118         (add_condition_to_domain): Same.
18119         (pdr_add_memory_accesses): Same.
18120
18121 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
18122             Jason Merrill  <jason@redhat.com>
18123
18124         * c-common.c (c_common_reswords): Add nullptr.
18125         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
18126         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
18127         (gen_type_die_with_usage): Likewise.
18128         * dbxout.c (dbxout_type): Likewise.
18129         * sdbout.c (plain_type_1): Likewise.
18130
18131 2010-05-06  Jason Merrill  <jason@redhat.com>
18132
18133         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
18134         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
18135         ret appropriately.
18136         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
18137
18138         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
18139         stripping WITH_SIZE_EXPR.
18140         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
18141         change.
18142
18143 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18144
18145         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
18146         list of obsolete configurations.
18147         Disabled check for obsolete configurations.
18148         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
18149         Removed support for previous versions.
18150         * config/mips/iris.h: Removed.
18151         * config/mips/iris5.h: Removed.
18152         * config/mips/iris6.h: Merged old iris.h contents.
18153         (TARGET_IRIX): Removed.
18154         (DRIVER_SELF_SPECS): Removed mabi=32.
18155         (IDENT_ASM_OP): Removed undef.
18156         (STARTFILE_SPEC): Removed mabi=32.
18157         (ENDFILE_SPEC): Likewise.
18158         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
18159         (MACHINE_TYPE): Update for IRIX 6.5.
18160         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
18161         TARGET_IRIX by TARGET_IRIX6.
18162         (mips_file_start): Likewise.
18163         (mips_output_external): Remove IRIX 5/6 O32 support.
18164         (mips_output_function_prologue): Likewise.
18165         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
18166         TARGET_IRIX6.
18167         (TARGET_CPU_CPP_BUILTINS): Likewise.
18168         (TARGET_IRIX): Removed.
18169         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
18170         (MULTILIB_DIRNAMES): Removed 32.
18171         (MULTILIB_OSDIRNAMES): Removed ../lib.
18172         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
18173         (Specific, mips-sgi-irix5): Document removal.
18174         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
18175         Remove references to older IRIX 6 releases and the O32 ABI.
18176
18177 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
18178
18179         PR bootstrap/43994
18180         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
18181         instead of DF_REF_REAL_REG.
18182
18183 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
18184
18185         PR target/43888
18186         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
18187         handling to still return true for x64 targets.
18188
18189 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
18190
18191         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
18192
18193 2010-05-06  Jan Hubicka  <jh@suse.cz>
18194
18195         PR tree-optimization/43791
18196         * ipa-inline.c (update_caller_keys): Remove bogus
18197         disregard_inline_limits check.
18198
18199 2010-05-06  Michael Matz  <matz@suse.de>
18200
18201         PR tree-optimization/43984
18202         * tree-ssa-pre.c (inserted_phi_names): Remove.
18203         (inserted_exprs): Change to bitmap.
18204         (create_expression_by_pieces): Set bits, don't append to vector.
18205         (insert_into_preds_of_block): Don't handle inserted_phi_names.
18206         (eliminate): Don't look at inserted_phi_names, remove deleted
18207         insns from inserted_exprs.
18208         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
18209         (init_pre, fini_pre): Allocate and free bitmaps.
18210         (execute_pre): Insert insns on edges before elimination.
18211
18212 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
18213
18214         * tree.c (initializer_zerop): Handle STRING_CST.
18215
18216 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
18217
18218         PR 40989
18219         * doc/invoke.texi (Wimplicit): Document as C only.
18220         * opts.c (common_handle_option): Add argument kind.
18221         (handle_option): Rename as read_cmdline_option. Factor out code to...
18222         (handle_option): ... here. New.
18223         (handle_options): Rename as read_cmdline_options.
18224         (decode_options): Update call.
18225         (set_option): Use option index instead of option pointer. Classify
18226         diagnostics correctly.
18227         (enable_warning_as_error): Call handle_option.
18228         * opts.h (set_option): Update declaration.
18229         (handle_option): Declare.
18230         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
18231         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
18232         * c-opts.c (set_Wimplicit): Delete.
18233         (c_family_lang_mask): New static constant.
18234         (c_common_handle_option): Add argument kind. Use handle_option
18235         instead of set_Wimplicit.
18236         (c_common_post_options): warn_implicit and warn_implicit_int
18237         are disabled by default.
18238         * c-common.c (warn_implicit): Do not define here.
18239         * c-common.h (warn_implicit): Do not declare here.
18240         (c_common_handle_option): Update declaration.
18241         * lto-opts.c (lto_reissue_options): Update call to set_option.
18242
18243 2010-05-06  Richard Guenther  <rguenther@suse.de>
18244
18245         PR tree-optimization/43571
18246         * domwalk.c (walk_dominator_tree): Walk the dominator
18247         sons in more optimal order.
18248
18249 2010-05-06  Richard Guenther  <rguenther@suse.de>
18250
18251         PR tree-optimization/43934
18252         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
18253         (stmt_cost): Likewise.
18254         (extract_true_false_args_from_phi): New helper.
18255         (determine_max_movement): For PHI nodes verify we can hoist them
18256         and compute their cost.
18257         (determine_invariantness_stmt): Handle PHI nodes.
18258         (move_computations_stmt): Likewise.  Hoist PHI nodes in
18259         if-converted form using COND_EXPRs.
18260         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
18261         (tree_ssa_lim): Likewise.
18262         * tree-flow.h (tree_ssa_lim): Adjust prototype.
18263         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
18264
18265 2010-05-06  Richard Guenther  <rguenther@suse.de>
18266
18267         PR tree-optimization/43987
18268         * tree-ssa-structalias.c (could_have_pointers): For possibly
18269         address-taken variables force pointers to be recorded.
18270         (create_variable_info_for_1): Likewise.
18271         (push_fields_onto_fieldstack): Pass in wheter all fields
18272         must have pointers.
18273         (find_func_aliases): Query types instead of vars whether
18274         they contain pointers where appropriate.
18275
18276 2010-05-06  Jan Hubicka  <jh@suse.cz>
18277
18278         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
18279         (record_reference, mark_address, mark_load, mark_store): Record
18280         references.
18281         (record_references_in_initializer): Update call of record_references.
18282         (rebuild_cgraph_edges): Remove all references before rebuiding.
18283         * cgraph.c (cgraph_create_node): Clear ref list.
18284         (cgraph_remove_node): Remove references.
18285         (dump_cgraph_node): Dump references.
18286         (cgraph_clone_node): Clone references.
18287         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
18288         (struct cgraph_node, varpool_node): Add ref_lst.
18289         * ipa-ref.c: New file.
18290         * ipa-ref.h: New file.
18291         * ipa-ref-inline.h: New file.
18292         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
18293         (referenced_from_other_partition_p): New function.
18294         (lto_output_varpool_node): Take set arugment; call
18295         referenced_from_other_partition.
18296         (lto_output_ref): New.
18297         (add_references): New.
18298         (output_refs): New.
18299         (output_cgraph): Compute boundary based on references; output refs.
18300         (output_varpool): Accept cgraph_node_set argument.
18301         (input_ref): New.
18302         (input_refs): New.
18303         (input_cgraph): Call input_refs.
18304         * lto-section-in.c (lto_section_name): Add refs.
18305         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
18306         (ipa-ref.o): New file.
18307         * varpool.c (varpool_node): Clear ipa ref list.
18308         (varpool_remove_node): Remove references.
18309         (dump_varpool_node): Dump references.
18310         (varpool_assemble_decl): Only compile finalized ones.
18311         (varpool_extra_name_alias): Initialize ref list.
18312         * lto-streamer.c (lto-get_section_name): Add .refs section.
18313         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
18314         (referenced_from_other_partition_p): Declared.
18315
18316 2010-05-06  Ira Rosen  <irar@il.ibm.com>
18317
18318         PR tree-optimization/43901
18319         * tree-vect-stmts.c (vectorizable_call): Assert that vector
18320         type is not NULL if it's transformation phase, and return
18321         FALSE if it's analysis.
18322         (vectorizable_conversion, vectorizable_operation,
18323         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
18324
18325 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
18326
18327         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18328         Delete.
18329         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
18330         New define.
18331         * config/mips/mips-protos.h
18332         (mips_small_register_classes_for_mode_p): Delete prototype.
18333
18334 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
18335
18336         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
18337         * config/arm/arm.c (multiple_operation_profitable_p,
18338         compute_offset_order): New static functions.
18339         (load_multiple_sequence, store_multiple_sequence): Use them.
18340         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
18341         memory offsets, not register numbers.
18342         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
18343
18344 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
18345
18346         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
18347         (get_pending_sizes, put_pending_size, put_pending_sizes):
18348         Update the uses of pending_sizes.
18349         * c-decl.c (store_parm_decls): Likewise.
18350         * c-tree.h (struct c_arg_info): Likewise.
18351         * tree.h: Update the prototype for get_pending_sizes and
18352         put_pending_sizes.
18353
18354 2010-05-05  Jason Merrill  <jason@redhat.com>
18355
18356         PR debug/43370
18357         * c-common.c (handle_aligned_attribute): Respect
18358         ATTR_FLAG_TYPE_IN_PLACE.
18359
18360         PR testsuite/43758
18361         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
18362         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18363         (TARGET_INITIALIZER): Use it.
18364         * c-common.c (attribute_takes_identifier_p): Call it.
18365         * c-common.h: Update prototype.
18366         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
18367         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18368
18369 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18370
18371         PR debug/43950
18372         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
18373         DW_ID_down_case for Fortran compilation units.
18374
18375 2010-05-05  Jan Hubicka  <jh@suse.cz>
18376
18377         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
18378         handle aliases.
18379
18380 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
18381
18382         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
18383         a variable-sized RESULT_DECL.
18384
18385 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
18386
18387         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
18388
18389 2010-05-05  Jason Merrill  <jason@redhat.com>
18390
18391         PR c++/43787
18392         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
18393         returns GS_OK.
18394         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
18395
18396 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
18397             Jakub Jelinek  <jakub@redhat.com>
18398
18399         PR debug/43478
18400         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
18401         (dead_debug_init, dead_debug_finish): New functions.
18402         (dead_debug_add, dead_debug_insert_before): Likewise.
18403         (df_note_bb_compute): Initialize a dead_debug object, add dead
18404         debug uses to it, insert debug bind insns before death insns,
18405         reset debug insns that refer to pending uses at the end.
18406         * rtl.h (make_debug_expr_from_rtl): New prototype.
18407         * varasm.c (make_debug_expr_from_rtl): New function.
18408
18409 2010-05-05  Jan Hubicka  <jh@suse.cz>
18410
18411         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
18412         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
18413         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
18414         lto_varpool_encoder_deref, lto_varpool_encoder_size,
18415         lto_varpool_encoder_encode_initializer_p,
18416         lto_set_varpool_encoder_encode_initializer): New functions.
18417         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
18418         call output_varpool.
18419         (input_varpool_node): Do not always set analyzed.
18420         (input_cgraph_1): Return vector of cgraph nodes.
18421         (input_varpool_1): Return vector of varpools.
18422         (input_cgraph): Free the vectors.
18423         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
18424         output only initializers needed.
18425         (lto_output): Only call output_cgraph.
18426         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
18427         * lto-section-out.c (lto_new_out_decl_state): Initialize
18428         state->varpool_node_encoder.
18429         * lto-streamer.h (lto_varpool_encoder_d): New.
18430         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
18431         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
18432         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
18433         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
18434         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
18435         Declare.
18436         (output_varpool, input_varpool): Remove declarations.
18437
18438 2010-05-05  Jan Hubicka  <jh@suse.cz>
18439
18440         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
18441         with body can prevail.
18442
18443 2010-05-05  Jan Hubicka  <jh@suse.cz>
18444
18445         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
18446         size.
18447
18448 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18449
18450         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
18451
18452         * gengtype.h (erro_at_line): Constify pos argument.
18453
18454         * gengtype.c: Include hashtab.h.
18455         (enum gc_used): Document GC_MAYBE_POINTED_TO.
18456         (error_at_line): Constify pos argument.
18457         (do_typedef): Initialize p->opt field.
18458         (get_file_gtfilename): Fix comment typo.
18459         (struct walk_type_data): Constify line field.
18460         (get_output_file_for_structure): New function.
18461         (write_local_func_for_structure): Constify orig_s argument.
18462         Use get_output_file_for_structure.
18463         (write_func_for_structure): Use get_output_file_for_structure.
18464         (INDENT): New define.
18465         (dump_pair, dump_type, dump_type_list, dump_typekind)
18466         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
18467         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
18468         functions.
18469         (seen_types): New variable.
18470         (main): New variable do_dump.  Process "-d" command line option.
18471         Call dump_everything if dump requested.
18472
18473 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
18474
18475         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
18476         in a temporary instead of invoking the macro multiple times.
18477         (track_expr_p): Likewise.
18478
18479 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
18480
18481         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
18482         per new semantics.
18483         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
18484         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
18485         conditions for printing notes.
18486         * common.opt (-Wcoverage-mismatch): Allow negative, default to
18487         true, update documentation.
18488         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
18489
18490 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
18491
18492         PR c/43981
18493         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
18494         on dimen.
18495
18496 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18497
18498         PR target/43799
18499         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
18500         (*sse_prologue_save_insn1): Likewise.
18501         (SSE prologue save splitter): Likewise.
18502
18503 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
18504
18505         * tree.c (free_lang_data_in_one_sizepos): New inline function.
18506         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
18507         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
18508         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
18509         all decls.  Call it on DECL_FIELD_OFFSET of fields.
18510         (find_decls_types_r): Follow DECL_VALUE_EXPR.
18511         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
18512
18513 2010-05-04  Martin Jambor  <mjambor@suse.cz>
18514
18515         * tree-sra.c (build_access_from_expr_1): The first parameter type
18516         changed to simple tree.
18517         (build_access_from_expr): Likewise, gsi parameter was eliminated.
18518         (scan_assign_result): Renamed to assignment_mod_result, enum elements
18519         renamed as well.
18520         (build_accesses_from_assign): Removed all parameters except for a
18521         simple gimple statement.  Now returns a simple bool.
18522         (scan_function): All non-analysis parts moved to separate functions
18523         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
18524         parameters and updated both callers.
18525         (sra_modify_expr): Removed parameter data.
18526         (sra_modify_function_body): New function.
18527         (perform_intra_sra): Call sra_modify_function_body to modify the
18528         function body.
18529         (replace_removed_params_ssa_names): Parameter data changed into
18530         adjustments vector.
18531         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
18532         changed the parameter dont_convert to convert with the opposite
18533         meaning.
18534         (sra_ipa_modify_assign): Parameter data changed into adjustments
18535         vector, return value changed to bool.
18536         (ipa_sra_modify_function_body): New function.
18537         (sra_ipa_reset_debug_stmts): Updated a comment.
18538         (modify_function): Use ipa_sra_modify_function_body to modify function
18539         body.
18540
18541 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
18542
18543         PR middle-end/43671
18544         * alias.c (true_dependence): Handle the same VALUE in x and mem.
18545         (canon_true_dependence): Likewise.
18546         (write_dependence_p): Likewise.
18547
18548 2010-05-04  Jan Hubicka  <jh@suse.cz>
18549
18550         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
18551         * cgraphbuild.c: Include ipa-utils.h
18552         (record_reference_ctx): New struct.
18553         (record_reference): Simplify to work on initializers; not statements.
18554         (mark_address, mark_load, mark_store): New.
18555         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18556         walk PHI nodes too.
18557         (record_references_in_initializer): Update use of record_reference.
18558         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
18559         walk PHI nodes too.
18560
18561 2010-05-04  Jan Hubicka  <jh@suse.cz>
18562
18563         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
18564         node will be removed anyway.
18565         (lto_varpool_replace_node): Allow also unanalyzed nodes;
18566         relink aliases of node into prevailing node.
18567         * varpool.c (varpool_remove_node): Remove aliases properly;
18568         when removing node, remove all its aliases too; remove DECL_INITIAL
18569         of removed node; ggc_free the varpool node.
18570
18571 2010-05-04  Richard Guenther  <rguenther@suse.de>
18572
18573         PR tree-optimization/43879
18574         * tree-ssa-structalias.c (alias_get_name): Use
18575         DECL_ASSEMBLER_NAME if available.
18576         (create_function_info_for): Return the varinfo node.
18577         (ipa_pta_execute): Associate same-body aliases and extra names
18578         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
18579
18580 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
18581
18582         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
18583
18584 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
18585
18586         PR bootstrap/43964
18587         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
18588         only if HONOR_REG_ALLOC_ORDER is not defined.
18589
18590 2010-05-04  Richard Guenther  <rguenther@suse.de>
18591
18592         PR tree-optimization/43949
18593         * tree-vrp.c (extract_range_from_binary_expr): Only handle
18594         TRUNC_MOD_EXPR.
18595
18596 2010-04-26  Jason Merrill  <jason@redhat.com>
18597
18598         * c.opt (-fstrict-enums): New.
18599         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
18600
18601 2010-05-03  David Ung  <davidu@mips.com>
18602             James E. Wilson  <wilson@codesourcery.com>
18603
18604         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
18605         emit the trap instruction before the divide for TUNE_74K.
18606
18607 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
18608
18609         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
18610         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
18611         based on the above, for new target hook.
18612
18613         * hooks.c (hook_bool_mode_true): New generic hook.
18614         * hooks.h (hook_bool_mode_true): Add prototype.
18615
18616         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
18617         target hook.
18618         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
18619         target hook, set to hook_bool_mode_false.
18620         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
18621         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
18622         with targetm.small_register_classes_for_mode_p.
18623         (find_reusable_reload): Likewise.
18624         (combine_reloads): Likewise.
18625         * reload1.c (reload_as_needed): Likewise.
18626         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
18627         * ifcvt.c (noce_process_if_block, check_cond_move_block,
18628         dead_or_predicable): Likewise.
18629         * regmove.c (optimize_reg_copy_1): Likewise.
18630         * calls.c (prepare_call_address): Likewise.
18631         (precompute_register_parameters): Likewise.
18632
18633         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
18634         hook definition.
18635         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
18636         implementation of the hook that considers all register classes
18637         small except for SH64.
18638         (sh_override_options): Use the new hook.
18639         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
18640         Add prototype.
18641
18642         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
18643         hook definition.
18644         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
18645         implementation of the hook that considers all register classes
18646         small for THUMB1.
18647         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
18648         Add prototype.
18649
18650         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
18651         hook definition.
18652         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
18653         implementation of the hook that considers all register classes
18654         small for MIPS16.
18655         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
18656         Add prototype.
18657
18658         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
18659         hook definition.
18660         * config/m32c/m32c.h: Likewise.
18661         * config/pdp11/pdp11.h: Likewise.
18662         * config/avr/avr.h: Likewise.
18663         * config/xtensa/xtensa.h: Likewise.
18664         * config/m68hc11/m68hc11.h: Likewise.
18665         * config/mn10300/mn10300.h: Likewise.
18666         * config/mcore/mcore.h: Likewise.
18667         * config/h8300/h8300.h: Likewise.
18668         * config/bfin/bfin.h: Likewise.
18669
18670         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
18671         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
18672
18673 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
18674
18675         * double-int.h (tree_to_double_int): Remove macro.
18676         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
18677         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18678         (tree_to_double_int): New function.
18679         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
18680         Move ...
18681         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
18682
18683 2010-05-03  Richard Guenther  <rguenther@suse.de>
18684
18685         PR tree-optimization/43971
18686         * tree-ssa-structalias.c (get_constraint_for_1): Fix
18687         constraints in the !flag_delete_null_pointer_checks case.
18688
18689 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
18690
18691         PR debug/43972
18692         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
18693         result mode matches original rtl mode.
18694
18695 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
18696
18697         PR target/43888
18698         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
18699
18700 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18701
18702         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
18703         when processing flag options.
18704
18705 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18706
18707         * gcov-iov.c (main): Change format string placeholder
18708         from %#08x to 0x%08x.
18709         * genchecksum.c (dosum): Change format string placeholder
18710         from %#02x to 0x%02x.
18711
18712 2010-05-02  Richard Guenther  <rguenther@suse.de>
18713
18714         PR tree-optimization/43879
18715         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
18716
18717 2010-05-02  Bruno Haible  <bruno@clisp.org>
18718
18719         * doc/extend.texi (Function Attributes): Fix a typo.
18720
18721 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18722
18723         Revert:
18724         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
18725         placeholder from 0x%x to %#x.
18726         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18727         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
18728         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
18729         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
18730         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
18731         * config/i386/i386.c (ix86_target_string): Ditto.
18732         * config/i386/i386.c (output_pic_addr_const): Ditto.
18733         (print_operand): Ditto.
18734
18735 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
18736
18737         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
18738         placeholder from 0x%x to %#x.
18739         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
18740         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
18741         (ASM_OUTPUT_DEBUG_DATA): Ditto.
18742         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
18743         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
18744         * optc-gen.awk: Ditto.
18745         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
18746         (HOST_WIDE_INT_PRINT_HEX): Ditto.
18747         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
18748         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
18749
18750 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18751
18752         * target.h (struct calls): Add function_value_regno_p field.
18753         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
18754         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
18755         * targhooks.c (default_function_value_regno_p): New function.
18756         * targhooks.h (default_function_value_regno_p): Declare function.
18757         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
18758         * builtins.c. (apply_result_size): (Ditto.).
18759         * combine.c. (likely_spilled_retval_p): (Ditto.).
18760         * mode-switching.c. Include 'target.h'.
18761         (create_pre_exit): Use function_value_regno_p hook.
18762         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
18763         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
18764         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
18765
18766         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
18767         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
18768         (ix86_function_value_regno_p): Declare as static, change argument
18769         type to const unsigned int.
18770         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
18771
18772 2010-05-01  Richard Guenther  <rguenther@suse.de>
18773
18774         PR tree-optimization/43949
18775         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
18776         types.
18777         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
18778
18779 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
18780
18781         * rtl.h (CONST_DOUBLE_P): Define.
18782         (rtx_to_double_int): Declare.
18783         * emit-rtl.c (rtx_to_double_int): New function.
18784         * dwarf2out.c (insert_double): New function.
18785         (loc_descriptor, add_const_value_attribute): Clean up, use
18786         rtx_to_double_int and insert_double functions.
18787
18788 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
18789
18790         * doc/extend.texi (Inline): Add missing return keyword to examples.
18791         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
18792         "command-line".
18793
18794 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
18795
18796         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
18797         the variable part of the offset as well.  Use highest_pow2_factor for
18798         all alignment checks.
18799
18800 2010-04-30  Richard Guenther  <rguenther@suse.de>
18801
18802         PR tree-optimization/43879
18803         * tree-ssa-structalias.c (type_could_have_pointers): Functions
18804         can have pointers.
18805
18806 2010-04-30  Jan Hubicka  <jh@suse.cz>
18807
18808         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
18809         varpool.
18810         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
18811
18812 2010-04-30  Jan Hubicka  <jh@suse.cz>
18813
18814         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
18815         New.
18816         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
18817         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
18818         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
18819         cgraph_node_set_needs_ltrans_p): Remove.
18820
18821 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18822
18823         * sdbout.c: Include vec.h, do not include varray.h.
18824         (deferred_global_decls, sdbout_global_decl,
18825         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
18826         * toplev.c: Do not include varray.h.
18827         (dump_memory_report): Do not dump VARRAY statistics.
18828         * gengtype.c (open_base_file): Ignore varray.h.
18829         * Makefile.in: Update for abovementioned changes.
18830         Remove all traces of varray.c and varray.h.
18831         * varray.c: Remove file.
18832         * varray.h: Remove file.
18833
18834 2010-04-30  Jan Hubicka  <jh@suse.cz>
18835
18836         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
18837         references.
18838
18839 2010-04-30  Jan Hubicka  <jh@suse.cz>
18840
18841         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
18842         needed.
18843
18844 2010-04-30  Richard Guenther  <rguenther@suse.de>
18845
18846         * tree-ssa-structalias.c (get_constraint_for_1): Generate
18847         constraints for CONSTRUCTOR.
18848
18849 2010-04-30  Richard Guenther  <rguenther@suse.de>
18850
18851         PR lto/43946
18852         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
18853         first after all lowering passes.
18854
18855 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
18856
18857         * toplev.c: Include varray.h for statistics dumping.
18858         * tree.h: Do not declare varray_head_tag.
18859         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
18860         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
18861         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
18862         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
18863         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
18864         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
18865         c-common.c, c-common.h, reg-stack.c, basic-block.h,
18866         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
18867         include varray.h.
18868         * Makefile.in: Update for abovementioned changes.
18869
18870 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
18871
18872         PR debug/43942
18873         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
18874
18875 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18876
18877         * config/picochip/picochip.c (picochip_legitimize_address): Define.
18878         Use this function to do machine-specific conversion.
18879         (picochip_legitimize_reload_address): Likewise.
18880         (picochip_legitimate_address_p): Check valid base register only if
18881         strict.
18882         (picochip_check_conditional_copy): Check for modw only if opnd is
18883         register.
18884         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
18885         to call the function in c.
18886         * config/picochip/picochip-protos.h
18887         (picochip_legitimize_reload_address): Define.
18888         * config/picochip/picochip.md (supported_compare1): Define.
18889
18890 2010-04-30  Jan Hubicka  <jh@suse.cz>
18891
18892         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
18893         (cgraph_global_info): Remove inlined.
18894         (LTO_cgraph_tag_names): Remove.
18895         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
18896         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
18897         simplify cgraph tags and document.
18898         (lto_output_node): Use only LTO_cgraph_unavail_node and
18899         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
18900         for_functions_valid, global info, process and output flags.
18901         (input_overwrite_node): Initialize estimated stack size and
18902         estimated growth.  Do not read flags we no longer store.
18903         (input_node): Likewise do not read info no longer stored.
18904         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
18905         flag.
18906
18907 2010-04-30  Richard Guenther  <rguenther@suse.de>
18908
18909         PR tree-optimization/43879
18910         * tree-ssa-structalias.c (get_constraint_for_1): Properly
18911         handle non-zero initializers.
18912
18913 2010-04-30  Richard Guenther  <rguenther@suse.de>
18914
18915         * builtins.c (fold_builtin_1): Delete free (0).
18916
18917 2010-04-29  Jan Hubicka  <jh@suse.cz>
18918
18919         * gengtype.c (open_base_files): Add lto-streamer.h
18920         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
18921         (pass_ipa_cp): GGC collect.
18922         * toplev. (compile_file): Do not output symbols.
18923         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
18924         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
18925         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
18926         * lto-section-in.c: Include ggc.h
18927         (lto_new_in_decl_state): Alloc in GGC.
18928         (lto_delete_in_decl_state): Likewise.
18929         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
18930         Collect.
18931
18932 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18933
18934         PR target/42895
18935         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
18936         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
18937         (HONOR_REG_ALLOC_ORDER): Describe new macro.
18938         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
18939         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
18940         account only if HONOR_REG_ALLOC_ORDER is not defined.
18941         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
18942         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
18943
18944 2010-04-29  Jon Grant  <04@jguk.org>
18945
18946         * collect2.c (vflag): Change type from int to bool.
18947         (debug): Likewise.
18948         (helpflag): New global bool.
18949         (main): Set vflag and debug with boolean, not integer truth values.
18950         Accept new "--help" option and output usage text if found.
18951         * collect2.h (vflag): Update prototype.
18952         (debug): Likewise.
18953
18954 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18955
18956         PR bootstrap/43936
18957         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
18958
18959 2010-04-29  Richard Guenther  <rguenther@suse.de>
18960
18961         PR bootstrap/43935
18962         * plugin.h (invoke_plugin_callbacks): Annotate arguments
18963         with ATTRIBUTE_UNUSED.
18964
18965 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
18966
18967         PR target/43921
18968         * config/i386/i386.c (get_some_local_dynamic_name): Replace
18969         INSN_P with NONDEBUG_INSN_P.
18970         (distance_non_agu_define): Likewise.
18971         (distance_agu_use): Likewise.
18972
18973 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
18974
18975         From Dominique d'Humieres  <dominiq@lps.ens.fr>
18976         PR bootstrap/43858
18977         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
18978         test_set.
18979
18980 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
18981
18982         * plugin.h (invoke_plugin_callbacks): New inline function.
18983         * plugin.c (flag_plugin_added): New global flag.
18984         (add_new_plugin): Initialize above flag.
18985         (invoke_plugin_callbacks): Rename to ...
18986         (invoke_plugin_callbacks_full): ... this.
18987
18988 2010-04-28  Jan Hubicka  <jh@suse.cz>
18989
18990         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
18991         (lto_varpool_replace_node): New.
18992         (lto_symtab_resolve_symbols): Resolve varpool nodes.
18993         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
18994         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
18995         * cgraph.h (varpool_node_ptr): New type.
18996         (varpool_node_ptr): New vector.
18997         (varpool_node_set_def): New structure.
18998         (varpool_node_set): New type.
18999         (varpool_node_set): New vector.
19000         (varpool_node_set_element_def): New structure.
19001         (varpool_node_set_element, const_varpool_node_set_element): New types.
19002         (varpool_node_set_iterator): New type.
19003         (varpool_node): Add prev pointers, add used_from_other_partition,
19004         in_other_partition.
19005         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
19006         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
19007         varpool_get_node, varpool_remove_node): Declare.
19008         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
19009         varpool_node_set_size): New inlines.
19010         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
19011         * tree-pass.h (varpool_node_set_def): Forward declare.
19012         (ipa_opt_pass_d): Summary writting takes vnode sets too.
19013         (ipa_write_optimization_summaries): Update prototype.
19014         * ipa-cp.c (ipcp_write_summary): Update.
19015         * ipa-reference.c (ipa_reference_write_summary): Update.
19016         * lto-cgraph.c (lto_output_varpool_node): New static function.
19017         (output_varpool): New function.
19018         (input_varpool_node): New static function.
19019         (input_varpool_1): New function.
19020         (input_cgraph): Input varpool.
19021         * ipa-pure-const.c (pure_const_write_summary): Update.
19022         * lto-streamer-out.c (lto_output): Update, output varpool too.
19023         (write_global_stream): Kill WPA hack.
19024         (produce_asm_for_decls): Update.
19025         (output_alias_pair_p): Handle variables.
19026         (output_unreferenced_globals): Output only needed partition of varpool.
19027         * ipa-inline.c (inline_write_summary): Update.
19028         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
19029         cgraph.
19030         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
19031         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
19032         varpool_node_set_new, varpool_node_set_add,
19033         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
19034         debug_varpool_node_set): New functions.
19035         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
19036         (execute_one_pass): Process new decls too.
19037         (ipa_write_summaries_2): Pass around vsets.
19038         (ipa_write_summaries_1): Likewise.
19039         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
19040         to add.
19041         (ipa_write_optimization_summaries_1): Pass around vsets.
19042         (ipa_write_optimization_summaries): Likewise.
19043         * varpool.c (varpool_get_node): New.
19044         (varpool_node): Update doubly linked lists.
19045         (varpool_remove_node): New.
19046         (dump_varpool_node): More dumping.
19047         (varpool_enqueue_needed_node): Update doubly linked lists.
19048         (decide_is_variable_needed): Kill ltrans hack.
19049         (varpool_finalize_decl): Kill lto hack.
19050         (varpool_assemble_decl): Skip decls in other partitions.
19051         (varpool_assemble_pending_decls): Update doubly linkes lists.
19052         (varpool_empty_needed_queue): Likewise.
19053         (varpool_extra_name_alias): Likewise.
19054         * lto-streamer.c (lto_get_section_name): Add vars section.
19055         * lto-streamer.h (lto_section_type): Update.
19056         (output_varpool, input_varpool): Declare.
19057
19058 2010-04-28  Mike Stump  <mikestump@comcast.net>
19059
19060         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
19061
19062 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19063
19064         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
19065         record or union type with RECORD_OR_UNION_TYPE_P predicate.
19066         (lto_input_ts_type_tree_pointers): Likewise.
19067         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
19068         (lto_output_ts_type_tree_pointers): Likewise.
19069
19070 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19071
19072         Uniquization of constants at the Tree level
19073         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
19074         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
19075         bit to the end.
19076         (tree_output_constant_def): Declare.
19077         * gimplify.c (gimplify_init_constructor): When using block copy, first
19078         uniquize the constant constructor on the RHS.
19079         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
19080         DECL_IN_CONSTANT_POOL flag.
19081         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
19082         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
19083         constant pool.
19084         (assemble_variable): Deal with symbols belonging to the tree constant
19085         pool.
19086         (get_constant_section): Add ALIGN parameter and simplify.
19087         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
19088         (assemble_constant_contents): Use the expression of the VAR_DECL.
19089         (output_constant_def_contents): Use the alignment of the VAR_DECL.
19090         (tree_output_constant_def): New global function.
19091         (mark_constant): Use the expression of the VAR_DECL.
19092         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
19093         its expression.
19094         (output_object_block): Likewise and assemble the expression.
19095
19096 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
19097
19098         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
19099         hash_tree, eq_tree): New tree hash table.
19100         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
19101         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
19102         lto_orig_address_remove): Reimplement.
19103
19104 2010-04-28  Xinliang David Li  <davidxl@google.com>
19105
19106         PR c/42643
19107         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
19108         (compute_uninit_opnds_pos): New function.
19109         (is_non_loop_exit_postdominating): New function.
19110         (compute_control_dep_chain): New function.
19111         (find_pdom): New function.
19112         (convert_control_dep_chain_into_preds): New function.
19113         (find_predicates): New function.
19114         (find_control_equiv_block): New function.
19115         (collect_phi_def_edges): New function.
19116         (find_def_preds): New function.
19117         (find_dom): New function.
19118         (dump_predicates): New function.
19119         (get_cmp_code): New function.
19120         (is_value_included_in): New function.
19121         (find_matching_predicate_in_rest_chains): New function.
19122         (use_pred_not_overlap_with_undef_path_pred): New function.
19123         (is_use_properly_guarded): New function.
19124         (normalize_cond_1): New function.
19125         (is_and_or_or): New function.
19126         (normalize_cond): New function.
19127         (is_gcond_subset_of): New function.
19128         (is_subset_of_any): New function.
19129         (is_or_set_subset_of): New function.
19130         (is_and_set_subset_of): New function.
19131         (is_norm_cond_subset_of): New function.
19132         (is_pred_expr_subset_of): New function.
19133         (is_pred_chain_subset_of): New function.
19134         (is_included_in): New function.
19135         (is_superset_of): New function.
19136         (find_uninit_use): New function.
19137         (warn_uninitialized_phi): New function.
19138         (compute_possibly_undefined_names): New function.
19139         (ssa_undefined_value_p): New function.
19140         (execute_late_warn_uninitialized): New function.
19141         * tree-ssa.c (ssa_undefined_value_p): Removed.
19142         (warn_uninit): Changed to extern.
19143         (warn_uninitialized_phi): Removed.
19144         (warn_uninitialized_vars): Changed to extern.
19145         (execute_late_warn_uninitialized): Removed
19146         * tree-flow.h: Add new prototypes.
19147         * timevar.def: Add new time variable.
19148         * Makefile.in: Add new build file.
19149
19150 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
19151
19152         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
19153         type if available.
19154
19155 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19156
19157         PR target/22224
19158         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
19159
19160 2010-04-28  Martin Jambor  <mjambor@suse.cz>
19161
19162         * cgraph.h (struct cgraph_node): New field indirect_calls.
19163         (struct cgraph_indirect_call_info): New type.
19164         (struct cgraph_edge): Removed field indirect_call. New fields
19165         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
19166         (cgraph_create_indirect_edge): Declare.
19167         (cgraph_make_edge_direct): Likewise.
19168         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
19169         * ipa-prop.h (struct ipa_param_call_note): Removed.
19170         (struct ipa_node_params): Removed field param_calls.
19171         (ipa_create_all_structures_for_iinln): Declare.
19172         * cgraph.c: Described indirect edges and uids in initial comment.
19173         (cgraph_add_edge_to_call_site_hash): New function.
19174         (cgraph_edge): Search also among the indirect edges, use
19175         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
19176         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
19177         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
19178         site hash.
19179         (initialize_inline_failed): Assign a reason to indirect edges.
19180         (cgraph_create_edge_1): New function.
19181         (cgraph_create_edge): Moved some functionality to
19182         cgraph_create_edge_1.
19183         (cgraph_create_indirect_edge): New function.
19184         (cgraph_edge_remove_callee): Add an assert checking for
19185         non-indirectness.
19186         (cgraph_edge_remove_caller): Special-case indirect edges.
19187         (cgraph_remove_edge): Likewise.
19188         (cgraph_set_edge_callee): New function.
19189         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
19190         (cgraph_make_edge_direct): New function.
19191         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
19192         the declaration of the call statement matches.
19193         (cgraph_node_remove_callees): Special-case indirect edges.
19194         (cgraph_clone_edge): Likewise.
19195         (cgraph_clone_node): Clone also the indirect edges.
19196         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
19197         indirect_call, dump count of indirect_calls edges.
19198         * ipa-prop.c (iinlining_processed_edges): New variable.
19199         (ipa_note_param_call): Create indirect edges instead of
19200         creating notes.  New parameter node.
19201         (ipa_analyze_call_uses): New parameter node, pass it on to
19202         ipa_note_param_call.
19203         (ipa_analyze_stmt_uses): Likewise.
19204         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
19205         (print_edge_addition_message): Work on edges rather than on notes.
19206         (update_call_notes_after_inlining): Likewise, renamed to
19207         update_indirect_edges_after_inlining.
19208         (ipa_create_all_structures_for_iinln): New function.
19209         (ipa_free_node_params_substructures): Do not free notes.
19210         (ipa_edge_duplication_hook): Propagate bits within
19211         iinlining_processed_edges bitmap.
19212         (ipa_node_duplication_hook): Do not duplicate notes.
19213         (free_all_ipa_structures_after_ipa_cp): Renamed to
19214         ipa_free_all_structures_after_ipa_cp.
19215         (free_all_ipa_structures_after_iinln): Renamed to
19216         ipa_free_all_structures_after_iinln.
19217         (ipa_write_param_call_note): Removed.
19218         (ipa_read_param_call_note): Removed.
19219         (ipa_write_indirect_edge_info): New function.
19220         (ipa_read_indirect_edge_info): Likewise.
19221         (ipa_write_node_info): Do not stream notes, do stream information
19222         in indirect edges.
19223         (ipa_read_node_info): Likewise.
19224         (lto_ipa_fixup_call_notes): Removed.
19225         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
19226         * ipa-inline.c (pass_ipa_inline): Likewise.
19227         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
19228         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
19229         * tree-inline.c (copy_bb): Removed an unnecessary double check for
19230         is_gimple_call.
19231         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
19232         edges.
19233         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
19234         (output_cgraph): Stream also indirect edges.
19235         (lto_output_edge): Added capability to stream indirect edges.
19236         (input_edge): Likewise.
19237         (input_cgraph_1): Likewise.
19238         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
19239         of indirect edges.
19240
19241 2010-04-28  Richard Guenther  <rguenther@suse.de>
19242
19243         PR tree-optimization/43879
19244         PR tree-optimization/43909
19245         * tree-ssa-structalias.c (struct variable_info): Add
19246         only_restrict_pointers flag.
19247         (new_var_info): Initialize it.  Increment stats.total_vars here.
19248         (create_function_info_for): Do not increment stats.total_vars here.
19249         (get_function_part_constraint): Fix build with C++.
19250         (insert_into_field_list): Remove.
19251         (push_fields_onto_fieldstack): Properly merge fields.
19252         (create_variable_info_for): Split and simplify.
19253         (create_variable_info_for_1): New piece.
19254         (intra_create_variable_infos): Properly make restrict constraints
19255         from parameters.
19256
19257 2010-04-28  Richard Guenther  <rguenther@suse.de>
19258
19259         PR c++/43880
19260         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
19261
19262 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19263             Jan Hubicka  <hubicka@ucw.cz>
19264
19265         * doc/invoke.texi (-Wsuggest-attribute=const,
19266         -Wsuggest-attribute=pure): Document.
19267         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
19268         (function_always_visible_to_compiler_p,
19269         suggest_attribute, warn_function_pure, warn_function_const):
19270         New functions.
19271         (check_call): Improve debug info.
19272         (analyze_function): Do not check availability.
19273         (add_new_function): Check availability.
19274         (propagate): Output warnings.
19275         (skip_function_for_local_pure_const): New function.
19276         (local_pure_const): Use it; output warnings.
19277         * common.opt (Wsuggest-attribute=const,
19278         Wsuggest-attribute=pure): New.
19279
19280 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19281
19282         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
19283         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
19284         or DW_CFA_def_cfa_offset{,_sf}.
19285
19286 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19287
19288         * tree.h: Fix truncated long macros.
19289
19290 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
19291
19292         * collect2.c (TARGET_64BIT): Redefine to target's default.
19293         * tlink.c: Likewise.
19294         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
19295         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
19296         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
19297         for underscoring __USER_LABEL_PREFIX__.
19298         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
19299         (SUB_LINK_ENTRY32): New.
19300         (SUB_LINK_ENTRY64): New.
19301         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
19302         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
19303         (SUB_LINK_ENTRY64): New.
19304         (SUB_LINK_ENTRY): New.
19305         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
19306         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
19307         x64 target is choosen.
19308         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
19309         * configure: Regenerated.
19310         * configure.ac (leading-mingw64-underscores): Option added.
19311
19312 2010-04-27  Jan Hubicka  <jh@suse.cz>
19313
19314         * doc/invoke.texi (-fipa-profile): Document.
19315         * opts.c (decode_options): Enable ipa-profile at -O1.
19316         * timevar.def (TV_IPA_PROFILE): Define.
19317         * common.opt (fipa-profile): Add.
19318         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
19319         flag for clones.
19320         (cgraph_propagate_frequency): Handle only local ones.
19321         * tree-pass.h (pass_ipa_profile): Declare.
19322         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
19323         (pass_ipa_profile): Use TV_IPA_PROFILE.
19324         * ipa.c (ipa_profile): New function.
19325         (gate_ipa_profile): Likewise.
19326         (pass_ipa_profile): New global variable.
19327         * passes.c (pass_ipa_profile): New.
19328
19329 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
19330
19331         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
19332
19333 2010-04-27  Martin Jambor  <mjambor@suse.cz>
19334
19335         PR middle-end/43812
19336         * ipa.c (dissolve_same_comdat_group_list): New function.
19337         (function_and_variable_visibility): Call
19338         dissolve_same_comdat_group_list when comdat group contains external or
19339         newly local nodes.
19340         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
19341         lists are circular and that they contain only DECL_ONE_ONLY nodes.
19342
19343 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
19344
19345         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
19346         (const_hash_1) <VECTOR_CST>: New case.
19347         (compare_constant) <VECTOR_CST>: Likewise.
19348         <ADDR_EXPR>: Deal with LABEL_REFs.
19349         (copy_constant) <VECTOR_CST>: New case.
19350
19351 2010-04-27  Jan Hubicka  <jh@suse.cz>
19352
19353         * cgraph.c (cgraph_propagate_frequency): New function.
19354         * cgraph.h (cgraph_propagate_frequency): Declare.
19355         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
19356         cgraph_propagate_frequency.
19357
19358 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
19359
19360         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
19361
19362 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
19363
19364         PR target/40657
19365         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
19366         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
19367         here to determine which regs to push and how much stack to reserve.
19368
19369 2010-04-27  Jie Zhang  <jie@codesourcery.com>
19370
19371         * doc/gimple.texi (gimple_statement_with_ops): Remove
19372         addresses_taken field.
19373         (gimple_statement_with_memory_ops): Likewise.
19374
19375 2010-04-27  Jan Hubicka  <jh@suse.cz>
19376
19377         * tree-inline.c (eni_inlining_weights): Remove.
19378         (estimate_num_insns): Special case more builtins.
19379
19380 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
19381
19382         PR c/32207
19383         * c-typeck.c (build_binary_op): Move forward check for comparison
19384         pointer with null pointer constant and adjust the diagnostic message.
19385
19386 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
19387
19388         PR lto/42776
19389         * configure.ac (gcc_cv_as_section_has_align): Set if installed
19390         binutils supports extended .section directive needed by LTO, or
19391         warn if older binutils found.
19392         (LTO_BINARY_READER): New AC_SUBST'd variable.
19393         (LTO_USE_LIBELF): Likewise.
19394         * config.gcc (lto_binary_reader): New target-specific configure
19395         variable.
19396         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
19397         (LTO_USE_LIBELF): Likewise.
19398         * configure: Regenerate.
19399
19400         * collect2.c (is_elf): Rename from this ...
19401         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
19402          object files in addition to ELF-formatted ones.
19403         (scan_prog_file): Caller updated.  Also allow for LTO info marker
19404         symbol to be prefixed or not by an extra underscore.
19405
19406         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
19407         * config/i386/winnt.c: Also #include lto-streamer.h
19408         (i386_pe_asm_named_section): Specify 1-byte section alignment for
19409         LTO named sections.
19410         (i386_pe_asm_output_aligned_decl_common): Add comment.
19411         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
19412
19413 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
19414
19415         PR target/43889
19416         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
19417         Add missing earlyclobber for second alternative.
19418
19419 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
19420
19421         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
19422         bits for artificial defs at the top of the block.
19423         * fwprop.c (single_def_use_enter_block): Don't call it.
19424
19425 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
19426
19427         PR 43715
19428         * configure.ac: Use "$gcc_cv_nm -g" on darwin
19429         instead of "$gcc_cv_objdump -T".
19430         Use "-undefined dynamic_lookup" on darwin.
19431         * configure: Regenerate.
19432
19433 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
19434
19435         PR c/43893
19436         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
19437
19438 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19439
19440         * c-parser.c (struct c_token): Move location field up.
19441         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
19442         (struct c_declspecs): Convert typespec_word, storage_class, and
19443         default_int_p into bitfields.
19444         (struct c_declarator): Move loc field up.
19445
19446 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
19447
19448         * cfgloop.h (struct loop): Move can_be_parallel field up.
19449         * ipa-prop.h (struct ip_node_params): Move bitfields up.
19450         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
19451         down.
19452         (struct iv_cand): Convert pos field into a bitfield.
19453         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
19454         field up.
19455         (struct _stmt_vec_info): Shuffle fields for better packing.
19456
19457 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19458
19459         * varasm.c (IN_NAMED_SECTION): Remove guard.
19460         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
19461         (IN_NAMED_SECTION_P): ...this.
19462         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
19463         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
19464
19465 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
19466
19467         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
19468         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
19469         of shadowing it.  Fix comments.
19470
19471 2010-04-26  Jan Hubicka  <jh@suse.cz>
19472
19473         * cgraph.c (cgraph_create_node): Set node frequency to normal.
19474         (cgraph_clone_node): Copy function frequency.
19475         * cgraph.h (node_frequency): New enum
19476         (struct cgraph_node): Add.
19477         * final.c (rest_of_clean_state): Update.
19478         * lto-cgraph.c (lto_output_node): Output node frequency.
19479         (input_overwrite_node): Input node frequency.
19480         * tre-ssa-loop-ivopts (computation_cost): Update.
19481         * lto-streamer-out.c (output_function): Do not output function
19482         frequency.
19483         * predict.c (maybe_hot_frequency_p): Update and handle functions
19484         executed once.
19485         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
19486         attribute lookup.
19487         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
19488         (compute_function_frequency): Set noreturn functions to be executed
19489         once.
19490         (choose_function_section): Update.
19491         * lto-streamer-in.c (input_function): Do not input function frequency.
19492         * function.c (allocate_struct_function): Do not initialize function
19493         frequency.
19494         * function.h (function_frequency): Remove.
19495         (struct function): Remove function frequency.
19496         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
19497         (try_update): Update.
19498         * tree-inline.c (initialize_cfun): Do not update function frequency.
19499         * passes.c (pass_init_dump_file): Update.
19500         * i386.c (ix86_compute_frame_layout): Update.
19501         (ix86_pad_returns): Update.
19502
19503 2010-04-26  Jie Zhang  <jie@codesourcery.com>
19504
19505         PR tree-optimization/43833
19506         * tree-vrp.c (range_int_cst_p): New.
19507         (range_int_cst_singleton_p): New.
19508         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
19509         when both operands are constants.  Use range_int_cst_p in
19510         BIT_IOR_EXPR case.
19511
19512 2010-04-26  Jan Hubicka  <jh@suse.cz>
19513
19514         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
19515
19516 2010-04-26  Richard Guenther  <rguenther@suse.de>
19517
19518         PR lto/43080
19519         * gimple.c (gimple_decl_printable_name): Deal gracefully
19520         with a NULL DECL_NAME.
19521
19522 2010-04-26  Richard Guenther  <rguenther@suse.de>
19523
19524         PR lto/42425
19525         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
19526         if emitting debug information and it is either a function
19527         or a namespace decl.
19528
19529 2010-04-26  Ira Rosen  <irar@il.ibm.com>
19530
19531         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
19532         determine if the statement is vectorizable, and a macro to access it.
19533         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19534         Skip statements that can't be vectorized. If the analysis fails,
19535         mark the statement as unvectorizable if vectorizing basic block.
19536         (vect_compute_data_refs_alignment): Likewise.
19537         (vect_verify_datarefs_alignment): Skip statements marked as
19538         unvectorizable. Add print.
19539         (vect_analyze_group_access): Skip statements that can't be
19540         vectorized. If the analysis fails, mark the statement as
19541         unvectorizable if vectorizing basic block.
19542         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
19543         * tree-vect-stmts.c (vectorizable_store): Fix the number of
19544         generated stmts for SLP.
19545         (new_stmt_vec_info): Initialize the new field.
19546         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
19547         statements marked as unvectorizable.
19548
19549 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
19550
19551         * c-common.c (flag_isoc1x): New.
19552         (flag_isoc99): Update comment.
19553         * c-common.h (flag_isoc1x): New.
19554         (flag_isoc99): Update comment.
19555         * c-cppbuiltin.c (builtin_define_float_constants): Also define
19556         __<type>_DECIMAL_DIG__.
19557         * c-opts.c (set_std_c1x): New.
19558         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
19559         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
19560         * c.opt (-std=c1x, -std=gnu1x): New options.
19561         * doc/cpp.texi: Mention -std=c1x.
19562         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
19563         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
19564         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
19565         * doc/standards.texi: Mention C1X.
19566         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
19567         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
19568         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
19569         Define for C1X.
19570
19571 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
19572
19573         * config/i386/gmon-sol2.c (_mcleanup): Change format string
19574         placeholder from 0x%x to %#x.
19575         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
19576         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
19577         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
19578         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
19579         * config/i386/i386.c (ix86_target_string): Ditto.
19580         (output_pic_addr_const): Ditto.
19581         (print_operand): Ditto.
19582
19583 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
19584
19585         * combine.c (find_split_point): Add third argument.  Use it
19586         to find nested multiply-accumulate instructions.  Adjust calls.
19587         (try_combine): Adjust call to find_split_point.
19588
19589 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
19590
19591         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
19592
19593 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
19594
19595         PR tree-optimization/41442
19596         * fold-const.c (merge_truthop_with_opposite_arm): New function.
19597         (fold_binary_loc): Call it.
19598
19599 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
19600
19601         * toplev.c (general_init): Set default for fdiagnostics-show-option.
19602         * opts.c (common_handle_option): Allow disabling it.
19603         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
19604
19605 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
19606
19607         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
19608         between modes if both types are integral.
19609
19610 2010-04-23  Richard Guenther  <rguenther@suse.de>
19611
19612         PR tree-optimization/43572
19613         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
19614
19615 2010-04-23  Richard Guenther  <rguenther@suse.de>
19616
19617         PR lto/43455
19618         * tree-inline.c (tree_can_inline_p): Also check compatibility
19619         of return types.
19620
19621 2010-04-23  Martin Jambor  <mjambor@suse.cz>
19622
19623         PR tree-optimization/43846
19624         * tree-sra.c (struct access): New flag grp_assignment_read.
19625         (build_accesses_from_assign): Set grp_assignment_read.
19626         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
19627         (enum mark_read_status): New type.
19628         (analyze_access_subtree): Propagate grp_assignment_read, create
19629         accesses also if both direct_read and root->grp_assignment_read.
19630
19631 2010-04-23  Martin Jambor  <mjambor@suse.cz>
19632
19633         PR middle-end/43835
19634         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
19635         function does not have type attributes.
19636
19637 2010-04-23  Richard Guenther  <rguenther@suse.de>
19638
19639         PR lto/42653
19640         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
19641         of FUNCTION_DECLs.
19642
19643 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19644
19645         * sese.h (create_if_region_on_edge): Remove.
19646
19647         * sese.c (create_if_region_on_edge): Make static.
19648
19649         * tree-inline.c: Do not include ggc.h.
19650
19651         * expr.c: Do not include ggc.h.
19652
19653         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
19654         dependencies.
19655
19656 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
19657
19658         PR target/43744
19659         * config/sh/sh.c (find_barrier): Don't emit a constant pool
19660         in the middle of insns for casesi_worker_2.
19661
19662 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
19663
19664         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
19665
19666 2010-04-22  Ira Rosen  <irar@il.ibm.com>
19667
19668         PR tree-optimization/43842
19669         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
19670         loop unrolling in update of exit phis. Fix comment.
19671         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
19672         least two reduction statements in the loop before starting SLP
19673         analysis.
19674
19675 2010-04-22  Nick Clifton  <nickc@redhat.com>
19676
19677         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
19678
19679 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
19680
19681         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
19682         to simplify a + ~a.
19683
19684 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19685
19686         * tree-parloops.c (loop_parallel_p): New argument
19687         parloop_obstack.  Pass it down.
19688         (parallelize_loops): New variable parloop_obstack.  Initialize it,
19689         pass it down, free it.
19690
19691         * tree-loop-linear.c (linear_transform_loops): Pass down
19692         lambda_obstack.
19693
19694         * tree-data-ref.h (lambda_compute_access_matrices): New argument
19695         of type struct obstack *.
19696
19697         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
19698         scratch_obstack.  Initialize it, pass down, free it.
19699
19700         * lambda.h (lambda_loop_new): Remove.
19701         (lambda_matrix_new, lambda_matrix_inverse)
19702         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
19703         argument of type struct obstack *.
19704
19705         * lambda-trans.c (lambda_trans_matrix_new): New argument
19706         lambda_obstack.  Pass it down, use obstack allocation for ret.
19707         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
19708         it down.
19709
19710         * lambda-mat.c (lambda_matrix_get_column)
19711         (lambda_matrix_project_to_null): Remove.
19712         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
19713         allocation for mat.
19714         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
19715         lambda_obstack.
19716
19717         * lambda-code.c (lambda_loop_new): New function.
19718         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
19719         (lambda_compute_auxillary_space, lambda_compute_target_space)
19720         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
19721         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
19722         (build_access_matrix): New argument lambda_obstack.  Use obstack
19723         allocation for am.
19724         (lambda_compute_step_signs, lambda_compute_access_matrices): New
19725         argument lambda_obstack.  Pass it down.
19726
19727 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19728
19729         * optabs.h (expand_widening_mult): Declare.
19730
19731 2010-04-22  Richard Guenther  <rguenther@suse.de>
19732
19733         PR tree-optimization/43845
19734         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
19735         lookup the CALL_EXPR function and arguments.
19736
19737 2010-04-22  Nick Clifton  <nickc@redhat.com>
19738
19739         * config/stormy16/stormy16.c
19740         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
19741         * config/stormy16/stormy16.h: Tidy up formatting.
19742         (DONT_USE_BUILTIN_SETJMP): Remove definition.
19743         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
19744         (ineqbranchsi): Delete pattern.
19745         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
19746         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
19747         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
19748         stormy16-lib2-ucmpsi2.c.
19749
19750 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19751
19752         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
19753         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
19754         extra set merge_set_noclobber, and use it to relax the final test
19755         slightly.
19756         * df.h (df_simulate_find_noclobber_defs): Declare.
19757         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
19758         conditional defs.
19759         (df_simulate_find_noclobber_defs): New function.
19760
19761 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
19762
19763         * config/i386/i386.md: Use {} around multi-line preparation statements.
19764
19765 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
19766
19767         * c-tree.h (push_init_level, pop_init_level, set_init_index)
19768         (process_init_element): New argument of type struct obstack *.
19769
19770         * c-typeck.c (push_init_level, pop_init_level, set_designator)
19771         (set_init_index, set_init_label, set_nonincremental_init)
19772         (set_nonincremental_init_from_string, find_init_member)
19773         (output_init_element, output_pending_init_elements)
19774         (process_init_element): New argument braced_init_obstack.  Pass it
19775         down.
19776         (push_range_stack, add_pending_init): New argument
19777         braced_init_obstack.  Use obstack allocation.
19778
19779         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
19780         braced_init_obstack.  Pass it down.
19781         (c_parser_braced_init): New variables ret, braced_init_obstack.
19782         Initialize obstack, pass it down and finally free it.
19783
19784 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
19785
19786         PR middle-end/29274
19787         * tree-pass.h (pass_optimize_widening_mul): Declare.
19788         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
19789         gate_optimize_widening_mul): New static functions.
19790         (pass_optimize_widening_mul): New.
19791         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
19792         <case MULT_EXPR>: Remove support for widening multiplies.
19793         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
19794         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
19795         simplify_gen_unary rather than directly building extensions.
19796         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
19797         WIDEN_MULT_EXPR.
19798         * expmed.c (expand_widening_mult): New function.
19799         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
19800
19801 2010-04-21  Jan Hubicka  <jh@suse.cz>
19802
19803         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
19804         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
19805         * lto-wpa-fixup.c: Remove.
19806         * Makefile.in (lto-wpa-fixup.o): Remove.
19807         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
19808         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
19809         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
19810
19811 2010-04-21  Jan Hubicka  <jh@suse.cz>
19812
19813         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
19814         add write_optimization_summary, read_optimization_summary.
19815         (ipa_write_summaries_of_cgraph_node_set): Remove.
19816         (ipa_write_optimization_summaries): Declare.
19817         (ipa_read_optimization_summaries): Declare.
19818         * ipa-cp.c (pass_ipa_cp): Update.
19819         * ipa-reference.c (pass_ipa_reference): Update.
19820         * ipa-pure-const.c (pass_ipa_pure_const): Update.
19821         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
19822         Update.
19823         * ipa-inline.c (pass_ipa_inline): Update.
19824         * ipa.c (pass_ipa_whole_program): Update.
19825         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
19826         * passes.c (ipa_write_summaries_1): Do not test wpa.
19827         (ipa_write_optimization_summaries_1): New.
19828         (ipa_write_optimization_summaries): New.
19829         (ipa_read_summaries): Do not test ltrans.
19830         (ipa_read_optimization_summaries_1): New.
19831         (ipa_read_optimization_summaries): New.
19832
19833 2010-04-21  Jan Hubicka  <jh@suse.cz>
19834
19835         * lto-cgraph.c (lto_output_node): Do not output comdat groups
19836         for boundary nodes.
19837         (output_cgraph): Do not arrange comdat groups for boundary nodes.
19838
19839 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19840
19841         PR debug/40040
19842         * dwarf2out.c (add_name_and_src_coords_attributes): Add
19843         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
19844
19845 2010-04-21  Jan Hubicka  <jh@suse.cz>
19846
19847         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
19848
19849 2010-04-21  Jan Hubicka  <jh@suse.cz>
19850
19851         * varpool.c (decide_is_variable_needed): Variable is always needed
19852         during ltrans.
19853
19854 2010-04-21  Jan Hubicka  <jh@suse.cz>
19855
19856         * opts.c (decode_options): Enable pure-const pass for whopr.
19857
19858 2010-04-21  Jan Hubicka  <jh@suse.cz>
19859
19860         * cgraph.c (dump_cgraph_node): Dump also assembler name.
19861         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
19862         at WPA dumping.
19863         (cgraph_decide_inlining): Do not expect callee to be removed in all
19864         cases.
19865
19866 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
19867
19868         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
19869
19870 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19871
19872         * config/i386/i386.md (x86_shrd): Add athlon_decode and
19873         amdfam10_decode attributes.
19874
19875 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19876
19877         PR middle-end/43570
19878         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
19879         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
19880         (lower_copyprivate_clauses): Use private var in outer
19881         context instead of original var.  Make sure the types
19882         are correct for VLAs.
19883
19884 2010-04-21  Richard Guenther  <rguenther@suse.de>
19885
19886         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
19887         to non-pointer objects.
19888
19889 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
19890
19891         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
19892         last chain entry if it starts with the still current label.
19893         (add_location_or_const_value_attribute): Check that
19894         loc_list->first->next is NULL instead of comparing ->first with ->last.
19895         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
19896         to add_var_loc_to_decl.
19897
19898         * dwarf2out.c (output_call_frame_info): For dw_cie_version
19899         >= 4 add also address size and segment size fields into CIE header.
19900
19901         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
19902         long as address size is the same as sizeof (void *) and
19903         segment size is 0.
19904         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
19905         address size or segment size is unexpected, return DW_EH_PE_omit.
19906         (classify_object_over_fdes): If get_cie_encoding returned
19907         DW_EH_PE_omit, return -1.
19908         (init_object): If classify_object_over_fdes returned -1,
19909         pretend there were no FDEs at all.
19910
19911 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
19912
19913         * config/i386/i386.md (bswap<mode>2): Macroize expander from
19914         bswap{si,di}2 using SWI48 mode iterator.
19915         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
19916         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
19917         set modrm attribute of bswap insn to 0 and remove length attribute.
19918         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
19919         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
19920         set mode attribute to <MODE> and remove length attribute.
19921
19922 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
19923
19924         PR rtl-optimization/43520
19925         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
19926         zero available registers.
19927
19928 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19929
19930         * builtins.c (fold_builtin_cproj): Fold more cases.
19931
19932 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19933
19934         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
19935         (fold_builtin_1): Fold builtin cproj.
19936         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
19937         Use ATTR_CONST_NOTHROW_LIST.
19938
19939 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
19940
19941         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
19942         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
19943         ffsi2_no_cmove for !TARGET_CMOVE.
19944         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
19945         (ffssi2): Remove expander.
19946         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
19947         mode iterator.
19948         (ctz<mode>2): Ditto from ctz{si,di}2.
19949         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
19950         mode iterator.
19951         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
19952         mode iterator.
19953
19954 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
19955
19956         * dwarf2out.c (AT_linkage_name): Define.
19957         (clone_as_declaration): Handle DW_AT_linkage_name.
19958         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
19959         of DW_AT_MIPS_linkage_name.
19960         (move_linkage_attr): Likewise.
19961         (dwarf2out_finish): Likewise.
19962
19963 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
19964
19965         PR middle-end/41952
19966         * fold-const.c (fold_comparison): New folding rule.
19967
19968 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
19969
19970         * double-int.h (double_int_setbit): Declare.
19971         * double-int.c (double_int_setbit): New function.
19972         * rtl.h (immed_double_int_const): Declare.
19973         * emit-rtl.c (immed_double_int_const): New function.
19974         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
19975         and immed_double_int_const functions.
19976         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
19977         expand_copysign_bit): (Ditto.).
19978         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
19979         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
19980         * dojump.c (prefer_and_bit_test): (Ditto.).
19981         * expr.c (convert_modes, reduce_to_bit_field_precision,
19982         const_vector_from_tree): (Ditto.).
19983         * expmed.c (mask_rtx, lshift_value): (Ditto.).
19984
19985 2010-04-20  Jan Hubicka  <jh@suse.cz>
19986
19987         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
19988         (dump_cgraph_node): Dump new flags.
19989         * cgraph.h (struct cgraph_node): Add flags
19990         reachable_from_other_partition and in_other_partition.
19991         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
19992         other partition can not be removed.
19993         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
19994         the other partition must be output; silence sanity checking on
19995         leaking functions bodies from other paritition.
19996         * lto-cgraph.c (reachable_from_other_partition_p): New function.
19997         (lto_output_node): Output new flags; do not sanity check that inline
19998         clones are output; drop lto_forced_extern_inline_p code; do not mock
19999         visibility flags at partition boundaries.
20000         (add_node_to): New function.
20001         (output_cgraph): Use it to sort functions so masters appear before
20002         clones.
20003         (input_overwrite_node): Input new flags.
20004         * passes.c (ipa_write_summaries): Do not call
20005         lto_new_extern_inline_states.
20006         * lto-section-out.c (forced_extern_inline,
20007         lto_new_extern_inline_states lto_delete_extern_inline_states,
20008         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
20009         * lto-streamer.h (lto_new_extern_inline_states,
20010         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
20011         lto_forced_extern_inline_p): Kill.
20012
20013 2010-04-20  Richard Guenther  <rguenther@suse.de>
20014
20015         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
20016         from vars that can have pointers.
20017         (process_constraint): Dump useless constraints.
20018
20019 2010-04-20  Richard Guenther  <rguenther@suse.de>
20020
20021         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
20022         (dump_sa_points_to_info): Remove asserts.
20023         (init_base_vars): nothing_id isn't an escape point nor does it
20024         have pointers.
20025
20026 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
20027
20028         * tree.h (TYPE_REF_IS_RVALUE): Define.
20029         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
20030         should_move_die_to_comdat, prune_unused_types_walk): Handle
20031         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
20032         (modified_type_die, gen_reference_type_die): Emit
20033         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
20034         if TYPE_REF_IS_RVALUE and -gdwarf-4.
20035
20036 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20037
20038         PR target/43635
20039         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
20040         calls for -fpic -m31 if they have been sibcall optimized.
20041
20042 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
20043
20044         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
20045         ar.lc fixed and call-used.
20046
20047         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
20048
20049 2010-04-19  Jan Hubicka  <jh@suse.cz>
20050
20051         * opts.c (decode_options): Disable whpr incompatible passes.
20052         * lto/lto.c (lto_1_to_1_map): Skip clones.
20053         (read_cgraph_and_symbols): Do not mark everything as needed.
20054         (do_whole_program_analysis): Do map only after optimizing;
20055         set proper cgraph_state; use passmanager.
20056
20057 2010-04-19  DJ Delorie  <dj@redhat.com>
20058
20059         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
20060         POINTER_PLUS_EXPR and fix them.
20061
20062 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
20063
20064         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
20065         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
20066         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
20067         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
20068         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
20069         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
20070         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
20071         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
20072         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
20073         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
20074         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
20075
20076 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
20077
20078         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
20079         (check_cond_move_block): Likewise.
20080         (cond_move_process_if_block): Likewise.
20081         (noce_find_if_block): Improve formatting.
20082         (find_if_header): Pass 0 to memset and tweak conditions.
20083         (cond_exec_find_if_block): Fix long lines and tweak conditions.
20084
20085 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
20086
20087         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
20088         for -gdwarf-4.
20089
20090         PR middle-end/43337
20091         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
20092         with non-local decl doesn't need chain.
20093
20094 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
20095
20096         * ira-color.c (allocno_reload_assign): Avoid accumulating
20097         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
20098
20099 2010-04-19  Martin Jambor  <mjambor@suse.cz>
20100
20101         * gimple.h (create_tmp_reg): Declare.
20102         * gimplify.c (create_tmp_reg): New function.
20103         (gimplify_return_expr): Use create_tmp_reg.
20104         (gimplify_omp_atomic): Likewise.
20105         (gimple_regimplify_operands): Likewise.
20106         * tree-dfa.c (make_rename_temp): Likewise.
20107         * tree-predcom.c (predcom_tmp_var): Likewise.
20108         (reassociate_to_the_same_stmt): Likewise.
20109         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
20110         (get_replaced_param_substitute): Likewise.
20111         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
20112         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
20113         * tree-ssa-pre.c (get_representative_for): Likewise.
20114         (create_expression_by_pieces): Likewise.
20115         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
20116         (create_tailcall_accumulator): Likewise.
20117
20118 2010-04-19  Martin Jambor  <mjambor@suse.cz>
20119
20120         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
20121         new_stmt.
20122         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
20123
20124 2010-04-19  Richard Guenther  <rguenther@suse.de>
20125
20126         PR tree-optimization/43796
20127         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
20128         from SCEV in the lattice.
20129         (vrp_visit_phi_node): Dump change.
20130
20131 2010-04-19  Richard Guenther  <rguenther@suse.de>
20132
20133         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
20134         * configure: Re-generated.
20135
20136 2010-04-19  Richard Guenther  <rguenther@suse.de>
20137
20138         PR tree-optimization/43783
20139         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
20140         constant ARRAY_REF operands two and three if possible.
20141
20142 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
20143
20144         PR target/43766
20145         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
20146
20147 2010-04-19  Jie Zhang  <jie@codesourcery.com>
20148
20149         PR target/43662
20150         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
20151
20152 2010-04-19  Ira Rosen  <irar@il.ibm.com>
20153
20154         PR tree-optimization/37027
20155         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
20156         and macro to access it.
20157         (vectorizable_reduction): Add argument.
20158         (vect_get_slp_defs): Likewise.
20159         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
20160         statements for possible use in SLP.
20161         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
20162         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
20163         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
20164         add new argument.
20165         (vectorizable_reduction): Likewise.
20166         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
20167         vect_get_slp_defs.
20168         (vectorizable_type_demotion, vectorizable_type_promotion,
20169         vectorizable_store): Likewise.
20170         (vect_analyze_stmt): Update call to vectorizable_reduction.
20171         (vect_transform_stmt): Likewise.
20172         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
20173         (vect_build_slp_tree): Fix indentation. Check that there are no loads
20174         from different interleaving chains in same node.
20175         (vect_slp_rearrange_stmts): New function.
20176         (vect_supported_load_permutation_p): Allow load permutations for
20177         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
20178         inside SLP nodes if necessary.
20179         (vect_analyze_slp_instance): Handle reductions.
20180         (vect_analyze_slp): Try to build SLP instances originating from groups
20181         of reductions.
20182         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
20183         (vect_get_constant_vectors): Create initial vectors for reductions
20184         according to reduction code. Add new argument.
20185         (vect_get_slp_defs): Add new argument, pass it to
20186         vect_get_constant_vectors.
20187         (vect_schedule_slp_instance): Remove SLP tree root statements.
20188
20189 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
20190
20191         * tree.h (ENUM_IS_SCOPED): Define.
20192         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
20193         for ENUM_IS_SCOPED enums.
20194
20195 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
20196
20197         * fold-const.c (fold_comparison): Use ssizetype.
20198         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
20199         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
20200         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
20201         * tree-object-size.c (compute_object_sizes): Use size_type_node.
20202
20203         * tree.h (initialize_sizetypes): Remove parameter.
20204         (build_common_tree_nodes): Remove second parameter.
20205         * stor-layout.c (initialize_sizetypes): Remove parameter.
20206         Always create an unsigned type.
20207         (set_sizetype): Assert that the passed type is unsigned and simplify.
20208         * tree.c (build_common_tree_nodes): Remove second parameter.
20209         Adjust call to initialize_sizetypes.
20210         * c-decl.c (c_init_decl_processing): Remove second argument in call to
20211         build_common_tree_nodes.
20212
20213 2010-04-18  Matthias Klose  <doko@ubuntu.com>
20214
20215         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
20216
20217 2010-04-18  Ira Rosen  <irar@il.ibm.com>
20218
20219         PR tree-optimization/43771
20220         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
20221         load permutation doesn't have gaps.
20222
20223 2010-04-18  Jan Hubicka  <jh@suse.cz>
20224
20225         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
20226         (sse_prologue_save_insn expander): Use new pattern.
20227         (sse_prologue_save_insn1): New pattern and splitter.
20228         (sse_prologue_save_insn): Update to deal also with 64bit aligned
20229         blocks.
20230         * i386.c (setup_incoming_varargs_64): Do not compute jump
20231         destination here.
20232         (ix86_gimplify_va_arg): Update alignment needed.
20233         (ix86_local_alignment): Do not align all local arrays to 128bit.
20234
20235 2010-04-17  Jan Hubicka  <jh@suse.cz>
20236
20237         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
20238
20239 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20240
20241         * arm.md (negdi2): Remove redundant code to force values into a
20242         register.
20243
20244 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20245
20246         * arm/bpabi.S: Add EABI alignment attributes to objects.
20247         * arm/bpabi-v6m.S: Likewise.
20248         * arm/crti.asm: Likewise.
20249         * arm/crtn.asm: Likewise.
20250         * arm/lib1funcs.asm: Likewise.
20251         * arm/libunwind.S: Likewise.
20252
20253 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
20254
20255         * arm-protos.h (tune_params): New structure.
20256         * arm.c (current_tune): New variable.
20257         (arm_constant_limit): Delete.
20258         (struct processors): Add pointer to the tune parameters.
20259         (arm_slowmul_tune): New tuning option.
20260         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
20261         (all_cores): Adjust to pick up the tuning model.
20262         (arm_constant_limit): New function.
20263         (arm_override_options): Select the appropriate tuning model.  Delete
20264         initialization of arm_const_limit.
20265         (arm_split_constant): Use the new constant-limit model.
20266         (arm_rtx_costs): Pick up the current tuning model.
20267         * arm.md (is_strongarm, is_xscale): Delete.
20268         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
20269         for Xscale variant architectures.
20270         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
20271
20272 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20273
20274         * config/arm/arm.c (arm_gen_constant): Remove unused variable
20275         can_shift.
20276         (arm_rtx_costs_1): Remove unused variable extra_cost.
20277         (arm_unwind_emit_set): Use variable offset.
20278         (thumb1_output_casesi): Remove unused variable flags.
20279
20280 2010-04-16  Jeff Law  <law@redhat.com>
20281
20282         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
20283         needing assignment rather than doing a two-phase assignment.  Remove
20284         unused variable 'm'.
20285
20286 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20287
20288         PR bootstrap/43767
20289         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
20290
20291 2010-04-16  Doug Kwan  <dougkwan@google.com>
20292
20293         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
20294         (next_operand_entry_id): New static variable.
20295         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
20296         (add_to_ops_vec): Assigned unique ID to operand entry.
20297         (struct oecount_s): New field ID.
20298         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
20299         (undistribute_ops_list): Assign unique IDs to oecounts.
20300         (init_reassoc): reset next_operand_entry_id.
20301
20302 2010-04-16  Doug Kwan  <dougkwan@google.com>
20303
20304         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
20305         missing left parenthesis.
20306
20307 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
20308
20309         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
20310         *btdi_rex64 using SWI48 mode iterator.
20311         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
20312         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
20313         *jcc_btdi_mask_rex64.
20314
20315 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
20316
20317         * double-int.h (tree_to_double_int): Convert to macro.
20318         * double-int.c (tree_to_double_int): Remove.
20319
20320 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20321
20322         PR debug/43762
20323         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
20324         with want_address 2 and in case a single element list might be
20325         possible, call it again with want_address 0.
20326
20327 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
20328
20329         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
20330         case 'W' print operands for HI mode.
20331         * config/h8300/h8300.h (Y0, Y2) : New constraints.
20332         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
20333         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
20334         * config/h8300/predicate.md (bit_register_indirect_operand): New.
20335
20336         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
20337
20338         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
20339         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
20340         #xx:3 and #xx:4 mode.
20341
20342         * config/h8300/h8300.md (inverted load with HImode dest): Add
20343         support for H8300SX.
20344
20345         * config/h8300/predicate.md (bit_operand): Allow immediate values that
20346         satisfy 'U' constraint.
20347
20348 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20349
20350         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
20351         * configure: Regenerate.
20352         * config.in: Regenerate.
20353         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
20354         works.
20355
20356 2010-04-16  Richard Guenther  <rguenther@suse.de>
20357
20358         * tree.h (struct tree_decl_minimal): Move pt_uid ...
20359         (struct tree_decl_common): ... here.
20360         (DECL_PT_UID): Adjust.
20361         (SET_DECL_PT_UID): Likewise.
20362         (DECL_PT_UID_SET_P): Likewise.
20363
20364 2010-04-16  Richard Guenther  <rguenther@suse.de>
20365
20366         PR tree-optimization/43572
20367         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
20368         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
20369         * tree-flow.h (is_call_clobbered): Remove.
20370         * tree-flow-inline.h (is_call_clobbered): Likewise.
20371         * tree-dfa.c (dump_variable): Do not dump call clobber state.
20372         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
20373         (execute_return_slot_opt): Adjust.
20374         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
20375         check for call clobbered vars here.
20376         (find_tail_calls): Move tailcall verification to the
20377         proper place.
20378
20379 2010-04-16  Diego Novillo  <dnovillo@google.com>
20380
20381         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
20382
20383 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20384
20385         PR target/40603
20386         * config/arm/arm.md (cbranchqi4): New pattern.
20387         * config/arm/predicates.md (const0_operand,
20388         cbranchqi4_comparison_operator): New predicates.
20389
20390 2010-04-16  Richard Guenther  <rguenther@suse.de>
20391
20392         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
20393         (dump_gimple_stmt): Likewise.
20394
20395 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
20396
20397         * recog.h (struct recog_data): New field is_operator.
20398         (struct insn_operand_data): New field is_operator.
20399         * recog.c (extract_insn): Set recog_data.is_operator.
20400         * genoutput.c (output_operand_data): Emit code to set the
20401         is_operator field.
20402         * reload.c (find_reloads): Use it rather than testing for an
20403         empty constraint string.
20404
20405         PR target/41514
20406         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
20407         If the previous insn is a cbranchsi4_insn with the same arguments,
20408         omit the compare instruction.
20409
20410         * config/arm/arm.md (addsi3_cbranch): If destination is a high
20411         register, inputs must be low registers and we need a low register
20412         scratch.  Handle alternative 2 like alternative 3.
20413
20414 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
20415
20416         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
20417         don't call get_addr on both.  If one expression is a VALUE and
20418         the other a REG, check VALUE's locs if the REG isn't among them.
20419
20420 2010-04-16  Christian Bruel  <christian.bruel@st.com>
20421
20422         * config/sh/sh.h (sh_frame_pointer_required): New function.
20423         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
20424         (flag_omit_frame_pointer) Set.
20425         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
20426         (rounded_frame_size): Adjust size with outgoing_args_size.
20427         (sh_set_return_address): Must return from stack pointer.
20428         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
20429         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
20430         (ACCUMULATE_OUTGOING_ARGS): Define.
20431         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
20432         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
20433
20434 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20435
20436         PR target/43471
20437         * config/sh/sh.c (sh_legitimize_reload_address): Use
20438         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
20439         Remove a unneeded check for offset_base.
20440
20441 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
20442
20443         * configure: Regenerated.
20444
20445 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20446
20447         * config/s390/s390.c (s390_call_save_register_used): Switch back
20448         to HARD_REGNO_NREGS.
20449
20450 2010-04-15  Richard Guenther  <rguenther@suse.de>
20451
20452         * alias.c (alias_set_subset_of): Handle alias-set zero
20453         child properly.
20454
20455 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
20456             Julian Brown  <julian@codesourcery.com>
20457
20458         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
20459         alternatives according to use of high and low regs.
20460         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
20461         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
20462         optimizing for size on Thumb-2.
20463
20464 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
20465
20466         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
20467
20468 2010-04-15  Richard Guenther  <rguenther@suse.de>
20469
20470         * tree-ssa-structalias.c (struct variable_info): Add
20471         is_fn_info flag.
20472         (new_var_info): Initialize it.
20473         (dump_constraints): Support printing last added constraints.
20474         (debug_constraints): Adjust.
20475         (dump_constraint_graph): Likewise.
20476         (make_heapvar_for): Check for NULL cfun.
20477         (get_function_part_constraint): New function.
20478         (get_fi_for_callee): Likewise.
20479         (find_func_aliases): Properly implement IPA PTA constraints.
20480         (process_ipa_clobber): New function.
20481         (find_func_clobbers): Likewise.
20482         (insert_into_field_list_sorted): Remove.
20483         (create_function_info_for): Properly allocate vars for IPA mode.
20484         Do not use insert_into_field_list_sorted.
20485         (create_variable_info_for): Properly generate constraints for
20486         global vars in IPA mode.
20487         (dump_solution_for_var): Always dump the solution.
20488         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
20489         (find_what_var_points_to): Adjust.
20490         (pt_solution_set): Change.
20491         (pt_solution_ior_into): New function.
20492         (pt_solution_empty_p): Export.
20493         (pt_solution_includes_global): Adjust.
20494         (pt_solution_includes_1): Likewise.
20495         (pt_solutions_intersect_1): Likewise.
20496         (dump_sa_points_to_info): Check some invariants.
20497         (solve_constraints): Move constraint dumping ...
20498         (compute_points_to_sets): ... here.
20499         (ipa_pta_execute): ... and here.
20500         (compute_may_aliases): Do not re-compute points-to info
20501         locally if IPA info is available.
20502         (ipa_escaped_pt): New global var.
20503         (ipa_pta_execute): Properly implement IPA PTA.
20504         * tree-into-ssa.c (dump_decl_set): Support dumping
20505         decls not in referenced-vars.
20506         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
20507         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
20508         (dump_points_to_solution): Likewise.
20509         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
20510         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
20511         (remap_gimple_stmt): Reset call clobber/use information if necessary.
20512         (copy_decl_to_var): Copy DECL_PT_UID.
20513         (copy_result_decl_to_var): Likewise.
20514         * tree.c (make_node_stat): Initialize DECL_PT_UID.
20515         (copy_node_stat): Copy it.
20516         * tree.h (DECL_PT_UID): New macro.
20517         (SET_DECL_PT_UID): Likewise.
20518         (DECL_PT_UID_SET_P): Likewise.
20519         (struct tree_decl_minimal): Add pt_uid member.
20520         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
20521         (pt_solution_empty_p): Declare.
20522         (pt_solution_set): Adjust.
20523         (ipa_escaped_pt): Declare.
20524         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
20525         * gimple-pretty-print.c (pp_points_to_solution): New function.
20526         (dump_gimple_call): Dump call clobber/use information.
20527         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
20528         * tree-pass.h (TDF_ALIAS): New dump option.
20529         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
20530         * doc/invoke.texi (-fipa-pta): Update documentation.
20531
20532 2010-04-15  Richard Guenther  <rguenther@suse.de>
20533
20534         * Makefile.in (OBJS-common): Add gimple-fold.o.
20535         (gimple-fold.o): New rule.
20536         * tree.h (maybe_fold_offset_to_reference,
20537         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
20538         prototypes ...
20539         * gimple.h: ... here.
20540         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
20541         may_propagate_address_into_dereference): Move prototypes ...
20542         * gimple.h: ... here.
20543         * tree-ssa-ccp.c (get_symbol_constant_value,
20544         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
20545         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
20546         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
20547         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
20548         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
20549         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
20550         gimplify_and_update_call_from_tree): Move ...
20551         * gimple-fold.c: ... here.  New file.
20552         (ccp_fold_builtin): Rename to ...
20553         (gimple_fold_builtin): ... this.
20554         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
20555
20556 2010-04-15  Richard Guenther  <rguenther@suse.de>
20557
20558         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
20559         fit_double_type, force_fit_type_double, add_double_with_sign,
20560         neg_double, mul_double_with_sign, lshift_double, rshift_double,
20561         lrotate_double, rrotate_double, div_and_round_double): Move ...
20562         * double-int.c: ... here.
20563         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
20564         add_double, neg_double, mul_double_with_sign, mul_double,
20565         lshift_double, rshift_double, lrotate_double, rrotate_double,
20566         div_and_round_double): Move prototypes ...
20567         * double-int.h: ... here.
20568
20569 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
20570
20571         PR target/43742
20572         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
20573         matching constraints to ensure inputs match the output.
20574
20575 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
20576
20577         PR target/43742
20578         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
20579         in an input-only operand.
20580
20581 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
20582
20583         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
20584         (double_int_not, double_int_lshift, double_int_rshift): Declare.
20585         (double_int_negative_p): Convert to static inline function.
20586         * double-int.c (double_int_lshift, double_int_lshift): New functions.
20587         (double_int_negative_p): Remove.
20588         * tree.h (lshift_double, rshift_double):
20589         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
20590         * fold-const.c (fold_convert_const_int_from_real,
20591         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
20592         (lshift_double): Change type of arith argument to bool.
20593         (rshift_double): Change type of arith argument to bool. Correct
20594         comment.
20595         * expmed.c (mask_rtx, lshift_value): (Ditto.).
20596
20597 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
20598
20599         PR target/21803
20600         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
20601         at the start and end of the then/else blocks, and omit them from the
20602         conversion.
20603         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
20604         argument; all callers changed.  Pass zero to old_insns_match_p instead.
20605         (flow_find_head_matching_sequence): New function.
20606         (old_insns_match_p): Check REG_EH_REGION notes for calls.
20607         * basic-block.h (flow_find_cross_jump,
20608         flow_find_head_matching_sequence): Declare functions.
20609
20610 2010-04-14  Jason Merrill  <jason@redhat.com>
20611
20612         PR c++/36625
20613         * c-common.c (attribute_takes_identifier_p): New fn.
20614         * c-common.h: Declare it.
20615
20616 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20617
20618         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
20619         splitter condition.
20620         (*udivmod<mode>4): Ditto.
20621
20622 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20623
20624         * config/i386/i386.md (maxmin_int): Rename code attribute from
20625         maxminiprefix and update all users.
20626         (maxmin_float): Ditto from maxminfprefix.
20627         (logic): Ditto from logicprefix.
20628         (absneg_mnemonic): Ditto from absnegprefix.
20629         * config/i386/mmx.md: Update all users of maxminiprefix,
20630         maxminfprefix and logicprefix for rename.
20631         * config/i386/sse.md: Ditto.
20632         * config/i386/sync.md (sync_<code><mode>): Update for
20633         logicprefix rename.
20634
20635 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20636
20637         PR 42966
20638         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
20639         warnings converted to errors.
20640
20641 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20642
20643         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
20644         used insn_type variable.
20645         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
20646         to avoid set-but-not-used warning.
20647
20648 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20649
20650         * df-core.c (df_ref_debug): Change format string placeholder
20651         from 0x%x to %#x.
20652         * dwarf2asm.c (dw2_asm_output_data_raw,
20653         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
20654         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
20655         * dwarf2out.c (output_cfi, output_cfi_directive,
20656         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
20657         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
20658         Ditto.
20659         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
20660         * print-rtl.c (print_rtx): Ditto.
20661
20662 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20663
20664         PR middle-end/42694
20665         * builtins.c (expand_builtin_pow_root): New function to expand pow
20666         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
20667         series of sqrt and cbrt calls under -ffast-math.
20668         (expand_builtin_pow): Call it.
20669
20670 2010-04-14  Michael Matz  <matz@suse.de>
20671
20672         PR tree-optimization/42963
20673         * tree-cfg.c (touched_switch_bbs): New static variable.
20674         (group_case_labels_stmt): New function broken out from ...
20675         (group_case_labels): ... here, use the above.
20676         (start_recording_case_labels): Allocate touched_switch_bbs.
20677         (end_recording_case_labels): Deallocate it, call
20678         group_case_labels_stmt.
20679         (gimple_redirect_edge_and_branch): Remember index of affected BB.
20680
20681 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20682
20683         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
20684         from insn template.
20685
20686 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
20687
20688         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
20689
20690 2010-04-13  Jan Hubicka  <jh@suse.cz>
20691
20692         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
20693         of optimized out static functions.
20694         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
20695         cost computation.  Also sanity check for overflows.
20696         (update_caller_keys): Update cgraph_edge_badness call; properly
20697         update fibheap and sanity check that it is up to date.
20698         (add_new_edges_to_heap): Update cgraph_edge_badness.
20699         (cgraph_decide_inlining_of_small_function): Likewise;
20700         add sanity checking that badness in heap is up to date;
20701         improve dumping of reason; Update badness of calls to the
20702         offline copy of function currently inlined; dump badness
20703         of functions not inlined because of unit growth limits.
20704
20705 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20706
20707         PR middle-end/32628
20708         * c-common.c (pointer_int_sum): Disregard overflow that occured only
20709         because of sign-extension change when converting to sizetype here...
20710         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
20711
20712         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
20713         the folding to constants.  Remove redundant final conversion.
20714         (fold_binary) <associate>: Do not associate if the re-association of
20715         constants alone overflows.
20716         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
20717         to the end of the list.
20718         (multiple_of_p) <COND_EXPR>: New case.
20719
20720 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
20721
20722         * opt-functions.awk (opt_sanitized_name): New.
20723         (opt_enum): New.
20724         * optc-gen.awk: Use it
20725         * opth-gen.awk: Use it.
20726
20727 2010-04-13  Martin Jambor  <mjambor@suse.cz>
20728
20729         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
20730         (sra_modify_assign): Delete stmts loading dead data even if racc has no
20731         children.  Call replace_uses_with_default_def_ssa_name to handle
20732         SSA_NAES on lhs.
20733
20734 2010-04-13  Michael Matz  <matz@suse.de>
20735
20736         PR middle-end/43730
20737         * builtins.c (expand_builtin_interclass_mathfn): Also create
20738         a register if the predicate doesn't match.
20739
20740 2010-04-13  Diego Novillo  <dnovillo@google.com>
20741
20742         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
20743         * c-pch.c: Include timevar.h.
20744         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
20745         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
20746         * ggc-common.c: Include timevar.h.
20747         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
20748         * timevar.def (TV_PCH_SAVE): Define.
20749         (TV_PCH_CPP_SAVE): Define.
20750         (TV_PCH_PTR_REALLOC): Define.
20751         (TV_PCH_PTR_SORT): Define.
20752         (TV_PCH_RESTORE): Define.
20753         (TV_PCH_CPP_RESTORE): Define.
20754
20755 2010-04-13  Michael Matz  <matz@suse.de>
20756
20757         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
20758         into MINUS_EXPRs.
20759         (can_reassociate_p): New function.
20760         (break_up_subtract_bb, reassociate_bb): Use it.
20761
20762 2010-04-13  Richard Guenther  <rguenther@suse.de>
20763
20764         PR bootstrap/43737
20765         * builtins.c (c_readstr): Fix assert.
20766
20767 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
20768
20769         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
20770         when generating cltd insn.
20771
20772         (*ashl<mode>3_1): Remove special handling for register operand 2.
20773         (*ashlsi3_1_zext): Ditto.
20774         (*ashlhi3_1): Ditto.
20775         (*ashlhi3_1_lea): Ditto.
20776         (*ashlqi3_1): Ditto.
20777         (*ashlqi3_1_lea): Ditto.
20778         (*<shiftrt_insn><mode>3_1): Ditto.
20779         (*<shiftrt_insn>si3_1_zext): Ditto.
20780         (*<shiftrt_insn>qi3_1_slp): Ditto.
20781         (*<rotate_insn><mode>3_1): Ditto.
20782         (*<rotate_insn>si3_1_zext): Ditto.
20783         (*<rotate_insn>qi3_1_slp): Ditto.
20784
20785 2010-04-13  Richard Guenther  <rguenther@suse.de>
20786
20787         * tree-ssa-structalias.c (callused_id): Remove.
20788         (call_stmt_vars): New.
20789         (get_call_vi): Likewise.
20790         (lookup_call_use_vi): Likewise.
20791         (lookup_call_clobber_vi): Likewise.
20792         (get_call_use_vi): Likewise.
20793         (get_call_clobber_vi): Likewise.
20794         (make_transitive_closure_constraints): Likewise.
20795         (handle_const_call): Adjust to do per-call call-used handling.
20796         (handle_pure_call): Likewise.
20797         (find_what_var_points_to): Remove general callused handling.
20798         (init_base_vars): Likewise.
20799         (init_alias_vars): Initialize call_stmt_vars.
20800         (compute_points_to_sets): Process call-used and call-clobbered
20801         vars for call statements.
20802         (delete_points_to_sets): Free call_stmt_vars.
20803
20804 2010-04-13  Richard Guenther  <rguenther@suse.de>
20805
20806         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
20807         Only add RW dependence for dependence distance zero.
20808         Adjust maximal vectorization factor according to dependences.
20809         Move alignment handling ...
20810         (vect_find_same_alignment_drs): ... here.  New function.
20811         (vect_analyze_data_ref_dependences): Adjust.
20812         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
20813         (vect_analyze_data_refs): Adjust minimal vectorization factor
20814         according to data references.
20815         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
20816         dependences before determining the vectorization factor.
20817         Analyze alignment after determining the vectorization factor.
20818         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
20819         dependences before alignment.
20820         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
20821         Adjust prototype.
20822         (vect_analyze_data_refs): Likewise.
20823         (MAX_VECTORIZATION_FACTOR): New define.
20824
20825 2010-04-13  Duncan Sands  <baldrick@free.fr>
20826
20827         * except.h (lang_eh_type_covers): Remove.
20828         * except.c (lang_eh_type_covers): Likewise.
20829
20830 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20831             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20832
20833         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
20834         * config/s390/s390.c: Replace UNTIS_PER_WORD with
20835         UNITS_PER_LONG where it is ABI relevant.
20836         (s390_return_addr_rtx): Likewise.
20837         (s390_back_chain_rtx): Likewise.
20838         (s390_frame_area): Likewise.
20839         (s390_frame_info): Likewise.
20840         (s390_initial_elimination_offset): Likewise.
20841         (save_gprs): Likewise.
20842         (s390_emit_prologue): Likewise.
20843         (s390_emit_epilogue): Likewise.
20844         (s390_function_arg_advance): Likewise.
20845         (s390_function_arg): Likewise.
20846         (s390_va_start): Likewise.
20847         (s390_gimplify_va_arg): Likewise.
20848         (s390_function_profiler): Likewise.
20849         (s390_optimize_prologue): Likewise.
20850         (s390_rtx_costs): Likewise.
20851         (s390_secondary_reload): Likewise.
20852         (s390_promote_function_mode): Likewise.
20853         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
20854         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
20855         registers available.
20856         (s390_unwind_word_mode): New function.
20857         (s390_function_value): Split 64 bit values into register pair if
20858         used as return value.
20859         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
20860         function call parameters.  Handle parallels.
20861         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
20862         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
20863         (DWARF_CIE_DATA_ALIGNMENT): New macro.
20864         (s390_expand_setmem): Remove unused variable src_addr.
20865         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
20866         deal with 64 bit registers.
20867         * config/s390/s390.h: Define __zarch__ predefined macro.
20868         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
20869         (UNITS_PER_LONG): New macro.
20870         * libjava/include/s390-signal.h: Define extended ucontext
20871         structure containing the upper halfs of the 64 bit registers.
20872
20873 2010-04-13  Simon Baldwin  <simonb@google.com>
20874
20875         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
20876
20877 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
20878
20879         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
20880         rvalue on the RHS if the LHS is of a non-renamable type.
20881         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
20882
20883 2010-04-13  Matthias Klose  <doko@ubuntu.com>
20884
20885         * gcc.c (cc1_options): Handle -iplugindir before processing
20886         the cc1 spec. Only add -iplugindir once.
20887         (cpp_unique_options): Add -iplugindir option if -fplugin* options
20888         found.
20889         * common.opt (iplugindir): Remove `Separate' property, initialize.
20890         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
20891         option.
20892         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
20893         (distclean): Remove plugin dir.
20894         * doc/invoke.texi: Document -iplugindir.
20895
20896 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
20897
20898         * doc/plugins.texi (Loading Plugins): Document short
20899         -fplugin=foo option.
20900         (Plugin API): Mention default_plugin_dir_name function.
20901
20902         * gcc.c (find_file_spec_function): Add new declaration.
20903         (static_spec_func): Use it for "find-file".
20904         (find_file_spec_function): Add new function.
20905         (cc1_options): Add -iplugindir option if -fplugin* options found.
20906
20907         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
20908
20909         * plugin.c (add_new_plugin): Updated comment, and handle short
20910         plugin name.
20911         (default_plugin_dir_name): Added new function.
20912
20913         * common.opt (iplugindir): New option to set the plugin directory.
20914
20915 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
20916
20917         * config/i386/i386.md (any_rotate): New code iterator.
20918         (rotate_insn): New code attribute.
20919         (rotate): Ditto.
20920         (SWIM124): New mode iterator.
20921         (<rotate_insn>ti3): New expander.
20922         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
20923         any_rotate code iterator.
20924         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
20925         using any_rotate code iterator and SWIM124 mode iterator.
20926         (ix86_rotlti3): New insn_and_split pattern.
20927         (ix86_rotrti3): Ditto.
20928         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
20929         ix86_rotl{di,ti}3 patterns.
20930         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
20931         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
20932         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
20933         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
20934         code iterator and SWI mode iterator.
20935         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
20936         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
20937         code iterator.
20938         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
20939         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
20940         (bswap rotatert splitter): Add splitter.
20941         (bswap splitter): Macroize splitter using any_rotate code iterator.
20942         Add insn predicate to split only for TARGET_USE_XCHGB or when
20943         optimizing function for size.
20944
20945 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20946
20947         * config/pa/pa.c (emit_move_sequence): Remove use of
20948         deleted variable flag_argument_noalias.
20949
20950 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20951
20952         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
20953         configurations.
20954         Add to unsupported targets list.
20955         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
20956         sparc*-sun-solaris2.[567]* from target lists.
20957         * configure: Regenerate.
20958         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
20959         removal.
20960         Remove Solaris 7 patch references.
20961         (Specific, sparc-sun-solaris2.7): Removed.
20962         (sparc-sun-solaris2*): Update Solaris 7 example.
20963         (sparc64-*-solaris2*): Likewise.
20964
20965 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20966
20967         * config.build (alpha*-dec-osf4*): Remove.
20968         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
20969         of obsolete configurations.
20970         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
20971         support.
20972         * config/alpha/t-osf4: Renamed to ...
20973         * config/alpha/t-osf5: ... this.
20974         * config/alpha/osf.h: Renamed to ...
20975         * config/alpha/osf5.h: ... this.
20976         Merged old osf5.h contents.
20977         Update comments.
20978         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
20979         (EXTRA_SPECS): Removed.
20980         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
20981         reflect removal of Tru64 UNIX V4.0/V5.0 support.
20982         Document that.
20983
20984 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20985
20986         * doc/contrib.texi (Contributors, Rainer Orth): Update.
20987
20988 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
20989
20990         PR/43702
20991         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
20992         __thiscall convention.
20993
20994 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
20995
20996         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
20997         orig_base.
20998         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
20999
21000 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
21001
21002         * function.c (assign_parms_initialize_all): Add unused attribute
21003         to fntype.
21004
21005 2010-04-12  Richard Guenther  <rguenther@suse.de>
21006
21007         * gsstruct.def (GSS_CALL): New.
21008         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
21009         * gimple.h: Include tree-ssa-alias.h.
21010         (struct gimple_statement_call): New.
21011         (union gimple_statement_struct_d): Add gimple_call member.
21012         (gimple_call_reset_alias_info): Declare.
21013         (gimple_call_use_set): New function.
21014         (gimple_call_clobber_set): Likewise.
21015         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
21016         * gimple.c (gimple_call_reset_alias_info): New function.
21017         (gimple_build_call_1): Call it.
21018         * lto-streamer-in.c (input_gimple_stmt): Likewise.
21019         * tree-inline.c (remap_gimple_stmt): Likewise.
21020         (expand_call_inline): Remove callused handling.
21021         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
21022         * tree-dfa.c (dump_variable): Likewise.
21023         * tree-parloops.c (parallelize_loops): Likewise.
21024         * tree-ssa.c (init_tree_ssa): Likewise.
21025         (delete_tree_ssa): Likewise.
21026         * tree-flow-inline.h (is_call_used): Remove.
21027         * tree-flow.h (struct gimple_df): Remove callused member.
21028         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
21029         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
21030         (ref_maybe_used_by_call_p_1): Simplify.
21031         (call_may_clobber_ref_p_1): Likewise.
21032         * tree-ssa-structalias.c (compute_points_to_sets): Set
21033         the call stmt used and clobbered sets.
21034         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
21035         (find_tail_calls): Verify the tail call.
21036
21037 2010-04-12  Richard Guenther  <rguenther@suse.de>
21038
21039         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
21040         single-iteration always-inline inlining.
21041         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
21042         (cgraph_decide_inlining): Do not handle always-inline specially.
21043         (try_inline): Remove always-inline cycle detection special case.
21044         Do not recurse on always-inlines.
21045         (cgraph_early_inlining): Do not iterate if not optimizing.
21046         (cgraph_gate_early_inlining): remove.
21047         (pass_early_inline): Run unconditionally.
21048         (gate_cgraph_decide_inlining): New function.
21049         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
21050         not inlining or optimizing.
21051         (cgraph_decide_inlining_of_small_functions): Also consider
21052         always-inline functions.
21053         (cgraph_default_inline_p): Return true for nodes which should
21054         disregard inline limits.
21055         (estimate_function_body_sizes): Assume zero size and time for
21056         nodes which are marked as disregarding inline limits.
21057         (cgraph_decide_recursive_inlining): Do not perform recursive
21058         inlining on always-inline nodes.
21059
21060 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
21061
21062         PR bootstrap/43699
21063         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
21064         for exprs satisfying handled_component_p.
21065
21066 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
21067
21068         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
21069         non-constant aggregate elements.
21070
21071         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
21072         is a real initialization.
21073
21074 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
21075
21076         PR c/36774
21077         * c-decl.c (start_function): Move forward check for nested function.
21078
21079 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
21080
21081         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
21082         * config/sh/sh.c: Include reload.h.
21083         (sh_legitimize_reload_address): New.
21084         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
21085         sh_legitimize_reload_address.
21086
21087 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
21088
21089         * config/sh/sh.md (*movqi_pop): New insn pattern.
21090         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
21091
21092 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21093
21094         * config/i386/i386.md (any_shiftrt): New code iterator.
21095         (shiftrt_insn): New code attribute.
21096         (shiftrt): Ditto.
21097         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
21098         using any_shiftrt code iterator.
21099         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
21100         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
21101         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
21102         pattern from corresponding peephole2 patterns.
21103         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
21104         using any_shiftrt code iterator.
21105         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
21106         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
21107         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
21108         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
21109         *{ashr,lshr}<mode>3_cmp_zext.
21110         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
21111
21112 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21113
21114         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
21115         scratch register.
21116         (*lshr<mode>3_cconly): Ditto.
21117
21118 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
21119
21120         * config/i386/i386.md (lshr<mode>3): Macroize expander from
21121         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21122         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21123         pattern from *lshr{di,ti}3_1 and corresponding splitters using
21124         DWI mode iterator.
21125         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21126         from corresponding peephole2 patterns.
21127         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
21128         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
21129         and *lshrdi3_1_rex64 using SWI mode iterator.
21130         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
21131         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
21132         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
21133         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
21134         and *lshrdi3_cmp_rex64 using SWI mode iterator.
21135         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
21136         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
21137         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
21138         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
21139         SWI mode iterator.
21140
21141 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
21142
21143         * config/i386/i386.md (ashr<mode>3): Macroize expander from
21144         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
21145         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21146         pattern from *ashr{di,ti}3_1 and corresponding splitters using
21147         DWI mode iterator.
21148         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
21149         from corresponding peephole2 patterns.
21150         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
21151         (ashrsi3_cvt): Rename from ashrsi3_31.
21152         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
21153         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
21154         and x86_64_shift_adj_3 using SWI48 mode iterator.
21155         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
21156         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
21157         and *ashrdi3_1_rex64 using SWI mode iterator.
21158         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
21159         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
21160         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
21161         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
21162         and *ashrdi3_cmp_rex64 using SWI mode iterator.
21163         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
21164         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
21165         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
21166         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
21167         SWI mode iterator.
21168         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
21169         * config/i386/i386.c (ix86_split_ashr): Update for renamed
21170         x86_shift<mode>_adj_3 expanders.
21171
21172 2010-04-10  Wei Guozhi  <carrot@google.com>
21173
21174         PR target/42601
21175         * config/arm/arm.c (arm_pic_static_addr): New function.
21176         (legitimize_pic_address): Call arm_pic_static_addr when it detects
21177         a static symbol.
21178         (arm_output_addr_const_extra): Output expression for new pattern.
21179         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
21180
21181 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
21182
21183         * ira-costs.c (record_reg_classes): Ignore alternatives that are
21184         not enabled.
21185
21186         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
21187         * web.c: Include "insn-config.h" and "recog.h".
21188         (union_match_dups): New function.
21189         (web_main): Call it.
21190         (union_defs): Don't try to recognize match_dups.
21191
21192         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
21193         if doing so would replace the entire pattern.
21194
21195 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
21196
21197         PR target/43707
21198         PR target/43709
21199         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
21200         and splitter pattern.  Change splitter operand 1 predicate to
21201         nonmemory_operand.
21202
21203 2010-04-09  Martin Jambor  <mjambor@suse.cz>
21204
21205         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
21206         lattices are addresses of CONST_DECLs with the same initial value.
21207         (ipcp_print_all_lattices): Print values of CONST_DECLs.
21208         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
21209
21210 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
21211             Bernd Schmidt  <bernds@codesourcery.com>
21212
21213         * loop-invariant.c (replace_uses): New static function.
21214         (move_invariant_reg): Use it to ensure we can replace the uses.
21215
21216 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
21217
21218         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
21219         function template.
21220         (picochip_override_options): Enable section anchors only above -O1.
21221         (picochip_reorg): Fixed a couple of build warnings.
21222
21223 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21224
21225         * configure.ac (plugin -rdynamic test): Log result.
21226         * configure: Regenerate.
21227         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
21228         (RDYNAMIC_SPEC): Define.
21229         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
21230
21231 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21232
21233         * configure.ac: Determine Sun ld version numbers.
21234         (comdat_group): Restrict GNU ld version checks to gld.
21235         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
21236         (enable_comdat): Support --enable-comdat.
21237         * configure: Regenerate.
21238         * doc/install.texi (Configuration): Document --enable-comdat.
21239
21240 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21241
21242         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
21243         * config/sol2-gld.h: ... here.
21244         * config.gcc (sparc*-*-solaris2*): Reflect this.
21245         (i[34567]86-*-solaris2*): Use it.
21246
21247 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
21248
21249         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
21250         setup_clocks_p.
21251         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
21252
21253 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21254
21255         PR 42965
21256         * diagnostic.c (diagnostic_initialize): Initialize
21257         some_warnings_are_errors.
21258         (diagnostic_finish): New.
21259         (diagnostic_action_after_output): Call it before exiting.
21260         (diagnostic_report_diagnostic): Do not print message here. Set
21261         some_warnings_are_errors.
21262         * diagnostic.h (diagnostic_context): Delete
21263         issue_warnings_are_errors_message. Add some_warnings_are_errors.
21264         (diagnostic_finish): Declare.
21265         * toplev.c (toplev_main): Call it before exit.
21266
21267 2010-04-09  Jason Merrill  <jason@redhat.com>
21268
21269         PR c++/42623
21270         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
21271         for incomplete type.
21272
21273         PR c++/41788
21274         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
21275         based on a warning flag.
21276
21277 2010-04-09  Richard Guenther  <rguenther@suse.de>
21278
21279         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
21280
21281 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
21282
21283         PR bootstrap/43684
21284         * varasm.c (default_assemble_visibility): Wrap vars that are
21285         set, but unused, by targets without GAS.
21286         * config/rs6000/rs6000.c (paired_emit_vector_compare):
21287         Remove set, but unused, vars.
21288         (rs6000_legitimize_tls_address): Likewise.
21289         (altivec_expand_dst_builtin): Likewise.
21290         * config/darwin.c (machopic_classify_symbol): Likewise.
21291         (machopic_indirection_name): Likewise.
21292
21293 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
21294
21295         * config/i386/i386.md (DWI): New mode iterator.
21296         (S): New mode attribute.
21297         (shift_operand): Ditto.
21298         (shift_immediate_operand): Ditto.
21299         (ashl_input_operand): Ditto.
21300         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
21301         using SDWIM mode iterator.
21302         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
21303         pattern from *ashl{di,ti}3_1 and corresponding splitters using
21304         DWI mode iterator.
21305         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
21306         from corresponding peephole2 patterns.
21307         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
21308         and x86_64_shift_adj_1 using SWI48 mode iterator.
21309         (x86_shift<mode>_adj_2): Ditto.
21310         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
21311         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
21312         using SWI48 mode iterator.
21313         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
21314         *ashldi3_cmp_rex64 using SWI mode iterator.
21315         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
21316         *ashldi3_cconly_rex64 using SWI mode iterator.
21317         * config/i386/i386.c (ix86_split_ashl): Update for renamed
21318         x86_shift<mode>_adj_{1,2}.
21319         (ix86_split_ashr): Ditto.
21320         (ix86_split_lshr): Ditto.
21321
21322 2010-04-09  Richard Guenther  <rguenther@suse.de>
21323
21324         * target.h (builtin_conversion): Pass in input and output types.
21325         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
21326         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
21327         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
21328         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
21329
21330         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
21331         Handle AVX modes.
21332         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
21333
21334 2010-04-09  Richard Guenther  <rguenther@suse.de>
21335
21336         PR target/43152
21337         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
21338
21339 2010-04-09  Richard Guenther  <rguenther@suse.de>
21340
21341         * tree-vectorizer.h (struct _stmt_vec_info): Document
21342         that vectype is the type of the LHS.
21343         (supportable_widening_operation, supportable_narrowing_operation):
21344         Get both input and output vector types as arguments.
21345         (vect_is_simple_use_1): Declare.
21346         (get_same_sized_vectype): Likewise.
21347         * tree-vect-loop.c (vect_determine_vectorization_factor):
21348         Set STMT_VINFO_VECTYPE to the vector type of the def.
21349         (vectorizable_reduction): Adjust.
21350         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
21351         Adjust.  Specify the output vector type.
21352         (vect_pattern_recog_1): Adjust.
21353         * tree-vect-stmts.c (get_same_sized_vectype): New function.
21354         (vectorizable_call): Adjust.
21355         (vectorizable_conversion): Likewise.
21356         (vectorizable_operation): Likewise.
21357         (vectorizable_type_demotion): Likewise.
21358         (vectorizable_type_promotion): Likewise.
21359         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
21360         the def.
21361         (vect_is_simple_use_1): New function.
21362         (supportable_widening_operation): Get both input and output
21363         vector types.
21364         (supportable_narrowing_operation): Likewise.
21365         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
21366
21367 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
21368
21369         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
21370         __thiscall and _thiscall as predefined macros.
21371         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
21372         thiscall attribute handling.
21373         (ix86_comp_type_attributes): Likewise.
21374         (ix86_function_regparm): Likewise.
21375         (ix86_return_pops_args): Likewise.
21376         (init_cumulative_args): Likewise.
21377         (find_drap_reg): Likewise.
21378         (ix86_static_chain): Likewise.
21379         (x86_this_parameter): Likewise.
21380         (x86_output_mi_thunk): Likewise.
21381         (ix86_attribute_table): Add description for thiscall attribute.
21382         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
21383         * doc/extend.texi: Add documentation for thiscall.
21384
21385 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21386
21387         PR c++/28584
21388         * c.opt (Wint-to-pointer-cast): Available in C++.
21389         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
21390
21391 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
21392
21393         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
21394         * calls.c (expand_call): Pass the function type to aggregate_value_p.
21395         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
21396         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
21397         function type instead.  Reorder and simplify checks.
21398
21399         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
21400
21401 2010-04-08  Jing Yu  <jingyu@google.com>
21402             Zdenek Dvorak  <ook@ucw.cz>
21403
21404         PR tree-optimization/42720
21405         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
21406         loop unswitch conditions here from ...
21407         (tree_unswitch_single_loop): ... here.
21408
21409 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21410
21411         * tree-if-conv.c: Fix comments and simplify logic.
21412
21413 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
21414
21415         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
21416         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
21417         (main_tree_if_conversion): Update call to tree_if_conversion.
21418
21419 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21420
21421         PR 42485
21422         * doc/invoke.texi (-b,-V): Delete.
21423         * doc/tm.texi: Do not mention -b.
21424         * gcc.c (display_help): Delete -b and -V.
21425         (process_command): Delete -b and -V.
21426         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
21427
21428 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
21429             Wolfgang Gellerich  <gellerich@de.ibm.com>
21430
21431         Implement target hook for loop unrolling
21432         * target.h (loop_unroll_adjust): Add a new target hook function.
21433         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
21434         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
21435         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
21436         (s390_loop_unroll_adjust): Implement the new target hook for s390.
21437         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
21438         target hook.
21439         (decide_unroll_stupid): Likewise.
21440
21441 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21442
21443         PR target/43643
21444         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
21445
21446 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21447
21448         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
21449         (Specific, *-*-solaris2*): Likewise.
21450         Don't prefer Sun as over GNU as.
21451
21452 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
21453
21454         * config/s390/s390.c (override_options): Adjust the z10 defaults
21455         for max-unroll-times, max-completely-peeled-insns
21456         and max-completely-peel-times.
21457
21458 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21459
21460         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
21461         instructions for z10.
21462         (s390_expand_setmem): Likewise.
21463         (s390_expand_cmpmem): Likewise.
21464
21465 2010-04-08  Richard Guenther  <rguenther@suse.de>
21466
21467         PR tree-optimization/43679
21468         * tree-ssa-pre.c (eliminate): Only propagate copies.
21469
21470 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21471
21472         PR bootstrap/43681
21473         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
21474         set but not used variable warning.
21475
21476 2010-04-08  Wei Guozhi  <carrot@google.com>
21477
21478         PR target/41653
21479         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
21480         (arm_size_rtx_costs): Call the new function when optimized for size.
21481
21482 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
21483
21484         PR debug/43670
21485         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
21486         op0 is not a MEM, just return NULL instead of assertion
21487         failure.
21488         (discover_nonconstant_array_refs): Don't walk debug stmts.
21489
21490 2010-04-08  Doug Kwan  <dougkwan@google.com>
21491
21492         * configure.ac: Recognize gold and do not use its version number
21493         to test ld features.
21494         * configure: Regenerate.
21495
21496 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
21497
21498         PR middle-end/40815
21499         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
21500         (negate_value): Move code to push elements to broken_up_substracts ...
21501         (eliminate_plus_minus_pair): ... here.  Push operands that have no
21502         negative pair to plus_negates.
21503         (repropagate_negates, init_reassoc, fini_reassoc): Update.
21504
21505 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21506
21507         * doc/install.texi (Configuration): Move description of
21508         --enable-lto, --with-libelf*, --enable-gold from Java section to
21509         general section.
21510
21511         * doc/generic.texi (Working with declarations)
21512         (Function Properties, C and C++ Trees): Fix typos.
21513         * doc/sourcebuild.texi (Top Level): Likewise.
21514
21515 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21516
21517         PR c/18624
21518         * tree.h (DECL_READ_P): Define.
21519         (struct tree_decl_common): Add decl_read_flag.
21520         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
21521         a set but not used warning.
21522         (merge_decls): Merge DECL_READ_P flag.
21523         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
21524         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
21525         * c-common.c (handle_used_attribute, handle_unused_attribute):
21526         Likewise.
21527         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
21528         New prototypes.
21529         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
21530         New functions.
21531         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
21532         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
21533         c_parser_binary_expression, c_parser_cast_expression,
21534         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
21535         Call default_function_array_read_conversion instead of
21536         default_function_array_conversion where needed.
21537         (c_parser_unary_expression, c_parser_conditional_expression,
21538         c_parser_postfix_expression_after_primary, c_parser_initelt):
21539         Likewise.  Call mark_exp_read where needed.
21540         (c_parser_statement_after_labels, c_parser_asm_operands,
21541         c_parser_typeof_specifier, c_parser_sizeof_expression,
21542         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
21543         where needed.
21544         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
21545         New.
21546         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
21547         (warn_unused_but_set_parameter): Default to warn_unused
21548         && extra_warnings.
21549         * doc/invoke.texi: Document -Wunused-but-set-variable and
21550         -Wunused-but-set-parameter.
21551
21552         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
21553         used count variable.
21554         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
21555         when operandN variables aren't used in the body of the expander
21556         or splitter.
21557         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
21558         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
21559         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
21560         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
21561         FOR_EACH_IMM_USE_ON_STMT): Likewise.
21562         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
21563         * tree.c (PROCESS_ARG): Likewise.
21564
21565 2010-04-07  Simon Baldwin  <simonb@google.com>
21566
21567         * diagnostic.h (diagnostic_override_option_index): New macro to
21568         set a diagnostic's option_index.
21569         * c-tree.h (c_cpp_error): Add warning reason argument.
21570         * opts.c (_warning_as_error_callback): New.
21571         (register_warning_as_error_callback): Store callback for
21572         warnings enabled via enable_warning_as_error.
21573         (enable_warning_as_error): Call callback, minor code tidy.
21574         * opts.h (register_warning_as_error_callback): Declare.
21575         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
21576         response to -Werror=.
21577         (c_common_init_options): Register warning_as_error_callback in opts.c.
21578         * common.opt: Add -Wno-cpp option.
21579         * c-common.c (struct reason_option_codes_t): Map cpp warning
21580         reason codes to gcc option indexes.
21581         * (c_option_controlling_cpp_error): New function, lookup the gcc
21582         option index for a cpp warning reason code.
21583         * (c_cpp_error): Add warning reason argument, call
21584         c_option_controlling_cpp_error for diagnostic_override_option_index.
21585         * doc/invoke.texi: Document -Wno-cpp.
21586
21587 2010-04-07  Richard Guenther  <rguenther@suse.de>
21588
21589         * ipa-reference.c (mark_load): Use get_base_address.
21590         (mark_store): Likewise.
21591
21592         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
21593         inserting GIMPLE_NOPs into the IL.
21594         * tree-ssa-structalias.c (get_constraint_for_component_ref):
21595         Explicitly strip handled components and indirect references.
21596
21597         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
21598         folding address expressions.
21599         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
21600         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
21601         operand_equal_p to compare decls.
21602         (ptr_deref_may_alias_decl_p): Likewise.
21603         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
21604         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
21605         Handle reversed comparison ops.
21606         * tree-sra.c (asm_visit_addr): Use get_base_address.
21607         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
21608         * ipa-reference.c (mark_address): Use get_base_address.
21609
21610 2010-04-07  Richard Guenther  <rguenther@suse.de>
21611
21612         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
21613         Propagate constants everywhere.
21614
21615 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
21616
21617         PR debug/43516
21618         * tree.c (MAX_INT_CACHED_PREC): Define.
21619         (nonstandard_integer_type_cache): New array.
21620         (build_nonstandard_integer_type): Cache results for precision
21621         <= MAX_INT_CACHED_PREC.
21622
21623 2010-04-07  Richard Guenther  <rguenther@suse.de>
21624
21625         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
21626         -fargument-noalias-global, -fargument-noalias-anything): Remove.
21627         * common.opt: Likewise.
21628         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
21629         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
21630         (nonoverlapping_memrefs_p): Likewise.
21631         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
21632         * opts.c (common_handle_option): Handle OPT_fargument_alias,
21633         OPT_fargument_noalias, OPT_fargument_noalias_anything and
21634         OPT_fargument_noalias_global for backward compatibility.
21635
21636 2010-04-07  Richard Guenther  <rguenther@suse.de>
21637
21638         PR tree-optimization/43270
21639         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
21640         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
21641         * tree-ssa-pre.c (phi_translate_1): Adjust.
21642         (fully_constant_expression): Split out vn_reference handling to ...
21643         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
21644         Fold reads from constant strings.
21645         (vn_reference_lookup): Handle fully constant references.
21646         (vn_reference_lookup_pieces): Likewise.
21647         * Makefile.in (expmed.o-warn): Add -Wno-error.
21648
21649 2010-04-07  Martin Jambor  <mjambor@suse.cz>
21650
21651         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
21652
21653 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
21654
21655         PR driver/41594
21656         * gcc.c: Add -static-libstdc++ to list of recognized options.
21657
21658 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21659
21660         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
21661
21662 2010-04-07  Richard Guenther  <rguenther@suse.de>
21663
21664         PR middle-end/42617
21665         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
21666         bases build simple mem attributes to retain points-to information.
21667
21668 2010-04-07  Richard Guenther  <rguenther@suse.de>
21669
21670         PR middle-end/42617
21671         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
21672         preserve points-to related information.
21673
21674 2010-04-07  Richard Guenther  <rguenther@suse.de>
21675
21676         PR middle-end/42617
21677         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
21678         discard plain indirect references.
21679         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
21680         * tree.c (tree_nop_conversion): Likewise.
21681
21682 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
21683
21684         PR debug/43628
21685         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
21686
21687 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
21688
21689         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
21690         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
21691
21692 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21693
21694         * tree-if-conv.c: Fix indentation and comments.
21695
21696 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21697
21698         * tree-if-conv.c: Sort static functions in topological order.
21699
21700 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
21701
21702         * tree-if-conv.c: Fix indentation and comments.
21703
21704 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21705
21706         PR middle-end/43519
21707         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
21708         lang_hooks.types.type_for_size instead of
21709         build_nonstandard_integer_type.
21710         When converting an unsigned type to signed, double its precision.
21711         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
21712         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
21713         (graphite_create_new_loop_guard): When ub + 1 wraps around,
21714         use lb <= ub.
21715
21716 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21717
21718         PR middle-end/43519
21719         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
21720         POINTER_PLUS_EXPR for pointer types.
21721
21722 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21723
21724         PR middle-end/43519
21725         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
21726         * graphite-clast-to-gimple.c: Include langhooks.h.
21727         (max_signed_precision_type): New.
21728         (max_precision_type): Takes two types as arguments.
21729         (precision_for_value): New.
21730         (precision_for_interval): New.
21731         (gcc_type_for_interval): New.
21732         (gcc_type_for_value): New.
21733         (gcc_type_for_clast_term): New.
21734         (gcc_type_for_clast_red): New.
21735         (gcc_type_for_clast_bin): New.
21736         (gcc_type_for_clast_expr): Split up into several functions.
21737         (gcc_type_for_clast_eq): Rewritten.
21738         (compute_bounds_for_level): New.
21739         (compute_type_for_level_1): New.
21740         (compute_type_for_level): New.
21741         (gcc_type_for_cloog_iv): Removed.
21742         (gcc_type_for_iv_of_clast_loop): Rewritten.
21743         (graphite_create_new_loop): Compute the lower and upper bound types
21744         with gcc_type_for_clast_expr.
21745         (graphite_create_new_loop_guard): Same.
21746         (find_cloog_iv_in_expr): Removed.
21747         (compute_cloog_iv_types_1): Removed.
21748         (compute_cloog_iv_types): Removed.
21749         (gloog): Do not call compute_cloog_iv_types.
21750         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
21751         GBB_CLOOG_IV_TYPES.
21752         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
21753         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
21754         (GBB_CLOOG_IV_TYPES): Removed.
21755
21756 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21757
21758         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
21759         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
21760         (detect_commutative_reduction): Same.
21761
21762 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21763
21764         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
21765         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
21766         argument.
21767         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
21768         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
21769         (rewrite_commutative_reductions_out_of_ssa): Same.
21770         * passes.c (execute_function_todo): Call verify_ssa for every pass
21771         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
21772         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
21773         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
21774         with an extra argument.
21775         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
21776         verify_ssa only when the extra argument is true.
21777         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
21778         with an extra argument.
21779         (tree_transform_and_unroll_loop): Same.
21780
21781 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
21782
21783         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
21784         for all the passes of the LNO having LOOP_CLOSED_SSA.
21785         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
21786         * tree-loop-distribution.c (pass_loop_distribution): Same.
21787         * tree-pass.h (TODO_verify_loops): Removed.
21788         * tree-ssa-loop.c (pass_tree_loop_init): Same.
21789         (pass_lim): Same.
21790         (pass_tree_unswitch): Same.
21791         (pass_predcom): Same.
21792         (pass_vectorize): Same.
21793         (pass_linear_transform): Same.
21794         (pass_graphite_transforms): Same.
21795         (pass_iv_canon): Same.
21796         (pass_complete_unroll): Same.
21797         (pass_complete_unrolli): Same.
21798         (pass_parallelize_loops): Same.
21799         (pass_loop_prefetch): Same.
21800         (pass_iv_optimize): Same.
21801
21802 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
21803
21804         PR middle-end/32824
21805         * passes.c (init_optimization_passes): Move pass_lim before
21806         pass_copy_prop and pass_dce_loop.
21807
21808 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21809
21810         PR target/43667
21811         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
21812         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
21813         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
21814         MULTI_* defines for 4 argument vpermil2p* builtins.
21815
21816 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21817
21818         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
21819         * config/i386/i386.c (x86_maybe_negate_const_int): New.
21820         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
21821         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
21822         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
21823         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
21824         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
21825         Use x86_maybe_negate_const_int to output insn mnemonic.
21826         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
21827         check from instruction predicate.  Update comments.
21828         * config/i386/sync.md (sync_add<mode>): Use
21829         x86_maybe_negate_const_int to output insn mnemonic.
21830
21831 2010-04-06  Jan Hubicka  <jh@suse.cz>
21832
21833         PR tree-optimization/42906
21834         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
21835         IGNORE_SELF argument.  Set visited_control_parents for fully
21836         processed BBs.
21837         (find_obviously_necessary_stmts): Update call of
21838         mark_control_dependent_edges_necessary.
21839         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
21840
21841 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
21842
21843         * config/i386/i386.md: Remove comment about 'e' and 'E'
21844         operand modifier.
21845
21846 2010-04-06  Richard Guenther  <rguenther@suse.de>
21847
21848         PR tree-optimization/43627
21849         * tree-vrp.c (extract_range_from_unary_expr): Widenings
21850         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
21851         not varying.
21852
21853 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
21854
21855         * BASE-VER: Change to 4.6.0.
21856
21857         PR target/43638
21858         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
21859         handling.
21860
21861 2010-04-06  Richard Guenther  <rguenther@suse.de>
21862
21863         PR middle-end/43661
21864         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
21865
21866 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21867
21868         * doc/invoke.texi (Optimize Options): Document that LTO
21869         won't remove object access purely due to incompatible
21870         declarations.
21871
21872 2010-04-04  Matthias Klose  <doko@ubuntu.com>
21873
21874         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
21875         Initialize variable.
21876
21877 2010-04-03  Richard Guenther  <rguenther@suse.de>
21878
21879         PR middle-end/42509
21880         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
21881         require a non-NULL MEM_OFFSET.
21882
21883 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
21884
21885         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
21886         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
21887         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
21888         config/alpha/predicates.md, config/arm/arm.md,
21889         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
21890         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
21891         config/darwin9.h, config/darwin.c, config/darwin.h,
21892         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
21893         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
21894         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
21895         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
21896         config/mips/mips.md, config/mn10300/mn10300.c,
21897         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
21898         config/rs6000/aix.h, config/rs6000/dfp.md,
21899         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
21900         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
21901         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
21902         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
21903         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
21904         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
21905         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
21906         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
21907         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
21908         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
21909         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
21910         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
21911         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
21912         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
21913         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
21914         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
21915         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
21916         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
21917         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
21918         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
21919         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
21920         opt-functions.awk, opth-gen.awk, params.def, passes.c,
21921         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
21922         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
21923         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
21924         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
21925         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
21926         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
21927         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
21928         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
21929         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
21930         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
21931         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
21932         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
21933         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
21934         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
21935
21936 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21937
21938         PR other/43620
21939         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
21940         * aclocal.m4: Regenerate.
21941
21942 2010-04-02  Richard Guenther  <rguenther@suse.de>
21943
21944         PR tree-optimization/43629
21945         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
21946         if we have seen a constant value.
21947
21948 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
21949
21950         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
21951
21952 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
21953
21954         PR target/43469
21955         * arm.c (legitimize_tls_address): Adjust call to
21956         gen_tls_load_dot_plus_four.
21957         (arm_note_pic_base): New function.
21958         (arm_cannot_copy_insn_p): Use it.
21959         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
21960         constraint.
21961
21962 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21963
21964         PR bootstrap/43531
21965
21966         Revert:
21967         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21968
21969         * Makefile.in ($(out_object_file)): Depend on
21970         gt-$(basename $(notdir $(out_file))).h.
21971
21972 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
21973
21974         * config.gcc (lm32-*-rtems*): Add t-lm32.
21975
21976 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
21977
21978         * config.gcc: Add lm32-*-rtems*.
21979         * config/lm32/rtems.h: New file.
21980
21981 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
21982
21983         PR target/42609
21984         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
21985
21986 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
21987
21988         * dwarf2out.c (output_compilation_unit_header): For
21989         -gdwarf-4 use version 4 instead of version 3.
21990         (output_line_info): For version 4 and above emit additional
21991         maximum ops per insn header field.
21992         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
21993
21994         * dwarf2out.c (is_c_family, is_java): Remove.
21995         (lower_bound_default): New function.
21996         (add_bound_info, gen_descr_array_type_die): Use it.
21997
21998 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
21999
22000         PR debug/43325
22001         * dwarf2out.c (gen_variable_die): Allow debug info for variable
22002         re-declaration when it happens in a function.
22003
22004 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
22005
22006         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
22007         (cgraph_remove_function_insertion_hook): Same.
22008         (cgraph_call_function_insertion_hooks): Same.
22009
22010 2010-04-01  Richard Guenther  <rguenther@suse.de>
22011
22012         PR middle-end/43614
22013         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
22014         and TREE_THIS_VOLATILE.
22015         (copy_ref_info): Likewise.
22016         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
22017         * tree.c (build6_stat): Ignore side-effects of all but arg5
22018         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
22019         TARGET_MEM_REF.
22020
22021 2010-04-01  Richard Guenther  <rguenther@suse.de>
22022
22023         PR tree-optimization/43607
22024         * ipa-type-escape.c (check_call): Do not access non-existing
22025         arguments.
22026
22027 2010-04-01  Richard Guenther  <rguenther@suse.de>
22028
22029         PR middle-end/43602
22030         Revert
22031         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22032                     Jack Howarth  <howarth@bromo.med.uc.edu>
22033
22034         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22035         variables TLS.
22036
22037 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22038
22039         * doc/install.texi (Prerequisites): Document libelf usability on
22040         IRIX 5/6 and Solaris 2.
22041         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
22042         Update GNU as, GNU ld requirements.
22043         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
22044         Document Sun Studio compiler download.
22045         Update and simplify as, ld recommendations.
22046         (Specific, *-*-solaris2.7): Note obsoletion, removal.
22047
22048 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22049
22050         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
22051         with_tune_32 to pentium4.
22052
22053 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
22054
22055         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
22056
22057 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22058
22059         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
22060         obsoletion, removal.
22061         Update IDO URL.
22062         Document GNU as requirement.
22063         Update configure requirements.
22064         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
22065         Recomment IRIX 6.5.18+.
22066         Document IDF/IDL requirement.
22067         Document GNU as requirement.
22068         Document GNU ld bootstrap failure.
22069         Remove freeware.sgi.com reference.
22070
22071 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22072
22073         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
22074         UNIX V4.0, V5.0 obsoletion, removal.
22075         Remove --with-gc=simple reference.
22076         Update VM requirements during bootstrap.
22077         Remove -oldas bootstrap description.
22078         Update binutils reference.
22079         Remove comparison failure note.
22080
22081 2010-03-31  Richard Guenther  <rguenther@suse.de>
22082             Zdenek Dvorak  <ook@ucw.cz>
22083             Sebastian Pop  <sebastian.pop@amd.com>
22084
22085         PR middle-end/43464
22086         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
22087         with multiple arguments.
22088         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
22089
22090 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22091
22092         * graphite-dependences.c (print_pddr): Call print_pdr with an
22093         extra argument.
22094         * graphite-poly.c (debug_pdr): Add an extra argument for the
22095         verbosity level.
22096         (print_pdr): Same.
22097         (print_pbb_domain): Same.
22098         (print_pbb): Same.
22099         (print_scop_context): Same.
22100         (print_scop): Same.
22101         (print_cloog): Same.
22102         (debug_pbb_domain): Same.
22103         (debug_pbb): Same.
22104         (print_pdrs): Same.
22105         (debug_pdrs): Same.
22106         (debug_scop_context): Same.
22107         (debug_scop): Same.
22108         (debug_cloog): Same.
22109         (print_scop_params): Same.
22110         (debug_scop_params): Same.
22111         (print_iteration_domain): Same.
22112         (print_iteration_domains): Same.
22113         (debug_iteration_domain): Same.
22114         (debug_iteration_domains): Same.
22115         (print_scattering_function): Same.
22116         (print_scattering_functions): Same.
22117         (debug_scattering_function): Same.
22118         (debug_scattering_functions): Same.
22119         * graphite-poly.h (debug_pdr): Update declaration.
22120         (print_pdr): Same.
22121         (print_pbb_domain): Same.
22122         (print_pbb): Same.
22123         (print_scop_context): Same.
22124         (print_scop): Same.
22125         (print_cloog): Same.
22126         (debug_pbb_domain): Same.
22127         (debug_pbb): Same.
22128         (print_pdrs): Same.
22129         (debug_pdrs): Same.
22130         (debug_scop_context): Same.
22131         (debug_scop): Same.
22132         (debug_cloog): Same.
22133         (print_scop_params): Same.
22134         (debug_scop_params): Same.
22135         (print_iteration_domain): Same.
22136         (print_iteration_domains): Same.
22137         (debug_iteration_domain): Same.
22138         (debug_iteration_domains): Same.
22139         (print_scattering_function): Same.
22140         (print_scattering_functions): Same.
22141         (debug_scattering_function): Same.
22142         (debug_scattering_functions): Same.
22143
22144 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22145
22146         * graphite-poly.c (print_scattering_function_1): New.
22147         (print_scattering_function): Call it.
22148         (print_scop_params): Remove spaces at the end of lines.
22149         (print_cloog): New.
22150         (debug_cloog): New.
22151         * graphite-poly.h (print_cloog): Declared.
22152         (debug_cloog): Declared.
22153
22154 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22155
22156         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
22157         in loop->header.
22158         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
22159         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
22160         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
22161         to switch between adding the IV bump in loop->latch or in loop->header.
22162
22163 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
22164
22165         * graphite-poly.c (print_scattering_function): Pretty print following
22166         the scoplib format.
22167         (print_pdr): Same.
22168         (print_pbb_domain): Same.
22169         (dump_gbb_cases): Same.
22170         (dump_gbb_conditions): Same.
22171         (print_pdrs): Same.
22172         (print_pbb): Same.
22173         (print_scop_params): Same.
22174         (print_scop_context): Same.
22175         (print_scop): Same.
22176         (print_pbb_body): New.
22177         (lst_indent_to): New.
22178         (print_lst): Start new lines with a #.
22179         * graphite-poly.h (pbb_bb): New.
22180         (pbb_index): Use pbb_bb.
22181         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
22182         disjuncts.
22183         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
22184
22185 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
22186
22187         * dwarf2out.c (size_of_die): For -gdwarf-4 use
22188         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
22189         and 0 instead of 1 for dw_val_class_flag.
22190         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
22191         dw_val_class_range_list, dw_val_class_loc_list,
22192         dw_val_class_lineptr and dw_val_class_macptr, use
22193         DW_FORM_flag_present for dw_val_class_flag and
22194         DW_FORM_exprloc for dw_val_class_loc.
22195         (output_die): For -gdwarf-4 print dw_val_class_loc
22196         size as uleb128 instead of 1 or 2 bytes and don't print
22197         anything for dw_val_class_flag.
22198
22199         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
22200         instead of cselib_lookup following by tweaking locs->setting_insn.
22201
22202         PR bootstrap/43596
22203         * cselib.c (cselib_process_insn): Clear cselib_current_insn
22204         even before returning from label, setjmp call or volatile asm
22205         handling.
22206
22207 2010-03-31  Richard Guenther  <rguenther@suse.de>
22208
22209         PR middle-end/43600
22210         * cgraphunit.c (cgraph_output_in_order): Do not allocate
22211         temporary data on stack.
22212
22213 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22214
22215         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
22216         (PUSHSECTION_ASM_OP): Remove.
22217         (POPSECTION_ASM_OP): Remove.
22218         (PUSHSECTION_FORMAT): Remove.
22219         * config/sol2.h (PUSHSECTION_FORMAT): Define.
22220         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
22221         * config/sol2.c (solaris_output_init_fini): Use it.
22222
22223 2010-03-31  Jie Zhang  <jie@codesourcery.com>
22224
22225         PR 43574
22226         * opt-functions.awk (var_type_struct): Use signed char type
22227         for simple variables.
22228
22229 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22230
22231         * config/sol2.c: Include output.h.
22232         (solaris_assemble_visibility): New function.
22233         * config/t-sol2 (sol2.o): Add output.h dependency.
22234         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
22235         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
22236         Redefine.
22237
22238 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
22239
22240         PR target/43580
22241         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
22242         V2SImode or XFmode on PRE_DEC.
22243
22244         PR debug/43557
22245         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
22246         BLKmode.
22247
22248 2010-03-31  Jie Zhang  <jie@codesourcery.com>
22249
22250         PR 43562
22251         * reload.h (caller_save_initialized_p): Declare.
22252         * toplev.c (backend_init_target): Don't call
22253         init_caller_save but set caller_save_initialized_p to false.
22254         * caller-save.c (caller_save_initialized_p): Define.
22255         (init_caller_save): Check caller_save_initialized_p.
22256         * ira.c (ira): Call init_caller_save if flag_caller_saves.
22257
22258 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22259
22260         PR target/39048
22261         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
22262         and soft-fp/t-softfp to tmake_file.
22263         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
22264         (LIBGCC2_TF_CEXT): Define.
22265         (TF_SIZE): Define.
22266
22267 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
22268
22269         PR debug/42977
22270         * cselib.c (n_useless_values): Document handling of debug locs.
22271         (n_useless_debug_values, n_debug_values): New variables.
22272         (new_elt_loc_list): Don't add to debug values, keep count.
22273         (promote_debug_loc): New.
22274         (cselib_reset_table): Zero new variables.
22275         (entry_and_rtx_equal_p): Promote debug locs.
22276         (discard_useless_locs): Increment n_useless_debug_values for
22277         debug values.
22278         (remove_useless_values): Adjust n_useless_values and n_debug_values
22279         with n_useless_debug_values.
22280         (add_mem_for_addr): Promote debug locs.
22281         (cselib_lookup_mem): Likewise.
22282         (cselib_lookup_addr): Renamed to...
22283         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
22284         (cselib_log_lookup): ... this.  Turn into...
22285         (cselib_lookup_addr): ... new wrapper.
22286         (cselib_lookup_from_insn): New.
22287         (cselib_invalidate_regno): Increment n_useless_debug_values for
22288         debug values.
22289         (cselib_invalidate_mem): Likewise.
22290         (cselib_process_insn): Take n_deleted and n_debug_values into
22291         account to guard remove_useless_value call.
22292         (cselib_finish): Zero n_useless_debug_values.
22293         * cselib.h (cselib_lookup_from_insn): Declare.
22294         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
22295         (sched_analyze_2): Likewise.
22296
22297 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
22298
22299         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
22300         functions.
22301         (adjust_mems): Replace narrowing SUBREG of expression containing
22302         just PLUS, MINUS, MULT and ASHIFT of registers and constants
22303         with operations in the narrower mode.
22304
22305         PR debug/43593
22306         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
22307         regs_invalidated_by_call instead all call_used_reg_set registers.
22308
22309 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
22310
22311         PR middle-end/43430
22312         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
22313         pointer comparisons with types_compatible_p.
22314         * tree-vect-stmts.c (vectorizable_call): Same.
22315         (vectorizable_condition): Same.
22316
22317 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22318
22319         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
22320         stack check if the mask would be zero.
22321
22322 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
22323             Jack Howarth  <howarth@bromo.med.uc.edu>
22324
22325         * tree-profile.c (tree_init_ic_make_global_vars): Make static
22326         variables TLS.
22327
22328 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
22329
22330         PR other/25232
22331         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
22332         and __unordtf2.
22333         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
22334         Include ___unordxf2 and ___unordtf2.
22335         * config/i386/libgcc-glibc.ver: Do not define inheritance from
22336         GCC_4.4.0 here.
22337
22338 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
22339
22340         * config/lm32/t-lm32: New file.
22341         * config.gcc: Use the above file when targetting lm32.
22342
22343 2010-03-28  Duncan Sands  <baldrick@free.fr>
22344
22345         * Makefile.in (PLUGIN_HEADERS): Add except.h.
22346
22347 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22348
22349         PR middle-end/43431
22350         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
22351         Improve vectorization cost model diagnostic.
22352
22353 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
22354
22355         PR middle-end/43436
22356         * tree-vect-data-refs.c (vect_analyze_data_refs): When
22357         compute_data_dependences_for_loop returns false, early exit
22358         and output an extra diagnostic for the failed data reference
22359         analysis.
22360
22361 2010-03-29  Richard Guenther  <rguenther@suse.de>
22362
22363         PR tree-optimization/43560
22364         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
22365         (can_sm_ref_p): Treat stores to readonly locations as trapping.
22366
22367 2010-03-29  Jie Zhang  <jie@codesourcery.com>
22368
22369         PR 43564
22370         * toplev.c (process_options): Set optimization_default_node
22371         and optimization_current_node.
22372         * opts.c (decode_options): Don't set optimization_default_node
22373         and optimization_current_node.
22374
22375 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
22376
22377         * config/rtems.h: Abandon -qrtems_debug.
22378
22379 2010-03-28  Jan Hubicka  <jh@suse.cz>
22380
22381         PR tree-optimization/43505
22382         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
22383         map should not be copied.
22384
22385 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22386
22387         PR middle-end/41674
22388         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
22389         cdtors, set DECL_PRESERVE_P.
22390         * ipa.c (cgraph_externally_visible_p): Return true if declaration
22391         should be preseved.
22392
22393 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
22394
22395         PR tree-optimization/43528
22396         * stor-layout.c (place_field): Check that constant fits into
22397         unsigned HWI when skipping calculation of MS bitfield layout.
22398
22399 2010-03-27  Jan Hubicka  <jh@suse.cz>
22400
22401         PR middle-end/43391
22402         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
22403         notice_global_symbol work.
22404
22405 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
22406
22407         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
22408         instead of dwarf2out_decl.
22409         (struct var_loc_node): Remove section_label field.
22410         (dwarf2out_function_decl): New function.
22411         (dwarf2out_var_location): Don't set section_label field.
22412         (dwarf2out_begin_function): Don't empty decl_loc_table here.
22413
22414 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
22415
22416         PR tree-optimization/43544
22417         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
22418         First argument for builtin vectorized function hook is now a
22419         tree to be able to distinguish between machine specific and
22420         standard builtins.
22421         * targhooks.c (default_builtin_vectorized_function): Ditto.
22422         * targhooks.h (default_builtin_vectorized_function): Ditto.
22423         * target.h (struct gcc_target): Ditto.
22424         * tree-vect-stmts.c (vectorizable_function): Ditto.
22425         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
22426         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
22427         Ditto.
22428
22429 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
22430
22431         PR c/43381
22432         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
22433         nested binding iff it is a FUNCTION_DECL.
22434         (store_parm_decls_newstyle): Pass nested=true to bind for
22435         FUNCTION_DECLs amongst parameters.
22436
22437 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22438
22439         * var-tracking.c (vt_expand_loc_callback): Don't run
22440         cselib_expand_value_rtx_cb in dummy mode if
22441         cselib_dummy_expand_value_rtx_cb returned false.
22442
22443         * var-tracking.c (emit_note_insn_var_location): For one part
22444         notes with offset 0, don't add EXPR_LIST around the location.
22445         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
22446         add_location_or_const_value_attribute): Adjust for that change.
22447
22448         PR debug/43540
22449         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
22450         into first operand and location into second.
22451         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
22452         dw_cfi_oprnd_loc for DW_CFA_expression.
22453         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
22454         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
22455         assume first argument is regnum and second argument is location.
22456
22457 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22458
22459         PR target/42113
22460         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
22461         of scratch register to DImode.  Split to DImode comparison operator.
22462         Use SImode subreg of scratch register in the multiplication.
22463         (*cmp_sadd_sidi): Ditto.
22464         (*cmp_ssub_si): Ditto.
22465         (*cmp_ssub_sidi): Ditto.
22466
22467 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
22468
22469         PR target/43524
22470         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
22471         Remove invalid assert and wrong comment.
22472
22473 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
22474
22475         PR debug/43516
22476         * flags.h (final_insns_dump_p): New extern.
22477         * final.c (final_insns_dump_p): New variable.
22478         (rest_of_clean_state): Set it before -fdump-final-insns=
22479         dumping, clear afterwards.
22480         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
22481         MEM_ALIAS_SET on MEMs.
22482
22483 2010-03-26  David S. Miller  <davem@davemloft.net>
22484
22485         * configure.ac: Fix sparc GOTDATA_OP bug check.
22486         * configure: Rebuild.
22487
22488 2010-03-26  Alan Modra  <amodra@gmail.com>
22489
22490         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
22491
22492 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22493
22494         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
22495         TLS_SECTION_ASM_FLAG.
22496
22497 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
22498
22499         PR bootstrap/43511
22500         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
22501         Clear first_function_block_is_cold.
22502
22503         PR c/43385
22504         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
22505         argument if the argument is truth_value_p.
22506
22507 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
22508
22509         * config/rs6000/constraints.md: Update copyright year for my changes.
22510
22511         PR target/43484
22512         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
22513         used in reg+reg addressing, swap registers.
22514
22515 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22516
22517         PR debug/43293
22518         * target.h (struct gcc_target): Add code_end hook.
22519         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
22520         if not yet defined.
22521         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
22522         * toplev.c (compile_file): Call targetm.asm_out.code_end
22523         hook before unwind info/debug info output.
22524         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
22525         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
22526         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22527         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
22528         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
22529         * config/i386/i386.c (ix86_file_end): Renamed to...
22530         (ix86_code_end): ... this.  Make static.  Don't call
22531         file_end_indicate_exec_stack.  Emit unwind info using
22532         final_start_function/final_end_function.
22533         (darwin_x86_file_end): Remove.
22534         (TARGET_ASM_CODE_END): Define.
22535         * config/i386/i386.h (TARGET_ASM_FILE_END,
22536         NEED_INDICATE_EXEC_STACK): Don't define.
22537         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
22538         (TARGET_ASM_FILE_END): Define to darwin_file_end.
22539         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
22540         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
22541
22542         PR target/43498
22543         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
22544         at the beginning and final_end_function at the end.
22545         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
22546
22547 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22548
22549         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
22550         and Sun as TLS syntax.
22551         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
22552         * configure: Regenerate.
22553         * config.in: Regenerate.
22554         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
22555         (default_elf_asm_named_section): Use it.
22556         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
22557         (i386_output_dwarf_dtprel): Likewise.
22558         (output_addr_const_extra): Likewise.
22559         (output_pic_addr_const): Lowercase @GOTTPOFF.
22560         (output_addr_const_extra): Likewise.
22561         (output_pic_addr_const): Lowercase @GOTNTPOFF.
22562         (output_addr_const_extra): Likewise.
22563         (output_pic_addr_const): Lowercase @INDNTPOFF.
22564         (output_addr_const_extra): Likewise.
22565         (output_pic_addr_const): Lowercase @NTPOFF.
22566         (output_addr_const_extra): Likewise.
22567         (output_pic_addr_const): Lowercase @TPOFF.
22568         (output_addr_const_extra): Likewise.
22569         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
22570         (*tls_global_dynamic_64): Likewise.
22571         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
22572         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
22573
22574         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
22575         (ASM_OUTPUT_TLS_COMMON): Use it.
22576         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
22577
22578         PR target/38118
22579         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
22580         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22581         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
22582         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
22583         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22584         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
22585
22586 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22587
22588         * config/i386/i386.c (override_options): Don't accept
22589         -mtls-dialect=sun any longer.
22590         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
22591         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
22592         (*tls_local_dynamic_base_32_sun): Likewise.
22593         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
22594
22595 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
22596
22597         PR debug/43508
22598         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
22599         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
22600
22601         PR debug/43479
22602         * ira.c (adjust_cleared_regs): New function.
22603         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
22604
22605         PR debug/19192
22606         PR debug/43479
22607         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
22608         from gimple_block.
22609         * expr.c (expand_expr_real): Restore previous
22610         curr_insn_source_location and curr_insn_block after
22611         expand_expr_real_1 call.
22612         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
22613         instead of expand_expr_real_1.
22614
22615 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
22616
22617         PR rtl-optimization/43413
22618         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
22619         hard regs too.
22620
22621 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
22622
22623         PR target/43348
22624         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
22625         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
22626
22627 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22628
22629         * config/i386/i386.c (ix86_target_string): Add -mfma.
22630         Fix a typo in comment.
22631
22632 2010-03-22  Mike Stump  <mikestump@comcast.net>
22633
22634         PR target/23071
22635         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
22636         Don't overly align based upon packed packed fields.
22637
22638 2010-03-22  Jason Merrill  <jason@redhat.com>
22639
22640         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
22641         Use () rather than [], and move before the element type.
22642
22643 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22644
22645         * doc/configfiles.texi (Configuration Files): Removed
22646         fixinc/Makefile*, intl/Makefile.*.
22647         * doc/makefile.texi: Fixed markup. Abstract from version
22648         control system used.
22649         (Makefile): Removed obsolete java/parse.y example.
22650         * doc/sourcebuild.texi: Likewise.
22651         (Top Level): Added config, gnattools, libdecnumber, libgcc,
22652         libgomp, libssp.  Removed fastjar.
22653         (Miscellaneous Docs): Clarify location.
22654         Added COPYING3, COPYING3.LIB.
22655         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
22656
22657 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22658
22659         PR target/38085
22660         * config/i386/i386.c (x86_function_profiler)
22661         [!NO_PROFILE_COUNTERS]: Fix typo.
22662         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
22663         instead of callq.
22664
22665 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
22666             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22667
22668         * doc/sourcebuild.texi (Test Directives): Split into six
22669         subsections, with most of the current text in new subsections
22670         Directives, Selectors, and Final Actions.
22671         (Directives): Split list of test directives into multiple
22672         subsubsections.
22673         (Selectors): Describe use and syntax of selectors.
22674         (Effective-Target Keywords): Describe all existing keywords.
22675         (Add Options): Describe features for dg-add-options.
22676         (Require Support): Describe variants of dg-require-support.
22677         (Final Actions): Describe commands to use in dg-final.
22678
22679 2010-03-22  Michael Matz  <matz@suse.de>
22680
22681         PR middle-end/43475
22682         * recog.c (validate_replace_rtx_group): Replace also in
22683         REG_EQUAL and REG_EQUIV notes.
22684
22685 2010-03-22  Richard Guenther  <rguenther@suse.de>
22686
22687         PR tree-optimization/43390
22688         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
22689         sure vector extracts are type correct.
22690
22691 2010-03-22  Richard Guenther  <rguenther@suse.de>
22692
22693         PR middle-end/40106
22694         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
22695         x * sqrt (x) even when optimizing for size if the target
22696         has native support for sqrt.
22697
22698 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
22699
22700         * varasm.c (make_decl_rtl_for_debug): Also clear
22701         flag_mudflap for the duration of make_decl_rtl call.
22702
22703         PR debug/43443
22704         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
22705         locs from preserved VALUEs.
22706
22707 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22708
22709         PR middle-end/42718
22710         * pa.md (movmemsi): Set align to one if zero.
22711         (movmemdi): Likewise.
22712
22713 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
22714
22715         PR target/42321
22716         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
22717         with their corresponding prologue pushes.
22718
22719 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
22720
22721         PR target/43156
22722         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
22723         at the begining or end.
22724         (spu_expand_epilogue): Likewise.
22725
22726 2010-03-20  Richard Guenther  <rguenther@suse.de>
22727
22728         PR rtl-optimization/43438
22729         * combine.c (make_extraction): Properly zero-/sign-extend an
22730         extraction of the low part of a CONST_INT.  Also handle
22731         CONST_DOUBLE.
22732
22733 2010-03-19  Mike Stump  <mikestump@comcast.net>
22734
22735         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
22736         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
22737         (override_options): Use SUBTARGET32_DEFAULT_CPU.
22738
22739 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
22740
22741         PR c/43211
22742         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
22743         an error.
22744
22745 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
22746
22747         PR rtl-optimization/42258
22748         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
22749         use that may match DEF.
22750
22751         PR target/40697
22752         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
22753         the cost of loading the constant rather than assuming
22754         COSTS_N_INSNS (1).
22755         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
22756         outer code is AND, do the same tests as the andsi3 expander and
22757         return COSTS_N_INSNS (1) if and is cheap.
22758
22759         * optabs.c (avoid_expensive_constant): Fix formatting.
22760
22761 2010-03-19  Michael Matz  <matz@suse.de>
22762
22763         PR c++/43116
22764         * attribs.c (decl_attributes): When rebuilding a function pointer
22765         type use the same qualifiers as the original pointer type.
22766
22767 2010-03-19  Martin Jambor  <mjambor@suse.cz>
22768
22769         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
22770         and is_gimple_ip_invariant_address.
22771
22772 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22773
22774         Revert
22775         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22776
22777         * config/arm/arm.c (arm_override_options): Turn off
22778         flag_dwarf2_cfi_asm for AAPCS variants.
22779
22780 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22781
22782         PR target/43399
22783         * config/arm/arm.c (emit_multi_reg_push): Update comments.
22784         Use PRE_MODIFY instead of PRE_DEC.
22785         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
22786         (vfp_emit_fstmd): Likewise.
22787
22788 2010-03-19  Michael Matz  <matz@suse.de>
22789
22790         PR target/43305
22791         * builtins.c (expand_builtin_interclass_mathfn,
22792         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
22793         if that fails.
22794
22795 2010-03-19  Richard Guenther  <rguenther@suse.de>
22796
22797         PR tree-optimization/43415
22798         * tree-ssa-pre.c (phi_translate): Split out worker to ...
22799         (phi_translate_1): ... this.
22800         (phi_translate): Move all caching here.  Cache all NARY
22801         and REFERENCE translations.
22802
22803 2010-03-19  David S. Miller  <davem@davemloft.net>
22804
22805         With help from Eric Botcazou.
22806         * config/sparc/sparc.c: Include dwarf2out.h.
22807         (emit_pic_helper): Delete.
22808         (pic_helper_symbol_name): Delete.
22809         (pic_helper_emitted_p): Delete.
22810         (pic_helper_needed): New.
22811         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
22812         (get_pc_thunk_name): New.
22813         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
22814         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
22815         Set pic_helper_needed to true.  Don't call emit_pic_helper.
22816         (sparc_expand_prologue): Update load_pic_register call.
22817         (sparc_output_mi_thunk): Likewise.
22818         (sparc_file_end): Emit a hidden comdat symbol for the PIC
22819         thunk if possible.  Output CFI information as needed.
22820
22821 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
22822             Jack Howarth  <howarth@bromo.med.uc.edu>
22823
22824         PR target/36399
22825         * config/i386/i386.h: Fix ABI on darwin x86-32.
22826
22827 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
22828
22829         * tree.h: Declare make_decl_rtl_for_debug.
22830         * varasm.c (make_decl_rtl_for_debug): New.
22831         * dwarf2out.c (rtl_for_decl_location): Call it.
22832         * cfgexpand.c (expand_debug_expr): Call it.
22833
22834 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22835
22836         PR bootstrap/43399
22837         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
22838         mem_mode.
22839
22840         PR bootstrap/43403
22841         * var-tracking.c (vt_init_cfa_base): Do nothing if
22842         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
22843
22844 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
22845
22846         PR debug/42873
22847         * var-tracking.c (canonicalize_vars_star): New.
22848         (dataflow_post_merge_adjust): Use it.
22849
22850 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
22851
22852         PR debug/43058
22853         * var-tracking.c (non_suitable_const): New function.
22854         (add_uses): For DEBUG_INSNs with constants, don't record any
22855         value, instead just the constant value itself.
22856         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
22857         is not VAR_LOC_UNKNOWN_P, set var to the constant.
22858         (emit_notes_in_bb): Likewise.
22859         (emit_note_insn_var_location): For onepart variables if
22860         cur_loc is a VOIDmode constant, use DECL_MODE.
22861
22862 2010-03-18  Martin Jambor  <mjambor@suse.cz>
22863
22864         PR middle-end/42450
22865         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
22866         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
22867         all non-clones.  Moved call redirection...
22868         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
22869         (cgraph_materialize_all_clones): Dispose of all
22870         combined_args_to_skip bitmaps.
22871         (verify_cgraph_node): Do not check for edges pointing to wrong
22872         nodes in inline clones.
22873         * tree-inline.c (copy_bb): Call
22874         cgraph_redirect_edge_call_stmt_to_callee.
22875         * ipa.c (cgraph_remove_unreachable_nodes): Call
22876         cgraph_node_remove_callees even when there are used clones.
22877
22878 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22879
22880         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
22881
22882 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
22883
22884         PR target/43383
22885         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
22886         for 32bit.
22887
22888 2010-03-18  Michael Matz  <matz@suse.de>
22889
22890         PR middle-end/43419
22891         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
22892         into sqrt(x) if we need to preserve signed zeros.
22893
22894 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
22895             Eric Botcazou  <ebotcazou@adacore.com>
22896
22897         PR rtl-optimization/43360
22898         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
22899         note if we don't know its invariant status.
22900
22901 2010-03-18  Michael Matz  <matz@suse.de>
22902
22903         PR tree-optimization/43402
22904         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
22905         PHI chains of ssa names registered for update.
22906
22907 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
22908
22909         PR target/42427
22910         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
22911         non-offsettable and pre_modify update addressing.
22912         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
22913         and "2" alternatives "#".
22914         (*movdd_softfloat32): Make all alternatives "#";
22915         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
22916         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
22917         (*movdf_softfloat32): Make all alternatives "#";
22918         (movdi): Use the new DIFD mode iterator to create a common splitter
22919         for movdi, movdf and movdd patterns.
22920
22921 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
22922
22923         * common.opt (dumpdir): Remove redundant tab.
22924
22925 2010-03-17  Martin Jambor  <mjambor@suse.cz>
22926
22927         PR tree-optimization/43347
22928         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
22929         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
22930
22931 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
22932
22933         PR rtl-optimization/42216
22934         * regrename.c (create_new_chain): New function, broken out from...
22935         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
22936         appending a use to an empty chain.
22937         (build_def_use): Remove previous changes that convert OP_INOUT to
22938         OP_OUT operands; instead detect the case where an OP_INOUT operand
22939         uses a previously untracked register and create an empty chain for it.
22940
22941 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22942
22943         * doc/extend.texi (Function Attributes): Rewrite unfinished
22944         sentence in ms_abi documentation.
22945
22946 2010-03-17  Alan Modra  <amodra@gmail.com>
22947
22948         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
22949         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
22950         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
22951         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
22952
22953 2010-03-16  Richard Henderson  <rth@redhat.com>
22954
22955         PR middle-end/43365
22956         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
22957         (lower_try_finally): Save and restore eh_seq around the expansion
22958         of the try-finally.
22959
22960 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22961
22962         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
22963         statements before splitting block.
22964
22965 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22966
22967         * doc/sourcebuild.texi (Testsuites): Fix markup.
22968         Use pathnames relative to gcc/testsuite.
22969         (Test Directives): Move description of how timeout is determined.
22970         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
22971         (C Tests): Correct gcc.misc-tests directory.
22972         Framework tests now live in gcc.test-framework.
22973
22974 2010-03-16  Richard Guenther  <rguenther@suse.de>
22975
22976         PR middle-end/43379
22977         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
22978         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
22979
22980 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
22981             Alexandre Oliva  <aoliva@redhat.com>
22982
22983         PR tree-optimization/42917
22984         * lambda-code.c (remove_iv): Skip debug statements.
22985         (lambda_loopnest_to_gcc_loopnest): Likewise.
22986         (not_interesting_stmt): Debug statements are not interesting.
22987
22988 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
22989
22990         PR debug/43051
22991         PR debug/43092
22992         * cselib.c (cselib_preserve_constants,
22993         cfa_base_preserved_val): New static variables.
22994         (preserve_only_constants): New function.
22995         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
22996         clear its REG_VALUES.  If cselib_preserve_constants, don't
22997         empty the whole hash table, but preserve there VALUEs with constants,
22998         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
22999         (cselib_preserve_cfa_base_value): New function.
23000         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
23001         (cselib_init): Change argument to int bitfield.  Set
23002         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
23003         is in it.
23004         (cselib_finish): Clear cselib_preserve_constants and
23005         cfa_base_preserved_val.
23006         * cselib.h (enum cselib_record_what): New enum.
23007         (cselib_init): Change argument to int.
23008         (cselib_preserve_cfa_base_value): New prototype.
23009         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
23010         * dse.c (dse_step1): Likewise.
23011         * cfgcleanup.c (thread_jump): Likewise.
23012         * sched-deps.c (sched_analyze): Likewise.
23013         * gcse.c (local_cprop_pass): Likewise.
23014         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
23015         If FN is non-NULL, call the callback always and whenever it returns
23016         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
23017         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
23018         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
23019         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
23020         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
23021         * var-tracking.c: Include recog.h.
23022         (bb_stack_adjust_offset): Remove.
23023         (vt_stack_adjustments): Don't call it, instead just gather the
23024         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
23025         (adjust_stack_reference): Remove.
23026         (compute_cfa_pointer): New function.
23027         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
23028         (struct adjust_mem_data): New type.
23029         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
23030         functions.
23031         (get_address_mode): New function.
23032         (replace_expr_with_values): Use it.
23033         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
23034         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
23035         (adjust_sets): Remove.
23036         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
23037         Use get_address_mode.
23038         (get_adjusted_src): Remove.
23039         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
23040         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
23041         (add_with_sets): Don't call adjust_sets.
23042         (fp_setter, vt_init_cfa_base): New functions.
23043         (vt_initialize): Change return type to bool.  Move most of pool etc.
23044         initialization to the beginning of the function from end.  Pass
23045         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
23046         If !frame_pointer_needed, call vt_stack_adjustment before mos
23047         vector is filled, call vt_init_cfa_base if argp/framep has been
23048         eliminated to sp.  If frame_pointer_needed and argp/framep has
23049         been eliminated to hard frame pointer, set
23050         hard_frame_pointer_adjustment and call vt_init_cfa_base after
23051         encountering fp setter in the prologue.  For MO_ADJUST, call
23052         log_op_type before pusing the op into mos vector, not afterwards.
23053         Call adjust_insn before cselib_process_insn/add_with_sets,
23054         call cancel_changes (0) afterwards.
23055         (variable_tracking_main_1): Adjust for vt_initialize calling
23056         vt_stack_adjustments and returning whether it succeeded or not.
23057
23058 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
23059
23060         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
23061         debug statements.
23062
23063 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
23064
23065         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
23066         has been set.
23067         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
23068         drap_reg has not been set.
23069
23070 2010-03-15  Michael Matz  <matz@suse.de>
23071
23072         PR middle-end/43300
23073         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
23074         use it to expand block copies.
23075         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
23076         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
23077         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
23078
23079 2010-03-15  Richard Guenther  <rguenther@suse.de>
23080
23081         PR tree-optimization/43367
23082         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
23083         elimination check.
23084
23085 2010-03-15  Richard Guenther  <rguenther@suse.de>
23086
23087         PR tree-optimization/43317
23088         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
23089
23090 2010-03-15  Martin Jambor  <mjambor@suse.cz>
23091
23092         PR tree-optimization/43141
23093         * tree-sra.c (create_abstract_origin): New function.
23094         (modify_function): Call create_abstract_origin.
23095
23096 2010-03-15  Chris Demetriou  <cgd@google.com>
23097
23098         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
23099         wasn't copied.
23100
23101 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23102
23103         PR middle-end/43354
23104         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
23105         call insert_out_of_ssa_copy for default definitions.
23106
23107 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23108
23109         * graphite-clast-to-gimple.c (my_long_long): Defined.
23110         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
23111         * graphite-sese-to-poly.c (my_long_long): Defined.
23112         (scop_ivs_can_be_represented): Use it.
23113
23114 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23115
23116         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
23117         graphite-max-bbs-per-function, and loop-block-tile-size.
23118         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
23119         with "maximum".
23120         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
23121
23122 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23123
23124         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
23125         forward declaration.
23126         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
23127         (add_upper_bounds_from_estimated_nit): New.
23128         (build_loop_iteration_domains): Use it.
23129
23130 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23131
23132         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
23133
23134 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23135
23136         PR middle-end/43306
23137         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
23138         should be an INTEGER_CST.  Also handle CASE_CONVERT.
23139
23140 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23141
23142         * graphite.c (graphite_initialize): To bound the number of bbs per
23143         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
23144         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
23145         * doc/invoke.texi: Document it.
23146
23147 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23148
23149         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
23150         * graphite-sese-to-poly.h (build_poly_scop): Same.
23151
23152 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
23153
23154         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
23155         the number of parameters in the scop.  Use as an upper bound
23156         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
23157         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
23158         * doc/invoke.texi: Document it.
23159
23160 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
23161
23162         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
23163         * doc/c-tree.texi: Remove.
23164         * doc/generic.texi: Merge c-tree.texi here.
23165         * doc/gccint.texi (Trees): Remove menu entry.
23166         (c-tree.texi): Remove @include.
23167         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
23168         * doc/languages.texi (Reading RTL): Ditto.
23169
23170 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
23171
23172         PR target/42869
23173         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
23174
23175 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
23176
23177         PR middle-end/42431
23178         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
23179         code added to work around reload clobbering CONST insns.
23180
23181 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
23182
23183         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
23184         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
23185         (cselib_preserve_only_values): Remove retain argument, don't
23186         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
23187         * cselib.h (cselib_preserve_only_values): Remove retain argument.
23188         * var-tracking.c (micro_operation): Move insn field before union.
23189         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
23190         (struct variable_tracking_info_def): Remove n_mos field, change
23191         mos into a vector of micro_operations.
23192         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
23193         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
23194         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
23195         changing into a vector.
23196         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
23197         come before all other uops generated by add_stores.
23198         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
23199         argument removal.
23200         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
23201         a vector.  Run just one pass over the bbs instead of separate counting
23202         and computation phase.
23203         (vt_finalize): Free VTI (bb)->mos vector instead of array.
23204
23205         PR debug/43329
23206         * tree-inline.c (remap_decls): Put old_var rather than origin_var
23207         into *nonlocalized_list vector.
23208         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
23209         even if origin is non-NULL.
23210         (gen_variable_die): Likewise.
23211         (process_scope_var): Don't change origin.
23212         (gen_decl_die): Likewise.
23213         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
23214         before adding new edges instead of after it, fix moving over
23215         debug stmts.
23216
23217 2010-03-11  David S. Miller  <davem@davemloft.net>
23218
23219         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
23220         of four.
23221         * configure: Rebuild.
23222
23223 2010-03-11  Martin Jambor  <mjambor@suse.cz>
23224
23225         PR tree-optimization/43257
23226         * tree.c (assign_assembler_name_if_neeeded): New function.
23227         (free_lang_data_in_cgraph): Assembler name assignment moved to the
23228         above new function.
23229         * tree.h (assign_assembler_name_if_neeeded): Declare.
23230         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
23231         the function if needed.
23232
23233 2010-03-11  Chris Demetriou  <cgd@google.com>
23234
23235         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
23236         include/stdint-gcc.h, and include/stdint.h world-readable.
23237
23238 2010-03-11  Richard Guenther  <rguenther@suse.de>
23239
23240         PR tree-optimization/43255
23241         * tree-vrp.c (process_assert_insertions_for): Do not insert
23242         asserts for trivial conditions.
23243
23244 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23245
23246         PR tree-optimization/43280
23247         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
23248         generation.  Move calculation of size out of the if branch.
23249         (find_bswap): Modify compare number generation.
23250
23251 2010-03-11  Richard Guenther  <rguenther@suse.de>
23252
23253         PR lto/43200
23254         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
23255         (input_gimple_stmt): Fixup handled component types during
23256         operand read.  Also fix up decls in ADDR_EXPRs.
23257
23258 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
23259
23260         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
23261         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
23262
23263 2010-03-10  Jan Hubicka  <jh@suse.cz>
23264
23265         PR c/43288
23266         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
23267         * varasm.c (get_variable_section): Don't do that here...
23268         (make_decl_rtl): ... and here.
23269         (do_assemble_alias): Produce decl RTL.
23270         (assemble_alias): Likewise.
23271
23272 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
23273
23274         PR debug/43290
23275         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
23276         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
23277         of fde->vdrap_reg.
23278         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
23279         (based_loc_descr): Only express drap or vdrap regno based expressions
23280         using DW_OP_fbreg when not optimizing.
23281         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
23282         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
23283         REG_CFA_SET_VDRAP note.
23284
23285 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
23286
23287         PR tree-optimization/43236
23288         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
23289         error in calculation of base address in reverse iteration case.
23290         (generate_builtin): Take number of latch executions if the statement
23291         is in the latch.
23292
23293 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
23294
23295         PR middle-end/42859
23296         * tree-eh.c: Include pointer-set.h.
23297         (lower_eh_dispatch): Filter out duplicate case labels and
23298         remove the unneeded edge when the label is unused.  Return
23299         true when some edges are removed.
23300         (execute_lower_eh_dispatch): When any lowering resulted in
23301         removing an edge, also delete unreachable blocks.
23302
23303 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
23304
23305         PR bootstrap/43287
23306         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
23307         UNSPEC_MACHOPIC_OFFSET.
23308
23309 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
23310
23311         PR target/43294
23312         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
23313         (m68k_delegitimize_address): New function.
23314
23315 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
23316
23317         PR debug/43299
23318         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
23319
23320         PR debug/43299
23321         * var-tracking.c (adjust_sets): New function.
23322         (count_with_sets, add_with_sets): Use it.
23323         (get_adjusted_src): New inline function.
23324         (add_stores): Use it.
23325
23326         PR debug/43304
23327         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
23328         call cselib_dummy_expand_value_rtx_cb instead of
23329         cselib_expand_value_rtx_cb.
23330
23331         PR debug/43293
23332         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
23333         * config/i386/i386.c: Include debug.h and dwarf2out.h.
23334         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
23335         and .cfi_endproc around the pic thunks.
23336         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
23337         all queued unwind info register saves are saved before the call.
23338         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
23339         considered as sp-=4 for unwind info and the pop as sp+=4 which
23340         also clobbers dest, but doesn't actually restore it.
23341
23342         PR debug/43290
23343         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
23344         RTX_FRAME_RELATED_P.
23345
23346 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23347
23348         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
23349         whitespaces in output template.
23350
23351 2010-03-09  Jie Zhang  <jie@codesourcery.com>
23352
23353         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
23354         out array boundary.
23355
23356 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23357
23358         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
23359         builtins.exp in a separate job.
23360
23361 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23362
23363         * graphite-sese-to-poly.c (add_param_constraints): Use
23364         lower_bound_in_type and upper_bound_in_type.
23365
23366 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23367
23368         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
23369         instead of unsigned_type_node.
23370
23371 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23372             Reza Yazdani  <reza.yazdani@amd.com>
23373
23374         PR middle-end/43065
23375         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
23376         on pointer type parameters.
23377
23378 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23379
23380         PR middle-end/42644
23381         PR middle-end/42130
23382         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
23383         handle conversions from pointer to integers.
23384         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
23385         induction variable, to be able to work with code generated by CLooG.
23386         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
23387         (build_poly_scop): Bail out if we cannot codegen a loop.
23388
23389 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
23390
23391         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
23392         code generation with gloog_error.
23393
23394 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23395
23396         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
23397         Call fold_convert on all the returned values.
23398         (expand_scalar_variables_expr): Pass to
23399         expand_scalar_variables_ssa_name the type of the resulting expression.
23400
23401 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23402
23403         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
23404         ppl_min_for_le_pointset.
23405         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
23406         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
23407
23408 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23409
23410         * graphite-dependences.c (map_into_dep_poly): Removed.
23411         (dependence_polyhedron_1): Use combine_context_id_scat.
23412
23413 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23414
23415         * graphite-poly.h (struct poly_scattering): Add layout documentation.
23416         (struct poly_bb): Same.
23417         (combine_context_id_scat): New.
23418
23419 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23420
23421         PR middle-end/42326
23422         * sese.c (name_defined_in_loop_p): Return false for default
23423         definitions.
23424
23425 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23426
23427         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
23428         and clean up the logic.
23429
23430 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
23431
23432         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
23433         early return.
23434
23435 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
23436
23437         * var-tracking.c (remove_cselib_value_chains): Define only for
23438         ENABLE_CHECKING.
23439         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
23440         delete_slot_part, emit_notes_for_differences_1): Don't call
23441         remove_cselib_value_chains here.
23442         (set_slot_part, emit_notes_for_differences_2): Don't call
23443         add_cselib_value_chains here.
23444         (preserved_values): New vector.
23445         (preserve_value): New function.
23446         (add_uses, add_stores, vt_add_function_parameters): Use it
23447         instead of cselib_preserve_value.
23448         (changed_values_stack): New vector.
23449         (check_changed_vars_0): New function.
23450         (check_changed_vars_1, check_changed_vars_2): Use it.
23451         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
23452         changed_values_stack VALUEs.
23453         (vt_emit_notes): For all preserved_values call
23454         add_cselib_value_chains.  If ENABLE_CHECKING call
23455         remove_cselib_value_chains before verifying value_chains is empty.
23456         Initialize and free changed_values_stack.
23457         (vt_initialize): Initialize preserved_values.
23458         (vt_finalize): Free preserved_values.
23459
23460 2010-03-08  Richard Guenther  <rguenther@suse.de>
23461
23462         PR tree-optimization/43269
23463         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
23464         region detection.
23465
23466 2010-03-08  Martin Jambor  <mjambor@suse.cz>
23467
23468         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
23469         (ipa_is_param_called): Removed.
23470         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
23471         (ipa_print_node_params): Do not print the called flag.
23472         (ipa_write_node_info): Do not stream the called flag.
23473         (ipa_read_node_info): Likewise.
23474
23475 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
23476
23477         PR debug/43176
23478         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
23479         * cselib.c (struct expand_value_data): Add dummy field.
23480         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
23481         dummy to false.
23482         (cselib_dummy_expand_value_rtx_cb): New function.
23483         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
23484         any rtl.
23485         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
23486         * var-tracking.c: Include pointer-set.h.
23487         (variable): Change n_var_parts to char from int.  Add
23488         cur_loc_changed and in_changed_variables fields.
23489         (variable_canonicalize): Remove.
23490         (shared_var_p): New inline function.
23491         (unshare_variable): Maintain cur_loc_changed and
23492         in_changed_variables fields.  If var was in changed_variables,
23493         replace it there with new_var.  Just copy cur_loc instead of
23494         resetting it to something else.
23495         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
23496         (dataflow_set_union): Don't call variable_canonicalize.
23497         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
23498         of their DEBUG_EXPR_TREE_DECLs.
23499         (canonicalize_loc_order_check): Verify that cur_loc is NULL
23500         and in_changed_variables and cur_loc_changed is false.
23501         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
23502         and cur_loc_changed.  Don't update cur_loc here.
23503         (variable_merge_over_src): Don't call variable_canonicalize.
23504         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
23505         removing loc that is equal to cur_loc, clear cur_loc,
23506         set cur_loc_changed and ensure variable_was_changed is called.
23507         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
23508         compare pointers in cur_loc check, if it is equal to loc,
23509         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
23510         (variable_different_p): Remove compare_current_location argument,
23511         don't compare cur_loc.
23512         (dataflow_set_different_1): Adjust variable_different_p caller.
23513         (variable_was_changed): If dv had some var in changed_variables
23514         already, reset in_changed_variables flag for it and propagate
23515         cur_loc_changed over to the new variable.  On empty var
23516         always set cur_loc_changed.  Set in_changed_variables on whatever
23517         var is added to changed_variables.
23518         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
23519         Use shared_var_p.  When removing loc that is equal to cur_loc,
23520         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
23521         end, don't set it to something else, just call variable_was_changed.
23522         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
23523         loc being removed, clear cur_loc and set cur_loc_changed.
23524         Set cur_loc_changed if all locations have been removed.
23525         (struct expand_loc_callback_data): New type.
23526         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
23527         allocated.  Always create SUBREGs if simplify_subreg failed.
23528         Prefer to use cur_loc, when that fails and still in
23529         changed_variables (and seen first time) recompute it.  Set
23530         cur_loc_changed of variables which had to change cur_loc and
23531         compute elcd->cur_loc_changed if any of the subexpressions used
23532         had to change cur_loc.
23533         (vt_expand_loc): Adjust to pass arguments in
23534         expand_loc_callback_data structure.
23535         (vt_expand_loc_dummy): New function.
23536         (emitted_notes): New variable.
23537         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
23538         that weren't used for any other decl in current
23539         emit_notes_for_changes call call vt_expand_loc_dummy to update
23540         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
23541         first loc_chain location if NULL before.  Always use just
23542         cur_loc instead of first loc_chain location.  When cur_loc_changed
23543         is false, when not --enable-checking=rtl just don't emit any note.
23544         When rtl checking, compute the note and assert it is the same
23545         as previous note.  Clear cur_loc_changed and in_changed_variables
23546         at the end before removing from changed_variables.
23547         (check_changed_vars_3): New function.
23548         (emit_notes_for_changes): Traverse changed_vars to call
23549         check_changed_vars_3 on each changed var.
23550         (emit_notes_for_differences_1): Clear cur_loc_changed and
23551         in_changed_variables.  Recompute cur_loc of new_var.
23552         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
23553         (vt_emit_notes): Initialize and destroy emitted_notes.
23554
23555 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
23556
23557         PR rtl-optimization/42220
23558         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
23559         Use verify_reg_tracked to determine if we should use OP_OUT rather
23560         than OP_INOUT.
23561         (build_def_use): If we see an in-out operand for a register that we
23562         know nothing about, treat is an output if possible, fail the block if
23563         not.
23564
23565 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23566
23567         PR debug/42897
23568         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
23569         permanently.
23570
23571 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23572
23573         PR debug/42897
23574         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
23575         uses of relevant DEFs that are dead outside the loop too.
23576
23577 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
23578
23579         * var-tracking.c (dataflow_set_merge): Swap src and src2.
23580         Reverted:
23581         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
23582         PR debug/41371
23583         * var-tracking.c (values_to_unmark): New variable.
23584         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
23585         values_to_unmark vector.  Moved body to...
23586         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
23587         instead queue it into values_to_unmark vector.
23588         (vt_find_locations): Free values_to_unmark vector.
23589
23590 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
23591
23592         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
23593         (site.exp): Export them when plugins are enabled.
23594
23595 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
23596
23597         PR middle-end/42326
23598         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
23599         that contain scevs.
23600         (chrec_fold_multiply): Same.
23601
23602 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
23603
23604         PR c/43248
23605         * c-decl.c (build_compound_literal): Return early if init is
23606         an error_mark_node.
23607
23608 2010-03-04  Martin Jambor  <mjambor@suse.cz>
23609
23610         PR tree-optimization/43164
23611         PR tree-optimization/43191
23612         * tree-sra.c (type_consists_of_records_p): Reject records with
23613         zero-size bit-fields at the end.
23614
23615 2010-03-04  Mike Stump  <mikestump@comcast.net>
23616
23617         * Makefile.in (TAGS): Remove *.y.
23618
23619 2010-03-04  Richard Guenther  <rguenther@suse.de>
23620
23621         PR tree-optimization/40761
23622         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
23623         in reverse order.
23624         (my_rev_post_order_compute): New function.
23625         (init_pre): Call it.
23626
23627 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
23628
23629         PR middle-end/43209
23630         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
23631         decrease the cost of an IV candidate when the cost is infinite.
23632
23633 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23634
23635         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
23636         Use '3DNow!' for the extension of that name, ensure normal space
23637         after the string.
23638         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
23639
23640 2010-03-03  Jeff Law  <law@redhat.com>
23641
23642         * PR middle-end/32693
23643         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
23644         than gen_rtx_SUBREG.
23645         (extract_bit_field_1): Likewise.
23646
23647 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
23648
23649         * doc/sourcebuild.texi (Test directives): Document that arguments
23650         include-opts and exclude-opts are now optional for dg-skip-if,
23651         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
23652
23653 2010-03-03  Jason Merrill  <jason@redhat.com>
23654
23655         PR c++/12909
23656         * cgraph.h (varpool_node): Add extra_name field.
23657         * varpool.c (varpool_extra_name_alias): New.
23658         (varpool_assemble_decl): Emit extra name aliases.
23659         (varpool_mark_needed_node): Look past an extra name alias.
23660         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
23661         * lto-streamer-in.c (lto_input_tree): Read it.
23662         * lto-streamer-out.c (output_unreferenced_globals): Write it.
23663
23664 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
23665
23666         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
23667         (sparc*-*-solaris2*): ...this.
23668
23669 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
23670
23671         PR debug/43229
23672         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
23673         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
23674         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
23675         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
23676
23677         PR debug/43237
23678         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
23679         fallthrough to default handling, just with want_address 0 instead of 2.
23680         For single element lists, add_AT_loc directly, otherwise create an
23681         artificial variable DIE and stick location list to it.
23682
23683         PR debug/43177
23684         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
23685         (VAL_EXPR_HAS_REVERSE): Define.
23686         (reverse_op): New function.
23687         (add_stores): For reversible operations add an extra MO_VAL_USE.
23688
23689 2010-03-02  Jason Merrill  <jason@redhat.com>
23690
23691         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
23692
23693 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
23694
23695         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
23696         (sparc64-*-linux*): Likewise.
23697         (sparc64-*-solaris2*): Include assembler files before linker ones.
23698         (sparc-*-solaris2*): Simplify and reorder to match previous case.
23699         * config/sparc/gas.h: Delete.
23700         * config/sparc/sol2-64.h: Add copyright notice.
23701         * config/sparc/sol2-gas-bi.h: Likewise.
23702         * config/sparc/sol2-gld.h: Likewise.
23703         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
23704         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
23705         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
23706         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
23707         (sparc_elf_asm_named_section): Rename into...
23708         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
23709
23710 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
23711
23712         * config/alpha/alpha.c (override_options): Fix -mtune error message.
23713
23714 2010-03-02  Jeff Law  <law@redhat.com>
23715
23716         PR middle-end/42431
23717         * reload1.c (rtx_p, substitute_stack): Declare.
23718         (substitute): Record addresses of changed rtxs.
23719         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
23720         Restore the original rtx when complete.
23721         (reload): Free subsitute_stack when complete.
23722
23723 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
23724
23725         * doc/gccint.texi (menu): Add Testsuites as a chapter.
23726         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
23727         new chapter.
23728         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
23729         LTO Testing, gcov Testing, profopt Testing, compat Testing,
23730         Torture Tests): Change from subsection to section.
23731
23732 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
23733             Steven Bosscher  <steven@gcc.gnu.org>
23734
23735         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
23736         instead of bb.
23737
23738 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
23739
23740         PR middle-end/42640
23741         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
23742         the assignment from the new induction variable to the assignment
23743         of the value from the original loop PHI function.
23744
23745 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
23746             Daniel Jacobowitz  <dan@codesourcery.com>
23747
23748         * doc/sourcebuild.texi (Test directives): Clarify options to
23749         dg-skip-if.
23750
23751 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23752
23753         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
23754         Disable cfi directives unless GCC and gas agree on using read-only
23755         .eh_frame sections for 64-bit.
23756         * configure: Regenerate.
23757
23758 2010-03-01  Richard Guenther  <rguenther@suse.de>
23759
23760         PR tree-optimization/43220
23761         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
23762         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
23763
23764 2010-03-01  Richard Guenther  <rguenther@suse.de>
23765             Martin Jambor  <mjambor@suse.cz>
23766
23767         PR middle-end/41250
23768         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
23769         gimplified parameters.
23770
23771 2010-03-01  Christian Bruel  <christian.bruel@st.com>
23772
23773         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
23774
23775 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
23776
23777         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
23778
23779 2010-03-01  Richard Guenther  <rguenther@suse.de>
23780
23781         PR middle-end/43213
23782         * expr.c (expand_assignment): Use the alias-oracle to tell
23783         if the rhs aliases the result decl.
23784
23785 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23786
23787         PR pch/14940
23788         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
23789         to sol_gt_pch_get_address.
23790         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
23791         64-bit, SPARC and x86.
23792         (sol_gt_pch_get_address): New function.
23793
23794 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
23795
23796         * toplev.h (inform_n, error_n): Declare.
23797         * diagnostic.c (inform_n, error_n): New function.
23798
23799 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
23800
23801         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
23802         has no rtl yet when processing local_decls, queue it and recheck
23803         if deferred stack allocation hasn't assigned it rtl.
23804
23805 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
23806
23807         * config/sh/sh.c (unspec_bbr_uid): New.
23808         (gen_block_redirect): Use it instead of INSN_UID.
23809         (gen_far_branch): Likewise.
23810
23811 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
23812
23813         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
23814         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
23815
23816 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23817
23818         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
23819         (Warning Options): -Wno-conversion-null is valid for
23820         Objective-C++ as well.
23821         * doc/tm.texi (Named Address Spaces): Likewise.
23822         * doc/plugins.texi (Plugins): Replace TABs with spaces.
23823         * doc/tree-ssa.texi (Tree SSA): Likewise.
23824
23825 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23826
23827         PR bootstrap/43202
23828         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
23829         by default.  Don't set the default arch for
23830         i[34567]86-*-darwin*|x86_64-*-darwin*.
23831
23832 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23833
23834         PR bootstrap/43202
23835         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
23836         default.  Set the default 32bit/64bit archs with $with_arch
23837         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
23838
23839 2010-02-27  Richard Guenther  <rguenther@suse.de>
23840
23841         PR tree-optimization/43186
23842         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
23843         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
23844         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
23845         unroller iterations.
23846
23847 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
23848
23849         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
23850         required and i[34567]86-*-* targets don't support 64bit ISA.
23851
23852 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
23853
23854         PR ada/43096
23855         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
23856         the same alias set.
23857
23858 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23859
23860         * config.gcc: Set the default arch at least to Prescott for
23861         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
23862         if SSE math is enabled.
23863
23864 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23865
23866         * diagnostic.c (diagnostic_initialize): Update.
23867         (diagnostic_report_diagnostic): Test inhibit_notes_p for
23868         informative notes.
23869         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
23870         (diagnostic_inhibit_notes): New.
23871         * toplev.c (process_options): inhibit notes with -fcompare-debug.
23872
23873 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23874
23875         PR c/20631
23876         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
23877         * doc/standards.texi: Likewise.
23878         * doc/extend.texi: Likewise.
23879         * doc/trouble.texi: Likewise.
23880         * doc/cppopts.texi: Likewise.
23881         * doc/install.texi: Likewise.
23882         * c.opt (std=c90,std=gnu90): New options.
23883         * c-opts.c (c_common_handle_option): Handle them.
23884
23885 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23886
23887         PR c/24577
23888         * c-decl.c (undeclared_variable): Use an informative note.
23889
23890 2010-02-26  Richard Guenther  <rguenther@suse.de>
23891
23892         PR tree-optimization/43186
23893         * gimple.h (gimple_fold): Remove.
23894         * gimple.c (gimple_fold): Remove.  Inline into single user ...
23895         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
23896         Try harder for conditions.
23897
23898 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23899
23900         PR debug/43190
23901         * function.c (used_types_insert): Don't skip through named pointer
23902         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
23903         and it is different from the main variant's type.
23904
23905 2010-02-26  Nick Clifton  <nickc@redhat.com>
23906
23907         * config/rx/rx.md (sminsi3): Remove bogus alternative.
23908
23909 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
23910
23911         * config.gcc: Support --with-fpmath=sse for x86.
23912
23913         * config/i386/ssemath.h: New.
23914
23915         * doc/install.texi (--with-fpmath=sse): Documented.
23916
23917 2010-02-26  Richard Guenther  <rguenther@suse.de>
23918
23919         PR tree-optimization/43188
23920         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
23921         vector types of over-aligned element type.
23922
23923 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
23924
23925         PR target/43175
23926         * config/i386/i386.c (expand_vec_perm_blend): Use correct
23927         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
23928
23929 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
23930
23931         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
23932
23933 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
23934
23935         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
23936         * var-tracking.c: Include diagnostic.h.
23937         (debug_dv): New function.
23938         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
23939
23940         PR debug/43160
23941         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
23942         (add_value_chain, add_value_chains, remove_value_chain,
23943         remove_value_chains): Handle DEBUG_EXPRs.
23944         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
23945
23946         PR debug/43161
23947         * regcprop.c (struct queued_debug_insn_change): New type.
23948         (struct value_data_entry): Add debug_insn_changes field.
23949         (struct value_data): Add n_debug_insn_changes field.
23950         (debug_insn_changes_pool): New variable.
23951         (free_debug_insn_changes, apply_debug_insn_changes,
23952         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
23953         (kill_value_one_regno): Call free_debug_insn_changes if needed.
23954         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
23955         fields.
23956         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
23957         changes for them.
23958         (copyprop_hardreg_forward_1): Don't call apply_change_group for
23959         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
23960         changes, call cprop_find_used_regs via note_stores.
23961         (copyprop_hardreg_forward): When copying vd from predecessor
23962         which has any queued DEBUG_INSN changes, make sure the pointers are
23963         cleared.  At the end call df_analyze and then if there are any
23964         DEBUG_INSN changes queued at the end of some basic block for still
23965         live registers, apply them.
23966         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
23967
23968 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
23969
23970         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
23971         (arm*-*-*): Ditto.
23972
23973 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
23974
23975         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
23976         targets.  Set the default with_cpu/with_arch from arch/cpu.
23977         Allow x86-64 and native for with_cpu/with_arch.
23978
23979 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
23980
23981         * ebitmap.c: Change calls to verify_popcount with calls to
23982         sbitmap_verify_popcount.
23983         (ebitmap_clear_bit): Fixed map->cacheindex test and
23984         map>cache update when bit clearing results in an empty
23985         element.
23986
23987 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
23988
23989         PR target/43154
23990         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
23991         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
23992         and support both V2DF and V2DI modes.
23993         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
23994         support both V2DF and V2DI modes.
23995         (general): Delete trailing whitespace from a few patterns.
23996
23997         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23998         V2DF/V2DI interleave high/low builtins.
23999
24000         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
24001         new VSX builtins.
24002
24003         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
24004         interleave high/low functions.
24005
24006 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
24007
24008         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
24009         #pragma extern_prefix.
24010
24011 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
24012
24013         PR debug/43166
24014         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
24015         BLKmode, assert op0 is a MEM and just adjust its mode.
24016
24017         PR debug/43165
24018         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
24019         if bitpos isn't multiple of mode's bitsize.
24020
24021 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24022
24023         * c.opt (-ftemplate-depth=): New.
24024         (-ftemplate-depth-): Deprecate.
24025         * optc-gen.awk: Handle -ftemplate-depth=.
24026         * opth-gen.awk: Likewise.
24027         * c-opts.c (c_common_handle_option): Likewise.
24028         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
24029
24030 2010-02-24  Jason Merrill  <jason@redhat.com>
24031
24032         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
24033
24034 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24035
24036         * cfg.c (alloc_aux_for_block): Remove inline.
24037         (alloc_aux_for_edge): Likewise.
24038
24039 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24040
24041         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
24042
24043 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24044
24045         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
24046         * config/i386/sol2-gas.h: New file.
24047         * config.gcc (i[34567]86-*-solaris2*): Use it.
24048
24049 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24050
24051         PR c/43128
24052         * c-typeck.c (ep_convert_and_check): New.
24053         (build_conditional_expr): Use it.
24054         (build_binary_op): Likewise.
24055
24056 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
24057
24058         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
24059
24060         PR debug/43150
24061         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
24062         bounds even for -O+.
24063         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
24064         expr needs to have DECL_NAME set.
24065
24066 2010-02-24  Nick Clifton  <nickc@redhat.com>
24067
24068         * config/mep/mep.c: Include gimple.h.
24069         (mep_function_uses_sp): Delete unused function.
24070         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
24071         parameters.  Use unsigned integers to count args.  Return a
24072         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
24073
24074 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
24075
24076         PR target/43107
24077         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
24078         greater or equal to nelt instead of 2 * nelt.
24079         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
24080         with nelt - 1.
24081
24082 2010-02-23  Jason Merrill  <jason@redhat.com>
24083
24084         PR debug/42800
24085         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
24086         in cfun->local_decls even if they have register types.
24087
24088         PR c++/42837
24089         * stor-layout.c (place_field): Don't warn about unnecessary
24090         DECL_PACKED if the type is packed.
24091
24092 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
24093
24094         PR target/43139
24095         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
24096         GOTOFF relocs, even when the base reg isn't pic pointer.
24097
24098 2010-02-23  Michael Matz  <matz@suse.de>
24099
24100         PR debug/43077
24101         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
24102         (expand_gimple_basic_block): Generate and use debug temps if there
24103         are debug uses left after the last real use of TERed ssa names.
24104         Unlink debug immediate uses when they are expanded.
24105
24106 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24107
24108         PR 43123
24109         * config/i386/i386.c (override_options): Reorganise to provide
24110         better error messages.
24111
24112 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24113
24114         PR middle-end/43083
24115         * graphite-scop-detection.c (create_single_exit_edge): Move
24116         the call to find_single_exit_edge to....
24117         (create_sese_edges): ...here.  Don't handle multiple edges
24118         exiting the function.
24119         (build_graphite_scops): Don't handle multiple edges
24120         exiting the function.
24121
24122 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24123
24124         PR middle-end/43097
24125         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
24126         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
24127
24128 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
24129
24130         PR middle-end/43026
24131         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
24132
24133 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24134
24135         PR c++/43126
24136         * c-typeck.c (convert_arguments): Print declaration location.
24137         * c-common.c (validate_nargs): Rename as
24138         builtin_function_validate_nargs.
24139         (check_builtin_function_arguments): Update.
24140
24141 2010-02-22  Richard Guenther  <rguenther@suse.de>
24142
24143         PR lto/43045
24144         * tree-inline.c (declare_return_variable): Use the type of
24145         the call stmt lhs if available.
24146
24147 2010-02-22  Duncan Sands  <baldrick@free.fr>
24148
24149         * passes.c (register_pass): Always consider all pass lists when
24150         ref_pass_instance_number is zero.
24151
24152 2010-02-22  Richard Guenther  <rguenther@suse.de>
24153
24154         PR tree-optimization/42749
24155         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
24156         parameter.  Do arithmetic in the original type.
24157         (update_accumulator_with_ops): Likewise.
24158         (adjust_accumulator_values): Adjust.
24159
24160 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24161
24162         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
24163         (QI to BLKmode splitter): New splitter.
24164
24165 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
24166
24167         * config/i386/i386.c (initial_ix86_tune_features): Turn on
24168         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
24169
24170 2010-02-22  Richard Guenther  <rguenther@suse.de>
24171
24172         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
24173
24174 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
24175
24176         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
24177         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
24178         ($(T)crti.o, $(T)crtn.o): Remove rules.
24179
24180 2010-02-21  Tobias Burnus  <burnus@net-b.de>
24181
24182         PR fortran/35259
24183         * doc/invoke.texi (-fassociative-math): Document that this
24184         option is automatically enabled for Fortran.
24185
24186 2010-02-20  David S. Miller  <davem@davemloft.net>
24187
24188         * configure.ac: Test if linker and assembler properly support
24189         GOTDATA_OP relocations.
24190         * configure: Rebuild.
24191         * config.in: Likewise.
24192         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
24193         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
24194         (movsi_high_pic): Likewise.
24195         (movdi_lo_sum_pic): Likewise.
24196         (movdi_high_pic): Likewise.
24197         (movsi_pic_gotdata_op): New pattern.
24198         (movdi_pic_gotdata_op): Likewise.
24199         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
24200         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
24201
24202 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
24203
24204         PR target/43067
24205         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
24206         attribute to ssemul.
24207         (xop_mulv2div2di3_high): Ditto.
24208
24209 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24210
24211         PR c++/35669
24212         * c.opt (Wconversion-null): New option.
24213         * doc/invoke.texi (Wconversion-null): Document.
24214
24215 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24216
24217         * common.opt (Wlarger-than-): Add Undocumented.
24218
24219 2010-02-19  Mike Stump  <mikestump@comcast.net>
24220
24221         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
24222
24223 2010-02-19  Jason Merrill  <jason@redhat.com>
24224
24225         PR target/40332
24226         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
24227         * configure: Likewise.
24228
24229 2010-02-20  Alan Modra  <amodra@gmail.com>
24230
24231         PR middle-end/42344
24232         * cgraph.h (cgraph_make_decl_local): Declare.
24233         * cgraph.c (cgraph_make_decl_local): New function.
24234         (cgraph_make_node_local): Use it.
24235         * cgraphunit.c (cgraph_function_versioning): Likewise.
24236         * ipa.c (function_and_variable_visibility): Likewise.
24237
24238 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24239
24240         PR bootstrap/43121
24241         * except.c (sjlj_emit_function_enter): Don't call
24242         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
24243         directly.
24244         * rtl.h (add_reg_br_prob_note): Remove prototype.
24245
24246 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24247
24248         PR 41779
24249         * c-common.c (conversion_warning): Remove widening conversions
24250         before checking the conversion of integers to reals.
24251
24252 2010-02-19  Mike Stump  <mikestump@comcast.net>
24253
24254         PR middle-end/43125
24255         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
24256
24257         PR objc/43061
24258         * cgraphunit.c (process_function_and_variable_attributes): Check
24259         DECL_PRESERVE_P instead of looking up attribute "used".
24260         * ipa-pure-const.c (check_decl): Likewise.
24261         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
24262         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
24263         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
24264         instead of attribute "used".
24265         * config/sol2-c.c (solaris_pragma_init): Likewise.
24266         (solaris_pragma_fini): Likewise.
24267
24268 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24269
24270         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
24271         Use XCNEW instead of xcalloc.
24272         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
24273         XNEW instead of xmalloc.
24274         (get_fields): Use XNEWVEC instead of xmalloc.
24275
24276         PR debug/43084
24277         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
24278         populate vars array.
24279         (create_new_general_access): For debug stmts just reset value.
24280         (get_stmt_accesses): For accesses within debug stmts just record them
24281         using add_access_to_acc_sites instead of preventing the peeling or
24282         counting them as accesses.
24283
24284         PR middle-end/42233
24285         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
24286
24287 2010-02-19  Richard Guenther  <rguenther@suse.de>
24288
24289         PR tree-optimization/42916
24290         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
24291         instructions.
24292
24293 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
24294
24295         * configure.ac: Replace all uses of changequote in macro arguments
24296         with proper quoting.
24297
24298 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24299
24300         PR middle-end/42233
24301         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
24302
24303 2010-02-19  Richard Guenther  <rguenther@suse.de>
24304
24305         PR tree-optimization/42944
24306         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
24307         test for aliasing with errno.
24308
24309 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
24310
24311         PR middle-end/42233
24312         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
24313         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
24314         * dojump.c: Include output.h.
24315         (inv): New inline function.
24316         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
24317         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
24318         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
24319         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
24320         argument, pass it down to other calls.
24321         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
24322         add REG_BR_PROB note to the conditional jump.
24323         * cfgexpand.c (add_reg_br_prob_note): Removed.
24324         (expand_gimple_cond): Don't call it, add the probability
24325         as last argument to jumpif_1/jumpifnot_1.
24326         * Makefile.in (dojump.o): Depend on output.h.
24327         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
24328         callers.
24329         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
24330         * stmt.c (do_jump_if_equal): Likewise.
24331         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
24332         * loop-unswitch.c (compare_and_jump_seq): Likewise.
24333         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
24334         Likewise.
24335         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
24336         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
24337         jumpifnot_1 callers.
24338         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
24339         callers.
24340         (store_expr): Adjust jumpifnot caller.
24341         (store_constructor): Adjust jumpif caller.
24342
24343         PR middle-end/42233
24344         * gimplify.c (gimple_boolify): For __builtin_expect call
24345         gimple_boolify also on its first argument.
24346
24347 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
24348
24349         * configure.ac (gnu-unique-object): Wrap regexps using [] in
24350         changequote block.
24351         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
24352         * configure: Regenerated.
24353
24354 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24355
24356         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
24357         lang_hooks.types_compatible_p instead of comptypes.
24358
24359 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24360
24361         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
24362         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
24363         if __prefer_thumb__ is defined.
24364
24365 2010-02-18  Martin Jambor  <mjambor@suse.cz>
24366
24367         PR tree-optimization/43066
24368         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
24369         array with zero-sized element type.
24370
24371 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
24372
24373         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
24374         rtx, allocate struct var_loc_node here and return it to the
24375         caller, and only if it is actually needed.
24376         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
24377         move it earlier and return immediately if it returns NULL.
24378
24379 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
24380
24381         * config/sparc/gas.h: New file.  Restore
24382         TARGET_ASM_NAMED_SECTION to its ELF default.
24383         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
24384         check !HAVE_GNU_AS.
24385         * config/sparc/sparc.c (sparc_elf_asm_named_section):
24386         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
24387         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
24388         after sparc/sysv4.h.
24389
24390 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
24391
24392         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
24393
24394 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
24395
24396         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
24397         patterns from predicated pattern.
24398
24399 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
24400
24401         PR target/43103
24402         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
24403         for insn mnemonic suffix.
24404
24405 2010-02-17  Richard Guenther  <rguenther@suse.de>
24406
24407         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
24408         to loop PHI nodes.
24409
24410 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
24411
24412         PR debug/42918
24413         * caller-save.c (save_call_clobbered_regs): If BB ends with
24414         a DEBUG_INSN, move any notes in between last real insn and the last
24415         DEBUG_INSN after the last DEBUG_INSN.
24416
24417 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
24418
24419         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
24420         Fix return type.  Fix argument type.  Explain meaning of return value.
24421
24422 2010-02-16  Richard Guenther  <rguenther@suse.de>
24423
24424         PR tree-optimization/41043
24425         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
24426         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
24427         statements ...
24428         (vrp_visit_phi_node): ... but only for loop PHI nodes.
24429
24430 2010-02-16  Ira Rosen  <irar@il.ibm.com>
24431
24432         PR tree-optimization/43074
24433         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
24434         * tree-vect-loop.c (vect_analyze_loop_operations): Add
24435         vectorizable cycles in hybrid SLP check.
24436         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
24437
24438 2010-02-16  Richard Guenther  <rguenther@suse.de>
24439
24440         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
24441         (true_dependence): If memrefs_conflict_p computes must-alias
24442         trust it.  Move TBAA check after offset-based disambiguation.
24443         (canon_true_dependence): Likewise.
24444
24445 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
24446
24447         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
24448         * doc/invoke.texi: Document it.
24449         * var-tracking.c: Include toplev.h and params.h.
24450         (vt_find_locations): Return bool indicating success.  Compute
24451         hash sizes unconditionally.  Check new parameter, report.
24452         (variable_tracking_main_1): Check vt_find_locations results and
24453         retry.  Renamed from...
24454         (variable_tracking_main): ... this.  New wrapper to preserve
24455         flag_var_tracking_assignments.
24456         * Makefile.in (var-tracking.o): Adjust dependencies.
24457
24458 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
24459             Jakub Jelinek  <jakub@redhat.com>
24460
24461         PR target/42854
24462         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
24463         if weak_import attribute is present.
24464         * config/darwin.c (machopic_select_section): Likewise.
24465
24466 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
24467
24468         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
24469         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
24470         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
24471         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
24472
24473         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
24474         types.
24475
24476         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
24477         Fix argument types.
24478
24479         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
24480         Rewrite text to refer to the names.
24481
24482 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
24483
24484         * config/i386/i386-builtin-types.def
24485         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
24486         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
24487         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
24488         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
24489         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
24490         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
24491         IX86_BUILTIN_VPERMIL2PS256.
24492         (MULTI_ARG_4_DF2_DI_I): Defined.
24493         (MULTI_ARG_4_DF2_DI_I1): Defined.
24494         (MULTI_ARG_4_SF2_SI_I): Defined.
24495         (MULTI_ARG_4_SF2_SI_I1): Defined.
24496         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
24497         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
24498         __builtin_ia32_vpermil2ps256.
24499         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24500         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24501         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
24502         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
24503         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
24504         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
24505         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
24506         CODE_FOR_xop_vpermil2v8sf3.
24507         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
24508         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
24509         * config/i386/xopintrin.h (_mm_permute2_pd): New.
24510         (_mm256_permute2_pd): New.
24511         (_mm_permute2_ps): New.
24512         (_mm256_permute2_ps): New.
24513
24514 2010-02-15  Nick Clifton  <nickc@redhat.com>
24515
24516         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
24517         boolean parameters.  Use emit_jump_insn when emitting a pop
24518         instruction containing a return insn.
24519         (push): Use 'true' rather than '1' as second parameter to F.
24520         (h8300_expand_prologue): Likewise.
24521         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
24522         (h8300_expand_epilogue): Likewise.
24523
24524 2010-02-15  Richard Guenther  <rguenther@suse.de>
24525
24526         PR middle-end/43068
24527         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
24528         if that is zero.
24529
24530 2010-02-15  Nick Clifton  <nickc@redhat.com>
24531
24532         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
24533         delta.
24534
24535 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
24536
24537         * intl.c (fake_ngettext): New function.
24538         * intl.h (fake_ngettext): Declare.
24539         (ngettext): Define macro.
24540         * collect2.c (notice_translated): New function.
24541         (main): Use notice_translated and ngettext.
24542         * collect2.h (notice_translated): Declare.
24543
24544 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
24545
24546         * reorg.c (delete_computation): Comment fixes.
24547         * caller-save.c (setup_save_areas): Idem.
24548         * sel-sched-dump.c (dump_lv_set): Idem.
24549         * rtl.def: Idem.
24550
24551 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24552
24553         * config/s390/s390.c (s390_sched_init): New function.
24554         (TARGET_SCHED_INIT): Target hook defined.
24555
24556 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
24557             Jack Howarth  <howarth@bromo.med.uc.edu>
24558             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
24559
24560         PR target/42982
24561         Partial revert of unintended change in fix for PR41605.
24562         * config/darwin.h: Fix typo.
24563         * config/darwin9.h: Same.
24564
24565 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24566
24567         * c-pch.c (pch_init): Clear v.
24568
24569 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24570
24571         PR middle-end/42930
24572         * graphite-scop-detection.c (graphite_can_represent_scev): Call
24573         graphite_can_represent_init for MULT_EXPR.
24574
24575 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24576
24577         PR middle-end/42914
24578         PR middle-end/42530
24579         * graphite-sese-to-poly.c (remove_phi): New.
24580         (translate_scalar_reduction_to_array): Call remove_phi.
24581
24582 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24583
24584         PR middle-end/42771
24585         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
24586         * graphite-clast-to-gimple.h (gloog): Update declaration.
24587         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
24588         * graphite-poly.h (struct poly_bb): Add missing comments.
24589         (struct scop): Add poly_scop_p field.
24590         (POLY_SCOP_P): New.
24591         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
24592         * graphite.c (graphite_transform_loops): Build the polyhedral
24593         representation for each scop before code generation.
24594         * sese.c (rename_variables_in_operand): Removed.
24595         (rename_variables_in_expr): Return the renamed expression.
24596         (rename_sese_parameters): New.
24597         * sese.h (rename_sese_parameters): Declared.
24598
24599 2010-02-11  Richard Guenther  <rguenther@suse.de>
24600
24601         PR tree-optimization/42998
24602         * tree-ssa-pre.c (create_expression_by_pieces): Treat
24603         POINTER_PLUS_EXPR properly.
24604
24605 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
24606             Changpeng Fang  <changpeng.fang@amd.com>
24607
24608         PR middle-end/40886
24609         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
24610         the cost of an IV candidate when the IV is used in a test against zero.
24611
24612         * gcc.dg/tree-ssa/ivopts-3.c: New.
24613
24614 2010-02-11  Richard Guenther  <rguenther@suse.de>
24615
24616         PR lto/41664
24617         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
24618         pointer-vs-decl case by swapping refs.  Handle some cases
24619         of pointer-vs-decl disambiguations more conservatively.
24620         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
24621         to false after expanding.
24622
24623 2010-02-11  Richard Guenther  <rguenther@suse.de>
24624
24625         PR driver/43021
24626         * gcc.c (process_command): Handle LTO file@offset case more
24627         appropriately.
24628
24629 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
24630
24631         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
24632         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
24633         of DEBUG_INSNs.
24634         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
24635
24636         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
24637         if MEM's mode size isn't DWARF2_ADDR_SIZE.
24638         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
24639         Optimize eq/ne comparisons when both arguments are known to be
24640         zero-extended.
24641         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
24642         Don't mask operands unnecessarily if they are known to be already
24643         zero-extended.
24644
24645 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
24646
24647         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
24648         instead of loop.
24649
24650 2010-02-10  Richard Guenther  <rguenther@suse.de>
24651
24652         PR tree-optimization/43017
24653         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
24654         for wrapping signed arithmetic.
24655
24656 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24657
24658         PR debug/43010
24659         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
24660         if no debug info should be emitted for it.
24661
24662 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
24663
24664         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
24665         note when flag_exceptions is set.
24666
24667 2010-02-10  Duncan Sands  <baldrick@free.fr>
24668
24669         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
24670
24671 2010-02-10  Richard Guenther  <rguenther@suse.de>
24672
24673         PR c/43007
24674         * tree.c (get_unwidened): Handle constants.
24675         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
24676
24677 2010-02-10  Martin Jambor  <mjambor@suse.cz>
24678
24679         PR lto/42985
24680         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
24681         check for variable argument counts independently.
24682
24683 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24684
24685         PR target/42841
24686         * config/sh/sh.c (find_barrier): Increase length for non delayed
24687         conditional branches.
24688
24689 2010-02-10  Christian Bruel  <christian.bruel@st.com>
24690
24691         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
24692
24693 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
24694
24695         * builtins.c (set_builtin_user_assembler_name): Also handle
24696         ffs if int is smaller than word.
24697
24698 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
24699
24700         PR middle-end/42973
24701         * ira-conflicts.c (get_dup): Remove.
24702         (process_reg_shuffles): Add new parameter.  Use it as an
24703         additional guard for copy generation.
24704         (add_insn_allocno_copies): Rewrite.
24705
24706 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
24707
24708         * common.opt (fsched2-use-traces): Preserved for backward
24709         compatibility.
24710         * doc/invoke.texi: Remove the documentation about option
24711         -fsched2-use-traces.
24712         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
24713         flag_sched2_use_traces.
24714         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
24715         the backward compatibility flag section.
24716
24717 2010-02-09  Richard Guenther  <rguenther@suse.de>
24718
24719         PR tree-optimization/43008
24720         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
24721         make HEAP variables initialized from global memory if they
24722         are not known builtin functions.
24723         (find_func_aliases): Adjust.
24724
24725 2010-02-09  Richard Guenther  <rguenther@suse.de>
24726
24727         PR tree-optimization/43000
24728         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
24729         arithmetic manually.
24730
24731 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
24732
24733         PR tree-optimization/42931
24734         * tree-loop-linear.c (try_interchange_loops): Don't call
24735         double_int_mul if estimated_loop_iterations failed.
24736
24737 2010-02-08  Martin Jambor  <mjambor@suse.cz>
24738
24739         PR middle-end/42898
24740         * tree-sra.c (build_accesses_from_assign): Do not mark in
24741         should_scalarize_away_bitmap if stmt has volatile ops.
24742         (sra_modify_assign): Do not process assigns piecemeal if if stmt
24743         has volatile ops.
24744
24745 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
24746
24747         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
24748
24749 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
24750
24751         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
24752         before the pattern.
24753
24754 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
24755
24756         PR middle-end/42946
24757         * df-core.c (df_finish_pass): Change type of saved_flags to int.
24758
24759 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24760
24761         PR middle-end/42988
24762         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
24763         to unknown_dependence.
24764         (graphite_legal_transform_dr): Handle the unknown_dependence.
24765         (graphite_carried_dependence_level_k): Same.
24766
24767 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
24768
24769         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
24770
24771 2010-02-07  Richard Guenther  <rguenther@suse.de>
24772
24773         PR middle-end/42991
24774         * expr.c (get_inner_reference): Always initialize *pbitsize.
24775
24776 2010-02-07  Richard Guenther  <rguenther@suse.de>
24777
24778         PR middle-end/42956
24779         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
24780         new ARRAY_REFs on variable size element or minimal index arrays.
24781         Complete.
24782         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
24783         gimple_fold_indirect_ref.
24784
24785 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
24786
24787         PR target/42957
24788         * arm.c (arm_override_options): Just return if the user has specified
24789         an invalid fpu name.
24790
24791 2010-02-03  Jason Merrill  <jason@redhat.com>
24792
24793         PR c++/42870
24794         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
24795         i386_pe_maybe_record_exported_symbol.
24796
24797 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
24798
24799         PR target/42924
24800         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
24801         (pa_delegitimize_address): New function.
24802
24803 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
24804
24805         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
24806         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
24807
24808 2010-02-05  Richard Guenther  <rguenther@suse.de>
24809
24810         PR lto/42762
24811         * lto-streamer-in.c (get_resolution): Deal with references
24812         to undefined functions.
24813
24814 2010-02-05  Richard Guenther  <rguenther@suse.de>
24815
24816         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
24817         (fold_const_aggregate_ref): Likewise.
24818         (ccp_fold_stmt): Substitute loads.
24819         (maybe_fold_reference): Verify types before substituting.
24820         Unshare properly.
24821         (fold_gimple_assign): Unshare properly.
24822         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
24823
24824 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
24825
24826         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
24827         for rs6000_gen_cell_microcode.
24828
24829 2010-02-04  Richard Guenther  <rguenther@suse.de>
24830
24831         PR rtl-optimization/42952
24832         * dse.c (const_or_frame_p): Remove MEM handling.
24833
24834 2010-02-04  Nick Clifton  <nickc@redhat.com>
24835
24836         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
24837         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
24838         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
24839         (mn10300_asm_output_mi_thunk): New function.
24840         (mn10300_can_output_mu_thunk): New function.
24841         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
24842         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
24843         (FUNCTION_ARG): Delete incorrect comment.
24844
24845 2010-02-03  Jason Merrill  <jason@redhat.com>
24846
24847         PR c++/40138
24848         * fold-const.c (operand_equal_p): Handle erroneous types.
24849
24850 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
24851
24852         * config/h8300/h8300.md (can_delay): Fix attibute condition.
24853
24854 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
24855
24856         PR rtl-optimization/42941
24857         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
24858         of xmalloc.
24859
24860 2010-02-03  Jason Merrill  <jason@redhat.com>
24861
24862         PR c++/35652
24863         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
24864
24865 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
24866
24867         PR debug/42896
24868         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
24869         (cselib_reset_table): Renamed from...
24870         (cselib_reset_table_with_next_value): ... this.
24871         (cselib_get_next_uid): Renamed from...
24872         (cselib_get_next_unknown_value): ... this.
24873         * cselib.c (next_uid): Renamed from...
24874         (next_unknown_value): ... this.
24875         (cselib_clear_table): Adjust.
24876         (cselib_reset_table): Adjust.  Renamed from...
24877         (cselib_reset_table_with_next_value): ... this.
24878         (cselib_get_next_uid): Adjust.  Renamed from...
24879         (cselib_get_next_unknown_value): ... this.
24880         (get_value_hash): Use hash.
24881         (cselib_hash_rtx): Likewise.
24882         (new_cselib_val): Adjust.  Set and dump uid.
24883         (cselib_lookup_mem): Pass next_uid as hash.
24884         (cselib_subst_to_values): Likewise.
24885         (cselib_log_lookup): Dump uid.
24886         (cselib_lookup): Pass next_uid as hash.  Adjust.
24887         (cselib_process_insn): Adjust.
24888         (cselib_init): Initialize next_uid.
24889         (cselib_finish): Adjust.
24890         (dump_cselib_table): Likewise.
24891         * dse.c (canon_address): Dump value uid.
24892         * print-rtl.c (print_rtx): Print value uid.
24893         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
24894         (dvuid): New type.
24895         (dv_uid): New function, sort of renamed from...
24896         (dv_htab_hash): ... this, reimplemented in terms of it and...
24897         (dv_uid2hash): ... this.  New.
24898         (variable_htab_eq): Drop excess assertions.
24899         (tie_break_pointers): Removed.
24900         (canon_value_cmp): Compare uids.
24901         (variable_post_merge_New_vals): Print uids.
24902         (vt_add_function_parameters): Adjust.
24903         (vt_initialize): Reset table.  Adjust.
24904
24905 2010-02-03  Richard Guenther  <rguenther@suse.de>
24906
24907         PR tree-optimization/42944
24908         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
24909         (call_may_clobber_ref_p_1): Likewise.  Properly handle
24910         malloc and calloc clobbering errno.
24911
24912 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
24913
24914         * doc/invoke.texi: Fix name of sched1 dump.
24915
24916         * opts.c (decode_options): Set flag_tree_switch_conversion
24917         only conditionally on optimize >= 2.
24918
24919         * gcse.c: Assorted comment fixes in pass description.
24920
24921 2010-02-03  Anthony Green  <green@moxielogic.com>
24922
24923         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
24924         nop padding in order to maintain alignment of storage location of
24925         target function address.
24926         (moxie_trampoline_init): Store target function address at newly
24927         aligned location.
24928         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
24929         to 32.
24930         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
24931
24932 2010-02-03  Richard Guenther  <rguenther@suse.de>
24933
24934         PR middle-end/42927
24935         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
24936
24937 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24938
24939         * config.gcc: Reenable check for obsolete targets.
24940         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
24941         mips-sgi-irix6.[0-4]*.
24942
24943 2010-02-02  Nick Clifton  <nickc@redhat.com>
24944
24945         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
24946         constant size of 4 as being the same as 0.
24947         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
24948         can take values in the range 0..4.
24949
24950 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
24951
24952         PR java/41991
24953         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
24954         as _darwin10_Unwind_FindEnclosingFunction().
24955         * libgcc-libsystem.ver: New.
24956
24957 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
24958
24959         PR target/41399
24960         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
24961         implicitly set registers.
24962
24963 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
24964
24965         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
24966         (arm_override_options): Allow automatic selection of the thread
24967         pointer register if thumb2.
24968         (legitimize_pic_address): Improve code sequences for Thumb2.
24969         (arm_call_tls_get_addr): Likewise.
24970         (legitimize_tls_address): Likewise.
24971         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
24972         (pic_load_addr_32bit): ... this.  New named pattern.
24973         * thumb2.md (pic_load_addr_thumb2): Delete.
24974         (pic_load_dot_plus_four): Delete.
24975         (tls_load_dot_plus_four): New named pattern.
24976
24977 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24978
24979         PR libgomp/29986
24980         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
24981         Document fix for TLS bug.
24982
24983 2010-01-31  Richard Guenther  <rguenther@suse.de>
24984
24985         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
24986         conservatively correct.
24987
24988 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24989
24990         PR target/42850
24991         Revert:
24992         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
24993
24994         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
24995
24996 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
24997
24998         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
24999
25000 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
25001
25002         * config.gcc: Adjust order of makefile fragments for mingw targets.
25003
25004 2010-01-31  Richard Guenther  <rguenther@suse.de>
25005
25006         PR middle-end/42898
25007         * gimplify.c (gimplify_init_constructor): For volatile LHS
25008         initialize a temporary.
25009
25010 2010-01-31  Matthias Klose  <doko@ubuntu.com>
25011
25012         * configure.ac: Fix __stack_chk_fail check for cross builds configured
25013         --with-headers
25014         * configure: Regenerate.
25015
25016 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
25017
25018         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
25019         the same alias set and their sizes different constantness.
25020         (aliasing_component_refs_p): Revert 2009-10-24 change.
25021
25022 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25023
25024         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
25025         unused.
25026
25027 2010-01-29  Richard Guenther  <rguenther@suse.de>
25028
25029         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
25030         Assert we successfully updated the call.
25031
25032 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
25033
25034         PR rtl-optimization/42889
25035         * df.h (df_set_bb_dirty_nonlr): New prototype.
25036         * df-core.c (df_set_bb_dirty_nonlr): New function.
25037         * df-scan.c (df_insn_rescan): Call it instead of
25038         df_set_bb_dirty for DEBUG_INSNs.
25039
25040 2010-01-29  Richard Guenther  <rguenther@suse.de>
25041
25042         PR middle-end/37448
25043         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
25044         quadratic behavior in most cases.
25045
25046 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
25047
25048         PR target/42891
25049         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
25050         in the call to gen_x86_movsicc_0_m1.
25051
25052 2010-01-28  Richard Guenther  <rguenther@suse.de>
25053
25054         PR tree-optimization/42871
25055         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
25056
25057 2010-01-28  Richard Guenther  <rguenther@suse.de>
25058
25059         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
25060         into call arguments.
25061
25062 2010-01-28  Richard Guenther  <rguenther@suse.de>
25063
25064         PR middle-end/42883
25065         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
25066         the forwarder if the destination is an EH landing pad.
25067
25068 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
25069
25070         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
25071         block list passed to gimple_duplicate_sese_tail.
25072         (parallelize_loops): Avoid parallelization when the function
25073         has_nonlocal_label.
25074         Avoid parallelization when the preheader is IRREDUCIBLE.
25075         Try to optimize when estimated_loop_iterations_int is unresolved.
25076         Add the loop's location to the dump file.
25077         * tree-cfg.c (add_phi_args_after_redirect): Remove.
25078         (gimple_duplicate_sese_tail): Remove the check for the latch.
25079         Redirect nexits to the exit block.
25080         Remove handling of the incoming edges to the latch.
25081         Redirect the backedge from the copied latch to the exit bb.
25082
25083 2010-01-28  Michael Matz  <matz@suse.de>
25084
25085         PR target/42881
25086         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
25087         Wrap force_reg into a sequence, emit it before user.
25088
25089 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
25090
25091         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
25092         (arm_rev): New.
25093         (arm_legacy_rev): Likewise.
25094         (thumb_legacy_rev): Likewise.
25095
25096 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
25097
25098         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
25099         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
25100         on MEM's address failed, try avoid_constant_pool_reference and
25101         recurse if it returned something different.
25102         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
25103         address, try avoid_constant_pool_reference and recurse if it
25104         returned something different.
25105         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
25106         address and avoid_constant_pool_reference returned something
25107         different, don't set have_address.
25108
25109 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
25110
25111         PR debug/42861
25112         * var-tracking.c (val_store): Add modified argument, obey it.
25113         Adjust callers.
25114         (count_uses): Move down logging of main.
25115         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
25116         don't need resolution.
25117         (emit_notes_in_bb): Likewise.
25118
25119 2010-01-27  Richard Guenther  <rguenther@suse.de>
25120
25121         PR middle-end/42878
25122         * tree-inline.c (remap_decl): Delay remapping of SSA name
25123         default definitions until we need them.
25124
25125 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
25126
25127         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
25128         (rs6000_delegitimize_address): New function.
25129
25130         * config/s390/s390.c (s390_delegitimize_address): Call
25131         delegitimize_mem_from_attrs.
25132
25133         PR middle-end/42874
25134         * tree-inline.c (cannot_copy_type_1): Removed.
25135         (copy_forbidden): Don't forbid copying of functions containing
25136         records/unions with variable length fields.
25137
25138 2010-01-27  Christian Bruel  <christian.bruel@st.com>
25139
25140         Revert:
25141         PR target/42841
25142         * config/sh/sh.c (find_barrier): Increase length for non delayed
25143         conditional branches.
25144
25145 2010-01-27  Matthias Klose  <doko@ubuntu.com>
25146
25147         * configure.ac (gnu-unique-object): Fix ldd version check.
25148         * configure: Regenerate.
25149
25150 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25151
25152         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
25153         HAVE_GNU_AS value.
25154         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
25155         Test for HAVE_GNU_AS value.
25156
25157 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25158
25159         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
25160         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
25161         INT64_TYPE): Define.
25162         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
25163         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
25164         INT_LEAST64_TYPE): Define.
25165         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
25166         UINT_LEAST64_TYPE): Define.
25167         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
25168         INT_FAST64_TYPE): Define.
25169         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
25170         UINT_FAST64_TYPE): Define.
25171         (INTMAX_TYPE, UINTMAX_TYPE): Define.
25172         (INTPTR_TYPE, UINTPTR_TYPE): Define.
25173         (SIG_ATOMIC_TYPE): Define.
25174
25175 2010-01-26  Richard Guenther  <rguenther@suse.de>
25176
25177         * df-scan.c (df_scan_set_bb_info): Remove assert.
25178         (df_insn_rescan_debug_internal): Merge asserts.
25179         (df_install_ref): Likewise.
25180         (df_mark_reg): Use bitmap_set_range.
25181         (df_hard_reg_used_p): Remove assert.
25182         (df_hard_reg_used_count): Likewise.
25183
25184 2010-01-26  Richard Guenther  <rguenther@suse.de>
25185
25186         PR rtl-optimization/42685
25187         * web.c (web_main): Ignore DEBUG_INSNs.
25188
25189 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
25190
25191         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
25192
25193         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
25194         Fix types of fndecl and arglist parameters.
25195
25196 2010-01-26  Richard Guenther  <rguenther@suse.de>
25197
25198         PR middle-end/42806
25199         * tree-eh.c (unsplit_eh): Skip debug insns.
25200
25201 2010-01-26  Richard Guenther  <rguenther@suse.de>
25202
25203         PR tree-optimization/42250
25204         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
25205
25206 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
25207
25208         PR fortran/42866
25209         * omp-low.c (expand_omp_sections): Only use single_pred if
25210         l2_bb is single_pred_p.
25211
25212 2010-01-25  Christian Bruel  <christian.bruel@st.com>
25213
25214         PR target/42841
25215         * config/sh/sh.c (find_barrier): Increase length for non delayed
25216         conditional branches.
25217         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
25218
25219 2010-01-24  David S. Miller  <davem@davemloft.net>
25220
25221         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
25222         define if not using GAS.
25223         * config/sparc/sparc.c (sparc_elf_asm_named_section):
25224         Likewise.  Delete SECTION_MERGE code, which is only applicable
25225         when using GAS.
25226
25227 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
25228
25229         PR c++/42748
25230         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
25231         mangling of va_list in system headers.
25232
25233 2010-01-23  Toon Moene  <toon@moene.org>
25234
25235         * tree-predcom.c (combine_chains): Return NULL, not false.
25236
25237 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
25238
25239         * tree-loop-distribution.c (distribute_loop): Fix declaration and
25240         initialization of variable res to agree with return type.
25241
25242 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
25243
25244         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
25245         * tree-sra.c: Add include of expr.h.
25246
25247 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
25248
25249         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
25250         insert the debug stmt on the single non-EH edge from the stmt.
25251
25252 2010-01-22  Richard Henderson  <rth@redhat.com>
25253
25254         PR tree-opt/42833
25255         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
25256         the RHS until after generate_subtree_copies has insertted its
25257         code before the current statement.
25258
25259 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
25260
25261         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
25262
25263         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
25264
25265 2010-01-21  Martin Jambor  <mjambor@suse.cz>
25266
25267         PR tree-optimization/42585
25268         * tree-sra.c (struct access): New field grp_total_scalarization.
25269         (dump_access): Dump the new field.
25270         (should_scalarize_away_bitmap): New variable.
25271         (cannot_scalarize_away_bitmap): Likewise.
25272         (sra_initialize): Allocate new bitmaps.
25273         (sra_deinitialize): Free new bitmaps.
25274         (create_access_1): New function.
25275         (create_access): Parts moved to create_access_1.
25276         (type_consists_of_records_p): New function.
25277         (completely_scalarize_record): Likewise.
25278         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
25279         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
25280         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
25281         access.
25282         (analyze_all_variable_accesses): Completely scalarize small eligible
25283         records.
25284
25285 2010-01-21  Martin Jambor  <mjambor@suse.cz>
25286
25287         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
25288
25289 2010-01-21  Andrew Haley  <aph@redhat.com>
25290
25291         * gcc.c (process_command): Move lang_specific_driver before
25292         setting cc_libexec_prefix.
25293
25294 2010-01-21  Richard Guenther  <rguenther@suse.de>
25295
25296         PR middle-end/19988
25297         * fold-const.c (negate_expr_p): Pretend only negative
25298         real constants are easily negatable.
25299
25300 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
25301             Jason Merrill  <jason@redhat.com>
25302
25303         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
25304         (TYPE_TRANSPARENT_AGGR): this, for union and record.
25305         * calls.c (initialize argument_information): Handle it.
25306         * c-common.c (handle_transparent_union_attribute): Use new name.
25307         * c-decl.c (finish_struct): Ditto.
25308         * c-typeck.c (type_lists_compatible_p): Ditto.
25309         (convert_for_assignment): Use new name and also handle record.
25310         * function.c (aggregate_value_p): Handle it.
25311         (pass_by_reference): Ditto.
25312         (assign_parm_data_types): Ditto.
25313         * print-tree.c (print_node): Ditto.
25314         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
25315         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
25316         * tree.c (first_field): New fn.
25317
25318 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
25319
25320         PR target/42818
25321         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
25322         even when linking statically, for now.
25323
25324 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25325
25326         PR debug/42715
25327         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
25328         without a cselib val.
25329         (count_uses): Accept MO_VAL_SET with no val on stores.
25330         (add_stores): Likewise.
25331
25332 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25333
25334         * var-tracking.c (check_value_val): Add a compile time assertion.
25335         (dv_is_decl_p): Simplify.
25336         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
25337         gcc_assert if ENABLE_CHECKING.
25338
25339 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
25340
25341         PR debug/42782
25342         * var-tracking.c: Include tree-flow.h.
25343         (mem_dies_at_call): New.
25344         (dataflow_set_preserve_mem_locs): Use it.
25345         (dataflow_set_remove_mem_locs): Likewise.
25346         (dump_var): Renamed from dump_variable.  Adjust all callers.
25347         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
25348         * Makefile.in (var-tracking.o): Adjust deps.
25349
25350 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
25351
25352         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
25353
25354 2010-01-20  Richard Guenther  <rguenther@suse.de>
25355
25356         PR tree-optimization/42717
25357         * tree-ssa-dce.c (get_live_post_dom): Remove.
25358         (forward_edge_to_pdom): Take an arbitrary edge to copy
25359         degenerate PHI args from.
25360         (remove_dead_stmt): Use the first post-dominator even if it
25361         does not contain live statements as redirection destination.
25362
25363 2010-01-20  Richard Guenther  <rguenther@suse.de>
25364
25365         * tree-inline.c (estimate_num_insns): Handle EH builtins.
25366
25367 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25368
25369         * sel-sched.c (create_speculation_check): Remove set but not used
25370         variable twin.
25371         (try_transformation_cache): Remove set but not used variable ds.
25372         (calculate_privileged_insns): Remove set but not used variables
25373         cur_insn and min_spec_insn.
25374         (find_best_expr): Remove set but not used variable avail_n.
25375         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
25376         variable e.
25377         * cgraphunit.c (assemble_thunk): Remove set but not used variable
25378         false_label.
25379         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
25380         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
25381         new_scop_exit_edge.
25382
25383 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
25384
25385         PR bootstrap/42786
25386         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
25387         cpu types.  Add support for *-sse3 cpu types.
25388         (x86_64-*-*): Ditto.
25389
25390 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25391
25392         PR middle-end/42803
25393         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
25394         argument, call initializer_constant_valid_p_1 instead of
25395         initializer_constant_valid_p, pass CACHE to it, return NULL
25396         immediately if first call returns NULL.
25397         (initializer_constant_valid_p_1): New function.
25398         (initializer_constant_valid_p): Use it.
25399
25400 2010-01-20  Thomas Quinot  <quinot@adacore.com>
25401
25402         * tree.def (PLACEHOLDER_EXPR): Fix comment.
25403
25404 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
25405
25406         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
25407         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
25408         (loc_list_from_tree): Don't handle unsigned division.  Handle
25409         signed modulo using DW_OP_{over,over,div,mul,minus}.
25410         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
25411         modulo instead of signed.
25412
25413 2010-01-20  DJ Delorie  <dj@redhat.com>
25414
25415         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
25416         (Fpa): Pass it
25417         (h8300_emit_stack_adjustment): Propogate it.
25418         (push): Pass it.
25419         (h8300_expand_prologue): Likewise.
25420         (h8300_expand_epilogue): Likewise.
25421
25422 2010-01-19  Michael Matz  <matz@suse.de>
25423
25424         PR tree-optimization/41783
25425         * tree-data-ref.c (toplevel): Include flags.h.
25426         (dump_data_dependence_relation):  Also dump the inputs if the
25427         result will be unknown.
25428         (split_constant_offset_1): Look through some conversions.
25429         * tree-predcom.c (determine_roots_comp): Restart a new chain if
25430         the offset from last element is too large.
25431         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
25432         (reassociate_to_the_same_stmt): Handle vector registers.
25433         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
25434         (e.g. conversions).
25435         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
25436         wide_prolog_niters argument, emit widening instructions.
25437         (vect_do_peeling_for_alignment): Adjust caller, use widened
25438         variant of the iteration cound.
25439         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
25440
25441 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25442
25443         PR target/38697
25444         * config/arm/neon-testgen.m (emit_automatics): New parameter
25445         features. Adjust for Fixed_return_reg feature.
25446         (test_intrinsic): Call emit_automatics with new feature.
25447         * config/arm/neon.ml: Update copyright years.
25448         (features): New Fixed_return_reg feature.
25449         (ops): Update feature for Vget_low.
25450
25451 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
25452
25453         PR tree-optimization/42719
25454         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
25455         stmt uses.
25456
25457         PR debug/42728
25458         * fwprop.c (all_uses_available_at): Return false if def_set dest
25459         is a REG that is used in def_insn.
25460
25461 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
25462
25463         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
25464
25465         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
25466         Add argument names.
25467
25468         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
25469
25470         * target.h (struct gcc_target) <secondary_reload>: Change type
25471         of last argument to secondary_reload_info *.
25472
25473 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
25474
25475         PR target/42774
25476         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
25477         memory references with unaligned offsets.  Remove CQImode handling.
25478         (unaligned_memory_operand): Return 1 for memory references with
25479         unaligned offsets.  Remove CQImode handling.
25480
25481 2010-01-18  Richard Guenther  <rguenther@suse.de>
25482
25483         PR middle-end/39954
25484         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
25485         builtin calls.
25486
25487 2010-01-18  Richard Guenther  <rguenther@suse.de>
25488
25489         PR tree-optimization/42781
25490         * tree-ssa-structalias.c (find_what_var_points_to): Skip
25491         restrict processing only if the original variable was artificial.
25492
25493 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
25494
25495         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
25496         find number of popped argument bytes.
25497
25498         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
25499         Fix the text that describes the return value for invalid insns.
25500
25501         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
25502
25503         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
25504         Clarify what 'cost of the -dependence' is.  Fix quoting.
25505
25506         * toplev.c (default_get_pch_validity): Rename argument to "sz".
25507         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
25508
25509 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
25510
25511         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25512         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
25513
25514 2010-01-17  Richard Guenther  <rguenther@suse.de>
25515
25516         PR middle-end/42248
25517         * function.c (split_complex_args): Take a VEC to modify.
25518         (assign_parms_augmented_arg_list): Build a VEC instead of
25519         a chain of PARM_DECLs.
25520         (assign_parms_unsplit_complex): Take a VEC of arguments.
25521         Do not fixup unmodified parms.
25522         (assign_parms): Deal with the VEC.
25523         (gimplify_parameters): Likewise.
25524
25525 2010-01-17  Richard Guenther  <rguenther@suse.de>
25526
25527         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
25528         node existence check.
25529         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
25530         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
25531         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
25532         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
25533         (gimple_execute_on_growing_pred): Likewise.
25534
25535 2010-01-17  Richard Guenther  <rguenther@suse.de>
25536
25537         PR tree-optimization/42773
25538         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
25539         (compute_antic_aux): Likewise.
25540         (compute_partial_antic_aux): Likewise.
25541
25542 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
25543
25544         PR debug/42767
25545         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
25546         and US_TRUNCATE.
25547
25548 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
25549
25550         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
25551         appearance.
25552
25553         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
25554         Fix markup for strict argument.
25555
25556         (TARGET_SCHED_REORDER2): Fix argument types.
25557
25558         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
25559         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
25560
25561         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
25562         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
25563
25564         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
25565         Add argument name.
25566
25567         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
25568         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
25569         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
25570         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
25571         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
25572
25573         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
25574
25575         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
25576
25577         (TARGET_ASM_RELOC_RW_MASK): Add return type.
25578         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
25579
25580         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
25581
25582         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
25583         Use prototype.
25584
25585         (TARGET_ASM_NAMED_SECTION): Fix argument list.
25586
25587         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
25588         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
25589
25590         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
25591
25592         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
25593
25594         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
25595         referring to it.  Fix language.
25596
25597         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
25598
25599         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
25600
25601         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
25602
25603         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
25604
25605         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
25606         '@var{stream}.  Remove stray 'and'.
25607
25608         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
25609
25610         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
25611
25612         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
25613
25614         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
25615         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
25616
25617         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
25618         Fix description of return value.
25619         Rename argument "sz" to "len."
25620
25621         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
25622         Clarify meaning of 'true' return value.
25623
25624         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
25625
25626         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
25627         rep_mode versus mode_rep.
25628
25629         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
25630
25631         (TARGET_BUILTIN_DECL): Fix name.
25632
25633         (TARGET_COMMUTATIVE_P): Fix type of first argument.
25634
25635         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
25636
25637         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
25638
25639         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
25640
25641         (TARGET_RELAXED_ORDERING): Use @deftypevr.
25642
25643         (TARGET_GET_DRAP_RTX): Note that this is a hook.
25644         Clarify language.
25645
25646         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
25647         Rename argument tm_fn to md_fn.
25648
25649         (TARGET_OPTION_PRINT): Fix argument list.
25650
25651 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
25652
25653         PR target/42664
25654         * config/i386/i386.c (ix86_fixup_binary_operands):
25655         Revert FMA4 fixup of operands.
25656
25657 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25658
25659         PR gcc/42525
25660         * Makefile.in (write_entries_to_file, install-plugin):
25661         Use \012 instead of \n with tr.
25662
25663 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
25664
25665         * configure.ac (HAVE_AS_REF): New C macro.
25666         * configure: Regenerate.
25667         * config.in: Likewise.
25668         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
25669         if HAVE_AS_REF.
25670         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
25671         if HAVE_AS_REF.
25672
25673 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
25674
25675         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
25676
25677         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
25678
25679         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
25680
25681         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
25682
25683         (TARGET_IN_SMALL_DATA_P): Fix argument type.
25684
25685         (TARGET_BINDS_LOCAL_P): Fix argument type.
25686
25687         (TARGET_ASM_FILE_END): Use prototype.
25688
25689         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
25690
25691         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
25692
25693         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
25694
25695         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
25696
25697         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
25698         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
25699
25700         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
25701         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
25702
25703         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
25704         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
25705         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
25706         (TARGET_ADDR_SPACE_CONVERT): Likewise.
25707
25708         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
25709
25710         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
25711
25712         (TARGET_INIT_BUILTINS): Use prototype.
25713
25714         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
25715         Put 'const char *' in braces.  Fix parameter types.
25716         (TARGET_INVALID_CONVERSION): Fix parameter types.
25717         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
25718         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
25719
25720         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
25721         Fix argument type.
25722
25723         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
25724
25725         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
25726
25727 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
25728
25729         * doc/tm.texi (TARGET_HELP): Fix return type.
25730
25731         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
25732         in braces.  Fix argument types.
25733
25734         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
25735
25736         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
25737
25738         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
25739
25740         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
25741         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
25742
25743         (TARGET_MANGLE_TYPE): Fix argument types.
25744
25745         (TARGET_IRA_COVER_CLASSES): Use prototype.
25746
25747         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
25748
25749         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
25750
25751         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
25752
25753         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
25754
25755         (TARGET_CALLEE_COPIES): Fix argument types.
25756
25757         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
25758
25759         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
25760
25761         (TARGET_FUNCTION_VALUE): Fix argument types.
25762
25763         (TARGET_RETURN_IN_MSB): Fix argument type.
25764
25765         (TARGET_RETURN_IN_MEMORY): Fix argument types.
25766
25767         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
25768
25769         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
25770
25771         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
25772         agree with return type.
25773
25774         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
25775
25776 2010-01-15  Jing Yu  <jingyu@google.com>
25777
25778         PR rtl-optimization/42691
25779         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
25780         a pseudo to a constant and are merged, and adjust comments.
25781
25782 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
25783
25784         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
25785
25786 2010-01-15  Richard Guenther  <rguenther@suse.de>
25787
25788         PR middle-end/42739
25789         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
25790         labels of computed or non-local gotos to the destination.
25791         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
25792         landing pad label is the first label.
25793
25794 2010-01-15  Richard Guenther  <rguenther@suse.de>
25795
25796         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
25797
25798 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
25799
25800         PR target/42747
25801         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
25802         to allow generation of the xssqrtdp instruction on power7.
25803         (sqrtdf2_fpr): Ditto.
25804
25805 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25806
25807         PR middle-end/42674
25808         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
25809         functions with noreturn attribute.
25810
25811         PR c++/42608
25812         * varasm.c (declare_weak): Add weak attribute to decl if it
25813         doesn't have one already.
25814         (assemble_external): Only add decls to weak_decls if they also
25815         have weak attribute.
25816
25817 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
25818
25819         * var-tracking.c (var_reg_delete): Don't delete the association
25820         between REGs and values or one-part variables if the register
25821         isn't clobbered.
25822
25823 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25824
25825         PR debug/42657
25826         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
25827         because its first operand is a non-localized variable.
25828
25829 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25830
25831         PR tree-optimization/42706
25832         * tree-sra.c (encountered_recursive_call): New variable.
25833         (encountered_unchangable_recursive_call): Likewise.
25834         (sra_initialize): Initialize both new variables.
25835         (callsite_has_enough_arguments_p): New function.
25836         (scan_function): Call decl and flags check only for IPA-SRA, check
25837         whether there is a recursive call and whether it has enough arguments.
25838         (all_callers_have_enough_arguments_p): New function.
25839         (convert_callers): Look for recursive calls only when
25840         encountered_recursive_call is set.
25841         (ipa_early_sra): Bail out either if
25842         !all_callers_have_enough_arguments_p or
25843         encountered_unchangable_recursive_call.
25844
25845 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25846
25847         * sel-sched.c: Add 2010 to copyright years.
25848         * sel-sched-ir.c: Likewise.
25849         * sel-sched-ir.h: Likewise.
25850
25851 2010-01-14  Martin Jambor  <mjambor@suse.cz>
25852
25853         PR tree-optimization/42714
25854         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
25855         constructors specially.
25856
25857 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25858
25859         * config/i386/drivers-i386.c (detect_caches_intel):
25860         Add l2sizekb parameter and fill in.
25861         (host_detect_local_cpu): Add l2sizekb, fill in.
25862         Add Atom small cache heuristic.
25863
25864 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25865
25866         * config/i386/drivers-i386.c (detect_caches_cpuid4):
25867         Add level3 parameter and fill in.
25868         (detect_caches_intel): Handle level3 cache.
25869
25870 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25871
25872         * config/i386/drivers-i386.c (host_detect_local_cpu):
25873         Fix core duo detection.
25874
25875 2010-01-14  Andi Kleen  <ak@linux.intel.com>
25876
25877         * config/i386/drivers-i386.c (host_detect_local_cpu):
25878         Fix Atom detection.
25879
25880 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25881
25882         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
25883         (rs6000_variable_issue_1): this.  Use...
25884         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
25885
25886 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25887
25888         * sel-sched-ir.c (sel_restore_other_notes): Rename to
25889         sel_restore_notes.  Update all callers.  Call reemit_notes
25890         for all insns.
25891
25892 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25893
25894         PR rtl-optimization/42246
25895         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
25896         loops.
25897
25898 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25899
25900         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
25901         all successors is the same as number of successors in current region.
25902
25903 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25904
25905         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
25906         to rename is not separable.  Otherwise check that its LHS is not NULL.
25907
25908 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25909
25910         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
25911
25912 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25913
25914         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
25915         available registers when failed to discover LHS register class.
25916         Fix indentation.  Update comment.
25917
25918 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25919             Alexander Monakov  <amonakov@ispras.ru>
25920
25921         PR rtl-optimization/42389
25922         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
25923         to can_issue_more.
25924         (advance_state_on_fence): Likewise.
25925         (sel_target_adjust_priority): Print debug output only when
25926         sched_verbose >= 4, not 2.
25927         (get_expr_cost): Do not issue all unique insns on the next cycle.
25928         (fill_insns): Initialize can_issue_more from the value saved
25929         with the fence.
25930         * sel-sched-ir.c (flist_add): New parameter issue_more.
25931         Init FENCE_ISSUE_MORE with it.
25932         (merge_fences): Likewise.
25933         (init_fences): Update call to flist_add.
25934         (add_to_fences, add_clean_fence_to_fences)
25935         (add_dirty_fence_to_fences): Likewise.
25936         (move_fence_to_fences): Update call to merge_fences.
25937         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
25938         sched groups.
25939         * sel-sched-ir.h (struct _fence): New field issue_more.
25940         (FENCE_ISSUE_MORE): New accessor macro.
25941
25942 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25943
25944         PR rtl-optimization/42388
25945         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
25946         that have no predecessors nor successors.  Do not call move_bb_info
25947         for empty blocks outside of current region.
25948
25949 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25950
25951         PR rtl-optimization/42294
25952         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
25953         * sel-sched.c (move_exprs_to_boundary): Transitively add all
25954         originators' originators.
25955
25956 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
25957
25958         PR rtl-optimization/39453
25959         PR rtl-optimization/42246
25960         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
25961         for pipelining_p.
25962         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
25963
25964 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25965             Alexander Monakov  <amonakov@ispras.ru>
25966
25967         PR middle-end/42245
25968         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
25969         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
25970         argument.  Update all callers.
25971         (tidy_control_flow): ... and here.  Recompute topological order
25972         of basic blocks in region if necessary.
25973         (sel_redirect_edge_and_branch): Change return type.  Return true
25974         if topological order might have been invalidated.
25975         (purge_empty_blocks): Export and move from...
25976         * sel-sched.c (purge_empty_blocks): ... here.
25977         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
25978         (maybe_tidy_empty_bb): Delete prototype.
25979         (purge_empty_blocks): Declare.
25980
25981 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
25982
25983         PR rtl-optimization/42249
25984         * sel-sched.c (try_replace_dest_reg): When chosen register
25985         and original register is the same, do not bail out early, but
25986         still check all original insns for validity of replacing destination
25987         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
25988         in this case.
25989
25990 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
25991
25992         PR c/42721
25993         Port from no-undefined-overflow branch:
25994         2009-03-09  Richard Guenther  <rguenther@suse.de>
25995
25996         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
25997
25998 2010-01-14  Richard Guenther  <rguenther@suse.de>
25999
26000         PR lto/42665
26001         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
26002
26003 2010-01-14  Ira Rosen  <irar@il.ibm.com>
26004
26005         PR tree-optimization/42709
26006         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
26007         as scalar type in creation of constant vector operand.
26008
26009 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26010
26011         PR testsuite/42414
26012         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
26013         (check-parallel-%): Match `testsuite' directory component only
26014         at the end.
26015
26016 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
26017
26018         PR translation/39521
26019         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
26020         strings with _().
26021
26022 2010-01-13  Richard Guenther  <rguenther@suse.de>
26023
26024         PR tree-optimization/42730
26025         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
26026         offset zero.
26027
26028 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
26029
26030         PR target/pr42542
26031         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
26032         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
26033         them signed.
26034
26035 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
26036
26037         * config/bfin/libgcc-bfin.ver: Regenerate based on current
26038         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
26039         ___umulsi3_highpart.
26040
26041         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
26042         rather than schedule_insns if the pass is enabled.
26043
26044 2010-01-13  Martin Jambor  <mjambor@suse.cz>
26045
26046         PR tree-optimization/42704
26047         * tree-sra.c (sra_modify_assign): Do not delete assignments to
26048         SSA_NAMEs.
26049
26050 2010-01-13  Martin Jambor  <mjambor@suse.cz>
26051
26052         PR tree-optimization/42703
26053         * tree-sra.c (analyze_access_subtree): Check that we can build a
26054         reference to the original data within the aggregate.
26055
26056 2010-01-13  Richard Guenther  <rguenther@suse.de>
26057
26058         PR tree-optimization/42705
26059         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
26060
26061 2010-01-13  Richard Guenther  <rguenther@suse.de>
26062
26063         PR middle-end/42716
26064         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
26065
26066 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26067
26068         PR debug/41371
26069         * var-tracking.c (values_to_unmark): New variable.
26070         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26071         values_to_unmark vector.  Moved body to...
26072         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26073         instead queue it into values_to_unmark vector.
26074         (vt_find_locations): Free values_to_unmark vector.
26075
26076 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
26077
26078         * config/s390/s390.c (override_options): Set
26079         default of max-pending-list-length to 256
26080
26081 2010-01-13  Richard Guenther  <rguenther@suse.de>
26082
26083         PR lto/42678
26084         * tree-pass.h (PROP_gimple_lcx): New.
26085         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
26086         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
26087         before the final cleanup_eh.
26088         (dump_properties): Dump PROP_gimple_lcx.
26089         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
26090         (tree_lower_complex_O0): Remove.
26091         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
26092         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
26093         tree_lower_complex, schedule TODO_update_ssa.
26094         * lto-streamer-out.c (output_function): Stream the functions
26095         properties.
26096         * lto-streamer-in.c (input_function): Likewise.
26097         (lto_read_body): Do not override them here.
26098
26099 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
26100
26101         PR c/42708
26102         * c-typeck.c (build_c_cast): Fold value cast to union type before
26103         wrapping it in a CONSTRUCTOR.
26104
26105 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
26106
26107         PR rtl-optimization/42699
26108         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
26109         involved.
26110
26111 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26112
26113         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26114         SUBTARGET_WARN_UNUSED_SPEC): Move ...
26115         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
26116         SUBTARGET_WARN_UNUSED_SPEC): ... here
26117         * config/mips/iris5.h (LIBGCC_SPEC): Define.
26118
26119 2010-01-12  Julian Brown  <julian@codesourcery.com>
26120
26121         * config/arm/neon-schedgen.ml (Utils): Don't try to
26122         open missing module.
26123         (find_with_result): New.
26124
26125 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
26126
26127         PR debug/42662
26128         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
26129         sharing when canonicalizing ({lt,ge}u (plus a b) b).
26130
26131         PR tree-optimization/42645
26132         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
26133         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
26134         decl_map, set processing_debug_stmt to -1 and return name without
26135         any remapping.
26136
26137 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
26138
26139         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
26140         binutils version, and reword target configuration description.
26141
26142 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
26143
26144         * config/avr/avr.h (LINKER_NAME): Remove.
26145
26146 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
26147
26148         PR target/42416
26149         * config/rs6000/rs6000.c (rs6000_override_options): On targets
26150         that support VSX, warn for -mno-altivec if vsx is not disabled,
26151         and disable vsx.
26152
26153 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
26154             Shujing Zhao  <pearly.zhao@oracle.com>
26155
26156         PR translation/42469
26157         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
26158         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
26159         character between option name and help text.
26160         * c.opt (imultilib): Likewise.
26161
26162 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
26163
26164         * lto-streamer-out.c (output_unreferenced_globals): Output static
26165         variables.
26166
26167 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
26168
26169         PR rtl-optimization/42621
26170         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
26171         optimizing for size.
26172         (duplicate_computed_gotos): Remove now-redundant check.
26173
26174 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
26175
26176         PR target/37454
26177         * configure.ac: Save and restore LDFLAGS and LIBS
26178         * configure: Regenerate.
26179
26180 2010-01-10  Richard Guenther  <rguenther@suse.de>
26181
26182         PR middle-end/42667
26183         * builtins.c (fold_builtin_strlen): Add type argument and
26184         convert the resulting length to it.
26185         (fold_builtin_1): Adjust.
26186
26187 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
26188
26189         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
26190         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
26191         1 insn.
26192         (num_insns_constant_wide): Adjust for that change.
26193
26194 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26195
26196         PR debug/42631
26197         * web.c (union_defs): Add used argument, to combine uses of
26198         uninitialized regs.
26199         (entry_register): Adjust type and tests of used argument.
26200         (web_main): Widen used for new use.  Pass it to union_defs.
26201         * df.h (union_defs): Adjust prototype.
26202
26203 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26204
26205         PR debug/42630
26206         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
26207         uses in new incoming argument.  Free body.
26208         (reset_debug_uses_in_loop): New.
26209         (analyze_insn_to_expand_var): Call the latter if the former found
26210         anything.  Fix whitespace.  Reject invalid dest overlaps before
26211         going through all insns in the loop.
26212
26213 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26214
26215         PR debug/42629
26216         * haifa-sched.c (dying_use_p): Debug insns don't count.
26217
26218 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26219
26220         PR middle-end/42363
26221         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
26222         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
26223         (verify_gimple_call): Reject LHS in noreturn calls.
26224
26225 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26226
26227         PR debug/42604
26228         PR debug/42395
26229         * tree-vect-loop-manip.c (adjust_info): New type.
26230         (adjust_vec): New pointer to vector.
26231         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
26232         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
26233         (slpeel_update_phis_for_duplicate_loop): Use them.
26234         (slpeel_update_phi_nodes_for_guard1): Likewise.
26235         (slpeel_update_phi_nodes_for_guard2): Likewise.
26236         (slpeel_tree_peel_loop_to_edge): Likewise.
26237         (vect_update_ivs_after_vectorizer): Likewise.
26238
26239 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26240
26241         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
26242         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
26243
26244 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
26245
26246         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
26247         bogus uninitialized warning.
26248
26249 2010-01-09  Richard Guenther  <rguenther@suse.de>
26250
26251         PR middle-end/42512
26252         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
26253         the evolution is compatible with the initial condition.
26254
26255 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
26256
26257         * gcc.c (process_command): Update copyright notice dates.
26258         * gcov.c (print_version): Likewise.
26259         * gcov-dump.c (print_version): Likewise.
26260         * mips-tfile.c (main): Likewise.
26261         * mips-tdump.c (main): Likewise.
26262
26263 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
26264
26265         PR target/41885
26266         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
26267         (rotlhi3): Delete.
26268         (rotlhi3_8): Delete.
26269         (rotlsi3): Delete.
26270         (rotlsi3_8): Delete.
26271         (rotlsi3_16): Delete.
26272         (rotlsi3_24): Delete.
26273         (rotl<mode>3): New.
26274         (*rotw<mode>3): New.
26275         (*rotb<mode>3): New.
26276         * config/avr/avr.c (avr_rotate_bytes): New function.
26277         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
26278
26279 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
26280
26281         PR target/37454
26282         * configure.ac: Modify -rdynamic check.
26283         * configure: Regenerate.
26284
26285 2010-01-08  DJ Delorie  <dj@redhat.com>
26286
26287         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
26288         register popping order.
26289
26290 2010-01-08  Richard Guenther  <rguenther@suse.de>
26291
26292         PR lto/42528
26293         * c.opt (fsigned-char): Also let LTO handle this option.
26294         (funsigned-char): Likewise.
26295
26296 2010-01-07  Richard Guenther  <rguenther@suse.de>
26297
26298         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
26299         (gimple_op): Likewise.
26300         (gimple_op_ptr): Likewise.
26301         (gimple_assign_set_lhs): Remove gcc_assert.
26302         (gimple_assign_set_rhs1): Likewise.
26303         (gimple_assign_set_rhs2): Likewise.
26304         (gimple_call_set_lhs): Likewise.
26305         (gimple_call_set_fn): Likewise.
26306         (gimple_call_set_fndecl): Likewise.
26307         (gimple_call_fndecl): Likewise.
26308         (gimple_call_return_type): Likewise.
26309         (gimple_call_set_chain): Likewise.
26310         (gimple_call_num_args): Likewise.
26311         (gimple_call_set_arg): Likewise.
26312         (gimple_cond_set_code): Likewise.
26313         (gimple_cond_set_lhs): Likewise.
26314         (gimple_cond_set_rhs): Likewise.
26315         (gimple_cond_set_true_label): Likewise.
26316         (gimple_cond_set_false_label): Likewise.
26317         (gimple_label_set_label): Likewise.
26318         (gimple_goto_set_dest): Likewise.
26319         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
26320         (gimple_debug_bind_get_value): Likewise.
26321         (gimple_debug_bind_get_value_ptr): Likewise.
26322         (gimple_debug_bind_set_var): Likewise.
26323         (gimple_debug_bind_set_value): Likewise.
26324         (gimple_debug_bind_reset_value): Likewise.
26325         (gimple_debug_bind_has_value_p): Likewise.
26326         (gimple_return_retval_ptr): Remove gcc_assert.
26327         (gimple_return_retval): Likewise.
26328         (gimple_return_set_retval): Likewise.
26329         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
26330         (safe_referenced_var_iterator): Remove.
26331         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
26332         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
26333         (fill_referenced_var_vec): Remove.
26334         (first_readonly_imm_use): Remove redundant gcc_assert.
26335         (phi_arg_index_from_use): Combine gcc_asserts.
26336         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
26337         (first_imm_use_stmt): Remove redundant gcc_assert.
26338         * tree-cfg.c (verify_gimple_call): Verify function and chain
26339         operands.  Verify arguments.
26340         (verify_types_in_gimple_stmt): Verify condition code and labels.
26341
26342 2010-01-07  Richard Guenther  <rguenther@suse.de>
26343
26344         PR tree-optimization/42641
26345         * sese.c (rename_map_elt_info): Use the SSA name version, do
26346         not hash pointers.
26347
26348 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
26349
26350         PR tree-optimization/42625
26351         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
26352         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
26353
26354 2010-01-07  Duncan Sands  <baldrick@free.fr>
26355
26356         * Makefile.in (PLUGIN_HEADERS): Add version.h.
26357
26358 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
26359
26360         PR target/42511
26361         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
26362         note itself is not function_invariant_p.
26363
26364 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
26365
26366         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
26367         Do not add the DF_NOTE problem.
26368         * store-motion.c (execute_rtl_store_motion): Likewise.
26369
26370 2010-01-07  Martin Jambor  <mjambor@suse.cz>
26371
26372         PR tree-optimization/42157
26373         * tree-sra.c (compare_access_positions): Stabilize sort if both
26374         accesses have integer types, return zero immediately if they are the
26375         same.
26376
26377 2010-01-06  Richard Henderson  <rth@redhat.com>
26378
26379         PR middle-end/41883
26380         * haifa-sched.c (add_to_note_list): Merge into ...
26381         (concat_note_lists): ... here, and ...
26382         (unlink_other_notes, rm_other_notes): Merge into...
26383         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
26384         NOTE_INSN_EPILOGUE_BEG.
26385
26386 2010-01-06  Richard Guenther  <rguenther@suse.de>
26387
26388         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
26389         not inline regular functions into always-inline functions.
26390
26391 2010-01-06  Nick Clifton  <nickc@redhat.com>
26392
26393         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
26394         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
26395         used together.
26396         (OVERRIDE_OPTIONS): Delete.
26397         (OPTIMIZATION_OPTIONS): Define.
26398         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
26399         * config/rx/rx.c (rx_handle_option): Issue an error message if
26400         -mcpu=rx200 and -fpu are used together.
26401         (rx_set_optimization_options): New function.  Issue an error
26402         message if an optimization attribute attempts to reset the FPU/
26403         math optimization pairing.
26404         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
26405         * config/rx/rx.opt: Set the default to 32-bit doubles.
26406         * config/rx/t-rx: Add multilibs for -nofpu option.
26407         * doc/invoke.texi: Update documentation of RX options.
26408
26409 2010-01-06  Richard Guenther  <rguenther@suse.de>
26410
26411         * tree-ssa-pre.c (name_to_id): New global.
26412         (alloc_expression_id): Simplify SSA name handling.
26413         (lookup_expression_id): Likewise.
26414         (init_pre): Zero name_to_id.
26415         (fini_pre): Free it.
26416
26417 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
26418
26419         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
26420
26421 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
26422
26423         PR target/42542
26424         * config/i386/sse.md (smaxv2di3): New.
26425         (umaxv2di3): Likewise.
26426         (sminv2di3): Likewise.
26427         (uminv2di3): Likewise.
26428
26429 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
26430
26431         PR target/42564
26432         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
26433         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
26434         (legitimize_tls_address): Likewise.
26435         (sparc_tls_referenced_p): Likewise.
26436         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
26437         and adjust calls to legitimize_pic_address.
26438         (legitimate_constant_p) Use sparc_tls_referenced_p.
26439         (legitimate_pic_operand_p): Likewise.
26440         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
26441         (sparc_tls_symbol_ref_1): Delete.
26442         (sparc_tls_referenced_p): Make static, recognize specific patterns.
26443         (legitimize_tls_address): Make static, handle CONST patterns.
26444         (legitimize_pic_address): Make static, remove unused parameter and
26445         adjust recursive calls.
26446         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
26447         and adjust call to legitimize_pic_address.
26448         (sparc_output_mi_thunk): Likewise.
26449
26450 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
26451             H.J. Lu  <hongjiu.lu@intel.com>
26452
26453         PR target/42542
26454         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
26455         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
26456         operands to make them signed.
26457
26458         Revert:
26459         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26460
26461         PR target/42542
26462         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26463         GTU to GT for V4SI and V2DI.
26464
26465         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26466         (umin<mode>3): Removed.
26467         (uminv8hi3): New.
26468         (uminv4si3): Likewise.
26469
26470 2010-01-05  Martin Jambor  <mjambor@suse.cz>
26471
26472         PR tree-optimization/42462
26473         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
26474         current_function_decl to helper functions and macros.
26475
26476 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26477
26478         PR bootstrap/41771
26479         * flags.h: Don't include real.h.
26480         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
26481         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
26482         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
26483         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
26484         * dominance.c: Update copyright.
26485         * gimple.c (walk_gimple_op): Remove inline.
26486         * tree-ssa-reassoc.c: Include real.h.
26487         * Makefile.in (FLAGS_H): Remove $(REAL_H).
26488         (tree-ssa-reassoc.o): Depend on $(REAL_H).
26489
26490 2010-01-05  Nick Clifton  <nickc@redhat.com>
26491
26492         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
26493         register to push into the stack frame when the accumulator has to
26494         be saved during interrupts.
26495
26496 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
26497
26498         * doc/invoke.texi: Remove the documentation about option
26499         -Wunreachable-code.
26500         * common.opt (Wunreachable-code):  Preserved for backward
26501         compatibility.
26502         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
26503         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
26504         the backward compatibility flag section.
26505
26506 2010-01-05  Richard Guenther  <rguenther@suse.de>
26507
26508         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
26509
26510 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
26511
26512         PR other/42611
26513         * cfgexpand.c (expand_one_var): Diagnose too large variables.
26514
26515         PR tree-optimization/42508
26516         * tree-sra.c (convert_callers): Check for recursive call
26517         by comparing cgraph nodes instead of decls.
26518         (modify_function): Call ipa_modify_formal_parameters also
26519         on all same_body aliases.
26520
26521         * cgraphunit.c (cgraph_materialize_all_clones): Compare
26522         cgraph nodes when checking for same_body aliases.
26523
26524 2010-01-05  Richard Guenther  <rguenther@suse.de>
26525
26526         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
26527         allocation and lookup.
26528         (get_or_alloc_expr_for_constant): Likewise.
26529         (phi_translate): Sink allocation.
26530
26531 2010-01-04  Richard Guenther  <rguenther@suse.de>
26532
26533         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
26534         a new entry only if needed.
26535         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
26536         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
26537         hashtable lookup.
26538         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
26539         the result array.
26540         (phi_translate): Handle CONSTANTs early.
26541
26542 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26543
26544         PR tree-optimization/42398
26545         * tree-sra.c (struct access): Removed flag grp_different_types.
26546         (dump_access): Do not dump the removed flag.
26547         (sort_and_splice_var_accesses): Do not set the removed flag.
26548         (sra_modify_expr): Check for type compatibility directly.
26549
26550 2010-01-04  Martin Jambor  <mjambor@suse.cz>
26551
26552         PR tree-optimization/42366
26553         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
26554         edges with variable number of parameters.
26555         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
26556         flag instead of asserting it.
26557         (ipa_read_node_info): Read uses_analysis_done flag.
26558
26559 2010-01-04  Richard Guenther  <rguenther@suse.de>
26560
26561         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
26562         iterative_hash_* as intended.
26563         (vn_reference_compute_hash): Likewise.  Simplify hashing
26564         SSA names.
26565         (vn_reference_lookup_2): Likewise.
26566         (vn_nary_op_compute_hash): Likewise.
26567         (vn_phi_compute_hash): Likewise.
26568         (expressions_equal_p): Remove strange code.
26569         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
26570         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
26571         (bitmap_insert_into_set_1): Take value-id as parameter.
26572         (add_to_value): Pass it.
26573         (bitmap_insert_into_set): Likewise.
26574         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
26575
26576 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
26577
26578         PR driver/42442
26579         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
26580         (do_self_spec): For switches with SWITCH_IGNORE set set also
26581         SWITCH_IGNORE_PERMANENTLY.
26582         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
26583         of SWITCH_IGNORE.
26584
26585 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
26586
26587         * lto-streamer-out.c (output_unreferenced_globals): Output the full
26588         tree of an unreferenced global var.
26589
26590 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26591
26592         PR target/42542
26593         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
26594         GTU to GT for V4SI and V2DI.
26595
26596         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
26597         (umin<mode>3): Removed.
26598         (uminv8hi3): New.
26599         (uminv4si3): Likewise.
26600
26601 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
26602
26603         PR lto/42581
26604         * collect2.c (main): Turn on trace in collect2 if -v is passed
26605         to gcc with LTO.
26606
26607 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
26608
26609         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
26610         description of expression operand.
26611
26612 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
26613
26614         * configure.ac: Add install-html to target_list for Make-hooks.
26615         * configure: Regenerate.
26616         * fortran/Make-lang.in (F95_HTMLFILES): New.
26617         (fortran.html): Use it.
26618         (fortran.install-html): New.
26619         * Makefile.in (install-html): Add lang.install-html.
26620         * java/Make-lang.in (JAVA_HTMLFILES): New.
26621         (java.html): Use it.
26622         (java.install-html): New.
26623         * objc/Make-lang.in (objc.install-html): New.
26624         * objcp/Make-lang.in (obj-c++.install-html): New.
26625         * cp/Make-lang.in (c++.install-html): New.
26626         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
26627         * lto/Make-lang.in (lto.install-html): New.
26628
26629 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26630
26631         PR lto/42520
26632         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
26633
26634 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26635
26636         PR rtl-optimization/41862
26637         * store-motion.c (store_killed_in_insn, compute_store_table,
26638         remove_reachable_equiv_notes, replace_store_insn,
26639         build_store_vectors): Ignore all DEBUG_INSNs.
26640
26641 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
26642
26643         PR lto/41564
26644         * common.opt: Add dumpdir.
26645
26646         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
26647         isn't specified.
26648         (option_map): Add --dumpdir.
26649
26650         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
26651
26652         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
26653
26654         * opts.c (decode_options): Try dump_dir_name first if
26655         dump_base_name isn't an absolute path.
26656         (common_handle_option): Handle OPT_dumpdir.
26657
26658         * toplev.c (dump_dir_name): New.
26659         (print_switch_values): Also ignore -dumpdir.
26660
26661         * toplev.h (dump_dir_name): New.
26662
26663 2010-01-03  Richard Guenther  <rguenther@suse.de>
26664
26665         PR tree-optimization/42589
26666         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
26667         double-word expansion of bswap32.
26668
26669 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
26670
26671         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
26672         with BLOCK_FOR_INSN.
26673         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
26674         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
26675         noce_process_if_block): Likewise.
26676         * gcse.c (compute_local_properties, insert_expr_in_table,
26677         insert_set_in_table, canon_list_insert, find_avail_set,
26678         pre_insert_copy_insn): Likewise.
26679
26680         * basic-block.h (BLOCK_NUM): Move from here...
26681         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
26682
26683 2010-01-03  Richard Guenther  <rguenther@suse.de>
26684
26685         PR tree-optimization/42438
26686         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
26687         contains_may_not_return_call flag.
26688         (BB_MAY_NOTRETURN): New.
26689         (valid_in_sets): Trapping nary operations are not valid
26690         in blocks that may not return.
26691         (insert_into_preds_of_block): Remove check for trapping expressions.
26692         (compute_avail): Compute also BB_MAY_NOTRETURN.
26693
26694 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
26695
26696         * doc/invoke.texi: Add 2010 to copyright years.
26697
26698 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
26699
26700         * config/sparc/sparc.c: Fix formatting nits.
26701
26702 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
26703             Alexander Monakov  <amonakov@ispras.ru>
26704
26705         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
26706
26707 2010-01-02  Richard Guenther  <rguenther@suse.de>
26708
26709         PR middle-end/42577
26710         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
26711         (simplify_switch_using_ranges): Mark to be removed edges
26712         as non-executable.
26713
26714 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
26715
26716         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
26717
26718         * collect2.c (scan_libraries): Add missing argument in call to
26719         scan_prog_file.
26720
26721 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
26722
26723         PR target/42448
26724         * config/alpha/predicates.md (aligned_memory_operand): Return false
26725         for CQImode.
26726         (unaligned_memory_operand): Return true for CQImode.
26727         * config/alpha/alpha.c (get_aligned_mem): Assert that location
26728         doesn not cross aligned SImode word boundary.
26729
26730 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
26731
26732         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
26733         Remove.
26734         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
26735         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
26736
26737 2010-01-02  Richard Guenther  <rguenther@suse.de>
26738
26739         PR lto/41597
26740         * toplev.c (compile_file): Emit LTO marker properly.  Change
26741         it to __gnu_lto_v1.
26742         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
26743
26744 2010-01-01  Richard Guenther  <rguenther@suse.de>
26745
26746         PR debug/42455
26747         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
26748
26749 2010-01-01  Richard Guenther  <rguenther@suse.de>
26750
26751         PR c/42570
26752         * c-decl.c (grokdeclarator): For zero-size arrays force
26753         structural equality checks as layout_type does.
26754
26755 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26756
26757         * builtins.c: Update copyright to 2010.
26758
26759 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
26760
26761         PR lto/42531
26762         * lto-streamer-out.c (produce_asm): Revert the last change.
26763         (copy_function): Likewise.
26764
26765         * lto-streamer.c (lto_get_section_name): Skip any leading
26766         asterisk in name.
26767
26768 2010-01-01  Richard Guenther  <rguenther@suse.de>
26769
26770         PR middle-end/42559
26771         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
26772         for LABEL_DECLs.
26773
26774 \f
26775 Copyright (C) 2010 Free Software Foundation, Inc.
26776
26777 Copying and distribution of this file, with or without modification,
26778 are permitted in any medium without royalty provided the copyright
26779 notice and this notice are preserved.