OSDN Git Service

gcc/
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2
3         * regs.h (target_regs): Add x_hard_regs_of_mode, x_contains_reg_of_mode,
4         x_move_cost, x_may_move_in_cost, x_may_move_out_cost and
5         x_last_mode_for_init_move_cost.
6         (have_regs_of_mode, contains_reg_of_mode, move_cost)
7         (may_move_in_cost, may_move_out_cost): Redefine as macros.
8         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
9         (may_move_in_cost, may_move_out_cost): Delete.
10         (last_mode_for_init_move_cost): Redefine as a macro.
11
12 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
13
14         * hard-reg-set.h (target_hard_regs): New structure.
15         (default_target_hard_regs): Declare.
16         (this_target_hard_regs): Declare as a variable or define as a macro.
17         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
18         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
19         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
20         (reg_class_size, reg_class_subclasses, reg_class_subunion)
21         (reg_class_superunion, reg_names): Redefine as macros.
22         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
23         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
24         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
25         (reg_class_contents, reg_class_size, reg_class_subclasses)
26         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
27         (default_target_hard_regs): New variable
28         (this_target_hard_regs, initial_call_really_used_regs)
29         (initial_reg_alloc_order): New conditional variables.
30         (initial_reg_names): New variable.
31         (init_reg_sets): Assert that initial_call_really_used_regs,
32         initial_reg_alloc_order and initial_reg_names
33         are all the same size as their variable counterparts.  Use them to
34         initialize those counterparts.
35         * target-globals.h (this_target_hard_regs): Declare.
36         (target_globals): Add a hard_regs field.
37         (restore_target_globals): Copy the hard_regs field to
38         this_target_hard_regs.
39         * target-globals.c: Include hard-reg-set.h.
40         (default_target_globals): Initialize the hard_regs field.
41         (save_target_globals): Likewise.
42
43 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
44
45         * Makefile.in (target-globals.o): Depend on $(RTL_H).
46         * rtl.h: (target_rtl): New structure.
47         (default_target_rtl): Declare.
48         (this_target_rtl): Declare as a variable or define as a macro.
49         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
50         Redefine as macros.
51         * emit-rtl.c (default_target_rtl): New variable.
52         (this_target_rtl): New conditional variable.
53         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
54         (return_address_pointer_rtx): Delete.
55         (initial_regno_reg_rtx): New macro.
56         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
57         (init_emit_regs): Likewise.
58         * target-globals.h (this_target_rtl): Declare.
59         (target_globals): Add a rtl field.
60         (restore_target_globals): Copy the rtl field to this_target_rtl.
61         * target-globals.c: Include rtl.h.
62         (default_target_globals): Initialize the rtl field.
63         (save_target_globals): Likewise.
64
65 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
66
67         * Makefile.in (target-globals.o): Depend on $(REGS_H).
68         * regs.h (target_reg_modes): New structure.
69         (default_target_reg_modes): Declare.
70         (this_target_reg_modes): Declare as a variable or define as a macro.
71         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
72         * reginfo.c (default_target_reg_modes): New variable.
73         (this_target_reg_modes): New conditional variable.
74         (hard_regno_nregs, reg_raw_mode): Delete.
75         * target-globals.h (this_target_regs): Declare.
76         (target_globals): Add a regs field.
77         (restore_target_globals): Copy the regs field to this_target_regs.
78         * target-globals.c: Include regs.h.
79         (default_target_globals): Initialize the regs field.
80         (save_target_globals): Likewise.
81
82 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
83
84         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
85         * doc/tm.texi: Regenerate.
86         * Makefile.in (OBJS-common): Add target-globals.o.
87         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
88         and target-globals.h.
89         (target-globals.o): New rule.
90         (GTFILES): Include $(srcdir)/target-globals.h.
91         * defaults.h (SWITCHABLE_TARGET): Define.
92         * gengtype.c (open_base_files): Add target-globals.h to the
93         list of includes.
94         * target-globals.h: New file.
95         * target-globals.c: Likewise.
96
97         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
98         * flags.h (target_flag_state): New structure.
99         (default_target_flag_state): Declare.
100         (this_target_flag_state): Declare as a variable or define as a macro.
101         (align_loops_log): Redefine as a macro.
102         (align_loops_max_skip, align_jumps_log): Likewise.
103         (align_jumps_max_skip, align_labels_log): Likewise.
104         (align_labels_max_skip, align_functions_log): Likewise.
105         * toplev.c (default_target_flag_state): New variable.
106         (this_target_flag_state): New conditional variable.
107         (align_loops_log): Delete.
108         (align_loops_max_skip, align_jumps_log): Likewise.
109         (align_jumps_max_skip, align_labels_log): Likewise.
110         (align_labels_max_skip, align_functions_log): Likewise.
111         * target-globals.h (this_target_flag_state): Declare.
112         (target_globals): Add a flag_state field.
113         (restore_target_globals): Copy the flag_state field to
114         this_target_flag_state.
115         * target-globals.c: Include flags.h.
116         (default_target_globals): Initialize the flag_state field.
117         (save_target_globals): Likewise.
118
119 2010-07-12  Jie Zhang  <jie@codesourcery.com>
120
121         * postreload.c (reg_symbol_ref[]): New.
122         (move2add_use_add2_insn): New.
123         (move2add_use_add3_insn): New.
124         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
125         (move2add_note_store): Likewise.
126
127 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
128
129         PR rtl-optimization/44752
130         * genautomata.c (main): Don't emit an empty file even if there
131         is no automaton.
132
133 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
134
135         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
136         ix86_solaris_return_in_memory.
137         * config/i386-protos.h: Reflect this.
138         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
139         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
140         Move ...
141         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
142
143 2010-07-12  Jie Zhang  <jie@codesourcery.com>
144
145         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
146         align the stack when it's going to be saved.
147
148 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
149
150         PR pch/14940
151         * config/host-solaris.c (mmap_fixed): New function.
152         (sol_gt_pch_get_address): Use it.
153         (sol_gt_pch_use_address): Likewise.
154
155 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
156
157         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
158         pentiumpro on Solaris 8 and 9/x86.
159         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
160         Document SSE/SSE2 support.
161         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
162
163 2010-07-12  Andi Kleen  <ak@linux.intel.com>
164
165         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
166         instead of gcc_assert to print better error message for multiple
167         prevailing defs.
168
169 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
170
171         * config/i386/i386.c (ix86_asm_output_function_label): Change format
172         string placeholder from 0x%x to %#x.
173         (ix86_code_end): Use putc to output '\n'.
174         (ix86_print_operand) <case ';'>: Use putc to output ';'.
175
176 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
177
178         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
179         in directive -export.
180
181 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
182
183         * reginfo.h (reg_classes_intersect_p): Change arguments type to
184         reg_class_t.
185         * rtl.h (reg_classes_intersect_p): Adjust prototype.
186
187         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
188         Remove macros.
189         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
190         rs6000_memory_move_cost): Remove
191         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
192         TARGET_MEMORY_MOVE_COST): Define.
193         (rs6000_register_move_cost): Make static. Change arguments type from
194         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
195         (rs6000_memory_move_cost): Make static. Change arguments type from
196         'enum reg_class' to reg_class_t.
197
198 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
199
200         PR middle-end/42505
201         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
202         lookup code into....
203         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
204         new functions.
205         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
206         * cfgloopanal.c (target_clobbered_regs): Define.
207         (init_set_costs): Initialize target_clobbered_regs.
208         (estimate_reg_pressure_cost): Add call_p argument.  When true,
209         adjust the number of available registers to exclude the
210         call-clobbered registers.
211         * cfgloop.h (target_clobbered_regs): Declare.
212         (estimate_reg_pressure_cost): Adjust declaration.
213         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
214         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
215         (determine_set_costs): Dump target_clobbered_regs.
216         (loop_body_includes_call): New function.
217         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
218         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
219         call_p flag through.
220         (best_gain_for_invariant): Likewise.
221         (find_invariants_to_move): Likewise.
222         (move_single_loop_invariants): Likewise, using already-computed
223         has_call field.
224
225 2010-07-10  Richard Guenther  <rguenther@suse.de>
226             Joern Rennecke  <joern.rennecke@embecosm.com>
227
228         PR debug/44832
229         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
230         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
231         unless they have DECL_IGNORED_P set.
232
233 2010-07-10  Richard Guenther  <rguenther@suse.de>
234
235         PR lto/44889
236         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
237         helper function.
238         (gimple_types_compatible_p): Similar to pointed-to
239         types allow and merge a mix of complete and incomplete aggregate.
240         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
241         (iterative_hash_gimple_type): Adjust for that.
242
243 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
244
245         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
246
247 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
248
249         PR objc/44140
250         * config/darwin.c (output_objc_section_asm_op): Save and restore
251         section when outputting ObjC section list.
252
253 2010-07-09  Jan Hubicka  <jh@suse.cz>
254
255         * lto-streamer-out.c (produce_symtab): Do not write alias
256         cgraph/varpool nodes.
257
258 2010-07-09  Jan Hubicka  <jh@suse.cz>
259
260         * tree-inline.c (declare_return_variable): Fix ICE while
261         inlining DECL_BY_VALUE function not in SSA form
262
263 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
264
265         PR tree-optimization/44576
266         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
267         New.  Pull out from is_loop_prefetching_profitable to implement
268         the trip count to ahead ratio heuristic.
269         (mem_ref_count_reasonable_p): New.  Pull out from
270         is_loop_prefetching_profitable to implement the instruction to
271         memory reference ratio heuristic.  Also consider not reasonable if
272         the memory reference count is above a threshold (to avoid
273         explosive compilation time.
274         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
275         is_loop_prefetching_profitable to implement the instruction to
276         prefetch ratio heuristic.
277         (is_loop_prefetching_profitable): Removed.
278         (loop_prefetch_arrays): Distribute the cost analysis across the
279         function to allow early exit of the prefetch analysis.
280         is_loop_prefetching_profitable is splitted into three functions,
281         with each one called as early as possible.
282         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
283         number of memory references in a loop is considered too many.
284
285 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
286
287         * reload.c (find_reloads): Don't clear badop if we have a winreg
288         alternative, but not win, and the class only has fixed regs.
289         * hard-reg-set.h (class_only_fixed_regs): Declare.
290         * reginfo.c (class_only_fixed_regs): New array.
291         (init_reg_sets_1): Initialize it.
292         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
293         discourage alternatives using the stack pointer.
294
295         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
296
297         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
298
299         * config/arm/arm.md (cbranchqi4): Fix array size.
300         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
301         calculating length.
302
303 2010-07-09  Richard Guenther  <rguenther@suse.de>
304
305         * gimple.c (struct type_fixup_s): New struct and VEC type.
306         (gimple_register_type_fixups): New static global.
307         (gimple_queue_type_fixup): New function.
308         (gimple_types_compatible_p): Queue type fixups instead of
309         applying them here.
310         (gimple_register_type): Apply queued fixups for the
311         canonical type.  Empty the type fixup queue.
312
313 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
314
315         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
316         * configure: Regenerate.
317         * config.in: Ditto.
318
319 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
320             Denys Vlasenko  <dvlasenk@redhat.com>
321             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
322
323         PR tree-optimization/28632
324         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
325         (extract_range_from_binary_expr): Further optimize
326         BIT_AND_EXPR and BIT_IOR_EXPR.
327
328 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
329
330         * tree-if-conv.c (fold_or_predicates): New.
331         (add_to_predicate_list): Call it.
332
333 2010-07-09  Richard Guenther  <rguenther@suse.de>
334
335         PR middle-end/44890
336         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
337         if base is a pointer.
338         * tree-cfg.c (verify_expr): Update MEM_REF checking.
339
340 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
341
342         PR target/44877
343         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
344         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
345         builtin mask for load/store builtins.
346
347 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
348
349         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
350         for "lock addl".
351         * configure: Regenerate.
352         * config/i386/i386.c (ix86_print_operand) <case ';'>:
353         Remove TARGET_MACHO.
354
355 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
356
357         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
358         default ISA flags.
359         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
360
361 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
362
363         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
364
365 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
366
367         * config/picochip/picochip.md (commsTestPort): Emit more
368         efficient sequence for tstport instruction.
369
370 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
371
372         * config/i386/i386.c (ix86_veclib_handler): Make static.
373
374 2010-07-09  Richard Guenther  <rguenther@suse.de>
375
376         PR tree-optimization/44852
377         * tree-ssa-alias.c: Include toplev.h for exact_log2.
378         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
379         in MEM_REF.
380         (indirect_refs_may_alias_p): Likewise.
381         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
382
383 2010-07-09  Richard Guenther  <rguenther@suse.de>
384
385         PR tree-optimization/44882
386         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
387         sets do conflict.
388         (vectorizable_load): Likewise.
389
390 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
391
392         PR target/40657
393         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
394         All callers changed.
395         Handle the case when we're called for the epilogue.
396         (thumb_unexpanded_epilogue): Use it.
397         (thumb1_expand_epilogue): Likewise.
398
399 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
400
401         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
402         both ranges are range_int_cst_p with non-negative minimum,
403         try harder to derive smaller range.
404
405 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
406
407         * genrecog.c: Include diagnostic-core.h before toplev.h.
408         * genoutput.c: Likewise.
409         * genextract.c: Likewise.
410         * genautomata.c: Likewise.
411         * genemit.c: Likewise.
412         * genpeep.c: Likewise.
413         * genattrtab.c: Likewise.
414         * genconditions.c: Likewise.
415         * genpreds.c: Likewise.
416
417 2010-07-08  Andi Kleen  <ak@linux.intel.com>
418
419         * lto-section-in.c (lto_section_name): Add missing comma.
420
421 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
422
423         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
424         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
425         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
426         (ia64_override_options): Rename to...
427         (ia64_option_override): ... this one. Make static.
428
429 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
430
431         PR middle-end/44843
432         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
433         pointed-to type of the offset in a MEM_REF to compute the alignment.
434
435 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
436
437         * final.c (final_scan_insn): Replace
438         TARGET_UNWIND_INFO macro check by unwind_emit
439         hook NULL check.
440         * targhooks.c (default_unwind_emit): Removed.
441         * targhooks.h (default_unwind_emit): Likewise.
442         * target.def (unwind_emit): Set default value to NULL.
443
444         * config/i386/i386-protos.h (ix86_asm_output_function_label):
445         New prototype.
446         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
447         for NULL fntype argument and allow 64-bit targets.
448         (ix86_asm_output_function_label): New function.
449         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
450         (ix86_handle_fndecl_attribute): Likewise.
451         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
452         * doc/doc/tm.texi: Regenerated.
453         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
454         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
455         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
456         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
457         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
458         * config/elfos.h: Likewise.
459         * config/i386/cygming.h: Likewise.
460         * config/netbsd-aout.h: Likewise.
461         * config/openbsd.h: Likewise.
462         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
463         by ix86_asm_output_function_label function call.
464         * varasm.c (assemble_start_function): Use
465         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
466
467 2010-07-08  Jan Hubicka  <jh@suse.cz>
468
469         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
470         New function.
471         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
472         Declare.
473         * ipa-cp.c (ipcp_estimate_growth): Use it.
474         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
475         Likewise.
476
477 2010-07-08  Jan Hubicka  <jh@suse.cz>
478
479         * tree-inline.c (declare_return_variable): Allocate annotation for new
480         temporary.
481
482 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
483
484         PR tree-optimization/44710
485         * tree-if-conv.c (parse_predicate): New.
486         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
487         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
488
489 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
490
491         * common.opt (ftree-loop-if-convert): New flag.
492         * doc/invoke.texi (ftree-loop-if-convert): Documented.
493         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
494         when flag_tree_loop_if_convert is set.
495
496 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
497
498         * config/i386/i386.c: Use short syntax for function calls
499         through function pointers.
500         * config/i386/i386.md: Ditto.
501
502 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
503
504         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
505
506 2010-07-08  Richard Guenther  <rguenther@suse.de>
507
508         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
509         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
510
511 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
512
513         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
514         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
515         (loc_list_from_tree): Likewise.
516         (output_loc_operands): Handle outputting DW_OP_const[48]u
517         with loc->dtprel set.
518         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
519
520 2010-07-08  Jan Hubicka  <jh@suse.cz>
521
522         * ipa.c: Include pointer-set.h
523         (cgraph_externally_visible_p): New attribute ALIASED;
524         when in LTO, hidden symbols are local unless they are aliased.
525         (function_and_variable_visibility): Compute aliased nodes;
526         handle LTO and hidden symbol on functions and vars.
527         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
528         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
529
530 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
531
532         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
533         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
534         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
535         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
536         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
537         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
538         (ix86_gen_probe_stack_range): Likewise.
539         (override_options): Set them.
540         (ix86_target_stack_probe): New function.
541         (ix86_compute_frame_layout): Force use of push instructions to
542         save registers if stack checking with probes is enabled.
543         (get_scratch_register_on_entry): New function.
544         (release_scratch_register_on_entry): Likewise.
545         (ix86_adjust_stack_and_probe): Likewise.
546         (output_adjust_stack_and_probe): Likewise.
547         (ix86_emit_probe_stack_range): Likewise.
548         (output_probe_stack_range): Likewise.
549         (ix86_expand_prologue): Emit stack checking code if static built-in
550         stack checking is enabled.
551         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
552         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
553         (output_adjust_stack_and_probe): Likewise.
554         (output_probe_stack_range): Likewise.
555         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
556         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
557         TARGET_STACK_PROBE.
558         (allocate_stack_worker_64): Likewise.
559         (allocate_stack): Likewise.
560         (adjust_stack_and_probe): New insn.
561         (probe_stack_range): Likewise.
562
563 2010-07-08  Richard Guenther  <rguenther@suse.de>
564
565         PR tree-optimization/44831
566         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
567         a MEM_REF preserving TBAA info of the original dereference.
568         Dereference the original pointer if the address is not invariant.
569         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
570         at least one invariant address that we are going to dereference.
571
572 2010-07-08  Richard Guenther  <rguenther@suse.de>
573
574         PR tree-optimization/44861
575         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
576         information when building MEM_REFs.
577         (vectorizable_load): Likewise.
578         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
579
580 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
581
582         * config/sol2-c.c: Do not include diagnostic-core.h.
583
584 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
585
586         PR bootstrap/44768
587         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
588         with respect to current_function_decl. Pass decl of the function.
589         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
590         * ipa-inline.c (compute_inline_parameters): Pass decl to
591         estimated_stack_frame_size.
592
593 2010-07-08  Richard Guenther  <rguenther@suse.de>
594
595         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
596         New function.
597         (valueize_refs): Call it.
598
599 2010-07-08  Richard Guenther  <rguenther@suse.de>
600
601         PR rtl-optimization/44838
602         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
603         SSA form do not use pointer equivalence.
604
605 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
606
607         * dwarf2out.c (AT_linkage_name): Delete.
608         (add_linkage_attr): New function.
609         (add_linkage_name): Call it to emit the linkage attribute.
610         (dwarf2out_finish): Likewise.
611         (move_linkage_attr): Explicitly accept both attribute variants.
612
613 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
614
615         * toplev.h: Do not include diagnostic-core.h.
616         Include diagnostic-core.h in every file that includes toplev.h.
617         * c-tree.h: Do not include toplev.h.
618         * pretty-print.h: Update comment.
619         * Makefile.in: Update dependencies.
620         * alias.c: Include diagnostic-core.h in every file that includes
621         toplev.h.
622         * attribs.c: Likewise.
623         * auto-inc-dec.c: Likewise.
624         * bb-reorder.c: Likewise.
625         * bt-load.c: Likewise.
626         * caller-save.c: Likewise.
627         * calls.c: Likewise.
628         * cfg.c: Likewise.
629         * cfganal.c: Likewise.
630         * cfgbuild.c: Likewise.
631         * cfgcleanup.c: Likewise.
632         * cfghooks.c: Likewise.
633         * cfgloop.c: Likewise.
634         * combine.c: Likewise.
635         * config/alpha/alpha.c: Likewise.
636         * config/arc/arc.c: Likewise.
637         * config/arm/arm.c: Likewise.
638         * config/arm/pe.c: Likewise.
639         * config/avr/avr.c: Likewise.
640         * config/bfin/bfin.c: Likewise.
641         * config/cris/cris.c: Likewise.
642         * config/crx/crx.c: Likewise.
643         * config/darwin-c.c: Likewise.
644         * config/darwin.c: Likewise.
645         * config/fr30/fr30.c: Likewise.
646         * config/frv/frv.c: Likewise.
647         * config/h8300/h8300.c: Likewise.
648         * config/host-darwin.c: Likewise.
649         * config/i386/i386.c: Likewise.
650         * config/i386/netware.c: Likewise.
651         * config/i386/nwld.c: Likewise.
652         * config/i386/winnt-cxx.c: Likewise.
653         * config/i386/winnt-stubs.c: Likewise.
654         * config/i386/winnt.c: Likewise.
655         * config/ia64/ia64-c.c: Likewise.
656         * config/ia64/ia64.c: Likewise.
657         * config/iq2000/iq2000.c: Likewise.
658         * config/lm32/lm32.c: Likewise.
659         * config/m32c/m32c-pragma.c: Likewise.
660         * config/m32c/m32c.c: Likewise.
661         * config/m32r/m32r.c: Likewise.
662         * config/m68hc11/m68hc11.c: Likewise.
663         * config/m68k/m68k.c: Likewise.
664         * config/mcore/mcore.c: Likewise.
665         * config/mep/mep-pragma.c: Likewise.
666         * config/mep/mep.c: Likewise.
667         * config/mmix/mmix.c: Likewise.
668         * config/mn10300/mn10300.c: Likewise.
669         * config/moxie/moxie.c: Likewise.
670         * config/pa/pa.c: Likewise.
671         * config/pdp11/pdp11.c: Likewise.
672         * config/picochip/picochip.c: Likewise.
673         * config/rs6000/rs6000-c.c: Likewise.
674         * config/rs6000/rs6000.c: Likewise.
675         * config/rx/rx.c: Likewise.
676         * config/s390/s390.c: Likewise.
677         * config/score/score.c: Likewise.
678         * config/score/score3.c: Likewise.
679         * config/score/score7.c: Likewise.
680         * config/sh/sh.c: Likewise.
681         * config/sh/symbian-base.c: Likewise.
682         * config/sh/symbian-c.c: Likewise.
683         * config/sh/symbian-cxx.c: Likewise.
684         * config/sol2-c.c: Likewise.
685         * config/sol2.c: Likewise.
686         * config/sparc/sparc.c: Likewise.
687         * config/spu/spu.c: Likewise.
688         * config/stormy16/stormy16.c: Likewise.
689         * config/v850/v850-c.c: Likewise.
690         * config/v850/v850.c: Likewise.
691         * config/vax/vax.c: Likewise.
692         * config/vxworks.c: Likewise.
693         * config/xtensa/xtensa.c: Likewise.
694         * convert.c: Likewise.
695         * cse.c: Likewise.
696         * cselib.c: Likewise.
697         * dbgcnt.c: Likewise.
698         * dbxout.c: Likewise.
699         * ddg.c: Likewise.
700         * dominance.c: Likewise.
701         * emit-rtl.c: Likewise.
702         * explow.c: Likewise.
703         * expmed.c: Likewise.
704         * fixed-value.c: Likewise.
705         * fold-const.c: Likewise.
706         * fwprop.c: Likewise.
707         * gcse.c: Likewise.
708         * ggc-common.c: Likewise.
709         * ggc-page.c: Likewise.
710         * ggc-zone.c: Likewise.
711         * gimple-low.c: Likewise.
712         * gimplify.c: Likewise.
713         * graph.c: Likewise.
714         * haifa-sched.c: Likewise.
715         * ifcvt.c: Likewise.
716         * implicit-zee.c: Likewise.
717         * integrate.c: Likewise.
718         * ira-build.c: Likewise.
719         * ira-color.c: Likewise.
720         * ira-conflicts.c: Likewise.
721         * ira-costs.c: Likewise.
722         * ira-lives.c: Likewise.
723         * ira.c: Likewise.
724         * lists.c: Likewise.
725         * loop-doloop.c: Likewise.
726         * loop-iv.c: Likewise.
727         * lto-opts.c: Likewise.
728         * lto-symtab.c: Likewise.
729         * main.c: Likewise.
730         * modulo-sched.c: Likewise.
731         * optabs.c: Likewise.
732         * params.c: Likewise.
733         * plugin.c: Likewise.
734         * postreload-gcse.c: Likewise.
735         * postreload.c: Likewise.
736         * predict.c: Likewise.
737         * profile.c: Likewise.
738         * real.c: Likewise.
739         * regcprop.c: Likewise.
740         * reginfo.c: Likewise.
741         * regmove.c: Likewise.
742         * reorg.c: Likewise.
743         * resource.c: Likewise.
744         * rtl.c: Likewise.
745         * rtlanal.c: Likewise.
746         * sched-deps.c: Likewise.
747         * sched-ebb.c: Likewise.
748         * sched-rgn.c: Likewise.
749         * sdbout.c: Likewise.
750         * sel-sched-dump.c: Likewise.
751         * sel-sched-ir.c: Likewise.
752         * simplify-rtx.c: Likewise.
753         * stmt.c: Likewise.
754         * stor-layout.c: Likewise.
755         * store-motion.c: Likewise.
756         * targhooks.c: Likewise.
757         * tree-cfg.c: Likewise.
758         * tree-cfgcleanup.c: Likewise.
759         * tree-dump.c: Likewise.
760         * tree-eh.c: Likewise.
761         * tree-inline.c: Likewise.
762         * tree-nomudflap.c: Likewise.
763         * tree-object-size.c: Likewise.
764         * tree-optimize.c: Likewise.
765         * tree-outof-ssa.c: Likewise.
766         * tree-phinodes.c: Likewise.
767         * tree-profile.c: Likewise.
768         * tree-ssa-ccp.c: Likewise.
769         * tree-ssa-coalesce.c: Likewise.
770         * tree-ssa-live.c: Likewise.
771         * tree-ssa-loop-niter.c: Likewise.
772         * tree-ssa-loop-prefetch.c: Likewise.
773         * tree-ssa-loop.c: Likewise.
774         * tree-ssa-structalias.c: Likewise.
775         * tree-ssa-uninit.c: Likewise.
776         * tree-ssa.c: Likewise.
777         * tree-vect-data-refs.c: Likewise.
778         * tree-vect-loop-manip.c: Likewise.
779         * tree-vect-loop.c: Likewise.
780         * tree-vect-patterns.c: Likewise.
781         * tree-vect-stmts.c: Likewise.
782         * tree-vrp.c: Likewise.
783         * varasm.c: Likewise.
784         * vec.c: Likewise.
785         * web.c: Likewise.
786         * xcoffout.c: Likewise.
787
788 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
789
790         * gengtype.c (write_field_root): New function.
791         (write_root): Use it.
792
793 2010-07-07  Wei Guozhi  <carrot@google.com>
794
795         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
796         of lowest bits to lshift/compare): Add a missing line.
797
798 2010-07-07  Wei Guozhi  <carrot@google.com>
799
800         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
801         of lowest bits to lshift/compare): New.
802
803 2010-07-07  Tom Tromey  <tromey@redhat.com>
804
805         * doc/tm.texi: Update.
806         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
807         Add @hook.
808         * target.def (want_debug_pub_sections): New hook.
809         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
810         * dwarf2out.c (add_pubname_string): Check
811         targetm.want_debug_pub_sections.
812         (add_pubname): Likewise.
813         (add_pubtype): Likewise.
814
815 2010-07-07  Jie Zhang  <jie@codesourcery.com>
816
817         * genautomata.c (output_automata_list_min_issue_delay_code):
818         Correctly decompress min_issue_delay.
819
820 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
821
822         PR rtl-optimization/44404
823         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
824         possible, use reg_overlap_mentioned_p instead.
825
826 2010-07-07  Duncan Sands  <baldrick@free.fr>
827
828         PR middle-end/41355
829         * tree.c (build_function_type_skip_args): Copy the original type using
830         build_distinct_type_copy rather than copy_node.
831
832 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
833
834         PR target/44850
835         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
836         revision 161876.
837         (ix86_expand_prologue): Likewise.
838         (ix86_handle_fndecl_attribute): Likewise.
839         (ix86_asm_declare_function_name): Likewise.
840         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
841         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
842         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
843         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
844         * doc/extend.texi: Likewise.
845
846 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
847
848         PR target/44844
849         * config/i386/i386.md (rdrand<mode>): Changed to expand to
850         retry if the carry flag isn't valid.
851         (rdrand<mode>_1): New.
852
853 2010-07-07  Richard Guenther  <rguenther@suse.de>
854
855         PR middle-end/44790
856         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
857         for expanding the constant offset for MEM_REFs.
858
859 2010-07-07  Richard Guenther  <rguenther@suse.de>
860
861         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
862         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
863         * gimple.h (is_gimple_operand): Remove.
864         * gimple.c (is_gimple_operand): Likewise.
865         (walk_gimple_op): Fix wi->val_only setting for calls.
866         * tree-cfg.c (verify_gimple_call): Fix argument validation.
867         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
868         invalid gimple calls.
869
870 2010-07-06  Jan Hubicka  <jh@suse.cz>
871
872         * lto-cgraph.c (output_cgraph): Add missing declaration.
873
874 2010-07-06  Jan Hubicka  <jh@suse.cz>
875
876         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
877         partition.
878
879 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
880
881         * doc/gimple.texi (GIMPLE_DEBUG): Document.
882         * doc/rtl.texi (Debug Information): New node.
883         (NOTE_INSN_VAR_LOCATION): Document.
884         (debug_insn): Likewise.
885         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
886
887 2010-07-07  Jan Hubicka  <jh@suse.cz>
888
889         With parts by Richard Guenther.
890
891         PR middle-end/44813
892         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
893         for functions passed by reference.
894         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
895         in memory when passed by reference.
896         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
897         beggining.
898         * ipa-split.c (split_function): Cleanup way return value is passed;
899         handle SSA DECL_BY_REFERENCE retvals.
900         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
901         DECL_BY_REFERENCE is set.
902         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
903         find_what_p_points_to): Handle RESULT_DECL.
904         * tree-inline.c (declare_return_variable): Get new entry_block argument;
905         when passing by reference ensure that RESULT_DECL is gimple_val.
906         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
907         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
908
909 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
910
911         PR rtl-optimization/44787
912         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
913         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
914
915 2010-07-06  Jan Hubicka  <jh@suse.cz>
916
917         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
918         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
919         with body can prevail.
920         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
921         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
922         * cgraph.c (cgraph_get_node_or_alias): New function.
923         * cgraph.h (cgraph_get_node_or_alias): Declare.
924
925 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
926
927         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
928         support.
929         (ix86_expand_prologue): Likewise.
930         (ix86_handle_fndecl_attribute): Likewise.
931         (ix86_asm_declare_function_name): New function for
932         ASM_DECLARE_FUNCTION_NAME.
933         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
934         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
935         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
936         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
937         * doc/extend.texi: Adjust documentation about ms_hook_prologue
938         attribute.
939
940 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
941
942         * config/i386/i386.md (immediate_operand): New mode attribute.
943
944         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
945         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
946         using P mode iterator.
947         (pro_epilogue_adjust_stack_di_2): Rename from
948         pro_epilogue_adjust_stack_rex64_2.
949
950         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
951
952 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
953
954         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
955         through gen_mov_insv_1 function pointer.
956         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
957         gen_truncxf<mode>2 through gen_truncxf function pointer.
958         (remainder<mode>3): Ditto.
959         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
960         (allocate_stack): Call gen_allocate_stack_worker_64 or
961         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
962         function pointer.
963         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
964         function pointer.
965
966 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
967
968         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
969         operand constraint instead of <r><i>m.
970
971 2010-07-06  Richard Guenther  <rguenther@suse.de>
972
973         PR middle-end/44828
974         * convert.c (convert_to_integer): Watch out for overflowing
975         MULT_EXPR as well.
976
977 2010-07-05  Jan Hubicka  <jh@suse.cz>
978
979         * lto-streamer.c (write_symbol_vec): Rename to ...
980         (write_symbol) ... this one; write only symbol given and when
981         present in cache. Sanity check that what is defined is present
982         in cgraph/varpool with body/finalized decl.
983         (write_symbols_of_kind): Remove.
984         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
985         pairs to produce symtab.
986         (produce_asm_for_decls): Update call of produce_symtab; don't do so
987         when doing WPA streaming.
988
989 2010-07-05  Jan Hubicka  <jh@suse.cz>
990
991         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
992         function is still available to fold into.
993
994 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
995
996         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
997         * function.h (struct_function): Change type of local_decls field
998         to a VEC.
999         (add_local_decl): New function.
1000         (FOR_EACH_LOCAL_DECL): New macro.
1001         * cfgexpand.c (init_vars_expansion): Adjust for new type of
1002         cfun->local_decls.
1003         (estimated_stack_frame_size): Likewise.
1004         (expand_used_vars): Likewise.
1005         * cgraphbuild.c (build_cgraph_edges): Likewise.
1006         * function.c (instantiate_decls_1): Likewise.
1007         * ipa-struct-reorg.c (build_data_structure): Likewise.
1008         * ipa-type-escape.c (analyze_function): Likewise.
1009         * lto-streamer-in.c (input_function): Likewise.
1010         * lto-streamer-out.c (output_function): Likewise.
1011         * tree-ssa-live.c (remove_unused_locals): Likewise.
1012         * tree.c (free_lang_data_in_decl): Likewise.
1013         (find_decls_types_in_node): Likewise.
1014         * omp-low.c (remove_exit_barrier): Likewise.
1015         (expand_omp_taskreg): Likewise.
1016         (list2chain): Rename to...
1017         (vec2chain): ...this.  Adjust.
1018         * cgraphunit.c (assemble_thunk): Call add_local_decl.
1019         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
1020         * gimple-low.c (record_vars_into): Likewise.
1021         * tree-inline.c (remap_decls): Likewise.
1022         (declare_return_variable): Likewise.
1023         (declare_inline_vars): Likewise.
1024         (copy_forbidden): Adjust for new type of cfun->local_decls.
1025         (add_local_variables): New function.
1026         (expand_call_inline): Call it.
1027         (tree_function_versioning): Likewise.
1028
1029 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
1030
1031         AVX Programming Reference (June, 2010)
1032         * config/i386/cpuid.h (bit_F16C): New.
1033         (bit_RDRND): Likewise.
1034         (bit_FSGSBASE): Likewise.
1035
1036         * config/i386/i386-builtin-types.def: Add
1037         "DEF_FUNCTION_TYPE (UINT16)", function types for
1038         float16 <-> float conversions and
1039         "DEF_FUNCTION_TYPE (VOID, UINT64)".
1040
1041         * config/i386/i386-c.c (ix86_target_macros_internal): Support
1042         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
1043         OPTION_MASK_ISA_F16C.
1044
1045         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
1046         (OPTION_MASK_ISA_RDRND_SET): Likewise.
1047         (OPTION_MASK_ISA_F16C_SET): Likewise.
1048         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
1049         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
1050         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
1051         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
1052         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
1053         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
1054         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
1055         (override_options): Handle them.
1056         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
1057         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
1058         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
1059         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
1060         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
1061         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
1062         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
1063         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
1064         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
1065         (bdesc_args): Likewise.
1066         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
1067         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
1068         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
1069         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
1070         Handle non-memory store.
1071
1072         * config/i386/i386.h (TARGET_FSGSBASE): New.
1073         (TARGET_RDRND): Likewise.
1074         (TARGET_F12C): Likewise.
1075
1076         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
1077         (UNSPEC_VCVTPS2PH): Likewise.
1078         (UNSPECV_RDFSBASE): Likewise.
1079         (UNSPECV_RDGSBASE): Likewise.
1080         (UNSPECV_WRFSBASE): Likewise.
1081         (UNSPECV_WRGSBASE): Likewise.
1082         (UNSPECV_RDRAND): Likewise.
1083         (rdfsbase<mode>): Likewise.
1084         (rdgsbase<mode>): Likewise.
1085         (wrfsbase<mode>): Likewise.
1086         (wrgsbase<mode>): Likewise.
1087         (rdrand<mode>): Likewise.
1088
1089         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
1090
1091         * config/i386/immintrin.h (_rdrand_u16): New.
1092         (_rdrand_u32): Likewise.
1093         (_readfsbase_u32): Likewise.
1094         (_readfsbase_u64): Likewise.
1095         (_readgsbase_u32): Likewise.
1096         (_readgsbase_u64): Likewise.
1097         (_writefsbase_u32): Likewise.
1098         (_writefsbase_u64): Likewise.
1099         (_writegsbase_u32): Likewise.
1100         (_writegsbase_u64): Likewise.
1101         (_rdrand_u64): Likewise.
1102         (_cvtsh_ss): Likewise.
1103         (_mm_cvtph_ps): Likewise.
1104         (_mm256_cvtph_ps): Likewise.
1105         (_cvtss_sh): Likewise.
1106         (_mm_cvtps_ph): Likewise.
1107         (_mm256_cvtps_ph): Likewise.
1108
1109         * config/i386/sse.md (vcvtph2ps): New.
1110         (*vcvtph2ps_load): Likewise.
1111         (vcvtph2ps256): Likewise.
1112         (vcvtps2ph): Likewise.
1113         (*vcvtps2ph): Likewise.
1114         (*vcvtps2ph_store): Likewise.
1115         (vcvtps2ph256): Likewise.
1116
1117         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
1118
1119         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
1120
1121 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
1122
1123         PR bootstrap/44512
1124         * genenums.c (main): Output include of insn-constants.h
1125         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
1126
1127 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
1128
1129         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
1130         (override_options): Initialize it.
1131         (ix86_expand_prologue): Use it.
1132
1133 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1134
1135         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
1136
1137 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1138
1139         * double-int.h (fit_double_type): Remove declaration.
1140         * double-int.c (fit_double_type): Remove function.
1141         * tree.h (int_fits_type_p): Adjust prototype.
1142         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
1143         instead of fit_double_type.
1144         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
1145         instead of fit_double_type and build_int_cst_wide.
1146         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
1147         instead of fit_double_type and build_int_cst_wide.
1148         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
1149         of fit_double_type.
1150
1151 2010-07-05  Jan Hubicka  <jh@suse.cz>
1152
1153         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
1154         in_other_partition.
1155         * lto-cgraph.c (referenced_from_other_partition_p,
1156         reachable_from_other_partition_p): Use in_other_partition flags.
1157         (output_node, output_varpool_node): COMDAT nodes always have private
1158         copies and thus are never used from other partition.
1159
1160 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
1161
1162         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1163         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
1164         * config/ia64/ia64.c Include reload.h.
1165         (ia64_memory_move_cost): New function.
1166         (TARGET_MEMORY_MOVE_COST): Define.
1167         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
1168         memory_move_cost.
1169
1170 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
1171
1172         PR middle-end/42505
1173         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
1174         comments about cost model.
1175         (try_add_cand_for):  Add second strategy for choosing initial set
1176         based on original IVs, controlled by ORIGINALP argument.
1177         (get_initial_solution): Add ORIGINALP argument.
1178         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
1179         (find_optimal_iv_set): Try two different strategies for choosing
1180         the IV set, and return the one with lower cost.
1181
1182 2010-07-05  Richard Guenther  <rguenther@suse.de>
1183
1184         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
1185
1186 2010-07-05  Richard Guenther  <rguenther@suse.de>
1187
1188         * tree.c (reference_alias_ptr_type): New function.
1189         * tree.h (reference_alias_ptr_type): Declare.
1190         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
1191         allow non-TARGET_MEM_REF new refs.
1192         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
1193         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
1194         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
1195         (create_mem_ref): Get alias pointer type.  Adjust calls to
1196         create_mem_ref_raw.
1197         (maybe_fold_tmr): Likewise.
1198         * tree-flow.h (create_mem_ref): Adjust prototype.
1199
1200 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
1201
1202         PR c++/44808
1203         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
1204         *from_p is VAR_DECL.
1205
1206 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1207
1208         * tree.h (build_call_list): Remove.
1209         * tree.c (build_call_list): Remove.
1210
1211 2010-07-05  Richard Guenther  <rguenther@suse.de>
1212
1213         * double-int.h (double_int_sub): Declare.
1214         * double-int.c (double_int_sub): New function.
1215         * dwarf2out.c (field_byte_offset): Use it.
1216         * fixed-value.c (do_fixed_add): Likewise.
1217         (do_fixed_multiply): Likewise.
1218         (do_fixed_divide): Likewise.
1219         * tree-predcom.c (add_ref_to_chain): Likewise.
1220         (determine_roots_comp): Likewise.
1221         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
1222
1223 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
1224
1225         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
1226         implementations.
1227
1228 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
1229
1230         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
1231         * arm-modes.def (CC_NOTB): Don't define.
1232         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
1233         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
1234         (LTUGEU): New code_iterator.
1235         (cnb, optab): New corresponding code_attrs.
1236         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
1237         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
1238         using LTUGEU.
1239         (addsi3_carryin_shift_<optab>): Likewise.
1240         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
1241         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
1242         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
1243         (subsi3_compare): Renamed from subsi3_compare0_c.
1244         Change CC_NOTB to CC.
1245         (arm_subsi3_insn): Allow constants for operand 0.
1246         (compare_scc peephole for eq case): New.
1247         (compare_scc splitters): Change CC_NOTB to CC.
1248
1249 2010-07-05  Richard Guenther  <rguenther@suse.de>
1250
1251         * tree-ssa-loop-im.c (for_each_index): Do not handle
1252         ALIGN_INDIRECT_REF.
1253         (gen_lsm_tmp_name): Likewise.
1254         * tree-dump.c (dequeue_and_dump): Likewise.
1255         * tree-pretty-print.c (dump_generic_node): Likewise.
1256         (op_code_prio): Likewise.
1257         (op_symbol_code): Likewise.
1258         * tree.c (staticp): Likewise.
1259         (build1_stat): Likewise.
1260         * tree.h (INDIRECT_REF_P): Likewise.
1261         * fold-const.c (maybe_lvalue_p): Likewise.
1262         (operand_equal_p): Likewise.
1263         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
1264         (ao_ref_init_from_vn_reference): Likewise.
1265         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
1266         (find_interesting_uses_address): Likewise.
1267         * dwarf2out.c (loc_list_from_tree): Likewise.
1268         * gimplify.c (gimplify_expr): Likewise.
1269         * tree-eh.c (tree_could_trap_p): Likewise.
1270         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1271         * cfgexpand.c (expand_debug_expr): Likewise.
1272         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
1273         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
1274         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
1275         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
1276         * tree-ssa-operands.c (get_expr_operands): Likewise.
1277         * expr.c (safe_from_p): Likewise.
1278         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
1279         * tree-vect-data-refs.c (vect_setup_realignment): Build
1280         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
1281         * tree-vect-stmts.c (vectorizable_load): Likewise.
1282         * tree.def (ALIGN_INDIRECT_REF): Remove.
1283
1284 2010-07-05  Richard Guenther  <rguenther@suse.de>
1285
1286         PR tree-optimization/44784
1287         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
1288         for inserted stmts.
1289         (find_or_generate_expression): Fix SCCVN insertion check.
1290
1291 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
1292
1293         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
1294         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
1295         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
1296         directives.
1297
1298 2010-07-05  Ira Rosen  <irar@il.ibm.com>
1299
1300         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
1301         statements that are not vectorized.
1302         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
1303         in INSIDE_COST.
1304
1305 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
1306
1307         PR bootstrap/44820
1308         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
1309
1310 2010-07-05  Richard Guenther  <rguenther@suse.de>
1311
1312         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
1313         RESULT_DECLs properly.
1314
1315 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
1316
1317         PR rtl-optimization/44695
1318         * config/i386/i386.md (extract_code): Removed.
1319         (<u>divmodqi4): Likewise.
1320         (divmodqi4): New.
1321         (udivmodqi4): Likewise.
1322         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
1323         (udivmodhiqi3): Likewise.
1324
1325 2010-07-04  Jan Hubicka  <jh@suse.cz>
1326
1327         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
1328
1329 2010-07-04  Jan Hubicka  <jh@suse.cz>
1330
1331         * cgraphunit.c (init_cgraph): Only initialize dump file if it
1332         is not already initialized.
1333
1334 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1335
1336         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
1337         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
1338         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
1339         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
1340         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
1341         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
1342         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
1343         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
1344         (sync_new_nand_optab): Redefine as macros.
1345         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
1346         Delete.
1347         (direct_optab_index): New enum.
1348         (direct_optab_d): New structure.
1349         (direct_optab): New typedef.
1350         (direct_optab_table): Declare.
1351         (direct_optab_handler, set_direct_optab_handler): New functions.
1352         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
1353         (sync_lock_release_optab): New macros.
1354         * optabs.c (direct_optab_table): New variable.
1355         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
1356         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
1357         cmpstr_optab and cmpstrn_optab.
1358         (emit_conditional_move): Likewise for movcc_optab.
1359         (can_conditionally_move_p): Likewise for movcc_gen_code.
1360         (init_insn_codes): Clear direct_optab_table.
1361         (init_optabs): Don't initialize the new "direct optabs" here.
1362         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
1363         vcond_gen_code.
1364         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
1365         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
1366         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
1367         (expand_sync_operation): Likewise other sync_*_optabs.
1368         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
1369         to sync_compare_and_swap_optab.
1370         (expand_sync_lock_test_and_set): Use direct_optab_handler for
1371         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
1372         to the names of both.
1373         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
1374         cmpstr_optab and cmpstrn_optab.
1375         (expand_builtin_lock_release): Likewise sync_lock_release.
1376         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
1377         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
1378         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
1379         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
1380         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
1381         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
1382         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
1383         (sync_lock_test_and_set, sync_lock_release): Delete.
1384         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
1385         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
1386         * genopinit.c (optabs): Use set_direct_optab_handler for the new
1387         macro optabs.
1388         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
1389         the "optab" local variable.  Use direct_optab_handler for optab and
1390         sync_compare_and_swap_optab.
1391         * reload1.c (reload_in_optab, reload_out_optab): Delete.
1392         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
1393         reload_in_optab and reload_out_optab.
1394         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
1395         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
1396         * config/pa/pa.c (pa_secondary_reload): Likewise.
1397         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
1398         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
1399         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
1400         (VMSupportsCS8_builtin): Likewise.
1401
1402 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1403
1404         * optabs.h (optab_handlers): Change type of insn_code to int.
1405         (optab_handler, set_optab_handler, convert_optab_handler)
1406         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
1407         CODE_FOR_nothing".
1408         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
1409         (init_insn_codes): Zero both the above arrays.
1410         (init_optabs): Never call init_insn_codes first time around.
1411
1412 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
1413
1414         * optabs.h (optab_handler, convert_optab_handler): Turn into
1415         inline functions that return an insn code.
1416         (set_optab_handler, set_convert_optab_handler): New functions.
1417         * builtins.c: Replace optab_handler(X)->insn_code with
1418         optab_handler or set_optab_handler thoughout.  Likewise
1419         convert_optab_handler(X)->insn_code with convert_optab_handler
1420         and set_convert_optab_handler.
1421         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
1422         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
1423         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
1424         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
1425         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
1426         config/spu/spu.c: Likewise.
1427
1428 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
1429
1430         PR target/44531
1431         * config.gcc (sh*-*-*): Use regular expressions instead of
1432         the 'i' modifier for sed substitutions.
1433
1434 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1435
1436         * gimple.c (gimple_body): Comments added.
1437
1438 2010-07-04  Richard Guenther  <rguenther@suse.de>
1439
1440         PR middle-end/44809
1441         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
1442         of an INDIRECT_REF.
1443
1444 2010-07-04  Richard Guenther  <rguenther@suse.de>
1445
1446         PR tree-optimization/44479
1447         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
1448         extra SSA name copy statements which preserves points-to
1449         information.
1450         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1451         Copy points-to information for all pointers.  Properly handle
1452         MEM_REFs.
1453         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
1454         copy statements.
1455         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
1456         dependency.
1457
1458 2010-07-04  Richard Guenther  <rguenther@suse.de>
1459
1460         PR middle-end/44785
1461         * tree-inline.c (initialize_inlined_parameters): Do not
1462         re-use pointer-map slot over remap_type call.
1463
1464 2010-07-04  Richard Guenther  <rguenther@suse.de>
1465
1466         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
1467
1468 2010-07-04  Richard Guenther  <rguenther@suse.de>
1469
1470         PR tree-optimization/44656
1471         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
1472         again after value-replacing in the defintions lhs.
1473
1474 2010-07-04  Ira Rosen  <irar@il.ibm.com>
1475             Revital Eres  <eres@il.ibm.com>
1476
1477         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
1478         Document new arguments.
1479         * doc/tm.texi: Regenerate.
1480         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
1481         Handle unaligned store.
1482         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
1483         * target.def (builtin_vectorization_cost): Add new arguments.
1484         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
1485         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
1486         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
1487         (vect_vfa_segment_size): Fix indentation.
1488         * tree-vectorizer.h (struct _vect_peel_info): New.
1489         (struct _vect_peel_extended_info): New.
1490         (struct _loop_vec_info): Add new field for peeling hash table and a
1491         macro for its access.
1492         (VECT_MAX_COST): Define.
1493         (vect_get_load_cost): Declare.
1494         (vect_get_store_cost, vect_get_known_peeling_cost,
1495         vect_get_single_scalar_iteraion_cost): Likewise.
1496         (vect_supportable_dr_alignment): Add new argument.
1497         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
1498         field.
1499         (destroy_loop_vec_info): Free peeling hash table.
1500         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
1501         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
1502         vect_analyze_slp. Fix indentation.
1503         (vect_get_single_scalar_iteraion_cost): New function.
1504         (vect_get_known_peeling_cost): Likewise.
1505         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
1506         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
1507         statement. Move outside cost calculation inside unknown peeling case.
1508         Call vect_get_known_peeling_cost for known amount of peeling.
1509         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
1510         reference to the print message of forced alignment.
1511         (vect_verify_datarefs_alignment): Update call to
1512         vect_supportable_dr_alignment.
1513         (vect_get_data_access_cost): New function.
1514         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
1515         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
1516         vect_peeling_hash_choose_best_peeling): Likewise.
1517         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
1518         to store all the accesses in the loop and find best possible access to
1519         align using peeling for known alignment case. For unknown alignment
1520         check if stores are preferred or if peeling is worthy.
1521         (vect_find_same_alignment_drs): Analyze pairs of loads too.
1522         (vect_supportable_dr_alignment): Add new argument and check aligned
1523         accesses according to it.
1524         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
1525         (cost_for_stmt): Call vect_get_stmt_cost.
1526         (vect_model_simple_cost): Likewise.
1527         (vect_model_store_cost): Call vect_get_stmt_cost. Call
1528         vect_get_store_cost to calculate the cost of the statement.
1529         (vect_get_store_cost): New function.
1530         (vect_model_load_cost): Call vect_get_stmt_cost. Call
1531         vect_get_load_cost to calculate the cost of the statement.
1532         (vect_get_load_cost): New function.
1533         (vectorizable_store): Update call to vect_supportable_dr_alignment.
1534         (vectorizable_load): Likewise.
1535         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
1536         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
1537         arguments. Handle unaligned store.
1538         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
1539         (rs6000_builtin_support_vector_misalignment): Return true for word and
1540         double word alignments for VSX.
1541         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
1542         vect_supportable_dr_alignment and builtin_vectorization_cost.
1543
1544 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1545
1546         PR target/44597
1547         * config/pa/predicates.md (prefetch_cc_operand): Remove.
1548         (prefetch_nocc_operand): Likewise.
1549         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
1550         (prefetch_20): New insn.
1551         (prefetch_cc): Remove.
1552         (prefetch_nocc): Likewise.
1553
1554 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1555
1556         * expr.c (vector_mode_valid_p): Move to c-common.c.
1557         * expr.h (vector_mode_valid_p): Do not declare here.
1558         * system.h: Poison GCC_EXPR_H in front-ends.
1559         * Makefile.in: Update dependencies.
1560
1561 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1562
1563         PR target/44705
1564         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
1565
1566 2010-07-03  Jan Hubicka  <jh@suse.cz>
1567
1568         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
1569         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
1570         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
1571         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
1572         Likewise.
1573
1574         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
1575         Update timevars.V
1576         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
1577         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
1578         TV_IPA_LTO_DECL_OUT): New.
1579         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
1580
1581 2010-07-03  Jan Hubicka  <jh@suse.cz>
1582
1583         * ipa-inline.c (update_edge_key): Break out from ...
1584         update_callers_keys): ... here;
1585         (update_callee_keys): Update only the edges from caller to callee.
1586         (update_all_calle_keys): Do what update_calle_keys did.
1587         (decide_inlining_of_small_functions): Avoid recomputing of all
1588         callees when badness increase.
1589
1590 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1591
1592         * config/arm/arm.c (arm_attr_length_move_neon): New.
1593         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
1594         * config/arm/neon.md (define_mode_attr V_slen): Remove.
1595         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
1596         to compute length attribute.
1597
1598 2010-07-03  Jie Zhang  <jie@codesourcery.com>
1599
1600         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
1601         as predicate for operand 1 and remove its constraint.
1602         * config/arm/predicates.md (vfp_register_operand): New.
1603         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
1604         (*push_fp_multi): Likewise.
1605
1606 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
1607
1608         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
1609
1610 2010-07-03  Jan Hubicka  <jh@suse.cz>
1611
1612         * config/i386/i386.c (override_options): Revert accidental commit.
1613
1614 2010-07-02  Le-Chun Wu  <lcwu@google.com>
1615
1616         PR c++/44128
1617         * doc/invoke.texi: Update documentation of -Wshadow.
1618
1619 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1620             Julian Brown  <julian@codesourcery.com>
1621             Sandra Loosemore <sandra@codesourcery.com>
1622
1623         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
1624         comparisons.  Adjust to take both operands.
1625         (arm_select_cc_mode): Handle DImode comparisons.
1626         (arm_gen_compare_reg): Generate a scratch register for DImode
1627         comparisons which require one.  Use xor for Thumb equality checks.
1628         (arm_const_double_by_immediates): New.
1629         (arm_print_operand): Allow 'Q' and 'R' for constants.
1630         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
1631         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
1632         arm_canonicalize_comparison.
1633         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
1634         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
1635         prototype.
1636         (arm_const_double_by_immediates): Declare.
1637         * config/arm/constraints.md (Di): New constraint.
1638         * config/arm/predicates.md (arm_immediate_di_operand)
1639         (arm_di_operand, cmpdi_operand): New.
1640         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
1641         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
1642         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
1643         (cstoredi4): Handle non-Cirrus also.
1644
1645 2010-07-02  Julian Brown  <julian@codesourcery.com>
1646             Sandra Loosemore <sandra@codesourcery.com>
1647
1648         PR target/43703
1649         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
1650         (smax<mode>3): Disable for NEON float modes when
1651         flag_unsafe_math_optimizations is false.
1652         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
1653         (*mul<mode>3_neon)
1654         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
1655         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
1656         for NEON float modes when flag_unsafe_math_optimizations is false.
1657         (quad_halves_<code>v4sf): Only enable if
1658         flag_unsafe_math_optimizations is true.
1659         * doc/invoke.texi (ARM Options): Add note about floating point
1660         vectorization requiring -funsafe-math-optimizations.
1661
1662 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1663             Julian Brown  <julian@codesourcery.com>
1664
1665         * config/arm/neon.md (UNSPEC_VABA): Delete.
1666         (UNSPEC_VABAL): Delete.
1667         (UNSPEC_VABS): Delete.
1668         (UNSPEC_VMUL_N): Delete.
1669         (adddi3_neon): New.
1670         (subdi3_neon): New.
1671         (mul<mode>3add<mode>_neon): Make the pattern named.
1672         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
1673         (neon_vadd<mode>): Replace with define_expand, and move the remaining
1674         unspec parts...
1675         (neon_vadd<mode>_unspec): ...to this.
1676         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
1677         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
1678         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
1679         (neon_vaba<mode>): Rewrite in terms of vabd.
1680         (neon_vabal<mode>): Rewrite in terms of vabdl.
1681         (neon_vabs<mode>): Rewrite without unspec.
1682         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
1683         (*arm_subdi3): Likewise.
1684         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
1685         No_op attribute to disable assembly output checks.
1686         * config/arm/arm_neon.h: Regenerated.
1687         * doc/arm-neon-intrinsics.texi: Regenerated.
1688
1689 2010-07-02  Jan Hubicka  <jh@suse.cz>
1690
1691         * ipa-split.c (split_function): For aggregate values, set the return
1692         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
1693         *<retval> = fncall.part ().
1694         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
1695
1696 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1697
1698         * config/arm/neon.md (UNSPEC_VAND): Delete.
1699         (UNSPEC_VBIC): Delete.
1700         (UNSPEC_VCLZ): Delete.
1701         (UNSPEC_VCNT): Delete.
1702         (UNSPEC_VEOR): Delete.
1703         (UNSPEC_VORN): Delete.
1704         (UNSPEC_VORR): Delete.
1705         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
1706         core registers too.
1707         (anddi3_neon): Likewise.
1708         (orndi3_neon): Likewise.
1709         (bicdi3_neon): Likewise.
1710         (xordi3_neon): Likewise.
1711         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
1712         rid of unspec and handle unused operand.
1713         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
1714         * config/arm/predicates.md (imm_for_neon_logic_operand):
1715         Require TARGET_NEON.
1716         (imm_for_neon_inv_logic_operand): Likewise.
1717         * config/arm/arm.md (define_split for logical_binary_operator):
1718         Disable for NEON registers.
1719         (anddi3): Add new define_expand, and rename the insn.  Disable
1720         this insn for NEON, where anddi3_neon now applies.
1721         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
1722         (iordi3): As for anddi3.
1723         (xordi3): Likewise.
1724         * config/arm/neon.ml (Vand): Split DImode variants and mark them
1725         as No_op to disable testing for exact instruction match.
1726         (Vorr): Likewise.
1727         (Veor): Likewise.
1728         (Vbic): Likewise.
1729         (Vorn): Likewise.
1730         * config/arm/arm_neon.h: Regenerated.
1731         * doc/arm-neon-intrinsics.texi: Regenerated.
1732
1733 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1734
1735         * expr.h (emit_stack_probe): Declare.
1736         * explow.c (emit_stack_probe): Make global.
1737         (anti_adjust_stack_and_probe): Fix comments.
1738         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
1739         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1740         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
1741         * config/sparc/sparc.c: Include except.h.
1742         (sparc_emit_probe_stack_range): New function.
1743         (output_probe_stack_range): Likewise.
1744         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
1745         built-in stack checking is enabled.
1746         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
1747         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
1748         (probe_stack_range): New insn.
1749
1750 2010-07-02  Richard Guenther  <rguenther@suse.de>
1751
1752         PR target/43958
1753         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
1754         for argument alignment.
1755
1756 2010-07-02  Jan Hubicka  <jh@suse.cz>
1757
1758         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
1759         walk backwards from entry_bb to check only those basic block of header
1760         that might lead to execution of split part.
1761         (consider_split) ... here.
1762         (find_return_bb): Allow assignment in return BB.
1763         (find_retval): New.
1764         (split_function): Fix name of cloned function; take care of updating
1765         return value in return_bb containing move.
1766
1767 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
1768
1769         PR target/44771
1770         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
1771         used variable insn.
1772
1773 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
1774
1775         * implicit-zee.c (combine_reaching_defs): Fix long lines.
1776         (is_set_with_extension_DI): Delete.
1777         (struct zero_extend_info): New structure.
1778         (add_removable_zero_extend): New function.
1779         (find_removable_zero_extends): Use note_stores to find SETs.
1780         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
1781
1782 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
1783
1784         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
1785         is_miss_rate_acceptable. Pull total_positions computation
1786         out of the loops.  Early return if miss_positions exceeds
1787         the acceptable threshold.
1788         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
1789         is_miss_rate_acceptable after renaming of compute_miss_rate.
1790
1791 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
1792
1793         PR middle-end/44576
1794         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
1795         of 1000) for miss rate if the address diference is greater than or
1796         equal to the cache line size (the two reference will never hit the
1797         same cache line).
1798
1799 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
1800
1801         PR target/42835
1802         * config/arm/arm-modes.def (CC_NOTB): New mode.
1803         * config/arm/arm.c (get_arm_condition_code): Handle it.
1804         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
1805         * config/arm/arm.md (subsi3_compare0_c): New pattern.
1806         (compare_scc): Now a define_and_split.  Add a number of extra
1807         splitters before it.
1808
1809         PR target/42172
1810         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
1811         and ZERO_EXTEND.
1812         (arm_rtx_costs_1): Likewise.
1813         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
1814         * config/arm/arm.md (is_arch6): New attribute.
1815         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
1816         extendqisi2): Tighten the code somewhat, avoiding invalid
1817         RTL to occur in the expander patterns.
1818         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
1819         (thumb1_zero_extendhisi2_v6): Delete.
1820         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
1821         (thumb1_extendhisi2_v6): Delete.
1822         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
1823         (thumb1_extendqisi2_v6): Delete.
1824         (zero_extendhisi2 for register input splitter): New.
1825         (zero_extendqisi2 for register input splitter): New.
1826         (thumb1_extendhisi2 for register input splitter): New.
1827         (extendhisi2 for register input splitter): New.
1828         (extendqisi2 for register input splitter): New.
1829         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
1830         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
1831         and add support for a register alternative requiring a split.
1832         (thumb1_zero_extendqisi2): Likewise.
1833         (arm_zero_extendqisi2): Likewise.
1834         (arm_extendhisi2): Likewise.
1835         (arm_extendqisi2): Likewise.
1836
1837 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1838
1839         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
1840         instead of an unspec.
1841         (neon_expand_vector_init): Likewise.
1842         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
1843         (UNSPEC_VDUP_LANE): Delete.
1844         (UNSPEC VDUP_N): Delete.
1845         (UNSPEC_VGET_HIGH): Delete.
1846         (UNSPEC_VGET_LANE): Delete.
1847         (UNSPEC_VGET_LOW): Delete.
1848         (UNSPEC_VMVN): Delete.
1849         (UNSPEC_VSET_LANE): Delete.
1850         (V_double_vector_mode): New.
1851         (vec_set<mode>_internal): Make code emitted match that for the
1852         corresponding intrinsics.
1853         (vec_setv2di_internal): Likewise.
1854         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
1855         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
1856         (neon_vset_lane<mode>): Combine double and quad patterns and
1857         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
1858         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
1859         (neon_vdup_n<mode>): Rewrite RTL without unspec.
1860         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
1861         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
1862         with neon_vdup_lanev2di, adjusting the pattern from the latter
1863         to be predicable for consistency.
1864         (neon_vdup_lane<mode>_internal): New.
1865         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
1866         to avoid using an unspec.
1867         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
1868         (neon_vdup_lanev2di): Turn into a define_expand.
1869         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
1870         (neon_vget_high<mode>): Replace with....
1871         (neon_vget_highv16qi): New pattern using canonical RTL.
1872         (neon_vget_highv8hi): Likewise.
1873         (neon_vget_highv4si): Likewise.
1874         (neon_vget_highv4sf): Likewise.
1875         (neon_vget_highv2di): Likewise.
1876         (neon_vget_low<mode>): Replace with....
1877         (neon_vget_lowv16qi): New pattern using canonical RTL.
1878         (neon_vget_lowv8hi): Likewise.
1879         (neon_vget_lowv4si): Likewise.
1880         (neon_vget_lowv4sf): Likewise.
1881         (neon_vget_lowv2di): Likewise.
1882
1883         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
1884         test for this emitting vmov.
1885         (Vset_lane): Likewise.
1886         (Vdup_n): Likewise.
1887         (Vmov_n): Likewise.
1888
1889         * doc/arm-neon-intrinsics.texi: Regenerated.
1890
1891 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
1892
1893         * config/arm/neon.md (vec_extractv2di): Correct error in register
1894         numbering to reconcile with neon_vget_lanev2di.
1895
1896 2010-07-02  Richard Guenther  <rguenther@suse.de>
1897
1898         * tree-ssa-structalias.c (pt_solution_set_var): New function.
1899         * tree-ssa-alias.h (pt_solution_set_var): Declare.
1900         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
1901         points-to information.
1902
1903 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
1904
1905         * config/s390/s390.c (override_options): Adopt prefetching
1906         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
1907
1908 2010-07-02  Jan Hubicka  <jh@suse.cz>
1909
1910         * df-problems.c (df_kill_notes): Do not collect dead  notes.
1911         (df_set_note): Just call add_reg_note.
1912         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
1913         df_create_unused_note): Do not deal with lists of old notes.
1914         (df_note_bb_compute): Likewise.
1915
1916 2010-07-02  Richard Guenther  <rguenther@suse.de>
1917
1918         * tree-ssa-structalias.c (find_func_aliases): Handle
1919         pointer alignment via BIT_AND_EXPR.
1920         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
1921
1922 2010-07-02  Richard Guenther  <rguenther@suse.de>
1923
1924         * tree-data-ref.c (initialize_data_dependence_relation): Handle
1925         mismatching number of dimensions properly.
1926
1927 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1928
1929         PR target/44707
1930         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
1931         (lo_sum (high ...) ...) patterns generated by earlier passes.
1932
1933 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1934
1935         * doc/install.texi (Prerequisites): Document Perl requirement on
1936         Solaris 2.
1937         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
1938
1939 2010-07-02  Richard Guenther  <rguenther@suse.de>
1940
1941         PR middle-end/44777
1942         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
1943
1944 2010-07-02  Jan Hubicka  <jh@suse.cz>
1945
1946         PR middle-end/44706
1947         * predict.c (predict_paths_for_bb): Handle case when control dependence
1948         BB has only abnormal edges.
1949
1950 2010-07-02  Richard Guenther  <rguenther@suse.de>
1951
1952         PR tree-optimization/44748
1953         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
1954         the embedded conversion in MEM_REFs.
1955
1956 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
1957
1958         * reload.c: Include toplev.h.
1959         * recog.c:  Likewise.
1960         * Makefile.in: Adjust dependencies.
1961
1962 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
1963
1964         PR debug/44694
1965         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
1966         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
1967
1968 2010-07-01  Richard Guenther  <rguenther@suse.de>
1969
1970         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
1971         types for offsets.
1972
1973 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1974
1975         PR target/44732
1976         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
1977         Fix argument types.
1978
1979 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
1980
1981         PR target/44727
1982         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1983         Make sure operand 0 dies.
1984
1985 2010-07-01  Richard Guenther  <rguenther@suse.de>
1986
1987         PR middle-end/42834
1988         PR middle-end/44468
1989         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
1990         * doc/generic.texi (References to storage): Document MEM_REF.
1991         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
1992         (print_call_name): Likewise.
1993         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
1994         (build_simple_mem_ref_loc): New function.
1995         (mem_ref_offset): Likewise.
1996         * tree.h (build_simple_mem_ref_loc): Declare.
1997         (build_simple_mem_ref): Define.
1998         (mem_ref_offset): Declare.
1999         * fold-const.c: Include tree-flow.h.
2000         (operand_equal_p): Handle MEM_REF.
2001         (build_fold_addr_expr_with_type_loc): Likewise.
2002         (fold_comparison): Likewise.
2003         (fold_unary_loc): Fold
2004         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
2005         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
2006         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
2007         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
2008         (ptr_deref_may_alias_ref_p_1): Likewise.
2009         (ao_ref_base_alias_set): Properly differentiate base object for
2010         offset and TBAA.
2011         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
2012         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
2013         (indirect_refs_may_alias_p): Likewise.
2014         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
2015         chasing code.
2016         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
2017         (call_may_clobber_ref_p_1): Likewise.
2018         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
2019         * expr.c (expand_assignment): Handle MEM_REF.
2020         (store_expr): Handle MEM_REFs from STRING_CSTs.
2021         (store_field): If expanding a MEM_REF of a non-addressable
2022         decl use bitfield operations.
2023         (get_inner_reference): Handle MEM_REF.
2024         (expand_expr_addr_expr_1): Likewise.
2025         (expand_expr_real_1): Likewise.
2026         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
2027         * alias.c (ao_ref_from_mem): Handle MEM_REF.
2028         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
2029         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
2030         (dr_analyze_indices): Likewise.
2031         (dr_analyze_alias): Likewise.
2032         (object_address_invariant_in_loop_p): Likewise.
2033         * gimplify.c (mark_addressable): Handle MEM_REF.
2034         (gimplify_cond_expr): Build MEM_REFs.
2035         (gimplify_modify_expr_to_memcpy): Likewise.
2036         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
2037         (gimple_fold_indirect_ref): Adjust.
2038         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
2039         * tree.def (MEM_REF): New tree code.
2040         * tree-dfa.c: Include toplev.h.
2041         (get_ref_base_and_extent): Handle MEM_REF.
2042         (get_addr_base_and_unit_offset): New function.
2043         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
2044         * gimple-fold.c (may_propagate_address_into_dereference): Handle
2045         MEM_REF.
2046         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
2047         accesses if the array has just one dimension.  Remove always true
2048         parameter.  Do not require type compatibility here.
2049         (maybe_fold_offset_to_component_ref): Remove.
2050         (maybe_fold_stmt_indirect): Remove.
2051         (maybe_fold_reference): Remove INDIRECT_REF handling.
2052         Fold back to non-MEM_REF.
2053         (maybe_fold_offset_to_address): Simplify.  Deal with type
2054         mismatches here.
2055         (maybe_fold_reference): Likewise.
2056         (maybe_fold_stmt_addition): Likewise.  Also handle
2057         &ARRAY + I in addition to &ARRAY[0] + I.
2058         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
2059         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
2060         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
2061         * tree-ssa.c (useless_type_conversion_p): Make most pointer
2062         conversions useless.
2063         (warn_uninitialized_var): Handle MEM_REF.
2064         (maybe_rewrite_mem_ref_base): New function.
2065         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
2066         to SSA form.
2067         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
2068         INDIRECT_REF handling.
2069         (copy_tree_body_r): Handle MEM_REF.
2070         * gimple.c (is_gimple_addressable): Adjust.
2071         (is_gimple_address): Likewise.
2072         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
2073         invariant base are invariant.
2074         (is_gimple_min_lval): Adjust.
2075         (is_gimple_mem_ref_addr): New function.
2076         (get_base_address): Handle MEM_REF.
2077         (count_ptr_derefs): Likewise.
2078         (get_base_loadstore): Likewise.
2079         * gimple.h (is_gimple_mem_ref_addr): Declare.
2080         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
2081         * tree-cfg.c (verify_address): New function, split out from ...
2082         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
2083         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
2084         INDIRECT_REFs.
2085         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
2086         INDIRECT_REF.  Allow conversions.
2087         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
2088         a register does not change its size.
2089         (verify_types_in_gimple_reference): Verify MEM_REF.
2090         (verify_gimple_assign_single): Disallow INDIRECT_REF.
2091         Handle MEM_REF.
2092         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
2093         New.
2094         (mark_address_taken): Handle MEM_REF.
2095         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
2096         (get_asm_expr_operands): Pass opf_not_non_addressable.
2097         (get_expr_operands): Handle opf_[not_]non_addressable.
2098         Handle MEM_REF.  Remove INDIRECT_REF handling.
2099         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
2100         (search_for_addr_array): Likewise.
2101         (check_array_bounds): Likewise.
2102         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
2103         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
2104         (ref_always_accessed_p): Likewise.
2105         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
2106         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
2107         Handle MEM_REF.
2108         * cgraphbuild.c (mark_load): Properly check for NULL result
2109         from get_base_address.
2110         (mark_store): Likewise.
2111         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
2112         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
2113         handling for MEM_REF.
2114         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
2115         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
2116         * builtins.c (stabilize_va_list_loc): Use the function ABI
2117         valist type if we couldn't canonicalize the argument type.
2118         Always dereference with the canonical va-list type.
2119         (maybe_emit_free_warning): Handle MEM_REF.
2120         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
2121         memmove to memcpy.
2122         * builtins.c (fold_builtin_memory_op): Use ref-all types
2123         for all memcpy foldings.
2124         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
2125         (build_outer_var_ref): Likewise.
2126         (scan_omp_1_op): Likewise.
2127         (lower_rec_input_clauses): Likewise.
2128         (lower_lastprivate_clauses): Likewise.
2129         (lower_reduction_clauses): Likewise.
2130         (lower_copyprivate_clauses): Likewise.
2131         (expand_omp_atomic_pipeline): Likewise.
2132         (expand_omp_atomic_mutex): Likewise.
2133         (create_task_copyfn): Likewise.
2134         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
2135         Remove old union trick.  Initialize constant offsets.
2136         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
2137         INDIRECT_REF.  Init base_alias_set properly.
2138         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
2139         (vn_reference_fold_indirect): Adjust for MEM_REFs.
2140         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
2141         for ARRAY_REFs.
2142         (may_insert): Remove.
2143         (visit_reference_op_load): Do not test may_insert.
2144         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
2145         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
2146         a field to store the constant offset this op applies.
2147         (run_scc_vn): Adjust prototype.
2148         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
2149         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
2150         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
2151         bother about volatile qualifiers on pointers.
2152         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
2153         * tree-ssa-loop-ivopts.c
2154         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
2155         (strip_offset_1): Likewise.
2156         (find_interesting_uses_address): Replace INDIRECT_REF handling with
2157         MEM_REF handling.
2158         (get_computation_cost_at): Likewise.
2159         * ipa-pure-const.c (check_op): Handle MEM_REF.
2160         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
2161         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
2162         and constants.
2163         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
2164         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
2165         (eliminate_local_variables_1): Likewise.
2166         (create_call_for_reduction_1): Likewise.
2167         (create_loads_for_reductions): Likewise.
2168         (create_loads_and_stores_for_name): Likewise.
2169         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
2170         (ssa_accessed_in_tree): Handle MEM_REF.
2171         (ssa_accessed_in_assign_rhs): Likewise.
2172         (update_type_size): Likewise.
2173         (analyze_accesses_for_call_stmt): Likewise.
2174         (analyze_accesses_for_assign_stmt): Likewise.
2175         (transform_access_sites): Likewise.
2176         (transform_allocation_sites): Likewise.
2177         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
2178         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2179         not handle INDIRECT_REF.
2180         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
2181         (cond_store_replacement): Likewise.
2182         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
2183         MEM_REF, no not handle INDIRECT_REFs.
2184         (insert_into_preds_of_block): Properly initialize avail.
2185         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
2186         for ARRAY_REFs.  Properly handle reference lookups that
2187         require a bit re-interpretation.
2188         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
2189         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
2190         (build_ref_for_offset_1): Remove.
2191         (build_ref_for_offset): Build MEM_REFs.
2192         (gate_intra_sra): Disable for now.
2193         (sra_ipa_modify_expr): Handle MEM_REF.
2194         (ipa_early_sra_gate): Disable for now.
2195         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
2196         MEM_REF handling.
2197         (disqualify_base_of_expr): Likewise.
2198         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
2199         MEM_REF handling.
2200         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
2201         Use mem_ref_offset.  Remove bogus folding.
2202         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
2203         (make_fancy_name_1): Add support for MEM_REF.
2204         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
2205         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
2206         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
2207         (compute_complex_ancestor_jump_func): Likewise.
2208         (ipa_analyze_virtual_call_uses): Likewise.
2209         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
2210         INDIRECT_REF folding with more generalized MEM_REF folding.
2211         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
2212         (forward_propagate_addr_into_variable_array_index): Also handle
2213         &ARRAY + I in addition to &ARRAY[0] + I.
2214         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
2215         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
2216         creates assignments with overlap.
2217         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
2218         (get_frame_field): Likewise.
2219         (get_nonlocal_debug_decl): Likewise.
2220         (convert_nonlocal_reference_op): Likewise.
2221         (struct nesting_info): Add mem_refs pointer-set.
2222         (create_nesting_tree): Allocate it.
2223         (convert_local_reference_op): Insert to be folded mem-refs.
2224         (fold_mem_refs): New function.
2225         (finalize_nesting_tree_1): Perform defered folding of mem-refs
2226         (free_nesting_tree): Free the pointer-set.
2227         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
2228         (vectorizable_load): Likewise.
2229         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
2230         (propagate_with_phi): Likewise.
2231         * tree-object-size.c (addr_object_size): Handle MEM_REFs
2232         instead of INDIRECT_REFs.
2233         (compute_object_offset): Handle MEM_REF.
2234         (plus_stmt_object_size): Handle MEM_REF.
2235         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
2236         for &MEM_REF.
2237         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
2238         (symbol_marked_for_renaming): Likewise.
2239         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
2240         (fold-const.o): Add $(TREE_FLOW_H).
2241         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
2242         (find_func_clobbers): Likewise.
2243         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
2244         (decompose_access): Likewise.
2245         (replace_field_acc): Likewise.
2246         (replace_field_access_stmt): Likewise.
2247         (insert_new_var_in_stmt): Likewise.
2248         (get_stmt_accesses): Likewise.
2249         (reorg_structs_drive): Disable.
2250         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
2251         (ix86_canonical_va_list_type): Likewise.
2252
2253 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2254
2255         PR other/44566
2256         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
2257         * target.def (struct gcc_target): Replace enum reg_class with
2258         reg_class_t in hook argument / return types.
2259         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
2260         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
2261         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2262         * targhooks.h (default_branch_target_register_class): Likewise.
2263         (default_ira_cover_classes, default_secondary_reload): Likewise.
2264         (default_memory_move_cost, default_register_move_cost): Likewise.
2265         * targhooks.c (default_branch_target_register_class): Likewise.
2266         (default_ira_cover_classes, default_secondary_reload): Likewise.
2267         (default_memory_move_cost, default_register_move_cost): Likewise.
2268         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
2269         * bt-load.c (branch_target_load_optimize): Likewise.
2270         * ira.c (setup_cover_and_important_classes): Likewise.
2271         * ira-costs.c (copy_cost): Likewise.
2272         * reload1.c (emit_input_reload_insns): Likewise.
2273         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
2274         * config/frv/frv.c (frv_secondary_reload): Likewise.
2275         * config/s390/s390.c (s390_secondary_reload): Likewise.
2276         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
2277         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
2278         (ix86_register_move_cost): Likewise.
2279         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
2280         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
2281         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
2282         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
2283         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
2284         (rs6000_ira_cover_classes): Likewise.
2285         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
2286         * config/picochip/picochip-protos.h (picochip_secondary_reload):
2287         Likewise.
2288         * config/pa/pa.c (pa_secondary_reload): Likewise.
2289         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
2290         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
2291         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
2292         * doc/tm.texi: Regenerate.
2293
2294 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2295
2296         PR bootstrrap/44726
2297         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
2298         use.
2299         (build_alias_set_optimal_p): Likewise.
2300         (build_base_obj_set_for_drs): Likewise.
2301
2302 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
2303
2304         * target.def: Remove comment about licensing problems of function
2305         declarations.
2306
2307         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
2308         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
2309         * doc/tm.texi: Regenerate.
2310
2311         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
2312         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
2313
2314         * target.def (enum_va_list_p): Use DEFHOOK.
2315         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
2316         Rename ptype to ptree.
2317         * doc/tm.texi: Regenerate.
2318
2319         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
2320         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
2321         * doc/tm.texi: Regenerate.
2322
2323         * target.def (memory_move_cost): Use DEFHOOK.
2324         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
2325         Rename regclass AKA class to rclass.
2326         * doc/tm.texi: Regenerate.
2327
2328         * target.def (pragma_parse): Use DEFHOOK.
2329         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
2330         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
2331         * doc/tm.texi: Regenerate.
2332
2333         * target.def (pass_by_reference): Use DEFHOOK.
2334         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
2335         * doc/tm.texi: Regenerate.
2336
2337         * target.def (resolve_overloaded_builtin): Rename params to arglist.
2338         Use DEFHOOK.
2339         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
2340         * doc/tm.texi: Regenerate.
2341
2342         * target.def (return_pops_args): Use DEFHOOK.
2343         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
2344         Rename stack-size to size.
2345         * doc/tm.texi: Regenerate.
2346
2347         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
2348         last-sched_cycle to last_clock, cur_cycle to clock.
2349         * doc/tm.texi.in: Use @hook.
2350         * doc/tm.texi: Regenerate.
2351
2352         * target.def (print_operand, print_operand_address): Update comment.
2353         (print_operand_punct_valid_p): Likewise.
2354
2355 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2356
2357         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
2358         to rtl.h.
2359         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
2360         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
2361         * rtl-error.h: New.
2362         * regrename.c: Do not include toplev.h. Include rtl-error.h.
2363         * rtl-error.c: Likewise.
2364         * reload.c: Likewise.
2365         * recog.c:  Likewise.
2366         * sel-sched.c: Likewise.
2367         * function.c: Likewise.
2368         * reg-stack.c: Likewise.
2369         * cfgrtl.c: Likewise.
2370         * reload1.c: Likewise.
2371         * final.c: Include rtl-error.
2372         * Makefile.in: Adjust dependencies.
2373
2374 2010-06-30  Jan Hubicka  <jh@suse.cz>
2375
2376         PR middle-end/PR44706
2377         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
2378         to return the value.
2379
2380 2010-06-30  Michael Matz  <matz@suse.de>
2381
2382         PR bootstrap/44699
2383         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
2384         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
2385         a gimple reg, attach the original VDEF to the last store in the
2386         sequence.
2387
2388 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
2389
2390         PR other/44034
2391         * config/darwin.c (darwin_override_options): Use renamed
2392         targetm.asm_out.emit_unwind_label.
2393
2394 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2395
2396         PR tree-optimization/39799
2397         * tree-inline.c (remap_ssa_name): Initialize variable only if
2398         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2399
2400 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
2401
2402         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
2403
2404 2010-06-30  Richard Guenther  <rguenther@suse.de>
2405
2406         PR target/44722
2407         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
2408         against oscillation with reverse peephole2.
2409
2410 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
2411
2412         PR target/44721
2413         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2414         Fix last commit.
2415
2416 2010-06-30  Nick Clifton  <nickc@redhat.com>
2417
2418         * config/rx/rx-modes.def: New file.
2419         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
2420         (CC_REGNUM): Define.
2421         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
2422         register.
2423         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
2424         (SELECT_CC_MODE): Define.
2425         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
2426         (reg:CC CC_REG) instead of (cc0).
2427         (attr "cc"): Delete.
2428         (cbranchsi4): Do not split compare and branch here. Instead move
2429         it to...
2430         (cbranchsi4_<code>): ... here.  New patterns.
2431         (cmpsi): Call rx-compare_redundant to find out if it is necessary
2432         to emit the compare instruction.
2433         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
2434         cc_status flags.
2435         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
2436         FIRST_PSEUDO_REGNUM.
2437         (rx_expand_prologue, rx_expand_epilogue): Likewise.
2438         (rx_notice_update_cc): Delete.
2439         (rx_cc_modes_compatible): New function.
2440         (flags_needed_for_conditional): New function.
2441         (flags_from_mode): New function.
2442         (rx_compare_redundant): New function - scans backwards through
2443         insn list to find out if condition flags are already set correctly.
2444         (TARGET_CC_MODES_COMPATIBLE): Define.
2445         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
2446
2447         * config/rx/rx.h (BRANCH_COST): Define.
2448         (REGISTER_MOVE_COST): Define.
2449         * config/rx/predicates (rx_source_operand): Allow all constant types.
2450         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
2451         (tstsi4): New pattern.
2452         * config/rx/rx.c (rx_memory_move_cost): Define.
2453         (TARGET_MEMORY_MOVE_COST): Define.
2454
2455 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
2456
2457         * tree.h (block_may_fallthru): Declare here.
2458         * tree-flow.h (block_may_fallthru): Do not declare here.
2459         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
2460         bitmap.h
2461         * Makefile.in (c-typeck.o): Update dependencies.
2462
2463 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
2464
2465         PR debug/44694
2466         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
2467         * cselib.c (cfa_base_preserved_regno): New static variable.
2468         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
2469         of REGNO (cfa_base_preserved_val->locs->loc).
2470         (cselib_preserve_cfa_base_value): Add regno argument, set
2471         cfa_base_preserved_regno to it.
2472         (cselib_invalidate_regno): Allow removal of registers other than
2473         cfa_base_preserved_regno from cfa_base_preserved_val.
2474         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
2475         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
2476         of MEM addresses, if not on LHS.
2477         (reverse_op): Don't add reverse ops for cfa_base_rtx.
2478         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
2479
2480 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
2481
2482         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
2483         static variables.
2484         (peep2_buf_position): New static function.
2485         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
2486         peephole2_optimize): Use it.
2487         (peep2_attempt, peep2_update_life): New static functions, broken out
2488         of peephole2_optimize.
2489         (peep2_fill_buffer): New static function.
2490         (peephole2_optimize): Change the main loop to try to fill the buffer
2491         with the maximum number of insns before matching them against
2492         peepholes.  Use a forward scan.  Remove special case for targets with
2493         conditional execution.
2494         * genrecog.c (change_state): Delete dead code.
2495         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
2496         Rewrite so as not to expect the second insn to have had a peephole
2497         applied yet.
2498
2499 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2500
2501         * genhooks.c (emit_findices): Cast field precision to int.
2502         (emit_documentation): Likewise.
2503
2504 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
2505
2506         PR tree-optimization/43801
2507         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
2508         if old_decl was DECL_ONE_ONLY.
2509
2510         PR debug/44668
2511         * dwarf2out.c (add_accessibility_attribute): New function.
2512         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
2513         instead of adding DW_AT_accessibility manually.
2514         (gen_enumeration_type_die, gen_struct_or_union_type_die,
2515         gen_typedef_die): Use it.
2516
2517 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2518
2519         * vmsdbgout.c (full_name): Just output the file name if not native.
2520
2521 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2522
2523         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
2524         (funcnam_table): New static table.
2525         (funcnum_table): New static table.
2526         (write_rtnbeg): Write value saved in funcnum_table.
2527         (write_rtnend): Write value saved in funcnum_table.
2528         (vmsdbgout_begin_function): Save current function info in
2529         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
2530         (vmsdbgout_finish): Iterate over funcnum_table.
2531
2532 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2533
2534         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
2535         (vmsdbgout_type_decl): Declare
2536         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
2537         (FUNC_EPILOGUE_LABEL): New macro
2538         (vmsdbgout_begin_epilogue): New function.
2539         (vmsdbgout_type_decl): New function.
2540
2541 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2542
2543         * vmsdbg.h: Update copyright.
2544
2545 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
2546
2547         * vmsdbg.h (DST_K_TBG): New DST constant.
2548         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
2549         (write_modbeg): Cast module_language to avoid warning.
2550         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
2551
2552 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2553
2554         PR other/44034
2555         * target.def, doc/tm.texi.in, genhooks.c: New files.
2556         * target.h: Instead of defining individual hook members,
2557         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
2558         include target.def.
2559         * target-def.h: Instead of defining individual hook initializers,
2560         include target-hooks-def.h.
2561         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
2562         targetm.live_on_entry -> targetm.extra_live_on_entry
2563         targetm.sched.md_finish ->targetm.sched.finish
2564         targetm.sched.md_init -> targetm.sched.init
2565         targetm.sched.md_init_global -> targetm.sched.init_global
2566         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
2567         targetm.asm_out.except_table_label ->
2568           targetm.asm_out.emit_except_table_label
2569         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
2570         targetm.target_help -> targetm.help
2571         targetm.vectorize.builtin_support_vector_misalignment ->
2572           targetm.vectorize.support_vector_misalignment
2573         targetm.file_start_app_off -> targetm.asm_file_start_app_off
2574         targetm.file_start_file_directive ->
2575          targetm.asm_file_start_file_directive
2576         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
2577         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
2578         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
2579         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
2580           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
2581         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
2582           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
2583         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
2584         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
2585         * Makefile.in (TARGET_H): Depend on target.def.
2586         (TARGET_DEF_H): Depend on target-hooks-def.h.
2587         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
2588         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
2589         * doc/tm.texi: Regenerate.
2590
2591         * Makefile.in (s-tm-texi): Remove stray tab / rule.
2592
2593         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
2594         (targetm.sched.init): Likewise.
2595
2596 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2597
2598         PR bootstrap/44713
2599         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
2600         (function_arg_advance_32): Const-ify TYPE parameter.
2601         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
2602         (ix86_function_arg_advance): Change type of NAMED to bool.
2603         (function_arg_32): Const-ify CUM and TYPE parameters.
2604         (function_arg_64): Likewise.  Change type of NAMED to bool.
2605         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
2606         to bool.
2607         (ix86_function_arg): Change type of NAMED to bool.
2608         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
2609         last argument as a bool.
2610
2611 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
2612
2613         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
2614         (OVERRIDE_OPTIONS): Add note of obsolescence.
2615         Replace references with references to TARGET_OPTION_OVERRIDE.
2616         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
2617          the macro).
2618         * targhooks.c (default_target_option_override): New function.
2619         * targhooks.h (default_target_option_override): Declare.
2620         * target.h (struct gcc_target): Add override member to
2621         target_option member.
2622         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
2623         targetm.target_option.override call.
2624         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
2625         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
2626
2627 2010-06-29  Jan Hubicka  <jh@suse.cz>
2628
2629         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
2630
2631 2010-06-29  Jan Hubicka  <jh@suse.cz>
2632
2633         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
2634         unreachable.
2635         (rebuild_frequencies): New function.
2636         * predict.h (rebuild_frequencies): Declare.
2637         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
2638         entry block and edge reaching new_entry.
2639         (tree_function_versioning): When doing partial cloning, rebuild
2640         frequencies when done.
2641         * passes.c (execute_function_todo): Use rebild_frequencies.
2642
2643 2010-06-29  Richard Guenther  <rguenther@suse.de>
2644
2645         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
2646         * tree-flow.h (enum noalias_state): Remove.
2647         (struct var_ann_d): Remove noalias_state member.
2648
2649 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
2650
2651         PR target/43902
2652         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
2653         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
2654         (maddhidi4): Likewise.
2655
2656         Revert parts of the change for PR25130.
2657         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
2658         MEM_ALIAS_SET.
2659
2660 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2661
2662         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
2663         targetm.calls.function_incoming_arg, and
2664         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
2665         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
2666         * target.h (struct gcc_target): Add function_arg_advance,
2667         function_arg, and function_incoming_arg fields.
2668         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
2669         (TARGET_FUNCTION_INCOMING_ARG): Define.
2670         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
2671         and TARGET_FUNCTION_INCOMING_ARG.
2672         * targhooks.h (default_function_arg_advance): Declare.
2673         (default_function_arg, default_function_incoming_arg): Declare.
2674         * targhooks.c (default_function_arg_advance): New function.
2675         (default_function_arg, default_function_incoming_arg): New function.
2676         * config/i386/i386.c (function_arg_advance): Rename to...
2677         (ix86_function_arg_advance): ...this.  Make static.
2678         (function_arg): Rename to...
2679         (ix86_function_arg): ...this.  Make static.
2680         (TARGET_FUNCTION_ARG_ADVANCE): Define.
2681         (TARGET_FUNCTION_ARG): Define.
2682         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
2683         (FUNCTION_ARG): Delete.
2684         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
2685         (function_arg): Delete prototype.
2686
2687 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
2688
2689         * reginfo.c (init_reg_sets_1): Adjust comments.
2690         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
2691         * calls.c (prepare_call_address): Likewise.
2692         (emit_call_1): Use targetm.calls.return_pops_args.
2693         (expand_call): Likewise.
2694         * function.c (assign_parms): Likewise.
2695         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
2696         * target.h (struct gcc_target) [struct calls]: Add
2697         return_pops_args field.
2698         * targhooks.h (default_return_pops_args): Declare.
2699         * targhooks.c (default_return_pops_args): Define.
2700         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
2701         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
2702         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
2703         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
2704         documentation.
2705         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
2706         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
2707         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
2708         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
2709         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
2710         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
2711         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
2712         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
2713         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
2714         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
2715         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
2716         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
2717         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
2718         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
2719         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
2720         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
2721         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
2722         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
2723         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
2724         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
2725         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
2726         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
2727         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
2728         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
2729         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
2730         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
2731         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
2732         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
2733         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
2734         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
2735         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
2736         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
2737         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
2738         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
2739         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
2740         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
2741         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
2742         * config/i386/i386.c (ix86_return_pops_args): Make static.
2743         Constify arguments.
2744         (TARGET_RETURN_POPS_ARGS): Define.
2745         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
2746         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
2747         (TARGET_RETURN_POPS_ARGS): Define.
2748         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
2749         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
2750         (TARGET_RETURN_POPS_ARGS): Define.
2751
2752 2010-06-29  Richard Guenther  <rguenther@suse.de>
2753
2754         PR middle-end/44667
2755         * tree-inline.c (initialize_inlined_parameters): Make sure
2756         to remap the inlined parameter variable substitutions types.
2757
2758 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
2759
2760         PR rtl-optimization/44659
2761         * combine.c (make_compound_operation) <SUBREG>: Do not return the
2762         result of force_to_mode if it partially re-expanded the compound.
2763
2764 2010-06-28  Jan Hubicka  <jh@suse.cz>
2765
2766         PR middle-end/44671
2767         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
2768         RESULT_DECL.
2769
2770 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
2771
2772         * double-int.h (force_fit_type_double): Remove declaration.
2773         * double-int.c (force_fit_type_double): Move to tree.c.
2774         * tree.h (force_fit_type_double): Declare.
2775         * tree.h (force_fit_type_double): Moved from double-int.c. Use
2776         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
2777         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
2778         * convert.c (convert_to_pointer): Adjust call to
2779         force_fit_type_double.
2780         * tree-vrp.c (extract_range_from_assert,
2781         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
2782         * fold-const.c: Update comment.
2783         (int_const_binop, fold_convert_const_int_from_int,
2784         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
2785         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
2786         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
2787         round_up_loc): Adjust call to force_fit_type_double.
2788
2789 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2790
2791         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
2792
2793 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2794
2795         * tree-sra.c (convert_callers): New parameter, change fndecls of
2796         recursive calls.
2797         (modify_function): Pass the old decl to convert_callers.
2798
2799 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2800
2801         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
2802         ipa_check_create_node_params and ipa_initialize_node_params with
2803         checking asserts they are not necessary.
2804
2805 2010-06-28  Jan Hubicka  <jh@suse.cz>
2806
2807         PR tree-optimization/44687
2808         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
2809
2810 2010-06-28  Martin Jambor  <mjambor@suse.cz>
2811
2812         PR c++/44535
2813         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
2814         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
2815         instead of BINFO_BASE_BINFO.
2816
2817 2010-06-28  Michael Matz  <matz@suse.de>
2818
2819         PR middle-end/44592
2820         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
2821         proper VDEF chain for intermediate stores in the sequence.
2822
2823 2010-06-28  Jan Hubicka  <jh@suse.cz>
2824
2825         PR tree-optimization/44357
2826         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
2827         uninlinable functions.
2828
2829 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
2830
2831         * config.gcc (powerpc*-*-*): Handle titan.
2832         * config/rs6000/rs6000.c (titan_cost): New costs.
2833         (rs6000_override_options): Add "titan" to processor_target_table.
2834         Add Titan to branch alignment logic.
2835         Correctly set rs6000_cost for titan.
2836         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
2837         * config/rs6000/titan.md: New file.
2838         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
2839
2840 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2841
2842         * tree-browser.c (TB_history_stack): Convert to a VEC.
2843         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
2844         (TB_history_prev): Likewise.
2845
2846 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
2847
2848         * vec.h (vec_heap_free): Add parentheses around free.
2849
2850 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
2851
2852         * system.h: Poison GCC_EXCEPT_H for front-end files.
2853
2854         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
2855         langhook.
2856         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
2857         Define to NULL by default.
2858         * except.h: Define GCC_EXCEPT_H.
2859         (doing_eh): Remove prototype.
2860         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
2861         (lang_protect_cleanup_actions): Remove.
2862         * except.c (lang_protect_cleanup_actions): Remove.
2863         (doing_eh): Remove.
2864         (gen_eh_region): Don't check doing_eh here.
2865         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
2866         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
2867         instead of lang_protect_cleanup_actions.
2868         * omp-low.c (maybe_catch_exception): Likewise.
2869         * Makefile.in: Update dependencies.
2870
2871 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
2872
2873         * cgraph.h (struct varpool_node): new used_from_object_file flag.
2874         (struct cgraph_local_info): new used_from_object_file flag.
2875         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
2876         (cgraph_clone_node): initialize used_from_object_file.
2877         (cgraph_create_virtual_clone): initialize used_from_object_file.
2878         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
2879         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
2880         when compiling with -fwhole-program.
2881         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
2882         internal resolver.
2883         * ipa.c (function_and_variable_visibility): Set externally_visible
2884         flag of varpool_node if used_from_object_file flag is set.
2885         (cgraph_externally_visible_p): check used_from_object_file flag.
2886         * doc/invoke.texi (-fwhole-program option): Change description of
2887         externally_visible attribute accordingly.
2888         * doc/extend.texi (externally_visible): Ditto.
2889
2890 2010-06-27  Jan Hubicka  <jh@suse.cz>
2891
2892         * params.def (max-inline-insns-auto): Default to 40.
2893         * doc/invoke.texi (max-inline-insns-auto): Document the change.
2894
2895 2010-06-27  Jan Hubicka  <jh@suse.cz>
2896
2897         PR middle-end/44671
2898         PR middle-end/44686
2899         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
2900         signature change.
2901         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
2902         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
2903
2904 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
2905
2906         * target.h (struct gcc_target): Add register_move_cost field.
2907         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
2908         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
2909         * targhooks.c (default_register_move_cost): New function.
2910         * targhooks.h (default_register_move_cost): Declare function.
2911         * defaults.h (REGISTER_MOVE_COST): Delete.
2912         * ira-int.h (ira_register_move_cost): Update comment.
2913         * ira.c: (ira_register_move_cost): Update comment.
2914         * reload.h (register_move_cost): Declare.
2915         * reginfo.c (register_move_cost): New function.
2916         (move_cost): Update comment.
2917         (init_move_cost, memory_move_secondary_cost): Replace
2918         REGISTER_MOVE_COST with register_move_cost.
2919         * postreload.c (reload_cse_simplify_set): (Ditto.).
2920         * reload.c (find_valid_class, find_reloads): (Ditto.).
2921         * reload1.c (choose_reload_regs): (Ditto.).
2922         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
2923         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
2924         * doc/md.texi (can_create_pseudo_p): Update documentation.
2925
2926         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
2927         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
2928         * config/i386/i386.h (ix86_memory_move_cost): Make static.
2929         (TARGET_MEMORY_MOVE_COST): Define.
2930
2931         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
2932         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
2933         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
2934         (TARGET_MEMORY_MOVE_COST): Define.
2935
2936 2010-06-27  Richard Guenther  <rguenther@suse.de>
2937
2938         PR tree-optimization/44683
2939         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
2940         false edge from the inverted condition.
2941
2942 2010-06-27  Richard Guenther  <rguenther@suse.de>
2943
2944         PR middle-end/44684
2945         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
2946         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
2947         for register LHS.  Or non-store assignments.
2948
2949 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
2950
2951         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
2952         (sparc_emit_set_const64): Likewise.  Remove disabled code.
2953         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
2954         (sparc_emit_set_const64): Likewise.
2955
2956 2010-06-26  Catherine Moore  <clm@codesourcery.com>
2957
2958         * config/mips/mips.md (alu_type): New attribute.
2959         (type): Infer type from alu_type.
2960         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
2961         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
2962         *subsi3_extended, negsi2, negdi2, *low<mode>,
2963         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
2964         xor<mode>3, *nor<mode>3,
2965         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
2966         *zero_extendhi_truncqi):  Set alu_type instead of type.
2967
2968 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
2969
2970         * config/alpha/alpha.c (alpha_need_linkage): Adjust
2971         splay_tree_new_ggc call.
2972         (alpha_use_linkage): Likewise.
2973
2974 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
2975
2976         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
2977         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
2978         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
2979         (static_specs): Remove switches_need_spaces.
2980         (process_command, do_self_spec): Hardcode handling "-o" instead of
2981         checking switches_need_spaces.
2982         * system.h (SWITCHES_NEED_SPACES): Poison.
2983
2984 2010-06-26  Richard Guenther  <rguenther@suse.de>
2985
2986         PR tree-optimization/44393
2987         * tree-loop-distribution.c (generate_loops_for_partition): Fix
2988         stmt removal and VOP renaming.
2989         (generate_memset_zero): Remove redundant stmt updating.
2990         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
2991         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
2992
2993 2010-06-26  Jan Hubicka  <jh@suse.cz>
2994
2995         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
2996         edges comming from header are equivalent.
2997         (visit_bb): Handle PHIs correctly.
2998         * tree-inline.c (copy_phis_for_bb): Be able to copy
2999         PHI from entry edge.
3000         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
3001
3002 2010-06-26  Richard Guenther  <rguenther@suse.de>
3003
3004         PR middle-end/44674
3005         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
3006         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
3007
3008 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
3009
3010         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
3011         add_infile, alloc_switch): New.
3012         (process_command): Remove variable lang_n_infiles.  Process
3013         options in a single pass.  Use new functions for allocating
3014         infiles and switches arrays.  Properly skip operands of
3015         -Xpreprocessor and -Xassembler.
3016
3017 2010-06-26  Jan Hubicka  <jh@suse.cz>
3018
3019         PR middle-end/44671
3020         * cgraphunit.c (cgraph_function_versioning): Remove wrong
3021         cgraph_make_decl_local call; fix typo copying RTL data.
3022
3023 2010-06-25  DJ Delorie  <dj@redhat.com>
3024
3025         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
3026         (m32c_output_aligned_common): Likewise.
3027         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
3028         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3029         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
3030         (m32c_register_pragmas): Register it.
3031         * config/m32c/m32c.c (m32c_get_pragma_address): New.
3032         (m32c_insert_attributes): Set #pragma address decls volatile.
3033         (pragma_entry_eq): New.
3034         (pragma_entry_hash): New.
3035         (m32c_note_pragma_address): New.
3036         (m32c_get_pragma_address): New.
3037         (m32c_output_aligned_common): New.
3038         * doc/extend.texi: Document the new pragma.
3039
3040         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
3041         also.
3042         * config/m32c/predicates.md (m32c_any_operand): Check the code
3043         instead of memory_operand so as to allow matching volatile MEMs.
3044         (m32c_nonimmediate_operand): Likewise.
3045         (mra_operand): Allow volatiles.
3046
3047 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
3048
3049         PR debug/44610
3050         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
3051         address if the offset is unknown.
3052
3053 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
3054
3055         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
3056         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
3057         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
3058         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
3059         to ia64_start_function. Invoke it.
3060         * config/ia64/ia64.c (ia64_start_function): Call new function
3061         dwarf2out_vms_debug_main_pointer.
3062
3063 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3064
3065         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
3066         statements computing the true predicate.
3067
3068 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3069
3070         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
3071         to boolean_true_node.
3072         (reset_bb_predicate): New.
3073         (predicate_bbs): Call reset_bb_predicate.
3074
3075 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3076
3077         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
3078         (tree_if_conversion): Returns true when something has been changed.
3079         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
3080         changed something.
3081
3082 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
3083
3084         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
3085         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
3086         * tree-if-conv.c: Include dbgcnt.h.
3087         (tree_if_conversion): Use if_conversion_tree to count the number of
3088         if-convertible loops.
3089
3090 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
3091
3092         * common.opt (fprefetch-loop-arrays): Re-define
3093         -fprefetch-loop-arrays as a tri-state option with the initial
3094         value of -1.
3095         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
3096         pass only when flag_prefetch_loop_arrays > 0.
3097         * toplev.c (process_options): Note that, with tri-states,
3098         flag_prefetch_loop_arrays>0 means prefetching is enabled.
3099         * config/i386/i386.c (override_options): Enable prefetching at -O3
3100         for a set of CPUs that sw prefetching is helpful.
3101         (software_prefetching_beneficial_p): New.  Return TRUE if software
3102         prefetching is beneficial for the given CPU.
3103
3104 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
3105
3106         PR rtl-optimization/44326
3107         * implicit-zee.c (find_removable_zero_extends): Replace
3108         INSN_P with NONDEBUG_INSN_P.
3109
3110 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3111
3112         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
3113         (struct ipa_node_params): Removed the modification_analysis_done flag.
3114         (ipa_is_param_modified): Removed.
3115         (ipa_analyze_node): Declare.
3116         (ipa_compute_jump_functions): Remove declaration.
3117         (ipa_count_arguments): Likewise.
3118         (ipa_detect_param_modifications): Likewise.
3119         (ipa_analyze_params_uses): Likewise.
3120         * ipa-prop.c (struct param_analysis_info): New type.
3121         (visit_store_addr_for_mod_analysis): Removed.
3122         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
3123         moved down in the file.
3124         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
3125         (ipa_count_arguments): Made static.
3126         (mark_modified): New function.
3127         (is_parm_modified_before_call): New function.
3128         (compute_pass_through_member_ptrs): New parameter parms_info, call
3129         is_parm_modified_before_call instead of ipa_is_param_modified.
3130         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
3131         it to compute_pass_through_member_ptrs.
3132         (ipa_compute_jump_functions): New parameter parms_info, pass it to
3133         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
3134         on the callee if it is analyzed.  Made static.
3135         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
3136         is_parm_modified_before_call instead of ipa_is_param_modified.
3137         (ipa_analyze_call_uses): New parameter parms_info, pass it to
3138         ipa_analyze_indirect_call_uses.
3139         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
3140         ipa_analyze_call_uses.
3141         (ipa_analyze_params_uses): New parameter parms_info, pass it to
3142         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
3143         (ipa_analyze_node): New function.
3144         (ipa_print_node_params): Do not dump the modified flag.
3145         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
3146         it.  Do not stream the modified parameter flag.
3147         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
3148         it.  Do not stream the modified parameter flag.
3149         * ipa-cp.c (ipcp_analyze_node): Removed.
3150         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
3151         with only a call to ipa_analyze_node.
3152         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
3153         node with only a call to ipa_analyze_node.
3154
3155 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3156
3157         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
3158
3159 2010-06-25  Jan Hubicka  <jh@suse.cz>
3160
3161         * tree-pass.h (pass_split_functions): Declare.
3162         * opts.c (decode_options): Enable function splitting at -O2
3163         * timevar.def (TV_IPA_FNSPLIT): New macro.
3164         * ipa-split.c: New file.
3165         * common.opt (-fpartial-inlining): New flag.
3166         * Makefile.in (ipa-split.o): New object file.
3167         * passes.c (init_optimization_passes): Add ipa-split.
3168         * params.def (partial-inlining-entry-probability): New parameters.
3169         * doc/invoke.texi (-fpartial-inlining): New.
3170
3171 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3172
3173         PR 44665
3174         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
3175         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
3176         (gimplify_expr): Likewise.
3177
3178 2010-06-25  Martin Jambor  <mjambor@suse.cz>
3179
3180         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
3181         statements instead of bailing out on them.
3182         (ipa_analyze_indirect_call_uses): Do not require that loads from the
3183         parameter are in the same BB as the condition.  Update comments.
3184
3185 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
3186
3187         PR middle-end/43866
3188         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
3189         true or always false, return NULL_TREE.
3190         (tree_unswitch_single_loop): Optimize conditions even when reaching
3191         max-unswitch-level parameter.  If num > 0, optimize first all conditions
3192         using entry checks, then do still reachable block discovery and consider
3193         only conditions in still reachable basic blocks in the loop.
3194
3195         PR tree-optimization/44539
3196         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
3197         the call doesn't have LHS, but has VDEF.
3198
3199 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3200
3201         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
3202         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
3203         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
3204         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
3205         * system.h (MODIFY_TARGET_NAME): Poison.
3206
3207 2010-06-25  Alan Modra  <amodra@gmail.com>
3208
3209         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
3210         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
3211         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3212         CMODEL_LARGE as default.
3213         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
3214         (offsettable_ok_by_alignment): Delete.
3215         (rs6000_emit_move): Remove mcmodel=medium optimization.
3216
3217 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3218
3219         With large parts from Jim Wilson:
3220         PR target/43902
3221         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
3222         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3223         * optabs.c (optab_for_tree_code): Likewise.
3224         (expand_widen_pattern_expr): Likewise.
3225         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
3226         out of execute_optimize_widening_mul.
3227         (convert_plusminus_to_widen): New function.
3228         (execute_optimize_widening_mul): Use the two new functions.
3229         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
3230         Remove code to generate widening multiply-accumulate.  Add support
3231         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
3232         * gimple-pretty-print.c (dump_ternary_rhs): New function.
3233         (dump_gimple_assign): Call it when appropriate.
3234         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
3235         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
3236         (expand_gimple_stmt_1): Likewise.
3237         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
3238         WIDEN_MULT_MINUS_EXPR.
3239         * tree-ssa-operands.c (get_expr_operands): Likewise.
3240         * tree-inline.c (estimate_operator_cost): Likewise.
3241         * gimple.c (extract_ops_from_tree_1): Renamed from
3242         extract_ops_from_tree.  Add new arg for a third operand; fill it.
3243         (gimple_build_assign_stat): Support operations with three operands.
3244         (gimple_build_assign_with_ops_stat): Likewise.
3245         (gimple_assign_set_rhs_from_tree): Likewise.
3246         (gimple_assign_set_rhs_with_ops_1): Renamed from
3247         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
3248         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
3249         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
3250         WIDEN_MULT_MINUS_EXPR.
3251         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
3252         (extract_ops_from_tree_1): Adjust declaration.
3253         (gimple_assign_set_rhs_with_ops_1): Likewise.
3254         (gimple_build_assign_with_ops): Pass NULL for last operand.
3255         (gimple_build_assign_with_ops3): New macro.
3256         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
3257         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
3258         functions.
3259         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
3260         (verify_gimple_assign): Call it.
3261         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
3262         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
3263         functions for dealing with three-operand statements.
3264         * tree.c (commutative_ternary_tree_code): New function.
3265         * tree.h (commutative_ternary_tree_code): Declare it.
3266         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
3267         ternary statements.
3268         (gimple_assign_nonzero_warnv_p): Likewise.
3269         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
3270         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
3271         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
3272         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
3273         (struct hashtable_expr): New member ternary in the union.
3274         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
3275         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
3276         (iterative_hash_hashable_expr): Likewise.
3277         (print_expr_hash_elt): Handle EXPR_TERNARY.
3278         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
3279         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
3280         statements.  Handle GIMPLE_TERNARY_RHS.
3281
3282 2010-06-25  Jan Hubicka  <jh@suse.cz>
3283
3284         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
3285
3286 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
3287
3288         PR c/44517
3289         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
3290         parameters are not good.
3291         (c_parser_parameter_declaration): Error unknown type name if the type
3292         name can't start declaration specifiers.
3293
3294 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
3295
3296         * gcc.c (translate_options): Don't mention +e in comment.
3297         (process_command): Don't handle +e specially.
3298
3299 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
3300
3301         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
3302
3303         * ira-build.c (merge_hard_reg_conflicts): New function.
3304         (create_cap_allocno, copy_info_to_removed_store_destinations,
3305         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
3306         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
3307         (remove_unnecessary_allocnos, remove_low_level_allocnos)
3308         copy_nifo_to_removed_store_destination): Use them.
3309         * ira-lives.c (make_hard_regno_born): New function, split out of
3310         make_regno_born.
3311         (make_allocno_born): Likewise.
3312         (make_hard_regno_dead): New function, split out of make_regno_dead.
3313         (make_allocno_dead): Likewise.
3314         (inc_register_pressure): New function, split out of set_allocno_live.
3315         (dec_register_pressure): New function, split out of clear_allocno_live.
3316         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
3317         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
3318         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
3319         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
3320         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
3321         mark_pseudo_regno_live.
3322         (process_bb_node_lives): Use mark_pseudo_regno_live,
3323         make_hard_regno_born and make_allocno_dead.
3324         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
3325         set_allocno_live, clear_allocno_live): Delete functions.
3326
3327         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
3328         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
3329         functions.
3330         (ira_flattening): Use ira_parent_allocno.
3331         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
3332         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
3333
3334         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
3335         statement.
3336
3337         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
3338         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
3339         minmax_set_iter_cond, minmax_set_iter_next,
3340         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
3341         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
3342         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
3343         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
3344         uses changed.
3345
3346         * ira-int.h (struct live_range, live_range_t): Renamed from struct
3347         ira_allocno_live_range and allocno_live_range_t; all uses changed.
3348         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
3349         All uses changed.
3350
3351 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
3352
3353         * thumb2.md (thumb2_tlobits_cbranch): Delete.
3354         (peephole2 to convert zero_extract/compare of single bit to
3355          lshift/compare): New.
3356
3357 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
3358
3359         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
3360         recursive call and call to 'int_const_binop'.
3361         (build_range_check, fold_cond_expr_with_comparison, unextend,
3362         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
3363         multiple_of_p): Adjust call to const_binop.
3364
3365 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
3366
3367         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
3368         determine size of XFmode operand.
3369         (XFmode extended DFmode push splitter): Ditto.
3370         (XFmode extended SFmode push splitter): Ditto.
3371
3372 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
3373
3374         PR target/44588
3375         * config/i386/i386.md (extract_code): New.
3376         (<u>divmodqi4): Likewise.
3377         (divmodhiqi3): Likewise.
3378         (udivmodhiqi3): Likewise.
3379         (<u>divqi3): Remvoved.
3380
3381 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
3382
3383         PR middle-end/44492
3384         * recog.h (struct recog_data): Add is_asm field.
3385         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
3386         present in constraints of inline-asm operand and memory operand
3387         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
3388         (extract_insn): Initialize recog_data.is_asm.
3389         * doc/md.texi (Constraints): Document operand side-effect rules.
3390
3391 2010-06-24  Andi Kleen  <ak@linux.intel.com>
3392
3393         * c-parser.c (c_parser_conditional_expression): Call
3394         warn_for_omitted_condop.
3395         * doc/invoke.texi: Document omitted condop warning.
3396
3397 2010-06-24  Nick Clifton<nickc@redhat.com>
3398
3399         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
3400         insn in the sequence is a jump insn before setting its label.
3401
3402 2010-06-24  Alan Modra  <amodra@gmail.com>
3403
3404         * collect2.c (main): Match exactly --version and --help.
3405
3406 2010-06-24  DJ Delorie  <dj@redhat.com>
3407
3408         * config/m32c/m32c-pragma.c: Don't include rtl.h.
3409
3410 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
3411
3412         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
3413         using X87MODEF mode iterator.
3414         (pushsf splitter): Macroize splitter using P mode iterator.
3415         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
3416         mode iterator.
3417
3418         (*movxf_internal): Rename from *movxf_integer.
3419         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
3420         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
3421         (*movdf_internal): Rename from *movdf_integer.
3422         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
3423         (*movsf_internal): Rename from *movdf_1.
3424
3425 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
3426
3427         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
3428         (const_gimple_seq_node): Removed typedefs.
3429
3430         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
3431         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
3432
3433 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
3434
3435         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
3436         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
3437         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
3438         and CODE_FOR_vec_extract_lo_v4df.
3439
3440         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
3441         Changed to define_insn_and_split.
3442         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
3443         (vec_extract_lo_v16hi): Likewise.
3444         (vec_extract_lo_v32qi): Likewise.
3445         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
3446         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
3447
3448 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
3449
3450         PR target/44640
3451         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
3452         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
3453         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
3454         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
3455         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
3456
3457         PR target/44640
3458         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
3459
3460         PR other/44644
3461         * df-core.c (struct df): Rename to df_d.
3462         * df.h (struct df): Likewise.
3463         * dse.h (struct df): Remove forward declaration.
3464         * recog.h (struct insn_data): Rename to:
3465         (struct_insn_data_d).  Adjusted all users.
3466
3467 2010-06-23  Arnaud Charlet  <charlet@adacore.com
3468
3469         PR ada/22220
3470         * doc/install.texi: Update requirements to build GNAT.
3471
3472 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
3473
3474         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
3475         enum type.
3476         (m68k_sched_attr_opx_type): Remove unreachable return.
3477         (m68k_sched_attr_opy_type): Likewise.
3478         (m68k_sched_attr_size): Likewise.
3479         (sched_get_opxy_mem_type): Likewise.
3480         (m68k_sched_attr_op_mem): Likewise.
3481
3482 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
3483
3484         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
3485         new statement and adjust VDEF only if necessary.  Remove superfluous
3486         call to maybe_clean_or_replace_eh_stmt.
3487         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
3488         copy the flags.
3489         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
3490         * tree-inline.c (copy_bb): ...and not there.
3491
3492 2010-06-22  Cary Coutant  <ccoutant@google.com>
3493
3494         * dwarf2out.c (is_nested_in_subprogram): New function.
3495         (should_move_die_to_comdat): Use it.
3496         (copy_ancestor_tree): Don't mark DIEs here.
3497         (copy_decls_walk): Start walk from root of newly-added tree;
3498         mark DIEs here instead.
3499
3500 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
3501
3502         * config/i386/i386.md (unit): Also check sseishft1.
3503
3504 2010-06-22  Jan Hubicka  <jh@suse.cz>
3505
3506         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
3507         enabled.
3508
3509 2010-06-22  Jan Hubicka  <jh@suse.cz>
3510
3511         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
3512         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
3513         Return true if something changed.
3514         * df.h (df_confluence_function_n): Return bool.
3515         * df-core.c (df_worklist_propagate_forward,
3516         df_worklist_propagate_backward): Track changes and ages.
3517         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
3518         track ages.
3519         * dse.c (dse_confluence_n): Return always true.
3520
3521 2010-06-22  Jan Hubicka  <jh@suse.cz>
3522
3523         * bitmap.c (bitmap_clear_bit): Micro optimize.
3524
3525 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
3526
3527         * config/i386/i386.md (SWI1248x): New mode iterator.
3528         (SWI48x): Ditto.
3529         (SWI12): Ditto.
3530         (SWI24): Ditto.
3531
3532         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
3533         SWI1248x mode iterator.
3534         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
3535         using SWI124 mode iterator.
3536         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
3537         mode iterator.
3538         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
3539         *pushdi2_prologue_rex64 using P mode iterator.
3540         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
3541         using SWI48 mode iterator.
3542         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
3543         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
3544         using SWI1248x mode iterator.
3545         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
3546         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
3547         SWI48 mode iterator.
3548         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
3549         iterator.
3550         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
3551         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
3552         SWI12 mode iterator.
3553         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
3554         SWI12 mode iterator.
3555         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
3556         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
3557         SWI24 mode iterator.
3558         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
3559         SWI48 mode iterator.
3560         (mov<mode>_insn_1): New expander.
3561         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
3562         using SWI48x mode iterator.
3563
3564         (*movoi_internal_avx): Rename from *movoi_internal.
3565         (*movti_internal_rex64): Rename from *movti_rex64.
3566         (*movti_internal_sse): Rename from *movti_sse.
3567         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
3568         (*movdi_internal): Rename from *movdi_2.
3569         (*movsi_internal): Rename from *movsi_1.
3570         (*movhi_internal): Rename from *movhi_1.
3571         (*movqi_internal): Rename from *movqi_1.
3572
3573         (insv): Update the call to gen_movsi_insv_1 for rename.
3574         * config/i386/i386.c (promote_duplicated_reg): Ditto.
3575
3576 2010-06-22  Jan Hubicka  <jh@suse.cz>
3577
3578         * passes.c (execute_function_todo): Move call of statistics_fini_pass
3579         to ...
3580         (execute_todo) ... this one.
3581
3582 2010-06-22  Alan Modra  <amodra@gmail.com>
3583
3584         PR target/44364
3585         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3586         * caller-save.c (insert_restore, insert_save): Use non-validate
3587         form of adjust_address.
3588
3589 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3590
3591         PR target/39690
3592         * config/pa/pa.c (override_options): Disable
3593         -freorder-blocks-and-partition.
3594
3595 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
3596
3597         PR target/44615
3598         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
3599
3600         * config/i386/i386.md (type): Add sseishft1
3601
3602         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
3603         (ppro_insn_load): Likewise.
3604         (ppro_insn_store): Likewise.
3605         (ppro_insn_both): Likewise.
3606
3607         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
3608         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
3609         for type.
3610         (*vec_extractv2di_1_avx): Likewise.
3611         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
3612         type.  Remove atom_unit.
3613         (*vec_extractv2di_1_sse2): Likewise.
3614
3615 2010-06-21  DJ Delorie  <dj@redhat.com>
3616
3617         * diagnostic.h (diagnostic_classification_change_t): New.
3618         (diagnostic_context): Add history and push/pop list.
3619         (diagnostic_push_diagnostics): Declare.
3620         (diagnostic_pop_diagnostics): Declare.
3621         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
3622         from pragmas in a history chain instead of the global table.
3623         (diagnostic_push_diagnostics): New.
3624         (diagnostic_pop_diagnostics): New.
3625         (diagnostic_report_diagnostic): Scan history chain to find state
3626         of diagnostics as of the diagnostic location.
3627         * opts.c (set_option): Pass UNKNOWN_LOCATION to
3628         diagnostic_classify_diagnostic.
3629         (enable_warning_as_error): Likewise.
3630         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
3631         use in the history chain.
3632         * doc/extend.texi: Document pragma GCC diagnostic changes.
3633
3634 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
3635
3636         * dwarf2out.c (add_linkage_name): New function.  Don't add
3637         anything to DW_TAG_member DIEs.
3638         (add_name_and_src_coords_attributes): Use it.
3639         (gen_variable_die): Call it for C++ static data members if
3640         specification is DW_TAG_member.
3641
3642         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
3643         C++ char16_t and char32_t.
3644
3645         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
3646         * genattrtab.c: Include vecprim.h.
3647         (cached_attrs, cached_attr_count, attrs_seen_once,
3648         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
3649         attrs_cached_after): New variables.
3650         (find_attrs_to_cache): New function.
3651         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
3652         (write_test_expr): Add attrs_cached argument, return it too,
3653         attempt to cache non-const attributes used more than once in
3654         a single case handling.
3655         (write_attr_get): Use find_attrs_to_cache, for caching candidates
3656         emit cached_* variables.  Adjust write_attr_set callers.
3657         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
3658         to find attributes that should be cached in this block.  Adjust
3659         write_test_expr callers.
3660         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
3661         callers.
3662         (make_automaton_attrs): Adjust write_test_expr caller.
3663
3664         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
3665         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
3666         (make_automaton_attrs): If find_tune_attr returns non-NULL,
3667         write separate internal_dfa_insn_code_* and insn_default_latency_*
3668         functions for each attribute's value and emit init_sched_attrs
3669         function and function pointers.
3670         * genattr.c (const_attrs, reservations): New variables.
3671         (gen_attr): Add const attributes to const_attrs vector.
3672         (check_tune_attr, find_tune_attr): New functions.
3673         (main): Add reservations to reservations vector.  If find_tune_attr
3674         returns true, add prototype for init_sched_attrs and make
3675         internal_dfa_insn_code and insn_default_latency function pointers,
3676         otherwise define init_sched_attrs as dummy macro.
3677         * cfgexpand.c: Include insn-attr.h.
3678         (gimple_expand_cfg): Call init_sched_attrs.
3679
3680         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
3681
3682         PR target/44575
3683         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
3684         va_arg from a set of register save slots into a temporary,
3685         if the container is bigger than type size, do the copying
3686         using smaller mode or using memcpy.
3687
3688         PR bootstrap/44426
3689         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
3690         prototype.
3691         (sel_print_to_dot): Remove macro.
3692         (sel_print): Likewise.  New prototype.
3693         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
3694         (sel_print): New function.
3695
3696 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3697
3698         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
3699         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
3700
3701 2010-06-21  Nick Clifton  <nickc@redhat.com>
3702
3703         * config/rx/rx.h (PTRDIFF_TYPE): Define.
3704         (SMALL_REGISTER_CLASS): Define (to zero).
3705         (PRINT_OPERAND): Delete.
3706         (PRINT_OPERAND_ADDRESS): Delete.
3707         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
3708         (rx_print_operand_address): Delete prototype.
3709         * config/rx/rx.c (rx_print_operand): Make static.
3710         Allow %H and %L to handle CONST_DOUBLEs.
3711         (rx_print_operand_address): Make static.
3712         (rx_gen_move_template): Rename local variable 'template' to
3713         out_template.
3714         (rx_function_arg): Do not pass unknown sized objects in registers.
3715         (TARGET_PRINT_OPERAND): Define.
3716         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3717
3718 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
3719
3720         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
3721
3722 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
3723
3724         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
3725         stack-alignment for simple leaf-functions.
3726
3727 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
3728
3729         * doc/install.texi: Document bootstrap-lto.
3730
3731 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
3732
3733         PR debug/44248
3734         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
3735         (input_function): Drop them here, if VTA is disabled.
3736
3737 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
3738
3739         PR target/44546
3740         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
3741         New predicate.
3742         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
3743         ix86_swapped_fp_comparsion_operator instead of
3744         ix86_fp_comparison_operator.
3745
3746         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
3747         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
3748         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
3749         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
3750         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
3751         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
3752
3753 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
3754
3755         PR other/32998
3756         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
3757         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
3758         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
3759         (decode_cmdline_option): Update for this return value.  Set
3760         orig_option_with_args_text field.  Set arg field for unknown
3761         options.  Make static.
3762         (decode_cmdline_options_to_array): New.
3763         (prune_options): Update handling of find_opt return value.
3764         * opts.c (read_cmdline_option): Take decoded option.  Return void.
3765         (read_cmdline_options): Take decoded options.
3766         (decode_options): Add parameters for decoded options.  Use
3767         decode_cmdline_options_to_array.  Use decoded options for -O
3768         scan.  Use integral_argument for -O parameters.  Update call to
3769         read_cmdline_options.
3770         (enable_warning_as_error): Update handling of find_opt return value.
3771         * opts.h: Update comment on unknown options.
3772         (struct cl_decoded_option): Update comments on opt_index and arg.
3773         Add orig_option_with_args_text.
3774         (decode_cmdline_option): Remove.
3775         (decode_cmdline_options_to_array): Declare.
3776         (decode_options): Update prototype.
3777         * toplev.c (save_argv): Remove.
3778         (save_decoded_options, save_decoded_options_count): New.
3779         (read_integral_parameter): Remove.
3780         (print_switch_values): Use decoded options.
3781         (toplev_main): Don't set save_argv.  Update call to decode_options.
3782         * toplev.h (read_integral_parameter): Remove.
3783         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
3784
3785 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
3786
3787         PR target/44072
3788         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
3789         immediate.
3790         * constraints.md (Pw, Px): New constraints.
3791         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
3792
3793 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
3794
3795         * config/i386/sse.md (fma4modesuffixf4): Removed.
3796         (ssemodesuffixf2s): Likewise.
3797         (ssemodesuffixf4): Likewise.
3798         (ssemodesuffixf2c): Likewise.
3799         (ssescalarmodesuffix2s): Likewise.
3800         (avxmodesuffixf2c): Likewise.
3801         (ssemodesuffix): New.
3802         (ssescalarmodesuffix): Likewise.
3803         Update patterns with ssemodesuffix and ssescalarmodesuffix.
3804
3805 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
3806
3807         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
3808
3809 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
3810
3811         * stor-layout.c (debug_rli): Remove unused local variables.
3812
3813 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
3814
3815         PR rtl-optimization/40900
3816         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
3817         original expression for later reuse.
3818         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
3819         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
3820
3821 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
3822
3823         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
3824         double_int_fits_in_uhwi_p): Implement as static inline.
3825         (double_int_xor): New inline function.
3826         (double_int_lrotate, double_int_rrotate, double_int_max,
3827         double_int_umax, double_int_smax, double_int_min, double_int_umin,
3828         double_int_smin): Declare.
3829         (lrotate_double, rrotate_double): Remove declaration.
3830         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
3831         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
3832         (double_int_lrotate, double_int_rrotate, double_int_max,
3833         double_int_umax, double_int_smax, double_int_min, double_int_umin,
3834         double_int_smin): New function.
3835         * fold-const.c (int_const_binop): Clean up, use double_int_*
3836         functions.
3837         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
3838         double_int_* and immed_double_int_const functions.
3839
3840 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3841
3842         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
3843         * function.c (types_used_by_cur_var_decl): Likewise.
3844         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
3845
3846 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
3847
3848         * tree.h (record_layout_info): Change type of pending_statics field
3849         to a VEC.
3850         * stor-layout.c (start_record_layout): Store NULL into
3851         pending_statics.
3852         (debug_rli): Call debug_vec_tree instead of debug_tree.
3853         (place_field): Likewise.
3854         (finish_record_layout): Likewise.
3855
3856 2010-06-18  Alan Modra  <amodra@gmail.com>
3857
3858         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
3859
3860 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3861
3862         PR target/43740
3863         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
3864         for SET source operand from SET destination operand.
3865
3866 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
3867
3868         PR rtl-optimization/39871
3869         * reload1.c (init_eliminable_invariants): For flag_pic, disable
3870         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
3871         (function_invariant_p): Rule out a plus of frame or arg pointer with
3872         a SYMBOL_REF.
3873         * ira.c (find_reg_equiv_invariant_const): Likewise.
3874
3875 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
3876
3877         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
3878         print_operand_address and puts to output the operand for CONST.
3879
3880 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
3881
3882         PR debug/44572
3883         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
3884         hook.
3885
3886 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3887
3888         * v850-protos.h (print_operand): Delete.
3889         (print_operand_address): Delete.
3890         * v850.h (PRINT_OPERAND): Delete.
3891         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3892         (PRINT_OPERAND_ADDRESS): Delete.
3893         * v850.c (print_operand_address): Rename to...
3894         (v850_print_operand_address): ...this.  Make static. Call
3895         v850_print_operand.
3896         (print_operand): Rename to...
3897         (v850_print_operand): ...this.  Make static.  Call
3898         v850_print_operand_address.
3899         (v850_print_operand_punct_valid_p): New function.
3900         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3901         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3902
3903 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3904
3905         * config/sh/sh-protos.h (print_operand): Delete.
3906         (print_operand_address): Delete.
3907         * config/sh/sh.h (PRINT_OPERAND): Delete.
3908         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3909         (PRINT_OPERAND_ADDRESS): Delete.
3910         * config/sh/sh.c (sh_print_operand_address): Make static.
3911         (sh_print_operand): Make static.  Call sh_print_operand_address
3912         and sh_print_operand.
3913         (sh_print_operand_punct_valid_p): New function.
3914         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3915         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3916
3917 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3918
3919         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
3920         (mcore_print_operand_address): Delete.
3921         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
3922         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3923         (PRINT_OPERAND_ADDRESS): Delete.
3924         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
3925         (mcore_print_operand): Make static.
3926         (mcore_print_operand_punct_valid_p): New function.
3927         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
3928         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3929
3930 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3931
3932         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
3933         (print_operand_address): Delete.
3934         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
3935         (PRINT_OPERAND_ADDRESS): Delete.
3936         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
3937         static.
3938         (m68hc11_print_operand): Make static.
3939         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3940
3941 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3942
3943         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
3944         (m32r_print_operand_address): Delete.
3945         * config/m32r/m32r.h (m32r_punct_chars): Delete.
3946         (PRINT_OPERAND): Delete.
3947         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3948         (PRINT_OPERAND_ADDRESS): Delete.
3949         * config/m32r/m32r.c (m32r_punct_chars): Make static.
3950         (m32r_print_operand_address): Make static.
3951         (m32r_print_operand): Make static.
3952         (m32r_print_operand_punct_valid_p): New function.
3953         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3954         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3955
3956 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3957
3958         * config/iq2000/iq2000-protos.h (print_operand): Delete.
3959         (print_operand_address): Delete.
3960         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
3961         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3962         (PRINT_OPERAND_ADDRESS): Delete.
3963         (iq2000_print_operand_punct): Delete.
3964         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
3965         (iq2000_print_operand_address): Make static.
3966         (iq2000_print_operand): Make static.
3967         (iq2000_print_operand_punct_valid_p): New function.
3968         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3969         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3970
3971 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3972
3973         * config/frv/frv-protos.h (frv_print_operand): Delete.
3974         (frv_print_operand_address): Delete.
3975         * config/frv/frv.h (PRINT_OPERAND): Delete.
3976         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
3977         (PRINT_OPERAND_ADDRESS): Delete.
3978         * config/frv/frv.c (frv_print_operand_address): Make static.
3979         (frv_print_operand): Make static.
3980         (frv_print_operand_punct_valid_p): New function.
3981         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
3982         (TARGET_PRINT_OPERAND_ADDRESS): Define.
3983
3984 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
3985
3986         * tree.h (vec_member): Declare.
3987         * tree.c (vec_member): Define.
3988
3989 2010-06-17  Richard Guenther  <rguenther@suse.de>
3990
3991         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
3992         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
3993
3994 2010-06-17  Richard Guenther  <rguenther@suse.de>
3995
3996         * tree-inline.c (declare_return_variable): Remove bogus code.
3997
3998 2010-06-17  Richard Guenther  <rguenther@suse.de>
3999
4000         * gimplify.c (gimplify_bind_expr): Always promote complex
4001         and vector variables to registers if possible.
4002
4003 2010-06-17  Richard Guenther  <rguenther@suse.de>
4004
4005         * expr.c (get_inner_reference): Use double_int for bit_offset
4006         calculation.
4007
4008 2010-06-16  DJ Delorie  <dj@redhat.com>
4009
4010         * common.opt (-fstrict-volatile-bitfields): new.
4011         * doc/invoke.texi: Document it.
4012         * fold-const.c (optimize_bit_field_compare): For volatile
4013         bitfields, use the field's type to determine the mode, not the
4014         field's size.
4015         * expr.c (expand_assignment): Likewise.
4016         (get_inner_reference): Likewise.
4017         (expand_expr_real_1): Likewise.
4018         * expmed.c (store_fixed_bit_field): Likewise.
4019         (extract_bit_field_1): Likewise.
4020         (extract_fixed_bit_field): Likewise.
4021
4022 2010-06-16  Richard Guenther  <rguenther@suse.de>
4023
4024         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
4025
4026 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
4027
4028         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
4029         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
4030         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
4031         * debug.c: Likewise.
4032         * sdbout.c: Likewise.
4033         * vmsdbgout.c: Likewise.
4034         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
4035         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
4036         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
4037         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
4038         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
4039         * dwarf2out.c (dw_fde_struct): New fields
4040         dw_fde_vms_{end,begin}_prologue.
4041         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
4042         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
4043         (dwarf2out_vms_end_prologue): New function.
4044         (dwarf2out_vms_begin_epilogue): New function.
4045         (dw_val_struct): New value dw_val_class_vms_delta.
4046         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
4047         begin_epilogue for VMS.
4048         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
4049         new static functions.
4050         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
4051         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
4052         static functions.
4053         (print_die): New case dw_val_class_vms_delta.
4054         (attr_checksum): Likewise.
4055         (same_dw_val_p: Likewise.
4056         (size_of_die): Likewise.
4057         (value_format): Likewise.
4058         (output_die): Likewise.
4059         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
4060         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
4061         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
4062         dwarf2out_cfi_begin_epilogue
4063         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
4064
4065 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4066
4067         * config/cris/cris-protos.h (cris_print_operand): Delete.
4068         (cris_print_operand_address): Delete.
4069         * config/cris/cris.h (PRINT_OPERAND): Delete.
4070         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4071         (PRINT_OPERAND_ADDRESS): Delete.
4072         * config/cris/cris.c (cris_print_operand_address): Make static.
4073         (cris_print_operand): Make static.
4074         (cris_print_operand_punct_valid_p): New function.
4075         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4076         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4077
4078 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
4079
4080         * config/arm/arm-protos.h (arm_print_operand): Delete.
4081         (arm_print_operand_address): Delete.
4082         * config/arm/arm.h (PRINT_OPERAND): Delete.
4083         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4084         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
4085         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
4086         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
4087         (arm_print_operand): Make static.
4088         (arm_print_operand_punct_valid_p): New function.
4089         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
4090         (TARGET_PRINT_OPERAND_ADDRESS): Define.
4091
4092 2010-06-16  Nick Clifton  <nickc@redhat.com>
4093
4094         * config/rx/constraints.md (NEGint4): New constraint.
4095         * config/rx/rx.md (attr cc): Add set_zsc.
4096         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
4097         initialised.
4098         (cmpsf): Likewise.
4099         (call_internal): Clobber the cc0 register.
4100         (call_value_internal): Likewise.
4101         (cstoresi4): Likewise.
4102         (movsieq): Likewise.
4103         (movsine): Likewise.
4104         (addsi3): Add alternative to handle small negative constants.
4105         (sunsi3): Likewise.
4106         (addsi3): Do not set the O bit in the cc0 register.
4107         (adddi3): Likewise.
4108         (subsi3): Likewise.
4109         (subdi3): Likewise.
4110         (andsi3): Reorder alternatives to prefer shorter forms.
4111         (mulsi3): Likewise.
4112         (iorsi3): Likewise.
4113         (negsi2): Note that the cc0 flags are set.
4114         (rotlsi3): Note that only the Z and S bits are set in cc0.
4115         (lshrsi3): Likewise.
4116         (ashlsi3): Likewise.
4117         (subsf3): Use %Q for the MEM operand.
4118         (fix_truncsfsi2): Likewise.
4119         (floatsisf2): Likewise.
4120         (bitset): Remove early clobber from destination.
4121         (bitset_in_memory): Likewise.
4122         (lrintsf2): Clobber the cc0 register.
4123         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
4124         (rx_print_operand): Handle %N.
4125
4126 2010-06-16  Jan Hubicka  <jh@suse.cz>
4127
4128         * df-core.c (df_compact_blocks): Free problem_temps vector.
4129
4130 2010-06-16  Martin Jambor  <mjambor@suse.cz>
4131
4132         PR tree-optimization/43905
4133         * tree-sra.c: Include tree-inline.h.
4134         (create_abstract_origin): Removed.
4135         (modify_function): Version the call graph node instead of creating
4136         abstract origins and dealing with same_body aliases.
4137         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
4138         function is versionable.
4139         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
4140
4141 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
4142
4143         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
4144         (CHOOSE_DYNAMIC_LINKER): Update.
4145
4146 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
4147
4148         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
4149         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
4150         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
4151         *prefetch_3dnow_rex.
4152
4153 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
4154
4155         * target.h (struct asm_out):Add declare_constant_name field.
4156         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4157         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
4158         * output.h (default_asm_declare_constant_name): Declare.
4159         (assemble_label): Update prototype.
4160         * varasm.c (assemble_constant_contents): Use
4161         targetm.asm_out.declare_constant_name target hook.
4162         (assemble_label): Add 'file' argument.
4163         (default_asm_declare_constant_name): New function.
4164         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
4165         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
4166         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
4167
4168         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
4169         * config/darwin.c (darwin_asm_declare_constant_name): New function.
4170         (machopic_output_indirection): Update assemble_label argument list.
4171         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
4172         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
4173
4174 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
4175
4176         PR middle-end/44391
4177         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
4178         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
4179
4180 2010-06-15  Richard Guenther  <rguenther@suse.de>
4181
4182         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
4183
4184 2010-06-15  Paul Brook  <paul@codesourcery.com>
4185
4186         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
4187         hard-float ABI.
4188
4189 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
4190
4191         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
4192         don't get a vector type for output.
4193
4194 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
4195
4196         PR fortran/44536
4197         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
4198         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
4199         (LANG_HOOKS_DECLS): Add it.
4200         * gimplify.c (omp_notice_variable): Call
4201         lang_hooks.decls.omp_report_decl.
4202
4203 2010-06-15  Martin Jambor  <mjambor@suse.cz>
4204
4205         PR lto/44464
4206         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
4207         on the newly dead SSA name.
4208
4209 2010-06-15  Alan Modra  <amodra@gmail.com>
4210
4211         * doc/invoke.texi: Add mcmodel to powerpc options.
4212         * configure.ac: Add HAVE_LD_LARGE_TOC test.
4213         * configure: Regenerate.
4214         * config.in: Regenerate.
4215         * config/rs6000/linux64.opt (mcmodel): New.
4216         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
4217         (TARGET_CMODEL, SET_CMODEL): Define.
4218         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
4219         select CMODEL_MEDIUM default.
4220         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
4221         (TARGET_CMODEL): Define default.
4222         * config/rs6000/rs6000.c (cmodel): New variable.
4223         (rs6000_explicit_options): Add cmodel field.
4224         (rs6000_handle_option): Handle -mcmodel.
4225         (create_TOC_reference): Add largetoc_reg param.  Generate high,
4226         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
4227         (rs6000_delegitimize_address): Recognise new toc reference rtl
4228         and minimal-toc rtl.
4229         (rs6000_legitimize_reload_address): Handle new toc references.
4230         (print_operand_address): Handle legitimate_constant_pool_address_p
4231         match before lo_sum.
4232         (rs6000_eliminate_indexed_memrefs): Tidy.
4233         (rs6000_emit_move): Tweak threshold for inlining constants.
4234         Keep rs6000_emit_allocate_stack large stack frame offsets
4235         loaded into r0 inline.
4236         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
4237         (tocrel_base, tocrel_offset): New variables.
4238         (toc_relative_expr_p): Set them here.
4239         (print_operand_address): Skip over any offset on constant pool address.
4240         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
4241         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
4242         (offsettable_ok_by_alignment): New function.
4243         (rs6000_emit_move): Address suitably aligned local symbol_refs
4244         relative to the toc pointer for -mcmodel=medium.
4245         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
4246         strict param.  Allow lo_sum version of addressing.  Verify reg
4247         used for -mminimal-toc and -mcmodel != small.  Update all callers.
4248         * config/rs6000/constraints.md: Update for above change.
4249         * config/rs6000/predicates.md: Likewise.
4250         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
4251         code.
4252         (tls_gd): Split for -mcmodel=medium/large.
4253         (tls_gd_high, tls_gd_low): New.
4254         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
4255         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
4256         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
4257         (largetoc_high, largetoc_low): New.
4258         (cmptf_internal2): Add clobber.
4259         * config/rs6000/rs6000-protos.h: Update.
4260
4261 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
4262
4263         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
4264         true if no prefetch is going to be generated for a given group.
4265         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
4266         estimate the prefetch_count.
4267         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
4268         prefetch count by considering the unroll_factor and prefetch_mod
4269         for is_loop_prefetching_profitable.
4270
4271 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
4272
4273         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
4274         anything if the argument is not a MEM.
4275
4276 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4277
4278         PR debug/43650
4279         PR debug/44181
4280         PR debug/44247
4281         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
4282         debug stmts.
4283         (canonicalize_loop_ivs): Likewise.
4284
4285 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
4286
4287         PR debug/43656
4288         * haifa-sched.c (setup_insn_reg_pressure_info,
4289         update_register_pressure): Reject debug insns.
4290         (ready_sort): Don't setup reg pressure for debug insns.
4291         (schedule_insn): Don't update reg pressure for debug insns.
4292
4293 2010-06-14  Richard Guenther  <rguenther@suse.de>
4294
4295         * lto-streamer.c (cached_bp): Remove.
4296         (bitpack_delete): Likewise.
4297         (bitpack_create): Likewise.
4298         (bp_get_next_word): Likewise.
4299         (bp_pack_value, bp_unpack_value): Move ...
4300         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
4301         Re-implement.
4302         (struct bitpack_d): Likewise.
4303         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
4304         New inline functions.
4305         * lto-streamer-out.c (lto_output_bitpack): Remove.
4306         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4307         (pack_value_fields): Adjust.
4308         (lto_write_tree): Likewise.
4309         (output_gimple_stmt): Likewise.
4310         (output_function): Likewise.
4311         * lto-streamer-in.c (input_gimple_stmt): Adjust.
4312         (input_function): Likewise.
4313         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
4314         (lto_input_bitpack): Remove.
4315         (lto_materialize_tree): Adjust.
4316         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
4317         * lto-cgraph.c (lto_output_edge): Adjust.
4318         (lto_output_node): Likewise.
4319         (lto_output_varpool_node): Likewise.
4320         (lto_output_ref): Likewise.
4321         (input_node): Likewise.
4322         (input_varpool_node): Likewise.
4323         (input_ref): Likewise.
4324         (input_edge): Likewise.
4325         (output_node_opt_summary): Likewise.
4326         (input_node_opt_summary): Likewise.
4327         * ipa-pure-const.c (pure_const_write_summary): Likewise.
4328         (pure_const_read_summary): Likewise.
4329         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
4330         (ipa_read_indirect_edge_info): Likewise.
4331         (ipa_write_node_info): Likewise.
4332         (ipa_read_node_info): Likewise.
4333
4334 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
4335
4336         PR target/44534
4337         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
4338         (vec_extract_lo_v16hi): Likewise.
4339         (vec_extract_lo_v32qi): Likewise.
4340
4341 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4342
4343         PR bootstrap/44426
4344         * tree.h (build_call_expr): Don't define as vararg macro, instead
4345         add a prototype.
4346         * builtins.c (build_call_nofold): Remove.
4347         (expand_builtin_int_roundingfn, expand_builtin_pow,
4348         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
4349         expand_builtin_memset_args, expand_builtin_strcmp,
4350         expand_builtin_strncmp, expand_builtin_memory_chk): Use
4351         build_call_nofold_loc instead of build_call_nofold.
4352         (build_call_expr): New function.
4353
4354         PR tree-optimization/44508
4355         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
4356         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
4357         don't eliminate trivially dead stmts.
4358         * tree-vrp.c (vrp_finalize): Pass false as last argument
4359         to substitute_and_fold.
4360         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
4361         to substitute_and_fold.
4362         * tree-ssa-ccp.c (ccp_finalize): Likewise.
4363
4364         PR bootstrap/44509
4365         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
4366
4367 2010-06-14  Ira Rosen  <irar@il.ibm.com>
4368
4369         PR tree-optimization/44507
4370         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
4371         to build initial vector for BIT_AND_EXPR.
4372         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4373
4374 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
4375
4376         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
4377         adjust z10prop set_attr.
4378
4379 2010-06-13  Jan Hubicka  <jh@suse.cz>
4380
4381         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
4382         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
4383         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
4384         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
4385         datastructure checks into checking asserts.
4386         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
4387         * tree-ssa-sccvn.c (VN_INFO): Likewise.
4388         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
4389         df_ref_create_structure): Likewise.
4390         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
4391         pool_free): Use gcc_checking_assert.
4392         * alias.c (get_alias_set): Likewise.
4393         * var-tracking.c (variable_htab_free, shared_hash_copy,
4394         canonicalize_values_mark, variable_merge_over_cur): Likewise.
4395         * lto-streamer.c (bp_unpack_value): Likewise.
4396
4397 2010-06-13  Richard Guenther  <rguenther@suse.de>
4398
4399         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
4400         Do not stream but initialize TYPE_CANONICAL to NULL.
4401         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
4402         * gimple.c (gimple_types_compatible_p): Disregard
4403         TYPE_STRUCTURAL_EQUALITY_P.
4404         (gimple_register_type): Use TYPE_CANONICAL as cache.
4405         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
4406         before registering common types.
4407         * config/i386/i386.c (ix86_function_arg_boundary): Do not
4408         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
4409         * tree.h (TYPE_CANONICAL): Clarify documentation.
4410
4411 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
4412
4413         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
4414         LIBCALL_VALUE): Remove macros.
4415         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
4416         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4417         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4418         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
4419         (ia64_function_value): Make static. Handle receiving the function
4420         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
4421
4422 2010-06-12  Jan Hubicka  <jh@suse.cz>
4423
4424         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
4425         at correct place.
4426
4427 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
4428
4429         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
4430
4431 2010-06-12  Jan Hubicka  <jh@suse.cz>
4432
4433         * df-core.c (df_clear_bb_info): New function.
4434         (df_set_blocks): bb_info is always allocated.
4435         (df_get_bb_info): Use block_info_elt_size.
4436         (df_set_bb_info): Likewise.
4437         (df_compact_blocks): Update for new block_info.
4438         (grow_bb_info): New function.
4439         * df-problems.c (df_grow_bb_info): Move to df-core.c
4440         (df_rd_set_bb_info): Remove.
4441         (df_rd_free_bb_info): Do not free block pool.
4442         (df_rd_alloc): Do not create pool, use check for
4443         obstack presence instead of NULL pointer for new blocks.
4444         (df_rd_free): DO not free alloc pool; clear block_info.
4445         (problem_RD): Add size of block info structure.
4446         (df_lr_set_bb_info): Remove.
4447         (df_lr_free_bb_info): Do not free block pool.
4448         (df_lr_alloc): Do not create pool, use check for
4449         obstack presence instead of NULL pointer for new blocks.
4450         (df_lr_free): DO not free alloc pool; clear block_info.
4451         (problem_LR): Add size of block info structure.
4452         (df_live_set_bb_info): Remove.
4453         (df_live_free_bb_info): Do not free block pool.
4454         (df_live_alloc): Do not create pool, use check for
4455         obstack presence instead of NULL pointer for new blocks.
4456         (df_live_free): DO not free alloc pool; clear block_info.
4457         (problem_LIVE): Add size of block info structure.
4458         (problem_CHAIN): Add size of block info structure.
4459         (df_byte_lr_set_bb_info): Remove.
4460         (df_byte_lr_free_bb_info): Do not free block pool.
4461         (df_byte_lr_alloc): Do not create pool, use check for
4462         obstack presence instead of NULL pointer for new blocks.
4463         (df_byte_lr_free): DO not free alloc pool; clear block_info.
4464         (problem_BYTE_LR): Add size of block info structure.
4465         (problem_NOTE): Add size of block info structure.
4466         (df_byte_MD_set_bb_info): Remove.
4467         (df_byte_MD_free_bb_info): Do not free block pool.
4468         (df_byte_MD_alloc): Do not create pool, use check for
4469         obstack presence instead of NULL pointer for new blocks.
4470         (df_byte_MD_free): DO not free alloc pool; clear block_info.
4471         (problem_BD): Add size of block info structure.
4472         * df-scan.c (df_scan_free_internal): Free block pool.
4473         (df_scan_set_bb_info): Remove.
4474         (df_scan_free_bb_info): Check for artificial_defs instead
4475         of bb_info being non-NULL.
4476         (df_scan_alloc): DO not create df_scan_block pool.
4477         (problem_SCAN): Set size of block info.
4478         (df_bb_refs_record): Do not allocate bb_info.
4479         * df.h (df_problem): Add block_info_elt_size.
4480         (struct dataflow): Change block_info to void *.
4481         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
4482         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
4483         in-line structures.
4484
4485 2010-06-12  Jan Hubicka  <jh@suse.cz>
4486
4487         PR tree-optimize/44485
4488         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
4489         containing use of return value of noreturn function.
4490
4491 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
4492
4493         * targhooks.c (default_function_value): Don't use
4494         FUNCTION_OUTGOING_VALUE.
4495         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
4496         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
4497
4498 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
4499
4500         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
4501         Add crtfastmath.o to extra_parts.
4502         * config/mips/crtfastmath.c: New.
4503         * config/mips/linux.h (ENDFILE_SPEC): New.
4504
4505 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
4506
4507         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
4508         old_type in parameter.
4509         (gcc_type_for_value): Update call to gcc_type_for_interval.
4510         (compute_type_for_level_1): Renamed compute_type_for_level.
4511         Update call to gcc_type_for_interval.
4512
4513 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4514
4515         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
4516         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
4517
4518 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
4519
4520         * opts-common.c: Include options.h.
4521         (integral_argument): Move from opts.c.
4522         (decode_cmdline_option): New.  Based on read_cmdline_option.
4523         * opts.c (integral_argument): Move to opts-common.c.
4524         (read_cmdline_option): Move most contents to
4525         decode_cmdline_option.  Use %qs in diagnostics.
4526         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
4527         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
4528         decode_cmdline_option): New.
4529
4530 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4531
4532         PR target/44481
4533         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
4534         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
4535         (partiysi2_cmp): Ditto.
4536         (*partiyhi2_cmp): Ditto.
4537         (*parityqi2_cmp): Remove.
4538
4539 2010-06-11  Jan Hubicka  <jh@suse.cz>
4540
4541         * bitmap.h (bmp_iter_next_bit): New.
4542         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
4543
4544 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
4545             Eric Botcazou  <ebotcazou@adacore.com>
4546
4547         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
4548         computed cost.
4549
4550 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4551
4552         * config/i386/i386.md (unspec): New define_c_enum.
4553         (unspecv): Ditto.
4554
4555 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
4556
4557         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
4558
4559 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
4560
4561         PR middle-end/44483
4562         * tree-if-conv.c (bb_predicate_s): New struct.
4563         (bb_predicate_p): New.
4564         (bb_has_predicate): New.
4565         (bb_predicate): New.
4566         (set_bb_predicate): New.
4567         (bb_predicate_gimplified_stmts): New.
4568         (set_bb_predicate_gimplified_stmts): New.
4569         (add_bb_predicate_gimplified_stmts): New.
4570         (init_bb_predicate): New.
4571         (free_bb_predicate): New.
4572         (is_predicated): Use bb_predicate.
4573         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
4574         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
4575         before processing their successors.
4576         (clean_predicate_lists): Removed.
4577         (find_phi_replacement_condition): Use bb_predicate.
4578         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
4579         computations.
4580         (insert_gimplified_predicates): New.
4581         (combine_blocks): Call insert_gimplified_predicates.
4582         (tree_if_conversion): Call free_bb_predicate instead of
4583         clean_predicate_lists.
4584
4585 2010-10-11  Paul Brook  <paul@codesourcery.com>
4586
4587         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
4588         * config/arm/arm.c (all_architectures): Change v7e-m default to
4589         cortexm4.
4590         * config/arm/arm-cores.def: Add cortex-m4.
4591         * config/arm/arm-tune.md: Regenerate.
4592
4593 2010-06-11  Jan Hubicka  <jh@suse.cz>
4594
4595         * ipa-pure-const.c (special_builtlin_state): New function.
4596         (check_call): Use it instead of special casign BUILT_IN_RETURN.
4597         (propagate_pure_const): Use it.
4598
4599 2010-06-11  Jan Hubicka  <jh@suse.cz>
4600
4601         * df-problems.c (df_live_scratch): Convert to bitmap_head.
4602         (df_live_alloc): Initialize df_live_scratch when initializing
4603         problem_data.
4604         (df_live_transfer_function): Update uses of df_live_scratch.
4605         (df_live_free): Free problem_data; clear df_live_scratch before
4606         releasing the obstack.
4607         (df_md_free): Free problem data.
4608
4609 2010-06-11  Jan Hubicka  <jh@suse.cz>
4610
4611         * doc/invoke.texi (Wsuggest-attribute): Document.
4612         (Wmissing-noreturn): Remove.
4613         * ipa-pure-const.c (warn_function_noreturn): New function.
4614         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
4615         warn_missing_noreturn.
4616         * common.opt (Wsuggest-attribute=noreturn): New.
4617         * tree-flow.h (warn_function_noreturn): Declare.
4618         * tree-cfg.c (execute_warn_function_noreturn): Use
4619         warn_function_noreturn.
4620         (gate_warn_function_noreturn): New.
4621         (pass_warn_function_noreturn): Update.
4622
4623 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4624
4625         * c-typeck.c (handle_warn_cast_qual): Add loc
4626         parameter. Improve warning message.
4627         (build_c_cast): Pass location to handle_warn_cast_qual.
4628
4629 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
4630
4631         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
4632         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
4633         insn mnemonic.
4634         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
4635
4636 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
4637
4638         Fix bootstap on mips
4639         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
4640         be naming typedefs.
4641
4642 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
4643
4644         * system.h (helper_const_non_const_cast): New inline for
4645         gcc version <= 4.0.
4646         (CONST_CAST2): For gcc version <= 4.0 use
4647         new helper to do const/non-const casting.
4648
4649 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4650
4651         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
4652         * Makefile.in (OBJS-common): Include insn-enums.o.
4653         (insn-enums.o): New rule.
4654         (simple_generated_c): Add insn-enums.c.
4655         (build/genenums.o): New rule.
4656         (genprogmd): Add "enums".
4657         * genconstants.c (print_enum_type): Declare a C string array
4658         for each enum.
4659         * genenums.c: New file.
4660         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
4661         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
4662         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
4663
4664 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4665
4666         * doc/md.texi (define_enum_attr): Document.
4667         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
4668         * read-md.h (lookup_enum_type): Declare.
4669         * read-md.c (lookup_enum_type): New function.
4670         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
4671         * genattrtab.c (attr_desc): Add an enum_name field.
4672         (evaluate_eq_attr): Take the associated attribute as argument.
4673         Get the enum prefix from the enum_name field, if defined.
4674         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
4675         (simplify_test_exp): Pass attr to evaluate_eq_attr.
4676         (add_attr_value): New function, split out from...
4677         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
4678         (write_test_expr): Pass attr to evaluate_eq_attr.
4679         (write_attr_get): Use the enum_name as the enum tag, if defined.
4680         (write_attr_valueq): Use the enum_name as a prefix, if defined.
4681         (find_attr): Initialize enum_name.
4682         (main): Handle DEFINE_ENUM_ATTR.
4683         * gensupport.c (process_rtx): Likewise.
4684         * config/mips/mips.h (mips_tune_attr): Delete.
4685         * config/mips/mips.md (cpu): Use define_attr_enum.
4686
4687 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4688
4689         * doc/md.texi (define_c_enum, define_enum): Document.
4690         * read-md.h (md_constant): Add a parent_enum field.
4691         (enum_value, enum_type): New structures.
4692         (upcase_string, traverse_enum_types): Declare.
4693         * read-md.c (enum_types): New variable.
4694         (upcase_string, add_constant): New functions.
4695         (handle_constants): Don't create the hash table here.
4696         Use add_constant.
4697         (traverse_md_constants): Don't check for a null md_constants.
4698         (decimal_string, handle_enum, traverse_enum_types): New functions.
4699         (read_md_files): Initialize md_constants and md_enums.
4700         * genconstants.c (print_md_constant): Ignore info argument.
4701         Only print constants that belong to no enum.
4702         (print_enum_type): New function.
4703         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
4704         for each defined enum type.
4705         * config/mips/mips.md (processor): New define_enum.
4706         (unspec): New define_c_enum.
4707         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
4708         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
4709         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
4710         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
4711         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
4712         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
4713         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
4714         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
4715         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
4716         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
4717         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
4718         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
4719         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
4720         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
4721         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
4722         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
4723         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
4724         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
4725         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
4726         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
4727         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
4728         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
4729         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4730         (UNSPEC_RDDSP): Move to mips-dsp.md.
4731         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
4732         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
4733         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
4734         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
4735         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
4736         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
4737         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
4738         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
4739         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
4740         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
4741         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
4742         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
4743         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
4744         Moved to mips-dspr2.md.
4745         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
4746         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
4747         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
4748         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
4749         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
4750         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
4751         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4752         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4753         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4754         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4755         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4756         UNSPEC_LOONGSON_PSADBH)
4757         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4758         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4759         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
4760         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4761         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4762         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4763         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
4764         (cpu): Update comment.
4765         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
4766         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
4767         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
4768         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
4769         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
4770         UNSPEC_LOONGSON_PCMPEQ)
4771         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
4772         UNSPEC_LOONGSON_PINSR_0)
4773         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
4774         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
4775         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
4776         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
4777         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
4778         UNSPEC_LOONGSON_PSADBH)
4779         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
4780         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
4781         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
4782         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4783         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4784         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4785         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
4786         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
4787         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
4788         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
4789         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
4790         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
4791         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
4792         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
4793         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
4794         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
4795         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
4796         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
4797         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
4798         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
4799         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
4800         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
4801         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
4802         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
4803         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
4804         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
4805         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
4806         (UNSPEC_RDDSP): Moved from mips.md.
4807         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
4808         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
4809         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
4810         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
4811         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
4812         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
4813         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
4814         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
4815         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
4816         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
4817         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
4818         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
4819         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
4820         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
4821         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
4822         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
4823         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
4824         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
4825         (UNSPEC_SCC): Moved from mips.md.
4826         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
4827         "processor_type" to "processor".
4828         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
4829         * config/mips/mips.h (processor_type): Delete.
4830         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
4831         "processor_type" to "processor".
4832
4833 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4834
4835         * configure.ac (tm_include_list): Add insn-constants.h.
4836         * configure: Regenerate.
4837         * Makefile.in (GTM_H): Move insn-constants.h here from...
4838         (TM_H): ...here.
4839         * mkconfig.sh: Remove special handling for insn-constants.h.
4840
4841 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4842
4843         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
4844         (BUILD_MD): ...this new variable.
4845         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
4846         that include the old contents of simple_generated_h and
4847         simple_generated_c.
4848         (simple_generated_h, simple_generated_c): Include them.  Add
4849         insn-constants.h.
4850         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
4851         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
4852         Remove these dependencies from the main rule and include
4853         insn-conditions.md in the command line only if it appears
4854         in the dependency list.
4855         (insn-constants.h, s-constants): Delete.
4856         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
4857         or gensupport.h.
4858         (build/genmddeps.o): Likewise.
4859         (genprogrtl): New variable that contains everything from genprogmd
4860         except mddeps and constants.
4861         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
4862         depend on $(BUILD_MD)
4863         (genprog): New variable.  Make these programs depend on
4864         $(BUILD_ERRORS).
4865         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
4866         (main): Use read_md_files instead of init_rtx_reader_args.
4867         * genconstants.c: As for genmddeps.c.
4868         * read-md.h (read_skip_construct): Declare.
4869         * read-md.c (read_skip_construct): New function.
4870         (handle_file): Allow a null handle_directive, skipping the
4871         construct if so.
4872         (parse_include): Update the comment accordingly.
4873
4874 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4875
4876         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
4877         * genmddeps.c: Include read-md.h.
4878         (main): Call init_rtx_reader_args instead of init_md_reader_args.
4879         * genattr.c (main): Likewise.
4880         * genattrtab.c (main): Likewise.
4881         * genautomata.c (main): Likewise.
4882         * gencodes.c (main): Likewise.
4883         * genconditions.c (main): Likewise.
4884         * genconfig.c (main): Likewise.
4885         * genconstants.c (main): Likewise.
4886         * genemit.c (main): Likewise.
4887         * genextract.c (main): Likewise.
4888         * genflags.c (main): Likewise.
4889         * genopinit.c (main): Likewise.
4890         * genoutput.c (main): Likewise.
4891         * genpeep.c (main): Likewise.
4892         * genrecog.c (main): Likewise.
4893         * genpreds.c (main): Likewise.
4894         * gensupport.h (in_fname): Move to read-md.h.
4895         (init_md_reader_args_cb): Rename to...
4896         (init_rtx_reader_args_cb): ...this and return a bool.
4897         (init_md_reader_args): Rename to...
4898         (init_rtx_reader_args): ...this and return a bool.
4899         (include_callback): Move to read-md.h.
4900         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
4901         (file_name_list, first_dir_md_include): Move to read-md.c
4902         (first_bracket_include): Delete unused variable.
4903         (last_dir_md_include): Move to read-md.c.
4904         (process_include): Delete, moving code to read-md.c:handle_include.
4905         (process_rtx): Don't handle INCLUDE.
4906         (save_string): Delete.
4907         (rtx_handle_directive): New function.
4908         (init_md_reader_args_cb): Rename to...
4909         (init_rtx_reader_args_cb): ...this and return a boolean success value.
4910         Use read_md_args.
4911         (init_md_reader_args): Rename to...
4912         (init_rtx_reader_args): ...this and return a boolean success value.
4913         * rtl.def (INCLUDE): Delete.
4914         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
4915         argument.
4916         * read-rtl.c (read_conditions): Don't gobble ')' here.
4917         (read_mapping): Likewise.
4918         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
4919         Handle top-level non-rtx constructs here rather than in read_rtx_1.
4920         Store the whole queue in *X.  Remove call to init_md_reader.
4921         (read_rtx_1): Rename to...
4922         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
4923         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
4924         here.
4925         (read_nested_rtx): New function.  Handle (nil) here rather than
4926         in read_rtx_code.
4927         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
4928         gobble ')' here.
4929         * read-md.h (directive_handler_t): New type.
4930         (in_fname, include_callback): Moved from read-md.h.
4931         (read_constants, init_md_reader): Delete.
4932         (read_md_files): Declare.
4933         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
4934         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
4935         from gensupport.c.
4936         (read_constants): Rename to...
4937         (handle_constants): ...this.  Don't gobble ')' here.
4938         (handle_include, handle_file, handle_toplevel_file)
4939         (parse_include): New functions, mostly taken from gensupport.c.
4940         (init_md_reader): Subsume into...
4941         (read_md_files): ...this new function.
4942
4943 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4944
4945         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
4946         (unread_char): Decrement read_md_lineno after putting back '\n'.
4947         * read-md.c (fatal_with_file_and_line): Push back any characters
4948         that we decide not to add to the context.
4949         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
4950         fatal_expected_char in cases where '/' ends a line (for example).
4951         (read_name): Don't increment read_md_lineno here.
4952         (read_escape): Likewise.
4953         (read_quoted_string): Likewise.
4954         (read_braced_string): Likewise.
4955
4956 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4957
4958         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
4959         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
4960         * genconstants.c: Include read-md.h.
4961         * read-rtl.c (md_constants): Move to read-md.c.
4962         (md_name): Move to read-md.h.
4963         (initialize_iterators): Use leading_string_hash instead of def_hash
4964         and leading_string_eq_p instead of def_name_eq_p.
4965         (read_name): Move to read-md.c.
4966         (def_hash, def_name_eq_p): Delete.
4967         (read_constants, traverse_md_constants): Move to read-md.c.
4968         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
4969         * read-md.h: Include hashtab.h.
4970         (md_name): Moved from read-rtl.c.
4971         (md_constant): Moved from read-md.h.
4972         (leading_string_hash, leading_string_eq_p, read_name)
4973         (read_constants, traverse_md_constants): Declare.
4974         * read-md.c (md_constants): Moved from read-rtl.c.
4975         (leading_string_hash, leading_string_eq_p): New functions.
4976         (read_name, read_constants, traverse_md_constants): Moved from
4977         read-rtl.c.
4978
4979 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4980
4981         * read-rtl.c (md_name): New structure.
4982         (read_name): Take an md_name instead of a buffer pointer.
4983         Use the "string" field instead of strcpy when expanding constants.
4984         (read_constants): Remove the tmp_char argument.  Update the calls
4985         to read_name, using two local name buffers instead of the tmp_char
4986         argument.  Merge the constant-creation code.
4987         (read_conditions): Remove the tmp_char argument.  Update the calls
4988         to read_name, using a local name buffer instead of the tmp_char
4989         argument.
4990         (read_mapping): Replace tmp_char variable with a local name buffer.
4991         Update the calls to read_name.
4992         (read_rtx_1): Likewise.  Update the calls to read_constants and
4993         read_conditions.
4994
4995 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
4996
4997         * Makefile.in (build/read-md.o): Depend on errors.h.
4998         * read-md.h (error_with_line): Declare.
4999         * read-md.c: Include errors.h.
5000         (message_with_line_1): New function, extracted from...
5001         (message_with_line): ...here.
5002         (error_with_line): New function.
5003         * genattrtab.c: If a call to message_with_line is followed by
5004         "have_error = 1;", replace both statements with a call to
5005         error_with_line.
5006         * genoutput.c: Likewise.
5007         * genpreds.c: Likewise.
5008         * genrecog.c: If a call to message_with_line is followed by
5009         "error_count++;", replace both statements with a call to
5010         error_with_line.
5011         (errorcount): Delete.
5012         (main): Don't check it.
5013         * gensupport.c: If a call to message_with_line is followed by
5014         "errors = 1;", replace both statements with a call to error_with_line.
5015         (errors): Delete.
5016         (process_define_cond_exec): Check have_error instead of errors.
5017         (init_md_reader_args_cb): Likewise.  Don't set errors.
5018
5019 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5020
5021         * read-md.h (read_md_file): Declare.
5022         (read_char, unread_char): New functions.
5023         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5024         (read_quoted_string, read_string): Remove FILE * argument.
5025         * read-md.c (read_md_file): New variable.
5026         (read_md_filename, read_md_lineno): Update comments and remove
5027         unnecessary initialization.
5028         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
5029         (read_escape, read_quoted_string, read_braced_string, read_string):
5030         Remove FILE * argument.  Update calls accordingly, using read_char
5031         and unread_char instead of getc and ungetc.
5032         * rtl.h (read_rtx): Remove FILE * argument.
5033         * read-rtl.c (iterator_group): Remove FILE * argument from
5034         "find_builtin".
5035         (iterator_traverse_data): Remove "infile" field.
5036         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
5037         (add_mapping, read_name, read_constants, read_conditions)
5038         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
5039         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
5040         Remove file arguments from all calls, using read_char and unread_char
5041         instead of getc and ungetc.
5042         * gensupport.c (process_include): Preserve read_md_file around
5043         the include.  Set read_md_file to the handle of the included file.
5044         Update call to read_rtx.
5045         (init_md_reader_args_cb): Set read_md_file to the handle of the file
5046         and remove local FILE *.  Update calls to read_rtx.
5047
5048 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5049
5050         * read-md.h (read_rtx_lineno): Rename to...
5051         (read_md_lineno): ...this.
5052         (read_rtx_filename): Rename to...
5053         (read_md_filename): ...this.
5054         (copy_rtx_ptr_loc): Rename to...
5055         (copy_md_ptr_loc): ...this.
5056         (print_rtx_ptr_loc): Rename to...
5057         (print_md_ptr_loc): ...this.
5058         * read-md.c: Likewise.  Update references after renaming.
5059         (string_obstack): Replace RTL with MD in comment.
5060         (set_rtx_ptr_loc): Rename to...
5061         (set_md_ptr_loc): ...this.
5062         (get_rtx_ptr_loc): Rename to...
5063         (get_md_ptr_loc): ...this.
5064         * genconditions.c: Update references after renaming.
5065         * genemit.c: Likewise.
5066         * genoutput.c: Likewise.
5067         * genpreds.c: Likewise.
5068         * gensupport.c: Likewise.
5069         * read-rtl.c: Likewise.
5070
5071 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
5072
5073         * Makefile.in (READ_MD_H): New variable.
5074         (BUILD_RTL): Add build/read-md.o.
5075         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
5076         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
5077         (build/genattrtab.o, build/genconditions.o build/genemit.o)
5078         (build/genextract.o, build/genflags.o, build/genoutput.o)
5079         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
5080         (build/read-md.o): New rule.
5081         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
5082         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
5083         * coretypes.h: ...here.
5084         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
5085         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
5086         * genattr.c: Include read-md.h.
5087         * genattrtab.c: Likewise.
5088         * genconditions.c: Likewise.
5089         * genemit.c: Likewise.
5090         * genextract.c: Likewise.
5091         * genflags.c: Likewise.
5092         * genoutput.c: Likewise.
5093         * genpreds.c: Likewise.
5094         * genrecog.c: Likewise.
5095         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
5096         (join_c_conditions, print_c_condition, read_rtx_filename)
5097         (read_rtx_lineno): Move to read-md.h.
5098         * read-rtl.c: Include read-md.h.
5099         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
5100         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
5101         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
5102         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
5103         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
5104         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
5105         (read_braced_string, read_string): Move to read-md.c.
5106         (read_rtx): Move some initialization to init_md_reader and call
5107         init_md_reader here.
5108         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
5109         Move to read-md.h.
5110         * gensupport.c: Include read-md.h.
5111         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
5112         * read-md.h, read-md.c: New files.
5113
5114 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
5115
5116         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5117         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5118         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
5119         * config/moxie/moxie.c (moxie_function_value): Make static.
5120         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
5121         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
5122
5123 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5124
5125         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
5126         * dbgcnt.def (tree_sra): New counter.
5127         * tree-sra.c: Include dbgcnt.h.
5128         (gate_intra_sra): Check tree_sra debug counter.
5129
5130 2010-06-10  Martin Jambor  <mjambor@suse.cz>
5131
5132         PR tree-optimization/44258
5133         * tree-sra.c (build_access_subtree): Return false iff there is a
5134         partial overlap.
5135         (build_access_trees): Likewise.
5136         (analyze_all_variable_accesses): Disqualify candidates if
5137         build_access_trees returns true for them.
5138
5139 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
5140
5141         PR debug/41371
5142         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
5143         tail-recurse into canonical node.  Fast-forward over
5144         non-canonical VALUEs.
5145
5146 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
5147
5148         PR boostrap/44470
5149         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
5150         (*addsi_1_zext) <TYPE_LEA>: Likewise.
5151         (add lea splitter): Likewise.
5152         (add_zext lea splitter): Likewise.
5153
5154 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
5155
5156         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
5157
5158 2010-06-10  Jan Hubicka  <jh@suse.cz>
5159
5160         * df-problems.c (df_live_problem_data): Add live_bitmaps.
5161         (df_live_alloc): Initialize problem data and live_osbtacks.
5162         (df_live_finalize): Remove obstack, problem data; do not
5163         clear all bitmaps.
5164         (df_live_top_dump, df_live_bottom_dump): Do not dump old
5165         data when not allocated.
5166         (df_live_verify_solution_start): Do not allocate problem data.
5167         (df_live_verify_solution_end): Check if out is allocated.
5168         (struct df_md_problem_data): New structure.
5169         (df_md_alloc): Allocate problem data.
5170         (df_md_free): Free problem data; do not clear bitmaps.
5171
5172 2010-06-10  Jan Beulich  <jbeulich@novell.com>
5173
5174         PR bootstrap/37304
5175         * configure.ac: Replace $() with ${} when intending to expand
5176         variables rather than invoking commands.
5177         * configure: Re-generate.
5178
5179 2010-06-10  Jan Hubicka  <jh@suse.cz>
5180
5181         PR rtl-optimization/44460
5182         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
5183         TYPE_NEEDS_CONSTRUCTING sanity check.
5184
5185 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
5186
5187         * doc/include/fdl.texi: Move to GFDL version 1.3.
5188
5189         * doc/cpp.texi: Move to GFDL version 1.3.
5190         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
5191         * doc/gccint.texi: Move to GFDL version 1.3.
5192         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
5193         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
5194         * doc/invoke.texi: Move to GFDL version 1.3.
5195
5196 2010-06-09  Jan Hubicka  <jh@suse.cz>
5197
5198         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
5199         Break out from ...
5200         (propagate) ... here; swap the order.
5201
5202 2010-06-09  Jan Hubicka  <jh@suse.cz>
5203
5204         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
5205         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
5206         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
5207         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
5208
5209 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5210
5211         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
5212         Do not the gather memory reference in the outer loop if the step
5213         is not a constant.
5214
5215 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
5216
5217         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
5218         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
5219         8 to 4.  Minor change of the related comments.
5220
5221 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5222
5223         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
5224         the scev analysis when the variable is not used outside the loop
5225         in a close phi node: call compute_overall_effect_of_inner_loop.
5226
5227 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5228
5229         * graphite-sese-to-poly.c (single_pred_cond): Renamed
5230         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
5231         (build_sese_conditions_before): Renamed call to single_pred_cond.
5232         (build_sese_conditions_after): Same.
5233
5234 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
5235
5236         * graphite-poly.h: Fix comments and indentation.
5237         * graphite-sese-to-poly.c: Same.
5238         (build_sese_conditions_before): Compute stmt and gbb only when needed.
5239         * tree-chrec.c: Fix comments and indentation.
5240         (tree-ssa-loop-niter.c): Same.
5241
5242 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
5243
5244         PR rtl-optimization/42461
5245         * dce.c (deletable_insn_p): Return true for const or pure calls again.
5246         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
5247
5248 2010-06-09  Jan Hubicka  <jh@suse.cz>
5249
5250         * bitmap.c (bitmap_and): Walk array forward.
5251         (bitmap_and_compl_into): Likewise.
5252         (bitmap_xor): Likewise.
5253         (bitmap_xor_into):  Likewise.
5254         (bitmap_equal_p): Likewise.
5255         (bitmap_intersect_p): Likewise.
5256         (bitmap_intersect_compl_p): Likewise.
5257         (bitmap_ior_and_into): Likewise.
5258         (bitmap_elt_copy): Likewise.
5259         (bitmap_and_compl): Likewise.
5260         (bitmap_elt_ior): Likewise.
5261
5262 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
5263
5264         * opts-common.c (prune_options): Ensure replacement argv array
5265         is correctly terminated by a NULL entry.
5266
5267 2010-06-09  Jan Hubicka  <jh@suse.cz>
5268
5269         * cgraph.h (varpool_first_static_initializer,
5270         varpool_next_static_initializer): Make checking only when
5271         checking enabled.
5272         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
5273         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
5274         gcc_assert to gcc_checking_assert.
5275         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
5276         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
5277         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
5278         op_iter_init_phiuse, op_iter_init_phidef,
5279         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
5280         gcc_checking_assert.
5281         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
5282         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
5283         partition_is_global, live_on_entry, live_on_exit,
5284         live_merge_and_clear): Likewise.
5285         * system.h (gcc_checking_assert): New macro.
5286         * gimple.h (set_bb_seq): Use gcc_checking_assert.
5287
5288 2010-06-09  Jason Merrill  <jason@redhat.com>
5289
5290         * Makefile.in (TAGS): Collect tags info from c-family.
5291
5292 2010-06-09  Jan Hubicka  <jh@suse.cz>
5293
5294         * gimple.h (gcc_gimple_checking_assert): New macro.
5295         (gimple_set_def_ops, gimple_set_use_ops,
5296         gimple_set_vuse, gimple_set_vdef,
5297         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
5298         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
5299         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
5300         gimple_asm_output_op, gimple_asm_output_op_ptr,
5301         gimple_asm_set_output_op, gimple_asm_clobber_op,
5302         gimple_asm_set_clobber_op, gimple_asm_label_op,
5303         gimple_asm_set_label_op, gimple_try_set_kind,
5304         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
5305         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
5306         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
5307         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
5308         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
5309         gimple_omp_for_set_initial, gimple_omp_for_final,
5310         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
5311         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
5312         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
5313         conditional with ENABLE_GIMPLE_CHECKING.
5314         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
5315
5316 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
5317
5318         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
5319         (get_computation_cost_at): Use it.
5320         (determine_use_iv_cost_condition): Likewise.
5321         (determine_iv_cost): Likewise.
5322
5323 2010-06-09  Richard Guenther  <rguenther@suse.de>
5324
5325         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
5326         replace constants.
5327
5328 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
5329
5330         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
5331
5332 2010-06-09  Martin Jambor  <mjambor@suse.cz>
5333
5334         PR tree-optimization/44423
5335         * tree-sra.c (dump_access): Dump also grp_assignment_read.
5336         (analyze_access_subtree): Pass negative allow_replacements to children
5337         if the current type is scalar.
5338
5339 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5340
5341         PR testsuite/42843
5342         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
5343         * doc/plugins.texi (Plugin license check): Update information
5344         on type of plugin_is_GPL_compatible.
5345         * Makefile.in (PLUGINCC): Define as $(COMPILER).
5346         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
5347
5348 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
5349
5350         * config/arm/arm.c (thumb2_reorg): New function.
5351         (arm_reorg): Call it.
5352         * config/arm/thumb2.md (define_peephole2 for flag clobbering
5353         arithmetic operations): Delete.
5354
5355 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
5356
5357         PR target/44067
5358         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
5359         e500v2 target.
5360
5361 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
5362
5363         PR plugins/44459
5364         * gcc-plugin.h: Encapsulate all declarations in extern "C".
5365
5366 2010-06-08  Jan Hubicka  <jh@suse.cz>
5367
5368         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
5369         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
5370
5371 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
5372
5373         PR tree-optimization/39874
5374         PR middle-end/28685
5375         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
5376         Declare.
5377         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
5378         same_bool_result_p): New.
5379         (and_var_with_comparison, and_var_with_comparison_1,
5380         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
5381         (or_var_with_comparison, or_var_with_comparison_1,
5382         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
5383         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
5384         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
5385         of combine_comparisons.
5386         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
5387
5388 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
5389
5390         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
5391         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
5392         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
5393         pdp11_function_value_regno_p): New functions.
5394         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5395         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5396
5397 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
5398
5399         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
5400         Thumb-2 in the MINUS case.
5401
5402 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5403
5404         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
5405
5406         * doc/gty.texi (GTY Options): Document typed GC allocation and
5407         variable_size GTY option.
5408
5409         * ggc-internal.h: New.
5410
5411         * ggc.h: Update copyright year.
5412         (digit_string): Move to stringpool.c.
5413         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
5414         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
5415         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
5416         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
5417         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
5418         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
5419         (ggc_force_collect, ggc_get_size, ggc_statistics)
5420         (ggc_print_common_statistics): Move to ggc-internal.h.
5421         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
5422         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
5423         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
5424         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
5425         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
5426         (ggc_alloc_zone_pass_stat): Remove.
5427         (ggc_internal_alloc_stat, ggc_internal_alloc)
5428         (ggc_internal_cleared_alloc_stat): New.
5429         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
5430         (ggc_internal_vec_alloc_stat)
5431         (ggc_internal_cleared_vec_alloc_stat)
5432         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
5433         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
5434         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
5435         (ggc_cleared_alloc_ptr_array_two_args): New.
5436         (htab_create_ggc, splay_tree_new_ggc): Redefine.
5437         (ggc_splay_alloc): Change the type of the first argument to
5438         enum gt_types_enum.
5439         (ggc_alloc_string): Make macro.
5440         (ggc_alloc_string_stat): New.
5441         (ggc_strdup): Redefine.
5442         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
5443         (ggc_alloc_rtvec_sized): New.
5444         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
5445         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
5446         (ggc_internal_cleared_alloc_zone_stat)
5447         (ggc_internal_zone_alloc_stat)
5448         (ggc_internal_zone_cleared_alloc_stat)
5449         (ggc_internal_zone_vec_alloc_stat)
5450         (ggc_alloc_zone_rtx_def_stat)
5451         (ggc_alloc_zone_tree_node_stat)
5452         (ggc_alloc_zone_cleared_tree_node_stat)
5453         (ggc_alloc_cleared_gimple_statement_d_stat): New.
5454
5455         * ggc-common.c: Include ggc-internal.h.
5456         (ggc_internal_cleared_alloc_stat): Rename from
5457         ggc_alloc_cleared_stat.
5458         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
5459         (ggc_calloc): Remove.
5460         (ggc_cleared_alloc_htab_ignore_args): New.
5461         (ggc_cleared_alloc_ptr_array_two_args): New.
5462         (ggc_splay_alloc): Add obj_type parameter.
5463         (init_ggc_heuristics): Formatting fixes.
5464
5465         * ggc-none.c: Update copyright year.
5466         (ggc_alloc_stat): Rename to ggc_alloc_stat.
5467         (ggc_alloc_cleared_stat): Rename to
5468         ggc_internal_cleared_alloc_stat.
5469         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5470
5471         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
5472         Remove references to ggc_alloc in comments.
5473         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
5474         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
5475         (new_ggc_zone, destroy_ggc_zone): Remove.
5476         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
5477
5478         * ggc-zone.c: Include ggc-internal.h.  Remove references to
5479         ggc_alloc in comments.
5480         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
5481         (ggc_internal_alloc_zone_pass_stat): New.
5482         (ggc_internal_cleared_alloc_zone_stat): New.
5483         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
5484         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
5485         (new_ggc_zone, destroy_ggc_zone): Remove.
5486
5487         * stringpool.c: Update copyright year.  Include ggc-internal.h
5488         (digit_vector): Make static.
5489         (digit_string): Moved from ggc.h.
5490         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
5491         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
5492
5493         * Makefile.in (GGC_INTERNAL_H): New.
5494         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
5495         $(GGC_INTERNAL_H) to dependencies.
5496
5497         * gentype.c: Update copyright year.
5498         (walk_type): Accept variable_size GTY option.
5499         (USED_BY_TYPED_GC_P): New macro.
5500         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
5501         whitespace at the end of strings.
5502         (get_type_specifier, variable_size_p): New functions.
5503         (alloc_quantity, alloc_zone): New enums.
5504         (write_typed_alloc_def): New function.
5505         (write_typed_struct_alloc_def): Likewise.
5506         (write_typed_typed_typedef_alloc_def): Likewise.
5507         (write_typed_alloc_defns): Likewise.
5508         (output_typename, write_splay_tree_allocator_def): Likewise.
5509         (write_splay_tree_allocators): Likewise.
5510         (main): Call write_typed_alloc_defns and
5511         write_splay_tree_allocators.
5512
5513         * lto-streamer.h (lto_file_decl_data_ptr): New.
5514
5515         * passes.c (order): Define using cgraph_node_ptr.
5516
5517         * strinpool.c (struct string_pool_data): Declare nested_ptr using
5518         ht_identifier_ptr.
5519
5520         * gimple.h (union gimple_statement_d): Likewise.
5521
5522         * rtl.h (struct rtx_def): Likewise.
5523         (struct rtvec_def): Likewise.
5524
5525         * tree.h (union tree_node): Likewise.
5526
5527         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
5528
5529         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
5530
5531         * tree-scalar-evolution.c (scev_initialize): Likewise.
5532
5533         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
5534
5535         * dwarf2asm.c (dw2_force_const_mem): Likewise.
5536
5537         * omp-low.c (lower_omp_critical): Likewise.
5538
5539         * bitmap.h (struct bitmap_head_def): Update comment to not
5540         reference ggc_alloc.
5541
5542         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
5543
5544         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
5545
5546         * ipa-prop.c (duplicate_ggc_array): Rename to
5547         duplicate_ipa_jump_func_array.  Use typed GC allocation.
5548         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
5549
5550         * gimple.c (gimple_alloc_stat): Use
5551         ggc_alloc_cleared_gimple_statement_d_stat.
5552
5553         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
5554
5555         * tree.c (make_node_stat): Use
5556         ggc_alloc_zone_cleared_tree_node_stat.
5557         (make_tree_vec_stat): Likewise.
5558         (build_vl_exp_stat): Likewise.
5559         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
5560         (make_tree_binfo_stat): Likewise.
5561         (tree_cons_stat): Likewise.
5562
5563         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
5564         (shallow_copy_rtx_stat): Likewise.
5565         (make_node_stat): Likewise.
5566
5567         * lto-symtab.c: Fix comment.
5568
5569         * tree-cfg.c (create_bb): Update comment to not reference
5570         ggc_alloc_cleared.
5571         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
5572
5573         * varpool.c (varpool_node): Use typed GC allocation.
5574         (varpool_extra_name_alias): Likewise.
5575
5576         * varasm.c (emutls_decl): Likewise.
5577         (get_unnamed_section): Likewise.
5578         (get_noswitch_section): Likewise.
5579         (get_section): Likewise.
5580         (get_block_for_section): Likewise.
5581         (build_constant_desc): Likewise.
5582         (create_constant_pool): Likewise.
5583         (force_const_mem): Likewise.
5584
5585         * tree.c (build_vl_exp_stat): Likewise.
5586         (build_real): Likewise.
5587         (build_string): Likewise.
5588         (decl_debug_expr_insert): Likewise.
5589         (decl_value_expr_insert): Likewise.
5590         (type_hash_add): Likewise.
5591         (build_omp_clause): Likewise.
5592
5593         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
5594
5595         * tree-ssa.c (init_tree_ssa): Likewise.
5596
5597         * tree-ssa-structalias.c (heapvar_insert): Likewise.
5598
5599         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
5600
5601         * tree-ssa-loop-niter.c (record_estimate): Likewise.
5602
5603         * tree-ssa-alias.c (get_ptr_info): Likewise.
5604
5605         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
5606
5607         * tree-phinodes.c (allocate_phi_node): Likewise.
5608
5609         * tree-iterator.c (tsi_link_before): Likewise.
5610         (tsi_link_after): Likewise.
5611
5612         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
5613
5614         * tree-dfa.c (create_var_ann): Likewise.
5615
5616         * tree-cfg.c (create_bb): Likewise.
5617
5618         * toplev.c (alloc_for_identifier_to_locale): Likewise.
5619         (general_init): Likewise.
5620
5621         * stringpool.c (stringpool_ggc_alloc): Likewise.
5622         (gt_pch_save_stringpool): Likewise.
5623
5624         * sese.c (if_region_set_false_region): Likewise.
5625
5626         * passes.c (do_per_function_toporder): Likewise.
5627
5628         * optabs.c (set_optab_libfunc): Likewise.
5629         (set_conv_libfunc): Likewise.
5630
5631         * lto-symtab.c (lto_symtab_register_decl): Likewise.
5632
5633         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
5634         (input_eh_region): Likewise.
5635         (input_eh_lp): Likewise.
5636         (make_new_block): Likewise.
5637         (unpack_ts_real_cst_value_fields): Likewise.
5638
5639         * lto-section-in.c (lto_new_in_decl_state): Likewise.
5640
5641         * lto-cgraph.c (input_node_opt_summary): Likewise.
5642
5643         * loop-init.c (loop_optimizer_init): Likewise.
5644
5645         * lambda.h (lambda_vector_new): Likewise.
5646
5647         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
5648
5649         * ira.c (update_equiv_regs): Likewise.
5650
5651         * ipa.c (cgraph_node_set_new): Likewise.
5652         (cgraph_node_set_add): Likewise.
5653         (varpool_node_set_new): Likewise.
5654         (varpool_node_set_add): Likewise.
5655
5656         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
5657         (duplicate_ipa_jump_func_array): Likewise.
5658         (ipa_read_node_info): Likewise.
5659
5660         * ipa-cp.c (ipcp_create_replace_map): Likewise.
5661
5662         * integrate.c (get_hard_reg_initial_val): Likewise.
5663
5664         * gimple.c (gimple_alloc_stat): Likewise.
5665         (gimple_build_omp_for): Likewise.
5666         (gimple_seq_alloc): Likewise.
5667         (gimple_copy): Likewise.
5668
5669         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
5670         (gsi_insert_after_without_update): Likewise.
5671
5672         * function.c (add_frame_space): Likewise.
5673         (insert_temp_slot_address): Likewise.
5674         (assign_stack_temp_for_type): Likewise.
5675         (allocate_struct_function): Likewise.
5676         (types_used_by_var_decl_insert): Likewise.
5677
5678         * except.c (init_eh_for_function): Likewise.
5679         (gen_eh_region): Likewise.
5680         (gen_eh_region_catch): Likewise.
5681         (gen_eh_landing_pad): Likewise.
5682         (add_call_site): Likewise.
5683
5684         * emit-rtl.c (get_mem_attrs): Likewise.
5685         (get_reg_attrs): Likewise.
5686         (start_sequence): Likewise.
5687         (init_emit): Likewise.
5688
5689         * dwarf2out.c (new_cfi): Likewise.
5690         (queue_reg_save): Likewise.
5691         (dwarf2out_frame_init): Likewise.
5692         (new_loc_descr): Likewise.
5693         (find_AT_string): Likewise.
5694         (new_die): Likewise.
5695         (add_var_loc_to_decl): Likewise.
5696         (clone_die): Likewise.
5697         (clone_as_declaration): Likewise.
5698         (break_out_comdat_types): Likewise.
5699         (new_loc_list): Likewise.
5700         (loc_descriptor): Likewise.
5701         (add_loc_descr_to_each): Likewise.
5702         (add_const_value_attribute): Likewise.
5703         (tree_add_const_value_attribute): Likewise.
5704         (add_comp_dir_attribute): Likewise.
5705         (add_name_and_src_coords_attributes): Likewise.
5706         (lookup_filename): Likewise.
5707         (store_vcall_insn): Likewise.
5708         (dwarf2out_init): Likewise.
5709
5710         * dbxout.c (dbxout_init): Likewise.
5711
5712         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
5713
5714         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
5715
5716         * config/score/score7.c (score7_output_external): Likewise.
5717
5718         * config/score/score3.c (score3_output_external): Likewise.
5719
5720         * config/s390/s390.c (s390_init_machine_status): Likewise.
5721
5722         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
5723         (rs6000_init_machine_status): Likewise.
5724         (output_toc): Likewise.
5725
5726         * config/pa/pa.c (pa_init_machine_status): Likewise.
5727         (get_deferred_plabel): Likewise.
5728
5729         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
5730
5731         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
5732
5733         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
5734
5735         * config/mep/mep.c (mep_init_machine_status): Likewise.
5736         (mep_note_pragma_flag): Likewise.
5737
5738         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
5739
5740         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
5741
5742         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
5743
5744         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
5745         (i386_pe_maybe_record_exported_symbol): Likewise.
5746
5747         * config/i386/i386.c (get_dllimport_decl): Likewise.
5748         (ix86_init_machine_status): Likewise.
5749         (assign_386_stack_local): Likewise.
5750
5751         * config/frv/frv.c (frv_init_machine_status): Likewise.
5752
5753         * config/darwin.c (machopic_indirection_name): Likewise.
5754
5755         * config/cris/cris.c (cris_init_machine_status): Likewise.
5756
5757         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
5758
5759         * config/avr/avr.c (avr_init_machine_status): Likewise.
5760
5761         * config/arm/arm.c (arm_init_machine_status): Likewise.
5762
5763         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
5764         (alpha_need_linkage): Likewise.
5765         (alpha_use_linkage): Likewise.
5766
5767         * cgraph.c (cgraph_allocate_node): Likewise.
5768         (cgraph_create_edge_1): Likewise.
5769         (cgraph_create_indirect_edge): Likewise.
5770         (cgraph_add_asm_node): Likewise.
5771
5772         * cfgrtl.c (init_rtl_bb_info): Likewise.
5773
5774         * cfgloop.c (alloc_loop): Likewise.
5775         (rescan_loop_exit): Likewise.
5776
5777         * cfg.c (init_flow): Likewise.
5778         (alloc_block): Likewise.
5779         (unchecked_make_edge): Likewise.
5780
5781         * c-parser.c (c_parse_init): Likewise.
5782         (c_parse_file): Likewise.
5783
5784         * c-decl.c (bind): Likewise.
5785         (record_inline_static): Likewise.
5786         (push_scope): Likewise.
5787         (make_label): Likewise.
5788         (lookup_label_for_goto): Likewise.
5789         (finish_struct): Likewise.
5790         (finish_enum): Likewise.
5791         (c_push_function_context): Likewise.
5792
5793         * bitmap.c (bitmap_element_allocate): Likewise.
5794         (bitmap_gc_alloc_stat): Likewise.
5795
5796         * alias.c (record_alias_subset): Likewise.
5797         (init_alias_analysis): Likewise.
5798
5799 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
5800
5801         * fold-const.c (fold_comparison): Remove redundant parenthesis.
5802         * tree-inline.c (expand_call_inline): Pass translated return value of
5803         cgraph_inline_failed_string to diagnostic function.
5804
5805 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
5806             Shujing Zhao  <pearly.zhao@oracle.com>
5807
5808         PR c/37724
5809         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
5810         implicit bad conversions is initialization.
5811         (error_init): Use gmsgid instead of msgid for argument name and change
5812         the call for error.
5813         (pedwarn_init): Use gmsgid instead of msgid for argument name and
5814         change the call for pedwarn.
5815         (warning_init): Use gmsgid instead of msgid for argument name and
5816         change the call for warning.
5817
5818 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
5819
5820         * config/mips/mips-protos.h (mips_print_operand): Delete.
5821         (mips_print_operand_address): Delete.
5822         * config/mips/mips.h (mips_print_operand_punct): Delete.
5823         (PRINT_OPERAND): Delete.
5824         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5825         (PRINT_OPERAND_ADDRESS): Delete.
5826         * config/mips/mips.c (mips_print_operand_punct): Make static.
5827         (mips_print_operand_address): Make static.
5828         (mips_print_operand): Make static.  Call
5829         mips_print_operand_punct_valid_p.
5830         (mips_print_operand_punct_valid_p): New function.
5831         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5832         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5833
5834 2010-06-07  Jan Hubicka  <jh@suse.cz>
5835
5836         PR middle-end/44454
5837         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
5838         are allocated.
5839
5840 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
5841
5842         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
5843         name of RECORD.
5844
5845 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5846
5847         * doc/sourcebuild.texi (Effective-Target Keywords, Other
5848         attributes): Document gas.
5849
5850 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
5851
5852         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
5853         <TYPE_LEA>: Split instruction.
5854         <default>: Remove alternative 2 handling.
5855         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
5856         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
5857         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
5858
5859         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
5860         (ashift_zext lea splitter): Use DImode for multiplication.
5861
5862         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
5863         to generate addition.
5864
5865 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
5866
5867         * common.opt (fira-verbose): Use Var.
5868         (fpcc-struct-return): Use Init instead of VarExists.
5869         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
5870         toplev.c.
5871         * flags.h (flag_signed_char, flag_short_enums,
5872         flag_pcc_struct_return, flag_ira_verbose,
5873         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
5874         * toplev.c (flag_detailed_statistics, flag_signed_char,
5875         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
5876         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
5877         * toplev.h (flag_crossjumping, flag_if_conversion,
5878         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
5879         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
5880         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
5881         flag_cprop_registers, time_report, flag_ira_loop_pressure,
5882         flag_ira_coalesce, flag_ira_move_spills,
5883         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
5884
5885 2010-06-07  Jan Hubicka  <jh@suse.cz>
5886
5887         * df-core.c (df_analyze_problem): Do verification after allocation.
5888
5889         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
5890         (df_lr_alloc): Initialize problem data; move bitmaps to
5891         lr_bitmaps obstack.
5892         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
5893         (df_lr_verify_solution_start): Do not initialize problem data;
5894         allocate bitmaps in lr_bitmaps.
5895         (df_lr_verify_solution_end): Do not free problem data.
5896
5897 2010-06-07  Jan Hubicka  <jh@suse.cz>
5898
5899         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
5900         if caller is noreturn.
5901         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
5902         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
5903         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
5904         * ipa-pure-const.c (check_decl): Add IPA parameter.
5905         (state_from_flags): New function.
5906         (better_state, worse_state): New functions.
5907         (check_call): When in IPA mode, do not care about callees.
5908         (check_load, check_store): Update.
5909         (check_ipa_load, check_ipa_store): New.
5910         (check_stmt): When in IPA mode, use IPA checkers.
5911         (analyze_function): Use state_from_flags.
5912         (propagate): Check indirect edges and references.
5913
5914 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
5915
5916         PR rtl-optimization/44404
5917         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
5918         of count_occurrences to see if it's safe to modify mem_insn.
5919
5920 2010-06-07  Richard Guenther  <rguenther@suse.de>
5921
5922         * gimplify.c (gimplify_cleanup_point_expr): For empty body
5923         and EH-only cleanup drop the cleanup instead of inserting it
5924         unconditionally.
5925
5926 2010-06-07  Ira Rosen  <irar@il.ibm.com>
5927
5928         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
5929         documentation.
5930         * targhooks.c (default_builtin_vectorization_cost): New function.
5931         * targhooks.h (default_builtin_vectorization_cost): Declare.
5932         * target.h (enum vect_cost_for_stmt): Define.
5933         (builtin_vectorization_cost): Change argument and comment.
5934         * tree-vectorizer.h: Remove cost model macros.
5935         * tree-vect-loop.c: Include target.h.
5936         (vect_get_cost): New function.
5937         (vect_estimate_min_profitable_iters): Replace cost model macros with
5938         calls to vect_get_cost.
5939         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
5940         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
5941         default implementation.
5942         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
5943         calls to target hook builtin_vectorization_cost.
5944         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
5945         Likewise.
5946         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
5947         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
5948         implementation to return costs.
5949         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
5950         * config/spu/spu.h: Remove vectorizer cost model macros.
5951         * config/i386/i386.h: Likewise.
5952         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
5953         a call to target hook builtin_vectorization_cost.
5954
5955 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
5956
5957         PR target/44319
5958         * config/i386/i386.c (override_options): Turn zee pass on for level 2
5959         and above and defer till target is known.
5960         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
5961         turn off otherwise.
5962
5963 2010-05-25  Jan Hubicka  <jh@suse.cz>
5964
5965         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
5966         (df_compact_blocks): Likewise.
5967         * df.h (struct df): Turn hardware_regs_used,
5968         regular_block_artificial_uses, eh_block_artificial_uses,
5969         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
5970         bitmap_head.
5971         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
5972         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
5973         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
5974         df_scan_blocks, df_insn_delete, df_insn_rescan,
5975         df_insn_rescan_debug_internal, df_insn_rescan_all,
5976         df_process_deferred_rescans, df_process_deferred_rescans,
5977         df_notes_rescan, df_get_call_refs, df_get_call_refs,
5978         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
5979         df_record_entry_block_defs, df_record_exit_block_uses,
5980         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
5981         df_scan_verify): Update.
5982
5983 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
5984
5985         PR c++/44188
5986         * c-common.c (is_typedef_decl): Move this definition ...
5987         * tree.c (is_typedef_decl): ... here.
5988         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
5989         * c-common.h (is_typedef_decl): Move this declaration ...
5990         * tree.h (is_typedef_decl): ... here.
5991         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
5992         * dwarf2out.c (is_naming_typedef_decl): New function.
5993         (gen_tagged_type_die): Split out of ...
5994         (gen_type_die_with_usage): ... this function. When an anonymous
5995         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
5996         is emitted for the typedef.
5997         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
5998         anonymous tagged types.
5999
6000 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6001
6002         PR c/20000
6003         * c-decl.c (grokdeclarator): Delete warning.
6004
6005 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
6006
6007         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
6008         newly built CALL_EXPR.
6009         * tree-profile.c (tree_profiling): Don't profile functions produced
6010         for built-in stuff.
6011
6012 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
6013
6014         PR bootstrap/44427
6015         PR bootstrap/44428
6016         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
6017         endianness-independent.
6018
6019 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
6020
6021         * c-common.c: Move to c-family/.
6022         * c-common.def: Likewise.
6023         * c-common.h: Likewise.
6024         * c-cppbuiltin.c: Likewise.
6025         * c-dump.c: Likewise.
6026         * c-format.c: Likewise.
6027         * c-format.h : Likewise.
6028         * c-gimplify.c: Likewise.
6029         * c-lex.c: Likewise.
6030         * c-omp.c: Likewise.
6031         * c.opt: Likewise.
6032         * c-opts.c: Likewise.
6033         * c-pch.c: Likewise.
6034         * c-ppoutput.c: Likewise.
6035         * c-pragma.c: Likewise.
6036         * c-pragma.h: Likewise.
6037         * c-pretty-print.c: Likewise.
6038         * c-pretty-print.h: Likewise.
6039         * c-semantics.c: Likewise.
6040         * stub-objc.c: Likewise.
6041
6042         * gengtype.c (get_file_langdir): Special-case files in c-family/.
6043         (get_output_file_with_visibility): Fix name for c-common.h.
6044         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
6045
6046         * c-tree.h: Update include path for moved files.
6047         * c-lang.c: Likewise.
6048         * c-lang.h: Likewise.
6049         * c-parser.c: Likewise.
6050         * c-convert.c: Likewise.
6051         * c-decl.c: Likewise.
6052         * c-objc-common.c: Likewise.
6053         * configure.ac: Make sure c-family/ exists in the build directory.
6054         * configure: Regenerate.
6055         * Makefile.in: Update paths for moved files.  Regroup files per
6056         location and update dependencies.  Move generated_files down after
6057         ALL_GTFILES_H.
6058
6059         * config/spu/spu-c.c: Update paths for moved files.
6060         * config/mep/mep-pragma.c: Likewise.
6061         * config/darwin-c.c: Likewise.
6062         * config/i386/msformat-c.c: Likewise.
6063         * config/i386/i386-c.c: Likewise.
6064         * config/avr/avr-c.c: Likewise.
6065         * config/sol2-c.c: Likewise.
6066         * config/ia64/ia64-c.c: Likewise.
6067         * config/rs6000/rs6000-c.c: Likewise.
6068         * config/arm/arm.c: Likewise.
6069         * config/arm/arm-c.c: Likewise.
6070         * config/h8300/h8300.c: Likewise.
6071         * config/v850/v850-c.c: Likewise.
6072
6073         * config/t-darwin: Fix dependencies for moved files.
6074         * config/t-sol2: Fix dependencies for moved files.
6075         * config/mep/t-mep: Fix dependencies for moved files.
6076         * config/ia64/t-ia64: Fix dependencies for moved files.
6077         * config/rs6000/t-rs6000: Fix dependencies for moved files.
6078         * config/v850/t-v850: Fix dependencies for moved files.
6079         * config/v850/t-v850e: Fix dependencies for moved files.
6080
6081         * config/m32c/m32c-pragma.c
6082
6083         * po/exgettext: Look in c-family/ also.
6084
6085 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
6086
6087         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
6088         (mark_control_dependent_edges_necessary): Call it instead of marking
6089         the last statement manually.
6090         (propagate_necessity): Likewise.
6091
6092 2010-06-05  Jan Hubicka  <jh@suse.cz>
6093
6094         * basic-block.h (compute_dominance_frontiers): Updated.
6095         (compute_idf): Likewise.
6096
6097         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
6098         for dominance frontiers.
6099         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
6100         (insert_updated_phi_nodes_for): Likewise.
6101         (update_ssa): Likewise.
6102         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6103         (compute_dominance_frontiers): Likewise.
6104         (compute_idf): Likewise.
6105         * df-problems.c (df_md_local_compute): Likewise.
6106
6107 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
6108
6109         * target.h (struct gcc_target): Add memory_move_cost field.
6110         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
6111         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
6112         * targhooks.c (default_memory_move_cost): New function.
6113         * targhooks.h (default_memory_move_cost): Declare function.
6114         * reload.h (memory_move_cost): Declare.
6115         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6116         * reginfo.c (memory_move_cost): New function.
6117         (memory_move_secondary_cost): Change type of 'in' argument to bool.
6118         * ira.h (ira_memory_move_cost): Update comment.
6119         * ira.c: (ira_memory_move_cost): Update comment.
6120         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
6121         with memory_move_cost.
6122         * postreload.c (reload_cse_simplify_set): (Ditto.).
6123         * reload1.c (choose_reload_regs): (Ditto.).
6124         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
6125         (MEMORY_MOVE_COST):  Revise documentation.
6126
6127         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
6128         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
6129         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
6130         type of 'in' argument to bool.
6131         (TARGET_MEMORY_MOVE_COST): Define.
6132
6133 2010-06-05  Jan Hubicka  <jh@suse.cz>
6134
6135         * ipa-pure-const.c (propagate): Fix typo in handling of functions
6136         that cannot return.  Be more careful when merging the results with
6137         previously known ones.
6138
6139 2010-06-05  Matthias Klose  <doko@ubuntu.com>
6140
6141         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
6142         function to add the -iplugindir option.
6143         (find_plugindir_spec_function): Add new declaration and function.
6144         (static_spec_func): Use it for "find-plugindir".
6145
6146 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
6147
6148         PR c++/44361
6149         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
6150         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
6151         statement expression.
6152
6153 2010-06-05  Jan Hubicka  <jh@suse.cz>
6154
6155         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
6156         (df_rd_problem_data): Convert sparse_invalidated_by_call,
6157         dense_invalidated_by_call to bitmap head.
6158         (df_rd_alloc, df_rd_bb_local_compute_process_def,
6159         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
6160         df_rd_start_dump, df_lr_verify_transfer_functions,
6161         df_live_verify_transfer_functions, df_chain_create_bb,
6162         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
6163         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
6164         df_simulate_one_insn_forwards, df_md_alloc,
6165         df_md_bb_local_compute_process_def,
6166         df_md_bb_local_compute_process_def, df_md_local_compute,
6167         df_md_transfer_function df_md_free): Update.
6168
6169 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
6170
6171         PR c/44322
6172         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
6173         target type for ADDR_EXPR; require no changes to qualifiers except
6174         for function types.
6175         * c-tree.h (c_build_type_variant): Remove.
6176
6177 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6178
6179         * genautomata.c (get_excl_set): Do work per element, not per char.
6180         (check_presence_pattern_sets): Similar.
6181         (check_absence_pattern_sets): Similar.
6182
6183 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
6184
6185         * genautomata.c (curr_state_pass_num): Delete.
6186         (min_issue_delay_pass_states): Delete.
6187         (min_issue_delay): Delete.
6188         (initiate_min_issue_delay_pass_states): Delete.
6189         (output_min_issue_delay_table): Compute min_issue_delay_vect
6190         using a breadth-first search variant.
6191         (output_tables): Don't call initiate_min_issue_delay_pass_states.
6192
6193 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
6194
6195         PR boostrap/44421
6196         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
6197         (df_byte_lr_bb_local_compute): Likewise.
6198
6199 2010-06-03  Jason Merrill  <jason@redhat.com>
6200
6201         Implement noexcept operator (5.3.7)
6202         * c-common.c (c_common_reswords): Add noexcept.
6203         * c-common.h (enum rid): Add RID_NOEXCEPT.
6204
6205 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
6206
6207         * config/darwin-driver.c (darwin_default_min_version): Use
6208         GCC-specific formats in diagnostics.
6209         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
6210         diagnostics.
6211         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
6212         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
6213         eval_spec_function, handle_braces, process_brace_body, main,
6214         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
6215         getenv_spec_function, compare_version_strings,
6216         version_compare_spec_function): Use GCC-specific formats in
6217         diagnostics.
6218
6219 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6220
6221         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
6222         that operand 0 and operand 1 are equal.
6223         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
6224         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
6225         and operand 1 are equal.
6226         <default>: Ditto.  Remove ??? comment.
6227         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
6228         and operand 1 are equal.
6229         <default>: Ditto.  Remove ??? comment.
6230         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
6231         are equal.
6232         (*add<mode>_4) <default>: Ditto.
6233         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
6234
6235 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
6236
6237         * config/i386/i386-protos.h (ix86_print_operand): Declare.
6238         * config/i386/i386.c (ix86_print_operand): Make non-static.
6239         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
6240         * output.h (output_operand): Declare.
6241         * final.c (output_operand): Make non-static.
6242
6243 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
6244
6245         PR rtl-optimization/44013
6246         * sched-deps.c (add_dependence_list_and_free): Don't free lists
6247         when processing debug insns.
6248
6249         PR debug/41371
6250         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
6251         recursing.  Check that recursion is bounded.  Rename inner var
6252         to avoid hiding incoming argument.
6253
6254 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6255
6256         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
6257         operands[2] == 255.
6258         (*addqi_3): Ditto.
6259         (*addqi_4): Ditto.
6260         (*addqi_5): Ditto.
6261         (*addqi_ext_1_rex64): Ditto.
6262         (*addqi_ext_1): Ditto.
6263
6264         (*addqi_4): Check for incdec_operand in QImode.
6265
6266         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
6267         using SWI mode iterator.
6268         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
6269         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
6270         mode iterator.
6271         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
6272         using SWI mode iterator.
6273
6274 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6275
6276         PR c/25880
6277         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
6278         * c-format.c (gcc_diag_flag_specs): Add hash.
6279         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
6280         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
6281         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
6282         pp_c_cv_qualifiers. Handle qualifiers spelling here.
6283         (pp_c_type_qualifier_list): Call the function above.
6284         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
6285         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
6286         (WARN_FOR_QUALIFIERS): New macro.
6287         (convert_for_assignment): Use it.
6288
6289 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
6290
6291         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
6292
6293 2010-06-04  Jan Hubicka  <jh@suse.cz>
6294
6295         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
6296         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
6297         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
6298         DF_BYTE_LR_OUT): Update for embedded bitmaps.
6299         * fwprop.c (single_def_use_enter_block): Likewise.
6300         * ddg.c (create_ddg_dep_from_intra_loop_link,
6301         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
6302         * loop-iv.c (latch_dominating_def): Likewise.
6303         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
6304         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
6305         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
6306         df_rd_transfer_function, df_rd_top_dump,
6307         df_rd_bottom_dump): Update.
6308         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
6309         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
6310         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
6311         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
6312         df_lr_verify_solution_start, df_lr_verify_solution_end,
6313         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
6314         df_live_free_bb_info, df_live_alloc, df_live_reset,
6315         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
6316         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
6317         df_live_verify_solution_start, df_live_verify_solution_end,
6318         df_live_verify_transfer_functions, df_chain_create_bb,
6319         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
6320         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6321         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
6322         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
6323         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
6324         df_byte_lr_transfer_function, df_byte_lr_top_dump,
6325         df_byte_lr_bottom_dump, df_create_unused_note,
6326         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
6327         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
6328         df_md_transfer_function, df_md_init, df_md_confluence_0,
6329         df_md_confluence_n,
6330         df_md_top_dump, df_md_bottom_dump): Update.
6331         (struct df_lr_problem_data): Embedd bitmap headers.
6332
6333 2010-06-04  Jan Hubicka  <jh@suse.cz>
6334
6335         * dce.c (dce_process_block): Do not re-scan already marked
6336         instructions.
6337
6338 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
6339
6340         PR rtl-optimization/39871
6341         PR rtl-optimization/40615
6342         PR rtl-optimization/42500
6343         PR rtl-optimization/42502
6344         * ira.c (init_reg_equiv_memory_loc: New function.
6345         (ira): Call it twice.
6346         * reload.h (calculate_elim_costs_all_insns): Declare.
6347         * ira-costs.c: Include "reload.h".
6348         (regno_equiv_gains): New static variable.
6349         (init_costs): Allocate it.
6350         (finish_costs): Free it.
6351         (ira_costs): Call calculate_elim_costs_all_insns.
6352         (find_costs_and_classes): Take estimated elimination costs
6353         into account.
6354         (ira_adjust_equiv_reg_cost): New function.
6355         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
6356         * reload1.c (init_eliminable_invariants, free_reg_equiv,
6357         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
6358         (elim_bb): New static variable.
6359         (reload): Move code out of here into init_eliminable_invariants and
6360         free_reg_equiv.  Call them.
6361         (calculate_elim_costs_all_insns): New function.
6362         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
6363         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
6364         but call note_reg_elim_costly if we turned a valid memory address
6365         into an invalid one.
6366         * Makefile.in (ira-costs.o): Depend on reload.h.
6367
6368 2010-06-04  Julian Brown  <julian@codesourcery.com>
6369
6370         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
6371         for pool ranges.
6372
6373 2010-06-04  Richard Guenther  <rguenther@suse.de>
6374
6375         PR lto/41584
6376         * cgraph.h (struct varpool_node): Add lto_file_data field.
6377         * lto-cgraph.c (input_varpool_node): Initialize it.
6378
6379 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
6380
6381         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
6382         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
6383         predicate in "type" attribute calculation.
6384         (*addsi_1_zext): Ditto.
6385         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
6386         (*addsi_2_zext): Ditto.
6387         (*add<mode>_3): Ditto.
6388         (*addsi_3_zext): Ditto.
6389         (*add<mode>_5): Ditto.
6390
6391 2010-06-03  Jan Hubicka  <jh@suse.cz>
6392
6393         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
6394         of bitmap_bit_p.
6395         * cfganal.c (compute_dominance_frontiers_1): Likewise.
6396
6397 2010-06-03  Jan Hubicka  <jh@suse.cz>
6398
6399         * df-problems.c (df_create_unused_note, df_note_bb_compute):
6400         micro-optimize the checks when to add new note.
6401
6402 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
6403
6404         * final.c (output_asm_insn): Call
6405         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
6406         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
6407         (output_address): Call targetm.asm_out.print_operand_address.
6408         Update comments.
6409         * target.h (struct gcc_target): Add print_operand,
6410         print_operand_address, and print_operand_punct_valid_p fields.
6411         * targhooks.h (default_print_operand): Declare.
6412         (default_print_operand_address): Declare.
6413         (default_print_operand_punct_valid_p): Declare.
6414         * targhooks.c (default_print_operand): Define.
6415         (default_print_operand_address): Define.
6416         (default_print_operand_punct_valid_p): Define.
6417         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
6418         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
6419         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
6420         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
6421         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
6422         * vmsdbgout.c (addr_const_to_string): Update comment.
6423         * config/i386/i386.c (print_operand): Rename to...
6424         (ix86_print_operand): ...this.  Make static.
6425         (print_operand_address): Rename to...
6426         (ix86_print_operand_address): ...this.  Make static.  Call
6427         ix86_print_operand instead of PRINT_OPERAND.
6428         (ix86_print_operand_punct_valid_p): New function.
6429         (TARGET_PRINT_OPERAND): Define.
6430         (TARGET_PRINT_OPERAND_ADDRESS): Define.
6431         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
6432         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
6433         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
6434         (PRINT_OPERAND): Delete.
6435         (PRINT_OPERAND_ADDRESS): Delete.
6436         * config/i386/i386-protos.h (print_operand): Delete prototype.
6437         (print_operand_address): Delete prototype.
6438
6439 2010-06-03  Richard Guenther  <rguenther@suse.de>
6440
6441         PR tree-optimization/44403
6442         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
6443         Preserve pointer qualifiers.
6444         (vect_create_data_ref_ptr): Likewise.
6445
6446 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
6447
6448         PR c++/44294
6449         * defaults.h (MAX_FIXED_MODE_SIZE): New.
6450
6451         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
6452
6453 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
6454
6455         PR debug/44375
6456         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
6457         return false if merging the bbs would lead to goto_locus
6458         location being lost from the IL.
6459
6460 2010-06-03  Jan Hubicka  <jh@suse.cz>
6461             Jakub Jelinek  <jakub@redhat.com>
6462
6463         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
6464         set->regs[i] is NULL or has just one entry.
6465
6466 2010-06-03  Jan Hubicka  <jh@suse.cz>
6467
6468         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
6469         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
6470
6471 2010-06-03  Paul Brook  <paul@codesourcery.com>
6472
6473         * config/arm/arm.c (FL_TUNE): Define.
6474         (arm_default_cpu, arm_cpu_select): Remove.
6475         (all_cores): Populate core field.
6476         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
6477         (arm_find_cpu): New function.
6478         (arm_handle_option): Lookup cpu/architecture names.
6479         (arm_override_options): Cleanup mcpu/march/mtune handling.
6480         (arm_file_start): Ditto.
6481
6482 2010-06-03  Alan Modra  <amodra@gmail.com>
6483
6484         PR target/44169
6485         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
6486         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
6487         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
6488         (rs6000_emit_load_toc_table): Likewise.
6489
6490 2010-06-02  Jan Hubicka  <jh@suse.cz>
6491
6492         * passes.c (init_optimization_passes): Put ipa reference
6493         after ipa pure-const.
6494
6495 2010-06-02  Jan Hubicka  <jh@suse.cz>
6496
6497         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
6498         calls_read_all and calls_write_all.
6499         (get_reference_optimization_summary): Fix formatting.
6500         (is_proper_for_analysis): Check that decl is not readonly.
6501         (propagate_bits): Check CONST/PURE/noreturn flags.
6502         (ipa_init): Move all_module_statics to optimization_summary_obstack.
6503         (analyze_function): Ignore indirect edges.
6504         (copy_global_bitmap): For all module statics, do nothing.
6505         (generate_summary): Do not print calls_read_all/calls_write_all.
6506         (read_write_all_from_decl): Take node as argument; check
6507         cgraph_node_cannot_return.
6508         (propagate): Reorganize read_all/write_all computation;
6509         check indirect edges; check ecf flags; use all_module_statics
6510         in the results; do not free all_module_statics.
6511         (stream_out_bitmap): Handle all_module_statics.
6512         (ipa_reference_write_optimization_summary): Likewise; use
6513         varpool/cgraph encoders to get boundaries.
6514         (ipa_reference_read_optimization_summary): Read in all_module_statics;
6515         use it when possible.
6516
6517 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6518
6519         PR target/44218
6520         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
6521         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
6522
6523         * doc/extend.texi (powerpc builtins): Document vec_recip,
6524         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
6525
6526         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
6527         (rs6000_emit_swrsqrt): Ditto.
6528         (rs6000_emit_swdivsf): Delete.
6529         (rs6000_emit_swdivdf): Ditto.
6530         (rs6000_emit_swrsqrtsf): Ditto.
6531
6532         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
6533         describe the reciprocal estimate support for each type.
6534         (recip_options): Map -mrecip=<opt> into option bits.
6535         (gen_2arg_fn_t): New typedef for binary rtx gen function.
6536         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
6537         reciprocal estimate instructions.
6538         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
6539         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
6540         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
6541         cost information if -mdebug=cost or -mdebug=reg.
6542         (rs6000_override_options): Set -mrecip-precision for power6, and
6543         power7 machines.  If -mvsx or -mdfp, enable various options that
6544         came in previous instruction set ISAs, unless the option was
6545         explicitly disabled by the command line option.  Parse
6546         -mrecip=<opt> options.
6547         (rs6000_builtin_vectorized_function): Add support for vectorizing
6548         the reciprocal estimate builtins and expansions.
6549         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
6550         (bdesc_2arg): Add reciprocal estimate builtins.
6551         (bdesc_1arg): Add reciprocal square root estimate builtins.
6552         (rs6000_expand_builtin): Rewrite to use a switch statement,
6553         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
6554         (rs6000_init_builtins): Create declarations for reciprocal
6555         estimate builtins.
6556         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
6557         sized, prefer traditional floating point registers, if integer
6558         vector types, prefer altivec registers.  Don't actually look at
6559         the memory address any more.
6560         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
6561         builtins.
6562         (rs6000_load_constant_and_splat): New helper function to load up
6563         the constant for reciprocal estimate instructions.
6564         (rs6000_emit_madd): New helper function for generating
6565         multiply/add type instructions, based on the current switches.
6566         (rs6000_emit_msub): Ditto.
6567         (rs6000_emit_mnsub): Ditto.
6568         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
6569         replace a divide with a reciprocal estimate and fixup, adding
6570         support for machines with high precision and vectors.
6571         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
6572         low precision machines.
6573         (rs6000_emit_swdiv): New common function to be called to replace a
6574         division with reciprocal estimate and fixup.
6575         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
6576         for double and vector types.  Add support for high precision machines.
6577
6578         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
6579         the reciprocal estimate instructions can be generated.
6580         (TARGET_FRE): Ditto.
6581         (TARGET_FRSQRTES): Ditto.
6582         (TARGET_FRSQRTE): Ditto.
6583         (RS6000_RECIP_*): New macros for reciprocal estimate support.
6584
6585         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
6586         square root estimate on vectors.
6587         (re<mode>2): New insn for reciprocal division estimate on vectors.
6588
6589         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
6590         New builtin.
6591         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
6592         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
6593         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
6594         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
6595         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
6596         (RS6000_BUILTIN_RSQRT): Ditto.
6597         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
6598         floating point builtin.
6599
6600         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
6601         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
6602         __RECIP_PRECISION__ based on the command line switches.
6603         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
6604
6605         * config/rs6000/rs6000.opt (-mrecip): Document add support for
6606         replacing division instructions with reciprocal estimate and fixup.
6607         (-mrecip=<opt>): New option.
6608         (-mrecip-precision): Ditto.
6609
6610         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
6611         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
6612         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
6613         precision scalar.
6614
6615         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
6616         (UNSPEC_VREFP): Ditto.
6617         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
6618         conterparts with regard to support of -mno-fused-madd and -ffast-math.
6619         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
6620         reciprocal estimate instructions to be generated.
6621         (altivec_vrefp): Ditto.
6622
6623         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
6624         estimate support.
6625         (rreg): New mode attribute for reciprocal estimate support.
6626         (recip<mode>3): New insn for division using reciprocal estimate
6627         and fixup builtins.
6628         (divide define_split): New define_split to convert floating point
6629         division to use reciprocal estimate if the user used the
6630         appropriate options and the split is run when we can add new
6631         pseudo registers for the fixup.
6632         (rsqrt<mode>2): New insn for reciprocal square root support.
6633         (recipsf3): Move into recip<mode>3.
6634         (recipdf3): Ditto.
6635         (fres): Use TARGET_FRES.
6636         (rsqrtsf2): Move into rsqrt<mode>2.
6637         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
6638         (copysignsf3): Add support for VSX.
6639         (fred): Use TARGET_FRE.
6640         (fred_fpr): Ditto.
6641         (rsqrtdf_internal1): New function for frsqrte instruciton.
6642
6643         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
6644         (vec_rsqrt): Ditto.
6645
6646 2010-06-03  Richard Guenther  <rguenther@suse.de>
6647
6648         PR middle-end/44291
6649         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
6650         (set_user_assembler_libfunc): Likewise.
6651
6652 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6653
6654         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
6655         defaults.h.
6656         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
6657         to defaults.h
6658         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
6659         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
6660         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
6661         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
6662         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
6663         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
6664         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
6665         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
6666         * defaults.h: Updated for above mentioned changes.
6667
6668 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
6669
6670         * c-common.c: Remove header include of tm_p.h.
6671         * Makefile.in (c-common.o): Remove TM_P_H dependency.
6672
6673 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
6674
6675         * tree.h (struct tree_decl_map): New type.
6676         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
6677         (tree_decl_map_hash): New prototype.
6678         (debug_expr_for_decl, value_expr_for_decl): Change into
6679         tree_decl_map hashtab from tree_map.
6680         (init_ttree): Adjust initialization.
6681         (tree_decl_map_hash): New function.
6682         (decl_debug_expr_lookup, decl_debug_expr_insert,
6683         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
6684
6685 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6686
6687         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
6688         linker emulations.
6689         * configure: Regenerate.
6690         * config.in: Regenerate.
6691
6692         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
6693         (X86_64_EMULATION): Define.
6694         (TARGET_LD_EMULATION): Use them.
6695
6696         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
6697         (SPARC64_EMULATION): Define.
6698         (LINK_ARCH_SPEC): Use them.
6699
6700 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6701
6702         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
6703         smallest_mode_for_size for computing the precision types of new
6704         graphite IVs.  Do not call lang_hooks.types.type_for_size.
6705
6706 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6707
6708         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
6709         information.
6710         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
6711
6712 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
6713
6714         PR middle-end/44363
6715         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
6716         return false instead.
6717
6718 2010-06-02  Jan Hubicka  <jh@suse.cz>
6719
6720         PR middle-end/44295
6721         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
6722         create new cgraph node to check callee.
6723
6724 2010-06-02  Richard Guenther  <rguenther@suse.de>
6725
6726         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
6727
6728 2010-06-02  Richard Guenther  <rguenther@suse.de>
6729
6730         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
6731         (lto_wrapper_cleanup): ... this.  Do not exit.
6732         (fatal): Adjust.  Exit here.
6733         (fatal_perror): Likewise.
6734         (fatal_signal): New function.
6735         (main): Set up signal handlers to cleanup temporary files.
6736         * Makefile.in (lto-wrapper.o): Adjust dependencies.
6737
6738 2010-06-02  Richard Guenther  <rguenther@suse.de>
6739
6740         PR tree-optimization/44377
6741         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
6742
6743 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6744
6745         * config/s390/2097.md (z10_fhex): Remove insn reservation.
6746         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
6747         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
6748         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
6749         instruction.
6750         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
6751
6752 2010-06-02  Jan Hubicka  <jh@suse.cz>
6753
6754         * bitmap.c (bitmap_descriptor): Add search_iter.
6755         (bitmap_find_bit): Increment it.
6756         (print_statistics): Print it.
6757
6758 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
6759
6760         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
6761         instead of gimple_build_call_vec.  Delete unnecessary local variable.
6762
6763 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6764
6765         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
6766         change from yesterday.
6767
6768 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
6769
6770         * c-ada-spec.c: Clean up redundant includes.
6771
6772 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
6773
6774         * gimplify.c: Do not include except.h and optabs.h.
6775         (gimplify_body): Do not initialize RTL profiling.
6776         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
6777         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
6778         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
6779         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
6780         langhooks.h.
6781
6782         * tree-pretty-print.h: Include pretty-print.h.
6783         * gimple-pretty-print.h: Include pretty-print.h.
6784
6785         * tree-pretty-print.c: Do not include diagnostic.h.
6786         * tree-vrp.c: Likewise.
6787         * tree-tailcall.c: Likewise
6788         * tree-scalar-evolution.c: Likewise
6789         * tree-ssa-dse.c: Likewise
6790         * tree-chrec.c: Likewise
6791         * tree-ssa-sccvn.c: Likewise
6792         * tree-ssa-copyrename.c: Likewise
6793         * tree-nomudflap.c: Likewise
6794         * tree-call-cdce.c: Likewise
6795         * tree-stdarg.c: Likewise
6796         * tree-ssa-math-opts.c: Likewise
6797         * tree-nrv.c: Likewise
6798         * tree-ssa-sink.c: Likewise
6799         * tree-browser.c: Likewise
6800         * tree-ssa-loop-ivcanon.c: Likewise
6801         * tree-ssa-loop.c: Likewise
6802         * tree-parloops.c: Likewise
6803         * tree-ssa-address.c: Likewise
6804         * tree-ssa-ifcombine.c: Likewise
6805         * tree-if-conv.c: Likewise
6806         * tree-data-ref.c: Likewise
6807         * tree-affine.c: Likewise
6808         * tree-ssa-phiopt.c: Likewise
6809         * tree-ssa-coalesce.c: Likewise
6810         * tree-ssa-pre.c: Likewise
6811         * tree-ssa-live.c: Likewise
6812         * tree-predcom.c: Likewise
6813         * tree-ssa-forwprop.c: Likewise
6814         * tree-ssa-dce.c: Likewise
6815         * tree-ssa-ter.c: Likewise
6816         * tree-ssa-loop-prefetch.c: Likewise
6817         * tree-optimize.c: Likewise
6818         * tree-ssa-phiprop.c: Likewise
6819         * tree-object-size.c: Likewise
6820         * tree-outof-ssa.c: Likewise
6821         * tree-ssa-structalias.c: Likewise
6822         * tree-switch-conversion.c: Likewise
6823         * tree-ssa-reassoc.c: Likewise
6824         * tree-ssa-operands.c: Likewise
6825         * tree-vectorizer.c: Likewise
6826         * tree-vect-data-refs.c: Likewise
6827         * tree-vect-generic.c: Likewise
6828         * tree-vect-stmts.c: Likewise
6829         * tree-vect-patterns.c: Likewise
6830         * tree-vect-slp.c: Likewise
6831         * tree-vect-loop.c: Likewise
6832         * tree-ssa-loop-ivopts.c: Likewise
6833         * tree-ssa-loop-im.c: Likewise
6834         * tree-ssa-loop-niter.c: Likewise
6835         * tree-ssa-loop-unswitch.c: Likewise
6836         * tree-ssa-loop-manip.c: Likewise
6837         * tree-ssa-loop-ch.c: Likewise
6838         * tree-dump.c: Likewise
6839         * tree-complex.c: Likewise
6840
6841         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
6842         * tree-ssa-uninit.c: Likewise
6843         * tree-ssa-threadupdate.c: Likewise
6844         * tree-ssa-uncprop.c: Likewise
6845         * tree-ssa-ccp.c: Likewise
6846         * tree-ssa-dom.c: Likewise
6847         * tree-ssa-propagate.c: Likewise
6848         * tree-ssa-alias.c: Likewise
6849         * tree-dfa.c: Likewise
6850         * tree-cfgcleanup.c: Likewise
6851         * tree-sra.c: Likewise
6852         * tree-ssa-copy.c: Likewise
6853         * tree-ssa.c: Likewise
6854         * tree-profile.c: Likewise
6855         * tree-cfg.c: Likewise
6856         * tree-ssa-threadedge.c: Likewise
6857         * tree-vect-loop-manip.c: Likewise
6858
6859         * tree-inline.c: Do not include diagnostic.h and expr.h.
6860         Include rtl.h.
6861         (copy_decl_for_dup_finish): Do not use NULL_RTX.
6862
6863         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
6864         * tree-loop-distribution.c: Likewise.
6865
6866 2010-06-01  Jan Hubicka  <jh@suse.cz>
6867
6868         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
6869
6870 2010-06-01  Jan Hubicka  <jh@suse.cz>
6871
6872         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
6873         remove return value.
6874         (split_bbs_on_noreturn_calls) .... here.
6875         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
6876         * tree-flow.h (fixup_noreturn_call): New.
6877
6878 2010-06-01  Jan Hubicka  <jh@suse.cz>
6879
6880         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
6881
6882 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
6883
6884         * tree.h (build_nt_call_list): Delete.
6885         * tree.c (build_nt_call_list): Delete.
6886
6887 2010-06-01  Jan Hubicka  <jh@suse.cz>
6888
6889         * fwprop.c: Make emit-rtl.h include last.
6890         * rtlanal.c: Include emit-rtl.h.
6891         * genautomata.c: Output emit-rtl include into insn-automata.c
6892         * df-scan.c: Include emit-rtl.h.
6893         * haifa-sched.c: Indlude emit-rtl.h.
6894         * mode-switching.c: Indlude emit-rtl.h.
6895         * graph.c: Indlude emit-rtl.h.
6896         * sel-sched.c: Include emit-rtl.h.
6897         * sel-sched-ir.c: Include emit-rtl.h.
6898         * ira-build.c: Include emit-rtl.h.
6899         * emit-rtl.c: (first_insn, last_insn): Remove defines.
6900         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
6901         Move to emit-rtl.h.
6902         (set_new_first_and_last_insn, get_last_insn_anywhere,
6903         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
6904         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
6905         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
6906         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
6907         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
6908         Use accessor functions.
6909         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6910          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6911         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6912         mem_expr_equal_p): Move here from rtl.h.
6913         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
6914         Move here from emit-rtl.c; make inline.
6915         * cfglayout.h: Include emit-rtl.h.
6916         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
6917          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
6918         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
6919         mem_expr_equal_p, get_insns, set_first-insn,
6920         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
6921         * reg-stack.c: Include emit-rtl.h.
6922         * dce.c: Likewise.
6923
6924 2010-06-01  Jan Hubicka  <jh@suse.cz>
6925
6926         * cgraph.h (tree_function_versioning): Update prototype.
6927         (cgraph_function_versioning): Update prototype.
6928         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
6929         bitmap.
6930         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
6931         (cgraph_materialize_clone, save_inline_function_body): Update use of
6932         tree_function_versioning.
6933         * tree-inline.c (copy_bb): Look for previous copied block to link
6934         after; fix debug output.
6935         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
6936         (copy_body): Likewise.
6937         (expand_call_inline): Update use of copy_body.
6938         (tree_function_versioning): Update use of copy body; accept
6939         blocks_to_copy and new_entry.
6940
6941 2010-06-01  Jan Hubicka  <jh@suse.cz>
6942
6943         * gegenrtl.c: Remove unnecesary prototypes.
6944         (gendecl): Remove.
6945         (gendef): Produce static inline.
6946         (gencode): Remove.
6947         (main): Do not decode parameters; generate header only.
6948         * Makefile.in (genrtl.c): Remove.
6949
6950 2010-06-01  Jan Hubicka  <jh@suse.cz>
6951
6952         * tree-switch-conversion.c (build_one_array): Make it readonly.
6953
6954 2010-06-01  Richard Guenther  <rguenther@suse.de>
6955
6956         * optabs.c (init_optabs): Guard all accesses to reinit.
6957         * ipa-pure-const.c (propagate): Fix another typo.
6958         * opts.c (common_handle_option): Split assignment to bool.
6959         * c-opts.c (c_common_handle_option): Likewise.
6960
6961 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
6962             Matthew Gingell  <gingell@adacore.com>
6963
6964         * doc/invoke.texi: Mention -fdump-ada-spec.
6965         * tree-dump.c (dump_files): Add ada-spec.
6966         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
6967         * tree-pass.h (tree_dump_index): Add TDI_ada.
6968         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
6969         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
6970         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
6971         * c-decl.c: Include c-ada-spec.h.
6972         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
6973         functions.
6974         (c_write_global_declarations): Add handling of -fdump-ada-spec.
6975         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
6976         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
6977         * c-ada-spec.h, c-ada-spec.c: New files.
6978
6979 2010-06-01  Richard Guenther  <rguenther@suse.de>
6980
6981         PR lto/43853
6982         * ipa-pure-const.c (get_function_state): Hand back varying state
6983         if we do not have one.
6984         (has_function_state): New function.
6985         (duplicate_node_data): Adjust.
6986         (remove_node_data): Likewise.
6987         (pure_const_write_summary): Likewise.
6988         (propagate): Likewise.  Fix typo.
6989
6990 2010-06-01  Jan Hubicka  <jh@suse.cz>
6991
6992         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
6993         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
6994         (execute_all_ipa_transforms): Do not play with the states.
6995
6996 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
6997
6998         * config/arm/t-linux-androideabi: New.
6999         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
7000
7001 2010-06-01  Jan Hubicka  <jh@suse.cz>
7002
7003         * tree-inline.c (estimate_num_insns): For stdarg functions look
7004         into call statement to count cost of argument passing.
7005
7006 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
7007
7008         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
7009         argument for fprintf.
7010         (ix86_output_addr_diff_elt): Likewise.
7011         (x86_function_profiler): Likewise.
7012         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
7013         (LPREFIX): Likewise.
7014         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
7015
7016 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7017
7018         PR target/44338
7019         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
7020         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
7021         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
7022         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
7023         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
7024         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
7025         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
7026         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
7027         TARGET_FUSED_MADD.
7028
7029 2010-05-31  Jan Hubicka  <jh@suse.cz>
7030
7031         * tree.h (tree_range_check_failed): Declare noreturn.
7032
7033 2010-05-31  Jan Hubicka  <jh@suse.cz>
7034
7035         * gimple.c (gimple_call_builtin_p): New function.
7036         * gimple.h (gimple_call_builtin_p): Declare.
7037         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
7038         to exit.
7039         (execute_warn_function_return): BUILT_IN_RETURN is return.
7040         (split_critical_edges): Return edges are not critical.
7041         (is_ctrl_altering_stmt): Builtin_in_return is altering.
7042         (gimple_verify_flow_info): Handle built_in_return.
7043         (execute_warn_function_return): Handle built_in_return.
7044         * ipa-pure-const.c (check_call): Ignore builtin_return.
7045
7046 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
7047
7048         PR middle-end/44337
7049         * expr.c (expand_assignment): Don't store anything for out-of-bounds
7050         array accesses with non-MEM.
7051
7052         PR tree-optimization/44182
7053         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
7054         newly needs to end a bb is followed by debug stmts, instead return
7055         true from the function at the end.
7056         (maybe_move_debug_stmts_to_successors): New function.
7057         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
7058
7059 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
7060
7061         PR target/44161
7062         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
7063
7064 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
7065
7066         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
7067         for nested functions in non-optimized compilation.
7068
7069 2010-05-31  Richard Guenther  <rguenther@suse.de>
7070
7071         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
7072
7073 2010-05-30  Jan Hubicka  <jh@suse.cz>
7074
7075         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
7076
7077 2010-05-30  Richard Guenther  <rguenther@suse.de>
7078
7079         PR lto/42975
7080         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
7081         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
7082         no longer needed.
7083
7084 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
7085
7086         * config/darwin.c (output_objc_section_asm_op): Add comment.
7087         (name_needs_quotes): Add '_' to list of valid comment chars.
7088         (machopic_output_function_base_name): Remove unneeded quotes.
7089         (darwin_encode_section_info): Adjust asm whitespace.
7090         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
7091         (ASM_OUTPUT_LOCAL): Ditto.
7092         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
7093         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
7094         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
7095
7096 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
7097
7098         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
7099         RS6000_OUTPUT_BASENAME unconditionally.
7100         (rs6000_output_function_epilogue): Likewise.
7101
7102 2010-05-30  Jan Hubicka  <jh@suse.cz>
7103
7104         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
7105         nodes.
7106
7107 2010-05-30  Richard Guenther  <rguenther@suse.de>
7108
7109         * tree-cfg.c (verify_gimple_assign_single): Implement
7110         verification for COND_EXPR rhs.
7111
7112 2010-05-30  Jan Hubicka  <jh@suse.cz>
7113
7114         * cgraph.h (cgraph_dump_file): Declare.
7115         * cgraphunit.c (cgraph_dump_file): Export.
7116         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
7117
7118 2010-05-30  Jan Hubicka  <jh@suse.cz>
7119
7120         * dwarf2out.c (reference_to_unused,
7121         premark_types_used_by_global_vars_helper): Avoid creation of new
7122         varpool nodes.
7123
7124 2010-05-30  Jan Hubicka  <jh@suse.cz>
7125
7126         * cgraph.h (cgraph_node_cannot_return,
7127         cgraph_edge_cannot_lead_to_return): New functions.
7128         * cgraph.c (cgraph_node_cannot_return,
7129         cgraph_edge_cannot_lead_to_return): Use them.
7130         * ipa-pure-const.c (pure_const_names): New static var.
7131         (check_call): Handle calls not leading to return.
7132         (pure_const_read_summary): Dump info read.
7133         (propagate): Dump info about propagation process; ignore side effects
7134         of functions not leading to exit; fix handling of pure functions.
7135
7136 2010-05-30  Jan Hubicka  <jh@suse.cz>
7137
7138         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
7139         for tail call epilogues.
7140
7141 2010-05-30  Jan Hubicka  <jh@suse.cz>
7142
7143         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
7144         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
7145         dump files.
7146
7147 2010-05-29  Jan Hubicka  <jh@suse.cz>
7148
7149         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
7150         node; remove references in node we no longer keep in cgrpah but need
7151         body of.
7152
7153 2010-05-29  Jan Hubicka  <jh@suse.cz>
7154
7155         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
7156
7157 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7158
7159         PR target/44165
7160         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
7161
7162 2010-05-29  Jan Hubicka  <jh@suse.cz>
7163
7164         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
7165         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
7166         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
7167         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
7168         debug_names_replaced_by, debug_update_ssa): Likewise.
7169         * sbitmap.c (debug_sbitmap): Likewise.
7170         * genrecog.c (debug_decision, debug_decision_list): Likewise.
7171         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
7172         debug_tree_chain): Likewise.
7173         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
7174         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
7175         * optabs.c  (debug_optab_libfuncs): Likewise.
7176         (verify_loop_closed_ssa): Likewise.
7177         * value-prof.c (verify_histograms): Likewise.
7178         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
7179         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
7180         * cfghooks.c (verify_flow_info): Likewise.
7181         * fold-const.c (debug_fold_checksum): Likewise.
7182         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
7183         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
7184         Likewise.
7185         * omega.c (debug_omega_problem): Likewise.
7186         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
7187         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
7188         * dominance.c (verify_dominators, debug_dominance_info,
7189         debug_dominance_tree): Likewise.
7190         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
7191         * df_regno_debug, df_ref_debug,
7192         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
7193         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
7194         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
7195         * sel-sched.c (debug_state): Likewise.
7196         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
7197         Likewise.
7198         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
7199         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
7200         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
7201         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
7202         Likewise.
7203         * c-pretty-print.c (debug_c_tree): Likewise.
7204         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
7205         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
7206         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
7207         * ebitmap.c (debug_ebitmap): Likewise.
7208         * function.c (debug_find_var_in_block_tree): Likewise.
7209         * print-rtl.c (debug_rtx): Likewise.
7210         (debug_rtx_count): Likewise.
7211         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
7212         * stor-layout.c (debug_rli): Likewise.
7213         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
7214         * tree-data-ref.c (debug_data_references,
7215         debug_data_dependence_relations, debug_data_reference,
7216         debug_data_dependence_relation, debug_rdg_vertex,
7217         debug_rdg_component, debug_rdg): Likewise.
7218         * tree-affine.c (debug_aff): Likewise.
7219         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
7220         Likewise.
7221         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
7222         * emit-rtl.c (verify_rtl_sharing): Likewise.
7223         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
7224         debug_value_expressions): Likewise.
7225         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
7226         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
7227         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
7228         * cfglayout.c (verify_insn_chain): Likewise.
7229         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
7230         debug_clast_stmt, debug_generated_program): Likewise.
7231         * ggc-page.c (debug_print_page_list): Likewise.
7232         * tree-ssa-ter.c (debug_ter): Likewise.
7233         * graphite-dependences.c (debug_pddr): Likewise.
7234         * sched-deps.c (debug_ds): Likewise.
7235         * tree-ssa.c (verify_ssa): Likewise.
7236         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
7237         debug_scattering_functions, debug_iteration_domains, debug_pdr,
7238         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
7239         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
7240         * tree-inline.c (debug_find_tree): Likewise.
7241         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
7242         debug_ppl_powerset_matrix): Likewise.
7243         * var-tracking.c (debug_dv): Likewise.
7244         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
7245         * cfgloop.c (verify_loop_structure): Likewise.
7246         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
7247         * c-common.c (verify_sequence_points): Likewise.
7248         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
7249         debug_candidates, debug_rgn_dependencies): Likewise.
7250         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
7251         * debug_constraint_graph, debug_solution_for_var,
7252         debug_sa_points_to_info): Likewise.
7253         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
7254         Likewie.
7255         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
7256         debug_loops, debug_loop, debug_loop_num): Likewise.
7257         * passes.c (debug_pass): Likewise.
7258         (dump_properties): Likewise; add cfglayout property.
7259         (debug_properties): Likewise.
7260         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
7261         * varpool.c (debug_varpool): Likewise.
7262         * regcprop.c (debug_value_data): Likewise.
7263         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
7264         debug_immediate_uses_for): Likewise.
7265
7266 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7267
7268         PR bootstrap/44315
7269         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
7270         Filter out insn-flags.h.
7271
7272 2010-05-29  Jan Hubicka  <jh@suse.cz>
7273
7274         * cgraph.h (struct varpool_node_set_def,
7275         struct cgraph_node_set_def): Remove unused AUX pointer.
7276         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
7277         VEC_empty macro.
7278
7279 2010-05-29  Jan Hubicka  <jh@suse.cz>
7280
7281         PR middle-end/44324
7282         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
7283
7284 2010-05-29  Richard Guenther  <rguenther@suse.de>
7285
7286         * lto-streamer.c (cached_bp): New global variable.
7287         (bitpack_create): Return the cached bitpack, if available.
7288         (bitpack_delete): Clear and cache the bitpack, if appropriate.
7289         (bp_pack_value): Remove redundant asserts.
7290
7291 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7292
7293         PR middle-end/44306
7294         * tree-if-conv.c (is_true_predicate): New.
7295         (is_predicated): Use is_true_predicate.
7296         (add_to_predicate_list): Same.  Do not use unshare_expr.
7297         (add_to_dst_predicate_list): Same.
7298
7299 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
7300
7301         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
7302         field on edges.
7303         (predicate_bbs): Same.
7304         (clean_predicate_lists): Same.
7305         (find_phi_replacement_condition): Do not AND the predicate from
7306         edge->aux.
7307
7308 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
7309
7310         PR bootstrap/44315
7311         * Makefile.in (build/gencondmd.o): Add a missing `\'.
7312
7313 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7314
7315         PR target/44261
7316         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
7317         (negdf2): Adjust expander pattern and use negdf2_slow.
7318         (negsf2): Likewise.
7319
7320 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
7321
7322         * basic-block.h (struct control_flow_graph): Move last_label_uid field
7323         up.
7324         * df.h (struct df_base_ref): Move regno field up.
7325         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
7326         * expr.h (struct separate_ops): Move location field up.
7327         * optabs.h (struct optab_d): Move libcall_basename field down.
7328         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
7329         * config/i386/i386.h (struct machine_function): Convert call_abi field
7330         into a bitfield.  Move cfa field to the end of the structure.
7331
7332 2010-05-29  Jan Hubicka  <jh@suse.cz>
7333
7334         * varpool.c (varpool_get_node): Fix lookup.
7335
7336 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7337
7338         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
7339         RTL specific prototypes with #ifdef RTX_CODE.
7340         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
7341         * config/spu/t-spu-elf: Fix dependencies.
7342
7343         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
7344
7345 2010-05-29  Mike Stump  <mikestump@comcast.net>
7346
7347         PR bootstrap/44315
7348         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
7349         TM_H when building to avoid dependency loops.
7350
7351 2010-05-29  Jan Hubicka  <jh@suse.cz>
7352
7353         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
7354         refs and body; not the whole node for masters of materialized clones.
7355
7356 2010-05-29  Mike Stump  <mikestump@comcast.net>
7357
7358         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
7359
7360 2010-05-29  Jan Hubicka  <jh@suse.cz>
7361
7362         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
7363         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
7364         use of clone_function_name.
7365         * cgraph.h (cgraph_create_virtual_clone,
7366         cgraph_function_versioning): update prototypes.
7367         (clone_function_name): Declare.
7368         * ipa-cp.c (ipcp_insert_stage): Update call of
7369         cgraph_create_virtual_clone.
7370         * omp-low.c (create_omp_child_function_name): Use
7371         cgraph_create_virtual_clone.
7372         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
7373         (cgraph_function_versioning): Take SUFFIX argument; produce new name
7374         and make decl local.
7375
7376 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7377
7378         * vec.h: Include statistics.h
7379         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
7380         with VEC_H.
7381
7382 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7383
7384         * c-lex.c: Do not include c-tree.h.
7385         * c-pretty-print.c: Likewise.
7386         * c-opts.c: Likewise.
7387         * c-gimplify.c: Likewise.
7388         * c-common.c: Likewise.
7389         * c-dump.c: Likewise.  Include c-common.h.
7390
7391 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7392
7393         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
7394         before including diagnostic-core.h.
7395         (c_cpp_error): New prototype moved from c-tree.h.
7396         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
7397         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
7398         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
7399         (c_cpp_error): Prototype moved to c-common.h.
7400         * Makefile.in: Update dependency for C_COMMON_H.
7401
7402 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
7403
7404         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
7405         * c-common.c (c_register_addr_space): Remove here.
7406         * c-decl.c (c_register_addr_space): Re-add here.
7407
7408 2010-05-28  Mike Stump  <mikestump@comcast.net>
7409
7410         * config/darwin-c.c: Remove c-tree.h include.
7411
7412 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7413
7414         * gcc.c: Include diagnostic.h.
7415         (error_count): Remove.  All users changed to use errorcount.
7416         (programname): Remove.  All users changed to use progname.
7417         (fancy_abort, internal_error, fatal_error, error, warning, inform,
7418         fnotice): Remove.
7419         (execute): Don't include "Internal error" and bug reporting
7420         information in argument of internal_error call.
7421         (process_command): Don't increment error_count after calling
7422         perror_with_name.
7423         (input_filename): Rename to gcc_input_filename.  All users
7424         changed.
7425         (main): Call diagnostic_initialize.  Register delete_temp_files
7426         with atexit.  Use seen_error to test for errors.
7427         * gcc.h: Include diagnostic-core.h.
7428         (fatal_error, error, warning): Remove.
7429         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
7430         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
7431         (gcc.o): Update dependencies.
7432
7433 2010-05-28  Jeff Law  <law@redhat.com>
7434
7435         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
7436         functions.
7437         * ira.h (ira_bad_reload_regno): Declare
7438         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
7439
7440         * ira-color.c (update_curr_costs): Free updated hard reg costs.
7441         (ira_reassign_conflict_allocnos): Remove bogus asserts.
7442         (allocno_reload_assign): Likewise.
7443
7444 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
7445
7446         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
7447         build1_stat.
7448
7449 2010-05-28  Richard Guenther  <rguenther@suse.de>
7450
7451         PR lto/44312
7452         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
7453         Stream fixed-point constants mode.
7454         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
7455         and TYPE_PRECISION.
7456         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
7457         Stream fixed-point constants mode.
7458         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
7459         and TYPE_PRECISION.
7460
7461 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7462
7463         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
7464         only place it was called from.
7465         (number_of_latch_executions): Do not return chrec_dont_know when the
7466         may_be_zero is a runtime condition: instead, return a COND_EXPR
7467         including the may_be_zero condition.
7468         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
7469         of nb_iterations.
7470         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
7471         COND_EXPRs.
7472
7473 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7474
7475         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
7476         generate COND_EXPRs for degenerate_phi_result.
7477
7478 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
7479
7480         PR middle-end/44293
7481         * tree-if-conv.c (if_convertible_loop_p): Check the
7482         if-convertibility of phi nodes in non predicated BBs.
7483
7484 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7485
7486         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
7487
7488 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7489
7490         PR driver/15303
7491         * gcc.c (inform, warning, inform): New functions.
7492         (fatal_ice): Rename to internal_error; change cmsgid parameter to
7493         gmsgid.  All callers changed.
7494         (notice): Rename to fnotice; add parameter fp.  All callers changed.
7495         (fatal_error): Rename to fatal_signal.  All users changed.
7496         (fatal): Rename to fatal_error; change cmsgid parameter to
7497         gmsgid.  All callers changed.
7498         (process_command): Use warning instead of error for warnings.
7499         (end_going_arg): Don't use _() around argument of error.
7500         (do_spec_1): Use inform for message from %n specs.  Use warning
7501         instead of error for warnings.
7502         (main): Use inform for comparison messages.  Use warning for
7503         message about unused linker input.
7504         (error): Increment error_count.  Print "error: ".
7505         * gcc.h (fatal): Change to fatal_error.
7506         (warning): Declare.
7507         * config/darwin-driver.c (darwin_default_min_version): Use warning
7508         instead of fprintf for warnings.
7509         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
7510
7511 2010-05-28  Julian Brown  <julian@codesourcery.com>
7512
7513         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
7514         (*thumb2_addsi3_compare0_scratch): New.
7515         * config/arm/constraints.md (Pv): New.
7516         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
7517         for ARM mode only.
7518         (*addsi3_compare0_scratch): Likewise.
7519
7520 2010-05-28  Jan Hubicka  <jh@suse.cz>
7521
7522         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
7523         check.
7524         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
7525         only on local statics.
7526
7527 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
7528
7529         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
7530
7531 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
7532
7533         PR bootstrap/44314
7534         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
7535         (OPTION_GLIBC): Define.
7536
7537 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7538
7539         PR debug/41048
7540         * dwarf2out.c (double_int_type_size_in_bits): New function.
7541         (round_up_to_align): Change first argument and return value to
7542         double_int.
7543         (field_byte_offset): Work internally on double_ints.
7544
7545         PR target/43636
7546         * builtins.c (expand_movstr): Use a temporary pseudo instead
7547         of target even when target is not NULL and not const0_rtx, but
7548         fails movstr predicate.
7549         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
7550
7551 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
7552
7553         * final.c (rest_of_clean_state): Use %m in errors instead of
7554         strerror (errno).
7555         * gengtype.c (read_input_list, close_output_files): Use xstrerror
7556         instead of strerror.
7557         * toplev.c (process_options): Use %m in errors instead of strerror
7558         (errno).
7559         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
7560         (errno).
7561
7562 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
7563
7564         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
7565         (ix86_canonical_va_list_type): Make static.  Add declaration.
7566         (ix86_enum_va_list): Make static.  Reindent.
7567         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
7568         (ix86_canonical_va_list_type): Ditto.
7569         (ix86_enum_va_list): Ditto.
7570
7571 2010-05-28  Richard Guenther  <rguenther@suse.de>
7572
7573         * lto-wrapper.c (run_gcc): With -save-temps generate a
7574         user-visible ltrans filename.  Fixup ltrans unit numbering.
7575
7576 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
7577
7578         * c-common.c (c_common_nodes_and_builtins): Replace use
7579         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
7580         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
7581         to ix86_enum_va_list.
7582         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
7583         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
7584         (TARGET_ENUM_VA_LIST_P): Add hook description.
7585         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
7586         * target.h (gcc_target): Add enum_va_list hook.
7587
7588         PR bootstrap/44299
7589         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
7590         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
7591         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
7592
7593 2010-05-28  Alan Modra  <amodra@gmail.com>
7594
7595         PR target/44266
7596         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
7597         emit_library_call machinery to set up __tls_get_addr calls.
7598
7599 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7600
7601         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
7602
7603 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
7604
7605         Revert fix for PR c++/44188
7606         * c-common.c (is_typedef_decl): Revert the moving of  this
7607         definition ...
7608         * tree.c (is_typedef_decl): ... here.
7609         (typdef_variant_p): Revert the moving of this  definition
7610         here from gcc/cp/tree.c.
7611         * c-common.h (is_typedef_decl): Revert the moving of this
7612         declaration ...
7613         * tree.h (is_typedef_decl): ... here.
7614         (typedef_variant_p): Revert the moving of this  declaration here
7615         from gcc/cp/cp-tree.h
7616         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
7617         (gen_tagged_type_die): Revert the splitting out of ...
7618         (gen_type_die_with_usage): ... this function. Revert the anonymous
7619         tagged type handling.
7620         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
7621         typedefs naming anonymous tagged types.
7622
7623 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7624
7625         * config/rs6000/rs6000-modes.def (PSImode): Delete.
7626
7627 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
7628
7629         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
7630         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
7631         throughout.
7632         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
7633         "xer" to "ca".
7634         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
7635         XER_REGS to CA_REGS throughout.
7636         * config/rs6000/rs6000.h: Same.
7637         (ADDITIONAL_REGISTER_NAMES): Add "xer".
7638         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
7639         that mode_iterator "P" is the size for arithmetic carries as well.
7640         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
7641
7642 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
7643
7644         PR bootstrap/44255
7645         * combine.c (struct rtx_subst_pair): Define unconditionally.
7646         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
7647         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
7648         Call make_compound_operation on pair->to.
7649         (propagate_for_debug): Don't call make_compound_operation here.
7650         Always use simplify_replace_fn_rtx.
7651
7652 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
7653
7654         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
7655         * config/xtensa/xtensa.c (override_options): Check
7656           TARGET_FORCE_NO_PIC and set flag_pic.
7657         * config/xtensa/xtensa.opt: Document -mforce-no-pic
7658
7659 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7660
7661         PR bootstrap/44299
7662         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
7663         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
7664
7665 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7666
7667         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
7668         toplev.h.
7669         * diagnostic.c: Don't include toplev.h.
7670         (progname): Define.  Moved from toplev.c.
7671         (seen_error): New function.
7672         * diagnostic.h: Include diagnostic-core.h.
7673         (diagnostic_t, emit_diagnostic): Don't declare here.
7674         * toplev.c (progname): Move to toplev.c.
7675         (emit_debug_global_declarations, compile_file, finalize,
7676         do_compile, toplev_main): Use seen_error.
7677         * toplev.h: Include diagnostic-core.h.
7678         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
7679         internal_error, warning, warning_at, error, error_n, error_at,
7680         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
7681         verbatim, fnotice, progname): Move to diagnostic-core.h.
7682         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
7683         (expand_builtin_expect): Use seen_error.
7684         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
7685         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
7686         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
7687         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
7688         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
7689         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
7690         errorcount for errors.
7691         * c-opts.c (c_common_finish): Use seen_error.
7692         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7693         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
7694         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
7695         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
7696         (get_coverage_counts): Use seen_error.
7697         * dwarf2out.c (dwarf2out_finish): Use seen_error.
7698         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
7699         gimplify_body): Use seen_error.
7700         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
7701         * ipa-pure-const.c (gate_pure_const): Use seen_error.
7702         * ipa-reference.c (gate_reference): Use seen_error.
7703         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
7704         * lambda-code.c: Include diagnostic-core.h instead of
7705         diagnostic.h.
7706         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
7707         * lto-compress.c: Include diagnostic-core.h instead of
7708         diagnostic.h.
7709         * lto-section-in.c: Include diagnostic-core.h instead of
7710         diagnostic.h.
7711         * lto-streamer-out.c: Include diagnostic-core.h instead of
7712         diagnostic.h.
7713         * lto-streamer.c: Include diagnostic-core.h instead of
7714         diagnostic.h.
7715         (gate_lto_out): Use seen_error.
7716         * matrix-reorg.c: Include diagnostic-core.h instead of
7717         diagnostic.h.
7718         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
7719         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
7720         (gate_expand_omp, lower_omp_1): Use seen_error.
7721         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
7722         (rest_of_decl_compilation, rest_of_type_compilation,
7723         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
7724         * tree-cfg.c (label_to_block_fn): Use seen_error.
7725         * tree-inline.c (optimize_inline_calls): Use seen_error.
7726         * tree-mudflap.c (mudflap_finish_file): Use
7727         seen_error.
7728         * tree-optimize.c (gate_all_optimizations,
7729         gate_all_early_local_passes, gate_all_early_optimizations): Use
7730         seen_error.
7731         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
7732         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
7733         (varpool_remove_unreferenced_decls,
7734         varpool_assemble_pending_decls): Use seen_error.
7735         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
7736         (TOPLEV_H, DIAGNOSTIC_H): Update.
7737         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
7738         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
7739         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
7740         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
7741         coverage.o, lambda-code.o): Update dependencies.
7742
7743 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
7744
7745         PR c++/44188
7746         * c-common.c (is_typedef_decl): Move this definition ...
7747         * tree.c (is_typedef_decl): ... here.
7748         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
7749         * c-common.h (is_typedef_decl): Move this declaration ...
7750         * tree.h (is_typedef_decl): ... here.
7751         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
7752         * dwarf2out.c (is_naming_typedef_decl): New function.
7753         (gen_tagged_type_die): Split out of ...
7754         (gen_type_die_with_usage): ... this function. When an anonymous
7755         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
7756         is emitted for the typedef.
7757         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
7758         anonymous tagged types.
7759
7760 2010-05-27  Jason Merrill  <jason@redhat.com>
7761
7762         * print-tree.c (debug_vec_tree): New fn.
7763         (print_vec_tree): New fn.
7764         * tree.h: Declare them.
7765         * gdbinit.in (pvt): New command.
7766
7767         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
7768
7769         * gdbinit.in (pdd): New command.
7770
7771 2010-05-27  Jan Hubicka  <jh@suse.cz>
7772
7773         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
7774         (update_caller_keys): Return early if there are no callers;
7775         only update fibheap when decresing the key.
7776         (update_callee_keys): Avoid recursion.
7777         (decide_inlining_of_small_functions): When badness does not match;
7778         re-insert into fibheap.
7779
7780 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
7781
7782         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
7783         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
7784         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
7785         (ALL_HOST_OBJS): Now a union of the above two.
7786         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
7787         all files in ALL_HOST_FRONTEND_OBJS.
7788         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
7789
7790         * c-common.c: Pretend to be a backend file by undefining
7791         IN_GCC_FRONTEND (still need rtl.h here).
7792
7793 2010-05-27  Jan Hubicka  <jh@suse.cz>
7794
7795         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
7796         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
7797
7798 2010-05-27  Jan Hubicka  <jh@suse.cz>
7799
7800         * sched-ebb.c: Rename struct deps to struct deps_desc.
7801         * ddg.c: Likewise.
7802         * sel-sched-ir.c: Likewise.
7803         * sched-deps.c: Likewise.
7804         * sched-int.h: Likewise.
7805         * sched-rgn.c: Likewise.
7806
7807 2010-05-27  Jon Beniston  <jon@beniston.com>
7808
7809         PR 43726
7810         * config/lm32/lm32.h: Remove definition of
7811         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
7812
7813 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
7814
7815         PR lto/44230
7816         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
7817
7818 2010-05-27  Richard Guenther  <rguenther@suse.de>
7819
7820         PR tree-optimization/44284
7821         * tree-vect-stmts.c (vectorizable_assignment): Handle
7822         sign-changing conversions as simple copy.
7823
7824 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7825
7826         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
7827         Bionic C library.
7828         (__gthread_active_p): Check for pthread_create if compiling against
7829         Bionic C library.
7830
7831 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7832
7833         Support compilation for Android platform.  Reimplement -mandroid.
7834
7835         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
7836         (*android*): Set ANDROID_DEFAULT.
7837         (arm*-*-linux*): Include linux-android.h.
7838         (arm*-*-eabi*): Don't include previous -mandroid implementation.
7839         * config/arm/eabi.h: Remove, move Android-specific parts ...
7840         * config/linux-android.h: ... here.  New file.
7841         * config/arm/eabi.opt: Rename to ...
7842         * config/linux-android.opt: ... this.
7843         (mandroid): Allow -mno-android option.  Initialize based on
7844         ANDROID_DEFAULT.
7845         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
7846         Move logic to corresponding LINUX_TARGET_* macros.
7847         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
7848         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
7849         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
7850         Android definitions.
7851         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
7852         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
7853         Document.
7854
7855 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
7856
7857         Add support for Bionic C library
7858
7859         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
7860         macro.
7861         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
7862         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
7863
7864         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
7865         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
7866         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
7867         to support multiple C libraries.  Handle Bionic.
7868         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
7869         (BIONIC_DYNAMIC_LINKER64): Define.
7870         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
7871         Update.
7872         (TARGET_HAS_SINCOS): Enable for Bionic.
7873
7874         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
7875         the last option specified on command line take effect.
7876         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
7877         (mbionic): New.
7878         (mglibc, muclibc): Update.
7879
7880         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
7881         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
7882         DEFAULT_LIBC.
7883
7884         * doc/invoke.texi (-mglibc, -muclibc): Update.
7885         (-mbionic): Document.
7886
7887 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7888
7889         * c-common.h (c_register_addr_space): Add prototype.
7890         (ADDR_SPACE_KEYWORD): Remove.
7891         * c-common.c (c_register_addr_space): New function.
7892         (c_addr_space_name): Reimplement.
7893         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
7894
7895         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
7896         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
7897
7898         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
7899         Remove TARGET_ADDR_SPACE_KEYWORDS.
7900
7901 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
7902
7903         * input.c: New file.
7904         * input.h (main_input_filename): Move declaration to toplev.h.
7905         * toplev.c (input_location, line_table): Move to input.c
7906         * toplev.h (main_input_filename): Move declaration from input.h.
7907         * tree.c (expand_location): Move to input.c.
7908         * Makefile.in (OBJS-common): Add input.o.
7909         (input.o): Add dependencies.
7910
7911 2010-05-27  Richard Guenther  <rguenther@suse.de>
7912
7913         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
7914         for non-existant files.
7915         (fork_execute): Mark args_name file as deleted.
7916
7917 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
7918
7919         PR bootstrp/44287
7920         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
7921         (narrow_signed_type): Likewise.
7922
7923 2010-05-26  Jan Hubicka  <jh@suse.cz>
7924
7925         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
7926         edge only when checking is enabled; check using former_clone_of;
7927         check inline clones too.
7928         (cgraph_materialize_clone): Record former_clone_of pointer.
7929         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
7930         combining redirections; dump args_to_skip bitmap
7931         (cgraph_materialize_all_clones): Do no redirection here.
7932         * ipa-inline.c (inline_transform): Do redirection here.
7933         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
7934         cheking only).
7935
7936 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7937
7938         * config/avr/avr-c.c: Do not include regs.h.
7939         Include cpplib.h for cpp_define and tree.h for c-common.h.
7940         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
7941         * config/avr/t-avr: Fix dependencies for avr-c.o.
7942
7943 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
7944
7945         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
7946         string instead of SYMBOL_REF rtx.
7947         * rtl.h (set_stack_check_libfunc): Move prototype from here...
7948         * libfuncs.h: ...to here.  Adjust for explow.c change.
7949
7950 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
7951
7952         * pretty-print.c: Don't include ggc.h.
7953         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
7954         (identifier_to_locale): Use them for allocation.
7955         * pretty-print.h (identifier_to_locale_alloc,
7956         identifier_to_locale_free): Declare.
7957         * toplev.c (alloc_for_identifier_to_locale): New.
7958         (general_init): Set identifier_to_locale_alloc and
7959         identifier_to_locale_free.
7960         * Makefile.in (pretty-print.o): Update dependencies.
7961
7962 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7963
7964         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
7965         pointer types if they have different alignment or mode.
7966
7967 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
7968
7969         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
7970         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
7971         * config/sparc/sparc-protos.h (function_value): Remove declaration.
7972         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
7973         sparc_function_value_regno_p): New functions.
7974         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7975         TARGET_FUNCTION_VALUE_REGNO_P): Define.
7976         (function_value): Rename to...
7977         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
7978         argument to 'outgoing'.
7979         (function_arg_record_value, function_arg_union_value,
7980         function_arg_vector_value): Update comment.
7981
7982 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
7983
7984         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
7985         (fde_needed_for_eh_p): New predicate.
7986         (output_call_frame_info): Use it throughout to decide whether FDEs
7987         are needed for EH purpose.
7988         (dwarf2out_begin_prologue): Reorder assignments.
7989
7990 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7991
7992         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
7993         special case loop->header.
7994         (is_predicated): New.
7995         (if_convertible_loop_p): Call it.
7996
7997 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
7998
7999         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
8000         iterator in parameter.  Do not generate code during the analysis.
8001         (tree_if_convert_cond_stmt): Removed.
8002         (tree_if_convert_stmt): Removed.
8003         (predicate_bbs): New.
8004         (if_convertible_loop_p): Call predicate_bbs.
8005         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
8006         now contains all the analysis part.
8007
8008 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8009
8010         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
8011         statements in the analysis part.
8012         (tree_if_convert_stmt): Update comment.
8013         (remove_conditions_and_labels): New.
8014         (combine_blocks): Call remove_conditions_and_labels.
8015         (tree_if_conversion): Update comment.
8016
8017 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8018
8019         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
8020         than 2 predecessors or more than 2 successors.
8021
8022 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8023
8024         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
8025         of loops in which the data dependence analysis fails.
8026
8027 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8028
8029         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
8030         CDI_POST_DOMINATORS.
8031         (tree_if_conversion): Same.
8032
8033 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8034
8035         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
8036
8037 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
8038
8039         * tree-if-conv.c: Update copyright years.  Fix comments.
8040         Fix indentation.
8041
8042 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
8043
8044         * builtin-types.def (BT_INT128): New primitive type.
8045         (BT_UINT128): Likewise.
8046         * c-common.c (c_common_r): Add __int128 keyword.
8047         (c_common_type_for_size): Handle __int128.
8048         (c_common_type_for_mode): Likewise.
8049         (c_common_signed_or_unsigned_type): Likewise.
8050         (c_common_nodes_and_builtins): Add builtin type
8051         if target supports 128-bit integer scalar.
8052         * c-common.h (enum rid): Add RID_INT128.
8053         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
8054         if target supports 128-bit integer scalar.
8055         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
8056         (finish_declspecs): Likewise.
8057         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
8058         (c_token_starts_declspecs): Likewise.
8059         (c_parser_declspecs): Likewise.
8060         (c_parser_attributes): Likewise.
8061         (c_parser_objc_selector): Likewise.
8062         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
8063         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
8064         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
8065         * tree.c (make_or_reuse_type): Likewise.
8066         (make_unsigned_type): Likewise.
8067         (build_common_tree_nodes_2): Likewise.
8068         * tree.h (enum integer_type_kind): Add itk_int128 and
8069         itk_unsigned_int128.
8070         (int128_integer_type_node): New define.
8071         (int128_unsigned_type_node): New define.
8072         * doc/extend.texi: Add documentation about __int128 type.
8073
8074 2010-05-26  Richard Guenther  <rguenther@suse.de>
8075
8076         * tree-ssa-sccvn.c (copy_nary): Adjust.
8077         (copy_phis): Rename to ...
8078         (copy_phi): ... this.  Adjust.
8079         (copy_references): Rename to ...
8080         (copy_reference): ... this.  Adjust.
8081         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
8082         result into the valid table.
8083
8084 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8085
8086         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
8087         insn-config.h, insn-codes.h, recog.h, and optabs.h.
8088
8089 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8090
8091         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
8092
8093 2010-05-26  Richard Guenther  <rguenther@suse.de>
8094
8095         * opts.c (common_handle_option): Handle OPT_Ofast.
8096
8097 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
8098
8099         * diagnostic.c: Don't include opts.h.
8100         (permissive_error_option): Define.
8101         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
8102         for classify_diagnostic.  Don't use memset for
8103         classify_diagnostic.  Initialize new and recently added fields.
8104         (diagnostic_classify_diagnostic): Use context->n_opts instead of
8105         N_OPTS.
8106         (diagnostic_report_diagnostic): Pass context parameter to
8107         diagnostic_report_warnings_p.  Use option_enabled and option_name
8108         hooks from context.
8109         (emit_diagnostic): Use permissive_error_option.
8110         (permerror): Likewise.
8111         * diagnostic.h: Don't include options.h.
8112         (struct diagnostic_context): Add n_opts, opt_permissive,
8113         inhibit_warnings, warn_system_headers, option_enabled and
8114         option_name fields.  Change classify_diagnostic to a pointer.
8115         * opts-diagnostic.h: New file.
8116         * opts.c: Include opts-diagnostic.h.
8117         (common_handle_option): Set global_dc fields for -Wfatal-errors,
8118         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
8119         (option_name): New function.
8120         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
8121         (c_common_handle_option): Set global_dc->permissive for
8122         -fpermissive.
8123         * c-common.c (c_cpp_error): Save and restore
8124         global_dc->warn_system_headers, not variable warn_system_headers.
8125         * toplev.c: Include opts-diagnostic.h.
8126         (general_init): Update call to diagnostic_initialize.  Set
8127         global_dc->show_column, global_dc->option_enabled and
8128         global_dc->option_name.
8129         (process_options): Don't set global_dc fields here.
8130         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
8131         (diagnostic.o, opts.o, toplev.o): Update dependencies.
8132
8133 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
8134
8135         * config/picochip/picochip.md (movsi): Split a movsi from a
8136         const after reload.
8137
8138 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8139
8140         * ggc-zone.c: Update copyright year.
8141         (poison_region): Mark memory for Valgrind as undefined before
8142         memset () call and inaccessible afterwards.
8143         (ggc_pch_total_size): Change type of i to int.
8144
8145 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8146
8147         * ggc-common.c (ggc_free_overhead): Allow empty slot.
8148
8149 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
8150
8151         * ggc-common.c: Update copyright year.
8152         (ggc_rlimit_bound): Remove prototype.  Compile only if
8153         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
8154         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
8155         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
8156         (ggc_min_heapsize_heuristic): Likewise.
8157
8158 2010-05-26  Richard Guenther  <rguenther@suse.de>
8159
8160         PR rtl-optimization/44164
8161         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
8162         no-common access-path disambiguation.
8163         (indirect_ref_may_alias_decl_p): Adjust.
8164         (indirect_refs_may_alias_p): Likewise.
8165         (refs_may_alias_p_1): Likewise.
8166
8167 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8168
8169         * c-typeck.c: Do not include expr.h.
8170
8171 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
8172
8173         * rtl.h (decl_default_tls_model): Move prototype from here...
8174         * output.h: ...to here.
8175         * c-decl.c: Do not include rtl.h.
8176         * c-pragma.c: Likewise.
8177         * c-parser.c: Likewise.
8178         * c-gimplify.c: Likewise.  And also not hard-reg-set.
8179         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
8180         FIXME note for it.  Add a FIXME note for expr.h.
8181         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
8182         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
8183         defined.
8184
8185 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
8186
8187         PR target/44199
8188         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
8189         or total_size is larger than red zone size for non-V4 ABI, emit a
8190         stack_tie resp. frame_tie insn before stack pointer restore.
8191         * config/rs6000/rs6000.md (frame_tie): New insn.
8192
8193 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
8194
8195         * function.h (struct function): Add can_throw_non_call_exceptions bit.
8196         * lto-streamer-in.c (input_function): Stream it in.
8197         * lto-streamer-out.c (output_function): Stream it out.
8198         * function.c (allocate_struct_function): Set it.
8199         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
8200         for flag_non_call_exceptions.
8201         * cfgbuild.c (control_flow_insn_p): Likewise.
8202         (make_edges): Likewise.
8203         * cfgexpand.c (expand_stack_alignment): Likewise.
8204         * combine.c (distribute_notes): Likewise.
8205         * cse.c (cse_extended_basic_block): Likewise.
8206         * except.c (insn_could_throw_p): Likewise.
8207         * gcse.c (simple_mem): Likewise.
8208         * ipa-pure-const.c (check_call): Likewise.
8209         (check_stmt ): Likewise.
8210         * lower-subreg.c (lower-subreg.c): Likewise.
8211         * optabs.c (emit_libcall_block): Likewise.
8212         (prepare_cmp_insn): Likewise.
8213         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
8214         * postreload.c (rest_of_handle_postreload): Likewise.
8215         * reload1.c (reload_as_needed): Likewise.
8216         (emit_input_reload_insns): Likewise.
8217         (emit_output_reload_insns): Likewise.
8218         (fixup_abnormal_edges): Likewise.
8219         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
8220         * store-motion.c (find_moveable_store): Likewise.
8221         * tree-eh.c (stmt_could_throw_p): Likewise.
8222         (tree_could_throw_p): Likewise.
8223         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
8224         * config/arm/arm.c (arm_expand_prologue): Likewise.
8225         (thumb1_expand_prologue): Likewise.
8226         * config/rx/rx.md (cbranchsf4): Likewise.
8227         (cmpsf): Likewise.
8228         * config/s390/s390.c (s390_emit_prologue): Likewise.
8229         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
8230         (inline_forbidden_into_p): New predicate.
8231         (expand_call_inline): Use it to forbid inlining.
8232         (tree_can_inline_p): Likewise.
8233
8234 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8235
8236         * config/i386/i386-c.c: Do not include rtl.h.
8237         * config/i386/t-i386: Update dependencies.
8238
8239 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8240
8241         * attribs.c: Do not include rtl.h.
8242         * Makefile.in: Update dependencies.
8243
8244 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
8245
8246         * double-int.h (double_int_and): New.
8247         * combine.c (try_combine): Clean up, use double_int_* and
8248         immed_double_int_const functions.
8249
8250 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8251
8252         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
8253         stderr to /dev/null instead of grep -q.
8254         * configure: Regenerate.
8255
8256 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
8257
8258         * Makefile.in (EXCEPT_H): Fix typo.
8259
8260 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
8261
8262         * ira-build.c (update_conflict_hard_reg_costs): New.
8263         (ira_build): Call update_conflict_hard_reg_costs.
8264
8265 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8266
8267         PR debug/41371
8268         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
8269         ENABLE_CHECKING.
8270         (intersect_loc_chains): Walk the s2var's loc_chain together
8271         with s1node chain as long as the locations are equal, don't
8272         call find_loc_in_1pdv in that case.
8273
8274         PR debug/42801
8275         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
8276         (copy_bind_expr): ... instead of here.
8277         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
8278         if the block hasn't been remapped.
8279         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
8280         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
8281
8282 2010-05-25  Richard Guenther  <rguenther@suse.de>
8283
8284         PR middle-end/44069
8285         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
8286         out-of-bounds array accesses.
8287
8288 2010-05-25  Richard Guenther  <rguenther@suse.de>
8289
8290         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
8291         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
8292         (run_gcc): Re-organize to make cleanup easier.
8293
8294 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8295
8296         * config/s390/s390.c (optimization_options): Fix and move the
8297         flag_prefetch_loop_arrays override ...
8298         (override_options): ... here.
8299
8300 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
8301
8302         * diagnostic.c: Don't include plugin.h.
8303         (diagnostic_report_diagnostic): Don't handle plugins specially
8304         here.  Pass context to internal_error callback.
8305         * diagnostic.h (struct diagnostic_context): Add context parameter
8306         to internal_error callback.
8307         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
8308         * plugin.h (struct diagnostic_context): Declare.
8309         (warn_if_plugins, plugins_internal_error_function): Declare.
8310         * toplev.c (general_init): Set global_dc->internal_error.
8311         * Makefile.in (diagnostic.o): Update dependencies.
8312
8313 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
8314
8315         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
8316         * config/rs6000/t-darwin64: New.
8317         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
8318         build crt2.
8319
8320 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
8321
8322         PR 44203
8323         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
8324         match the original (and intended) behaviour before r159557.  This
8325         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
8326         in two ways.
8327
8328 2010-05-25  Richard Guenther  <rguenther@suse.de>
8329
8330         * doc/invoke.texi: Document -Ofast.
8331         * target.h (struct gcc_target): Add handle_ofast.
8332         * target-def.h (TARGET_HANDLE_OFAST): Add.
8333         (TARGET_INITIALIZER): Adjust.
8334         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
8335         * common.opt (Ofast): Add.
8336
8337 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8338
8339         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
8340         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
8341
8342 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
8343
8344         PR target/43610
8345         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
8346         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
8347         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
8348         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
8349
8350 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
8351
8352         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
8353         DW_OP_minus with negated offset instead of DW_OP_plus.
8354         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
8355
8356 2010-05-25  Wei Guozhi  <carrot@google.com>
8357
8358         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
8359         tst instruction and a new alternative.
8360         * config/arm/constraints.md (Pu): New constraint.
8361
8362 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
8363
8364         * function.c (assign_stack_local_1): Initialize variable
8365         to avoid warning when bootstrapping at -O3.
8366
8367 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
8368
8369         * configure.ac (all_lang_makefiles): Remove everything related to it.
8370         * configure: Regenerate.
8371         * Makefile.in: Fix reference to ada Make-lang.in.
8372         Remove support for LANG_MAKEFILES.
8373
8374 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
8375             Sandra Loosemore  <sandra@codesourcery.com>
8376
8377         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
8378         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
8379         description.  Add arm_neon_fp16_ok.
8380         (Add Options): Add arm_neon and arm_neon_fp16.
8381
8382 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
8383
8384         * diagnostic.c: Don't include flags.h.
8385         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
8386         context parameters.  Check flags in the context passed as a parameter.
8387         (diagnostic_build_prefix): Add context parameter.  Check
8388         show_column flag in context.
8389         (diagnostic_action_after_output): Check fatal_errors flag in context.
8390         (diagnostic_report_current_module): Check show_column flag in context.
8391         (default_diagnostic_starter): Update call to
8392         diagnostic_build_prefix.
8393         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
8394         (emit_diagnostic): Pass context to permissive_error_kind.
8395         (permerror): Pass context to permissive_error_kind.
8396         * diagnostic.h (struct diagnostic_context): Add show_column,
8397         pedantic_errors, permissive and fatal_errors fields.
8398         (diagnostic_build_prefix): Update prototype.
8399         * langhooks.c
8400         * toplev.c (process_options): Set flags in global_dc from
8401         flag_show_column, flag_pedantic_errors, flag_permissive,
8402         flag_fatal_errors.
8403         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
8404         to diagnostic_build_prefix.
8405         * Makefile.in (diagnostic.o): Update dependencies.
8406
8407 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
8408
8409         * config/i386/ia32intrin.h (__crc32q): Define only if
8410         __SSE4_2__ is defined.
8411
8412 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
8413
8414         PR target/44132
8415         PR middle-end/43602
8416         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
8417         DECL_VISIBILITY_SPECIFIED.
8418         (emutls_decl): Set DECL_PRESERVE_P and copy
8419         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
8420         (emutls_finalize_control_var): New callback.
8421         (emutls_finish): Finalize emutls control variables.
8422         * toplev.c (compile_file): Move the call to emutls_finish ()
8423         before varpool_assemble_pending_decls ().
8424
8425 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
8426
8427         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
8428         added to the preprocessor condition.
8429
8430 2010-05-24  Paul Brook  <paul@codesourcery.com>
8431
8432         * gengtype-lex.l: Add HARD_REG_SET.
8433         * expr.c (expand_expr_real_1): Record writes to hard registers.
8434         * function.c (rtl_data): Add asm_clobbers.
8435         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
8436         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
8437         Use crtl->asm_clobbers.
8438
8439 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8440
8441         * doc/makefile.texi (Makefile): Mention stages 'profile'
8442         and 'feedback' for profiledbootstrap.
8443
8444 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
8445
8446         PR target/44245
8447         * config/i386/i386.c (def_builtin): Properly check
8448         OPTION_MASK_ISA_64BIT.
8449
8450 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
8451
8452         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
8453         typedefs with different but compatible types.  Allow duplicate
8454         typedefs with the same type except for pedantic non-C1X, but give
8455         warning for variably modified types.
8456         * c-typeck.c (tagged_types_tu_compatible_p,
8457         function_types_compatible_p, type_lists_compatible_p,
8458         comptypes_internal): Add parameter different_types_p; set
8459         *different_types_p for different but compatible types.  All
8460         callers changed.
8461         (comptypes_check_different_types): New.
8462         * c-tree.h (comptypes_check_different_types): Declare.
8463
8464 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8465
8466         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
8467         * jump.c: Include basic-block.h.
8468         * profile.c: Likewise.
8469         * tree-profile.c: Likewise.
8470         * coverage.c: Likewise.
8471         * basic-block.h (optimize_function_for_size_p): Move to function.h.
8472         (optimize_function_for_speed_p): Likewise.
8473         * function.h (optimize_function_for_size_p,
8474         optimize_function_for_speed_p): Moved here from basic-block.h.
8475         * Makefile.in: Update dependencies.
8476
8477 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8478
8479         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
8480         before calling make; allow override through $MAKE.
8481         * doc/invoke.texi (Optimize Options): Document override.
8482
8483 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
8484
8485         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
8486         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8487         (rs6000_mode_dependent_address_ptr): Make static.
8488         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8489         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
8490         Remove.
8491
8492 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
8493
8494         PR target/43869
8495         * config/i386/i386.c: Make sure that the correct regparm is passed.
8496
8497 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
8498
8499         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
8500         * sbitmap.c: ...to here to internalize sbitmap element access.
8501         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
8502         Explain why basic-block.h is included.
8503         * function.h: Include tm.h for CUMULATIVE_ARGS.
8504         * Makefile.in: Update dependencies.
8505
8506 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8507
8508         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
8509         New core types.
8510         * sbitmap.h (struct sbitmap_def): Do not typedef here.
8511         * sbitmap.c: Include sbitmap.h.
8512         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
8513         hard-reg-set.h.  Split everything related to regsets out from here...
8514         * regset.h: ...to here.  New file.
8515         * df.h: Include regset.h and sbitmap.h.
8516         * tree-flow.h: Likewise.
8517         * cfgloop.h: Likewise.
8518         * except.h: Do not include sbitmap.h.  Include hashtab.h.
8519         * cgraph.h: Include vec.h and function.h.
8520         * reload.h (struct insn_chain): Change types of live_throughout
8521         and dead_or_set from regset_head to bitmap_head.
8522         (compute_use_by_pseudos): Be defined also if regset.h is not included.
8523         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
8524         spilled_regs from regset_head to bitmap_head to avoid dependency
8525         in regset.h.
8526         * sel-sched-ir.h: Include regset.h.
8527         * reload.c: Include df.h before reload.h.
8528         * caller-save.c: Likewise.
8529         * reload1.c: Likewise.
8530         * ira.c: Likewise.
8531         (mark_elimination): Update type of r to bitmap, consistent with
8532         DF_LR_IN.
8533         * dominance.c: Include bitmap.h.
8534         * modulo-sched.c: Include df.h.
8535         * cfganal.c: Include bitmap.h and sbitmap.h.
8536         * cfgbuild.c: Include sbitmap.h.
8537         * lcm.c: Include sbitmap.h.
8538         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
8539         * domwalk.c: Include sbitmap.h, exclude ggc.h.
8540         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
8541         * cselib.c: Include bitmap.h.
8542         * tree-optimize.c: Include regset.h.
8543         * stmt.c: Include bitmap.h.
8544         * Makefile.in: Update dependencies.
8545
8546 2010-05-22  Jan Hubicka  <jh@suse.cz>
8547
8548         * cgraph.h (struct varpool_node): Add same_comdat_group.
8549         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
8550         pointer.
8551         (output_varpool): Update call of lto_output_varpool_node.
8552         (input_varpool): Read same_comdat_group pointer.
8553         (input_varpool_1): Fixup same_comdat_group pointer.
8554         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
8555         group is needed, all are.
8556         * varpool.c (varpool_remove_node): Remove node from same comdat group
8557         linklist too.
8558         (varpool_analyze_pending_decls): Walk same comdat groups.
8559
8560 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
8561
8562         * rtl.h (union rtunion_def): Remove rt_bit member.
8563         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
8564         * print-rtl (print_rtx): Do not print the member.
8565         * gengtype.c (adjust_field_rtx_def): Do not handle it.
8566         * gengenrtl.c (type_from_format): Likewise.
8567         (accessor_from_format): Likewise.
8568
8569 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
8570
8571         * dbgcnt.c: Include toplev.h instead of errors.h.
8572         * ira-emit.c: Don't include errors.h.
8573         * ira.c: Include toplev.h instead of errors.h.
8574         * lto-compress.c: Include toplev.h instead of errors.h.
8575         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
8576         ira.o, dbgcnt.o): Update dependencies.
8577
8578 2010-05-22  Richard Guenther  <rguenther@suse.de>
8579
8580         * gimple.c (gimple_types_compatible_p): Check type qualifications
8581         before merging pointer to complete and pointer to incomplete type.
8582         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
8583         we use our own resolution algorithm.  The gold linker plugin
8584         doesn't do the job we want it to do here.
8585
8586 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
8587
8588         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8589         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8590         (sparc_mode_dependent_address_p): New function.
8591
8592 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8593
8594         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
8595
8596         * timevar.c: Do not include any core headers.
8597         (timevar_print): De-i18n-ize.
8598         (print_time): Likewise.
8599         * timevar.h (timevar_push, timevar_pop): Make inline functions.
8600
8601 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
8602
8603         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
8604         langhooks-def.h.
8605         (diagnostic_initialize): Initialize x_data not last_function.
8606         (diagnostic_report_current_function): Move to tree-diagnostic.c.
8607         (default_diagnostic_starter): Call
8608         diagnostic_report_current_module not
8609         diagnostic_report_current_function.
8610         (diagnostic_report_diagnostic): Initialize x_data not
8611         abstract_origin.
8612         (verbatim): Likewise.
8613         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
8614         x_data.
8615         (struct diagnostic_context): Change last_function to x_data.
8616         (diagnostic_auxiliary_data): Replace with
8617         diagnostic_context_auxiliary_data and
8618         diagnostic_info_auxiliary_data.
8619         (diagnostic_last_function_changed, diagnostic_set_last_function,
8620         diagnostic_report_current_function): Move to tree-diagnostic.h.
8621         (print_declaration, dump_generic_node, print_generic_stmt,
8622         print_generic_stmt_indented, print_generic_expr,
8623         print_generic_decl, debug_c_tree, dump_omp_clauses,
8624         print_call_name, debug_generic_expr, debug_generic_stmt,
8625         debug_tree_chain, default_tree_printer): Move to
8626         tree-pretty-print.h.
8627         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
8628         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
8629         gimple-pretty-print.h.
8630         * pretty-print.c: Don't include tree.h
8631         (pp_base_format): Don't handle %K here.
8632         (pp_base_tree_identifier): Move to tree-pretty-print.c.
8633         * pretty-print.h (text_info): Change abstract_origin to x_data.
8634         (pp_tree_identifier, pp_unsupported_tree,
8635         pp_base_tree_identifier): Move to tree-pretty-print.h.
8636         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
8637         tree-pretty-print.h: New files.
8638         * tree-pretty-print.c: Include tree-pretty-print.h.
8639         (percent_K_format): New.  Moved from pretty-print.c.
8640         (pp_base_tree_identifier): Move from pretty-print.c.
8641         * c-objc-common.c: Include tree-pretty-print.h.
8642         (c_tree_printer): Handle %K here.
8643         * langhooks.c: Include tree-diagnostic.h.
8644         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
8645         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
8646         (default_tree_printer): Handle %K using percent_K_format.
8647         (general_init): Use default_tree_diagnostic_starter.
8648         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
8649         (free_lang_data): Use default_tree_diagnostic_starter.
8650         * c-pretty-print.c: Include tree-pretty-print.h.
8651         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8652         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8653         * dwarf2out.c: Include tree-pretty-print.h.
8654         * except.c: Include tree-pretty-print.h.
8655         * gimple-pretty-print.c: Include tree-pretty-print.h and
8656         gimple-pretty-print.h.
8657         * gimplify.c: Include tree-pretty-print.h.
8658         * graphite-poly.c: Include tree-pretty-print.h and
8659         gimple-pretty-print.h.
8660         * ipa-cp.c: Include tree-pretty-print.h.
8661         * ipa-inline.c: Include gimple-pretty-print.h.
8662         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8663         * ipa-pure-const.c: Include gimple-pretty-print.h.
8664         * ipa-struct-reorg.c: Include tree-pretty-print.h and
8665         gimple-pretty-print.h.
8666         * ipa-type-escape.c: Include tree-pretty-print.h.
8667         * print-rtl.c: Include tree-pretty-print.h.
8668         * print-tree.c: Include gimple-pretty-print.h.
8669         * sese.c: Include tree-pretty-print.h.
8670         * tree-affine.c: Include tree-pretty-print.h.
8671         * tree-browser.c: Include tree-pretty-print.h.
8672         * tree-call-cdce.c: Include gimple-pretty-print.h.
8673         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
8674         * tree-chrec.c: Include tree-pretty-print.h.
8675         * tree-data-ref.c: Include tree-pretty-print.h and
8676         gimple-pretty-print.h.
8677         * tree-dfa.c: Include tree-pretty-print.h.
8678         * tree-if-conv.c: Include tree-pretty-print.h and
8679         gimple-pretty-print.h.
8680         * tree-inline.c: Include tree-pretty-print.h.
8681         * tree-into-ssa.c: Include tree-pretty-print.h and
8682         gimple-pretty-print.h.
8683         * tree-nrv.c: Include tree-pretty-print.h.
8684         * tree-object-size.c: Include tree-pretty-print.h and
8685         gimple-pretty-print.h.
8686         * tree-outof-ssa.c: Include tree-pretty-print.h and
8687         gimple-pretty-print.h.
8688         * tree-parloops.c: Include tree-pretty-print.h and
8689         gimple-pretty-print.h.
8690         * tree-predcom.c: Include tree-pretty-print.h and
8691         gimple-pretty-print.h.
8692         * tree-scalar-evolution.c: Include tree-pretty-print.h and
8693         gimple-pretty-print.h.
8694         * tree-sra.c: Include tree-pretty-print.h.
8695         * tree-ssa-address.c: Include tree-pretty-print.h.
8696         * tree-ssa-alias.c: Include tree-pretty-print.h.
8697         * tree-ssa-ccp.c: Include tree-pretty-print.h and
8698         gimple-pretty-print.h.
8699         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
8700         * tree-ssa-copy.c: Include tree-pretty-print.h and
8701         gimple-pretty-print.h.
8702         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
8703         * tree-ssa-dce.c: Include tree-pretty-print.h and
8704         gimple-pretty-print.h.
8705         * tree-ssa-dom.c: Include tree-pretty-print.h and
8706         gimple-pretty-print.h.
8707         * tree-ssa-dse.c: Include gimple-pretty-print.h.
8708         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
8709         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
8710         * tree-ssa-live.c: Include tree-pretty-print.h and
8711         gimple-pretty-print.h.
8712         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
8713         gimple-pretty-print.h.
8714         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
8715         gimple-pretty-print.h.
8716         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
8717         gimple-pretty-print.h.
8718         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
8719         gimple-pretty-print.h.
8720         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
8721         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
8722         * tree-ssa-operands.c: Include tree-pretty-print.h and
8723         gimple-pretty-print.h.
8724         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
8725         gimple-pretty-print.h.
8726         * tree-ssa-pre.c: Include tree-pretty-print.h and
8727         gimple-pretty-print.h.
8728         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
8729         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
8730         gimple-pretty-print.h.
8731         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
8732         gimple-pretty-print.h.
8733         * tree-ssa-sink.c: Include gimple-pretty-print.h.
8734         * tree-ssa-ter.c: Include tree-pretty-print.h and
8735         gimple-pretty-print.h.
8736         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
8737         * tree-ssa.c: Include tree-pretty-print.h and
8738         gimple-pretty-print.h.
8739         * tree-stdarg.c: Include gimple-pretty-print.h.
8740         * tree-switch-conversion.c: Include gimple-pretty-print.h.
8741         * tree-tailcall.c: Include tree-pretty-print.h and
8742         gimple-pretty-print.h.
8743         * tree-vect-data-refs.c: Include tree-pretty-print.h and
8744         gimple-pretty-print.h.
8745         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
8746         gimple-pretty-print.h.
8747         * tree-vect-loop.c: Include tree-pretty-print.h and
8748         gimple-pretty-print.h.
8749         * tree-vect-patterns.c: Include gimple-pretty-print.h.
8750         * tree-vect-slp.c: Include tree-pretty-print.h and
8751         gimple-pretty-print.h.
8752         * tree-vect-stmts.c: Include tree-pretty-print.h and
8753         gimple-pretty-print.h.
8754         * tree-vectorizer.c: Include tree-pretty-print.h.
8755         * tree-vrp.c: Include tree-pretty-print.h and
8756         gimple-pretty-print.h.
8757         * value-prof.c: Include tree-pretty-print.h and
8758         gimple-pretty-print.h.
8759         * var-tracking.c: Include tree-pretty-print.h.
8760         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
8761         (tree-diagnostic.o): New dependencies.
8762         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
8763         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
8764         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
8765         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
8766         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
8767         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
8768         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
8769         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
8770         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
8771         tree-ssa-address.o, tree-ssa-loop-niter.o,
8772         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
8773         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
8774         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
8775         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
8776         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
8777         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
8778         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
8779         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
8780         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
8781         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
8782         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
8783         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
8784         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
8785         tree-switch-conversion.o, var-tracking.o, value-prof.o,
8786         cfgexpand.o, pretty-print.o): Update dependencies.
8787
8788 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
8789
8790         * tree-ssa-structalias.c: Remove tm_p.h from include.
8791
8792 2010-05-21  Jeff Law  <law@redhat.com>
8793
8794         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
8795
8796 2010-05-21  Jason Merrill  <jason@redhat.com>
8797
8798         * tree-eh.c (cleanup_is_dead_in): New.
8799         (lower_try_finally): Don't generate a dead cleanup region.
8800         (lower_cleanup): Likewise.
8801
8802 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8803
8804         PR debug/44223
8805         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
8806         unchain each use from the cyclic next_regno_use chain first.
8807
8808 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8809
8810         * real: Do not include gmp.h, mpfr.h, and mpc.h.
8811         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
8812         (real_value_negate, real_value_abs): New prototypes.
8813         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
8814         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
8815         new include file for interface between MPFR and REAL_VALUE_TYPE.
8816         * real.c: Include realmpfr.h.
8817         (real_arithmetic2): Remove legacy function.
8818         (real_value_negate): New.
8819         (real_value_abs): New.
8820         (mfpr_from_real, real_from_mpfr): Move from here...
8821         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
8822         * builtins.c: Include realmpfr.h.
8823         * fold-const.c: Include realmpfr.h.
8824         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
8825         (fold_negate_const): Likewise.
8826         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
8827         * toplev.c: Include realmpfr.h.
8828         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
8829         and real_value_negate.
8830         * fixed-value.c (check_real_for_fixed_mode): Likewise.
8831         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
8832         (vfp3_const_double_index): Likewise.
8833         (arm_print_operand): Likewise.
8834         * Makefile.in: Update dependencies.
8835
8836 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8837
8838         * config/s390/s390.c (override_options): Increase the default
8839         of max-completely-peel-times.
8840
8841 2010-05-21  Julian Brown  <julian@codesourcery.com>
8842             Mark Mitchell  <mark@codesourcery.com>
8843
8844         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
8845         sibling calls for Thumb-1.
8846         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
8847         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
8848         Thumb-2.
8849         (*call_insn, *call_value_insn): Don't use for Thumb-2.
8850         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
8851         for Thumb-2.
8852         (return): New expander.
8853         (*arm_return): New name for ARM return insn.
8854         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
8855
8856 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
8857
8858         * config.gcc (sparc64-*-rtems*): New target.
8859
8860 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8861
8862         * tree.c (build_function_decl_skip_args): Fix grammar.
8863         (build_function_type_list_1): Fix typos, adjust formatting.
8864
8865 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
8866
8867         * tree.h: Include real.h and fixed-value.h as basic datatypes.
8868         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
8869         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
8870         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
8871         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
8872         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
8873         tree-pretty-print.c, tree-loop-distribution.c,
8874         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
8875         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
8876         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
8877         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
8878         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
8879         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
8880         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
8881         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
8882         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
8883         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
8884         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
8885         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
8886         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
8887         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
8888         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
8889         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
8890         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
8891         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
8892         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
8893         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
8894         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
8895         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
8896         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
8897         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
8898         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
8899         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
8900         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
8901         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
8902         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
8903         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
8904         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
8905         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
8906         config/score/score7.c, config/score/score.c, config/arm/arm.c,
8907         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
8908         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
8909         config/bfin/bfin.c: Clean up redundant includes.
8910         * Makefile.in: Update accordingly.
8911
8912 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
8913
8914         PR middle-end/44204
8915         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
8916         statement has no arguments.
8917
8918 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
8919
8920         PR/44139
8921         * varasm.c (emutls_decl): Merge attributes to new decl.
8922
8923 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
8924
8925         PR middle-end/44101
8926         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
8927         around the uniquized constructor if its type requires a conversion.
8928
8929 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
8930
8931         PR debug/44205
8932         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
8933         at -O0 goto_locus of any of the incoming edges differs from
8934         goto_locus of outgoing edge, or gimple_location of any of the
8935         labels differs.
8936
8937 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
8938
8939         * ira.c (ira_non_ordered_class_hard_regs): Define.
8940         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
8941         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
8942         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
8943         cost of unaligned hard regs when allocating multi-reg pseudos.
8944
8945 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
8946
8947         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
8948         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
8949         for TARGET_NO_FLOAT.
8950         * config/mips/mips.c (mips_file_start): Expand conditional expression
8951         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
8952         (mips_override_options): Move -mno-float override -msoft-float and
8953         -mhard-float.
8954         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
8955         Condition(TARGET_SUPPORTS_NO_FLOAT).
8956         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
8957         __mips_no_float here.
8958         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
8959         (TARGET_SUPPORTS_NO_FLOAT): Define.
8960         * config/mips/sdemtk.opt: Delete.
8961
8962 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
8963
8964         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
8965
8966 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
8967
8968         PR target/43733
8969         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
8970         * configure: Regenerate.
8971         * config.in: Regenerate.
8972         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
8973         instead of sahf only for 64bit targets.
8974
8975 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8976
8977         PR debug/44178
8978         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
8979         setup_ref_regs for DEBUG_INSNs.
8980
8981 2010-05-20  Jan Hubicka  <jh@suse.cz>
8982
8983         PR middle-end/44197
8984         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
8985
8986 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
8987
8988         PR bootstrap/43870
8989         * df-scan.c (df_ref_compare): Stabilize sort.
8990
8991 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
8992
8993         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
8994         argument.  Don't use DW_OP_piece if offset is non-zero,
8995         put offset into second DW_OP_bit_piece argument.
8996         (dw_sra_loc_expr): Adjust callers.  For memory expressions
8997         compute offset.
8998
8999 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
9000
9001         PR target/44202
9002         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
9003         settings for 16-bit-constant "addo" alternative.
9004
9005 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
9006
9007         * config/mips/mips-dsp.md (add<DSPV:mode>3,
9008         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
9009
9010         PR target/43764
9011         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
9012         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
9013         Use it.
9014
9015 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
9016
9017         * diagnostic.c (FLOAT, FFS): Don't undefine.
9018         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
9019         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
9020         include ordering.
9021
9022 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
9023
9024         * combine.c (propagate_for_debug): Call make_compound_operation
9025         on the source value.
9026         (try_combine): When implementing a split chosen by find_split_point,
9027         either copy i2src or set it to null.  Assert that i2src is not null
9028         before substituting into CALL_INSN_FUNCTION_USAGE.
9029
9030 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
9031
9032         * double-int.h (double_int_ior): New function.
9033         * tree.h (build_int_cst_wide_type): Remove.
9034         * tree.c (build_int_cst_wide_type): Remove.
9035         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
9036         of build_int_cst_wide_type.
9037         * stor-layout.c (set_sizetype): (Ditto.).
9038         * dojump.c (do_jump): Use build_int_cstu instead of
9039         build_int_cst_wide_type.
9040
9041 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
9042
9043         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
9044         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
9045         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
9046         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
9047         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
9048         propagate the 'data' argument to copy_tree_r.
9049         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
9050         Propagate 'data' argument to walk_tree.
9051         (copy_if_shared): New function.
9052         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
9053         (unmark_visited): New function.
9054         (unshare_body): Call copy_if_shared instead of doing it manually.
9055         (unvisit_body): Call unmark_visited instead of doing it manually.
9056
9057 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
9058
9059         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
9060         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
9061         * hooks.c: Likewise.
9062         * target-def.h (TARGET_FOLD_BUILTIN): Define to
9063         hook_tree_tree_int_treep_bool_null.
9064         * target.h (struct gcc_target): Update signature of fold_builtin
9065         field.
9066         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
9067         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
9068         instead of the call expression.
9069         (fold_builtin_call_array): Pass n and argarray directly.
9070         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
9071         consing a list.
9072         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
9073         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
9074         `i' and use it in place of `arity'.
9075         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
9076         Dereference `args' directly.
9077         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
9078
9079 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9080
9081         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9082         3dnow, sse3, sse2.
9083         (Directives): Document optional dg-require-effective-target
9084         selector.
9085
9086 2010-05-19  Richard Guenther  <rguenther@suse.de>
9087
9088         PR lto/44196
9089         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
9090
9091 2010-05-19  Richard Guenther  <rguenther@suse.de>
9092
9093         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
9094         * common.opt (fwhopr=): New.
9095         * opts.c (common_handle_option): Handle OPT_fwhopr.
9096         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
9097         * collect2.c (main): Match -fwhopr*.
9098         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
9099         Execute ltrans stage in parallel when jobs is bigger than 1.
9100
9101 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9102
9103         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
9104         pentiumpro on Solaris 8/x86 with Sun as.
9105         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
9106         hidden alias bug.
9107         (gcc_cv_as_ix86_quad): Check for .quad directive.
9108         * configure: Regenerate.
9109         * config.in: Regenerate.
9110         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
9111
9112 2010-05-19  Martin Jambor  <mjambor@suse.cz>
9113
9114         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
9115         also for indirect edges.  Actual printing moved...
9116         (ipa_print_node_jump_functions_for_edge): ...here.
9117         (ipa_compute_jump_functions): Renamed to
9118         ipa_compute_jump_functions_for_edge and made static.
9119         (ipa_compute_jump_functions): New function.
9120         (make_edge_direct_to_target): Check if the number of arguments on
9121         the newly direct edge is the same as the number of parametrs of
9122         the callee.
9123         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
9124         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
9125         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
9126         analysis functions unconditionally, call the new
9127         ipa_analyze_params_uses on the node instead of every edge.
9128
9129 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
9130
9131         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
9132         to tree.
9133         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
9134         also checks for a constant int vs.  non-constant but
9135         loop-invariant steps.
9136         (find_or_create_group): Change the sort algorithm to only consider
9137         steps that are constant ints.
9138         (idx_analyze_ref): Adopt code to handle a tree instead of a
9139         HOST_WIDE_INT for step.
9140         (gather_memory_references_ref): Handle tree instead of int and be
9141         prepared to see a NULL_TREE.
9142         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
9143         prefetches if the step cannot be calculated at compile time.
9144         (issue_prefetch_ref): Issue prefetches for non-constant but
9145         loop-invariant steps.
9146
9147 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9148
9149         Revert:
9150         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9151
9152         * tree.h (build_call_list): Remove.
9153         * tree.c (build_call_list): Remove.
9154
9155 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
9156
9157         * tree.h (build_call_list): Remove.
9158         * tree.c (build_call_list): Remove.
9159
9160 2010-05-18  Jan Hubicka  <jh@suse.cz>
9161
9162         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
9163
9164 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
9165
9166         PR rtl-optimization/43332
9167         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
9168
9169 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
9170
9171         * tree.h (build_int_cstu): Implement as static inline.
9172         * tree.c (build_int_cstu): Remove function.
9173         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
9174         sign extended.
9175
9176 2010-05-18  Richard Guenther  <rguenther@suse.de>
9177
9178         PR lto/44143
9179         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
9180         (debug): Initialize from -save-temps.
9181         (collect_execute): Print command-line when verbose.
9182         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
9183         for ltrans invocation.  Produce -dumpbase flag again.
9184         (process_args): Remove.
9185         (main): Simplify.
9186         * collect2.c (maybe_run_lto_and_relink): Only pass object
9187         files to lto-wrapper.
9188         * gcc.c (LINK_COMMAND_SPEC): Likewise.
9189
9190 2010-05-18  Jan Hubicka  <jh@suse.cz>
9191
9192         * opts.c (decode_options): Do not disable whopr at ipa_cp.
9193         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
9194
9195 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9196
9197         PR lto/44184
9198         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
9199         in a GIMPLE_ASM.
9200         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
9201         in a GIMPLE_ASM.
9202
9203 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
9204
9205         PR debug/41371
9206         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
9207         rtx_equal_p inline.
9208
9209 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
9210
9211         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
9212         lto-macho as lto_binary_reader.
9213
9214         * darwin.c (darwin_asm_named_section): Do not add assembler comment
9215         after .section directive; just print it before the directive instead.
9216
9217 2010-05-17  Jan Hubicka  <jh@suse.cz>
9218
9219         * cgraph.c (cgraph_create_virtual_clone): Only check
9220         versionable_function_p when not in wpa and checking is enabled.
9221         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
9222         there are no more functions to materialize.
9223
9224 2010-05-17  Jan Hubicka  <jh@suse.cz>
9225
9226         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
9227         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
9228         New functions.
9229         (output_cgraph): Call output_cgraph_opt_summary.
9230         (input_cgrpah): Call input_cgraph_opt_summary.
9231         (output_cgraph_opt_summary_p, output_node_opt_summary,
9232         input_node_opt_summary, input_cgraph_opt_section): New functions.
9233         * lto-section-in.c (lto_section_name): Add cgraphopt.
9234         * tree-inline.c (tree_function_versioning): Handle parm_num.
9235         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
9236         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
9237
9238 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9239
9240         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
9241         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
9242         the insn to prefetch ratio heuristic to loops with known trip count.
9243
9244 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
9245
9246         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
9247         (schedule_prefetches): Do not generate a prefetch if the unroll factor
9248         is far from what is required by the prefetch.
9249
9250 2010-05-17  Jan Hubicka  <jh@suse.cz>
9251
9252         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
9253         (ipcp_estimate_growth): Likewise.
9254         (ipcp_const_param_count): Likewise.
9255         (ipcp_insert_stage): Likewise.
9256         * ipa-prop.c (visit_load_for_mod_analysis): New function.
9257         (visit_store_addr_for_mod_analysis): Set used flag.
9258         (ipa_detect_param_modifications): Set used flag for SSE params;
9259         update use of walk_stmt_load_store_addr_ops.
9260         (ipa_print_node_params): Print used flag.
9261         (ipa_write_node_info): Stream used flag.
9262         (ipa_read_node_info): Likewise.
9263         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
9264         (ipa_is_param_used): New function.
9265         (lto_ipa_fixup_call_notes): Remove unused declaration.
9266
9267 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9268
9269         PR target/44074
9270         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
9271         * configure: Regenerate.
9272         * config.in: Regenerate.
9273         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
9274         !HAVE_AS_IX86_REP_LOCK_PREFIX.
9275         Don't emit whitespace.
9276         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
9277         (*rep_movsi): Likewise.
9278         (*rep_movsi_rex64): Likewise.
9279         (*rep_movqi): Likewise.
9280         (*rep_movqi_rex64): Likewise.
9281         (*rep_stosdi_rex64): Likewise.
9282         (*rep_stossi): Likewise.
9283         (*rep_stossi_rex64): Likewise.
9284         (*rep_stosqi): Likewise.
9285         (*rep_stosqi_rex64): Likewise.
9286         (*cmpstrnqi_nz_1): Use {%;} after repz.
9287         (*cmpstrnqi_nz_rex_1): Likewise.
9288         (*cmpstrnqi_1): Likewise.
9289         (*cmpstrnqi_rex_1): Likewise.
9290         (*strlenqi_1): Use {%;} after repnz.
9291         (*strlenqi_rex_1): Likewise.
9292         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
9293         (*sync_compare_and_swap<mode>): Likewise.
9294         (sync_double_compare_and_swap<mode>): Likewise.
9295         (*sync_double_compare_and_swapdi_pic): Likewise.
9296         (sync_old_add<mode>): Likewise.
9297         (sync_add<mode>): Likewise.
9298         (sync_sub<mode>): Likewise.
9299         (sync_<code><mode>): Likewise.
9300
9301 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9302
9303         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
9304         otr_token and polymorphic.
9305         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
9306         (cgraph_clone_edge): Copy the above fields.
9307         * tree.c (get_binfo_at_offset): New function.
9308         * tree.h (get_binfo_at_offset): Declare.
9309         * ipa-prop.h (enum jump_func_type): Added known_type jump function
9310         type, reordered items, updated comments.
9311         (union jump_func_value): Added base_type field, reordered fields.
9312         (enum ipa_lattice_type): Moved down in the file.
9313         (struct ipa_param_descriptor): New field polymorphic.
9314         (ipa_is_param_polymorphic): New function.
9315         * ipa-prop.c: Include gimple.h and gimple-fold.h.
9316         (ipa_print_node_jump_functions): Print known type jump functions.
9317         (compute_complex_pass_through): Renamed to...
9318         (compute_complex_assign_jump_func): this.
9319         (compute_complex_ancestor_jump_func): New function.
9320         (compute_known_type_jump_func): Likewise.
9321         (compute_scalar_jump_functions): Create known type and complex ancestor
9322         jump functions.
9323         (ipa_note_param_call): New parameter polymorphic, set the corresponding
9324         flag in the call note accordingly.
9325         (ipa_analyze_call_uses): Renamed to...
9326         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
9327         variable var only in the block where it is used.
9328         (ipa_analyze_virtual_call_uses): New function.
9329         (ipa_analyze_call_uses): Likewise.
9330         (combine_known_type_and_ancestor_jfs): Likewise.
9331         (update_jump_functions_after_inlining): Implemented handling of a
9332         number of new jump function types combination.
9333         (print_edge_addition_message): Removed.
9334         (make_edge_direct_to_target): New function.
9335         (try_make_edge_direct_simple_call): Likewise.
9336         (try_make_edge_direct_virtual_call): Likewise.
9337         (update_call_notes_after_inlining): Renamed to...
9338         (update_indirect_edges_after_inlining): this.  Moved edge creation for
9339         indirect calls to try_make_edge_direct_simple_call, also calls
9340         try_make_edge_direct_virtual_call for virtual calls.
9341         (ipa_print_node_params): Changed the header message.
9342         (ipa_write_jump_function): Stream also known type jump functions.
9343         (ipa_read_jump_function): Likewise.
9344         (ipa_write_indirect_edge_info): Stream new fields in
9345         cgraph_indirect_call_info.
9346         (ipa_read_indirect_edge_info): Likewise.
9347         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
9348         GIMPLE_FOLD_H.
9349
9350 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9351
9352         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
9353
9354 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9355
9356         * tree.h (CALL_EXPR_ARGS): Delete.
9357         (call_expr_arglist): Delete.
9358         * tree.c (call_expr_arglist): Delete.
9359         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
9360         targetm.fold_builtin.
9361         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
9362         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
9363         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
9364         arglist parameter.  Use CALL_EXPR_ARG.
9365         (picochip_expand_builtin_3op): Likewise.
9366         (picochip_expand_builtin_2opvoid): Likewise.
9367         (picochip_expand_array_get): Likewise.
9368         (picochip_expand_array_put): Likewise.
9369         (picochip_expand_array_testport): Likewise.
9370         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
9371         rather than arglist.
9372         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
9373         CALL_EXPR_ARGS.
9374         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
9375         than TREE_VALUE and TREE_CHAIN.
9376         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
9377         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
9378         the arglist.
9379
9380 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9381
9382         PR bootstrap/42347
9383         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
9384         to have no fallthru edge.
9385
9386         PR middle-end/44102
9387         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
9388         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
9389         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
9390         add BARRIER after previous bb if needed.
9391
9392 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
9393
9394         * tree.c (build_function_type_list_1): Remove bogus assert condition.
9395
9396 2010-05-17  Alan Modra  <amodra@gmail.com>
9397
9398         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
9399         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
9400         with copy_reg rtx param.
9401         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
9402         Correct cases where code for ABI_V4 did not initialise the reg
9403         used to access frame.  Also leave frame_reg_rtx as sp for large
9404         frames that save no regs.
9405
9406 2010-05-17  Martin Jambor  <mjambor@suse.cz>
9407
9408         PR middle-end/44133
9409         * tree-sra.c (create_access_replacement): New parameter rename, mark
9410         the replaement for renaming only when it is true.
9411         (get_access_replacement): Pass true in the rename parameter of
9412         create_access_replacement.
9413         (get_unrenamed_access_replacement): New function.
9414         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
9415         replacement declaration from it.
9416
9417 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
9418
9419         * function.c (try_fit_stack_local, add_frame_space): New static
9420         functions.
9421         (assign_stack_local_1): Use them.  Look for opportunities to use
9422         space previously wasted on alignment.
9423         * function.h (struct frame_space): New.
9424         (struct rtl_data): Add FRAME_SPACE_LIST member.
9425         * reload1.c (something_was_spilled): New static variable.
9426         (alter_reg): Set it.
9427         (reload): Test it in addition to testing if the frame size changed.
9428
9429 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
9430
9431         * config/s390/s390.c: Define sane prefetch settings and activate
9432         flag_prefetch_loop_arrays on -O3.
9433         * config/s390/s390.h: Declare that read can use write prefetch.
9434
9435 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
9436
9437         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
9438         build.
9439
9440 2010-05-16  Jan Hubicka  <jh@suse.cz>
9441
9442         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
9443         function body; do not check stdarg field of struct function.
9444
9445 2010-05-16  Jan Hubicka  <jh@suse.cz>
9446
9447         * cgraph.c (dump_cgraph_node): Dump versionable flag.
9448         * cgraph.h (cgraph_local_info): Add versionable flag.
9449         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
9450         (ipcp_versionable_function_p): Use it.
9451         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
9452         versionable flag.
9453
9454 2010-05-16  Jan Hubicka  <jh@suse.cz>
9455
9456         * cgraph.c (cgraph_clone_node): Take decl argument and insert
9457         clone into hash when it is different from orig.
9458         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
9459         * cgraph.h (cgraph_clone_node): Update prototype.
9460         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
9461         (lto_cgraph_encoder_delete): Delete body map.
9462         (lto_cgraph_encoder_size): Move to header.
9463         (lto_cgraph_encoder_encode_body_p,
9464         lto_set_cgraph_encoder_encode_body): New.
9465         (lto_output_node): Do not take written_decls argument; output clone_of
9466         pointer.
9467         (add_node_to): Add include_body_argument; call
9468         lto_set_cgraph_encoder_encode_body on master of the clone.
9469         (add_references): Update use of add_node_to.
9470         (compute_ltrans_boundary): Likewise.
9471         (output_cgraph): Do not create written_decls bitmap.
9472         (input_node): Take nodes argument; stream in clone_of correctly.
9473         (input_cgraph_1): Update use of input_node.
9474         * lto-streamer-out.c (lto_output): Use encoder info to decide
9475         what bodies to output.
9476         * ipa-inline.c (cgraph_clone_inlined_nodes,
9477         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
9478         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
9479         (lto_cgraph_encoder_size): Define here.
9480         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
9481         Declare.
9482
9483 2010-05-16  Richard Guenther  <rguenther@suse.de>
9484
9485         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
9486         -fipa-type-escape.
9487         * ipa-type-escape.c (gate_type_escape_vars): Run when
9488         -fipa-struct-reorg runs.
9489         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
9490         * common.opt (fipa-type-escape): Remove.
9491
9492 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9493
9494         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
9495         (decode_options): Likewise.
9496         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
9497
9498 2010-05-16  Jan Hubicka  <jh@suse.cz>
9499
9500         * ipa.c (function_and_variable_visibility): Also bring local all
9501         aliases.
9502
9503 2010-05-16  Richard Guenther  <rguenther@suse.de>
9504
9505         * alias.c (nonoverlapping_memrefs_p): Remove use of
9506         IPA type-escape information.
9507
9508 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
9509
9510         * c-common.c (c_common_reswords): Add _Static_assert for C.
9511         * c-parser.c (c_token_starts_declaration,
9512         c_parser_next_token_starts_declaration,
9513         c_parser_static_assert_declaration_no_semi,
9514         c_parser_static_assert_declaration): New.
9515         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
9516         Handle static assertions if static_assert_ok.
9517         (c_parser_external_declaration, c_parser_declaration_or_fndef,
9518         c_parser_compound_statement_nostart, c_parser_label,
9519         c_parser_for_statement, c_parser_objc_methodprotolist,
9520         c_parser_omp_for_loop): All callers of
9521         c_parser_declaration_or_fndef changed.
9522         (c_parser_struct_declaration): Handle static assertions.
9523         (c_parser_compound_statement_nostart): Use
9524         c_parser_next_token_starts_declaration and
9525         c_token_starts_declaration to detect start of declarations.
9526         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
9527         Likewise.
9528
9529 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
9530
9531         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
9532         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9533         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9534         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9535         (mmix_function_outgoing_value): Rename to...
9536         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
9537         (mmix_function_value_regno_p): Make static.
9538         (mmix_libcall_value): New function.
9539         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
9540         mmix_function_value_regno_p): Remove declaration.
9541
9542 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
9543
9544         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
9545         BUILT_IN_ALLOCA if stack checking is enabled.
9546
9547 2010-05-16  Richard Guenther  <rguenther@suse.de>
9548
9549         * var-tracking.c (vars_copy_1): Inline ...
9550         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9551         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
9552         (variable_merge_over_cur): Adjust.  Merge asserts.
9553         (variable_merge_over_src): Likewise.
9554         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
9555         (variable_post_merge_new_vals): Merge asserts.
9556         (variable_post_merge_perm_vals): Likewise.
9557         (find_mem_expr_in_1pdv): Likewise.
9558         (dataflow_set_different_value): Remove.
9559         (onepart_variable_different_p): Merge asserts.
9560         (variable_different_p): Likewise.
9561         (dataflow_set_different_1): Inline ...
9562         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
9563         (emit_notes_for_differences_1): Merge asserts.
9564
9565 2010-05-16  Richard Guenther  <rguenther@suse.de>
9566
9567         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
9568         * optabs.c (libfunc_decl_hash): Likewise.
9569         * varasm.c (emutls_decl): Likewise.
9570
9571 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
9572
9573         * c-decl.c: Don't include gimple.h.
9574         (merge_decls): Do not copy gimple_body.
9575
9576 2010-05-15  Jason Merrill  <jason@redhat.com>
9577
9578         * c.opt: Add -fnothrow-opt.
9579
9580 2010-05-15  Jan Hubicka  <jh@suse.cz>
9581
9582         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
9583         analyzed.
9584         * passes.c (ipa_write_summaries): Write all analyzed nodes.
9585
9586 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
9587
9588         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
9589         * Makefile.in: Add it.
9590         Fix all other Makefile dependencies for changes below.
9591         * tree.h: Include it instead of defining VEC primitives here.
9592         * gimple.h: Likewise.
9593         * rtl.h: Likewise.
9594         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
9595         * except.h: Include vecir.h, break dependence on tree.h.
9596
9597         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
9598         Move from here...
9599         * tree-iterator.c: ...to here.
9600         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
9601
9602         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
9603         tm_p.h.
9604         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
9605         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
9606         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
9607         tree-mudflap.h, and target.h.
9608         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
9609         predict.h, tree-inline.h, gimple.h, and langhooks.h.
9610         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
9611         Add FIXME for why gimple.h is still included (should be unnecessary
9612         since GCC 4.5 gimplification unit-at-a-time).
9613         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
9614         * c-pragma.c: Add FIXME for why function.h needs to be included just
9615         for cfun, at front-end level.
9616         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
9617         Do not include ggc.h, but include vecprim.h for VEC(char).
9618         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
9619         Explain why target.h is included.
9620         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
9621         Explain why gimple.h is included.
9622         * c-ppoutput.c: Do not include tm.h.
9623         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
9624         * c-parses.c: Explain why rtl.h is included, and that this (and only
9625         this) is also why tm.h must be included.
9626         Do not include except.h.
9627         * c-lang.c: Do not include ggc.h.
9628
9629 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
9630
9631         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
9632
9633 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
9634
9635         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
9636         unions by default if those structs and unions have no tags.  Do
9637         not condition anonymous struct and unions handling on flag_iso.
9638         Allow anonymous structs and unions for C1X.
9639         (finish_struct): Do not diagnose lack of named fields when
9640         anonymous structs and unions present for C1X.  Accept flexible
9641         array members in structure with anonymous structs or unions but no
9642         directly named fields.
9643         * doc/extend.texi (Unnamed Fields): Update.
9644
9645 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
9646
9647         * gimple.h (compare_field_offset): Rename into...
9648         (gimple_compare_field_offset): ...this.
9649         * gimple.c (compare_field_offset): Rename into...
9650         (gimple_compare_field_offset): ...this.  Compare the full access if
9651         the offset is self-referential.
9652         (gimple_types_compatible_p): Adjust for above renaming.
9653         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
9654         DECL_NONADDRESSABLE_P flag of fields before merging them.
9655
9656 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
9657
9658         * tree.h (ctor_to_list): Delete.
9659         * tree.c (ctor_to_list): Delete.
9660
9661 2010-05-15  Jan Hubicka  <jh@suse.cz>
9662
9663         * ipa-reference.c: Include toplev.h
9664         (is_proper_for_analysis): Only add to all_module_statics
9665         if it is allocated.
9666         (write_node_summary_p, stream_out_bitmap,
9667         ipa_reference_write_optimization_summary,
9668         ipa_reference_read_optimization_summary): New.
9669         (struct ipa_opt_pass_d pass_ipa_reference): Add
9670         optimization summary streaming.
9671         * lto-cgraph.c (referenced_from_this_partition_p,
9672         reachable_from_this_partition_p): New functions.
9673         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
9674         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
9675         * opts.c (decode_options): Enable ipa_reference.
9676         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
9677         * lto-streamer.h (referenced_from_this_partition_p,
9678         reachable_from_this_partition_p): Declare.
9679
9680 2010-05-15  Richard Guenther  <rguenther@suse.de>
9681
9682         PR tree-optimization/44038
9683         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
9684         taking the address of a V_C_E of a constant.
9685
9686 2010-05-14  Jan Hubicka  <jh@suse.cz>
9687
9688         * tree.h (memory_identifier_string): Remove.
9689         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
9690         (ipa_reference_global_vars_info_d): Remove statics_not_read and
9691         statics_not_written.
9692         (ipa_reference_optimization_summary_d): New structure.
9693         (ipa_reference_optimization_summary_t): New type and vector.
9694         (ipa_reference_vars_info_d): Embedd structures instead of using
9695         pointers.
9696         (reference_vars_to_consider): Remove out of GGC space.
9697         (module_statics_escape): Remove.
9698         (global_info_obstack): Rename to ...
9699         (optimization_summary_obstack): ... this one.
9700         (initialization_status_t): Remove.
9701         (memory_identifier_string): Remove.
9702         (get_reference_vars_info): Fix indenting.
9703         (set_reference_vars_info): Likewise.
9704         (get_reference_optimization_summary): New.
9705         (set_reference_optimization_summary): New.
9706         (get_global_reference_vars_info): Remove.
9707         (ipa_reference_get_read_global): Remove.
9708         (ipa_reference_get_written_global): Remove.
9709         (ipa_reference_get_not_read_global): Update.
9710         (ipa_reference_get_not_written_global): Update.
9711         (is_proper_for_analysis): Outlaw addressable.
9712         (propagate_bits): Update for new datastructures.
9713         (analyze_variable): Remove.
9714         (init_function_info): Update for new datastructures.
9715         (clean_function_local_data): Remove.
9716         (clean_function): Remove.
9717         (copy_global_bitmap): Use optimizations_summary_obstack.
9718         (duplicate_node_data): Duplicate optimization summary only.
9719         (remove_node_data): Remove optimization summary only.
9720         (generate_summary): Do not analyze variables; do not compute
9721         module_statics_escape; do not prune solutions by it.
9722         (read_write_all_from_decl): Fix typos in comments.
9723         (propagate): Doscover readonly and nonaddressable first;
9724         update for new datastructures; share global bitmaps.
9725         * ipa-reference.h (ipa_reference_get_read_global,
9726         ipa_reference_get_written_global): Remove.
9727         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
9728         * Makefile.in: Remove ipa-refereference from GT files.
9729
9730 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
9731
9732         PR debug/44112
9733         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
9734         for all SYMBOL_REF_DECLs.
9735
9736 2010-05-14  Jan Hubicka  <jh@suse.cz>
9737
9738         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
9739         (varpool_all_refs_explicit_p): New inline function.
9740         * ipa-reference.c: Update comment.
9741         (module_statics_written): Remove.
9742         (get_static_decl): Remove.
9743         (ipa_init): Do not initialize module_statics_written.
9744         (analyze_function): Likewise.
9745         (generate_summary): Likewise; do not compute module_statics_readonly
9746         and do not update variable flags.
9747         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
9748         * ipa.c: Inlucde flags.h
9749         (cgraph_local_node_p): New.
9750         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
9751         promote functions to local.
9752         (ipa_discover_readonly_nonaddressable_vars): New function.
9753         (function_and_variable_visibility): Use cgraph_local_node_p.
9754         * varpool.c (varpool_finalize_decl): Set force_output for
9755         DECL_PRESERVE_P vars.
9756
9757 2010-05-14  Jan Hubicka  <jh@suse.cz>
9758
9759         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
9760
9761 2010-05-14  Richard Guenther  <rguenther@suse.de>
9762
9763         PR tree-optimization/44119
9764         * tree-ssa-pre.c (eliminate): Properly mark replacement of
9765         a PHI node necessary.
9766
9767 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
9768
9769         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
9770
9771 2010-05-14  Jason Merrill  <jason@redhat.com>
9772
9773         PR c++/44127
9774         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
9775         (gimple_call_set_nothrow): New.
9776         * gimple.c (gimple_build_call_from_tree): Call it.
9777         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
9778
9779         PR c++/44127
9780         * gimplify.c (gimplify_seq_add_stmt): No longer static.
9781         * gimple.h: Declare it.
9782         * gimple.c (gimple_build_eh_filter): No ops.
9783
9784 2010-05-14  Jan Hubicka  <jh@suse.cz>
9785
9786         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
9787         nodes already in queue.
9788         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
9789         re-enqueueing node.
9790
9791 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
9792
9793         PR debug/44136
9794         * cfgexpand.c (expand_debug_expr): If non-memory op0
9795         has BLKmode, return NULL.
9796
9797 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
9798
9799         * config.gcc: Add support for --with-cpu option for bdver1.
9800         * config/i386/i386.h (TARGET_BDVER1): New macro.
9801         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
9802         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9803         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
9804         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
9805         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
9806         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
9807         (processor_type): Add PROCESSOR_BDVER1.
9808         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
9809         processor_type in config/i386/i386.h.
9810         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
9811         movaps <reg, reg> instead of movapd <reg, reg> when replacing
9812         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
9813         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
9814         to emit packed xor instead of packed double/packed integer
9815         xor for SSE and AVX when moving a zero value.
9816         * config/i386/sse.md: Add check for
9817         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
9818         movapd/movdqa for SSE and AVX.
9819         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
9820         single logical operations i.e and, or and xor instead of packed double
9821         logical operations for SSE and AVX.
9822         * config/i386/i386-c.c (ix86_target_macros_internal):
9823         Add PROCESSOR_BDVER1.
9824         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
9825         (has_fma4, has_xop): New.
9826         * config/i386/i386.c (bdver1_cost): New variable.
9827         (m_BDVER1): New macro.
9828         (m_AMD_MULTIPLE): Add m_BDVER1.
9829         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
9830         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
9831         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
9832         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
9833         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
9834         x86_tune_sse_partial_reg_dependency,
9835         x86_tune_sse_unaligned_load_optimal,
9836         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
9837         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
9838         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
9839         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
9840         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
9841         Enable/disable for bdver1.
9842         (processor_target_table): Add bdver1_cost.
9843         (cpu_names): Add bdver1.
9844         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
9845          processor_alias_table.
9846         (ix86_expand_vector_move_misalign): Change.
9847         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
9848         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
9849         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
9850         of movupd/movdqu for SSE and AVX.
9851         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
9852         (ix86_tune_adjust_cost): Add code for bdver1.
9853         (standard_sse_constant_opcode): Add check for
9854         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
9855         of packed double xor for SSE and AVX.
9856
9857 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
9858
9859         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
9860         result to unsigned.
9861
9862 2010-05-14  Tristan Gingold  <gingold@adacore.com>
9863
9864         * toplev.c (default_debug_hooks): Remove this variable.
9865         (process_options): Remove assignments to default_debug_hooks.
9866
9867 2010-05-14  Martin Jambor  <mjambor@suse.cz>
9868
9869         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
9870         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
9871         * langhooks.h (struct lang_hooks_for_decls): Removed field
9872         fold_obj_type_ref.
9873         * tree.c (free_lang_data): Remove assignment to
9874         lang_hooks.fold_obj_type_ref.
9875         * tree.def (OBJ_TYPE_REF): Update comment.
9876
9877 2010-05-14  Richard Guenther  <rguenther@suse.de>
9878
9879         PR tree-optimization/44124
9880         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
9881
9882 2010-05-14  Alan Modra  <amodra@gmail.com>
9883
9884         PR target/44075
9885         * config/rs6000/rs6000.c (struct machine_function): Reorder
9886         fields for better packing.  Add lr_save_state.
9887         (rs6000_ra_ever_killed): Return lr_save_state if set.
9888         (rs6000_emit_eh_reg_restore): Set lr_save_state.
9889
9890 2010-05-13  Jan Hubicka  <jh@suse.cz>
9891
9892         * varpool.c (decide_is_variable_needed): Drop code checking
9893         TREE_SYMBOL_REFERENCED.
9894
9895 2010-05-13  Jan Hubicka  <jh@suse.cz>
9896
9897         * final.c (output_addr_const): Do not call mark_decl_referenced.
9898         * cgraphunit.c (process_function_and_variable_attributes): Use
9899         mark_needed_node dirrectly.
9900         (assemble_thunk): Do not call mark_decl_referenced.
9901
9902 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
9903
9904         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
9905
9906 2010-05-13  Jeff Law  <law@redhat.com>
9907
9908         * ira-conflicts.c (print_allocno_conflicts): New function broken out
9909         from...
9910         (print_conflicts): Call print_allocno_conflicts.
9911
9912 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9913
9914         PR debug/44104
9915         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
9916         if it is NULL.
9917
9918 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
9919
9920         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
9921         t-mingw-w64 or t-mingw-w32 for multilib configuration.
9922         * config/i386/t-mingw-w32: New.
9923         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
9924
9925 2010-05-13  Martin Jambor  <mjambor@suse.cz>
9926
9927         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
9928         gimple-fold.c).
9929         * gimple-fold.c (get_base_binfo_for_type): New function.
9930         (gimple_get_relevant_ref_binfo): Likewise.
9931         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9932         (gimple_fold_obj_type_ref): Likewise.
9933         (fold_gimple_call): Simplify condition for folding virtual calls
9934         and call gimple_fold_obj_type_ref.
9935         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
9936         (gimple_fold_obj_type_ref_known_binfo): Likewise.
9937
9938 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
9939
9940         * config/rs6000/rs6000-protos.h
9941         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
9942         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
9943         (rs6000_debug_mode_dependent_address)
9944         (rs6000_mode_dependent_address_ptr): Likewise.
9945
9946 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
9947
9948         PR debug/43983
9949         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
9950         by SRA.
9951         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
9952         * tree-sra.c (create_access_replacement): Call unshare_expr before
9953         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
9954         * dwarf2out.c: Include tree-flow.h.
9955         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
9956         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
9957         Handle DW_OP_bit_piece.
9958         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
9959         construct_piece_list, adjust_piece_list): New functions.
9960         (add_var_loc_to_decl): Handle SRA optimized variables.
9961         Adjust for var_loc_note to loc field renaming.
9962         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
9963         in VAR_LOCATION note.
9964         (new_loc_descr_op_bit_piece): New function.
9965         (dw_sra_loc_expr): New function.
9966         (dw_loc_list): Use it.  Don't handle the last range after the
9967         loop, handle it inside of the loop.  Adjust for var_loc_note
9968         to loc field renaming.
9969         (add_location_or_const_value_attribute): Only special case
9970         single entry loc lists if loc is NOTE_P.  Adjust for
9971         var_loc_note to loc field renaming.
9972         (dwarf2out_var_location): Don't set newloc->var_loc_note
9973         and newloc->next here.
9974
9975 2010-05-12  Jan Hubicka  <jh@suse.cz>
9976
9977         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
9978         flag.
9979         * cgraph.h (cgraph_only_called_directly_p,
9980         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
9981         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
9982         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
9983         (assemble
9984         * ipa.c (cgraph_remove_unreachable_nodes): Use
9985         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
9986         flags.
9987         * tree-inline.c (copy_bb): Check address_taken flag.
9988         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
9989         externally_visible flag.
9990
9991 2010-05-12  Jason Merrill  <jason@redhat.com>
9992
9993         PR bootstrap/44048
9994         PR target/44099
9995         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
9996         * sdbout.c (plain_type_1): Likewise.
9997         * dwarf2out.c (is_base_type): Likewise.
9998         (gen_type_die_with_usage): Likewise.  Generate
9999         DW_TAG_unspecified_type for any LANG_TYPE.
10000
10001 2010-05-12  Jan Hubicka  <jh@suse.cz>
10002
10003         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
10004         indrect edges too.
10005         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
10006         (cgraph_clone_edge): Update.
10007         (cgraph_node_remove_callees): Remove indirect calls too.
10008         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
10009         (cgraph_create_indirect_edge): Update prototype.
10010         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
10011         is_proper_for_analysis.
10012         (add_new_function, visited_nodes, function_insertion_hook_holder,
10013         get_local_reference_vars_info, mark_address_taken, mark_address,
10014         mark_load, mark_store, check_asm_memory_clobber, check_call,
10015         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
10016         (ipa_init): Do not initialize visited_nodes;
10017         function_insertion_hook_holder.
10018         (analyze_variable): Rewrite.
10019         (analyze_function): Rewrite.
10020         (copy_local_bitmap): Remove.
10021         (duplicate_node_dat): Do not duplicate local info.
10022         (generate_summary): Simplify to only walk cgraph.
10023         (write_node_summary_p, ipa_reference_write_summary,
10024         ipa_reference_read_summary): Remove.
10025         (propagate): Do not remove function insertion;
10026         generate summary.
10027         (pass_ipa_reference): NULLify summary handling fields.
10028         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
10029         (input_edge): Input ecf_flags.
10030         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
10031         (update_indirect_edges_after_inlining): Ignore edges with unknown
10032         param.
10033
10034 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
10035
10036         * implicit-zee.c: New file.
10037         * tree-pass.h (pass_implicit_zee): Declare.
10038         * passes.c (init_optimization_passes): Add zee pass.
10039         * common.opt (fzee): New flag.
10040         * timevar.def (TV_ZEE): Define.
10041         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
10042         and beyond.
10043         * Makefile.in (implicit-zee.o): Add new build file.
10044
10045 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10046             Nathan Froyd  <froydnj@codesourcery.com>
10047
10048         * c-common.c (sync_resolve_params): Remove write-only variable.
10049
10050 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
10051
10052         * target.h (struct gcc_target): Add mode_dependent_address_p field.
10053         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10054         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
10055         * targhooks.c (default_mode_dependent_address_p): New function.
10056         * targhooks.h (default_mode_dependent_address_p): Declare function.
10057         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
10058         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
10059         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
10060         target hook. Change return type to bool.
10061         * recog.h (mode_dependent_address_p): Change return type to bool.
10062
10063 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10064             Nathan Froyd  <froydnj@codesourcery.com>
10065
10066         * tree-mudflap.c (build_function_type_0, build_function_type_1,
10067         build_function_type_2, build_function_type_3): Remove.
10068         (mudflap_init): Use build_function_type_list.
10069
10070 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
10071             Nathan Froyd  <froydnj@codesourcery.com>
10072
10073         * coverage.c (build_fn_info_value): Call build_constructor instead of
10074         build_constructor_from_list.
10075         (build_ctr_info_value): Likewise.
10076         (build_gcov_info): Likewise.
10077
10078 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
10079
10080         * tree.c (build_constructor): Compute TREE_CONSTANT for the
10081         resultant constructor.
10082         (build_constructor_single): Don't set TREE_CONSTANT.
10083         (build_constructor_from_list): Don't compute TREE_CONSTANT.
10084
10085 2010-05-12  Jan Hubicka  <jh@suse.cz>
10086
10087         * cgraph.h (struct varpool_node): Add aux.
10088         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
10089         * varpool.c (varpool_remove_node): Do not remove initializer.
10090         (varpool_reset_queue): Export.
10091         (varpool_finalize_decl): Volatile vars are forced to be output.
10092         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
10093         replaced decl.
10094         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
10095         process_references, varpool_can_remove_if_no_refs): New functions.
10096         (cgraph_remove_unreachable_nodes): Handle variables too.
10097
10098 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10099
10100         PR target/44088
10101         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
10102
10103 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
10104
10105         PR middle-end/44085
10106         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
10107         change value of ORT_TASK.
10108         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
10109         (omp_notice_threadprivate_variable): New function.
10110         (omp_notice_variable): Call it for threadprivate variables.
10111         If enclosing ctx is a task, print enclosing task rather than
10112         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
10113         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
10114         if task has untied clause.
10115
10116         PR debug/42278
10117         * dwarf2out.c (base_type_die): Don't add name attribute here.
10118         (modified_type_die): Instead of sizetype use
10119         its underlying original type.  If a DW_TAG_base_type doesn't
10120         have name added, add __unknown__.
10121         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
10122         always call force_type_die instead.
10123
10124 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
10125
10126         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
10127         for __stack_chk_guard.
10128
10129 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10130
10131         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
10132         don't call start_source_file debug hook here...
10133         (finish_options): ... but here, after outputting predefined and
10134         command line defines and undefs.
10135
10136         PR middle-end/44071
10137         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
10138         no fallthru edge.
10139         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
10140         optimizing away empty bb with no successors, move over its
10141         footer chain to fallthru predecessor.
10142         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
10143         (rtl_split_edge): For asm goto call patch_jump_insn even if
10144         splitting fallthru edge.
10145
10146         PR c++/44059
10147         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
10148         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
10149         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
10150         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
10151         on DW.ref.* decls.
10152
10153         PR c++/44062
10154         * c-parser.c (c_parser_expression): Mark LHS of a comma
10155         expression as read if it is a decl, handled component or
10156         COMPOUND_EXPR with that on the RHS.
10157         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
10158         if it is a decl or handled component.
10159
10160 2010-05-11  Jan Hubicka  <jh@suse.cz>
10161
10162         * lto-symtab.c (lto_symtab_free): New function.
10163         * lto-streamer.h (lto_symtab_free): Declare.
10164
10165 2010-05-11  Jan Hubicka  <jh@suse.cz>
10166
10167         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
10168         that if function is needed it is reachable.
10169         (lto_output_node): See if it the function is reachable or referenced.
10170         (output_cgraph): Update call of lto_output_node.
10171         * lto-streamer.h (reachable_from_other_partition_p): Declare.
10172
10173 2010-05-11  Jan Hubicka  <jh@suse.cz>
10174
10175         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
10176         Mark as used.
10177
10178 2010-05-11  Jan Hubicka  <jh@suse.cz>
10179
10180         PR tree-optimize/44063
10181         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
10182         queue.
10183         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
10184         limits.
10185         (estimate_function_body_sizes): Compute sizes even when disregarding.
10186
10187 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
10188
10189         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
10190
10191 2010-05-11  Jan Hubicka  <jh@suse.cz>
10192
10193         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
10194         into every boundary.
10195
10196 2010-05-11  Jan Hubicka  <jh@suse.cz>
10197
10198         * matrix-reorg.c (matrix_reorg): Rebuild edges.
10199
10200 2010-05-11  Jan Hubicka  <jh@suse.cz>
10201
10202         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
10203         lto_streamer_cache_delete): Put nodes into heap.
10204         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
10205         heap.
10206
10207 2010-05-11  Jan Hubicka  <jh@suse.cz>
10208
10209         * cgraphbuild.c (cgraph_rebuild_references): New.
10210         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
10211         out extern inlines.
10212         * cgraph.h (cgraph_rebuild_references): Declare.
10213         * tree-inline.c (tree_function_versioning): Use it.
10214         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
10215
10216 2010-05-11  Jan Hubicka  <jh@suse.cz>
10217
10218         * cgraph.c: Include ipa-utils.h
10219         (cgraph_create_virtual_clone): Update references.
10220         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
10221
10222 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10223
10224         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
10225         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
10226         cache size.
10227
10228 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
10229
10230         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
10231
10232 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
10233
10234         * gcc.c (execute): For -### don't quote arguments that
10235         contain just alphanumerics and _/-. characters.
10236         * doc/invoke.texi: Document that change for -###.
10237
10238         PR debug/44023
10239         * df-problems.c (struct dead_debug): Add to_rescan field.
10240         (dead_debug_init): Clear to_rescan field.
10241         (dead_debug_finish): Rescan all debug insns in to_rescan
10242         bitmap and free the bitmap.
10243         (dead_debug_insert_before): Instead of rescanning debug insns
10244         immediately queue their rescanning until dead_debug_finish.
10245         (df_note_bb_compute): After dead_debug_add do continue instead
10246         of break.
10247
10248 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
10249
10250         PR debug/44028
10251         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
10252         clear also INSN_REG_USE_LIST.
10253
10254 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10255
10256         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
10257
10258 2010-05-10  Jan Hubicka  <jh@suse.cz>
10259
10260         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
10261         commited change.
10262
10263 2010-05-10  Jan Hubicka  <jh@suse.cz>
10264
10265         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
10266         Allocate encoders.
10267         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
10268         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
10269         (lto_streamer_cache_create): Init alloc pool.
10270         (lto_streamer_cache_delete): Free alloc pool.
10271         * lto-streamer.h: Include alloc pool.
10272         (lto_streamer_cache_d): Use alloc pool.
10273         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
10274
10275 2010-05-10  Jan Hubicka  <jh@suse.cz>
10276
10277         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
10278         * cgraphbuild.c: Include except.h
10279         (record_type_list, record_eh_tables): New function.
10280         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
10281
10282 2010-05-10  Jan Hubicka  <jh@suse.cz>
10283
10284         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
10285         __frame_dummy_init_array_entry, force_to_data): Attribute as used
10286         rather than unused.
10287
10288 2010-05-10  Michael Matz  <matz@suse.de>
10289
10290         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
10291         (can_reassociate_p): Use FLOAT_TYPE_P.
10292         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
10293         (vect_force_simple_reduction): ... this.
10294         * tree-parloops.c (gather_scalar_reductions): Use
10295         vect_force_simple_reduction.
10296         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
10297         vect_is_simple_reduction, add modify argument, if true rewrite
10298         "a-b" into "a+(-b)".
10299         (vect_is_simple_reduction, vect_force_simple_reduction): New
10300         functions.
10301         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
10302
10303 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
10304             Vladimir Makarov  <vmakarov@redhat.com>
10305
10306         PR rtl-optimization/44012
10307         * ira-build.c (remove_unnecessary_allocnos): Nullify
10308         regno_allocno_map of the removed allocno.
10309
10310 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10311
10312         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
10313         to /dev/null.
10314         * configure: Regenerate.
10315
10316 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10317
10318         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
10319         unused.
10320         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
10321         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
10322         support in Sun ld.
10323         * configure: Regenerate.
10324
10325 2010-05-10  Richard Guenther  <rguenther@suse.de>
10326
10327         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
10328         marked if the entry identifier is marked.
10329
10330 2010-05-10  Richard Guenther  <rguenther@suse.de>
10331
10332         * c-common.c (struct c_common_attributes): Add fnspec attribute.
10333         (handle_fnspec_attribute): New function.
10334         * gimple.h (gimple_call_return_flags): Declare.
10335         (gimple_call_arg_flags): Likewise.
10336         * gimple.c (gimple_call_arg_flags): New function.
10337         (gimple_call_return_flags): Likewise.
10338         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
10339         New argument flags.
10340         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
10341         return value flags.
10342         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
10343         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
10344         main work to ...
10345         (make_heapvar_for): ... this new function.
10346         (handle_rhs_call): Handle fnspec attribute argument specifiers.
10347         (handle_lhs_call): Likewise.
10348         (find_func_aliases): Adjust.
10349
10350 2010-05-10  Richard Guenther  <rguenther@suse.de>
10351
10352         PR tree-optimization/44050
10353         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
10354
10355 2010-05-10  Wei Guozhi  <carrot@google.com>
10356
10357         PR target/42879
10358         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
10359
10360 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10361
10362         PR c/10676
10363         * c-typeck.c (lookup_field): Take a type directly.  Update
10364         recursive calls.
10365         (build_component_ref): Update call to lookup_field.
10366         (set_init_label): Use lookup_field to find initialized field.
10367         Handle returned list of fields like a sequence of designators.
10368
10369 2010-05-09  Richard Guenther  <rguenther@suse.de>
10370
10371         PR middle-end/44024
10372         * fold-const.c (tree_single_nonzero_warnv_p): Properly
10373         handle &FUNCTION_DECL.
10374
10375 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
10376
10377         PR c/4784
10378         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
10379         structures and unions recursively.
10380         (detect_field_duplicates): Move duplicate detection with a hash to
10381         detect_field_duplicates_hash.  Always use a hash if anonymous
10382         structures or unions are present.
10383         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
10384         give errors.
10385
10386 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
10387
10388         PR target/44046
10389         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
10390         detect Atom, Core 2 and Core i7.
10391
10392 2010-05-09  Richard Guenther  <rguenther@suse.de>
10393
10394         * gcc.c (store_arg): Handle temporary file deletion for
10395         joined arguments.
10396
10397 2010-05-09  Richard Guenther  <rguenther@suse.de>
10398
10399         PR middle-end/44043
10400         * ipa-inline.c (estimate_function_body_sizes): Return after
10401         disregarding inline limits.
10402
10403 2010-05-09  Richard Guenther  <rguenther@suse.de>
10404
10405         * gcc.c (store_arg): Revert last change.
10406
10407 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
10408
10409         PR middle-end/28685
10410         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
10411         (optimize_ops_list): Call it.
10412
10413 2010-05-08  Richard Guenther  <rguenther@suse.de>
10414
10415         PR tree-optimization/44030
10416         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
10417         NECESSARY flag if we propagate from a inserted expression.
10418
10419 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
10420
10421         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
10422         domain types as equal if they are both PLACEHOLDER_EXPRs.
10423
10424 2010-05-08  Richard Guenther  <rguenther@suse.de>
10425
10426         * lto-wrapper.c (run_gcc): Remove linker output from
10427         command line for LTRANS invocation.
10428
10429 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10430
10431         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
10432         lto-macho as lto_binary_reader.
10433         * target.h (struct gcc_target): New hooks lto_start and lto_end.
10434         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
10435         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
10436         in lto_start and lto_end calls.
10437         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
10438         magic numbers.
10439         (scan_prog_file): Update is_elf_or_coff call.
10440         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
10441
10442         * collect2.c (main): Fix enum comparison.
10443
10444         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
10445         Add prototypes.
10446         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
10447         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
10448         and TARGET_ASM_LTO_END.
10449         * darwin.c: Include obstack.h and lto-streamer.h.
10450         (lto_section_names_offset, lto_section_names_obstack,
10451         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
10452         global variables.
10453         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
10454         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
10455         to a temporary file.
10456         (darwin_asm_lto_end): New function.  Restore asm_out_file.
10457         (darwin_asm_named_section): For LTO sections, replace the name with
10458         the offset of the section name in a string table, and build this
10459         table.
10460         (darwin_file_start): Initialize global vars for LTO support.
10461         (darwin_file_end): If output to asm_out_file was redirected, append it
10462         to the proper asm_out_file here.  Add the section names section.
10463
10464 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
10465
10466         * c-pragma.c (pending_weak_d, pending_weak): New.
10467         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
10468         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
10469         handle_pragma_weak): Update the uses of pending_weaks.
10470
10471 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10472
10473         PR documentation/44016
10474         * doc/standards.texi (Standards): Link to unversioned
10475         cxx0x_status.html page.
10476
10477 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
10478
10479         PR target/43708
10480         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
10481         in addition to TREE_USED, to avoid "set but unused" warnings.
10482
10483 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10484
10485         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
10486         (is_loop_prefetching_profitable): Do not insert prefetches
10487         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
10488         times the prefetch ahead distance.
10489
10490 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10491
10492         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
10493         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
10494         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
10495         the unroll_factor.
10496
10497 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
10498
10499         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
10500         a diagnostic info when the insn-to-mem ratio is too small.
10501
10502 2010-05-07  Richard Guenther  <rguenther@suse.de>
10503
10504         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
10505         the linker plugin.
10506         (store_arg): Queue temp_filename for deletion instead of
10507         the whole argument.
10508
10509 2010-05-07  Richard Guenther  <rguenther@suse.de>
10510
10511         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
10512         (run_gcc): Handle LTRANS phase invocation.
10513         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
10514
10515 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
10516
10517         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
10518         this is also meaningful on PARM_DECLs and RESULT_DECLs.
10519
10520 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10521
10522         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
10523
10524 2010-05-07  Richard Guenther  <rguenther@suse.de>
10525
10526         PR tree-optimization/44020
10527         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
10528         code when PRE is not yet initialized.
10529
10530 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10531
10532         * config/mips/dbxmdebug.h: Remove.
10533         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
10534
10535 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
10536
10537         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
10538         with null pointer and also warn about ordered comparison of zero with
10539         pointer if -Wextra.
10540
10541 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10542
10543         * graphite-blocking.c
10544         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
10545         * graphite-clast-to-gimple.c
10546         (clast_to_gcc_expression): Same.
10547         (precision_for_value): Same.
10548         (precision_for_interval): Same.
10549         (gcc_type_for_interval): Same.
10550         (graphite_create_new_guard): Same.
10551         (compute_bounds_for_level): Same.
10552         (graphite_create_new_loop_guard): Same.
10553         * graphite-interchange.c
10554         (build_linearized_memory_access): Same.
10555         (pdr_stride_in_loop): Same.
10556         (memory_strides_in_loop_1): Same.
10557         (memory_strides_in_loop): Same.
10558         (extend_scattering): Same.
10559         (psct_scattering_dim_for_loop_depth): Same.
10560         (pbb_number_of_iterations): Same.
10561         * graphite-poly.h
10562         (debug_iteration_domains): Same.
10563         * graphite-ppl.c
10564         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10565         (ppl_set_inhomogeneous_gmp): Same.
10566         (ppl_strip_loop): Same.
10567         (ppl_lexico_compare_linear_expressions): Same.
10568         (ppl_read_polyhedron_matrix): Same.
10569         (ppl_max_for_le_pointset): Same.
10570         * graphite-ppl.h
10571         (ppl_read_polyhedron_matrix): Same.
10572         (tree_int_to_gmp): Same.
10573         (gmp_cst_to_tree): Same.
10574         (ppl_set_inhomogeneous): Same.
10575         (ppl_set_inhomogeneous_tree): Same.
10576         (ppl_set_coef): Same.
10577         (ppl_set_coef_tree): Same.
10578         * graphite-sese-to-poly.c
10579         (build_pbb_scattering_polyhedrons): Same.
10580         (build_scop_scattering): Same.
10581         (scan_tree_for_params_right_scev): Same.
10582         (scan_tree_for_params): Same.
10583         (find_params_in_bb): Same.
10584         (find_scop_parameters): Same.
10585         (add_upper_bounds_from_estimated_nit): Same.
10586         (build_loop_iteration_domains): Same.
10587         (add_condition_to_domain): Same.
10588         (pdr_add_memory_accesses): Same.
10589
10590 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
10591
10592         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
10593         CLooG's value_* macros to their respective mpz_* counterparts.
10594         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
10595         (graphite_create_new_loop_guard): Same.
10596         * graphite-interchange.c (build_linearized_memory_access): Same.
10597         (pdr_stride_in_loop): Same.
10598         (memory_strides_in_loop_1): Same.
10599         (1st_interchange_profitable_p): Same.
10600         * graphite-poly.c (extend_scattering): Same.
10601         (psct_scattering_dim_for_loop_depth): Same.
10602         (pbb_number_of_iterations): Same.
10603         (pbb_number_of_iterations_at_time): Same.
10604         * graphite-poly.h (new_1st_loop): Same.
10605         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
10606         (oppose_constraint): Same.
10607         (insert_constraint_into_matrix): Same.
10608         (ppl_set_inhomogeneous_gmp): Same.
10609         (ppl_set_coef_gmp): Same.
10610         (ppl_strip_loop): Same.
10611         (ppl_lexico_compare_linear_expressions): Same.
10612         (ppl_max_for_le_pointset): Same.
10613         (ppl_min_for_le_pointset): Same.
10614         (ppl_build_realtion): Same.
10615         * graphite-ppl.h (gmp_cst_to_tree): Same.
10616         (ppl_set_inhomogeneous): Same.
10617         (ppl_set_inhomogeneous_tree): Same.
10618         (ppl_set_coef): Same.
10619         (ppl_set_coef_tree): Same.
10620         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
10621         (build_scop_scattering): Same.
10622         (add_value_to_dim): Same.
10623         (scan_tree_for_params_right_scev): Same.
10624         (scan_tree_for_params_int): Same.
10625         (scan_tree_for_params): Same.
10626         (find_params_in_bb): Same.
10627         (find_scop_parameters): Same.
10628         (add_upper_bounds_from_estimated_nit): Same.
10629         (build_loop_iteration_domains): Same.
10630         (create_linear_expr_from_tree): Same.
10631         (add_condition_to_domain): Same.
10632         (pdr_add_memory_accesses): Same.
10633
10634 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
10635             Jason Merrill  <jason@redhat.com>
10636
10637         * c-common.c (c_common_reswords): Add nullptr.
10638         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
10639         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
10640         (gen_type_die_with_usage): Likewise.
10641         * dbxout.c (dbxout_type): Likewise.
10642         * sdbout.c (plain_type_1): Likewise.
10643
10644 2010-05-06  Jason Merrill  <jason@redhat.com>
10645
10646         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
10647         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
10648         ret appropriately.
10649         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
10650
10651         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
10652         stripping WITH_SIZE_EXPR.
10653         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
10654         change.
10655
10656 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10657
10658         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
10659         list of obsolete configurations.
10660         Disabled check for obsolete configurations.
10661         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
10662         Removed support for previous versions.
10663         * config/mips/iris.h: Removed.
10664         * config/mips/iris5.h: Removed.
10665         * config/mips/iris6.h: Merged old iris.h contents.
10666         (TARGET_IRIX): Removed.
10667         (DRIVER_SELF_SPECS): Removed mabi=32.
10668         (IDENT_ASM_OP): Removed undef.
10669         (STARTFILE_SPEC): Removed mabi=32.
10670         (ENDFILE_SPEC): Likewise.
10671         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
10672         (MACHINE_TYPE): Update for IRIX 6.5.
10673         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
10674         TARGET_IRIX by TARGET_IRIX6.
10675         (mips_file_start): Likewise.
10676         (mips_output_external): Remove IRIX 5/6 O32 support.
10677         (mips_output_function_prologue): Likewise.
10678         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
10679         TARGET_IRIX6.
10680         (TARGET_CPU_CPP_BUILTINS): Likewise.
10681         (TARGET_IRIX): Removed.
10682         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
10683         (MULTILIB_DIRNAMES): Removed 32.
10684         (MULTILIB_OSDIRNAMES): Removed ../lib.
10685         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
10686         (Specific, mips-sgi-irix5): Document removal.
10687         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
10688         Remove references to older IRIX 6 releases and the O32 ABI.
10689
10690 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
10691
10692         PR bootstrap/43994
10693         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
10694         instead of DF_REF_REAL_REG.
10695
10696 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
10697
10698         PR target/43888
10699         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
10700         handling to still return true for x64 targets.
10701
10702 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10703
10704         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
10705
10706 2010-05-06  Jan Hubicka  <jh@suse.cz>
10707
10708         PR tree-optimization/43791
10709         * ipa-inline.c (update_caller_keys): Remove bogus
10710         disregard_inline_limits check.
10711
10712 2010-05-06  Michael Matz  <matz@suse.de>
10713
10714         PR tree-optimization/43984
10715         * tree-ssa-pre.c (inserted_phi_names): Remove.
10716         (inserted_exprs): Change to bitmap.
10717         (create_expression_by_pieces): Set bits, don't append to vector.
10718         (insert_into_preds_of_block): Don't handle inserted_phi_names.
10719         (eliminate): Don't look at inserted_phi_names, remove deleted
10720         insns from inserted_exprs.
10721         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
10722         (init_pre, fini_pre): Allocate and free bitmaps.
10723         (execute_pre): Insert insns on edges before elimination.
10724
10725 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10726
10727         * tree.c (initializer_zerop): Handle STRING_CST.
10728
10729 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10730
10731         PR 40989
10732         * doc/invoke.texi (Wimplicit): Document as C only.
10733         * opts.c (common_handle_option): Add argument kind.
10734         (handle_option): Rename as read_cmdline_option. Factor out code to...
10735         (handle_option): ... here. New.
10736         (handle_options): Rename as read_cmdline_options.
10737         (decode_options): Update call.
10738         (set_option): Use option index instead of option pointer. Classify
10739         diagnostics correctly.
10740         (enable_warning_as_error): Call handle_option.
10741         * opts.h (set_option): Update declaration.
10742         (handle_option): Declare.
10743         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
10744         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
10745         * c-opts.c (set_Wimplicit): Delete.
10746         (c_family_lang_mask): New static constant.
10747         (c_common_handle_option): Add argument kind. Use handle_option
10748         instead of set_Wimplicit.
10749         (c_common_post_options): warn_implicit and warn_implicit_int
10750         are disabled by default.
10751         * c-common.c (warn_implicit): Do not define here.
10752         * c-common.h (warn_implicit): Do not declare here.
10753         (c_common_handle_option): Update declaration.
10754         * lto-opts.c (lto_reissue_options): Update call to set_option.
10755
10756 2010-05-06  Richard Guenther  <rguenther@suse.de>
10757
10758         PR tree-optimization/43571
10759         * domwalk.c (walk_dominator_tree): Walk the dominator
10760         sons in more optimal order.
10761
10762 2010-05-06  Richard Guenther  <rguenther@suse.de>
10763
10764         PR tree-optimization/43934
10765         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
10766         (stmt_cost): Likewise.
10767         (extract_true_false_args_from_phi): New helper.
10768         (determine_max_movement): For PHI nodes verify we can hoist them
10769         and compute their cost.
10770         (determine_invariantness_stmt): Handle PHI nodes.
10771         (move_computations_stmt): Likewise.  Hoist PHI nodes in
10772         if-converted form using COND_EXPRs.
10773         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
10774         (tree_ssa_lim): Likewise.
10775         * tree-flow.h (tree_ssa_lim): Adjust prototype.
10776         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
10777
10778 2010-05-06  Richard Guenther  <rguenther@suse.de>
10779
10780         PR tree-optimization/43987
10781         * tree-ssa-structalias.c (could_have_pointers): For possibly
10782         address-taken variables force pointers to be recorded.
10783         (create_variable_info_for_1): Likewise.
10784         (push_fields_onto_fieldstack): Pass in wheter all fields
10785         must have pointers.
10786         (find_func_aliases): Query types instead of vars whether
10787         they contain pointers where appropriate.
10788
10789 2010-05-06  Jan Hubicka  <jh@suse.cz>
10790
10791         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
10792         (record_reference, mark_address, mark_load, mark_store): Record
10793         references.
10794         (record_references_in_initializer): Update call of record_references.
10795         (rebuild_cgraph_edges): Remove all references before rebuiding.
10796         * cgraph.c (cgraph_create_node): Clear ref list.
10797         (cgraph_remove_node): Remove references.
10798         (dump_cgraph_node): Dump references.
10799         (cgraph_clone_node): Clone references.
10800         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
10801         (struct cgraph_node, varpool_node): Add ref_lst.
10802         * ipa-ref.c: New file.
10803         * ipa-ref.h: New file.
10804         * ipa-ref-inline.h: New file.
10805         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
10806         (referenced_from_other_partition_p): New function.
10807         (lto_output_varpool_node): Take set arugment; call
10808         referenced_from_other_partition.
10809         (lto_output_ref): New.
10810         (add_references): New.
10811         (output_refs): New.
10812         (output_cgraph): Compute boundary based on references; output refs.
10813         (output_varpool): Accept cgraph_node_set argument.
10814         (input_ref): New.
10815         (input_refs): New.
10816         (input_cgraph): Call input_refs.
10817         * lto-section-in.c (lto_section_name): Add refs.
10818         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
10819         (ipa-ref.o): New file.
10820         * varpool.c (varpool_node): Clear ipa ref list.
10821         (varpool_remove_node): Remove references.
10822         (dump_varpool_node): Dump references.
10823         (varpool_assemble_decl): Only compile finalized ones.
10824         (varpool_extra_name_alias): Initialize ref list.
10825         * lto-streamer.c (lto-get_section_name): Add .refs section.
10826         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
10827         (referenced_from_other_partition_p): Declared.
10828
10829 2010-05-06  Ira Rosen  <irar@il.ibm.com>
10830
10831         PR tree-optimization/43901
10832         * tree-vect-stmts.c (vectorizable_call): Assert that vector
10833         type is not NULL if it's transformation phase, and return
10834         FALSE if it's analysis.
10835         (vectorizable_conversion, vectorizable_operation,
10836         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
10837
10838 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
10839
10840         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10841         Delete.
10842         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
10843         New define.
10844         * config/mips/mips-protos.h
10845         (mips_small_register_classes_for_mode_p): Delete prototype.
10846
10847 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
10848
10849         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
10850         * config/arm/arm.c (multiple_operation_profitable_p,
10851         compute_offset_order): New static functions.
10852         (load_multiple_sequence, store_multiple_sequence): Use them.
10853         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
10854         memory offsets, not register numbers.
10855         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
10856
10857 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
10858
10859         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
10860         (get_pending_sizes, put_pending_size, put_pending_sizes):
10861         Update the uses of pending_sizes.
10862         * c-decl.c (store_parm_decls): Likewise.
10863         * c-tree.h (struct c_arg_info): Likewise.
10864         * tree.h: Update the prototype for get_pending_sizes and
10865         put_pending_sizes.
10866
10867 2010-05-05  Jason Merrill  <jason@redhat.com>
10868
10869         PR debug/43370
10870         * c-common.c (handle_aligned_attribute): Respect
10871         ATTR_FLAG_TYPE_IN_PLACE.
10872
10873         PR testsuite/43758
10874         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
10875         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10876         (TARGET_INITIALIZER): Use it.
10877         * c-common.c (attribute_takes_identifier_p): Call it.
10878         * c-common.h: Update prototype.
10879         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
10880         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
10881
10882 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10883
10884         PR debug/43950
10885         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
10886         DW_ID_down_case for Fortran compilation units.
10887
10888 2010-05-05  Jan Hubicka  <jh@suse.cz>
10889
10890         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
10891         handle aliases.
10892
10893 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
10894
10895         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
10896         a variable-sized RESULT_DECL.
10897
10898 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
10899
10900         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
10901
10902 2010-05-05  Jason Merrill  <jason@redhat.com>
10903
10904         PR c++/43787
10905         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
10906         returns GS_OK.
10907         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
10908
10909 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
10910             Jakub Jelinek  <jakub@redhat.com>
10911
10912         PR debug/43478
10913         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
10914         (dead_debug_init, dead_debug_finish): New functions.
10915         (dead_debug_add, dead_debug_insert_before): Likewise.
10916         (df_note_bb_compute): Initialize a dead_debug object, add dead
10917         debug uses to it, insert debug bind insns before death insns,
10918         reset debug insns that refer to pending uses at the end.
10919         * rtl.h (make_debug_expr_from_rtl): New prototype.
10920         * varasm.c (make_debug_expr_from_rtl): New function.
10921
10922 2010-05-05  Jan Hubicka  <jh@suse.cz>
10923
10924         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
10925         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
10926         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
10927         lto_varpool_encoder_deref, lto_varpool_encoder_size,
10928         lto_varpool_encoder_encode_initializer_p,
10929         lto_set_varpool_encoder_encode_initializer): New functions.
10930         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
10931         call output_varpool.
10932         (input_varpool_node): Do not always set analyzed.
10933         (input_cgraph_1): Return vector of cgraph nodes.
10934         (input_varpool_1): Return vector of varpools.
10935         (input_cgraph): Free the vectors.
10936         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10937         output only initializers needed.
10938         (lto_output): Only call output_cgraph.
10939         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
10940         * lto-section-out.c (lto_new_out_decl_state): Initialize
10941         state->varpool_node_encoder.
10942         * lto-streamer.h (lto_varpool_encoder_d): New.
10943         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
10944         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
10945         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
10946         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
10947         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
10948         Declare.
10949         (output_varpool, input_varpool): Remove declarations.
10950
10951 2010-05-05  Jan Hubicka  <jh@suse.cz>
10952
10953         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
10954         with body can prevail.
10955
10956 2010-05-05  Jan Hubicka  <jh@suse.cz>
10957
10958         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
10959         size.
10960
10961 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10962
10963         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
10964
10965         * gengtype.h (erro_at_line): Constify pos argument.
10966
10967         * gengtype.c: Include hashtab.h.
10968         (enum gc_used): Document GC_MAYBE_POINTED_TO.
10969         (error_at_line): Constify pos argument.
10970         (do_typedef): Initialize p->opt field.
10971         (get_file_gtfilename): Fix comment typo.
10972         (struct walk_type_data): Constify line field.
10973         (get_output_file_for_structure): New function.
10974         (write_local_func_for_structure): Constify orig_s argument.
10975         Use get_output_file_for_structure.
10976         (write_func_for_structure): Use get_output_file_for_structure.
10977         (INDENT): New define.
10978         (dump_pair, dump_type, dump_type_list, dump_typekind)
10979         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
10980         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
10981         functions.
10982         (seen_types): New variable.
10983         (main): New variable do_dump.  Process "-d" command line option.
10984         Call dump_everything if dump requested.
10985
10986 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
10987
10988         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
10989         in a temporary instead of invoking the macro multiple times.
10990         (track_expr_p): Likewise.
10991
10992 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
10993
10994         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
10995         per new semantics.
10996         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
10997         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
10998         conditions for printing notes.
10999         * common.opt (-Wcoverage-mismatch): Allow negative, default to
11000         true, update documentation.
11001         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
11002
11003 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
11004
11005         PR c/43981
11006         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
11007         on dimen.
11008
11009 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11010
11011         PR target/43799
11012         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
11013         (*sse_prologue_save_insn1): Likewise.
11014         (SSE prologue save splitter): Likewise.
11015
11016 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11017
11018         * tree.c (free_lang_data_in_one_sizepos): New inline function.
11019         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
11020         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
11021         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
11022         all decls.  Call it on DECL_FIELD_OFFSET of fields.
11023         (find_decls_types_r): Follow DECL_VALUE_EXPR.
11024         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
11025
11026 2010-05-04  Martin Jambor  <mjambor@suse.cz>
11027
11028         * tree-sra.c (build_access_from_expr_1): The first parameter type
11029         changed to simple tree.
11030         (build_access_from_expr): Likewise, gsi parameter was eliminated.
11031         (scan_assign_result): Renamed to assignment_mod_result, enum elements
11032         renamed as well.
11033         (build_accesses_from_assign): Removed all parameters except for a
11034         simple gimple statement.  Now returns a simple bool.
11035         (scan_function): All non-analysis parts moved to separate functions
11036         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
11037         parameters and updated both callers.
11038         (sra_modify_expr): Removed parameter data.
11039         (sra_modify_function_body): New function.
11040         (perform_intra_sra): Call sra_modify_function_body to modify the
11041         function body.
11042         (replace_removed_params_ssa_names): Parameter data changed into
11043         adjustments vector.
11044         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
11045         changed the parameter dont_convert to convert with the opposite
11046         meaning.
11047         (sra_ipa_modify_assign): Parameter data changed into adjustments
11048         vector, return value changed to bool.
11049         (ipa_sra_modify_function_body): New function.
11050         (sra_ipa_reset_debug_stmts): Updated a comment.
11051         (modify_function): Use ipa_sra_modify_function_body to modify function
11052         body.
11053
11054 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
11055
11056         PR middle-end/43671
11057         * alias.c (true_dependence): Handle the same VALUE in x and mem.
11058         (canon_true_dependence): Likewise.
11059         (write_dependence_p): Likewise.
11060
11061 2010-05-04  Jan Hubicka  <jh@suse.cz>
11062
11063         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
11064         * cgraphbuild.c: Include ipa-utils.h
11065         (record_reference_ctx): New struct.
11066         (record_reference): Simplify to work on initializers; not statements.
11067         (mark_address, mark_load, mark_store): New.
11068         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11069         walk PHI nodes too.
11070         (record_references_in_initializer): Update use of record_reference.
11071         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
11072         walk PHI nodes too.
11073
11074 2010-05-04  Jan Hubicka  <jh@suse.cz>
11075
11076         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
11077         node will be removed anyway.
11078         (lto_varpool_replace_node): Allow also unanalyzed nodes;
11079         relink aliases of node into prevailing node.
11080         * varpool.c (varpool_remove_node): Remove aliases properly;
11081         when removing node, remove all its aliases too; remove DECL_INITIAL
11082         of removed node; ggc_free the varpool node.
11083
11084 2010-05-04  Richard Guenther  <rguenther@suse.de>
11085
11086         PR tree-optimization/43879
11087         * tree-ssa-structalias.c (alias_get_name): Use
11088         DECL_ASSEMBLER_NAME if available.
11089         (create_function_info_for): Return the varinfo node.
11090         (ipa_pta_execute): Associate same-body aliases and extra names
11091         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
11092
11093 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11094
11095         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
11096
11097 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
11098
11099         PR bootstrap/43964
11100         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
11101         only if HONOR_REG_ALLOC_ORDER is not defined.
11102
11103 2010-05-04  Richard Guenther  <rguenther@suse.de>
11104
11105         PR tree-optimization/43949
11106         * tree-vrp.c (extract_range_from_binary_expr): Only handle
11107         TRUNC_MOD_EXPR.
11108
11109 2010-04-26  Jason Merrill  <jason@redhat.com>
11110
11111         * c.opt (-fstrict-enums): New.
11112         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
11113
11114 2010-05-03  David Ung  <davidu@mips.com>
11115             James E. Wilson  <wilson@codesourcery.com>
11116
11117         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
11118         emit the trap instruction before the divide for TUNE_74K.
11119
11120 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
11121
11122         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
11123         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
11124         based on the above, for new target hook.
11125
11126         * hooks.c (hook_bool_mode_true): New generic hook.
11127         * hooks.h (hook_bool_mode_true): Add prototype.
11128
11129         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
11130         target hook.
11131         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
11132         target hook, set to hook_bool_mode_false.
11133         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
11134         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
11135         with targetm.small_register_classes_for_mode_p.
11136         (find_reusable_reload): Likewise.
11137         (combine_reloads): Likewise.
11138         * reload1.c (reload_as_needed): Likewise.
11139         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
11140         * ifcvt.c (noce_process_if_block, check_cond_move_block,
11141         dead_or_predicable): Likewise.
11142         * regmove.c (optimize_reg_copy_1): Likewise.
11143         * calls.c (prepare_call_address): Likewise.
11144         (precompute_register_parameters): Likewise.
11145
11146         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
11147         hook definition.
11148         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
11149         implementation of the hook that considers all register classes
11150         small except for SH64.
11151         (sh_override_options): Use the new hook.
11152         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
11153         Add prototype.
11154
11155         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
11156         hook definition.
11157         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
11158         implementation of the hook that considers all register classes
11159         small for THUMB1.
11160         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
11161         Add prototype.
11162
11163         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
11164         hook definition.
11165         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
11166         implementation of the hook that considers all register classes
11167         small for MIPS16.
11168         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
11169         Add prototype.
11170
11171         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
11172         hook definition.
11173         * config/m32c/m32c.h: Likewise.
11174         * config/pdp11/pdp11.h: Likewise.
11175         * config/avr/avr.h: Likewise.
11176         * config/xtensa/xtensa.h: Likewise.
11177         * config/m68hc11/m68hc11.h: Likewise.
11178         * config/mn10300/mn10300.h: Likewise.
11179         * config/mcore/mcore.h: Likewise.
11180         * config/h8300/h8300.h: Likewise.
11181         * config/bfin/bfin.h: Likewise.
11182
11183         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
11184         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
11185
11186 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
11187
11188         * double-int.h (tree_to_double_int): Remove macro.
11189         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
11190         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11191         (tree_to_double_int): New function.
11192         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
11193         Move ...
11194         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
11195
11196 2010-05-03  Richard Guenther  <rguenther@suse.de>
11197
11198         PR tree-optimization/43971
11199         * tree-ssa-structalias.c (get_constraint_for_1): Fix
11200         constraints in the !flag_delete_null_pointer_checks case.
11201
11202 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
11203
11204         PR debug/43972
11205         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
11206         result mode matches original rtl mode.
11207
11208 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
11209
11210         PR target/43888
11211         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
11212
11213 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11214
11215         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
11216         when processing flag options.
11217
11218 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11219
11220         * gcov-iov.c (main): Change format string placeholder
11221         from %#08x to 0x%08x.
11222         * genchecksum.c (dosum): Change format string placeholder
11223         from %#02x to 0x%02x.
11224
11225 2010-05-02  Richard Guenther  <rguenther@suse.de>
11226
11227         PR tree-optimization/43879
11228         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
11229
11230 2010-05-02  Bruno Haible  <bruno@clisp.org>
11231
11232         * doc/extend.texi (Function Attributes): Fix a typo.
11233
11234 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11235
11236         Revert:
11237         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
11238         placeholder from 0x%x to %#x.
11239         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11240         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
11241         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
11242         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
11243         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
11244         * config/i386/i386.c (ix86_target_string): Ditto.
11245         * config/i386/i386.c (output_pic_addr_const): Ditto.
11246         (print_operand): Ditto.
11247
11248 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
11249
11250         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
11251         placeholder from 0x%x to %#x.
11252         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
11253         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
11254         (ASM_OUTPUT_DEBUG_DATA): Ditto.
11255         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
11256         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
11257         * optc-gen.awk: Ditto.
11258         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
11259         (HOST_WIDE_INT_PRINT_HEX): Ditto.
11260         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
11261         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
11262
11263 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11264
11265         * target.h (struct calls): Add function_value_regno_p field.
11266         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
11267         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
11268         * targhooks.c (default_function_value_regno_p): New function.
11269         * targhooks.h (default_function_value_regno_p): Declare function.
11270         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
11271         * builtins.c. (apply_result_size): (Ditto.).
11272         * combine.c. (likely_spilled_retval_p): (Ditto.).
11273         * mode-switching.c. Include 'target.h'.
11274         (create_pre_exit): Use function_value_regno_p hook.
11275         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
11276         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
11277         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
11278
11279         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
11280         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
11281         (ix86_function_value_regno_p): Declare as static, change argument
11282         type to const unsigned int.
11283         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
11284
11285 2010-05-01  Richard Guenther  <rguenther@suse.de>
11286
11287         PR tree-optimization/43949
11288         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
11289         types.
11290         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
11291
11292 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
11293
11294         * rtl.h (CONST_DOUBLE_P): Define.
11295         (rtx_to_double_int): Declare.
11296         * emit-rtl.c (rtx_to_double_int): New function.
11297         * dwarf2out.c (insert_double): New function.
11298         (loc_descriptor, add_const_value_attribute): Clean up, use
11299         rtx_to_double_int and insert_double functions.
11300
11301 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
11302
11303         * doc/extend.texi (Inline): Add missing return keyword to examples.
11304         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
11305         "command-line".
11306
11307 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
11308
11309         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
11310         the variable part of the offset as well.  Use highest_pow2_factor for
11311         all alignment checks.
11312
11313 2010-04-30  Richard Guenther  <rguenther@suse.de>
11314
11315         PR tree-optimization/43879
11316         * tree-ssa-structalias.c (type_could_have_pointers): Functions
11317         can have pointers.
11318
11319 2010-04-30  Jan Hubicka  <jh@suse.cz>
11320
11321         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
11322         varpool.
11323         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
11324
11325 2010-04-30  Jan Hubicka  <jh@suse.cz>
11326
11327         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
11328         New.
11329         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
11330         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
11331         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
11332         cgraph_node_set_needs_ltrans_p): Remove.
11333
11334 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11335
11336         * sdbout.c: Include vec.h, do not include varray.h.
11337         (deferred_global_decls, sdbout_global_decl,
11338         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
11339         * toplev.c: Do not include varray.h.
11340         (dump_memory_report): Do not dump VARRAY statistics.
11341         * gengtype.c (open_base_file): Ignore varray.h.
11342         * Makefile.in: Update for abovementioned changes.
11343         Remove all traces of varray.c and varray.h.
11344         * varray.c: Remove file.
11345         * varray.h: Remove file.
11346
11347 2010-04-30  Jan Hubicka  <jh@suse.cz>
11348
11349         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
11350         references.
11351
11352 2010-04-30  Jan Hubicka  <jh@suse.cz>
11353
11354         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
11355         needed.
11356
11357 2010-04-30  Richard Guenther  <rguenther@suse.de>
11358
11359         * tree-ssa-structalias.c (get_constraint_for_1): Generate
11360         constraints for CONSTRUCTOR.
11361
11362 2010-04-30  Richard Guenther  <rguenther@suse.de>
11363
11364         PR lto/43946
11365         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
11366         first after all lowering passes.
11367
11368 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
11369
11370         * toplev.c: Include varray.h for statistics dumping.
11371         * tree.h: Do not declare varray_head_tag.
11372         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
11373         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
11374         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
11375         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
11376         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
11377         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
11378         c-common.c, c-common.h, reg-stack.c, basic-block.h,
11379         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
11380         include varray.h.
11381         * Makefile.in: Update for abovementioned changes.
11382
11383 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
11384
11385         PR debug/43942
11386         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
11387
11388 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
11389
11390         * config/picochip/picochip.c (picochip_legitimize_address): Define.
11391         Use this function to do machine-specific conversion.
11392         (picochip_legitimize_reload_address): Likewise.
11393         (picochip_legitimate_address_p): Check valid base register only if
11394         strict.
11395         (picochip_check_conditional_copy): Check for modw only if opnd is
11396         register.
11397         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
11398         to call the function in c.
11399         * config/picochip/picochip-protos.h
11400         (picochip_legitimize_reload_address): Define.
11401         * config/picochip/picochip.md (supported_compare1): Define.
11402
11403 2010-04-30  Jan Hubicka  <jh@suse.cz>
11404
11405         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
11406         (cgraph_global_info): Remove inlined.
11407         (LTO_cgraph_tag_names): Remove.
11408         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
11409         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
11410         simplify cgraph tags and document.
11411         (lto_output_node): Use only LTO_cgraph_unavail_node and
11412         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
11413         for_functions_valid, global info, process and output flags.
11414         (input_overwrite_node): Initialize estimated stack size and
11415         estimated growth.  Do not read flags we no longer store.
11416         (input_node): Likewise do not read info no longer stored.
11417         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
11418         flag.
11419
11420 2010-04-30  Richard Guenther  <rguenther@suse.de>
11421
11422         PR tree-optimization/43879
11423         * tree-ssa-structalias.c (get_constraint_for_1): Properly
11424         handle non-zero initializers.
11425
11426 2010-04-30  Richard Guenther  <rguenther@suse.de>
11427
11428         * builtins.c (fold_builtin_1): Delete free (0).
11429
11430 2010-04-29  Jan Hubicka  <jh@suse.cz>
11431
11432         * gengtype.c (open_base_files): Add lto-streamer.h
11433         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
11434         (pass_ipa_cp): GGC collect.
11435         * toplev. (compile_file): Do not output symbols.
11436         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
11437         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
11438         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
11439         * lto-section-in.c: Include ggc.h
11440         (lto_new_in_decl_state): Alloc in GGC.
11441         (lto_delete_in_decl_state): Likewise.
11442         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
11443         Collect.
11444
11445 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11446
11447         PR target/42895
11448         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
11449         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
11450         (HONOR_REG_ALLOC_ORDER): Describe new macro.
11451         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
11452         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
11453         account only if HONOR_REG_ALLOC_ORDER is not defined.
11454         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
11455         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
11456
11457 2010-04-29  Jon Grant  <04@jguk.org>
11458
11459         * collect2.c (vflag): Change type from int to bool.
11460         (debug): Likewise.
11461         (helpflag): New global bool.
11462         (main): Set vflag and debug with boolean, not integer truth values.
11463         Accept new "--help" option and output usage text if found.
11464         * collect2.h (vflag): Update prototype.
11465         (debug): Likewise.
11466
11467 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11468
11469         PR bootstrap/43936
11470         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
11471
11472 2010-04-29  Richard Guenther  <rguenther@suse.de>
11473
11474         PR bootstrap/43935
11475         * plugin.h (invoke_plugin_callbacks): Annotate arguments
11476         with ATTRIBUTE_UNUSED.
11477
11478 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
11479
11480         PR target/43921
11481         * config/i386/i386.c (get_some_local_dynamic_name): Replace
11482         INSN_P with NONDEBUG_INSN_P.
11483         (distance_non_agu_define): Likewise.
11484         (distance_agu_use): Likewise.
11485
11486 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
11487
11488         From Dominique d'Humieres  <dominiq@lps.ens.fr>
11489         PR bootstrap/43858
11490         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
11491         test_set.
11492
11493 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
11494
11495         * plugin.h (invoke_plugin_callbacks): New inline function.
11496         * plugin.c (flag_plugin_added): New global flag.
11497         (add_new_plugin): Initialize above flag.
11498         (invoke_plugin_callbacks): Rename to ...
11499         (invoke_plugin_callbacks_full): ... this.
11500
11501 2010-04-28  Jan Hubicka  <jh@suse.cz>
11502
11503         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
11504         (lto_varpool_replace_node): New.
11505         (lto_symtab_resolve_symbols): Resolve varpool nodes.
11506         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
11507         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
11508         * cgraph.h (varpool_node_ptr): New type.
11509         (varpool_node_ptr): New vector.
11510         (varpool_node_set_def): New structure.
11511         (varpool_node_set): New type.
11512         (varpool_node_set): New vector.
11513         (varpool_node_set_element_def): New structure.
11514         (varpool_node_set_element, const_varpool_node_set_element): New types.
11515         (varpool_node_set_iterator): New type.
11516         (varpool_node): Add prev pointers, add used_from_other_partition,
11517         in_other_partition.
11518         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
11519         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
11520         varpool_get_node, varpool_remove_node): Declare.
11521         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
11522         varpool_node_set_size): New inlines.
11523         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
11524         * tree-pass.h (varpool_node_set_def): Forward declare.
11525         (ipa_opt_pass_d): Summary writting takes vnode sets too.
11526         (ipa_write_optimization_summaries): Update prototype.
11527         * ipa-cp.c (ipcp_write_summary): Update.
11528         * ipa-reference.c (ipa_reference_write_summary): Update.
11529         * lto-cgraph.c (lto_output_varpool_node): New static function.
11530         (output_varpool): New function.
11531         (input_varpool_node): New static function.
11532         (input_varpool_1): New function.
11533         (input_cgraph): Input varpool.
11534         * ipa-pure-const.c (pure_const_write_summary): Update.
11535         * lto-streamer-out.c (lto_output): Update, output varpool too.
11536         (write_global_stream): Kill WPA hack.
11537         (produce_asm_for_decls): Update.
11538         (output_alias_pair_p): Handle variables.
11539         (output_unreferenced_globals): Output only needed partition of varpool.
11540         * ipa-inline.c (inline_write_summary): Update.
11541         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
11542         cgraph.
11543         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
11544         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
11545         varpool_node_set_new, varpool_node_set_add,
11546         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
11547         debug_varpool_node_set): New functions.
11548         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
11549         (execute_one_pass): Process new decls too.
11550         (ipa_write_summaries_2): Pass around vsets.
11551         (ipa_write_summaries_1): Likewise.
11552         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
11553         to add.
11554         (ipa_write_optimization_summaries_1): Pass around vsets.
11555         (ipa_write_optimization_summaries): Likewise.
11556         * varpool.c (varpool_get_node): New.
11557         (varpool_node): Update doubly linked lists.
11558         (varpool_remove_node): New.
11559         (dump_varpool_node): More dumping.
11560         (varpool_enqueue_needed_node): Update doubly linked lists.
11561         (decide_is_variable_needed): Kill ltrans hack.
11562         (varpool_finalize_decl): Kill lto hack.
11563         (varpool_assemble_decl): Skip decls in other partitions.
11564         (varpool_assemble_pending_decls): Update doubly linkes lists.
11565         (varpool_empty_needed_queue): Likewise.
11566         (varpool_extra_name_alias): Likewise.
11567         * lto-streamer.c (lto_get_section_name): Add vars section.
11568         * lto-streamer.h (lto_section_type): Update.
11569         (output_varpool, input_varpool): Declare.
11570
11571 2010-04-28  Mike Stump  <mikestump@comcast.net>
11572
11573         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
11574
11575 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11576
11577         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
11578         record or union type with RECORD_OR_UNION_TYPE_P predicate.
11579         (lto_input_ts_type_tree_pointers): Likewise.
11580         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
11581         (lto_output_ts_type_tree_pointers): Likewise.
11582
11583 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11584
11585         Uniquization of constants at the Tree level
11586         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
11587         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
11588         bit to the end.
11589         (tree_output_constant_def): Declare.
11590         * gimplify.c (gimplify_init_constructor): When using block copy, first
11591         uniquize the constant constructor on the RHS.
11592         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
11593         DECL_IN_CONSTANT_POOL flag.
11594         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
11595         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
11596         constant pool.
11597         (assemble_variable): Deal with symbols belonging to the tree constant
11598         pool.
11599         (get_constant_section): Add ALIGN parameter and simplify.
11600         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
11601         (assemble_constant_contents): Use the expression of the VAR_DECL.
11602         (output_constant_def_contents): Use the alignment of the VAR_DECL.
11603         (tree_output_constant_def): New global function.
11604         (mark_constant): Use the expression of the VAR_DECL.
11605         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
11606         its expression.
11607         (output_object_block): Likewise and assemble the expression.
11608
11609 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
11610
11611         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
11612         hash_tree, eq_tree): New tree hash table.
11613         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
11614         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
11615         lto_orig_address_remove): Reimplement.
11616
11617 2010-04-28  Xinliang David Li  <davidxl@google.com>
11618
11619         PR c/42643
11620         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
11621         (compute_uninit_opnds_pos): New function.
11622         (is_non_loop_exit_postdominating): New function.
11623         (compute_control_dep_chain): New function.
11624         (find_pdom): New function.
11625         (convert_control_dep_chain_into_preds): New function.
11626         (find_predicates): New function.
11627         (find_control_equiv_block): New function.
11628         (collect_phi_def_edges): New function.
11629         (find_def_preds): New function.
11630         (find_dom): New function.
11631         (dump_predicates): New function.
11632         (get_cmp_code): New function.
11633         (is_value_included_in): New function.
11634         (find_matching_predicate_in_rest_chains): New function.
11635         (use_pred_not_overlap_with_undef_path_pred): New function.
11636         (is_use_properly_guarded): New function.
11637         (normalize_cond_1): New function.
11638         (is_and_or_or): New function.
11639         (normalize_cond): New function.
11640         (is_gcond_subset_of): New function.
11641         (is_subset_of_any): New function.
11642         (is_or_set_subset_of): New function.
11643         (is_and_set_subset_of): New function.
11644         (is_norm_cond_subset_of): New function.
11645         (is_pred_expr_subset_of): New function.
11646         (is_pred_chain_subset_of): New function.
11647         (is_included_in): New function.
11648         (is_superset_of): New function.
11649         (find_uninit_use): New function.
11650         (warn_uninitialized_phi): New function.
11651         (compute_possibly_undefined_names): New function.
11652         (ssa_undefined_value_p): New function.
11653         (execute_late_warn_uninitialized): New function.
11654         * tree-ssa.c (ssa_undefined_value_p): Removed.
11655         (warn_uninit): Changed to extern.
11656         (warn_uninitialized_phi): Removed.
11657         (warn_uninitialized_vars): Changed to extern.
11658         (execute_late_warn_uninitialized): Removed
11659         * tree-flow.h: Add new prototypes.
11660         * timevar.def: Add new time variable.
11661         * Makefile.in: Add new build file.
11662
11663 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
11664
11665         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
11666         type if available.
11667
11668 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11669
11670         PR target/22224
11671         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
11672
11673 2010-04-28  Martin Jambor  <mjambor@suse.cz>
11674
11675         * cgraph.h (struct cgraph_node): New field indirect_calls.
11676         (struct cgraph_indirect_call_info): New type.
11677         (struct cgraph_edge): Removed field indirect_call. New fields
11678         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
11679         (cgraph_create_indirect_edge): Declare.
11680         (cgraph_make_edge_direct): Likewise.
11681         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
11682         * ipa-prop.h (struct ipa_param_call_note): Removed.
11683         (struct ipa_node_params): Removed field param_calls.
11684         (ipa_create_all_structures_for_iinln): Declare.
11685         * cgraph.c: Described indirect edges and uids in initial comment.
11686         (cgraph_add_edge_to_call_site_hash): New function.
11687         (cgraph_edge): Search also among the indirect edges, use
11688         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
11689         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
11690         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
11691         site hash.
11692         (initialize_inline_failed): Assign a reason to indirect edges.
11693         (cgraph_create_edge_1): New function.
11694         (cgraph_create_edge): Moved some functionality to
11695         cgraph_create_edge_1.
11696         (cgraph_create_indirect_edge): New function.
11697         (cgraph_edge_remove_callee): Add an assert checking for
11698         non-indirectness.
11699         (cgraph_edge_remove_caller): Special-case indirect edges.
11700         (cgraph_remove_edge): Likewise.
11701         (cgraph_set_edge_callee): New function.
11702         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
11703         (cgraph_make_edge_direct): New function.
11704         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
11705         the declaration of the call statement matches.
11706         (cgraph_node_remove_callees): Special-case indirect edges.
11707         (cgraph_clone_edge): Likewise.
11708         (cgraph_clone_node): Clone also the indirect edges.
11709         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
11710         indirect_call, dump count of indirect_calls edges.
11711         * ipa-prop.c (iinlining_processed_edges): New variable.
11712         (ipa_note_param_call): Create indirect edges instead of
11713         creating notes.  New parameter node.
11714         (ipa_analyze_call_uses): New parameter node, pass it on to
11715         ipa_note_param_call.
11716         (ipa_analyze_stmt_uses): Likewise.
11717         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
11718         (print_edge_addition_message): Work on edges rather than on notes.
11719         (update_call_notes_after_inlining): Likewise, renamed to
11720         update_indirect_edges_after_inlining.
11721         (ipa_create_all_structures_for_iinln): New function.
11722         (ipa_free_node_params_substructures): Do not free notes.
11723         (ipa_edge_duplication_hook): Propagate bits within
11724         iinlining_processed_edges bitmap.
11725         (ipa_node_duplication_hook): Do not duplicate notes.
11726         (free_all_ipa_structures_after_ipa_cp): Renamed to
11727         ipa_free_all_structures_after_ipa_cp.
11728         (free_all_ipa_structures_after_iinln): Renamed to
11729         ipa_free_all_structures_after_iinln.
11730         (ipa_write_param_call_note): Removed.
11731         (ipa_read_param_call_note): Removed.
11732         (ipa_write_indirect_edge_info): New function.
11733         (ipa_read_indirect_edge_info): Likewise.
11734         (ipa_write_node_info): Do not stream notes, do stream information
11735         in indirect edges.
11736         (ipa_read_node_info): Likewise.
11737         (lto_ipa_fixup_call_notes): Removed.
11738         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
11739         * ipa-inline.c (pass_ipa_inline): Likewise.
11740         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
11741         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
11742         * tree-inline.c (copy_bb): Removed an unnecessary double check for
11743         is_gimple_call.
11744         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
11745         edges.
11746         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
11747         (output_cgraph): Stream also indirect edges.
11748         (lto_output_edge): Added capability to stream indirect edges.
11749         (input_edge): Likewise.
11750         (input_cgraph_1): Likewise.
11751         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
11752         of indirect edges.
11753
11754 2010-04-28  Richard Guenther  <rguenther@suse.de>
11755
11756         PR tree-optimization/43879
11757         PR tree-optimization/43909
11758         * tree-ssa-structalias.c (struct variable_info): Add
11759         only_restrict_pointers flag.
11760         (new_var_info): Initialize it.  Increment stats.total_vars here.
11761         (create_function_info_for): Do not increment stats.total_vars here.
11762         (get_function_part_constraint): Fix build with C++.
11763         (insert_into_field_list): Remove.
11764         (push_fields_onto_fieldstack): Properly merge fields.
11765         (create_variable_info_for): Split and simplify.
11766         (create_variable_info_for_1): New piece.
11767         (intra_create_variable_infos): Properly make restrict constraints
11768         from parameters.
11769
11770 2010-04-28  Richard Guenther  <rguenther@suse.de>
11771
11772         PR c++/43880
11773         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
11774
11775 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11776             Jan Hubicka  <hubicka@ucw.cz>
11777
11778         * doc/invoke.texi (-Wsuggest-attribute=const,
11779         -Wsuggest-attribute=pure): Document.
11780         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
11781         (function_always_visible_to_compiler_p,
11782         suggest_attribute, warn_function_pure, warn_function_const):
11783         New functions.
11784         (check_call): Improve debug info.
11785         (analyze_function): Do not check availability.
11786         (add_new_function): Check availability.
11787         (propagate): Output warnings.
11788         (skip_function_for_local_pure_const): New function.
11789         (local_pure_const): Use it; output warnings.
11790         * common.opt (Wsuggest-attribute=const,
11791         Wsuggest-attribute=pure): New.
11792
11793 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
11794
11795         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
11796         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
11797         or DW_CFA_def_cfa_offset{,_sf}.
11798
11799 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11800
11801         * tree.h: Fix truncated long macros.
11802
11803 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
11804
11805         * collect2.c (TARGET_64BIT): Redefine to target's default.
11806         * tlink.c: Likewise.
11807         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
11808         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
11809         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
11810         for underscoring __USER_LABEL_PREFIX__.
11811         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
11812         (SUB_LINK_ENTRY32): New.
11813         (SUB_LINK_ENTRY64): New.
11814         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
11815         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
11816         (SUB_LINK_ENTRY64): New.
11817         (SUB_LINK_ENTRY): New.
11818         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
11819         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
11820         x64 target is choosen.
11821         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
11822         * configure: Regenerated.
11823         * configure.ac (leading-mingw64-underscores): Option added.
11824
11825 2010-04-27  Jan Hubicka  <jh@suse.cz>
11826
11827         * doc/invoke.texi (-fipa-profile): Document.
11828         * opts.c (decode_options): Enable ipa-profile at -O1.
11829         * timevar.def (TV_IPA_PROFILE): Define.
11830         * common.opt (fipa-profile): Add.
11831         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
11832         flag for clones.
11833         (cgraph_propagate_frequency): Handle only local ones.
11834         * tree-pass.h (pass_ipa_profile): Declare.
11835         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
11836         (pass_ipa_profile): Use TV_IPA_PROFILE.
11837         * ipa.c (ipa_profile): New function.
11838         (gate_ipa_profile): Likewise.
11839         (pass_ipa_profile): New global variable.
11840         * passes.c (pass_ipa_profile): New.
11841
11842 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
11843
11844         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
11845
11846 2010-04-27  Martin Jambor  <mjambor@suse.cz>
11847
11848         PR middle-end/43812
11849         * ipa.c (dissolve_same_comdat_group_list): New function.
11850         (function_and_variable_visibility): Call
11851         dissolve_same_comdat_group_list when comdat group contains external or
11852         newly local nodes.
11853         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
11854         lists are circular and that they contain only DECL_ONE_ONLY nodes.
11855
11856 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
11857
11858         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
11859         (const_hash_1) <VECTOR_CST>: New case.
11860         (compare_constant) <VECTOR_CST>: Likewise.
11861         <ADDR_EXPR>: Deal with LABEL_REFs.
11862         (copy_constant) <VECTOR_CST>: New case.
11863
11864 2010-04-27  Jan Hubicka  <jh@suse.cz>
11865
11866         * cgraph.c (cgraph_propagate_frequency): New function.
11867         * cgraph.h (cgraph_propagate_frequency): Declare.
11868         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
11869         cgraph_propagate_frequency.
11870
11871 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
11872
11873         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
11874
11875 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
11876
11877         PR target/40657
11878         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
11879         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
11880         here to determine which regs to push and how much stack to reserve.
11881
11882 2010-04-27  Jie Zhang  <jie@codesourcery.com>
11883
11884         * doc/gimple.texi (gimple_statement_with_ops): Remove
11885         addresses_taken field.
11886         (gimple_statement_with_memory_ops): Likewise.
11887
11888 2010-04-27  Jan Hubicka  <jh@suse.cz>
11889
11890         * tree-inline.c (eni_inlining_weights): Remove.
11891         (estimate_num_insns): Special case more builtins.
11892
11893 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
11894
11895         PR c/32207
11896         * c-typeck.c (build_binary_op): Move forward check for comparison
11897         pointer with null pointer constant and adjust the diagnostic message.
11898
11899 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
11900
11901         PR lto/42776
11902         * configure.ac (gcc_cv_as_section_has_align): Set if installed
11903         binutils supports extended .section directive needed by LTO, or
11904         warn if older binutils found.
11905         (LTO_BINARY_READER): New AC_SUBST'd variable.
11906         (LTO_USE_LIBELF): Likewise.
11907         * gcc/config.gcc (lto_binary_reader): New target-specific configure
11908         variable.
11909         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
11910         (LTO_USE_LIBELF): Likewise.
11911         * configure: Regenerate.
11912
11913         * collect2.c (is_elf): Rename from this ...
11914         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
11915          object files in addition to ELF-formatted ones.
11916         (scan_prog_file): Caller updated.  Also allow for LTO info marker
11917         symbol to be prefixed or not by an extra underscore.
11918
11919         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
11920         * config/i386/winnt.c: Also #include lto-streamer.h
11921         (i386_pe_asm_named_section): Specify 1-byte section alignment for
11922         LTO named sections.
11923         (i386_pe_asm_output_aligned_decl_common): Add comment.
11924         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
11925
11926 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
11927
11928         PR target/43889
11929         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
11930         Add missing earlyclobber for second alternative.
11931
11932 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
11933
11934         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
11935         bits for artificial defs at the top of the block.
11936         * fwprop.c (single_def_use_enter_block): Don't call it.
11937
11938 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
11939
11940         PR 43715
11941         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
11942         instead of "$gcc_cv_objdump -T".
11943         Use "-undefined dynamic_lookup" on darwin.
11944         * gcc/configure: Regenerate.
11945
11946 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
11947
11948         PR c/43893
11949         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
11950
11951 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11952
11953         * c-parser.c (struct c_token): Move location field up.
11954         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
11955         (struct c_declspecs): Convert typespec_word, storage_class, and
11956         default_int_p into bitfields.
11957         (struct c_declarator): Move loc field up.
11958
11959 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
11960
11961         * cfgloop.h (struct loop): Move can_be_parallel field up.
11962         * ipa-prop.h (struct ip_node_params): Move bitfields up.
11963         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
11964         down.
11965         (struct iv_cand): Convert pos field into a bitfield.
11966         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
11967         field up.
11968         (struct _stmt_vec_info): Shuffle fields for better packing.
11969
11970 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11971
11972         * varasm.c (IN_NAMED_SECTION): Remove guard.
11973         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
11974         (IN_NAMED_SECTION_P): ...this.
11975         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
11976         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11977
11978 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
11979
11980         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
11981         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
11982         of shadowing it.  Fix comments.
11983
11984 2010-04-26  Jan Hubicka  <jh@suse.cz>
11985
11986         * cgraph.c (cgraph_create_node): Set node frequency to normal.
11987         (cgraph_clone_node): Copy function frequency.
11988         * cgraph.h (node_frequency): New enum
11989         (struct cgraph_node): Add.
11990         * final.c (rest_of_clean_state): Update.
11991         * lto-cgraph.c (lto_output_node): Output node frequency.
11992         (input_overwrite_node): Input node frequency.
11993         * tre-ssa-loop-ivopts (computation_cost): Update.
11994         * lto-streamer-out.c (output_function): Do not output function
11995         frequency.
11996         * predict.c (maybe_hot_frequency_p): Update and handle functions
11997         executed once.
11998         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
11999         attribute lookup.
12000         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
12001         (compute_function_frequency): Set noreturn functions to be executed
12002         once.
12003         (choose_function_section): Update.
12004         * lto-streamer-in.c (input_function): Do not input function frequency.
12005         * function.c (allocate_struct_function): Do not initialize function
12006         frequency.
12007         * function.h (function_frequency): Remove.
12008         (struct function): Remove function frequency.
12009         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
12010         (try_update): Update.
12011         * tree-inline.c (initialize_cfun): Do not update function frequency.
12012         * passes.c (pass_init_dump_file): Update.
12013         * i386.c (ix86_compute_frame_layout): Update.
12014         (ix86_pad_returns): Update.
12015
12016 2010-04-26  Jie Zhang  <jie@codesourcery.com>
12017
12018         PR tree-optimization/43833
12019         * tree-vrp.c (range_int_cst_p): New.
12020         (range_int_cst_singleton_p): New.
12021         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
12022         when both operands are constants.  Use range_int_cst_p in
12023         BIT_IOR_EXPR case.
12024
12025 2010-04-26  Jan Hubicka  <jh@suse.cz>
12026
12027         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
12028
12029 2010-04-26  Richard Guenther  <rguenther@suse.de>
12030
12031         PR lto/43080
12032         * gimple.c (gimple_decl_printable_name): Deal gracefully
12033         with a NULL DECL_NAME.
12034
12035 2010-04-26  Richard Guenther  <rguenther@suse.de>
12036
12037         PR lto/42425
12038         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
12039         if emitting debug information and it is either a function
12040         or a namespace decl.
12041
12042 2010-04-26  Ira Rosen  <irar@il.ibm.com>
12043
12044         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
12045         determine if the statement is vectorizable, and a macro to access it.
12046         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12047         Skip statements that can't be vectorized. If the analysis fails,
12048         mark the statement as unvectorizable if vectorizing basic block.
12049         (vect_compute_data_refs_alignment): Likewise.
12050         (vect_verify_datarefs_alignment): Skip statements marked as
12051         unvectorizable. Add print.
12052         (vect_analyze_group_access): Skip statements that can't be
12053         vectorized. If the analysis fails, mark the statement as
12054         unvectorizable if vectorizing basic block.
12055         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
12056         * tree-vect-stmts.c (vectorizable_store): Fix the number of
12057         generated stmts for SLP.
12058         (new_stmt_vec_info): Initialize the new field.
12059         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
12060         statements marked as unvectorizable.
12061
12062 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
12063
12064         * c-common.c (flag_isoc1x): New.
12065         (flag_isoc99): Update comment.
12066         * c-common.h (flag_isoc1x): New.
12067         (flag_isoc99): Update comment.
12068         * c-cppbuiltin.c (builtin_define_float_constants): Also define
12069         __<type>_DECIMAL_DIG__.
12070         * c-opts.c (set_std_c1x): New.
12071         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
12072         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
12073         * c.opt (-std=c1x, -std=gnu1x): New options.
12074         * doc/cpp.texi: Mention -std=c1x.
12075         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
12076         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
12077         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
12078         * doc/standards.texi: Mention C1X.
12079         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
12080         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
12081         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
12082         Define for C1X.
12083
12084 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
12085
12086         * config/i386/gmon-sol2.c (_mcleanup): Change format string
12087         placeholder from 0x%x to %#x.
12088         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
12089         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
12090         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
12091         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
12092         * config/i386/i386.c (ix86_target_string): Ditto.
12093         (output_pic_addr_const): Ditto.
12094         (print_operand): Ditto.
12095
12096 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
12097
12098         * combine.c (find_split_point): Add third argument.  Use it
12099         to find nested multiply-accumulate instructions.  Adjust calls.
12100         (try_combine): Adjust call to find_split_point.
12101
12102 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
12103
12104         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
12105
12106 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
12107
12108         PR tree-optimization/41442
12109         * fold-const.c (merge_truthop_with_opposite_arm): New function.
12110         (fold_binary_loc): Call it.
12111
12112 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12113
12114         * toplev.c (general_init): Set default for fdiagnostics-show-option.
12115         * opts.c (common_handle_option): Allow disabling it.
12116         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
12117
12118 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
12119
12120         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
12121         between modes if both types are integral.
12122
12123 2010-04-23  Richard Guenther  <rguenther@suse.de>
12124
12125         PR tree-optimization/43572
12126         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
12127
12128 2010-04-23  Richard Guenther  <rguenther@suse.de>
12129
12130         PR lto/43455
12131         * tree-inline.c (tree_can_inline_p): Also check compatibility
12132         of return types.
12133
12134 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12135
12136         PR tree-optimization/43846
12137         * tree-sra.c (struct access): New flag grp_assignment_read.
12138         (build_accesses_from_assign): Set grp_assignment_read.
12139         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
12140         (enum mark_read_status): New type.
12141         (analyze_access_subtree): Propagate grp_assignment_read, create
12142         accesses also if both direct_read and root->grp_assignment_read.
12143
12144 2010-04-23  Martin Jambor  <mjambor@suse.cz>
12145
12146         PR middle-end/43835
12147         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
12148         function does not have type attributes.
12149
12150 2010-04-23  Richard Guenther  <rguenther@suse.de>
12151
12152         PR lto/42653
12153         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
12154         of FUNCTION_DECLs.
12155
12156 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12157
12158         * sese.h (create_if_region_on_edge): Remove.
12159
12160         * sese.c (create_if_region_on_edge): Make static.
12161
12162         * tree-inline.c: Do not include ggc.h.
12163
12164         * expr.c: Do not include ggc.h.
12165
12166         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
12167         dependencies.
12168
12169 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
12170
12171         PR target/43744
12172         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12173         in the middle of insns for casesi_worker_2.
12174
12175 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
12176
12177         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
12178
12179 2010-04-22  Ira Rosen  <irar@il.ibm.com>
12180
12181         PR tree-optimization/43842
12182         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12183         loop unrolling in update of exit phis. Fix comment.
12184         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
12185         least two reduction statements in the loop before starting SLP
12186         analysis.
12187
12188 2010-04-22  Nick Clifton  <nickc@redhat.com>
12189
12190         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
12191
12192 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
12193
12194         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
12195         to simplify a + ~a.
12196
12197 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12198
12199         * tree-parloops.c (loop_parallel_p): New argument
12200         parloop_obstack.  Pass it down.
12201         (parallelize_loops): New variable parloop_obstack.  Initialize it,
12202         pass it down, free it.
12203
12204         * tree-loop-linear.c (linear_transform_loops): Pass down
12205         lambda_obstack.
12206
12207         * tree-data-ref.h (lambda_compute_access_matrices): New argument
12208         of type struct obstack *.
12209
12210         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
12211         scratch_obstack.  Initialize it, pass down, free it.
12212
12213         * lambda.h (lambda_loop_new): Remove.
12214         (lambda_matrix_new, lambda_matrix_inverse)
12215         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
12216         argument of type struct obstack *.
12217
12218         * lambda-trans.c (lambda_trans_matrix_new): New argument
12219         lambda_obstack.  Pass it down, use obstack allocation for ret.
12220         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
12221         it down.
12222
12223         * lambda-mat.c (lambda_matrix_get_column)
12224         (lambda_matrix_project_to_null): Remove.
12225         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
12226         allocation for mat.
12227         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
12228         lambda_obstack.
12229
12230         * lambda-code.c (lambda_loop_new): New function.
12231         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
12232         (lambda_compute_auxillary_space, lambda_compute_target_space)
12233         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
12234         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
12235         (build_access_matrix): New argument lambda_obstack.  Use obstack
12236         allocation for am.
12237         (lambda_compute_step_signs, lambda_compute_access_matrices): New
12238         argument lambda_obstack.  Pass it down.
12239
12240 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12241
12242         * optabs.h (expand_widening_mult): Declare.
12243
12244 2010-04-22  Richard Guenther  <rguenther@suse.de>
12245
12246         PR tree-optimization/43845
12247         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
12248         lookup the CALL_EXPR function and arguments.
12249
12250 2010-04-22  Nick Clifton  <nickc@redhat.com>
12251
12252         * config/stormy16/stormy16.c
12253         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
12254         * config/stormy16/stormy16.h: Tidy up formatting.
12255         (DONT_USE_BUILTIN_SETJMP): Remove definition.
12256         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
12257         (ineqbranchsi): Delete pattern.
12258         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
12259         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
12260         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
12261         stormy16-lib2-ucmpsi2.c.
12262
12263 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12264
12265         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
12266         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
12267         extra set merge_set_noclobber, and use it to relax the final test
12268         slightly.
12269         * df.h (df_simulate_find_noclobber_defs): Declare.
12270         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
12271         conditional defs.
12272         (df_simulate_find_noclobber_defs): New function.
12273
12274 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
12275
12276         * config/i386/i386.md: Use {} around multi-line preparation statements.
12277
12278 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
12279
12280         * c-tree.h (push_init_level, pop_init_level, set_init_index)
12281         (process_init_element): New argument of type struct obstack *.
12282
12283         * c-typeck.c (push_init_level, pop_init_level, set_designator)
12284         (set_init_index, set_init_label, set_nonincremental_init)
12285         (set_nonincremental_init_from_string, find_init_member)
12286         (output_init_element, output_pending_init_elements)
12287         (process_init_element): New argument braced_init_obstack.  Pass it
12288         down.
12289         (push_range_stack, add_pending_init): New argument
12290         braced_init_obstack.  Use obstack allocation.
12291
12292         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
12293         braced_init_obstack.  Pass it down.
12294         (c_parser_braced_init): New variables ret, braced_init_obstack.
12295         Initialize obstack, pass it down and finally free it.
12296
12297 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
12298
12299         PR middle-end/29274
12300         * tree-pass.h (pass_optimize_widening_mul): Declare.
12301         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
12302         gate_optimize_widening_mul): New static functions.
12303         (pass_optimize_widening_mul): New.
12304         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
12305         <case MULT_EXPR>: Remove support for widening multiplies.
12306         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
12307         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
12308         simplify_gen_unary rather than directly building extensions.
12309         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
12310         WIDEN_MULT_EXPR.
12311         * expmed.c (expand_widening_mult): New function.
12312         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
12313
12314 2010-04-21  Jan Hubicka  <jh@suse.cz>
12315
12316         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
12317         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
12318         * lto-wpa-fixup.c: Remove.
12319         * Makefile.in (lto-wpa-fixup.o): Remove.
12320         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
12321         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
12322         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
12323
12324 2010-04-21  Jan Hubicka  <jh@suse.cz>
12325
12326         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
12327         add write_optimization_summary, read_optimization_summary.
12328         (ipa_write_summaries_of_cgraph_node_set): Remove.
12329         (ipa_write_optimization_summaries): Declare.
12330         (ipa_read_optimization_summaries): Declare.
12331         * ipa-cp.c (pass_ipa_cp): Update.
12332         * ipa-reference.c (pass_ipa_reference): Update.
12333         * ipa-pure-const.c (pass_ipa_pure_const): Update.
12334         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
12335         Update.
12336         * ipa-inline.c (pass_ipa_inline): Update.
12337         * ipa.c (pass_ipa_whole_program): Update.
12338         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
12339         * passes.c (ipa_write_summaries_1): Do not test wpa.
12340         (ipa_write_optimization_summaries_1): New.
12341         (ipa_write_optimization_summaries): New.
12342         (ipa_read_summaries): Do not test ltrans.
12343         (ipa_read_optimization_summaries_1): New.
12344         (ipa_read_optimization_summaries): New.
12345
12346 2010-04-21  Jan Hubicka  <jh@suse.cz>
12347
12348         * lto-cgraph.c (lto_output_node): Do not output comdat groups
12349         for boundary nodes.
12350         (output_cgraph): Do not arrange comdat groups for boundary nodes.
12351
12352 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12353
12354         PR debug/40040
12355         * dwarf2out.c (add_name_and_src_coords_attributes): Add
12356         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
12357
12358 2010-04-21  Jan Hubicka  <jh@suse.cz>
12359
12360         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
12361
12362 2010-04-21  Jan Hubicka  <jh@suse.cz>
12363
12364         * varpool.c (decide_is_variable_needed): Variable is always needed
12365         during ltrans.
12366
12367 2010-04-21  Jan Hubicka  <jh@suse.cz>
12368
12369         * opts.c (decode_options): Enable pure-const pass for whopr.
12370
12371 2010-04-21  Jan Hubicka  <jh@suse.cz>
12372
12373         * cgraph.c (dump_cgraph_node): Dump also assembler name.
12374         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
12375         at WPA dumping.
12376         (cgraph_decide_inlining): Do not expect callee to be removed in all
12377         cases.
12378
12379 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
12380
12381         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
12382
12383 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12384
12385         * config/i386/i386.md (x86_shrd): Add athlon_decode and
12386         amdfam10_decode attributes.
12387
12388 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12389
12390         PR middle-end/43570
12391         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
12392         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
12393         (lower_copyprivate_clauses): Use private var in outer
12394         context instead of original var.  Make sure the types
12395         are correct for VLAs.
12396
12397 2010-04-21  Richard Guenther  <rguenther@suse.de>
12398
12399         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
12400         to non-pointer objects.
12401
12402 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
12403
12404         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
12405         last chain entry if it starts with the still current label.
12406         (add_location_or_const_value_attribute): Check that
12407         loc_list->first->next is NULL instead of comparing ->first with ->last.
12408         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
12409         to add_var_loc_to_decl.
12410
12411         * dwarf2out.c (output_call_frame_info): For dw_cie_version
12412         >= 4 add also address size and segment size fields into CIE header.
12413
12414         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
12415         long as address size is the same as sizeof (void *) and
12416         segment size is 0.
12417         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
12418         address size or segment size is unexpected, return DW_EH_PE_omit.
12419         (classify_object_over_fdes): If get_cie_encoding returned
12420         DW_EH_PE_omit, return -1.
12421         (init_object): If classify_object_over_fdes returned -1,
12422         pretend there were no FDEs at all.
12423
12424 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
12425
12426         * config/i386/i386.md (bswap<mode>2): Macroize expander from
12427         bswap{si,di}2 using SWI48 mode iterator.
12428         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
12429         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
12430         set modrm attribute of bswap insn to 0 and remove length attribute.
12431         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
12432         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
12433         set mode attribute to <MODE> and remove length attribute.
12434
12435 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
12436
12437         PR rtl-optimization/43520
12438         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
12439         zero available registers.
12440
12441 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12442
12443         * builtins.c (fold_builtin_cproj): Fold more cases.
12444
12445 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12446
12447         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
12448         (fold_builtin_1): Fold builtin cproj.
12449         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
12450         Use ATTR_CONST_NOTHROW_LIST.
12451
12452 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
12453
12454         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
12455         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
12456         ffsi2_no_cmove for !TARGET_CMOVE.
12457         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
12458         (ffssi2): Remove expander.
12459         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
12460         mode iterator.
12461         (ctz<mode>2): Ditto from ctz{si,di}2.
12462         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
12463         mode iterator.
12464         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
12465         mode iterator.
12466
12467 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12468
12469         * dwarf2out.c (AT_linkage_name): Define.
12470         (clone_as_declaration): Handle DW_AT_linkage_name.
12471         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
12472         of DW_AT_MIPS_linkage_name.
12473         (move_linkage_attr): Likewise.
12474         (dwarf2out_finish): Likewise.
12475
12476 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
12477
12478         PR middle-end/41952
12479         * fold-const.c (fold_comparison): New folding rule.
12480
12481 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
12482
12483         * double-int.h (double_int_setbit): Declare.
12484         * double-int.c (double_int_setbit): New function.
12485         * rtl.h (immed_double_int_const): Declare.
12486         * emit-rtl.c (immed_double_int_const): New function.
12487         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
12488         and immed_double_int_const functions.
12489         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
12490         expand_copysign_bit):  (Ditto.).
12491         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
12492         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
12493         * dojump.c (prefer_and_bit_test): (Ditto.).
12494         * expr.c (convert_modes, reduce_to_bit_field_precision,
12495         const_vector_from_tree): (Ditto.).
12496         * expmed.c (mask_rtx, lshift_value): (Ditto.).
12497
12498 2010-04-20  Jan Hubicka  <jh@suse.cz>
12499
12500         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
12501         (dump_cgraph_node): Dump new flags.
12502         * cgraph.h (struct cgraph_node): Add flags
12503         reachable_from_other_partition and in_other_partition.
12504         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
12505         other partition can not be removed.
12506         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
12507         the other partition must be output; silence sanity checking on
12508         leaking functions bodies from other paritition.
12509         * lto-cgraph.c (reachable_from_other_partition_p): New function.
12510         (lto_output_node): Output new flags; do not sanity check that inline
12511         clones are output; drop lto_forced_extern_inline_p code; do not mock
12512         visibility flags at partition boundaries.
12513         (add_node_to): New function.
12514         (output_cgraph): Use it to sort functions so masters appear before
12515         clones.
12516         (input_overwrite_node): Input new flags.
12517         * passes.c (ipa_write_summaries): Do not call
12518         lto_new_extern_inline_states.
12519         * lto-section-out.c (forced_extern_inline,
12520         lto_new_extern_inline_states lto_delete_extern_inline_states,
12521         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
12522         * lto-streamer.h (lto_new_extern_inline_states,
12523         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
12524         lto_forced_extern_inline_p): Kill.
12525
12526 2010-04-20  Richard Guenther  <rguenther@suse.de>
12527
12528         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
12529         from vars that can have pointers.
12530         (process_constraint): Dump useless constraints.
12531
12532 2010-04-20  Richard Guenther  <rguenther@suse.de>
12533
12534         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
12535         (dump_sa_points_to_info): Remove asserts.
12536         (init_base_vars): nothing_id isn't an escape point nor does it
12537         have pointers.
12538
12539 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
12540
12541         * tree.h (TYPE_REF_IS_RVALUE): Define.
12542         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
12543         should_move_die_to_comdat, prune_unused_types_walk): Handle
12544         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
12545         (modified_type_die, gen_reference_type_die): Emit
12546         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
12547         if TYPE_REF_IS_RVALUE and -gdwarf-4.
12548
12549 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12550
12551         PR target/43635
12552         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
12553         calls for -fpic -m31 if they have been sibcall optimized.
12554
12555 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
12556
12557         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
12558         ar.lc fixed and call-used.
12559
12560         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
12561
12562 2010-04-19  Jan Hubicka  <jh@suse.cz>
12563
12564         * opts.c (decode_options): Disable whpr incompatible passes.
12565         * lto/lto.c (lto_1_to_1_map): Skip clones.
12566         (read_cgraph_and_symbols): Do not mark everything as needed.
12567         (do_whole_program_analysis): Do map only after optimizing;
12568         set proper cgraph_state; use passmanager.
12569
12570 2010-04-19  DJ Delorie  <dj@redhat.com>
12571
12572         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
12573         POINTER_PLUS_EXPR and fix them.
12574
12575 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
12576
12577         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
12578         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
12579         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
12580         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
12581         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
12582         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
12583         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
12584         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
12585         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
12586         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
12587         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
12588
12589 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
12590
12591         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
12592         (check_cond_move_block): Likewise.
12593         (cond_move_process_if_block): Likewise.
12594         (noce_find_if_block): Improve formatting.
12595         (find_if_header): Pass 0 to memset and tweak conditions.
12596         (cond_exec_find_if_block): Fix long lines and tweak conditions.
12597
12598 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12599
12600         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
12601         for -gdwarf-4.
12602
12603         PR middle-end/43337
12604         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
12605         with non-local decl doesn't need chain.
12606
12607 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
12608
12609         * ira-color.c (allocno_reload_assign): Avoid accumulating
12610         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
12611
12612 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12613
12614         * gimple.h (create_tmp_reg): Declare.
12615         * gimplify.c (create_tmp_reg): New function.
12616         (gimplify_return_expr): Use create_tmp_reg.
12617         (gimplify_omp_atomic): Likewise.
12618         (gimple_regimplify_operands): Likewise.
12619         * tree-dfa.c (make_rename_temp): Likewise.
12620         * tree-predcom.c (predcom_tmp_var): Likewise.
12621         (reassociate_to_the_same_stmt): Likewise.
12622         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
12623         (get_replaced_param_substitute): Likewise.
12624         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
12625         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
12626         * tree-ssa-pre.c (get_representative_for): Likewise.
12627         (create_expression_by_pieces): Likewise.
12628         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
12629         (create_tailcall_accumulator): Likewise.
12630
12631 2010-04-19  Martin Jambor  <mjambor@suse.cz>
12632
12633         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
12634         new_stmt.
12635         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
12636
12637 2010-04-19  Richard Guenther  <rguenther@suse.de>
12638
12639         PR tree-optimization/43796
12640         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
12641         from SCEV in the lattice.
12642         (vrp_visit_phi_node): Dump change.
12643
12644 2010-04-19  Richard Guenther  <rguenther@suse.de>
12645
12646         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
12647         * configure: Re-generated.
12648
12649 2010-04-19  Richard Guenther  <rguenther@suse.de>
12650
12651         PR tree-optimization/43783
12652         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
12653         constant ARRAY_REF operands two and three if possible.
12654
12655 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
12656
12657         PR target/43766
12658         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
12659
12660 2010-04-19  Jie Zhang  <jie@codesourcery.com>
12661
12662         PR target/43662
12663         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
12664
12665 2010-04-19  Ira Rosen  <irar@il.ibm.com>
12666
12667         PR tree-optimization/37027
12668         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
12669         and macro to access it.
12670         (vectorizable_reduction): Add argument.
12671         (vect_get_slp_defs): Likewise.
12672         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
12673         statements for possible use in SLP.
12674         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
12675         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
12676         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
12677         add new argument.
12678         (vectorizable_reduction): Likewise.
12679         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
12680         vect_get_slp_defs.
12681         (vectorizable_type_demotion, vectorizable_type_promotion,
12682         vectorizable_store): Likewise.
12683         (vect_analyze_stmt): Update call to vectorizable_reduction.
12684         (vect_transform_stmt): Likewise.
12685         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
12686         (vect_build_slp_tree): Fix indentation. Check that there are no loads
12687         from different interleaving chains in same node.
12688         (vect_slp_rearrange_stmts): New function.
12689         (vect_supported_load_permutation_p): Allow load permutations for
12690         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
12691         inside SLP nodes if necessary.
12692         (vect_analyze_slp_instance): Handle reductions.
12693         (vect_analyze_slp): Try to build SLP instances originating from groups
12694         of reductions.
12695         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
12696         (vect_get_constant_vectors): Create initial vectors for reductions
12697         according to reduction code. Add new argument.
12698         (vect_get_slp_defs): Add new argument, pass it to
12699         vect_get_constant_vectors.
12700         (vect_schedule_slp_instance): Remove SLP tree root statements.
12701
12702 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
12703
12704         * tree.h (ENUM_IS_SCOPED): Define.
12705         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
12706         for ENUM_IS_SCOPED enums.
12707
12708 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
12709
12710         * fold-const.c (fold_comparison): Use ssizetype.
12711         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
12712         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
12713         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
12714         * tree-object-size.c (compute_object_sizes): Use size_type_node.
12715
12716         * tree.h (initialize_sizetypes): Remove parameter.
12717         (build_common_tree_nodes): Remove second parameter.
12718         * stor-layout.c (initialize_sizetypes): Remove parameter.
12719         Always create an unsigned type.
12720         (set_sizetype): Assert that the passed type is unsigned and simplify.
12721         * tree.c (build_common_tree_nodes): Remove second parameter.
12722         Adjust call to initialize_sizetypes.
12723         * c-decl.c (c_init_decl_processing): Remove second argument in call to
12724         build_common_tree_nodes.
12725
12726 2010-04-18  Matthias Klose  <doko@ubuntu.com>
12727
12728         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
12729
12730 2010-04-18  Ira Rosen  <irar@il.ibm.com>
12731
12732         PR tree-optimization/43771
12733         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
12734         load permutation doesn't have gaps.
12735
12736 2010-04-18  Jan Hubicka  <jh@suse.cz>
12737
12738         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
12739         (sse_prologue_save_insn expander): Use new pattern.
12740         (sse_prologue_save_insn1): New pattern and splitter.
12741         (sse_prologue_save_insn): Update to deal also with 64bit aligned
12742         blocks.
12743         * i386.c (setup_incoming_varargs_64): Do not compute jump
12744         destination here.
12745         (ix86_gimplify_va_arg): Update alignment needed.
12746         (ix86_local_alignment): Do not align all local arrays to 128bit.
12747
12748 2010-04-17  Jan Hubicka  <jh@suse.cz>
12749
12750         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
12751
12752 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12753
12754         * arm.md (negdi2): Remove redundant code to force values into a
12755         register.
12756
12757 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12758
12759         * arm/bpabi.S: Add EABI alignment attributes to objects.
12760         * arm/bpabi-v6m.S: Likewise.
12761         * arm/crti.asm: Likewise.
12762         * arm/crtn.asm: Likewise.
12763         * arm/lib1funcs.asm: Likewise.
12764         * arm/libunwind.S: Likewise.
12765
12766 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
12767
12768         * arm-protos.h (tune_params): New structure.
12769         * arm.c (current_tune): New variable.
12770         (arm_constant_limit): Delete.
12771         (struct processors): Add pointer to the tune parameters.
12772         (arm_slowmul_tune): New tuning option.
12773         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
12774         (all_cores): Adjust to pick up the tuning model.
12775         (arm_constant_limit): New function.
12776         (arm_override_options): Select the appropriate tuning model.  Delete
12777         initialization of arm_const_limit.
12778         (arm_split_constant): Use the new constant-limit model.
12779         (arm_rtx_costs): Pick up the current tuning model.
12780         * arm.md (is_strongarm, is_xscale): Delete.
12781         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
12782         for Xscale variant architectures.
12783         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
12784
12785 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
12786
12787         * config/arm/arm.c (arm_gen_constant): Remove unused variable
12788         can_shift.
12789         (arm_rtx_costs_1): Remove unused variable extra_cost.
12790         (arm_unwind_emit_set): Use variable offset.
12791         (thumb1_output_casesi): Remove unused variable flags.
12792
12793 2010-04-16  Jeff Law  <law@redhat.com>
12794
12795         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
12796         needing assignment rather than doing a two-phase assignment.  Remove
12797         unused variable 'm'.
12798
12799 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12800
12801         PR bootstrap/43767
12802         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
12803
12804 2010-04-16  Doug Kwan  <dougkwan@google.com>
12805
12806         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
12807         (next_operand_entry_id): New static variable.
12808         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
12809         (add_to_ops_vec): Assigned unique ID to operand entry.
12810         (struct oecount_s): New field ID.
12811         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
12812         (undistribute_ops_list): Assign unique IDs to oecounts.
12813         (init_reassoc): reset next_operand_entry_id.
12814
12815 2010-04-16  Doug Kwan  <dougkwan@google.com>
12816
12817         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
12818         missing left parenthesis.
12819
12820 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
12821
12822         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
12823         *btdi_rex64 using SWI48 mode iterator.
12824         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
12825         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
12826         *jcc_btdi_mask_rex64.
12827
12828 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
12829
12830         * double-int.h (tree_to_double_int): Convert to macro.
12831         * double-int.c (tree_to_double_int): Remove.
12832
12833 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12834
12835         PR debug/43762
12836         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
12837         with want_address 2 and in case a single element list might be
12838         possible, call it again with want_address 0.
12839
12840 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12841
12842         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
12843         case 'W' print operands for HI mode.
12844         * config/h8300/h8300.h (Y0, Y2) : New constraints.
12845         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
12846         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
12847         * config/h8300/predicate.md (bit_register_indirect_operand): New.
12848
12849         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
12850
12851         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
12852         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
12853         #xx:3 and #xx:4 mode.
12854
12855         * config/h8300/h8300.md (inverted load with HImode dest): Add
12856         support for H8300SX.
12857
12858         * config/h8300/predicate.md (bit_operand): Allow immediate values that
12859         satisfy 'U' constraint.
12860
12861 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12862
12863         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
12864         * configure: Regenerate.
12865         * config.in: Regenerate.
12866         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
12867         works.
12868
12869 2010-04-16  Richard Guenther  <rguenther@suse.de>
12870
12871         * tree.h (struct tree_decl_minimal): Move pt_uid ...
12872         (struct tree_decl_common): ... here.
12873         (DECL_PT_UID): Adjust.
12874         (SET_DECL_PT_UID): Likewise.
12875         (DECL_PT_UID_SET_P): Likewise.
12876
12877 2010-04-16  Richard Guenther  <rguenther@suse.de>
12878
12879         PR tree-optimization/43572
12880         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
12881         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
12882         * tree-flow.h (is_call_clobbered): Remove.
12883         * tree-flow-inline.h (is_call_clobbered): Likewise.
12884         * tree-dfa.c (dump_variable): Do not dump call clobber state.
12885         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
12886         (execute_return_slot_opt): Adjust.
12887         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
12888         check for call clobbered vars here.
12889         (find_tail_calls): Move tailcall verification to the
12890         proper place.
12891
12892 2010-04-16  Diego Novillo  <dnovillo@google.com>
12893
12894         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
12895
12896 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12897
12898         PR target/40603
12899         * config/arm/arm.md (cbranchqi4): New pattern.
12900         * config/arm/predicates.md (const0_operand,
12901         cbranchqi4_comparison_operator): New predicates.
12902
12903 2010-04-16  Richard Guenther  <rguenther@suse.de>
12904
12905         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
12906         (dump_gimple_stmt): Likewise.
12907
12908 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
12909
12910         * recog.h (struct recog_data): New field is_operator.
12911         (struct insn_operand_data): New field is_operator.
12912         * recog.c (extract_insn): Set recog_data.is_operator.
12913         * genoutput.c (output_operand_data): Emit code to set the
12914         is_operator field.
12915         * reload.c (find_reloads): Use it rather than testing for an
12916         empty constraint string.
12917
12918         PR target/41514
12919         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
12920         If the previous insn is a cbranchsi4_insn with the same arguments,
12921         omit the compare instruction.
12922
12923         * config/arm/arm.md (addsi3_cbranch): If destination is a high
12924         register, inputs must be low registers and we need a low register
12925         scratch.  Handle alternative 2 like alternative 3.
12926
12927 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
12928
12929         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
12930         don't call get_addr on both.  If one expression is a VALUE and
12931         the other a REG, check VALUE's locs if the REG isn't among them.
12932
12933 2010-04-16  Christian Bruel  <christian.bruel@st.com>
12934
12935         * config/sh/sh.h (sh_frame_pointer_required): New function.
12936         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
12937         (flag_omit_frame_pointer) Set.
12938         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
12939         (rounded_frame_size): Adjust size with outgoing_args_size.
12940         (sh_set_return_address): Must return from stack pointer.
12941         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
12942         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
12943         (ACCUMULATE_OUTGOING_ARGS): Define.
12944         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
12945         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
12946
12947 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
12948
12949         PR target/43471
12950         * config/sh/sh.c (sh_legitimize_reload_address): Use
12951         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
12952         Remove a unneeded check for offset_base.
12953
12954 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
12955
12956         * configure: Regenerated.
12957
12958 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12959
12960         * config/s390/s390.c (s390_call_save_register_used): Switch back
12961         to HARD_REGNO_NREGS.
12962
12963 2010-04-15  Richard Guenther  <rguenther@suse.de>
12964
12965         * alias.c (alias_set_subset_of): Handle alias-set zero
12966         child properly.
12967
12968 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
12969             Julian Brown  <julian@codesourcery.com>
12970
12971         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
12972         alternatives according to use of high and low regs.
12973         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
12974         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
12975         optimizing for size on Thumb-2.
12976
12977 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
12978
12979         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
12980
12981 2010-04-15  Richard Guenther  <rguenther@suse.de>
12982
12983         * tree-ssa-structalias.c (struct variable_info): Add
12984         is_fn_info flag.
12985         (new_var_info): Initialize it.
12986         (dump_constraints): Support printing last added constraints.
12987         (debug_constraints): Adjust.
12988         (dump_constraint_graph): Likewise.
12989         (make_heapvar_for): Check for NULL cfun.
12990         (get_function_part_constraint): New function.
12991         (get_fi_for_callee): Likewise.
12992         (find_func_aliases): Properly implement IPA PTA constraints.
12993         (process_ipa_clobber): New function.
12994         (find_func_clobbers): Likewise.
12995         (insert_into_field_list_sorted): Remove.
12996         (create_function_info_for): Properly allocate vars for IPA mode.
12997         Do not use insert_into_field_list_sorted.
12998         (create_variable_info_for): Properly generate constraints for
12999         global vars in IPA mode.
13000         (dump_solution_for_var): Always dump the solution.
13001         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
13002         (find_what_var_points_to): Adjust.
13003         (pt_solution_set): Change.
13004         (pt_solution_ior_into): New function.
13005         (pt_solution_empty_p): Export.
13006         (pt_solution_includes_global): Adjust.
13007         (pt_solution_includes_1): Likewise.
13008         (pt_solutions_intersect_1): Likewise.
13009         (dump_sa_points_to_info): Check some invariants.
13010         (solve_constraints): Move constraint dumping ...
13011         (compute_points_to_sets): ... here.
13012         (ipa_pta_execute): ... and here.
13013         (compute_may_aliases): Do not re-compute points-to info
13014         locally if IPA info is available.
13015         (ipa_escaped_pt): New global var.
13016         (ipa_pta_execute): Properly implement IPA PTA.
13017         * tree-into-ssa.c (dump_decl_set): Support dumping
13018         decls not in referenced-vars.
13019         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
13020         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
13021         (dump_points_to_solution): Likewise.
13022         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
13023         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
13024         (remap_gimple_stmt): Reset call clobber/use information if necessary.
13025         (copy_decl_to_var): Copy DECL_PT_UID.
13026         (copy_result_decl_to_var): Likewise.
13027         * tree.c (make_node_stat): Initialize DECL_PT_UID.
13028         (copy_node_stat): Copy it.
13029         * tree.h (DECL_PT_UID): New macro.
13030         (SET_DECL_PT_UID): Likewise.
13031         (DECL_PT_UID_SET_P): Likewise.
13032         (struct tree_decl_minimal): Add pt_uid member.
13033         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
13034         (pt_solution_empty_p): Declare.
13035         (pt_solution_set): Adjust.
13036         (ipa_escaped_pt): Declare.
13037         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
13038         * gimple-pretty-print.c (pp_points_to_solution): New function.
13039         (dump_gimple_call): Dump call clobber/use information.
13040         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
13041         * tree-pass.h (TDF_ALIAS): New dump option.
13042         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
13043         * doc/invoke.texi (-fipa-pta): Update documentation.
13044
13045 2010-04-15  Richard Guenther  <rguenther@suse.de>
13046
13047         * Makefile.in (OBJS-common): Add gimple-fold.o.
13048         (gimple-fold.o): New rule.
13049         * tree.h (maybe_fold_offset_to_reference,
13050         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
13051         prototypes ...
13052         * gimple.h: ... here.
13053         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
13054         may_propagate_address_into_dereference): Move prototypes ...
13055         * gimple.h: ... here.
13056         * tree-ssa-ccp.c (get_symbol_constant_value,
13057         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
13058         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
13059         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
13060         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
13061         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
13062         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
13063         gimplify_and_update_call_from_tree): Move ...
13064         * gimple-fold.c: ... here.  New file.
13065         (ccp_fold_builtin): Rename to ...
13066         (gimple_fold_builtin): ... this.
13067         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
13068
13069 2010-04-15  Richard Guenther  <rguenther@suse.de>
13070
13071         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
13072         fit_double_type, force_fit_type_double, add_double_with_sign,
13073         neg_double, mul_double_with_sign, lshift_double, rshift_double,
13074         lrotate_double, rrotate_double, div_and_round_double): Move ...
13075         * double-int.c: ... here.
13076         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
13077         add_double, neg_double, mul_double_with_sign, mul_double,
13078         lshift_double, rshift_double, lrotate_double, rrotate_double,
13079         div_and_round_double): Move prototypes ...
13080         * double-int.h: ... here.
13081
13082 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
13083
13084         PR target/43742
13085         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
13086         matching constraints to ensure inputs match the output.
13087
13088 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
13089
13090         PR target/43742
13091         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
13092         in an input-only operand.
13093
13094 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
13095
13096         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
13097         (double_int_not, double_int_lshift, double_int_rshift): Declare.
13098         (double_int_negative_p): Convert to static inline function.
13099         * double-int.c (double_int_lshift, double_int_lshift): New functions.
13100         (double_int_negative_p): Remove.
13101         * tree.h (lshift_double, rshift_double):
13102         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
13103         * fold-const.c (fold_convert_const_int_from_real,
13104         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
13105         (lshift_double): Change type of arith argument to bool.
13106         (rshift_double): Change type of arith argument to bool. Correct
13107         comment.
13108         * expmed.c (mask_rtx, lshift_value): (Ditto.).
13109
13110 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
13111
13112         PR target/21803
13113         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
13114         at the start and end of the then/else blocks, and omit them from the
13115         conversion.
13116         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
13117         argument; all callers changed.  Pass zero to old_insns_match_p instead.
13118         (flow_find_head_matching_sequence): New function.
13119         (old_insns_match_p): Check REG_EH_REGION notes for calls.
13120         * basic-block.h (flow_find_cross_jump,
13121         flow_find_head_matching_sequence): Declare functions.
13122
13123 2010-04-14  Jason Merrill  <jason@redhat.com>
13124
13125         PR c++/36625
13126         * c-common.c (attribute_takes_identifier_p): New fn.
13127         * c-common.h: Declare it.
13128
13129 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13130
13131         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
13132         splitter condition.
13133         (*udivmod<mode>4): Ditto.
13134
13135 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13136
13137         * config/i386/i386.md (maxmin_int): Rename code attribute from
13138         maxminiprefix and update all users.
13139         (maxmin_float): Ditto from maxminfprefix.
13140         (logic): Ditto from logicprefix.
13141         (absneg_mnemonic): Ditto from absnegprefix.
13142         * config/i386/mmx.md: Update all users of maxminiprefix,
13143         maxminfprefix and logicprefix for rename.
13144         * config/i386/sse.md: Ditto.
13145         * config/i386/sync.md (sync_<code><mode>): Update for
13146         logicprefix rename.
13147
13148 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13149
13150         PR 42966
13151         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
13152         warnings converted to errors.
13153
13154 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13155
13156         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
13157         used insn_type variable.
13158         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
13159         to avoid set-but-not-used warning.
13160
13161 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13162
13163         * df-core.c (df_ref_debug): Change format string placeholder
13164         from 0x%x to %#x.
13165         * dwarf2asm.c (dw2_asm_output_data_raw,
13166         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
13167         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
13168         * dwarf2out.c (output_cfi, output_cfi_directive,
13169         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
13170         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
13171         Ditto.
13172         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
13173         * print-rtl.c (print_rtx): Ditto.
13174
13175 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
13176
13177         PR middle-end/42694
13178         * builtins.c (expand_builtin_pow_root): New function to expand pow
13179         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
13180         series of sqrt and cbrt calls under -ffast-math.
13181         (expand_builtin_pow): Call it.
13182
13183 2010-04-14  Michael Matz  <matz@suse.de>
13184
13185         PR tree-optimization/42963
13186         * tree-cfg.c (touched_switch_bbs): New static variable.
13187         (group_case_labels_stmt): New function broken out from ...
13188         (group_case_labels): ... here, use the above.
13189         (start_recording_case_labels): Allocate touched_switch_bbs.
13190         (end_recording_case_labels): Deallocate it, call
13191         group_case_labels_stmt.
13192         (gimple_redirect_edge_and_branch): Remember index of affected BB.
13193
13194 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13195
13196         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
13197         from insn template.
13198
13199 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
13200
13201         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
13202
13203 2010-04-13  Jan Hubicka  <jh@suse.cz>
13204
13205         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
13206         of optimized out static functions.
13207         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
13208         cost computation.  Also sanity check for overflows.
13209         (update_caller_keys): Update cgraph_edge_badness call; properly
13210         update fibheap and sanity check that it is up to date.
13211         (add_new_edges_to_heap): Update cgraph_edge_badness.
13212         (cgraph_decide_inlining_of_small_function): Likewise;
13213         add sanity checking that badness in heap is up to date;
13214         improve dumping of reason; Update badness of calls to the
13215         offline copy of function currently inlined; dump badness
13216         of functions not inlined because of unit growth limits.
13217
13218 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13219
13220         PR middle-end/32628
13221         * c-common.c (pointer_int_sum): Disregard overflow that occured only
13222         because of sign-extension change when converting to sizetype here...
13223         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
13224
13225         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
13226         the folding to constants.  Remove redundant final conversion.
13227         (fold_binary) <associate>: Do not associate if the re-association of
13228         constants alone overflows.
13229         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
13230         to the end of the list.
13231         (multiple_of_p) <COND_EXPR>: New case.
13232
13233 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13234
13235         * opt-functions.awk (opt_sanitized_name): New.
13236         (opt_enum): New.
13237         * optc-gen.awk: Use it
13238         * opth-gen.awk: Use it.
13239
13240 2010-04-13  Martin Jambor  <mjambor@suse.cz>
13241
13242         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
13243         (sra_modify_assign): Delete stmts loading dead data even if racc has no
13244         children.  Call replace_uses_with_default_def_ssa_name to handle
13245         SSA_NAES on lhs.
13246
13247 2010-04-13  Michael Matz  <matz@suse.de>
13248
13249         PR middle-end/43730
13250         * builtins.c (expand_builtin_interclass_mathfn): Also create
13251         a register if the predicate doesn't match.
13252
13253 2010-04-13  Diego Novillo  <dnovillo@google.com>
13254
13255         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
13256         * c-pch.c: Include timevar.h.
13257         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
13258         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
13259         * ggc-common.c: Include timevar.h.
13260         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
13261         * timevar.def (TV_PCH_SAVE): Define.
13262         (TV_PCH_CPP_SAVE): Define.
13263         (TV_PCH_PTR_REALLOC): Define.
13264         (TV_PCH_PTR_SORT): Define.
13265         (TV_PCH_RESTORE): Define.
13266         (TV_PCH_CPP_RESTORE): Define.
13267
13268 2010-04-13  Michael Matz  <matz@suse.de>
13269
13270         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
13271         into MINUS_EXPRs.
13272         (can_reassociate_p): New function.
13273         (break_up_subtract_bb, reassociate_bb): Use it.
13274
13275 2010-04-13  Richard Guenther  <rguenther@suse.de>
13276
13277         PR bootstrap/43737
13278         * builtins.c (c_readstr): Fix assert.
13279
13280 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
13281
13282         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
13283         when generating cltd insn.
13284
13285         (*ashl<mode>3_1): Remove special handling for register operand 2.
13286         (*ashlsi3_1_zext): Ditto.
13287         (*ashlhi3_1): Ditto.
13288         (*ashlhi3_1_lea): Ditto.
13289         (*ashlqi3_1): Ditto.
13290         (*ashlqi3_1_lea): Ditto.
13291         (*<shiftrt_insn><mode>3_1): Ditto.
13292         (*<shiftrt_insn>si3_1_zext): Ditto.
13293         (*<shiftrt_insn>qi3_1_slp): Ditto.
13294         (*<rotate_insn><mode>3_1): Ditto.
13295         (*<rotate_insn>si3_1_zext): Ditto.
13296         (*<rotate_insn>qi3_1_slp): Ditto.
13297
13298 2010-04-13  Richard Guenther  <rguenther@suse.de>
13299
13300         * tree-ssa-structalias.c (callused_id): Remove.
13301         (call_stmt_vars): New.
13302         (get_call_vi): Likewise.
13303         (lookup_call_use_vi): Likewise.
13304         (lookup_call_clobber_vi): Likewise.
13305         (get_call_use_vi): Likewise.
13306         (get_call_clobber_vi): Likewise.
13307         (make_transitive_closure_constraints): Likewise.
13308         (handle_const_call): Adjust to do per-call call-used handling.
13309         (handle_pure_call): Likewise.
13310         (find_what_var_points_to): Remove general callused handling.
13311         (init_base_vars): Likewise.
13312         (init_alias_vars): Initialize call_stmt_vars.
13313         (compute_points_to_sets): Process call-used and call-clobbered
13314         vars for call statements.
13315         (delete_points_to_sets): Free call_stmt_vars.
13316
13317 2010-04-13  Richard Guenther  <rguenther@suse.de>
13318
13319         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13320         Only add RW dependence for dependence distance zero.
13321         Adjust maximal vectorization factor according to dependences.
13322         Move alignment handling ...
13323         (vect_find_same_alignment_drs): ... here.  New function.
13324         (vect_analyze_data_ref_dependences): Adjust.
13325         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
13326         (vect_analyze_data_refs): Adjust minimal vectorization factor
13327         according to data references.
13328         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
13329         dependences before determining the vectorization factor.
13330         Analyze alignment after determining the vectorization factor.
13331         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
13332         dependences before alignment.
13333         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
13334         Adjust prototype.
13335         (vect_analyze_data_refs): Likewise.
13336         (MAX_VECTORIZATION_FACTOR): New define.
13337
13338 2010-04-13  Duncan Sands  <baldrick@free.fr>
13339
13340         * except.h (lang_eh_type_covers): Remove.
13341         * except.c (lang_eh_type_covers): Likewise.
13342
13343 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13344             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13345
13346         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
13347         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
13348         UNITS_PER_LONG where it is ABI relevant.
13349         (s390_return_addr_rtx): Likewise.
13350         (s390_back_chain_rtx): Likewise.
13351         (s390_frame_area): Likewise.
13352         (s390_frame_info): Likewise.
13353         (s390_initial_elimination_offset): Likewise.
13354         (save_gprs): Likewise.
13355         (s390_emit_prologue): Likewise.
13356         (s390_emit_epilogue): Likewise.
13357         (s390_function_arg_advance): Likewise.
13358         (s390_function_arg): Likewise.
13359         (s390_va_start): Likewise.
13360         (s390_gimplify_va_arg): Likewise.
13361         (s390_function_profiler): Likewise.
13362         (s390_optimize_prologue): Likewise.
13363         (s390_rtx_costs): Likewise.
13364         (s390_secondary_reload): Likewise.
13365         (s390_promote_function_mode): Likewise.
13366         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
13367         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
13368         registers available.
13369         (s390_unwind_word_mode): New function.
13370         (s390_function_value): Split 64 bit values into register pair if
13371         used as return value.
13372         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
13373         function call parameters.  Handle parallels.
13374         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
13375         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
13376         (DWARF_CIE_DATA_ALIGNMENT): New macro.
13377         (s390_expand_setmem): Remove unused variable src_addr.
13378         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
13379         deal with 64 bit registers.
13380         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
13381         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
13382         (UNITS_PER_LONG): New macro.
13383         * libjava/include/s390-signal.h: Define extended ucontext
13384         structure containing the upper halfs of the 64 bit registers.
13385
13386 2010-04-13  Simon Baldwin  <simonb@google.com>
13387
13388         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
13389
13390 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
13391
13392         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
13393         rvalue on the RHS if the LHS is of a non-renamable type.
13394         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
13395
13396 2010-04-13  Matthias Klose  <doko@ubuntu.com>
13397
13398         * gcc.c (cc1_options): Handle -iplugindir before processing
13399         the cc1 spec. Only add -iplugindir once.
13400         (cpp_unique_options): Add -iplugindir option if -fplugin* options
13401         found.
13402         * common.opt (iplugindir): Remove `Separate' property, initialize.
13403         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
13404         option.
13405         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
13406         (distclean): Remove plugin dir.
13407         * doc/invoke.texi: Document -iplugindir.
13408
13409 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
13410
13411         * doc/plugins.texi (Loading Plugins): Document short
13412         -fplugin=foo option.
13413         (Plugin API): Mention default_plugin_dir_name function.
13414
13415         * gcc.c (find_file_spec_function): Add new declaration.
13416         (static_spec_func): Use it for "find-file".
13417         (find_file_spec_function): Add new function.
13418         (cc1_options): Add -iplugindir option if -fplugin* options found.
13419
13420         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
13421
13422         * plugin.c (add_new_plugin): Updated comment, and handle short
13423         plugin name.
13424         (default_plugin_dir_name): Added new function.
13425
13426         * common.opt (iplugindir): New option to set the plugin directory.
13427
13428 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
13429
13430         * config/i386/i386.md (any_rotate): New code iterator.
13431         (rotate_insn): New code attribute.
13432         (rotate): Ditto.
13433         (SWIM124): New mode iterator.
13434         (<rotate_insn>ti3): New expander.
13435         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
13436         any_rotate code iterator.
13437         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
13438         using any_rotate code iterator and SWIM124 mode iterator.
13439         (ix86_rotlti3): New insn_and_split pattern.
13440         (ix86_rotrti3): Ditto.
13441         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
13442         ix86_rotl{di,ti}3 patterns.
13443         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
13444         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
13445         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
13446         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
13447         code iterator and SWI mode iterator.
13448         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
13449         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
13450         code iterator.
13451         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
13452         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
13453         (bswap rotatert splitter): Add splitter.
13454         (bswap splitter): Macroize splitter using any_rotate code iterator.
13455         Add insn predicate to split only for TARGET_USE_XCHGB or when
13456         optimizing function for size.
13457
13458 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13459
13460         * config/pa/pa.c (emit_move_sequence): Remove use of
13461         deleted variable flag_argument_noalias.
13462
13463 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13464
13465         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
13466         configurations.
13467         Add to unsupported targets list.
13468         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
13469         sparc*-sun-solaris2.[567]* from target lists.
13470         * configure: Regenerate.
13471         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
13472         removal.
13473         Remove Solaris 7 patch references.
13474         (Specific, sparc-sun-solaris2.7): Removed.
13475         (sparc-sun-solaris2*): Update Solaris 7 example.
13476         (sparc64-*-solaris2*): Likewise.
13477
13478 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13479
13480         * config.build (alpha*-dec-osf4*): Remove.
13481         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
13482         of obsolete configurations.
13483         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
13484         support.
13485         * config/alpha/t-osf4: Renamed to ...
13486         * config/alpha/t-osf5: ... this.
13487         * config/alpha/osf.h: Renamed to ...
13488         * config/alpha/osf5.h: ... this.
13489         Merged old osf5.h contents.
13490         Update comments.
13491         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
13492         (EXTRA_SPECS): Removed.
13493         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
13494         reflect removal of Tru64 UNIX V4.0/V5.0 support.
13495         Document that.
13496
13497 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13498
13499         * doc/contrib.texi (Contributors, Rainer Orth): Update.
13500
13501 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
13502
13503         PR/43702
13504         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
13505         __thiscall convention.
13506
13507 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13508
13509         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
13510         orig_base.
13511         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
13512
13513 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
13514
13515         * function.c (assign_parms_initialize_all): Add unused attribute
13516         to fntype.
13517
13518 2010-04-12  Richard Guenther  <rguenther@suse.de>
13519
13520         * gsstruct.def (GSS_CALL): New.
13521         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
13522         * gimple.h: Include tree-ssa-alias.h.
13523         (struct gimple_statement_call): New.
13524         (union gimple_statement_struct_d): Add gimple_call member.
13525         (gimple_call_reset_alias_info): Declare.
13526         (gimple_call_use_set): New function.
13527         (gimple_call_clobber_set): Likewise.
13528         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
13529         * gimple.c (gimple_call_reset_alias_info): New function.
13530         (gimple_build_call_1): Call it.
13531         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13532         * tree-inline.c (remap_gimple_stmt): Likewise.
13533         (expand_call_inline): Remove callused handling.
13534         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
13535         * tree-dfa.c (dump_variable): Likewise.
13536         * tree-parloops.c (parallelize_loops): Likewise.
13537         * tree-ssa.c (init_tree_ssa): Likewise.
13538         (delete_tree_ssa): Likewise.
13539         * tree-flow-inline.h (is_call_used): Remove.
13540         * tree-flow.h (struct gimple_df): Remove callused member.
13541         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
13542         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
13543         (ref_maybe_used_by_call_p_1): Simplify.
13544         (call_may_clobber_ref_p_1): Likewise.
13545         * tree-ssa-structalias.c (compute_points_to_sets): Set
13546         the call stmt used and clobbered sets.
13547         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
13548         (find_tail_calls): Verify the tail call.
13549
13550 2010-04-12  Richard Guenther  <rguenther@suse.de>
13551
13552         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
13553         single-iteration always-inline inlining.
13554         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
13555         (cgraph_decide_inlining): Do not handle always-inline specially.
13556         (try_inline): Remove always-inline cycle detection special case.
13557         Do not recurse on always-inlines.
13558         (cgraph_early_inlining): Do not iterate if not optimizing.
13559         (cgraph_gate_early_inlining): remove.
13560         (pass_early_inline): Run unconditionally.
13561         (gate_cgraph_decide_inlining): New function.
13562         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
13563         not inlining or optimizing.
13564         (cgraph_decide_inlining_of_small_functions): Also consider
13565         always-inline functions.
13566         (cgraph_default_inline_p): Return true for nodes which should
13567         disregard inline limits.
13568         (estimate_function_body_sizes): Assume zero size and time for
13569         nodes which are marked as disregarding inline limits.
13570         (cgraph_decide_recursive_inlining): Do not perform recursive
13571         inlining on always-inline nodes.
13572
13573 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
13574
13575         PR bootstrap/43699
13576         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
13577         for exprs satisfying handled_component_p.
13578
13579 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
13580
13581         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
13582         non-constant aggregate elements.
13583
13584         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
13585         is a real initialization.
13586
13587 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
13588
13589         PR c/36774
13590         * c-decl.c (start_function): Move forward check for nested function.
13591
13592 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
13593
13594         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
13595         * config/sh/sh.c: Include reload.h.
13596         (sh_legitimize_reload_address): New.
13597         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
13598         sh_legitimize_reload_address.
13599
13600 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13601
13602         * config/sh/sh.md (*movqi_pop): New insn pattern.
13603         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
13604
13605 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13606
13607         * config/i386/i386.md (any_shiftrt): New code iterator.
13608         (shiftrt_insn): New code attribute.
13609         (shiftrt): Ditto.
13610         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
13611         using any_shiftrt code iterator.
13612         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
13613         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
13614         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
13615         pattern from corresponding peephole2 patterns.
13616         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
13617         using any_shiftrt code iterator.
13618         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
13619         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
13620         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
13621         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
13622         *{ashr,lshr}<mode>3_cmp_zext.
13623         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
13624
13625 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13626
13627         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
13628         scratch register.
13629         (*lshr<mode>3_cconly): Ditto.
13630
13631 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
13632
13633         * config/i386/i386.md (lshr<mode>3): Macroize expander from
13634         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13635         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13636         pattern from *lshr{di,ti}3_1 and corresponding splitters using
13637         DWI mode iterator.
13638         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13639         from corresponding peephole2 patterns.
13640         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
13641         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
13642         and *lshrdi3_1_rex64 using SWI mode iterator.
13643         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
13644         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
13645         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
13646         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
13647         and *lshrdi3_cmp_rex64 using SWI mode iterator.
13648         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
13649         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
13650         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
13651         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
13652         SWI mode iterator.
13653
13654 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
13655
13656         * config/i386/i386.md (ashr<mode>3): Macroize expander from
13657         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
13658         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13659         pattern from *ashr{di,ti}3_1 and corresponding splitters using
13660         DWI mode iterator.
13661         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
13662         from corresponding peephole2 patterns.
13663         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
13664         (ashrsi3_cvt): Rename from ashrsi3_31.
13665         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
13666         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
13667         and x86_64_shift_adj_3 using SWI48 mode iterator.
13668         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
13669         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
13670         and *ashrdi3_1_rex64 using SWI mode iterator.
13671         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
13672         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
13673         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
13674         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
13675         and *ashrdi3_cmp_rex64 using SWI mode iterator.
13676         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
13677         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
13678         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
13679         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
13680         SWI mode iterator.
13681         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
13682         * config/i386/i386.c (ix86_split_ashr): Update for renamed
13683         x86_shift<mode>_adj_3 expanders.
13684
13685 2010-04-10  Wei Guozhi  <carrot@google.com>
13686
13687         PR target/42601
13688         * config/arm/arm.c (arm_pic_static_addr): New function.
13689         (legitimize_pic_address): Call arm_pic_static_addr when it detects
13690         a static symbol.
13691         (arm_output_addr_const_extra): Output expression for new pattern.
13692         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
13693
13694 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
13695
13696         * ira-costs.c (record_reg_classes): Ignore alternatives that are
13697         not enabled.
13698
13699         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
13700         * web.c: Include "insn-config.h" and "recog.h".
13701         (union_match_dups): New function.
13702         (web_main): Call it.
13703         (union_defs): Don't try to recognize match_dups.
13704
13705         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
13706         if doing so would replace the entire pattern.
13707
13708 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
13709
13710         PR target/43707
13711         PR target/43709
13712         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
13713         and splitter pattern.  Change splitter operand 1 predicate to
13714         nonmemory_operand.
13715
13716 2010-04-09  Martin Jambor  <mjambor@suse.cz>
13717
13718         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
13719         lattices are addresses of CONST_DECLs with the same initial value.
13720         (ipcp_print_all_lattices): Print values of CONST_DECLs.
13721         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
13722
13723 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
13724             Bernd Schmidt  <bernds@codesourcery.com>
13725
13726         * loop-invariant.c (replace_uses): New static function.
13727         (move_invariant_reg): Use it to ensure we can replace the uses.
13728
13729 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
13730
13731         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
13732         function template.
13733         (picochip_override_options): Enable section anchors only above -O1.
13734         (picochip_reorg): Fixed a couple of build warnings.
13735
13736 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13737
13738         * configure.ac (plugin -rdynamic test): Log result.
13739         * configure: Regenerate.
13740         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
13741         (RDYNAMIC_SPEC): Define.
13742         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
13743
13744 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13745
13746         * configure.ac: Determine Sun ld version numbers.
13747         (comdat_group): Restrict GNU ld version checks to gld.
13748         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
13749         (enable_comdat): Support --enable-comdat.
13750         * configure: Regenerate.
13751         * doc/install.texi (Configuration): Document --enable-comdat.
13752
13753 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13754
13755         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
13756         * config/sol2-gld.h: ... here.
13757         * config.gcc (sparc*-*-solaris2*): Reflect this.
13758         (i[34567]86-*-solaris2*): Use it.
13759
13760 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
13761
13762         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
13763         setup_clocks_p.
13764         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
13765
13766 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13767
13768         PR 42965
13769         * diagnostic.c (diagnostic_initialize): Initialize
13770         some_warnings_are_errors.
13771         (diagnostic_finish): New.
13772         (diagnostic_action_after_output): Call it before exiting.
13773         (diagnostic_report_diagnostic): Do not print message here. Set
13774         some_warnings_are_errors.
13775         * diagnostic.h (diagnostic_context): Delete
13776         issue_warnings_are_errors_message. Add some_warnings_are_errors.
13777         (diagnostic_finish): Declare.
13778         * toplev.c (toplev_main): Call it before exit.
13779
13780 2010-04-09  Jason Merrill  <jason@redhat.com>
13781
13782         PR c++/42623
13783         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
13784         for incomplete type.
13785
13786         PR c++/41788
13787         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
13788         based on a warning flag.
13789
13790 2010-04-09  Richard Guenther  <rguenther@suse.de>
13791
13792         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
13793
13794 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
13795
13796         PR bootstrap/43684
13797         * varasm.c (default_assemble_visibility): Wrap vars that are
13798         set, but unused, by targets without GAS.
13799         * config/rs6000/rs6000.c (paired_emit_vector_compare):
13800         Remove set, but unused, vars.
13801         (rs6000_legitimize_tls_address): Likewise.
13802         (altivec_expand_dst_builtin): Likewise.
13803         * config/darwin.c (machopic_classify_symbol): Likewise.
13804         (machopic_indirection_name): Likewise.
13805
13806 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
13807
13808         * config/i386/i386.md (DWI): New mode iterator.
13809         (S): New mode attribute.
13810         (shift_operand): Ditto.
13811         (shift_immediate_operand): Ditto.
13812         (ashl_input_operand): Ditto.
13813         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
13814         using SDWIM mode iterator.
13815         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
13816         pattern from *ashl{di,ti}3_1 and corresponding splitters using
13817         DWI mode iterator.
13818         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
13819         from corresponding peephole2 patterns.
13820         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
13821         and x86_64_shift_adj_1 using SWI48 mode iterator.
13822         (x86_shift<mode>_adj_2): Ditto.
13823         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
13824         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
13825         using SWI48 mode iterator.
13826         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
13827         *ashldi3_cmp_rex64 using SWI mode iterator.
13828         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
13829         *ashldi3_cconly_rex64 using SWI mode iterator.
13830         * config/i386/i386.c (ix86_split_ashl): Update for renamed
13831         x86_shift<mode>_adj_{1,2}.
13832         (ix86_split_ashr): Ditto.
13833         (ix86_split_lshr): Ditto.
13834
13835 2010-04-09  Richard Guenther  <rguenther@suse.de>
13836
13837         * target.h (builtin_conversion): Pass in input and output types.
13838         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
13839         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
13840         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
13841         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
13842
13843         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
13844         Handle AVX modes.
13845         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
13846
13847 2010-04-09  Richard Guenther  <rguenther@suse.de>
13848
13849         PR target/43152
13850         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
13851
13852 2010-04-09  Richard Guenther  <rguenther@suse.de>
13853
13854         * tree-vectorizer.h (struct _stmt_vec_info): Document
13855         that vectype is the type of the LHS.
13856         (supportable_widening_operation, supportable_narrowing_operation):
13857         Get both input and output vector types as arguments.
13858         (vect_is_simple_use_1): Declare.
13859         (get_same_sized_vectype): Likewise.
13860         * tree-vect-loop.c (vect_determine_vectorization_factor):
13861         Set STMT_VINFO_VECTYPE to the vector type of the def.
13862         (vectorizable_reduction): Adjust.
13863         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
13864         Adjust.  Specify the output vector type.
13865         (vect_pattern_recog_1): Adjust.
13866         * tree-vect-stmts.c (get_same_sized_vectype): New function.
13867         (vectorizable_call): Adjust.
13868         (vectorizable_conversion): Likewise.
13869         (vectorizable_operation): Likewise.
13870         (vectorizable_type_demotion): Likewise.
13871         (vectorizable_type_promotion): Likewise.
13872         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
13873         the def.
13874         (vect_is_simple_use_1): New function.
13875         (supportable_widening_operation): Get both input and output
13876         vector types.
13877         (supportable_narrowing_operation): Likewise.
13878         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
13879
13880 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
13881
13882         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
13883         __thiscall and _thiscall as predefined macros.
13884         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
13885         thiscall attribute handling.
13886         (ix86_comp_type_attributes): Likewise.
13887         (ix86_function_regparm): Likewise.
13888         (ix86_return_pops_args): Likewise.
13889         (init_cumulative_args): Likewise.
13890         (find_drap_reg): Likewise.
13891         (ix86_static_chain): Likewise.
13892         (x86_this_parameter): Likewise.
13893         (x86_output_mi_thunk): Likewise.
13894         (ix86_attribute_table): Add description for thiscall attribute.
13895         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
13896         * doc/extend.texi: Add documentation for thiscall.
13897
13898 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13899
13900         PR c++/28584
13901         * c.opt (Wint-to-pointer-cast): Available in C++.
13902         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
13903
13904 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
13905
13906         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
13907         * calls.c (expand_call): Pass the function type to aggregate_value_p.
13908         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
13909         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
13910         function type instead.  Reorder and simplify checks.
13911
13912         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
13913
13914 2010-04-08  Jing Yu  <jingyu@google.com>
13915             Zdenek Dvorak  <ook@ucw.cz>
13916
13917         PR tree-optimization/42720
13918         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
13919         loop unswitch conditions here from ...
13920         (tree_unswitch_single_loop): ... here.
13921
13922 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13923
13924         * tree-if-conv.c: Fix comments and simplify logic.
13925
13926 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
13927
13928         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
13929         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
13930         (main_tree_if_conversion): Update call to tree_if_conversion.
13931
13932 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13933
13934         PR 42485
13935         * doc/invoke.texi (-b,-V): Delete.
13936         * doc/tm.texi: Do not mention -b.
13937         * gcc.c (display_help): Delete -b and -V.
13938         (process_command): Delete -b and -V.
13939         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
13940
13941 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
13942             Wolfgang Gellerich  <gellerich@de.ibm.com>
13943
13944         Implement target hook for loop unrolling
13945         * target.h (loop_unroll_adjust): Add a new target hook function.
13946         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
13947         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
13948         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
13949         (s390_loop_unroll_adjust): Implement the new target hook for s390.
13950         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
13951         target hook.
13952         (decide_unroll_stupid): Likewise.
13953
13954 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13955
13956         PR target/43643
13957         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
13958
13959 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13960
13961         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
13962         (Specific, *-*-solaris2*): Likewise.
13963         Don't prefer Sun as over GNU as.
13964
13965 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
13966
13967         * config/s390/s390.c (override_options): Adjust the z10 defaults
13968         for max-unroll-times, max-completely-peeled-insns
13969         and max-completely-peel-times.
13970
13971 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13972
13973         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
13974         instructions for z10.
13975         (s390_expand_setmem): Likewise.
13976         (s390_expand_cmpmem): Likewise.
13977
13978 2010-04-08  Richard Guenther  <rguenther@suse.de>
13979
13980         PR tree-optimization/43679
13981         * tree-ssa-pre.c (eliminate): Only propagate copies.
13982
13983 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13984
13985         PR bootstrap/43681
13986         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
13987         set but not used variable warning.
13988
13989 2010-04-08  Wei Guozhi  <carrot@google.com>
13990
13991         PR target/41653
13992         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
13993         (arm_size_rtx_costs): Call the new function when optimized for size.
13994
13995 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
13996
13997         PR debug/43670
13998         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
13999         op0 is not a MEM, just return NULL instead of assertion
14000         failure.
14001         (discover_nonconstant_array_refs): Don't walk debug stmts.
14002
14003 2010-04-08  Doug Kwan  <dougkwan@google.com>
14004
14005         * configure.ac: Recognize gold and do not use its version number
14006         to test ld features.
14007         * configure: Regenerate.
14008
14009 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
14010
14011         PR middle-end/40815
14012         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
14013         (negate_value): Move code to push elements to broken_up_substracts ...
14014         (eliminate_plus_minus_pair): ... here.  Push operands that have no
14015         negative pair to plus_negates.
14016         (repropagate_negates, init_reassoc, fini_reassoc): Update.
14017
14018 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14019
14020         * doc/install.texi (Configuration): Move description of
14021         --enable-lto, --with-libelf*, --enable-gold from Java section to
14022         general section.
14023
14024         * doc/generic.texi (Working with declarations)
14025         (Function Properties, C and C++ Trees): Fix typos.
14026         * doc/sourcebuild.texi (Top Level): Likewise.
14027
14028 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14029
14030         PR c/18624
14031         * tree.h (DECL_READ_P): Define.
14032         (struct tree_decl_common): Add decl_read_flag.
14033         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
14034         a set but not used warning.
14035         (merge_decls): Merge DECL_READ_P flag.
14036         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
14037         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
14038         * c-common.c (handle_used_attribute, handle_unused_attribute):
14039         Likewise.
14040         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
14041         New prototypes.
14042         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
14043         New functions.
14044         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
14045         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
14046         c_parser_binary_expression, c_parser_cast_expression,
14047         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
14048         Call default_function_array_read_conversion instead of
14049         default_function_array_conversion where needed.
14050         (c_parser_unary_expression, c_parser_conditional_expression,
14051         c_parser_postfix_expression_after_primary, c_parser_initelt):
14052         Likewise.  Call mark_exp_read where needed.
14053         (c_parser_statement_after_labels, c_parser_asm_operands,
14054         c_parser_typeof_specifier, c_parser_sizeof_expression,
14055         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
14056         where needed.
14057         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
14058         New.
14059         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
14060         (warn_unused_but_set_parameter): Default to warn_unused
14061         && extra_warnings.
14062         * doc/invoke.texi: Document -Wunused-but-set-variable and
14063         -Wunused-but-set-parameter.
14064
14065         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
14066         used count variable.
14067         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
14068         when operandN variables aren't used in the body of the expander
14069         or splitter.
14070         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
14071         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
14072         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
14073         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
14074         FOR_EACH_IMM_USE_ON_STMT): Likewise.
14075         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
14076         * tree.c (PROCESS_ARG): Likewise.
14077
14078 2010-04-07  Simon Baldwin  <simonb@google.com>
14079
14080         * diagnostic.h (diagnostic_override_option_index): New macro to
14081         set a diagnostic's option_index.
14082         * c-tree.h (c_cpp_error): Add warning reason argument.
14083         * opts.c (_warning_as_error_callback): New.
14084         (register_warning_as_error_callback): Store callback for
14085         warnings enabled via enable_warning_as_error.
14086         (enable_warning_as_error): Call callback, minor code tidy.
14087         * opts.h (register_warning_as_error_callback): Declare.
14088         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
14089         response to -Werror=.
14090         (c_common_init_options): Register warning_as_error_callback in opts.c.
14091         * common.opt: Add -Wno-cpp option.
14092         * c-common.c (struct reason_option_codes_t): Map cpp warning
14093         reason codes to gcc option indexes.
14094         * (c_option_controlling_cpp_error): New function, lookup the gcc
14095         option index for a cpp warning reason code.
14096         * (c_cpp_error): Add warning reason argument, call
14097         c_option_controlling_cpp_error for diagnostic_override_option_index.
14098         * doc/invoke.texi: Document -Wno-cpp.
14099
14100 2010-04-07  Richard Guenther  <rguenther@suse.de>
14101
14102         * ipa-reference.c (mark_load): Use get_base_address.
14103         (mark_store): Likewise.
14104
14105         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
14106         inserting GIMPLE_NOPs into the IL.
14107         * tree-ssa-structalias.c (get_constraint_for_component_ref):
14108         Explicitly strip handled components and indirect references.
14109
14110         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
14111         folding address expressions.
14112         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
14113         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
14114         operand_equal_p to compare decls.
14115         (ptr_deref_may_alias_decl_p): Likewise.
14116         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
14117         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
14118         Handle reversed comparison ops.
14119         * tree-sra.c (asm_visit_addr): Use get_base_address.
14120         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
14121         * ipa-reference.c (mark_address): Use get_base_address.
14122
14123 2010-04-07  Richard Guenther  <rguenther@suse.de>
14124
14125         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
14126         Propagate constants everywhere.
14127
14128 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
14129
14130         PR debug/43516
14131         * tree.c (MAX_INT_CACHED_PREC): Define.
14132         (nonstandard_integer_type_cache): New array.
14133         (build_nonstandard_integer_type): Cache results for precision
14134         <= MAX_INT_CACHED_PREC.
14135
14136 2010-04-07  Richard Guenther  <rguenther@suse.de>
14137
14138         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
14139         -fargument-noalias-global, -fargument-noalias-anything): Remove.
14140         * common.opt: Likewise.
14141         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
14142         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
14143         (nonoverlapping_memrefs_p): Likewise.
14144         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
14145         * opts.c (common_handle_option): Handle OPT_fargument_alias,
14146         OPT_fargument_noalias, OPT_fargument_noalias_anything and
14147         OPT_fargument_noalias_global for backward compatibility.
14148
14149 2010-04-07  Richard Guenther  <rguenther@suse.de>
14150
14151         PR tree-optimization/43270
14152         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
14153         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
14154         * tree-ssa-pre.c (phi_translate_1): Adjust.
14155         (fully_constant_expression): Split out vn_reference handling to ...
14156         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
14157         Fold reads from constant strings.
14158         (vn_reference_lookup): Handle fully constant references.
14159         (vn_reference_lookup_pieces): Likewise.
14160         * Makefile.in (expmed.o-warn): Add -Wno-error.
14161
14162 2010-04-07  Martin Jambor  <mjambor@suse.cz>
14163
14164         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
14165
14166 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
14167
14168         PR driver/41594
14169         * gcc.c: Add -static-libstdc++ to list of recognized options.
14170
14171 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14172
14173         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
14174
14175 2010-04-07  Richard Guenther  <rguenther@suse.de>
14176
14177         PR middle-end/42617
14178         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
14179         bases build simple mem attributes to retain points-to information.
14180
14181 2010-04-07  Richard Guenther  <rguenther@suse.de>
14182
14183         PR middle-end/42617
14184         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
14185         preserve points-to related information.
14186
14187 2010-04-07  Richard Guenther  <rguenther@suse.de>
14188
14189         PR middle-end/42617
14190         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
14191         discard plain indirect references.
14192         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
14193         * tree.c (tree_nop_conversion): Likewise.
14194
14195 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
14196
14197         PR debug/43628
14198         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
14199
14200 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
14201
14202         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
14203         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
14204
14205 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14206
14207         * tree-if-conv.c: Fix indentation and comments.
14208
14209 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14210
14211         * tree-if-conv.c: Sort static functions in topological order.
14212
14213 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
14214
14215         * tree-if-conv.c: Fix indentation and comments.
14216
14217 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14218
14219         PR middle-end/43519
14220         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
14221         lang_hooks.types.type_for_size instead of
14222         build_nonstandard_integer_type.
14223         When converting an unsigned type to signed, double its precision.
14224         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
14225         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
14226         (graphite_create_new_loop_guard): When ub + 1 wraps around,
14227         use lb <= ub.
14228
14229 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14230
14231         PR middle-end/43519
14232         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14233         POINTER_PLUS_EXPR for pointer types.
14234
14235 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14236
14237         PR middle-end/43519
14238         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
14239         * graphite-clast-to-gimple.c: Include langhooks.h.
14240         (max_signed_precision_type): New.
14241         (max_precision_type): Takes two types as arguments.
14242         (precision_for_value): New.
14243         (precision_for_interval): New.
14244         (gcc_type_for_interval): New.
14245         (gcc_type_for_value): New.
14246         (gcc_type_for_clast_term): New.
14247         (gcc_type_for_clast_red): New.
14248         (gcc_type_for_clast_bin): New.
14249         (gcc_type_for_clast_expr): Split up into several functions.
14250         (gcc_type_for_clast_eq): Rewritten.
14251         (compute_bounds_for_level): New.
14252         (compute_type_for_level_1): New.
14253         (compute_type_for_level): New.
14254         (gcc_type_for_cloog_iv): Removed.
14255         (gcc_type_for_iv_of_clast_loop): Rewritten.
14256         (graphite_create_new_loop): Compute the lower and upper bound types
14257         with gcc_type_for_clast_expr.
14258         (graphite_create_new_loop_guard): Same.
14259         (find_cloog_iv_in_expr): Removed.
14260         (compute_cloog_iv_types_1): Removed.
14261         (compute_cloog_iv_types): Removed.
14262         (gloog): Do not call compute_cloog_iv_types.
14263         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
14264         GBB_CLOOG_IV_TYPES.
14265         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
14266         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
14267         (GBB_CLOOG_IV_TYPES): Removed.
14268
14269 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14270
14271         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
14272         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
14273         (detect_commutative_reduction): Same.
14274
14275 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14276
14277         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
14278         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
14279         argument.
14280         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
14281         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
14282         (rewrite_commutative_reductions_out_of_ssa): Same.
14283         * passes.c (execute_function_todo): Call verify_ssa for every pass
14284         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
14285         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
14286         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
14287         with an extra argument.
14288         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
14289         verify_ssa only when the extra argument is true.
14290         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
14291         with an extra argument.
14292         (tree_transform_and_unroll_loop): Same.
14293
14294 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
14295
14296         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
14297         for all the passes of the LNO having LOOP_CLOSED_SSA.
14298         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
14299         * tree-loop-distribution.c (pass_loop_distribution): Same.
14300         * tree-pass.h (TODO_verify_loops): Removed.
14301         * tree-ssa-loop.c (pass_tree_loop_init): Same.
14302         (pass_lim): Same.
14303         (pass_tree_unswitch): Same.
14304         (pass_predcom): Same.
14305         (pass_vectorize): Same.
14306         (pass_linear_transform): Same.
14307         (pass_graphite_transforms): Same.
14308         (pass_iv_canon): Same.
14309         (pass_complete_unroll): Same.
14310         (pass_complete_unrolli): Same.
14311         (pass_parallelize_loops): Same.
14312         (pass_loop_prefetch): Same.
14313         (pass_iv_optimize): Same.
14314
14315 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
14316
14317         PR middle-end/32824
14318         * passes.c (init_optimization_passes): Move pass_lim before
14319         pass_copy_prop and pass_dce_loop.
14320
14321 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14322
14323         PR target/43667
14324         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
14325         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
14326         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
14327         MULTI_* defines for 4 argument vpermil2p* builtins.
14328
14329 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14330
14331         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
14332         * config/i386/i386.c (x86_maybe_negate_const_int): New.
14333         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
14334         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
14335         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
14336         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
14337         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
14338         Use x86_maybe_negate_const_int to output insn mnemonic.
14339         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
14340         check from instruction predicate.  Update comments.
14341         * config/i386/sync.md (sync_add<mode>): Use
14342         x86_maybe_negate_const_int to output insn mnemonic.
14343
14344 2010-04-06  Jan Hubicka  <jh@suse.cz>
14345
14346         PR tree-optimization/42906
14347         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
14348         IGNORE_SELF argument.  Set visited_control_parents for fully
14349         processed BBs.
14350         (find_obviously_necessary_stmts): Update call of
14351         mark_control_dependent_edges_necessary.
14352         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
14353
14354 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
14355
14356         * config/i386/i386.md: Remove comment about 'e' and 'E'
14357         operand modifier.
14358
14359 2010-04-06  Richard Guenther  <rguenther@suse.de>
14360
14361         PR tree-optimization/43627
14362         * tree-vrp.c (extract_range_from_unary_expr): Widenings
14363         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
14364         not varying.
14365
14366 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
14367
14368         * BASE-VER: Change to 4.6.0.
14369
14370         PR target/43638
14371         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
14372         handling.
14373
14374 2010-04-06  Richard Guenther  <rguenther@suse.de>
14375
14376         PR middle-end/43661
14377         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
14378
14379 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14380
14381         * doc/invoke.texi (Optimize Options): Document that LTO
14382         won't remove object access purely due to incompatible
14383         declarations.
14384
14385 2010-04-04  Matthias Klose  <doko@ubuntu.com>
14386
14387         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
14388         Initialize variable.
14389
14390 2010-04-03  Richard Guenther  <rguenther@suse.de>
14391
14392         PR middle-end/42509
14393         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
14394         require a non-NULL MEM_OFFSET.
14395
14396 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
14397
14398         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
14399         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
14400         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
14401         config/alpha/predicates.md, config/arm/arm.md,
14402         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
14403         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
14404         config/darwin9.h, config/darwin.c, config/darwin.h,
14405         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
14406         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
14407         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
14408         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
14409         config/mips/mips.md, config/mn10300/mn10300.c,
14410         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
14411         config/rs6000/aix.h, config/rs6000/dfp.md,
14412         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
14413         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
14414         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
14415         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
14416         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
14417         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
14418         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
14419         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
14420         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
14421         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
14422         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
14423         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
14424         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
14425         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
14426         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
14427         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
14428         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
14429         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
14430         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
14431         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
14432         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
14433         opt-functions.awk, opth-gen.awk, params.def, passes.c,
14434         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
14435         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
14436         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
14437         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
14438         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
14439         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
14440         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
14441         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
14442         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
14443         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
14444         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
14445         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
14446         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
14447         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
14448
14449 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14450
14451         PR other/43620
14452         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
14453         * aclocal.m4: Regenerate.
14454
14455 2010-04-02  Richard Guenther  <rguenther@suse.de>
14456
14457         PR tree-optimization/43629
14458         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
14459         if we have seen a constant value.
14460
14461 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
14462
14463         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
14464
14465 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
14466
14467         PR target/43469
14468         * arm.c (legitimize_tls_address): Adjust call to
14469         gen_tls_load_dot_plus_four.
14470         (arm_note_pic_base): New function.
14471         (arm_cannot_copy_insn_p): Use it.
14472         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
14473         constraint.
14474
14475 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14476
14477         PR bootstrap/43531
14478
14479         Revert:
14480         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14481
14482         * Makefile.in ($(out_object_file)): Depend on
14483         gt-$(basename $(notdir $(out_file))).h.
14484
14485 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
14486
14487         * config.gcc (lm32-*-rtems*): Add t-lm32.
14488
14489 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
14490
14491         * config.gcc: Add lm32-*-rtems*.
14492         * config/lm32/rtems.h: New file.
14493
14494 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
14495
14496         PR target/42609
14497         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
14498
14499 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
14500
14501         * dwarf2out.c (output_compilation_unit_header): For
14502         -gdwarf-4 use version 4 instead of version 3.
14503         (output_line_info): For version 4 and above emit additional
14504         maximum ops per insn header field.
14505         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
14506
14507         * dwarf2out.c (is_c_family, is_java): Remove.
14508         (lower_bound_default): New function.
14509         (add_bound_info, gen_descr_array_type_die): Use it.
14510
14511 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
14512
14513         PR debug/43325
14514         * dwarf2out.c (gen_variable_die): Allow debug info for variable
14515         re-declaration when it happens in a function.
14516
14517 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
14518
14519         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
14520         (cgraph_remove_function_insertion_hook): Same.
14521         (cgraph_call_function_insertion_hooks): Same.
14522
14523 2010-04-01  Richard Guenther  <rguenther@suse.de>
14524
14525         PR middle-end/43614
14526         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
14527         and TREE_THIS_VOLATILE.
14528         (copy_ref_info): Likewise.
14529         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
14530         * tree.c (build6_stat): Ignore side-effects of all but arg5
14531         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
14532         TARGET_MEM_REF.
14533
14534 2010-04-01  Richard Guenther  <rguenther@suse.de>
14535
14536         PR tree-optimization/43607
14537         * ipa-type-escape.c (check_call): Do not access non-existing
14538         arguments.
14539
14540 2010-04-01  Richard Guenther  <rguenther@suse.de>
14541
14542         PR middle-end/43602
14543         Revert
14544         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14545                     Jack Howarth  <howarth@bromo.med.uc.edu>
14546
14547         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14548         variables TLS.
14549
14550 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14551
14552         * doc/install.texi (Prerequisites): Document libelf usability on
14553         IRIX 5/6 and Solaris 2.
14554         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
14555         Update GNU as, GNU ld requirements.
14556         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
14557         Document Sun Studio compiler download.
14558         Update and simplify as, ld recommendations.
14559         (Specific, *-*-solaris2.7): Note obsoletion, removal.
14560
14561 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14562
14563         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
14564         with_tune_32 to pentium4.
14565
14566 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
14567
14568         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
14569
14570 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14571
14572         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
14573         obsoletion, removal.
14574         Update IDO URL.
14575         Document GNU as requirement.
14576         Update configure requirements.
14577         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
14578         Recomment IRIX 6.5.18+.
14579         Document IDF/IDL requirement.
14580         Document GNU as requirement.
14581         Document GNU ld bootstrap failure.
14582         Remove freeware.sgi.com reference.
14583
14584 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14585
14586         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
14587         UNIX V4.0, V5.0 obsoletion, removal.
14588         Remove --with-gc=simple reference.
14589         Update VM requirements during bootstrap.
14590         Remove -oldas bootstrap description.
14591         Update binutils reference.
14592         Remove comparison failure note.
14593
14594 2010-03-31  Richard Guenther  <rguenther@suse.de>
14595             Zdenek Dvorak  <ook@ucw.cz>
14596             Sebastian Pop  <sebastian.pop@amd.com>
14597
14598         PR middle-end/43464
14599         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
14600         with multiple arguments.
14601         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
14602
14603 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14604
14605         * graphite-dependences.c (print_pddr): Call print_pdr with an
14606         extra argument.
14607         * graphite-poly.c (debug_pdr): Add an extra argument for the
14608         verbosity level.
14609         (print_pdr): Same.
14610         (print_pbb_domain): Same.
14611         (print_pbb): Same.
14612         (print_scop_context): Same.
14613         (print_scop): Same.
14614         (print_cloog): Same.
14615         (debug_pbb_domain): Same.
14616         (debug_pbb): Same.
14617         (print_pdrs): Same.
14618         (debug_pdrs): Same.
14619         (debug_scop_context): Same.
14620         (debug_scop): Same.
14621         (debug_cloog): Same.
14622         (print_scop_params): Same.
14623         (debug_scop_params): Same.
14624         (print_iteration_domain): Same.
14625         (print_iteration_domains): Same.
14626         (debug_iteration_domain): Same.
14627         (debug_iteration_domains): Same.
14628         (print_scattering_function): Same.
14629         (print_scattering_functions): Same.
14630         (debug_scattering_function): Same.
14631         (debug_scattering_functions): Same.
14632         * graphite-poly.h (debug_pdr): Update declaration.
14633         (print_pdr): Same.
14634         (print_pbb_domain): Same.
14635         (print_pbb): Same.
14636         (print_scop_context): Same.
14637         (print_scop): Same.
14638         (print_cloog): Same.
14639         (debug_pbb_domain): Same.
14640         (debug_pbb): Same.
14641         (print_pdrs): Same.
14642         (debug_pdrs): Same.
14643         (debug_scop_context): Same.
14644         (debug_scop): Same.
14645         (debug_cloog): Same.
14646         (print_scop_params): Same.
14647         (debug_scop_params): Same.
14648         (print_iteration_domain): Same.
14649         (print_iteration_domains): Same.
14650         (debug_iteration_domain): Same.
14651         (debug_iteration_domains): Same.
14652         (print_scattering_function): Same.
14653         (print_scattering_functions): Same.
14654         (debug_scattering_function): Same.
14655         (debug_scattering_functions): Same.
14656
14657 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14658
14659         * graphite-poly.c (print_scattering_function_1): New.
14660         (print_scattering_function): Call it.
14661         (print_scop_params): Remove spaces at the end of lines.
14662         (print_cloog): New.
14663         (debug_cloog): New.
14664         * graphite-poly.h (print_cloog): Declared.
14665         (debug_cloog): Declared.
14666
14667 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14668
14669         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
14670         in loop->header.
14671         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
14672         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
14673         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
14674         to switch between adding the IV bump in loop->latch or in loop->header.
14675
14676 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
14677
14678         * graphite-poly.c (print_scattering_function): Pretty print following
14679         the scoplib format.
14680         (print_pdr): Same.
14681         (print_pbb_domain): Same.
14682         (dump_gbb_cases): Same.
14683         (dump_gbb_conditions): Same.
14684         (print_pdrs): Same.
14685         (print_pbb): Same.
14686         (print_scop_params): Same.
14687         (print_scop_context): Same.
14688         (print_scop): Same.
14689         (print_pbb_body): New.
14690         (lst_indent_to): New.
14691         (print_lst): Start new lines with a #.
14692         * graphite-poly.h (pbb_bb): New.
14693         (pbb_index): Use pbb_bb.
14694         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
14695         disjuncts.
14696         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
14697
14698 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
14699
14700         * dwarf2out.c (size_of_die): For -gdwarf-4 use
14701         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
14702         and 0 instead of 1 for dw_val_class_flag.
14703         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
14704         dw_val_class_range_list, dw_val_class_loc_list,
14705         dw_val_class_lineptr and dw_val_class_macptr, use
14706         DW_FORM_flag_present for dw_val_class_flag and
14707         DW_FORM_exprloc for dw_val_class_loc.
14708         (output_die): For -gdwarf-4 print dw_val_class_loc
14709         size as uleb128 instead of 1 or 2 bytes and don't print
14710         anything for dw_val_class_flag.
14711
14712         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
14713         instead of cselib_lookup following by tweaking locs->setting_insn.
14714
14715         PR bootstrap/43596
14716         * cselib.c (cselib_process_insn): Clear cselib_current_insn
14717         even before returning from label, setjmp call or volatile asm
14718         handling.
14719
14720 2010-03-31  Richard Guenther  <rguenther@suse.de>
14721
14722         PR middle-end/43600
14723         * cgraphunit.c (cgraph_output_in_order): Do not allocate
14724         temporary data on stack.
14725
14726 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14727
14728         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
14729         (PUSHSECTION_ASM_OP): Remove.
14730         (POPSECTION_ASM_OP): Remove.
14731         (PUSHSECTION_FORMAT): Remove.
14732         * config/sol2.h (PUSHSECTION_FORMAT): Define.
14733         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
14734         * config/sol2.c (solaris_output_init_fini): Use it.
14735
14736 2010-03-31  Jie Zhang  <jie@codesourcery.com>
14737
14738         PR 43574
14739         * opt-functions.awk (var_type_struct): Use signed char type
14740         for simple variables.
14741
14742 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14743
14744         * config/sol2.c: Include output.h.
14745         (solaris_assemble_visibility): New function.
14746         * config/t-sol2 (sol2.o): Add output.h dependency.
14747         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
14748         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
14749         Redefine.
14750
14751 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
14752
14753         PR target/43580
14754         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
14755         V2SImode or XFmode on PRE_DEC.
14756
14757         PR debug/43557
14758         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
14759         BLKmode.
14760
14761 2010-03-31  Jie Zhang  <jie@codesourcery.com>
14762
14763         PR 43562
14764         * reload.h (caller_save_initialized_p): Declare.
14765         * toplev.c (backend_init_target): Don't call
14766         init_caller_save but set caller_save_initialized_p to false.
14767         * caller-save.c (caller_save_initialized_p): Define.
14768         (init_caller_save): Check caller_save_initialized_p.
14769         * ira.c (ira): Call init_caller_save if flag_caller_saves.
14770
14771 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14772
14773         PR target/39048
14774         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
14775         and soft-fp/t-softfp to tmake_file.
14776         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
14777         (LIBGCC2_TF_CEXT): Define.
14778         (TF_SIZE): Define.
14779
14780 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
14781
14782         PR debug/42977
14783         * cselib.c (n_useless_values): Document handling of debug locs.
14784         (n_useless_debug_values, n_debug_values): New variables.
14785         (new_elt_loc_list): Don't add to debug values, keep count.
14786         (promote_debug_loc): New.
14787         (cselib_reset_table): Zero new variables.
14788         (entry_and_rtx_equal_p): Promote debug locs.
14789         (discard_useless_locs): Increment n_useless_debug_values for
14790         debug values.
14791         (remove_useless_values): Adjust n_useless_values and n_debug_values
14792         with n_useless_debug_values.
14793         (add_mem_for_addr): Promote debug locs.
14794         (cselib_lookup_mem): Likewise.
14795         (cselib_lookup_addr): Renamed to...
14796         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
14797         (cselib_log_lookup): ... this.  Turn into...
14798         (cselib_lookup_addr): ... new wrapper.
14799         (cselib_lookup_from_insn): New.
14800         (cselib_invalidate_regno): Increment n_useless_debug_values for
14801         debug values.
14802         (cselib_invalidate_mem): Likewise.
14803         (cselib_process_insn): Take n_deleted and n_debug_values into
14804         account to guard remove_useless_value call.
14805         (cselib_finish): Zero n_useless_debug_values.
14806         * cselib.h (cselib_lookup_from_insn): Declare.
14807         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
14808         (sched_analyze_2): Likewise.
14809
14810 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
14811
14812         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
14813         functions.
14814         (adjust_mems): Replace narrowing SUBREG of expression containing
14815         just PLUS, MINUS, MULT and ASHIFT of registers and constants
14816         with operations in the narrower mode.
14817
14818         PR debug/43593
14819         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
14820         regs_invalidated_by_call instead all call_used_reg_set registers.
14821
14822 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
14823
14824         PR middle-end/43430
14825         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
14826         pointer comparisons with types_compatible_p.
14827         * tree-vect-stmts.c (vectorizable_call): Same.
14828         (vectorizable_condition): Same.
14829
14830 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14831
14832         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
14833         stack check if the mask would be zero.
14834
14835 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
14836             Jack Howarth  <howarth@bromo.med.uc.edu>
14837
14838         * tree-profile.c (tree_init_ic_make_global_vars): Make static
14839         variables TLS.
14840
14841 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
14842
14843         PR other/25232
14844         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
14845         and __unordtf2.
14846         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
14847         Include ___unordxf2 and ___unordtf2.
14848         * config/i386/libgcc-glibc.ver: Do not define inheritance from
14849         GCC_4.4.0 here.
14850
14851 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
14852
14853         * config/lm32/t-lm32: New file.
14854         * config.gcc: Use the above file when targetting lm32.
14855
14856 2010-03-28  Duncan Sands  <baldrick@free.fr>
14857
14858         * Makefile.in (PLUGIN_HEADERS): Add except.h.
14859
14860 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
14861
14862         PR middle-end/43431
14863         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
14864         Improve vectorization cost model diagnostic.
14865
14866 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
14867
14868         PR middle-end/43436
14869         * tree-vect-data-refs.c (vect_analyze_data_refs): When
14870         compute_data_dependences_for_loop returns false, early exit
14871         and output an extra diagnostic for the failed data reference
14872         analysis.
14873
14874 2010-03-29  Richard Guenther  <rguenther@suse.de>
14875
14876         PR tree-optimization/43560
14877         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
14878         (can_sm_ref_p): Treat stores to readonly locations as trapping.
14879
14880 2010-03-29  Jie Zhang  <jie@codesourcery.com>
14881
14882         PR 43564
14883         * toplev.c (process_options): Set optimization_default_node
14884         and optimization_current_node.
14885         * opts.c (decode_options): Don't set optimization_default_node
14886         and optimization_current_node.
14887
14888 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
14889
14890         * config/rtems.h: Abandon -qrtems_debug.
14891
14892 2010-03-28  Jan Hubicka  <jh@suse.cz>
14893
14894         PR tree-optimization/43505
14895         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
14896         map should not be copied.
14897
14898 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14899
14900         PR middle-end/41674
14901         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
14902         cdtors, set DECL_PRESERVE_P.
14903         * ipa.c (cgraph_externally_visible_p): Return true if declaration
14904         should be preseved.
14905
14906 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
14907
14908         PR tree-optimization/43528
14909         * stor-layout.c (place_field): Check that constant fits into
14910         unsigned HWI when skipping calculation of MS bitfield layout.
14911
14912 2010-03-27  Jan Hubicka  <jh@suse.cz>
14913
14914         PR middle-end/43391
14915         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
14916         notice_global_symbol work.
14917
14918 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
14919
14920         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
14921         instead of dwarf2out_decl.
14922         (struct var_loc_node): Remove section_label field.
14923         (dwarf2out_function_decl): New function.
14924         (dwarf2out_var_location): Don't set section_label field.
14925         (dwarf2out_begin_function): Don't empty decl_loc_table here.
14926
14927 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
14928
14929         PR tree-optimization/43544
14930         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
14931         First argument for builtin vectorized function hook is now a
14932         tree to be able to distinguish between machine specific and
14933         standard builtins.
14934         * targhooks.c (default_builtin_vectorized_function): Ditto.
14935         * targhooks.h (default_builtin_vectorized_function): Ditto.
14936         * target.h (struct gcc_target): Ditto.
14937         * tree-vect-stmts.c (vectorizable_function): Ditto.
14938         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
14939         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
14940         Ditto.
14941
14942 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
14943
14944         PR c/43381
14945         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
14946         nested binding iff it is a FUNCTION_DECL.
14947         (store_parm_decls_newstyle): Pass nested=true to bind for
14948         FUNCTION_DECLs amongst parameters.
14949
14950 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14951
14952         * var-tracking.c (vt_expand_loc_callback): Don't run
14953         cselib_expand_value_rtx_cb in dummy mode if
14954         cselib_dummy_expand_value_rtx_cb returned false.
14955
14956         * var-tracking.c (emit_note_insn_var_location): For one part
14957         notes with offset 0, don't add EXPR_LIST around the location.
14958         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
14959         add_location_or_const_value_attribute): Adjust for that change.
14960
14961         PR debug/43540
14962         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
14963         into first operand and location into second.
14964         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
14965         dw_cfi_oprnd_loc for DW_CFA_expression.
14966         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
14967         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
14968         assume first argument is regnum and second argument is location.
14969
14970 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14971
14972         PR target/42113
14973         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
14974         of scratch register to DImode.  Split to DImode comparison operator.
14975         Use SImode subreg of scratch register in the multiplication.
14976         (*cmp_sadd_sidi): Ditto.
14977         (*cmp_ssub_si): Ditto.
14978         (*cmp_ssub_sidi): Ditto.
14979
14980 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
14981
14982         PR target/43524
14983         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
14984         Remove invalid assert and wrong comment.
14985
14986 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
14987
14988         PR debug/43516
14989         * flags.h (final_insns_dump_p): New extern.
14990         * final.c (final_insns_dump_p): New variable.
14991         (rest_of_clean_state): Set it before -fdump-final-insns=
14992         dumping, clear afterwards.
14993         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
14994         MEM_ALIAS_SET on MEMs.
14995
14996 2010-03-26  David S. Miller  <davem@davemloft.net>
14997
14998         * configure.ac: Fix sparc GOTDATA_OP bug check.
14999         * configure: Rebuild.
15000
15001 2010-03-26  Alan Modra  <amodra@gmail.com>
15002
15003         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
15004
15005 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15006
15007         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
15008         TLS_SECTION_ASM_FLAG.
15009
15010 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
15011
15012         PR bootstrap/43511
15013         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
15014         Clear first_function_block_is_cold.
15015
15016         PR c/43385
15017         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
15018         argument if the argument is truth_value_p.
15019
15020 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15021
15022         * config/rs6000/constraints.md: Update copyright year for my changes.
15023
15024         PR target/43484
15025         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
15026         used in reg+reg addressing, swap registers.
15027
15028 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15029
15030         PR debug/43293
15031         * target.h (struct gcc_target): Add code_end hook.
15032         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
15033         if not yet defined.
15034         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
15035         * toplev.c (compile_file): Call targetm.asm_out.code_end
15036         hook before unwind info/debug info output.
15037         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
15038         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
15039         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15040         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
15041         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
15042         * config/i386/i386.c (ix86_file_end): Renamed to...
15043         (ix86_code_end): ... this.  Make static.  Don't call
15044         file_end_indicate_exec_stack.  Emit unwind info using
15045         final_start_function/final_end_function.
15046         (darwin_x86_file_end): Remove.
15047         (TARGET_ASM_CODE_END): Define.
15048         * config/i386/i386.h (TARGET_ASM_FILE_END,
15049         NEED_INDICATE_EXEC_STACK): Don't define.
15050         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
15051         (TARGET_ASM_FILE_END): Define to darwin_file_end.
15052         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
15053         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
15054
15055         PR target/43498
15056         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
15057         at the beginning and final_end_function at the end.
15058         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
15059
15060 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15061
15062         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
15063         and Sun as TLS syntax.
15064         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
15065         * configure: Regenerate.
15066         * config.in: Regenerate.
15067         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
15068         (default_elf_asm_named_section): Use it.
15069         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
15070         (i386_output_dwarf_dtprel): Likewise.
15071         (output_addr_const_extra): Likewise.
15072         (output_pic_addr_const): Lowercase @GOTTPOFF.
15073         (output_addr_const_extra): Likewise.
15074         (output_pic_addr_const): Lowercase @GOTNTPOFF.
15075         (output_addr_const_extra): Likewise.
15076         (output_pic_addr_const): Lowercase @INDNTPOFF.
15077         (output_addr_const_extra): Likewise.
15078         (output_pic_addr_const): Lowercase @NTPOFF.
15079         (output_addr_const_extra): Likewise.
15080         (output_pic_addr_const): Lowercase @TPOFF.
15081         (output_addr_const_extra): Likewise.
15082         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
15083         (*tls_global_dynamic_64): Likewise.
15084         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
15085         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
15086
15087         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
15088         (ASM_OUTPUT_TLS_COMMON): Use it.
15089         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
15090
15091         PR target/38118
15092         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
15093         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
15094         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
15095         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
15096         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15097         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
15098
15099 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15100
15101         * config/i386/i386.c (override_options): Don't accept
15102         -mtls-dialect=sun any longer.
15103         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
15104         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
15105         (*tls_local_dynamic_base_32_sun): Likewise.
15106         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
15107
15108 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
15109
15110         PR debug/43508
15111         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
15112         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
15113
15114         PR debug/43479
15115         * ira.c (adjust_cleared_regs): New function.
15116         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
15117
15118         PR debug/19192
15119         PR debug/43479
15120         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
15121         from gimple_block.
15122         * expr.c (expand_expr_real): Restore previous
15123         curr_insn_source_location and curr_insn_block after
15124         expand_expr_real_1 call.
15125         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
15126         instead of expand_expr_real_1.
15127
15128 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
15129
15130         PR rtl-optimization/43413
15131         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
15132         hard regs too.
15133
15134 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
15135
15136         PR target/43348
15137         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
15138         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
15139
15140 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15141
15142         * config/i386/i386.c (ix86_target_string): Add -mfma.
15143         Fix a typo in comment.
15144
15145 2010-03-22  Mike Stump  <mikestump@comcast.net>
15146
15147         PR target/23071
15148         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
15149         Don't overly align based upon packed packed fields.
15150
15151 2010-03-22  Jason Merrill  <jason@redhat.com>
15152
15153         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
15154         Use () rather than [], and move before the element type.
15155
15156 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15157
15158         * doc/configfiles.texi (Configuration Files): Removed
15159         fixinc/Makefile*, intl/Makefile.*.
15160         * doc/makefile.texi: Fixed markup. Abstract from version
15161         control system used.
15162         (Makefile): Removed obsolete gcc/java/parse.y example.
15163         * doc/sourcebuild.texi: Likewise.
15164         (Top Level): Added config, gnattools, libdecnumber, libgcc,
15165         libgomp, libssp.  Removed fastjar.
15166         (Miscellaneous Docs): Clarify location.
15167         Added COPYING3, COPYING3.LIB.
15168         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
15169
15170 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15171
15172         PR target/38085
15173         * config/i386/i386.c (x86_function_profiler)
15174         [!NO_PROFILE_COUNTERS]: Fix typo.
15175         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
15176         instead of callq.
15177
15178 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
15179             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15180
15181         * doc/sourcebuild.texi (Test Directives): Split into six
15182         subsections, with most of the current text in new subsections
15183         Directives, Selectors, and Final Actions.
15184         (Directives): Split list of test directives into multiple
15185         subsubsections.
15186         (Selectors): Describe use and syntax of selectors.
15187         (Effective-Target Keywords): Describe all existing keywords.
15188         (Add Options): Describe features for dg-add-options.
15189         (Require Support): Describe variants of dg-require-support.
15190         (Final Actions): Describe commands to use in dg-final.
15191
15192 2010-03-22  Michael Matz  <matz@suse.de>
15193
15194         PR middle-end/43475
15195         * recog.c (validate_replace_rtx_group): Replace also in
15196         REG_EQUAL and REG_EQUIV notes.
15197
15198 2010-03-22  Richard Guenther  <rguenther@suse.de>
15199
15200         PR tree-optimization/43390
15201         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
15202         sure vector extracts are type correct.
15203
15204 2010-03-22  Richard Guenther  <rguenther@suse.de>
15205
15206         PR middle-end/40106
15207         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
15208         x * sqrt (x) even when optimizing for size if the target
15209         has native support for sqrt.
15210
15211 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
15212
15213         * varasm.c (make_decl_rtl_for_debug): Also clear
15214         flag_mudflap for the duration of make_decl_rtl call.
15215
15216         PR debug/43443
15217         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
15218         locs from preserved VALUEs.
15219
15220 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15221
15222         PR middle-end/42718
15223         * pa.md (movmemsi): Set align to one if zero.
15224         (movmemdi): Likewise.
15225
15226 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
15227
15228         PR target/42321
15229         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
15230         with their corresponding prologue pushes.
15231
15232 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
15233
15234         PR target/43156
15235         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
15236         at the begining or end.
15237         (spu_expand_epilogue): Likewise.
15238
15239 2010-03-20  Richard Guenther  <rguenther@suse.de>
15240
15241         PR rtl-optimization/43438
15242         * combine.c (make_extraction): Properly zero-/sign-extend an
15243         extraction of the low part of a CONST_INT.  Also handle
15244         CONST_DOUBLE.
15245
15246 2010-03-19  Mike Stump  <mikestump@comcast.net>
15247
15248         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
15249         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
15250         (override_options): Use SUBTARGET32_DEFAULT_CPU.
15251
15252 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
15253
15254         PR c/43211
15255         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
15256         an error.
15257
15258 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
15259
15260         PR rtl-optimization/42258
15261         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
15262         use that may match DEF.
15263
15264         PR target/40697
15265         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
15266         the cost of loading the constant rather than assuming
15267         COSTS_N_INSNS (1).
15268         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
15269         outer code is AND, do the same tests as the andsi3 expander and
15270         return COSTS_N_INSNS (1) if and is cheap.
15271
15272         * optabs.c (avoid_expensive_constant): Fix formatting.
15273
15274 2010-03-19  Michael Matz  <matz@suse.de>
15275
15276         PR c++/43116
15277         * attribs.c (decl_attributes): When rebuilding a function pointer
15278         type use the same qualifiers as the original pointer type.
15279
15280 2010-03-19  Martin Jambor  <mjambor@suse.cz>
15281
15282         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
15283         and is_gimple_ip_invariant_address.
15284
15285 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15286
15287         Revert
15288         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15289
15290         * config/arm/arm.c (arm_override_options): Turn off
15291         flag_dwarf2_cfi_asm for AAPCS variants.
15292
15293 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15294
15295         PR target/43399
15296         * config/arm/arm.c (emit_multi_reg_push): Update comments.
15297         Use PRE_MODIFY instead of PRE_DEC.
15298         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
15299         (vfp_emit_fstmd): Likewise.
15300
15301 2010-03-19  Michael Matz  <matz@suse.de>
15302
15303         PR target/43305
15304         * builtins.c (expand_builtin_interclass_mathfn,
15305         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
15306         if that fails.
15307
15308 2010-03-19  Richard Guenther  <rguenther@suse.de>
15309
15310         PR tree-optimization/43415
15311         * tree-ssa-pre.c (phi_translate): Split out worker to ...
15312         (phi_translate_1): ... this.
15313         (phi_translate): Move all caching here.  Cache all NARY
15314         and REFERENCE translations.
15315
15316 2010-03-19  David S. Miller  <davem@davemloft.net>
15317
15318         With help from Eric Botcazou.
15319         * config/sparc/sparc.c: Include dwarf2out.h.
15320         (emit_pic_helper): Delete.
15321         (pic_helper_symbol_name): Delete.
15322         (pic_helper_emitted_p): Delete.
15323         (pic_helper_needed): New.
15324         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
15325         (get_pc_thunk_name): New.
15326         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
15327         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
15328         Set pic_helper_needed to true.  Don't call emit_pic_helper.
15329         (sparc_expand_prologue): Update load_pic_register call.
15330         (sparc_output_mi_thunk): Likewise.
15331         (sparc_file_end): Emit a hidden comdat symbol for the PIC
15332         thunk if possible.  Output CFI information as needed.
15333
15334 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
15335             Jack Howarth  <howarth@bromo.med.uc.edu>
15336
15337         PR target/36399
15338         * config/i386/i386.h: Fix ABI on darwin x86-32.
15339
15340 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
15341
15342         * tree.h: Declare make_decl_rtl_for_debug.
15343         * varasm.c (make_decl_rtl_for_debug): New.
15344         * dwarf2out.c (rtl_for_decl_location): Call it.
15345         * cfgexpand.c (expand_debug_expr): Call it.
15346
15347 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
15348
15349         PR bootstrap/43399
15350         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
15351         mem_mode.
15352
15353         PR bootstrap/43403
15354         * var-tracking.c (vt_init_cfa_base): Do nothing if
15355         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
15356
15357 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
15358
15359         PR debug/42873
15360         * var-tracking.c (canonicalize_vars_star): New.
15361         (dataflow_post_merge_adjust): Use it.
15362
15363 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
15364
15365         PR debug/43058
15366         * var-tracking.c (non_suitable_const): New function.
15367         (add_uses): For DEBUG_INSNs with constants, don't record any
15368         value, instead just the constant value itself.
15369         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
15370         is not VAR_LOC_UNKNOWN_P, set var to the constant.
15371         (emit_notes_in_bb): Likewise.
15372         (emit_note_insn_var_location): For onepart variables if
15373         cur_loc is a VOIDmode constant, use DECL_MODE.
15374
15375 2010-03-18  Martin Jambor  <mjambor@suse.cz>
15376
15377         PR middle-end/42450
15378         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
15379         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
15380         all non-clones.  Moved call redirection...
15381         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
15382         (cgraph_materialize_all_clones): Dispose of all
15383         combined_args_to_skip bitmaps.
15384         (verify_cgraph_node): Do not check for edges pointing to wrong
15385         nodes in inline clones.
15386         * tree-inline.c (copy_bb): Call
15387         cgraph_redirect_edge_call_stmt_to_callee.
15388         * ipa.c (cgraph_remove_unreachable_nodes): Call
15389         cgraph_node_remove_callees even when there are used clones.
15390
15391 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15392
15393         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
15394
15395 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
15396
15397         PR target/43383
15398         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
15399         for 32bit.
15400
15401 2010-03-18  Michael Matz  <matz@suse.de>
15402
15403         PR middle-end/43419
15404         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
15405         into sqrt(x) if we need to preserve signed zeros.
15406
15407 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
15408             Eric Botcazou  <ebotcazou@adacore.com>
15409
15410         PR rtl-optimization/43360
15411         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
15412         note if we don't know its invariant status.
15413
15414 2010-03-18  Michael Matz  <matz@suse.de>
15415
15416         PR tree-optimization/43402
15417         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
15418         PHI chains of ssa names registered for update.
15419
15420 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
15421
15422         PR target/42427
15423         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
15424         non-offsettable and pre_modify update addressing.
15425         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
15426         and "2" alternatives "#".
15427         (*movdd_softfloat32): Make all alternatives "#";
15428         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
15429         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
15430         (*movdf_softfloat32): Make all alternatives "#";
15431         (movdi): Use the new DIFD mode iterator to create a common splitter
15432         for movdi, movdf and movdd patterns.
15433
15434 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
15435
15436         * common.opt (dumpdir): Remove redundant tab.
15437
15438 2010-03-17  Martin Jambor  <mjambor@suse.cz>
15439
15440         PR tree-optimization/43347
15441         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
15442         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
15443
15444 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
15445
15446         PR rtl-optimization/42216
15447         * regrename.c (create_new_chain): New function, broken out from...
15448         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
15449         appending a use to an empty chain.
15450         (build_def_use): Remove previous changes that convert OP_INOUT to
15451         OP_OUT operands; instead detect the case where an OP_INOUT operand
15452         uses a previously untracked register and create an empty chain for it.
15453
15454 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15455
15456         * doc/extend.texi (Function Attributes): Rewrite unfinished
15457         sentence in ms_abi documentation.
15458
15459 2010-03-17  Alan Modra  <amodra@gmail.com>
15460
15461         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
15462         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
15463         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
15464         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
15465
15466 2010-03-16  Richard Henderson  <rth@redhat.com>
15467
15468         PR middle-end/43365
15469         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
15470         (lower_try_finally): Save and restore eh_seq around the expansion
15471         of the try-finally.
15472
15473 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15474
15475         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
15476         statements before splitting block.
15477
15478 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15479
15480         * doc/sourcebuild.texi (Testsuites): Fix markup.
15481         Use pathnames relative to gcc/testsuite.
15482         (Test Directives): Move description of how timeout is determined.
15483         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
15484         (C Tests): Correct gcc.misc-tests directory.
15485         Framework tests now live in gcc.test-framework.
15486
15487 2010-03-16  Richard Guenther  <rguenther@suse.de>
15488
15489         PR middle-end/43379
15490         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
15491         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
15492
15493 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
15494             Alexandre Oliva  <aoliva@redhat.com>
15495
15496         PR tree-optimization/42917
15497         * lambda-code.c (remove_iv): Skip debug statements.
15498         (lambda_loopnest_to_gcc_loopnest): Likewise.
15499         (not_interesting_stmt): Debug statements are not interesting.
15500
15501 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
15502
15503         PR debug/43051
15504         PR debug/43092
15505         * cselib.c (cselib_preserve_constants,
15506         cfa_base_preserved_val): New static variables.
15507         (preserve_only_constants): New function.
15508         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
15509         clear its REG_VALUES.  If cselib_preserve_constants, don't
15510         empty the whole hash table, but preserve there VALUEs with constants,
15511         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
15512         (cselib_preserve_cfa_base_value): New function.
15513         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
15514         (cselib_init): Change argument to int bitfield.  Set
15515         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
15516         is in it.
15517         (cselib_finish): Clear cselib_preserve_constants and
15518         cfa_base_preserved_val.
15519         * cselib.h (enum cselib_record_what): New enum.
15520         (cselib_init): Change argument to int.
15521         (cselib_preserve_cfa_base_value): New prototype.
15522         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
15523         * dse.c (dse_step1): Likewise.
15524         * cfgcleanup.c (thread_jump): Likewise.
15525         * sched-deps.c (sched_analyze): Likewise.
15526         * gcse.c (local_cprop_pass): Likewise.
15527         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
15528         If FN is non-NULL, call the callback always and whenever it returns
15529         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
15530         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
15531         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
15532         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
15533         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
15534         * var-tracking.c: Include recog.h.
15535         (bb_stack_adjust_offset): Remove.
15536         (vt_stack_adjustments): Don't call it, instead just gather the
15537         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
15538         (adjust_stack_reference): Remove.
15539         (compute_cfa_pointer): New function.
15540         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
15541         (struct adjust_mem_data): New type.
15542         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
15543         functions.
15544         (get_address_mode): New function.
15545         (replace_expr_with_values): Use it.
15546         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
15547         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
15548         (adjust_sets): Remove.
15549         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
15550         Use get_address_mode.
15551         (get_adjusted_src): Remove.
15552         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
15553         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
15554         (add_with_sets): Don't call adjust_sets.
15555         (fp_setter, vt_init_cfa_base): New functions.
15556         (vt_initialize): Change return type to bool.  Move most of pool etc.
15557         initialization to the beginning of the function from end.  Pass
15558         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
15559         If !frame_pointer_needed, call vt_stack_adjustment before mos
15560         vector is filled, call vt_init_cfa_base if argp/framep has been
15561         eliminated to sp.  If frame_pointer_needed and argp/framep has
15562         been eliminated to hard frame pointer, set
15563         hard_frame_pointer_adjustment and call vt_init_cfa_base after
15564         encountering fp setter in the prologue.  For MO_ADJUST, call
15565         log_op_type before pusing the op into mos vector, not afterwards.
15566         Call adjust_insn before cselib_process_insn/add_with_sets,
15567         call cancel_changes (0) afterwards.
15568         (variable_tracking_main_1): Adjust for vt_initialize calling
15569         vt_stack_adjustments and returning whether it succeeded or not.
15570
15571 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
15572
15573         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
15574         debug statements.
15575
15576 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
15577
15578         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
15579         has been set.
15580         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
15581         drap_reg has not been set.
15582
15583 2010-03-15  Michael Matz  <matz@suse.de>
15584
15585         PR middle-end/43300
15586         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
15587         use it to expand block copies.
15588         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
15589         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
15590         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
15591
15592 2010-03-15  Richard Guenther  <rguenther@suse.de>
15593
15594         PR tree-optimization/43367
15595         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
15596         elimination check.
15597
15598 2010-03-15  Richard Guenther  <rguenther@suse.de>
15599
15600         PR tree-optimization/43317
15601         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
15602
15603 2010-03-15  Martin Jambor  <mjambor@suse.cz>
15604
15605         PR tree-optimization/43141
15606         * tree-sra.c (create_abstract_origin): New function.
15607         (modify_function): Call create_abstract_origin.
15608
15609 2010-03-15  Chris Demetriou  <cgd@google.com>
15610
15611         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
15612         wasn't copied.
15613
15614 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15615
15616         PR middle-end/43354
15617         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
15618         call insert_out_of_ssa_copy for default definitions.
15619
15620 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15621
15622         * graphite-clast-to-gimple.c (my_long_long): Defined.
15623         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
15624         * graphite-sese-to-poly.c (my_long_long): Defined.
15625         (scop_ivs_can_be_represented): Use it.
15626
15627 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15628
15629         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
15630         graphite-max-bbs-per-function, and loop-block-tile-size.
15631         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
15632         with "maximum".
15633         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
15634
15635 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15636
15637         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
15638         forward declaration.
15639         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
15640         (add_upper_bounds_from_estimated_nit): New.
15641         (build_loop_iteration_domains): Use it.
15642
15643 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15644
15645         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
15646
15647 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15648
15649         PR middle-end/43306
15650         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
15651         should be an INTEGER_CST.  Also handle CASE_CONVERT.
15652
15653 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15654
15655         * graphite.c (graphite_initialize): To bound the number of bbs per
15656         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
15657         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
15658         * doc/invoke.texi: Document it.
15659
15660 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15661
15662         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
15663         * graphite-sese-to-poly.h (build_poly_scop): Same.
15664
15665 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
15666
15667         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
15668         the number of parameters in the scop.  Use as an upper bound
15669         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
15670         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
15671         * doc/invoke.texi: Document it.
15672
15673 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
15674
15675         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
15676         * doc/c-tree.texi: Remove.
15677         * doc/generic.texi: Merge c-tree.texi here.
15678         * doc/gccint.texi (Trees): Remove menu entry.
15679         (c-tree.texi): Remove @include.
15680         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
15681         * doc/languages.texi (Reading RTL): Ditto.
15682
15683 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
15684
15685         PR target/42869
15686         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
15687
15688 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
15689
15690         PR middle-end/42431
15691         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
15692         code added to work around reload clobbering CONST insns.
15693
15694 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
15695
15696         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
15697         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
15698         (cselib_preserve_only_values): Remove retain argument, don't
15699         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
15700         * cselib.h (cselib_preserve_only_values): Remove retain argument.
15701         * var-tracking.c (micro_operation): Move insn field before union.
15702         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
15703         (struct variable_tracking_info_def): Remove n_mos field, change
15704         mos into a vector of micro_operations.
15705         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
15706         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
15707         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
15708         changing into a vector.
15709         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
15710         come before all other uops generated by add_stores.
15711         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
15712         argument removal.
15713         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
15714         a vector.  Run just one pass over the bbs instead of separate counting
15715         and computation phase.
15716         (vt_finalize): Free VTI (bb)->mos vector instead of array.
15717
15718         PR debug/43329
15719         * tree-inline.c (remap_decls): Put old_var rather than origin_var
15720         into *nonlocalized_list vector.
15721         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
15722         even if origin is non-NULL.
15723         (gen_variable_die): Likewise.
15724         (process_scope_var): Don't change origin.
15725         (gen_decl_die): Likewise.
15726         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
15727         before adding new edges instead of after it, fix moving over
15728         debug stmts.
15729
15730 2010-03-11  David S. Miller  <davem@davemloft.net>
15731
15732         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
15733         of four.
15734         * configure: Rebuild.
15735
15736 2010-03-11  Martin Jambor  <mjambor@suse.cz>
15737
15738         PR tree-optimization/43257
15739         * tree.c (assign_assembler_name_if_neeeded): New function.
15740         (free_lang_data_in_cgraph): Assembler name assignment moved to the
15741         above new function.
15742         * tree.h (assign_assembler_name_if_neeeded): Declare.
15743         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
15744         the function if needed.
15745
15746 2010-03-11  Chris Demetriou  <cgd@google.com>
15747
15748         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
15749         include/stdint-gcc.h, and include/stdint.h world-readable.
15750
15751 2010-03-11  Richard Guenther  <rguenther@suse.de>
15752
15753         PR tree-optimization/43255
15754         * tree-vrp.c (process_assert_insertions_for): Do not insert
15755         asserts for trivial conditions.
15756
15757 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15758
15759         PR tree-optimization/43280
15760         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
15761         generation.  Move calculation of size out of the if branch.
15762         (find_bswap): Modify compare number generation.
15763
15764 2010-03-11  Richard Guenther  <rguenther@suse.de>
15765
15766         PR lto/43200
15767         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
15768         (input_gimple_stmt): Fixup handled component types during
15769         operand read.  Also fix up decls in ADDR_EXPRs.
15770
15771 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
15772
15773         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
15774         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
15775
15776 2010-03-10  Jan Hubicka  <jh@suse.cz>
15777
15778         PR c/43288
15779         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
15780         * varasm.c (get_variable_section): Don't do that here...
15781         (make_decl_rtl): ... and here.
15782         (do_assemble_alias): Produce decl RTL.
15783         (assemble_alias): Likewise.
15784
15785 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
15786
15787         PR debug/43290
15788         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
15789         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
15790         of fde->vdrap_reg.
15791         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
15792         (based_loc_descr): Only express drap or vdrap regno based expressions
15793         using DW_OP_fbreg when not optimizing.
15794         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
15795         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
15796         REG_CFA_SET_VDRAP note.
15797
15798 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
15799
15800         PR tree-optimization/43236
15801         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
15802         error in calculation of base address in reverse iteration case.
15803         (generate_builtin): Take number of latch executions if the statement
15804         is in the latch.
15805
15806 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
15807
15808         PR middle-end/42859
15809         * tree-eh.c: Include pointer-set.h.
15810         (lower_eh_dispatch): Filter out duplicate case labels and
15811         remove the unneeded edge when the label is unused.  Return
15812         true when some edges are removed.
15813         (execute_lower_eh_dispatch): When any lowering resulted in
15814         removing an edge, also delete unreachable blocks.
15815
15816 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
15817
15818         PR bootstrap/43287
15819         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
15820         UNSPEC_MACHOPIC_OFFSET.
15821
15822 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
15823
15824         PR target/43294
15825         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
15826         (m68k_delegitimize_address): New function.
15827
15828 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
15829
15830         PR debug/43299
15831         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
15832
15833         PR debug/43299
15834         * var-tracking.c (adjust_sets): New function.
15835         (count_with_sets, add_with_sets): Use it.
15836         (get_adjusted_src): New inline function.
15837         (add_stores): Use it.
15838
15839         PR debug/43304
15840         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
15841         call cselib_dummy_expand_value_rtx_cb instead of
15842         cselib_expand_value_rtx_cb.
15843
15844         PR debug/43293
15845         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
15846         * config/i386/i386.c: Include debug.h and dwarf2out.h.
15847         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
15848         and .cfi_endproc around the pic thunks.
15849         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
15850         all queued unwind info register saves are saved before the call.
15851         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
15852         considered as sp-=4 for unwind info and the pop as sp+=4 which
15853         also clobbers dest, but doesn't actually restore it.
15854
15855         PR debug/43290
15856         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
15857         RTX_FRAME_RELATED_P.
15858
15859 2010-03-09  Jie Zhang  <jie@codesourcery.com>
15860
15861         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
15862         whitespaces in output template.
15863
15864 2010-03-09  Jie Zhang  <jie@codesourcery.com>
15865
15866         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
15867         out array boundary.
15868
15869 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15870
15871         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
15872         builtins.exp in a separate job.
15873
15874 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15875
15876         * graphite-sese-to-poly.c (add_param_constraints): Use
15877         lower_bound_in_type and upper_bound_in_type.
15878
15879 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15880
15881         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
15882         instead of unsigned_type_node.
15883
15884 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15885             Reza Yazdani  <reza.yazdani@amd.com>
15886
15887         PR middle-end/43065
15888         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
15889         on pointer type parameters.
15890
15891 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15892
15893         PR middle-end/42644
15894         PR middle-end/42130
15895         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
15896         handle conversions from pointer to integers.
15897         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
15898         induction variable, to be able to work with code generated by CLooG.
15899         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
15900         (build_poly_scop): Bail out if we cannot codegen a loop.
15901
15902 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
15903
15904         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
15905         code generation with gloog_error.
15906
15907 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15908
15909         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
15910         Call fold_convert on all the returned values.
15911         (expand_scalar_variables_expr): Pass to
15912         expand_scalar_variables_ssa_name the type of the resulting expression.
15913
15914 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15915
15916         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
15917         ppl_min_for_le_pointset.
15918         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
15919         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
15920
15921 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15922
15923         * graphite-dependences.c (map_into_dep_poly): Removed.
15924         (dependence_polyhedron_1): Use combine_context_id_scat.
15925
15926 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15927
15928         * graphite-poly.h (struct poly_scattering): Add layout documentation.
15929         (struct poly_bb): Same.
15930         (combine_context_id_scat): New.
15931
15932 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15933
15934         PR middle-end/42326
15935         * sese.c (name_defined_in_loop_p): Return false for default
15936         definitions.
15937
15938 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15939
15940         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
15941         and clean up the logic.
15942
15943 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
15944
15945         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
15946         early return.
15947
15948 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
15949
15950         * var-tracking.c (remove_cselib_value_chains): Define only for
15951         ENABLE_CHECKING.
15952         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
15953         delete_slot_part, emit_notes_for_differences_1): Don't call
15954         remove_cselib_value_chains here.
15955         (set_slot_part, emit_notes_for_differences_2): Don't call
15956         add_cselib_value_chains here.
15957         (preserved_values): New vector.
15958         (preserve_value): New function.
15959         (add_uses, add_stores, vt_add_function_parameters): Use it
15960         instead of cselib_preserve_value.
15961         (changed_values_stack): New vector.
15962         (check_changed_vars_0): New function.
15963         (check_changed_vars_1, check_changed_vars_2): Use it.
15964         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
15965         changed_values_stack VALUEs.
15966         (vt_emit_notes): For all preserved_values call
15967         add_cselib_value_chains.  If ENABLE_CHECKING call
15968         remove_cselib_value_chains before verifying value_chains is empty.
15969         Initialize and free changed_values_stack.
15970         (vt_initialize): Initialize preserved_values.
15971         (vt_finalize): Free preserved_values.
15972
15973 2010-03-08  Richard Guenther  <rguenther@suse.de>
15974
15975         PR tree-optimization/43269
15976         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
15977         region detection.
15978
15979 2010-03-08  Martin Jambor  <mjambor@suse.cz>
15980
15981         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
15982         (ipa_is_param_called): Removed.
15983         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
15984         (ipa_print_node_params): Do not print the called flag.
15985         (ipa_write_node_info): Do not stream the called flag.
15986         (ipa_read_node_info): Likewise.
15987
15988 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
15989
15990         PR debug/43176
15991         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
15992         * cselib.c (struct expand_value_data): Add dummy field.
15993         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
15994         dummy to false.
15995         (cselib_dummy_expand_value_rtx_cb): New function.
15996         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
15997         any rtl.
15998         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
15999         * var-tracking.c: Include pointer-set.h.
16000         (variable): Change n_var_parts to char from int.  Add
16001         cur_loc_changed and in_changed_variables fields.
16002         (variable_canonicalize): Remove.
16003         (shared_var_p): New inline function.
16004         (unshare_variable): Maintain cur_loc_changed and
16005         in_changed_variables fields.  If var was in changed_variables,
16006         replace it there with new_var.  Just copy cur_loc instead of
16007         resetting it to something else.
16008         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
16009         (dataflow_set_union): Don't call variable_canonicalize.
16010         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
16011         of their DEBUG_EXPR_TREE_DECLs.
16012         (canonicalize_loc_order_check): Verify that cur_loc is NULL
16013         and in_changed_variables and cur_loc_changed is false.
16014         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
16015         and cur_loc_changed.  Don't update cur_loc here.
16016         (variable_merge_over_src): Don't call variable_canonicalize.
16017         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
16018         removing loc that is equal to cur_loc, clear cur_loc,
16019         set cur_loc_changed and ensure variable_was_changed is called.
16020         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
16021         compare pointers in cur_loc check, if it is equal to loc,
16022         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
16023         (variable_different_p): Remove compare_current_location argument,
16024         don't compare cur_loc.
16025         (dataflow_set_different_1): Adjust variable_different_p caller.
16026         (variable_was_changed): If dv had some var in changed_variables
16027         already, reset in_changed_variables flag for it and propagate
16028         cur_loc_changed over to the new variable.  On empty var
16029         always set cur_loc_changed.  Set in_changed_variables on whatever
16030         var is added to changed_variables.
16031         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
16032         Use shared_var_p.  When removing loc that is equal to cur_loc,
16033         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
16034         end, don't set it to something else, just call variable_was_changed.
16035         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
16036         loc being removed, clear cur_loc and set cur_loc_changed.
16037         Set cur_loc_changed if all locations have been removed.
16038         (struct expand_loc_callback_data): New type.
16039         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
16040         allocated.  Always create SUBREGs if simplify_subreg failed.
16041         Prefer to use cur_loc, when that fails and still in
16042         changed_variables (and seen first time) recompute it.  Set
16043         cur_loc_changed of variables which had to change cur_loc and
16044         compute elcd->cur_loc_changed if any of the subexpressions used
16045         had to change cur_loc.
16046         (vt_expand_loc): Adjust to pass arguments in
16047         expand_loc_callback_data structure.
16048         (vt_expand_loc_dummy): New function.
16049         (emitted_notes): New variable.
16050         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
16051         that weren't used for any other decl in current
16052         emit_notes_for_changes call call vt_expand_loc_dummy to update
16053         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
16054         first loc_chain location if NULL before.  Always use just
16055         cur_loc instead of first loc_chain location.  When cur_loc_changed
16056         is false, when not --enable-checking=rtl just don't emit any note.
16057         When rtl checking, compute the note and assert it is the same
16058         as previous note.  Clear cur_loc_changed and in_changed_variables
16059         at the end before removing from changed_variables.
16060         (check_changed_vars_3): New function.
16061         (emit_notes_for_changes): Traverse changed_vars to call
16062         check_changed_vars_3 on each changed var.
16063         (emit_notes_for_differences_1): Clear cur_loc_changed and
16064         in_changed_variables.  Recompute cur_loc of new_var.
16065         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
16066         (vt_emit_notes): Initialize and destroy emitted_notes.
16067
16068 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
16069
16070         PR rtl-optimization/42220
16071         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
16072         Use verify_reg_tracked to determine if we should use OP_OUT rather
16073         than OP_INOUT.
16074         (build_def_use): If we see an in-out operand for a register that we
16075         know nothing about, treat is an output if possible, fail the block if
16076         not.
16077
16078 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16079
16080         PR debug/42897
16081         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
16082         permanently.
16083
16084 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16085
16086         PR debug/42897
16087         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
16088         uses of relevant DEFs that are dead outside the loop too.
16089
16090 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
16091
16092         * var-tracking.c (dataflow_set_merge): Swap src and src2.
16093         Reverted:
16094         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
16095         PR debug/41371
16096         * var-tracking.c (values_to_unmark): New variable.
16097         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
16098         values_to_unmark vector.  Moved body to...
16099         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
16100         instead queue it into values_to_unmark vector.
16101         (vt_find_locations): Free values_to_unmark vector.
16102
16103 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
16104
16105         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
16106         (site.exp): Export them when plugins are enabled.
16107
16108 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
16109
16110         PR middle-end/42326
16111         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
16112         that contain scevs.
16113         (chrec_fold_multiply): Same.
16114
16115 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
16116
16117         PR c/43248
16118         * c-decl.c (build_compound_literal): Return early if init is
16119         an error_mark_node.
16120
16121 2010-03-04  Martin Jambor  <mjambor@suse.cz>
16122
16123         PR tree-optimization/43164
16124         PR tree-optimization/43191
16125         * tree-sra.c (type_consists_of_records_p): Reject records with
16126         zero-size bit-fields at the end.
16127
16128 2010-03-04  Mike Stump  <mikestump@comcast.net>
16129
16130         * Makefile.in (TAGS): Remove *.y.
16131
16132 2010-03-04  Richard Guenther  <rguenther@suse.de>
16133
16134         PR tree-optimization/40761
16135         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
16136         in reverse order.
16137         (my_rev_post_order_compute): New function.
16138         (init_pre): Call it.
16139
16140 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
16141
16142         PR middle-end/43209
16143         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
16144         decrease the cost of an IV candidate when the cost is infinite.
16145
16146 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16147
16148         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
16149         Use '3DNow!' for the extension of that name, ensure normal space
16150         after the string.
16151         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
16152
16153 2010-03-03  Jeff Law  <law@redhat.com>
16154
16155         * PR middle-end/32693
16156         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
16157         than gen_rtx_SUBREG.
16158         (extract_bit_field_1): Likewise.
16159
16160 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
16161
16162         * doc/sourcebuild.texi (Test directives): Document that arguments
16163         include-opts and exclude-opts are now optional for dg-skip-if,
16164         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
16165
16166 2010-03-03  Jason Merrill  <jason@redhat.com>
16167
16168         PR c++/12909
16169         * cgraph.h (varpool_node): Add extra_name field.
16170         * varpool.c (varpool_extra_name_alias): New.
16171         (varpool_assemble_decl): Emit extra name aliases.
16172         (varpool_mark_needed_node): Look past an extra name alias.
16173         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
16174         * lto-streamer-in.c (lto_input_tree): Read it.
16175         * lto-streamer-out.c (output_unreferenced_globals): Write it.
16176
16177 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
16178
16179         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
16180         (sparc*-*-solaris2*): ...this.
16181
16182 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
16183
16184         PR debug/43229
16185         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
16186         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
16187         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
16188         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
16189
16190         PR debug/43237
16191         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
16192         fallthrough to default handling, just with want_address 0 instead of 2.
16193         For single element lists, add_AT_loc directly, otherwise create an
16194         artificial variable DIE and stick location list to it.
16195
16196         PR debug/43177
16197         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
16198         (VAL_EXPR_HAS_REVERSE): Define.
16199         (reverse_op): New function.
16200         (add_stores): For reversible operations add an extra MO_VAL_USE.
16201
16202 2010-03-02  Jason Merrill  <jason@redhat.com>
16203
16204         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
16205
16206 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
16207
16208         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
16209         (sparc64-*-linux*): Likewise.
16210         (sparc64-*-solaris2*): Include assembler files before linker ones.
16211         (sparc-*-solaris2*): Simplify and reorder to match previous case.
16212         * config/sparc/gas.h: Delete.
16213         * config/sparc/sol2-64.h: Add copyright notice.
16214         * config/sparc/sol2-gas-bi.h: Likewise.
16215         * config/sparc/sol2-gld.h: Likewise.
16216         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
16217         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
16218         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
16219         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
16220         (sparc_elf_asm_named_section): Rename into...
16221         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
16222
16223 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
16224
16225         * config/alpha/alpha.c (override_options): Fix -mtune error message.
16226
16227 2010-03-02  Jeff Law  <law@redhat.com>
16228
16229         PR middle-end/42431
16230         * reload1.c (rtx_p, substitute_stack): Declare.
16231         (substitute): Record addresses of changed rtxs.
16232         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
16233         Restore the original rtx when complete.
16234         (reload): Free subsitute_stack when complete.
16235
16236 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
16237
16238         * doc/gccint.texi (menu): Add Testsuites as a chapter.
16239         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
16240         new chapter.
16241         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
16242         LTO Testing, gcov Testing, profopt Testing, compat Testing,
16243         Torture Tests): Change from subsection to section.
16244
16245 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
16246             Steven Bosscher  <steven@gcc.gnu.org>
16247
16248         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
16249         instead of bb.
16250
16251 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
16252
16253         PR middle-end/42640
16254         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
16255         the assignment from the new induction variable to the assignment
16256         of the value from the original loop PHI function.
16257
16258 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
16259             Daniel Jacobowitz  <dan@codesourcery.com>
16260
16261         * doc/sourcebuild.texi (Test directives): Clarify options to
16262         dg-skip-if.
16263
16264 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16265
16266         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
16267         Disable cfi directives unless GCC and gas agree on using read-only
16268         .eh_frame sections for 64-bit.
16269         * configure: Regenerate.
16270
16271 2010-03-01  Richard Guenther  <rguenther@suse.de>
16272
16273         PR tree-optimization/43220
16274         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
16275         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
16276
16277 2010-03-01  Richard Guenther  <rguenther@suse.de>
16278             Martin Jambor  <mjambor@suse.cz>
16279
16280         PR middle-end/41250
16281         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
16282         gimplified parameters.
16283
16284 2010-03-01  Christian Bruel  <christian.bruel@st.com>
16285
16286         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
16287
16288 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
16289
16290         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
16291
16292 2010-03-01  Richard Guenther  <rguenther@suse.de>
16293
16294         PR middle-end/43213
16295         * expr.c (expand_assignment): Use the alias-oracle to tell
16296         if the rhs aliases the result decl.
16297
16298 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16299
16300         PR pch/14940
16301         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
16302         to sol_gt_pch_get_address.
16303         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
16304         64-bit, SPARC and x86.
16305         (sol_gt_pch_get_address): New function.
16306
16307 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
16308
16309         * toplev.h (inform_n, error_n): Declare.
16310         * diagnostic.c (inform_n, error_n): New function.
16311
16312 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
16313
16314         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
16315         has no rtl yet when processing local_decls, queue it and recheck
16316         if deferred stack allocation hasn't assigned it rtl.
16317
16318 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
16319
16320         * config/sh/sh.c (unspec_bbr_uid): New.
16321         (gen_block_redirect): Use it instead of INSN_UID.
16322         (gen_far_branch): Likewise.
16323
16324 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
16325
16326         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
16327         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
16328
16329 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16330
16331         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
16332         (Warning Options): -Wno-conversion-null is valid for
16333         Objective-C++ as well.
16334         * doc/tm.texi (Named Address Spaces): Likewise.
16335         * doc/plugins.texi (Plugins): Replace TABs with spaces.
16336         * doc/tree-ssa.texi (Tree SSA): Likewise.
16337
16338 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16339
16340         PR bootstrap/43202
16341         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
16342         by default.  Don't set the default arch for
16343         i[34567]86-*-darwin*|x86_64-*-darwin*.
16344
16345 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16346
16347         PR bootstrap/43202
16348         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
16349         default.  Set the default 32bit/64bit archs with $with_arch
16350         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
16351
16352 2010-02-27  Richard Guenther  <rguenther@suse.de>
16353
16354         PR tree-optimization/43186
16355         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
16356         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
16357         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
16358         unroller iterations.
16359
16360 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
16361
16362         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
16363         required and i[34567]86-*-* targets don't support 64bit ISA.
16364
16365 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
16366
16367         PR ada/43096
16368         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16369         the same alias set.
16370
16371 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16372
16373         * config.gcc: Set the default arch at least to Prescott for
16374         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
16375         if SSE math is enabled.
16376
16377 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16378
16379         * diagnostic.c (diagnostic_initialize): Update.
16380         (diagnostic_report_diagnostic): Test inhibit_notes_p for
16381         informative notes.
16382         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
16383         (diagnostic_inhibit_notes): New.
16384         * toplev.c (process_options): inhibit notes with -fcompare-debug.
16385
16386 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16387
16388         PR c/20631
16389         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
16390         * doc/standards.texi: Likewise.
16391         * doc/extend.texi: Likewise.
16392         * doc/trouble.texi: Likewise.
16393         * doc/cppopts.texi: Likewise.
16394         * doc/install.texi: Likewise.
16395         * c.opt (std=c90,std=gnu90): New options.
16396         * c-opts.c (c_common_handle_option): Handle them.
16397
16398 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16399
16400         PR c/24577
16401         * c-decl.c (undeclared_variable): Use an informative note.
16402
16403 2010-02-26  Richard Guenther  <rguenther@suse.de>
16404
16405         PR tree-optimization/43186
16406         * gimple.h (gimple_fold): Remove.
16407         * gimple.c (gimple_fold): Remove.  Inline into single user ...
16408         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
16409         Try harder for conditions.
16410
16411 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16412
16413         PR debug/43190
16414         * function.c (used_types_insert): Don't skip through named pointer
16415         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
16416         and it is different from the main variant's type.
16417
16418 2010-02-26  Nick Clifton  <nickc@redhat.com>
16419
16420         * config/rx/rx.md (sminsi3): Remove bogus alternative.
16421
16422 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
16423
16424         * config.gcc: Support --with-fpmath=sse for x86.
16425
16426         * config/i386/ssemath.h: New.
16427
16428         * doc/install.texi (--with-fpmath=sse): Documented.
16429
16430 2010-02-26  Richard Guenther  <rguenther@suse.de>
16431
16432         PR tree-optimization/43188
16433         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
16434         vector types of over-aligned element type.
16435
16436 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
16437
16438         PR target/43175
16439         * config/i386/i386.c (expand_vec_perm_blend): Use correct
16440         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
16441
16442 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
16443
16444         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
16445
16446 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
16447
16448         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
16449         * var-tracking.c: Include diagnostic.h.
16450         (debug_dv): New function.
16451         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
16452
16453         PR debug/43160
16454         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
16455         (add_value_chain, add_value_chains, remove_value_chain,
16456         remove_value_chains): Handle DEBUG_EXPRs.
16457         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
16458
16459         PR debug/43161
16460         * regcprop.c (struct queued_debug_insn_change): New type.
16461         (struct value_data_entry): Add debug_insn_changes field.
16462         (struct value_data): Add n_debug_insn_changes field.
16463         (debug_insn_changes_pool): New variable.
16464         (free_debug_insn_changes, apply_debug_insn_changes,
16465         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
16466         (kill_value_one_regno): Call free_debug_insn_changes if needed.
16467         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
16468         fields.
16469         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
16470         changes for them.
16471         (copyprop_hardreg_forward_1): Don't call apply_change_group for
16472         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
16473         changes, call cprop_find_used_regs via note_stores.
16474         (copyprop_hardreg_forward): When copying vd from predecessor
16475         which has any queued DEBUG_INSN changes, make sure the pointers are
16476         cleared.  At the end call df_analyze and then if there are any
16477         DEBUG_INSN changes queued at the end of some basic block for still
16478         live registers, apply them.
16479         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
16480
16481 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
16482
16483         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
16484         (arm*-*-*): Ditto.
16485
16486 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
16487
16488         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
16489         targets.  Set the default with_cpu/with_arch from arch/cpu.
16490         Allow x86-64 and native for with_cpu/with_arch.
16491
16492 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
16493
16494         * ebitmap.c: Change calls to verify_popcount with calls to
16495         sbitmap_verify_popcount.
16496         (ebitmap_clear_bit): Fixed map->cacheindex test and
16497         map>cache update when bit clearing results in an empty
16498         element.
16499
16500 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
16501
16502         PR target/43154
16503         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
16504         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
16505         and support both V2DF and V2DI modes.
16506         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
16507         support both V2DF and V2DI modes.
16508         (general): Delete trailing whitespace from a few patterns.
16509
16510         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16511         V2DF/V2DI interleave high/low builtins.
16512
16513         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
16514         new VSX builtins.
16515
16516         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
16517         interleave high/low functions.
16518
16519 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
16520
16521         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
16522         #pragma extern_prefix.
16523
16524 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
16525
16526         PR debug/43166
16527         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
16528         BLKmode, assert op0 is a MEM and just adjust its mode.
16529
16530         PR debug/43165
16531         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
16532         if bitpos isn't multiple of mode's bitsize.
16533
16534 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16535
16536         * c.opt (-ftemplate-depth=): New.
16537         (-ftemplate-depth-): Deprecate.
16538         * optc-gen.awk: Handle -ftemplate-depth=.
16539         * opth-gen.awk: Likewise.
16540         * c-opts.c (c_common_handle_option): Likewise.
16541         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
16542
16543 2010-02-24  Jason Merrill  <jason@redhat.com>
16544
16545         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
16546
16547 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16548
16549         * cfg.c (alloc_aux_for_block): Remove inline.
16550         (alloc_aux_for_edge): Likewise.
16551
16552 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16553
16554         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
16555
16556 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16557
16558         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
16559         * config/i386/sol2-gas.h: New file.
16560         * config.gcc (i[34567]86-*-solaris2*): Use it.
16561
16562 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16563
16564         PR c/43128
16565         * c-typeck.c (ep_convert_and_check): New.
16566         (build_conditional_expr): Use it.
16567         (build_binary_op): Likewise.
16568
16569 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
16570
16571         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
16572
16573         PR debug/43150
16574         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
16575         bounds even for -O+.
16576         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
16577         expr needs to have DECL_NAME set.
16578
16579 2010-02-24  Nick Clifton  <nickc@redhat.com>
16580
16581         * config/mep/mep.c: Include gimple.h.
16582         (mep_function_uses_sp): Delete unused function.
16583         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
16584         parameters.  Use unsigned integers to count args.  Return a
16585         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
16586
16587 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16588
16589         PR target/43107
16590         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
16591         greater or equal to nelt instead of 2 * nelt.
16592         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
16593         with nelt - 1.
16594
16595 2010-02-23  Jason Merrill  <jason@redhat.com>
16596
16597         PR debug/42800
16598         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
16599         in cfun->local_decls even if they have register types.
16600
16601         PR c++/42837
16602         * stor-layout.c (place_field): Don't warn about unnecessary
16603         DECL_PACKED if the type is packed.
16604
16605 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
16606
16607         PR target/43139
16608         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
16609         GOTOFF relocs, even when the base reg isn't pic pointer.
16610
16611 2010-02-23  Michael Matz  <matz@suse.de>
16612
16613         PR debug/43077
16614         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
16615         (expand_gimple_basic_block): Generate and use debug temps if there
16616         are debug uses left after the last real use of TERed ssa names.
16617         Unlink debug immediate uses when they are expanded.
16618
16619 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16620
16621         PR 43123
16622         * config/i386/i386.c (override_options): Reorganise to provide
16623         better error messages.
16624
16625 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16626
16627         PR middle-end/43083
16628         * graphite-scop-detection.c (create_single_exit_edge): Move
16629         the call to find_single_exit_edge to....
16630         (create_sese_edges): ...here.  Don't handle multiple edges
16631         exiting the function.
16632         (build_graphite_scops): Don't handle multiple edges
16633         exiting the function.
16634
16635 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16636
16637         PR middle-end/43097
16638         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
16639         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
16640
16641 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
16642
16643         PR middle-end/43026
16644         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
16645
16646 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16647
16648         PR c++/43126
16649         * c-typeck.c (convert_arguments): Print declaration location.
16650         * c-common.c (validate_nargs): Rename as
16651         builtin_function_validate_nargs.
16652         (check_builtin_function_arguments): Update.
16653
16654 2010-02-22  Richard Guenther  <rguenther@suse.de>
16655
16656         PR lto/43045
16657         * tree-inline.c (declare_return_variable): Use the type of
16658         the call stmt lhs if available.
16659
16660 2010-02-22  Duncan Sands  <baldrick@free.fr>
16661
16662         * passes.c (register_pass): Always consider all pass lists when
16663         ref_pass_instance_number is zero.
16664
16665 2010-02-22  Richard Guenther  <rguenther@suse.de>
16666
16667         PR tree-optimization/42749
16668         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
16669         parameter.  Do arithmetic in the original type.
16670         (update_accumulator_with_ops): Likewise.
16671         (adjust_accumulator_values): Adjust.
16672
16673 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16674
16675         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
16676         (QI to BLKmode splitter): New splitter.
16677
16678 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
16679
16680         * config/i386/i386.c (initial_ix86_tune_features): Turn on
16681         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
16682
16683 2010-02-22  Richard Guenther  <rguenther@suse.de>
16684
16685         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
16686
16687 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
16688
16689         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
16690         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
16691         ($(T)crti.o, $(T)crtn.o): Remove rules.
16692
16693 2010-02-21  Tobias Burnus  <burnus@net-b.de>
16694
16695         PR fortran/35259
16696         * doc/invoke.texi (-fassociative-math): Document that this
16697         option is automatically enabled for Fortran.
16698
16699 2010-02-20  David S. Miller  <davem@davemloft.net>
16700
16701         * configure.ac: Test if linker and assembler properly support
16702         GOTDATA_OP relocations.
16703         * configure: Rebuild.
16704         * config.in: Likewise.
16705         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
16706         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
16707         (movsi_high_pic): Likewise.
16708         (movdi_lo_sum_pic): Likewise.
16709         (movdi_high_pic): Likewise.
16710         (movsi_pic_gotdata_op): New pattern.
16711         (movdi_pic_gotdata_op): Likewise.
16712         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
16713         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
16714
16715 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
16716
16717         PR target/43067
16718         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
16719         attribute to ssemul.
16720         (xop_mulv2div2di3_high): Ditto.
16721
16722 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16723
16724         PR c++/35669
16725         * c.opt (Wconversion-null): New option.
16726         * doc/invoke.texi (Wconversion-null): Document.
16727
16728 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16729
16730         * common.opt (Wlarger-than-): Add Undocumented.
16731
16732 2010-02-19  Mike Stump  <mikestump@comcast.net>
16733
16734         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
16735
16736 2010-02-19  Jason Merrill  <jason@redhat.com>
16737
16738         PR target/40332
16739         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
16740         * configure: Likewise.
16741
16742 2010-02-20  Alan Modra  <amodra@gmail.com>
16743
16744         PR middle-end/42344
16745         * cgraph.h (cgraph_make_decl_local): Declare.
16746         * cgraph.c (cgraph_make_decl_local): New function.
16747         (cgraph_make_node_local): Use it.
16748         * cgraphunit.c (cgraph_function_versioning): Likewise.
16749         * ipa.c (function_and_variable_visibility): Likewise.
16750
16751 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16752
16753         PR bootstrap/43121
16754         * except.c (sjlj_emit_function_enter): Don't call
16755         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
16756         directly.
16757         * rtl.h (add_reg_br_prob_note): Remove prototype.
16758
16759 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16760
16761         PR 41779
16762         * c-common.c (conversion_warning): Remove widening conversions
16763         before checking the conversion of integers to reals.
16764
16765 2010-02-19  Mike Stump  <mikestump@comcast.net>
16766
16767         PR middle-end/43125
16768         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
16769
16770         PR objc/43061
16771         * cgraphunit.c (process_function_and_variable_attributes): Check
16772         DECL_PRESERVE_P instead of looking up attribute "used".
16773         * ipa-pure-const.c (check_decl): Likewise.
16774         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
16775         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
16776         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
16777         instead of attribute "used".
16778         * config/sol2-c.c (solaris_pragma_init): Likewise.
16779         (solaris_pragma_fini): Likewise.
16780
16781 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16782
16783         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
16784         Use XCNEW instead of xcalloc.
16785         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
16786         XNEW instead of xmalloc.
16787         (get_fields): Use XNEWVEC instead of xmalloc.
16788
16789         PR debug/43084
16790         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
16791         populate vars array.
16792         (create_new_general_access): For debug stmts just reset value.
16793         (get_stmt_accesses): For accesses within debug stmts just record them
16794         using add_access_to_acc_sites instead of preventing the peeling or
16795         counting them as accesses.
16796
16797         PR middle-end/42233
16798         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
16799
16800 2010-02-19  Richard Guenther  <rguenther@suse.de>
16801
16802         PR tree-optimization/42916
16803         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
16804         instructions.
16805
16806 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
16807
16808         * configure.ac: Replace all uses of changequote in macro arguments
16809         with proper quoting.
16810
16811 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16812
16813         PR middle-end/42233
16814         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
16815
16816 2010-02-19  Richard Guenther  <rguenther@suse.de>
16817
16818         PR tree-optimization/42944
16819         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
16820         test for aliasing with errno.
16821
16822 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
16823
16824         PR middle-end/42233
16825         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
16826         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
16827         * dojump.c: Include output.h.
16828         (inv): New inline function.
16829         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
16830         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
16831         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
16832         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
16833         argument, pass it down to other calls.
16834         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
16835         add REG_BR_PROB note to the conditional jump.
16836         * cfgexpand.c (add_reg_br_prob_note): Removed.
16837         (expand_gimple_cond): Don't call it, add the probability
16838         as last argument to jumpif_1/jumpifnot_1.
16839         * Makefile.in (dojump.o): Depend on output.h.
16840         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
16841         callers.
16842         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
16843         * stmt.c (do_jump_if_equal): Likewise.
16844         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
16845         * loop-unswitch.c (compare_and_jump_seq): Likewise.
16846         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
16847         Likewise.
16848         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
16849         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
16850         jumpifnot_1 callers.
16851         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
16852         callers.
16853         (store_expr): Adjust jumpifnot caller.
16854         (store_constructor): Adjust jumpif caller.
16855
16856         PR middle-end/42233
16857         * gimplify.c (gimple_boolify): For __builtin_expect call
16858         gimple_boolify also on its first argument.
16859
16860 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
16861
16862         * configure.ac (gnu-unique-object): Wrap regexps using [] in
16863         changequote block.
16864         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
16865         * configure: Regenerated.
16866
16867 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16868
16869         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
16870         lang_hooks.types_compatible_p instead of comptypes.
16871
16872 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
16873
16874         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
16875         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
16876         if __prefer_thumb__ is defined.
16877
16878 2010-02-18  Martin Jambor  <mjambor@suse.cz>
16879
16880         PR tree-optimization/43066
16881         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
16882         array with zero-sized element type.
16883
16884 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
16885
16886         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
16887         rtx, allocate struct var_loc_node here and return it to the
16888         caller, and only if it is actually needed.
16889         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
16890         move it earlier and return immediately if it returns NULL.
16891
16892 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
16893
16894         * config/sparc/gas.h: New file.  Restore
16895         TARGET_ASM_NAMED_SECTION to its ELF default.
16896         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
16897         check !HAVE_GNU_AS.
16898         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16899         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
16900         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
16901         after sparc/sysv4.h.
16902
16903 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
16904
16905         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
16906
16907 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
16908
16909         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
16910         patterns from predicated pattern.
16911
16912 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
16913
16914         PR target/43103
16915         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
16916         for insn mnemonic suffix.
16917
16918 2010-02-17  Richard Guenther  <rguenther@suse.de>
16919
16920         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
16921         to loop PHI nodes.
16922
16923 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
16924
16925         PR debug/42918
16926         * caller-save.c (save_call_clobbered_regs): If BB ends with
16927         a DEBUG_INSN, move any notes in between last real insn and the last
16928         DEBUG_INSN after the last DEBUG_INSN.
16929
16930 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
16931
16932         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
16933         Fix return type.  Fix argument type.  Explain meaning of return value.
16934
16935 2010-02-16  Richard Guenther  <rguenther@suse.de>
16936
16937         PR tree-optimization/41043
16938         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
16939         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
16940         statements ...
16941         (vrp_visit_phi_node): ... but only for loop PHI nodes.
16942
16943 2010-02-16  Ira Rosen  <irar@il.ibm.com>
16944
16945         PR tree-optimization/43074
16946         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
16947         * tree-vect-loop.c (vect_analyze_loop_operations): Add
16948         vectorizable cycles in hybrid SLP check.
16949         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
16950
16951 2010-02-16  Richard Guenther  <rguenther@suse.de>
16952
16953         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
16954         (true_dependence): If memrefs_conflict_p computes must-alias
16955         trust it.  Move TBAA check after offset-based disambiguation.
16956         (canon_true_dependence): Likewise.
16957
16958 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
16959
16960         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
16961         * doc/invoke.texi: Document it.
16962         * var-tracking.c: Include toplev.h and params.h.
16963         (vt_find_locations): Return bool indicating success.  Compute
16964         hash sizes unconditionally.  Check new parameter, report.
16965         (variable_tracking_main_1): Check vt_find_locations results and
16966         retry.  Renamed from...
16967         (variable_tracking_main): ... this.  New wrapper to preserve
16968         flag_var_tracking_assignments.
16969         * Makefile.in (var-tracking.o): Adjust dependencies.
16970
16971 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
16972             Jakub Jelinek  <jakub@redhat.com>
16973
16974         PR target/42854
16975         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
16976         if weak_import attribute is present.
16977         * config/darwin.c (machopic_select_section): Likewise.
16978
16979 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
16980
16981         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
16982         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
16983         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
16984         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
16985
16986         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
16987         types.
16988
16989         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
16990         Fix argument types.
16991
16992         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
16993         Rewrite text to refer to the names.
16994
16995 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
16996
16997         * config/i386/i386-builtin-types.def
16998         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
16999         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
17000         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
17001         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
17002         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
17003         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
17004         IX86_BUILTIN_VPERMIL2PS256.
17005         (MULTI_ARG_4_DF2_DI_I): Defined.
17006         (MULTI_ARG_4_DF2_DI_I1): Defined.
17007         (MULTI_ARG_4_SF2_SI_I): Defined.
17008         (MULTI_ARG_4_SF2_SI_I1): Defined.
17009         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
17010         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
17011         __builtin_ia32_vpermil2ps256.
17012         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17013         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17014         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
17015         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
17016         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
17017         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
17018         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
17019         CODE_FOR_xop_vpermil2v8sf3.
17020         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
17021         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
17022         * config/i386/xopintrin.h (_mm_permute2_pd): New.
17023         (_mm256_permute2_pd): New.
17024         (_mm_permute2_ps): New.
17025         (_mm256_permute2_ps): New.
17026
17027 2010-02-15  Nick Clifton  <nickc@redhat.com>
17028
17029         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
17030         boolean parameters.  Use emit_jump_insn when emitting a pop
17031         instruction containing a return insn.
17032         (push): Use 'true' rather than '1' as second parameter to F.
17033         (h8300_expand_prologue): Likewise.
17034         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
17035         (h8300_expand_epilogue): Likewise.
17036
17037 2010-02-15  Richard Guenther  <rguenther@suse.de>
17038
17039         PR middle-end/43068
17040         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
17041         if that is zero.
17042
17043 2010-02-15  Nick Clifton  <nickc@redhat.com>
17044
17045         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
17046         delta.
17047
17048 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
17049
17050         * intl.c (fake_ngettext): New function.
17051         * intl.h (fake_ngettext): Declare.
17052         (ngettext): Define macro.
17053         * collect2.c (notice_translated): New function.
17054         (main): Use notice_translated and ngettext.
17055         * collect2.h (notice_translated): Declare.
17056
17057 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
17058
17059         * reorg.c (delete_computation): Comment fixes.
17060         * caller-save.c (setup_save_areas): Idem.
17061         * sel-sched-dump.c (dump_lv_set): Idem.
17062         * rtl.def: Idem.
17063
17064 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17065
17066         * config/s390/s390.c (s390_sched_init): New function.
17067         (TARGET_SCHED_INIT): Target hook defined.
17068
17069 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
17070             Jack Howarth  <howarth@bromo.med.uc.edu>
17071             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
17072
17073         PR target/42982
17074         Partial revert of unintended change in fix for PR41605.
17075         * config/darwin.h: Fix typo.
17076         * config/darwin9.h: Same.
17077
17078 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17079
17080         * c-pch.c (pch_init): Clear v.
17081
17082 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17083
17084         PR middle-end/42930
17085         * graphite-scop-detection.c (graphite_can_represent_scev): Call
17086         graphite_can_represent_init for MULT_EXPR.
17087
17088 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17089
17090         PR middle-end/42914
17091         PR middle-end/42530
17092         * graphite-sese-to-poly.c (remove_phi): New.
17093         (translate_scalar_reduction_to_array): Call remove_phi.
17094
17095 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17096
17097         PR middle-end/42771
17098         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
17099         * graphite-clast-to-gimple.h (gloog): Update declaration.
17100         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
17101         * graphite-poly.h (struct poly_bb): Add missing comments.
17102         (struct scop): Add poly_scop_p field.
17103         (POLY_SCOP_P): New.
17104         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
17105         * graphite.c (graphite_transform_loops): Build the polyhedral
17106         representation for each scop before code generation.
17107         * sese.c (rename_variables_in_operand): Removed.
17108         (rename_variables_in_expr): Return the renamed expression.
17109         (rename_sese_parameters): New.
17110         * sese.h (rename_sese_parameters): Declared.
17111
17112 2010-02-11  Richard Guenther  <rguenther@suse.de>
17113
17114         PR tree-optimization/42998
17115         * tree-ssa-pre.c (create_expression_by_pieces): Treat
17116         POINTER_PLUS_EXPR properly.
17117
17118 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
17119             Changpeng Fang  <changpeng.fang@amd.com>
17120
17121         PR middle-end/40886
17122         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
17123         the cost of an IV candidate when the IV is used in a test against zero.
17124
17125         * gcc.dg/tree-ssa/ivopts-3.c: New.
17126
17127 2010-02-11  Richard Guenther  <rguenther@suse.de>
17128
17129         PR lto/41664
17130         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
17131         pointer-vs-decl case by swapping refs.  Handle some cases
17132         of pointer-vs-decl disambiguations more conservatively.
17133         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
17134         to false after expanding.
17135
17136 2010-02-11  Richard Guenther  <rguenther@suse.de>
17137
17138         PR driver/43021
17139         * gcc.c (process_command): Handle LTO file@offset case more
17140         appropriately.
17141
17142 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
17143
17144         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
17145         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
17146         of DEBUG_INSNs.
17147         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
17148
17149         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
17150         if MEM's mode size isn't DWARF2_ADDR_SIZE.
17151         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
17152         Optimize eq/ne comparisons when both arguments are known to be
17153         zero-extended.
17154         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
17155         Don't mask operands unnecessarily if they are known to be already
17156         zero-extended.
17157
17158 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
17159
17160         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
17161         instead of loop.
17162
17163 2010-02-10  Richard Guenther  <rguenther@suse.de>
17164
17165         PR tree-optimization/43017
17166         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
17167         for wrapping signed arithmetic.
17168
17169 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17170
17171         PR debug/43010
17172         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
17173         if no debug info should be emitted for it.
17174
17175 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
17176
17177         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
17178         note when flag_exceptions is set.
17179
17180 2010-02-10  Duncan Sands  <baldrick@free.fr>
17181
17182         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
17183
17184 2010-02-10  Richard Guenther  <rguenther@suse.de>
17185
17186         PR c/43007
17187         * tree.c (get_unwidened): Handle constants.
17188         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
17189
17190 2010-02-10  Martin Jambor  <mjambor@suse.cz>
17191
17192         PR lto/42985
17193         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
17194         check for variable argument counts independently.
17195
17196 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17197
17198         PR target/42841
17199         * config/sh/sh.c (find_barrier): Increase length for non delayed
17200         conditional branches.
17201
17202 2010-02-10  Christian Bruel  <christian.bruel@st.com>
17203
17204         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
17205
17206 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
17207
17208         * builtins.c (set_builtin_user_assembler_name): Also handle
17209         ffs if int is smaller than word.
17210
17211 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
17212
17213         PR middle-end/42973
17214         * ira-conflicts.c (get_dup): Remove.
17215         (process_reg_shuffles): Add new parameter.  Use it as an
17216         additional guard for copy generation.
17217         (add_insn_allocno_copies): Rewrite.
17218
17219 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
17220
17221         * common.opt (fsched2-use-traces): Preserved for backward
17222         compatibility.
17223         * doc/invoke.texi: Remove the documentation about option
17224         -fsched2-use-traces.
17225         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
17226         flag_sched2_use_traces.
17227         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
17228         the backward compatibility flag section.
17229
17230 2010-02-09  Richard Guenther  <rguenther@suse.de>
17231
17232         PR tree-optimization/43008
17233         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
17234         make HEAP variables initialized from global memory if they
17235         are not known builtin functions.
17236         (find_func_aliases): Adjust.
17237
17238 2010-02-09  Richard Guenther  <rguenther@suse.de>
17239
17240         PR tree-optimization/43000
17241         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
17242         arithmetic manually.
17243
17244 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
17245
17246         PR tree-optimization/42931
17247         * tree-loop-linear.c (try_interchange_loops): Don't call
17248         double_int_mul if estimated_loop_iterations failed.
17249
17250 2010-02-08  Martin Jambor  <mjambor@suse.cz>
17251
17252         PR middle-end/42898
17253         * tree-sra.c (build_accesses_from_assign): Do not mark in
17254         should_scalarize_away_bitmap if stmt has volatile ops.
17255         (sra_modify_assign): Do not process assigns piecemeal if if stmt
17256         has volatile ops.
17257
17258 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
17259
17260         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
17261
17262 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
17263
17264         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
17265         before the pattern.
17266
17267 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
17268
17269         PR middle-end/42946
17270         * df-core.c (df_finish_pass): Change type of saved_flags to int.
17271
17272 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17273
17274         PR middle-end/42988
17275         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
17276         to unknown_dependence.
17277         (graphite_legal_transform_dr): Handle the unknown_dependence.
17278         (graphite_carried_dependence_level_k): Same.
17279
17280 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
17281
17282         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
17283
17284 2010-02-07  Richard Guenther  <rguenther@suse.de>
17285
17286         PR middle-end/42991
17287         * expr.c (get_inner_reference): Always initialize *pbitsize.
17288
17289 2010-02-07  Richard Guenther  <rguenther@suse.de>
17290
17291         PR middle-end/42956
17292         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
17293         new ARRAY_REFs on variable size element or minimal index arrays.
17294         Complete.
17295         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
17296         gimple_fold_indirect_ref.
17297
17298 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
17299
17300         PR target/42957
17301         * arm.c (arm_override_options): Just return if the user has specified
17302         an invalid fpu name.
17303
17304 2010-02-03  Jason Merrill  <jason@redhat.com>
17305
17306         PR c++/42870
17307         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
17308         i386_pe_maybe_record_exported_symbol.
17309
17310 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
17311
17312         PR target/42924
17313         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17314         (pa_delegitimize_address): New function.
17315
17316 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
17317
17318         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
17319         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
17320
17321 2010-02-05  Richard Guenther  <rguenther@suse.de>
17322
17323         PR lto/42762
17324         * lto-streamer-in.c (get_resolution): Deal with references
17325         to undefined functions.
17326
17327 2010-02-05  Richard Guenther  <rguenther@suse.de>
17328
17329         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
17330         (fold_const_aggregate_ref): Likewise.
17331         (ccp_fold_stmt): Substitute loads.
17332         (maybe_fold_reference): Verify types before substituting.
17333         Unshare properly.
17334         (fold_gimple_assign): Unshare properly.
17335         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
17336
17337 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
17338
17339         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
17340         for rs6000_gen_cell_microcode.
17341
17342 2010-02-04  Richard Guenther  <rguenther@suse.de>
17343
17344         PR rtl-optimization/42952
17345         * dse.c (const_or_frame_p): Remove MEM handling.
17346
17347 2010-02-04  Nick Clifton  <nickc@redhat.com>
17348
17349         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
17350         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
17351         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
17352         (mn10300_asm_output_mi_thunk): New function.
17353         (mn10300_can_output_mu_thunk): New function.
17354         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
17355         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
17356         (FUNCTION_ARG): Delete incorrect comment.
17357
17358 2010-02-03  Jason Merrill  <jason@redhat.com>
17359
17360         PR c++/40138
17361         * fold-const.c (operand_equal_p): Handle erroneous types.
17362
17363 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
17364
17365         * config/h8300/h8300.md (can_delay): Fix attibute condition.
17366
17367 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
17368
17369         PR rtl-optimization/42941
17370         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
17371         of xmalloc.
17372
17373 2010-02-03  Jason Merrill  <jason@redhat.com>
17374
17375         PR c++/35652
17376         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
17377
17378 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
17379
17380         PR debug/42896
17381         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
17382         (cselib_reset_table): Renamed from...
17383         (cselib_reset_table_with_next_value): ... this.
17384         (cselib_get_next_uid): Renamed from...
17385         (cselib_get_next_unknown_value): ... this.
17386         * cselib.c (next_uid): Renamed from...
17387         (next_unknown_value): ... this.
17388         (cselib_clear_table): Adjust.
17389         (cselib_reset_table): Adjust.  Renamed from...
17390         (cselib_reset_table_with_next_value): ... this.
17391         (cselib_get_next_uid): Adjust.  Renamed from...
17392         (cselib_get_next_unknown_value): ... this.
17393         (get_value_hash): Use hash.
17394         (cselib_hash_rtx): Likewise.
17395         (new_cselib_val): Adjust.  Set and dump uid.
17396         (cselib_lookup_mem): Pass next_uid as hash.
17397         (cselib_subst_to_values): Likewise.
17398         (cselib_log_lookup): Dump uid.
17399         (cselib_lookup): Pass next_uid as hash.  Adjust.
17400         (cselib_process_insn): Adjust.
17401         (cselib_init): Initialize next_uid.
17402         (cselib_finish): Adjust.
17403         (dump_cselib_table): Likewise.
17404         * dse.c (canon_address): Dump value uid.
17405         * print-rtl.c (print_rtx): Print value uid.
17406         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
17407         (dvuid): New type.
17408         (dv_uid): New function, sort of renamed from...
17409         (dv_htab_hash): ... this, reimplemented in terms of it and...
17410         (dv_uid2hash): ... this.  New.
17411         (variable_htab_eq): Drop excess assertions.
17412         (tie_break_pointers): Removed.
17413         (canon_value_cmp): Compare uids.
17414         (variable_post_merge_New_vals): Print uids.
17415         (vt_add_function_parameters): Adjust.
17416         (vt_initialize): Reset table.  Adjust.
17417
17418 2010-02-03  Richard Guenther  <rguenther@suse.de>
17419
17420         PR tree-optimization/42944
17421         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
17422         (call_may_clobber_ref_p_1): Likewise.  Properly handle
17423         malloc and calloc clobbering errno.
17424
17425 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
17426
17427         * doc/invoke.texi: Fix name of sched1 dump.
17428
17429         * opts.c (decode_options): Set flag_tree_switch_conversion
17430         only conditionally on optimize >= 2.
17431
17432         * gcse.c: Assorted comment fixes in pass description.
17433
17434 2010-02-03  Anthony Green  <green@moxielogic.com>
17435
17436         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
17437         nop padding in order to maintain alignment of storage location of
17438         target function address.
17439         (moxie_trampoline_init): Store target function address at newly
17440         aligned location.
17441         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
17442         to 32.
17443         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
17444
17445 2010-02-03  Richard Guenther  <rguenther@suse.de>
17446
17447         PR middle-end/42927
17448         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
17449
17450 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17451
17452         * config.gcc: Reenable check for obsolete targets.
17453         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
17454         mips-sgi-irix6.[0-4]*.
17455
17456 2010-02-02  Nick Clifton  <nickc@redhat.com>
17457
17458         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
17459         constant size of 4 as being the same as 0.
17460         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
17461         can take values in the range 0..4.
17462
17463 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
17464
17465         PR java/41991
17466         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
17467         as _darwin10_Unwind_FindEnclosingFunction().
17468         * libgcc-libsystem.ver: New.
17469
17470 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
17471
17472         PR target/41399
17473         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
17474         implicitly set registers.
17475
17476 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
17477
17478         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
17479         (arm_override_options): Allow automatic selection of the thread
17480         pointer register if thumb2.
17481         (legitimize_pic_address): Improve code sequences for Thumb2.
17482         (arm_call_tls_get_addr): Likewise.
17483         (legitimize_tls_address): Likewise.
17484         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
17485         (pic_load_addr_32bit): ... this.  New named pattern.
17486         * thumb2.md (pic_load_addr_thumb2): Delete.
17487         (pic_load_dot_plus_four): Delete.
17488         (tls_load_dot_plus_four): New named pattern.
17489
17490 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17491
17492         PR libgomp/29986
17493         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
17494         Document fix for TLS bug.
17495
17496 2010-01-31  Richard Guenther  <rguenther@suse.de>
17497
17498         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
17499         conservatively correct.
17500
17501 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17502
17503         PR target/42850
17504         Revert:
17505         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17506
17507         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17508
17509 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17510
17511         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
17512
17513 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
17514
17515         * config.gcc: Adjust order of makefile fragments for mingw targets.
17516
17517 2010-01-31  Richard Guenther  <rguenther@suse.de>
17518
17519         PR middle-end/42898
17520         * gimplify.c (gimplify_init_constructor): For volatile LHS
17521         initialize a temporary.
17522
17523 2010-01-31  Matthias Klose  <doko@ubuntu.com>
17524
17525         * configure.ac: Fix __stack_chk_fail check for cross builds configured
17526         --with-headers
17527         * configure: Regenerate.
17528
17529 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
17530
17531         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
17532         the same alias set and their sizes different constantness.
17533         (aliasing_component_refs_p): Revert 2009-10-24 change.
17534
17535 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17536
17537         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
17538         unused.
17539
17540 2010-01-29  Richard Guenther  <rguenther@suse.de>
17541
17542         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
17543         Assert we successfully updated the call.
17544
17545 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
17546
17547         PR rtl-optimization/42889
17548         * df.h (df_set_bb_dirty_nonlr): New prototype.
17549         * df-core.c (df_set_bb_dirty_nonlr): New function.
17550         * df-scan.c (df_insn_rescan): Call it instead of
17551         df_set_bb_dirty for DEBUG_INSNs.
17552
17553 2010-01-29  Richard Guenther  <rguenther@suse.de>
17554
17555         PR middle-end/37448
17556         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
17557         quadratic behavior in most cases.
17558
17559 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
17560
17561         PR target/42891
17562         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
17563         in the call to gen_x86_movsicc_0_m1.
17564
17565 2010-01-28  Richard Guenther  <rguenther@suse.de>
17566
17567         PR tree-optimization/42871
17568         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
17569
17570 2010-01-28  Richard Guenther  <rguenther@suse.de>
17571
17572         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
17573         into call arguments.
17574
17575 2010-01-28  Richard Guenther  <rguenther@suse.de>
17576
17577         PR middle-end/42883
17578         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
17579         the forwarder if the destination is an EH landing pad.
17580
17581 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
17582
17583         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
17584         block list passed to gimple_duplicate_sese_tail.
17585         (parallelize_loops): Avoid parallelization when the function
17586         has_nonlocal_label.
17587         Avoid parallelization when the preheader is IRREDUCIBLE.
17588         Try to optimize when estimated_loop_iterations_int is unresolved.
17589         Add the loop's location to the dump file.
17590         * tree-cfg.c (add_phi_args_after_redirect): Remove.
17591         (gimple_duplicate_sese_tail): Remove the check for the latch.
17592         Redirect nexits to the exit block.
17593         Remove handling of the incoming edges to the latch.
17594         Redirect the backedge from the copied latch to the exit bb.
17595
17596 2010-01-28  Michael Matz  <matz@suse.de>
17597
17598         PR target/42881
17599         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
17600         Wrap force_reg into a sequence, emit it before user.
17601
17602 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
17603
17604         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
17605         (arm_rev): New.
17606         (arm_legacy_rev): Likewise.
17607         (thumb_legacy_rev): Likewise.
17608
17609 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17610
17611         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
17612         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
17613         on MEM's address failed, try avoid_constant_pool_reference and
17614         recurse if it returned something different.
17615         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
17616         address, try avoid_constant_pool_reference and recurse if it
17617         returned something different.
17618         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
17619         address and avoid_constant_pool_reference returned something
17620         different, don't set have_address.
17621
17622 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
17623
17624         PR debug/42861
17625         * var-tracking.c (val_store): Add modified argument, obey it.
17626         Adjust callers.
17627         (count_uses): Move down logging of main.
17628         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
17629         don't need resolution.
17630         (emit_notes_in_bb): Likewise.
17631
17632 2010-01-27  Richard Guenther  <rguenther@suse.de>
17633
17634         PR middle-end/42878
17635         * tree-inline.c (remap_decl): Delay remapping of SSA name
17636         default definitions until we need them.
17637
17638 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
17639
17640         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
17641         (rs6000_delegitimize_address): New function.
17642
17643         * config/s390/s390.c (s390_delegitimize_address): Call
17644         delegitimize_mem_from_attrs.
17645
17646         PR middle-end/42874
17647         * tree-inline.c (cannot_copy_type_1): Removed.
17648         (copy_forbidden): Don't forbid copying of functions containing
17649         records/unions with variable length fields.
17650
17651 2010-01-27  Christian Bruel  <christian.bruel@st.com>
17652
17653         Revert:
17654         PR target/42841
17655         * config/sh/sh.c (find_barrier): Increase length for non delayed
17656         conditional branches.
17657
17658 2010-01-27  Matthias Klose  <doko@ubuntu.com>
17659
17660         * configure.ac (gnu-unique-object): Fix ldd version check.
17661         * configure: Regenerate.
17662
17663 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17664
17665         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
17666         HAVE_GNU_AS value.
17667         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
17668         Test for HAVE_GNU_AS value.
17669
17670 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17671
17672         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
17673         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
17674         INT64_TYPE): Define.
17675         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
17676         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
17677         INT_LEAST64_TYPE): Define.
17678         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
17679         UINT_LEAST64_TYPE): Define.
17680         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
17681         INT_FAST64_TYPE): Define.
17682         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
17683         UINT_FAST64_TYPE): Define.
17684         (INTMAX_TYPE, UINTMAX_TYPE): Define.
17685         (INTPTR_TYPE, UINTPTR_TYPE): Define.
17686         (SIG_ATOMIC_TYPE): Define.
17687
17688 2010-01-26  Richard Guenther  <rguenther@suse.de>
17689
17690         * df-scan.c (df_scan_set_bb_info): Remove assert.
17691         (df_insn_rescan_debug_internal): Merge asserts.
17692         (df_install_ref): Likewise.
17693         (df_mark_reg): Use bitmap_set_range.
17694         (df_hard_reg_used_p): Remove assert.
17695         (df_hard_reg_used_count): Likewise.
17696
17697 2010-01-26  Richard Guenther  <rguenther@suse.de>
17698
17699         PR rtl-optimization/42685
17700         * web.c (web_main): Ignore DEBUG_INSNs.
17701
17702 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
17703
17704         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
17705
17706         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
17707         Fix types of fndecl and arglist parameters.
17708
17709 2010-01-26  Richard Guenther  <rguenther@suse.de>
17710
17711         PR middle-end/42806
17712         * tree-eh.c (unsplit_eh): Skip debug insns.
17713
17714 2010-01-26  Richard Guenther  <rguenther@suse.de>
17715
17716         PR tree-optimization/42250
17717         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
17718
17719 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
17720
17721         PR fortran/42866
17722         * omp-low.c (expand_omp_sections): Only use single_pred if
17723         l2_bb is single_pred_p.
17724
17725 2010-01-25  Christian Bruel  <christian.bruel@st.com>
17726
17727         PR target/42841
17728         * config/sh/sh.c (find_barrier): Increase length for non delayed
17729         conditional branches.
17730         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
17731
17732 2010-01-24  David S. Miller  <davem@davemloft.net>
17733
17734         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
17735         define if not using GAS.
17736         * config/sparc/sparc.c (sparc_elf_asm_named_section):
17737         Likewise.  Delete SECTION_MERGE code, which is only applicable
17738         when using GAS.
17739
17740 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
17741
17742         PR c++/42748
17743         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
17744         mangling of va_list in system headers.
17745
17746 2010-01-23  Toon Moene  <toon@moene.org>
17747
17748         * tree-predcom.c (combine_chains): Return NULL, not false.
17749
17750 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
17751
17752         * tree-loop-distribution.c (distribute_loop): Fix declaration and
17753         initialization of variable res to agree with return type.
17754
17755 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
17756
17757         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
17758         * tree-sra.c: Add include of expr.h.
17759
17760 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
17761
17762         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
17763         insert the debug stmt on the single non-EH edge from the stmt.
17764
17765 2010-01-22  Richard Henderson  <rth@redhat.com>
17766
17767         PR tree-opt/42833
17768         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
17769         the RHS until after generate_subtree_copies has insertted its
17770         code before the current statement.
17771
17772 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
17773
17774         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
17775
17776         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
17777
17778 2010-01-21  Martin Jambor  <mjambor@suse.cz>
17779
17780         PR tree-optimization/42585
17781         * tree-sra.c (struct access): New field grp_total_scalarization.
17782         (dump_access): Dump the new field.
17783         (should_scalarize_away_bitmap): New variable.
17784         (cannot_scalarize_away_bitmap): Likewise.
17785         (sra_initialize): Allocate new bitmaps.
17786         (sra_deinitialize): Free new bitmaps.
17787         (create_access_1): New function.
17788         (create_access): Parts moved to create_access_1.
17789         (type_consists_of_records_p): New function.
17790         (completely_scalarize_record): Likewise.
17791         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
17792         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
17793         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
17794         access.
17795         (analyze_all_variable_accesses): Completely scalarize small eligible
17796         records.
17797
17798 2010-01-21  Martin Jambor  <mjambor@suse.cz>
17799
17800         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
17801
17802 2010-01-21  Andrew Haley  <aph@redhat.com>
17803
17804         * gcc.c (process_command): Move lang_specific_driver before
17805         setting cc_libexec_prefix.
17806
17807 2010-01-21  Richard Guenther  <rguenther@suse.de>
17808
17809         PR middle-end/19988
17810         * fold-const.c (negate_expr_p): Pretend only negative
17811         real constants are easily negatable.
17812
17813 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
17814             Jason Merrill  <jason@redhat.com>
17815
17816         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
17817         (TYPE_TRANSPARENT_AGGR): this, for union and record.
17818         * calls.c (initialize argument_information): Handle it.
17819         * c-common.c (handle_transparent_union_attribute): Use new name.
17820         * c-decl.c (finish_struct): Ditto.
17821         * c-typeck.c (type_lists_compatible_p): Ditto.
17822         (convert_for_assignment): Use new name and also handle record.
17823         * function.c (aggregate_value_p): Handle it.
17824         (pass_by_reference): Ditto.
17825         (assign_parm_data_types): Ditto.
17826         * print-tree.c (print_node): Ditto.
17827         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
17828         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
17829         * tree.c (first_field): New fn.
17830
17831 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
17832
17833         PR target/42818
17834         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
17835         even when linking statically, for now.
17836
17837 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
17838
17839         PR debug/42715
17840         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
17841         without a cselib val.
17842         (count_uses): Accept MO_VAL_SET with no val on stores.
17843         (add_stores): Likewise.
17844
17845 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17846
17847         * var-tracking.c (check_value_val): Add a compile time assertion.
17848         (dv_is_decl_p): Simplify.
17849         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
17850         gcc_assert if ENABLE_CHECKING.
17851
17852 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
17853
17854         PR debug/42782
17855         * var-tracking.c: Include tree-flow.h.
17856         (mem_dies_at_call): New.
17857         (dataflow_set_preserve_mem_locs): Use it.
17858         (dataflow_set_remove_mem_locs): Likewise.
17859         (dump_var): Renamed from dump_variable.  Adjust all callers.
17860         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
17861         * Makefile.in (var-tracking.o): Adjust deps.
17862
17863 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
17864
17865         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
17866
17867 2010-01-20  Richard Guenther  <rguenther@suse.de>
17868
17869         PR tree-optimization/42717
17870         * tree-ssa-dce.c (get_live_post_dom): Remove.
17871         (forward_edge_to_pdom): Take an arbitrary edge to copy
17872         degenerate PHI args from.
17873         (remove_dead_stmt): Use the first post-dominator even if it
17874         does not contain live statements as redirection destination.
17875
17876 2010-01-20  Richard Guenther  <rguenther@suse.de>
17877
17878         * tree-inline.c (estimate_num_insns): Handle EH builtins.
17879
17880 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17881
17882         * sel-sched.c (create_speculation_check): Remove set but not used
17883         variable twin.
17884         (try_transformation_cache): Remove set but not used variable ds.
17885         (calculate_privileged_insns): Remove set but not used variables
17886         cur_insn and min_spec_insn.
17887         (find_best_expr): Remove set but not used variable avail_n.
17888         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
17889         variable e.
17890         * cgraphunit.c (assemble_thunk): Remove set but not used variable
17891         false_label.
17892         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
17893         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
17894         new_scop_exit_edge.
17895
17896 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
17897
17898         PR bootstrap/42786
17899         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
17900         cpu types.  Add support for *-sse3 cpu types.
17901         (x86_64-*-*): Ditto.
17902
17903 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17904
17905         PR middle-end/42803
17906         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
17907         argument, call initializer_constant_valid_p_1 instead of
17908         initializer_constant_valid_p, pass CACHE to it, return NULL
17909         immediately if first call returns NULL.
17910         (initializer_constant_valid_p_1): New function.
17911         (initializer_constant_valid_p): Use it.
17912
17913 2010-01-20  Thomas Quinot  <quinot@adacore.com>
17914
17915         * tree.def (PLACEHOLDER_EXPR): Fix comment.
17916
17917 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
17918
17919         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
17920         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
17921         (loc_list_from_tree): Don't handle unsigned division.  Handle
17922         signed modulo using DW_OP_{over,over,div,mul,minus}.
17923         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
17924         modulo instead of signed.
17925
17926 2010-01-20  DJ Delorie  <dj@redhat.com>
17927
17928         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
17929         (Fpa): Pass it
17930         (h8300_emit_stack_adjustment): Propogate it.
17931         (push): Pass it.
17932         (h8300_expand_prologue): Likewise.
17933         (h8300_expand_epilogue): Likewise.
17934
17935 2010-01-19  Michael Matz  <matz@suse.de>
17936
17937         PR tree-optimization/41783
17938         * tree-data-ref.c (toplevel): Include flags.h.
17939         (dump_data_dependence_relation):  Also dump the inputs if the
17940         result will be unknown.
17941         (split_constant_offset_1): Look through some conversions.
17942         * tree-predcom.c (determine_roots_comp): Restart a new chain if
17943         the offset from last element is too large.
17944         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
17945         (reassociate_to_the_same_stmt): Handle vector registers.
17946         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
17947         (e.g. conversions).
17948         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
17949         wide_prolog_niters argument, emit widening instructions.
17950         (vect_do_peeling_for_alignment): Adjust caller, use widened
17951         variant of the iteration cound.
17952         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
17953
17954 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17955
17956         PR target/38697
17957         * config/arm/neon-testgen.m (emit_automatics): New parameter
17958         features. Adjust for Fixed_return_reg feature.
17959         (test_intrinsic): Call emit_automatics with new feature.
17960         * config/arm/neon.ml: Update copyright years.
17961         (features): New Fixed_return_reg feature.
17962         (ops): Update feature for Vget_low.
17963
17964 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
17965
17966         PR tree-optimization/42719
17967         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
17968         stmt uses.
17969
17970         PR debug/42728
17971         * fwprop.c (all_uses_available_at): Return false if def_set dest
17972         is a REG that is used in def_insn.
17973
17974 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
17975
17976         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
17977
17978         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
17979         Add argument names.
17980
17981         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
17982
17983         * target.h (struct gcc_target) <secondary_reload>: Change type
17984         of last argument to secondary_reload_info *.
17985
17986 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
17987
17988         PR target/42774
17989         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
17990         memory references with unaligned offsets.  Remove CQImode handling.
17991         (unaligned_memory_operand): Return 1 for memory references with
17992         unaligned offsets.  Remove CQImode handling.
17993
17994 2010-01-18  Richard Guenther  <rguenther@suse.de>
17995
17996         PR middle-end/39954
17997         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
17998         builtin calls.
17999
18000 2010-01-18  Richard Guenther  <rguenther@suse.de>
18001
18002         PR tree-optimization/42781
18003         * tree-ssa-structalias.c (find_what_var_points_to): Skip
18004         restrict processing only if the original variable was artificial.
18005
18006 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
18007
18008         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
18009         find number of popped argument bytes.
18010
18011         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
18012         Fix the text that describes the return value for invalid insns.
18013
18014         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
18015
18016         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
18017         Clarify what 'cost of the -dependence' is.  Fix quoting.
18018
18019         * toplev.c (default_get_pch_validity): Rename argument to "sz".
18020         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
18021
18022 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
18023
18024         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
18025         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
18026
18027 2010-01-17  Richard Guenther  <rguenther@suse.de>
18028
18029         PR middle-end/42248
18030         * function.c (split_complex_args): Take a VEC to modify.
18031         (assign_parms_augmented_arg_list): Build a VEC instead of
18032         a chain of PARM_DECLs.
18033         (assign_parms_unsplit_complex): Take a VEC of arguments.
18034         Do not fixup unmodified parms.
18035         (assign_parms): Deal with the VEC.
18036         (gimplify_parameters): Likewise.
18037
18038 2010-01-17  Richard Guenther  <rguenther@suse.de>
18039
18040         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
18041         node existence check.
18042         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
18043         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
18044         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18045         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
18046         (gimple_execute_on_growing_pred): Likewise.
18047
18048 2010-01-17  Richard Guenther  <rguenther@suse.de>
18049
18050         PR tree-optimization/42773
18051         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
18052         (compute_antic_aux): Likewise.
18053         (compute_partial_antic_aux): Likewise.
18054
18055 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
18056
18057         PR debug/42767
18058         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
18059         and US_TRUNCATE.
18060
18061 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
18062
18063         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
18064         appearance.
18065
18066         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
18067         Fix markup for strict argument.
18068
18069         (TARGET_SCHED_REORDER2): Fix argument types.
18070
18071         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
18072         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
18073
18074         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
18075         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
18076
18077         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
18078         Add argument name.
18079
18080         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
18081         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
18082         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
18083         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
18084         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
18085
18086         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
18087
18088         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
18089
18090         (TARGET_ASM_RELOC_RW_MASK): Add return type.
18091         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
18092
18093         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
18094
18095         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
18096         Use prototype.
18097
18098         (TARGET_ASM_NAMED_SECTION): Fix argument list.
18099
18100         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
18101         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
18102
18103         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
18104
18105         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
18106
18107         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
18108         referring to it.  Fix language.
18109
18110         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
18111
18112         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
18113
18114         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
18115
18116         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
18117
18118         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
18119         '@var{stream}.  Remove stray 'and'.
18120
18121         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
18122
18123         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
18124
18125         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
18126
18127         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
18128         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
18129
18130         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
18131         Fix description of return value.
18132         Rename argument "sz" to "len."
18133
18134         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
18135         Clarify meaning of 'true' return value.
18136
18137         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
18138
18139         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
18140         rep_mode versus mode_rep.
18141
18142         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
18143
18144         (TARGET_BUILTIN_DECL): Fix name.
18145
18146         (TARGET_COMMUTATIVE_P): Fix type of first argument.
18147
18148         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
18149
18150         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
18151
18152         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
18153
18154         (TARGET_RELAXED_ORDERING): Use @deftypevr.
18155
18156         (TARGET_GET_DRAP_RTX): Note that this is a hook.
18157         Clarify language.
18158
18159         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
18160         Rename argument tm_fn to md_fn.
18161
18162         (TARGET_OPTION_PRINT): Fix argument list.
18163
18164 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
18165
18166         PR target/42664
18167         * config/i386/i386.c (ix86_fixup_binary_operands):
18168         Revert FMA4 fixup of operands.
18169
18170 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18171
18172         PR gcc/42525
18173         * Makefile.in (write_entries_to_file, install-plugin):
18174         Use \012 instead of \n with tr.
18175
18176 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
18177
18178         * configure.ac (HAVE_AS_REF): New C macro.
18179         * configure: Regenerate.
18180         * config.in: Likewise.
18181         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
18182         if HAVE_AS_REF.
18183         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
18184         if HAVE_AS_REF.
18185
18186 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
18187
18188         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
18189
18190         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
18191
18192         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
18193
18194         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
18195
18196         (TARGET_IN_SMALL_DATA_P): Fix argument type.
18197
18198         (TARGET_BINDS_LOCAL_P): Fix argument type.
18199
18200         (TARGET_ASM_FILE_END): Use prototype.
18201
18202         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
18203
18204         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
18205
18206         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
18207
18208         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
18209
18210         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
18211         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
18212
18213         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
18214         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
18215
18216         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
18217         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
18218         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
18219         (TARGET_ADDR_SPACE_CONVERT): Likewise.
18220
18221         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
18222
18223         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
18224
18225         (TARGET_INIT_BUILTINS): Use prototype.
18226
18227         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
18228         Put 'const char *' in braces.  Fix parameter types.
18229         (TARGET_INVALID_CONVERSION): Fix parameter types.
18230         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
18231         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
18232
18233         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
18234         Fix argument type.
18235
18236         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
18237
18238         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
18239
18240 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
18241
18242         * doc/tm.texi (TARGET_HELP): Fix return type.
18243
18244         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
18245         in braces.  Fix argument types.
18246
18247         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
18248
18249         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
18250
18251         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
18252
18253         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
18254         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
18255
18256         (TARGET_MANGLE_TYPE): Fix argument types.
18257
18258         (TARGET_IRA_COVER_CLASSES): Use prototype.
18259
18260         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
18261
18262         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
18263
18264         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
18265
18266         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
18267
18268         (TARGET_CALLEE_COPIES): Fix argument types.
18269
18270         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
18271
18272         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
18273
18274         (TARGET_FUNCTION_VALUE): Fix argument types.
18275
18276         (TARGET_RETURN_IN_MSB): Fix argument type.
18277
18278         (TARGET_RETURN_IN_MEMORY): Fix argument types.
18279
18280         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
18281
18282         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
18283
18284         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
18285         agree with return type.
18286
18287         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
18288
18289 2010-01-15  Jing Yu  <jingyu@google.com>
18290
18291         PR rtl-optimization/42691
18292         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
18293         a pseudo to a constant and are merged, and adjust comments.
18294
18295 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
18296
18297         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
18298
18299 2010-01-15  Richard Guenther  <rguenther@suse.de>
18300
18301         PR middle-end/42739
18302         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
18303         labels of computed or non-local gotos to the destination.
18304         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
18305         landing pad label is the first label.
18306
18307 2010-01-15  Richard Guenther  <rguenther@suse.de>
18308
18309         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
18310
18311 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18312
18313         PR target/42747
18314         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
18315         to allow generation of the xssqrtdp instruction on power7.
18316         (sqrtdf2_fpr): Ditto.
18317
18318 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18319
18320         PR middle-end/42674
18321         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
18322         functions with noreturn attribute.
18323
18324         PR c++/42608
18325         * varasm.c (declare_weak): Add weak attribute to decl if it
18326         doesn't have one already.
18327         (assemble_external): Only add decls to weak_decls if they also
18328         have weak attribute.
18329
18330 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
18331
18332         * var-tracking.c (var_reg_delete): Don't delete the association
18333         between REGs and values or one-part variables if the register
18334         isn't clobbered.
18335
18336 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18337
18338         PR debug/42657
18339         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
18340         because its first operand is a non-localized variable.
18341
18342 2010-01-14  Martin Jambor  <mjambor@suse.cz>
18343
18344         PR tree-optimization/42706
18345         * tree-sra.c (encountered_recursive_call): New variable.
18346         (encountered_unchangable_recursive_call): Likewise.
18347         (sra_initialize): Initialize both new variables.
18348         (callsite_has_enough_arguments_p): New function.
18349         (scan_function): Call decl and flags check only for IPA-SRA, check
18350         whether there is a recursive call and whether it has enough arguments.
18351         (all_callers_have_enough_arguments_p): New function.
18352         (convert_callers): Look for recursive calls only when
18353         encountered_recursive_call is set.
18354         (ipa_early_sra): Bail out either if
18355         !all_callers_have_enough_arguments_p or
18356         encountered_unchangable_recursive_call.
18357
18358 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18359
18360         * sel-sched.c: Add 2010 to copyright years.
18361         * sel-sched-ir.c: Likewise.
18362         * sel-sched-ir.h: Likewise.
18363
18364 2010-01-14  Martin Jambor  <mjambor@suse.cz>
18365
18366         PR tree-optimization/42714
18367         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
18368         constructors specially.
18369
18370 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18371
18372         * config/i386/drivers-i386.c (detect_caches_intel):
18373         Add l2sizekb parameter and fill in.
18374         (host_detect_local_cpu): Add l2sizekb, fill in.
18375         Add Atom small cache heuristic.
18376
18377 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18378
18379         * config/i386/drivers-i386.c (detect_caches_cpuid4):
18380         Add level3 parameter and fill in.
18381         (detect_caches_intel): Handle level3 cache.
18382
18383 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18384
18385         * config/i386/drivers-i386.c (host_detect_local_cpu):
18386         Fix core duo detection.
18387
18388 2010-01-14  Andi Kleen  <ak@linux.intel.com>
18389
18390         * config/i386/drivers-i386.c (host_detect_local_cpu):
18391         Fix Atom detection.
18392
18393 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18394
18395         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
18396         (rs6000_variable_issue_1): this.  Use...
18397         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
18398
18399 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18400
18401         * sel-sched-ir.c (sel_restore_other_notes): Rename to
18402         sel_restore_notes.  Update all callers.  Call reemit_notes
18403         for all insns.
18404
18405 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18406
18407         PR rtl-optimization/42246
18408         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
18409         loops.
18410
18411 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18412
18413         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
18414         all successors is the same as number of successors in current region.
18415
18416 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18417
18418         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
18419         to rename is not separable.  Otherwise check that its LHS is not NULL.
18420
18421 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18422
18423         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
18424
18425 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18426
18427         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
18428         available registers when failed to discover LHS register class.
18429         Fix indentation.  Update comment.
18430
18431 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18432             Alexander Monakov  <amonakov@ispras.ru>
18433
18434         PR rtl-optimization/42389
18435         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
18436         to can_issue_more.
18437         (advance_state_on_fence): Likewise.
18438         (sel_target_adjust_priority): Print debug output only when
18439         sched_verbose >= 4, not 2.
18440         (get_expr_cost): Do not issue all unique insns on the next cycle.
18441         (fill_insns): Initialize can_issue_more from the value saved
18442         with the fence.
18443         * sel-sched-ir.c (flist_add): New parameter issue_more.
18444         Init FENCE_ISSUE_MORE with it.
18445         (merge_fences): Likewise.
18446         (init_fences): Update call to flist_add.
18447         (add_to_fences, add_clean_fence_to_fences)
18448         (add_dirty_fence_to_fences): Likewise.
18449         (move_fence_to_fences): Update call to merge_fences.
18450         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
18451         sched groups.
18452         * sel-sched-ir.h (struct _fence): New field issue_more.
18453         (FENCE_ISSUE_MORE): New accessor macro.
18454
18455 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18456
18457         PR rtl-optimization/42388
18458         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
18459         that have no predecessors nor successors.  Do not call move_bb_info
18460         for empty blocks outside of current region.
18461
18462 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18463
18464         PR rtl-optimization/42294
18465         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
18466         * sel-sched.c (move_exprs_to_boundary): Transitively add all
18467         originators' originators.
18468
18469 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
18470
18471         PR rtl-optimization/39453
18472         PR rtl-optimization/42246
18473         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
18474         for pipelining_p.
18475         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
18476
18477 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18478             Alexander Monakov  <amonakov@ispras.ru>
18479
18480         PR middle-end/42245
18481         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
18482         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
18483         argument.  Update all callers.
18484         (tidy_control_flow): ... and here.  Recompute topological order
18485         of basic blocks in region if necessary.
18486         (sel_redirect_edge_and_branch): Change return type.  Return true
18487         if topological order might have been invalidated.
18488         (purge_empty_blocks): Export and move from...
18489         * sel-sched.c (purge_empty_blocks): ... here.
18490         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
18491         (maybe_tidy_empty_bb): Delete prototype.
18492         (purge_empty_blocks): Declare.
18493
18494 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
18495
18496         PR rtl-optimization/42249
18497         * sel-sched.c (try_replace_dest_reg): When chosen register
18498         and original register is the same, do not bail out early, but
18499         still check all original insns for validity of replacing destination
18500         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
18501         in this case.
18502
18503 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
18504
18505         PR c/42721
18506         Port from no-undefined-overflow branch:
18507         2009-03-09  Richard Guenther  <rguenther@suse.de>
18508
18509         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
18510
18511 2010-01-14  Richard Guenther  <rguenther@suse.de>
18512
18513         PR lto/42665
18514         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
18515
18516 2010-01-14  Ira Rosen  <irar@il.ibm.com>
18517
18518         PR tree-optimization/42709
18519         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
18520         as scalar type in creation of constant vector operand.
18521
18522 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18523
18524         PR testsuite/42414
18525         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
18526         (check-parallel-%): Match `testsuite' directory component only
18527         at the end.
18528
18529 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
18530
18531         PR translation/39521
18532         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
18533         strings with _().
18534
18535 2010-01-13  Richard Guenther  <rguenther@suse.de>
18536
18537         PR tree-optimization/42730
18538         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
18539         offset zero.
18540
18541 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
18542
18543         PR target/pr42542
18544         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
18545         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
18546         them signed.
18547
18548 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
18549
18550         * config/bfin/libgcc-bfin.ver: Regenerate based on current
18551         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
18552         ___umulsi3_highpart.
18553
18554         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
18555         rather than schedule_insns if the pass is enabled.
18556
18557 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18558
18559         PR tree-optimization/42704
18560         * tree-sra.c (sra_modify_assign): Do not delete assignments to
18561         SSA_NAMEs.
18562
18563 2010-01-13  Martin Jambor  <mjambor@suse.cz>
18564
18565         PR tree-optimization/42703
18566         * tree-sra.c (analyze_access_subtree): Check that we can build a
18567         reference to the original data within the aggregate.
18568
18569 2010-01-13  Richard Guenther  <rguenther@suse.de>
18570
18571         PR tree-optimization/42705
18572         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
18573
18574 2010-01-13  Richard Guenther  <rguenther@suse.de>
18575
18576         PR middle-end/42716
18577         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
18578
18579 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
18580
18581         PR debug/41371
18582         * var-tracking.c (values_to_unmark): New variable.
18583         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
18584         values_to_unmark vector.  Moved body to...
18585         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
18586         instead queue it into values_to_unmark vector.
18587         (vt_find_locations): Free values_to_unmark vector.
18588
18589 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
18590
18591         * config/s390/s390.c (override_options): Set
18592         default of max-pending-list-length to 256
18593
18594 2010-01-13  Richard Guenther  <rguenther@suse.de>
18595
18596         PR lto/42678
18597         * tree-pass.h (PROP_gimple_lcx): New.
18598         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
18599         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
18600         before the final cleanup_eh.
18601         (dump_properties): Dump PROP_gimple_lcx.
18602         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
18603         (tree_lower_complex_O0): Remove.
18604         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
18605         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
18606         tree_lower_complex, schedule TODO_update_ssa.
18607         * lto-streamer-out.c (output_function): Stream the functions
18608         properties.
18609         * lto-streamer-in.c (input_function): Likewise.
18610         (lto_read_body): Do not override them here.
18611
18612 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
18613
18614         PR c/42708
18615         * c-typeck.c (build_c_cast): Fold value cast to union type before
18616         wrapping it in a CONSTRUCTOR.
18617
18618 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18619
18620         PR rtl-optimization/42699
18621         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
18622         involved.
18623
18624 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18625
18626         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18627         SUBTARGET_WARN_UNUSED_SPEC): Move ...
18628         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
18629         SUBTARGET_WARN_UNUSED_SPEC): ... here
18630         * config/mips/iris5.h (LIBGCC_SPEC): Define.
18631
18632 2010-01-12  Julian Brown  <julian@codesourcery.com>
18633
18634         * config/arm/neon-schedgen.ml (Utils): Don't try to
18635         open missing module.
18636         (find_with_result): New.
18637
18638 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
18639
18640         PR debug/42662
18641         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
18642         sharing when canonicalizing ({lt,ge}u (plus a b) b).
18643
18644         PR tree-optimization/42645
18645         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
18646         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
18647         decl_map, set processing_debug_stmt to -1 and return name without
18648         any remapping.
18649
18650 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
18651
18652         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
18653         binutils version, and reword target configuration description.
18654
18655 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18656
18657         * config/avr/avr.h (LINKER_NAME): Remove.
18658
18659 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
18660
18661         PR target/42416
18662         * config/rs6000/rs6000.c (rs6000_override_options): On targets
18663         that support VSX, warn for -mno-altivec if vsx is not disabled,
18664         and disable vsx.
18665
18666 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
18667             Shujing Zhao  <pearly.zhao@oracle.com>
18668
18669         PR translation/42469
18670         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
18671         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
18672         character between option name and help text.
18673         * c.opt (imultilib): Likewise.
18674
18675 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
18676
18677         * lto-streamer-out.c (output_unreferenced_globals): Output static
18678         variables.
18679
18680 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
18681
18682         PR rtl-optimization/42621
18683         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
18684         optimizing for size.
18685         (duplicate_computed_gotos): Remove now-redundant check.
18686
18687 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
18688
18689         PR target/37454
18690         * configure.ac: Save and restore LDFLAGS and LIBS
18691         * configure: Regenerate.
18692
18693 2010-01-10  Richard Guenther  <rguenther@suse.de>
18694
18695         PR middle-end/42667
18696         * builtins.c (fold_builtin_strlen): Add type argument and
18697         convert the resulting length to it.
18698         (fold_builtin_1): Adjust.
18699
18700 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
18701
18702         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
18703         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
18704         1 insn.
18705         (num_insns_constant_wide): Adjust for that change.
18706
18707 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18708
18709         PR debug/42631
18710         * web.c (union_defs): Add used argument, to combine uses of
18711         uninitialized regs.
18712         (entry_register): Adjust type and tests of used argument.
18713         (web_main): Widen used for new use.  Pass it to union_defs.
18714         * df.h (union_defs): Adjust prototype.
18715
18716 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18717
18718         PR debug/42630
18719         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
18720         uses in new incoming argument.  Free body.
18721         (reset_debug_uses_in_loop): New.
18722         (analyze_insn_to_expand_var): Call the latter if the former found
18723         anything.  Fix whitespace.  Reject invalid dest overlaps before
18724         going through all insns in the loop.
18725
18726 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18727
18728         PR debug/42629
18729         * haifa-sched.c (dying_use_p): Debug insns don't count.
18730
18731 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18732
18733         PR middle-end/42363
18734         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
18735         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
18736         (verify_gimple_call): Reject LHS in noreturn calls.
18737
18738 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18739
18740         PR debug/42604
18741         PR debug/42395
18742         * tree-vect-loop-manip.c (adjust_info): New type.
18743         (adjust_vec): New pointer to vector.
18744         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
18745         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
18746         (slpeel_update_phis_for_duplicate_loop): Use them.
18747         (slpeel_update_phi_nodes_for_guard1): Likewise.
18748         (slpeel_update_phi_nodes_for_guard2): Likewise.
18749         (slpeel_tree_peel_loop_to_edge): Likewise.
18750         (vect_update_ivs_after_vectorizer): Likewise.
18751
18752 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18753
18754         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
18755         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
18756
18757 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
18758
18759         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
18760         bogus uninitialized warning.
18761
18762 2010-01-09  Richard Guenther  <rguenther@suse.de>
18763
18764         PR middle-end/42512
18765         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
18766         the evolution is compatible with the initial condition.
18767
18768 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
18769
18770         * gcc.c (process_command): Update copyright notice dates.
18771         * gcov.c (print_version): Likewise.
18772         * gcov-dump.c (print_version): Likewise.
18773         * mips-tfile.c (main): Likewise.
18774         * mips-tdump.c (main): Likewise.
18775
18776 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
18777
18778         PR target/41885
18779         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
18780         (rotlhi3): Delete.
18781         (rotlhi3_8): Delete.
18782         (rotlsi3): Delete.
18783         (rotlsi3_8): Delete.
18784         (rotlsi3_16): Delete.
18785         (rotlsi3_24): Delete.
18786         (rotl<mode>3): New.
18787         (*rotw<mode>3): New.
18788         (*rotb<mode>3): New.
18789         * config/avr/avr.c (avr_rotate_bytes): New function.
18790         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
18791
18792 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
18793
18794         PR target/37454
18795         * configure.ac: Modify -rdynamic check.
18796         * configure: Regenerate.
18797
18798 2010-01-08  DJ Delorie  <dj@redhat.com>
18799
18800         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
18801         register popping order.
18802
18803 2010-01-08  Richard Guenther  <rguenther@suse.de>
18804
18805         PR lto/42528
18806         * c.opt (fsigned-char): Also let LTO handle this option.
18807         (funsigned-char): Likewise.
18808
18809 2010-01-07  Richard Guenther  <rguenther@suse.de>
18810
18811         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
18812         (gimple_op): Likewise.
18813         (gimple_op_ptr): Likewise.
18814         (gimple_assign_set_lhs): Remove gcc_assert.
18815         (gimple_assign_set_rhs1): Likewise.
18816         (gimple_assign_set_rhs2): Likewise.
18817         (gimple_call_set_lhs): Likewise.
18818         (gimple_call_set_fn): Likewise.
18819         (gimple_call_set_fndecl): Likewise.
18820         (gimple_call_fndecl): Likewise.
18821         (gimple_call_return_type): Likewise.
18822         (gimple_call_set_chain): Likewise.
18823         (gimple_call_num_args): Likewise.
18824         (gimple_call_set_arg): Likewise.
18825         (gimple_cond_set_code): Likewise.
18826         (gimple_cond_set_lhs): Likewise.
18827         (gimple_cond_set_rhs): Likewise.
18828         (gimple_cond_set_true_label): Likewise.
18829         (gimple_cond_set_false_label): Likewise.
18830         (gimple_label_set_label): Likewise.
18831         (gimple_goto_set_dest): Likewise.
18832         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
18833         (gimple_debug_bind_get_value): Likewise.
18834         (gimple_debug_bind_get_value_ptr): Likewise.
18835         (gimple_debug_bind_set_var): Likewise.
18836         (gimple_debug_bind_set_value): Likewise.
18837         (gimple_debug_bind_reset_value): Likewise.
18838         (gimple_debug_bind_has_value_p): Likewise.
18839         (gimple_return_retval_ptr): Remove gcc_assert.
18840         (gimple_return_retval): Likewise.
18841         (gimple_return_set_retval): Likewise.
18842         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
18843         (safe_referenced_var_iterator): Remove.
18844         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
18845         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
18846         (fill_referenced_var_vec): Remove.
18847         (first_readonly_imm_use): Remove redundant gcc_assert.
18848         (phi_arg_index_from_use): Combine gcc_asserts.
18849         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
18850         (first_imm_use_stmt): Remove redundant gcc_assert.
18851         * tree-cfg.c (verify_gimple_call): Verify function and chain
18852         operands.  Verify arguments.
18853         (verify_types_in_gimple_stmt): Verify condition code and labels.
18854
18855 2010-01-07  Richard Guenther  <rguenther@suse.de>
18856
18857         PR tree-optimization/42641
18858         * sese.c (rename_map_elt_info): Use the SSA name version, do
18859         not hash pointers.
18860
18861 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
18862
18863         PR tree-optimization/42625
18864         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
18865         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
18866
18867 2010-01-07  Duncan Sands  <baldrick@free.fr>
18868
18869         * Makefile.in (PLUGIN_HEADERS): Add version.h.
18870
18871 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
18872
18873         PR target/42511
18874         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
18875         note itself is not function_invariant_p.
18876
18877 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
18878
18879         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
18880         Do not add the DF_NOTE problem.
18881         * store-motion.c (execute_rtl_store_motion): Likewise.
18882
18883 2010-01-07  Martin Jambor  <mjambor@suse.cz>
18884
18885         PR tree-optimization/42157
18886         * tree-sra.c (compare_access_positions): Stabilize sort if both
18887         accesses have integer types, return zero immediately if they are the
18888         same.
18889
18890 2010-01-06  Richard Henderson  <rth@redhat.com>
18891
18892         PR middle-end/41883
18893         * haifa-sched.c (add_to_note_list): Merge into ...
18894         (concat_note_lists): ... here, and ...
18895         (unlink_other_notes, rm_other_notes): Merge into...
18896         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
18897         NOTE_INSN_EPILOGUE_BEG.
18898
18899 2010-01-06  Richard Guenther  <rguenther@suse.de>
18900
18901         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
18902         not inline regular functions into always-inline functions.
18903
18904 2010-01-06  Nick Clifton  <nickc@redhat.com>
18905
18906         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
18907         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
18908         used together.
18909         (OVERRIDE_OPTIONS): Delete.
18910         (OPTIMIZATION_OPTIONS): Define.
18911         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
18912         * config/rx/rx.c (rx_handle_option): Issue an error message if
18913         -mcpu=rx200 and -fpu are used together.
18914         (rx_set_optimization_options): New function.  Issue an error
18915         message if an optimization attribute attempts to reset the FPU/
18916         math optimization pairing.
18917         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
18918         * config/rx/rx.opt: Set the default to 32-bit doubles.
18919         * config/rx/t-rx: Add multilibs for -nofpu option.
18920         * doc/invoke.texi: Update documentation of RX options.
18921
18922 2010-01-06  Richard Guenther  <rguenther@suse.de>
18923
18924         * tree-ssa-pre.c (name_to_id): New global.
18925         (alloc_expression_id): Simplify SSA name handling.
18926         (lookup_expression_id): Likewise.
18927         (init_pre): Zero name_to_id.
18928         (fini_pre): Free it.
18929
18930 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
18931
18932         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
18933
18934 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
18935
18936         PR target/42542
18937         * config/i386/sse.md (smaxv2di3): New.
18938         (umaxv2di3): Likewise.
18939         (sminv2di3): Likewise.
18940         (uminv2di3): Likewise.
18941
18942 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
18943
18944         PR target/42564
18945         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
18946         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
18947         (legitimize_tls_address): Likewise.
18948         (sparc_tls_referenced_p): Likewise.
18949         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
18950         and adjust calls to legitimize_pic_address.
18951         (legitimate_constant_p) Use sparc_tls_referenced_p.
18952         (legitimate_pic_operand_p): Likewise.
18953         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
18954         (sparc_tls_symbol_ref_1): Delete.
18955         (sparc_tls_referenced_p): Make static, recognize specific patterns.
18956         (legitimize_tls_address): Make static, handle CONST patterns.
18957         (legitimize_pic_address): Make static, remove unused parameter and
18958         adjust recursive calls.
18959         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
18960         and adjust call to legitimize_pic_address.
18961         (sparc_output_mi_thunk): Likewise.
18962
18963 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
18964             H.J. Lu  <hongjiu.lu@intel.com>
18965
18966         PR target/42542
18967         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
18968         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
18969         operands to make them signed.
18970
18971         Revert:
18972         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
18973
18974         PR target/42542
18975         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
18976         GTU to GT for V4SI and V2DI.
18977
18978         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
18979         (umin<mode>3): Removed.
18980         (uminv8hi3): New.
18981         (uminv4si3): Likewise.
18982
18983 2010-01-05  Martin Jambor  <mjambor@suse.cz>
18984
18985         PR tree-optimization/42462
18986         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
18987         current_function_decl to helper functions and macros.
18988
18989 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18990
18991         PR bootstrap/41771
18992         * flags.h: Don't include real.h.
18993         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
18994         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
18995         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
18996         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
18997         * dominance.c: Update copyright.
18998         * gimple.c (walk_gimple_op): Remove inline.
18999         * tree-ssa-reassoc.c: Include real.h.
19000         * Makefile.in (FLAGS_H): Remove $(REAL_H).
19001         (tree-ssa-reassoc.o): Depend on $(REAL_H).
19002
19003 2010-01-05  Nick Clifton  <nickc@redhat.com>
19004
19005         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
19006         register to push into the stack frame when the accumulator has to
19007         be saved during interrupts.
19008
19009 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
19010
19011         * doc/invoke.texi: Remove the documentation about option
19012         -Wunreachable-code.
19013         * common.opt (Wunreachable-code):  Preserved for backward
19014         compatibility.
19015         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
19016         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
19017         the backward compatibility flag section.
19018
19019 2010-01-05  Richard Guenther  <rguenther@suse.de>
19020
19021         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
19022
19023 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
19024
19025         PR other/42611
19026         * cfgexpand.c (expand_one_var): Diagnose too large variables.
19027
19028         PR tree-optimization/42508
19029         * tree-sra.c (convert_callers): Check for recursive call
19030         by comparing cgraph nodes instead of decls.
19031         (modify_function): Call ipa_modify_formal_parameters also
19032         on all same_body aliases.
19033
19034         * cgraphunit.c (cgraph_materialize_all_clones): Compare
19035         cgraph nodes when checking for same_body aliases.
19036
19037 2010-01-05  Richard Guenther  <rguenther@suse.de>
19038
19039         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
19040         allocation and lookup.
19041         (get_or_alloc_expr_for_constant): Likewise.
19042         (phi_translate): Sink allocation.
19043
19044 2010-01-04  Richard Guenther  <rguenther@suse.de>
19045
19046         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
19047         a new entry only if needed.
19048         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
19049         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
19050         hashtable lookup.
19051         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
19052         the result array.
19053         (phi_translate): Handle CONSTANTs early.
19054
19055 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19056
19057         PR tree-optimization/42398
19058         * tree-sra.c (struct access): Removed flag grp_different_types.
19059         (dump_access): Do not dump the removed flag.
19060         (sort_and_splice_var_accesses): Do not set the removed flag.
19061         (sra_modify_expr): Check for type compatibility directly.
19062
19063 2010-01-04  Martin Jambor  <mjambor@suse.cz>
19064
19065         PR tree-optimization/42366
19066         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
19067         edges with variable number of parameters.
19068         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
19069         flag instead of asserting it.
19070         (ipa_read_node_info): Read uses_analysis_done flag.
19071
19072 2010-01-04  Richard Guenther  <rguenther@suse.de>
19073
19074         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
19075         iterative_hash_* as intended.
19076         (vn_reference_compute_hash): Likewise.  Simplify hashing
19077         SSA names.
19078         (vn_reference_lookup_2): Likewise.
19079         (vn_nary_op_compute_hash): Likewise.
19080         (vn_phi_compute_hash): Likewise.
19081         (expressions_equal_p): Remove strange code.
19082         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
19083         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
19084         (bitmap_insert_into_set_1): Take value-id as parameter.
19085         (add_to_value): Pass it.
19086         (bitmap_insert_into_set): Likewise.
19087         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
19088
19089 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
19090
19091         PR driver/42442
19092         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
19093         (do_self_spec): For switches with SWITCH_IGNORE set set also
19094         SWITCH_IGNORE_PERMANENTLY.
19095         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
19096         of SWITCH_IGNORE.
19097
19098 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
19099
19100         * lto-streamer-out.c (output_unreferenced_globals): Output the full
19101         tree of an unreferenced global var.
19102
19103 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19104
19105         PR target/42542
19106         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
19107         GTU to GT for V4SI and V2DI.
19108
19109         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
19110         (umin<mode>3): Removed.
19111         (uminv8hi3): New.
19112         (uminv4si3): Likewise.
19113
19114 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
19115
19116         PR lto/42581
19117         * collect2.c (main): Turn on trace in collect2 if -v is passed
19118         to gcc with LTO.
19119
19120 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
19121
19122         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
19123         description of expression operand.
19124
19125 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
19126
19127         * configure.ac: Add install-html to target_list for Make-hooks.
19128         * configure: Regenerate.
19129         * fortran/Make-lang.in (F95_HTMLFILES): New.
19130         (fortran.html): Use it.
19131         (fortran.install-html): New.
19132         * Makefile.in (install-html): Add lang.install-html.
19133         * java/Make-lang.in (JAVA_HTMLFILES): New.
19134         (java.html): Use it.
19135         (java.install-html): New.
19136         * objc/Make-lang.in (objc.install-html): New.
19137         * objcp/Make-lang.in (obj-c++.install-html): New.
19138         * cp/Make-lang.in (c++.install-html): New.
19139         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
19140         * lto/Make-lang.in (lto.install-html): New.
19141
19142 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19143
19144         PR lto/42520
19145         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
19146
19147 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19148
19149         PR rtl-optimization/41862
19150         * store-motion.c (store_killed_in_insn, compute_store_table,
19151         remove_reachable_equiv_notes, replace_store_insn,
19152         build_store_vectors): Ignore all DEBUG_INSNs.
19153
19154 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
19155
19156         PR lto/41564
19157         * common.opt: Add dumpdir.
19158
19159         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
19160         isn't specified.
19161         (option_map): Add --dumpdir.
19162
19163         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
19164
19165         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
19166
19167         * opts.c (decode_options): Try dump_dir_name first if
19168         dump_base_name isn't an absolute path.
19169         (common_handle_option): Handle OPT_dumpdir.
19170
19171         * toplev.c (dump_dir_name): New.
19172         (print_switch_values): Also ignore -dumpdir.
19173
19174         * toplev.h (dump_dir_name): New.
19175
19176 2010-01-03  Richard Guenther  <rguenther@suse.de>
19177
19178         PR tree-optimization/42589
19179         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
19180         double-word expansion of bswap32.
19181
19182 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
19183
19184         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
19185         with BLOCK_FOR_INSN.
19186         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
19187         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
19188         noce_process_if_block): Likewise.
19189         * gcse.c (compute_local_properties, insert_expr_in_table,
19190         insert_set_in_table, canon_list_insert, find_avail_set,
19191         pre_insert_copy_insn): Likewise.
19192
19193         * basic-block.h (BLOCK_NUM): Move from here...
19194         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
19195
19196 2010-01-03  Richard Guenther  <rguenther@suse.de>
19197
19198         PR tree-optimization/42438
19199         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
19200         contains_may_not_return_call flag.
19201         (BB_MAY_NOTRETURN): New.
19202         (valid_in_sets): Trapping nary operations are not valid
19203         in blocks that may not return.
19204         (insert_into_preds_of_block): Remove check for trapping expressions.
19205         (compute_avail): Compute also BB_MAY_NOTRETURN.
19206
19207 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
19208
19209         * doc/invoke.texi: Add 2010 to copyright years.
19210
19211 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
19212
19213         * config/sparc/sparc.c: Fix formatting nits.
19214
19215 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
19216             Alexander Monakov  <amonakov@ispras.ru>
19217
19218         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
19219
19220 2010-01-02  Richard Guenther  <rguenther@suse.de>
19221
19222         PR middle-end/42577
19223         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
19224         (simplify_switch_using_ranges): Mark to be removed edges
19225         as non-executable.
19226
19227 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19228
19229         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
19230
19231         * collect2.c (scan_libraries): Add missing argument in call to
19232         scan_prog_file.
19233
19234 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
19235
19236         PR target/42448
19237         * config/alpha/predicates.md (aligned_memory_operand): Return false
19238         for CQImode.
19239         (unaligned_memory_operand): Return true for CQImode.
19240         * config/alpha/alpha.c (get_aligned_mem): Assert that location
19241         doesn not cross aligned SImode word boundary.
19242
19243 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
19244
19245         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
19246         Remove.
19247         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
19248         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
19249
19250 2010-01-02  Richard Guenther  <rguenther@suse.de>
19251
19252         PR lto/41597
19253         * toplev.c (compile_file): Emit LTO marker properly.  Change
19254         it to __gnu_lto_v1.
19255         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
19256
19257 2010-01-01  Richard Guenther  <rguenther@suse.de>
19258
19259         PR debug/42455
19260         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
19261
19262 2010-01-01  Richard Guenther  <rguenther@suse.de>
19263
19264         PR c/42570
19265         * c-decl.c (grokdeclarator): For zero-size arrays force
19266         structural equality checks as layout_type does.
19267
19268 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19269
19270         * builtins.c: Update copyright to 2010.
19271
19272 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
19273
19274         PR lto/42531
19275         * lto-streamer-out.c (produce_asm): Revert the last change.
19276         (copy_function): Likewise.
19277
19278         * lto-streamer.c (lto_get_section_name): Skip any leading
19279         asterisk in name.
19280
19281 2010-01-01  Richard Guenther  <rguenther@suse.de>
19282
19283         PR middle-end/42559
19284         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
19285         for LABEL_DECLs.
19286
19287 \f
19288 Copyright (C) 2010 Free Software Foundation, Inc.
19289
19290 Copying and distribution of this file, with or without modification,
19291 are permitted in any medium without royalty provided the copyright
19292 notice and this notice are preserved.