OSDN Git Service

2010-10-07 Robert Dewar <dewar@adacore.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-10-07  Jan Hubicka  <jh@suse.cz>
2
3         PR middle-end/45926
4         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
5
6 2010-10-07  Richard Guenther  <rguenther@suse.de>
7
8         PR bootstrap/45914
9         * configure.ac: Fix typo.
10         * configure: Regenerated.
11
12 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
13
14         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
15         define_builtin_std where it's unnecessary.
16         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
17
18 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
19
20         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
21         * doc/tm.texi.in: Regenerate.
22         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
23         * targhooks.c (default_class_likely_spilled_p): Don't use the 
24         CLASS_LIKELY_SPILLED_P macro.
25
26         * config\arm\arm.md: Update comment.
27
28 2010-10-06  Jan Hubicka  <jh@suse.cz>
29
30         * ipa.c (cgraph_remove_unreachable_nodes): External references can always
31         be removed.
32         (cgraph_externally_visible_p): We can not bring local comdats that are known
33         to linker; fix handling of internal visibility.
34         (function_and_variable_visibility): Likewise.
35
36 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
37
38         PR rtl-optimization/45394
39         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
40         (struct rtx_subst_pair): Remove AFTER field.
41         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
42         (propagate_for_debug): Remove MOVE parameter and adjust.
43         (try_combine): In the special case where I2 is a PARALLEL, combine only
44         destinations of SETs and set I2SRC to the I2 source.
45         Adjust calls to propagate_for_debug throughout.
46         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
47         insns.
48
49 2010-10-06  Olivier Hainque  <hainque@adacore.com>
50
51         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
52         switch on insn codes as sequence of ifs.
53
54 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
55
56         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
57         be UI_NONE for picochip.
58         (picochip_option_override): Do not disable exception flags.
59         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
60         Declare.
61
62 2010-10-06  Richard Guenther  <rguenther@suse.de>
63
64         * Makefile.in (regmove.o): Depend on $(TARGET_H).
65
66 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
67
68         Implemented fast enumeration for Objective-C.   
69         * c-parser.c (objc_could_be_foreach_context): New.
70         (c_lex_one_token): Recognize RID_IN keyword in a potential
71         Objective-C foreach context.
72         (c_parser_declaration_or_fndef): Added parameter.  Accept
73         Objective-C RID_IN keyword as terminating a declaration; in that
74         case, return the declaration in the new parameter.
75         (c_parser_extenral_declaration): Updated calls to
76         c_parser_declaration_or_fndef.
77         (c_parser_declaration_or_fndef): Same change.
78         (c_parser_compound_statement_nostart): Same change.
79         (c_parser_label): Same change.
80         (c_parser_objc_methodprotolist): Same change.
81         (c_parser_omp_for_loop): Same change.
82         (c_parser_for_statement): Detect and parse Objective-C foreach
83         statements.
84         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
85         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
86         fast enumeration parsing code to turn off the c99 error but still
87         perform checks on the loop declarations.
88         * c-tree.h (check_for_loop_decls): Updated declaration.
89         * doc/objc.texi: Document fast enumeration.
90         
91 2010-10-06  Nick Clifton  <nickc@redhat.com>
92
93         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by
94         one.
95         (MDR_REGNUM): Define.
96         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed
97         register.
98         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
99         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
100         (REGISTER_NAMES): Add MDR.
101         (DWARF2_DEBUGGING_INFO): Define to 1.
102         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
103         (F): New function.  Sets RTX_FRAME_RELATED_P.
104         (mn10300_gen_multiple_store): Use F.
105         (expand_prologue): Use F.  Use gen_movsf() to push floating
106         point registers.
107         (expand_epilogue): Use gen_movsf() to pop floating point
108         registers.
109         (mn10300_option_override): Disable combine stack adjust pass.
110
111 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
112
113         PR target/45901
114         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
115         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
116
117 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
118
119         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
120         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
121         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
122         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
123         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
124         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
125         BUILT_IN_TOUPPER): Mark as leaf.
126
127         PR middle-end/45838
128         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
129         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
130         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
131         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
132         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
133         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
134         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
135
136 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
137
138         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
139         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
140         (m68hc11_class_likely_spilled_p): New function.
141
142 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
143
144         * c-parser.c (c_parser_objc_method_definition): Updated comment.
145
146 2010-10-05  Jan Hubicka  <jh@suse.cz>
147
148         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
149         Document.
150         * opts.c (decode_options): Handle lto partitions.
151         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
152         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
153
154 2010-10-05  Jan Hubicka  <jh@suse.cz>
155
156         * cgraphunit.c (assemble_function): Output thunks and aliases before
157         the function itself.
158
159 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
160
161         * config/picochip/picochip.c (picochip_option_override): Disable
162         exception flags for picochip.
163
164 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
165
166         * opts-common.c (handle_option, handle_generated_option,
167         read_cmdline_option, set_option): Add diagnostic_context
168         parameter.  Update calls among these functions.
169         (set_option): Don't use global_dc.
170         * opts.c (read_cmdline_options): Pass global_dc to
171         read_cmdline_option.
172         (decode_options): Pass global_dc to enable_warning_as_error.
173         (common_handle_option): Pass global_dc to enable_warning_as_error.
174         (enable_warning_as_error): Add diagnostic_context parameter.
175         Document parameters.  Don't use global_dc.  Pass
176         diagnostic_context parameter to handle_generated_option.
177         * opts.h (set_option, handle_option, handle_generated_option,
178         read_cmdline_option, enable_warning_as_error): Add
179         diagnostic_context parameter.
180         * Makefile.in (lto-opts.o): Update dependencies.
181         * coretypes.h (struct diagnostic_context, diagnostic_context):
182         Declare here.
183         * diagnostic.h (diagnostic_context): Don't declare typedef here.
184         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
185         * langhooks-def.h (struct diagnostic_context): Don't declare here.
186         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
187         using diagnostic_context typedef.
188         * langhooks.c (lhd_initialize_diagnostics): Declare using
189         diagnostic_context typedef.
190         * langhooks.h (struct diagnostic_context): Don't declare here.
191         (initialize_diagnostics, print_error_function): Declare using
192         diagnostic_context typedef.
193         * lto-opts.c: Include diagnostic.h.
194         (lto_reissue_options): Pass global_dc to set_option.  Pass
195         DK_UNSPECIFIED not 0.
196         * plugin.c (plugins_internal_error_function): Declare using
197         diagnostic_context typedef.
198         * plugin.h (struct diagnostic_context): Don't declare here.
199         (plugins_internal_error_function): Declare using
200         diagnostic_context typedef.
201
202 2010-10-05  Olivier Hainque  <hainque@adacore.com>
203             Nicolas Roche  <roche@adacore.com>
204
205         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
206         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
207
208 2010-10-05  Ira Rosen  <irar@il.ibm.com>
209
210         PR tree-optimization/45752
211         * tree-vect-slp.c (vect_get_mask_element): Remove static
212         variables, make them function arguments.
213         (vect_transform_slp_perm_load): Pass new arguments to
214         vect_get_mask_element.
215
216 2010-10-05  Richard Guenther  <rguenther@suse.de>
217
218         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
219         (gimple_mod_pow2): Likewise.
220         (gimple_mod_subtract): Likewise.
221         (gimple_ic): Likewise.
222         (gimple_stringop_fixed_value): Likewise.
223         * tree-profile.c (tree_init_edge_profiler): Mark profile
224         functions nothrow and leaf.
225         (add_abnormal_goto_call_edges): Remove.
226         (tree_gen_edge_profiler): Work on SSA form.
227         (tree_gen_ic_profiler): Likewise.  Simplify.
228         (do_tree_profiling): Update SSA form.
229         (pass_tree_profile): Remove.
230         (do_tree_profiling): Likewise.
231         (gate_tree_profile_ipa): New function.
232         (pass_ipa_tree_profile): New.
233         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
234         state of instrumented functions.
235         * passes.c (init_optimization_passes): Remove early non-SSA
236         inlining.  Move profiling after early optimizations.
237         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
238         (pass_ipa_early_inline): Likewise.
239         * tree-pass.h (pass_ipa_early_inline): Remove.
240         (pass_tree_profile): Likewise.
241         (pass_ipa_tree_profile): Declare.
242
243 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
244             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
245
246         * gcc/config/s390/s390.c (z196_cost): New.
247         (s390_handle_arch_option): Add -march=z196.
248         (s390_option_override): Use the new cost function and use the z10
249         defaults also for z196.
250         (legitimate_reload_constant_p): Adjust comment.
251         (legitimate_reload_fp_constant_p): New function.
252         (s390_preferred_reload_class): Distingiush between FP and Int constants.
253         (preferred_la_operand_p): Avoid la with index on z196.
254         (s390_adjust_priority): Trigger also for z196.
255         (s390_issue_rate): Issue rate for z196 is 3.
256         (s390_z10_fix_long_loop_prediction): Rename to ...
257         (s390_fix_long_loop_prediction): ... this.
258         (s390_reorg): Apply the z10 adjustments also for z196.
259         (s390_loop_unroll_adjust): Do this also for z196.
260         * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
261         (enum processor_flags): Add PF_Z196.
262         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
263         (TARGET_CPU_Z196, TARGET_Z196): New macros.
264         * gcc/config.gcc: Enable z196 for --with-arch.
265         * gcc/config/s390/2817.md: New file.
266         * gcc/config/s390/2084.md: New type for multiply and add.
267         * gcc/config/s390/2097.md: Likewise.
268         * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
269         (UNSPECV_ATOMIC_OP): New constants.
270         (fmadddf, fmaddsf): New values for type attribute.
271         (z196prop): New insn attribute.
272         (cpu, cpu_facility): Add z196.
273         (ATOMIC_Z196): New code iterator.
274         (noxa): New code attribute.
275         (gk): New mode attribute.
276         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
277         Support load zero for fp constants.
278         (fixuns_truncdddi2, fixuns_trunctddi2)
279         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
280         for z196.
281         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
282         (popcounthi2, popcountqi2): New expander.
283         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
284         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
285         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
286         insn definition.
287         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
288         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
289         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc, *sub<mode>3)
290         (*sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly, *sub<mode>3_cc)
291         (*sub<mode>3_cc2, *sub<mode>3_cconly, *sub<mode>3_cconly2)
292         (*anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc, *andsi3_cconly)
293         (*andsi3_zarch, *andsi3_esa, *andhi3_zarch, *andqi3_zarch, *iordi3_cc)
294         (*iordi3_cconly, *iordi3, *iorsi3_cc, *iorsi3_cconly, *iorsi3_zarch)
295         (*iorhi3_zarch, *iorqi3_zarch, *xordi3_cc, *xordi3_cconly, *xordi3)
296         (*xorsi3_cc, *xorsi3_cconly, *xorsi3, *xorhi3, *xorqi3, *<shift><mode>3)
297         (*<shift><mode>3_and, *ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
298         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
299         Support new z196 instructions.
300
301 2010-10-05  Richard Guenther  <rguenther@suse.de>
302
303         PR middle-end/45877
304         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
305         case where gimplification optimizes away the stmt.
306
307 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
308
309         PR debug/45849
310         * var-tracking.c (strip_pointer_flags): New function.
311         (emit_note_insn_var_location): If rtx_equal_p check failed,
312         retry on locations simplified with simplify_replace_fn_rtx
313         and strip_pointer_flags as its callback.
314
315 2010-10-04  Jan Hubicka  <jh@suse.cz>
316
317         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
318         (can_refer_decl_in_current_unit_p): ... this one; reverse return
319         value; handle comdats too.
320         (canonicalize_constructor_val): Use it; handle function_decls
321         correctly.
322         (gimple_fold_obj_type_ref_known_binfo): Likewise.
323         * gimple.c (get_base_address): Accept all kinds of decls.
324
325 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
326
327         * flags.h (g_switch_value, g_switch_set): Remove.
328         * opts.c (g_switch_value, g_switch_set): Remove.
329         * config/g.opt (G): Add Var(g_switch_value).
330         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G
331         here.
332         (alpha_option_override): Check global_options_set.x_g_switch_value
333         instead of g_switch_set.
334         (alpha_in_small_data_p): Remove cast in comparison with
335         g_switch_value.
336         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
337         g_switch_value to unsigned HOST_WIDE_INT.
338         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
339         with g_switch_value.
340         (frv_handle_option): Don't handle -G here.
341         (frv_option_override): Check global_options_set.x_g_switch_value
342         instead of g_switch_set.  Don't modify g_switch_set.
343         (frv_in_small_data_p): Remove cast in comparison with
344         g_switch_value.
345         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
346         g_switch_value to unsigned HOST_WIDE_INT.
347         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
348         (ia64_option_override): Check global_options_set.x_g_switch_value
349         instead of g_switch_set.
350         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
351         Remove.
352         (lm32_in_small_data_p): Remove cast in comparison with
353         g_switch_value.
354         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
355         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
356         HOST_WIDE_INT.
357         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
358         (m32r_init): Check global_options_set.x_g_switch_value instead of
359         g_switch_set.
360         (m32r_in_small_data_p): Remove cast in comparison with
361         g_switch_value.
362         (m32r_file_start): Format g_switch_value with %d.
363         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
364         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned
365         HOST_WIDE_INT.
366         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
367         handle -G here.
368         (microblaze_option_override): Check
369         global_options_set.x_g_switch_value instead of g_switch_set.
370         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
371         (mips_option_override): Check global_options_set.x_g_switch_value
372         instead of g_switch_set.
373         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G
374         here.
375         (rs6000_file_start): Format g_switch_value with %d.
376         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
377         comparisons with g_switch_value.
378         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
379         global_options_set.x_g_switch_value instead of g_switch_set.
380         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
381         global_options_set.x_g_switch_value instead of g_switch_set.
382         * config/score/score.c (score_handle_option): Don't handle -G
383         here.
384         * config/score/score3.c (score3_option_override): Check
385         global_options_set.x_g_switch_value instead of g_switch_set.
386         * config/score/score7.c (score7_option_override): Check
387         global_options_set.x_g_switch_value instead of g_switch_set.
388
389 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
390
391         * common.opt (fira-coalesce): Remove.
392
393         * doc/invoke.texi (flag_ira_coalesce): Remove.
394
395         * ira-color.c (allocno_coalesced_p): Move before
396         copy_freq_compare_func.
397         processed_coalesced_allocno_bitmap): Ditto.
398         (update_conflict_hard_regno_costs): Don't use
399         ALLOCNO_FIRST_COALESCED_ALLOCNO.
400         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
401         (assign_hard_reg): Assume no coalesced allocnos.
402         (get_coalesced_allocnos_attributes): Remove.
403         (bucket_allocno_compare_func): Assume no coalesced allocnos.
404         (push_allocno_to_stack): Ditto.
405         (remove_allocno_from_bucket_and_push): Use
406         ira_print_expanded_allocno instead of print_coalesced_allocno.
407         (push_allocnos_to_stack): Assume uncoalesced allocnos.
408         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
409         all_conflicting_hard_regs.
410         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
411         (setup_allocno_left_conflicts_size): Ditto.
412         (put_allocno_into_bucket): Ditto.
413         (copy_freq_compare_func): Remove.
414         (copy_freq_compare_func, merge_allocnos): Move before
415         coalesced_pseudo_reg_freq_compare.
416         coalesced_allocno_conflict_p): Ditto.
417         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
418         parameter.  Assume it true.
419         (color_allocnos): Assume uncoalesced allocnos.  Use
420         ira_print_expanded_allocno instead of print_coalesced_allocno.
421         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
422         parameter.
423
424         * ira.c: Remove comment about coalescing.
425
426 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
427
428         * config/mips/mips.h (target_flags_explicit): Declare for
429         GENERATOR_FILE.
430
431 2010-10-04  Andi Kleen <ak@linux.intel.com>
432
433         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
434         gcov-dump, cc1-dummy, genprog, build/gcov-iov):
435         Add + to build rule.
436
437 2010-10-04  Matthias Klose  <doko@ubuntu.com>
438
439         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
440         multilib osdirname if it exists.
441         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
442
443 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
444
445         PR middle-end/45876
446         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
447         arg0's type or its unsigned counterpart as utype.  Convert
448         arg1 to utype unconditionally.
449
450 2010-10-04  Julian Brown  <julian@codesourcery.com>
451
452         * expr.c (expand_assignment): Add assertion to prevent emitting
453         null rtx for movmisalign pattern.
454         (expand_expr_real_1): Likewise.
455         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
456         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
457         (arm_vector_alignment_reachable): New.
458         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
459         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
460         (arm_print_operand): Include alignment qualifier in %A.
461         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
462         (movmisalign<mode>): New expander.
463         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
464         insn patterns.
465
466 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
467
468         * optc-gen.awk: Define global_options_set.  Don't define
469         target_flags_explicit.
470         * opth-gen.awk: Declare global_options_set.  Define
471         target_flags_explicit as macro.
472         * opts-common.c (handle_option): Take opts_set and generated_p
473         parameters.
474         (handle_generated_option, read_cmdline_option, set_option): Take
475         opts_set parameter.
476         (set_option): Use opts_set instead of hardcoding target_flags and
477         target_flags_explicit.
478         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
479         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
480         flag_value_profile_transformations_set, flag_peel_loops_set,
481         flag_branch_probabilities_set, flag_inline_functions_set,
482         flag_ipa_cp_set, flag_ipa_cp_clone_set,
483         flag_predictive_commoning_set, flag_unswitch_loops_set,
484         flag_gcse_after_reload_set): Remove.
485         (common_handle_option, lang_handle_option, target_handle_option):
486         Take opts_set parameter.  Assert that it is &global_options_set.
487         (common_handle_option): Don't set _set variables.  Check opts_set
488         instead of such variables.
489         (enable_warning_as_error): Pass &global_options_set to
490         handle_generated_option.
491         * opts.h (cl_option_handler_func.handler, set_option,
492         handle_option, handle_generated_option, read_cmdline_option): Add
493         opts_set parameters.
494         (handle_option): Add generated_p parameter.
495         * config/i386/i386.c (ix86_function_specific_save,
496         ix86_function_specific_restore): Updat for renaming of
497         target_flags_explicit field.
498         * config/i386/i386.opt (target_flags_explicit): Rename to
499         ix86_target_flags_explicit.
500         * config/ia64/ia64.c (ia64_override_options_after_change): Check
501         global_options_set.x_flag_selective_scheduling and
502         global_options_set.x_flag_selective_scheduling2, not
503         sel_sched_switch_set.
504         * flags.h (sel_sched_switch_set,
505         flag_speculative_prefetching_set): Remove.
506         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
507         that it is &global_options_set.
508         (process_command): Pass &global_options_set to
509         read_cmdline_option.
510         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
511         set_option.
512         * toplev.c (target_flags_explicit): Remove.
513
514 2010-10-04  Jan Hubicka  <jh@suse.cz>
515
516         PR middle-end/45871
517         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
518         use get_ref_base_and_offset to handle references.
519         (fold_const_aggregate_ref): Update.
520
521 2010-10-04  Martin Jambor  <mjambor@suse.cz>
522
523         PR tree-optimization/45572
524         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
525         ipa_check_create_node_params.
526         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
527
528 2010-10-04  Yao Qi  <yao@codesourcery.com>
529
530         * doc/passes.texi: Clean up.
531
532 2010-10-03  Ian Lance Taylor  <iant@google.com>
533
534         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
535         referring to a field using a typedef name.
536         (find_anonymous_field_with_type): New static function.
537         (convert_to_anonymous_field): New static function.
538         (convert_for_assignment): If -fplan9-extensions, permit converting
539         pointer to struct to pointer to anonymous field.
540         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
541         fields.
542         (is_duplicate_field): New static function.
543         (detect_field_duplicates_hash): If -fplan9-extensions, check for
544         typedef names duplicating field names.
545         (detect_field_duplicates): Likewise.
546         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
547         (C Dialect Options): Document -fplan9-extensions.
548         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
549
550 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
551
552         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
553         revision 164914.
554         (vect_create_data_ref_ptr): Likewise.
555         * tree-vect-stmts.c (vectorizable_store): Likewise.
556         (perm_mask_for_reverse): Likewise.
557         (reverse_vec_elements): Likewise.
558         (vectorizable_load): Likewise.
559
560 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
561
562         * cppbuiltin.c: New file.
563         * cppbuiltin.h: New file.
564         * Makefile.in: Take into account cppbuiltin.{h,c}.
565
566 2010-10-03  Andi Kleen <ak@linux.intel.com>
567
568         * lto-cgraph.c (input_cgraph): Check for missing sections.
569
570 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
571
572         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
573         to nonimmediate_operand.  Force operand 2 to register when allowed.
574         (*<shiftrt_insn><mode>3_mask): Ditto.
575         (*<rotate_insn><mode>3_mask): Ditto.
576
577 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
578
579         PR tree-optimization/45720
580         PR tree-optimization/45764
581         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
582         Don't accept backwards consecutive accesses.
583         (vect_create_data_ref_ptr): Disallow negative steps.
584
585         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
586         (perm_mask_for_reverse): Removed.
587         (reverse_vec_elements): Likewise.
588         (vectorizable_load): Don't handle negative steps.
589
590 2010-10-02  Jan Hubicka  <jh@suse.cz>
591
592         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
593         call destination is known.
594
595 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
596
597         PR target/45820
598         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
599         earlier.
600
601 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
602
603         * doc/install.texi (Configuration): Document build_configargs,
604         host_configargs, target_configargs.
605
606 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
607
608         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
609         (*<shiftrt_insn><mode>3_mask): Ditto.
610         (*<rotate_insn><mode>3_mask): Ditto.
611
612 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
613
614         PR tree-optimization/44716
615         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
616         (HOT_TEXT_SECTION_NAME): Define.
617
618 2010-10-01  Nick Clifton  <nickc@redhat.com>
619
620         * common.opt: Add -fcombine-stack-adjustments.
621         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
622         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
623         flag_combine_stack_adjustments.
624         * doc/invoke.texi: Document the new option.
625
626 2010-10-01  Richard Guenther  <rguenther@suse.de>
627
628         PR tree-optimization/45854
629         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
630
631 2010-10-01  Anthony Green  <green@moxielogic.com>
632
633         * config.gcc: Fix moxie-*-rtems* configuration.
634
635 2010-10-01  Richard Guenther  <rguenther@suse.de>
636
637         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
638         (gen_decl_die): Likewise.
639
640 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
641
642         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
643         to the function code for SPU MD builtins.
644         (spu_expand_builtin): Update.
645         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
646
647 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
648
649         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
650         sjlj_except_unwind_info.
651
652 2010-10-01  Tristan Gingold  <gingold@adacore.com>
653
654         * configure.ac: Define the nop insn for avr*-*-*
655         * configure: Regenerate.
656
657 2010-10-01  Alan Modra  <amodra@gmail.com>
658
659         PR target/45807
660         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
661         extend toc_restore_insn.
662
663 2010-09-30  Richard Guenther  <rguenther@suse.de>
664
665         PR tree-optimization/43959
666         * function.c (gimplify_parameters): Use create_tmp_reg instead of
667         create_tmp_var.
668
669 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
670
671         * config/sh/sh.c (sh_expand_prologue): Set
672         current_function_static_stack_size.
673
674 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
675
676         * configure.ac: Check for Solaris 8 ld with .hidden support.
677         * configure: Regenerate.
678
679 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
680
681         PR middle-end/45758
682         * graphite.c (graphite_initialize): Call scev_reset.
683
684 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
685
686         * sese.h (scev_analyzable_p): Return false for real or floating
687         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
688
689 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
690
691         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
692         and ps.
693         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
694         domain.
695         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
696         Do not allocate ub_expr, it is passed in initialized.
697
698 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
699
700         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
701         (build_cloog_prog): Dump CLooG input file when
702         flag_graphite_dump_cloog is set.  This is disabled on trunk.
703         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
704
705 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
706
707         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
708         verify_dominators for CDI_POST_DOMINATORS.
709         * sese.h: Remove comment about CDI_POST_DOMINATORS.
710         (recompute_all_dominators): Remove call to free_dominance_info
711         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
712         for CDI_POST_DOMINATORS.
713
714 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
715
716         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
717         over pbb_dim_iter_domain.
718
719 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
720
721         * graphite-flattening.c: Fix comments.
722
723 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
724
725         * Makefile.in (OBJS-common): Add graphite-flattening.o.
726         (graphite-flattening.o): New rule.
727         * common.opt (floop-flatten): New flag.
728         * doc/invoke.texi (-floop-flatten): Documented.
729         * graphite-flattening.c: New.
730         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
731         * graphite-poly.h (flatten_all_loops): Declared.
732         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
733         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
734         is set, also set flag_graphite.
735
736 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
737
738         * graphite-poly.c (cloog_checksum): New.
739         * graphite-poly.h (cloog_checksum): Declared.
740
741 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
742
743         * graphite-poly.c (pbb_number_of_iterations): Removed.
744         (pbb_number_of_iterations_at_time): Correctly compute the number
745         of iterations in the transformed loop.
746         * graphite-poly.h (pbb_number_of_iterations): Removed.
747
748 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
749
750         * graphite-poly.h (lst_update_scattering_seq): Removed.
751         (lst_update_scattering): Correctly handle outermost loop dewey
752         renumbering.
753
754 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
755
756         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
757         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
758         * graphite-poly.h (lst_niter_for_loop): New.
759
760 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
761
762         * graphite-poly.c (apply_poly_transforms): Do not abort when the
763         transform read from disk is not legal.  Call fatal_error instead.
764
765 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
766
767         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
768         (print_scop_header): Removed.  Inlined in the only call place...
769         (print_scop): ... here.
770
771 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
772
773         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
774
775 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
776
777         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
778
779 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
780
781         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
782         (dot_deps_stmt): Same.
783         * graphite-poly.c (dot_lst): Same.
784
785 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
786
787         * graphite-blocking.c (scop_do_strip_mine): Do not call
788         graphite_legal_transform.
789         (scop_do_block): Same.
790
791 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
792
793         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
794         description.
795
796 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
797
798         * tree-scalar-evolution.c (instantiate_array_ref): New.
799         (instantiate_scev_r): Also handle ARRAY_REFs.
800
801 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
802
803         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
804         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
805         RESULT_DECL, and FIELD_DECL.  Return false for an
806         SSA_NAME_IS_DEFAULT_DEF.
807         (compute_scalar_evolution_in_loop): Do not further analyze the
808         scalar evolution when no_evolution_in_loop_p returns true.
809
810 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
811
812         * tree-chrec.h (evolution_function_is_affine_p): Do not check
813         whether CHREC_LEFT is invariant.  A function is affine when
814         CHREC_RIGHT is invariant.
815
816 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
817
818         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
819         is_gimple_reg.
820         (rewrite_degenerate_phi): Same.
821         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
822
823 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
824
825         * graphite-scop-detection.c (graphite_can_represent_scev,
826         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
827         graphite_can_represent_loop): Remove outermost_loop.
828
829 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
830
831         PR middle-end/45229
832         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
833         handle GIMPLE_CALLs with no LHS.
834
835 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
836
837         * graphite-poly.c (init_graphite_out_file): New.
838         (init_graphite_in_file): New.
839         (apply_poly_transforms): Updated to enable reading and writing of
840         multiple scop files.
841
842 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
843
844         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
845         redundant checks.
846
847 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
848
849         * graphite-clast-to-gimple.c (precision_for_value): Adjust
850         computation of precision by 1.
851
852 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
853
854         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
855         (openscop_read_polyhedron_matrix): New.
856         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
857         (openscop_read_N_int): Same.
858         * graphite-poly.c (openscop_read_N_int): New.
859         (openscop_read_one_int): New.
860         (openscop_read_N_string): New.
861         (openscop_read_one_string): New.
862         (openscop_read_powerset_matrix): New.
863         (graphite_read_transforms): Remove.
864         (graphite_read_scatt): New.
865         (graphite_read_scop_file): New.
866         (apply_poly_transforms): Updated to call graphite_read_scop_file.
867
868 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
869
870         * graphite-poly.c: Change include order.
871
872 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
873
874         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
875         (cloog_matrix_nrows): New.
876
877 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
878
879         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
880         from matrix lines.
881         * graphite-poly.c (openscop_print_scattering_function_1): Same.
882         (print_scattering_function_1): Same.
883         (openscop_print_pbb_domain): Same.
884         (openscop_print_scop_context): Same.
885         (print_scop_context): Same.
886
887 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
888
889         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
890         (openscop_print_pdr_polyhedron): Print pph.
891
892 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
893
894         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
895         priority signed types.
896
897 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
898
899         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
900         the call to lang_hooks.types.type_for_size.  Call
901         build_nonstandard_integer_type.
902
903 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
904
905         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
906         (openscop_print_polyhedron_matrix): New.
907         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
908         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
909         (openscop_print_pdr_powerset): New.
910         (openscop_print_powerset_matrix): New.
911         (openscop_print_scattering_function_1): New.
912         (print_scattering_function): Add support for scattering names and
913         OpenScop format.
914         (graphite_write_transforms): Remove.
915         (print_pdr_access_layout): Updated to support OpenScop format.
916         (print_pdr): Same.
917         (openscop_print_pbb_domain): New.
918         (print_pbb_body): Added a parameter to allow indicating that pbb_body
919         is not provided.
920         (print_pbb): Updated to call the new print_pbb_body.
921         (openscop_print_scop_context): New.
922         (print_scop_header): New.
923         (print_scop): Updated to call print_scop_header.
924         * graphite-poly.h: Document OpenScop format.
925
926 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
927
928         * config/cris/m32c.c (cris_memory_move_cost): New.
929         (cris_register_move_cost): Make static. Change arguments type from
930         enum reg_class to reg_class_t.
931         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
932         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
933         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
934
935 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
936
937         PR target/45843
938         * config/i386/i386.c (ix86_gimplify_va_arg): Use
939         INTVAL (XEXP (slot, 1)) as prev_size.
940
941 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
942
943         PR target/45837
944         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
945         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
946         defined.
947         * config/rs6000/option-defaults.h (toplevel): Change #if
948         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
949         global option changes.
950
951 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
952
953         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
954
955         PR tree-optimization/31261
956         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
957         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
958
959 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
960
961         PR bootstrap/45796
962         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
963         special-casing for generators and turn into ...
964         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
965         rule, for better error messages in case of toplevel dependency errors.
966         (genprog): Add hooks, rename to ...
967         (genprogerr): ... this, and let genprog also contain check,
968         checksum, condmd.
969         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
970         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
971         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
972
973 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
974             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
975
976         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
977         for GMP, MPFR and MPC.
978
979 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
980
981         * config/sparc/sparc.opt (mimpure-text): Move ...
982         * config/sol2.opt: ... here.  Correct description.
983         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
984         * doc/invoke.texi (Option Summary, SPARC Options): Move
985         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
986         (Option Summary, Solaris 2 Options): ... here.
987         (Submodel Options, Solaris 2 Options): New menu entry.
988         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
989         (Solaris 2 Options): ... here.
990
991 2010-09-30  Michael Eager  <eager@eagercon.com>
992
993         * extend.texi (interrupt_handler): Add MicroBlaze to list.
994         (save_volatiles): Describe option for MicroBlaze.
995         * invoke.texi: Add MicroBlaze Options.
996         * contrib.texi: Add acknowledgment. 
997         * md.texi: Add MicroBlaze d and z constraints.
998         * install.texi: Add microblaze-*-elf.
999         * configure.ac: Add microblaze-*-* to target list.
1000         * configure: Regenerate.
1001         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
1002         * config/microblaze/microblaze-protos.h: New.
1003         * config/microblaze/crti.s: New.
1004         * config/microblaze/predicates.md: New.
1005         * config/microblaze/linux.h: New.
1006         * config/microblaze/microblaze.md: New.
1007         * config/microblaze/constraints.md: New.
1008         * config/microblaze/crtn.s: New.
1009         * config/microblaze/microblaze.opt: New.
1010         * config/microblaze/microblaze-c.c: New.
1011         * config/microblaze/t-microblaze: New.
1012         * config/microblaze/microblaze.c: New.
1013         * config/microblaze/microblaze.h: New.
1014
1015 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1016
1017         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
1018         parse @optional/@required and set the flags as appropriate.
1019
1020 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
1021
1022         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
1023
1024 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
1025
1026         * opt-functions.awk (static_var): Update comment.
1027         (var_ref): Return offsetof expression or -1, not variable address.
1028         * optc-gen.awk: Generate structure field initializers instead of
1029         static variables.  Expect -1 for missing variables instead of null
1030         pointer.  Add gcc_options parameters to generated functions.
1031         * opth-gen.awk: Generate structure fields for static variables.
1032         Add gcc_options parameters to generated functions.
1033         * common.opt (optimize, optimize_size): Add variables.
1034         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
1035         &global_options to cl_target_option_restore.
1036         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
1037         &global_options to cl_optimization_restore, cl_target_option_save
1038         and cl_target_option_restore.
1039         (ix86_set_current_function): Pass &global_options to
1040         cl_target_option_restore.
1041         * config/pdp11/pdp11.h (optimize): Remove.
1042         * config/rs6000/rs6000.h (optimize): Remove.
1043         * config/sh/sh.h (optimize): Remove.
1044         * config/xtensa/xtensa.h (optimize): Remove.
1045         * coretypes.h (struct gcc_options): Declare.
1046         * diagnostic.c (diagnostic_initialize): Initialize
1047         context->option_state.
1048         (diagnostic_report_diagnostic): Pass option_state to
1049         option_enabled hook.
1050         * diagnostic.h (diagnostic_context.option_enabled): Add void *
1051         parameter.
1052         (diagnostic_context.option_state): New field.
1053         * final.c (final_start_function, final, final_scan_insn): Rename
1054         optimize parameter to optimize_p.
1055         * flags.h (optimize, optimize_size): Remove.
1056         * function.c (invoke_set_current_function_hook): Pass
1057         &global_options to cl_optimization_restore.
1058         * gcc.c (driver_handle_option): Take gcc_options parameter.
1059         Assert that it is &global_options.
1060         (process_command): Pass &global_options to read_cmdline_option.
1061         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
1062         option_enabled.
1063         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
1064         &global_options to set_option.
1065         * opts-common.c (handle_option, handle_generated_option,
1066         read_cmdline_option, set_option): Take explicit gcc_options
1067         parameters.  Use option_flag_var.
1068         (option_flag_var): New.
1069         * opts.c (common_handle_option, lang_handle_option,
1070         target_handle_option): Take gcc_options parameter.  Assert that it
1071         is &global_options.
1072         (read_cmdline_options): Pass &global_options to read_cmdline_option.
1073         (print_filtered_help): Use option_flag_var.  Pass &global_options
1074         to option_enabled.
1075         (common_handle_option): Use option_flag_var.
1076         (option_enabled): Take opts parameter.  Use option_flag_var.
1077         (get_option_state): Take gcc_options parameter.  Use
1078         option_flag_var.  Pass gcc_options parameter to option_enabled.
1079         (enable_warning_as_error): Pass &global_options to
1080         handle_generated_option.
1081         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
1082         (cl_option_handler_func.handler): Take gcc_options parameter.
1083         (option_enabled, get_option_state, set_option, handle_option,
1084         handle_generated_option, read_cmdline_option): Take gcc_options
1085         parameters.
1086         * toplev.c (optimize, optimize_size): Remove.
1087         (print_switch_values): Pass &global_options to option_enabled.
1088         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
1089         to get_option_state.
1090         (general_init): Initialize global_dc->option_state.
1091         * tree.c (build_optimization_node): Pass &global_options to
1092         cl_optimization_save.
1093         (build_target_option_node): Pass &global_options to
1094         cl_target_option_save.
1095
1096 2010-09-30  Martin Jambor  <mjambor@suse.cz>
1097
1098         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
1099         zero sized bit-fields.
1100
1101 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1102
1103         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
1104         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
1105         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
1106         (c_parser_objc_class_declaration): Same change.
1107         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
1108         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1109         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
1110         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
1111         and RID_AT_PUBLIC instead of RID_PUBLIC.
1112         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
1113         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1114         
1115 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
1116
1117         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
1118         Add links to current providers of packages for Solaris and IRIX.
1119
1120 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1121
1122         Merge from 'apple/trunk' branch on FSF servers.
1123         * c-parser.c: Applied change originally in c-parse.in.
1124         
1125         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1126
1127         Radar 4281748
1128         * c-decl.c (start_decl): Check for redeclaration of class name.
1129         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
1130
1131 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
1132
1133         * config/ia64/ia64.c (ia64_builtin_decl): New.
1134         (TARGET_BUILTIN_DECL): Define.
1135         (ia64_builtins): New.
1136         (ia64_init_builtins): Save decls in ia64_builtins.
1137
1138 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
1139
1140         PR target/40457
1141         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
1142         (move2add_use_add3_insn): Likewise.
1143         (reload_cse_move2add): Likewise.
1144         * rtlanal.c (get_full_rtx_cost): New function.
1145         * rtl.h (struct full_rtx_costs): New.
1146         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
1147         costs_add_n_insns): New inline functions.
1148         (get_full_rtx_cost): Declare.
1149
1150         PR c/45054
1151         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
1152         invariants.  Check for reg_equiv_invariant.
1153         (reload): Assert that spilled_pseudos is empty when returning.
1154
1155 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
1156
1157         * config/i386/mingw32.h (TARGET_64BIT): replaced by
1158         TARGET_64BIT_DEFAULT in #if check.
1159
1160 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
1161
1162         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
1163
1164 2010-09-29  Mike Stump  <mikestump@comcast.net>
1165
1166         * config/darwin.h (flag_mkernel): Remove.
1167         (flag_apple_kext): Likewise.
1168
1169 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1170             Jack Howarth <howarth@bromo.med.uc.edu>
1171
1172         * config/darwin.opt (undefined): Add.
1173
1174 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1175
1176         PR testsuite/45664
1177         * configure.ac: Add --enable-indirect-function option.
1178         * config.gcc: Add default_gnu_indirect_function.
1179         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
1180         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
1181         * varasm.c (do_assemble_alias): Adjust for macro name change.
1182         * configure: Rebuilt.
1183         * doc/install.texi: Document --enable-indirect-function.
1184
1185 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1186
1187         * doc/options.texi (Variable, Var, Init): Update documentation
1188         without reference to VarExists.
1189         (VarExists): Remove.
1190         * common.opt, config/i386/i386.opt, config/linux.opt,
1191         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
1192         Don't use VarExists.
1193
1194 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1195
1196         * optc-gen.awk: Generate global_options initializer instead of
1197         individual variables.  Add x_ prefix to names of structure members.
1198         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
1199         names of structure members.
1200         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1201         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
1202         * doc/tm.texi: Regenerate.
1203         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1204         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1205         * c-parser.c (disable_extension_diagnostics,
1206         restore_extension_diagnostics): Update names of cpp_options members.
1207         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1208         * common.opt (fcompare-debug-second): Don't use Var.
1209         * config/alpha/alpha.h (target_flags): Remove.
1210         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1211         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1212         * config/bfin/bfin.h (target_flags): Remove.
1213         * config/cris/cris.h (target_flags): Remove.
1214         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
1215         cl_target_option members.
1216         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
1217         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
1218         ix86_can_inline_p): Update names of cl_target_option members.
1219         * config/i386/i386.h (ix86_isa_flags): Remove.
1220         * config/lm32/lm32.h (target_flags): Remove.
1221         * config/mcore/mcore.h (mcore_stack_increment): Remove.
1222         * config/mcore/mcore.md (addsi3): Remove extern declaration of
1223         flag_omit_frame_pointer.
1224         * config/mep/mep.h (target_flags): Remove.
1225         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1226         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1227         * config/mmix/mmix.h (target_flags): Remove.
1228         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
1229         flag_expensive_optimizations): Remove.
1230         * config/s390/s390.h (flag_pic): Remove.
1231         * config/score/score-conv.h (target_flags): Remove.
1232         * config/sh/sh.h (sh_fixed_range_str): Remove.
1233         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
1234         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1235         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1236         * diagnostic.c (diagnostic_initialize): Update names of
1237         diagnostic_context members.
1238         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
1239         warn_system_headers.
1240         (diagnostic_report_warnings_p): Update for new names.
1241         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1242         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
1243         HARD_FRAME_POINTER_IS_ARG_POINTER.
1244         * flags.h (flag_compare_debug): Declare.
1245         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1246         * opts.c (flag_compare_debug): Define.
1247         (common_handle_option): Update names of diagnostic_context
1248         members.  Handle -fcompare-debug-second.
1249         (fast_math_flags_struct_set_p): Update names of cl_optimization
1250         members.
1251         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1252         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1253         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1254         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1255         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1256         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1257         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
1258         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1259         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1260
1261 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
1262
1263         * config/picochip/picochip.c (picochip_output_internal_label):
1264         This function can now be called for debug CFI labels, which can come
1265         in the middle of a vliw instruction.  Postpone until end of vliw.
1266
1267 2010-09-29  Richard Guenther  <rguenther@suse.de>
1268
1269         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
1270         (DECL_FILE_SCOPE_P): Use it.
1271         (TYPE_FILE_SCOPE_P): New macro.
1272
1273 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1274
1275         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
1276         a CPP_NAME which is a reserved word, clearly separate cases for
1277         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
1278
1279 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1280
1281         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
1282         token->value with the canonical spelling.  Do exactly like C and
1283         C++ and leave it as it is.
1284
1285 2010-09-28  Richard Henderson  <rth@redhat.com>
1286
1287         * config/alpha/alpha.c (alpha_builtins): New.
1288         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
1289         (alpha_builtin_function): New.
1290         (alpha_add_builtins, alpha_init_builtins): Use it.
1291
1292 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1293
1294         * doc/standards.texi (Standards): Expanded the section on
1295         Objective-C and Objective-C++.
1296
1297 2010-09-28  DJ Delorie  <dj@redhat.com>
1298
1299         PR target/45800
1300         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
1301         volatile MEMs.
1302
1303 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1304
1305         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
1306         attributes on methods.
1307          (c_parser_objc_method_definition): Handle attributes.
1308         (c_parser_objc_methodproto): Likewise.
1309         (c_parser_objc_maybe_method_attributes): New.
1310         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
1311         missing definition, similar to that in ObjC++.
1312
1313 2010-09-28  Richard Henderson  <rth@redhat.com>
1314
1315         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
1316         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1317         (CONFIG_SJLJ_EXCEPTIONS): Remove.
1318         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
1319         (STACK_CHECK_PROTECT): Likewise.
1320         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
1321         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
1322         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
1323         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
1324         (dwarf2out_assembly_start): Likewise.
1325         * except.c (init_eh): Use targetm.except_unwind_info.
1326         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
1327         (output_one_function_exception_table): Likewise.
1328         * final.c: Unconditionally include dwarf2out.h.
1329         (final_start_function): Unconditionally call dwarf2out routines.
1330         (final_end_function, final_scan_insn): Likewise.
1331         * function.c (expand_function_end): Use targetm.except_unwind_info.
1332         * opts.c (decode_options): Use targetm.except_unwind_info.
1333         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
1334         * target.def (debug_unwind_info, except_unwind_info): New.
1335         * target.h (enum unwind_info_type): New.
1336         * targhooks.c (default_debug_unwind_info): New.
1337         (default_except_unwind_info): New.
1338         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
1339         * targhooks.h: Declare them.
1340         * tree-tailcall.c: Include "target.h"
1341         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
1342         * Makefile.in (tree-tailcall.o): Update.
1343         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
1344         (lhd_gcc_personality): Likewise.
1345
1346         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
1347         (TARGET_EXCEPT_UNWIND_INFO): New.
1348         (DWARF2_UNWIND_INFO): Update.
1349         (TARGET_DEBUG_UNWIND_INFO): New.
1350         * doc/tm.texi: Rebuild.
1351
1352         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
1353         targetm.except_unwind_info.
1354
1355         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
1356         (arm_except_unwind_info): New.
1357         (arm_compute_func_type): Use it.
1358         (arm_expand_prologue, thumb_pushpop): Likewise.
1359         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
1360         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
1361         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
1362         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
1363         (DWARF2_UNWIND_INFO): Remove.
1364         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1365         (ARM_EABI_UNWIND_TABLES): Remove.
1366
1367         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
1368         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
1369         (ia64_except_unwind_info): New.
1370         (ia64_output_function_prologue): Use it.
1371         (ia64_add_bundle_selector_before): Likewise.
1372         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
1373         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
1374         (TARGET_UNWIND_INFO): Remove.
1375
1376         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
1377
1378 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1379
1380         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
1381         (c_parser_objc_protocol_definition): Likewise.
1382         (c_parser_external_declaration): Provide dummy attribute arguments.
1383         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
1384         (c_parser_objc_class_definition): Handle attributes.
1385         (c_parser_objc_protocol_definition): Likewise.
1386
1387 2010-09-28  Tobias Burnus  <burnus@net-b.de>
1388
1389         PR fortran/40569
1390         PR fortran/40568
1391         * toplev.h (save_decoded_options, save_decoded_options_count):
1392         New global variables.
1393         * toplev.c (save_decoded_options, save_decoded_options_count):
1394         Export variables.
1395
1396 2010-09-28  Ian Lance Taylor  <iant@google.com>
1397
1398         * config/i386/i386.c (ix86_supports_split_stack): Test
1399         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
1400
1401 2010-09-28  Ian Lance Taylor  <iant@google.com>
1402
1403         PR target/45815
1404         * opts.c (decode_options): Don't test whether the target supports
1405         split stack if flag_split_stack == 0.
1406
1407 2010-09-28  Jan Hubicka  <jh@suse.cz>
1408
1409         * builtin-attrs.def (ATTR_LEAF): New attribute.
1410         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
1411         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
1412         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
1413         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
1414         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
1415         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
1416         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
1417         * sync-builtins.def: Annotate all builtins by leaf.
1418         * omp-builtins.def: Annotate all builtins by leaf.
1419         * builtins.def: Annotate relevant builtins with leaf attribute.
1420         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1421         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
1422         leaf.
1423
1424 2010-09-28  Jan Hubicka  <jh@suse.cz>
1425
1426         * tree-ssa-ccp.c (fold_ctor_reference): New function.
1427         (fold_const_aggregate_ref): Use it.
1428         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
1429         into external static.
1430
1431 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1432
1433         PR target/44452
1434         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
1435         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
1436         (ix86_solaris_return_in_memory): Remove.
1437         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
1438         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1439         (TARGET_SUBTARGET_DEFAULT): Redefine.
1440         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
1441         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1442         (TARGET_SUBTARGET_DEFAULT): Redefine.
1443         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1444         -mvect8-ret-in-mem.
1445         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1446
1447 2010-09-29  Alan Modra  <amodra@gmail.com>
1448
1449         PR target/45807
1450         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1451         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1452         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1453         Delete.
1454         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1455         (rs6000_emit_prologue): Don't just create frame save info for r2,
1456         actually save r2.
1457
1458 2010-09-28  Richard Henderson  <rth@redhat.com>
1459
1460         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1461         when 8 bytes are requested.
1462
1463 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1464
1465         * config/avr/avr.c (expand_prologue): Set
1466         current_function_static_stack_size.
1467
1468 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1469
1470         * config/alpha/alpha.md: Change the initial condition of the
1471         probing loop.
1472
1473 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
1474
1475         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1476         Split from *avx_<maxmin:code><mode>3.
1477         (*avx_<smaxmin:code><mode>3): Ditto.
1478         * config/i386/i386.md (maxmin): Remove code iterator.
1479
1480 2010-09-27  Ian Lance Taylor  <iant@google.com>
1481
1482         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1483         requires assembler support for CFI directives.
1484
1485 2010-09-27  Richard Henderson  <rth@redhat.com>
1486
1487         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1488
1489 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1490
1491         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1492         that AFTER is not in the range FROM..TO, inclusive.
1493
1494 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1495             Bernd Schmidt  <bernds@codesourcery.com>
1496
1497         PR rtl-optimization/45792
1498         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1499         If not all insns are to be merged, for each edge, stash the
1500         next candidate after the to-be-merged insns before doing the
1501         merge, and use them for the retry at the new insertion point.
1502         Handle CC0 targets when retrying.
1503
1504 2010-09-27  Ian Lance Taylor  <iant@google.com>
1505
1506         * common.opt (fsplit-stack): New option.
1507         * opts.c (decode_options): Set flag_split_stack to final value.
1508         * target.def (supports_split_stack): New hook.
1509         * gcc.c (STACK_SPLIT_SPEC): Define.
1510         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1511         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1512         (Code Gen Options): Document -fsplit-stack.
1513         * doc/extend.texi (Function Attributes): Mention no_split_stack.
1514         (Function Attributes): Document no_split_stack.
1515         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1516         TARGET_SUPPORTS_SPLIT_STACK.
1517         * doc/tm.texi: Rebuild.
1518         * function.c (thread_prologue_and_epilogue_insns): If
1519         flag_split_stack, add split stack prologue.
1520         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1521         * varasm.c (saw_no_split_stack): New static variable.
1522         (assemble_start_function): Set saw_no_split_stack if the function
1523         has the no_split_stack attribute.
1524         (file_end_indicate_split_stack): New function.
1525         * output.h (file_end_indicate_split_stack): Declare.
1526         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1527         and function.
1528         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1529         routines.
1530         * config/i386/i386.c (ix86_option_override_internal): Don't set
1531         expand_builtin_va_start to NULL if -fsplit-stack.
1532         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1533         -fsplit-stack.
1534         (ix86_va_start): If -fsplit-stack, get overflow pointer from
1535         scratch register set by prologue.
1536         (ix86_code_end): If -fsplit-stack, call
1537         file_end_indicate_split_stack.
1538         (ix86_supports_split_stack): New static function.
1539         (SPLIT_STACK_AVAILABLE): Define.
1540         (split_stack_prologue_scratch_regno): New static function.
1541         (split_stack_fn): New static variable.
1542         (ix86_expand_split_stack_prologue): New function.
1543         (ix86_live_on_entry): New static function.
1544         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1545         (output_pic_addr_const): Likewise.
1546         (i386_asm_output_addr_const_extra): Likewise.
1547         (ix86_expand_call): Change return type to rtx.  Return the new
1548         call instruction.
1549         (TARGET_SUPPORTS_SPLIT_STACK): Define.
1550         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1551         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1552         (split_stack_prologue, split_stack_return): New insns.
1553         (split_stack_space_check): New insn.
1554         * config/i386/i386.h (struct machine_function): Add
1555         split_stack_varargs_pointer field.
1556         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1557         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1558         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1559         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1560         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1561         Declare.
1562         (ix86_expand_call): Update declaration.
1563
1564 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1565
1566         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1567         code.  Added byref, which was missing in the list of codes.
1568         Explain that enumeration values are encoded as the integer type
1569         that the compiler uses to store them.  Explain and make examples
1570         of how 'const' interacts with pointers, and the complication of
1571         the encoding of 'const char *'.
1572         (Legacy type encoding): New subsection, explaining that GCC emits
1573         incorrect type encodings for the NeXT runtime for compatibility
1574         reasons.
1575         (@@encode): New subsection, explaining @encode and particularly
1576         that protocol qualifiers are not recognized inside an @encode()
1577         expression.
1578         (Method signatures): New subsection, explaining how method
1579         signatures are encoded.
1580
1581 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1582
1583         Merge from 'apple/trunk' branch on FSF servers.  Removed small
1584         change in build_conditional_expr that had been added when fixing
1585         PR objc/27377 and which did the same check in a less complete way.
1586
1587         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1588
1589         Radar 4229905
1590         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1591         looking for objective-c common pointer types.
1592
1593         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1594
1595         Radar 4154928
1596         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1597         use their ObjC common type.
1598
1599 2010-09-27  Richard Guenther  <rguenther@suse.de>
1600
1601         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1602
1603 2010-09-27  Jie Zhang  <jie@codesourcery.com>
1604
1605         * print-tree.c (print_node): Print in-constant-pool.
1606
1607 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
1608
1609         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1610         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1611         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1612         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1613
1614 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1615
1616         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1617         from pro_epilogue_adjust_stack_<mode>_{1,2}.
1618         (pro_epilogue_adjust_stack_<mode>_add): Rename from
1619         pro_epilogue_adjust_stack_<mode>_3.
1620         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1621         renamed pro_epilogue_adjust_stack_{si,di}_add.
1622         (ix86_expand_prologue): Use indirect functions.  Update for renamed
1623         pro_epilogue_adjust_stack_{si,di}_sub.
1624
1625 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1626
1627         * config/i386/i386.md (movmsk_df): New insn.
1628         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
1629         sequence for TARGET_SSE_MATH.
1630
1631 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
1632
1633         * config/mips/mips.c (mips_builtin_decls): Declare.
1634         (mips_init_builtins): Store function declarations in
1635         mips_builtin_decls.
1636         (mips_builtin_decl): New function.
1637         (TARGET_BUILTIN_DECL): Define.
1638
1639 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
1640             Richard Henderson  <rth@redhat.com>
1641
1642         * config/i386/cygwin.asm: Include auto-host.h.
1643         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1644         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1645         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
1646         alignment code from the 64-bit path.  Use gas local labels.
1647         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1648         from _di_2.  Remove the useless constant integer argument.
1649         (pro_epilogue_adjust_stack_<mode>_3): New.
1650         (allocate_stack_worker_probe_<mode>): Macroize from
1651         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
1652         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1653         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1654         (__chkstk_ms): New function.
1655         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1656         * gcc/config/i386/t-interix: Likewise.
1657         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1658         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1659         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1660         * configure, config.in: Rebuild.
1661
1662 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1663
1664         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1665         statements because of the return slot optimization.
1666
1667 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
1668
1669         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1670         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1671         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1672         (class_likely_spilled_p): Rename to...
1673         (avr_class_likely_spilled_p): ...this. Make static. Change argument
1674         type to reg_class_t.
1675
1676 2010-09-24  Jan Hubicka  <jh@suse.cz>
1677
1678         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1679         (lto_symtab_resolve_symbols): Set it.
1680         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1681         store resolution field in cgraph/varpool.
1682         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1683         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1684         (cgraph_dump_node): Drop used_from_object_file.
1685         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1686         (cgraph_function_body_availability): Use decl_replaceable_p.
1687         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1688         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1689         cgraph_used_from_object_file_p.
1690         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1691         cgraph_used_from_object_file_p.
1692         (resolution_used_from_other_file_p): New functoin.
1693         (cgraph_used_from_object_file_p): New predicate.
1694         * cgraph.h: Include plugin-api.h
1695         (struct cgraph_local_info): Remove used_from_object_file.
1696         (struct cgraph_node): Add resolution field.
1697         (struct varpool_node): Likewise; remove used_from_object_file;
1698         reove const_value_known.
1699         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1700         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1701         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1702         varpool_used_from_object_file_p): Declare.
1703         (varpool_get_node, varpool_extra_name_alias): Update prototype.
1704         * tree.h (DECL_REPLACEABLE_P): Remove.
1705         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1706         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1707         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1708         input_overwrite_node, input_node, input_varpool_node): Stream
1709         resolution.
1710         * expr.c (expand_expr_real_1): Use const_value_known_p
1711         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1712         const_value_known.
1713         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1714         (function_and_variable_visibility): Set resolution for local vars
1715         and functions; use varpool_used_from_object_file_p.
1716         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1717         static functions.
1718         (default_binds_local_p_1): Use resolutoin info.
1719         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1720         * varpool.c (varpool_get_node): Constify.
1721         (const_value_known_p): Do not use vnode->const_value_known;
1722         use decl_replaceable_p.
1723         (varpool_finalize_decl): Do not set const_value_known.
1724         (cgraph_variable_initializer_availability): Use decl_replaceable_p
1725         (varpool_extra_name_alias): Return new node.
1726         (varpool_used_from_object_file_p): New function.
1727
1728 2010-09-24  Richard Henderson  <rth@redhat.com>
1729
1730         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1731         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1732         (do_spill): Use REG_CFA_OFFSET.
1733         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1734         as appropriate.
1735         (ia64_expand_epilogue): Likewise.
1736         (process_set): Split into ...
1737         (process_cfa_adjust_cfa): this,
1738         (process_cfa_register): this,
1739         (process_cfa_offset): and this new function.
1740         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
1741         instead of REG_FRAME_RELATED_EXPR.
1742
1743 2010-09-24  Olivier Hainque  <hainque@adacore.com>
1744
1745         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1746
1747 2010-09-24  Jan Hubicka  <jh@suse.cz>
1748
1749         * doc/extend.texi: (attribute leaf): Document.
1750         * tree.c (local_define_builtin): Handle ECF_LEAF.
1751         (build_common_builtin_nodes): Set ECF_LEAF where needed.
1752         * tree.h (ECF_LEAF): New.
1753         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1754         overwrittable and unavailable functions.
1755         (ipa_init): Put all_module_statics into optimization_summary_obstack.
1756         (copy_global_bitmap): Do not copy all_module_statics.
1757         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1758         (propagate): Handle overwritable and unavailable leaf functions;
1759         initialize global info for overwritable and unavailable leaf functions;
1760         do not free all module statics.
1761         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1762         local statics.
1763         * calls.c (flags_from_decl_or_type): Handle leaf.
1764         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1765         abnormal gotos.
1766
1767 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
1768
1769         * gengtype.c: Reindented.
1770         * gengtype.h: Reindented.
1771         * gengtype-parse.c: Reindented.
1772
1773 2010-09-24  Jan Hubicka  <jh@suse.cz>
1774
1775         PR tree-optimization/45738
1776         PR tree-optimization/45741
1777         * expr.c (string_constant): Allow CONST_DECL too;
1778         check that DECL_INITIAL is set.
1779         * varpool.c (const_value_known_p): Only look into VAR_DECL
1780         and CONST_DECL.
1781
1782 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
1783
1784         * common.opt (undef): New.
1785
1786 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
1787
1788         PR middle-end/45234
1789         * rtl.h (enum global_rtl_index): Add
1790         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1791         (LAST_VIRTUAL_POINTER_REGISTER): Define.
1792         (virtual_preferred_stack_boundary_rtx,
1793         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1794         (LAST_VIRTUAL_REGISTER): Increase by one.
1795         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1796         instead of LAST_VIRTUAL_REGISTER.
1797         * function.c (instantiate_new_reg): Handle
1798         virtual_preferred_stack_boundary_rtx.
1799         * emit-rtl.c (init_virtual_regs): Handle
1800         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1801         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1802         * explow.c (round_push): If crtl->preferred_stack_boundary
1803         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1804         virtual_preferred_stack_boundary_rtx alignment instead of
1805         crtl->preferred_stack_boundary alignment.
1806         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1807         macros.  Never decrease crtl->preferred_stack_boundary,
1808         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1809         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
1810         stack_pointer_delta in dynamic allocation, even when size
1811         is constant.
1812         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1813         macro.
1814         * print-rtl.c (print_rtx): Handle
1815         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1816         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1817         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1818         * config/frv/frv.c (frv_emit_movsi): Likewise.
1819         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1820         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1821         Likewise.
1822
1823         Revert:
1824         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1825
1826         PR middle-end/45234
1827         * calls.c (expand_call): Make sure that all variable sized
1828         adjustments are multiple of preferred stack boundary after
1829         stack alignment.
1830
1831 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1832             Dominique Dhumieres  <dominiq@lps.ens.fr>
1833
1834         PR bootstrap/45751
1835         * gcc/config/darwin-driver.c (darwin_default_min_version):
1836         Adjust size passed to memcpy in two places.
1837
1838 2010-09-24  Richard Guenther  <rguenther@suse.de>
1839
1840         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1841         Make sure to not call set_type_context with error_mark_node.
1842         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1843
1844 2010-09-24  Richard Guenther  <rguenther@suse.de>
1845
1846         * Makefile.in (OBJS-onestep): Remove.
1847         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1848         (libbackend.a): Remove onestep support.
1849         (libbackend.o): Remove.
1850         * configure.ac (--enable-intermodule): Remove.
1851         * configure: Regenerate.
1852
1853 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1854
1855         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1856         reaching the end of a block if it occurs at a DEBUG_INSN.
1857
1858 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1859
1860         PR target/44242
1861         * config/vms/vms-crt0-64.c: Removed.
1862         * config/vms/vms-crt0.c: Removed.
1863         * config/vms/vms-psxcrt0-64.c: Removed.
1864         * config/vms/vms-psxcrt0.c: Removed.
1865         * config/vms/vms-ucrt0.c: New file.
1866         * config/vms/t-vms64: Removed.
1867         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1868         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1869         * config.gcc (alpha-dec-vms): Use t-vms.
1870
1871 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1872
1873         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1874         underfull hbox in DVI output.
1875         (-fobjc-class-cxx-cdtors): Same change.
1876         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1877         option does, but moved the (lenghty) description of the exception
1878         syntax into objc.texi.
1879         (-fobjc-gc): Explain that the option is not useful with the GNU
1880         runtime.
1881         (-fzero-link): Explain that the GNU runtime always works in
1882         "zero-link" mode.
1883         * doc/objc.texi: All sections: simplified @node declarations
1884         removing specification of next, previous, up node.
1885         (Objective-C): Updated introduction.
1886         (Garbage Collection): Updated.  The bohem-gc library is now
1887         included in gcc itself.  Mention that this section only applies to
1888         the GNU Objective-C runtime.
1889         (compatibility_alias): Small tidy up.
1890         (Exceptions): New section mostly containing text previously in the
1891         description of the -fobjc-exception command-line option.
1892         (Synchronization): Same.
1893
1894 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1895
1896         * config/i386/i386.md (ix86_code_end): Move the initialization of
1897         xops array near the consumer.  Use AX_REG and SP_REG instead of
1898         numerical constants.
1899
1900 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1901
1902         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1903         method [methodname]' for an Objective-C method instead of the less
1904         satisfactory 'too many arguments to function' (with no method name).
1905
1906 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1907
1908         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1909         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1910         (execute_update_addresses_taken): Remove parameter.  Execute the
1911         optimization unconditionally.
1912         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1913         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1914         if TODO_update_address_taken is set.
1915
1916 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1917
1918         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1919         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1920         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1921         (arm_output_addr_const_extra): Make static.
1922
1923 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1924
1925         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1926         define as unspec_volatile.
1927         ("nops"): Define as unspec_volatile. Use fputs to write to
1928         asm_out_file directly.  Output NOPs on separate lines using while loop.
1929         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1930         asm_out_file directly.  Output NOPs on separate lines using while loop.
1931
1932 2010-09-23  Richard Guenther  <rguenther@suse.de>
1933
1934         PR tree-optimization/45565
1935         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1936         Make sure to adjust the fndecl before replacing the stmt.
1937
1938 2010-09-23  Richard Guenther  <rguenther@suse.de>
1939
1940         PR middle-end/45750
1941         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1942         gimplifying MEM_REF.
1943
1944 2010-09-23  Alan Modra  <amodra@gmail.com>
1945
1946         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1947         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1948
1949 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1950
1951         PR rtl-optimization/44374
1952         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1953         * df-core.c (df_set_bb_dirty): Set it.
1954         * ifcvt.c (find_memory): Remove function.
1955         (dead_or_predicable): Use can_move_insns_across.
1956         * df.h (can_move_insns_across): Declare function.
1957         * cfgcleanup.c (block_was_dirty): New static variable.
1958         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1959         than df_get_bb_dirty.
1960         (try_head_merge_bb): New static function.
1961         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1962         is set.
1963         * df-problems.c: Include "target.h"
1964         (df_simulate_find_uses): New static function.
1965         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1966         (find_memory, find_memory_store): New static functions.
1967         (can_move_insns_across): New function.
1968         * Makefile.in (df-problems.o): Update dependencies.
1969
1970 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1971
1972         PR java/44095
1973         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1974         is specified and the suffix of the file isn't ".c".
1975         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1976
1977 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1978
1979         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1980         * doc/cppopts.texi: Fix markup of index entry.
1981         * doc/extend.texi (Constructing Calls): Fix markup of
1982         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1983         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1984         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1985         keywords.
1986         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1987         avoid long lines.
1988         (C Dialect Options, C++ Dialect Options, Warning Options)
1989         (Debugging Options, Spec Files, Darwin Options)
1990         (i386 and x86-64 Options, MIPS Options)
1991         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1992         index entries, avoid abbreviations, allow URLs to wrap, avoid
1993         long lines, avoid overlong pages from long @itemx lists.
1994         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1995         * doc/standards.texi (Standards): Likewise.
1996         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1997
1998 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1999
2000         * opts-common.c (prune_options): Make static.  Work with decoded
2001         options.
2002         (decode_cmdline_options_to_array): Call prune_options.  Don't
2003         resize option array here.
2004         * opts.h (prune_options): Remove prototype.
2005         * gcc.c (process_command): Take decoded options; don't call
2006         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
2007         (main): Call decode_cmdline_options_to_array here instead of
2008         prune_options.  Update call to process_command.
2009         * config/darwin-driver.c: Include opts.h.
2010         (darwin_default_min_version): Work with decoded options.  Don't
2011         handle -b or -V here.
2012         * config/darwin.h (darwin_default_min_version): Update prototype.
2013         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
2014         darwin_default_min_version.
2015         * config/i386/cygwin.h (mingw_scan): Update prototype.
2016         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
2017         * config/i386/cygwin1.c: Include opts.h.
2018         (mingw_scan): Work with decoded options.
2019         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
2020         * config/t-darwin (darwin-driver.o): Update dependencies.
2021
2022 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2023
2024         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
2025         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
2026         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
2027         -force-link, -force-link=, -language, -language=,
2028         -library-directory, -library-directory=, -no-canonical-prefixes,
2029         -no-standard-libraries, -no-warnings, -optimize, -output,
2030         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
2031         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
2032         -print-file-name=, -print-libgcc-file-name,
2033         -print-multi-directory, -print-multi-lib,
2034         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
2035         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
2036         -profile, -save-temps, -shared, -specs, -specs=, -static,
2037         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
2038         symbolic): New.
2039         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
2040         * gcc.c (A Short Introduction to Adding a Command-Line Option):
2041         Remove comment.
2042         (cc1_options): Correct specs for passing down --help,
2043         --target-help and --help=*.  Add spec for passing down --version.
2044         (struct option_map, option_map, target_option_translations,
2045         translate_options): Remove.
2046         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
2047         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
2048         OPT_fhelp_ and OPT_ftarget_help.
2049         (process_command): Don't call translate_options.  Call
2050         decode_cmdline_options_to_array before checking for
2051         -no-canonical-prefixes using decoded options.
2052         * opts-common.c (tm.h): Update comment on #include.
2053         (find_opt): Allow abbreviations of long options.
2054         (struct option_map, option_map): New.
2055         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
2056         and -mno handling.
2057         (target_option_translations): New.
2058         (decode_cmdline_options_to_array): Handle
2059         TARGET_OPTION_TRANSLATE_TABLE in driver.
2060         * opts.c (common_handle_option): Don't handle OPT_fhelp,
2061         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
2062
2063 2010-09-22  Richard Guenther  <rguenther@suse.de>
2064
2065         * tree-inline.c (optimize_inline_calls): Schedule cleanups
2066         only if we inlined something.  Block compaction and conditional
2067         folding are done by cfg cleanup.  Schedule update-address-taken.
2068         (tree_function_versioning): Remove redundant call to number_blocks.
2069         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
2070         folding is done by cfg cleanup.
2071         * passes.c (init_optimization_passes): Remove update-address-taken
2072         pass after IPA inlining.
2073
2074 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
2075
2076         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
2077         to update conditions. Fix reg_mode[] check.
2078
2079 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
2080
2081         * config/picochip/picochip.md (movhicc): Use expand to check whether
2082         movhicc is available and split it after reload.
2083
2084 2010-09-22  Richard Guenther  <rguenther@suse.de>
2085
2086         * tree-ssanames.c (release_dead_ssa_names): Do not remove
2087         callee edges here.
2088         * passes.c (init_optimization_passes): Remove early CFG cleanup.
2089         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
2090         (pass_cleanup_cfg): Likewise.
2091         (execute_fixup_cfg): Cleanup.
2092         * tree-pass.h (pass_cleanup_cfg): Remove.
2093
2094 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2095
2096         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
2097         builtins if it is true.
2098         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
2099         parameter.
2100
2101 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2102
2103         * tree-sra.c (struct access): New field grp_no_warning.
2104         (create_access_replacement): Set TREE_NO_WARNING according to
2105          grp_no_warning.
2106         (create_artificial_child_access): Use build_ref_for_model and set
2107         grp_no_warning if build_user_friendly_ref_for_offset fails.
2108         (propagate_subaccesses_across_link): Likewise.
2109
2110 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2111
2112         PR target/35664
2113         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
2114         ('f'): Likewise.
2115
2116 2010-09-22  Tristan Gingold  <gingold@adacore.com>
2117
2118         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
2119
2120 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
2121
2122         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
2123         * config/i386/i386.c (decide_alg): Update for rename.
2124
2125 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
2126
2127         PR rtl-optimization/45739
2128         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
2129         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
2130
2131 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
2132
2133         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
2134         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
2135         Remove.
2136         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
2137         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2138
2139 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2140
2141         PR objc/23710
2142         * c-parser.c (c_parser_objc_method_definition): Check the return
2143         value of objc_start_method_definition and if false is returned,
2144         parse the method definition but emit no code.
2145
2146 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2147
2148         PR objc/25965
2149         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
2150         call objc_get_interface_ivars ().
2151
2152 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
2153
2154         PR target/45694
2155         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
2156         static chain-register is used for 64-bit.
2157
2158 2010-09-21  Richard Guenther  <rguenther@suse.de>
2159
2160         * dwarf2out.c (is_cu_die): New function.
2161         (add_pubtype): Use it.
2162         (gen_subprogram_die): Likewise.
2163         (gen_struct_or_union_type_die): Likewise.
2164         (dwarf2out_finish): Likewise.
2165         (comp_unit_die): Rename to ...
2166         (single_comp_unit_die): ... this.
2167         (comp_unit_die): New function lazily constructing and
2168         returning single_comp_unit_die.
2169         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
2170         base_type_die, subrange_type_die, modified_type_die,
2171         lower_bound_default, add_bound_info, add_prototyped_attribute,
2172         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
2173         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
2174         force_decl_die, gen_namespace_die, dwarf2out_decl,
2175         dwarf2out_start_source_file, dwarf2out_end_source_file,
2176         prune_unused_types, dwarf2out_finish): Use it.
2177         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
2178         the global list of translation-unit decls.
2179         (dwarf2out_init): Do not create single_comp_unit_die here.
2180         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
2181
2182 2010-09-21  Richard Guenther  <rguenther@suse.de>
2183
2184         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
2185         for bool for C++.
2186
2187 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
2188
2189         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
2190         (qhs_extenddi_cstr): Likewise.
2191         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
2192         them for the source operand.
2193
2194 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
2195
2196         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
2197         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
2198         (ix86_split_ashr): Ditto.
2199         (ix86_split_lshr): Ditto.
2200
2201 2010-09-21  Richard Guenther  <rguenther@suse.de>
2202
2203         PR tree-optimization/45580
2204         * tree-ssa-propagate.c (substitute_and_fold): Always replace
2205         regular uses.
2206         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
2207         virtuals fold the call into a regular indirect one.
2208
2209 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2210
2211         PR rtl-optimization/42775
2212         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
2213         scheduling is enabled.
2214
2215 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2216
2217         PR rtl-optimization/45728
2218         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
2219         gen_lowpart_common first and if that fails, force_reg first
2220         before calling gen_lowpart.
2221
2222         PR middle-end/45678
2223         * cfgexpand.c (expand_one_stack_var_at): Use
2224         crtl->max_used_stack_slot_alignment as max_align, instead
2225         of maximum of that and PREFERRED_STACK_BOUNDARY.
2226         Don't call update_stack_alignment.
2227
2228 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2229
2230         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
2231         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
2232         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
2233         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
2234         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
2235         (build_nonstandard_integer_type): Likewise.
2236         (build_range_type_1): New function, built from...
2237         (build_range_type): ...this.  Call build_range_type_1.
2238         (build_nonshared_range_type): New function.
2239         (build_array_type_1): New function, built from...
2240         (build_array_type: ...this.  Call build_array_type_1.
2241         (build_nonshared_array_type): New function.
2242         * tree.h (build_nonshared_range_type): Declare.
2243         (build_nonshared_array_type): Likewise.
2244
2245 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
2246
2247         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
2248         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2249         (arm_class_likely_spilled_p): New function.
2250
2251 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
2252
2253         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
2254         indirect functions.
2255         (ix86_split_ashl): Ditto.
2256         (ix86_split_ashr): Ditto.
2257         (ix86_split_lshr): Ditto.
2258         (ix86_adjust_counter): Ditto.
2259
2260 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2261
2262         * c-family/c-common.h (constant_string_class): Documented with
2263         comment identical to the one already in c-common.c.
2264
2265 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2266
2267         * dwarf2out.c (any_cfis_emitted): New static variable.
2268         (add_fde_cfi): Set it.
2269         (dwarf2out_frame_debug): Clear it before processing,
2270         if it is set afterwards, flush any queued reg saves.
2271
2272         PR debug/45124
2273         * dwarf2out.c (add_accessibility_attribute): Assume
2274         DW_ACCESS_private as the default for dwarf_version > 2
2275         and DW_TAG_class_type parent.
2276         (gen_inheritance_die): Assume DW_ACCESS_public as the default
2277         for dwarf_version > 2 and parent other than DW_TAG_class_type.
2278
2279 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2280
2281         PR target/45726
2282         * arm.md (arm_movt): Only enable on machines with MOVT.
2283
2284 2010-09-20  Jie Zhang  <jie@codesourcery.com>
2285
2286         * config/arm/arm.c (arm_address_offset_is_imm): New.
2287         (arm_early_store_addr_dep): New.
2288         (arm_early_load_addr_dep): New.
2289         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
2290         (arm_early_load_addr_dep): Declare.
2291         (arm_address_offset_is_imm): Declare.
2292         * config/arm/cortex-m4.md: New file.
2293         * config/arm/cortex-m4-fpu.md: New file.
2294         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
2295         (attr generic_sched): Exclude cortexm4.
2296         (attr generic_vfp): Exclude cortexm4.
2297
2298 2010-09-20  Richard Guenther  <rguenther@suse.de>
2299
2300         PR middle-end/45704
2301         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
2302
2303 2010-09-20  Jan Hubicka  <jh@suse.cz>
2304
2305         PR tree-optimize/45605
2306         * cgraph.h (const_value_known_p): Declare.
2307         (varpool_decide_const_value_known): Remove.
2308         * tree-ssa-ccp.c (get_base_constructor): Use it.
2309         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
2310         * expr.c (string_constant): Likewise.
2311         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2312         * ipa.c (ipa_discover_readonly_nonaddressable_var,
2313         function_and_variable_visibility): Likewise.
2314         * gimplify.c (gimplify_call_expr): Likewise.
2315         * gimple-fold.c (get_symbol_constant_value): Likewise.
2316         * varpool.c (varpool_decide_const_value_known): Replace by...
2317         (const_value_known_p): ... this one; handle other kinds of DECLs
2318         too and work for automatic vars.
2319         (varpool_finalize_decl): Use const_value_known_p.
2320
2321 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2322
2323         PR target/45726
2324         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
2325
2326 2010-09-20  Richard Guenther  <rguenther@suse.de>
2327
2328         PR tree-optimization/45705
2329         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
2330
2331 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2332
2333         PR rtl-optimization/45695
2334         * combine.c (try_combine): When splitting a two set pattern,
2335         make sure the pattern which will be put into i2 doesn't use REGs
2336         or MEMs set by insns in between i2 and i3.
2337
2338 2010-09-19  Jan Hubicka  <jh@suse.cz>
2339
2340         PR lto/44246
2341         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
2342         processing same node twice.
2343
2344 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
2345
2346         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
2347         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2348         (bfin_class_likely_spilled_p): New function
2349
2350 2010-09-19  Ira Rosen  <irar@il.ibm.com>
2351
2352         PR tree-optimization/45714
2353         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
2354         created in vectorizable_call instead of the original statement in
2355         def stmt updates.
2356
2357 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
2358
2359         * config/i386/i386-protos.h (split_double_mode): New prototype.
2360         (split_di, split_ti): Remove prototypes.
2361         * config/i386/i386.c (split_double_mode): New function.
2362         (split_di, split_ti): Remove.
2363         (ix86_expand_branch): Use split_double_mode.
2364         (ix86_split_to_parts): Ditto.
2365         (ix86_split_ashl): Ditto.
2366         (ix86_split_ashr): Ditto.
2367         (ix86_split_lshr): Ditto.
2368         (ix86_force_to_memory): Ditto.
2369         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
2370
2371 2010-09-18  Jan Hubicka  <jh@suse.cz>
2372
2373         PR tree-optimization/45453
2374         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
2375         virtual functions are reachable.
2376         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
2377         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2378         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
2379         when modifying function.
2380
2381 2010-09-18  Jan Hubicka  <jh@suse.cz>
2382
2383         PR tree-optimization/45605
2384         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
2385         * gimple-fold.c (static_object_in_other_unit_p): New function.
2386         (canonicalize_constructor_val): Use it.
2387         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
2388         returning NULL.
2389         (gimple_fold_obj_type_ref_known_binfo): Use
2390         static_object_in_other_unit_p.
2391
2392 2010-09-18  Richard Guenther  <rguenther@suse.de>
2393
2394         PR tree-optimization/45709
2395         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
2396         insertions until after all PHI nodes of the block are processed.
2397
2398 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
2399
2400         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
2401
2402 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
2403
2404         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
2405
2406 2010-09-18  Richard Guenther  <rguenther@suse.de>
2407
2408         PR tree-optimization/45709
2409         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
2410
2411 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2412
2413         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
2414         (dot_deps_stmt): Same.
2415         * graphite-poly.c (dot_lst): Same.
2416         * graphite-scop-detection.c (dot_all_scops): Same.
2417         (dot_scop): Same.
2418
2419 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2420
2421         Revert:
2422         2009-12-16  Ben Elliston  <bje@au.ibm.com>
2423
2424         * tree-data-ref.c (dot_rdg_1): Added back.
2425         (dot_rdg): Same.  Added "#if 0" around system call.
2426
2427 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2428             Richard Henderson  <rth@redhat.com>
2429
2430         * config/i386/i386.c (initial_ix86_tune_features): Add
2431         X86_TUNE_PAD_SHORT_FUNCTION.
2432         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
2433         (ix86_count_insn): New.
2434         (ix86_pad_short_function): Likewise.
2435         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
2436
2437         * config/i386/i386.h (ix86_tune_indices): Add
2438         X86_TUNE_PAD_SHORT_FUNCTION.
2439         (TARGET_PAD_SHORT_FUNCTION): New.
2440
2441         * config/i386/i386.md (UNSPEC_NOPS): New.
2442         (nops): Likewise.
2443
2444 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2445
2446         PR middle-end/45234
2447         * calls.c (expand_call): Make sure that all variable sized
2448         adjustments are multiple of preferred stack boundary after
2449         stack alignment.
2450
2451 2010-09-17  DJ Delorie  <dj@redhat.com>
2452
2453         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2454         passed an invalid value, print an error instead of ICEing.
2455         (valid_psw_flag): New.
2456         (rx_expand_builtin): Call it for setpsw/clrpsw.
2457         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2458
2459         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2460         (bitclr_in_memory): Likewise.
2461         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2462
2463 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2464
2465         PR middle-end/45678
2466         * cfgexpand.c (update_stack_alignment): New.
2467         (get_decl_align_unit): Use it.
2468         (expand_one_stack_var_at): Call update_stack_alignment.
2469
2470 2010-09-17  Richard Guenther  <rguenther@suse.de>
2471
2472         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2473         Properly copy the read string.
2474
2475 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
2476
2477         * doc/options.texi (Variable): Document.
2478         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
2479         generate target_flags declarations explicitly.  Don't define
2480         VarExists variables for the driver.
2481         * common.opt (target_flags): New Variable record.
2482         (flag_dump_unnumbered, flag_dump_unnumbered_links,
2483         flag_var_tracking, flag_var_tracking_assignments,
2484         flag_var_tracking_assignments_toggle): Don't mark variables with
2485         VarExists.
2486         * config/i386/i386.c (ix86_isa_flags): Don't define here.
2487         * config/i386/i386.opt (ix86_isa_flags): Define here.
2488         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2489         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2490         VarExists.
2491         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2492         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2493         Only define for generator programs.
2494         * rtlanal.c (target_flags): Remove.
2495         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2496         flag_var_tracking_assignments_toggle): Remove.
2497
2498 2010-09-17  Michael Matz  <matz@suse.de>
2499
2500         PR tree-optimization/43432
2501         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2502         Accept backwards consecutive accesses.
2503         (vect_create_data_ref_ptr): If step is negative generate
2504         decreasing IVs.
2505         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2506         (perm_mask_for_reverse, reverse_vec_elements): New functions.
2507         (vectorizable_load): Handle loads with negative steps when easily
2508         possible.
2509
2510 2010-09-03  Jan Hubicka  <jh@suse.cz>
2511
2512         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2513
2514 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
2515
2516         * config/v850/v850.c (v850_function_value_regno_p): Make static.
2517         Adjust comments. Declare.
2518         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2519         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2520
2521 2010-09-17  Richard Guenther  <rguenther@suse.de>
2522
2523         * common.opt (combine): Remove.
2524         * gcc.c (default_compilers): Remove specs testing combine.
2525         The C compilers no longer can combine.
2526         (option_map): Remove -combine.
2527         (display_help): Remove -combine.
2528         (driver_handle_option): Remove OPT_combine handling.
2529         (compile_input_file_p): Remove.
2530         (do_spec): Remove code concerning combine.
2531         (main): Likewise.
2532         * doc/invoke.texi: Remove traces of -combine.
2533         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2534
2535 2010-09-17  Richard Guenther  <rguenther@suse.de>
2536
2537         PR middle-end/45678
2538         * builtins.c (fold_builtin_memory_op): Always properly adjust
2539         alignment of memory accesses.
2540
2541 2010-09-16  Jan Hubicka  <jh@suse.cz>
2542
2543         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2544         processing clone.
2545
2546 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
2547
2548         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2549
2550         * config/i386/i386.c (predict_jump): Add prototype.
2551         (flag_opts): Add -m8bit-idiv.
2552         (ix86_split_idivmod): New.
2553
2554         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2555         Add 2 splitters for SI/DI mode divide.
2556         (divmod<mode>4_1): New pattern.
2557         (udivmod<mode>4_1): Likewise.
2558         (testdi_ccno_1): Likewise.
2559
2560         * config/i386/i386.opt (m8bit-idiv): New.
2561
2562         * doc/invoke.texi: Document -m8bit-idiv.
2563
2564 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
2565
2566         PR bootstrap/45680
2567         * config/i386/i386.c (min_insn_size): Moved out of the
2568         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2569
2570 2010-09-16  Jan Hubicka  <jh@suse.cz>
2571
2572         * lto-cgraph.c (lto_output_node): Fix handling of clones.
2573         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2574         unreachable clones with reachable clones.
2575         * tree-inline.c (copy_bb): Fix sanity checking when producing
2576         unreachable clone.
2577
2578 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
2579
2580         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2581         (TARGET_MEMORY_MOVE_COST): Define.
2582         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2583
2584 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
2585
2586         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2587         maybe_tidy_empty_bb.
2588
2589         Revert:
2590         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
2591         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2592
2593 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2594
2595         * target.def (target_option.optimization): New hook.
2596         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2597         TARGET_OPTION_OPTIMIZATION hook.
2598         * doc/tm.texi: Regenerate.
2599         * hooks.c (hook_void_int_int): New.
2600         * hooks.h (hook_void_int_int): Declare.
2601         * opts.c: Don't include tm_p.h.
2602         (decode_options): Use targetm.target_option.optimization instead
2603         of OPTIMIZATION_OPTIONS.
2604         * system.h (OPTIMIZATION_OPTIONS): Poison.
2605         * config/arm/arm-protos.h (arm_optimization_options): Remove.
2606         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2607         (arm_optimization_options): Rename to arm_option_optimization.
2608         Make static.
2609         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2610         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2611         (cris_option_optimization): New.
2612         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2613         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2614         (crx_option_optimization): New.
2615         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2616         * config/frv/frv-protos.h (frv_optimization_options): Remove.
2617         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2618         (frv_optimization_options): Rename to frv_option_optimization.
2619         Make static.
2620         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2621         * config/h8300/h8300.c (h8300_option_optimization): New.
2622         (TARGET_OPTION_OPTIMIZATION): Define.
2623         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2624         * config/i386/i386-protos.h (optimization_options): Remove.
2625         * config/i386/i386.c (optimization_options): Rename to
2626         ix86_option_optimization.  Make static.
2627         (TARGET_OPTION_OPTIMIZATION): Define.
2628         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2629         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2630         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2631         (ia64_optimization_options): Rename to ia64_option_optimization.
2632         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
2633         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
2634         commented-out definition.
2635         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2636         instead of OPTIMIZATION_OPTIONS.
2637         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2638         (m32r_option_optimization): New.
2639         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2640         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2641         Remove.
2642         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2643         (mcore_option_optimization): New.
2644         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2645         * config/mep/mep-protos.h (mep_optimization_options): Remove.
2646         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2647         (mep_optimization_options): Rename to mep_option_optimization.
2648         Make static.  Take unused level and size parameters.
2649         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2650         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2651         (mmix_option_optimization): New.
2652         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2653         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2654         (pdp11_option_optimization): New.
2655         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2656         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2657         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2658         (optimization_options): Rename to rs6000_option_optimization.
2659         Make static.
2660         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2661         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2662         * config/rx/rx.c (rx_set_optimization_options): Rename to
2663         rx_option_optimization.  Make static.  Take unused level and size
2664         parameters.
2665         (TARGET_OPTION_OPTIMIZATION): Define.
2666         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2667         * config/s390/s390-protos.h (optimization_options): Remove.
2668         * config/s390/s390.c (optimization_options): Rename to
2669         s390_option_optimization.  Make static.  Don't mark size parameter
2670         unused.
2671         (TARGET_OPTION_OPTIMIZATION): Define.
2672         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2673         * config/sh/sh-protos.h (sh_optimization_options): Remove.
2674         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2675         (sh_optimization_options): Rename to sh_option_optimization.  Make
2676         static.  Don't mark parameters unused.
2677         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2678         * config/spu/spu-protos.h (spu_optimization_options): Remove.
2679         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2680         (spu_optimization_options): Rename to spu_option_optimization.
2681         Make static.
2682         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2683         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2684         (v850_option_optimization): New.
2685         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2686         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2687         (xtensa_option_optimization): New.
2688         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2689
2690 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2691
2692         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2693         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2694         * doc/tm.texi: Regenerate.
2695         * system.h (OVERRIDE_OPTIONS): Poison.
2696         * target.def (override): Default to hook_void_void.
2697         * targhooks.c (default_target_option_override): Remove.
2698         * genmodes.c, machmode.def: Update comments mentioning
2699         OVERRIDE_OPTIONS.
2700         * config/alpha/alpha-modes.def: Update comment mentioning
2701         alpha_override_options.
2702         * config/alpha/alpha-protos.h (override_options): Remove.
2703         * config/alpha/alpha.c (override_options): Rename to
2704         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
2705         (TARGET_OPTION_OVERRIDE): Define.
2706         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2707         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2708         of OVERRIDE_OPTIONS.
2709         * config/arc/arc-protos.h (arc_init): Remove.
2710         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2711         (arc_init): Rename to arc_option_override.  Make static.
2712         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2713         (OVERRIDE_OPTIONS): Remove.
2714         * config/arm/arm-protos.h (arm_override_options): Remove.
2715         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2716         (arm_override_options): Rename to arm_option_override.  Make
2717         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2718         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2719         * config/arm/arm.md: Update comment referring to arm_override_options.
2720         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2721         instead of OVERRIDE_OPTIONS.
2722         * config/avr/avr-protos.h (avr_override_options): Remove.
2723         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2724         (avr_override_options): Rename to avr_option_override.  Make static.
2725         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2726         * config/bfin/bfin-protos.h (override_options): Remove (twice).
2727         * config/bfin/bfin.c (override_options): Rename to
2728         bfin_option_override.  Make static.
2729         (TARGET_OPTION_OVERRIDE): Define.
2730         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2731         * config/cris/cris-protos.h (cris_override_options): Remove.
2732         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2733         (cris_override_options): Rename to cris_option_override.  Make static.
2734         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2735         * config/frv/frv-protos.h (frv_override_options): Remove.
2736         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2737         (frv_override_options): Rename to frv_option_override.  Make static.
2738         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2739         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2740         * config/h8300/h8300.c (h8300_init_once): Rename to
2741         h8300_option_override.  Make static.
2742         (TARGET_OPTION_OVERRIDE): Define.
2743         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2744         * config/i386/i386-protos.h (override_options): Remove.
2745         * config/i386/i386.c (override_options): Rename to
2746         ix86_option_override_internal.  Make static.  Comments referring
2747         to this function and callers changed.
2748         (ix86_option_override): New.
2749         (TARGET_OPTION_OVERRIDE): Define.
2750         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2751         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2752         * config/ia64/ia64.c (ia64_file_start): Update comment referring
2753         to ia64_override_options.
2754         * config/iq2000/iq2000-protos.h (override_options): Remove.
2755         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2756         (override_options): Rename to iq2000_option_override.  Make static.
2757         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2758         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2759         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2760         (lm32_override_options): Rename to lm32_option_override.  Make static.
2761         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2762         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2763         (m32r_option_override): New.
2764         (m32r_init): Update comment.
2765         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2766         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2767         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2768         (m68hc11_override_options): Rename to m68hc11_option_override.
2769         Make static.  Return void.
2770         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2771         * config/m68k/m68k-protos.h (override_options): Remove.
2772         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2773         (override_options): Rename to m68k_option_override.  Make static.
2774         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2775         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2776         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2777         (mcore_override_options): Rename to mcore_option_override.  Make
2778         static.
2779         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2780         * config/mep/mep-protos.h (mep_override_options): Remove.
2781         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2782         (mep_override_options): Rename to mep_option_override.  Make static.
2783         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2784         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2785         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2786         (mmix_override_options): Rename to mmix_option_override.  Make static.
2787         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2788         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2789         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2790         (mn10300_override_options): Rename to mn10300_option_override.
2791         Make static.
2792         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2793         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2794         * config/moxie/moxie.c (moxie_override_options): Rename to
2795         moxie_option_override.  Make static.
2796         (TARGET_OPTION_OVERRIDE): Define.
2797         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2798         * config/picochip/picochip-protos.h (picochip_override_options):
2799         Remove.  Update comment referring to picochip_override_options.
2800         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2801         (picochip_override_options): Rename to picochip_option_override.
2802         Make static.  Update comment and definition of
2803         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2804         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2805         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2806         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2807         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2808         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2809         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2810         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2811         instead of OVERRIDE_OPTIONS.
2812         * config/rs6000/rs6000-modes.def: Update comment referring to
2813         rs6000_override_options.
2814         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2815         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2816         (rs6000_override_options): Rename to
2817         rs6000_option_override_internal.  Make static.  Commented
2818         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2819         (rs6000_option_override): New.
2820         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2821         instead of OVERRIDE_OPTIONS.
2822         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2823         * config/s390/s390-protos.h (override_options): Remove.
2824         * config/s390/s390.c (override_options): Rename to
2825         s390_option_override.  Make static.
2826         (TARGET_OPTION_OVERRIDE): Define.
2827         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2828         * config/score/score-protos.h (score_override_options): Remove.
2829         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2830         (score_override_options): Rename to score_option_override.  Make
2831         static.
2832         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2833         Update comment referring to override_options.
2834         * config/score/score3.c (score3_override_options): Rename to
2835         score3_option_override.
2836         * config/score/score3.h (score3_override_options): Rename to
2837         score3_option_override.
2838         * config/score/score7.c (score7_override_options): Rename to
2839         score7_option_override.
2840         * config/score/score7.h (score7_override_options): Rename to
2841         score7_option_override.
2842         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2843         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2844         (sparc_override_options): Rename to sparc_option_override.  Make
2845         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2846         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2847         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2848         instead of OVERRIDE_OPTIONS.
2849         * config/spu/spu-protos.h (spu_override_options): Remove.
2850         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2851         (spu_override_options): Rename to spu_option_override.  Make
2852         static.
2853         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2854         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2855         OVERRIDE_OPTIONS.
2856         * config/vax/vax-protos.h (override_options): Remove.
2857         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2858         (override_options): Rename to vax_option_override.  Make static.
2859         Call SUBTARGET_OVERRIDE_OPTIONS.
2860         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2861         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2862         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2863         * config/xtensa/xtensa-protos.h (override_options): Remove.
2864         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2865         (override_options): Rename to xtensa_option_override.  Make static.
2866         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2867
2868 2010-09-16  Richard Guenther  <rguenther@suse.de>
2869
2870         PR tree-optimization/45623
2871         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2872         (get_constraint_for_component_ref): If computing a constraint
2873         for the rhs handle type punning through unions.
2874         (get_constraint_for_address_of): Adjust.
2875         (get_constraint_for_1): Likewise.
2876         (get_constraint_for): Likewise.
2877         (get_constraint_for_rhs): New function.
2878         (do_structure_copy): Adjust.
2879         (make_constraint_to): Likewise.
2880         (handle_const_call): Likewise.
2881         (find_func_aliases): Likewise.
2882         (process_ipa_clobber): Likewise.
2883         (create_variable_info_for): Likewise.
2884
2885 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2886
2887         * tree-vectorizer.c: Fix documentation.
2888         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2889         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2890         is_pattern_stmt_p, is_loop_header_bb_p,
2891         stmt_vinfo_set_inside_of_loop_cost,
2892         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2893         known_alignment_for_access_p): Likewise.
2894         * tree-vect-loop.c: Fix documentation.
2895         (vect_get_cost): Start function name from new line.
2896         * tree-vect-data-refs.c: Fix documentation.
2897         * tree-vect_stmts.c: Likewise.
2898         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2899         (vectorizable_store): Free vec_oprnds if allocated.
2900         (vectorizable_condition): Initialize several variables to avoid
2901         warnings.
2902         * tree-vect-slp.c: Fix documentation.
2903
2904 2010-09-16  Richard Guenther  <rguenther@suse.de>
2905
2906         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2907         is TS_TRANSLATION_UNIT_DECL.
2908         (initialize_tree_contains_struct): Adjust.
2909         (all_translation_units): New global vector.
2910         (build_translation_unit_decl): New function.
2911         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2912         (struct tree_translation_unit_decl): New.
2913         (all_translation_units): Declare.
2914         (union tree_node): Add translation_unit_decl member.
2915         (build_translation_unit_decl): Declare.
2916         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2917         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2918         New function.
2919         (pack_value_fields): Call it.
2920         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2921         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2922         (lto_output_tree_pointers): Call it.
2923         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2924         to TRANSLATION_UNIT_DECL.
2925         (unpack_ts_translation_unit_decl_value_fields): New function.
2926         (unpack_value_fields): Call it.
2927         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2928         (lto_input_tree_pointers): Call it.
2929         * lto-streamer.c (check_handled_ts_structures): Adjust.
2930         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2931         * c-decl.c (all_translation_units): Remove.
2932         (pop_scope): Use build_translation_unit_decl.
2933         (collect_all_refs): Adjust.
2934         (for_each_global_decl): Likewise.
2935         (c_write_global_declarations): Likewise.
2936
2937 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2938
2939         PR bootstrap/45686
2940         * fold-const.c (fold_checksum_tree): Change slot from const void **
2941         to void **, use CONST_CAST_TREE to store into *slot.
2942
2943 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2944
2945         * config/i386/i386.md: Remove unneeded empty conditions and
2946         preparation statements from expanders.
2947         * config/i386/mmx.md: Ditto.
2948         * config/i386/sse.md: Ditto.
2949
2950 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2951
2952         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2953
2954 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2955
2956         PR rtl-optimization/45593
2957         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2958         insns that were in delay slots as stand-alone insns.
2959
2960 2010-09-15  Ian Lance Taylor  <iant@google.com>
2961
2962         * incpath.c (remove_duplicates): If name is not a directory, issue
2963         a warning rather than an error.
2964
2965 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2966
2967         PR middle-end/45644
2968         * tree-sra.c (create_access): Check for bit-fields directly.
2969
2970 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2971
2972         PR tree-optimization/45633
2973         * tree-cfg.c (verify_gimple_assign_binary): Allow
2974         MINUS_EXPR with lhs and rhs1 pointer vector and
2975         rhs2 sizetype vector.
2976         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2977         or vector pointer use TER to optimize pointer subtraction.
2978
2979 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2980
2981         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2982         fcmpd to fcmps.
2983
2984 2010-09-15  Ian Lance Taylor  <iant@google.com>
2985
2986         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2987
2988 2010-09-15  Ian Lance Taylor  <iant@google.com>
2989
2990         * function.c (get_arg_pointer_save_area): Set
2991         arg_pointer_save_area_init to true.
2992
2993 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2994
2995         * tree-sra.c (generate_subtree_copies): Updated comment.
2996         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2997         obtained from the statement iterator instead.
2998         (load_assign_lhs_subreplacements): Removed parameters lhs and
2999         right_offset, which is obtained from top_racc instead.  Parameter lacc
3000         is now expected to be the root of the processed tree rather than root's
3001         first child.  Updated all callers.
3002
3003 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
3004
3005         * config/pdp11/pdp11.c (register_move_cost): Rename to
3006         pdp11_register_move_cost.
3007         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
3008         pdp11_register_move_cost.
3009         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
3010         pdp11_register_move_cost instead of register_move_cost.
3011
3012 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
3013
3014         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
3015         pattern for vmovn. Expansion in case of non
3016         -mvectorize-with-neon-quad.
3017         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
3018         non- -mvectorize-with-neon-quad case.
3019         (move_lo_quad_<mode>): New expansion to vmov into low part.
3020         (move_hi_quad_<mode>): New expansion to vmov into high part.
3021         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
3022         (move_lo_quad_v4sf): Likewise.
3023         (move_lo_quad_v8hi): Likewise.
3024         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
3025         low part.
3026         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
3027         high part.
3028         * config/arm/iterators.md (ANY128): New mode iterator.
3029         (V_narrow_pack): New mode attribute.
3030         (V_HALF): Add attribute.
3031         (V_DOUBLE): Add attribute.
3032         (V_mode_nunits): Add attribute.
3033
3034 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3035
3036         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
3037         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
3038
3039 2010-09-15  Olivier Hainque  <hainque@adacore.com>
3040             Jose Ruiz  <ruiz@adacore.com>
3041
3042         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
3043         * config/alpha/osf5-unwind.h: New file.
3044
3045 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3046
3047         PR bootstrap/45672
3048         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
3049         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3050         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3051
3052 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3053
3054         * c-lang.h (struct lang_type): Add variable_size GTY option.
3055
3056 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3057
3058         PR bootstrap/45672
3059         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3060
3061 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3062
3063         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
3064         result isn't used in memory address.
3065
3066 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3067
3068         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
3069         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
3070         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
3071         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
3072         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
3073         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
3074
3075         * target.def: Add units_per_simd_word to vectorize.
3076
3077         * targhooks.c (default_units_per_simd_word): New.
3078         * targhooks.h (default_units_per_simd_word): Likewise.
3079         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
3080         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3081         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
3082         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3083         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3084         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3085         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3086         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3087
3088         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
3089         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
3090
3091         * tree-vect-stmts.c: Don't include "tm_p.h".
3092         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
3093         with targetm.vectorize.units_per_simd_word.
3094
3095         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
3096
3097         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
3098
3099         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
3100         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3101
3102         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
3103         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
3104
3105         * doc/tm.texi: Regenerated.
3106
3107 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3108
3109         * tree-vect-stmts.c: Include "tm_p.h".
3110
3111         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
3112         out of RTX_CODE.
3113
3114 2010-09-14  Martin Jambor  <mjambor@suse.cz>
3115
3116         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
3117         location of generated statement.  Changed all callers.
3118         (build_ref_for_model): New parameter loc which used to set location of
3119         all generated expressions.  Changed all callers.
3120         (generate_subtree_copies): Likewise.
3121         (init_subtree_with_zero): Likewise.
3122         (sra_modify_expr): Set locations of all generated statements and
3123         expressions to the location the original statement.
3124         (handle_unscalarized_data_in_subtree): Likewise.
3125         (load_assign_lhs_subreplacements): Likewise.
3126         (sra_modify_constructor_assign): Likewise.
3127         (sra_modify_assign): Likewise.
3128
3129 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3130
3131         PR target/45277
3132         PR target/45363
3133         PR target/45407
3134         * doc/install.texi (sparc*-*-*): New section.
3135         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
3136
3137 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3138
3139         PR middle-end/45567
3140         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
3141         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
3142         (expand_builtin): Adjust caller.
3143         (expand_builtin_unop): Only use subtarget if it has the right mode.
3144
3145 2010-09-14  Tristan Gingold  <gingold@adacore.com>
3146
3147         * configure.ac (plugins): Fix typos.
3148         * configure: Regenerate.
3149
3150 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3151
3152         PR debug/45660
3153         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
3154         gen_type_die for function/method return type.
3155
3156 2010-09-14  Ira Rosen  <irar@il.ibm.com>
3157
3158         PR tree-optimization/45470
3159         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3160         can throw an exception.
3161         * tree-vect-stmts.c (vectorizable_call): Likewise.
3162
3163 2010-09-14  DJ Delorie  <dj@redhat.com>
3164
3165         PR target/44749
3166         * config/mep/mep-protos.h (mep_save_register_info,
3167         mep_reinit_regs, mep_init_regs): Declare.
3168
3169         * config/mep/mep.c: Move all target definitions to the end of the
3170         file to avoid the need for duplicate declarations.
3171         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
3172         (mep_reorg_erepeat): Remove unused variables.
3173         (mep_expand_builtin): Likewise.
3174
3175         * config/mep/mep-pragma.c: Don't include rtl.h.
3176         (INVALID_REGNUM): New.
3177         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
3178         functions.
3179         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
3180         Avoid enum/integer math.
3181
3182 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
3183
3184         PR target/44749
3185         * config/mep/t-mep (GTM_H): Add insn-constants.h.
3186         * config/mep/mep.c (mep_conditional_register_usage): Take no
3187         parameters.
3188         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
3189         prototype.
3190         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
3191         call to mep_conditional_register_usage.
3192
3193 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3194
3195         PR debug/43937
3196         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
3197         the DECL as well.
3198
3199 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
3200
3201         PR rtl-optimization/45617
3202         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
3203         even if low N bits of X aren't known to be zero.
3204
3205 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3206
3207         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
3208
3209         * config/i386/i386.c (initial_ix86_tune_features): Add
3210         X86_TUNE_VECTORIZE_DOUBLE.
3211         (ix86_units_per_simd_word): New.
3212
3213         * config/i386/i386.h (ix86_tune_indices): Add
3214         X86_TUNE_VECTORIZE_DOUBLE.
3215         (TARGET_VECTORIZE_DOUBLE): New.
3216         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
3217
3218 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
3219
3220         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
3221         (new_temp_expr_table): Allocate call_cnt vector.
3222         (free_temp_expr_table): Free it.
3223         (process_replaceable): Add call_cnt parm and set in vector.
3224         (find_replaceable_in_bb): Skip replacement if def/use span a call.
3225         (debug_ter): Dump call_cnt value, remove stderr uses.
3226
3227 2010-09-13  Jan Hubicka  <jh@suse.cz>
3228
3229         * tree.c (build_zero_cst): New.
3230         * tree.h (build_zero_cst): Declare.
3231         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
3232         (get_base_constructor): Break out from ...
3233         (fold_const_aggregate_ref): Here; handle empty constructors.
3234
3235 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3236
3237         * config/arm/arm.md: (define_attr "conds"): Update comment.
3238         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
3239         conds attribute to clob.
3240         (arm_sync_compare_and_swapsi): Likewise.
3241         (arm_sync_compare_and_swap<mode>): Likewise.
3242         (arm_sync_lock_test_and_setsi): Likewise.
3243         (arm_sync_lock_test_and_set<mode>): Likewise.
3244         (arm_sync_new_<sync_optab>si): Likewise.
3245         (arm_sync_new_nandsi): Likewise.
3246         (arm_sync_new_<sync_optab><mode>): Likewise.
3247         (arm_sync_new_nand<mode>): Likewise.
3248         (arm_sync_old_<sync_optab>si): Likewise.
3249         (arm_sync_old_nandsi): Likewise.
3250         (arm_sync_old_<sync_optab><mode>): Likewise.
3251         (arm_sync_old_nand<mode>): Likewise.
3252
3253 2010-09-13  Olivier Hainque  <hainque@adacore.com>
3254
3255         * fwprop.c (forward_propagate_and_simplify): Only attach a
3256         REG_EQUAL note to an insn if the destination is a register.
3257         * gcse.c (try_replace_reg): Likewise.
3258
3259 2010-09-13  Richard Guenther  <rguenther@suse.de>
3260
3261         PR tree-optimization/45611
3262         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
3263         (copy_ref_info): Likewise.
3264
3265 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
3266
3267         PR debug/45604
3268         PR debug/45419
3269         PR debug/45408
3270         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3271         types of MEM_REF pointer types to the same type.
3272
3273 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
3274
3275         PR rtl-optimization/41087
3276         * ifcvt.c (noce_get_condition): Don't allow conditions with
3277         side-effects.
3278
3279 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
3280
3281         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3282         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
3283         * config/frv/frv.c (frv_register_move_cost): Make static. Change
3284         arguments type to reg_class_t. Add mode argument.
3285         (frv_memory_move_cost): New.
3286         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
3287
3288 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3289
3290         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
3291         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
3292
3293 2010-09-10  Jan Hubicka  <jh@suse.cz>
3294
3295         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
3296
3297 2010-09-10  Richard Guenther  <rguenther@suse.de>
3298
3299         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
3300         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
3301         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
3302         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
3303         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
3304
3305 2010-09-10  Richard Guenther  <rguenther@suse.de>
3306
3307         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
3308         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
3309         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
3310         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
3311
3312 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3313
3314         PR middle-end/45634
3315         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
3316         of string folding is of integral type.
3317
3318 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
3319
3320         * doc/invoke.texi (-x): Fix typo.
3321
3322 2010-09-10  Richard Guenther  <rguenther@suse.de>
3323
3324         PR debug/44115
3325         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
3326         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3327         Output DECL_DEBUG_EXPR.
3328         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3329         Input DECL_DEBUG_EXPR.
3330
3331 2010-09-10  Richard Guenther  <rguenther@suse.de>
3332
3333         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
3334         (build_index_type): Implement in terms of build_range_type.
3335         (build_range_type): Do not allow NULL_TREE type, improve
3336         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
3337         if we didn't hash.
3338         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
3339         create a distinct copy of the type.
3340
3341 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
3342
3343         * configure: Regenerated.
3344         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
3345
3346 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3347
3348         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
3349         * config/arm/cortex-a9-neon.md: New and partially generated.
3350         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
3351
3352 2010-09-10  Richard Guenther  <rguenther@suse.de>
3353
3354         * tree.h (build_index_2_type): Remove.
3355         * tree.c (build_index_2_type): Remove.
3356
3357 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
3358
3359         PR bootstrap/45630
3360         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
3361         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
3362         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
3363
3364 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3365
3366         PR tree-optimization/44972
3367         * tree-sra.c: Include toplev.h.
3368         (build_ref_for_offset): Entirely reimplemented.
3369         (build_ref_for_model): New function.
3370         (build_user_friendly_ref_for_offset): New function.
3371         (analyze_access_subtree): Removed build_ref_for_offset check.
3372         (propagate_subaccesses_across_link): Likewise.
3373         (create_artificial_child_access): Use
3374         build_user_friendly_ref_for_offset.
3375         (propagate_subaccesses_across_link): Likewise.
3376         (ref_expr_for_all_replacements_p): Removed.
3377         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
3378         (sra_modify_expr): Use build_ref_for_model.
3379         (load_assign_lhs_subreplacements): Likewise.
3380         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
3381         checks for return values of build_ref_for_offset.
3382         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
3383         build_ref_for_offset.
3384         * ipa-prop.h: Include gimple.h
3385         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
3386         (ipa_analyze_indirect_call_uses): Update comment.
3387         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
3388         (IPA_PROP_H): Likewise.
3389
3390 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3391
3392         PR tree-optimization/44972
3393         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
3394         calling build_ref_for_offset.
3395
3396 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3397
3398         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
3399         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
3400         * config/arm/arm-tune.md: Regenerate.
3401         * doc/invoke.texi (ARM Options): Document it.
3402
3403 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
3404
3405         * config/i386/i386.c: Include sched-int.h.
3406         (TARGET_SCHED_DISPATCH): Defined.
3407         (TARGET_SCHED_DISPATCH_DO): Defined.
3408         (DISPATCH_WINDOW_SIZE): Defined.
3409         (MAX_DISPATCH_WINDOWS): Defined.
3410         (MAX_INSN): Defined.
3411         (MAX_IMM): Defined.
3412         (MAX_IMM_SIZE): Defined.
3413         (MAX_IMM_32): Defined.
3414         (MAX_IMM_64): Defined.
3415         (MAX_LOAD): Defined.
3416         (MAX_STORE): Defined.
3417         (BIG): Defined.
3418         (dispatch_group): New.
3419         (num_allowable_groups): New.
3420         (group_name): New.
3421         (sched_insn_info_s): New.
3422         (dispatch_windows_s): New.
3423         (imm_info_s): New.
3424         (dispatch_window_list): New.
3425         (dispatch_window_list1): New.
3426         (get_mem_group): New.
3427         (is_cmp): New.
3428         (dispatch_violation): New.
3429         (is_branch): New.
3430         (is_prefetch): New.
3431         (init_window): New.
3432         (allocate_window): New.
3433         (init_dispatch_sched): New.
3434         (is_end_basic_block): New.
3435         (process_end_window): New.
3436         (allocate_next_window): New.
3437         (find_constant_1): New.
3438         (find_constant): New.
3439         (get_num_immediates): New.
3440         (has_immediate): New.
3441         (get_insn_path): New.
3442         (get_insn_group): New.
3443         (count_num_restricted): New.
3444         (fits_dispatch_window): New.
3445         (add_insn_window): New.
3446         (add_to_dispatch_window): New.
3447         (debug_dispatch_window_file): New.
3448         (debug_dispatch_window): New.
3449         (debug_insn_dispatch_info_file): New.
3450         (debug_ready_dispatch): New.
3451         (do_dispatch): New.
3452         (has_dispatch): New.
3453         * config/i386/i386.h (debug_ready_dispatch): Declared.
3454         (debug_dispatch_window): Declared.
3455         * config/i386/i386.opt (mdispatch-scheduler): New flag.
3456         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3457         (TARGET_SCHED_DISPATCH_DO): New.
3458         * doc/tm.texi: Regererated.
3459         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3460         ready_remove_first_dispatch
3461         (schedule_block): Call targetm.sched.dispatch and
3462         targetm.sched.dispatch_do.
3463         (sched_init): Call targetm.sched.dispatch and
3464         targetm.sched.dispatch_do.
3465         (ready_remove_first_dispatch): New.
3466         (number_in_ready): New.
3467         (get_ready_element): New.
3468         * hooks.c (hook_bool_rtx_int_false): New.
3469         (hook_void_rtx_int): New.
3470         * hooks.h (hook_bool_rtx_int_false): Declared.
3471         (hook_void_rtx_int): Declared.
3472         * sched-int.h (IS_DISPATCH_ON): Defined.
3473         (IS_CMP): Defined.
3474         (DISPATCH_VIOLATION): Defined.
3475         (FITS_DISPATCH_WINDOW): Defined.
3476         (DISPATCH_INIT): Defined.
3477         (ADD_TO_DISPATCH_WINDOW): Defined.
3478         (get_ready_element): Declared.
3479         (number_in_ready): Declared.
3480         * target.def (dispatch): Defined.
3481         (dispatch_do): Defined.
3482
3483 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3484
3485         PR middle-end/45312
3486         * reload1.c (merge_assigned_reloads): Remove.
3487         (reload_as_needed): Don't call it.
3488
3489 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
3490
3491         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3492         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3493         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3494
3495 2010-09-09  Matthias Klose  <doko@ubuntu.com>
3496
3497         PR bootstrap/43847
3498         * configure.ac (--enable-plugin): Enhance for cross builds.
3499         * configure: Regenerate.
3500
3501 2010-09-09  Jan Hubicka  <jh@suse.cz>
3502
3503         PR tree-optimization/45598
3504         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3505         string folding is of integral type.
3506
3507 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3508
3509         * configure.ac (gnu_indirect_function): New test.
3510         * configure: Rebuilt.
3511         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3512         * defaults.h (IFUNC_ASM_TYPE): Provide default.
3513
3514         * doc/extend.texi (Function Attributes): Document ifunc.
3515         * varasm.c (do_assemble_alias): Deal with ifuncs too.
3516
3517 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3518
3519         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3520         epilogue instruction move.
3521
3522 2010-09-09  Jan Hubicka  <jh@suse.cz>
3523
3524         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3525         command line to allow more partitions than input files.
3526
3527 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3528
3529         PR middle-end/44554
3530         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3531
3532 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3533
3534         PR middle-end/40386
3535         * ira.c (pseudo_for_reload_consideration_p): Don't use
3536         flag_ira_share_spill_slots.
3537
3538 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3539
3540         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3541         point zero operands that fit into a single GPR.
3542         (s390_preferred_reload_class): Ensure we only return general-purpose
3543         register classes.
3544         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3545         floating-point zero operands into GPRs.
3546         ("*mov<mode>_64"): Likewise.
3547         ("mov<mode>"): Likewise using lhi.
3548
3549 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3550
3551         * config/s390/s390.c (s390_symref_operand_p): Return false for
3552         literal pool references.
3553         (s390_check_qrst_address): Update caller.
3554
3555 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
3556
3557         * config/i386/predicates.md (ext_register_operand): Check that
3558         SUBREG_REG is really a register before looking for REGNO.
3559         (reg_not_xmm0_operand): Handle SUBREGs correctly.
3560         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3561
3562 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
3563
3564         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3565         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3566         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3567         * print-rtl.c (print_rtx): Likewise.
3568         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3569         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3570         for ADDR_EXPR with non-addressable object.
3571         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3572         (struct dw_val_struct): Add v.val_decl_ref.
3573         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3574         Handle DW_OP_GNU_implicit_pointer.
3575         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
3576         (get_ref_die_offset_label): New function.
3577         (implicit_ptr_descriptor): New function.
3578         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3579         (loc_descriptor): Likewise.
3580         (gen_variable_die): Put even definitions into decl_die_table.
3581         (resolve_addr_in_expr): Resolve still unresolved
3582         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3583         return false.
3584         (dwarf2out_finish): Call output_location_lists after outputting
3585         .debug_info and .debug_abbrev instead of before.
3586
3587 2010-09-09  Roland McGrath  <roland@redhat.com>
3588
3589         * dwarf2out.c (DWARF_REF_SIZE): Define.
3590         (size_of_loc_descr): Use it for DW_OP_call_ref.
3591
3592 2010-09-09  Alan Modra  <amodra@gmail.com>
3593
3594         * doc/invoke.text: Reinstate mcmodel=medium.
3595         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3596         CMODEL_MEDIUM as default.
3597         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3598         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3599         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3600         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3601
3602 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3603
3604         PR target/45250
3605         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3606         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3607         (builtin_longjmp): Likewise.
3608         (allocate_stack): Use hard_frame_pointer_rtx instead of
3609         frame_pointer_rtx.
3610         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3611         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3612         (pa_can_eliminate): Likewise.
3613         (TARGET_INTERNAL_ARG_POINTER): Define.
3614         (TARGET_CAN_ELIMINATE): Define.
3615         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3616         pointer.
3617         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3618         (pa_internal_arg_pointer, pa_can_eliminate,
3619         pa_initial_elimination_offset): New.
3620         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3621         (HARD_FRAME_POINTER_REGNUM): Set to register three.
3622         (INITIAL_FRAME_POINTER_OFFSET): Delete.
3623         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3624         Define.
3625         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3626         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3627         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3628         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3629         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3630         new soft frame pointer.
3631         * config/pa/pa64-regs.h: Likewise.
3632
3633 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3634
3635         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3636         numerical constant.
3637         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3638
3639 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3640
3641         PR debug/45531
3642         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3643
3644 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3645
3646         PR debug/45419
3647         PR debug/45408
3648         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3649         qualifiers in otherwise equal MEM_REF pointer types.
3650         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3651         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3652
3653 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3654
3655         PR target/44392
3656         * config/arm/arm.md (bswapsi2): Handle condition correctly
3657         for armv6 and optimize_size.
3658
3659 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3660
3661         PR other/18555
3662         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3663
3664 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3665
3666         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3667         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3668         ix86_expand_strlen, legitimate_pic_address_disp_p,
3669         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3670         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3671         ix86_check_movabs, ix86_secondary_memory_needed): Change function
3672         prototype to bool.
3673         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3674         return_in_memory_ms_64, ix86_check_movabs,
3675         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3676         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3677         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3678         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3679         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3680         ix86_secondary_memory_needed): Change to bool.  Return
3681         "true" and "false" values.
3682         * config/i386/i386.md: Return "true" and "false" values.
3683
3684 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3685
3686         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3687         run_expensive_tests.
3688
3689 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3690
3691         * toplev.c (output_stack_usage): Use lbasename instead of basename.
3692
3693 2010-09-08  Martin Jambor  <mjambor@suse.cz>
3694
3695         PR other/45443
3696         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3697         at -O3.
3698
3699 2010-09-08  Richard Guenther  <rguenther@suse.de>
3700
3701         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3702         (visit): Adjust.
3703         (iterative_hash_gimple_type): Likewise.
3704         (gimple_type_hash): Likewise.
3705         (gimple_register_type): Likewise.
3706         (print_gimple_types_stats): Likewise.
3707         (free_gimple_type_tables): Likewise.
3708
3709 2010-09-08  Michael Matz  <matz@suse.de>
3710
3711         PR tree-optimization/43430
3712         * tree-vect-stmts.c (vectorizable_condition): Support multiple
3713         copies for conditional statements if it's not part of a reduction.
3714
3715 2010-09-08  Michael Matz  <matz@suse.de>
3716
3717         PR tree-optimization/33244
3718         * tree-ssa-sink.c (statement_sink_location): Don't sink into
3719         empty loop latches.
3720
3721 2010-09-08  Richard Guenther  <rguenther@suse.de>
3722
3723         PR tree-optimization/45578
3724         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3725         Be more careful when transfering alignment information to
3726         the new induction variable.
3727         (copy_ref_info): Likewise.
3728
3729 2010-09-08  Richard Guenther  <rguenther@suse.de>
3730
3731         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3732         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3733
3734 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
3735
3736         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3737         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3738
3739 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3740
3741         PR doc/45587
3742         * doc/md.texi: Fixed modes on several standard pattern names.
3743
3744 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
3745
3746         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3747         (ashl<mode>3): ...this.
3748         (loongson_psra<V_suffix>): Rename to...
3749         (ashr<mode>3): ...this.
3750         (loongson_psrl<V_suffix>): Rename to...
3751         (lshr<mode>3): ...this.
3752         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3753         (CODE_FOR_loongson_psllw): Define.
3754         (CODE_FOR_loongson_psrlh): Define.
3755         (CODE_FOR_loongson_psrlw): Define.
3756         (CODE_FOR_loongson_psrah): Define.
3757         (CODE_FOR_loongson_psraw): Define.
3758
3759 2010-09-07  Richard Henderson  <rth@redhat.com>
3760
3761         * tree-vect-data-refs.c: Include tm_p.h.
3762         * Makefile.in (tree-vect-data-refs.o): Update deps.
3763         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3764         Move delarations outside #ifdef RTX_CODE.
3765
3766 2010-09-07  Richard Henderson  <rth@redhat.com>
3767
3768         * final.c (rest_of_handle_final): Unconditionally do
3769         output_function_exception_table before assemble_end_function.
3770
3771 2010-09-07  Jan Hubicka  <jh@suse.cz>
3772
3773         * tree-inline.c (tree_inlinable_function_p): Do not test
3774         DECL_REPLACEABLE_P.
3775         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3776         update_callee_keys, cgraph_decide_inlining): Test function availability.
3777         * cif-code.def (OVERWRITABLE): New code.
3778
3779 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
3780             Jack Howarth  <howarth@bromo.med.uc.edu>
3781
3782         PR target/36502
3783         PR target/42313
3784         PR target/44651
3785         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3786         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3787         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3788         MAX macro.
3789
3790 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3791
3792         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3793         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3794
3795 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3796
3797         * config.gcc: Don't append t-android for Android targets.
3798
3799         * config/t-android: Removed.
3800
3801 2010-09-07  Richard Henderson  <rth@redhat.com>
3802
3803         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3804         * doc/tm.texi.in: Add doc marker.
3805         * doc/tm.texi: Rebuild.
3806         * except.c (switch_to_exception_section): Always build.
3807         (output_one_function_exception_table): Move section switch,
3808         personality output, and label output ...
3809         (output_function_exception_table): ... here.  Use the new
3810         personality hook.
3811
3812         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3813         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3814         TARGET_ASM_INIT_SECTIONS): New.
3815         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3816         make static.
3817         (TARGET_ASM_UNWIND_EMIT): Update to match.
3818         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3819
3820         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3821         (arm_asm_init_sections): New.
3822         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3823
3824 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3825
3826         * config/arm/arm.md: Remove unused variable.
3827
3828 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3829
3830         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3831         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3832         (m32r_memory_move_cost): New function.
3833
3834 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3835
3836         * config.gcc: Append t-android for Android targets.
3837
3838         * config/t-android: New.
3839
3840 2010-09-07  Richard Henderson  <rth@redhat.com>
3841
3842         * target.def (unwind_emit_before_insn): New hook.
3843         * doc/tm.texi.in: Add @hook marker for it.
3844         * doc/tm.texi: Rebuild.
3845         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3846
3847 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3848
3849         PR fortran/43665
3850         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3851         are any type attributes.
3852
3853 2010-09-07  Jan Hubicka  <jh@suse.cz>
3854
3855         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3856         array_ref_low_bound in string access folding.
3857
3858 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3859
3860         PR target/45206
3861         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3862         eh_return fixup sequence.
3863
3864 2010-09-07  Jan Hubicka  <jh@suse.cz>
3865
3866         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3867         gimple_min_invariant.
3868
3869 2010-09-07  Richard Guenther  <rguenther@suse.de>
3870
3871         PR middle-end/45569
3872         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3873         nor CONSTRUCTOR can trap.
3874         * tree-complex.c (update_complex_assignment): Update EH info.
3875
3876 2010-09-07  Richard Guenther  <rguenther@suse.de>
3877
3878         PR middle-end/45569
3879         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3880         * passes.c (execute_function_todo): Do not verify anything if
3881         we saw errors.
3882
3883 2010-09-07  Richard Guenther  <rguenther@suse.de>
3884
3885         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3886
3887 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3888
3889         PR target/43137
3890         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3891         New define_mode_attrs.
3892         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3893         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3894         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3895         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3896         Remove pool_range attribute.
3897         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3898         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3899         pool_range and neg_pool_range attributes.
3900         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3901         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3902         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3903
3904 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3905
3906         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3907         check glibc.
3908
3909 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3910
3911         PR target/22152
3912         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3913         *mov<mode>_internal_avx, *mov<mode>_internal,
3914         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3915         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3916
3917 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3918
3919         * c-typeck.c (do_warn_double_promotion): Remove.
3920         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3921         Objective-C++ too.
3922
3923 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3924
3925         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3926         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3927         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3928         argument type to reg_class_t. Change result type to bool.
3929         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3930
3931 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3932
3933         PR libobjc/19850
3934         * gthr-posix.h (__gthread_objc_thread_detach): Use
3935         _objc_thread_attribs when detaching a thread.
3936         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3937
3938 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3939
3940         PR target/45524
3941         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3942         * configure: Regenerated.
3943
3944 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3945
3946         * combine.c (try_combine): Set subst_low_luid to i0.
3947
3948 2010-09-06  Richard Guenther  <rguenther@suse.de>
3949
3950         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3951         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3952         (build_aligned_type): Declare.
3953         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3954         (check_aligned_type): New function.
3955         (build_aligned_type): Likewise.
3956         * expr.c (expand_assignment): Handle misaligned stores via
3957         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3958         (expand_expr_real_1): Likewise.
3959         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3960         * tree-vect-stmts.c (vectorizable_store): Do not build
3961         MISALIGNED_INDIRECT_REF but initialize alignment information.
3962         (vectorizable_load): Likewise.
3963         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3964         handling.
3965         * cfgexpand.c (expand_debug_expr): Likewise.
3966         * dwarf2out.c (loc_list_from_tree): Likewise.
3967         * fold-const.c (maybe_lvalue_p): Likewise.
3968         (operand_equal_p): Likewise.
3969         (build_fold_addr_expr_with_type_loc): Likewise.
3970         * gimplify.c (gimplify_addr_expr): Likewise.
3971         (gimplify_expr): Likewise.
3972         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3973         (verify_gimple_assign_single): Likewise.
3974         * tree-dump.c (dequeue_and_dump): Likewise.
3975         (tree_could_trap_p): Likewise.
3976         * tree-predcom.c (ref_at_iteration): Likewise.
3977         * tree-pretty-print.c (dump_generic_node): Likewise.
3978         (op_code_prio): Likewise.
3979         (op_symbol_code): Likewise.
3980         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3981         * tree-ssa-loop-im.c (for_each_index): Likewise.
3982         (gen_lsm_tmp_name): Likewise.
3983         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3984         (find_interesting_uses_address): Likewise.
3985         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3986         * tree-ssa-operands.c (get_expr_operands): Likewise.
3987         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3988         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3989         (ao_ref_init_from_vn_reference): Likewise.
3990         * tree.c (staticp): Likewise.
3991         (build1_stat): Likewise.
3992         (reference_alias_ptr_type): Likewise.
3993         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3994         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3995         MISALIGNED_INDIRECT_REF handling.
3996
3997 2010-09-06  Richard Guenther  <rguenther@suse.de>
3998
3999         PR tree-optimization/45534
4000         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
4001         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
4002         on the target.
4003         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
4004         valid on the target.
4005
4006 2010-09-06  Andreas Schwab  <schwab@redhat.com>
4007
4008         * configure.ac: Quote argument of AC_MSG_WARN.
4009         * configure: Regenerate.
4010
4011 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
4012
4013         * sel-sched.c (move_cond_jump): Correct arguments to
4014         maybe_tidy_empty_bb.
4015         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4016
4017 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
4018
4019         PR rtl-optimization/44919
4020         * sel-sched.c (move_cond_jump): Remove assert, check that
4021         the several blocks case can only happen with mutually exclusive
4022         insns instead.  Rewrite the movement code to support moving through
4023         several basic blocks.
4024
4025 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
4026
4027         * config/i386/i386.md (iptrsize): New mode attribute.
4028         (tp_seg): Ditto.
4029         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
4030         mode iterator.
4031         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
4032         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
4033         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
4034         (stack_tls_protect_set_<mode>): Ditto from
4035         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
4036         of thread base pointer load.
4037         (stack_tls_protect_test_<mode>): Ditto from
4038         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
4039         of thread base pointer load.
4040         (stack_protect_set): Rewrite using indirect functions.
4041         (stack_protect_test): Ditto.
4042         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
4043         (ix86_print_operand): Handle '@'.
4044
4045 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
4046
4047         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
4048         MINUS_EXPR.
4049
4050 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4051
4052         * doc/invoke.texi: Document -Wdouble-promotion.
4053         * c-typeck.c (convert_arguments): Check for implicit conversions
4054         from float to double.
4055         (do_warn_double_promotion): New function.
4056         (build_conditional_expr): Use it.
4057         (build_binary_op): Likewise.
4058
4059 2010-09-05  Richard Guenther  <rguenther@suse.de>
4060
4061         PR tree-optimization/45535
4062         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
4063         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
4064         dereferencing it.
4065         (indirect_refs_may_alias_p): Likewise.
4066
4067 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
4068
4069         * config/sh/sh.c (sh_option_override): Make static.
4070         Adjust comments.  Declare.
4071         (sh_function_value_regno_p): Likewise.
4072         (sh_register_move_cost): Modify the arguments, make static.
4073         Adjust comments.  Declare.
4074         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
4075         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4076         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
4077         REGISTER_MOVE_COST): Delete.
4078         * config/sh/sh-protos.h (sh_override_options): Delete.
4079         (sh_register_move_cost): Delete.
4080         (sh_function_value_regno_p): Delete.
4081
4082 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
4083
4084         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
4085         m32r_function_value_regno_p): New functions.
4086         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4087         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
4088         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
4089         FUNCTION_VALUE_REGNO_P): Remove.
4090
4091 2010-09-04  Jan Hubicka  <jh@suse.cz>
4092
4093         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
4094         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
4095         fold_read_from_constant_string.
4096
4097         * gimple.h (canonicalize_constructor_val): Declare.
4098         * gimple-fold.c (canonicalize_constructor_val): New function.
4099         (get_symbol_constant_value):Use it.
4100         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4101
4102 2010-09-04  Jan Hubicka  <jh@suse.cz>
4103
4104         * tree-switch-conversion.c (build_one_array): Set constructor to be
4105         static.
4106         * varpool.c (varpool_finalize_decl): Compute const_value_known.
4107
4108 2010-09-04  Richard Guenther  <rguenther@suse.de>
4109
4110         PR bootstrap/45519
4111         * tree-flow.h (force_gimple_operand_1): Declare.
4112         (force_gimple_operand_gsi_1): Likewise.
4113         * gimplify.c (force_gimple_operand_1): New worker taking a
4114         gimple predicate for ...
4115         (force_gimple_operand): ... which now wraps it.
4116         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
4117         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
4118         last change.
4119         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
4120         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
4121         (create_mem_ref): Likewise.
4122
4123 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
4124
4125         * config/i386/predicates.md (sse_reg_operand): New predicate.
4126         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
4127         predicate for operand 1.
4128         (XFmode push splitter): Use fp_register_operand predicate
4129         for operand 1.
4130         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
4131         (SF-DF float_extend push splitter): Add reload_completed insn
4132         predicate.
4133         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
4134         MODEF mode macro.  Add reload_completed insn predicate.
4135
4136 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
4137
4138         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
4139         (struct df_extract_ref): Remove.
4140         (union df_ref_d): Remove extract_ref member.
4141         (df_ref_create): Remove last three arguments.
4142         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
4143         * df-scan.c (df_ref_record): Remove last three arguments, do not
4144         pass them to df_ref_create_structure.
4145         (df_uses_record): Remove first and last three arguments.  Replace
4146         first argument with DF_REF_REGULAR, adjust calls to remove the
4147         width, offset and mode.  Always call recursively on the second
4148         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
4149         (df_ref_create_structure): Remove first argument.
4150         (struct df_scan_problem_data): Remove ref_extract_pool.
4151         (df_scan_free_internal): Do not free it.
4152         (df_scan_alloc): Do not allocate it.
4153         (df_ref_create): Remove last three arguments, do not pass them to
4154         df_ref_create_structure.
4155         (df_free_ref): Remove DF_REF_EXTRACT case.
4156         (df_notes_rescan): Adjust call to df_uses_record.
4157         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
4158         Remove DF_REF_EXTRACT case.
4159         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
4160         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
4161         and SUBREG definitions.
4162         (df_get_conditional_uses): Remove references to width/offset/mode,
4163         adjust call to df_ref_create_structure.
4164         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
4165         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
4166         calls to df_uses_record and df_ref_record.
4167         * fwprop.c (update_df): Remove references to width/offset/mode,
4168         adjust call to df_ref_create.
4169
4170 2010-09-03  Jan Hubicka  <jh@suse.cz>
4171
4172         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
4173         (build_cdtor_fns): Update use of build_cdtor.
4174
4175 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
4176
4177         * doc/options.texi (SeparateAlias): Document.
4178         * opt-functions.awk (switch_flags): Handle SeparateAlias.
4179         * opth-gen.awk: Generate enumeration names for options marked
4180         SeparateAlias, but not for those marked Ignore.
4181         * opts-common.c (generate_canonical_option): Don't output separate
4182         argument for options marked CL_SEPARATE_ALIAS.
4183         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
4184         * opts.h (CL_SEPARATE_ALIAS): New.
4185         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4186         CL_COMMON): Adjust definitions.
4187         * config/i386/darwin.opt, config/mips/sde.opt: New.
4188         * common.opt (fdump-final-insns): New.
4189         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4190         i386/darwin.opt.
4191         (mips*-sde-elf*): Add mips/sde.opt.
4192         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
4193         -mno-data-in-code and -mcode-xonly here.
4194         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
4195         * gcc.c (option_map): Add "j" to --dump entry.
4196         (translate_options): Don't translate -d to -foutput-class-dir= here.
4197
4198 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
4199
4200         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
4201         DR_IS_WRITE.
4202         (compute_all_dependences): Same.
4203         (create_rdg_edge_for_ddr): Same.
4204         * tree-data-ref.h (DR_IS_WRITE): New.
4205         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
4206         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
4207         (write_memrefs_written_at_least_once): Same.
4208         * tree-predcom.c (suitable_component_p): Same.
4209         (determine_roots_comp): Same.
4210         (execute_load_motion): Same.
4211         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
4212         (vect_enhance_data_refs_alignment): Same.
4213         (vect_analyze_group_access): Same.
4214
4215 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
4216
4217         PR testsuite/42843
4218         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
4219         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
4220
4221 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
4222
4223         * dwarf2out.c (file scope): Remove #if0'd code.
4224         (gen_subprogram_die): Same.
4225
4226 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
4227
4228         PR middle-end/45484
4229         * dwarf2out.c (flush_queued_reg_saves): Rename to...
4230         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
4231         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
4232         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
4233         * config/i386/i386.c (output_set_got): Call it.
4234
4235 2010-09-03  Michael Matz  <matz@suse.de>
4236
4237         PR middle-end/45415
4238         * tree-sra.c (sra_modify_assign): If we modify the statement,
4239         say so.
4240
4241         * tree-ssa.c (verify_ssa): Check number of operands and links
4242         per statement to agree.
4243
4244 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
4245             Iain Sandoe  <iains@gcc.gnu.org>
4246
4247         PR target/45476
4248         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
4249         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
4250         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4251
4252 2010-09-03  Richard Guenther  <rguenther@suse.de>
4253
4254         * lto-streamer-out.c (output_function): Output function
4255         start and end loci.
4256         * lto-streamer-in.c (input_function): Input function start
4257         and end loci.
4258
4259 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4260
4261         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
4262         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
4263         * configure: Regenerate.
4264         * aclocal.m4: Regenerate.
4265
4266 2010-09-03  Jan Hubicka  <jh@suse.cz>
4267
4268         PR lto/44812
4269         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
4270         on functions/variables in other partition.
4271
4272 2010-09-03  Jan Hubicka  <jh@suse.cz>
4273
4274         * cgraph.h (struct varpool_node): Add const_value_known.
4275         (varpool_decide_const_value_known): Declare.
4276         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
4277         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
4278         (input_varpool_node): Restore const_value_known.
4279         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
4280         initializer folding.
4281         * ipa.c (ipa_discover_readonly_nonaddressable_var,
4282         function_and_variable_visibility): Compute const_value_known.
4283         * gimple-fold.c (get_symbol_constant_value): Use varpool for
4284         initializer folding.
4285         * varpool.c (varpool_decide_const_value_known): New function.
4286
4287 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
4288
4289         * config/i386/i386.md: Remove empty preparation statements
4290         from splitters.
4291
4292 2010-09-03  Jan Hubicka  <jh@suse.cz>
4293
4294         * passes.c (rest_of_decl_compilation): Do not add local vars into
4295         varpool.
4296         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
4297         static or extern vars are in varpool.
4298         (varpool_finalize_decl): Sanity check that only static vars are
4299         finalized.
4300
4301 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
4302
4303         PR debug/45500
4304         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
4305         not just generic vectors with BLKmode.
4306
4307 2010-09-03  Richard Guenther  <rguenther@suse.de>
4308
4309         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
4310         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
4311         * tree.h (TMR_SYMBOL): Remove.
4312         (TMR_BASE, TMR_OFFSET): Adjust.
4313         (TMR_INDEX2): New.
4314         * alias.c (ao_ref_from_mem): Use TMR_BASE.
4315         * builtins.c (get_object_alignment): Merge TMR_BASE and
4316         TMR_SYMBOL handling.
4317         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
4318         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
4319         handling.  Also allow TARGET_MEM_REF as base address.
4320         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
4321         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
4322         base.  Gimplify TMR_INDEX2.
4323         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
4324         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4325         (get_addr_base_and_unit_offset): Likewise.
4326         * tree-eh.c (tree_could_trap_p): Likewise.
4327         * tree-pretty-print.c (dump_generic_node): Likewise.
4328         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
4329         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
4330         base to index2.
4331         (get_address_description): Reconstruct addres description
4332         from merged TMR_BASE and TMR_INDEX2.
4333         (maybe_fold_tmr): Fold propagated addresses.
4334         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
4335         MEM_REF and TARGET_MEM_REF paths.
4336         (indirect_refs_may_alias_p): Likewise.
4337         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
4338         instead of TMR_SYMBOL.
4339         * tree-ssa-operands.c (get_tmr_operands): Simplify.
4340         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
4341         according to changes ...
4342         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
4343         Split TARGET_MEM_REF into two fields plus the base.
4344         * tree.c (mem_ref_offset): Simplify.
4345         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
4346         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
4347         Strip NOPs when folding MEM_REF addresses.
4348         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
4349         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
4350         (fold_gimple_assign): ... not here.
4351
4352 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
4353
4354         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
4355         * config/mips/mips.c (mips_shift_truncation_mask): New function.
4356         (TARGET_SHIFT_TRUNCATION_MASK): Define.
4357
4358 2010-09-02  Richard Henderson  <rth@redhat.com>
4359
4360         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
4361         instead of readelf in the test.
4362         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
4363         in the .debug_frame section for coff targets.
4364         * configure: Rebuild.
4365
4366 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4367
4368         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
4369         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
4370         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4371         (m32c_class_likely_spilled_p): Make static. Change argument type to
4372         reg_class_t. Change result type to bool.
4373
4374 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4375
4376         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
4377         to convert (double)(long) into a single FRIZ instruction or not
4378         when -ffast-math is used.
4379
4380         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
4381         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
4382         or FRIZ instruction if -ffast-math.
4383         * config/rs6000/rs6000.md (friz): Ditto.
4384
4385         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
4386
4387 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4388
4389         * opth-gen.awk (quote, comma): Remove unused variables.
4390
4391 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
4392
4393         * arm.c (arm_override_options): Correct fall-back code to use
4394         SUBTARGET_CPU_DEFAULT.
4395
4396 2010-09-02  Julian Brown  <julian@codesourcery.com>
4397
4398         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
4399         unspecs.
4400         (vcond<mode>, vcondu<mode>): New expanders.
4401         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
4402         comparisons with zero.
4403         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
4404         * config/arm/constraints.md (Dz): New constraint.
4405
4406 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4407
4408         * target.def (class_likely_spilled_p): New hook.
4409         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
4410         * doc/tm.texi: Regenerate.
4411         * targhooks.c (default_class_likely_spilled_p): New function.
4412         * targhooks.h (default_class_likely_spilled_p): Declare.
4413         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
4414         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
4415         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
4416         Use fixed_reg_set instead of fixed_regs.
4417         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4418         * calls.c (avoid_likely_spilled_reg): Ditto.
4419         * ira-conflicts.c (ira_build_conflicts): Ditto.
4420         * ira.c (update_equiv_regs): Ditto.
4421         * mode-switching.c (create_pre_exit): Ditto.
4422         * regmove.c (find_matches): Ditto.
4423         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4424         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
4425         (small_register_class_p): New inline function.
4426         (push_secondary_reload, find_reusable_reload, find_reloads): Use
4427         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
4428
4429         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
4430         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
4431         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4432
4433 2010-09-02  Richard Guenther  <rguenther@suse.de>
4434
4435         PR tree-optimization/44937
4436         PR tree-optimization/45412
4437         * ipa-split.c (split_function): Properly remove PHI nodes.
4438
4439 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4440
4441         * opts.h (struct cl_option): Add warn_message field.
4442         (struct cl_decoded_option): Add warn_message field.
4443         * doc/options.texi (Ignore, Warn): Document.
4444         * opt-functions.awk (needs_state_p): Don't consider aliases or
4445         ignored options to need state saved.
4446         * optc-gen.awk: Handle Warn and Ignore.
4447         * opth-gen.awk: Output OPT_SPECIAL_ignore.
4448         * opts-common.c (decode_cmdline_option): Set warn_message field.
4449         Handle ignored options.
4450         (decode_cmdline_options_to_array, generate_option,
4451         generate_option_input_file): Set warn_message field.
4452         (read_cmdline_option): Generate warnings from warn_message field.
4453         Handle ignored options.
4454         * common.opt (Wunreachable-code, fargument-alias,
4455         fargument-noalias, fargument-noalias-global,
4456         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4457         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4458         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4459         ftree-salias): Mark Ignore.
4460         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4461         -mintel-syntax and -mno-intel-syntax here.
4462         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4463         using Warn.
4464         * opts.c (common_handle_option): Don't handle options marked as
4465         ignored.
4466         (enable_warning_as_error): Handle ignored options.
4467
4468 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4469
4470         PR driver/44076
4471         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4472         alias_target fields.
4473         * opt-functions.awk (opt_sanitized_name): Don't handle
4474         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4475         * optc-gen.awk: Generate alias fields.
4476         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4477         Don't generate such constants for aliases.
4478         * opts-common.c (generate_canonical_option): New.
4479         (decode_cmdline_option): Handle aliases.  Use
4480         generate_canonical_option for known options instead of copying the
4481         input option text.
4482         * doc/options.texi (Alias): Document.
4483         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4484         fstack-check, specs): Mark as aliases.
4485         * gcc.c (driver_handle_option): Canonicalize -L options to joined
4486         arguments.
4487         (driver_handle_option): Don't handle OPT_specs.
4488         * opts.c (common_handle_option): Don't handle options marked as
4489         aliases.
4490         (enable_warning_as_error): Handle aliases.
4491         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4492         OPT_Wlarger_than_eq.
4493         * tree-optimize.c (tree_rest_of_compilation): Use
4494         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4495
4496 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4497
4498         * config/i386/i386.md (nonmemory_operand): New mode attribute.
4499         (push memory peephole2): Macroize peepholes using SWI mode iterator.
4500         (move immediate to memory peephole2): Macroize peepholes using
4501         SWI124 mode iterator.
4502         (non-pairable NOT peephole2): Macroize peepholes using SWI124
4503         mode iterator.
4504         (simple lea add peephole2): Macroize peepholes using SWI48
4505         mode iterator.
4506         (simple lea mult peephole2): Ditto.
4507         (imul by 3,5,9 to lea peephole2): Ditto.
4508         (mov $-1, reg peephole2): Macroize peepholes using SWI248
4509         mode iterator.
4510         (imul $32bit_imm,mem,reg peephole2): Ditto.
4511         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4512
4513 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
4514
4515         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4516
4517 2010-09-02  Olivier Hainque  <hainque@adacore.com>
4518
4519         PR middle-end/44763
4520         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4521         (allocno_priority_compare_func): Use it instead of a straight
4522         difference computation over priorities.
4523
4524 2010-09-02  Andi Kleen  <ak@linux.intel.com>
4525
4526         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4527
4528 2010-09-02  Ira Rosen  <irar@il.ibm.com>
4529
4530         * tree-vectorizer.h (get_later_stmt): New function.
4531         (vect_analyze_data_ref_dependences): Add argument.
4532         * tree-vect-loop.c (vect_analyze_loop): Update call to
4533         vect_analyze_data_ref_dependences.
4534         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4535         New function.
4536         (vect_analyze_data_ref_dependence): Add argument for basic block
4537         dependencies. Check dependencies in basic block vectorization.
4538         (vect_analyze_data_ref_dependences): Add argument and update call to
4539         vect_analyze_data_ref_dependences.
4540         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4541         (vect_bb_vectorizable_with_dependencies): New.
4542         (vect_slp_analyze_bb): Check dependencies in basic block.
4543         (vect_schedule_slp_instance): Insert stores before the last store in
4544         SLP instance.
4545
4546 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4547
4548         PR target/45476
4549         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4550         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4551
4552 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
4553
4554         PR middle-end/45458
4555         * bb-reorder.c (add_labels_and_missing_jumps): Treat
4556         bbs ending with throwing insns like blocks ending with a call.
4557         (fix_up_fall_thru_edges): Likewise.
4558
4559 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
4560
4561         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4562         (m32c_function_arg_advance): Delete.
4563         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4564         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
4565         comments.  Take a const_tree and a bool.  Declare.
4566         (m32c_function_arg_advance): Likewise.
4567         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4568
4569 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4570
4571         PR target/45476
4572         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4573         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4574         * config/i386/mingw32.h: ... here.
4575
4576 2010-09-01  Andi Kleen  <ak@linux.intel.com>
4577
4578         PR lto/45475
4579         * lto-streamer-in.c (lto_input_ts_target_option): Add.
4580         (lto_input_tree_pointers): Call lto_input_ts_target_option.
4581         * lto-streamer-out (lto_output_ts_target_option): Add.
4582         (lto_output_tree_pointers): Call lto_output_ts_target_option.
4583
4584 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
4585
4586         PR/target 45452
4587         * config/i386/cygwin.h: Change order of specified import libraries.
4588         * config/i386/mingw32.h: Likewise.
4589         * config/i386/t-cygwin: Likewise.
4590         * config/i386/t-mingw32: Likewise.
4591         * config/i386/t-mingw-w32: Likewise.
4592         * config/i386/t-mingw-w64: Likewise.
4593
4594 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4595
4596         * config/arm/neon-schedgen.ml (core): New type.
4597         (allCores): List of supported cores.
4598         (availability_table): Add supported cores.
4599         (collate_bypasses): Accept core as a parameter.
4600         (worst_case_latencies_and_bypasses): Accept core as a parameter.
4601         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
4602         and coreStr to get tune attribute and prefix for functional units.
4603         (emit_bypasses): Accept core name and use it.
4604         (calculate_per_core_availability_table): New.
4605         (filter_core): New.
4606         (calculate_core_availability_table): New.
4607         (main): Use calculate_core_availablity_table.
4608         * config/arm/cortex-a8-neon.md: Update copyright year.
4609         Regenerated from ml file and merged in.
4610         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4611         cortex_a8_neon_mrc.
4612
4613 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
4614
4615         * Makefile.in (tree-switch-conversion.o): Update dependencies.
4616
4617 2010-09-01  Richard Guenther  <rguenther@suse.de>
4618
4619         * alias.c (ao_ref_from_mem): Adjust.
4620         * builtins.c (get_object_alignment): Likewise.
4621         * cfgexpand.c (expand_debug_expr): Likewise.
4622         * gimple.c (get_base_address): Likewise.
4623         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4624         (get_addr_base_and_unit_offset): Likewise.  Fix for
4625         both TMR_SYMBOL and TMR_BASE being set.
4626         * tree-eh.c (tree_could_trap_p): Likewise.
4627         * gimplify.c (gimplify_expr): Do not attempt to gimplify
4628         TMR_SYMBOL.  Always gimplify TMR_BASE.
4629         * tree-cfg.c (verify_types_in_gimple_reference): Verify
4630         TMR_BASE if there is a TMR_SYMBOL.
4631         * tree-pretty-print.c (dump_generic_node): Adjust.
4632         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4633         (tree_mem_ref_addr): Likewise.
4634         (create_mem_ref_raw): Likewise.
4635         (move_fixed_address_to_symbol): Likewise.
4636         (create_mem_ref): Likewise.
4637         (dump_mem_address): Likewise.
4638         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4639         Fix for both TMR_SYMBOL and TMR_BASE being set.
4640         (indirect_refs_may_alias_p): Likewise.
4641         * tree-ssa-operands.c (get_tmr_operands): Adjust.
4642         * tree.def (TARGET_MEM_REF): Adjust documentation.
4643
4644 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4645
4646         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4647         Rename from X86_TUNE_ADD_ESP_4.
4648         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4649         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4650         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4651         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4652         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4653         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4654         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4655         * config/i386/i386.c (initial_ix86_tune_features)
4656         <X86_TUNE_SINGLE_POP>: Invert members.
4657         <X86_TUNE_DOUBLE_POP>: Ditto.
4658         <X86_TUNE_SINGLE_PUSH>: Ditto.
4659         <X86_TUNE_DOUBLE_PUSH>: Ditto.
4660         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4661         No longer exported.
4662         (push peephole2 patterns): Macroize peepholes using P mode iterator.
4663         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4664         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4665         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4666
4667 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4668
4669         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4670         a volatile LHS if the constructor has only one element.
4671
4672 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
4673
4674         PR bootstrap/45321
4675         * tree.c (stdarg_p): Make fntype parameter const.
4676         * tree.h (stdarg_p): Likewise.
4677         (function_args_iterator): Remove unused fntype field.
4678         (function_args_iter_init): Do not initialize fntype
4679         field.  Make fntype parameter const.
4680
4681 2010-09-01  Richard Guenther  <rguenther@suse.de>
4682
4683         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4684         estimate.
4685         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4686         (execute_vrp): Compute number of iteration estimates.
4687         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4688         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4689         * tree-data-ref.c (estimated_loop_iterations): Adjust.
4690         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4691         Infer loop bounds from undefined behavior based on a new parameter.
4692         (estimate_numbers_of_iterations): Likewise.
4693         (scev_probably_wraps_p): Adjust.
4694         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4695
4696 2010-09-01  Nick Clifton  <nickc@redhat.com>
4697
4698         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4699         where appropriate.
4700         (xstormy16_legitimate_address_p): Use true and false instead of 1
4701         and 0.
4702         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4703         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4704         magic constant 2.
4705         (xstormy16_expand_call): Fix comment at start of function.
4706
4707 2010-09-01  Nick Clifton  <nickc@redhat.com>
4708
4709         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4710         when pushing accumulator register.
4711         (rx_get_stack_layout): Always save call clobbered registers inside
4712         interrupt handlers.
4713         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4714
4715 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4716
4717         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4718         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4719
4720         * libgcc-std.ver (GCC_4.6.0): Define version.
4721
4722 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4723
4724         * tree-nested.c (convert_all_function_calls): Iterate until after the
4725         sum of static chains in the nest doesn't change.
4726
4727 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
4728
4729         * config/m32c/m32c.c (classes_intersect): Remove.
4730         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4731         reg_classes_intersect_p instead of classes_intersect.
4732         (class_can_hold_mode): Change arguments type from enum reg_class to
4733         reg_class_t.  Use reg_class_contents instead of class_contents.
4734         (m32c_register_move_cost): Make static. Change arguments type from
4735         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4736         classes_intersect. Use reg_class_contents instead of class_contents.
4737         (m32c_memory_move_cost): Make static. Change arguments type from
4738         enum reg_class to reg_class_t.
4739         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4740         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4741         * config/m32c/m32c-protos.h (m32c_register_move_cost,
4742         m32c_memory_move_cost): Remove.
4743
4744 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4745
4746         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4747         (arm_function_arg): Delete.
4748         (arm_needs_doubleword_align): Take a const_tree.
4749         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4750         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4751         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4752         (arm_function_arg): Make static.  Take a const_tree and a bool.
4753         (arm_function_arg_advance): Likewise.
4754         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4755
4756 2010-08-31  Andi Kleen  <ak@linux.intel.com>
4757
4758         * common.opt (fwhopr=): Update for -fwhopr=jobserver
4759         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4760         * lto-wrapper.c (run_gcc): Add jobserver mode.
4761         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4762         argument.
4763
4764 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
4765
4766         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4767         (popsi1): Ditto.
4768         (*popdi1_epilogue): Ditto.
4769         (*popsi1_epilogue): Ditto.
4770         (popsi, popdi peephole2 patterns): Update peepholes for changed
4771         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4772
4773         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4774         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4775
4776         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4777         (override_options): Do not initialize removed ix86_gen_pop1.
4778         (gen_pop): New static function.
4779         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4780         (release_scratch_register_on_entry): Ditto.
4781         (ix86_restore_reg_using_pop): Ditto.
4782         (ix86_expand_epilogue): Ditto.
4783
4784 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
4785
4786         PR middle-end/45461
4787         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4788
4789 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4790
4791         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4792         semicolons.
4793
4794 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4795
4796         * doc/extend.texi: Fix documentation of the return value of
4797         __builtin_choose_expr.
4798
4799 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4800
4801         * config/v850/v850-protos.h (function_arg): Delete.
4802         * config/v850/v850.h (FUNCTION_ARG): Delete.
4803         (FUNCTION_ARG_ADVANCE): Move code to...
4804         * config/v850/v850.c (v850_function_arg_advance): ...here.
4805         (v850_function_arg): Make static.  Take a const_tree and a bool.
4806         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4807
4808 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4809
4810         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4811         these...
4812         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4813         ...and these...
4814         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4815         ..to here..
4816         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4817         ...and here.
4818         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4819
4820 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4821
4822         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4823         Delete.
4824         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4825         * config/rx/rx.c (rx_function_arg_size): Make static.
4826         (rx_function_arg): Likewise.
4827         (rx_function_arg_advance): New function.
4828         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4829
4830 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4831
4832         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4833         Fix indentation.
4834
4835 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4836
4837         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4838         (dwarf2out_decl) <CONST_DECL>: Likewise.
4839
4840 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4841
4842         Stack usage support
4843         * common.opt (-fstack-usage): New option.
4844         * doc/invoke.texi (Debugging options): Document it.
4845         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4846         allocate_dynamic_stack_space.
4847         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4848         and propagate it to allocate_dynamic_stack_space.
4849         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4850         * calls.c (initialize_argument_information): Pass TRUE as 4th
4851         argument to allocate_dynamic_stack_space.
4852         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4853         to 1 when pushing a variable-sized argument onto the stack.  Pass
4854         TRUE as 4th argument to allocate_dynamic_stack_space.
4855         Update current_function_pushed_stack_size.
4856         (emit_library_call_value_1): Likewise.
4857         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4858         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4859         attempt to find an upper bound.  Remove redundant code for the
4860         SETJMP_VIA_SAVE_AREA case.
4861         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4862         * function.h (struct stack_usage): New structure.
4863         (current_function_static_stack_size): New macro.
4864         (current_function_dynamic_stack_size): Likewise.
4865         (current_function_pushed_stack_size): Likewise.
4866         (current_function_dynamic_alloc_count): Likewise.
4867         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4868         (current_function_allocates_dynamic_stack_space): Likewise.
4869         (struct function): Add new field 'su'.
4870         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4871         add the value of the dynamic offset to the dynamic stack usage.
4872         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4873         for variable-sized objects.
4874         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4875         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4876         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4877         BUILT_IN_ALLOCA for variable-sized objects.
4878         * output.h (output_stack_usage): Declare.
4879         * toplev.c (stack_usage_file): New file pointer.
4880         (output_stack_usage): New function.
4881         (open_auxiliary_file): Likewise.
4882         (lang_dependent_init): Open file if flag_stack_usage is set.
4883         (finalize): Close file if stack_usage_file is not null.
4884         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4885         * config/alpha/alpha.c (compute_frame_size): New function.
4886         (alpha_expand_prologue): Use it.
4887         (alpha_start_function): Likewise.
4888         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4889         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4890         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4891         * config/mips/mips.c (mips_expand_prologue): Likewise.
4892         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4893         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4894         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4895
4896 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4897
4898         PR tree-optimization/45427
4899         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4900         Handle the case that the exit is never taken correctly.
4901         (number_of_iterations_ne): Pass exit_must_be_taken to
4902         number_of_iterations_ne_max.
4903
4904 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4905
4906         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4907         Infer -mdspr2 for the the 74K.
4908
4909 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4910
4911         PR debug/45419
4912         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4913
4914         PR middle-end/45423
4915         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4916         and TRUTH_{AND,OR,XOR}_EXPR.
4917         * c-parser.c (c_parser_omp_atomic): Handle boolean
4918         {PRE,POST}_{INC,DEC}REMENT.
4919
4920 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4921
4922         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4923         (function_arg): Delete.
4924         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4925         (FUNCTION_INCOMING_ARG): Delete.
4926         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4927         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4928         and a bool.
4929         (function_arg): Rename to...
4930         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4931         a bool.
4932         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4933         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4934         (TARGET_FUNCTION_INCOMING_ARG): Define.
4935
4936 2010-08-30  Richard Guenther  <rguenther@suse.de>
4937
4938         PR tree-optimization/21602
4939         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4940         using points-to information.
4941
4942 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4943
4944         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4945
4946 2010-08-30  Richard Guenther  <rguenther@suse.de>
4947
4948         PR tree-optimization/45449
4949         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4950         variables.
4951
4952 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4953
4954         * opts.h (CL_ERR_NEGATIVE): Define.
4955         * opts.c (unknown_option_callback): Don't postpone warnings for
4956         options marked with CL_ERR_NEGATIVE.
4957         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4958         for negative versions of CL_REJECT_NEGATIVE options.
4959
4960 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4961
4962         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4963         zero_extendsidi2_32.
4964         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4965         using SWI12 mode iterator.
4966         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4967         to define_insn_and_split pattern.
4968         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4969         using SWI24 mode iterator.
4970         (*zero_extendqi<mode>2_and): Macroize insn from
4971         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4972         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4973         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4974         SWI24 mode iterator.
4975         (*zero_extendqi<mode>2_movzbl): Ditto from
4976         *zero_extendqi{hi,si}2_movzbl.
4977         (extendsidi2_1): Rename from extendsidi2_32.
4978         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4979         SWI12 mode iterator.
4980
4981 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4982
4983         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4984         general purpose registers.
4985         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4986         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4987         with general purpose registers and memory operands.  Add associated
4988         CCImode post-reload splitter.
4989         * config/ia64/div.md: Change BImode to CCImode throughout.
4990
4991 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4992
4993         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4994
4995 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
4996
4997         * config/picochip/picochip.c (reorder_var_tracking_notes): This
4998         function was dropping debug insns which caused PR45299.
4999
5000 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
5001
5002         * config/i386/sse.md (extsuffix): New code attribute.
5003         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
5004         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
5005         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
5006         and sse4_1_zero_extendv4qiv4si2.
5007         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
5008         and sse4_1_zero_extendv2qiv2di2.
5009         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
5010         and sse4_1_zero_extendv4hiv4si2.
5011         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
5012         and sse4_1_zero_extendv2hiv2di2.
5013         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
5014         and sse4_1_zero_extendv2siv2di2
5015
5016         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
5017         using any_extend code iterator.
5018         (*avx_<s>mulv8hi3_highpart): Macroize insn from
5019         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
5020         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
5021
5022         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
5023         gen_sse4_1_sign_extend* functions.
5024         (struct builtin_description bdesc_args): Ditto.
5025
5026 2010-08-27  Xinliang David Li  <davidxl@google.com>
5027
5028         PR/45422
5029         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
5030         (iv_ca_set_no_cp): Update used inv expr count.
5031         (iv_ca_set_cp): Ditto.
5032         (iv_ca_new): Initialize new member.
5033         (iv_ca_free): Free memory.
5034
5035 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5036
5037         * config/sh/sh-protos.h (sh_function_arg): Delete.
5038         (sh_function_arg_advance): Delete.
5039         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5040         (PASS_IN_REG_P): Eliminate cast.
5041         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
5042         const_tree and a bool.
5043         (sh_function_arg): Likewise.
5044         (sh_output_mi_thunk): Call sh_function_arg_advance) and
5045         sh_function_arg.
5046         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5047
5048 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
5049             Kaz Kojima  <kkojima@gcc.gnu.org>
5050
5051         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
5052         when possible.
5053         (sh_expand_epilogue): Likewise.
5054         * config/sh/sh.md (movml_push_banked): New insn.
5055         (movml_pop_banked): Likewise.
5056
5057 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
5058
5059         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
5060         gen_regexp_oneof, gen_regexp_sequence): Use the string found
5061         in vector element 0 rather than the original string when there's
5062         only one element.
5063         (gen_regexp): Remove extra semicolon.
5064
5065         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
5066         thumb2_movsf_vfp): Set attribute "insn".
5067         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
5068         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
5069         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
5070         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
5071         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
5072         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
5073         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
5074         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
5075         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
5076         if_not_arith, if_arith_not, cond_move_not): Likewise.
5077
5078 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5079
5080         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
5081         New declaration.
5082         (rs6000_allocate_stack_temp): Ditto.
5083         (rs6000_expand_convert_si_to_sfdf): Ditto.
5084
5085         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
5086         line.  Update the options set if power6 or power7 server/embedded
5087         type options are used.  If we give a warning for no vsx under
5088         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
5089         (rs6000_allocate_stack_temp): New function to allocate a stack
5090         tempoary and adjust the address so it meets either REG+OFFSET or
5091         REG+REG addressing requirements.
5092         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
5093         that they can be used with the LFIWAX/LFIWZX instrucitons.
5094         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
5095         converting signed/unsigned SImode to either SFmode/DFmode.
5096
5097         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
5098         whether certain instructions can be generated.
5099         (TARGET_FCTIDZ): Ditto.
5100         (TARGET_STFIWX): Ditto.
5101         (TARGET_LFIWAX): Ditto.
5102         (TARGET_LFIWZX): Ditto.
5103         (TARGET_FCFIDS): Ditto.
5104         (TARGET_FCFIDU): Ditto.
5105         (TARGET_FCFIDUS): Ditto.
5106         (TARGET_FCTIDUZ): Ditto.
5107         (TARGET_FCTIWUZ): Ditto.
5108
5109         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
5110         (UNSPEC_FCTID): Ditto.
5111         (UNSPEC_LFIWAX): Ditto.
5112         (UNSPEC_LFIWZX): Ditto.
5113         (UNSPEC_FCTIWUZ): Ditto.
5114         (rreg): Use correct constraints.
5115         (SI_CONVERT_FP): New mode attribute for floating point conversion
5116         tests.
5117         (E500_CONVERT): Ditto.
5118         (lfiwax): New insns for converting from integer to floating point
5119         utilizing newer instructions.  Attempt to optimize conversions
5120         that come from memory so that we don't load the value into a GPR,
5121         spill it to the stack and reload it into a FPR.
5122         (floatsi<mode>2_lfiwax): Ditto.
5123         (floatsi<mode>2_lfiwax_mem): Ditto.
5124         (floatsi<mode>2_lfiwax_mem2): Ditto.
5125         (lfiwzx): Ditto.
5126         (floatunssi<mode>2_lfiwzx): Ditto.
5127         (floatunssi<mode>2_lfiwzx_mem): Ditto.
5128         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5129         (floatdidf2_mem): Ditto.
5130         (floatunsdidf2_fcfidu): Ditto.
5131         (floatunsdidf2_mem): Ditto.
5132         (floatunsdisf2): Ditto.
5133         (floatunsdisf2_fcfidus): Ditto.
5134         (floatunsdisf2_mem): Ditto.
5135         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
5136         Use FCFID on 32-bit hosts that support it.
5137         (floatsidf2_internal): Ditto.
5138         (floatunssisf2): Ditto.
5139         (floatunssidf2): Ditto.
5140         (floatunssidf2_internal): Ditto.
5141         (floatsisf2): Ditto.
5142         (floatdidf2): Ditto.
5143         (floatdidf2_fpr): Ditto.
5144         (floatunsdidf2): Ditto.
5145         (floatdisf2): Ditto.
5146         (floatdisf2_fcfids): Ditto.
5147         (floatdisf2_internal1): Ditto.
5148         (fixuns_truncsfsi2): Delete, merge into common pattern for both
5149         SF/DF.  Add power7 support.
5150         (fix_truncsfsi2): Ditto.
5151         (fixuns_truncdfsi2): Ditto.
5152         (fixuns_truncdfdi2): Ditto.
5153         (fix_truncdfsi2): Ditto.
5154         (fix_truncdfsi2_internal): Ditto.
5155         (fix_truncdfsi2_internal_gfxopt): Ditto.
5156         (fix_truncdfsi2_mfpgpr): Ditto.
5157         (fctiwz): Ditto.
5158         (btruncdf2): Ditto.
5159         (btruncdf2_fpr): Ditto.
5160         (btructsf2): Ditto.
5161         (ceildf2): Ditto.
5162         (ceildf2_fpr): Ditto.
5163         (ceilsf2): Ditto.
5164         (floordf2): Ditto.
5165         (floordf2_fpr): Ditto.
5166         (floorsf2): Ditto.
5167         (rounddf2): Ditto.
5168         (rounddf2_fpr): Ditto.
5169         (roundsf2): Ditto.
5170         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
5171         (fix_trunc<mode>di2): Ditto.
5172         (fixuns_trunc<mode>si2): Ditto.
5173         (fixuns_trunc<mode>di2): Ditto.
5174         (fctiwz_<mode>): Ditto.
5175         (btrunc<mode>2): Ditto.
5176         (btrunc<mode>2_fpr): Ditto.
5177         (ceil<mode>2): Ditto.
5178         (ceil<mode>2_fpr): Ditto.
5179         (floor<mode>2): Ditto.
5180         (float<mode>2_fpr): Ditto.
5181         (round<mode>2): Ditto.
5182         (round<mode>2_fpr): Ditto.
5183         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
5184         (fixuns_trunc<mode>si2_stfiwx): Ditto.
5185         (fix_truncdfsi2_internal): Ditto.
5186         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
5187         converted value on stack, loaded into GPR, and then stored into
5188         the final destination.
5189         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
5190         FCTIDZ.
5191         (lrint<mode>di2): New insn, provide the lrint builtin functions.
5192         (ftruncdf2): Delete, unused.
5193         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
5194
5195         * config/rs6000/vsx.md (toplevel): Update copyright year.
5196         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
5197         (VSr3): Ditto.
5198
5199 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
5200             Jeremie Salvucci  <jeremie.salvucci@free.fr>
5201
5202         * gengtype.c (output_type_enum): Test the right union member.
5203
5204 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
5205
5206         PR target/41484
5207         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
5208         operands for operand 1.
5209         (sse4_1_extendv4qiv4si2): Ditto.
5210         (sse4_1_extendv2qiv2di2): Ditto.
5211         (sse4_1_extendv4hiv4si2): Ditto.
5212         (sse4_1_extendv2hiv2di2): Ditto.
5213         (sse4_1_extendv2siv2di2): Ditto.
5214         (sse4_1_zero_extendv8qiv8hi2): Ditto.
5215         (sse4_1_zero_extendv4qiv4si2): Ditto.
5216         (sse4_1_zero_extendv2qiv2di2): Ditto.
5217         (sse4_1_zero_extendv4hiv4si2): Ditto.
5218         (sse4_1_zero_extendv2hiv2di2): Ditto.
5219         (sse4_1_zero_extendv2siv2di2): Ditto.
5220         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
5221         (*sse4_1_extendv4qiv4si2): Ditto.
5222         (*sse4_1_extendv2qiv2di2): Ditto.
5223         (*sse4_1_extendv4hiv4si2): Ditto.
5224         (*sse4_1_extendv2hiv2di2): Ditto.
5225         (*sse4_1_extendv2siv2di2): Ditto.
5226         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
5227         (*sse4_1_zero_extendv4qiv4si2): Ditto.
5228         (*sse4_1_zero_extendv2qiv2di2): Ditto.
5229         (*sse4_1_zero_extendv4hiv4si2): Ditto.
5230         (*sse4_1_zero_extendv2hiv2di2): Ditto.
5231         (*sse4_1_zero_extendv2siv2di2): Ditto.
5232
5233 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5234
5235         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
5236         (mips_function_arg): Delete.
5237         (mips_function_arg_boundary): Take a const_tree.
5238         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
5239         (mips_arg_info): Likewise.
5240         (mips_setup_incoming_varargs): Call mips_function_arg_advance
5241         instead of FUNCTION_ARG_ADVANCE.
5242         (mips_function_arg_advance): Adjust prototype.  Make static.
5243         (mips_function_arg): Likewise.
5244         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5245         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5246
5247 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5248
5249         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5250         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
5251         (function_arg): Delete.
5252         (function_arg_boundary): Take a const_tree.
5253         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
5254         (rs6000_spe_function_arg): Likewise.
5255         (rs6000_parm_start): Likewise.
5256         (rs6000_arg_size): Likewise.
5257         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
5258         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
5259         (rs6000_mixed_function_arg): Likewise.
5260         (function_arg): Rename to...
5261         (rs6000_function_arg): ...this.
5262         (function_arg_advance): Rename to...
5263         (rs6000_function_arg_advance_1): ...this
5264         (rs6000_function_arg_advance): New function.  Call it.
5265         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
5266         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
5267         (rs6000_function_value): Likewise.
5268         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5269
5270 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5271
5272         * config/arm/arm.md (enabled): Test the value of arch_enabled
5273         rather than just using it.
5274
5275 2010-08-27  Olivier Hainque  <hainque@adacore.com>
5276             Eric Botcazou  <ebotcazou@adacore.com>
5277
5278         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
5279         cover all the possible offsets from this base.
5280         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
5281
5282 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
5283
5284         PR tree-optimization/44485
5285         * calls.c (flags_from_decl_or_type): For const or pure
5286         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
5287         together with ECF_CONST resp. ECF_PURE.
5288         * builtins.c (expand_builtin): Use flags_from_decl_or_type
5289         instead of querying flags directly.
5290         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
5291         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
5292
5293 2010-08-26  Richard Guenther  <rguenther@suse.de>
5294
5295         PR tree-optimization/45255
5296         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
5297         and externals are also invariant.
5298
5299 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5300
5301         PR rtl-optimization/44858
5302         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
5303         newi2pat, make sure they don't affect newpat.
5304
5305         PR rtl-optimization/45400
5306         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
5307         SUBREG_REG if both modes are of MODE_INT class.
5308
5309 2010-08-25  Julian Brown  <julian@codesourcery.com>
5310
5311         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
5312         * config/arm/arm.md (generic_sched): No for Cortex-A5.
5313         (generic_vfp): Likewise.
5314         (cortex-a5.md): Include.
5315         * config/arm/cortex-a5.md: New.
5316
5317 2010-08-25  Richard Guenther  <rguenther@suse.de>
5318
5319         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
5320         * gimple.c (gimple_get_alias_set): Remove special handling
5321         for pointers.
5322
5323 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5324
5325         PR middle-end/45355
5326         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
5327         dead_or_set_p when computing i0_feeds_i2_n.
5328
5329         * combine.c (find_split_point): Undo canonicalization of multiply-add
5330         to (minus x (mult)) when it seems likely that this will increase the
5331         chances of a split.
5332
5333 2010-08-25  Richard Guenther  <rguenther@suse.de>
5334
5335         PR lto/44562
5336         * lto-streamer.c (lto_record_common_node): Do not mess with
5337         TYPE_CANONICAL when not in lto.
5338         * gimple.c (gimple_register_type): Likewise.
5339
5340 2010-08-25  Richard Guenther  <rguenther@suse.de>
5341
5342         PR tree-optimization/45316
5343         * tree-ssa-pre.c (eliminate): Properly clean EH info.
5344
5345 2010-08-25  Richard Guenther  <rguenther@suse.de>
5346
5347         PR tree-optimization/45393
5348         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
5349         and clean EH info.  Avoid SSA update.
5350         (execute_cse_sincos): Cleanup the CFG if it has changed.
5351
5352 2010-08-25  Richard Guenther  <rguenther@suse.de>
5353
5354         PR middle-end/45379
5355         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5356         TARGET_MEM_REF in alignment computation.
5357
5358 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5359
5360         PR tree-optimization/45059
5361         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5362         type conversions from newop{1,2}.  Assert t is a comparison and
5363         newop{1,2} after the stripping are gimple vals.
5364
5365 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
5366
5367         * config/arm/iterators.md (VU, SE, V_widen_l): New.
5368         (V_unpack, US): New.
5369         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
5370         (vec_unpack<US>_lo_<mode>): Likewise.
5371         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
5372         (neon_vec_unpack<US>_lo_<mode>): Likewise.
5373         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
5374         (vec_widen_<US>mult_hi_<mode>): Likewise.
5375         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
5376         (neon_vec_<US>mult_hi_<mode>"): Likewise.
5377         (neon_unpack<US>_<mode>): Widening move intermediate step for
5378         vectorizing without -mvectorize-with-neon-quad.
5379         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
5380         for vectorizing without -mvectorize-with-neon-quad.
5381         * config/arm/predicates.md (vect_par_constant_high): Check for
5382         high-half lanes of a vector.
5383         (vect_par_constant_low): Check for low-half lanes of a vector.
5384
5385 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5386
5387         * tree-if-conv.c (struct ifc_dr): New.
5388         (IFC_DR): New.
5389         (DR_WRITTEN_AT_LEAST_ONCE): New.
5390         (DR_RW_UNCONDITIONALLY): New.
5391         (memref_read_or_written_unconditionally): Use the cached values
5392         when possible.
5393         (write_memref_written_at_least_once): Same.
5394         (if_convertible_loop_p): Initialize and free DR->aux fields.
5395
5396 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5397
5398         * gimple.c (gimple_could_trap_p_1): Not static anymore.
5399         Pass an extra bool parameter include_mem.
5400         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
5401         (gimple_assign_rhs_could_trap_p): Same.
5402         * gimple.h (gimple_could_trap_p_1): Declared.
5403         * tree-data-ref.h (same_data_refs_base_objects): New.
5404         (same_data_refs): New.
5405         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
5406         (write_memrefs_written_at_least_once): New.
5407         (ifcvt_memrefs_wont_trap): New.
5408         (operations_could_trap): New.
5409         (ifcvt_could_trap_p): New.
5410         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
5411         Gets a vector of data refs.
5412         (if_convertible_stmt_p): Same.
5413         (if_convertible_loop_p_1): New.
5414         (if_convertible_loop_p): Call if_convertible_loop_p_1.
5415
5416 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5417
5418         * common.opt (ftree-loop-if-convert-stores): New flag.
5419         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
5420         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
5421         the created statement before GSI.
5422         (if_convertible_phi_p): Allow virtual phi nodes when
5423         flag_loop_if_convert_stores is set.
5424         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
5425         Do not handle types that do not match is_gimple_reg_type.
5426         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
5427         when flag_loop_if_convert_stores is set, as LHS can contain
5428         memory refs.
5429         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
5430         to if_convertible_gimple_assign_stmt_p.
5431         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
5432         (replace_phi_with_cond_gimple_assign_stmt): Renamed
5433         predicate_scalar_phi.  Do not handle virtual phi nodes.
5434         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
5435         Call predicate_scalar_phi.
5436         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
5437         just after the labels for flag_loop_if_convert_stores, otherwise
5438         insert the predicate in the end of the BB.
5439         (predicate_mem_writes): New.
5440         (combine_blocks): Call predicate_all_scalar_phis.  When
5441         flag_loop_if_convert_stores is set, call predicate_mem_writes.
5442         (tree_if_conversion): Call mark_sym_for_renaming when
5443         flag_loop_if_convert_stores is set.
5444         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5445         flag_loop_if_convert_stores is set.
5446
5447 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
5448
5449         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5450         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5451         (pa_function_value): Make static.
5452         (override_options): Rename to...
5453         (pa_option_override): ...this. Make static.
5454         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5455         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5456         TARGET_OPTION_OVERRIDE): Define.
5457         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5458         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5459         Remove.
5460         * config/pa/pa-protos.h (override_options): Remove.
5461
5462 2010-08-24  Richard Guenther  <rguenther@suse.de>
5463
5464         PR middle-end/45379
5465         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5466         if addr->index is NULL or zero.
5467         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5468         TARGET_MEM_REF more properly.
5469         (indirect_ref_may_alias_decl_p): Likewise.
5470         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5471         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5472
5473 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
5474
5475         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5476         (m32c_override_options): Rename to...
5477         (m32c_option_override): ...this. Make static.
5478         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5479         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5480         Remove.
5481         * config/m32c/m32c-protos.h (m32c_override_options,
5482         m32c_function_value_regno_p): Remove.
5483
5484 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5485
5486         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5487         Fix a typo in a previous commit.
5488
5489 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
5490
5491         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5492         Pre-initialize innerloop_iters to one.
5493
5494 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5495
5496         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5497         existing static function global.
5498
5499         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5500         is changed to global.
5501
5502         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5503         may_be_nonaddressable_p on base, and don't collect this reference
5504         if the address of the base could not be taken.
5505
5506 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5507
5508         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5509         enable the compiler to autovectorize mathmetical functions for
5510         power7 using the Mathematical Acceleration Subsystem library.
5511
5512         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5513         handle which vector math library we have.
5514         (rs6000_override_options): Add -mveclibabi=mass support.
5515         (rs6000_builtin_vectorized_libmass): New function to handle auto
5516         vectorizing math functions that are in the MASS library.
5517         (rs6000_builtin_vectorized_function): Call it.
5518
5519         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5520         -mveclibabi=mass.
5521
5522 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5523
5524         PR boehm-gc/34544
5525         * gthr-posix.h (__gthread_active_init): Delete.
5526         (__gthread_active_p): Do activity check here.
5527         Don't include errno.h on hppa-hpux.  Update comment.
5528         * gthr-posix95.h (__gthread_active_init): Delete.
5529         (__gthread_active_p): Do activity check here.
5530         Don't include errno.h on hppa-hpux.  Update comment.
5531         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5532         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5533         add -lpthread when -mt or -pthread is specified.
5534         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5535         (LINK_GCC_C_SEQUENCE_SPEC): Define.
5536         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5537         (stublib.c, pthread_default_stacksize_np-stub.o,
5538         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5539         $(T)libgcc_stub.a): Add methods.
5540         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5541         (stublib.c, pthread_default_stacksize_np-stub.o,
5542         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5543         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5544         pthread_mutex_unlock): New stubs.
5545
5546 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
5547
5548         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5549         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5550         options.
5551         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5552         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5553         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5554         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5555         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5556         "-l".
5557         * cppspec.c: Include opts.h.
5558         (lang_specific_driver): Use cl_decoded_option structures.
5559         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5560         * doc/tm.texi: Regenerate.
5561         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5562         (driver_handle_option): Allow driver options needing no special
5563         processing.
5564         (process_command): Decode options before call to
5565         lang_specific_driver.  Pass decoded options to
5566         lang_specific_driver.
5567         * gcc.h (lang_specific_driver): Update prototype.
5568         * gccspec.c: Include opts.h.
5569         (lang_specific_driver): Use cl_decoded_option structures.
5570         * opts-common.c (option_ok_for_language, generate_option,
5571         generate_option_input_file): New.
5572         (decode_cmdline_option): Use option_ok_for_language.
5573         (decode_cmdline_options_to_array): Use generate_option_input_file.
5574         (handle_generated_option): Use generate_option.
5575         * opts.h (generate_option, generate_option_input_file): Declare.
5576
5577 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
5578
5579         * config/mips/mips.c (mips_override_options): Rename to...
5580         (mips_option_override): ...this. Make static.
5581         (TARGET_OPTION_OVERRIDE): Define.
5582         (mips_in_small_data_p): Update comment.
5583         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5584         (FIXED_REGISTERS): Update comment.
5585         * config/mips/mips-protos.h (mips_override_options): Remove.
5586
5587 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5588
5589         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5590
5591 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5592
5593         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5594         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5595
5596 2010-08-20  Jan Hubicka  <jh@suse.cz>
5597
5598         * tree-pass.h (pass_ipa_cdtor_merge): New function.
5599         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5600         heap allocated.
5601         (record_cdtor_fn): Move to ipa.c; do not test for
5602         have_ctors_dtors.
5603         (build_cdtor): Move to ipa.c; add code avoiding construction
5604         when target have ctors/dtors and there is only one ctor/dtor at given
5605         priority.
5606         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5607         sort; reverse order of constructors.
5608         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5609         (cgraph_finalize_function): Do not call record_cdtor_fn.
5610         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5611         (cgraph_build_static_cdtor): Move to ipa.c.
5612         * ipa.c: Include target.h and tree-iterator.h.
5613         (cgraph_build_static_cdtor, static_ctors, static_dtors,
5614         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5615         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5616         pass_ipa_cdtor_merge): New.
5617         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5618         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5619         bounds access.
5620
5621 2010-08-20  Jan Hubicka  <jh@suse.cz>
5622
5623         PR c++/45307
5624         PR c++/17736
5625         * cgraph.h (cgraph_only_called_directly_p,
5626         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5627         static cdtors.
5628         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5629         are not needed.
5630         (cgraph_finalize_function): Static cdtors are reachable.
5631         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5632
5633 2010-08-20  Jan Hubicka  <jh@suse.cz>
5634
5635         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5636         flag_wpa.
5637         * lto-streamer-out.c (lto_output): Likewise.
5638         * passes.c (ipa_write_optimization_summaries): Initialize statement
5639         uids.
5640
5641 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5642
5643         * tree.h (alias_diag_flags): New enum.
5644         (alias_pair): Add an 'emitted_diags' field.
5645         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5646         (assemble_alias): Initialize emitted_diags of new pairs.
5647
5648 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
5649
5650         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5651         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5652         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5653         (STACK_CHECK_PROTECT): Define.
5654         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5655         (output_probe_stack_range): Likewise.
5656         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5657         builtin stack checking is enabled.
5658         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5659         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5660         (probe_stack_range): New insn.
5661
5662 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5663
5664         PR target/45336
5665         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5666         short first.
5667
5668         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5669         char first.
5670
5671 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5672
5673         PR target/45336
5674         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5675         to cover zero extension into 64-bit register.
5676         (*sse2_pextrw): Likewise.
5677         (*sse4_1_pextrd_zext): New insn.
5678
5679 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5680
5681         revert r163410, partially revert r163267.
5682         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5683         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5684         Darwin versions.
5685
5686 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5687
5688         PR middle-end/44974
5689         * builtins.c (expand_builtin): Don't optimize away
5690         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5691
5692 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
5693
5694         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5695         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5696         alternative 1 of operand 2.
5697
5698 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5699             Paolo Bonzini  <bonzini@gnu.org>
5700
5701         * simplify-rtx.c (simplify_unary_operation_1): Optimize
5702         (sign_extend (zero_extend (...)) and
5703         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5704
5705 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5706
5707         PR rtl-optimization/45353
5708         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5709         after bb_note is a BARRIER.
5710
5711 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5712
5713         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5714         linking libgcc.a.
5715
5716 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5717             Michael Matz  <matz@suse.de>
5718
5719         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5720
5721 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5722
5723         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5724         (ggc_mark_roots): ...here.
5725
5726 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5727
5728         * vec.h (FOR_EACH_VEC_ELT): Define.
5729         * c-decl.c: Use it.
5730         * cfgloop.c: Likewise.
5731         * cfgloopmanip.c: Likewise.
5732         * cgraph.c: Likewise.
5733         * cgraphunit.c: Likewise.
5734         * combine.c: Likewise.
5735         * config/bfin/bfin.c: Likewise.
5736         * config/mips/mips.c: Likewise.
5737         * config/rs6000/rs6000.c: Likewise.
5738         * dbxout.c: Likewise.
5739         * df-scan.c: Likewise.
5740         * dominance.c: Likewise.
5741         * dse.c: Likewise.
5742         * dwarf2out.c: Likewise.
5743         * except.c: Likewise.
5744         * expr.c: Likewise.
5745         * function.c: Likewise.
5746         * gcse.c: Likewise.
5747         * genattr.c: Likewise.
5748         * ggc-common.c: Likewise.
5749         * gimplify.c: Likewise.
5750         * graphite-blocking.c: Likewise.
5751         * graphite-clast-to-gimple.c: Likewise.
5752         * graphite-dependences.c: Likewise.
5753         * graphite-interchange.c: Likewise.
5754         * graphite-poly.c: Likewise.
5755         * graphite-scop-detection.c: Likewise.
5756         * graphite-sese-to-poly.c: Likewise.
5757         * graphite.c: Likewise.
5758         * haifa-sched.c: Likewise.
5759         * ifcvt.c: Likewise.
5760         * implicit-zee.c: Likewise.
5761         * ipa-prop.c: Likewise.
5762         * ipa-struct-reorg.c: Likewise.
5763         * ipa.c: Likewise.
5764         * ira-build.c: Likewise.
5765         * ira-color.c: Likewise.
5766         * ira-emit.c: Likewise.
5767         * lambda-code.c: Likewise.
5768         * loop-invariant.c: Likewise.
5769         * loop-unroll.c: Likewise.
5770         * lower-subreg.c: Likewise.
5771         * lto-cgraph.c: Likewise.
5772         * lto-opts.c: Likewise.
5773         * lto-streamer-in.c: Likewise.
5774         * lto-streamer-out.c: Likewise.
5775         * lto-streamer.c: Likewise.
5776         * lto-symtab.c: Likewise.
5777         * matrix-reorg.c: Likewise.
5778         * opts.c: Likewise.
5779         * predict.c: Likewise.
5780         * print-tree.c: Likewise.
5781         * sdbout.c: Likewise.
5782         * sel-sched-dump.c: Likewise.
5783         * sel-sched-ir.c: Likewise.
5784         * sel-sched.c: Likewise.
5785         * sese.c: Likewise.
5786         * stor-layout.c: Likewise.
5787         * tree-cfg.c: Likewise.
5788         * tree-cfgcleanup.c: Likewise.
5789         * tree-chrec.c: Likewise.
5790         * tree-data-ref.c: Likewise.
5791         * tree-emutls.c: Likewise.
5792         * tree-inline.c: Likewise.
5793         * tree-into-ssa.c: Likewise.
5794         * tree-loop-distribution.c: Likewise.
5795         * tree-loop-linear.c: Likewise.
5796         * tree-mudflap.c: Likewise.
5797         * tree-outof-ssa.c: Likewise.
5798         * tree-parloops.c: Likewise.
5799         * tree-predcom.c: Likewise.
5800         * tree-pretty-print.c: Likewise.
5801         * tree-scalar-evolution.c: Likewise.
5802         * tree-ssa-live.c: Likewise.
5803         * tree-ssa-loop-im.c: Likewise.
5804         * tree-ssa-loop-ivcanon.c: Likewise.
5805         * tree-ssa-loop-ivopts.c: Likewise.
5806         * tree-ssa-loop-manip.c: Likewise.
5807         * tree-ssa-loop-niter.c: Likewise.
5808         * tree-ssa-loop-prefetch.c: Likewise.
5809         * tree-ssa-phiprop.c: Likewise.
5810         * tree-ssa-pre.c: Likewise.
5811         * tree-ssa-reassoc.c: Likewise.
5812         * tree-ssa-sccvn.c: Likewise.
5813         * tree-ssa-structalias.c: Likewise.
5814         * tree-ssa.c: Likewise.
5815         * tree-vect-data-refs.c: Likewise.
5816         * tree-vect-loop-manip.c: Likewise.
5817         * tree-vect-loop.c: Likewise.
5818         * tree-vect-patterns.c: Likewise.
5819         * tree-vect-slp.c: Likewise.
5820         * tree-vect-stmts.c: Likewise.
5821         * tree-vrp.c: Likewise.
5822         * tree.c: Likewise.
5823         * value-prof.c: Likewise.
5824         * var-tracking.c: Likewise.
5825         * varasm.c: Likewise.
5826         * vmsdbgout.c: Likewise.
5827
5828 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5829             Richard Guenther  <richard.guenther@gmail.com>
5830
5831         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5832         copy the src value and return a copy.
5833         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5834         (C++ Volatiles): Adjust to describe C++ semantics only.
5835
5836 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5837
5838         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5839         be zero or nonzero.
5840         * doc/tm.texi: Regenerate.
5841         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5842         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5843         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5844         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5845         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5846         to 1.
5847
5848 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5849
5850         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5851         an extra nop past a sibling call at the very end.
5852
5853 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5854
5855         PR bootstrap/45350
5856         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5857         a comment.
5858
5859 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5860
5861         * target.def (function_arg, function_incoming_arg): Remove const
5862         qualifier on CUMULATIVE_ARGS parameter.
5863         * targhooks.h (default_function_arg, default_function_incoming_arg):
5864         Likewise.
5865         * targhooks.c (default_function_arg, default_function_incoming_arg):
5866         Likewise.
5867         * config/i386/i386.c (ix86_function_arg): Likewise.
5868
5869 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5870
5871         PR target/45336
5872         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5873         SIGN_EXTENDs or ZERO_EXTENDs.
5874
5875 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5876
5877         PR target/42172
5878         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5879         Take its cost into account if nonnull.
5880         (insn_a_feeds_b): New static function.
5881         (combine_instructions): Look for four-insn combinations.
5882         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5883         them into account when computing all_adjacent and looking for other
5884         uses.
5885         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5886         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5887         (try_combine): New arg I0.  Handle four-insn combinations.
5888         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5889         like ELIM_I1.
5890
5891 2010-08-19  Jason Merrill  <jason@redhat.com>
5892
5893         PR c++/45307
5894         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5895         if ctor is empty.
5896         (gimplify_modify_expr_rhs): Adjust.
5897
5898 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5899
5900         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5901         bitmap_bit_p.
5902         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5903         * dominance.c (iterate_fix_dominators): Likewise.
5904         * dse.c (set_usage_bits): Likewise.
5905         (set_position_unneeded, record_store): Likewise.
5906         * gimple-fold.c (get_maxval_strlen): Likewise.
5907         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5908         * ipa-inline.c (update_caller_keys): Likewise.
5909         * ipa-split.c (verify_non_ssa_vars): Likewise.
5910         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5911         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5912         (close_addressof_down): Likewise.
5913         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5914         (setup_allocno_left_conflicts_size): Likewise.
5915         (ira_reassign_conflict_allocnos): Likewise.
5916         (ira_reassign_pseudos): Likewise.
5917         * ira-emit.c (change_loop): Likewise.
5918         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5919         * lto-streamer-out.c (write_symbol): Likewise.
5920         * predict.c (expr_expected_value_1): Likewise.
5921         * regstat.c (regstat_bb_compute_ri): Likewise.
5922         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5923         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5924         * stmt.c (expand_case): Likewise.
5925         * tree-eh.c (emit_eh_dispatch): Likewise.
5926         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5927         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5928         Likewise.
5929         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5930         (rdg_build_components): Likewise.
5931         * tree-object-size.c (collect_object_sizes_for): Likewise.
5932         * tree-sra.c (convert_callers): Likewise.
5933         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5934         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5935         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5936
5937 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5938
5939         * config/i386/i386.md (*lea_1): Use P mode iterator.
5940         (lea add splitter): Also handle DImode operands.
5941         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5942         predicate.  Do not use ix86_lea_for_add_ok.
5943         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5944         (lea ashift splitter): Also handle DImode operands.
5945         (DImode lea ashift splitter): Remove splitter.
5946
5947 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5948
5949         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5950         ix86_binary_operator_ok.
5951
5952 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5953
5954         PR rtl-optimization/44691
5955         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5956         is not a register.
5957
5958 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5959
5960         PR target/45070
5961         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5962          value of size 1-3 is handled correctly.
5963
5964 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5965
5966         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5967         type for the conditional has wide enough range.
5968
5969 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5970
5971         PR target/45327
5972         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5973         ix86_binary_operator_ok.
5974
5975 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5976
5977         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5978         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5979         code to output insn mnemonic.  Fix comment.
5980         (*addsi_1_zext): Add r-r-0 alternative 1.
5981         <TYPE_LEA>: Split insn to lea.
5982         <default>: Handle alternative 1.
5983         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5984         multi-level if_then_else RTX to set "type" attribute.
5985         <default>: Handle alternative 2.
5986         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5987         Use cond RTX instead of multi-level if_then_else RTX to set
5988         "type" attribute.
5989         <default>: Handle alternatives 2 and 4.
5990         (lea splitters): Update calls to ix86_lea_for_add_ok.
5991
5992         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5993         argument.
5994         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5995
5996 2010-08-18  Richard Guenther  <rguenther@suse.de>
5997
5998         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5999         use operand helpers.
6000
6001 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
6002
6003         PR middle-end/45292
6004         * optabs.c (expand_bool_compare_and_swap): Expand pending
6005         pops before trying the optab.
6006
6007 2010-08-18  Yao Qi  <yao@codesourcery.com>
6008
6009         PR target/45094
6010         * config/arm/arm.c (output_move_double): Fix typo generating
6011         instructions ('ldr'->'str').
6012
6013 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6014
6015         PR rtl-optimization/42575
6016         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
6017         live ranges.
6018
6019 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6020
6021         * config/arm/arm-protos.h (arm_expand_sync): New.
6022         (arm_output_memory_barrier, arm_output_sync_insn): New.
6023         (arm_sync_loop_insns): New.
6024         * config/arm/arm.c (FL_ARCH7): New.
6025         (FL_FOR_ARCH7): Include FL_ARCH7.
6026         (arm_arch7): New.
6027         (arm_print_operand): Support %C markup.
6028         (arm_legitimize_sync_memory): New.
6029         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
6030         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
6031         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
6032         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
6033         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
6034         (arm_process_output_sync_insn, arm_output_sync_insn): New.
6035         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
6036         * config/arm/arm.h (struct arm_sync_generator): New.
6037         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
6038         (TARGET_HAVE_MEMORY_BARRIER): New.
6039         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
6040         * config/arm/arm.md: Include sync.md.
6041         (UNSPEC_MEMORY_BARRIER): New.
6042         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
6043         (VUNSPEC_SYNC_OP):New.
6044         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
6045         (sync_result, sync_memory, sync_required_value): New attributes.
6046         (sync_new_value, sync_t1, sync_t2): Likewise.
6047         (sync_release_barrier, sync_op): Likewise.
6048         (length): Add logic to length attribute defintion to call
6049         arm_sync_loop_insns when appropriate.
6050         * config/arm/sync.md: New file.
6051
6052 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6053
6054         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
6055         ENABLE_TREE_CHECKING.
6056         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
6057         and GCC >= 4.3.
6058
6059 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6060
6061         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
6062         or optimizing for size, always avoid lea if possible.
6063
6064         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
6065
6066 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
6067
6068         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
6069         Dunmmy function with NULL return unless the target is
6070         OSX >= 10.6 (Darwin10).
6071
6072 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
6073
6074         * gcc.c (spec_function): Add remove-outfile.
6075         (remove_outfile_spec_function): New function.
6076         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
6077         * invoke.texi (replace-outfile): Document.
6078
6079 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
6080
6081         PR target/45296
6082         * reginfo.c (globalize_reg): Reject stack registers.
6083
6084 2010-08-17  Richard Guenther  <rguenther@suse.de>
6085
6086         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
6087         list of conditional equivalences.
6088         (free_all_edge_infos): Adjust.
6089         (record_equivalences_from_incoming_edge): Likewise.
6090         (record_cond): Likewise.
6091         (build_and_record_new_cond): Likewise.
6092         (record_conditions): Likewise.
6093         (dom_opt_leave_block): Likewise.
6094
6095 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
6096
6097         * doc/invoke.texi (ms-extension): Add documentation.
6098
6099 2010-08-17  Richard Guenther  <rguenther@suse.de>
6100
6101         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
6102
6103 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
6104
6105         PR c/40563
6106         * c-decl.c (diagnose_uninitialized_cst_member): New function.
6107         (finish_decl): Use it to issue a -Wc++-compat warning about
6108         uninitialized const field in struct or union.
6109
6110         (finish_struct): Use strip_array_types.
6111
6112 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6113
6114         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
6115         functions.
6116         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
6117         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
6118         call block_nreverse here.
6119         (blocks_nreverse): Rename decl temporary to block.
6120
6121 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
6122
6123         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
6124         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
6125         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
6126         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
6127         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
6128         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
6129         thumb2_iorsi3): Delete.
6130         (orsi_notsi_si): No longer a named pattern.
6131         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
6132         * config/arm/predicates.md (shift_amount_operand): New.
6133         (mult_operator): New.
6134         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
6135         attr enabled): New.
6136         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
6137         arch matches t2.
6138         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
6139         (not_shiftsi_compare0): Likewise, renamed from
6140         arm_notsi_shiftsi_compare0.
6141         (not_shiftsi_compare0_scratch): Likweise, renamed from
6142         arm_notsi_shiftsi_compare0_scratch.
6143         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
6144         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
6145         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
6146         so that the register alternative is disabled when the shift_operator
6147         is MULT.  Use "M" as the constraint for constants.
6148         (arith_shiftsi splitter): Enable for TARGET_32BIT.
6149         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
6150         constraint for constants.
6151         (arith_shiftsi_compare0_scratch): Likewise.
6152         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
6153         Handle Thumb2 alternative.
6154
6155 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
6156
6157         * doc/options.texi (NoDriverArg): Document.
6158         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
6159         -MDX and -MMDX.
6160         * opt-functions.awk (switch_flags): Handle NoDriverArg.
6161         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
6162         marking for CL_NO_DRIVER_ARG options when in the driver.
6163         * opts.h (CL_NO_DRIVER_ARG): Define.
6164         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6165         CL_COMMON): Update values.
6166
6167 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
6168
6169         * common.opt: Add driver options.
6170         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
6171         * doc/options.texi (Driver, RejectDriver): Document.
6172         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
6173         print_prog_name, print_multi_directory, print_sysroot,
6174         print_multi_os_directory, print_multi_lib,
6175         print_sysroot_headers_suffix, report_times, combine_flag,
6176         use_pipes, wrapper_string): Remove.
6177         (save_switch, driver_unknown_option_callback,
6178         driver_wrong_lang_callback, driver_post_handling_callback,
6179         driver_handle_option): New.
6180         (spec_lang, last_language_n_infiles): Make file-scope static
6181         instead of local to process_command.
6182         (process_command): Use decode_cmdline_options_to_array and
6183         read_cmdline_option for option processing.  Compute have_c in
6184         prescan of decoded options.
6185         * opt-functions.awk (switch_flags): Handle Driver and
6186         RejectDriver.
6187         (var_type, var_type_struct): Handle Separate options as generating
6188         const char * variables.
6189         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
6190         CL_TARGET to be passed by caller if required.
6191         (decode_cmdline_options_to_array): Update comment.
6192         * opts.c (complain_wrong_lang): Handle options only valid for the
6193         driver.
6194         (decode_options): Update call to decode_cmdline_options_to_array.
6195         (print_filtered_help): Ignore driver-only options.
6196         (print_specific_help): Ignore CL_DRIVER.
6197         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
6198         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
6199         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
6200         Update values.
6201
6202 2010-08-16  Richard Guenther  <rguenther@suse.de>
6203
6204         * tree-cfg.c (verify_types_in_gimple_reference): Verify
6205         TARGET_MEM_REF a bit.
6206         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
6207         (create_mem_ref_raw): Always create TMR_OFFSET, store the
6208         alias pointer type via it.
6209         (copy_mem_ref_info): Adjust.
6210         (maybe_fold_tmr): Likewise.
6211         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
6212         (reference_alias_ptr_type): Likewise.
6213         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
6214         adjust documentation of TMR_OFFSET operand.
6215         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
6216         use the alias pointer type.
6217         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
6218         initialize mem attrs but the TMR itself.
6219         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
6220         similar to MEM_REF.
6221         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
6222         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
6223         (unshare_and_remove_ssa_names): Likewise.
6224         (copy_ref_info): Adjust.
6225         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
6226         TARGET_MEM_REF case.
6227         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
6228         at TMR_ORIGINAL.
6229         * tree.h (TMR_ORIGINAL): Remove.
6230         * gimple.c (get_base_address): For TARGET_MEM_REF with a
6231         symbol return that.
6232         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
6233         with a symbol.
6234         (get_addr_base_and_unit_offset): Likewise.
6235         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
6236         TARGET_MEM_REFs.
6237         (indirect_ref_may_alias_decl_p): Likewise.
6238         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
6239
6240 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
6241
6242         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
6243         with GCC version 4.6, the default setting (when not optimizing
6244         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
6245         been changed to -fomit-frame-pointer.
6246
6247 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
6248
6249         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
6250         Darwin10.  Do not link libgcc.a for Darwin >= 9.
6251
6252 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
6253
6254         * doc/invoke.texi (Warning Options): Fix terminology and markup
6255         in the description of how unknown warning options are handled.
6256
6257 2010-08-15  Ira Rosen  <irar@il.ibm.com>
6258
6259         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
6260         in basic blocks.
6261         (vect_supportable_dr_alignment): Check alignment for basic blocks.
6262         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
6263         data references.
6264         (vect_bb_vectorization_profitable_p): New function.
6265         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
6266         check if it's worthwhile to vectorize the basic block.
6267
6268 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
6269
6270         * reload.h (register_move_cost, memory_move_secondary_cost,
6271         secondary_reload_class): Adjust prototype.
6272         * rtl.h (reg_class_subset_p): Adjust prototype.
6273         * reload.c (secondary_reload_class): Change arguments type from
6274         enum reg_class to reg_class_t. Change result type to reg_class_t.
6275         * reginfo.c (register_move_cost, reg_class_subset_p): Change
6276         arguments type from enum reg_class to reg_class_t.
6277         (memory_move_secondary_cost): Change arguments type from
6278         enum reg_class to reg_class_t. Change type of saved_flags to
6279         reg_class_t.
6280
6281         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6282         Remove macros.
6283         (mips_cost): Remove.
6284         (struct mips_rtx_cost_data): Moved to mips.c.
6285         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
6286         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
6287         (mips_cost): Make static.
6288         (mips_canonicalize_move_class): Change argument type to reg_class_t.
6289         Change result type to reg_class_t.
6290         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
6291         type from enum reg_class to reg_class_t.
6292         (mips_register_move_cost): Make static. Change arguments
6293         type from enum reg_class to reg_class_t.
6294         (mips_memory_move_cost): New function.
6295         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6296
6297 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
6298
6299         PR rtl-optimization/43358
6300         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
6301         of a single hard register, using simplify_subreg_regno to decide
6302         what that register should be.
6303
6304 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
6305
6306         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
6307         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
6308         (loongson_pmull<V_suffix>): Rename to...
6309         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
6310
6311 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
6312
6313         * configure.ac: Enable -fomit-frame-pointer on darwin
6314         which support dwarf2.
6315         * config/i386/i386.c (override_options): Same.
6316
6317 2010-08-13  Jie Zhang  <jie@codesourcery.com>
6318
6319         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
6320
6321 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
6322
6323         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
6324         -MMD.
6325
6326 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
6327
6328         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
6329         up dot_prod pattern searching if a stmt is outside the loop.
6330
6331 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
6332             Uros Bizjak  <ubizjak@gmail.com>
6333
6334         * config.gcc: Handle --enable-frame-pointer.
6335
6336         * configure.ac: Add --enable-frame-pointer.
6337         * configure: Regenerated.
6338
6339         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
6340         (override_options): If not configured with --enable-frame-pointer,
6341         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
6342         optimizing for size), -fasynchronous-unwind-tables and
6343         -maccumulate-outgoing-args by default.
6344
6345 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6346
6347         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
6348
6349         PR middle-end/45262
6350         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
6351         -a overflows.  Normalize the range.
6352
6353 2010-08-12  Richard Guenther  <rguenther@suse.de>
6354
6355         PR tree-optimization/45232
6356         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
6357         for types with undefined overflow.
6358         (reassociate_bb): Allow re-associating of bit and min/max
6359         operations for types with undefined overflow.
6360         * tree-ssa-forwprop.c (associate_plusminus): New function.
6361         (tree_ssa_forward_propagate_single_use_vars): Call it.
6362
6363 2010-08-12  Richard Guenther  <rguenther@suse.de>
6364
6365         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
6366         * tree-ssa-alias.c (get_ptr_info): Move ...
6367         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
6368         align and misalign fields conservatively.
6369         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
6370         derive alignment information.
6371         (evaluate_stmt): Derive alignment information from memory
6372         allocation functions.
6373         * tree.h (get_pointer_alignment): Make unsigned.
6374         * builtins.c (get_object_alignment): Use alignment information we
6375         have computed for pointers.
6376         (get_pointer_alignment): Likewise.  Make conservative, return
6377         and unsigned value.
6378         (expand_builtin_strlen): Adjust.
6379         (expand_builtin_memcmp): Likewise.
6380         (expand_builtin_strcmp): Likewise.
6381         (expand_builtin_strncmp): Likewise.
6382         (get_builtin_sync_mem): Use at least mode alignment.
6383         (fold_builtin_memset): Adjust.
6384         (fold_builtin_memory_op): Likewise.
6385         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
6386         information also dump pointer alignment knowledge.
6387         (dump_gimple_stmt): Likewise.
6388
6389 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
6390
6391         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
6392         (EMPTY_FIELD_BOUNDARY): Remove.
6393         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
6394
6395 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6396
6397         PR debug/45259
6398         * caller-save.c (save_call_clobbered_regs): Only swap notes with
6399         DEBUG_INSNs if n_regs_saved.
6400
6401 2010-08-12  Wei Guozhi  <carrot@google.com>
6402
6403         PR target/44999
6404         * config/arm/arm.md (andsi3): Change to zero extension if possible.
6405         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
6406
6407 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
6408
6409         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
6410
6411         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
6412
6413 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6414
6415         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
6416         the case removed in the previous patch, when the only phi argument
6417         is defined in the same loop as the phi node itself.  Handle it
6418         separately from the invariant case by both propagating it outside
6419         the region and replacing the phi node with an assign.
6420
6421 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6422
6423         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
6424         constant phi nodes with one argument are is_gimple_min_invariant
6425         and SSA_NAME_IS_DEFAULT_DEF.
6426
6427 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6428
6429         * graphite-cloog-util.c (oppose_constraint):
6430         Extend loop counter's value range (CLOOG_ORG).
6431         (cloog_matrix_to_ppl_constraint): Same.
6432         (new_Constraint_System_from_Cloog_matrix): Same.
6433         * graphite-cloog-compat.h (matrix_num_type): New.
6434
6435 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6436
6437         * graphite.c (graphite_initialize): Do not initialize
6438         CLooG and initialize the Parma Polyhedra Library
6439         manually when using CLOOG_ORG.
6440         (graphite_finalize): Do not finalize CLooG and finalize
6441         the Parma Polyhedra Library manually when using CLOOG_ORG.
6442         * graphite-cloog-compat.h (cloog_initialize): Hide function
6443         when using CLOOG_ORG.
6444         (cloog_finalize): Same.
6445
6446 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6447
6448         * graphite-clast-to-gimple.c (free_scattering): Change
6449         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6450         (CLOOG_ORG).
6451         (build_cloog_prog): Same.
6452         * graphite-cloog-compat.h (cloog_domain): Removed.
6453         (cloog_scattering): New.
6454         (cloog_set_domain): Removed.
6455         (cloog_set_scattering): New.
6456         (cloog_next_domain): Removed.
6457         (cloog_next_scattering): New.
6458         (cloog_set_next_domain): Removed.
6459         (cloog_set_next_scattering): New.
6460         (CloogScatteringList): New.
6461         (CloogScattering): New.
6462         (cloog_scattering_free): New.
6463         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6464         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6465         New.
6466
6467 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6468
6469         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6470         CloogState.
6471         (set_cloog_options): Same.
6472         (print_clast_stmt): Same.
6473         (scop_to_clast): Same.
6474         (print_generated_program): Same.
6475         (gloog): Same.
6476         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6477         (scop_to_clast): Extend with CloogState.
6478         * graphite-cloog-util.c: Include graphite-cloog-compat.h
6479         (new_Cloog_Domain_from_ppl_Polyhedron):
6480         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6481         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6482         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6483         * graphite-cloog-util.h (build_cloog_prog): Same.
6484         * graphite-cloog-copat.h (build_cloog_prog): New.
6485         (CloogState): New.
6486         (cloog_state_malloc): New.
6487         (cloog_state_free): New.
6488         (cloog_loop_malloc): New.
6489         (cloog_options_malloc): New.
6490         (cloog_statement_alloc): New.
6491         (cloog_domain_from_cloog_matrix): New.
6492         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6493         (new_Cloog_Domain_from_ppl_Polyhedron): New.
6494
6495 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6496
6497         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6498         type of NAME now depends on used CLooG version.
6499         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6500         (gcc_type_for_clast_expr): Same.
6501         (print_clast_stmt): Replace pprint with clast_pprint.
6502         * graphite-cloog-compat.h: Provide compatibility macros for
6503         CLooG Legacy.
6504         (clast_name_p): New.
6505         (clast_expr_term): New.
6506         (clast_expr_red): New.
6507         (clast_expr_bin): New.
6508         (clast_pprint): New.
6509
6510 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6511
6512         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6513         compatible to newer CLooG releases (CLOOG_ORG).
6514         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6515         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6516         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6517         (build_cloog_prog) : New.
6518         (cloog_program_extract_scalars): New.
6519         (cloog_program_scatter): New.
6520
6521 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6522
6523         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6524         conditionally (CLOOG_ORG).
6525         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
6526         (cloog_statement_usr): New.
6527         (cloog_domain): Same.
6528         (cloog_set_domain): Same.
6529         (cloog_next_domain): Same.
6530         (cloog_set_next_domain): Same.
6531         (cloog_program_nb_scattdims): Same.
6532         (cloog_program_set_nb_scattdims): Same.
6533         (cloog_program_names): Same.
6534         (cloog_program_set_names): Same.
6535         (cloog_program_set_context): Same.
6536         (cloog_program_set_loop): Same.
6537         (cloog_program_blocklist): Same.
6538         (cloog_program_set_blocklist): Same.
6539         (cloog_program_scaldims): Same.
6540         (cloog_program_set_scaldims): Same.
6541         (cloog_names_nb_parameters): Same.
6542         (cloog_names_set_nb_parameters): Same.
6543         (cloog_names_parameters): Same.
6544         (cloog_names_set_parameters): Same.
6545         (cloog_names_set_nb_iterators): Same.
6546         (cloog_names_set_iterators): Same.
6547         (cloog_names_set_nb_scattering): Same.
6548         (cloog_names_set_scattering): Same.
6549         (cloog_statement_set_usr): Same.
6550         (cloog_loop_set_next): Same.
6551         (cloog_loop_set_domain): Same.
6552         (cloog_loop_set_block): Same.
6553         (cloog_block_list_next): Same.
6554         (cloog_block_list_set_next):
6555         (cloog_block_list_set_block): Same.
6556
6557 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6558
6559         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6560         a bool.
6561         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6562         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6563         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6564         when something has been changed.
6565         (rewrite_commutative_reductions_out_of_ssa): Same.
6566
6567 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6568
6569         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6570         handle the case when def is in the sese region.
6571         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6572         for invariant expressions.
6573         (rewrite_cross_bb_phi_deps): Removed.
6574         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6575         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6576         rewrite_cross_bb_phi_deps.
6577
6578 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6579
6580         * graphite-sese-to-poly.c
6581         (rewrite_commutative_reductions_out_of_ssa_loop): Call
6582         scev_analyzable_p only on is_gimple_reg
6583
6584 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6585
6586         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6587         (rewrite_close_phi_out_of_ssa): Propagate constant values or
6588         parametric expressions outside the scop region.
6589         (rewrite_cross_bb_scalar_deps): Same.
6590         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6591
6592 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6593
6594         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6595         SSA_NAME_DEF_STMT only on SSA_NAMEs.
6596
6597 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6598
6599         * tree-scalar-evolution.c (instantiate_scev_name): Do not
6600         instantiate default definitions.
6601
6602 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
6603             Sebastian Pop  <sebastian.pop@amd.com>
6604
6605         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6606         (loop_exits_from_bb_p): New.
6607         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6608         (loop_exits_from_bb_p): Declared.
6609         * graphite-scop-detection.c (scopdet_basic_block_info): Call
6610         loop_exits_to_bb_p.
6611
6612 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6613
6614         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6615         extra parameter for the region.  Call scev_analyzable_p.
6616         (rewrite_reductions_out_of_ssa): Update call to
6617         rewrite_close_phi_out_of_ssa.
6618         (rewrite_cross_bb_phi_deps): Same.
6619         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6620         parameter for the region.  Call scev_analyzable_p.
6621         (rewrite_commutative_reductions_out_of_ssa): Update call to
6622         rewrite_commutative_reductions_out_of_ssa_loop.
6623
6624 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6625
6626         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6627
6628 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6629
6630         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6631         SSA scalar phi nodes that can be scev_analyzable_p.
6632
6633 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6634
6635         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6636         handle SSA_NAME_IS_DEFAULT_DEF.
6637
6638 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6639
6640         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6641
6642 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6643
6644         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6645         case non close-phi nodes with one argument.
6646
6647 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6648
6649         * sese.h (scev_analyzable_p): Scevs could be expressions without
6650         chrecs and still be scev_analyzable_p.
6651
6652 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6653
6654         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6655
6656 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6657
6658         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6659         * cfgloop.h (struct loop): Remove single_iv field.
6660         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6661         (scop_canonicalize_loops): Removed.
6662         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
6663         over all the loop phi nodes in loop->header.
6664         (build_poly_scop): Remove use of scop_canonicalize_loops.
6665
6666 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6667
6668         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6669         handle GIMPLE_CALL.
6670
6671 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6672
6673         * tree-chrec.c (chrec_apply): Should only apply to the specified
6674         variable.  Also handle multivariate chains of recurrences that
6675         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
6676
6677 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6678
6679         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6680         (debug_clast_name_indexes_1): Removed.
6681         (debug_clast_name_indexes): Removed.
6682         (pbb_to_depth_to_oldiv): Removed.
6683         (build_iv_mapping): Replace the use of rename_map with iv_map.
6684         (translate_clast_user): Remove uses of rename_map.  Allocate and
6685         free iv_map.
6686         (translate_clast_for_loop): Remove uses of rename_map.
6687         (translate_clast_for): Same.
6688         (translate_clast_guard): Same.
6689         (translate_clast): Same.
6690         (gloog): Same.
6691         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6692         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6693         * sese.c (set_rename): Now static.
6694         (rename_variables_in_stmt): Removed.
6695         (rename_uses): New.
6696         (is_parameter): Removed.
6697         (is_iv): Removed.
6698         (expand_scalar_variables_call): Removed.
6699         (expand_scalar_variables_ssa_name): Removed.
6700         (expand_scalar_variables_expr): Removed.
6701         (expand_scalar_variables_stmt): Removed.
6702         (expand_scalar_variables): Removed.
6703         (rename_variables): Removed.
6704         (remove_condition): Removed.
6705         (get_true_edge_from_guard_bb): Removed.
6706         (get_false_edge_from_guard_bb): Removed.
6707         (struct igp): Removed.
6708         (default_before_guard): Removed.
6709         (convert_for_phi_arg): Removed.
6710         (add_guard_exit_phis): Removed.
6711         (insert_guard_phis): Removed.
6712         (graphite_copy_stmts_from_block): Now also uses iv_map and a
6713         region.  Do not copy conditions.  Do not copy induction variables.
6714         Call rename_uses.
6715         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6716         the translated statement.  Use the iv_map for the induction
6717         variable renaming.
6718         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6719         (set_rename): Removed declaration.
6720         (scev_analyzable_p): ...here.
6721         * tree-chrec.c (chrec_apply_map): New.
6722         * tree-chrec.h (chrec_apply_map): Declared.
6723
6724 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6725
6726         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6727         insert_loop_close_phis.
6728         * sese.c (name_defined_in_loop_p): Removed.
6729         (expr_defined_in_loop_p): Removed.
6730         (alive_after_loop): Removed.
6731         (close_phi_not_yet_inserted_p): Removed.
6732         (struct alep): Removed.
6733         (add_loop_exit_phis): Removed.
6734         (insert_loop_close_phis): Removed.
6735
6736 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6737
6738         * graphite-cloog-util.c
6739         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6740         * graphite-poly.c
6741         (psct_scattering_dim_for_loop_depth): Same.
6742
6743 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6744
6745         * graphite-cloog-util.h: Added cloog.h.
6746         * graphite-blocking.c: Removed cloog.h.
6747         * graphite-dependences.c: Same.
6748         * graphite-interchange.c: Same.
6749         * graphite-poly.c: Same.
6750         * graphite-ppl.c: Same.
6751         * graphite-scop-detection.c: Same.
6752         * graphite-sese-to-poly.c:
6753         Removed cloog.h.
6754         Removed graphite-clast-to-gimple.h.
6755         (check_poly_representation): Removed (unused).
6756         * graphite-sese-to-poly.h
6757         (check_poly_representation): Removed (unused).
6758
6759 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6760
6761         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6762         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6763         (graphite-cloog-util.o): New.
6764         (graphite-ppl.o): Added graphite-cloog-util.h.
6765         * graphite-clast-to-gimple.c:
6766         Added graphite-cloog-util.h to include statements.
6767         * graphite-cloog-util.c: New.
6768         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6769         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6770         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6771         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6772         (insert_constraint_into_matrix): Same.
6773         (ppl_Constrain_System_number_of_constraints): Same.
6774         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6775         (oppose_constraint): Same.
6776         (cloog_matrix_to_ppl_constraint): Same.
6777         (new_Constraint_System_from_Cloog_Matrix): Same.
6778         * graphite-cloog-util.h: New.
6779         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6780         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6781         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6782         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6783         (insert_constraint_into_matrix): Same.
6784         * graphite-ppl.c:
6785         Added graphite-cloog-util.h to include statements.
6786         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6787         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6788         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6789         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6790         (insert_constraint_into_matrix): Same.
6791         (ppl_Constrain_System_number_of_constraints): Same.
6792         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6793         (oppose_constraint): Same.
6794         (cloog_matrix_to_ppl_constraint): Same.
6795         (new_Constraint_System_from_Cloog_Matrix): Same.
6796         * graphite-ppl.h:
6797         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6798         graphite-cloog-util.h.
6799         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6800         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6801         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6802         (insert_constraint_into_matrix): Same.
6803
6804 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6805
6806         * graphite-clast-to-gimple.c
6807         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6808         (precision_for_interval): Same.
6809         (gcc_type_for_interval): Same.
6810         (compute_type_for_level): Same.
6811         * graphite-interchange.c
6812         (lst_interchange_profitable_p): Same.
6813         * graphite-poly.c
6814         (psct_scattering_dim_for_loop_depth): Same.
6815         * graphite-ppl.c
6816         (ppl_max_for_le_pointset): Same.
6817         (ppl_min_for_le_pointset): Same.
6818
6819 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6820
6821         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6822         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6823
6824 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6825
6826         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6827         rewrite_close_phi_out_of_ssa.
6828
6829 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6830
6831         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6832
6833 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6834
6835         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6836         rename_map.
6837         * sese.c (debug_rename_map): Same.
6838         (get_rename): Same.
6839         (set_rename): Same.
6840         (rename_variables_in_stmt): Same.
6841         (expand_scalar_variables_call): Same.
6842         (expand_scalar_variables_ssa_name): Same.
6843         (expand_scalar_variables_expr): Same.
6844         (expand_scalar_variables_stmt): Same.
6845         (expand_scalar_variables): Same.
6846         (rename_variables): Same.
6847         (graphite_copy_stmts_from_block): Same.
6848         (copy_bb_and_scalar_dependences): Same.
6849
6850 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6851
6852         * graphite-clast-to-gimple.c (copy_renames): Removed.
6853         (translate_clast_for): Do not call copy_renames.
6854         (translate_clast_guard): Same.
6855
6856 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6857
6858         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6859         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6860         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6861         before rewrite_cross_bb_scalar_deps.
6862
6863 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6864
6865         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6866         Early return in when flag_associative_math is not set.
6867
6868 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6869
6870         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6871         of SSA copies on edges except for loop->latch.
6872
6873 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6874
6875         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6876         Split out of rewrite_reductions_out_of_ssa.
6877         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6878         Declared.
6879         * graphite.c (graphite_transform_loops): Call it.
6880
6881 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6882
6883         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6884
6885 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6886
6887         * dbgcnt.def (graphite_scop): New counter.
6888         * graphite.c: Include dbgcnt.h.
6889         (graphite_transform_loops): Use new counter to limit transformations.
6890         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6891
6892 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6893
6894         * passes.c (init_optimization_passes): Add pass_graphite.
6895         Schedule a pass_copy_prop before pass_graphite_transforms.
6896         * timevar.def (TV_GRAPHITE): Declared.
6897         * tree-pass.h (pass_graphite): Declared.
6898         * tree-ssa-loop.c (pass_graphite): New.
6899
6900 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6901
6902         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6903         Remove calls to rename_nb_iterations and rename_sese_parameters.
6904         * graphite-clast-to-gimple.h (gloog): Update declaration.
6905         * graphite.c (graphite_transform_loops): Update call to gloog.
6906         * sese.c (rename_variables_in_expr): Removed.
6907         (rename_nb_iterations): Removed.
6908         (rename_sese_parameters): Removed.
6909         * sese.h (rename_nb_iterations): Removed.
6910         (rename_sese_parameters): Removed.
6911
6912 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6913
6914         * graphite-clast-to-gimple.c (gloog): Remove call to
6915         sese_adjust_liveout_phis.
6916         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6917         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6918         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6919         rewrite_phi_out_of_ssa.
6920         * sese.c (get_vdef_before_sese): Removed.
6921         (sese_adjust_vphi): Removed.
6922         (sese_adjust_liveout_phis): Removed.
6923         * sese.h (sese_adjust_liveout_phis): Removed.
6924
6925 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6926
6927         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6928         argument for the place after which to insert the out of SSA copy.
6929         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6930         (rewrite_phi_out_of_ssa): Same.
6931         (rewrite_cross_bb_scalar_deps): Same.
6932         (insert_copyout): Removed.
6933         (insert_copyin): Removed.
6934         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6935         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6936         insert_copyin.
6937
6938 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6939
6940         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6941         (rewrite_reductions_out_of_ssa): Same.
6942         (rewrite_commutative_reductions_out_of_ssa): Same.
6943         (build_poly_scop): Do not call these functions.
6944         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6945         (rewrite_reductions_out_of_ssa): Declared.
6946         (rewrite_commutative_reductions_out_of_ssa): Declared.
6947         * graphite.c (graphite_transform_loops): Call on every scop
6948         rewrite_commutative_reductions_out_of_ssa before calling
6949         rewrite_reductions_out_of_ssa and build_scop_bbs.
6950
6951 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6952
6953         * graphite-dependences.c (dot_deps): Make system call to dotty run
6954         in background.
6955         (dot_deps_stmt): Same.
6956         * graphite-poly.c (dot_lst): Same.
6957
6958 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6959
6960         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6961         phi_arg_in_outermost_loop.
6962         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6963         (remove_invariant_phi): Same.
6964
6965 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6966
6967         * target.def (output_addr_const_extra): New hook.
6968         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6969         * doc/tm.texi: Regenerate.
6970         * targhooks.c (default_asm_output_addr_const_extra): New function.
6971         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6972         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6973         target hook.
6974
6975         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6976         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6977         * config/i386/i386.h (output_addr_const_extra): Rename to...
6978         (i386_asm_output_addr_const_extra): ...this. Make static.
6979         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6980
6981 2010-08-11  Richard Henderson  <rth@redhat.com>
6982
6983         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6984
6985 2010-08-11  Nick Clifton  <nickc@redhat.com>
6986
6987         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6988         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6989         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6990         stormy16-lib2-cmpsi.c.
6991
6992         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6993         -O2.
6994
6995 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
6996
6997         * opts.h (struct cl_option_handler_func): Make handler take
6998         cl_decoded_option structure as parameter, not individual elements.
6999         (struct cl_option_handlers): Make callbacks take cl_decoded_option
7000         structure as parameter, not individual elements.
7001         (handle_option): Take cl_decoded_option structure as parameter,
7002         not individual elements.
7003         (handle_generated_option): Declare.
7004         * opts-common.c (handle_option): Take cl_decoded_option structure
7005         as parameter, not individual elements.  Update calls to callback
7006         and handler functions.
7007         (handle_generated_option): New.
7008         (read_cmdline_option): Update calls to callback functions and
7009         handle_option.
7010         * opts.c (common_handle_option, complain_wrong_lang,
7011         unknown_option_callback, post_handling_callback,
7012         lang_handle_option, target_handle_option): Take cl_decoded_option
7013         structure as parameter, not individual elements.
7014         (lang_handle_option, target_handle_option, common_handle_option):
7015         Assert option has at most one argument.
7016         (enable_warning_as_error): Call handle_generated_option instead of
7017         handle_option.  Do not pass -Werror argument as argument of
7018         generated option.
7019
7020 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7021
7022         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7023         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7024         (SUBWORD_BOOL_CAS): Likewise.
7025         (SUBWORD_SYNC_OP): Likewise.
7026         (SUBWORD_TEST_AND_SET): Likewise.
7027         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7028         (SUBWORD_SYNC_OP): Likewise.
7029         (OP_AND_FETCH_WORD): Likewise.
7030
7031 2010-08-10  Xinliang David Li  <davidxl@google.com>
7032
7033         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
7034         compute max/min offset in address.
7035
7036 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
7037
7038         * ira-live.c: Include sbitmap.h.
7039         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
7040         Compress live ranges even more.
7041
7042 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7043
7044         * coverage.c (ctr_labels): Delete.
7045
7046 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7047
7048         PR bootstrap/45177
7049         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
7050         test here from arm_gen_load_multiple_1.
7051         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
7052         multiple_operation_profitable_p.
7053
7054 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7055
7056         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
7057         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
7058
7059 2010-08-10  Richard Henderson  <rth@redhat.com>
7060
7061         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
7062         after saving registers.  Assert that SSE registers are only saved
7063         with a sufficiently aligned frame.
7064         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
7065         remove stack_realign_fp handling.
7066         (ix86_expand_prologue): Save int registers before stack_realign_fp,
7067         and do not mark the stack alignment as frame related.
7068         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
7069
7070         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
7071         saves when re-aligning the stack.
7072
7073 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7074
7075         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
7076         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
7077         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
7078
7079 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7080
7081         * dwarf2out.c (struct die_struct): Move die_tag to the end.
7082
7083 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
7084
7085         * config/arm/iterators.md: New file.
7086         * config/arm/arm.md: Include iterators.md.
7087         (QHSI): Move to new file.
7088         (LTUGEU, cnb, optab, ior_xor): Likewise.
7089         * config/arm/iwmmxt.md (VMMX): Move to new file.
7090         (VSHFT, MMX_char): Likewise.
7091         * config/arm/neon.md (VD): Move to new file.
7092         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
7093         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
7094         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
7095         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
7096         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
7097         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
7098         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
7099         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
7100         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
7101         (Is_d_reg, V_mode_nunits): Likewise.
7102         * config/arm/vec-common.md (VALL): Move to new file.
7103         (VALLW, VINT, VINTW): Likewise.
7104
7105 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7106
7107         PR middle-end/45182
7108         * combine.c (make_compound_operation): Don't try to convert
7109         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
7110
7111 2010-08-10  Richard Guenther  <rguenther@suse.de>
7112
7113         * tree.h (get_object_alignment): Adjust prototype.
7114         * builtins.c (get_object_alignment): Return unsigned int,
7115         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
7116         and TARGET_MEM_REF properly.
7117         (get_pointer_alignment): Adjust.
7118         * emit-rtl.c (get_mem_align_offset): Adjust comment.
7119         (set_mem_attributes_minus_bitpos): Adjust.
7120         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
7121
7122 2010-08-10  Richard Guenther  <rguenther@suse.de>
7123
7124         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
7125         (copy_prop_visit_assignment): Simplify.
7126         (copy_prop_visit_stmt): Also visit assignments from
7127         constants.
7128         (copy_prop_visit_phi_node): Use operand_equal_p.
7129
7130 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7131
7132         * ipa-split.c (find_split_points): Free stack.
7133
7134 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7135
7136         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
7137         * tree.c (tree_node_kind): Delete corresponding entries.
7138
7139 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7140
7141         * alias.c (may_alias_p): Remove unused ret.
7142
7143 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
7144
7145         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
7146         alias_sets_conflict_p.
7147         (walk_mems_1): Moved from alias.c.
7148         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
7149         in alias.c.
7150         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
7151         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
7152         * alias.c (walk_mems_2): Moved to ddg.c.
7153         (walk_mems_1): Ditto.
7154         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
7155         to ddg.c.
7156         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
7157         disambiguation.
7158         *(may_alias_p): New function to check whether two memory expression
7159         may alias or not. Currently used in buidling inter-iteration memory
7160         dependence.
7161         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
7162         (insn_alias_sets_conflict_p): Removed
7163         *rtl.h (may_alias_p): New function prototype.
7164
7165 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7166
7167         * tree.c (nreverse): Assert that we don't have a BLOCK.
7168
7169 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7170
7171         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
7172         * config/arm/arm.c (arm_get_pcs_model): Likewise.
7173         * config/avr/avr.c (init_cumulative_args): Likewise.
7174         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7175         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7176         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
7177         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
7178         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7179         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7180         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7181         * dwarf2out.c (gen_subprogram_die): Likewise.
7182         * function.c (allocate_struct_function): Likewise.
7183         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
7184         (deserves_ellipsis): Delete.
7185
7186 2010-08-09  Richard Guenther  <rguenther@suse.de>
7187
7188         * tree-ssa-copy.c (cached_last_copy_of): Remove.
7189         (valueize_val): New function.
7190         (get_last_copy_of): Remove.
7191         (set_copy_of_val): Simplify.
7192         (dump_copy_of): Likewise.
7193         (copy_prop_visit_cond_stmt): Use valueize_val.
7194         (copy_prop_visit_phi_node): Properly handle unvisited names.
7195         Drop code managing copy-of chains.
7196         (init_copy_prop): Adjust.
7197         (fini_copy_prop): Likewise.
7198         (execute_copy_prop): Remove obsolete comment.
7199
7200 2010-08-09  Richard Guenther  <rguenther@suse.de>
7201
7202         PR middle-end/44632
7203         * function.c (gimplify_parameters): Do not clear addressable
7204         bit of the original parameter.
7205
7206 2010-08-09  Richard Guenther  <rguenther@suse.de>
7207
7208         PR middle-end/45212
7209         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
7210         alignment from MEM_REF offset only if we took it from the
7211         base object.
7212
7213 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
7214
7215         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
7216
7217 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7218
7219         * c-tree.h (build_arg_info): Declare.
7220         * c-decl.c (build_arg_info): Define.
7221         (get_parm_info): Call it.  Delete initialization code.
7222         * c-parser.c (c_parser_parms_declarator): Likewise.
7223         (c_parser_parms_list_declaractor): Likewise.
7224
7225 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7226
7227         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
7228         (struct c_arg_info): Change type of tags field.
7229         * c-decl.c (grokdeclarator): Update for changed type of tags field.
7230         (get_parm_info): Likewise.
7231         (store_parm_decls_newstyle): Likewise.
7232
7233 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7234
7235         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
7236         (branch_island_list): Delete.
7237         (branch_islands): Declare.
7238         (add_compiler_branch_island): Adjust for branch_islands instead of
7239         branch_island_list.
7240         (macho_branch_islands): Likewise.
7241         (no_previous_def): Likewise.
7242         (get_prev_label): Likewise.
7243
7244 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7245
7246         PR boehm-gc/34544
7247         * gthr-posix.h (__gthread_start): Delete.
7248         (__gthread_active_init): Use pthread_default_stacksize_np instead of
7249         pthread_create to determine if hpux pthreads are active.
7250         * gthr-posix95.h (__gthread_start): Delete.
7251         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
7252
7253 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
7254
7255         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
7256         _WIN64 not expanded.
7257
7258 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
7259             H.J. Lu  <hongjiu.lu@intel.com>
7260
7261         PR target/45213
7262         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
7263         to output 32bit SFmode immediate as 8 byte sign extended value.
7264
7265 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7266
7267         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7268         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7269         (SUBWORD_BOOL_CAS): Likewise.
7270         (SUBWORD_SYNC_OP): Likewise.
7271         (SUBWORD_TEST_AND_SET): Likewise.
7272         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7273         (SUBWORD_SYNC_OP): Likewise.
7274         (OP_AND_FETCH_WORD): Likewise.
7275
7276 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7277
7278         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
7279         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
7280         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
7281         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
7282         generic part.
7283         (cortex_a9_sched_adjust_cost): New function.
7284         (xscale_sched_adjust_cost): New function.
7285         * config/arm/arm-protos.h (struct tune_params): New field
7286         sched_adjust_cost.
7287         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
7288
7289 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
7290
7291         PR target/44942
7292         * config/sparc/sparc.c (function_arg_advance): Always take into account
7293         the padding, if any.
7294
7295 2010-08-06  Richard Guenther  <rguenther@suse.de>
7296
7297         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
7298         (dump_lattice_value): Dump it.
7299         (get_default_value): Adjust.
7300         (get_constant_value): Likewise.
7301         (set_value_varying): Likewise.
7302         (set_lattice_value): Make sure to not go up the lattice
7303         with bitwise constant values.
7304         (get_value_for_expr): Handle ADDR_EXPRs.
7305         (value_to_double_int): New function.
7306         (get_value_from_alignment): Likewise.
7307         (do_dbg_cnt): Adjust.
7308         (ccp_lattice_meet): Handle partially constant values.
7309         (bit_value_unop_1): New function.
7310         (bit_value_binop_1): Likewise.
7311         (bit_value_unop): Likewise.
7312         (bit_value_binop): Likewise.
7313         (evaluate_stmt): Track partially constant values if
7314         flag_tree_bit_ccp is set.
7315         (ccp_fold_stmt): Dump if we folded a predicate.
7316         (ccp_visit_stmt): Adjust.
7317         * common.opt (ftree-bit-ccp): New flag.
7318         * doc/invoke.texi (ftree-bit-ccp): Document.
7319         * opts.c (decode_options): Enable bit-CCP at -O1.
7320
7321 2010-08-06  Alan Modra  <amodra@gmail.com>
7322
7323         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
7324         and -mrelocatable-lib description.
7325
7326 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7327
7328         From Martin Thuresson  <martint@google.com>
7329         * postreload.c (reload_cse_simplify_operands): Use
7330         SET_REGNO_RAW instead of SET_REGNO.
7331         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
7332         SET_REGNO.
7333         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
7334         instead of SET_REGNO.
7335         * rtl.h (SET_REGNO_RAW): New macro.
7336
7337 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
7338
7339         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
7340         computations.  Fix formatting issues.
7341         (num_sign_bit_copies1): Likewise.
7342         (canonicalize_condition): Likewise.
7343
7344 2010-08-05  Richard Henderson  <rth@redhat.com>
7345
7346         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
7347         (floor_log2): Use clz_hwi.
7348         (exact_log2): Use ctz_hwi.
7349         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
7350         * builtins.c (fold_builtin_bitop): Use them.
7351         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7352         * combine.c (get_pos_from_mask): Use ctz_hwi.
7353         * double-int.c (double_int_ctz): Likewise.
7354         * explow.c (force_reg): Likewise.
7355         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
7356
7357 2010-08-05  Richard Henderson  <rth@redhat.com>
7358
7359         PR target/45189
7360         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
7361         the alignment constant is properly sign-extended.
7362
7363 2010-08-05  Richard Guenther  <rguenther@suse.de>
7364
7365         * expr.c (store_expr): Use emit_block_move only if both
7366         source and target are MEMs.  Use store_bit_field if only
7367         the target is a MEM.
7368
7369 2010-08-05  Richard Henderson  <rth@redhat.com>
7370
7371         PR debug/45188
7372         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
7373         (INCOMING_RETURN_ADDR_RTX): Likewise.
7374         (dwarf2out_do_frame): Remove conditional compilation.
7375         (dwarf2out_frame_init): Likewise.
7376
7377 2010-08-05  Nicolas Setton  <setton@adacore.com>
7378
7379         * gcov.c (flag_display_progress): New static variable.
7380         (main): Display progress info on standard output if requested.
7381         (options): Add -d/--display-progress.
7382         (print_usage): Print them.
7383         (process_args): Handle them.
7384         * doc/gcov.texi: Document them.
7385
7386 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7387
7388         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
7389         (ipcp_insert_stage): Redirect only edges not flagged with
7390         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
7391         discovered constants.
7392
7393 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7394
7395         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
7396         (struct ipa_param_descriptor): New fields types and
7397         cannot_devirtualize.
7398         (ipa_param_cannot_devirtualize_p): New function.
7399         (ipa_param_types_vec_empty): Likewise.
7400         (ipa_make_edge_direct_to_target): Declare.
7401         * ipa-cp.c: Fixed first stage driver name in initial comment,
7402         described devirtualization there too.
7403         (ipcp_analyze_node): Call ipa_analyze_params_uses.
7404         (ipcp_print_all_lattices): Print devirtualization info.
7405         (ipa_set_param_cannot_devirtualize): New function.
7406         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
7407         lattice to BOTTOM.
7408         (ipcp_init_stage): Merged into...
7409         (ipcp_generate_summary): ...its caller.
7410         (ipcp_change_tops_to_bottom): Also process type lists.
7411         (ipcp_add_param_type): New function.
7412         (ipcp_copy_types): Likewise.
7413         (ipcp_propagate_types): Likewise.
7414         (ipcp_propagate_stage): Also propagate types.
7415         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
7416         Also return true if propagated types require it.
7417         (ipcp_update_callgraph): Dump redirection info.
7418         (ipcp_process_devirtualization_opportunities): New function.
7419         (ipcp_const_param_count): Include known type information.
7420         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
7421         on new node.  Fixed formatting.
7422         * ipa-prop.c (make_edge_direct_to_target): Renamed to
7423         ipa_make_edge_direct_to_target and changed all callers.  Made
7424         externally visible.
7425         (ipa_node_duplication_hook): Duplicate types vector.
7426         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
7427         redirect outgoing calls for which we can't get a decl from the
7428         statement.  Check that we can get a decl from the call statement.
7429         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7430         ipa_analyze_params_uses only when ipa-cp is disabled.
7431         * tree-inline.c (get_indirect_callee_fndecl): Removed.
7432         (expand_call_inline): Do not call get_indirect_callee_fndecl.
7433         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
7434         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
7435
7436 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7437
7438         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
7439         temporary. Emit move from temporary to accum, so REG_EQUAL note will
7440         be attached to this insn in correct mode.
7441
7442 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7443
7444         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7445         using REGNO of base_reg directly.
7446
7447 2010-08-05  Jie Zhang  <jie@codesourcery.com>
7448
7449         PR tree-optimization/45144
7450         * tree-sra.c (type_consists_of_records_p): Return false
7451         if the record contains bit-field.
7452
7453 2010-08-04  Richard Henderson  <rth@redhat.com>
7454
7455         * config/i386/i386.c (struct ix86_frame): Remove padding and
7456         to_allocate members.
7457         (ix86_compute_frame_layout): Don't store them.
7458         (ix86_can_use_return_insn_p): Use a more direct and more obviously
7459         correct condition for the position of the stack pointer.
7460         (ix86_expand_prologue): Compute remaining stack allocation based
7461         on the ultimate stack pointer offset.
7462         (ix86_expand_epilogue): Use more obvious expressions testing for
7463         the stack pointer already pointing to the saved registers.
7464
7465         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7466         duplication deconstructing the frame pointer.  Simplify
7467         deallocation of the local stack frame.
7468
7469         * reg-notes.def (CFA_EXPRESSION): New.
7470         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7471         (dwarf2out_frame_debug_cfa_expression): New.
7472         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7473
7474         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7475         * config/i386/i386.c (ix86_expand_prologue): Set it.
7476         (ix86_expand_epilogue): Clear it.
7477         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7478         context, add REG_CFA_EXPRESSION notes.
7479
7480         * config/i386/i386.h (struct machine_frame_state): Rename from
7481         machine_cfa_state.  Add members tracking SP and FP regardless
7482         of the current CFA register.
7483         (ix86_cfa_state): Remove.
7484         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7485         and sse_reg_save_offset members.
7486         (ix86_compute_frame_layout): Set them.
7487         (gen_push): Increment sp_offset too.
7488         (choose_baseaddr_len, choose_baseaddr): New.
7489         (ix86_emit_save_reg_using_mov): New.
7490         (ix86_emit_save_regs_using_mov): Use it.
7491         (ix86_emit_save_sse_regs_using_mov): Likewise.
7492         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7493         compare vs the saved red_zone_offset.
7494         (pro_epilogue_adjust_stack): Adjust sp_offset.
7495         (ix86_adjust_stack_and_probe): Likewise.
7496         (ix86_expand_prologue): Set up, use, and validate the new
7497         frame_state_info members.  Use gen_frame_mem.
7498         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7499         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
7500         new frame_state_info members.
7501         (ix86_emit_leave): Likewise.
7502         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
7503         out-of-range stack pointer offsets here.
7504         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7505         (ix86_expand_epilogue): Use and validate the new frame_state_info
7506         members.  Break up and simplify the logic selecting the
7507         restore_regs_via_mov code path.  Ensure that there will be no
7508         out-of-range stack pointer offsets.
7509
7510         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7511
7512         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7513         argument name to reflect the expected tree; fix indentation.
7514         (ix86_asm_output_function_label): Output the entire 32-bit
7515         ms_hook here as bytes ...
7516         (ix86_expand_prologue): ... not here as insns.  Attach the
7517         unwind info for the ms_hook to a blockage insn.
7518         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7519         (ix86_ms_bitfield_layout_p): Fix indentation.
7520         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7521
7522         * config/i386/i386.c (ix86_using_red_zone): New.
7523         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7524         ix86_expand_prologue, ix86_force_to_memory): Use it.
7525
7526         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7527         saving the int registers.
7528
7529         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7530         and DWARF2_UNWIND_INFO conditional compilation.
7531
7532 2010-08-04  Richard Henderson  <rth@redhat.com>
7533
7534         PR debug/45171
7535         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7536         an is_naming_typedef_decl.
7537
7538 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
7539
7540         PR rtl-optimization/45162
7541         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7542         * dce.c (word_dce_process_block): Likewise.
7543
7544 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
7545
7546         PR target/44583
7547         * config/ia64/constraints.md (Z): New.
7548         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7549         (xfreg_or_signed_fp01_operand): New.
7550         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7551         with fr_reg_or_signed_fp01_operand and constraint G with Z.
7552         (subsf3): Ditto.
7553         (*maddsf4): Ditto.
7554         (*msubsf4): Ditto.
7555         (adddf3): Ditto.
7556         (adddf3_trunc): Ditto.
7557         (subdf3): Ditto.
7558         (*subdf3_trunc): Ditto.
7559         (*madddf4): Ditto.
7560         (*madddf4_trunc): Ditto.
7561         (*msubdf4): Ditto.
7562         (*msubdf4_trunc): Ditto.
7563         (addxf3): Replace xfreg_or_fp01_operand with
7564         xfreg_or_signed_fp01_operand and constraint G with Z.
7565         (*addxf3_truncsf): Ditto.
7566         (*addxf3_truncdf): Ditto.
7567         (subxf3): Ditto.
7568         (*subxf3_truncsf): Ditto.
7569         (*subxf3_truncdf): Ditto.
7570         (*maddxf4): Ditto.
7571         (*maddxf4_truncsf): Ditto.
7572         (*maddxf4_truncdf): Ditto.
7573         (*msubxf4): Ditto.
7574         (*msubxf4_truncsf): Ditto.
7575         (*msubxf4_truncdf): Ditto.
7576
7577 2010-08-04  Richard Guenther  <rguenther@suse.de>
7578
7579         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7580         if either alias-set is zero.
7581
7582 2010-08-04  Richard Guenther  <rguenther@suse.de>
7583
7584         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7585         * tree-ssa-ccp.c: ... here.
7586         * tree-ssa-copy.c: ... and here.
7587         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7588         value_range_t): Move ...
7589         * tree-vrp.c: ... here.
7590         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7591         (substitute_and_fold): Adjust prototype.
7592         * tree-ssa-propagate.c (replace_uses_in): Adjust.
7593         (replace_phi_args_in): Likewise.
7594         (substitute_and_fold): Take callback to query lattice instead
7595         of pointer to lattice.  Replace SSA name defs with lattice
7596         values first.
7597         * tree-ssa-ccp.c (ccp_finalize): Adjust.
7598         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7599         (get_value): New function.
7600         (fini_copy_prop): Adjust.
7601         * tree-vrp.c (vrp_finalize): Adjust.
7602
7603 2010-08-04  Richard Guenther  <rguenther@suse.de>
7604
7605         PR middle-end/45176
7606         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7607         points-to set for original MEM_REF.
7608
7609 2010-08-04  Richard Guenther  <rguenther@suse.de>
7610
7611         * tree-ssa-ccp.c (get_constant_value): New function.
7612         (get_rhs_assign_op_for_ccp): Remove.
7613         (valueize_op): New function.
7614         (ccp_fold): Use get_constant_value and valueize_op.
7615         (fold_const_aggregate_ref): Likewise.
7616         (ccp_fold_stmt): Likewise.
7617         (visit_assignment): Simplify.
7618
7619 2010-08-04  Richard Guenther  <rguenther@suse.de>
7620
7621         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7622         * double-int.h (double_int_ctz): Declare.
7623         * double-int.c (double_int_ctz): New function.
7624
7625 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7626
7627         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7628         Define.
7629         picochip_expand_movmemhi : Expand movmem pattern.
7630         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7631         Declare.
7632         * config/picochip/picochip.md (movmemhi) : New pattern.
7633
7634 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7635
7636         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7637
7638 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
7639
7640         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7641         NEG as operand of a MULT by merging it with the other operand.
7642         * combine.c (make_compound_operation): Use trunc_int_for_mode when
7643         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
7644         MULT.
7645         * config/arm/constraints.md (M): Examine only 32 bits of a
7646         HOST_WIDE_INT.
7647         * config/arm/predicates.md (power_of_two_operand): Likewise.
7648
7649 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7650
7651         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7652         non-NOTE insns.
7653
7654 2010-08-03  Jan Hubicka  <jh@suse.cz>
7655
7656         * ipa-split.c (struct split_point): Add split_part_set_retval.
7657         (find_retval): Forward declare.
7658         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7659         (consider_split): Compute current->split_part_set_retval.
7660         (visit_bb): Do not look into return value.
7661         (split_function): Handle !split_part_set_retval
7662
7663 2010-08-03  Martin Jambor  <mjambor@suse.cz>
7664
7665         * tree-sra.c (completely_scalarize_record): New parameter REF, create
7666         its own access->expr intead of using build_ref_for_offset.
7667
7668 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
7669
7670         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7671         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7672         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7673         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7674         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7675         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7676         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7677         DEFAULT_SWITCH_TAKES_ARG.
7678         * config/rx/rx.opt (-patch=): Remove option.
7679         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7680         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7681         * doc/invoke.texi (RX Options): Remove -patch=.
7682         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7683         (option_map): Remove --profile-blocks, --quiet and --silent.
7684
7685 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7686
7687         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7688         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7689         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
7690         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7691         Update calls to ix86_expand_compare and ix86_expand_branch.
7692         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
7693         ix86_expand_compare.
7694         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
7695         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7696         Make static.
7697         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7698         and ix86_compare_op1.  Update calls to ix86_expand_compare.
7699         (ix86_expand_int_movcc): Ditto.
7700         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
7701         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7702         (ix86_expand_setcc): Ditto.
7703         (ix86_expand_compare): Remove prototype.
7704         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7705         ix86_compare_op0 and ix86_compare_op1.  Update calls
7706         to ix86_expand_branch to directly pass operands[1] and operands[2].
7707         (cbranchxf4): Ditto.
7708         (cbranch<MODEF:mode>4): Ditto.
7709         (cbranchcc4): Ditto.
7710         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7711         Update calls to ix86_expand_setcc to directly pass operands[2] and
7712         operands[3].
7713         (cstorexf4): Ditto.
7714         (cstore<MODEF:mode>4): Ditto.
7715         (cstorecc4): Ditto.
7716
7717 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7718
7719         PR target/45063
7720         * caller-save.c (save_call_clobbered_regs): Remove regs from
7721         hard_regs_saved when they are set.
7722
7723 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7724
7725         PR target/41089
7726         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7727         as volatile.
7728
7729 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
7730
7731         * common.opt (ftree-loop-distribute-patterns): New.
7732         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7733         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7734         at -O3.
7735         * tree-data-ref.c (stores_zero_from_loop): New.
7736         * tree-data-ref.h (stores_zero_from_loop): Declared.
7737         * tree-loop-distribution.c (tree_loop_distribution): Call
7738         stores_zero_from_loop.
7739         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7740
7741 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7742
7743         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7744         into account.
7745
7746         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7747         * config/arm/arm.c (thumb1_code): New variable.
7748         (arm_override_options): Set it.
7749         (thumb1_final_prescan_insn): Keep track of condition code status.
7750         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7751         jumps that depend on them.
7752         * config/arm/arm.h (thumb1_code): Declare variable.
7753         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
7754         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7755         thumb1_cc_mode.
7756         (CC_STATUS_INIT): New macro.
7757         * config/arm/constraints.md (Pd): New constraint.
7758         * config/arm/predicates.md (noov_comparison_operator): New predicate.
7759         * config/arm/arm.md (is_thumb1): New define_attr.
7760         (conds): Set default to "clob" when generating Thumb1 code.
7761         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
7762         code are set.  Use two-operand assembly syntax.
7763         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
7764         pattern.
7765         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7766         codes are set.  Use two-operand assembly syntax.
7767         (zero_extendhisi splitter): Remove constraints.
7768         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7769         thumb1_movsf_insn): Set conds attribute as appropriate.
7770         (cbranchsi4_insn): Use condition code status from struct
7771         machine_function to determine whether the comparison can be eliminated.
7772         Discourage the alternative using high registers.
7773         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7774         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7775         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7776         subsi3_cbranch): Delete.
7777         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7778         one subtract and one cbranch insn.
7779
7780         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7781         thumb2_movdf_soft_insn): Delete patterns.
7782         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7783         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7784         (pool_range, neg_pool_range): Use them to define defaults.
7785         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7786         and allow for TARGET_32BIT.
7787
7788         PR target/40457
7789         * config/arm/arm.h (arm_regs_in_sequence): Declare.
7790         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7791         load_multiple_sequence, store_multiple_sequence): Delete
7792         declarations.
7793         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7794         declarations.
7795         * config/arm/ldmstm.md: New file.
7796         * config/arm/arm.c (arm_regs_in_sequence): New array.
7797         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
7798         CHECK_REGS.  All callers changed.
7799         If SAVED_ORDER is nonnull, copy the computed order into it.
7800         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
7801         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
7802         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
7803         If SAVED_ORDER is nonnull, copy the computed order into it.
7804         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
7805         like REGS.  Handle Thumb mode.
7806         (arm_gen_load_multiple_1): New function, broken out of
7807         arm_gen_load_multiple.
7808         (arm_gen_store_multiple_1): New function, broken out of
7809         arm_gen_store_multiple.
7810         (arm_gen_multiple_op): New function, with code from
7811         arm_gen_load_multiple and arm_gen_store_multiple moved here.
7812         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7813         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
7814         changed.
7815         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7816         * config/arm/predicates.md (commutative_binary_operator): New.
7817         (load_multiple_operation, store_multiple_operation): Handle more
7818         variants of these patterns with different starting offsets.  Handle
7819         Thumb-1.
7820         * config/arm/arm.md: Include "ldmstm.md".
7821         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7822         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7823         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7824         peepholes): Delete.
7825         * config/arm/ldmstm.md: New file.
7826         * config/arm/arm-ldmstm.ml: New file.
7827
7828         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7829         if statement which adds extra costs to frame-related expressions.
7830
7831 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7832
7833         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7834
7835 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7836
7837         PR target/45142
7838         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7839         alternative 2.
7840         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7841         split V4SI operands.
7842
7843 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7844
7845         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7846         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7847         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7848         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7849
7850 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7851
7852         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7853         LOCAL_INCLUDE_DIR.
7854
7855 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7856
7857         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7858         used in the call to optab_for_tree_code.  Fix the second
7859         is_widening_mult_p call.  Check that both unwidened operands
7860         have the same sign.
7861
7862 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7863
7864         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7865
7866 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7867
7868         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7869
7870 2010-07-30  DJ Delorie  <dj@redhat.com>
7871
7872         * config/rx/predicates.md (rx_constshift_operand): New.
7873         * config/rx/rx.md (zs_cond): New.
7874         (cbranchsi4): Remove mode.
7875         (*cbranchsi4_<code>): Likewise.
7876         (*tstbranchsi4_<code>): New.
7877         (*tstbranchsi4r_<code>): New.
7878         (*tstbranchsi4m_eq): New.
7879         (*tstbranchsi4m_ne): New.
7880         (cbranchsf4): Remove mode.
7881         (*cbranchsf4_<code>): Likewise.
7882
7883 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7884
7885         * rtlanal.c (simplify_subreg_regno): Don't treat
7886         HARD_FRAME_POINTER_REGNUM specially.
7887
7888 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7889
7890         * common.opt (-G): Don't define option here.
7891         * config/g.opt: New.
7892         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7893         rs6000/powerpc and score targets.
7894         * opts.c (common_handle_option): Don't handle -G here.
7895         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7896         * config/frv/frv.c (frv_handle_option): Handle -G.
7897         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7898         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7899         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7900         * config/mips/mips.c (mips_handle_option): Handle -G.
7901         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7902         * config/score/score.c (score_handle_option): Handle -G.
7903
7904 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7905
7906         * config/mmix/mmix.c: Include basic-block.h.
7907
7908 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7909
7910         PR debug/45055
7911         PR rtl-optimization/45137
7912         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7913         prototypes.
7914         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7915         New functions.
7916         * combine.c (next_nonnote_nondebug_insn): Removed.
7917         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7918         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7919         * sched-deps.c (sched_analyze_insn): Likewise.
7920         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7921         * rtlanal.c (canonicalize_condition): Likewise.
7922         * postreload.c (reload_combine_recognize_pattern): Likewise.
7923         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7924
7925 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7926
7927         * config/i386/i386.md (int_cond): Remove code iterator.
7928         (fp_cond): Ditto.
7929         (cbranch<mode>4): Use ordered_comparison_operator predicate
7930         for operator0.
7931         (cstore<mode>4): Ditto for operator1.
7932         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7933         (add<mode>cc): ditto.
7934
7935 2010-07-30  Richard Guenther  <rguenther@suse.de>
7936
7937         PR middle-end/45141
7938         * expr.c (expand_expr_real_1): Check for not handled base address.
7939
7940 2010-07-30  Richard Guenther  <rguenther@suse.de>
7941
7942         * ipa-prop.c (ipa_modify_formal_parameters): Use
7943         build_distinct_type_copy.
7944
7945 2010-07-30  Anthony Green  <green@moxielogic.com>
7946
7947         * config/moxie/rtems.h: New file.
7948         * config.gcc: Add moxie-rtems support.
7949
7950 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7951
7952         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7953         df flags as in run_fast_df_dce.
7954
7955 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7956
7957         Revert:
7958         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7959
7960         * rtl.def (NOTE): Swap operands 4 and 5.
7961         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7962         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7963         Adjust accordingly.
7964         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7965
7966 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7967
7968         PR debug/45110
7969         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7970         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7971         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7972         formal parameters.
7973         (gen_decl_die): Change return type to dw_die_ref, return what
7974         gen_formal_parameter_die returned.
7975
7976 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7977
7978         * dbgcnt.def (eipa_sra): New counter.
7979         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7980
7981 2010-07-29  Xinliang David Li  <davidxl@google.com>
7982
7983         PR bootstrap/45119
7984         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7985         in revision 162652.
7986
7987 2010-07-29  Richard Guenther  <rguenther@suse.de>
7988
7989         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7990         (TV_TREE_STORE_CCP): Likewise.
7991         (TV_TREE_REDPHI): Likewise.
7992
7993 2010-07-29  Richard Guenther  <rguenther@suse.de>
7994
7995         * double-int.h (double_int_and_not): New function.
7996         * combine.c (try_combine): Use it.
7997         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7998
7999 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8000
8001         PR rtl-optimization/42575
8002         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
8003         Argument AU removed.  All callers changed.  Ignore artificial refs.
8004         Use return value of df_word_lr_simulate_defs to decide whether an insn
8005         is necessary.
8006         (fast_dce): Rename arg to WORD_LEVEL.
8007         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
8008         static.
8009         (pass_fast_rtl_byte_dce): Delete.
8010         * dce.h (run_word_dce): Declare.
8011         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
8012         All callers changed.  Simplify code to only deal with two-word regs.
8013         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
8014         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
8015         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
8016         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
8017         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
8018         (df_word_lr_mark_ref): Declare.
8019         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
8020         df_word_lr_simulate_uses): Declare or rename from byte variants.
8021         (df_byte_lr_simulate_artificial_refs_at_top,
8022         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8023         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
8024         declarations.
8025         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
8026         (enum df_mm): Delete.
8027         * df-byte-scan.c: Delete file.
8028         * df-problems.c (df_word_lr_problem_data): Renamed from
8029         df_byte_lr_problem_data, all members deleted except for
8030         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
8031         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
8032         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8033         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
8034         df_byte_lr_confluence_0): Delete functions.
8035         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
8036         callers changed.
8037         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
8038         Don't initialize members that were deleted, don't try to discover data
8039         about registers.  Ignore hard regs.
8040         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
8041         (df_word_lr_mark_ref): New function.
8042         (df_word_lr_bb_local_compute): Renamed from
8043         df_byte_bb_lr_local_compute; all callers changed.  Use
8044         df_word_lr_mark_ref.  Assert that artificial refs don't include
8045         pseudos.  Ignore hard registers.
8046         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
8047         Assert that exit block uses don't contain pseudos.
8048         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
8049         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
8050         callers changed.  Ignore hard regs.
8051         (df_word_lr_transfer_function): Renamed from
8052         df_byte_lr_transfer_function; all callers changed.
8053         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
8054         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
8055         changed.
8056         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
8057         callers changed.
8058         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
8059         confluence operator 0 set to NULL.
8060         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
8061         callers changed.
8062         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
8063         Return bool, true if bitmap changed or insn otherwise necessary.
8064         All callers changed.  Simplify using df_word_lr_mark_ref.
8065         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
8066         all callers changed.  Simplify using df_word_lr_mark_ref.
8067         * lower-subreg.c: Include "dce.h"
8068         (decompose_multiword_subregs): Call run_word_dce if df available.
8069         * Makefile.in (lower-subreg.o): Adjust dependencies.
8070         (df-byte-scan.o): Delete.
8071         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
8072
8073 2010-07-29  Richard Guenther  <rguenther@suse.de>
8074
8075         * tree.c (build_vector): Assert that the vector constant
8076         has enough elements.
8077         (build_vector_from_ctor): Pad with trailing zeros.
8078
8079 2010-07-29  Richard Guenther  <rguenther@suse.de>
8080
8081         PR tree-optimization/45120
8082         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8083         Handle offset in DEREFs properly.
8084         (get_constraint_for_1): Handle MEM_REF offset properly.
8085
8086 2010-07-29  Richard Guenther  <rguenther@suse.de>
8087
8088         PR middle-end/45034
8089         * convert.c (convert_to_integer): Always use an unsigned
8090         type for narrowed negate and bitwise not.
8091
8092 2010-07-29  Ira Rosen  <irar@il.ibm.com>
8093
8094         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
8095         to outer loop when creating reduction epilogue for double reduction,
8096         and switch back to the inner loop when updating the phi nodes.
8097         Update uses of outer loop exit phi nodes in double reduction (instead
8098         of uses of reduction).
8099
8100 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
8101
8102         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
8103         popcount on power7 and parity on power6 systems.
8104         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
8105         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
8106         instructions.
8107
8108         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
8109         (UNSPEC_PARITY): Ditto.
8110         (SFDF): New iterator for SF/DF.
8111         (rreg2): New mode attribute for floating register constraint.
8112         (TARGET_FLOAT): New mode attribute for whether single/double float
8113         is supported.
8114         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
8115         pattern.
8116         (parity<mode>2_cmpb): New insn for parity on power6 and newer
8117         machines.
8118         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
8119         pattern.  Add support for fcpsgn instruction added in power6.
8120         (copysignsf3): Delete.
8121         (copysigndf3): Delete.
8122         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
8123         instead of if_then_else in RTL to avoid problems with -0.
8124
8125         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
8126         of if_then_else to mirror scalar code.
8127         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
8128         rs6000.md.
8129
8130         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
8131         instead of if_then_else.
8132
8133 2010-07-28  Xinliang David Li  <davidxl@google.com>
8134
8135         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
8136         (dump_cand): Dump var_before/after.
8137         (htab_inv_expr_eq): New function.
8138         (htab_inv_expr_hash): New function.
8139         (tree_ssa_iv_optimize_init): Support pseudo invariants.
8140         (add_candidate_1): consider base type precision.
8141         (set_use_iv_cost): New parameter.
8142         (adjust_setup_cost): Use profile information.
8143         (get_address_cost): Do not hard code width in computing address
8144         offset limits.
8145         (compare_aff_trees): New function.
8146         (get_loop_invariant_expr_id): New function.
8147         (get_computation_cost_at): New parameter and use profile information.
8148         (get_computation_cost): New parameter.
8149         (determine_use_iv_cost_generic): Pass new parameter.
8150         (determine_use_iv_cost_address): Ditto.
8151         (determine_use_iv_cost_condition): Ditto.
8152         (autoinc_possible_for_pair): Ditto.
8153         (determine_use_iv_costs): More dumps.
8154         (iv_ca_get_num_inv_exprs): New function.
8155         (iv_ca_recount_cost): Consider loop invariants in register pressure
8156         cost.
8157         (iv_ca_add_use): New parameter.
8158         (iv_ca_dump): Better dumping.
8159         (iv_ca_extend): New parameter.
8160         (try_add_cand_for): Attempt to get better partial solution.
8161         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
8162         (create_new-ivs): More dumps.
8163         (rewrite_use_compare): Ditto.
8164         (free_loop_data): More cleanup.
8165         (treee_ssa_iv_optimize_finalize): Ditto.
8166
8167 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
8168
8169         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
8170         * config/i386/i386.c (ix86_profile_before_prologue): New.
8171         (override_options): Add special handling for -mfentry.
8172         (ix86_function_regparm): Likewise.
8173         (ix86_function_sseregparm): Likewise.
8174         (ix86_frame_pointer_required): Likewise.
8175         (ix86_expand_prologue): Check for ms_hook_prologue.
8176         (x86_function_profiler): Adjust mcount output.
8177         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
8178         * config/i386/i386.opt (mfentry): New.
8179         * doc/invoke.texi (mfentry): Add documentation.
8180         * doc/tm.texi: Regenerated..
8181         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
8182         * final.c (final_start_function): Replace macro
8183         PROFILE_BEFORE_PROLOGUE by target hook.
8184         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8185         * target.def (profile_before_prologue): New hook.
8186         * targhooks.c (default_profile_before_prologue): New.
8187         * targhooks.h (default_profile_before_prologue): New.
8188
8189 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
8190
8191         PR debug/45105
8192         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
8193
8194         PR debug/45103
8195         * dwarf2out.c (dwarf2out_var_location): Always consider
8196         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
8197
8198 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8199
8200         PR rtl-optimization/45107
8201         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
8202
8203 2010-07-28  Richard Guenther  <rguenther@suse.de>
8204
8205         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
8206         (set_lattice_value): Do not query an old default value.
8207         (get_value_for_expr): New function.  Properly canonicalize
8208         float values.
8209         (ccp_visit_phi_node): Use it.
8210
8211 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
8212
8213         * config/arm/arm.c (arm_pcs_default): Remove static.
8214         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
8215         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
8216         (arm_pcs_default): Declare.
8217
8218 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
8219
8220         * config/rs6000/rs6000.c (rs6000_override_options):
8221         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
8222         ... to darwin_rs6000_override_options.
8223         (rs6000_return_in_memory): Update preceding comment for darwin
8224         64 bit ABI.  Use TARGET_MACHO inline.
8225         (rs6000_darwin64_struct_check_p): New.
8226         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
8227         (function_arg): Likewise.
8228         (rs6000_arg_partial_bytes): Likewise.
8229         (rs6000_function_value): Likewise.
8230
8231 2010-07-28  Andi Kleen  <ak@linux.intel.com>
8232
8233         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
8234
8235 2010-07-28  Richard Guenther  <rguenther@suse.de>
8236
8237         PR middle-end/44903
8238         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
8239         targets try harder to not generate unaligned accesses.
8240
8241 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8242
8243         PR rtl-optimization/45101
8244         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
8245         for gcse-las.
8246
8247 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8248
8249         PR tree-optimization/44885
8250         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
8251         with non-aliased component.
8252
8253 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
8254
8255         * config/darwin-driver.c (SWITCH_TAKES_ARG,
8256         WORD_SWITCH_TAKES_ARG): Remove.
8257         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
8258         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
8259         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
8260         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
8261         definitions from gcc.c.
8262         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
8263         defaults.h.
8264         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
8265         Move to defaults.h.
8266         * opts-common.c: Include tm.h.
8267         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
8268         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
8269         Handle more than one argument.  Set canonical_option_num_elements.
8270         (decode_cmdline_options_to_array): Set
8271         canonical_option_num_elements and trailing elements of
8272         canonical_option.
8273         * opts.h (struct cl_decoded_option): Allow four elements in
8274         canonical_option.  Add field canonical_option_num_elements.
8275         * Makefile.in (opts-common.o): Update dependencies.
8276
8277 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8278
8279         PR middle-end/44790
8280         PR middle-end/44993
8281         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
8282         sure the base has address_mode before adding the offset.
8283
8284 2010-07-27  Xinliang David Li  <davidxl@google.com>
8285
8286         * tree-flow.h (create_mem_ref): Add one new parameter.
8287         * tree-ssa-address.c (create_mem_ref): New parameter.
8288         (addr_to_parts): Ditto.
8289         (move_variant_to_index): New function.
8290         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
8291
8292 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8293
8294         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
8295         4 and 5.
8296         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
8297         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
8298         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
8299         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
8300         CODE_LABELs and NOTEs.
8301         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
8302         * combine.c (try_combine): Likewise.
8303         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8304         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
8305
8306 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8307
8308         * coretypes.h (struct cl_option_handlers): Declare.
8309         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
8310         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
8311         * langhooks-def.h (lhd_handle_option): Declare.
8312         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
8313         * langhooks.c (lhd_handle_option): New.
8314         * langhooks.h (struct lang_hooks): Update prototype and return
8315         value type of handle_option hook.
8316         * optc-gen.awk: Generate target_flags_explicit definition for the
8317         driver.
8318         * opts-common.c: Include diagnostic.h.
8319         (handle_option): Move from opts.c.  Update prototype and return
8320         value type.  Use handlers structure.
8321         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
8322         handlers structure.
8323         (set_option): Move from opts.c.
8324         * opts.c (common_handle_option): Update prototype and return value
8325         type.  Update calls to handle_option and enable_warning_as_error.
8326         (unknown_option_callback, post_handling_callback,
8327         lang_handle_option, target_handle_option): New.
8328         (handle_option, read_cmdline_option): Move to opts-common.c.
8329         (read_cmdline_options): Update prototype.  Update call to
8330         read_cmdline_option.
8331         (decode_options): Initialize and use handlers structure.
8332         (set_option): Move to opts-common.c.
8333         (enable_warning_as_error): Update prototype.  Update call to
8334         handle_option.
8335         * opts.h (struct cl_option_handler_func, struct
8336         cl_option_handlers): New.
8337         (handle_option, enable_warning_as_error): Update prototypes.
8338         (read_cmdline_option): Declare.
8339         * Makefile.in (opts-common.o): Update dependencies.
8340
8341 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8342
8343         * config/arm/arm.c (params.h): Include.
8344         (arm_override_options): Tune gcse-unrestricted-cost.
8345         * config/arm/t-arm (arm.o): Define dependencies.
8346
8347 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8348
8349         PR target/42495
8350         PR middle-end/42574
8351         * basic-block.h (get_dominated_to_depth): Declare.
8352         * dominance.c (get_dominated_to_depth): New function, use
8353         get_all_dominated_blocks as a base.
8354         (get_all_dominated_blocks): Use get_dominated_to_depth.
8355
8356         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
8357         (hoist_exprs): Remove.
8358         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
8359         (compute_code_hoist_vbeinout): Add debug print outs.
8360         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
8361
8362         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
8363         quadratic behavior.
8364         * params.h (MAX_HOIST_DEPTH): New macro.
8365         * doc/invoke.texi (max-hoist-depth): Document.
8366
8367 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8368
8369         PR rtl-optimization/40956
8370         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
8371         constants.
8372
8373 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8374
8375         PR target/42495
8376         PR middle-end/42574
8377         * config/arm/arm.c (legitimize_pic_address): Use
8378         gen_calculate_pic_address pattern to emit calculation of PIC address.
8379         (will_be_in_index_register): New function.
8380         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
8381         (thumb1_legitimate_address_p): Use it provided !strict_p.
8382         * config/arm/arm.md (calculate_pic_address): New expand and split.
8383
8384 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8385
8386         PR target/42495
8387         PR middle-end/42574
8388         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
8389         * config/arm/arm.md (define_split "J", define_split "K"): Make
8390         IRA/reload friendly.
8391
8392 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8393
8394         * gcse.c (insert_insn_end_basic_block): Update signature, remove
8395         unused checks.
8396         (pre_edge_insert, hoist_code): Update.
8397
8398 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8399
8400         PR target/42495
8401         PR middle-end/42574
8402         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
8403
8404 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8405
8406         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
8407
8408 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8409
8410         PR rtl-optimization/40956
8411         PR target/42495
8412         PR middle-end/42574
8413         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
8414         for hoisting.
8415         (hoist_code): Count occurences in current block too.
8416
8417 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8418
8419         * gcse.c (struct expr:max_distance): New field.
8420         (doing_code_hoisting_p): New static variable.
8421         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
8422         simple expressions, don't change behavior for PRE.  Set max_distance.
8423         (insert_expr_in_table): Set new max_distance field.
8424         (hash_scan_set): Update.
8425         (hoist_expr_reaches_here_p): Stop search after max_distance
8426         instructions.
8427         (find_occr_in_bb): New static function.  Use it in ...
8428         (hoist_code): Calculate sizes of basic block before any changes are
8429         done.  Pass max_distance to hoist_expr_reaches_here_p.
8430         (one_code_hoisting_pass): Set doing_code_hoisting_p.
8431
8432         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
8433         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
8434         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
8435         macros.
8436         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
8437         Document.
8438
8439 2010-07-27  Jeff Law  <law@redhat.com>
8440             Maxim Kuvyrkov  <maxim@codesourcery.com>
8441
8442         * gcse.c (compute_transpout, transpout): Remove, move logic
8443         to prune_expressions.
8444         (compute_pre_data): Move pruning of trapping expressions ...
8445         (prune_expressions): ... here.  New static function.
8446         (compute_code_hoist_data): Use it.
8447         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8448
8449 2010-07-27  Xinliang David Li  <davidxl@google.com>
8450
8451         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8452         (rewrite_use_address): Adjust iv update position when needed.
8453
8454 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8455
8456         * dbgcnt.def (hoist_insn): New debug counter.
8457         * gcse.c (hoist_code): Use it.
8458
8459 2010-07-27  Xinliang David Li  <davidxl@google.com>
8460
8461         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8462         (niter_for_single_dom_exit): Passes additional parameter.
8463         (iv_period): Fix comments.
8464         (may_eliminate_iv): Handles multiple exit loops properly.
8465         (free_tree_niter_desc): New function.
8466         (free_loop_data): Frees up loop iteration descriptors.
8467
8468 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8469
8470         PR target/44542
8471         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8472         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8473         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8474         (expand_one_var): Don't consider DECL_ALIGN for variables for
8475         which expand_one_stack_var_at has been already called.
8476
8477         PR testsuite/44701
8478         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8479         constraints on IA-64.
8480
8481 2010-07-27  Jie Zhang  <jie@codesourcery.com>
8482
8483         PR target/44290
8484         Revert:
8485         2010-07-23  Jie Zhang  <jie@codesourcery.com>
8486
8487         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8488         false if ! tree_versionable_function_p.
8489
8490 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8491
8492         * dwarf2out.c (add_data_member_location_attribute): Use
8493         add_AT_unsigned instead of add_AT_int if offset is non-negative.
8494
8495 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8496
8497         * postreload.c (try_replace_in_use): New static function.
8498         (reload_combine_recognize_const_pattern): Use it here.  Allow
8499         substituting into a final add insn, and substituting into a memory
8500         reference in an insn that sets the reg.
8501
8502 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8503
8504         * common.opt (o): Add MissingArgError.
8505         * doc/options.texi (MissingArgError): Document.
8506         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8507         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8508         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8509         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8510         * langhooks.h (struct lang_hooks): Remove missing_argument.
8511         * optc-gen.awk: Handle MissingArgError and output new structure
8512         field initializers.
8513         * opts.c (read_cmdline_option): Use missing_argument_error field
8514         instead of missing_argument langhook.
8515         * opts.h (struct cl_option): Add missing_argument_error field.
8516         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8517
8518 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8519
8520         PR target/29090
8521         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8522         Darwin64 ABI, for zero-sized objects.
8523
8524 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8525
8526         PR target/35491
8527         PR target/29090
8528
8529         Merge from Apple local 4.2.1.
8530         2005-05-11  Stan Shebs  <shebs@apple.com>
8531         Fix 64-bit varargs for Darwin (Radar 4028089).
8532         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8533         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8534         Add argument, add case for 8-byte register half-filled with a float.
8535         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8536         single-precision floats specially.
8537
8538 2010-07-27  Ira Rosen  <irar@il.ibm.com>
8539
8540         PR tree-optimization/44152
8541         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8542         complex numbers for further check.
8543         (vect_supported_load_permutation_p): Check nodes with
8544         complex numbers.
8545
8546 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8547
8548         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8549         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8550         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8551         (LANG_HOOKS_INITIALIZER): Add new hooks.
8552         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8553         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8554         and complain_wrong_lang_p.  Update init_options prototype.
8555         * c-objc-common.c (c_initialize_diagnostics): First call
8556         c_common_initialize_diagnostics.
8557         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8558         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8559         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8560         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8561         (hook_uint_void_0): New.
8562         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8563         (hook_uint_void_0): New.
8564         * opts-common.c (decode_cmdline_option,
8565         decode_cmdline_options_to_array): Also fill in canonical_option field.
8566         * opts.c (complain_wrong_lang): Use langhook to determine whether
8567         to complain instead of special-casing LTO.
8568         (decode_options): Separate lang_mask determination with
8569         option_lang_mask hook from call of init_options hook.
8570         * opts.h (struct cl_decoded_option): Add canonical_option.
8571
8572 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8573
8574         PR tree-optimization/45083
8575         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8576
8577 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8578
8579         * postreload.c (reload_combine_recognize_const_pattern): Move test
8580         for limiting the insn movement to the right scope.
8581
8582         PR rtl-optimization/45051
8583         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8584         than reg_mentioned_p.
8585
8586 2010-07-26  Richard Henderson  <rth@redhat.com>
8587
8588         PR target/44132
8589         * tree-emutls.c: New file.
8590         * Makefile.in (OBJS-common): Add it.
8591         * tree-pass.h (pass_ipa_lower_emutls): Declare.
8592         * passes.c (init_optimization_passes): Add it.
8593
8594         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8595         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8596         * expr.c (emutls_var_address): Delete.
8597         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8598         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8599         (emutls_finish): Delete.
8600         * toplev.c (compile_file): Don't call it.
8601         * tree.h (emutls_decl): Delete.
8602         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8603         (emutls_finish, emutls_finalize_control_var): Delete.
8604         (emutls_object_type): Move to tree-emutls.c.
8605         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8606         default_emutls_var_fields, get_emutls_object_type,
8607         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8608         default_emutls_var_init): Likewise.
8609         (get_variable_section): Don't special case emutls.
8610         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8611         default_elf_select_section, default_unique_section,
8612         default_encode_section_info): Likewise.
8613         * varpool.c (decide_is_variable_needed): Likewise.
8614         * gimple-iterator.c (update_call_edge_frequencies): New
8615         (gsi_insert_on_edge_immediate): Use it.
8616         (gsi_insert_seq_on_edge_immediate): Likewise.
8617         (gsi_commit_one_edge_insert): Likewise.
8618
8619         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8620         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8621         (x86_64_elf_unique_section): Likewise.
8622
8623 2010-07-26  Jan Hubicka  <jh@suse.cz>
8624
8625         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8626         GTY((skip)).
8627
8628 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
8629
8630         * target.def (output_source_filename): New hook.
8631         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8632         * doc/tm.texi: Regenerate.
8633         * toplev.c (output_file_directive) Remove function.
8634         * toplev.h (output_file_directive) Remove.
8635         * output.h (default_asm_output_source_filename,
8636         output_file_directive): Declare.
8637         * varasm.h (default_asm_output_source_filename,
8638         output_file_directive): New functions.
8639
8640         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8641         * config/mips/mips-protos.h (mips_output_filename): Remove.
8642         * config/mips/mips.c (mips_output_filename): Make Static.
8643         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8644
8645 2010-07-26  Richard Guenther  <rguenther@suse.de>
8646
8647         PR tree-optimization/43784
8648         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8649         if the destination is used by the call.
8650
8651 2010-07-26  Richard Guenther  <rguenther@suse.de>
8652
8653         PR middle-end/45073
8654         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8655         SSA updating on being in SSA form.
8656
8657 2010-07-26  Richard Guenther  <rguenther@suse.de>
8658
8659         PR middle-end/45056
8660         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8661
8662 2010-07-26  Richard Guenther  <rguenther@suse.de>
8663
8664         PR tree-optimization/45071
8665         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8666         adjust op->opcode.
8667
8668 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
8669
8670         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8671         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8672         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8673         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8674         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8675         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8676         save_r31, return_r31, save_interrupt, return_interrupt,
8677         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8678         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8679         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8680         new ABI requirements.
8681         (save_r6_r9, L_callt_save_r6_r9): Remove.
8682         * config/v850/predicates.md (even_reg_operand, disp23_operand,
8683         const_float_1_operand const_float_0_operand): New Predicates.
8684         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8685         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8686         * config/v850/t-v850: Update multilibs for new target variants.
8687         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8688         * config/v850/t-v850e: Likewise.
8689         * config/v850/v850.c (v850_issue_rate): New.
8690         (v850_strict_argument_naming): New.
8691         (function_arg): Modify to generate a different ABI.
8692         (print_operand): Update case 'z' to support float modes.
8693         (output_move_single): Modify to generate appropriate and better
8694         assembly.
8695         (v850_float_z_comparison_operator, v850_select_cc_mode,
8696         v850_float_nz_comparison_operator,  v850_gen_float_compare,
8697         v850_gen_compare): New functions to support comparison of float values.
8698         (ep_memory_offset): Add support for V850E2 targets.
8699         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8700         (INTERRUPT_REGPARM_NUM): Remove.
8701         (compute_register_save_size): Add extra case to save/restore long call.
8702         (use_prolog_function): New function to support prologue.
8703         (expand_prologue): Add support for V850E2 targets and modified
8704         as per the current ABI requirements.
8705         (expand_epilogue): Likewise.
8706         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8707         (construct_save_jarl): Likewise.
8708         (construct_dispose_instruction): Update as per the current ABI
8709         requirements.
8710         (construct_prepare_instruction): Likewise.
8711         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8712         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8713         (CPP_SPEC): Updated to support v850e2 targets.
8714         (STRICT_ALIGNMENT): Modified.
8715         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8716         (FIXED_REGISTERS): Likewise.
8717         (CALL_USED_REGISTERS): Likewise.
8718         (CONDITIONAL_REGISTER_USAGE): Updated.
8719         (HARD_REGNO_MODE_OK): Updated.
8720         (reg_class): Updated to add even registers.
8721         (REG_CLASS_NAMES): Likewise.
8722         (REG_CLASS_CONTENTS): Likewise.
8723         (REGNO_REG_CLASS): Updated for CC registers.
8724         (REG_CLASS_FROM_LETTER): Added support for even registers.
8725         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8726         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8727         ARG_POINTER_REGNUM): Updated.
8728         (FUNCTION_ARG_ADVANCE): Define.
8729         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8730         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8731         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8732         (GO_IF_LEGITIMATE_ADDRESS): Updated.
8733         (SELECT_CC_MODE): Define.
8734         (REGISTER_NAMES): Updated to add psw and fcc registers.
8735         (ADDITIONAL_REGISTER_NAMES): Updated.
8736         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8737         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8738         * config/v850/v850.md (define_constants): Define new constants.
8739         (type): Update store,bit1,macc,div,fpu and single attributes.
8740         (cpu): New attribute.
8741         (cc): Add set_z attribute.
8742         (unsign23byte_load, sign23byte_load, unsign23hword_load,
8743         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8744         23word_store): New instructions for 23-bit displacement load and store.
8745         (movqi_internal, movhi_internal): Update the attributes.
8746         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8747         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8748         the attributes.
8749         (v850_tst1): Modified using CC_REGNUM.
8750         (tstsi): Remove.
8751         (cmpsi): Modified as define_expand from define_insn.
8752         (cmpsi_insn, cmpsf, cmpdf): New instructions.
8753         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8754         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8755         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8756         one_cmplsi2): Clobber the CC_REGNUM register.
8757         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8758         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8759         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8760         (setf_insn, set_z_insn, set_nz_insn): New instructions for
8761         v850e2v3 target.
8762         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8763         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8764         targets.
8765         (sasf_1, sasf_2): Remove.
8766         (sasf): New instruction.
8767         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8768         targets. CC_REGNUM register is clobbered and attributes are
8769         updated.
8770         (branch_z_normal, branch_z_invert, branch_nz_normal,
8771         branch_nz_invert): New branch related instructions.
8772         (jump): Updated the attributes.
8773         (switch): Update to support new targets. CC_REGNUM register is
8774         clobbered and attributes are updated.
8775         (call_internal_short, call_internal_long, call_value_internal_short,
8776         call_value_internal_long): Updated the attributes.
8777         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8778         clobbered and attributes are updated.
8779         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8780         Update to support new targets. CC_REGNUM register is clobbered.
8781         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8782         instructions.
8783         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8784         are updated.
8785         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8786         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8787         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8788         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8789         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8790         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8791         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8792         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8793         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8794         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8795         point instructions defined for V850e2v3 target.
8796         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8797         Add support for V850E2 targets and CC_REGNUM register is clobbered.
8798         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8799         support for new targets.
8800         * config/v850/v850-modes.def: New file.
8801         * config/v850/v850.opt(mstrict-align): Remove.
8802         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8803         mv850e2v3): New command line options for V850.
8804         * config.gcc: Update the newly added files.
8805         * doc/invoke.texi: Update the newly added command line options for
8806         V850 target.
8807
8808 2010-07-26  Richard Guenther  <rguenther@suse.de>
8809
8810         PR tree-optimization/45052
8811         * ipa-pure-const.c (check_stmt): Check volatileness.
8812
8813 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8814
8815         PR target/44707
8816         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8817         * config/sparc/sparc.c: Include reload.h.
8818         (legitimize_tls_address): Rename into...
8819         (sparc_legitimize_tls_address): ...this.
8820         (legitimize_pic_address): Rename into...
8821         (sparc_legitimize_pic_address): ...this.
8822         (sparc_expand_move): Adjust to above renaming.
8823         (sparc_tls_referenced_p): Likewise.
8824         (sparc_legitimize_tls_address): Likewise.
8825         (sparc_legitimize_pic_address): Likewise.
8826         (sparc_legitimize_address): Likewise.
8827         (sparc_output_mi_thunk): Likewise.
8828         (sparc_legitimize_reload_address): New global function.  Recognize
8829         (lo_sum (high ...) ...) patterns generated by earlier passes.
8830         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8831
8832 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8833
8834         PR target/44484
8835         * config/sparc/predicates.md (memory_reg_operand): Delete.
8836         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8837         (*sync_compare_and_swap): Encode the address form in the pattern.
8838         (*sync_compare_and_swapdi_v8plus): Likewise.
8839
8840 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8841
8842         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8843         Streamline paragraph on compatibility with the system compiler.
8844
8845 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8846
8847         PR middle-end/45035
8848         * alias.c (true_dependence_1): Fix thinko in merge of old
8849         true_dependence and canon_true_dependence.
8850
8851 2010-07-23  Jan Hubicka  <jh@suse.cz>
8852
8853         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8854         references.
8855
8856 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8857
8858         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8859         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8860         and an unnecessary assignment.
8861         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8862         self-assign warning.
8863         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8864         unnecessary self-init.
8865
8866 2010-07-23  Richard Guenther  <rguenther@suse.de>
8867
8868         PR lto/43071
8869         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8870         for -flto and -fwhopr.
8871
8872 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8873
8874         PR target/41943
8875         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8876         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8877         * config.gcc (user_headers_inc_next_pre): New.
8878         (user_headers_inc_next_post): Likewise.
8879         (*-w64-mingw*): Use for float.h post-fixing, and for
8880         stddef.h/stdarg.h pre-fixing by include_next.
8881         * configure.ac (user_headers_inc_next_post): New.
8882         (user_headers_inc_next_pre): New.
8883         * configure: Regenerated.
8884
8885 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8886
8887         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8888         Set tga_func for Solaris 2/x86 resp. SPARC.
8889         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8890         (LIB_THREAD_LDFLAGS_SPEC): Define.
8891         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8892         * configure: Regenerate.
8893         * config.in: Regenerate.
8894         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8895         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8896         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8897         alternate thread libraries on Solaris 8.
8898         Document TLS patch requirements.
8899         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8900         Document tls.
8901
8902         PR target/18788
8903         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8904         -shared.
8905
8906 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8907
8908         * tree.h (struct tree_base): Add nameless_flag bitfield.
8909         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8910         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8911         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8912         DECL_ARTIFICIAL where needed.
8913         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8914         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8915         has DECL_NAMELESS set.
8916
8917 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8918
8919         PR tree-optimization/44915
8920         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8921         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8922         (analyze_function): Likewise.
8923
8924 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8925
8926         PR tree-optimization/44914
8927         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8928         changed, add purging dead eh edges.
8929         (ipa_sra_modify_function_body): Return true if CFG was changed,
8930         simplify purging dead eh edges.
8931         (modify_function): Return true if CFG was changed.
8932         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8933         was changed.
8934         (ipa_early_sra): Likewise.
8935
8936 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8937
8938         PR target/44290
8939         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8940         if "naked".
8941         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8942         false if ! tree_versionable_function_p.
8943
8944 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8945
8946         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8947         * ipa-pure-const.c (special_builtlin_state): Remove
8948         BUILT_IN_ARGS_INFO case.
8949         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8950         * builtins.c (expand_builtin): Likewise.
8951         (expand_builtin_args_info): Remove.
8952         * doc/tm.texi (__builtin_args_info): Remove.
8953         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8954         * doc/tm.text.in: Likewise.
8955
8956 2010-07-23  Richard Guenther  <rguenther@suse.de>
8957
8958         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8959         (lto_symtab_merge_decls_2): Likewise.
8960         * tree-ssa.c (useless_type_conversion_p): Likewise.
8961         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8962         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8963         (struct type_pair_d): Make same_p an array indexed by mode.
8964         Update comment.
8965         (lookup_type_pair): Update initialization.
8966         (struct sccs): Adjust same_p type.
8967         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8968         Adjust.
8969         (print_gimple_types_stats): Likewise.
8970         * gimple.h (enum gtc_mode): New.
8971         (gimple_types_compatible_p): Adjust prototype.
8972
8973 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8974
8975         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8976         again after processing insn.
8977
8978 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8979
8980         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8981         proper words when !tree_versionable_function_p.
8982
8983 2010-07-23  Richard Guenther  <rguenther@suse.de>
8984
8985         PR tree-optimization/45037
8986         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8987
8988 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8989
8990         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8991         Add MCORE instead.
8992
8993 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8994
8995         PR lto/44992
8996         * lto-opts.c (lto_write_options): Add NULL file_data argument to
8997         lto_get_section_name.
8998         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8999         * lto-streamer-out.c (produce_asm): Likewise.
9000         (copy_function): Likewise.
9001         (produce_symtab): Likewise.
9002         (produce_asm_for_decls): Likewise.
9003         * lto-streamer.c (lto_get_section_name): Add file_data argument.
9004         Rewrite to add random postfix to LTO sections.
9005         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
9006         (lto_get_section_name): Add file_data argument to prototype.
9007
9008 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9009
9010         * lto-section-in.c (lto_section_name): Synchronize names
9011         with lto_get_section_name.
9012
9013 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9014
9015         * lto-opts.c (lto_read_file_options): Check for missing section.
9016
9017 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9018
9019         * ira.c (check_allocation): Correctly handle the case where an allocno
9020         with two objects was allocated to a single reg.
9021
9022 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
9023
9024         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
9025         (is_widening_mult_p): Likewise.
9026         (convert_to_widen): Use them.
9027         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
9028         well as integer ones.
9029
9030 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
9031
9032         * alias.c (true_dependence_1): New function, merged version of
9033         true_dependence and canon_true_dependence.
9034         (true_dependence): Simplify.
9035         (canon_true_dependence): Simplify.
9036
9037 2010-07-22  Richard Henderson  <rth@redhat.com>
9038
9039         PR target/45027
9040         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
9041         of V4SFmode for the SSE saves; increase stack alignment if needed.
9042         (ix86_gimplify_va_arg): Don't increase stack alignment here.
9043
9044 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
9045
9046         PR bootstrap/45028
9047         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
9048         call cprop_find_used_regs again via note_uses.
9049
9050 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9051
9052         * alias.c (get_alias_set): Fix formatting issues.
9053
9054 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
9055
9056         PR middle-end/44878
9057         * stmt.c (expand_value_return):  Call promote_function_mode with
9058         a for_return argument of 2 when returning by reference.
9059
9060 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
9061
9062         PR debug/45024
9063         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
9064         unit DIE if we can find the scope DIE.
9065
9066 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9067
9068         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
9069         changed.  Initialize OBJECT_SUBWORD.
9070         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
9071         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
9072         all callers changed.
9073         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
9074         (finish_allocno): Likewise.
9075         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
9076         (remove_low_level_allocnos): Likewise.
9077         (update_bad_spill_attribute): Likewise.
9078         (setup_min_max_allocno_live_range_point): Likewise.
9079         (sort_conflict_id_map): Likewise.
9080         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
9081         (ior_hard_reg_conflicts): New function.
9082         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
9083         (compress_conflict_vecs): Iterate over objects, not allocnos.
9084         (ira_add_live_range_to_object): New function.
9085         (object_range_compare_func): Renamed from allocno_range_compare_func.
9086         All callers changed.
9087         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
9088         subobjects, widen the min/max range of the lowest-order object to
9089         potentially include all other such low-order objects.
9090         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
9091         (check_allocation): Likewise.  Use more fine-grained tests for register
9092         conflicts.
9093         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
9094         allocno subobjects.
9095         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
9096         choices about which bits to set in each set.  Don't use
9097         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
9098         using the multiple sets we computed.
9099         (push_allocno_to_stack): Iterate over allocno subobjects.
9100         (all_conflicting_hard_regs_coalesced): New static function.
9101         (setup_allocno_available_regs_num): Use it.
9102         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
9103         subobjects.
9104         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
9105         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9106         by ALLOCNO_NUM_OBJECTS.
9107         (calculate_spill_cost): Likewise.
9108         (color_pass): Express if statement in a more normal way.
9109         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
9110         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
9111         (setup_slot_coalesced_allocno_live_ranges): Likewise.
9112         (allocno_reload_assign): Likewise.
9113         (ira_reassign_pseudos): Likewise.
9114         (fast_allocation): Likewise.
9115         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9116         (print_allocno_conflicts): Likewise.
9117         (ira_build_conflicts): Likewise.
9118         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
9119         callers changed.  Test subword 0 of each allocno for conflicts.
9120         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
9121         callers changed.  Iterate over allocno subobjects.
9122         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
9123         * ira-int.h (struct ira_allocno): New member: num_objects.
9124         Rename object to objects and change it into an array.
9125         (ALLOCNO_OBJECT): Add new argument N.
9126         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
9127         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
9128         (ior_hard_reg_conflicts): Declare.
9129         (ira_add_live_range_to_object): Declare.
9130         (ira_allocno_object_iterator): New.
9131         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
9132         (FOR_EACH_ALLOCNO_OBJECT): New macro.
9133         * ira-lives.c (objects_live): Renamed from allocnos_live; all
9134         uses changed.
9135         (allocnos_processed): New sparseset.
9136         (make_object_born): Renamed from make_allocno_born; take an
9137         ira_object_t argument.  All callers changed.
9138         (make_object_dead): Renamed from make_allocno_dead; take an
9139         ira_object_t argument.  All callers changed.
9140         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
9141         All callers changed.
9142         (mark_pseudo_regno_live): Iterate over allocno subobjects.
9143         (mark_pseudo_regno_dead): Likewise.
9144         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
9145         functions.
9146         (mark_ref_live): Detect subword accesses and call
9147         mark_pseudo_regno_subword_live as appropriate.
9148         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
9149         (process_bb_nodes_live): Deal with object-related updates first; set
9150         and test bits in allocnos_processed to avoid computing allocno
9151         statistics more than once.
9152         (create_start_finish_chains): Iterate over objects, not allocnos.
9153         (print_object_live_ranges): New function.
9154         (print_allocno_live_ranges): Use it.
9155         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
9156         and objects_live.
9157
9158 2010-07-22  Richard Guenther  <rguenther@suse.de>
9159
9160         PR lto/42451
9161         * gimple.c (gtc_next_dfs_num): New global.
9162         (struct sccs): Make value a union, add integer same_p member.
9163         (gtc_visit): New function.
9164         (gimple_types_compatible_p_1): New function, split out from ...
9165         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
9166         (iterative_hash_gimple_type): Adjust for sccs change.
9167
9168 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9169
9170         PR tree-optimization/44891
9171         * tree-sra.c: Include gimple-pretty-print.h.
9172         (replace_uses_with_default_def_ssa_name): Renamed to
9173         get_repl_default_def_ssa_name, return the new SSA name instead of
9174         replacing the old one.
9175         (sra_modify_assign): Dump a message when removing a load, if the LHS
9176         is an SSA_NAME, do not do any propagation, just set the RHS to a
9177         default definition SSA NAME, type convert if necessary.
9178         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
9179
9180 2010-07-22  Richard Guenther  <rguenther@suse.de>
9181
9182         PR tree-optimization/45017
9183         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
9184         TYPE_PRECISION of integral types in addition to size.
9185
9186 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9187
9188         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
9189         when no C library is specified.
9190
9191 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9192
9193         * ipa-prop.h (struct ipa_node_params): Updated comment.
9194         (struct ipa_edge_args): Likewise.
9195         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
9196
9197 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9198
9199         * cgraphunit.c (verify_edge_count_and_frequency): New function.
9200         (verify_cgraph_node): Verify frequencies of indirect edges.
9201         * tree-inline.c (tree_function_versioning): Update frequencies of
9202         indirect edges.
9203
9204 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9205
9206         PR target/43698
9207         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
9208         Set *arm_rev to be predicable.
9209
9210 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
9211
9212         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
9213         (LINK_COMMAND_SPEC_A): New.
9214         (DSYMUTIL): New.
9215         (DSYMUTIL_SPEC): New.
9216         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
9217         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
9218
9219 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
9220
9221         * calls.c (load_register_parameters): Move check for zero
9222         sized items so that only the call to
9223         mem_overlaps_already_clobbered_arg_p () is protected.
9224
9225 2010-07-22  Jan Hubicka  <jh@suse.cz>
9226
9227         * ipa-pure-const.c (varying_state): Break out from ...
9228         (get_function_state): ... here; always return varying_state
9229         when state would be NULL otherwise.
9230         (remove_node_data): Do not free varying state.
9231
9232 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9233
9234         PR bootstrap/44970
9235         PR middle-end/45009
9236         * postreload.c: Include "target.h".
9237         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
9238         into account.
9239         (fixup_debug_insns): Don't copy the rtx.
9240         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
9241         Don't copy when replacing.  Call fixup_debug_insns in the case where
9242         we merged one add with another.
9243         (reload_combine_recognize_pattern): Fail if there aren't any uses.
9244         Try harder to determine whether we're picking a valid index register.
9245         Don't set store_ruid for an insn we're going to scan in the
9246         next iteration.
9247         (reload_combine): Remove unused code.
9248         (reload_combine_note_use): When updating use information for
9249         an old insn, ignore a use that occurs after store_ruid.
9250         * Makefile.in (postreload.o): Update dependencies.
9251
9252         * function.c (record_hard_reg_sets): Restrict the previous change
9253         to cases where the incoming nominal mode is the same as the
9254         incoming promoted mode and everything happens in MODE_INT.
9255
9256 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9257
9258         PR debug/45015
9259         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
9260         ASM_OPERANDS_OUTPUT_IDX.
9261         (adjust_insn): For inline asm with multiple sets ensure first
9262         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
9263         the insn.
9264
9265 2010-07-21  Richard Henderson  <rth@redhat.com>
9266
9267         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
9268         comparison for avoiding xmm register saves.  Emit the xmm register
9269         saves explicitly.
9270         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
9271         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
9272         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
9273         Remove patterns and the associated splitters.
9274
9275 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
9276
9277         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
9278         and imagine parts of a complex, so that they can have the same
9279         base and fall into the same group.
9280
9281 2010-07-21  Richard Guenther  <rguenther@suse.de>
9282
9283         PR lto/45018
9284         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
9285         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
9286         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
9287
9288 2010-07-21  Martin Jambor  <mjambor@suse.cz>
9289
9290         PR tree-optimization/44900
9291         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
9292         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
9293
9294 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
9295
9296         PR middle-end/44738
9297         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
9298
9299 2010-07-21  Richard Guenther  <rguenther@suse.de>
9300
9301         PR middle-end/45013
9302         * tree-ssa.c (useless_type_conversion_p): Dispatch to
9303         gimple_types_compatible_p only when in lto.
9304         * gimple.c (gimple_types_compatible_p): Use canonical types
9305         to speed up comparison.
9306
9307 2010-07-21  Richard Guenther  <rguenther@suse.de>
9308
9309         * tree-flow.h (referenced_var): Move define ...
9310         * tree-flow-inline.h (referenced_var): ... here as an inline
9311         function.  Assert here ...
9312         * tree-dfa.c (referenced_var_lookup): ... instead of here.
9313         * tree-ssa.c (maybe_optimize_var): Check if the variable
9314         is in referenced vars.
9315         (execute_update_addresses_taken): Remove old broken check.
9316         * gimple-pretty-print.c (pp_points_to_solution): Use
9317         referenced_var_lookup.
9318         * tree-into-ssa.c (dump_decl_set): Likewise.
9319
9320 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9321
9322         PR debug/45003
9323         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
9324         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
9325         ZERO_EXTEND here.
9326
9327 2010-07-20  Richard Henderson  <rth@redhat.com>
9328
9329         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
9330
9331 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9332
9333         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
9334         computing the sum of the stack pointer and a large constant.
9335         * config/arm/constraints.md (M): Remove superfluous parentheses.
9336         (Pc): New constraint.
9337
9338 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9339
9340         PR debug/45006
9341         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
9342         operand's type if exp is tcc_unary class tree.
9343
9344 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9345
9346         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
9347         Reverse sense of if_then_else condition.
9348
9349 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9350
9351         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
9352         * config/rs6000/rs6000.c (rs6000_override_options): Set
9353         rs6000_block_move_inline_limit appropriately.
9354         (expand_block_move): Use rs6000_block_move_inline_limit.
9355         * doc/invoke.texi (mblock-move-inline-limit): Document.
9356
9357 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9358
9359         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
9360         FROM and TO.  All callers changed.  Don't look for tracked uses,
9361         just scan the RTL for DEBUG_INSNs and substitute.
9362         (reload_combine_recognize_pattern): Call fixup_debug_insns.
9363         (reload_combine): Ignore DEBUG_INSNs.
9364
9365 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9366
9367         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
9368         depth to 8 from 5.
9369
9370         PR debug/45003
9371         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
9372         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
9373         instead of the result's type.
9374
9375 2010-07-20  Richard Guenther  <rguenther@suse.de>
9376
9377         PR tree-optimization/44977
9378         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
9379         SSA form.
9380
9381 2010-07-20  Richard Guenther  <rguenther@suse.de>
9382
9383         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
9384         (lto_symtab_merge_decls_2): Likewise.
9385         * gimple.h (gimple_types_compatible_p): Declare.
9386         * gimple.c (gimple_queue_type_fixup): Remove.
9387         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
9388         (gimple_compatible_complete_and_incomplete_type_p): New function.
9389         (gimple_types_compatible_p): Adjust.
9390         (gimple_register_type): Remove type fixup code.
9391         (print_gimple_types_stats): Adjust.
9392         (free_gimple_type_tables): Likewise.
9393         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
9394         * tree-ssa.c (useless_type_conversion_p): Likewise.
9395
9396 2010-07-20  Richard Guenther  <rguenther@suse.de>
9397
9398         PR middle-end/44971
9399         PR middle-end/44988
9400         * tree-ssa.c (maybe_optimize_var): New function split out from ...
9401         (execute_update_addresses_taken): ... here.
9402         (non_rewritable_mem_ref_base): Likewise.
9403         (execute_update_addresses_taken): Do not iterate over all referenced
9404         vars but just all local decls and parms.
9405         Properly check call and asm arguments and rewrite call arguments.
9406
9407 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
9408
9409         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
9410         to top level.
9411         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
9412         definitions ...
9413         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
9414         New macro.
9415         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
9416
9417 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9418
9419         * gengtype.c (start_root_entry): New function, split out from
9420         write_root.  Check whether V is null and raise an error if so.
9421         (write_field_root): Check for V being null.  Don't raise an error here;
9422         set V to null instead.
9423         (write_root): Update comment above function.  Use start_root_entry.
9424
9425 2010-07-19  Xinliang David Li  <davidxl@google.com>
9426
9427         PR testsuite/44932
9428         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
9429         def edges.
9430         (find_uninit_use): Add dump.
9431         (is_use_properly_guarded): Ditto.
9432         (warn_uninitialized_phi): Ditto.
9433         (execute_late_warn_uninitialized): Ditto.
9434
9435 2010-07-19  Richard Guenther  <rguenther@suse.de>
9436
9437         PR middle-end/44941
9438         * expr.c (emit_block_move_hints): Move zero size check first.
9439         Move asserts to more useful places.
9440         * calls.c (load_register_parameters): Check for zero size.
9441
9442 2010-07-19  Richard Henderson  <rth@redhat.com>
9443
9444         * tree-optimize.c (execute_all_early_local_passes): New.  Change
9445         cgraph_state here ...
9446         (execute_early_local_optimizations): ... not here.  Remove.
9447         (pass_early_local_passes, pass_all_early_optimizations): Update.
9448
9449 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
9450
9451         * postreload.c (reload_combine_closest_single_use): Ignore the
9452         number of uses for DEBUG_INSNs.
9453         (fixup_debug_insns): New static function.
9454         (reload_combine_recognize_const_pattern): Use it.  Don't let the
9455         main loop be affected by DEBUG_INSNs.
9456         Really disallow moving adds past a jump insn.
9457         (reload_combine_recognize_pattern): Don't update use_ruid here.
9458         (reload_combine_note_use): Do it here.
9459         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9460
9461 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
9462
9463         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9464         of a loop.
9465         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9466
9467 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
9468
9469         * config/i386/darwin.h: Define darwin_emit_branch_islands.
9470         (TARGET_MACHO_BRANCH_ISLANDS): New.
9471         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9472         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9473         default value.
9474         * config/i386/i386.c (output_pic_addr_const): Do not emit
9475         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9476         (x86_output_mi_thunk): Adjust symbol creation.
9477         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9478         Remove out of date comment.
9479         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9480         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9481         (DARWIN_GENERATE_ISLANDS): Ditto.
9482         (output_call):  Do not emit branch islands unless
9483         darwin_emit_branch_islands is set.
9484         * config/darwin.c: Declare darwin_emit_branch_islands.
9485         (machopic_indirect_data_reference): Do not emit unless
9486         darwin_emit_branch_islands is set.
9487         (darwin_override_options): Set darwin_emit_branch_islands
9488         where it is needed.
9489         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9490
9491 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9492
9493         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9494         sse_runtime, sse2_runtime.
9495
9496 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
9497
9498         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9499         low half of a single-register SCmode return value before ORing
9500         it with the high half.
9501         * config/mips/mips16.S (MERGE_GPRf): Likewise.
9502
9503 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9504
9505         PR target/44805
9506         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9507         on all targets.
9508
9509 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
9510
9511         PR target/42235
9512         * postreload.c (reload_cse_move2add): Return bool, true if anything.
9513         changed.  All callers changed.
9514         (move2add_use_add2_insn): Likewise.
9515         (move2add_use_add3_insn): Likewise.
9516         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9517         reload_combine.
9518         (RELOAD_COMBINE_MAX_USES): Bump to 16.
9519         (last_jump_ruid): New static variable.
9520         (struct reg_use): New members CONTAINING_MEM and RUID.
9521         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9522         (reload_combine_split_one_ruid, reload_combine_split_ruids,
9523         reload_combine_purge_insn_uses, reload_combine_closest_single_use
9524         reload_combine_purge_reg_uses_after_ruid,
9525         reload_combine_recognize_const_pattern): New static functions.
9526         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9527         is true for our reg and that we have available index regs.
9528         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
9529         callers changed.  Use them to initialize fields in struct reg_use.
9530         (reload_combine): Initialize last_jump_ruid.  Be careful when to
9531         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
9532         Call reload_combine_recognize_const_pattern.
9533         (reload_combine_note_store): Update REAL_STORE_RUID field.
9534
9535 2010-07-16  Jason Merrill  <jason@redhat.com>
9536
9537         * Makefile.in (opts-common.o): Depend on options.h.
9538
9539 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9540
9541         * tree.c (build_common_builtin_nodes): Use build_function_type_list
9542         instead of build_function_type.
9543         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9544         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9545
9546 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9547
9548         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9549         do all the work.
9550         (rs6000_emit_int_cmove): Use function pointers for insn generation.
9551         Don't force values into registers unnecessarily.
9552         (output_isel): Assert that we're not given conditions we can't handle.
9553         Delete corresponding code.
9554         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9555         scc_comparison_operator constraint.  Permit 0 for the consequent
9556         operand.  Permit any GPR for the alternative operand.
9557         (isel_unsigned_<mode>): Likewise.
9558
9559 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
9560
9561         PR target/44942
9562         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9563         argument to const_tree.
9564         * config/i386/i386.c (function_arg_advance): If padding needs to be
9565         inserted before argument, increment cum->words by number of padding
9566         words as well.
9567         (contains_aligned_value_p): Change argument to const_tree.
9568         (ix86_function_arg_boundary): Change second argument to const_tree.
9569
9570 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
9571
9572         PR target/42235
9573         * function.c (record_hard_reg_sets): New static function.
9574         (assign_parm_setup_reg): If an optab for extending exists and the
9575         generated code clobbbers no hard regs, emit the insn directly and
9576         create a REG_EQUIV note.
9577
9578 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9579
9580         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9581         TREE_CHAIN.
9582         * c-typeck.c (push_init_level): Likewise.
9583         (process_init_element): Likewise.
9584
9585 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
9586
9587         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9588         (integer_three_node): Add.
9589         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9590         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9591         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9592         of call build_int_cst.
9593         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9594         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9595         (find_interesting_uses_address): Ditto.
9596         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9597         * tree-eh.c (lower_eh_constructs_2): Ditto.
9598         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9599         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9600         * expmed.c (expand_divmod): Ditto.
9601         * tree-mudflap.c (mx_register_decls): Ditto.
9602         * varasm.c (array_size_for_constructor): Ditto.
9603         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9604         * c-parser.c (c_parser_postfix_expression): Ditto.
9605
9606 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9607
9608         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9609         New static variables.
9610         (reload_combine_recognize_pattern): New static function, broken out
9611         of reload_combine.
9612         (reload_combine): Use it.  Only initialize first_index_reg and
9613         last_index_reg once.
9614
9615 2010-07-15  Richard Henderson  <rth@redhat.com>
9616
9617         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9618         when done.
9619
9620 2010-07-15  Jan Hubicka  <jh@suse.cz>
9621
9622         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9623         comdats for broken gold.
9624         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9625
9626 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9627
9628         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9629
9630 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9631
9632         * tree.h (DECL_CHAIN): Define.
9633         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9634         * c-decl.c: Likewise.
9635         * c-parser.c: Likewise.
9636         * c-typeck.c: Likewise.
9637         * cfgexpand.c: Likewise.
9638         * cgraph.c: Likewise.
9639         * cgraphunit.c: Likewise.
9640         * combine.c: Likewise.
9641         * config/alpha/alpha.c: Likewise.
9642         * config/arm/arm.c: Likewise.
9643         * config/frv/frv.c: Likewise.
9644         * config/i386/i386.c: Likewise.
9645         * config/i386/winnt-cxx.c: Likewise.
9646         * config/ia64/ia64.c: Likewise.
9647         * config/iq2000/iq2000.c: Likewise.
9648         * config/mep/mep.c: Likewise.
9649         * config/mips/mips.c: Likewise.
9650         * config/pa/som.h: Likewise.
9651         * config/rs6000/rs6000.c: Likewise.
9652         * config/s390/s390.c: Likewise.
9653         * config/sh/sh.c: Likewise.
9654         * config/sh/symbian-cxx.c: Likewise.
9655         * config/sparc/sparc.c: Likewise.
9656         * config/spu/spu.c: Likewise.
9657         * config/stormy16/stormy16.c: Likewise.
9658         * config/vxworks.c: Likewise.
9659         * config/xtensa/xtensa.c: Likewise.
9660         * coverage.c: Likewise.
9661         * dbxout.c: Likewise.
9662         * dwarf2out.c: Likewise.
9663         * emit-rtl.c: Likewise.
9664         * expr.c: Likewise.
9665         * function.c: Likewise.
9666         * gimple-low.c: Likewise.
9667         * gimple-pretty-print.c: Likewise.
9668         * gimplify.c: Likewise.
9669         * integrate.c: Likewise.
9670         * ipa-inline.c: Likewise.
9671         * ipa-prop.c: Likewise.
9672         * ipa-split.c: Likewise.
9673         * ipa-struct-reorg.c: Likewise.
9674         * ipa-type-escape.c: Likewise.
9675         * langhooks.c: Likewise.
9676         * lto-cgraph.c: Likewise.
9677         * omp-low.c: Likewise.
9678         * stor-layout.c: Likewise.
9679         * tree-cfg.c: Likewise.
9680         * tree-complex.c: Likewise.
9681         * tree-dfa.c: Likewise.
9682         * tree-dump.c: Likewise.
9683         * tree-inline.c: Likewise.
9684         * tree-mudflap.c: Likewise.
9685         * tree-nested.c: Likewise.
9686         * tree-object-size.c: Likewise.
9687         * tree-pretty-print.c: Likewise.
9688         * tree-sra.c: Likewise.
9689         * tree-ssa-live.c: Likewise.
9690         * tree-ssa-loop-niter.c: Likewise.
9691         * tree-ssa-math-opts.c: Likewise.
9692         * tree-ssa-reassoc.c: Likewise.
9693         * tree-ssa-sccvn.c: Likewise.
9694         * tree-ssa-structalias.c: Likewise.
9695         * tree-tailcall.c: Likewise.
9696         * tree-vrp.c: Likewise.
9697         * tree.c: Likewise.
9698         * var-tracking.c: Likewise.
9699         * varasm.c: Likewise.
9700
9701 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9702
9703         PR target/44877
9704         * config/spu/spu.c (spu_expand_builtin_1): Allow references
9705         (as well as pointers) as argument to mask_for_load builtins.
9706
9707 2010-07-15  Richard Guenther  <rguenther@suse.de>
9708
9709         PR tree-optimization/44946
9710         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9711         with accessing only padding properly.
9712
9713 2010-07-15  Jan Hubicka  <jh@suse.cz>
9714
9715         * ipa.c (function_and_variable_visibility): Variables marked as used
9716         should not be localized.
9717
9718 2010-07-15  Jan Hubicka  <jh@suse.cz>
9719
9720         * cgraph.c: Include lto-streamer.h
9721         (change_decl_assembler_name): Work when assembler name hash is at place.
9722         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9723         be sure to rename it to avoid name clash.
9724         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9725         Localize hidden symbols only when locally defined.
9726
9727 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
9728
9729         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9730
9731 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
9732             Kevin F. Quinn  <kevquinn@gentoo.org>
9733
9734         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9735         * common.opt: Add -Wtrampolines.
9736         * doc/invoke.texi: Add -Wtrampolines.
9737
9738 2010-07-15  Jie Zhang  <jie@codesourcery.com>
9739
9740         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9741         cortex_a8_issue_ls.
9742
9743 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9744
9745         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9746         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9747
9748 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9749
9750         * config/spu/spu.c (reg_names): Remove prototype.
9751         (call_used_regs): Likewise.
9752
9753 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
9754
9755         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9756         "unused" with attribute "used".
9757         (__JCR_END__): Likewise.
9758         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9759         "used" attribute.
9760         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9761
9762 2010-07-14  Richard Guenther  <rguenther@suse.de>
9763
9764         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9765         (maybe_fixup_decls): Likewise.
9766         (input_gimple_stmt): Do not fixup anything.
9767         * lto-streamer-out.c (output_gimple_stmt): Make sure all
9768         non-automatic variable uses are wrapped inside a MEM_REF.
9769
9770 2010-07-14  Richard Henderson  <rth@redhat.com>
9771
9772         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9773         for functions.
9774         * varasm.c (assemble_variable): Remove early exit for functions;
9775         assert that we're given a variable.
9776
9777 2010-07-14  Jie Zhang  <jie@codesourcery.com>
9778
9779         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9780         cortex_a8_default when neon_type is not none.
9781
9782 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9783
9784         * lower-subreg.c (subreg_context): New static bitmap.
9785         (decompose_multiword_subregs): Allocate and free it.
9786         (find_decomposable_subregs): Set a bit in it for a register that
9787         occurs in a subreg that changes mode but not size.
9788         (can_decompose_p): Test it instead of non_decomposable_context.
9789
9790 2010-07-14  Richard Guenther  <rguenther@suse.de>
9791
9792         PR tree-optimization/44824
9793         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9794         is_gimple_mem_ref_addr.
9795         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9796         non-decl_address_invariant_p addresses.
9797
9798 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9799
9800         * reload.c (find_reloads): Revert code to penalize small register
9801         classes that was brought in with the IRA merge.
9802
9803 2010-07-14  Richard Guenther  <rguenther@suse.de>
9804
9805         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9806         as base of ARRAY_REFs.
9807
9808 2010-07-14  Richard Guenther  <rguenther@suse.de>
9809
9810         PR middle-end/44930
9811         * tree-pretty-print.c (do_niy): Do not print a newline.
9812
9813 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9814
9815         * ira-int.h (struct ira_object): New.
9816         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9817         (struct ira_allocno): Remove members min, max,
9818         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9819         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9820         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9821         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9822         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9823         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9824         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9825         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9826         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9827         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9828         an ira_object_t rather than ira_allocno_t.  All uses changed.
9829         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9830         contains a vector of ira_object_t; all uses changed.
9831         (ira_objects_num): Declare variable.
9832         (ira_create_allocno_object): Declare function.
9833         (ira_conflict_vector_profitable_p): Adjust prototype.
9834         (ira_allocate_conflict_vec): Renamed from
9835         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9836         (ira_allocate_object_conflicts): Renamed from
9837         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9838         (struct ira_object_iterator): New.
9839         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9840         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9841         to conflict_vec_p.  All uses changed.
9842         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9843         Changed to take into account that conflicts are now tracked for
9844         objects.
9845         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9846         Args changed to accept ira_object_t.  All uses changed.
9847         (allocnos_conflict_p): New static function.
9848         (collected_conflict_objects): Renamed from collected_allocno_objects;
9849         now a vector of ira_object_t.  All uses changed.
9850         (build_conflict_bit_table): Changed to take into account that
9851         conflicts are now tracked for objects.
9852         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9853         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9854         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9855         setup_allocno_left_conflicts_size, allocno_reload_assign,
9856         fast_allocation): Likewise.
9857         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9858         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9859         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9860         Likewise.
9861         * ira-build.c (ira_objects_num): New variable.
9862         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9863         contains a vector of ira_object_t; all uses changed.
9864         (ira_object_id_map_vec): Corresponding change.
9865         (object_pool): New static variable.
9866         (initiate_allocnos): Initialize it.
9867         (finish_allocnos): Free it.
9868         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9869         New functions.
9870         (ira_create_allocno): Don't set members that were removed.
9871         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9872         (merge_hard_reg_conflicts): Changed to take into account that
9873         conflicts are now tracked for objects.
9874         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9875         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9876         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9877         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9878         setup_min_max_conflict_allocno_ids, ):  Likewise.
9879         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9880         to ira_object_t; all callers changed.
9881         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9882         to ira_object_t, all callers changed.
9883         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9884         to ira_object_t, all callers changed.
9885         (conflict_check, curr_conflict_check_tick): Renamed from
9886         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9887         changed.
9888         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9889         arg changed to ira_object_t, all callers changed.
9890         (create_cap_allocno): Call ira_create_allocno_object.
9891         (finish_allocno): Free the corresponding object.
9892         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9893         callers changed.  Adjusted for dealing with objects.
9894         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9895         dealing with objects.
9896         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9897
9898         * ira-int.h (struct live_range): Rename allocno member to object
9899         and change type to ira_object_t.
9900         (struct ira_object): New member live_ranges.
9901         (struct ira_allocno): Remove member live_ranges.
9902         (ALLOCNO_LIVE_RANGES): Remove.
9903         (OBJECT_LIVE_RANGES): New macro.
9904         (ira_create_live_range, ira_copy_live_range_list,
9905         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9906         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9907         * ira-build.c (ira_create_object): Initialize live ranges here.
9908         (ira_create_allocno): Not here.
9909         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9910         changed to ira_object_t, all callers changed.
9911         (copy_live_range): Rename from copy_allocno_live_range, all callers
9912         changed.
9913         (ira_copy_live_range_list): Rename from
9914         ira_copy_allocno_live_range_list, all callers changed.
9915         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9916         all callers changed.
9917         (ira_live_ranges_intersect_p): Rename from
9918         ira_allocno_live_ranges_intersect_p, all callers changed.
9919         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9920         callers changed.
9921         (ira_finish_live_range_list): Rename from
9922         ira_finish_allocno_live_range_list, all callers changed.
9923         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9924         last arg changed to ira_object_t, all callers changed.
9925         (finish_allocno): Changed to expect live ranges in the allocno's object.
9926         (move_allocno_live_ranges, copy_allocno_live_ranges,
9927         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9928         ira_flattening, ira_build): Likewise.
9929         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9930         slot_coalesced_allocno_live_ranges_intersect,
9931         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9932         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9933         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9934         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9935         make_allocno_dead, create_start_finish_chains,
9936         remove_some_program_points_and_update_live_ranges,
9937         ira_debug_live_range_list): Likewise.
9938
9939         * ira-int.h (ira_object_conflict_iterator): Rename from
9940         ira_allocno_conflict_iterator.
9941         (ira_object_conflict_iter_init): Rename from
9942         ira_allocno_conflict_iter_init, second arg changed to
9943         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9944         FOR_EACH_ALLOCNO_CONFLICT.
9945         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9946         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9947         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9948         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9949
9950 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9951
9952         PR other/44874
9953         * tree-dump.c (dump_options): Add enumerate_locals entry.
9954         Add TDF_NOID exclusion to all entry.
9955         * tree-dump.h (dump_enumerated_decls): Declare.
9956         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9957         Don't display type uid.
9958         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9959         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9960         * tree-ssa-live.c: Include gimple.h.
9961         (numbered_tree_d): New struct.
9962         (numbered_tree): New typedef.
9963         (DEF_VEC_O (numbered_tree): New.
9964         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9965         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9966         (dump_enumerated_decls): Likewise.
9967         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9968         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9969         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9970         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9971
9972 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9973
9974         * expmed.h (MAX_BITS_PER_WORD): Move to...
9975         * defaults.h (MAX_BITS_PER_WORD): ...here.
9976
9977 2010-07-13  DJ Delorie  <dj@redhat.com>
9978
9979         * config/h8300/h8300.c (h8300_init_once): Default to
9980         -fstrict_volatile_bitfields.
9981
9982         * config/sh/sh.c (sh_override_options): Default to
9983         -fstrict_volatile_bitfields.
9984
9985         * config/rx/rx.c (rx_option_override): New.
9986
9987         * config/m32c/m32c.c (m32c_override_options): Default to
9988         -fstrict_volatile_bitfields.
9989
9990 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9991
9992         * tree.h (build_function_call_expr): Delete.
9993         (build_call_expr_loc_array): New function.
9994         (build_call_expr_loc_vec): New function.
9995         * tree-flow.h (struct omp_region): Change type of ws_args field
9996         to a VEC.
9997         * builtins.c (build_function_call_expr): Delete.
9998         (build_call_expr_loc_array): New function.
9999         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
10000         (build_call_expr): Likewise.
10001         (build_call_expr_loc_vec): New function.
10002         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
10003         build_function_call_expr.
10004         * expr.c (emutls_var_address): Likewise.
10005         * varasm.c (emutls_common_1): Likewise.
10006         * omp-low.c (expand_omp_atomic_mutex): Likewise.
10007         (expand_omp_taskreg): Adjust for new type of region->ws_args.
10008         (get_ws_args_for): Return a VEC instead of a tree.
10009         (expand_parallel_call): Call build_call_expr_loc_vec instead of
10010         build_function_call_expr.
10011         * stor-layout.c (self_referential_size): Likewise.
10012
10013 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10014
10015         PR testsuite/44701
10016         * recog.c (constrain_operands): Allow side-effects in memory
10017         operands if either < or > constraint is used, rather than if
10018         both < and > is used.
10019
10020 2010-07-13  Richard Guenther  <rguenther@suse.de>
10021
10022         PR middle-end/44911
10023         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
10024         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
10025         without name.
10026
10027 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10028
10029         PR target/44761
10030         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
10031         to variable emited.
10032         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
10033         * config/sh/sh.md (symGOT_load): Likewise.
10034         (symDTPOFF2reg): Likewise.
10035         (symTPOFF2reg): Likewise.
10036
10037 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10038
10039         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
10040         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
10041
10042 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10043
10044         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
10045         explanation.
10046         Find ucontext_t * on Solaris 11.
10047         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
10048         Handle new Solaris 11 __sighndlr patterns.
10049
10050 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10051
10052         PR debug/44901
10053         * vec.h (VEC_block_remove): Fix comment.
10054         * tree-ssa-live.c (remove_unused_locals): Don't use
10055         VEC_unordered_remove on local_decls, instead replace a single
10056         vector element in each iteration if at least one element had
10057         to be removed and VEC_truncate at the end.
10058         * omp-low.c (expand_omp_taskreg): Likewise.
10059
10060 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10061
10062         * c-decl.c (finish_function): Fix typo in comment.
10063
10064 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
10065
10066         PR bootstrap/44921
10067         * postreload.c (move2add_use_add3_insn): Silence gcc warning
10068         on min_regno.
10069
10070 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
10071
10072         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
10073         (simplify_stmt_using_ranges): Use it.
10074
10075 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10076
10077         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
10078         member.  Do not mark as GTY(()).
10079         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
10080         (spu_builtin_decls): New static variable.
10081         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
10082         (spu_init_builtins): Likewise.
10083         (spu_builtin_mul_widen_even): Likewise.
10084         (spu_builtin_mul_widen_odd): Likewise.
10085         (spu_builtin_mask_for_load): Likewise.
10086         (spu_builtin_vec_perm): Likewise.
10087         * config/spu/spu-c.c: Include "target.h".
10088         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
10089         of using spu_builtins[].fndecl.
10090
10091 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10092
10093         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
10094         imply -minterlink-mips16.
10095
10096 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10097
10098         * config/mips/mips.h (mips16_globals): Declare.
10099         (SWITCHABLE_TARGET): Define.
10100         * config/mips/mips.c: Include target-globals.h.
10101         (mips16_globals): New variable.
10102         (mips_set_mips16_mode): Use save_target_globals and
10103         restore_target_globals instead of target_reinit.
10104
10105 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10106
10107         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
10108         to say that the function can be called more than once.
10109         * target-globals.c (save_target_globals): Call init_reg_sets.
10110
10111 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10112
10113         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
10114         * bb-reorder.h: New file.
10115         * bb-reorder.c (default_target_bb_reorder): New variable.
10116         (this_target_bb_reorder): New conditional variable.
10117         (uncond_jump_length): Redefine as a macro.
10118         * target-globals.h (this_target_bb_reorder): Declare.
10119         (target_globals): Add a bb_reorder field.
10120         (restore_target_globals): Copy the bb_reorder field to
10121         this_target_bb-reorder.
10122         * target-globals.c: Include bb-reorder.h.
10123         (default_target_globals): Initialize the bb_reorder field.
10124         (save_target_globals): Likewise.
10125
10126 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10127
10128         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
10129         * gcse.h: New file.
10130         * gcse.c: Include gcse.h.
10131         (default_target_gcse): New variable.
10132         (this_target_gcse): New conditional variable.
10133         (can_copy): Redefine as a macro.
10134         (can_copy_init_p): New macro.
10135         (can_copy_p): Remove can_copy_init_p.
10136         * target-globals.h (this_target_gcse): Declare.
10137         (target_globals): Add a gcse field.
10138         (restore_target_globals): Copy the gcse field to this_target_gcse.
10139         * target-globals.c: Include gcse.h.
10140         (default_target_globals): Initialize the gcse field.
10141         (save_target_globals): Likewise.
10142
10143 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10144
10145         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
10146         and x_ira_prohibited_mode_move_regs_initialized_p.
10147         (ira_prohibited_mode_move_regs): Redefine as a macro.
10148         * ira.c (ira_prohibited_mode_move_regs): Delete.
10149         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
10150
10151 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10152
10153         * reload.h (target_reload): Add x_cached_reg_save_code and
10154         x_cached_reg_restore_code.
10155         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
10156         Redefine as macros.
10157
10158 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10159
10160         * Makefile.in (target-globals.o): Depend on builtins.h.
10161         * builtins.h: New file.
10162         * builtins.c: Include builtins.h.
10163         (default_target_builtins): New variable.
10164         (this_target_builtins): New conditional variable.
10165         (apply_args_mode, apply_result_mode): Redefine as macros.
10166         * target-globals.h (this_target_builtins): Declare.
10167         (target_globals): Add a builtins field.
10168         (restore_target_globals): Copy the builtins field to
10169         this_target_builtins.
10170         * target-globals.c: Include builtins.h.
10171         (default_target_globals): Initialize the builtins field.
10172         (save_target_globals): Likewise.
10173
10174 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10175
10176         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
10177         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
10178         from expmed.c.
10179         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
10180         (alg_hash, alg_hash_used_p): New macros.
10181         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
10182         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
10183         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
10184
10185 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10186
10187         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
10188         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
10189         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
10190         (this_op_costs, costs_classes): Redefine as macros.
10191         (record_reg_classes): Don't take op_costs as a parameter.
10192         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
10193         (scan_one_insn): Update call to record_operand_costs.
10194
10195 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10196
10197         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
10198         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
10199         (target_ira_int): New structure.
10200         (default_target_ira_int): Declare.
10201         (this_target_ira_int): Declare as a variable or define as a macro.
10202         (ira_reg_mode_hard_regset, ira_register_move_cost)
10203         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
10204         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
10205         (prohibited_class_mode_regs, ira_important_classes_num)
10206         (ira_important_classes, ira_reg_class_intersect)
10207         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
10208         (ira_reg_class_union): Redefine as macros.
10209         * ira.h (target_ira): New structure.
10210         (default_target_ira): Declare.
10211         (this_target_ira): Declare as a variable or define as a macro.
10212         (ira_available_class_regs, ira_hard_regno_cover_class)
10213         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
10214         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
10215         (ira_class_hard_regs_num): Redefine as macros.
10216         * ira.c (default_target_ira, default_target_ira_int): New variables.
10217         (this_target_ira, this_target_ira_int): New conditional variables.
10218         (ira_reg_mode_hard_regset, ira_memory_move_cost)
10219         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
10220         (ira_class_subset_p): Delete.
10221         (no_unit_alloc_regs): Redefine as a macro.
10222         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
10223         (ira_class_hard_regs_num, ira_class_hard_reg_index)
10224         (ira_available_class_regs): Delete.
10225         (alloc_reg_class_subclasses): Redefine as a macro.
10226         (ira_reg_class_cover_size, ira_reg_class_cover)
10227         (ira_important_classes_num, ira_important_classes)
10228         (ira_important_class_nums, ira_class_translate): Delete.
10229         (cover_class_order): Document the variable's lifetime.
10230         (reorder_important_classes): Don't set ira_important_class_nums.
10231         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
10232         (ira_reg_class_super_classes, ira_reg_class_union)
10233         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
10234         Delete.
10235         (setup_reg_class_nregs): Don't set ira_max_regs.
10236         (prohibited_class_mode_regs): Delete.
10237         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
10238         (target_globals): Add ira and ira_int fields.
10239         (restore_target_globals): Copy the ira field to this_target_ira
10240         and the ira_int field to this_target_ira_int.
10241         * target-globals.c: Include ira-int.h.
10242         (default_target_globals): Initialize the ira and ira_int fields.
10243         (save_target_globals): Likewise.
10244
10245 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10246
10247         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
10248         * cfgloop.h (target_cfgloop): New structure.
10249         (default_target_cfgloop): Declare.
10250         (this_target_cfgloop): Declare as a variable or define as a macro.
10251         (target_avail_regs, target_clobbered_regs, target_res_regs)
10252         (target_reg_cost, target_spill_cost): Redefine as macros.
10253         * cfgloopanal.c (default_target_cfgloop): New variable.
10254         (this_target_cfgloop): New conditional variable.
10255         (target_avail_regs, target_clobbered_regs, target_res_regs)
10256         (target_reg_cost, target_spill_cost): Delete.
10257         * target-globals.h (this_target_cfgloop): Declare.
10258         (target_globals): Add a cfgloop field.
10259         (restore_target_globals): Copy the cfgloop field to
10260         this_target_cfgloop.
10261         * target-globals.c: Include cfgloop.h.
10262         (default_target_globals): Initialize the cfgloop field.
10263         (save_target_globals): Likewise.
10264
10265 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10266
10267         * regs.h (target_regs): Add x_direct_load, x_direct_store and
10268         x_float_extend_from_mem.
10269         (direct_load, direct_store, float_extend_from_mem): New macros.
10270         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
10271
10272 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10273
10274         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
10275         (target-globals.o): Depend on $(LIBFUNCS_H).
10276         * libfuncs.h: Include hashtab.h.
10277         (libfunc_entry): Moved from optabs.c.
10278         (target_libfuncs): New structure.
10279         (default_target_libfuncs): Declare.
10280         (this_target_libfuncs): Declare as a variable or define as a macro.
10281         (libfunc_table): Redefine as a macro.
10282         * optabs.c (default_target_libfuncs): New variable.
10283         (this_target_libfuncs): New conditional variable.
10284         (libfunc_table): Delete.
10285         (libfunc_entry): Moved to optabs.h.
10286         (libfunc_hash): Redefine as a macro.
10287         (hash_libfunc, eq_libfunc): Fix comments.
10288         (init_optabs): Use libfunc_hash to detect cases where the function
10289         has already been called.  Clear the hash table instead of
10290         recreating it.
10291         * target-globals.h (this_target_libfuncs): Declare.
10292         (target_globals): Add a libfuncs field.
10293         (restore_target_globals): Copy the libfuncs field to
10294         this_target_libfuncs.
10295         * target-globals.c: Include libfuncs.h.
10296         (default_target_globals): Initialize the libfuncs field.
10297         (save_target_globals): Likewise.
10298
10299 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10300
10301         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
10302         in all dependency lists.
10303
10304 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10305
10306         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
10307         * optabs.h (target_optabs): New structure.
10308         (default_target_optabs): Declare.
10309         (this_target_optabs): Declare as a variable or define as a macro.
10310         (optab_table, convert_optab_table, direct_optab_table): Redefine
10311         as macros.
10312         * optabs.c (default_target_optabs): New variable.
10313         (this_target_optabs): New conditional variable.
10314         (optab_table, convert_optab_table, direct_optab_table): Delete.
10315         * target-globals.h (this_target_optabs): Declare.
10316         (target_globals): Add a optabs field.
10317         (restore_target_globals): Copy the optabs field to
10318         this_target_optabs.
10319         * target-globals.c: Include expr.h and optabs.h.
10320         (default_target_globals): Initialize the optabs field.
10321         (save_target_globals): Likewise.
10322
10323 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10324
10325         * flags.h (target_flagstate): Add x_flag_excess_precision.
10326         (flag_excess_precision): Redefine as a macro.
10327         * toplev.c (flag_excess_precision): Delete.
10328
10329 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10330
10331         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
10332         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
10333         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
10334         (no_caller_save_reg_set): Redefine as a macro.
10335         * reload.h (target_reload): Add x_caller_save_initialized_p and
10336         x_regno_save_mode.
10337         (caller_save_initialized_p): Redefine as a macro.
10338         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
10339         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
10340         (regno_save_mode): Redefine as a macro.
10341
10342 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10343
10344         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
10345         * expmed.h: New file.
10346         * expmed.c (default_target_costs): New variable.
10347         (this_target_costs): New conditional variable.
10348         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
10349         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
10350         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
10351         * target-globals.h (this_target_expmed): Declare.
10352         (target_globals): Add a expmed field.
10353         (restore_target_globals): Copy the expmed field to
10354         this_target_expmed.
10355         * target-globals.c: Include expmed.h.
10356         (default_target_globals): Initialize the expmed field.
10357         (save_target_globals): Likewise.
10358
10359 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10360
10361         * Makefile.in (target-globals.o): Depend on reload.h.
10362         * reload.h (target_reload): New structure.
10363         (default_target_reload): Declare.
10364         (this_target_reload): Declare as a variable or define as a macro.
10365         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
10366         * reload1.c (default_target_reload): New variable
10367         (this_target_reload): New conditional variable.
10368         (indirect_symref_ok, double_reg_address_ok): Delete.
10369         (spill_indirect_levels): Redefine as a macro.
10370         * target-globals.h (this_target_reload): Declare.
10371         (target_globals): Add a reload field.
10372         (restore_target_globals): Copy the reload field to
10373         this_target_reload.
10374         * target-globals.c: Include hard-reg-set.h.
10375         (default_target_globals): Initialize the reload field.
10376         (save_target_globals): Likewise.
10377
10378 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10379
10380         * rtl.h (target_rtl): Add x_static_reg_base_value.
10381         * alias.c (static_reg_base_value): Redefine as a macro.
10382
10383 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10384
10385         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
10386         (GTFILES): Remove reginfo.c.
10387         * rtl.h (target_rtl): Add x_top_of_stack.
10388         (top_of_stack): New macro.
10389         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
10390         (top_of_stack): Delete.
10391
10392 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10393
10394         * regs.h (target_regs): Add x_hard_regs_of_mode,
10395         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
10396         x_may_move_out_cost and x_last_mode_for_init_move_cost.
10397         (have_regs_of_mode, contains_reg_of_mode, move_cost)
10398         (may_move_in_cost, may_move_out_cost): Redefine as macros.
10399         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
10400         (may_move_in_cost, may_move_out_cost): Delete.
10401         (last_mode_for_init_move_cost): Redefine as a macro.
10402
10403 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10404
10405         * hard-reg-set.h (target_hard_regs): New structure.
10406         (default_target_hard_regs): Declare.
10407         (this_target_hard_regs): Declare as a variable or define as a macro.
10408         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
10409         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
10410         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
10411         (reg_class_size, reg_class_subclasses, reg_class_subunion)
10412         (reg_class_superunion, reg_names): Redefine as macros.
10413         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
10414         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
10415         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
10416         (reg_class_contents, reg_class_size, reg_class_subclasses)
10417         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
10418         (default_target_hard_regs): New variable
10419         (this_target_hard_regs, initial_call_really_used_regs)
10420         (initial_reg_alloc_order): New conditional variables.
10421         (initial_reg_names): New variable.
10422         (init_reg_sets): Assert that initial_call_really_used_regs,
10423         initial_reg_alloc_order and initial_reg_names
10424         are all the same size as their variable counterparts.  Use them to
10425         initialize those counterparts.
10426         * target-globals.h (this_target_hard_regs): Declare.
10427         (target_globals): Add a hard_regs field.
10428         (restore_target_globals): Copy the hard_regs field to
10429         this_target_hard_regs.
10430         * target-globals.c: Include hard-reg-set.h.
10431         (default_target_globals): Initialize the hard_regs field.
10432         (save_target_globals): Likewise.
10433
10434 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10435
10436         * Makefile.in (target-globals.o): Depend on $(RTL_H).
10437         * rtl.h (target_rtl): New structure.
10438         (default_target_rtl): Declare.
10439         (this_target_rtl): Declare as a variable or define as a macro.
10440         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10441         Redefine as macros.
10442         * emit-rtl.c (default_target_rtl): New variable.
10443         (this_target_rtl): New conditional variable.
10444         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10445         (return_address_pointer_rtx): Delete.
10446         (initial_regno_reg_rtx): New macro.
10447         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10448         (init_emit_regs): Likewise.
10449         * target-globals.h (this_target_rtl): Declare.
10450         (target_globals): Add a rtl field.
10451         (restore_target_globals): Copy the rtl field to this_target_rtl.
10452         * target-globals.c: Include rtl.h.
10453         (default_target_globals): Initialize the rtl field.
10454         (save_target_globals): Likewise.
10455
10456 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10457
10458         * Makefile.in (target-globals.o): Depend on $(REGS_H).
10459         * regs.h (target_reg_modes): New structure.
10460         (default_target_reg_modes): Declare.
10461         (this_target_reg_modes): Declare as a variable or define as a macro.
10462         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10463         * reginfo.c (default_target_reg_modes): New variable.
10464         (this_target_reg_modes): New conditional variable.
10465         (hard_regno_nregs, reg_raw_mode): Delete.
10466         * target-globals.h (this_target_regs): Declare.
10467         (target_globals): Add a regs field.
10468         (restore_target_globals): Copy the regs field to this_target_regs.
10469         * target-globals.c: Include regs.h.
10470         (default_target_globals): Initialize the regs field.
10471         (save_target_globals): Likewise.
10472
10473 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10474
10475         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10476         * doc/tm.texi: Regenerate.
10477         * Makefile.in (OBJS-common): Add target-globals.o.
10478         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10479         and target-globals.h.
10480         (target-globals.o): New rule.
10481         (GTFILES): Include $(srcdir)/target-globals.h.
10482         * defaults.h (SWITCHABLE_TARGET): Define.
10483         * gengtype.c (open_base_files): Add target-globals.h to the
10484         list of includes.
10485         * target-globals.h: New file.
10486         * target-globals.c: Likewise.
10487
10488         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10489         * flags.h (target_flag_state): New structure.
10490         (default_target_flag_state): Declare.
10491         (this_target_flag_state): Declare as a variable or define as a macro.
10492         (align_loops_log): Redefine as a macro.
10493         (align_loops_max_skip, align_jumps_log): Likewise.
10494         (align_jumps_max_skip, align_labels_log): Likewise.
10495         (align_labels_max_skip, align_functions_log): Likewise.
10496         * toplev.c (default_target_flag_state): New variable.
10497         (this_target_flag_state): New conditional variable.
10498         (align_loops_log): Delete.
10499         (align_loops_max_skip, align_jumps_log): Likewise.
10500         (align_jumps_max_skip, align_labels_log): Likewise.
10501         (align_labels_max_skip, align_functions_log): Likewise.
10502         * target-globals.h (this_target_flag_state): Declare.
10503         (target_globals): Add a flag_state field.
10504         (restore_target_globals): Copy the flag_state field to
10505         this_target_flag_state.
10506         * target-globals.c: Include flags.h.
10507         (default_target_globals): Initialize the flag_state field.
10508         (save_target_globals): Likewise.
10509
10510 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10511
10512         * postreload.c (reg_symbol_ref[]): New.
10513         (move2add_use_add2_insn): New.
10514         (move2add_use_add3_insn): New.
10515         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10516         (move2add_note_store): Likewise.
10517
10518 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
10519
10520         PR rtl-optimization/44752
10521         * genautomata.c (main): Don't emit an empty file even if there
10522         is no automaton.
10523
10524 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10525
10526         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10527         ix86_solaris_return_in_memory.
10528         * config/i386-protos.h: Reflect this.
10529         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10530         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10531         Move ...
10532         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10533
10534 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10535
10536         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10537         align the stack when it's going to be saved.
10538
10539 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10540
10541         PR pch/14940
10542         * config/host-solaris.c (mmap_fixed): New function.
10543         (sol_gt_pch_get_address): Use it.
10544         (sol_gt_pch_use_address): Likewise.
10545
10546 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10547
10548         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10549         pentiumpro on Solaris 8 and 9/x86.
10550         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10551         Document SSE/SSE2 support.
10552         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10553
10554 2010-07-12  Andi Kleen  <ak@linux.intel.com>
10555
10556         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10557         instead of gcc_assert to print better error message for multiple
10558         prevailing defs.
10559
10560 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
10561
10562         * config/i386/i386.c (ix86_asm_output_function_label): Change format
10563         string placeholder from 0x%x to %#x.
10564         (ix86_code_end): Use putc to output '\n'.
10565         (ix86_print_operand) <case ';'>: Use putc to output ';'.
10566
10567 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
10568
10569         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10570         in directive -export.
10571
10572 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
10573
10574         * reginfo.h (reg_classes_intersect_p): Change arguments type to
10575         reg_class_t.
10576         * rtl.h (reg_classes_intersect_p): Adjust prototype.
10577
10578         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10579         Remove macros.
10580         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10581         rs6000_memory_move_cost): Remove
10582         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10583         TARGET_MEMORY_MOVE_COST): Define.
10584         (rs6000_register_move_cost): Make static. Change arguments type from
10585         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10586         (rs6000_memory_move_cost): Make static. Change arguments type from
10587         'enum reg_class' to reg_class_t.
10588
10589 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
10590
10591         PR middle-end/42505
10592         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10593         lookup code into....
10594         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10595         new functions.
10596         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10597         * cfgloopanal.c (target_clobbered_regs): Define.
10598         (init_set_costs): Initialize target_clobbered_regs.
10599         (estimate_reg_pressure_cost): Add call_p argument.  When true,
10600         adjust the number of available registers to exclude the
10601         call-clobbered registers.
10602         * cfgloop.h (target_clobbered_regs): Declare.
10603         (estimate_reg_pressure_cost): Adjust declaration.
10604         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10605         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10606         (determine_set_costs): Dump target_clobbered_regs.
10607         (loop_body_includes_call): New function.
10608         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10609         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10610         call_p flag through.
10611         (best_gain_for_invariant): Likewise.
10612         (find_invariants_to_move): Likewise.
10613         (move_single_loop_invariants): Likewise, using already-computed
10614         has_call field.
10615
10616 2010-07-10  Richard Guenther  <rguenther@suse.de>
10617             Joern Rennecke  <joern.rennecke@embecosm.com>
10618
10619         PR debug/44832
10620         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10621         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10622         unless they have DECL_IGNORED_P set.
10623
10624 2010-07-10  Richard Guenther  <rguenther@suse.de>
10625
10626         PR lto/44889
10627         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10628         helper function.
10629         (gimple_types_compatible_p): Similar to pointed-to
10630         types allow and merge a mix of complete and incomplete aggregate.
10631         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10632         (iterative_hash_gimple_type): Adjust for that.
10633
10634 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
10635
10636         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10637
10638 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
10639
10640         PR objc/44140
10641         * config/darwin.c (output_objc_section_asm_op): Save and restore
10642         section when outputting ObjC section list.
10643
10644 2010-07-09  Jan Hubicka  <jh@suse.cz>
10645
10646         * lto-streamer-out.c (produce_symtab): Do not write alias
10647         cgraph/varpool nodes.
10648
10649 2010-07-09  Jan Hubicka  <jh@suse.cz>
10650
10651         * tree-inline.c (declare_return_variable): Fix ICE while
10652         inlining DECL_BY_VALUE function not in SSA form
10653
10654 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
10655
10656         PR tree-optimization/44576
10657         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10658         New.  Pull out from is_loop_prefetching_profitable to implement
10659         the trip count to ahead ratio heuristic.
10660         (mem_ref_count_reasonable_p): New.  Pull out from
10661         is_loop_prefetching_profitable to implement the instruction to
10662         memory reference ratio heuristic.  Also consider not reasonable if
10663         the memory reference count is above a threshold (to avoid
10664         explosive compilation time.
10665         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
10666         is_loop_prefetching_profitable to implement the instruction to
10667         prefetch ratio heuristic.
10668         (is_loop_prefetching_profitable): Removed.
10669         (loop_prefetch_arrays): Distribute the cost analysis across the
10670         function to allow early exit of the prefetch analysis.
10671         is_loop_prefetching_profitable is splitted into three functions,
10672         with each one called as early as possible.
10673         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
10674         number of memory references in a loop is considered too many.
10675
10676 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10677
10678         * reload.c (find_reloads): Don't clear badop if we have a winreg
10679         alternative, but not win, and the class only has fixed regs.
10680         * hard-reg-set.h (class_only_fixed_regs): Declare.
10681         * reginfo.c (class_only_fixed_regs): New array.
10682         (init_reg_sets_1): Initialize it.
10683         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10684         discourage alternatives using the stack pointer.
10685
10686         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10687
10688         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10689
10690         * config/arm/arm.md (cbranchqi4): Fix array size.
10691         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10692         calculating length.
10693
10694 2010-07-09  Richard Guenther  <rguenther@suse.de>
10695
10696         * gimple.c (struct type_fixup_s): New struct and VEC type.
10697         (gimple_register_type_fixups): New static global.
10698         (gimple_queue_type_fixup): New function.
10699         (gimple_types_compatible_p): Queue type fixups instead of
10700         applying them here.
10701         (gimple_register_type): Apply queued fixups for the
10702         canonical type.  Empty the type fixup queue.
10703
10704 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10705
10706         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10707         * configure: Regenerate.
10708         * config.in: Ditto.
10709
10710 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10711             Denys Vlasenko  <dvlasenk@redhat.com>
10712             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10713
10714         PR tree-optimization/28632
10715         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10716         (extract_range_from_binary_expr): Further optimize
10717         BIT_AND_EXPR and BIT_IOR_EXPR.
10718
10719 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
10720
10721         * tree-if-conv.c (fold_or_predicates): New.
10722         (add_to_predicate_list): Call it.
10723
10724 2010-07-09  Richard Guenther  <rguenther@suse.de>
10725
10726         PR middle-end/44890
10727         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10728         if base is a pointer.
10729         * tree-cfg.c (verify_expr): Update MEM_REF checking.
10730
10731 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10732
10733         PR target/44877
10734         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10735         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10736         builtin mask for load/store builtins.
10737
10738 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10739
10740         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10741         for "lock addl".
10742         * configure: Regenerate.
10743         * config/i386/i386.c (ix86_print_operand) <case ';'>:
10744         Remove TARGET_MACHO.
10745
10746 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
10747
10748         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10749         default ISA flags.
10750         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10751
10752 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
10753
10754         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10755
10756 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10757
10758         * config/picochip/picochip.md (commsTestPort): Emit more
10759         efficient sequence for tstport instruction.
10760
10761 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10762
10763         * config/i386/i386.c (ix86_veclib_handler): Make static.
10764
10765 2010-07-09  Richard Guenther  <rguenther@suse.de>
10766
10767         PR tree-optimization/44852
10768         * tree-ssa-alias.c: Include toplev.h for exact_log2.
10769         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10770         in MEM_REF.
10771         (indirect_refs_may_alias_p): Likewise.
10772         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10773
10774 2010-07-09  Richard Guenther  <rguenther@suse.de>
10775
10776         PR tree-optimization/44882
10777         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10778         sets do conflict.
10779         (vectorizable_load): Likewise.
10780
10781 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10782
10783         PR target/40657
10784         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10785         All callers changed.
10786         Handle the case when we're called for the epilogue.
10787         (thumb_unexpanded_epilogue): Use it.
10788         (thumb1_expand_epilogue): Likewise.
10789
10790 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10791
10792         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10793         both ranges are range_int_cst_p with non-negative minimum,
10794         try harder to derive smaller range.
10795
10796 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10797
10798         * genrecog.c: Include diagnostic-core.h before toplev.h.
10799         * genoutput.c: Likewise.
10800         * genextract.c: Likewise.
10801         * genautomata.c: Likewise.
10802         * genemit.c: Likewise.
10803         * genpeep.c: Likewise.
10804         * genattrtab.c: Likewise.
10805         * genconditions.c: Likewise.
10806         * genpreds.c: Likewise.
10807
10808 2010-07-08  Andi Kleen  <ak@linux.intel.com>
10809
10810         * lto-section-in.c (lto_section_name): Add missing comma.
10811
10812 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
10813
10814         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10815         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10816         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10817         (ia64_override_options): Rename to...
10818         (ia64_option_override): ... this one. Make static.
10819
10820 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10821
10822         PR middle-end/44843
10823         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10824         pointed-to type of the offset in a MEM_REF to compute the alignment.
10825
10826 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10827
10828         * final.c (final_scan_insn): Replace
10829         TARGET_UNWIND_INFO macro check by unwind_emit
10830         hook NULL check.
10831         * targhooks.c (default_unwind_emit): Removed.
10832         * targhooks.h (default_unwind_emit): Likewise.
10833         * target.def (unwind_emit): Set default value to NULL.
10834
10835         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10836         New prototype.
10837         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10838         for NULL fntype argument and allow 64-bit targets.
10839         (ix86_asm_output_function_label): New function.
10840         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10841         (ix86_handle_fndecl_attribute): Likewise.
10842         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10843         * doc/doc/tm.texi: Regenerated.
10844         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10845         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10846         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10847         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10848         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10849         * config/elfos.h: Likewise.
10850         * config/i386/cygming.h: Likewise.
10851         * config/netbsd-aout.h: Likewise.
10852         * config/openbsd.h: Likewise.
10853         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10854         by ix86_asm_output_function_label function call.
10855         * varasm.c (assemble_start_function): Use
10856         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10857
10858 2010-07-08  Jan Hubicka  <jh@suse.cz>
10859
10860         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10861         New function.
10862         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10863         Declare.
10864         * ipa-cp.c (ipcp_estimate_growth): Use it.
10865         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10866         Likewise.
10867
10868 2010-07-08  Jan Hubicka  <jh@suse.cz>
10869
10870         * tree-inline.c (declare_return_variable): Allocate annotation for new
10871         temporary.
10872
10873 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10874
10875         PR tree-optimization/44710
10876         * tree-if-conv.c (parse_predicate): New.
10877         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10878         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10879
10880 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10881
10882         * common.opt (ftree-loop-if-convert): New flag.
10883         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10884         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10885         when flag_tree_loop_if_convert is set.
10886
10887 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10888
10889         * config/i386/i386.c: Use short syntax for function calls
10890         through function pointers.
10891         * config/i386/i386.md: Ditto.
10892
10893 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10894
10895         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10896
10897 2010-07-08  Richard Guenther  <rguenther@suse.de>
10898
10899         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10900         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10901
10902 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10903
10904         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10905         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10906         (loc_list_from_tree): Likewise.
10907         (output_loc_operands): Handle outputting DW_OP_const[48]u
10908         with loc->dtprel set.
10909         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10910
10911 2010-07-08  Jan Hubicka  <jh@suse.cz>
10912
10913         * ipa.c: Include pointer-set.h
10914         (cgraph_externally_visible_p): New attribute ALIASED;
10915         when in LTO, hidden symbols are local unless they are aliased.
10916         (function_and_variable_visibility): Compute aliased nodes;
10917         handle LTO and hidden symbol on functions and vars.
10918         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10919         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10920
10921 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10922
10923         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10924         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10925         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10926         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10927         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10928         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10929         (ix86_gen_probe_stack_range): Likewise.
10930         (override_options): Set them.
10931         (ix86_target_stack_probe): New function.
10932         (ix86_compute_frame_layout): Force use of push instructions to
10933         save registers if stack checking with probes is enabled.
10934         (get_scratch_register_on_entry): New function.
10935         (release_scratch_register_on_entry): Likewise.
10936         (ix86_adjust_stack_and_probe): Likewise.
10937         (output_adjust_stack_and_probe): Likewise.
10938         (ix86_emit_probe_stack_range): Likewise.
10939         (output_probe_stack_range): Likewise.
10940         (ix86_expand_prologue): Emit stack checking code if static built-in
10941         stack checking is enabled.
10942         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10943         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10944         (output_adjust_stack_and_probe): Likewise.
10945         (output_probe_stack_range): Likewise.
10946         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10947         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10948         TARGET_STACK_PROBE.
10949         (allocate_stack_worker_64): Likewise.
10950         (allocate_stack): Likewise.
10951         (adjust_stack_and_probe): New insn.
10952         (probe_stack_range): Likewise.
10953
10954 2010-07-08  Richard Guenther  <rguenther@suse.de>
10955
10956         PR tree-optimization/44831
10957         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10958         a MEM_REF preserving TBAA info of the original dereference.
10959         Dereference the original pointer if the address is not invariant.
10960         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10961         at least one invariant address that we are going to dereference.
10962
10963 2010-07-08  Richard Guenther  <rguenther@suse.de>
10964
10965         PR tree-optimization/44861
10966         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10967         information when building MEM_REFs.
10968         (vectorizable_load): Likewise.
10969         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10970
10971 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10972
10973         * config/sol2-c.c: Do not include diagnostic-core.h.
10974
10975 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10976
10977         PR bootstrap/44768
10978         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10979         with respect to current_function_decl. Pass decl of the function.
10980         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10981         * ipa-inline.c (compute_inline_parameters): Pass decl to
10982         estimated_stack_frame_size.
10983
10984 2010-07-08  Richard Guenther  <rguenther@suse.de>
10985
10986         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10987         New function.
10988         (valueize_refs): Call it.
10989
10990 2010-07-08  Richard Guenther  <rguenther@suse.de>
10991
10992         PR rtl-optimization/44838
10993         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10994         SSA form do not use pointer equivalence.
10995
10996 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10997
10998         * dwarf2out.c (AT_linkage_name): Delete.
10999         (add_linkage_attr): New function.
11000         (add_linkage_name): Call it to emit the linkage attribute.
11001         (dwarf2out_finish): Likewise.
11002         (move_linkage_attr): Explicitly accept both attribute variants.
11003
11004 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11005
11006         * toplev.h: Do not include diagnostic-core.h.
11007         Include diagnostic-core.h in every file that includes toplev.h.
11008         * c-tree.h: Do not include toplev.h.
11009         * pretty-print.h: Update comment.
11010         * Makefile.in: Update dependencies.
11011         * alias.c: Include diagnostic-core.h in every file that includes
11012         toplev.h.
11013         * attribs.c: Likewise.
11014         * auto-inc-dec.c: Likewise.
11015         * bb-reorder.c: Likewise.
11016         * bt-load.c: Likewise.
11017         * caller-save.c: Likewise.
11018         * calls.c: Likewise.
11019         * cfg.c: Likewise.
11020         * cfganal.c: Likewise.
11021         * cfgbuild.c: Likewise.
11022         * cfgcleanup.c: Likewise.
11023         * cfghooks.c: Likewise.
11024         * cfgloop.c: Likewise.
11025         * combine.c: Likewise.
11026         * config/alpha/alpha.c: Likewise.
11027         * config/arc/arc.c: Likewise.
11028         * config/arm/arm.c: Likewise.
11029         * config/arm/pe.c: Likewise.
11030         * config/avr/avr.c: Likewise.
11031         * config/bfin/bfin.c: Likewise.
11032         * config/cris/cris.c: Likewise.
11033         * config/crx/crx.c: Likewise.
11034         * config/darwin-c.c: Likewise.
11035         * config/darwin.c: Likewise.
11036         * config/fr30/fr30.c: Likewise.
11037         * config/frv/frv.c: Likewise.
11038         * config/h8300/h8300.c: Likewise.
11039         * config/host-darwin.c: Likewise.
11040         * config/i386/i386.c: Likewise.
11041         * config/i386/netware.c: Likewise.
11042         * config/i386/nwld.c: Likewise.
11043         * config/i386/winnt-cxx.c: Likewise.
11044         * config/i386/winnt-stubs.c: Likewise.
11045         * config/i386/winnt.c: Likewise.
11046         * config/ia64/ia64-c.c: Likewise.
11047         * config/ia64/ia64.c: Likewise.
11048         * config/iq2000/iq2000.c: Likewise.
11049         * config/lm32/lm32.c: Likewise.
11050         * config/m32c/m32c-pragma.c: Likewise.
11051         * config/m32c/m32c.c: Likewise.
11052         * config/m32r/m32r.c: Likewise.
11053         * config/m68hc11/m68hc11.c: Likewise.
11054         * config/m68k/m68k.c: Likewise.
11055         * config/mcore/mcore.c: Likewise.
11056         * config/mep/mep-pragma.c: Likewise.
11057         * config/mep/mep.c: Likewise.
11058         * config/mmix/mmix.c: Likewise.
11059         * config/mn10300/mn10300.c: Likewise.
11060         * config/moxie/moxie.c: Likewise.
11061         * config/pa/pa.c: Likewise.
11062         * config/pdp11/pdp11.c: Likewise.
11063         * config/picochip/picochip.c: Likewise.
11064         * config/rs6000/rs6000-c.c: Likewise.
11065         * config/rs6000/rs6000.c: Likewise.
11066         * config/rx/rx.c: Likewise.
11067         * config/s390/s390.c: Likewise.
11068         * config/score/score.c: Likewise.
11069         * config/score/score3.c: Likewise.
11070         * config/score/score7.c: Likewise.
11071         * config/sh/sh.c: Likewise.
11072         * config/sh/symbian-base.c: Likewise.
11073         * config/sh/symbian-c.c: Likewise.
11074         * config/sh/symbian-cxx.c: Likewise.
11075         * config/sol2-c.c: Likewise.
11076         * config/sol2.c: Likewise.
11077         * config/sparc/sparc.c: Likewise.
11078         * config/spu/spu.c: Likewise.
11079         * config/stormy16/stormy16.c: Likewise.
11080         * config/v850/v850-c.c: Likewise.
11081         * config/v850/v850.c: Likewise.
11082         * config/vax/vax.c: Likewise.
11083         * config/vxworks.c: Likewise.
11084         * config/xtensa/xtensa.c: Likewise.
11085         * convert.c: Likewise.
11086         * cse.c: Likewise.
11087         * cselib.c: Likewise.
11088         * dbgcnt.c: Likewise.
11089         * dbxout.c: Likewise.
11090         * ddg.c: Likewise.
11091         * dominance.c: Likewise.
11092         * emit-rtl.c: Likewise.
11093         * explow.c: Likewise.
11094         * expmed.c: Likewise.
11095         * fixed-value.c: Likewise.
11096         * fold-const.c: Likewise.
11097         * fwprop.c: Likewise.
11098         * gcse.c: Likewise.
11099         * ggc-common.c: Likewise.
11100         * ggc-page.c: Likewise.
11101         * ggc-zone.c: Likewise.
11102         * gimple-low.c: Likewise.
11103         * gimplify.c: Likewise.
11104         * graph.c: Likewise.
11105         * haifa-sched.c: Likewise.
11106         * ifcvt.c: Likewise.
11107         * implicit-zee.c: Likewise.
11108         * integrate.c: Likewise.
11109         * ira-build.c: Likewise.
11110         * ira-color.c: Likewise.
11111         * ira-conflicts.c: Likewise.
11112         * ira-costs.c: Likewise.
11113         * ira-lives.c: Likewise.
11114         * ira.c: Likewise.
11115         * lists.c: Likewise.
11116         * loop-doloop.c: Likewise.
11117         * loop-iv.c: Likewise.
11118         * lto-opts.c: Likewise.
11119         * lto-symtab.c: Likewise.
11120         * main.c: Likewise.
11121         * modulo-sched.c: Likewise.
11122         * optabs.c: Likewise.
11123         * params.c: Likewise.
11124         * plugin.c: Likewise.
11125         * postreload-gcse.c: Likewise.
11126         * postreload.c: Likewise.
11127         * predict.c: Likewise.
11128         * profile.c: Likewise.
11129         * real.c: Likewise.
11130         * regcprop.c: Likewise.
11131         * reginfo.c: Likewise.
11132         * regmove.c: Likewise.
11133         * reorg.c: Likewise.
11134         * resource.c: Likewise.
11135         * rtl.c: Likewise.
11136         * rtlanal.c: Likewise.
11137         * sched-deps.c: Likewise.
11138         * sched-ebb.c: Likewise.
11139         * sched-rgn.c: Likewise.
11140         * sdbout.c: Likewise.
11141         * sel-sched-dump.c: Likewise.
11142         * sel-sched-ir.c: Likewise.
11143         * simplify-rtx.c: Likewise.
11144         * stmt.c: Likewise.
11145         * stor-layout.c: Likewise.
11146         * store-motion.c: Likewise.
11147         * targhooks.c: Likewise.
11148         * tree-cfg.c: Likewise.
11149         * tree-cfgcleanup.c: Likewise.
11150         * tree-dump.c: Likewise.
11151         * tree-eh.c: Likewise.
11152         * tree-inline.c: Likewise.
11153         * tree-nomudflap.c: Likewise.
11154         * tree-object-size.c: Likewise.
11155         * tree-optimize.c: Likewise.
11156         * tree-outof-ssa.c: Likewise.
11157         * tree-phinodes.c: Likewise.
11158         * tree-profile.c: Likewise.
11159         * tree-ssa-ccp.c: Likewise.
11160         * tree-ssa-coalesce.c: Likewise.
11161         * tree-ssa-live.c: Likewise.
11162         * tree-ssa-loop-niter.c: Likewise.
11163         * tree-ssa-loop-prefetch.c: Likewise.
11164         * tree-ssa-loop.c: Likewise.
11165         * tree-ssa-structalias.c: Likewise.
11166         * tree-ssa-uninit.c: Likewise.
11167         * tree-ssa.c: Likewise.
11168         * tree-vect-data-refs.c: Likewise.
11169         * tree-vect-loop-manip.c: Likewise.
11170         * tree-vect-loop.c: Likewise.
11171         * tree-vect-patterns.c: Likewise.
11172         * tree-vect-stmts.c: Likewise.
11173         * tree-vrp.c: Likewise.
11174         * varasm.c: Likewise.
11175         * vec.c: Likewise.
11176         * web.c: Likewise.
11177         * xcoffout.c: Likewise.
11178
11179 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
11180
11181         * gengtype.c (write_field_root): New function.
11182         (write_root): Use it.
11183
11184 2010-07-07  Wei Guozhi  <carrot@google.com>
11185
11186         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11187         of lowest bits to lshift/compare): Add a missing line.
11188
11189 2010-07-07  Wei Guozhi  <carrot@google.com>
11190
11191         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11192         of lowest bits to lshift/compare): New.
11193
11194 2010-07-07  Tom Tromey  <tromey@redhat.com>
11195
11196         * doc/tm.texi: Update.
11197         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
11198         Add @hook.
11199         * target.def (want_debug_pub_sections): New hook.
11200         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
11201         * dwarf2out.c (add_pubname_string): Check
11202         targetm.want_debug_pub_sections.
11203         (add_pubname): Likewise.
11204         (add_pubtype): Likewise.
11205
11206 2010-07-07  Jie Zhang  <jie@codesourcery.com>
11207
11208         * genautomata.c (output_automata_list_min_issue_delay_code):
11209         Correctly decompress min_issue_delay.
11210
11211 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11212
11213         PR rtl-optimization/44404
11214         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
11215         possible, use reg_overlap_mentioned_p instead.
11216
11217 2010-07-07  Duncan Sands  <baldrick@free.fr>
11218
11219         PR middle-end/41355
11220         * tree.c (build_function_type_skip_args): Copy the original type using
11221         build_distinct_type_copy rather than copy_node.
11222
11223 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11224
11225         PR target/44850
11226         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
11227         revision 161876.
11228         (ix86_expand_prologue): Likewise.
11229         (ix86_handle_fndecl_attribute): Likewise.
11230         (ix86_asm_declare_function_name): Likewise.
11231         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11232         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11233         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
11234         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
11235         * doc/extend.texi: Likewise.
11236
11237 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11238
11239         PR target/44844
11240         * config/i386/i386.md (rdrand<mode>): Changed to expand to
11241         retry if the carry flag isn't valid.
11242         (rdrand<mode>_1): New.
11243
11244 2010-07-07  Richard Guenther  <rguenther@suse.de>
11245
11246         PR middle-end/44790
11247         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
11248         for expanding the constant offset for MEM_REFs.
11249
11250 2010-07-07  Richard Guenther  <rguenther@suse.de>
11251
11252         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
11253         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
11254         * gimple.h (is_gimple_operand): Remove.
11255         * gimple.c (is_gimple_operand): Likewise.
11256         (walk_gimple_op): Fix wi->val_only setting for calls.
11257         * tree-cfg.c (verify_gimple_call): Fix argument validation.
11258         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
11259         invalid gimple calls.
11260
11261 2010-07-06  Jan Hubicka  <jh@suse.cz>
11262
11263         * lto-cgraph.c (output_cgraph): Add missing declaration.
11264
11265 2010-07-06  Jan Hubicka  <jh@suse.cz>
11266
11267         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
11268         partition.
11269
11270 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
11271
11272         * doc/gimple.texi (GIMPLE_DEBUG): Document.
11273         * doc/rtl.texi (Debug Information): New node.
11274         (NOTE_INSN_VAR_LOCATION): Document.
11275         (debug_insn): Likewise.
11276         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
11277
11278 2010-07-07  Jan Hubicka  <jh@suse.cz>
11279
11280         With parts by Richard Guenther.
11281
11282         PR middle-end/44813
11283         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
11284         for functions passed by reference.
11285         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
11286         in memory when passed by reference.
11287         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
11288         beggining.
11289         * ipa-split.c (split_function): Cleanup way return value is passed;
11290         handle SSA DECL_BY_REFERENCE retvals.
11291         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
11292         DECL_BY_REFERENCE is set.
11293         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
11294         find_what_p_points_to): Handle RESULT_DECL.
11295         * tree-inline.c (declare_return_variable): Get new entry_block argument;
11296         when passing by reference ensure that RESULT_DECL is gimple_val.
11297         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
11298         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
11299
11300 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11301
11302         PR rtl-optimization/44787
11303         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
11304         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
11305
11306 2010-07-06  Jan Hubicka  <jh@suse.cz>
11307
11308         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
11309         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
11310         with body can prevail.
11311         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
11312         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
11313         * cgraph.c (cgraph_get_node_or_alias): New function.
11314         * cgraph.h (cgraph_get_node_or_alias): Declare.
11315
11316 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
11317
11318         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
11319         support.
11320         (ix86_expand_prologue): Likewise.
11321         (ix86_handle_fndecl_attribute): Likewise.
11322         (ix86_asm_declare_function_name): New function for
11323         ASM_DECLARE_FUNCTION_NAME.
11324         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
11325         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
11326         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
11327         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
11328         * doc/extend.texi: Adjust documentation about ms_hook_prologue
11329         attribute.
11330
11331 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11332
11333         * config/i386/i386.md (immediate_operand): New mode attribute.
11334
11335         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
11336         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
11337         using P mode iterator.
11338         (pro_epilogue_adjust_stack_di_2): Rename from
11339         pro_epilogue_adjust_stack_rex64_2.
11340
11341         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
11342
11343 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11344
11345         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
11346         through gen_mov_insv_1 function pointer.
11347         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
11348         gen_truncxf<mode>2 through gen_truncxf function pointer.
11349         (remainder<mode>3): Ditto.
11350         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
11351         (allocate_stack): Call gen_allocate_stack_worker_64 or
11352         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
11353         function pointer.
11354         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
11355         function pointer.
11356
11357 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11358
11359         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
11360         operand constraint instead of <r><i>m.
11361
11362 2010-07-06  Richard Guenther  <rguenther@suse.de>
11363
11364         PR middle-end/44828
11365         * convert.c (convert_to_integer): Watch out for overflowing
11366         MULT_EXPR as well.
11367
11368 2010-07-05  Jan Hubicka  <jh@suse.cz>
11369
11370         * lto-streamer.c (write_symbol_vec): Rename to ...
11371         (write_symbol) ... this one; write only symbol given and when
11372         present in cache. Sanity check that what is defined is present
11373         in cgraph/varpool with body/finalized decl.
11374         (write_symbols_of_kind): Remove.
11375         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
11376         pairs to produce symtab.
11377         (produce_asm_for_decls): Update call of produce_symtab; don't do so
11378         when doing WPA streaming.
11379
11380 2010-07-05  Jan Hubicka  <jh@suse.cz>
11381
11382         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
11383         function is still available to fold into.
11384
11385 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11386
11387         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
11388         * function.h (struct_function): Change type of local_decls field
11389         to a VEC.
11390         (add_local_decl): New function.
11391         (FOR_EACH_LOCAL_DECL): New macro.
11392         * cfgexpand.c (init_vars_expansion): Adjust for new type of
11393         cfun->local_decls.
11394         (estimated_stack_frame_size): Likewise.
11395         (expand_used_vars): Likewise.
11396         * cgraphbuild.c (build_cgraph_edges): Likewise.
11397         * function.c (instantiate_decls_1): Likewise.
11398         * ipa-struct-reorg.c (build_data_structure): Likewise.
11399         * ipa-type-escape.c (analyze_function): Likewise.
11400         * lto-streamer-in.c (input_function): Likewise.
11401         * lto-streamer-out.c (output_function): Likewise.
11402         * tree-ssa-live.c (remove_unused_locals): Likewise.
11403         * tree.c (free_lang_data_in_decl): Likewise.
11404         (find_decls_types_in_node): Likewise.
11405         * omp-low.c (remove_exit_barrier): Likewise.
11406         (expand_omp_taskreg): Likewise.
11407         (list2chain): Rename to...
11408         (vec2chain): ...this.  Adjust.
11409         * cgraphunit.c (assemble_thunk): Call add_local_decl.
11410         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
11411         * gimple-low.c (record_vars_into): Likewise.
11412         * tree-inline.c (remap_decls): Likewise.
11413         (declare_return_variable): Likewise.
11414         (declare_inline_vars): Likewise.
11415         (copy_forbidden): Adjust for new type of cfun->local_decls.
11416         (add_local_variables): New function.
11417         (expand_call_inline): Call it.
11418         (tree_function_versioning): Likewise.
11419
11420 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11421
11422         AVX Programming Reference (June, 2010)
11423         * config/i386/cpuid.h (bit_F16C): New.
11424         (bit_RDRND): Likewise.
11425         (bit_FSGSBASE): Likewise.
11426
11427         * config/i386/i386-builtin-types.def: Add
11428         "DEF_FUNCTION_TYPE (UINT16)", function types for
11429         float16 <-> float conversions and
11430         "DEF_FUNCTION_TYPE (VOID, UINT64)".
11431
11432         * config/i386/i386-c.c (ix86_target_macros_internal): Support
11433         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
11434         OPTION_MASK_ISA_F16C.
11435
11436         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
11437         (OPTION_MASK_ISA_RDRND_SET): Likewise.
11438         (OPTION_MASK_ISA_F16C_SET): Likewise.
11439         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
11440         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11441         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11442         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11443         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11444         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11445         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11446         (override_options): Handle them.
11447         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11448         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11449         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11450         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11451         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11452         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11453         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11454         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11455         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11456         (bdesc_args): Likewise.
11457         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11458         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11459         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11460         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11461         Handle non-memory store.
11462
11463         * config/i386/i386.h (TARGET_FSGSBASE): New.
11464         (TARGET_RDRND): Likewise.
11465         (TARGET_F12C): Likewise.
11466
11467         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11468         (UNSPEC_VCVTPS2PH): Likewise.
11469         (UNSPECV_RDFSBASE): Likewise.
11470         (UNSPECV_RDGSBASE): Likewise.
11471         (UNSPECV_WRFSBASE): Likewise.
11472         (UNSPECV_WRGSBASE): Likewise.
11473         (UNSPECV_RDRAND): Likewise.
11474         (rdfsbase<mode>): Likewise.
11475         (rdgsbase<mode>): Likewise.
11476         (wrfsbase<mode>): Likewise.
11477         (wrgsbase<mode>): Likewise.
11478         (rdrand<mode>): Likewise.
11479
11480         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11481
11482         * config/i386/immintrin.h (_rdrand_u16): New.
11483         (_rdrand_u32): Likewise.
11484         (_readfsbase_u32): Likewise.
11485         (_readfsbase_u64): Likewise.
11486         (_readgsbase_u32): Likewise.
11487         (_readgsbase_u64): Likewise.
11488         (_writefsbase_u32): Likewise.
11489         (_writefsbase_u64): Likewise.
11490         (_writegsbase_u32): Likewise.
11491         (_writegsbase_u64): Likewise.
11492         (_rdrand_u64): Likewise.
11493         (_cvtsh_ss): Likewise.
11494         (_mm_cvtph_ps): Likewise.
11495         (_mm256_cvtph_ps): Likewise.
11496         (_cvtss_sh): Likewise.
11497         (_mm_cvtps_ph): Likewise.
11498         (_mm256_cvtps_ph): Likewise.
11499
11500         * config/i386/sse.md (vcvtph2ps): New.
11501         (*vcvtph2ps_load): Likewise.
11502         (vcvtph2ps256): Likewise.
11503         (vcvtps2ph): Likewise.
11504         (*vcvtps2ph): Likewise.
11505         (*vcvtps2ph_store): Likewise.
11506         (vcvtps2ph256): Likewise.
11507
11508         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11509
11510         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11511
11512 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11513
11514         PR bootstrap/44512
11515         * genenums.c (main): Output include of insn-constants.h
11516         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11517
11518 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
11519
11520         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11521         (override_options): Initialize it.
11522         (ix86_expand_prologue): Use it.
11523
11524 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11525
11526         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11527
11528 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11529
11530         * double-int.h (fit_double_type): Remove declaration.
11531         * double-int.c (fit_double_type): Remove function.
11532         * tree.h (int_fits_type_p): Adjust prototype.
11533         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11534         instead of fit_double_type.
11535         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11536         instead of fit_double_type and build_int_cst_wide.
11537         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11538         instead of fit_double_type and build_int_cst_wide.
11539         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11540         of fit_double_type.
11541
11542 2010-07-05  Jan Hubicka  <jh@suse.cz>
11543
11544         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11545         in_other_partition.
11546         * lto-cgraph.c (referenced_from_other_partition_p,
11547         reachable_from_other_partition_p): Use in_other_partition flags.
11548         (output_node, output_varpool_node): COMDAT nodes always have private
11549         copies and thus are never used from other partition.
11550
11551 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11552
11553         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11554         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11555         * config/ia64/ia64.c Include reload.h.
11556         (ia64_memory_move_cost): New function.
11557         (TARGET_MEMORY_MOVE_COST): Define.
11558         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11559         memory_move_cost.
11560
11561 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11562
11563         PR middle-end/42505
11564         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11565         comments about cost model.
11566         (try_add_cand_for):  Add second strategy for choosing initial set
11567         based on original IVs, controlled by ORIGINALP argument.
11568         (get_initial_solution): Add ORIGINALP argument.
11569         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11570         (find_optimal_iv_set): Try two different strategies for choosing
11571         the IV set, and return the one with lower cost.
11572
11573 2010-07-05  Richard Guenther  <rguenther@suse.de>
11574
11575         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11576
11577 2010-07-05  Richard Guenther  <rguenther@suse.de>
11578
11579         * tree.c (reference_alias_ptr_type): New function.
11580         * tree.h (reference_alias_ptr_type): Declare.
11581         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11582         allow non-TARGET_MEM_REF new refs.
11583         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11584         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11585         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11586         (create_mem_ref): Get alias pointer type.  Adjust calls to
11587         create_mem_ref_raw.
11588         (maybe_fold_tmr): Likewise.
11589         * tree-flow.h (create_mem_ref): Adjust prototype.
11590
11591 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11592
11593         PR c++/44808
11594         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11595         *from_p is VAR_DECL.
11596
11597 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11598
11599         * tree.h (build_call_list): Remove.
11600         * tree.c (build_call_list): Remove.
11601
11602 2010-07-05  Richard Guenther  <rguenther@suse.de>
11603
11604         * double-int.h (double_int_sub): Declare.
11605         * double-int.c (double_int_sub): New function.
11606         * dwarf2out.c (field_byte_offset): Use it.
11607         * fixed-value.c (do_fixed_add): Likewise.
11608         (do_fixed_multiply): Likewise.
11609         (do_fixed_divide): Likewise.
11610         * tree-predcom.c (add_ref_to_chain): Likewise.
11611         (determine_roots_comp): Likewise.
11612         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11613
11614 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11615
11616         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
11617         implementations.
11618
11619 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
11620
11621         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11622         * arm-modes.def (CC_NOTB): Don't define.
11623         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11624         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11625         (LTUGEU): New code_iterator.
11626         (cnb, optab): New corresponding code_attrs.
11627         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
11628         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
11629         using LTUGEU.
11630         (addsi3_carryin_shift_<optab>): Likewise.
11631         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11632         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
11633         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11634         (subsi3_compare): Renamed from subsi3_compare0_c.
11635         Change CC_NOTB to CC.
11636         (arm_subsi3_insn): Allow constants for operand 0.
11637         (compare_scc peephole for eq case): New.
11638         (compare_scc splitters): Change CC_NOTB to CC.
11639
11640 2010-07-05  Richard Guenther  <rguenther@suse.de>
11641
11642         * tree-ssa-loop-im.c (for_each_index): Do not handle
11643         ALIGN_INDIRECT_REF.
11644         (gen_lsm_tmp_name): Likewise.
11645         * tree-dump.c (dequeue_and_dump): Likewise.
11646         * tree-pretty-print.c (dump_generic_node): Likewise.
11647         (op_code_prio): Likewise.
11648         (op_symbol_code): Likewise.
11649         * tree.c (staticp): Likewise.
11650         (build1_stat): Likewise.
11651         * tree.h (INDIRECT_REF_P): Likewise.
11652         * fold-const.c (maybe_lvalue_p): Likewise.
11653         (operand_equal_p): Likewise.
11654         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11655         (ao_ref_init_from_vn_reference): Likewise.
11656         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11657         (find_interesting_uses_address): Likewise.
11658         * dwarf2out.c (loc_list_from_tree): Likewise.
11659         * gimplify.c (gimplify_expr): Likewise.
11660         * tree-eh.c (tree_could_trap_p): Likewise.
11661         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11662         * cfgexpand.c (expand_debug_expr): Likewise.
11663         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11664         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11665         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11666         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11667         * tree-ssa-operands.c (get_expr_operands): Likewise.
11668         * expr.c (safe_from_p): Likewise.
11669         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
11670         * tree-vect-data-refs.c (vect_setup_realignment): Build
11671         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11672         * tree-vect-stmts.c (vectorizable_load): Likewise.
11673         * tree.def (ALIGN_INDIRECT_REF): Remove.
11674
11675 2010-07-05  Richard Guenther  <rguenther@suse.de>
11676
11677         PR tree-optimization/44784
11678         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11679         for inserted stmts.
11680         (find_or_generate_expression): Fix SCCVN insertion check.
11681
11682 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11683
11684         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11685         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11686         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11687         directives.
11688
11689 2010-07-05  Ira Rosen  <irar@il.ibm.com>
11690
11691         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11692         statements that are not vectorized.
11693         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11694         in INSIDE_COST.
11695
11696 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
11697
11698         PR bootstrap/44820
11699         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11700
11701 2010-07-05  Richard Guenther  <rguenther@suse.de>
11702
11703         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11704         RESULT_DECLs properly.
11705
11706 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11707
11708         PR rtl-optimization/44695
11709         * config/i386/i386.md (extract_code): Removed.
11710         (<u>divmodqi4): Likewise.
11711         (divmodqi4): New.
11712         (udivmodqi4): Likewise.
11713         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11714         (udivmodhiqi3): Likewise.
11715
11716 2010-07-04  Jan Hubicka  <jh@suse.cz>
11717
11718         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11719
11720 2010-07-04  Jan Hubicka  <jh@suse.cz>
11721
11722         * cgraphunit.c (init_cgraph): Only initialize dump file if it
11723         is not already initialized.
11724
11725 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11726
11727         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11728         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11729         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11730         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11731         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11732         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11733         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11734         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11735         (sync_new_nand_optab): Redefine as macros.
11736         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11737         Delete.
11738         (direct_optab_index): New enum.
11739         (direct_optab_d): New structure.
11740         (direct_optab): New typedef.
11741         (direct_optab_table): Declare.
11742         (direct_optab_handler, set_direct_optab_handler): New functions.
11743         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11744         (sync_lock_release_optab): New macros.
11745         * optabs.c (direct_optab_table): New variable.
11746         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11747         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11748         cmpstr_optab and cmpstrn_optab.
11749         (emit_conditional_move): Likewise for movcc_optab.
11750         (can_conditionally_move_p): Likewise for movcc_gen_code.
11751         (init_insn_codes): Clear direct_optab_table.
11752         (init_optabs): Don't initialize the new "direct optabs" here.
11753         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11754         vcond_gen_code.
11755         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11756         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11757         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11758         (expand_sync_operation): Likewise other sync_*_optabs.
11759         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
11760         to sync_compare_and_swap_optab.
11761         (expand_sync_lock_test_and_set): Use direct_optab_handler for
11762         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11763         to the names of both.
11764         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11765         cmpstr_optab and cmpstrn_optab.
11766         (expand_builtin_lock_release): Likewise sync_lock_release.
11767         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11768         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11769         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11770         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11771         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11772         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11773         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11774         (sync_lock_test_and_set, sync_lock_release): Delete.
11775         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11776         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11777         * genopinit.c (optabs): Use set_direct_optab_handler for the new
11778         macro optabs.
11779         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11780         the "optab" local variable.  Use direct_optab_handler for optab and
11781         sync_compare_and_swap_optab.
11782         * reload1.c (reload_in_optab, reload_out_optab): Delete.
11783         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11784         reload_in_optab and reload_out_optab.
11785         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11786         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11787         * config/pa/pa.c (pa_secondary_reload): Likewise.
11788         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11789         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11790         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11791         (VMSupportsCS8_builtin): Likewise.
11792
11793 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11794
11795         * optabs.h (optab_handlers): Change type of insn_code to int.
11796         (optab_handler, set_optab_handler, convert_optab_handler)
11797         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11798         CODE_FOR_nothing".
11799         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11800         (init_insn_codes): Zero both the above arrays.
11801         (init_optabs): Never call init_insn_codes first time around.
11802
11803 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11804
11805         * optabs.h (optab_handler, convert_optab_handler): Turn into
11806         inline functions that return an insn code.
11807         (set_optab_handler, set_convert_optab_handler): New functions.
11808         * builtins.c: Replace optab_handler(X)->insn_code with
11809         optab_handler or set_optab_handler thoughout.  Likewise
11810         convert_optab_handler(X)->insn_code with convert_optab_handler
11811         and set_convert_optab_handler.
11812         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11813         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11814         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11815         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11816         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11817         config/spu/spu.c: Likewise.
11818
11819 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11820
11821         PR target/44531
11822         * config.gcc (sh*-*-*): Use regular expressions instead of
11823         the 'i' modifier for sed substitutions.
11824
11825 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11826
11827         * gimple.c (gimple_body): Comments added.
11828
11829 2010-07-04  Richard Guenther  <rguenther@suse.de>
11830
11831         PR middle-end/44809
11832         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11833         of an INDIRECT_REF.
11834
11835 2010-07-04  Richard Guenther  <rguenther@suse.de>
11836
11837         PR tree-optimization/44479
11838         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11839         extra SSA name copy statements which preserves points-to
11840         information.
11841         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11842         Copy points-to information for all pointers.  Properly handle
11843         MEM_REFs.
11844         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11845         copy statements.
11846         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11847         dependency.
11848
11849 2010-07-04  Richard Guenther  <rguenther@suse.de>
11850
11851         PR middle-end/44785
11852         * tree-inline.c (initialize_inlined_parameters): Do not
11853         re-use pointer-map slot over remap_type call.
11854
11855 2010-07-04  Richard Guenther  <rguenther@suse.de>
11856
11857         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11858
11859 2010-07-04  Richard Guenther  <rguenther@suse.de>
11860
11861         PR tree-optimization/44656
11862         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11863         again after value-replacing in the defintions lhs.
11864
11865 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11866             Revital Eres  <eres@il.ibm.com>
11867
11868         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11869         Document new arguments.
11870         * doc/tm.texi: Regenerate.
11871         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11872         Handle unaligned store.
11873         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11874         * target.def (builtin_vectorization_cost): Add new arguments.
11875         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11876         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11877         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11878         (vect_vfa_segment_size): Fix indentation.
11879         * tree-vectorizer.h (struct _vect_peel_info): New.
11880         (struct _vect_peel_extended_info): New.
11881         (struct _loop_vec_info): Add new field for peeling hash table and a
11882         macro for its access.
11883         (VECT_MAX_COST): Define.
11884         (vect_get_load_cost): Declare.
11885         (vect_get_store_cost, vect_get_known_peeling_cost,
11886         vect_get_single_scalar_iteraion_cost): Likewise.
11887         (vect_supportable_dr_alignment): Add new argument.
11888         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11889         field.
11890         (destroy_loop_vec_info): Free peeling hash table.
11891         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11892         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11893         vect_analyze_slp. Fix indentation.
11894         (vect_get_single_scalar_iteraion_cost): New function.
11895         (vect_get_known_peeling_cost): Likewise.
11896         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11897         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11898         statement. Move outside cost calculation inside unknown peeling case.
11899         Call vect_get_known_peeling_cost for known amount of peeling.
11900         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11901         reference to the print message of forced alignment.
11902         (vect_verify_datarefs_alignment): Update call to
11903         vect_supportable_dr_alignment.
11904         (vect_get_data_access_cost): New function.
11905         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11906         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11907         vect_peeling_hash_choose_best_peeling): Likewise.
11908         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11909         to store all the accesses in the loop and find best possible access to
11910         align using peeling for known alignment case. For unknown alignment
11911         check if stores are preferred or if peeling is worthy.
11912         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11913         (vect_supportable_dr_alignment): Add new argument and check aligned
11914         accesses according to it.
11915         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11916         (cost_for_stmt): Call vect_get_stmt_cost.
11917         (vect_model_simple_cost): Likewise.
11918         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11919         vect_get_store_cost to calculate the cost of the statement.
11920         (vect_get_store_cost): New function.
11921         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11922         vect_get_load_cost to calculate the cost of the statement.
11923         (vect_get_load_cost): New function.
11924         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11925         (vectorizable_load): Likewise.
11926         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11927         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11928         arguments. Handle unaligned store.
11929         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11930         (rs6000_builtin_support_vector_misalignment): Return true for word and
11931         double word alignments for VSX.
11932         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11933         vect_supportable_dr_alignment and builtin_vectorization_cost.
11934
11935 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11936
11937         PR target/44597
11938         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11939         (prefetch_nocc_operand): Likewise.
11940         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11941         (prefetch_20): New insn.
11942         (prefetch_cc): Remove.
11943         (prefetch_nocc): Likewise.
11944
11945 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11946
11947         * expr.c (vector_mode_valid_p): Move to c-common.c.
11948         * expr.h (vector_mode_valid_p): Do not declare here.
11949         * system.h: Poison GCC_EXPR_H in front-ends.
11950         * Makefile.in: Update dependencies.
11951
11952 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11953
11954         PR target/44705
11955         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11956
11957 2010-07-03  Jan Hubicka  <jh@suse.cz>
11958
11959         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11960         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11961         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11962         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11963         Likewise.
11964
11965         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11966         Update timevars.V
11967         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11968         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11969         TV_IPA_LTO_DECL_OUT): New.
11970         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11971
11972 2010-07-03  Jan Hubicka  <jh@suse.cz>
11973
11974         * ipa-inline.c (update_edge_key): Break out from ...
11975         update_callers_keys): ... here;
11976         (update_callee_keys): Update only the edges from caller to callee.
11977         (update_all_calle_keys): Do what update_calle_keys did.
11978         (decide_inlining_of_small_functions): Avoid recomputing of all
11979         callees when badness increase.
11980
11981 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11982
11983         * config/arm/arm.c (arm_attr_length_move_neon): New.
11984         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11985         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11986         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11987         to compute length attribute.
11988
11989 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11990
11991         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11992         as predicate for operand 1 and remove its constraint.
11993         * config/arm/predicates.md (vfp_register_operand): New.
11994         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11995         (*push_fp_multi): Likewise.
11996
11997 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11998
11999         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
12000
12001 2010-07-03  Jan Hubicka  <jh@suse.cz>
12002
12003         * config/i386/i386.c (override_options): Revert accidental commit.
12004
12005 2010-07-02  Le-Chun Wu  <lcwu@google.com>
12006
12007         PR c++/44128
12008         * doc/invoke.texi: Update documentation of -Wshadow.
12009
12010 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
12011             Julian Brown  <julian@codesourcery.com>
12012             Sandra Loosemore  <sandra@codesourcery.com>
12013
12014         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
12015         comparisons.  Adjust to take both operands.
12016         (arm_select_cc_mode): Handle DImode comparisons.
12017         (arm_gen_compare_reg): Generate a scratch register for DImode
12018         comparisons which require one.  Use xor for Thumb equality checks.
12019         (arm_const_double_by_immediates): New.
12020         (arm_print_operand): Allow 'Q' and 'R' for constants.
12021         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
12022         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
12023         arm_canonicalize_comparison.
12024         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
12025         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
12026         prototype.
12027         (arm_const_double_by_immediates): Declare.
12028         * config/arm/constraints.md (Di): New constraint.
12029         * config/arm/predicates.md (arm_immediate_di_operand)
12030         (arm_di_operand, cmpdi_operand): New.
12031         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
12032         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
12033         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
12034         (cstoredi4): Handle non-Cirrus also.
12035
12036 2010-07-02  Julian Brown  <julian@codesourcery.com>
12037             Sandra Loosemore  <sandra@codesourcery.com>
12038
12039         PR target/43703
12040         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
12041         (smax<mode>3): Disable for NEON float modes when
12042         flag_unsafe_math_optimizations is false.
12043         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
12044         (*mul<mode>3_neon)
12045         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
12046         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
12047         for NEON float modes when flag_unsafe_math_optimizations is false.
12048         (quad_halves_<code>v4sf): Only enable if
12049         flag_unsafe_math_optimizations is true.
12050         * doc/invoke.texi (ARM Options): Add note about floating point
12051         vectorization requiring -funsafe-math-optimizations.
12052
12053 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12054             Julian Brown  <julian@codesourcery.com>
12055
12056         * config/arm/neon.md (UNSPEC_VABA): Delete.
12057         (UNSPEC_VABAL): Delete.
12058         (UNSPEC_VABS): Delete.
12059         (UNSPEC_VMUL_N): Delete.
12060         (adddi3_neon): New.
12061         (subdi3_neon): New.
12062         (mul<mode>3add<mode>_neon): Make the pattern named.
12063         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
12064         (neon_vadd<mode>): Replace with define_expand, and move the remaining
12065         unspec parts...
12066         (neon_vadd<mode>_unspec): ...to this.
12067         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
12068         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
12069         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
12070         (neon_vaba<mode>): Rewrite in terms of vabd.
12071         (neon_vabal<mode>): Rewrite in terms of vabdl.
12072         (neon_vabs<mode>): Rewrite without unspec.
12073         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
12074         (*arm_subdi3): Likewise.
12075         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
12076         No_op attribute to disable assembly output checks.
12077         * config/arm/arm_neon.h: Regenerated.
12078         * doc/arm-neon-intrinsics.texi: Regenerated.
12079
12080 2010-07-02  Jan Hubicka  <jh@suse.cz>
12081
12082         * ipa-split.c (split_function): For aggregate values, set the return
12083         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
12084         *<retval> = fncall.part ().
12085         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
12086
12087 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12088
12089         * config/arm/neon.md (UNSPEC_VAND): Delete.
12090         (UNSPEC_VBIC): Delete.
12091         (UNSPEC_VCLZ): Delete.
12092         (UNSPEC_VCNT): Delete.
12093         (UNSPEC_VEOR): Delete.
12094         (UNSPEC_VORN): Delete.
12095         (UNSPEC_VORR): Delete.
12096         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
12097         core registers too.
12098         (anddi3_neon): Likewise.
12099         (orndi3_neon): Likewise.
12100         (bicdi3_neon): Likewise.
12101         (xordi3_neon): Likewise.
12102         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
12103         rid of unspec and handle unused operand.
12104         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
12105         * config/arm/predicates.md (imm_for_neon_logic_operand):
12106         Require TARGET_NEON.
12107         (imm_for_neon_inv_logic_operand): Likewise.
12108         * config/arm/arm.md (define_split for logical_binary_operator):
12109         Disable for NEON registers.
12110         (anddi3): Add new define_expand, and rename the insn.  Disable
12111         this insn for NEON, where anddi3_neon now applies.
12112         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
12113         (iordi3): As for anddi3.
12114         (xordi3): Likewise.
12115         * config/arm/neon.ml (Vand): Split DImode variants and mark them
12116         as No_op to disable testing for exact instruction match.
12117         (Vorr): Likewise.
12118         (Veor): Likewise.
12119         (Vbic): Likewise.
12120         (Vorn): Likewise.
12121         * config/arm/arm_neon.h: Regenerated.
12122         * doc/arm-neon-intrinsics.texi: Regenerated.
12123
12124 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12125
12126         * expr.h (emit_stack_probe): Declare.
12127         * explow.c (emit_stack_probe): Make global.
12128         (anti_adjust_stack_and_probe): Fix comments.
12129         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12130         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12131         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12132         * config/sparc/sparc.c: Include except.h.
12133         (sparc_emit_probe_stack_range): New function.
12134         (output_probe_stack_range): Likewise.
12135         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
12136         built-in stack checking is enabled.
12137         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
12138         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12139         (probe_stack_range): New insn.
12140
12141 2010-07-02  Richard Guenther  <rguenther@suse.de>
12142
12143         PR target/43958
12144         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
12145         for argument alignment.
12146
12147 2010-07-02  Jan Hubicka  <jh@suse.cz>
12148
12149         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
12150         walk backwards from entry_bb to check only those basic block of header
12151         that might lead to execution of split part.
12152         (consider_split) ... here.
12153         (find_return_bb): Allow assignment in return BB.
12154         (find_retval): New.
12155         (split_function): Fix name of cloned function; take care of updating
12156         return value in return_bb containing move.
12157
12158 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
12159
12160         PR target/44771
12161         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
12162         used variable insn.
12163
12164 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12165
12166         * implicit-zee.c (combine_reaching_defs): Fix long lines.
12167         (is_set_with_extension_DI): Delete.
12168         (struct zero_extend_info): New structure.
12169         (add_removable_zero_extend): New function.
12170         (find_removable_zero_extends): Use note_stores to find SETs.
12171         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
12172
12173 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
12174
12175         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
12176         is_miss_rate_acceptable. Pull total_positions computation
12177         out of the loops.  Early return if miss_positions exceeds
12178         the acceptable threshold.
12179         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
12180         is_miss_rate_acceptable after renaming of compute_miss_rate.
12181
12182 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
12183
12184         PR middle-end/44576
12185         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
12186         of 1000) for miss rate if the address diference is greater than or
12187         equal to the cache line size (the two reference will never hit the
12188         same cache line).
12189
12190 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
12191
12192         PR target/42835
12193         * config/arm/arm-modes.def (CC_NOTB): New mode.
12194         * config/arm/arm.c (get_arm_condition_code): Handle it.
12195         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
12196         * config/arm/arm.md (subsi3_compare0_c): New pattern.
12197         (compare_scc): Now a define_and_split.  Add a number of extra
12198         splitters before it.
12199
12200         PR target/42172
12201         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
12202         and ZERO_EXTEND.
12203         (arm_rtx_costs_1): Likewise.
12204         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
12205         * config/arm/arm.md (is_arch6): New attribute.
12206         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
12207         extendqisi2): Tighten the code somewhat, avoiding invalid
12208         RTL to occur in the expander patterns.
12209         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
12210         (thumb1_zero_extendhisi2_v6): Delete.
12211         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
12212         (thumb1_extendhisi2_v6): Delete.
12213         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
12214         (thumb1_extendqisi2_v6): Delete.
12215         (zero_extendhisi2 for register input splitter): New.
12216         (zero_extendqisi2 for register input splitter): New.
12217         (thumb1_extendhisi2 for register input splitter): New.
12218         (extendhisi2 for register input splitter): New.
12219         (extendqisi2 for register input splitter): New.
12220         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
12221         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
12222         and add support for a register alternative requiring a split.
12223         (thumb1_zero_extendqisi2): Likewise.
12224         (arm_zero_extendqisi2): Likewise.
12225         (arm_extendhisi2): Likewise.
12226         (arm_extendqisi2): Likewise.
12227
12228 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12229
12230         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
12231         instead of an unspec.
12232         (neon_expand_vector_init): Likewise.
12233         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
12234         (UNSPEC_VDUP_LANE): Delete.
12235         (UNSPEC VDUP_N): Delete.
12236         (UNSPEC_VGET_HIGH): Delete.
12237         (UNSPEC_VGET_LANE): Delete.
12238         (UNSPEC_VGET_LOW): Delete.
12239         (UNSPEC_VMVN): Delete.
12240         (UNSPEC_VSET_LANE): Delete.
12241         (V_double_vector_mode): New.
12242         (vec_set<mode>_internal): Make code emitted match that for the
12243         corresponding intrinsics.
12244         (vec_setv2di_internal): Likewise.
12245         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
12246         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
12247         (neon_vset_lane<mode>): Combine double and quad patterns and
12248         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
12249         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
12250         (neon_vdup_n<mode>): Rewrite RTL without unspec.
12251         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
12252         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
12253         with neon_vdup_lanev2di, adjusting the pattern from the latter
12254         to be predicable for consistency.
12255         (neon_vdup_lane<mode>_internal): New.
12256         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
12257         to avoid using an unspec.
12258         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
12259         (neon_vdup_lanev2di): Turn into a define_expand.
12260         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
12261         (neon_vget_high<mode>): Replace with....
12262         (neon_vget_highv16qi): New pattern using canonical RTL.
12263         (neon_vget_highv8hi): Likewise.
12264         (neon_vget_highv4si): Likewise.
12265         (neon_vget_highv4sf): Likewise.
12266         (neon_vget_highv2di): Likewise.
12267         (neon_vget_low<mode>): Replace with....
12268         (neon_vget_lowv16qi): New pattern using canonical RTL.
12269         (neon_vget_lowv8hi): Likewise.
12270         (neon_vget_lowv4si): Likewise.
12271         (neon_vget_lowv4sf): Likewise.
12272         (neon_vget_lowv2di): Likewise.
12273
12274         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
12275         test for this emitting vmov.
12276         (Vset_lane): Likewise.
12277         (Vdup_n): Likewise.
12278         (Vmov_n): Likewise.
12279
12280         * doc/arm-neon-intrinsics.texi: Regenerated.
12281
12282 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12283
12284         * config/arm/neon.md (vec_extractv2di): Correct error in register
12285         numbering to reconcile with neon_vget_lanev2di.
12286
12287 2010-07-02  Richard Guenther  <rguenther@suse.de>
12288
12289         * tree-ssa-structalias.c (pt_solution_set_var): New function.
12290         * tree-ssa-alias.h (pt_solution_set_var): Declare.
12291         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
12292         points-to information.
12293
12294 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
12295
12296         * config/s390/s390.c (override_options): Adopt prefetching
12297         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
12298
12299 2010-07-02  Jan Hubicka  <jh@suse.cz>
12300
12301         * df-problems.c (df_kill_notes): Do not collect dead  notes.
12302         (df_set_note): Just call add_reg_note.
12303         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
12304         df_create_unused_note): Do not deal with lists of old notes.
12305         (df_note_bb_compute): Likewise.
12306
12307 2010-07-02  Richard Guenther  <rguenther@suse.de>
12308
12309         * tree-ssa-structalias.c (find_func_aliases): Handle
12310         pointer alignment via BIT_AND_EXPR.
12311         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
12312
12313 2010-07-02  Richard Guenther  <rguenther@suse.de>
12314
12315         * tree-data-ref.c (initialize_data_dependence_relation): Handle
12316         mismatching number of dimensions properly.
12317
12318 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12319
12320         PR target/44707
12321         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
12322         (lo_sum (high ...) ...) patterns generated by earlier passes.
12323
12324 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12325
12326         * doc/install.texi (Prerequisites): Document Perl requirement on
12327         Solaris 2.
12328         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
12329
12330 2010-07-02  Richard Guenther  <rguenther@suse.de>
12331
12332         PR middle-end/44777
12333         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
12334
12335 2010-07-02  Jan Hubicka  <jh@suse.cz>
12336
12337         PR middle-end/44706
12338         * predict.c (predict_paths_for_bb): Handle case when control dependence
12339         BB has only abnormal edges.
12340
12341 2010-07-02  Richard Guenther  <rguenther@suse.de>
12342
12343         PR tree-optimization/44748
12344         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
12345         the embedded conversion in MEM_REFs.
12346
12347 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
12348
12349         * reload.c: Include toplev.h.
12350         * recog.c:  Likewise.
12351         * Makefile.in: Adjust dependencies.
12352
12353 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
12354
12355         PR debug/44694
12356         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
12357         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
12358
12359 2010-07-01  Richard Guenther  <rguenther@suse.de>
12360
12361         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
12362         types for offsets.
12363
12364 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12365
12366         PR target/44732
12367         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
12368         Fix argument types.
12369
12370 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
12371
12372         PR target/44727
12373         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12374         Make sure operand 0 dies.
12375
12376 2010-07-01  Richard Guenther  <rguenther@suse.de>
12377
12378         PR middle-end/42834
12379         PR middle-end/44468
12380         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
12381         * doc/generic.texi (References to storage): Document MEM_REF.
12382         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
12383         (print_call_name): Likewise.
12384         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
12385         (build_simple_mem_ref_loc): New function.
12386         (mem_ref_offset): Likewise.
12387         * tree.h (build_simple_mem_ref_loc): Declare.
12388         (build_simple_mem_ref): Define.
12389         (mem_ref_offset): Declare.
12390         * fold-const.c: Include tree-flow.h.
12391         (operand_equal_p): Handle MEM_REF.
12392         (build_fold_addr_expr_with_type_loc): Likewise.
12393         (fold_comparison): Likewise.
12394         (fold_unary_loc): Fold
12395         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
12396         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
12397         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
12398         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
12399         (ptr_deref_may_alias_ref_p_1): Likewise.
12400         (ao_ref_base_alias_set): Properly differentiate base object for
12401         offset and TBAA.
12402         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
12403         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
12404         (indirect_refs_may_alias_p): Likewise.
12405         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
12406         chasing code.
12407         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
12408         (call_may_clobber_ref_p_1): Likewise.
12409         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
12410         * expr.c (expand_assignment): Handle MEM_REF.
12411         (store_expr): Handle MEM_REFs from STRING_CSTs.
12412         (store_field): If expanding a MEM_REF of a non-addressable
12413         decl use bitfield operations.
12414         (get_inner_reference): Handle MEM_REF.
12415         (expand_expr_addr_expr_1): Likewise.
12416         (expand_expr_real_1): Likewise.
12417         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
12418         * alias.c (ao_ref_from_mem): Handle MEM_REF.
12419         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
12420         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
12421         (dr_analyze_indices): Likewise.
12422         (dr_analyze_alias): Likewise.
12423         (object_address_invariant_in_loop_p): Likewise.
12424         * gimplify.c (mark_addressable): Handle MEM_REF.
12425         (gimplify_cond_expr): Build MEM_REFs.
12426         (gimplify_modify_expr_to_memcpy): Likewise.
12427         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
12428         (gimple_fold_indirect_ref): Adjust.
12429         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
12430         * tree.def (MEM_REF): New tree code.
12431         * tree-dfa.c: Include toplev.h.
12432         (get_ref_base_and_extent): Handle MEM_REF.
12433         (get_addr_base_and_unit_offset): New function.
12434         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
12435         * gimple-fold.c (may_propagate_address_into_dereference): Handle
12436         MEM_REF.
12437         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
12438         accesses if the array has just one dimension.  Remove always true
12439         parameter.  Do not require type compatibility here.
12440         (maybe_fold_offset_to_component_ref): Remove.
12441         (maybe_fold_stmt_indirect): Remove.
12442         (maybe_fold_reference): Remove INDIRECT_REF handling.
12443         Fold back to non-MEM_REF.
12444         (maybe_fold_offset_to_address): Simplify.  Deal with type
12445         mismatches here.
12446         (maybe_fold_reference): Likewise.
12447         (maybe_fold_stmt_addition): Likewise.  Also handle
12448         &ARRAY + I in addition to &ARRAY[0] + I.
12449         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12450         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12451         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12452         * tree-ssa.c (useless_type_conversion_p): Make most pointer
12453         conversions useless.
12454         (warn_uninitialized_var): Handle MEM_REF.
12455         (maybe_rewrite_mem_ref_base): New function.
12456         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12457         to SSA form.
12458         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12459         INDIRECT_REF handling.
12460         (copy_tree_body_r): Handle MEM_REF.
12461         * gimple.c (is_gimple_addressable): Adjust.
12462         (is_gimple_address): Likewise.
12463         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12464         invariant base are invariant.
12465         (is_gimple_min_lval): Adjust.
12466         (is_gimple_mem_ref_addr): New function.
12467         (get_base_address): Handle MEM_REF.
12468         (count_ptr_derefs): Likewise.
12469         (get_base_loadstore): Likewise.
12470         * gimple.h (is_gimple_mem_ref_addr): Declare.
12471         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12472         * tree-cfg.c (verify_address): New function, split out from ...
12473         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
12474         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
12475         INDIRECT_REFs.
12476         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
12477         INDIRECT_REF.  Allow conversions.
12478         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12479         a register does not change its size.
12480         (verify_types_in_gimple_reference): Verify MEM_REF.
12481         (verify_gimple_assign_single): Disallow INDIRECT_REF.
12482         Handle MEM_REF.
12483         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12484         New.
12485         (mark_address_taken): Handle MEM_REF.
12486         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12487         (get_asm_expr_operands): Pass opf_not_non_addressable.
12488         (get_expr_operands): Handle opf_[not_]non_addressable.
12489         Handle MEM_REF.  Remove INDIRECT_REF handling.
12490         * tree-vrp.c (check_array_ref): Handle MEM_REF.
12491         (search_for_addr_array): Likewise.
12492         (check_array_bounds): Likewise.
12493         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12494         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12495         (ref_always_accessed_p): Likewise.
12496         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
12497         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12498         Handle MEM_REF.
12499         * cgraphbuild.c (mark_load): Properly check for NULL result
12500         from get_base_address.
12501         (mark_store): Likewise.
12502         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12503         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12504         handling for MEM_REF.
12505         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12506         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12507         * builtins.c (stabilize_va_list_loc): Use the function ABI
12508         valist type if we couldn't canonicalize the argument type.
12509         Always dereference with the canonical va-list type.
12510         (maybe_emit_free_warning): Handle MEM_REF.
12511         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12512         memmove to memcpy.
12513         * builtins.c (fold_builtin_memory_op): Use ref-all types
12514         for all memcpy foldings.
12515         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12516         (build_outer_var_ref): Likewise.
12517         (scan_omp_1_op): Likewise.
12518         (lower_rec_input_clauses): Likewise.
12519         (lower_lastprivate_clauses): Likewise.
12520         (lower_reduction_clauses): Likewise.
12521         (lower_copyprivate_clauses): Likewise.
12522         (expand_omp_atomic_pipeline): Likewise.
12523         (expand_omp_atomic_mutex): Likewise.
12524         (create_task_copyfn): Likewise.
12525         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12526         Remove old union trick.  Initialize constant offsets.
12527         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
12528         INDIRECT_REF.  Init base_alias_set properly.
12529         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12530         (vn_reference_fold_indirect): Adjust for MEM_REFs.
12531         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
12532         for ARRAY_REFs.
12533         (may_insert): Remove.
12534         (visit_reference_op_load): Do not test may_insert.
12535         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12536         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12537         a field to store the constant offset this op applies.
12538         (run_scc_vn): Adjust prototype.
12539         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12540         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12541         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
12542         bother about volatile qualifiers on pointers.
12543         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12544         * tree-ssa-loop-ivopts.c
12545         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12546         (strip_offset_1): Likewise.
12547         (find_interesting_uses_address): Replace INDIRECT_REF handling with
12548         MEM_REF handling.
12549         (get_computation_cost_at): Likewise.
12550         * ipa-pure-const.c (check_op): Handle MEM_REF.
12551         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12552         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12553         and constants.
12554         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12555         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12556         (eliminate_local_variables_1): Likewise.
12557         (create_call_for_reduction_1): Likewise.
12558         (create_loads_for_reductions): Likewise.
12559         (create_loads_and_stores_for_name): Likewise.
12560         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12561         (ssa_accessed_in_tree): Handle MEM_REF.
12562         (ssa_accessed_in_assign_rhs): Likewise.
12563         (update_type_size): Likewise.
12564         (analyze_accesses_for_call_stmt): Likewise.
12565         (analyze_accesses_for_assign_stmt): Likewise.
12566         (transform_access_sites): Likewise.
12567         (transform_allocation_sites): Likewise.
12568         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12569         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12570         not handle INDIRECT_REF.
12571         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12572         (cond_store_replacement): Likewise.
12573         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12574         MEM_REF, no not handle INDIRECT_REFs.
12575         (insert_into_preds_of_block): Properly initialize avail.
12576         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
12577         for ARRAY_REFs.  Properly handle reference lookups that
12578         require a bit re-interpretation.
12579         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
12580         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12581         (build_ref_for_offset_1): Remove.
12582         (build_ref_for_offset): Build MEM_REFs.
12583         (gate_intra_sra): Disable for now.
12584         (sra_ipa_modify_expr): Handle MEM_REF.
12585         (ipa_early_sra_gate): Disable for now.
12586         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12587         MEM_REF handling.
12588         (disqualify_base_of_expr): Likewise.
12589         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12590         MEM_REF handling.
12591         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12592         Use mem_ref_offset.  Remove bogus folding.
12593         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12594         (make_fancy_name_1): Add support for MEM_REF.
12595         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12596         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12597         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12598         (compute_complex_ancestor_jump_func): Likewise.
12599         (ipa_analyze_virtual_call_uses): Likewise.
12600         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12601         INDIRECT_REF folding with more generalized MEM_REF folding.
12602         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12603         (forward_propagate_addr_into_variable_array_index): Also handle
12604         &ARRAY + I in addition to &ARRAY[0] + I.
12605         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12606         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12607         creates assignments with overlap.
12608         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12609         (get_frame_field): Likewise.
12610         (get_nonlocal_debug_decl): Likewise.
12611         (convert_nonlocal_reference_op): Likewise.
12612         (struct nesting_info): Add mem_refs pointer-set.
12613         (create_nesting_tree): Allocate it.
12614         (convert_local_reference_op): Insert to be folded mem-refs.
12615         (fold_mem_refs): New function.
12616         (finalize_nesting_tree_1): Perform defered folding of mem-refs
12617         (free_nesting_tree): Free the pointer-set.
12618         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12619         (vectorizable_load): Likewise.
12620         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12621         (propagate_with_phi): Likewise.
12622         * tree-object-size.c (addr_object_size): Handle MEM_REFs
12623         instead of INDIRECT_REFs.
12624         (compute_object_offset): Handle MEM_REF.
12625         (plus_stmt_object_size): Handle MEM_REF.
12626         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12627         for &MEM_REF.
12628         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12629         (symbol_marked_for_renaming): Likewise.
12630         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12631         (fold-const.o): Add $(TREE_FLOW_H).
12632         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12633         (find_func_clobbers): Likewise.
12634         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12635         (decompose_access): Likewise.
12636         (replace_field_acc): Likewise.
12637         (replace_field_access_stmt): Likewise.
12638         (insert_new_var_in_stmt): Likewise.
12639         (get_stmt_accesses): Likewise.
12640         (reorg_structs_drive): Disable.
12641         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12642         (ix86_canonical_va_list_type): Likewise.
12643
12644 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12645
12646         PR other/44566
12647         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12648         * target.def (struct gcc_target): Replace enum reg_class with
12649         reg_class_t in hook argument / return types.
12650         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12651         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12652         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12653         * targhooks.h (default_branch_target_register_class): Likewise.
12654         (default_ira_cover_classes, default_secondary_reload): Likewise.
12655         (default_memory_move_cost, default_register_move_cost): Likewise.
12656         * targhooks.c (default_branch_target_register_class): Likewise.
12657         (default_ira_cover_classes, default_secondary_reload): Likewise.
12658         (default_memory_move_cost, default_register_move_cost): Likewise.
12659         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12660         * bt-load.c (branch_target_load_optimize): Likewise.
12661         * ira.c (setup_cover_and_important_classes): Likewise.
12662         * ira-costs.c (copy_cost): Likewise.
12663         * reload1.c (emit_input_reload_insns): Likewise.
12664         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12665         * config/frv/frv.c (frv_secondary_reload): Likewise.
12666         * config/s390/s390.c (s390_secondary_reload): Likewise.
12667         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12668         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12669         (ix86_register_move_cost): Likewise.
12670         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12671         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12672         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12673         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12674         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12675         (rs6000_ira_cover_classes): Likewise.
12676         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12677         * config/picochip/picochip-protos.h (picochip_secondary_reload):
12678         Likewise.
12679         * config/pa/pa.c (pa_secondary_reload): Likewise.
12680         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12681         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12682         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12683         * doc/tm.texi: Regenerate.
12684
12685 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
12686
12687         PR bootstrrap/44726
12688         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12689         use.
12690         (build_alias_set_optimal_p): Likewise.
12691         (build_base_obj_set_for_drs): Likewise.
12692
12693 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12694
12695         * target.def: Remove comment about licensing problems of function
12696         declarations.
12697
12698         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
12699         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12700         * doc/tm.texi: Regenerate.
12701
12702         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
12703         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12704
12705         * target.def (enum_va_list_p): Use DEFHOOK.
12706         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12707         Rename ptype to ptree.
12708         * doc/tm.texi: Regenerate.
12709
12710         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
12711         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12712         * doc/tm.texi: Regenerate.
12713
12714         * target.def (memory_move_cost): Use DEFHOOK.
12715         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12716         Rename regclass AKA class to rclass.
12717         * doc/tm.texi: Regenerate.
12718
12719         * target.def (pragma_parse): Use DEFHOOK.
12720         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12721         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12722         * doc/tm.texi: Regenerate.
12723
12724         * target.def (pass_by_reference): Use DEFHOOK.
12725         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12726         * doc/tm.texi: Regenerate.
12727
12728         * target.def (resolve_overloaded_builtin): Rename params to arglist.
12729         Use DEFHOOK.
12730         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12731         * doc/tm.texi: Regenerate.
12732
12733         * target.def (return_pops_args): Use DEFHOOK.
12734         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12735         Rename stack-size to size.
12736         * doc/tm.texi: Regenerate.
12737
12738         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
12739         last-sched_cycle to last_clock, cur_cycle to clock.
12740         * doc/tm.texi.in: Use @hook.
12741         * doc/tm.texi: Regenerate.
12742
12743         * target.def (print_operand, print_operand_address): Update comment.
12744         (print_operand_punct_valid_p): Likewise.
12745
12746 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12747
12748         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12749         to rtl.h.
12750         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12751         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12752         * rtl-error.h: New.
12753         * regrename.c: Do not include toplev.h. Include rtl-error.h.
12754         * rtl-error.c: Likewise.
12755         * reload.c: Likewise.
12756         * recog.c:  Likewise.
12757         * sel-sched.c: Likewise.
12758         * function.c: Likewise.
12759         * reg-stack.c: Likewise.
12760         * cfgrtl.c: Likewise.
12761         * reload1.c: Likewise.
12762         * final.c: Include rtl-error.
12763         * Makefile.in: Adjust dependencies.
12764
12765 2010-06-30  Jan Hubicka  <jh@suse.cz>
12766
12767         PR middle-end/PR44706
12768         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12769         to return the value.
12770
12771 2010-06-30  Michael Matz  <matz@suse.de>
12772
12773         PR bootstrap/44699
12774         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12775         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12776         a gimple reg, attach the original VDEF to the last store in the
12777         sequence.
12778
12779 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
12780
12781         PR other/44034
12782         * config/darwin.c (darwin_override_options): Use renamed
12783         targetm.asm_out.emit_unwind_label.
12784
12785 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12786
12787         PR tree-optimization/39799
12788         * tree-inline.c (remap_ssa_name): Initialize variable only if
12789         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12790
12791 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
12792
12793         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12794
12795 2010-06-30  Richard Guenther  <rguenther@suse.de>
12796
12797         PR target/44722
12798         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12799         against oscillation with reverse peephole2.
12800
12801 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12802
12803         PR target/44721
12804         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12805         Fix last commit.
12806
12807 2010-06-30  Nick Clifton  <nickc@redhat.com>
12808
12809         * config/rx/rx-modes.def: New file.
12810         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12811         (CC_REGNUM): Define.
12812         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12813         register.
12814         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12815         (SELECT_CC_MODE): Define.
12816         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
12817         (reg:CC CC_REG) instead of (cc0).
12818         (attr "cc"): Delete.
12819         (cbranchsi4): Do not split compare and branch here. Instead move
12820         it to...
12821         (cbranchsi4_<code>): ... here.  New patterns.
12822         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12823         to emit the compare instruction.
12824         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12825         cc_status flags.
12826         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12827         FIRST_PSEUDO_REGNUM.
12828         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12829         (rx_notice_update_cc): Delete.
12830         (rx_cc_modes_compatible): New function.
12831         (flags_needed_for_conditional): New function.
12832         (flags_from_mode): New function.
12833         (rx_compare_redundant): New function - scans backwards through
12834         insn list to find out if condition flags are already set correctly.
12835         (TARGET_CC_MODES_COMPATIBLE): Define.
12836         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12837
12838         * config/rx/rx.h (BRANCH_COST): Define.
12839         (REGISTER_MOVE_COST): Define.
12840         * config/rx/predicates (rx_source_operand): Allow all constant types.
12841         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12842         (tstsi4): New pattern.
12843         * config/rx/rx.c (rx_memory_move_cost): Define.
12844         (TARGET_MEMORY_MOVE_COST): Define.
12845
12846 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12847
12848         * tree.h (block_may_fallthru): Declare here.
12849         * tree-flow.h (block_may_fallthru): Do not declare here.
12850         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12851         bitmap.h
12852         * Makefile.in (c-typeck.o): Update dependencies.
12853
12854 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12855
12856         PR debug/44694
12857         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12858         * cselib.c (cfa_base_preserved_regno): New static variable.
12859         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12860         of REGNO (cfa_base_preserved_val->locs->loc).
12861         (cselib_preserve_cfa_base_value): Add regno argument, set
12862         cfa_base_preserved_regno to it.
12863         (cselib_invalidate_regno): Allow removal of registers other than
12864         cfa_base_preserved_regno from cfa_base_preserved_val.
12865         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12866         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12867         of MEM addresses, if not on LHS.
12868         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12869         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12870
12871 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12872
12873         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12874         static variables.
12875         (peep2_buf_position): New static function.
12876         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12877         peephole2_optimize): Use it.
12878         (peep2_attempt, peep2_update_life): New static functions, broken out
12879         of peephole2_optimize.
12880         (peep2_fill_buffer): New static function.
12881         (peephole2_optimize): Change the main loop to try to fill the buffer
12882         with the maximum number of insns before matching them against
12883         peepholes.  Use a forward scan.  Remove special case for targets with
12884         conditional execution.
12885         * genrecog.c (change_state): Delete dead code.
12886         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12887         Rewrite so as not to expect the second insn to have had a peephole
12888         applied yet.
12889
12890 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12891
12892         * genhooks.c (emit_findices): Cast field precision to int.
12893         (emit_documentation): Likewise.
12894
12895 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12896
12897         PR tree-optimization/43801
12898         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12899         if old_decl was DECL_ONE_ONLY.
12900
12901         PR debug/44668
12902         * dwarf2out.c (add_accessibility_attribute): New function.
12903         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12904         instead of adding DW_AT_accessibility manually.
12905         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12906         gen_typedef_die): Use it.
12907
12908 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12909
12910         * vmsdbgout.c (full_name): Just output the file name if not native.
12911
12912 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12913
12914         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12915         (funcnam_table): New static table.
12916         (funcnum_table): New static table.
12917         (write_rtnbeg): Write value saved in funcnum_table.
12918         (write_rtnend): Write value saved in funcnum_table.
12919         (vmsdbgout_begin_function): Save current function info in
12920         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12921         (vmsdbgout_finish): Iterate over funcnum_table.
12922
12923 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12924
12925         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12926         (vmsdbgout_type_decl): Declare
12927         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12928         (FUNC_EPILOGUE_LABEL): New macro
12929         (vmsdbgout_begin_epilogue): New function.
12930         (vmsdbgout_type_decl): New function.
12931
12932 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12933
12934         * vmsdbg.h: Update copyright.
12935
12936 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12937
12938         * vmsdbg.h (DST_K_TBG): New DST constant.
12939         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12940         (write_modbeg): Cast module_language to avoid warning.
12941         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12942
12943 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12944
12945         PR other/44034
12946         * target.def, doc/tm.texi.in, genhooks.c: New files.
12947         * target.h: Instead of defining individual hook members,
12948         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12949         include target.def.
12950         * target-def.h: Instead of defining individual hook initializers,
12951         include target-hooks-def.h.
12952         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12953         targetm.live_on_entry -> targetm.extra_live_on_entry
12954         targetm.sched.md_finish ->targetm.sched.finish
12955         targetm.sched.md_init -> targetm.sched.init
12956         targetm.sched.md_init_global -> targetm.sched.init_global
12957         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12958         targetm.asm_out.except_table_label ->
12959           targetm.asm_out.emit_except_table_label
12960         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12961         targetm.target_help -> targetm.help
12962         targetm.vectorize.builtin_support_vector_misalignment ->
12963           targetm.vectorize.support_vector_misalignment
12964         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12965         targetm.file_start_file_directive ->
12966          targetm.asm_file_start_file_directive
12967         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12968         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12969         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12970         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12971           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12972         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12973           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12974         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12975         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12976         * Makefile.in (TARGET_H): Depend on target.def.
12977         (TARGET_DEF_H): Depend on target-hooks-def.h.
12978         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12979         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12980         * doc/tm.texi: Regenerate.
12981
12982         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12983
12984         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12985         (targetm.sched.init): Likewise.
12986
12987 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12988
12989         PR bootstrap/44713
12990         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12991         (function_arg_advance_32): Const-ify TYPE parameter.
12992         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12993         (ix86_function_arg_advance): Change type of NAMED to bool.
12994         (function_arg_32): Const-ify CUM and TYPE parameters.
12995         (function_arg_64): Likewise.  Change type of NAMED to bool.
12996         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12997         to bool.
12998         (ix86_function_arg): Change type of NAMED to bool.
12999         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
13000         last argument as a bool.
13001
13002 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
13003
13004         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
13005         (OVERRIDE_OPTIONS): Add note of obsolescence.
13006         Replace references with references to TARGET_OPTION_OVERRIDE.
13007         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
13008          the macro).
13009         * targhooks.c (default_target_option_override): New function.
13010         * targhooks.h (default_target_option_override): Declare.
13011         * target.h (struct gcc_target): Add override member to
13012         target_option member.
13013         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
13014         targetm.target_option.override call.
13015         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
13016         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
13017
13018 2010-06-29  Jan Hubicka  <jh@suse.cz>
13019
13020         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
13021
13022 2010-06-29  Jan Hubicka  <jh@suse.cz>
13023
13024         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
13025         unreachable.
13026         (rebuild_frequencies): New function.
13027         * predict.h (rebuild_frequencies): Declare.
13028         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
13029         entry block and edge reaching new_entry.
13030         (tree_function_versioning): When doing partial cloning, rebuild
13031         frequencies when done.
13032         * passes.c (execute_function_todo): Use rebild_frequencies.
13033
13034 2010-06-29  Richard Guenther  <rguenther@suse.de>
13035
13036         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
13037         * tree-flow.h (enum noalias_state): Remove.
13038         (struct var_ann_d): Remove noalias_state member.
13039
13040 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13041
13042         PR target/43902
13043         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
13044         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
13045         (maddhidi4): Likewise.
13046
13047         Revert parts of the change for PR25130.
13048         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13049         MEM_ALIAS_SET.
13050
13051 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13052
13053         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
13054         targetm.calls.function_incoming_arg, and
13055         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
13056         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
13057         * target.h (struct gcc_target): Add function_arg_advance,
13058         function_arg, and function_incoming_arg fields.
13059         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
13060         (TARGET_FUNCTION_INCOMING_ARG): Define.
13061         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
13062         and TARGET_FUNCTION_INCOMING_ARG.
13063         * targhooks.h (default_function_arg_advance): Declare.
13064         (default_function_arg, default_function_incoming_arg): Declare.
13065         * targhooks.c (default_function_arg_advance): New function.
13066         (default_function_arg, default_function_incoming_arg): New function.
13067         * config/i386/i386.c (function_arg_advance): Rename to...
13068         (ix86_function_arg_advance): ...this.  Make static.
13069         (function_arg): Rename to...
13070         (ix86_function_arg): ...this.  Make static.
13071         (TARGET_FUNCTION_ARG_ADVANCE): Define.
13072         (TARGET_FUNCTION_ARG): Define.
13073         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
13074         (FUNCTION_ARG): Delete.
13075         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
13076         (function_arg): Delete prototype.
13077
13078 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13079
13080         * reginfo.c (init_reg_sets_1): Adjust comments.
13081         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
13082         * calls.c (prepare_call_address): Likewise.
13083         (emit_call_1): Use targetm.calls.return_pops_args.
13084         (expand_call): Likewise.
13085         * function.c (assign_parms): Likewise.
13086         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
13087         * target.h (struct gcc_target) [struct calls]: Add
13088         return_pops_args field.
13089         * targhooks.h (default_return_pops_args): Declare.
13090         * targhooks.c (default_return_pops_args): Define.
13091         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
13092         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
13093         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
13094         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
13095         documentation.
13096         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
13097         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
13098         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
13099         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
13100         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
13101         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
13102         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
13103         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
13104         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
13105         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
13106         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
13107         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
13108         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
13109         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
13110         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
13111         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
13112         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
13113         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
13114         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
13115         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
13116         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
13117         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
13118         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
13119         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
13120         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
13121         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
13122         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
13123         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
13124         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
13125         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
13126         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
13127         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
13128         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
13129         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
13130         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
13131         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
13132         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
13133         * config/i386/i386.c (ix86_return_pops_args): Make static.
13134         Constify arguments.
13135         (TARGET_RETURN_POPS_ARGS): Define.
13136         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
13137         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
13138         (TARGET_RETURN_POPS_ARGS): Define.
13139         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
13140         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
13141         (TARGET_RETURN_POPS_ARGS): Define.
13142
13143 2010-06-29  Richard Guenther  <rguenther@suse.de>
13144
13145         PR middle-end/44667
13146         * tree-inline.c (initialize_inlined_parameters): Make sure
13147         to remap the inlined parameter variable substitutions types.
13148
13149 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13150
13151         PR rtl-optimization/44659
13152         * combine.c (make_compound_operation) <SUBREG>: Do not return the
13153         result of force_to_mode if it partially re-expanded the compound.
13154
13155 2010-06-28  Jan Hubicka  <jh@suse.cz>
13156
13157         PR middle-end/44671
13158         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
13159         RESULT_DECL.
13160
13161 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
13162
13163         * double-int.h (force_fit_type_double): Remove declaration.
13164         * double-int.c (force_fit_type_double): Move to tree.c.
13165         * tree.h (force_fit_type_double): Declare.
13166         * tree.h (force_fit_type_double): Moved from double-int.c. Use
13167         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
13168         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
13169         * convert.c (convert_to_pointer): Adjust call to
13170         force_fit_type_double.
13171         * tree-vrp.c (extract_range_from_assert,
13172         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
13173         * fold-const.c: Update comment.
13174         (int_const_binop, fold_convert_const_int_from_int,
13175         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
13176         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
13177         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
13178         round_up_loc): Adjust call to force_fit_type_double.
13179
13180 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13181
13182         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
13183
13184 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13185
13186         * tree-sra.c (convert_callers): New parameter, change fndecls of
13187         recursive calls.
13188         (modify_function): Pass the old decl to convert_callers.
13189
13190 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13191
13192         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
13193         ipa_check_create_node_params and ipa_initialize_node_params with
13194         checking asserts they are not necessary.
13195
13196 2010-06-28  Jan Hubicka  <jh@suse.cz>
13197
13198         PR tree-optimization/44687
13199         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
13200
13201 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13202
13203         PR c++/44535
13204         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
13205         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
13206         instead of BINFO_BASE_BINFO.
13207
13208 2010-06-28  Michael Matz  <matz@suse.de>
13209
13210         PR middle-end/44592
13211         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
13212         proper VDEF chain for intermediate stores in the sequence.
13213
13214 2010-06-28  Jan Hubicka  <jh@suse.cz>
13215
13216         PR tree-optimization/44357
13217         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
13218         uninlinable functions.
13219
13220 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13221
13222         * config.gcc (powerpc*-*-*): Handle titan.
13223         * config/rs6000/rs6000.c (titan_cost): New costs.
13224         (rs6000_override_options): Add "titan" to processor_target_table.
13225         Add Titan to branch alignment logic.
13226         Correctly set rs6000_cost for titan.
13227         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
13228         * config/rs6000/titan.md: New file.
13229         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
13230
13231 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13232
13233         * tree-browser.c (TB_history_stack): Convert to a VEC.
13234         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
13235         (TB_history_prev): Likewise.
13236
13237 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13238
13239         * vec.h (vec_heap_free): Add parentheses around free.
13240
13241 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
13242
13243         * system.h: Poison GCC_EXCEPT_H for front-end files.
13244
13245         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
13246         langhook.
13247         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
13248         Define to NULL by default.
13249         * except.h: Define GCC_EXCEPT_H.
13250         (doing_eh): Remove prototype.
13251         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
13252         (lang_protect_cleanup_actions): Remove.
13253         * except.c (lang_protect_cleanup_actions): Remove.
13254         (doing_eh): Remove.
13255         (gen_eh_region): Don't check doing_eh here.
13256         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
13257         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
13258         instead of lang_protect_cleanup_actions.
13259         * omp-low.c (maybe_catch_exception): Likewise.
13260         * Makefile.in: Update dependencies.
13261
13262 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
13263
13264         * cgraph.h (struct varpool_node): new used_from_object_file flag.
13265         (struct cgraph_local_info): new used_from_object_file flag.
13266         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
13267         (cgraph_clone_node): initialize used_from_object_file.
13268         (cgraph_create_virtual_clone): initialize used_from_object_file.
13269         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
13270         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
13271         when compiling with -fwhole-program.
13272         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
13273         internal resolver.
13274         * ipa.c (function_and_variable_visibility): Set externally_visible
13275         flag of varpool_node if used_from_object_file flag is set.
13276         (cgraph_externally_visible_p): check used_from_object_file flag.
13277         * doc/invoke.texi (-fwhole-program option): Change description of
13278         externally_visible attribute accordingly.
13279         * doc/extend.texi (externally_visible): Ditto.
13280
13281 2010-06-27  Jan Hubicka  <jh@suse.cz>
13282
13283         * params.def (max-inline-insns-auto): Default to 40.
13284         * doc/invoke.texi (max-inline-insns-auto): Document the change.
13285
13286 2010-06-27  Jan Hubicka  <jh@suse.cz>
13287
13288         PR middle-end/44671
13289         PR middle-end/44686
13290         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
13291         signature change.
13292         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
13293         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13294
13295 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
13296
13297         * target.h (struct gcc_target): Add register_move_cost field.
13298         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
13299         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
13300         * targhooks.c (default_register_move_cost): New function.
13301         * targhooks.h (default_register_move_cost): Declare function.
13302         * defaults.h (REGISTER_MOVE_COST): Delete.
13303         * ira-int.h (ira_register_move_cost): Update comment.
13304         * ira.c (ira_register_move_cost): Update comment.
13305         * reload.h (register_move_cost): Declare.
13306         * reginfo.c (register_move_cost): New function.
13307         (move_cost): Update comment.
13308         (init_move_cost, memory_move_secondary_cost): Replace
13309         REGISTER_MOVE_COST with register_move_cost.
13310         * postreload.c (reload_cse_simplify_set): (Ditto.).
13311         * reload.c (find_valid_class, find_reloads): (Ditto.).
13312         * reload1.c (choose_reload_regs): (Ditto.).
13313         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
13314         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
13315         * doc/md.texi (can_create_pseudo_p): Update documentation.
13316
13317         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13318         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13319         * config/i386/i386.h (ix86_memory_move_cost): Make static.
13320         (TARGET_MEMORY_MOVE_COST): Define.
13321
13322         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13323         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
13324         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
13325         (TARGET_MEMORY_MOVE_COST): Define.
13326
13327 2010-06-27  Richard Guenther  <rguenther@suse.de>
13328
13329         PR tree-optimization/44683
13330         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
13331         false edge from the inverted condition.
13332
13333 2010-06-27  Richard Guenther  <rguenther@suse.de>
13334
13335         PR middle-end/44684
13336         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
13337         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
13338         for register LHS.  Or non-store assignments.
13339
13340 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
13341
13342         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
13343         (sparc_emit_set_const64): Likewise.  Remove disabled code.
13344         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
13345         (sparc_emit_set_const64): Likewise.
13346
13347 2010-06-26  Catherine Moore  <clm@codesourcery.com>
13348
13349         * config/mips/mips.md (alu_type): New attribute.
13350         (type): Infer type from alu_type.
13351         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13352         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
13353         *subsi3_extended, negsi2, negdi2, *low<mode>,
13354         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
13355         xor<mode>3, *nor<mode>3,
13356         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
13357         *zero_extendhi_truncqi):  Set alu_type instead of type.
13358
13359 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
13360
13361         * config/alpha/alpha.c (alpha_need_linkage): Adjust
13362         splay_tree_new_ggc call.
13363         (alpha_use_linkage): Likewise.
13364
13365 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13366
13367         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
13368         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
13369         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
13370         (static_specs): Remove switches_need_spaces.
13371         (process_command, do_self_spec): Hardcode handling "-o" instead of
13372         checking switches_need_spaces.
13373         * system.h (SWITCHES_NEED_SPACES): Poison.
13374
13375 2010-06-26  Richard Guenther  <rguenther@suse.de>
13376
13377         PR tree-optimization/44393
13378         * tree-loop-distribution.c (generate_loops_for_partition): Fix
13379         stmt removal and VOP renaming.
13380         (generate_memset_zero): Remove redundant stmt updating.
13381         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
13382         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
13383
13384 2010-06-26  Jan Hubicka  <jh@suse.cz>
13385
13386         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
13387         edges comming from header are equivalent.
13388         (visit_bb): Handle PHIs correctly.
13389         * tree-inline.c (copy_phis_for_bb): Be able to copy
13390         PHI from entry edge.
13391         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
13392
13393 2010-06-26  Richard Guenther  <rguenther@suse.de>
13394
13395         PR middle-end/44674
13396         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
13397         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
13398
13399 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13400
13401         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
13402         add_infile, alloc_switch): New.
13403         (process_command): Remove variable lang_n_infiles.  Process
13404         options in a single pass.  Use new functions for allocating
13405         infiles and switches arrays.  Properly skip operands of
13406         -Xpreprocessor and -Xassembler.
13407
13408 2010-06-26  Jan Hubicka  <jh@suse.cz>
13409
13410         PR middle-end/44671
13411         * cgraphunit.c (cgraph_function_versioning): Remove wrong
13412         cgraph_make_decl_local call; fix typo copying RTL data.
13413
13414 2010-06-25  DJ Delorie  <dj@redhat.com>
13415
13416         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
13417         (m32c_output_aligned_common): Likewise.
13418         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13419         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13420         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
13421         (m32c_register_pragmas): Register it.
13422         * config/m32c/m32c.c (m32c_get_pragma_address): New.
13423         (m32c_insert_attributes): Set #pragma address decls volatile.
13424         (pragma_entry_eq): New.
13425         (pragma_entry_hash): New.
13426         (m32c_note_pragma_address): New.
13427         (m32c_get_pragma_address): New.
13428         (m32c_output_aligned_common): New.
13429         * doc/extend.texi: Document the new pragma.
13430
13431         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
13432         also.
13433         * config/m32c/predicates.md (m32c_any_operand): Check the code
13434         instead of memory_operand so as to allow matching volatile MEMs.
13435         (m32c_nonimmediate_operand): Likewise.
13436         (mra_operand): Allow volatiles.
13437
13438 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
13439
13440         PR debug/44610
13441         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13442         address if the offset is unknown.
13443
13444 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
13445
13446         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13447         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13448         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13449         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13450         to ia64_start_function. Invoke it.
13451         * config/ia64/ia64.c (ia64_start_function): Call new function
13452         dwarf2out_vms_debug_main_pointer.
13453
13454 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13455
13456         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13457         statements computing the true predicate.
13458
13459 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13460
13461         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13462         to boolean_true_node.
13463         (reset_bb_predicate): New.
13464         (predicate_bbs): Call reset_bb_predicate.
13465
13466 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13467
13468         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13469         (tree_if_conversion): Returns true when something has been changed.
13470         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13471         changed something.
13472
13473 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13474
13475         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13476         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13477         * tree-if-conv.c: Include dbgcnt.h.
13478         (tree_if_conversion): Use if_conversion_tree to count the number of
13479         if-convertible loops.
13480
13481 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
13482
13483         * common.opt (fprefetch-loop-arrays): Re-define
13484         -fprefetch-loop-arrays as a tri-state option with the initial
13485         value of -1.
13486         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13487         pass only when flag_prefetch_loop_arrays > 0.
13488         * toplev.c (process_options): Note that, with tri-states,
13489         flag_prefetch_loop_arrays>0 means prefetching is enabled.
13490         * config/i386/i386.c (override_options): Enable prefetching at -O3
13491         for a set of CPUs that sw prefetching is helpful.
13492         (software_prefetching_beneficial_p): New.  Return TRUE if software
13493         prefetching is beneficial for the given CPU.
13494
13495 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13496
13497         PR rtl-optimization/44326
13498         * implicit-zee.c (find_removable_zero_extends): Replace
13499         INSN_P with NONDEBUG_INSN_P.
13500
13501 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13502
13503         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13504         (struct ipa_node_params): Removed the modification_analysis_done flag.
13505         (ipa_is_param_modified): Removed.
13506         (ipa_analyze_node): Declare.
13507         (ipa_compute_jump_functions): Remove declaration.
13508         (ipa_count_arguments): Likewise.
13509         (ipa_detect_param_modifications): Likewise.
13510         (ipa_analyze_params_uses): Likewise.
13511         * ipa-prop.c (struct param_analysis_info): New type.
13512         (visit_store_addr_for_mod_analysis): Removed.
13513         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13514         moved down in the file.
13515         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13516         (ipa_count_arguments): Made static.
13517         (mark_modified): New function.
13518         (is_parm_modified_before_call): New function.
13519         (compute_pass_through_member_ptrs): New parameter parms_info, call
13520         is_parm_modified_before_call instead of ipa_is_param_modified.
13521         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13522         it to compute_pass_through_member_ptrs.
13523         (ipa_compute_jump_functions): New parameter parms_info, pass it to
13524         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
13525         on the callee if it is analyzed.  Made static.
13526         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13527         is_parm_modified_before_call instead of ipa_is_param_modified.
13528         (ipa_analyze_call_uses): New parameter parms_info, pass it to
13529         ipa_analyze_indirect_call_uses.
13530         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13531         ipa_analyze_call_uses.
13532         (ipa_analyze_params_uses): New parameter parms_info, pass it to
13533         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
13534         (ipa_analyze_node): New function.
13535         (ipa_print_node_params): Do not dump the modified flag.
13536         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13537         it.  Do not stream the modified parameter flag.
13538         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13539         it.  Do not stream the modified parameter flag.
13540         * ipa-cp.c (ipcp_analyze_node): Removed.
13541         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13542         with only a call to ipa_analyze_node.
13543         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13544         node with only a call to ipa_analyze_node.
13545
13546 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13547
13548         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13549
13550 2010-06-25  Jan Hubicka  <jh@suse.cz>
13551
13552         * tree-pass.h (pass_split_functions): Declare.
13553         * opts.c (decode_options): Enable function splitting at -O2
13554         * timevar.def (TV_IPA_FNSPLIT): New macro.
13555         * ipa-split.c: New file.
13556         * common.opt (-fpartial-inlining): New flag.
13557         * Makefile.in (ipa-split.o): New object file.
13558         * passes.c (init_optimization_passes): Add ipa-split.
13559         * params.def (partial-inlining-entry-probability): New parameters.
13560         * doc/invoke.texi (-fpartial-inlining): New.
13561
13562 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13563
13564         PR 44665
13565         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13566         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13567         (gimplify_expr): Likewise.
13568
13569 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13570
13571         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13572         statements instead of bailing out on them.
13573         (ipa_analyze_indirect_call_uses): Do not require that loads from the
13574         parameter are in the same BB as the condition.  Update comments.
13575
13576 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
13577
13578         PR middle-end/43866
13579         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13580         true or always false, return NULL_TREE.
13581         (tree_unswitch_single_loop): Optimize conditions even when reaching
13582         max-unswitch-level parameter.  If num > 0, optimize first all conditions
13583         using entry checks, then do still reachable block discovery and consider
13584         only conditions in still reachable basic blocks in the loop.
13585
13586         PR tree-optimization/44539
13587         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13588         the call doesn't have LHS, but has VDEF.
13589
13590 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13591
13592         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13593         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13594         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13595         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13596         * system.h (MODIFY_TARGET_NAME): Poison.
13597
13598 2010-06-25  Alan Modra  <amodra@gmail.com>
13599
13600         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13601         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13602         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13603         CMODEL_LARGE as default.
13604         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13605         (offsettable_ok_by_alignment): Delete.
13606         (rs6000_emit_move): Remove mcmodel=medium optimization.
13607
13608 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13609
13610         With large parts from Jim Wilson:
13611         PR target/43902
13612         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13613         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13614         * optabs.c (optab_for_tree_code): Likewise.
13615         (expand_widen_pattern_expr): Likewise.
13616         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13617         out of execute_optimize_widening_mul.
13618         (convert_plusminus_to_widen): New function.
13619         (execute_optimize_widening_mul): Use the two new functions.
13620         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13621         Remove code to generate widening multiply-accumulate.  Add support
13622         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13623         * gimple-pretty-print.c (dump_ternary_rhs): New function.
13624         (dump_gimple_assign): Call it when appropriate.
13625         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13626         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13627         (expand_gimple_stmt_1): Likewise.
13628         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13629         WIDEN_MULT_MINUS_EXPR.
13630         * tree-ssa-operands.c (get_expr_operands): Likewise.
13631         * tree-inline.c (estimate_operator_cost): Likewise.
13632         * gimple.c (extract_ops_from_tree_1): Renamed from
13633         extract_ops_from_tree.  Add new arg for a third operand; fill it.
13634         (gimple_build_assign_stat): Support operations with three operands.
13635         (gimple_build_assign_with_ops_stat): Likewise.
13636         (gimple_assign_set_rhs_from_tree): Likewise.
13637         (gimple_assign_set_rhs_with_ops_1): Renamed from
13638         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
13639         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13640         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13641         WIDEN_MULT_MINUS_EXPR.
13642         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13643         (extract_ops_from_tree_1): Adjust declaration.
13644         (gimple_assign_set_rhs_with_ops_1): Likewise.
13645         (gimple_build_assign_with_ops): Pass NULL for last operand.
13646         (gimple_build_assign_with_ops3): New macro.
13647         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13648         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13649         functions.
13650         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13651         (verify_gimple_assign): Call it.
13652         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13653         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13654         functions for dealing with three-operand statements.
13655         * tree.c (commutative_ternary_tree_code): New function.
13656         * tree.h (commutative_ternary_tree_code): Declare it.
13657         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13658         ternary statements.
13659         (gimple_assign_nonzero_warnv_p): Likewise.
13660         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13661         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13662         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
13663         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13664         (struct hashtable_expr): New member ternary in the union.
13665         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13666         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
13667         (iterative_hash_hashable_expr): Likewise.
13668         (print_expr_hash_elt): Handle EXPR_TERNARY.
13669         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13670         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13671         statements.  Handle GIMPLE_TERNARY_RHS.
13672
13673 2010-06-25  Jan Hubicka  <jh@suse.cz>
13674
13675         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13676
13677 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
13678
13679         PR c/44517
13680         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13681         parameters are not good.
13682         (c_parser_parameter_declaration): Error unknown type name if the type
13683         name can't start declaration specifiers.
13684
13685 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13686
13687         * gcc.c (translate_options): Don't mention +e in comment.
13688         (process_command): Don't handle +e specially.
13689
13690 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13691
13692         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13693
13694         * ira-build.c (merge_hard_reg_conflicts): New function.
13695         (create_cap_allocno, copy_info_to_removed_store_destinations,
13696         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13697         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13698         (remove_unnecessary_allocnos, remove_low_level_allocnos)
13699         copy_nifo_to_removed_store_destination): Use them.
13700         * ira-lives.c (make_hard_regno_born): New function, split out of
13701         make_regno_born.
13702         (make_allocno_born): Likewise.
13703         (make_hard_regno_dead): New function, split out of make_regno_dead.
13704         (make_allocno_dead): Likewise.
13705         (inc_register_pressure): New function, split out of set_allocno_live.
13706         (dec_register_pressure): New function, split out of clear_allocno_live.
13707         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13708         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
13709         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13710         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
13711         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13712         mark_pseudo_regno_live.
13713         (process_bb_node_lives): Use mark_pseudo_regno_live,
13714         make_hard_regno_born and make_allocno_dead.
13715         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13716         set_allocno_live, clear_allocno_live): Delete functions.
13717
13718         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13719         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13720         functions.
13721         (ira_flattening): Use ira_parent_allocno.
13722         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13723         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13724
13725         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13726         statement.
13727
13728         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13729         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13730         minmax_set_iter_cond, minmax_set_iter_next,
13731         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13732         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13733         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13734         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
13735         uses changed.
13736
13737         * ira-int.h (struct live_range, live_range_t): Renamed from struct
13738         ira_allocno_live_range and allocno_live_range_t; all uses changed.
13739         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13740         All uses changed.
13741
13742 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
13743
13744         * thumb2.md (thumb2_tlobits_cbranch): Delete.
13745         (peephole2 to convert zero_extract/compare of single bit to
13746          lshift/compare): New.
13747
13748 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
13749
13750         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13751         recursive call and call to 'int_const_binop'.
13752         (build_range_check, fold_cond_expr_with_comparison, unextend,
13753         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13754         multiple_of_p): Adjust call to const_binop.
13755
13756 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
13757
13758         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13759         determine size of XFmode operand.
13760         (XFmode extended DFmode push splitter): Ditto.
13761         (XFmode extended SFmode push splitter): Ditto.
13762
13763 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13764
13765         PR target/44588
13766         * config/i386/i386.md (extract_code): New.
13767         (<u>divmodqi4): Likewise.
13768         (divmodhiqi3): Likewise.
13769         (udivmodhiqi3): Likewise.
13770         (<u>divqi3): Remvoved.
13771
13772 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
13773
13774         PR middle-end/44492
13775         * recog.h (struct recog_data): Add is_asm field.
13776         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13777         present in constraints of inline-asm operand and memory operand
13778         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13779         (extract_insn): Initialize recog_data.is_asm.
13780         * doc/md.texi (Constraints): Document operand side-effect rules.
13781
13782 2010-06-24  Andi Kleen  <ak@linux.intel.com>
13783
13784         * c-parser.c (c_parser_conditional_expression): Call
13785         warn_for_omitted_condop.
13786         * doc/invoke.texi: Document omitted condop warning.
13787
13788 2010-06-24  Nick Clifton<nickc@redhat.com>
13789
13790         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13791         insn in the sequence is a jump insn before setting its label.
13792
13793 2010-06-24  Alan Modra  <amodra@gmail.com>
13794
13795         * collect2.c (main): Match exactly --version and --help.
13796
13797 2010-06-24  DJ Delorie  <dj@redhat.com>
13798
13799         * config/m32c/m32c-pragma.c: Don't include rtl.h.
13800
13801 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
13802
13803         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13804         using X87MODEF mode iterator.
13805         (pushsf splitter): Macroize splitter using P mode iterator.
13806         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13807         mode iterator.
13808
13809         (*movxf_internal): Rename from *movxf_integer.
13810         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13811         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13812         (*movdf_internal): Rename from *movdf_integer.
13813         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13814         (*movsf_internal): Rename from *movdf_1.
13815
13816 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
13817
13818         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13819         (const_gimple_seq_node): Removed typedefs.
13820
13821         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13822         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13823
13824 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13825
13826         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13827         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13828         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13829         and CODE_FOR_vec_extract_lo_v4df.
13830
13831         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13832         Changed to define_insn_and_split.
13833         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13834         (vec_extract_lo_v16hi): Likewise.
13835         (vec_extract_lo_v32qi): Likewise.
13836         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13837         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13838
13839 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13840
13841         PR target/44640
13842         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13843         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13844         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13845         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13846         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13847
13848         PR target/44640
13849         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13850
13851         PR other/44644
13852         * df-core.c (struct df): Rename to df_d.
13853         * df.h (struct df): Likewise.
13854         * dse.h (struct df): Remove forward declaration.
13855         * recog.h (struct insn_data): Rename to:
13856         (struct_insn_data_d).  Adjusted all users.
13857
13858 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13859
13860         PR ada/22220
13861         * doc/install.texi: Update requirements to build GNAT.
13862
13863 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13864
13865         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13866         enum type.
13867         (m68k_sched_attr_opx_type): Remove unreachable return.
13868         (m68k_sched_attr_opy_type): Likewise.
13869         (m68k_sched_attr_size): Likewise.
13870         (sched_get_opxy_mem_type): Likewise.
13871         (m68k_sched_attr_op_mem): Likewise.
13872
13873 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13874
13875         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13876         new statement and adjust VDEF only if necessary.  Remove superfluous
13877         call to maybe_clean_or_replace_eh_stmt.
13878         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13879         copy the flags.
13880         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13881         * tree-inline.c (copy_bb): ...and not there.
13882
13883 2010-06-22  Cary Coutant  <ccoutant@google.com>
13884
13885         * dwarf2out.c (is_nested_in_subprogram): New function.
13886         (should_move_die_to_comdat): Use it.
13887         (copy_ancestor_tree): Don't mark DIEs here.
13888         (copy_decls_walk): Start walk from root of newly-added tree;
13889         mark DIEs here instead.
13890
13891 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13892
13893         * config/i386/i386.md (unit): Also check sseishft1.
13894
13895 2010-06-22  Jan Hubicka  <jh@suse.cz>
13896
13897         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13898         enabled.
13899
13900 2010-06-22  Jan Hubicka  <jh@suse.cz>
13901
13902         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13903         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13904         Return true if something changed.
13905         * df.h (df_confluence_function_n): Return bool.
13906         * df-core.c (df_worklist_propagate_forward,
13907         df_worklist_propagate_backward): Track changes and ages.
13908         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13909         track ages.
13910         * dse.c (dse_confluence_n): Return always true.
13911
13912 2010-06-22  Jan Hubicka  <jh@suse.cz>
13913
13914         * bitmap.c (bitmap_clear_bit): Micro optimize.
13915
13916 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13917
13918         * config/i386/i386.md (SWI1248x): New mode iterator.
13919         (SWI48x): Ditto.
13920         (SWI12): Ditto.
13921         (SWI24): Ditto.
13922
13923         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13924         SWI1248x mode iterator.
13925         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13926         using SWI124 mode iterator.
13927         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13928         mode iterator.
13929         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13930         *pushdi2_prologue_rex64 using P mode iterator.
13931         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13932         using SWI48 mode iterator.
13933         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13934         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13935         using SWI1248x mode iterator.
13936         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13937         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13938         SWI48 mode iterator.
13939         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13940         iterator.
13941         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13942         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13943         SWI12 mode iterator.
13944         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13945         SWI12 mode iterator.
13946         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13947         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13948         SWI24 mode iterator.
13949         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13950         SWI48 mode iterator.
13951         (mov<mode>_insn_1): New expander.
13952         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13953         using SWI48x mode iterator.
13954
13955         (*movoi_internal_avx): Rename from *movoi_internal.
13956         (*movti_internal_rex64): Rename from *movti_rex64.
13957         (*movti_internal_sse): Rename from *movti_sse.
13958         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13959         (*movdi_internal): Rename from *movdi_2.
13960         (*movsi_internal): Rename from *movsi_1.
13961         (*movhi_internal): Rename from *movhi_1.
13962         (*movqi_internal): Rename from *movqi_1.
13963
13964         (insv): Update the call to gen_movsi_insv_1 for rename.
13965         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13966
13967 2010-06-22  Jan Hubicka  <jh@suse.cz>
13968
13969         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13970         to ...
13971         (execute_todo) ... this one.
13972
13973 2010-06-22  Alan Modra  <amodra@gmail.com>
13974
13975         PR target/44364
13976         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13977         * caller-save.c (insert_restore, insert_save): Use non-validate
13978         form of adjust_address.
13979
13980 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13981
13982         PR target/39690
13983         * config/pa/pa.c (override_options): Disable
13984         -freorder-blocks-and-partition.
13985
13986 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13987
13988         PR target/44615
13989         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13990
13991         * config/i386/i386.md (type): Add sseishft1
13992
13993         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13994         (ppro_insn_load): Likewise.
13995         (ppro_insn_store): Likewise.
13996         (ppro_insn_both): Likewise.
13997
13998         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13999         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
14000         for type.
14001         (*vec_extractv2di_1_avx): Likewise.
14002         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
14003         type.  Remove atom_unit.
14004         (*vec_extractv2di_1_sse2): Likewise.
14005
14006 2010-06-21  DJ Delorie  <dj@redhat.com>
14007
14008         * diagnostic.h (diagnostic_classification_change_t): New.
14009         (diagnostic_context): Add history and push/pop list.
14010         (diagnostic_push_diagnostics): Declare.
14011         (diagnostic_pop_diagnostics): Declare.
14012         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
14013         from pragmas in a history chain instead of the global table.
14014         (diagnostic_push_diagnostics): New.
14015         (diagnostic_pop_diagnostics): New.
14016         (diagnostic_report_diagnostic): Scan history chain to find state
14017         of diagnostics as of the diagnostic location.
14018         * opts.c (set_option): Pass UNKNOWN_LOCATION to
14019         diagnostic_classify_diagnostic.
14020         (enable_warning_as_error): Likewise.
14021         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
14022         use in the history chain.
14023         * doc/extend.texi: Document pragma GCC diagnostic changes.
14024
14025 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
14026
14027         * dwarf2out.c (add_linkage_name): New function.  Don't add
14028         anything to DW_TAG_member DIEs.
14029         (add_name_and_src_coords_attributes): Use it.
14030         (gen_variable_die): Call it for C++ static data members if
14031         specification is DW_TAG_member.
14032
14033         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
14034         C++ char16_t and char32_t.
14035
14036         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
14037         * genattrtab.c: Include vecprim.h.
14038         (cached_attrs, cached_attr_count, attrs_seen_once,
14039         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
14040         attrs_cached_after): New variables.
14041         (find_attrs_to_cache): New function.
14042         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
14043         (write_test_expr): Add attrs_cached argument, return it too,
14044         attempt to cache non-const attributes used more than once in
14045         a single case handling.
14046         (write_attr_get): Use find_attrs_to_cache, for caching candidates
14047         emit cached_* variables.  Adjust write_attr_set callers.
14048         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
14049         to find attributes that should be cached in this block.  Adjust
14050         write_test_expr callers.
14051         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
14052         callers.
14053         (make_automaton_attrs): Adjust write_test_expr caller.
14054
14055         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
14056         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
14057         (make_automaton_attrs): If find_tune_attr returns non-NULL,
14058         write separate internal_dfa_insn_code_* and insn_default_latency_*
14059         functions for each attribute's value and emit init_sched_attrs
14060         function and function pointers.
14061         * genattr.c (const_attrs, reservations): New variables.
14062         (gen_attr): Add const attributes to const_attrs vector.
14063         (check_tune_attr, find_tune_attr): New functions.
14064         (main): Add reservations to reservations vector.  If find_tune_attr
14065         returns true, add prototype for init_sched_attrs and make
14066         internal_dfa_insn_code and insn_default_latency function pointers,
14067         otherwise define init_sched_attrs as dummy macro.
14068         * cfgexpand.c: Include insn-attr.h.
14069         (gimple_expand_cfg): Call init_sched_attrs.
14070
14071         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
14072
14073         PR target/44575
14074         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
14075         va_arg from a set of register save slots into a temporary,
14076         if the container is bigger than type size, do the copying
14077         using smaller mode or using memcpy.
14078
14079         PR bootstrap/44426
14080         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
14081         prototype.
14082         (sel_print_to_dot): Remove macro.
14083         (sel_print): Likewise.  New prototype.
14084         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
14085         (sel_print): New function.
14086
14087 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14088
14089         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
14090         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
14091
14092 2010-06-21  Nick Clifton  <nickc@redhat.com>
14093
14094         * config/rx/rx.h (PTRDIFF_TYPE): Define.
14095         (SMALL_REGISTER_CLASS): Define (to zero).
14096         (PRINT_OPERAND): Delete.
14097         (PRINT_OPERAND_ADDRESS): Delete.
14098         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
14099         (rx_print_operand_address): Delete prototype.
14100         * config/rx/rx.c (rx_print_operand): Make static.
14101         Allow %H and %L to handle CONST_DOUBLEs.
14102         (rx_print_operand_address): Make static.
14103         (rx_gen_move_template): Rename local variable 'template' to
14104         out_template.
14105         (rx_function_arg): Do not pass unknown sized objects in registers.
14106         (TARGET_PRINT_OPERAND): Define.
14107         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14108
14109 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
14110
14111         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
14112
14113 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
14114
14115         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
14116         stack-alignment for simple leaf-functions.
14117
14118 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14119
14120         * doc/install.texi: Document bootstrap-lto.
14121
14122 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14123
14124         PR debug/44248
14125         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
14126         (input_function): Drop them here, if VTA is disabled.
14127
14128 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
14129
14130         PR target/44546
14131         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
14132         New predicate.
14133         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
14134         ix86_swapped_fp_comparsion_operator instead of
14135         ix86_fp_comparison_operator.
14136
14137         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
14138         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
14139         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
14140         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
14141         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
14142         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
14143
14144 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
14145
14146         PR other/32998
14147         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
14148         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
14149         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
14150         (decode_cmdline_option): Update for this return value.  Set
14151         orig_option_with_args_text field.  Set arg field for unknown
14152         options.  Make static.
14153         (decode_cmdline_options_to_array): New.
14154         (prune_options): Update handling of find_opt return value.
14155         * opts.c (read_cmdline_option): Take decoded option.  Return void.
14156         (read_cmdline_options): Take decoded options.
14157         (decode_options): Add parameters for decoded options.  Use
14158         decode_cmdline_options_to_array.  Use decoded options for -O
14159         scan.  Use integral_argument for -O parameters.  Update call to
14160         read_cmdline_options.
14161         (enable_warning_as_error): Update handling of find_opt return value.
14162         * opts.h: Update comment on unknown options.
14163         (struct cl_decoded_option): Update comments on opt_index and arg.
14164         Add orig_option_with_args_text.
14165         (decode_cmdline_option): Remove.
14166         (decode_cmdline_options_to_array): Declare.
14167         (decode_options): Update prototype.
14168         * toplev.c (save_argv): Remove.
14169         (save_decoded_options, save_decoded_options_count): New.
14170         (read_integral_parameter): Remove.
14171         (print_switch_values): Use decoded options.
14172         (toplev_main): Don't set save_argv.  Update call to decode_options.
14173         * toplev.h (read_integral_parameter): Remove.
14174         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
14175
14176 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
14177
14178         PR target/44072
14179         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
14180         immediate.
14181         * constraints.md (Pw, Px): New constraints.
14182         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
14183
14184 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
14185
14186         * config/i386/sse.md (fma4modesuffixf4): Removed.
14187         (ssemodesuffixf2s): Likewise.
14188         (ssemodesuffixf4): Likewise.
14189         (ssemodesuffixf2c): Likewise.
14190         (ssescalarmodesuffix2s): Likewise.
14191         (avxmodesuffixf2c): Likewise.
14192         (ssemodesuffix): New.
14193         (ssescalarmodesuffix): Likewise.
14194         Update patterns with ssemodesuffix and ssescalarmodesuffix.
14195
14196 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
14197
14198         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
14199
14200 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14201
14202         * stor-layout.c (debug_rli): Remove unused local variables.
14203
14204 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
14205
14206         PR rtl-optimization/40900
14207         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
14208         original expression for later reuse.
14209         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
14210         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
14211
14212 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
14213
14214         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
14215         double_int_fits_in_uhwi_p): Implement as static inline.
14216         (double_int_xor): New inline function.
14217         (double_int_lrotate, double_int_rrotate, double_int_max,
14218         double_int_umax, double_int_smax, double_int_min, double_int_umin,
14219         double_int_smin): Declare.
14220         (lrotate_double, rrotate_double): Remove declaration.
14221         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
14222         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
14223         (double_int_lrotate, double_int_rrotate, double_int_max,
14224         double_int_umax, double_int_smax, double_int_min, double_int_umin,
14225         double_int_smin): New function.
14226         * fold-const.c (int_const_binop): Clean up, use double_int_*
14227         functions.
14228         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
14229         double_int_* and immed_double_int_const functions.
14230
14231 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14232
14233         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
14234         * function.c (types_used_by_cur_var_decl): Likewise.
14235         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
14236
14237 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14238
14239         * tree.h (record_layout_info): Change type of pending_statics field
14240         to a VEC.
14241         * stor-layout.c (start_record_layout): Store NULL into
14242         pending_statics.
14243         (debug_rli): Call debug_vec_tree instead of debug_tree.
14244         (place_field): Likewise.
14245         (finish_record_layout): Likewise.
14246
14247 2010-06-18  Alan Modra  <amodra@gmail.com>
14248
14249         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
14250
14251 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14252
14253         PR target/43740
14254         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
14255         for SET source operand from SET destination operand.
14256
14257 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
14258
14259         PR rtl-optimization/39871
14260         * reload1.c (init_eliminable_invariants): For flag_pic, disable
14261         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
14262         (function_invariant_p): Rule out a plus of frame or arg pointer with
14263         a SYMBOL_REF.
14264         * ira.c (find_reg_equiv_invariant_const): Likewise.
14265
14266 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
14267
14268         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
14269         print_operand_address and puts to output the operand for CONST.
14270
14271 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
14272
14273         PR debug/44572
14274         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
14275         hook.
14276
14277 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14278
14279         * v850-protos.h (print_operand): Delete.
14280         (print_operand_address): Delete.
14281         * v850.h (PRINT_OPERAND): Delete.
14282         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14283         (PRINT_OPERAND_ADDRESS): Delete.
14284         * v850.c (print_operand_address): Rename to...
14285         (v850_print_operand_address): ...this.  Make static. Call
14286         v850_print_operand.
14287         (print_operand): Rename to...
14288         (v850_print_operand): ...this.  Make static.  Call
14289         v850_print_operand_address.
14290         (v850_print_operand_punct_valid_p): New function.
14291         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14292         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14293
14294 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14295
14296         * config/sh/sh-protos.h (print_operand): Delete.
14297         (print_operand_address): Delete.
14298         * config/sh/sh.h (PRINT_OPERAND): Delete.
14299         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14300         (PRINT_OPERAND_ADDRESS): Delete.
14301         * config/sh/sh.c (sh_print_operand_address): Make static.
14302         (sh_print_operand): Make static.  Call sh_print_operand_address
14303         and sh_print_operand.
14304         (sh_print_operand_punct_valid_p): New function.
14305         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14306         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14307
14308 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14309
14310         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
14311         (mcore_print_operand_address): Delete.
14312         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
14313         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14314         (PRINT_OPERAND_ADDRESS): Delete.
14315         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
14316         (mcore_print_operand): Make static.
14317         (mcore_print_operand_punct_valid_p): New function.
14318         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
14319         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14320
14321 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14322
14323         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
14324         (print_operand_address): Delete.
14325         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
14326         (PRINT_OPERAND_ADDRESS): Delete.
14327         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
14328         static.
14329         (m68hc11_print_operand): Make static.
14330         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14331
14332 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14333
14334         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
14335         (m32r_print_operand_address): Delete.
14336         * config/m32r/m32r.h (m32r_punct_chars): Delete.
14337         (PRINT_OPERAND): Delete.
14338         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14339         (PRINT_OPERAND_ADDRESS): Delete.
14340         * config/m32r/m32r.c (m32r_punct_chars): Make static.
14341         (m32r_print_operand_address): Make static.
14342         (m32r_print_operand): Make static.
14343         (m32r_print_operand_punct_valid_p): New function.
14344         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14345         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14346
14347 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14348
14349         * config/iq2000/iq2000-protos.h (print_operand): Delete.
14350         (print_operand_address): Delete.
14351         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
14352         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14353         (PRINT_OPERAND_ADDRESS): Delete.
14354         (iq2000_print_operand_punct): Delete.
14355         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
14356         (iq2000_print_operand_address): Make static.
14357         (iq2000_print_operand): Make static.
14358         (iq2000_print_operand_punct_valid_p): New function.
14359         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14360         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14361
14362 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14363
14364         * config/frv/frv-protos.h (frv_print_operand): Delete.
14365         (frv_print_operand_address): Delete.
14366         * config/frv/frv.h (PRINT_OPERAND): Delete.
14367         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14368         (PRINT_OPERAND_ADDRESS): Delete.
14369         * config/frv/frv.c (frv_print_operand_address): Make static.
14370         (frv_print_operand): Make static.
14371         (frv_print_operand_punct_valid_p): New function.
14372         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14373         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14374
14375 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14376
14377         * tree.h (vec_member): Declare.
14378         * tree.c (vec_member): Define.
14379
14380 2010-06-17  Richard Guenther  <rguenther@suse.de>
14381
14382         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
14383         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
14384
14385 2010-06-17  Richard Guenther  <rguenther@suse.de>
14386
14387         * tree-inline.c (declare_return_variable): Remove bogus code.
14388
14389 2010-06-17  Richard Guenther  <rguenther@suse.de>
14390
14391         * gimplify.c (gimplify_bind_expr): Always promote complex
14392         and vector variables to registers if possible.
14393
14394 2010-06-17  Richard Guenther  <rguenther@suse.de>
14395
14396         * expr.c (get_inner_reference): Use double_int for bit_offset
14397         calculation.
14398
14399 2010-06-16  DJ Delorie  <dj@redhat.com>
14400
14401         * common.opt (-fstrict-volatile-bitfields): new.
14402         * doc/invoke.texi: Document it.
14403         * fold-const.c (optimize_bit_field_compare): For volatile
14404         bitfields, use the field's type to determine the mode, not the
14405         field's size.
14406         * expr.c (expand_assignment): Likewise.
14407         (get_inner_reference): Likewise.
14408         (expand_expr_real_1): Likewise.
14409         * expmed.c (store_fixed_bit_field): Likewise.
14410         (extract_bit_field_1): Likewise.
14411         (extract_fixed_bit_field): Likewise.
14412
14413 2010-06-16  Richard Guenther  <rguenther@suse.de>
14414
14415         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
14416
14417 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
14418
14419         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
14420         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
14421         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
14422         * debug.c: Likewise.
14423         * sdbout.c: Likewise.
14424         * vmsdbgout.c: Likewise.
14425         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
14426         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
14427         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
14428         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
14429         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
14430         * dwarf2out.c (dw_fde_struct): New fields
14431         dw_fde_vms_{end,begin}_prologue.
14432         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
14433         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
14434         (dwarf2out_vms_end_prologue): New function.
14435         (dwarf2out_vms_begin_epilogue): New function.
14436         (dw_val_struct): New value dw_val_class_vms_delta.
14437         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
14438         begin_epilogue for VMS.
14439         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
14440         new static functions.
14441         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14442         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14443         static functions.
14444         (print_die): New case dw_val_class_vms_delta.
14445         (attr_checksum): Likewise.
14446         (same_dw_val_p: Likewise.
14447         (size_of_die): Likewise.
14448         (value_format): Likewise.
14449         (output_die): Likewise.
14450         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14451         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14452         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14453         dwarf2out_cfi_begin_epilogue
14454         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14455
14456 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14457
14458         * config/cris/cris-protos.h (cris_print_operand): Delete.
14459         (cris_print_operand_address): Delete.
14460         * config/cris/cris.h (PRINT_OPERAND): Delete.
14461         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14462         (PRINT_OPERAND_ADDRESS): Delete.
14463         * config/cris/cris.c (cris_print_operand_address): Make static.
14464         (cris_print_operand): Make static.
14465         (cris_print_operand_punct_valid_p): New function.
14466         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14467         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14468
14469 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14470
14471         * config/arm/arm-protos.h (arm_print_operand): Delete.
14472         (arm_print_operand_address): Delete.
14473         * config/arm/arm.h (PRINT_OPERAND): Delete.
14474         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14475         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14476         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14477         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
14478         (arm_print_operand): Make static.
14479         (arm_print_operand_punct_valid_p): New function.
14480         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14481         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14482
14483 2010-06-16  Nick Clifton  <nickc@redhat.com>
14484
14485         * config/rx/constraints.md (NEGint4): New constraint.
14486         * config/rx/rx.md (attr cc): Add set_zsc.
14487         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14488         initialised.
14489         (cmpsf): Likewise.
14490         (call_internal): Clobber the cc0 register.
14491         (call_value_internal): Likewise.
14492         (cstoresi4): Likewise.
14493         (movsieq): Likewise.
14494         (movsine): Likewise.
14495         (addsi3): Add alternative to handle small negative constants.
14496         (sunsi3): Likewise.
14497         (addsi3): Do not set the O bit in the cc0 register.
14498         (adddi3): Likewise.
14499         (subsi3): Likewise.
14500         (subdi3): Likewise.
14501         (andsi3): Reorder alternatives to prefer shorter forms.
14502         (mulsi3): Likewise.
14503         (iorsi3): Likewise.
14504         (negsi2): Note that the cc0 flags are set.
14505         (rotlsi3): Note that only the Z and S bits are set in cc0.
14506         (lshrsi3): Likewise.
14507         (ashlsi3): Likewise.
14508         (subsf3): Use %Q for the MEM operand.
14509         (fix_truncsfsi2): Likewise.
14510         (floatsisf2): Likewise.
14511         (bitset): Remove early clobber from destination.
14512         (bitset_in_memory): Likewise.
14513         (lrintsf2): Clobber the cc0 register.
14514         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14515         (rx_print_operand): Handle %N.
14516
14517 2010-06-16  Jan Hubicka  <jh@suse.cz>
14518
14519         * df-core.c (df_compact_blocks): Free problem_temps vector.
14520
14521 2010-06-16  Martin Jambor  <mjambor@suse.cz>
14522
14523         PR tree-optimization/43905
14524         * tree-sra.c: Include tree-inline.h.
14525         (create_abstract_origin): Removed.
14526         (modify_function): Version the call graph node instead of creating
14527         abstract origins and dealing with same_body aliases.
14528         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14529         function is versionable.
14530         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14531
14532 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14533
14534         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14535         (CHOOSE_DYNAMIC_LINKER): Update.
14536
14537 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
14538
14539         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
14540         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14541         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14542         *prefetch_3dnow_rex.
14543
14544 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
14545
14546         * target.h (struct asm_out):Add declare_constant_name field.
14547         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14548         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14549         * output.h (default_asm_declare_constant_name): Declare.
14550         (assemble_label): Update prototype.
14551         * varasm.c (assemble_constant_contents): Use
14552         targetm.asm_out.declare_constant_name target hook.
14553         (assemble_label): Add 'file' argument.
14554         (default_asm_declare_constant_name): New function.
14555         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14556         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14557         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14558
14559         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14560         * config/darwin.c (darwin_asm_declare_constant_name): New function.
14561         (machopic_output_indirection): Update assemble_label argument list.
14562         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14563         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14564
14565 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
14566
14567         PR middle-end/44391
14568         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14569         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
14570
14571 2010-06-15  Richard Guenther  <rguenther@suse.de>
14572
14573         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14574
14575 2010-06-15  Paul Brook  <paul@codesourcery.com>
14576
14577         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14578         hard-float ABI.
14579
14580 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
14581
14582         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14583         don't get a vector type for output.
14584
14585 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
14586
14587         PR fortran/44536
14588         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14589         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14590         (LANG_HOOKS_DECLS): Add it.
14591         * gimplify.c (omp_notice_variable): Call
14592         lang_hooks.decls.omp_report_decl.
14593
14594 2010-06-15  Martin Jambor  <mjambor@suse.cz>
14595
14596         PR lto/44464
14597         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14598         on the newly dead SSA name.
14599
14600 2010-06-15  Alan Modra  <amodra@gmail.com>
14601
14602         * doc/invoke.texi: Add mcmodel to powerpc options.
14603         * configure.ac: Add HAVE_LD_LARGE_TOC test.
14604         * configure: Regenerate.
14605         * config.in: Regenerate.
14606         * config/rs6000/linux64.opt (mcmodel): New.
14607         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14608         (TARGET_CMODEL, SET_CMODEL): Define.
14609         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14610         select CMODEL_MEDIUM default.
14611         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14612         (TARGET_CMODEL): Define default.
14613         * config/rs6000/rs6000.c (cmodel): New variable.
14614         (rs6000_explicit_options): Add cmodel field.
14615         (rs6000_handle_option): Handle -mcmodel.
14616         (create_TOC_reference): Add largetoc_reg param.  Generate high,
14617         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
14618         (rs6000_delegitimize_address): Recognise new toc reference rtl
14619         and minimal-toc rtl.
14620         (rs6000_legitimize_reload_address): Handle new toc references.
14621         (print_operand_address): Handle legitimate_constant_pool_address_p
14622         match before lo_sum.
14623         (rs6000_eliminate_indexed_memrefs): Tidy.
14624         (rs6000_emit_move): Tweak threshold for inlining constants.
14625         Keep rs6000_emit_allocate_stack large stack frame offsets
14626         loaded into r0 inline.
14627         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14628         (tocrel_base, tocrel_offset): New variables.
14629         (toc_relative_expr_p): Set them here.
14630         (print_operand_address): Skip over any offset on constant pool address.
14631         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14632         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14633         (offsettable_ok_by_alignment): New function.
14634         (rs6000_emit_move): Address suitably aligned local symbol_refs
14635         relative to the toc pointer for -mcmodel=medium.
14636         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
14637         strict param.  Allow lo_sum version of addressing.  Verify reg
14638         used for -mminimal-toc and -mcmodel != small.  Update all callers.
14639         * config/rs6000/constraints.md: Update for above change.
14640         * config/rs6000/predicates.md: Likewise.
14641         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14642         code.
14643         (tls_gd): Split for -mcmodel=medium/large.
14644         (tls_gd_high, tls_gd_low): New.
14645         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14646         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14647         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14648         (largetoc_high, largetoc_low): New.
14649         (cmptf_internal2): Add clobber.
14650         * config/rs6000/rs6000-protos.h: Update.
14651
14652 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
14653
14654         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
14655         true if no prefetch is going to be generated for a given group.
14656         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14657         estimate the prefetch_count.
14658         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14659         prefetch count by considering the unroll_factor and prefetch_mod
14660         for is_loop_prefetching_profitable.
14661
14662 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
14663
14664         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14665         anything if the argument is not a MEM.
14666
14667 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14668
14669         PR debug/43650
14670         PR debug/44181
14671         PR debug/44247
14672         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14673         debug stmts.
14674         (canonicalize_loop_ivs): Likewise.
14675
14676 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14677
14678         PR debug/43656
14679         * haifa-sched.c (setup_insn_reg_pressure_info,
14680         update_register_pressure): Reject debug insns.
14681         (ready_sort): Don't setup reg pressure for debug insns.
14682         (schedule_insn): Don't update reg pressure for debug insns.
14683
14684 2010-06-14  Richard Guenther  <rguenther@suse.de>
14685
14686         * lto-streamer.c (cached_bp): Remove.
14687         (bitpack_delete): Likewise.
14688         (bitpack_create): Likewise.
14689         (bp_get_next_word): Likewise.
14690         (bp_pack_value, bp_unpack_value): Move ...
14691         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14692         Re-implement.
14693         (struct bitpack_d): Likewise.
14694         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14695         New inline functions.
14696         * lto-streamer-out.c (lto_output_bitpack): Remove.
14697         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14698         (pack_value_fields): Adjust.
14699         (lto_write_tree): Likewise.
14700         (output_gimple_stmt): Likewise.
14701         (output_function): Likewise.
14702         * lto-streamer-in.c (input_gimple_stmt): Adjust.
14703         (input_function): Likewise.
14704         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14705         (lto_input_bitpack): Remove.
14706         (lto_materialize_tree): Adjust.
14707         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14708         * lto-cgraph.c (lto_output_edge): Adjust.
14709         (lto_output_node): Likewise.
14710         (lto_output_varpool_node): Likewise.
14711         (lto_output_ref): Likewise.
14712         (input_node): Likewise.
14713         (input_varpool_node): Likewise.
14714         (input_ref): Likewise.
14715         (input_edge): Likewise.
14716         (output_node_opt_summary): Likewise.
14717         (input_node_opt_summary): Likewise.
14718         * ipa-pure-const.c (pure_const_write_summary): Likewise.
14719         (pure_const_read_summary): Likewise.
14720         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14721         (ipa_read_indirect_edge_info): Likewise.
14722         (ipa_write_node_info): Likewise.
14723         (ipa_read_node_info): Likewise.
14724
14725 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14726
14727         PR target/44534
14728         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14729         (vec_extract_lo_v16hi): Likewise.
14730         (vec_extract_lo_v32qi): Likewise.
14731
14732 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14733
14734         PR bootstrap/44426
14735         * tree.h (build_call_expr): Don't define as vararg macro, instead
14736         add a prototype.
14737         * builtins.c (build_call_nofold): Remove.
14738         (expand_builtin_int_roundingfn, expand_builtin_pow,
14739         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14740         expand_builtin_memset_args, expand_builtin_strcmp,
14741         expand_builtin_strncmp, expand_builtin_memory_chk): Use
14742         build_call_nofold_loc instead of build_call_nofold.
14743         (build_call_expr): New function.
14744
14745         PR tree-optimization/44508
14746         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14747         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14748         don't eliminate trivially dead stmts.
14749         * tree-vrp.c (vrp_finalize): Pass false as last argument
14750         to substitute_and_fold.
14751         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14752         to substitute_and_fold.
14753         * tree-ssa-ccp.c (ccp_finalize): Likewise.
14754
14755         PR bootstrap/44509
14756         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14757
14758 2010-06-14  Ira Rosen  <irar@il.ibm.com>
14759
14760         PR tree-optimization/44507
14761         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14762         to build initial vector for BIT_AND_EXPR.
14763         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14764
14765 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14766
14767         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14768         adjust z10prop set_attr.
14769
14770 2010-06-13  Jan Hubicka  <jh@suse.cz>
14771
14772         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14773         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14774         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14775         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14776         datastructure checks into checking asserts.
14777         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14778         * tree-ssa-sccvn.c (VN_INFO): Likewise.
14779         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14780         df_ref_create_structure): Likewise.
14781         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14782         pool_free): Use gcc_checking_assert.
14783         * alias.c (get_alias_set): Likewise.
14784         * var-tracking.c (variable_htab_free, shared_hash_copy,
14785         canonicalize_values_mark, variable_merge_over_cur): Likewise.
14786         * lto-streamer.c (bp_unpack_value): Likewise.
14787
14788 2010-06-13  Richard Guenther  <rguenther@suse.de>
14789
14790         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14791         Do not stream but initialize TYPE_CANONICAL to NULL.
14792         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14793         * gimple.c (gimple_types_compatible_p): Disregard
14794         TYPE_STRUCTURAL_EQUALITY_P.
14795         (gimple_register_type): Use TYPE_CANONICAL as cache.
14796         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14797         before registering common types.
14798         * config/i386/i386.c (ix86_function_arg_boundary): Do not
14799         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14800         * tree.h (TYPE_CANONICAL): Clarify documentation.
14801
14802 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
14803
14804         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14805         LIBCALL_VALUE): Remove macros.
14806         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14807         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14808         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14809         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14810         (ia64_function_value): Make static. Handle receiving the function
14811         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14812
14813 2010-06-12  Jan Hubicka  <jh@suse.cz>
14814
14815         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14816         at correct place.
14817
14818 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
14819
14820         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14821
14822 2010-06-12  Jan Hubicka  <jh@suse.cz>
14823
14824         * df-core.c (df_clear_bb_info): New function.
14825         (df_set_blocks): bb_info is always allocated.
14826         (df_get_bb_info): Use block_info_elt_size.
14827         (df_set_bb_info): Likewise.
14828         (df_compact_blocks): Update for new block_info.
14829         (grow_bb_info): New function.
14830         * df-problems.c (df_grow_bb_info): Move to df-core.c
14831         (df_rd_set_bb_info): Remove.
14832         (df_rd_free_bb_info): Do not free block pool.
14833         (df_rd_alloc): Do not create pool, use check for
14834         obstack presence instead of NULL pointer for new blocks.
14835         (df_rd_free): DO not free alloc pool; clear block_info.
14836         (problem_RD): Add size of block info structure.
14837         (df_lr_set_bb_info): Remove.
14838         (df_lr_free_bb_info): Do not free block pool.
14839         (df_lr_alloc): Do not create pool, use check for
14840         obstack presence instead of NULL pointer for new blocks.
14841         (df_lr_free): DO not free alloc pool; clear block_info.
14842         (problem_LR): Add size of block info structure.
14843         (df_live_set_bb_info): Remove.
14844         (df_live_free_bb_info): Do not free block pool.
14845         (df_live_alloc): Do not create pool, use check for
14846         obstack presence instead of NULL pointer for new blocks.
14847         (df_live_free): DO not free alloc pool; clear block_info.
14848         (problem_LIVE): Add size of block info structure.
14849         (problem_CHAIN): Add size of block info structure.
14850         (df_byte_lr_set_bb_info): Remove.
14851         (df_byte_lr_free_bb_info): Do not free block pool.
14852         (df_byte_lr_alloc): Do not create pool, use check for
14853         obstack presence instead of NULL pointer for new blocks.
14854         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14855         (problem_BYTE_LR): Add size of block info structure.
14856         (problem_NOTE): Add size of block info structure.
14857         (df_byte_MD_set_bb_info): Remove.
14858         (df_byte_MD_free_bb_info): Do not free block pool.
14859         (df_byte_MD_alloc): Do not create pool, use check for
14860         obstack presence instead of NULL pointer for new blocks.
14861         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14862         (problem_BD): Add size of block info structure.
14863         * df-scan.c (df_scan_free_internal): Free block pool.
14864         (df_scan_set_bb_info): Remove.
14865         (df_scan_free_bb_info): Check for artificial_defs instead
14866         of bb_info being non-NULL.
14867         (df_scan_alloc): DO not create df_scan_block pool.
14868         (problem_SCAN): Set size of block info.
14869         (df_bb_refs_record): Do not allocate bb_info.
14870         * df.h (df_problem): Add block_info_elt_size.
14871         (struct dataflow): Change block_info to void *.
14872         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14873         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14874         in-line structures.
14875
14876 2010-06-12  Jan Hubicka  <jh@suse.cz>
14877
14878         PR tree-optimize/44485
14879         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14880         containing use of return value of noreturn function.
14881
14882 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14883
14884         * targhooks.c (default_function_value): Don't use
14885         FUNCTION_OUTGOING_VALUE.
14886         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14887         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14888
14889 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14890
14891         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14892         Add crtfastmath.o to extra_parts.
14893         * config/mips/crtfastmath.c: New.
14894         * config/mips/linux.h (ENDFILE_SPEC): New.
14895
14896 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14897
14898         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14899         old_type in parameter.
14900         (gcc_type_for_value): Update call to gcc_type_for_interval.
14901         (compute_type_for_level_1): Renamed compute_type_for_level.
14902         Update call to gcc_type_for_interval.
14903
14904 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14905
14906         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14907         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14908
14909 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14910
14911         * opts-common.c: Include options.h.
14912         (integral_argument): Move from opts.c.
14913         (decode_cmdline_option): New.  Based on read_cmdline_option.
14914         * opts.c (integral_argument): Move to opts-common.c.
14915         (read_cmdline_option): Move most contents to
14916         decode_cmdline_option.  Use %qs in diagnostics.
14917         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14918         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14919         decode_cmdline_option): New.
14920
14921 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14922
14923         PR target/44481
14924         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14925         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14926         (partiysi2_cmp): Ditto.
14927         (*partiyhi2_cmp): Ditto.
14928         (*parityqi2_cmp): Remove.
14929
14930 2010-06-11  Jan Hubicka  <jh@suse.cz>
14931
14932         * bitmap.h (bmp_iter_next_bit): New.
14933         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14934
14935 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14936             Eric Botcazou  <ebotcazou@adacore.com>
14937
14938         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14939         computed cost.
14940
14941 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14942
14943         * config/i386/i386.md (unspec): New define_c_enum.
14944         (unspecv): Ditto.
14945
14946 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14947
14948         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14949
14950 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14951
14952         PR middle-end/44483
14953         * tree-if-conv.c (bb_predicate_s): New struct.
14954         (bb_predicate_p): New.
14955         (bb_has_predicate): New.
14956         (bb_predicate): New.
14957         (set_bb_predicate): New.
14958         (bb_predicate_gimplified_stmts): New.
14959         (set_bb_predicate_gimplified_stmts): New.
14960         (add_bb_predicate_gimplified_stmts): New.
14961         (init_bb_predicate): New.
14962         (free_bb_predicate): New.
14963         (is_predicated): Use bb_predicate.
14964         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14965         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14966         before processing their successors.
14967         (clean_predicate_lists): Removed.
14968         (find_phi_replacement_condition): Use bb_predicate.
14969         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14970         computations.
14971         (insert_gimplified_predicates): New.
14972         (combine_blocks): Call insert_gimplified_predicates.
14973         (tree_if_conversion): Call free_bb_predicate instead of
14974         clean_predicate_lists.
14975
14976 2010-10-11  Paul Brook  <paul@codesourcery.com>
14977
14978         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14979         * config/arm/arm.c (all_architectures): Change v7e-m default to
14980         cortexm4.
14981         * config/arm/arm-cores.def: Add cortex-m4.
14982         * config/arm/arm-tune.md: Regenerate.
14983
14984 2010-06-11  Jan Hubicka  <jh@suse.cz>
14985
14986         * ipa-pure-const.c (special_builtlin_state): New function.
14987         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14988         (propagate_pure_const): Use it.
14989
14990 2010-06-11  Jan Hubicka  <jh@suse.cz>
14991
14992         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14993         (df_live_alloc): Initialize df_live_scratch when initializing
14994         problem_data.
14995         (df_live_transfer_function): Update uses of df_live_scratch.
14996         (df_live_free): Free problem_data; clear df_live_scratch before
14997         releasing the obstack.
14998         (df_md_free): Free problem data.
14999
15000 2010-06-11  Jan Hubicka  <jh@suse.cz>
15001
15002         * doc/invoke.texi (Wsuggest-attribute): Document.
15003         (Wmissing-noreturn): Remove.
15004         * ipa-pure-const.c (warn_function_noreturn): New function.
15005         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
15006         warn_missing_noreturn.
15007         * common.opt (Wsuggest-attribute=noreturn): New.
15008         * tree-flow.h (warn_function_noreturn): Declare.
15009         * tree-cfg.c (execute_warn_function_noreturn): Use
15010         warn_function_noreturn.
15011         (gate_warn_function_noreturn): New.
15012         (pass_warn_function_noreturn): Update.
15013
15014 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15015
15016         * c-typeck.c (handle_warn_cast_qual): Add loc
15017         parameter. Improve warning message.
15018         (build_c_cast): Pass location to handle_warn_cast_qual.
15019
15020 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
15021
15022         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
15023         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
15024         insn mnemonic.
15025         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
15026
15027 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
15028
15029         Fix bootstap on mips
15030         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
15031         be naming typedefs.
15032
15033 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
15034
15035         * system.h (helper_const_non_const_cast): New inline for
15036         gcc version <= 4.0.
15037         (CONST_CAST2): For gcc version <= 4.0 use
15038         new helper to do const/non-const casting.
15039
15040 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15041
15042         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
15043         * Makefile.in (OBJS-common): Include insn-enums.o.
15044         (insn-enums.o): New rule.
15045         (simple_generated_c): Add insn-enums.c.
15046         (build/genenums.o): New rule.
15047         (genprogmd): Add "enums".
15048         * genconstants.c (print_enum_type): Declare a C string array
15049         for each enum.
15050         * genenums.c: New file.
15051         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
15052         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
15053         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
15054
15055 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15056
15057         * doc/md.texi (define_enum_attr): Document.
15058         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
15059         * read-md.h (lookup_enum_type): Declare.
15060         * read-md.c (lookup_enum_type): New function.
15061         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
15062         * genattrtab.c (attr_desc): Add an enum_name field.
15063         (evaluate_eq_attr): Take the associated attribute as argument.
15064         Get the enum prefix from the enum_name field, if defined.
15065         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
15066         (simplify_test_exp): Pass attr to evaluate_eq_attr.
15067         (add_attr_value): New function, split out from...
15068         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
15069         (write_test_expr): Pass attr to evaluate_eq_attr.
15070         (write_attr_get): Use the enum_name as the enum tag, if defined.
15071         (write_attr_valueq): Use the enum_name as a prefix, if defined.
15072         (find_attr): Initialize enum_name.
15073         (main): Handle DEFINE_ENUM_ATTR.
15074         * gensupport.c (process_rtx): Likewise.
15075         * config/mips/mips.h (mips_tune_attr): Delete.
15076         * config/mips/mips.md (cpu): Use define_attr_enum.
15077
15078 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15079
15080         * doc/md.texi (define_c_enum, define_enum): Document.
15081         * read-md.h (md_constant): Add a parent_enum field.
15082         (enum_value, enum_type): New structures.
15083         (upcase_string, traverse_enum_types): Declare.
15084         * read-md.c (enum_types): New variable.
15085         (upcase_string, add_constant): New functions.
15086         (handle_constants): Don't create the hash table here.
15087         Use add_constant.
15088         (traverse_md_constants): Don't check for a null md_constants.
15089         (decimal_string, handle_enum, traverse_enum_types): New functions.
15090         (read_md_files): Initialize md_constants and md_enums.
15091         * genconstants.c (print_md_constant): Ignore info argument.
15092         Only print constants that belong to no enum.
15093         (print_enum_type): New function.
15094         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
15095         for each defined enum type.
15096         * config/mips/mips.md (processor): New define_enum.
15097         (unspec): New define_c_enum.
15098         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
15099         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
15100         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
15101         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
15102         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
15103         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
15104         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
15105         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
15106         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
15107         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
15108         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
15109         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
15110         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
15111         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
15112         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
15113         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
15114         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
15115         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
15116         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
15117         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
15118         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
15119         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
15120         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15121         (UNSPEC_RDDSP): Move to mips-dsp.md.
15122         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
15123         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
15124         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
15125         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
15126         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
15127         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
15128         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
15129         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
15130         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
15131         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
15132         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
15133         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
15134         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
15135         Moved to mips-dspr2.md.
15136         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
15137         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
15138         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
15139         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
15140         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
15141         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
15142         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15143         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15144         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15145         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15146         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15147         UNSPEC_LOONGSON_PSADBH)
15148         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15149         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15150         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
15151         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15152         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15153         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15154         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
15155         (cpu): Update comment.
15156         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
15157         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
15158         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
15159         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
15160         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
15161         UNSPEC_LOONGSON_PCMPEQ)
15162         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
15163         UNSPEC_LOONGSON_PINSR_0)
15164         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15165         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15166         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15167         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15168         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15169         UNSPEC_LOONGSON_PSADBH)
15170         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15171         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15172         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
15173         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15174         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15175         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15176         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
15177         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
15178         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
15179         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
15180         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
15181         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
15182         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
15183         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
15184         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
15185         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
15186         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
15187         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
15188         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
15189         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
15190         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
15191         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
15192         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
15193         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
15194         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
15195         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
15196         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15197         (UNSPEC_RDDSP): Moved from mips.md.
15198         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
15199         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
15200         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
15201         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
15202         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
15203         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
15204         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
15205         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
15206         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
15207         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
15208         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
15209         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
15210         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
15211         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
15212         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
15213         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
15214         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
15215         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
15216         (UNSPEC_SCC): Moved from mips.md.
15217         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
15218         "processor_type" to "processor".
15219         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
15220         * config/mips/mips.h (processor_type): Delete.
15221         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
15222         "processor_type" to "processor".
15223
15224 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15225
15226         * configure.ac (tm_include_list): Add insn-constants.h.
15227         * configure: Regenerate.
15228         * Makefile.in (GTM_H): Move insn-constants.h here from...
15229         (TM_H): ...here.
15230         * mkconfig.sh: Remove special handling for insn-constants.h.
15231
15232 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15233
15234         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
15235         (BUILD_MD): ...this new variable.
15236         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
15237         that include the old contents of simple_generated_h and
15238         simple_generated_c.
15239         (simple_generated_h, simple_generated_c): Include them.  Add
15240         insn-constants.h.
15241         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
15242         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
15243         Remove these dependencies from the main rule and include
15244         insn-conditions.md in the command line only if it appears
15245         in the dependency list.
15246         (insn-constants.h, s-constants): Delete.
15247         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
15248         or gensupport.h.
15249         (build/genmddeps.o): Likewise.
15250         (genprogrtl): New variable that contains everything from genprogmd
15251         except mddeps and constants.
15252         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
15253         depend on $(BUILD_MD)
15254         (genprog): New variable.  Make these programs depend on
15255         $(BUILD_ERRORS).
15256         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
15257         (main): Use read_md_files instead of init_rtx_reader_args.
15258         * genconstants.c: As for genmddeps.c.
15259         * read-md.h (read_skip_construct): Declare.
15260         * read-md.c (read_skip_construct): New function.
15261         (handle_file): Allow a null handle_directive, skipping the
15262         construct if so.
15263         (parse_include): Update the comment accordingly.
15264
15265 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15266
15267         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
15268         * genmddeps.c: Include read-md.h.
15269         (main): Call init_rtx_reader_args instead of init_md_reader_args.
15270         * genattr.c (main): Likewise.
15271         * genattrtab.c (main): Likewise.
15272         * genautomata.c (main): Likewise.
15273         * gencodes.c (main): Likewise.
15274         * genconditions.c (main): Likewise.
15275         * genconfig.c (main): Likewise.
15276         * genconstants.c (main): Likewise.
15277         * genemit.c (main): Likewise.
15278         * genextract.c (main): Likewise.
15279         * genflags.c (main): Likewise.
15280         * genopinit.c (main): Likewise.
15281         * genoutput.c (main): Likewise.
15282         * genpeep.c (main): Likewise.
15283         * genrecog.c (main): Likewise.
15284         * genpreds.c (main): Likewise.
15285         * gensupport.h (in_fname): Move to read-md.h.
15286         (init_md_reader_args_cb): Rename to...
15287         (init_rtx_reader_args_cb): ...this and return a bool.
15288         (init_md_reader_args): Rename to...
15289         (init_rtx_reader_args): ...this and return a bool.
15290         (include_callback): Move to read-md.h.
15291         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
15292         (file_name_list, first_dir_md_include): Move to read-md.c
15293         (first_bracket_include): Delete unused variable.
15294         (last_dir_md_include): Move to read-md.c.
15295         (process_include): Delete, moving code to read-md.c:handle_include.
15296         (process_rtx): Don't handle INCLUDE.
15297         (save_string): Delete.
15298         (rtx_handle_directive): New function.
15299         (init_md_reader_args_cb): Rename to...
15300         (init_rtx_reader_args_cb): ...this and return a boolean success value.
15301         Use read_md_args.
15302         (init_md_reader_args): Rename to...
15303         (init_rtx_reader_args): ...this and return a boolean success value.
15304         * rtl.def (INCLUDE): Delete.
15305         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
15306         argument.
15307         * read-rtl.c (read_conditions): Don't gobble ')' here.
15308         (read_mapping): Likewise.
15309         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
15310         Handle top-level non-rtx constructs here rather than in read_rtx_1.
15311         Store the whole queue in *X.  Remove call to init_md_reader.
15312         (read_rtx_1): Rename to...
15313         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
15314         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
15315         here.
15316         (read_nested_rtx): New function.  Handle (nil) here rather than
15317         in read_rtx_code.
15318         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
15319         gobble ')' here.
15320         * read-md.h (directive_handler_t): New type.
15321         (in_fname, include_callback): Moved from read-md.h.
15322         (read_constants, init_md_reader): Delete.
15323         (read_md_files): Declare.
15324         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
15325         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
15326         from gensupport.c.
15327         (read_constants): Rename to...
15328         (handle_constants): ...this.  Don't gobble ')' here.
15329         (handle_include, handle_file, handle_toplevel_file)
15330         (parse_include): New functions, mostly taken from gensupport.c.
15331         (init_md_reader): Subsume into...
15332         (read_md_files): ...this new function.
15333
15334 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15335
15336         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
15337         (unread_char): Decrement read_md_lineno after putting back '\n'.
15338         * read-md.c (fatal_with_file_and_line): Push back any characters
15339         that we decide not to add to the context.
15340         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
15341         fatal_expected_char in cases where '/' ends a line (for example).
15342         (read_name): Don't increment read_md_lineno here.
15343         (read_escape): Likewise.
15344         (read_quoted_string): Likewise.
15345         (read_braced_string): Likewise.
15346
15347 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15348
15349         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
15350         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
15351         * genconstants.c: Include read-md.h.
15352         * read-rtl.c (md_constants): Move to read-md.c.
15353         (md_name): Move to read-md.h.
15354         (initialize_iterators): Use leading_string_hash instead of def_hash
15355         and leading_string_eq_p instead of def_name_eq_p.
15356         (read_name): Move to read-md.c.
15357         (def_hash, def_name_eq_p): Delete.
15358         (read_constants, traverse_md_constants): Move to read-md.c.
15359         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
15360         * read-md.h: Include hashtab.h.
15361         (md_name): Moved from read-rtl.c.
15362         (md_constant): Moved from read-md.h.
15363         (leading_string_hash, leading_string_eq_p, read_name)
15364         (read_constants, traverse_md_constants): Declare.
15365         * read-md.c (md_constants): Moved from read-rtl.c.
15366         (leading_string_hash, leading_string_eq_p): New functions.
15367         (read_name, read_constants, traverse_md_constants): Moved from
15368         read-rtl.c.
15369
15370 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15371
15372         * read-rtl.c (md_name): New structure.
15373         (read_name): Take an md_name instead of a buffer pointer.
15374         Use the "string" field instead of strcpy when expanding constants.
15375         (read_constants): Remove the tmp_char argument.  Update the calls
15376         to read_name, using two local name buffers instead of the tmp_char
15377         argument.  Merge the constant-creation code.
15378         (read_conditions): Remove the tmp_char argument.  Update the calls
15379         to read_name, using a local name buffer instead of the tmp_char
15380         argument.
15381         (read_mapping): Replace tmp_char variable with a local name buffer.
15382         Update the calls to read_name.
15383         (read_rtx_1): Likewise.  Update the calls to read_constants and
15384         read_conditions.
15385
15386 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15387
15388         * Makefile.in (build/read-md.o): Depend on errors.h.
15389         * read-md.h (error_with_line): Declare.
15390         * read-md.c: Include errors.h.
15391         (message_with_line_1): New function, extracted from...
15392         (message_with_line): ...here.
15393         (error_with_line): New function.
15394         * genattrtab.c: If a call to message_with_line is followed by
15395         "have_error = 1;", replace both statements with a call to
15396         error_with_line.
15397         * genoutput.c: Likewise.
15398         * genpreds.c: Likewise.
15399         * genrecog.c: If a call to message_with_line is followed by
15400         "error_count++;", replace both statements with a call to
15401         error_with_line.
15402         (errorcount): Delete.
15403         (main): Don't check it.
15404         * gensupport.c: If a call to message_with_line is followed by
15405         "errors = 1;", replace both statements with a call to error_with_line.
15406         (errors): Delete.
15407         (process_define_cond_exec): Check have_error instead of errors.
15408         (init_md_reader_args_cb): Likewise.  Don't set errors.
15409
15410 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15411
15412         * read-md.h (read_md_file): Declare.
15413         (read_char, unread_char): New functions.
15414         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15415         (read_quoted_string, read_string): Remove FILE * argument.
15416         * read-md.c (read_md_file): New variable.
15417         (read_md_filename, read_md_lineno): Update comments and remove
15418         unnecessary initialization.
15419         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15420         (read_escape, read_quoted_string, read_braced_string, read_string):
15421         Remove FILE * argument.  Update calls accordingly, using read_char
15422         and unread_char instead of getc and ungetc.
15423         * rtl.h (read_rtx): Remove FILE * argument.
15424         * read-rtl.c (iterator_group): Remove FILE * argument from
15425         "find_builtin".
15426         (iterator_traverse_data): Remove "infile" field.
15427         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
15428         (add_mapping, read_name, read_constants, read_conditions)
15429         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
15430         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
15431         Remove file arguments from all calls, using read_char and unread_char
15432         instead of getc and ungetc.
15433         * gensupport.c (process_include): Preserve read_md_file around
15434         the include.  Set read_md_file to the handle of the included file.
15435         Update call to read_rtx.
15436         (init_md_reader_args_cb): Set read_md_file to the handle of the file
15437         and remove local FILE *.  Update calls to read_rtx.
15438
15439 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15440
15441         * read-md.h (read_rtx_lineno): Rename to...
15442         (read_md_lineno): ...this.
15443         (read_rtx_filename): Rename to...
15444         (read_md_filename): ...this.
15445         (copy_rtx_ptr_loc): Rename to...
15446         (copy_md_ptr_loc): ...this.
15447         (print_rtx_ptr_loc): Rename to...
15448         (print_md_ptr_loc): ...this.
15449         * read-md.c: Likewise.  Update references after renaming.
15450         (string_obstack): Replace RTL with MD in comment.
15451         (set_rtx_ptr_loc): Rename to...
15452         (set_md_ptr_loc): ...this.
15453         (get_rtx_ptr_loc): Rename to...
15454         (get_md_ptr_loc): ...this.
15455         * genconditions.c: Update references after renaming.
15456         * genemit.c: Likewise.
15457         * genoutput.c: Likewise.
15458         * genpreds.c: Likewise.
15459         * gensupport.c: Likewise.
15460         * read-rtl.c: Likewise.
15461
15462 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15463
15464         * Makefile.in (READ_MD_H): New variable.
15465         (BUILD_RTL): Add build/read-md.o.
15466         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15467         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15468         (build/genattrtab.o, build/genconditions.o build/genemit.o)
15469         (build/genextract.o, build/genflags.o, build/genoutput.o)
15470         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15471         (build/read-md.o): New rule.
15472         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15473         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15474         * coretypes.h: ...here.
15475         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15476         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15477         * genattr.c: Include read-md.h.
15478         * genattrtab.c: Likewise.
15479         * genconditions.c: Likewise.
15480         * genemit.c: Likewise.
15481         * genextract.c: Likewise.
15482         * genflags.c: Likewise.
15483         * genoutput.c: Likewise.
15484         * genpreds.c: Likewise.
15485         * genrecog.c: Likewise.
15486         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15487         (join_c_conditions, print_c_condition, read_rtx_filename)
15488         (read_rtx_lineno): Move to read-md.h.
15489         * read-rtl.c: Include read-md.h.
15490         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15491         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15492         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15493         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15494         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15495         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15496         (read_braced_string, read_string): Move to read-md.c.
15497         (read_rtx): Move some initialization to init_md_reader and call
15498         init_md_reader here.
15499         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15500         Move to read-md.h.
15501         * gensupport.c: Include read-md.h.
15502         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15503         * read-md.h, read-md.c: New files.
15504
15505 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
15506
15507         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15508         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15509         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15510         * config/moxie/moxie.c (moxie_function_value): Make static.
15511         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15512         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15513
15514 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15515
15516         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15517         * dbgcnt.def (tree_sra): New counter.
15518         * tree-sra.c: Include dbgcnt.h.
15519         (gate_intra_sra): Check tree_sra debug counter.
15520
15521 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15522
15523         PR tree-optimization/44258
15524         * tree-sra.c (build_access_subtree): Return false iff there is a
15525         partial overlap.
15526         (build_access_trees): Likewise.
15527         (analyze_all_variable_accesses): Disqualify candidates if
15528         build_access_trees returns true for them.
15529
15530 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
15531
15532         PR debug/41371
15533         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15534         tail-recurse into canonical node.  Fast-forward over
15535         non-canonical VALUEs.
15536
15537 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15538
15539         PR boostrap/44470
15540         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15541         (*addsi_1_zext) <TYPE_LEA>: Likewise.
15542         (add lea splitter): Likewise.
15543         (add_zext lea splitter): Likewise.
15544
15545 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
15546
15547         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15548
15549 2010-06-10  Jan Hubicka  <jh@suse.cz>
15550
15551         * df-problems.c (df_live_problem_data): Add live_bitmaps.
15552         (df_live_alloc): Initialize problem data and live_osbtacks.
15553         (df_live_finalize): Remove obstack, problem data; do not
15554         clear all bitmaps.
15555         (df_live_top_dump, df_live_bottom_dump): Do not dump old
15556         data when not allocated.
15557         (df_live_verify_solution_start): Do not allocate problem data.
15558         (df_live_verify_solution_end): Check if out is allocated.
15559         (struct df_md_problem_data): New structure.
15560         (df_md_alloc): Allocate problem data.
15561         (df_md_free): Free problem data; do not clear bitmaps.
15562
15563 2010-06-10  Jan Beulich  <jbeulich@novell.com>
15564
15565         PR bootstrap/37304
15566         * configure.ac: Replace $() with ${} when intending to expand
15567         variables rather than invoking commands.
15568         * configure: Re-generate.
15569
15570 2010-06-10  Jan Hubicka  <jh@suse.cz>
15571
15572         PR rtl-optimization/44460
15573         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15574         TYPE_NEEDS_CONSTRUCTING sanity check.
15575
15576 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
15577
15578         * doc/include/fdl.texi: Move to GFDL version 1.3.
15579
15580         * doc/cpp.texi: Move to GFDL version 1.3.
15581         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
15582         * doc/gccint.texi: Move to GFDL version 1.3.
15583         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
15584         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
15585         * doc/invoke.texi: Move to GFDL version 1.3.
15586
15587 2010-06-09  Jan Hubicka  <jh@suse.cz>
15588
15589         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15590         Break out from ...
15591         (propagate) ... here; swap the order.
15592
15593 2010-06-09  Jan Hubicka  <jh@suse.cz>
15594
15595         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15596         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15597         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15598         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15599
15600 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15601
15602         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15603         Do not the gather memory reference in the outer loop if the step
15604         is not a constant.
15605
15606 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15607
15608         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15609         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15610         8 to 4.  Minor change of the related comments.
15611
15612 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15613
15614         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15615         the scev analysis when the variable is not used outside the loop
15616         in a close phi node: call compute_overall_effect_of_inner_loop.
15617
15618 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15619
15620         * graphite-sese-to-poly.c (single_pred_cond): Renamed
15621         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
15622         (build_sese_conditions_before): Renamed call to single_pred_cond.
15623         (build_sese_conditions_after): Same.
15624
15625 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15626
15627         * graphite-poly.h: Fix comments and indentation.
15628         * graphite-sese-to-poly.c: Same.
15629         (build_sese_conditions_before): Compute stmt and gbb only when needed.
15630         * tree-chrec.c: Fix comments and indentation.
15631         (tree-ssa-loop-niter.c): Same.
15632
15633 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15634
15635         PR rtl-optimization/42461
15636         * dce.c (deletable_insn_p): Return true for const or pure calls again.
15637         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15638
15639 2010-06-09  Jan Hubicka  <jh@suse.cz>
15640
15641         * bitmap.c (bitmap_and): Walk array forward.
15642         (bitmap_and_compl_into): Likewise.
15643         (bitmap_xor): Likewise.
15644         (bitmap_xor_into):  Likewise.
15645         (bitmap_equal_p): Likewise.
15646         (bitmap_intersect_p): Likewise.
15647         (bitmap_intersect_compl_p): Likewise.
15648         (bitmap_ior_and_into): Likewise.
15649         (bitmap_elt_copy): Likewise.
15650         (bitmap_and_compl): Likewise.
15651         (bitmap_elt_ior): Likewise.
15652
15653 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
15654
15655         * opts-common.c (prune_options): Ensure replacement argv array
15656         is correctly terminated by a NULL entry.
15657
15658 2010-06-09  Jan Hubicka  <jh@suse.cz>
15659
15660         * cgraph.h (varpool_first_static_initializer,
15661         varpool_next_static_initializer): Make checking only when
15662         checking enabled.
15663         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15664         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15665         gcc_assert to gcc_checking_assert.
15666         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15667         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15668         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15669         op_iter_init_phiuse, op_iter_init_phidef,
15670         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15671         gcc_checking_assert.
15672         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15673         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15674         partition_is_global, live_on_entry, live_on_exit,
15675         live_merge_and_clear): Likewise.
15676         * system.h (gcc_checking_assert): New macro.
15677         * gimple.h (set_bb_seq): Use gcc_checking_assert.
15678
15679 2010-06-09  Jason Merrill  <jason@redhat.com>
15680
15681         * Makefile.in (TAGS): Collect tags info from c-family.
15682
15683 2010-06-09  Jan Hubicka  <jh@suse.cz>
15684
15685         * gimple.h (gcc_gimple_checking_assert): New macro.
15686         (gimple_set_def_ops, gimple_set_use_ops,
15687         gimple_set_vuse, gimple_set_vdef,
15688         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15689         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15690         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15691         gimple_asm_output_op, gimple_asm_output_op_ptr,
15692         gimple_asm_set_output_op, gimple_asm_clobber_op,
15693         gimple_asm_set_clobber_op, gimple_asm_label_op,
15694         gimple_asm_set_label_op, gimple_try_set_kind,
15695         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15696         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15697         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15698         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15699         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15700         gimple_omp_for_set_initial, gimple_omp_for_final,
15701         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15702         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15703         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15704         conditional with ENABLE_GIMPLE_CHECKING.
15705         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15706
15707 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
15708
15709         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15710         (get_computation_cost_at): Use it.
15711         (determine_use_iv_cost_condition): Likewise.
15712         (determine_iv_cost): Likewise.
15713
15714 2010-06-09  Richard Guenther  <rguenther@suse.de>
15715
15716         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15717         replace constants.
15718
15719 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
15720
15721         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15722
15723 2010-06-09  Martin Jambor  <mjambor@suse.cz>
15724
15725         PR tree-optimization/44423
15726         * tree-sra.c (dump_access): Dump also grp_assignment_read.
15727         (analyze_access_subtree): Pass negative allow_replacements to children
15728         if the current type is scalar.
15729
15730 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15731
15732         PR testsuite/42843
15733         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15734         * doc/plugins.texi (Plugin license check): Update information
15735         on type of plugin_is_GPL_compatible.
15736         * Makefile.in (PLUGINCC): Define as $(COMPILER).
15737         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15738
15739 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15740
15741         * config/arm/arm.c (thumb2_reorg): New function.
15742         (arm_reorg): Call it.
15743         * config/arm/thumb2.md (define_peephole2 for flag clobbering
15744         arithmetic operations): Delete.
15745
15746 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
15747
15748         PR target/44067
15749         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15750         e500v2 target.
15751
15752 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15753
15754         PR plugins/44459
15755         * gcc-plugin.h: Encapsulate all declarations in extern "C".
15756
15757 2010-06-08  Jan Hubicka  <jh@suse.cz>
15758
15759         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15760         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15761
15762 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
15763
15764         PR tree-optimization/39874
15765         PR middle-end/28685
15766         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15767         Declare.
15768         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15769         same_bool_result_p): New.
15770         (and_var_with_comparison, and_var_with_comparison_1,
15771         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15772         (or_var_with_comparison, or_var_with_comparison_1,
15773         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15774         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15775         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15776         of combine_comparisons.
15777         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15778
15779 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
15780
15781         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15782         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15783         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15784         pdp11_function_value_regno_p): New functions.
15785         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15786         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15787
15788 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
15789
15790         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15791         Thumb-2 in the MINUS case.
15792
15793 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15794
15795         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15796
15797         * doc/gty.texi (GTY Options): Document typed GC allocation and
15798         variable_size GTY option.
15799
15800         * ggc-internal.h: New.
15801
15802         * ggc.h: Update copyright year.
15803         (digit_string): Move to stringpool.c.
15804         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15805         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15806         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15807         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15808         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15809         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15810         (ggc_force_collect, ggc_get_size, ggc_statistics)
15811         (ggc_print_common_statistics): Move to ggc-internal.h.
15812         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15813         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15814         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15815         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15816         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15817         (ggc_alloc_zone_pass_stat): Remove.
15818         (ggc_internal_alloc_stat, ggc_internal_alloc)
15819         (ggc_internal_cleared_alloc_stat): New.
15820         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15821         (ggc_internal_vec_alloc_stat)
15822         (ggc_internal_cleared_vec_alloc_stat)
15823         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15824         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15825         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15826         (ggc_cleared_alloc_ptr_array_two_args): New.
15827         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15828         (ggc_splay_alloc): Change the type of the first argument to
15829         enum gt_types_enum.
15830         (ggc_alloc_string): Make macro.
15831         (ggc_alloc_string_stat): New.
15832         (ggc_strdup): Redefine.
15833         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15834         (ggc_alloc_rtvec_sized): New.
15835         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15836         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15837         (ggc_internal_cleared_alloc_zone_stat)
15838         (ggc_internal_zone_alloc_stat)
15839         (ggc_internal_zone_cleared_alloc_stat)
15840         (ggc_internal_zone_vec_alloc_stat)
15841         (ggc_alloc_zone_rtx_def_stat)
15842         (ggc_alloc_zone_tree_node_stat)
15843         (ggc_alloc_zone_cleared_tree_node_stat)
15844         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15845
15846         * ggc-common.c: Include ggc-internal.h.
15847         (ggc_internal_cleared_alloc_stat): Rename from
15848         ggc_alloc_cleared_stat.
15849         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15850         (ggc_calloc): Remove.
15851         (ggc_cleared_alloc_htab_ignore_args): New.
15852         (ggc_cleared_alloc_ptr_array_two_args): New.
15853         (ggc_splay_alloc): Add obj_type parameter.
15854         (init_ggc_heuristics): Formatting fixes.
15855
15856         * ggc-none.c: Update copyright year.
15857         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15858         (ggc_alloc_cleared_stat): Rename to
15859         ggc_internal_cleared_alloc_stat.
15860         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15861
15862         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15863         Remove references to ggc_alloc in comments.
15864         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15865         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15866         (new_ggc_zone, destroy_ggc_zone): Remove.
15867         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15868
15869         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15870         ggc_alloc in comments.
15871         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15872         (ggc_internal_alloc_zone_pass_stat): New.
15873         (ggc_internal_cleared_alloc_zone_stat): New.
15874         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15875         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15876         (new_ggc_zone, destroy_ggc_zone): Remove.
15877
15878         * stringpool.c: Update copyright year.  Include ggc-internal.h
15879         (digit_vector): Make static.
15880         (digit_string): Moved from ggc.h.
15881         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15882         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15883
15884         * Makefile.in (GGC_INTERNAL_H): New.
15885         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15886         $(GGC_INTERNAL_H) to dependencies.
15887
15888         * gentype.c: Update copyright year.
15889         (walk_type): Accept variable_size GTY option.
15890         (USED_BY_TYPED_GC_P): New macro.
15891         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15892         whitespace at the end of strings.
15893         (get_type_specifier, variable_size_p): New functions.
15894         (alloc_quantity, alloc_zone): New enums.
15895         (write_typed_alloc_def): New function.
15896         (write_typed_struct_alloc_def): Likewise.
15897         (write_typed_typed_typedef_alloc_def): Likewise.
15898         (write_typed_alloc_defns): Likewise.
15899         (output_typename, write_splay_tree_allocator_def): Likewise.
15900         (write_splay_tree_allocators): Likewise.
15901         (main): Call write_typed_alloc_defns and
15902         write_splay_tree_allocators.
15903
15904         * lto-streamer.h (lto_file_decl_data_ptr): New.
15905
15906         * passes.c (order): Define using cgraph_node_ptr.
15907
15908         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15909         ht_identifier_ptr.
15910
15911         * gimple.h (union gimple_statement_d): Likewise.
15912
15913         * rtl.h (struct rtx_def): Likewise.
15914         (struct rtvec_def): Likewise.
15915
15916         * tree.h (union tree_node): Likewise.
15917
15918         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15919
15920         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15921
15922         * tree-scalar-evolution.c (scev_initialize): Likewise.
15923
15924         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15925
15926         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15927
15928         * omp-low.c (lower_omp_critical): Likewise.
15929
15930         * bitmap.h (struct bitmap_head_def): Update comment to not
15931         reference ggc_alloc.
15932
15933         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15934
15935         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15936
15937         * ipa-prop.c (duplicate_ggc_array): Rename to
15938         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15939         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15940
15941         * gimple.c (gimple_alloc_stat): Use
15942         ggc_alloc_cleared_gimple_statement_d_stat.
15943
15944         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15945
15946         * tree.c (make_node_stat): Use
15947         ggc_alloc_zone_cleared_tree_node_stat.
15948         (make_tree_vec_stat): Likewise.
15949         (build_vl_exp_stat): Likewise.
15950         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15951         (make_tree_binfo_stat): Likewise.
15952         (tree_cons_stat): Likewise.
15953
15954         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15955         (shallow_copy_rtx_stat): Likewise.
15956         (make_node_stat): Likewise.
15957
15958         * lto-symtab.c: Fix comment.
15959
15960         * tree-cfg.c (create_bb): Update comment to not reference
15961         ggc_alloc_cleared.
15962         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15963
15964         * varpool.c (varpool_node): Use typed GC allocation.
15965         (varpool_extra_name_alias): Likewise.
15966
15967         * varasm.c (emutls_decl): Likewise.
15968         (get_unnamed_section): Likewise.
15969         (get_noswitch_section): Likewise.
15970         (get_section): Likewise.
15971         (get_block_for_section): Likewise.
15972         (build_constant_desc): Likewise.
15973         (create_constant_pool): Likewise.
15974         (force_const_mem): Likewise.
15975
15976         * tree.c (build_vl_exp_stat): Likewise.
15977         (build_real): Likewise.
15978         (build_string): Likewise.
15979         (decl_debug_expr_insert): Likewise.
15980         (decl_value_expr_insert): Likewise.
15981         (type_hash_add): Likewise.
15982         (build_omp_clause): Likewise.
15983
15984         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15985
15986         * tree-ssa.c (init_tree_ssa): Likewise.
15987
15988         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15989
15990         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15991
15992         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15993
15994         * tree-ssa-alias.c (get_ptr_info): Likewise.
15995
15996         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15997
15998         * tree-phinodes.c (allocate_phi_node): Likewise.
15999
16000         * tree-iterator.c (tsi_link_before): Likewise.
16001         (tsi_link_after): Likewise.
16002
16003         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16004
16005         * tree-dfa.c (create_var_ann): Likewise.
16006
16007         * tree-cfg.c (create_bb): Likewise.
16008
16009         * toplev.c (alloc_for_identifier_to_locale): Likewise.
16010         (general_init): Likewise.
16011
16012         * stringpool.c (stringpool_ggc_alloc): Likewise.
16013         (gt_pch_save_stringpool): Likewise.
16014
16015         * sese.c (if_region_set_false_region): Likewise.
16016
16017         * passes.c (do_per_function_toporder): Likewise.
16018
16019         * optabs.c (set_optab_libfunc): Likewise.
16020         (set_conv_libfunc): Likewise.
16021
16022         * lto-symtab.c (lto_symtab_register_decl): Likewise.
16023
16024         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16025         (input_eh_region): Likewise.
16026         (input_eh_lp): Likewise.
16027         (make_new_block): Likewise.
16028         (unpack_ts_real_cst_value_fields): Likewise.
16029
16030         * lto-section-in.c (lto_new_in_decl_state): Likewise.
16031
16032         * lto-cgraph.c (input_node_opt_summary): Likewise.
16033
16034         * loop-init.c (loop_optimizer_init): Likewise.
16035
16036         * lambda.h (lambda_vector_new): Likewise.
16037
16038         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
16039
16040         * ira.c (update_equiv_regs): Likewise.
16041
16042         * ipa.c (cgraph_node_set_new): Likewise.
16043         (cgraph_node_set_add): Likewise.
16044         (varpool_node_set_new): Likewise.
16045         (varpool_node_set_add): Likewise.
16046
16047         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
16048         (duplicate_ipa_jump_func_array): Likewise.
16049         (ipa_read_node_info): Likewise.
16050
16051         * ipa-cp.c (ipcp_create_replace_map): Likewise.
16052
16053         * integrate.c (get_hard_reg_initial_val): Likewise.
16054
16055         * gimple.c (gimple_alloc_stat): Likewise.
16056         (gimple_build_omp_for): Likewise.
16057         (gimple_seq_alloc): Likewise.
16058         (gimple_copy): Likewise.
16059
16060         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
16061         (gsi_insert_after_without_update): Likewise.
16062
16063         * function.c (add_frame_space): Likewise.
16064         (insert_temp_slot_address): Likewise.
16065         (assign_stack_temp_for_type): Likewise.
16066         (allocate_struct_function): Likewise.
16067         (types_used_by_var_decl_insert): Likewise.
16068
16069         * except.c (init_eh_for_function): Likewise.
16070         (gen_eh_region): Likewise.
16071         (gen_eh_region_catch): Likewise.
16072         (gen_eh_landing_pad): Likewise.
16073         (add_call_site): Likewise.
16074
16075         * emit-rtl.c (get_mem_attrs): Likewise.
16076         (get_reg_attrs): Likewise.
16077         (start_sequence): Likewise.
16078         (init_emit): Likewise.
16079
16080         * dwarf2out.c (new_cfi): Likewise.
16081         (queue_reg_save): Likewise.
16082         (dwarf2out_frame_init): Likewise.
16083         (new_loc_descr): Likewise.
16084         (find_AT_string): Likewise.
16085         (new_die): Likewise.
16086         (add_var_loc_to_decl): Likewise.
16087         (clone_die): Likewise.
16088         (clone_as_declaration): Likewise.
16089         (break_out_comdat_types): Likewise.
16090         (new_loc_list): Likewise.
16091         (loc_descriptor): Likewise.
16092         (add_loc_descr_to_each): Likewise.
16093         (add_const_value_attribute): Likewise.
16094         (tree_add_const_value_attribute): Likewise.
16095         (add_comp_dir_attribute): Likewise.
16096         (add_name_and_src_coords_attributes): Likewise.
16097         (lookup_filename): Likewise.
16098         (store_vcall_insn): Likewise.
16099         (dwarf2out_init): Likewise.
16100
16101         * dbxout.c (dbxout_init): Likewise.
16102
16103         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16104
16105         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16106
16107         * config/score/score7.c (score7_output_external): Likewise.
16108
16109         * config/score/score3.c (score3_output_external): Likewise.
16110
16111         * config/s390/s390.c (s390_init_machine_status): Likewise.
16112
16113         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16114         (rs6000_init_machine_status): Likewise.
16115         (output_toc): Likewise.
16116
16117         * config/pa/pa.c (pa_init_machine_status): Likewise.
16118         (get_deferred_plabel): Likewise.
16119
16120         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16121
16122         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16123
16124         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16125
16126         * config/mep/mep.c (mep_init_machine_status): Likewise.
16127         (mep_note_pragma_flag): Likewise.
16128
16129         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16130
16131         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16132
16133         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16134
16135         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16136         (i386_pe_maybe_record_exported_symbol): Likewise.
16137
16138         * config/i386/i386.c (get_dllimport_decl): Likewise.
16139         (ix86_init_machine_status): Likewise.
16140         (assign_386_stack_local): Likewise.
16141
16142         * config/frv/frv.c (frv_init_machine_status): Likewise.
16143
16144         * config/darwin.c (machopic_indirection_name): Likewise.
16145
16146         * config/cris/cris.c (cris_init_machine_status): Likewise.
16147
16148         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16149
16150         * config/avr/avr.c (avr_init_machine_status): Likewise.
16151
16152         * config/arm/arm.c (arm_init_machine_status): Likewise.
16153
16154         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16155         (alpha_need_linkage): Likewise.
16156         (alpha_use_linkage): Likewise.
16157
16158         * cgraph.c (cgraph_allocate_node): Likewise.
16159         (cgraph_create_edge_1): Likewise.
16160         (cgraph_create_indirect_edge): Likewise.
16161         (cgraph_add_asm_node): Likewise.
16162
16163         * cfgrtl.c (init_rtl_bb_info): Likewise.
16164
16165         * cfgloop.c (alloc_loop): Likewise.
16166         (rescan_loop_exit): Likewise.
16167
16168         * cfg.c (init_flow): Likewise.
16169         (alloc_block): Likewise.
16170         (unchecked_make_edge): Likewise.
16171
16172         * c-parser.c (c_parse_init): Likewise.
16173         (c_parse_file): Likewise.
16174
16175         * c-decl.c (bind): Likewise.
16176         (record_inline_static): Likewise.
16177         (push_scope): Likewise.
16178         (make_label): Likewise.
16179         (lookup_label_for_goto): Likewise.
16180         (finish_struct): Likewise.
16181         (finish_enum): Likewise.
16182         (c_push_function_context): Likewise.
16183
16184         * bitmap.c (bitmap_element_allocate): Likewise.
16185         (bitmap_gc_alloc_stat): Likewise.
16186
16187         * alias.c (record_alias_subset): Likewise.
16188         (init_alias_analysis): Likewise.
16189
16190 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
16191
16192         * fold-const.c (fold_comparison): Remove redundant parenthesis.
16193         * tree-inline.c (expand_call_inline): Pass translated return value of
16194         cgraph_inline_failed_string to diagnostic function.
16195
16196 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
16197             Shujing Zhao  <pearly.zhao@oracle.com>
16198
16199         PR c/37724
16200         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
16201         implicit bad conversions is initialization.
16202         (error_init): Use gmsgid instead of msgid for argument name and change
16203         the call for error.
16204         (pedwarn_init): Use gmsgid instead of msgid for argument name and
16205         change the call for pedwarn.
16206         (warning_init): Use gmsgid instead of msgid for argument name and
16207         change the call for warning.
16208
16209 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
16210
16211         * config/mips/mips-protos.h (mips_print_operand): Delete.
16212         (mips_print_operand_address): Delete.
16213         * config/mips/mips.h (mips_print_operand_punct): Delete.
16214         (PRINT_OPERAND): Delete.
16215         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16216         (PRINT_OPERAND_ADDRESS): Delete.
16217         * config/mips/mips.c (mips_print_operand_punct): Make static.
16218         (mips_print_operand_address): Make static.
16219         (mips_print_operand): Make static.  Call
16220         mips_print_operand_punct_valid_p.
16221         (mips_print_operand_punct_valid_p): New function.
16222         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16223         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16224
16225 2010-06-07  Jan Hubicka  <jh@suse.cz>
16226
16227         PR middle-end/44454
16228         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
16229         are allocated.
16230
16231 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16232
16233         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
16234         name of RECORD.
16235
16236 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16237
16238         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16239         attributes): Document gas.
16240
16241 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
16242
16243         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
16244         <TYPE_LEA>: Split instruction.
16245         <default>: Remove alternative 2 handling.
16246         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
16247         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
16248         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
16249
16250         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
16251         (ashift_zext lea splitter): Use DImode for multiplication.
16252
16253         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
16254         to generate addition.
16255
16256 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
16257
16258         * common.opt (fira-verbose): Use Var.
16259         (fpcc-struct-return): Use Init instead of VarExists.
16260         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
16261         toplev.c.
16262         * flags.h (flag_signed_char, flag_short_enums,
16263         flag_pcc_struct_return, flag_ira_verbose,
16264         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
16265         * toplev.c (flag_detailed_statistics, flag_signed_char,
16266         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
16267         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
16268         * toplev.h (flag_crossjumping, flag_if_conversion,
16269         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
16270         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
16271         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
16272         flag_cprop_registers, time_report, flag_ira_loop_pressure,
16273         flag_ira_coalesce, flag_ira_move_spills,
16274         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
16275
16276 2010-06-07  Jan Hubicka  <jh@suse.cz>
16277
16278         * df-core.c (df_analyze_problem): Do verification after allocation.
16279
16280         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
16281         (df_lr_alloc): Initialize problem data; move bitmaps to
16282         lr_bitmaps obstack.
16283         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
16284         (df_lr_verify_solution_start): Do not initialize problem data;
16285         allocate bitmaps in lr_bitmaps.
16286         (df_lr_verify_solution_end): Do not free problem data.
16287
16288 2010-06-07  Jan Hubicka  <jh@suse.cz>
16289
16290         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
16291         if caller is noreturn.
16292         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
16293         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
16294         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
16295         * ipa-pure-const.c (check_decl): Add IPA parameter.
16296         (state_from_flags): New function.
16297         (better_state, worse_state): New functions.
16298         (check_call): When in IPA mode, do not care about callees.
16299         (check_load, check_store): Update.
16300         (check_ipa_load, check_ipa_store): New.
16301         (check_stmt): When in IPA mode, use IPA checkers.
16302         (analyze_function): Use state_from_flags.
16303         (propagate): Check indirect edges and references.
16304
16305 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
16306
16307         PR rtl-optimization/44404
16308         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
16309         of count_occurrences to see if it's safe to modify mem_insn.
16310
16311 2010-06-07  Richard Guenther  <rguenther@suse.de>
16312
16313         * gimplify.c (gimplify_cleanup_point_expr): For empty body
16314         and EH-only cleanup drop the cleanup instead of inserting it
16315         unconditionally.
16316
16317 2010-06-07  Ira Rosen  <irar@il.ibm.com>
16318
16319         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
16320         documentation.
16321         * targhooks.c (default_builtin_vectorization_cost): New function.
16322         * targhooks.h (default_builtin_vectorization_cost): Declare.
16323         * target.h (enum vect_cost_for_stmt): Define.
16324         (builtin_vectorization_cost): Change argument and comment.
16325         * tree-vectorizer.h: Remove cost model macros.
16326         * tree-vect-loop.c: Include target.h.
16327         (vect_get_cost): New function.
16328         (vect_estimate_min_profitable_iters): Replace cost model macros with
16329         calls to vect_get_cost.
16330         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
16331         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
16332         default implementation.
16333         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
16334         calls to target hook builtin_vectorization_cost.
16335         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
16336         Likewise.
16337         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
16338         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
16339         implementation to return costs.
16340         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16341         * config/spu/spu.h: Remove vectorizer cost model macros.
16342         * config/i386/i386.h: Likewise.
16343         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
16344         a call to target hook builtin_vectorization_cost.
16345
16346 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
16347
16348         PR target/44319
16349         * config/i386/i386.c (override_options): Turn zee pass on for level 2
16350         and above and defer till target is known.
16351         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
16352         turn off otherwise.
16353
16354 2010-05-25  Jan Hubicka  <jh@suse.cz>
16355
16356         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
16357         (df_compact_blocks): Likewise.
16358         * df.h (struct df): Turn hardware_regs_used,
16359         regular_block_artificial_uses, eh_block_artificial_uses,
16360         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
16361         bitmap_head.
16362         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
16363         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
16364         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
16365         df_scan_blocks, df_insn_delete, df_insn_rescan,
16366         df_insn_rescan_debug_internal, df_insn_rescan_all,
16367         df_process_deferred_rescans, df_process_deferred_rescans,
16368         df_notes_rescan, df_get_call_refs, df_get_call_refs,
16369         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
16370         df_record_entry_block_defs, df_record_exit_block_uses,
16371         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
16372         df_scan_verify): Update.
16373
16374 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
16375
16376         PR c++/44188
16377         * c-common.c (is_typedef_decl): Move this definition ...
16378         * tree.c (is_typedef_decl): ... here.
16379         (typdef_variant_p): Move definition here from cp/tree.c.
16380         * c-common.h (is_typedef_decl): Move this declaration ...
16381         * tree.h (is_typedef_decl): ... here.
16382         (typedef_variant_p): Move declaration here from cp/cp-tree.h
16383         * dwarf2out.c (is_naming_typedef_decl): New function.
16384         (gen_tagged_type_die): Split out of ...
16385         (gen_type_die_with_usage): ... this function. When an anonymous
16386         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16387         is emitted for the typedef.
16388         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16389         anonymous tagged types.
16390
16391 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16392
16393         PR c/20000
16394         * c-decl.c (grokdeclarator): Delete warning.
16395
16396 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16397
16398         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
16399         newly built CALL_EXPR.
16400         * tree-profile.c (tree_profiling): Don't profile functions produced
16401         for built-in stuff.
16402
16403 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
16404
16405         PR bootstrap/44427
16406         PR bootstrap/44428
16407         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
16408         endianness-independent.
16409
16410 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
16411
16412         * c-common.c: Move to c-family/.
16413         * c-common.def: Likewise.
16414         * c-common.h: Likewise.
16415         * c-cppbuiltin.c: Likewise.
16416         * c-dump.c: Likewise.
16417         * c-format.c: Likewise.
16418         * c-format.h : Likewise.
16419         * c-gimplify.c: Likewise.
16420         * c-lex.c: Likewise.
16421         * c-omp.c: Likewise.
16422         * c.opt: Likewise.
16423         * c-opts.c: Likewise.
16424         * c-pch.c: Likewise.
16425         * c-ppoutput.c: Likewise.
16426         * c-pragma.c: Likewise.
16427         * c-pragma.h: Likewise.
16428         * c-pretty-print.c: Likewise.
16429         * c-pretty-print.h: Likewise.
16430         * c-semantics.c: Likewise.
16431         * stub-objc.c: Likewise.
16432
16433         * gengtype.c (get_file_langdir): Special-case files in c-family/.
16434         (get_output_file_with_visibility): Fix name for c-common.h.
16435         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
16436
16437         * c-tree.h: Update include path for moved files.
16438         * c-lang.c: Likewise.
16439         * c-lang.h: Likewise.
16440         * c-parser.c: Likewise.
16441         * c-convert.c: Likewise.
16442         * c-decl.c: Likewise.
16443         * c-objc-common.c: Likewise.
16444         * configure.ac: Make sure c-family/ exists in the build directory.
16445         * configure: Regenerate.
16446         * Makefile.in: Update paths for moved files.  Regroup files per
16447         location and update dependencies.  Move generated_files down after
16448         ALL_GTFILES_H.
16449
16450         * config/spu/spu-c.c: Update paths for moved files.
16451         * config/mep/mep-pragma.c: Likewise.
16452         * config/darwin-c.c: Likewise.
16453         * config/i386/msformat-c.c: Likewise.
16454         * config/i386/i386-c.c: Likewise.
16455         * config/avr/avr-c.c: Likewise.
16456         * config/sol2-c.c: Likewise.
16457         * config/ia64/ia64-c.c: Likewise.
16458         * config/rs6000/rs6000-c.c: Likewise.
16459         * config/arm/arm.c: Likewise.
16460         * config/arm/arm-c.c: Likewise.
16461         * config/h8300/h8300.c: Likewise.
16462         * config/v850/v850-c.c: Likewise.
16463
16464         * config/t-darwin: Fix dependencies for moved files.
16465         * config/t-sol2: Fix dependencies for moved files.
16466         * config/mep/t-mep: Fix dependencies for moved files.
16467         * config/ia64/t-ia64: Fix dependencies for moved files.
16468         * config/rs6000/t-rs6000: Fix dependencies for moved files.
16469         * config/v850/t-v850: Fix dependencies for moved files.
16470         * config/v850/t-v850e: Fix dependencies for moved files.
16471
16472         * config/m32c/m32c-pragma.c
16473
16474         * po/exgettext: Look in c-family/ also.
16475
16476 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
16477
16478         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16479         (mark_control_dependent_edges_necessary): Call it instead of marking
16480         the last statement manually.
16481         (propagate_necessity): Likewise.
16482
16483 2010-06-05  Jan Hubicka  <jh@suse.cz>
16484
16485         * basic-block.h (compute_dominance_frontiers): Updated.
16486         (compute_idf): Likewise.
16487
16488         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16489         for dominance frontiers.
16490         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16491         (insert_updated_phi_nodes_for): Likewise.
16492         (update_ssa): Likewise.
16493         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16494         (compute_dominance_frontiers): Likewise.
16495         (compute_idf): Likewise.
16496         * df-problems.c (df_md_local_compute): Likewise.
16497
16498 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
16499
16500         * target.h (struct gcc_target): Add memory_move_cost field.
16501         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16502         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16503         * targhooks.c (default_memory_move_cost): New function.
16504         * targhooks.h (default_memory_move_cost): Declare function.
16505         * reload.h (memory_move_cost): Declare.
16506         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16507         * reginfo.c (memory_move_cost): New function.
16508         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16509         * ira.h (ira_memory_move_cost): Update comment.
16510         * ira.c (ira_memory_move_cost): Update comment.
16511         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16512         with memory_move_cost.
16513         * postreload.c (reload_cse_simplify_set): (Ditto.).
16514         * reload1.c (choose_reload_regs): (Ditto.).
16515         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16516         (MEMORY_MOVE_COST):  Revise documentation.
16517
16518         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16519         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16520         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16521         type of 'in' argument to bool.
16522         (TARGET_MEMORY_MOVE_COST): Define.
16523
16524 2010-06-05  Jan Hubicka  <jh@suse.cz>
16525
16526         * ipa-pure-const.c (propagate): Fix typo in handling of functions
16527         that cannot return.  Be more careful when merging the results with
16528         previously known ones.
16529
16530 2010-06-05  Matthias Klose  <doko@ubuntu.com>
16531
16532         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16533         function to add the -iplugindir option.
16534         (find_plugindir_spec_function): Add new declaration and function.
16535         (static_spec_func): Use it for "find-plugindir".
16536
16537 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
16538
16539         PR c++/44361
16540         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16541         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16542         statement expression.
16543
16544 2010-06-05  Jan Hubicka  <jh@suse.cz>
16545
16546         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16547         (df_rd_problem_data): Convert sparse_invalidated_by_call,
16548         dense_invalidated_by_call to bitmap head.
16549         (df_rd_alloc, df_rd_bb_local_compute_process_def,
16550         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16551         df_rd_start_dump, df_lr_verify_transfer_functions,
16552         df_live_verify_transfer_functions, df_chain_create_bb,
16553         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16554         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16555         df_simulate_one_insn_forwards, df_md_alloc,
16556         df_md_bb_local_compute_process_def,
16557         df_md_bb_local_compute_process_def, df_md_local_compute,
16558         df_md_transfer_function df_md_free): Update.
16559
16560 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
16561
16562         PR c/44322
16563         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16564         target type for ADDR_EXPR; require no changes to qualifiers except
16565         for function types.
16566         * c-tree.h (c_build_type_variant): Remove.
16567
16568 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16569
16570         * genautomata.c (get_excl_set): Do work per element, not per char.
16571         (check_presence_pattern_sets): Similar.
16572         (check_absence_pattern_sets): Similar.
16573
16574 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16575
16576         * genautomata.c (curr_state_pass_num): Delete.
16577         (min_issue_delay_pass_states): Delete.
16578         (min_issue_delay): Delete.
16579         (initiate_min_issue_delay_pass_states): Delete.
16580         (output_min_issue_delay_table): Compute min_issue_delay_vect
16581         using a breadth-first search variant.
16582         (output_tables): Don't call initiate_min_issue_delay_pass_states.
16583
16584 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16585
16586         PR boostrap/44421
16587         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16588         (df_byte_lr_bb_local_compute): Likewise.
16589
16590 2010-06-03  Jason Merrill  <jason@redhat.com>
16591
16592         Implement noexcept operator (5.3.7)
16593         * c-common.c (c_common_reswords): Add noexcept.
16594         * c-common.h (enum rid): Add RID_NOEXCEPT.
16595
16596 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
16597
16598         * config/darwin-driver.c (darwin_default_min_version): Use
16599         GCC-specific formats in diagnostics.
16600         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16601         diagnostics.
16602         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16603         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16604         eval_spec_function, handle_braces, process_brace_body, main,
16605         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16606         getenv_spec_function, compare_version_strings,
16607         version_compare_spec_function): Use GCC-specific formats in
16608         diagnostics.
16609
16610 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16611
16612         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16613         that operand 0 and operand 1 are equal.
16614         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16615         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16616         and operand 1 are equal.
16617         <default>: Ditto.  Remove ??? comment.
16618         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16619         and operand 1 are equal.
16620         <default>: Ditto.  Remove ??? comment.
16621         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16622         are equal.
16623         (*add<mode>_4) <default>: Ditto.
16624         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16625
16626 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
16627
16628         * config/i386/i386-protos.h (ix86_print_operand): Declare.
16629         * config/i386/i386.c (ix86_print_operand): Make non-static.
16630         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16631         * output.h (output_operand): Declare.
16632         * final.c (output_operand): Make non-static.
16633
16634 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
16635
16636         PR rtl-optimization/44013
16637         * sched-deps.c (add_dependence_list_and_free): Don't free lists
16638         when processing debug insns.
16639
16640         PR debug/41371
16641         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16642         recursing.  Check that recursion is bounded.  Rename inner var
16643         to avoid hiding incoming argument.
16644
16645 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16646
16647         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16648         operands[2] == 255.
16649         (*addqi_3): Ditto.
16650         (*addqi_4): Ditto.
16651         (*addqi_5): Ditto.
16652         (*addqi_ext_1_rex64): Ditto.
16653         (*addqi_ext_1): Ditto.
16654
16655         (*addqi_4): Check for incdec_operand in QImode.
16656
16657         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16658         using SWI mode iterator.
16659         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16660         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16661         mode iterator.
16662         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16663         using SWI mode iterator.
16664
16665 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16666
16667         PR c/25880
16668         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16669         * c-format.c (gcc_diag_flag_specs): Add hash.
16670         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16671         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16672         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16673         pp_c_cv_qualifiers. Handle qualifiers spelling here.
16674         (pp_c_type_qualifier_list): Call the function above.
16675         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16676         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16677         (WARN_FOR_QUALIFIERS): New macro.
16678         (convert_for_assignment): Use it.
16679
16680 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
16681
16682         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16683
16684 2010-06-04  Jan Hubicka  <jh@suse.cz>
16685
16686         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16687         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16688         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16689         DF_BYTE_LR_OUT): Update for embedded bitmaps.
16690         * fwprop.c (single_def_use_enter_block): Likewise.
16691         * ddg.c (create_ddg_dep_from_intra_loop_link,
16692         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16693         * loop-iv.c (latch_dominating_def): Likewise.
16694         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16695         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16696         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16697         df_rd_transfer_function, df_rd_top_dump,
16698         df_rd_bottom_dump): Update.
16699         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16700         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16701         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16702         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16703         df_lr_verify_solution_start, df_lr_verify_solution_end,
16704         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16705         df_live_free_bb_info, df_live_alloc, df_live_reset,
16706         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16707         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16708         df_live_verify_solution_start, df_live_verify_solution_end,
16709         df_live_verify_transfer_functions, df_chain_create_bb,
16710         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16711         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16712         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16713         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16714         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16715         df_byte_lr_transfer_function, df_byte_lr_top_dump,
16716         df_byte_lr_bottom_dump, df_create_unused_note,
16717         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16718         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16719         df_md_transfer_function, df_md_init, df_md_confluence_0,
16720         df_md_confluence_n,
16721         df_md_top_dump, df_md_bottom_dump): Update.
16722         (struct df_lr_problem_data): Embedd bitmap headers.
16723
16724 2010-06-04  Jan Hubicka  <jh@suse.cz>
16725
16726         * dce.c (dce_process_block): Do not re-scan already marked
16727         instructions.
16728
16729 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16730
16731         PR rtl-optimization/39871
16732         PR rtl-optimization/40615
16733         PR rtl-optimization/42500
16734         PR rtl-optimization/42502
16735         * ira.c (init_reg_equiv_memory_loc: New function.
16736         (ira): Call it twice.
16737         * reload.h (calculate_elim_costs_all_insns): Declare.
16738         * ira-costs.c: Include "reload.h".
16739         (regno_equiv_gains): New static variable.
16740         (init_costs): Allocate it.
16741         (finish_costs): Free it.
16742         (ira_costs): Call calculate_elim_costs_all_insns.
16743         (find_costs_and_classes): Take estimated elimination costs
16744         into account.
16745         (ira_adjust_equiv_reg_cost): New function.
16746         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16747         * reload1.c (init_eliminable_invariants, free_reg_equiv,
16748         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16749         (elim_bb): New static variable.
16750         (reload): Move code out of here into init_eliminable_invariants and
16751         free_reg_equiv.  Call them.
16752         (calculate_elim_costs_all_insns): New function.
16753         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
16754         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
16755         but call note_reg_elim_costly if we turned a valid memory address
16756         into an invalid one.
16757         * Makefile.in (ira-costs.o): Depend on reload.h.
16758
16759 2010-06-04  Julian Brown  <julian@codesourcery.com>
16760
16761         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16762         for pool ranges.
16763
16764 2010-06-04  Richard Guenther  <rguenther@suse.de>
16765
16766         PR lto/41584
16767         * cgraph.h (struct varpool_node): Add lto_file_data field.
16768         * lto-cgraph.c (input_varpool_node): Initialize it.
16769
16770 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16771
16772         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16773         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16774         predicate in "type" attribute calculation.
16775         (*addsi_1_zext): Ditto.
16776         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16777         (*addsi_2_zext): Ditto.
16778         (*add<mode>_3): Ditto.
16779         (*addsi_3_zext): Ditto.
16780         (*add<mode>_5): Ditto.
16781
16782 2010-06-03  Jan Hubicka  <jh@suse.cz>
16783
16784         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16785         of bitmap_bit_p.
16786         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16787
16788 2010-06-03  Jan Hubicka  <jh@suse.cz>
16789
16790         * df-problems.c (df_create_unused_note, df_note_bb_compute):
16791         micro-optimize the checks when to add new note.
16792
16793 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
16794
16795         * final.c (output_asm_insn): Call
16796         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
16797         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
16798         (output_address): Call targetm.asm_out.print_operand_address.
16799         Update comments.
16800         * target.h (struct gcc_target): Add print_operand,
16801         print_operand_address, and print_operand_punct_valid_p fields.
16802         * targhooks.h (default_print_operand): Declare.
16803         (default_print_operand_address): Declare.
16804         (default_print_operand_punct_valid_p): Declare.
16805         * targhooks.c (default_print_operand): Define.
16806         (default_print_operand_address): Define.
16807         (default_print_operand_punct_valid_p): Define.
16808         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16809         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16810         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16811         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16812         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16813         * vmsdbgout.c (addr_const_to_string): Update comment.
16814         * config/i386/i386.c (print_operand): Rename to...
16815         (ix86_print_operand): ...this.  Make static.
16816         (print_operand_address): Rename to...
16817         (ix86_print_operand_address): ...this.  Make static.  Call
16818         ix86_print_operand instead of PRINT_OPERAND.
16819         (ix86_print_operand_punct_valid_p): New function.
16820         (TARGET_PRINT_OPERAND): Define.
16821         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16822         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16823         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16824         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16825         (PRINT_OPERAND): Delete.
16826         (PRINT_OPERAND_ADDRESS): Delete.
16827         * config/i386/i386-protos.h (print_operand): Delete prototype.
16828         (print_operand_address): Delete prototype.
16829
16830 2010-06-03  Richard Guenther  <rguenther@suse.de>
16831
16832         PR tree-optimization/44403
16833         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16834         Preserve pointer qualifiers.
16835         (vect_create_data_ref_ptr): Likewise.
16836
16837 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16838
16839         PR c++/44294
16840         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16841
16842         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16843
16844 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16845
16846         PR debug/44375
16847         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16848         return false if merging the bbs would lead to goto_locus
16849         location being lost from the IL.
16850
16851 2010-06-03  Jan Hubicka  <jh@suse.cz>
16852             Jakub Jelinek  <jakub@redhat.com>
16853
16854         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16855         set->regs[i] is NULL or has just one entry.
16856
16857 2010-06-03  Jan Hubicka  <jh@suse.cz>
16858
16859         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16860         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16861
16862 2010-06-03  Paul Brook  <paul@codesourcery.com>
16863
16864         * config/arm/arm.c (FL_TUNE): Define.
16865         (arm_default_cpu, arm_cpu_select): Remove.
16866         (all_cores): Populate core field.
16867         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16868         (arm_find_cpu): New function.
16869         (arm_handle_option): Lookup cpu/architecture names.
16870         (arm_override_options): Cleanup mcpu/march/mtune handling.
16871         (arm_file_start): Ditto.
16872
16873 2010-06-03  Alan Modra  <amodra@gmail.com>
16874
16875         PR target/44169
16876         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16877         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16878         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16879         (rs6000_emit_load_toc_table): Likewise.
16880
16881 2010-06-02  Jan Hubicka  <jh@suse.cz>
16882
16883         * passes.c (init_optimization_passes): Put ipa reference
16884         after ipa pure-const.
16885
16886 2010-06-02  Jan Hubicka  <jh@suse.cz>
16887
16888         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16889         calls_read_all and calls_write_all.
16890         (get_reference_optimization_summary): Fix formatting.
16891         (is_proper_for_analysis): Check that decl is not readonly.
16892         (propagate_bits): Check CONST/PURE/noreturn flags.
16893         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16894         (analyze_function): Ignore indirect edges.
16895         (copy_global_bitmap): For all module statics, do nothing.
16896         (generate_summary): Do not print calls_read_all/calls_write_all.
16897         (read_write_all_from_decl): Take node as argument; check
16898         cgraph_node_cannot_return.
16899         (propagate): Reorganize read_all/write_all computation;
16900         check indirect edges; check ecf flags; use all_module_statics
16901         in the results; do not free all_module_statics.
16902         (stream_out_bitmap): Handle all_module_statics.
16903         (ipa_reference_write_optimization_summary): Likewise; use
16904         varpool/cgraph encoders to get boundaries.
16905         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16906         use it when possible.
16907
16908 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16909
16910         PR target/44218
16911         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16912         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16913
16914         * doc/extend.texi (powerpc builtins): Document vec_recip,
16915         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16916
16917         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16918         (rs6000_emit_swrsqrt): Ditto.
16919         (rs6000_emit_swdivsf): Delete.
16920         (rs6000_emit_swdivdf): Ditto.
16921         (rs6000_emit_swrsqrtsf): Ditto.
16922
16923         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16924         describe the reciprocal estimate support for each type.
16925         (recip_options): Map -mrecip=<opt> into option bits.
16926         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16927         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16928         reciprocal estimate instructions.
16929         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16930         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16931         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16932         cost information if -mdebug=cost or -mdebug=reg.
16933         (rs6000_override_options): Set -mrecip-precision for power6, and
16934         power7 machines.  If -mvsx or -mdfp, enable various options that
16935         came in previous instruction set ISAs, unless the option was
16936         explicitly disabled by the command line option.  Parse
16937         -mrecip=<opt> options.
16938         (rs6000_builtin_vectorized_function): Add support for vectorizing
16939         the reciprocal estimate builtins and expansions.
16940         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16941         (bdesc_2arg): Add reciprocal estimate builtins.
16942         (bdesc_1arg): Add reciprocal square root estimate builtins.
16943         (rs6000_expand_builtin): Rewrite to use a switch statement,
16944         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16945         (rs6000_init_builtins): Create declarations for reciprocal
16946         estimate builtins.
16947         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16948         sized, prefer traditional floating point registers, if integer
16949         vector types, prefer altivec registers.  Don't actually look at
16950         the memory address any more.
16951         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16952         builtins.
16953         (rs6000_load_constant_and_splat): New helper function to load up
16954         the constant for reciprocal estimate instructions.
16955         (rs6000_emit_madd): New helper function for generating
16956         multiply/add type instructions, based on the current switches.
16957         (rs6000_emit_msub): Ditto.
16958         (rs6000_emit_mnsub): Ditto.
16959         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16960         replace a divide with a reciprocal estimate and fixup, adding
16961         support for machines with high precision and vectors.
16962         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16963         low precision machines.
16964         (rs6000_emit_swdiv): New common function to be called to replace a
16965         division with reciprocal estimate and fixup.
16966         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16967         for double and vector types.  Add support for high precision machines.
16968
16969         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16970         the reciprocal estimate instructions can be generated.
16971         (TARGET_FRE): Ditto.
16972         (TARGET_FRSQRTES): Ditto.
16973         (TARGET_FRSQRTE): Ditto.
16974         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16975
16976         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16977         square root estimate on vectors.
16978         (re<mode>2): New insn for reciprocal division estimate on vectors.
16979
16980         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16981         New builtin.
16982         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16983         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16984         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16985         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16986         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16987         (RS6000_BUILTIN_RSQRT): Ditto.
16988         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16989         floating point builtin.
16990
16991         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16992         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16993         __RECIP_PRECISION__ based on the command line switches.
16994         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16995
16996         * config/rs6000/rs6000.opt (-mrecip): Document add support for
16997         replacing division instructions with reciprocal estimate and fixup.
16998         (-mrecip=<opt>): New option.
16999         (-mrecip-precision): Ditto.
17000
17001         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
17002         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
17003         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
17004         precision scalar.
17005
17006         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
17007         (UNSPEC_VREFP): Ditto.
17008         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
17009         conterparts with regard to support of -mno-fused-madd and -ffast-math.
17010         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
17011         reciprocal estimate instructions to be generated.
17012         (altivec_vrefp): Ditto.
17013
17014         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
17015         estimate support.
17016         (rreg): New mode attribute for reciprocal estimate support.
17017         (recip<mode>3): New insn for division using reciprocal estimate
17018         and fixup builtins.
17019         (divide define_split): New define_split to convert floating point
17020         division to use reciprocal estimate if the user used the
17021         appropriate options and the split is run when we can add new
17022         pseudo registers for the fixup.
17023         (rsqrt<mode>2): New insn for reciprocal square root support.
17024         (recipsf3): Move into recip<mode>3.
17025         (recipdf3): Ditto.
17026         (fres): Use TARGET_FRES.
17027         (rsqrtsf2): Move into rsqrt<mode>2.
17028         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
17029         (copysignsf3): Add support for VSX.
17030         (fred): Use TARGET_FRE.
17031         (fred_fpr): Ditto.
17032         (rsqrtdf_internal1): New function for frsqrte instruciton.
17033
17034         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
17035         (vec_rsqrt): Ditto.
17036
17037 2010-06-03  Richard Guenther  <rguenther@suse.de>
17038
17039         PR middle-end/44291
17040         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
17041         (set_user_assembler_libfunc): Likewise.
17042
17043 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17044
17045         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
17046         defaults.h.
17047         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
17048         to defaults.h
17049         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
17050         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
17051         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
17052         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
17053         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
17054         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
17055         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
17056         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
17057         * defaults.h: Updated for above mentioned changes.
17058
17059 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
17060
17061         * c-common.c: Remove header include of tm_p.h.
17062         * Makefile.in (c-common.o): Remove TM_P_H dependency.
17063
17064 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
17065
17066         * tree.h (struct tree_decl_map): New type.
17067         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
17068         (tree_decl_map_hash): New prototype.
17069         (debug_expr_for_decl, value_expr_for_decl): Change into
17070         tree_decl_map hashtab from tree_map.
17071         (init_ttree): Adjust initialization.
17072         (tree_decl_map_hash): New function.
17073         (decl_debug_expr_lookup, decl_debug_expr_insert,
17074         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
17075
17076 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17077
17078         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
17079         linker emulations.
17080         * configure: Regenerate.
17081         * config.in: Regenerate.
17082
17083         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
17084         (X86_64_EMULATION): Define.
17085         (TARGET_LD_EMULATION): Use them.
17086
17087         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
17088         (SPARC64_EMULATION): Define.
17089         (LINK_ARCH_SPEC): Use them.
17090
17091 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17092
17093         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
17094         smallest_mode_for_size for computing the precision types of new
17095         graphite IVs.  Do not call lang_hooks.types.type_for_size.
17096
17097 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17098
17099         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
17100         information.
17101         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
17102
17103 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17104
17105         PR middle-end/44363
17106         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
17107         return false instead.
17108
17109 2010-06-02  Jan Hubicka  <jh@suse.cz>
17110
17111         PR middle-end/44295
17112         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
17113         create new cgraph node to check callee.
17114
17115 2010-06-02  Richard Guenther  <rguenther@suse.de>
17116
17117         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
17118
17119 2010-06-02  Richard Guenther  <rguenther@suse.de>
17120
17121         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
17122         (lto_wrapper_cleanup): ... this.  Do not exit.
17123         (fatal): Adjust.  Exit here.
17124         (fatal_perror): Likewise.
17125         (fatal_signal): New function.
17126         (main): Set up signal handlers to cleanup temporary files.
17127         * Makefile.in (lto-wrapper.o): Adjust dependencies.
17128
17129 2010-06-02  Richard Guenther  <rguenther@suse.de>
17130
17131         PR tree-optimization/44377
17132         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
17133
17134 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17135
17136         * config/s390/2097.md (z10_fhex): Remove insn reservation.
17137         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
17138         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
17139         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
17140         instruction.
17141         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
17142
17143 2010-06-02  Jan Hubicka  <jh@suse.cz>
17144
17145         * bitmap.c (bitmap_descriptor): Add search_iter.
17146         (bitmap_find_bit): Increment it.
17147         (print_statistics): Print it.
17148
17149 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
17150
17151         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
17152         instead of gimple_build_call_vec.  Delete unnecessary local variable.
17153
17154 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17155
17156         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
17157         change from yesterday.
17158
17159 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17160
17161         * c-ada-spec.c: Clean up redundant includes.
17162
17163 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
17164
17165         * gimplify.c: Do not include except.h and optabs.h.
17166         (gimplify_body): Do not initialize RTL profiling.
17167         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
17168         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
17169         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
17170         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
17171         langhooks.h.
17172
17173         * tree-pretty-print.h: Include pretty-print.h.
17174         * gimple-pretty-print.h: Include pretty-print.h.
17175
17176         * tree-pretty-print.c: Do not include diagnostic.h.
17177         * tree-vrp.c: Likewise.
17178         * tree-tailcall.c: Likewise
17179         * tree-scalar-evolution.c: Likewise
17180         * tree-ssa-dse.c: Likewise
17181         * tree-chrec.c: Likewise
17182         * tree-ssa-sccvn.c: Likewise
17183         * tree-ssa-copyrename.c: Likewise
17184         * tree-nomudflap.c: Likewise
17185         * tree-call-cdce.c: Likewise
17186         * tree-stdarg.c: Likewise
17187         * tree-ssa-math-opts.c: Likewise
17188         * tree-nrv.c: Likewise
17189         * tree-ssa-sink.c: Likewise
17190         * tree-browser.c: Likewise
17191         * tree-ssa-loop-ivcanon.c: Likewise
17192         * tree-ssa-loop.c: Likewise
17193         * tree-parloops.c: Likewise
17194         * tree-ssa-address.c: Likewise
17195         * tree-ssa-ifcombine.c: Likewise
17196         * tree-if-conv.c: Likewise
17197         * tree-data-ref.c: Likewise
17198         * tree-affine.c: Likewise
17199         * tree-ssa-phiopt.c: Likewise
17200         * tree-ssa-coalesce.c: Likewise
17201         * tree-ssa-pre.c: Likewise
17202         * tree-ssa-live.c: Likewise
17203         * tree-predcom.c: Likewise
17204         * tree-ssa-forwprop.c: Likewise
17205         * tree-ssa-dce.c: Likewise
17206         * tree-ssa-ter.c: Likewise
17207         * tree-ssa-loop-prefetch.c: Likewise
17208         * tree-optimize.c: Likewise
17209         * tree-ssa-phiprop.c: Likewise
17210         * tree-object-size.c: Likewise
17211         * tree-outof-ssa.c: Likewise
17212         * tree-ssa-structalias.c: Likewise
17213         * tree-switch-conversion.c: Likewise
17214         * tree-ssa-reassoc.c: Likewise
17215         * tree-ssa-operands.c: Likewise
17216         * tree-vectorizer.c: Likewise
17217         * tree-vect-data-refs.c: Likewise
17218         * tree-vect-generic.c: Likewise
17219         * tree-vect-stmts.c: Likewise
17220         * tree-vect-patterns.c: Likewise
17221         * tree-vect-slp.c: Likewise
17222         * tree-vect-loop.c: Likewise
17223         * tree-ssa-loop-ivopts.c: Likewise
17224         * tree-ssa-loop-im.c: Likewise
17225         * tree-ssa-loop-niter.c: Likewise
17226         * tree-ssa-loop-unswitch.c: Likewise
17227         * tree-ssa-loop-manip.c: Likewise
17228         * tree-ssa-loop-ch.c: Likewise
17229         * tree-dump.c: Likewise
17230         * tree-complex.c: Likewise
17231
17232         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
17233         * tree-ssa-uninit.c: Likewise
17234         * tree-ssa-threadupdate.c: Likewise
17235         * tree-ssa-uncprop.c: Likewise
17236         * tree-ssa-ccp.c: Likewise
17237         * tree-ssa-dom.c: Likewise
17238         * tree-ssa-propagate.c: Likewise
17239         * tree-ssa-alias.c: Likewise
17240         * tree-dfa.c: Likewise
17241         * tree-cfgcleanup.c: Likewise
17242         * tree-sra.c: Likewise
17243         * tree-ssa-copy.c: Likewise
17244         * tree-ssa.c: Likewise
17245         * tree-profile.c: Likewise
17246         * tree-cfg.c: Likewise
17247         * tree-ssa-threadedge.c: Likewise
17248         * tree-vect-loop-manip.c: Likewise
17249
17250         * tree-inline.c: Do not include diagnostic.h and expr.h.
17251         Include rtl.h.
17252         (copy_decl_for_dup_finish): Do not use NULL_RTX.
17253
17254         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
17255         * tree-loop-distribution.c: Likewise.
17256
17257 2010-06-01  Jan Hubicka  <jh@suse.cz>
17258
17259         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
17260
17261 2010-06-01  Jan Hubicka  <jh@suse.cz>
17262
17263         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
17264         remove return value.
17265         (split_bbs_on_noreturn_calls) .... here.
17266         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
17267         * tree-flow.h (fixup_noreturn_call): New.
17268
17269 2010-06-01  Jan Hubicka  <jh@suse.cz>
17270
17271         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
17272
17273 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
17274
17275         * tree.h (build_nt_call_list): Delete.
17276         * tree.c (build_nt_call_list): Delete.
17277
17278 2010-06-01  Jan Hubicka  <jh@suse.cz>
17279
17280         * fwprop.c: Make emit-rtl.h include last.
17281         * rtlanal.c: Include emit-rtl.h.
17282         * genautomata.c: Output emit-rtl include into insn-automata.c
17283         * df-scan.c: Include emit-rtl.h.
17284         * haifa-sched.c: Indlude emit-rtl.h.
17285         * mode-switching.c: Indlude emit-rtl.h.
17286         * graph.c: Indlude emit-rtl.h.
17287         * sel-sched.c: Include emit-rtl.h.
17288         * sel-sched-ir.c: Include emit-rtl.h.
17289         * ira-build.c: Include emit-rtl.h.
17290         * emit-rtl.c (first_insn, last_insn): Remove defines.
17291         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
17292         Move to emit-rtl.h.
17293         (set_new_first_and_last_insn, get_last_insn_anywhere,
17294         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
17295         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
17296         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
17297         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
17298         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
17299         Use accessor functions.
17300         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17301          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17302         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17303         mem_expr_equal_p): Move here from rtl.h.
17304         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
17305         Move here from emit-rtl.c; make inline.
17306         * cfglayout.h: Include emit-rtl.h.
17307         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17308          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17309         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17310         mem_expr_equal_p, get_insns, set_first-insn,
17311         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
17312         * reg-stack.c: Include emit-rtl.h.
17313         * dce.c: Likewise.
17314
17315 2010-06-01  Jan Hubicka  <jh@suse.cz>
17316
17317         * cgraph.h (tree_function_versioning): Update prototype.
17318         (cgraph_function_versioning): Update prototype.
17319         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
17320         bitmap.
17321         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
17322         (cgraph_materialize_clone, save_inline_function_body): Update use of
17323         tree_function_versioning.
17324         * tree-inline.c (copy_bb): Look for previous copied block to link
17325         after; fix debug output.
17326         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
17327         (copy_body): Likewise.
17328         (expand_call_inline): Update use of copy_body.
17329         (tree_function_versioning): Update use of copy body; accept
17330         blocks_to_copy and new_entry.
17331
17332 2010-06-01  Jan Hubicka  <jh@suse.cz>
17333
17334         * gegenrtl.c: Remove unnecesary prototypes.
17335         (gendecl): Remove.
17336         (gendef): Produce static inline.
17337         (gencode): Remove.
17338         (main): Do not decode parameters; generate header only.
17339         * Makefile.in (genrtl.c): Remove.
17340
17341 2010-06-01  Jan Hubicka  <jh@suse.cz>
17342
17343         * tree-switch-conversion.c (build_one_array): Make it readonly.
17344
17345 2010-06-01  Richard Guenther  <rguenther@suse.de>
17346
17347         * optabs.c (init_optabs): Guard all accesses to reinit.
17348         * ipa-pure-const.c (propagate): Fix another typo.
17349         * opts.c (common_handle_option): Split assignment to bool.
17350         * c-opts.c (c_common_handle_option): Likewise.
17351
17352 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
17353             Matthew Gingell  <gingell@adacore.com>
17354
17355         * doc/invoke.texi: Mention -fdump-ada-spec.
17356         * tree-dump.c (dump_files): Add ada-spec.
17357         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
17358         * tree-pass.h (tree_dump_index): Add TDI_ada.
17359         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
17360         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
17361         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
17362         * c-decl.c: Include c-ada-spec.h.
17363         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
17364         functions.
17365         (c_write_global_declarations): Add handling of -fdump-ada-spec.
17366         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
17367         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
17368         * c-ada-spec.h, c-ada-spec.c: New files.
17369
17370 2010-06-01  Richard Guenther  <rguenther@suse.de>
17371
17372         PR lto/43853
17373         * ipa-pure-const.c (get_function_state): Hand back varying state
17374         if we do not have one.
17375         (has_function_state): New function.
17376         (duplicate_node_data): Adjust.
17377         (remove_node_data): Likewise.
17378         (pure_const_write_summary): Likewise.
17379         (propagate): Likewise.  Fix typo.
17380
17381 2010-06-01  Jan Hubicka  <jh@suse.cz>
17382
17383         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
17384         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
17385         (execute_all_ipa_transforms): Do not play with the states.
17386
17387 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17388
17389         * config/arm/t-linux-androideabi: New.
17390         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
17391
17392 2010-06-01  Jan Hubicka  <jh@suse.cz>
17393
17394         * tree-inline.c (estimate_num_insns): For stdarg functions look
17395         into call statement to count cost of argument passing.
17396
17397 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
17398
17399         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
17400         argument for fprintf.
17401         (ix86_output_addr_diff_elt): Likewise.
17402         (x86_function_profiler): Likewise.
17403         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
17404         (LPREFIX): Likewise.
17405         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17406
17407 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17408
17409         PR target/44338
17410         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
17411         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
17412         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
17413         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
17414         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
17415         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
17416         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
17417         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
17418         TARGET_FUSED_MADD.
17419
17420 2010-05-31  Jan Hubicka  <jh@suse.cz>
17421
17422         * tree.h (tree_range_check_failed): Declare noreturn.
17423
17424 2010-05-31  Jan Hubicka  <jh@suse.cz>
17425
17426         * gimple.c (gimple_call_builtin_p): New function.
17427         * gimple.h (gimple_call_builtin_p): Declare.
17428         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
17429         to exit.
17430         (execute_warn_function_return): BUILT_IN_RETURN is return.
17431         (split_critical_edges): Return edges are not critical.
17432         (is_ctrl_altering_stmt): Builtin_in_return is altering.
17433         (gimple_verify_flow_info): Handle built_in_return.
17434         (execute_warn_function_return): Handle built_in_return.
17435         * ipa-pure-const.c (check_call): Ignore builtin_return.
17436
17437 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17438
17439         PR middle-end/44337
17440         * expr.c (expand_assignment): Don't store anything for out-of-bounds
17441         array accesses with non-MEM.
17442
17443         PR tree-optimization/44182
17444         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17445         newly needs to end a bb is followed by debug stmts, instead return
17446         true from the function at the end.
17447         (maybe_move_debug_stmts_to_successors): New function.
17448         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17449
17450 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
17451
17452         PR target/44161
17453         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17454
17455 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17456
17457         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17458         for nested functions in non-optimized compilation.
17459
17460 2010-05-31  Richard Guenther  <rguenther@suse.de>
17461
17462         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17463
17464 2010-05-30  Jan Hubicka  <jh@suse.cz>
17465
17466         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17467
17468 2010-05-30  Richard Guenther  <rguenther@suse.de>
17469
17470         PR lto/42975
17471         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17472         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17473         no longer needed.
17474
17475 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
17476
17477         * config/darwin.c (output_objc_section_asm_op): Add comment.
17478         (name_needs_quotes): Add '_' to list of valid comment chars.
17479         (machopic_output_function_base_name): Remove unneeded quotes.
17480         (darwin_encode_section_info): Adjust asm whitespace.
17481         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17482         (ASM_OUTPUT_LOCAL): Ditto.
17483         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17484         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17485         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17486
17487 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
17488
17489         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17490         RS6000_OUTPUT_BASENAME unconditionally.
17491         (rs6000_output_function_epilogue): Likewise.
17492
17493 2010-05-30  Jan Hubicka  <jh@suse.cz>
17494
17495         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17496         nodes.
17497
17498 2010-05-30  Richard Guenther  <rguenther@suse.de>
17499
17500         * tree-cfg.c (verify_gimple_assign_single): Implement
17501         verification for COND_EXPR rhs.
17502
17503 2010-05-30  Jan Hubicka  <jh@suse.cz>
17504
17505         * cgraph.h (cgraph_dump_file): Declare.
17506         * cgraphunit.c (cgraph_dump_file): Export.
17507         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17508
17509 2010-05-30  Jan Hubicka  <jh@suse.cz>
17510
17511         * dwarf2out.c (reference_to_unused,
17512         premark_types_used_by_global_vars_helper): Avoid creation of new
17513         varpool nodes.
17514
17515 2010-05-30  Jan Hubicka  <jh@suse.cz>
17516
17517         * cgraph.h (cgraph_node_cannot_return,
17518         cgraph_edge_cannot_lead_to_return): New functions.
17519         * cgraph.c (cgraph_node_cannot_return,
17520         cgraph_edge_cannot_lead_to_return): Use them.
17521         * ipa-pure-const.c (pure_const_names): New static var.
17522         (check_call): Handle calls not leading to return.
17523         (pure_const_read_summary): Dump info read.
17524         (propagate): Dump info about propagation process; ignore side effects
17525         of functions not leading to exit; fix handling of pure functions.
17526
17527 2010-05-30  Jan Hubicka  <jh@suse.cz>
17528
17529         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17530         for tail call epilogues.
17531
17532 2010-05-30  Jan Hubicka  <jh@suse.cz>
17533
17534         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17535         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17536         dump files.
17537
17538 2010-05-29  Jan Hubicka  <jh@suse.cz>
17539
17540         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17541         node; remove references in node we no longer keep in cgrpah but need
17542         body of.
17543
17544 2010-05-29  Jan Hubicka  <jh@suse.cz>
17545
17546         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17547
17548 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17549
17550         PR target/44165
17551         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17552
17553 2010-05-29  Jan Hubicka  <jh@suse.cz>
17554
17555         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17556         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17557         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17558         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17559         debug_names_replaced_by, debug_update_ssa): Likewise.
17560         * sbitmap.c (debug_sbitmap): Likewise.
17561         * genrecog.c (debug_decision, debug_decision_list): Likewise.
17562         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17563         debug_tree_chain): Likewise.
17564         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17565         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17566         * optabs.c (debug_optab_libfuncs): Likewise.
17567         (verify_loop_closed_ssa): Likewise.
17568         * value-prof.c (verify_histograms): Likewise.
17569         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17570         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17571         * cfghooks.c (verify_flow_info): Likewise.
17572         * fold-const.c (debug_fold_checksum): Likewise.
17573         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17574         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17575         Likewise.
17576         * omega.c (debug_omega_problem): Likewise.
17577         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17578         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17579         * dominance.c (verify_dominators, debug_dominance_info,
17580         debug_dominance_tree): Likewise.
17581         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17582         * df_regno_debug, df_ref_debug,
17583         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17584         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17585         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17586         * sel-sched.c (debug_state): Likewise.
17587         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17588         Likewise.
17589         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17590         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17591         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17592         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17593         Likewise.
17594         * c-pretty-print.c (debug_c_tree): Likewise.
17595         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17596         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17597         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17598         * ebitmap.c (debug_ebitmap): Likewise.
17599         * function.c (debug_find_var_in_block_tree): Likewise.
17600         * print-rtl.c (debug_rtx): Likewise.
17601         (debug_rtx_count): Likewise.
17602         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17603         * stor-layout.c (debug_rli): Likewise.
17604         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17605         * tree-data-ref.c (debug_data_references,
17606         debug_data_dependence_relations, debug_data_reference,
17607         debug_data_dependence_relation, debug_rdg_vertex,
17608         debug_rdg_component, debug_rdg): Likewise.
17609         * tree-affine.c (debug_aff): Likewise.
17610         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17611         Likewise.
17612         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17613         * emit-rtl.c (verify_rtl_sharing): Likewise.
17614         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17615         debug_value_expressions): Likewise.
17616         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17617         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17618         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17619         * cfglayout.c (verify_insn_chain): Likewise.
17620         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17621         debug_clast_stmt, debug_generated_program): Likewise.
17622         * ggc-page.c (debug_print_page_list): Likewise.
17623         * tree-ssa-ter.c (debug_ter): Likewise.
17624         * graphite-dependences.c (debug_pddr): Likewise.
17625         * sched-deps.c (debug_ds): Likewise.
17626         * tree-ssa.c (verify_ssa): Likewise.
17627         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17628         debug_scattering_functions, debug_iteration_domains, debug_pdr,
17629         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17630         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17631         * tree-inline.c (debug_find_tree): Likewise.
17632         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17633         debug_ppl_powerset_matrix): Likewise.
17634         * var-tracking.c (debug_dv): Likewise.
17635         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17636         * cfgloop.c (verify_loop_structure): Likewise.
17637         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17638         * c-common.c (verify_sequence_points): Likewise.
17639         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17640         debug_candidates, debug_rgn_dependencies): Likewise.
17641         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17642         * debug_constraint_graph, debug_solution_for_var,
17643         debug_sa_points_to_info): Likewise.
17644         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17645         Likewie.
17646         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17647         debug_loops, debug_loop, debug_loop_num): Likewise.
17648         * passes.c (debug_pass): Likewise.
17649         (dump_properties): Likewise; add cfglayout property.
17650         (debug_properties): Likewise.
17651         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17652         * varpool.c (debug_varpool): Likewise.
17653         * regcprop.c (debug_value_data): Likewise.
17654         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17655         debug_immediate_uses_for): Likewise.
17656
17657 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17658
17659         PR bootstrap/44315
17660         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17661         Filter out insn-flags.h.
17662
17663 2010-05-29  Jan Hubicka  <jh@suse.cz>
17664
17665         * cgraph.h (struct varpool_node_set_def,
17666         struct cgraph_node_set_def): Remove unused AUX pointer.
17667         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17668         VEC_empty macro.
17669
17670 2010-05-29  Jan Hubicka  <jh@suse.cz>
17671
17672         PR middle-end/44324
17673         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17674
17675 2010-05-29  Richard Guenther  <rguenther@suse.de>
17676
17677         * lto-streamer.c (cached_bp): New global variable.
17678         (bitpack_create): Return the cached bitpack, if available.
17679         (bitpack_delete): Clear and cache the bitpack, if appropriate.
17680         (bp_pack_value): Remove redundant asserts.
17681
17682 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17683
17684         PR middle-end/44306
17685         * tree-if-conv.c (is_true_predicate): New.
17686         (is_predicated): Use is_true_predicate.
17687         (add_to_predicate_list): Same.  Do not use unshare_expr.
17688         (add_to_dst_predicate_list): Same.
17689
17690 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17691
17692         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17693         field on edges.
17694         (predicate_bbs): Same.
17695         (clean_predicate_lists): Same.
17696         (find_phi_replacement_condition): Do not AND the predicate from
17697         edge->aux.
17698
17699 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17700
17701         PR bootstrap/44315
17702         * Makefile.in (build/gencondmd.o): Add a missing `\'.
17703
17704 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17705
17706         PR target/44261
17707         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17708         (negdf2): Adjust expander pattern and use negdf2_slow.
17709         (negsf2): Likewise.
17710
17711 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
17712
17713         * basic-block.h (struct control_flow_graph): Move last_label_uid field
17714         up.
17715         * df.h (struct df_base_ref): Move regno field up.
17716         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17717         * expr.h (struct separate_ops): Move location field up.
17718         * optabs.h (struct optab_d): Move libcall_basename field down.
17719         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17720         * config/i386/i386.h (struct machine_function): Convert call_abi field
17721         into a bitfield.  Move cfa field to the end of the structure.
17722
17723 2010-05-29  Jan Hubicka  <jh@suse.cz>
17724
17725         * varpool.c (varpool_get_node): Fix lookup.
17726
17727 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17728
17729         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
17730         RTL specific prototypes with #ifdef RTX_CODE.
17731         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17732         * config/spu/t-spu-elf: Fix dependencies.
17733
17734         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17735
17736 2010-05-29  Mike Stump  <mikestump@comcast.net>
17737
17738         PR bootstrap/44315
17739         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17740         TM_H when building to avoid dependency loops.
17741
17742 2010-05-29  Jan Hubicka  <jh@suse.cz>
17743
17744         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17745         refs and body; not the whole node for masters of materialized clones.
17746
17747 2010-05-29  Mike Stump  <mikestump@comcast.net>
17748
17749         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17750
17751 2010-05-29  Jan Hubicka  <jh@suse.cz>
17752
17753         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17754         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17755         use of clone_function_name.
17756         * cgraph.h (cgraph_create_virtual_clone,
17757         cgraph_function_versioning): update prototypes.
17758         (clone_function_name): Declare.
17759         * ipa-cp.c (ipcp_insert_stage): Update call of
17760         cgraph_create_virtual_clone.
17761         * omp-low.c (create_omp_child_function_name): Use
17762         cgraph_create_virtual_clone.
17763         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17764         (cgraph_function_versioning): Take SUFFIX argument; produce new name
17765         and make decl local.
17766
17767 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17768
17769         * vec.h: Include statistics.h
17770         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
17771         with VEC_H.
17772
17773 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17774
17775         * c-lex.c: Do not include c-tree.h.
17776         * c-pretty-print.c: Likewise.
17777         * c-opts.c: Likewise.
17778         * c-gimplify.c: Likewise.
17779         * c-common.c: Likewise.
17780         * c-dump.c: Likewise.  Include c-common.h.
17781
17782 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17783
17784         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17785         before including diagnostic-core.h.
17786         (c_cpp_error): New prototype moved from c-tree.h.
17787         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17788         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17789         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17790         (c_cpp_error): Prototype moved to c-common.h.
17791         * Makefile.in: Update dependency for C_COMMON_H.
17792
17793 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17794
17795         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17796         * c-common.c (c_register_addr_space): Remove here.
17797         * c-decl.c (c_register_addr_space): Re-add here.
17798
17799 2010-05-28  Mike Stump  <mikestump@comcast.net>
17800
17801         * config/darwin-c.c: Remove c-tree.h include.
17802
17803 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17804
17805         * gcc.c: Include diagnostic.h.
17806         (error_count): Remove.  All users changed to use errorcount.
17807         (programname): Remove.  All users changed to use progname.
17808         (fancy_abort, internal_error, fatal_error, error, warning, inform,
17809         fnotice): Remove.
17810         (execute): Don't include "Internal error" and bug reporting
17811         information in argument of internal_error call.
17812         (process_command): Don't increment error_count after calling
17813         perror_with_name.
17814         (input_filename): Rename to gcc_input_filename.  All users
17815         changed.
17816         (main): Call diagnostic_initialize.  Register delete_temp_files
17817         with atexit.  Use seen_error to test for errors.
17818         * gcc.h: Include diagnostic-core.h.
17819         (fatal_error, error, warning): Remove.
17820         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17821         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17822         (gcc.o): Update dependencies.
17823
17824 2010-05-28  Jeff Law  <law@redhat.com>
17825
17826         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17827         functions.
17828         * ira.h (ira_bad_reload_regno): Declare
17829         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17830
17831         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17832         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17833         (allocno_reload_assign): Likewise.
17834
17835 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17836
17837         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17838         build1_stat.
17839
17840 2010-05-28  Richard Guenther  <rguenther@suse.de>
17841
17842         PR lto/44312
17843         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17844         Stream fixed-point constants mode.
17845         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17846         and TYPE_PRECISION.
17847         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17848         Stream fixed-point constants mode.
17849         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17850         and TYPE_PRECISION.
17851
17852 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17853
17854         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17855         only place it was called from.
17856         (number_of_latch_executions): Do not return chrec_dont_know when the
17857         may_be_zero is a runtime condition: instead, return a COND_EXPR
17858         including the may_be_zero condition.
17859         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17860         of nb_iterations.
17861         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17862         COND_EXPRs.
17863
17864 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17865
17866         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17867         generate COND_EXPRs for degenerate_phi_result.
17868
17869 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17870
17871         PR middle-end/44293
17872         * tree-if-conv.c (if_convertible_loop_p): Check the
17873         if-convertibility of phi nodes in non predicated BBs.
17874
17875 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17876
17877         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17878
17879 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17880
17881         PR driver/15303
17882         * gcc.c (inform, warning, inform): New functions.
17883         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17884         gmsgid.  All callers changed.
17885         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17886         (fatal_error): Rename to fatal_signal.  All users changed.
17887         (fatal): Rename to fatal_error; change cmsgid parameter to
17888         gmsgid.  All callers changed.
17889         (process_command): Use warning instead of error for warnings.
17890         (end_going_arg): Don't use _() around argument of error.
17891         (do_spec_1): Use inform for message from %n specs.  Use warning
17892         instead of error for warnings.
17893         (main): Use inform for comparison messages.  Use warning for
17894         message about unused linker input.
17895         (error): Increment error_count.  Print "error: ".
17896         * gcc.h (fatal): Change to fatal_error.
17897         (warning): Declare.
17898         * config/darwin-driver.c (darwin_default_min_version): Use warning
17899         instead of fprintf for warnings.
17900         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17901
17902 2010-05-28  Julian Brown  <julian@codesourcery.com>
17903
17904         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17905         (*thumb2_addsi3_compare0_scratch): New.
17906         * config/arm/constraints.md (Pv): New.
17907         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17908         for ARM mode only.
17909         (*addsi3_compare0_scratch): Likewise.
17910
17911 2010-05-28  Jan Hubicka  <jh@suse.cz>
17912
17913         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17914         check.
17915         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17916         only on local statics.
17917
17918 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17919
17920         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17921
17922 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17923
17924         PR bootstrap/44314
17925         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17926         (OPTION_GLIBC): Define.
17927
17928 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17929
17930         PR debug/41048
17931         * dwarf2out.c (double_int_type_size_in_bits): New function.
17932         (round_up_to_align): Change first argument and return value to
17933         double_int.
17934         (field_byte_offset): Work internally on double_ints.
17935
17936         PR target/43636
17937         * builtins.c (expand_movstr): Use a temporary pseudo instead
17938         of target even when target is not NULL and not const0_rtx, but
17939         fails movstr predicate.
17940         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17941
17942 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17943
17944         * final.c (rest_of_clean_state): Use %m in errors instead of
17945         strerror (errno).
17946         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17947         instead of strerror.
17948         * toplev.c (process_options): Use %m in errors instead of strerror
17949         (errno).
17950         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17951         (errno).
17952
17953 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17954
17955         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17956         (ix86_canonical_va_list_type): Make static.  Add declaration.
17957         (ix86_enum_va_list): Make static.  Reindent.
17958         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17959         (ix86_canonical_va_list_type): Ditto.
17960         (ix86_enum_va_list): Ditto.
17961
17962 2010-05-28  Richard Guenther  <rguenther@suse.de>
17963
17964         * lto-wrapper.c (run_gcc): With -save-temps generate a
17965         user-visible ltrans filename.  Fixup ltrans unit numbering.
17966
17967 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17968
17969         * c-common.c (c_common_nodes_and_builtins): Replace use
17970         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17971         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17972         to ix86_enum_va_list.
17973         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17974         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17975         (TARGET_ENUM_VA_LIST_P): Add hook description.
17976         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17977         * target.h (gcc_target): Add enum_va_list hook.
17978
17979         PR bootstrap/44299
17980         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17981         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17982         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17983
17984 2010-05-28  Alan Modra  <amodra@gmail.com>
17985
17986         PR target/44266
17987         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17988         emit_library_call machinery to set up __tls_get_addr calls.
17989
17990 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17991
17992         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17993
17994 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17995
17996         Revert fix for PR c++/44188
17997         * c-common.c (is_typedef_decl): Revert the moving of  this
17998         definition ...
17999         * tree.c (is_typedef_decl): ... here.
18000         (typdef_variant_p): Revert the moving of this  definition
18001         here from cp/tree.c.
18002         * c-common.h (is_typedef_decl): Revert the moving of this
18003         declaration ...
18004         * tree.h (is_typedef_decl): ... here.
18005         (typedef_variant_p): Revert the moving of this  declaration here
18006         from cp/cp-tree.h
18007         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
18008         (gen_tagged_type_die): Revert the splitting out of ...
18009         (gen_type_die_with_usage): ... this function. Revert the anonymous
18010         tagged type handling.
18011         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
18012         typedefs naming anonymous tagged types.
18013
18014 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18015
18016         * config/rs6000/rs6000-modes.def (PSImode): Delete.
18017
18018 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18019
18020         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
18021         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
18022         throughout.
18023         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
18024         "xer" to "ca".
18025         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
18026         XER_REGS to CA_REGS throughout.
18027         * config/rs6000/rs6000.h: Same.
18028         (ADDITIONAL_REGISTER_NAMES): Add "xer".
18029         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
18030         that mode_iterator "P" is the size for arithmetic carries as well.
18031         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
18032
18033 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
18034
18035         PR bootstrap/44255
18036         * combine.c (struct rtx_subst_pair): Define unconditionally.
18037         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
18038         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
18039         Call make_compound_operation on pair->to.
18040         (propagate_for_debug): Don't call make_compound_operation here.
18041         Always use simplify_replace_fn_rtx.
18042
18043 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
18044
18045         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
18046         * config/xtensa/xtensa.c (override_options): Check
18047           TARGET_FORCE_NO_PIC and set flag_pic.
18048         * config/xtensa/xtensa.opt: Document -mforce-no-pic
18049
18050 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18051
18052         PR bootstrap/44299
18053         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
18054         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
18055
18056 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18057
18058         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
18059         toplev.h.
18060         * diagnostic.c: Don't include toplev.h.
18061         (progname): Define.  Moved from toplev.c.
18062         (seen_error): New function.
18063         * diagnostic.h: Include diagnostic-core.h.
18064         (diagnostic_t, emit_diagnostic): Don't declare here.
18065         * toplev.c (progname): Move to toplev.c.
18066         (emit_debug_global_declarations, compile_file, finalize,
18067         do_compile, toplev_main): Use seen_error.
18068         * toplev.h: Include diagnostic-core.h.
18069         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
18070         internal_error, warning, warning_at, error, error_n, error_at,
18071         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
18072         verbatim, fnotice, progname): Move to diagnostic-core.h.
18073         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
18074         (expand_builtin_expect): Use seen_error.
18075         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
18076         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
18077         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
18078         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
18079         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
18080         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
18081         errorcount for errors.
18082         * c-opts.c (c_common_finish): Use seen_error.
18083         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18084         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
18085         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
18086         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
18087         (get_coverage_counts): Use seen_error.
18088         * dwarf2out.c (dwarf2out_finish): Use seen_error.
18089         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
18090         gimplify_body): Use seen_error.
18091         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
18092         * ipa-pure-const.c (gate_pure_const): Use seen_error.
18093         * ipa-reference.c (gate_reference): Use seen_error.
18094         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
18095         * lambda-code.c: Include diagnostic-core.h instead of
18096         diagnostic.h.
18097         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18098         * lto-compress.c: Include diagnostic-core.h instead of
18099         diagnostic.h.
18100         * lto-section-in.c: Include diagnostic-core.h instead of
18101         diagnostic.h.
18102         * lto-streamer-out.c: Include diagnostic-core.h instead of
18103         diagnostic.h.
18104         * lto-streamer.c: Include diagnostic-core.h instead of
18105         diagnostic.h.
18106         (gate_lto_out): Use seen_error.
18107         * matrix-reorg.c: Include diagnostic-core.h instead of
18108         diagnostic.h.
18109         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
18110         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
18111         (gate_expand_omp, lower_omp_1): Use seen_error.
18112         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
18113         (rest_of_decl_compilation, rest_of_type_compilation,
18114         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
18115         * tree-cfg.c (label_to_block_fn): Use seen_error.
18116         * tree-inline.c (optimize_inline_calls): Use seen_error.
18117         * tree-mudflap.c (mudflap_finish_file): Use
18118         seen_error.
18119         * tree-optimize.c (gate_all_optimizations,
18120         gate_all_early_local_passes, gate_all_early_optimizations): Use
18121         seen_error.
18122         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
18123         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
18124         (varpool_remove_unreferenced_decls,
18125         varpool_assemble_pending_decls): Use seen_error.
18126         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
18127         (TOPLEV_H, DIAGNOSTIC_H): Update.
18128         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
18129         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
18130         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
18131         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
18132         coverage.o, lambda-code.o): Update dependencies.
18133
18134 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
18135
18136         PR c++/44188
18137         * c-common.c (is_typedef_decl): Move this definition ...
18138         * tree.c (is_typedef_decl): ... here.
18139         (typdef_variant_p): Move definition here from cp/tree.c.
18140         * c-common.h (is_typedef_decl): Move this declaration ...
18141         * tree.h (is_typedef_decl): ... here.
18142         (typedef_variant_p): Move declaration here from cp/cp-tree.h
18143         * dwarf2out.c (is_naming_typedef_decl): New function.
18144         (gen_tagged_type_die): Split out of ...
18145         (gen_type_die_with_usage): ... this function. When an anonymous
18146         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18147         is emitted for the typedef.
18148         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18149         anonymous tagged types.
18150
18151 2010-05-27  Jason Merrill  <jason@redhat.com>
18152
18153         * print-tree.c (debug_vec_tree): New fn.
18154         (print_vec_tree): New fn.
18155         * tree.h: Declare them.
18156         * gdbinit.in (pvt): New command.
18157
18158         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
18159
18160         * gdbinit.in (pdd): New command.
18161
18162 2010-05-27  Jan Hubicka  <jh@suse.cz>
18163
18164         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
18165         (update_caller_keys): Return early if there are no callers;
18166         only update fibheap when decresing the key.
18167         (update_callee_keys): Avoid recursion.
18168         (decide_inlining_of_small_functions): When badness does not match;
18169         re-insert into fibheap.
18170
18171 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
18172
18173         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
18174         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
18175         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
18176         (ALL_HOST_OBJS): Now a union of the above two.
18177         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
18178         all files in ALL_HOST_FRONTEND_OBJS.
18179         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
18180
18181         * c-common.c: Pretend to be a backend file by undefining
18182         IN_GCC_FRONTEND (still need rtl.h here).
18183
18184 2010-05-27  Jan Hubicka  <jh@suse.cz>
18185
18186         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
18187         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
18188
18189 2010-05-27  Jan Hubicka  <jh@suse.cz>
18190
18191         * sched-ebb.c: Rename struct deps to struct deps_desc.
18192         * ddg.c: Likewise.
18193         * sel-sched-ir.c: Likewise.
18194         * sched-deps.c: Likewise.
18195         * sched-int.h: Likewise.
18196         * sched-rgn.c: Likewise.
18197
18198 2010-05-27  Jon Beniston  <jon@beniston.com>
18199
18200         PR 43726
18201         * config/lm32/lm32.h: Remove definition of
18202         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
18203
18204 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18205
18206         PR lto/44230
18207         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
18208
18209 2010-05-27  Richard Guenther  <rguenther@suse.de>
18210
18211         PR tree-optimization/44284
18212         * tree-vect-stmts.c (vectorizable_assignment): Handle
18213         sign-changing conversions as simple copy.
18214
18215 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18216
18217         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
18218         Bionic C library.
18219         (__gthread_active_p): Check for pthread_create if compiling against
18220         Bionic C library.
18221
18222 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18223
18224         Support compilation for Android platform.  Reimplement -mandroid.
18225
18226         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
18227         (*android*): Set ANDROID_DEFAULT.
18228         (arm*-*-linux*): Include linux-android.h.
18229         (arm*-*-eabi*): Don't include previous -mandroid implementation.
18230         * config/arm/eabi.h: Remove, move Android-specific parts ...
18231         * config/linux-android.h: ... here.  New file.
18232         * config/arm/eabi.opt: Rename to ...
18233         * config/linux-android.opt: ... this.
18234         (mandroid): Allow -mno-android option.  Initialize based on
18235         ANDROID_DEFAULT.
18236         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
18237         Move logic to corresponding LINUX_TARGET_* macros.
18238         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
18239         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
18240         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
18241         Android definitions.
18242         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
18243         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
18244         Document.
18245
18246 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18247
18248         Add support for Bionic C library
18249
18250         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
18251         macro.
18252         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
18253         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
18254
18255         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
18256         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
18257         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
18258         to support multiple C libraries.  Handle Bionic.
18259         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
18260         (BIONIC_DYNAMIC_LINKER64): Define.
18261         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
18262         Update.
18263         (TARGET_HAS_SINCOS): Enable for Bionic.
18264
18265         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
18266         the last option specified on command line take effect.
18267         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
18268         (mbionic): New.
18269         (mglibc, muclibc): Update.
18270
18271         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
18272         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
18273         DEFAULT_LIBC.
18274
18275         * doc/invoke.texi (-mglibc, -muclibc): Update.
18276         (-mbionic): Document.
18277
18278 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18279
18280         * c-common.h (c_register_addr_space): Add prototype.
18281         (ADDR_SPACE_KEYWORD): Remove.
18282         * c-common.c (c_register_addr_space): New function.
18283         (c_addr_space_name): Reimplement.
18284         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
18285
18286         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
18287         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
18288
18289         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
18290         Remove TARGET_ADDR_SPACE_KEYWORDS.
18291
18292 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18293
18294         * input.c: New file.
18295         * input.h (main_input_filename): Move declaration to toplev.h.
18296         * toplev.c (input_location, line_table): Move to input.c
18297         * toplev.h (main_input_filename): Move declaration from input.h.
18298         * tree.c (expand_location): Move to input.c.
18299         * Makefile.in (OBJS-common): Add input.o.
18300         (input.o): Add dependencies.
18301
18302 2010-05-27  Richard Guenther  <rguenther@suse.de>
18303
18304         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
18305         for non-existant files.
18306         (fork_execute): Mark args_name file as deleted.
18307
18308 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18309
18310         PR bootstrp/44287
18311         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
18312         (narrow_signed_type): Likewise.
18313
18314 2010-05-26  Jan Hubicka  <jh@suse.cz>
18315
18316         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
18317         edge only when checking is enabled; check using former_clone_of;
18318         check inline clones too.
18319         (cgraph_materialize_clone): Record former_clone_of pointer.
18320         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
18321         combining redirections; dump args_to_skip bitmap
18322         (cgraph_materialize_all_clones): Do no redirection here.
18323         * ipa-inline.c (inline_transform): Do redirection here.
18324         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
18325         cheking only).
18326
18327 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18328
18329         * config/avr/avr-c.c: Do not include regs.h.
18330         Include cpplib.h for cpp_define and tree.h for c-common.h.
18331         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
18332         * config/avr/t-avr: Fix dependencies for avr-c.o.
18333
18334 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18335
18336         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
18337         string instead of SYMBOL_REF rtx.
18338         * rtl.h (set_stack_check_libfunc): Move prototype from here...
18339         * libfuncs.h: ...to here.  Adjust for explow.c change.
18340
18341 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18342
18343         * pretty-print.c: Don't include ggc.h.
18344         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
18345         (identifier_to_locale): Use them for allocation.
18346         * pretty-print.h (identifier_to_locale_alloc,
18347         identifier_to_locale_free): Declare.
18348         * toplev.c (alloc_for_identifier_to_locale): New.
18349         (general_init): Set identifier_to_locale_alloc and
18350         identifier_to_locale_free.
18351         * Makefile.in (pretty-print.o): Update dependencies.
18352
18353 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18354
18355         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
18356         pointer types if they have different alignment or mode.
18357
18358 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
18359
18360         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18361         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18362         * config/sparc/sparc-protos.h (function_value): Remove declaration.
18363         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
18364         sparc_function_value_regno_p): New functions.
18365         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18366         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18367         (function_value): Rename to...
18368         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
18369         argument to 'outgoing'.
18370         (function_arg_record_value, function_arg_union_value,
18371         function_arg_vector_value): Update comment.
18372
18373 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18374
18375         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
18376         (fde_needed_for_eh_p): New predicate.
18377         (output_call_frame_info): Use it throughout to decide whether FDEs
18378         are needed for EH purpose.
18379         (dwarf2out_begin_prologue): Reorder assignments.
18380
18381 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18382
18383         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
18384         special case loop->header.
18385         (is_predicated): New.
18386         (if_convertible_loop_p): Call it.
18387
18388 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18389
18390         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
18391         iterator in parameter.  Do not generate code during the analysis.
18392         (tree_if_convert_cond_stmt): Removed.
18393         (tree_if_convert_stmt): Removed.
18394         (predicate_bbs): New.
18395         (if_convertible_loop_p): Call predicate_bbs.
18396         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
18397         now contains all the analysis part.
18398
18399 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18400
18401         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
18402         statements in the analysis part.
18403         (tree_if_convert_stmt): Update comment.
18404         (remove_conditions_and_labels): New.
18405         (combine_blocks): Call remove_conditions_and_labels.
18406         (tree_if_conversion): Update comment.
18407
18408 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18409
18410         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
18411         than 2 predecessors or more than 2 successors.
18412
18413 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18414
18415         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
18416         of loops in which the data dependence analysis fails.
18417
18418 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18419
18420         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
18421         CDI_POST_DOMINATORS.
18422         (tree_if_conversion): Same.
18423
18424 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18425
18426         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
18427
18428 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18429
18430         * tree-if-conv.c: Update copyright years.  Fix comments.
18431         Fix indentation.
18432
18433 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
18434
18435         * builtin-types.def (BT_INT128): New primitive type.
18436         (BT_UINT128): Likewise.
18437         * c-common.c (c_common_r): Add __int128 keyword.
18438         (c_common_type_for_size): Handle __int128.
18439         (c_common_type_for_mode): Likewise.
18440         (c_common_signed_or_unsigned_type): Likewise.
18441         (c_common_nodes_and_builtins): Add builtin type
18442         if target supports 128-bit integer scalar.
18443         * c-common.h (enum rid): Add RID_INT128.
18444         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18445         if target supports 128-bit integer scalar.
18446         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18447         (finish_declspecs): Likewise.
18448         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18449         (c_token_starts_declspecs): Likewise.
18450         (c_parser_declspecs): Likewise.
18451         (c_parser_attributes): Likewise.
18452         (c_parser_objc_selector): Likewise.
18453         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18454         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18455         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18456         * tree.c (make_or_reuse_type): Likewise.
18457         (make_unsigned_type): Likewise.
18458         (build_common_tree_nodes_2): Likewise.
18459         * tree.h (enum integer_type_kind): Add itk_int128 and
18460         itk_unsigned_int128.
18461         (int128_integer_type_node): New define.
18462         (int128_unsigned_type_node): New define.
18463         * doc/extend.texi: Add documentation about __int128 type.
18464
18465 2010-05-26  Richard Guenther  <rguenther@suse.de>
18466
18467         * tree-ssa-sccvn.c (copy_nary): Adjust.
18468         (copy_phis): Rename to ...
18469         (copy_phi): ... this.  Adjust.
18470         (copy_references): Rename to ...
18471         (copy_reference): ... this.  Adjust.
18472         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18473         result into the valid table.
18474
18475 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18476
18477         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18478         insn-config.h, insn-codes.h, recog.h, and optabs.h.
18479
18480 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18481
18482         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18483
18484 2010-05-26  Richard Guenther  <rguenther@suse.de>
18485
18486         * opts.c (common_handle_option): Handle OPT_Ofast.
18487
18488 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18489
18490         * diagnostic.c: Don't include opts.h.
18491         (permissive_error_option): Define.
18492         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
18493         for classify_diagnostic.  Don't use memset for
18494         classify_diagnostic.  Initialize new and recently added fields.
18495         (diagnostic_classify_diagnostic): Use context->n_opts instead of
18496         N_OPTS.
18497         (diagnostic_report_diagnostic): Pass context parameter to
18498         diagnostic_report_warnings_p.  Use option_enabled and option_name
18499         hooks from context.
18500         (emit_diagnostic): Use permissive_error_option.
18501         (permerror): Likewise.
18502         * diagnostic.h: Don't include options.h.
18503         (struct diagnostic_context): Add n_opts, opt_permissive,
18504         inhibit_warnings, warn_system_headers, option_enabled and
18505         option_name fields.  Change classify_diagnostic to a pointer.
18506         * opts-diagnostic.h: New file.
18507         * opts.c: Include opts-diagnostic.h.
18508         (common_handle_option): Set global_dc fields for -Wfatal-errors,
18509         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18510         (option_name): New function.
18511         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18512         (c_common_handle_option): Set global_dc->permissive for
18513         -fpermissive.
18514         * c-common.c (c_cpp_error): Save and restore
18515         global_dc->warn_system_headers, not variable warn_system_headers.
18516         * toplev.c: Include opts-diagnostic.h.
18517         (general_init): Update call to diagnostic_initialize.  Set
18518         global_dc->show_column, global_dc->option_enabled and
18519         global_dc->option_name.
18520         (process_options): Don't set global_dc fields here.
18521         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18522         (diagnostic.o, opts.o, toplev.o): Update dependencies.
18523
18524 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18525
18526         * config/picochip/picochip.md (movsi): Split a movsi from a
18527         const after reload.
18528
18529 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18530
18531         * ggc-zone.c: Update copyright year.
18532         (poison_region): Mark memory for Valgrind as undefined before
18533         memset () call and inaccessible afterwards.
18534         (ggc_pch_total_size): Change type of i to int.
18535
18536 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18537
18538         * ggc-common.c (ggc_free_overhead): Allow empty slot.
18539
18540 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18541
18542         * ggc-common.c: Update copyright year.
18543         (ggc_rlimit_bound): Remove prototype.  Compile only if
18544         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18545         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18546         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
18547         (ggc_min_heapsize_heuristic): Likewise.
18548
18549 2010-05-26  Richard Guenther  <rguenther@suse.de>
18550
18551         PR rtl-optimization/44164
18552         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18553         no-common access-path disambiguation.
18554         (indirect_ref_may_alias_decl_p): Adjust.
18555         (indirect_refs_may_alias_p): Likewise.
18556         (refs_may_alias_p_1): Likewise.
18557
18558 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18559
18560         * c-typeck.c: Do not include expr.h.
18561
18562 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18563
18564         * rtl.h (decl_default_tls_model): Move prototype from here...
18565         * output.h: ...to here.
18566         * c-decl.c: Do not include rtl.h.
18567         * c-pragma.c: Likewise.
18568         * c-parser.c: Likewise.
18569         * c-gimplify.c: Likewise.  And also not hard-reg-set.
18570         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
18571         FIXME note for it.  Add a FIXME note for expr.h.
18572         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18573         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18574         defined.
18575
18576 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
18577
18578         PR target/44199
18579         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18580         or total_size is larger than red zone size for non-V4 ABI, emit a
18581         stack_tie resp. frame_tie insn before stack pointer restore.
18582         * config/rs6000/rs6000.md (frame_tie): New insn.
18583
18584 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18585
18586         * function.h (struct function): Add can_throw_non_call_exceptions bit.
18587         * lto-streamer-in.c (input_function): Stream it in.
18588         * lto-streamer-out.c (output_function): Stream it out.
18589         * function.c (allocate_struct_function): Set it.
18590         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18591         for flag_non_call_exceptions.
18592         * cfgbuild.c (control_flow_insn_p): Likewise.
18593         (make_edges): Likewise.
18594         * cfgexpand.c (expand_stack_alignment): Likewise.
18595         * combine.c (distribute_notes): Likewise.
18596         * cse.c (cse_extended_basic_block): Likewise.
18597         * except.c (insn_could_throw_p): Likewise.
18598         * gcse.c (simple_mem): Likewise.
18599         * ipa-pure-const.c (check_call): Likewise.
18600         (check_stmt ): Likewise.
18601         * lower-subreg.c (lower-subreg.c): Likewise.
18602         * optabs.c (emit_libcall_block): Likewise.
18603         (prepare_cmp_insn): Likewise.
18604         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18605         * postreload.c (rest_of_handle_postreload): Likewise.
18606         * reload1.c (reload_as_needed): Likewise.
18607         (emit_input_reload_insns): Likewise.
18608         (emit_output_reload_insns): Likewise.
18609         (fixup_abnormal_edges): Likewise.
18610         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18611         * store-motion.c (find_moveable_store): Likewise.
18612         * tree-eh.c (stmt_could_throw_p): Likewise.
18613         (tree_could_throw_p): Likewise.
18614         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18615         * config/arm/arm.c (arm_expand_prologue): Likewise.
18616         (thumb1_expand_prologue): Likewise.
18617         * config/rx/rx.md (cbranchsf4): Likewise.
18618         (cmpsf): Likewise.
18619         * config/s390/s390.c (s390_emit_prologue): Likewise.
18620         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18621         (inline_forbidden_into_p): New predicate.
18622         (expand_call_inline): Use it to forbid inlining.
18623         (tree_can_inline_p): Likewise.
18624
18625 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18626
18627         * config/i386/i386-c.c: Do not include rtl.h.
18628         * config/i386/t-i386: Update dependencies.
18629
18630 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18631
18632         * attribs.c: Do not include rtl.h.
18633         * Makefile.in: Update dependencies.
18634
18635 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
18636
18637         * double-int.h (double_int_and): New.
18638         * combine.c (try_combine): Clean up, use double_int_* and
18639         immed_double_int_const functions.
18640
18641 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18642
18643         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18644         stderr to /dev/null instead of grep -q.
18645         * configure: Regenerate.
18646
18647 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18648
18649         * Makefile.in (EXCEPT_H): Fix typo.
18650
18651 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
18652
18653         * ira-build.c (update_conflict_hard_reg_costs): New.
18654         (ira_build): Call update_conflict_hard_reg_costs.
18655
18656 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18657
18658         PR debug/41371
18659         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18660         ENABLE_CHECKING.
18661         (intersect_loc_chains): Walk the s2var's loc_chain together
18662         with s1node chain as long as the locations are equal, don't
18663         call find_loc_in_1pdv in that case.
18664
18665         PR debug/42801
18666         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18667         (copy_bind_expr): ... instead of here.
18668         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18669         if the block hasn't been remapped.
18670         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18671         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18672
18673 2010-05-25  Richard Guenther  <rguenther@suse.de>
18674
18675         PR middle-end/44069
18676         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18677         out-of-bounds array accesses.
18678
18679 2010-05-25  Richard Guenther  <rguenther@suse.de>
18680
18681         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18682         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18683         (run_gcc): Re-organize to make cleanup easier.
18684
18685 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18686
18687         * config/s390/s390.c (optimization_options): Fix and move the
18688         flag_prefetch_loop_arrays override ...
18689         (override_options): ... here.
18690
18691 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
18692
18693         * diagnostic.c: Don't include plugin.h.
18694         (diagnostic_report_diagnostic): Don't handle plugins specially
18695         here.  Pass context to internal_error callback.
18696         * diagnostic.h (struct diagnostic_context): Add context parameter
18697         to internal_error callback.
18698         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18699         * plugin.h (struct diagnostic_context): Declare.
18700         (warn_if_plugins, plugins_internal_error_function): Declare.
18701         * toplev.c (general_init): Set global_dc->internal_error.
18702         * Makefile.in (diagnostic.o): Update dependencies.
18703
18704 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
18705
18706         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18707         * config/rs6000/t-darwin64: New.
18708         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18709         build crt2.
18710
18711 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
18712
18713         PR 44203
18714         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18715         match the original (and intended) behaviour before r159557.  This
18716         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18717         in two ways.
18718
18719 2010-05-25  Richard Guenther  <rguenther@suse.de>
18720
18721         * doc/invoke.texi: Document -Ofast.
18722         * target.h (struct gcc_target): Add handle_ofast.
18723         * target-def.h (TARGET_HANDLE_OFAST): Add.
18724         (TARGET_INITIALIZER): Adjust.
18725         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
18726         * common.opt (Ofast): Add.
18727
18728 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18729
18730         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18731         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18732
18733 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18734
18735         PR target/43610
18736         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18737         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
18738         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
18739         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18740
18741 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18742
18743         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18744         DW_OP_minus with negated offset instead of DW_OP_plus.
18745         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18746
18747 2010-05-25  Wei Guozhi  <carrot@google.com>
18748
18749         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18750         tst instruction and a new alternative.
18751         * config/arm/constraints.md (Pu): New constraint.
18752
18753 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
18754
18755         * function.c (assign_stack_local_1): Initialize variable
18756         to avoid warning when bootstrapping at -O3.
18757
18758 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18759
18760         * configure.ac (all_lang_makefiles): Remove everything related to it.
18761         * configure: Regenerate.
18762         * Makefile.in: Fix reference to ada Make-lang.in.
18763         Remove support for LANG_MAKEFILES.
18764
18765 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
18766             Sandra Loosemore  <sandra@codesourcery.com>
18767
18768         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18769         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18770         description.  Add arm_neon_fp16_ok.
18771         (Add Options): Add arm_neon and arm_neon_fp16.
18772
18773 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
18774
18775         * diagnostic.c: Don't include flags.h.
18776         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18777         context parameters.  Check flags in the context passed as a parameter.
18778         (diagnostic_build_prefix): Add context parameter.  Check
18779         show_column flag in context.
18780         (diagnostic_action_after_output): Check fatal_errors flag in context.
18781         (diagnostic_report_current_module): Check show_column flag in context.
18782         (default_diagnostic_starter): Update call to
18783         diagnostic_build_prefix.
18784         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18785         (emit_diagnostic): Pass context to permissive_error_kind.
18786         (permerror): Pass context to permissive_error_kind.
18787         * diagnostic.h (struct diagnostic_context): Add show_column,
18788         pedantic_errors, permissive and fatal_errors fields.
18789         (diagnostic_build_prefix): Update prototype.
18790         * langhooks.c
18791         * toplev.c (process_options): Set flags in global_dc from
18792         flag_show_column, flag_pedantic_errors, flag_permissive,
18793         flag_fatal_errors.
18794         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18795         to diagnostic_build_prefix.
18796         * Makefile.in (diagnostic.o): Update dependencies.
18797
18798 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18799
18800         * config/i386/ia32intrin.h (__crc32q): Define only if
18801         __SSE4_2__ is defined.
18802
18803 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
18804
18805         PR target/44132
18806         PR middle-end/43602
18807         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18808         DECL_VISIBILITY_SPECIFIED.
18809         (emutls_decl): Set DECL_PRESERVE_P and copy
18810         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18811         (emutls_finalize_control_var): New callback.
18812         (emutls_finish): Finalize emutls control variables.
18813         * toplev.c (compile_file): Move the call to emutls_finish ()
18814         before varpool_assemble_pending_decls ().
18815
18816 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
18817
18818         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18819         added to the preprocessor condition.
18820
18821 2010-05-24  Paul Brook  <paul@codesourcery.com>
18822
18823         * gengtype-lex.l: Add HARD_REG_SET.
18824         * expr.c (expand_expr_real_1): Record writes to hard registers.
18825         * function.c (rtl_data): Add asm_clobbers.
18826         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18827         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18828         Use crtl->asm_clobbers.
18829
18830 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18831
18832         * doc/makefile.texi (Makefile): Mention stages 'profile'
18833         and 'feedback' for profiledbootstrap.
18834
18835 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18836
18837         PR target/44245
18838         * config/i386/i386.c (def_builtin): Properly check
18839         OPTION_MASK_ISA_64BIT.
18840
18841 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18842
18843         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18844         typedefs with different but compatible types.  Allow duplicate
18845         typedefs with the same type except for pedantic non-C1X, but give
18846         warning for variably modified types.
18847         * c-typeck.c (tagged_types_tu_compatible_p,
18848         function_types_compatible_p, type_lists_compatible_p,
18849         comptypes_internal): Add parameter different_types_p; set
18850         *different_types_p for different but compatible types.  All
18851         callers changed.
18852         (comptypes_check_different_types): New.
18853         * c-tree.h (comptypes_check_different_types): Declare.
18854
18855 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18856
18857         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18858         * jump.c: Include basic-block.h.
18859         * profile.c: Likewise.
18860         * tree-profile.c: Likewise.
18861         * coverage.c: Likewise.
18862         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18863         (optimize_function_for_speed_p): Likewise.
18864         * function.h (optimize_function_for_size_p,
18865         optimize_function_for_speed_p): Moved here from basic-block.h.
18866         * Makefile.in: Update dependencies.
18867
18868 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18869
18870         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18871         before calling make; allow override through $MAKE.
18872         * doc/invoke.texi (Optimize Options): Document override.
18873
18874 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18875
18876         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18877         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18878         (rs6000_mode_dependent_address_ptr): Make static.
18879         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18880         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18881         Remove.
18882
18883 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18884
18885         PR target/43869
18886         * config/i386/i386.c: Make sure that the correct regparm is passed.
18887
18888 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18889
18890         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18891         * sbitmap.c: ...to here to internalize sbitmap element access.
18892         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18893         Explain why basic-block.h is included.
18894         * function.h: Include tm.h for CUMULATIVE_ARGS.
18895         * Makefile.in: Update dependencies.
18896
18897 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18898
18899         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18900         New core types.
18901         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18902         * sbitmap.c: Include sbitmap.h.
18903         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18904         hard-reg-set.h.  Split everything related to regsets out from here...
18905         * regset.h: ...to here.  New file.
18906         * df.h: Include regset.h and sbitmap.h.
18907         * tree-flow.h: Likewise.
18908         * cfgloop.h: Likewise.
18909         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18910         * cgraph.h: Include vec.h and function.h.
18911         * reload.h (struct insn_chain): Change types of live_throughout
18912         and dead_or_set from regset_head to bitmap_head.
18913         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18914         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18915         spilled_regs from regset_head to bitmap_head to avoid dependency
18916         in regset.h.
18917         * sel-sched-ir.h: Include regset.h.
18918         * reload.c: Include df.h before reload.h.
18919         * caller-save.c: Likewise.
18920         * reload1.c: Likewise.
18921         * ira.c: Likewise.
18922         (mark_elimination): Update type of r to bitmap, consistent with
18923         DF_LR_IN.
18924         * dominance.c: Include bitmap.h.
18925         * modulo-sched.c: Include df.h.
18926         * cfganal.c: Include bitmap.h and sbitmap.h.
18927         * cfgbuild.c: Include sbitmap.h.
18928         * lcm.c: Include sbitmap.h.
18929         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18930         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18931         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18932         * cselib.c: Include bitmap.h.
18933         * tree-optimize.c: Include regset.h.
18934         * stmt.c: Include bitmap.h.
18935         * Makefile.in: Update dependencies.
18936
18937 2010-05-22  Jan Hubicka  <jh@suse.cz>
18938
18939         * cgraph.h (struct varpool_node): Add same_comdat_group.
18940         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18941         pointer.
18942         (output_varpool): Update call of lto_output_varpool_node.
18943         (input_varpool): Read same_comdat_group pointer.
18944         (input_varpool_1): Fixup same_comdat_group pointer.
18945         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18946         group is needed, all are.
18947         * varpool.c (varpool_remove_node): Remove node from same comdat group
18948         linklist too.
18949         (varpool_analyze_pending_decls): Walk same comdat groups.
18950
18951 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18952
18953         * rtl.h (union rtunion_def): Remove rt_bit member.
18954         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18955         * print-rtl (print_rtx): Do not print the member.
18956         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18957         * gengenrtl.c (type_from_format): Likewise.
18958         (accessor_from_format): Likewise.
18959
18960 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18961
18962         * dbgcnt.c: Include toplev.h instead of errors.h.
18963         * ira-emit.c: Don't include errors.h.
18964         * ira.c: Include toplev.h instead of errors.h.
18965         * lto-compress.c: Include toplev.h instead of errors.h.
18966         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18967         ira.o, dbgcnt.o): Update dependencies.
18968
18969 2010-05-22  Richard Guenther  <rguenther@suse.de>
18970
18971         * gimple.c (gimple_types_compatible_p): Check type qualifications
18972         before merging pointer to complete and pointer to incomplete type.
18973         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18974         we use our own resolution algorithm.  The gold linker plugin
18975         doesn't do the job we want it to do here.
18976
18977 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18978
18979         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18980         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18981         (sparc_mode_dependent_address_p): New function.
18982
18983 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18984
18985         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18986
18987         * timevar.c: Do not include any core headers.
18988         (timevar_print): De-i18n-ize.
18989         (print_time): Likewise.
18990         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18991
18992 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18993
18994         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18995         langhooks-def.h.
18996         (diagnostic_initialize): Initialize x_data not last_function.
18997         (diagnostic_report_current_function): Move to tree-diagnostic.c.
18998         (default_diagnostic_starter): Call
18999         diagnostic_report_current_module not
19000         diagnostic_report_current_function.
19001         (diagnostic_report_diagnostic): Initialize x_data not
19002         abstract_origin.
19003         (verbatim): Likewise.
19004         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
19005         x_data.
19006         (struct diagnostic_context): Change last_function to x_data.
19007         (diagnostic_auxiliary_data): Replace with
19008         diagnostic_context_auxiliary_data and
19009         diagnostic_info_auxiliary_data.
19010         (diagnostic_last_function_changed, diagnostic_set_last_function,
19011         diagnostic_report_current_function): Move to tree-diagnostic.h.
19012         (print_declaration, dump_generic_node, print_generic_stmt,
19013         print_generic_stmt_indented, print_generic_expr,
19014         print_generic_decl, debug_c_tree, dump_omp_clauses,
19015         print_call_name, debug_generic_expr, debug_generic_stmt,
19016         debug_tree_chain, default_tree_printer): Move to
19017         tree-pretty-print.h.
19018         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
19019         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
19020         gimple-pretty-print.h.
19021         * pretty-print.c: Don't include tree.h
19022         (pp_base_format): Don't handle %K here.
19023         (pp_base_tree_identifier): Move to tree-pretty-print.c.
19024         * pretty-print.h (text_info): Change abstract_origin to x_data.
19025         (pp_tree_identifier, pp_unsupported_tree,
19026         pp_base_tree_identifier): Move to tree-pretty-print.h.
19027         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
19028         tree-pretty-print.h: New files.
19029         * tree-pretty-print.c: Include tree-pretty-print.h.
19030         (percent_K_format): New.  Moved from pretty-print.c.
19031         (pp_base_tree_identifier): Move from pretty-print.c.
19032         * c-objc-common.c: Include tree-pretty-print.h.
19033         (c_tree_printer): Handle %K here.
19034         * langhooks.c: Include tree-diagnostic.h.
19035         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
19036         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
19037         (default_tree_printer): Handle %K using percent_K_format.
19038         (general_init): Use default_tree_diagnostic_starter.
19039         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
19040         (free_lang_data): Use default_tree_diagnostic_starter.
19041         * c-pretty-print.c: Include tree-pretty-print.h.
19042         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19043         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19044         * dwarf2out.c: Include tree-pretty-print.h.
19045         * except.c: Include tree-pretty-print.h.
19046         * gimple-pretty-print.c: Include tree-pretty-print.h and
19047         gimple-pretty-print.h.
19048         * gimplify.c: Include tree-pretty-print.h.
19049         * graphite-poly.c: Include tree-pretty-print.h and
19050         gimple-pretty-print.h.
19051         * ipa-cp.c: Include tree-pretty-print.h.
19052         * ipa-inline.c: Include gimple-pretty-print.h.
19053         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19054         * ipa-pure-const.c: Include gimple-pretty-print.h.
19055         * ipa-struct-reorg.c: Include tree-pretty-print.h and
19056         gimple-pretty-print.h.
19057         * ipa-type-escape.c: Include tree-pretty-print.h.
19058         * print-rtl.c: Include tree-pretty-print.h.
19059         * print-tree.c: Include gimple-pretty-print.h.
19060         * sese.c: Include tree-pretty-print.h.
19061         * tree-affine.c: Include tree-pretty-print.h.
19062         * tree-browser.c: Include tree-pretty-print.h.
19063         * tree-call-cdce.c: Include gimple-pretty-print.h.
19064         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19065         * tree-chrec.c: Include tree-pretty-print.h.
19066         * tree-data-ref.c: Include tree-pretty-print.h and
19067         gimple-pretty-print.h.
19068         * tree-dfa.c: Include tree-pretty-print.h.
19069         * tree-if-conv.c: Include tree-pretty-print.h and
19070         gimple-pretty-print.h.
19071         * tree-inline.c: Include tree-pretty-print.h.
19072         * tree-into-ssa.c: Include tree-pretty-print.h and
19073         gimple-pretty-print.h.
19074         * tree-nrv.c: Include tree-pretty-print.h.
19075         * tree-object-size.c: Include tree-pretty-print.h and
19076         gimple-pretty-print.h.
19077         * tree-outof-ssa.c: Include tree-pretty-print.h and
19078         gimple-pretty-print.h.
19079         * tree-parloops.c: Include tree-pretty-print.h and
19080         gimple-pretty-print.h.
19081         * tree-predcom.c: Include tree-pretty-print.h and
19082         gimple-pretty-print.h.
19083         * tree-scalar-evolution.c: Include tree-pretty-print.h and
19084         gimple-pretty-print.h.
19085         * tree-sra.c: Include tree-pretty-print.h.
19086         * tree-ssa-address.c: Include tree-pretty-print.h.
19087         * tree-ssa-alias.c: Include tree-pretty-print.h.
19088         * tree-ssa-ccp.c: Include tree-pretty-print.h and
19089         gimple-pretty-print.h.
19090         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
19091         * tree-ssa-copy.c: Include tree-pretty-print.h and
19092         gimple-pretty-print.h.
19093         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
19094         * tree-ssa-dce.c: Include tree-pretty-print.h and
19095         gimple-pretty-print.h.
19096         * tree-ssa-dom.c: Include tree-pretty-print.h and
19097         gimple-pretty-print.h.
19098         * tree-ssa-dse.c: Include gimple-pretty-print.h.
19099         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
19100         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
19101         * tree-ssa-live.c: Include tree-pretty-print.h and
19102         gimple-pretty-print.h.
19103         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
19104         gimple-pretty-print.h.
19105         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
19106         gimple-pretty-print.h.
19107         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
19108         gimple-pretty-print.h.
19109         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
19110         gimple-pretty-print.h.
19111         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
19112         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
19113         * tree-ssa-operands.c: Include tree-pretty-print.h and
19114         gimple-pretty-print.h.
19115         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
19116         gimple-pretty-print.h.
19117         * tree-ssa-pre.c: Include tree-pretty-print.h and
19118         gimple-pretty-print.h.
19119         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
19120         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
19121         gimple-pretty-print.h.
19122         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
19123         gimple-pretty-print.h.
19124         * tree-ssa-sink.c: Include gimple-pretty-print.h.
19125         * tree-ssa-ter.c: Include tree-pretty-print.h and
19126         gimple-pretty-print.h.
19127         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
19128         * tree-ssa.c: Include tree-pretty-print.h and
19129         gimple-pretty-print.h.
19130         * tree-stdarg.c: Include gimple-pretty-print.h.
19131         * tree-switch-conversion.c: Include gimple-pretty-print.h.
19132         * tree-tailcall.c: Include tree-pretty-print.h and
19133         gimple-pretty-print.h.
19134         * tree-vect-data-refs.c: Include tree-pretty-print.h and
19135         gimple-pretty-print.h.
19136         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
19137         gimple-pretty-print.h.
19138         * tree-vect-loop.c: Include tree-pretty-print.h and
19139         gimple-pretty-print.h.
19140         * tree-vect-patterns.c: Include gimple-pretty-print.h.
19141         * tree-vect-slp.c: Include tree-pretty-print.h and
19142         gimple-pretty-print.h.
19143         * tree-vect-stmts.c: Include tree-pretty-print.h and
19144         gimple-pretty-print.h.
19145         * tree-vectorizer.c: Include tree-pretty-print.h.
19146         * tree-vrp.c: Include tree-pretty-print.h and
19147         gimple-pretty-print.h.
19148         * value-prof.c: Include tree-pretty-print.h and
19149         gimple-pretty-print.h.
19150         * var-tracking.c: Include tree-pretty-print.h.
19151         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
19152         (tree-diagnostic.o): New dependencies.
19153         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
19154         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
19155         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
19156         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
19157         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
19158         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
19159         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
19160         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
19161         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
19162         tree-ssa-address.o, tree-ssa-loop-niter.o,
19163         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
19164         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
19165         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
19166         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
19167         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
19168         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
19169         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
19170         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
19171         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
19172         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
19173         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
19174         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
19175         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
19176         tree-switch-conversion.o, var-tracking.o, value-prof.o,
19177         cfgexpand.o, pretty-print.o): Update dependencies.
19178
19179 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
19180
19181         * tree-ssa-structalias.c: Remove tm_p.h from include.
19182
19183 2010-05-21  Jeff Law  <law@redhat.com>
19184
19185         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
19186
19187 2010-05-21  Jason Merrill  <jason@redhat.com>
19188
19189         * tree-eh.c (cleanup_is_dead_in): New.
19190         (lower_try_finally): Don't generate a dead cleanup region.
19191         (lower_cleanup): Likewise.
19192
19193 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19194
19195         PR debug/44223
19196         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
19197         unchain each use from the cyclic next_regno_use chain first.
19198
19199 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19200
19201         * real: Do not include gmp.h, mpfr.h, and mpc.h.
19202         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
19203         (real_value_negate, real_value_abs): New prototypes.
19204         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
19205         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
19206         new include file for interface between MPFR and REAL_VALUE_TYPE.
19207         * real.c: Include realmpfr.h.
19208         (real_arithmetic2): Remove legacy function.
19209         (real_value_negate): New.
19210         (real_value_abs): New.
19211         (mfpr_from_real, real_from_mpfr): Move from here...
19212         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
19213         * builtins.c: Include realmpfr.h.
19214         * fold-const.c: Include realmpfr.h.
19215         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
19216         (fold_negate_const): Likewise.
19217         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
19218         * toplev.c: Include realmpfr.h.
19219         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
19220         and real_value_negate.
19221         * fixed-value.c (check_real_for_fixed_mode): Likewise.
19222         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
19223         (vfp3_const_double_index): Likewise.
19224         (arm_print_operand): Likewise.
19225         * Makefile.in: Update dependencies.
19226
19227 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19228
19229         * config/s390/s390.c (override_options): Increase the default
19230         of max-completely-peel-times.
19231
19232 2010-05-21  Julian Brown  <julian@codesourcery.com>
19233             Mark Mitchell  <mark@codesourcery.com>
19234
19235         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
19236         sibling calls for Thumb-1.
19237         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
19238         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
19239         Thumb-2.
19240         (*call_insn, *call_value_insn): Don't use for Thumb-2.
19241         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
19242         for Thumb-2.
19243         (return): New expander.
19244         (*arm_return): New name for ARM return insn.
19245         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
19246
19247 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
19248
19249         * config.gcc (sparc64-*-rtems*): New target.
19250
19251 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
19252
19253         * tree.c (build_function_decl_skip_args): Fix grammar.
19254         (build_function_type_list_1): Fix typos, adjust formatting.
19255
19256 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19257
19258         * tree.h: Include real.h and fixed-value.h as basic datatypes.
19259         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
19260         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
19261         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
19262         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
19263         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
19264         tree-pretty-print.c, tree-loop-distribution.c,
19265         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
19266         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
19267         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
19268         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
19269         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
19270         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
19271         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
19272         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
19273         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
19274         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
19275         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
19276         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
19277         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
19278         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
19279         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
19280         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
19281         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
19282         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
19283         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
19284         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
19285         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
19286         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
19287         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
19288         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
19289         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
19290         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
19291         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
19292         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
19293         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
19294         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
19295         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
19296         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
19297         config/score/score7.c, config/score/score.c, config/arm/arm.c,
19298         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
19299         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
19300         config/bfin/bfin.c: Clean up redundant includes.
19301         * Makefile.in: Update accordingly.
19302
19303 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
19304
19305         PR middle-end/44204
19306         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
19307         statement has no arguments.
19308
19309 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
19310
19311         PR/44139
19312         * varasm.c (emutls_decl): Merge attributes to new decl.
19313
19314 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
19315
19316         PR middle-end/44101
19317         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
19318         around the uniquized constructor if its type requires a conversion.
19319
19320 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19321
19322         PR debug/44205
19323         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
19324         at -O0 goto_locus of any of the incoming edges differs from
19325         goto_locus of outgoing edge, or gimple_location of any of the
19326         labels differs.
19327
19328 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
19329
19330         * ira.c (ira_non_ordered_class_hard_regs): Define.
19331         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
19332         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
19333         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
19334         cost of unaligned hard regs when allocating multi-reg pseudos.
19335
19336 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19337
19338         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
19339         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
19340         for TARGET_NO_FLOAT.
19341         * config/mips/mips.c (mips_file_start): Expand conditional expression
19342         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
19343         (mips_override_options): Move -mno-float override -msoft-float and
19344         -mhard-float.
19345         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
19346         Condition(TARGET_SUPPORTS_NO_FLOAT).
19347         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
19348         __mips_no_float here.
19349         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
19350         (TARGET_SUPPORTS_NO_FLOAT): Define.
19351         * config/mips/sdemtk.opt: Delete.
19352
19353 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
19354
19355         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
19356
19357 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
19358
19359         PR target/43733
19360         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
19361         * configure: Regenerate.
19362         * config.in: Regenerate.
19363         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
19364         instead of sahf only for 64bit targets.
19365
19366 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19367
19368         PR debug/44178
19369         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
19370         setup_ref_regs for DEBUG_INSNs.
19371
19372 2010-05-20  Jan Hubicka  <jh@suse.cz>
19373
19374         PR middle-end/44197
19375         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
19376
19377 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
19378
19379         PR bootstrap/43870
19380         * df-scan.c (df_ref_compare): Stabilize sort.
19381
19382 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19383
19384         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
19385         argument.  Don't use DW_OP_piece if offset is non-zero,
19386         put offset into second DW_OP_bit_piece argument.
19387         (dw_sra_loc_expr): Adjust callers.  For memory expressions
19388         compute offset.
19389
19390 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
19391
19392         PR target/44202
19393         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
19394         settings for 16-bit-constant "addo" alternative.
19395
19396 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
19397
19398         * config/mips/mips-dsp.md (add<DSPV:mode>3,
19399         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
19400
19401         PR target/43764
19402         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
19403         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
19404         Use it.
19405
19406 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
19407
19408         * diagnostic.c (FLOAT, FFS): Don't undefine.
19409         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
19410         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
19411         include ordering.
19412
19413 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19414
19415         * combine.c (propagate_for_debug): Call make_compound_operation
19416         on the source value.
19417         (try_combine): When implementing a split chosen by find_split_point,
19418         either copy i2src or set it to null.  Assert that i2src is not null
19419         before substituting into CALL_INSN_FUNCTION_USAGE.
19420
19421 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
19422
19423         * double-int.h (double_int_ior): New function.
19424         * tree.h (build_int_cst_wide_type): Remove.
19425         * tree.c (build_int_cst_wide_type): Remove.
19426         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
19427         of build_int_cst_wide_type.
19428         * stor-layout.c (set_sizetype): (Ditto.).
19429         * dojump.c (do_jump): Use build_int_cstu instead of
19430         build_int_cst_wide_type.
19431
19432 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19433
19434         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
19435         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
19436         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
19437         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
19438         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
19439         propagate the 'data' argument to copy_tree_r.
19440         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19441         Propagate 'data' argument to walk_tree.
19442         (copy_if_shared): New function.
19443         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19444         (unmark_visited): New function.
19445         (unshare_body): Call copy_if_shared instead of doing it manually.
19446         (unvisit_body): Call unmark_visited instead of doing it manually.
19447
19448 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
19449
19450         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19451         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
19452         * hooks.c: Likewise.
19453         * target-def.h (TARGET_FOLD_BUILTIN): Define to
19454         hook_tree_tree_int_treep_bool_null.
19455         * target.h (struct gcc_target): Update signature of fold_builtin
19456         field.
19457         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19458         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19459         instead of the call expression.
19460         (fold_builtin_call_array): Pass n and argarray directly.
19461         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19462         consing a list.
19463         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
19464         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
19465         `i' and use it in place of `arity'.
19466         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19467         Dereference `args' directly.
19468         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19469
19470 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19471
19472         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19473         3dnow, sse3, sse2.
19474         (Directives): Document optional dg-require-effective-target
19475         selector.
19476
19477 2010-05-19  Richard Guenther  <rguenther@suse.de>
19478
19479         PR lto/44196
19480         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19481
19482 2010-05-19  Richard Guenther  <rguenther@suse.de>
19483
19484         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19485         * common.opt (fwhopr=): New.
19486         * opts.c (common_handle_option): Handle OPT_fwhopr.
19487         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19488         * collect2.c (main): Match -fwhopr*.
19489         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19490         Execute ltrans stage in parallel when jobs is bigger than 1.
19491
19492 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19493
19494         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19495         pentiumpro on Solaris 8/x86 with Sun as.
19496         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19497         hidden alias bug.
19498         (gcc_cv_as_ix86_quad): Check for .quad directive.
19499         * configure: Regenerate.
19500         * config.in: Regenerate.
19501         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19502
19503 2010-05-19  Martin Jambor  <mjambor@suse.cz>
19504
19505         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19506         also for indirect edges.  Actual printing moved...
19507         (ipa_print_node_jump_functions_for_edge): ...here.
19508         (ipa_compute_jump_functions): Renamed to
19509         ipa_compute_jump_functions_for_edge and made static.
19510         (ipa_compute_jump_functions): New function.
19511         (make_edge_direct_to_target): Check if the number of arguments on
19512         the newly direct edge is the same as the number of parametrs of
19513         the callee.
19514         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19515         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
19516         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19517         analysis functions unconditionally, call the new
19518         ipa_analyze_params_uses on the node instead of every edge.
19519
19520 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
19521
19522         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19523         to tree.
19524         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
19525         also checks for a constant int vs.  non-constant but
19526         loop-invariant steps.
19527         (find_or_create_group): Change the sort algorithm to only consider
19528         steps that are constant ints.
19529         (idx_analyze_ref): Adopt code to handle a tree instead of a
19530         HOST_WIDE_INT for step.
19531         (gather_memory_references_ref): Handle tree instead of int and be
19532         prepared to see a NULL_TREE.
19533         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19534         prefetches if the step cannot be calculated at compile time.
19535         (issue_prefetch_ref): Issue prefetches for non-constant but
19536         loop-invariant steps.
19537
19538 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19539
19540         Revert:
19541         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19542
19543         * tree.h (build_call_list): Remove.
19544         * tree.c (build_call_list): Remove.
19545
19546 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19547
19548         * tree.h (build_call_list): Remove.
19549         * tree.c (build_call_list): Remove.
19550
19551 2010-05-18  Jan Hubicka  <jh@suse.cz>
19552
19553         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19554
19555 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
19556
19557         PR rtl-optimization/43332
19558         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19559
19560 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
19561
19562         * tree.h (build_int_cstu): Implement as static inline.
19563         * tree.c (build_int_cstu): Remove function.
19564         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19565         sign extended.
19566
19567 2010-05-18  Richard Guenther  <rguenther@suse.de>
19568
19569         PR lto/44143
19570         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
19571         (debug): Initialize from -save-temps.
19572         (collect_execute): Print command-line when verbose.
19573         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
19574         for ltrans invocation.  Produce -dumpbase flag again.
19575         (process_args): Remove.
19576         (main): Simplify.
19577         * collect2.c (maybe_run_lto_and_relink): Only pass object
19578         files to lto-wrapper.
19579         * gcc.c (LINK_COMMAND_SPEC): Likewise.
19580
19581 2010-05-18  Jan Hubicka  <jh@suse.cz>
19582
19583         * opts.c (decode_options): Do not disable whopr at ipa_cp.
19584         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19585
19586 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19587
19588         PR lto/44184
19589         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19590         in a GIMPLE_ASM.
19591         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19592         in a GIMPLE_ASM.
19593
19594 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
19595
19596         PR debug/41371
19597         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19598         rtx_equal_p inline.
19599
19600 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19601
19602         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19603         lto-macho as lto_binary_reader.
19604
19605         * darwin.c (darwin_asm_named_section): Do not add assembler comment
19606         after .section directive; just print it before the directive instead.
19607
19608 2010-05-17  Jan Hubicka  <jh@suse.cz>
19609
19610         * cgraph.c (cgraph_create_virtual_clone): Only check
19611         versionable_function_p when not in wpa and checking is enabled.
19612         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19613         there are no more functions to materialize.
19614
19615 2010-05-17  Jan Hubicka  <jh@suse.cz>
19616
19617         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19618         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19619         New functions.
19620         (output_cgraph): Call output_cgraph_opt_summary.
19621         (input_cgrpah): Call input_cgraph_opt_summary.
19622         (output_cgraph_opt_summary_p, output_node_opt_summary,
19623         input_node_opt_summary, input_cgraph_opt_section): New functions.
19624         * lto-section-in.c (lto_section_name): Add cgraphopt.
19625         * tree-inline.c (tree_function_versioning): Handle parm_num.
19626         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19627         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19628
19629 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19630
19631         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19632         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19633         the insn to prefetch ratio heuristic to loops with known trip count.
19634
19635 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19636
19637         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19638         (schedule_prefetches): Do not generate a prefetch if the unroll factor
19639         is far from what is required by the prefetch.
19640
19641 2010-05-17  Jan Hubicka  <jh@suse.cz>
19642
19643         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19644         (ipcp_estimate_growth): Likewise.
19645         (ipcp_const_param_count): Likewise.
19646         (ipcp_insert_stage): Likewise.
19647         * ipa-prop.c (visit_load_for_mod_analysis): New function.
19648         (visit_store_addr_for_mod_analysis): Set used flag.
19649         (ipa_detect_param_modifications): Set used flag for SSE params;
19650         update use of walk_stmt_load_store_addr_ops.
19651         (ipa_print_node_params): Print used flag.
19652         (ipa_write_node_info): Stream used flag.
19653         (ipa_read_node_info): Likewise.
19654         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19655         (ipa_is_param_used): New function.
19656         (lto_ipa_fixup_call_notes): Remove unused declaration.
19657
19658 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19659
19660         PR target/44074
19661         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19662         * configure: Regenerate.
19663         * config.in: Regenerate.
19664         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19665         !HAVE_AS_IX86_REP_LOCK_PREFIX.
19666         Don't emit whitespace.
19667         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19668         (*rep_movsi): Likewise.
19669         (*rep_movsi_rex64): Likewise.
19670         (*rep_movqi): Likewise.
19671         (*rep_movqi_rex64): Likewise.
19672         (*rep_stosdi_rex64): Likewise.
19673         (*rep_stossi): Likewise.
19674         (*rep_stossi_rex64): Likewise.
19675         (*rep_stosqi): Likewise.
19676         (*rep_stosqi_rex64): Likewise.
19677         (*cmpstrnqi_nz_1): Use {%;} after repz.
19678         (*cmpstrnqi_nz_rex_1): Likewise.
19679         (*cmpstrnqi_1): Likewise.
19680         (*cmpstrnqi_rex_1): Likewise.
19681         (*strlenqi_1): Use {%;} after repnz.
19682         (*strlenqi_rex_1): Likewise.
19683         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19684         (*sync_compare_and_swap<mode>): Likewise.
19685         (sync_double_compare_and_swap<mode>): Likewise.
19686         (*sync_double_compare_and_swapdi_pic): Likewise.
19687         (sync_old_add<mode>): Likewise.
19688         (sync_add<mode>): Likewise.
19689         (sync_sub<mode>): Likewise.
19690         (sync_<code><mode>): Likewise.
19691
19692 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19693
19694         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19695         otr_token and polymorphic.
19696         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19697         (cgraph_clone_edge): Copy the above fields.
19698         * tree.c (get_binfo_at_offset): New function.
19699         * tree.h (get_binfo_at_offset): Declare.
19700         * ipa-prop.h (enum jump_func_type): Added known_type jump function
19701         type, reordered items, updated comments.
19702         (union jump_func_value): Added base_type field, reordered fields.
19703         (enum ipa_lattice_type): Moved down in the file.
19704         (struct ipa_param_descriptor): New field polymorphic.
19705         (ipa_is_param_polymorphic): New function.
19706         * ipa-prop.c: Include gimple.h and gimple-fold.h.
19707         (ipa_print_node_jump_functions): Print known type jump functions.
19708         (compute_complex_pass_through): Renamed to...
19709         (compute_complex_assign_jump_func): this.
19710         (compute_complex_ancestor_jump_func): New function.
19711         (compute_known_type_jump_func): Likewise.
19712         (compute_scalar_jump_functions): Create known type and complex ancestor
19713         jump functions.
19714         (ipa_note_param_call): New parameter polymorphic, set the corresponding
19715         flag in the call note accordingly.
19716         (ipa_analyze_call_uses): Renamed to...
19717         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
19718         variable var only in the block where it is used.
19719         (ipa_analyze_virtual_call_uses): New function.
19720         (ipa_analyze_call_uses): Likewise.
19721         (combine_known_type_and_ancestor_jfs): Likewise.
19722         (update_jump_functions_after_inlining): Implemented handling of a
19723         number of new jump function types combination.
19724         (print_edge_addition_message): Removed.
19725         (make_edge_direct_to_target): New function.
19726         (try_make_edge_direct_simple_call): Likewise.
19727         (try_make_edge_direct_virtual_call): Likewise.
19728         (update_call_notes_after_inlining): Renamed to...
19729         (update_indirect_edges_after_inlining): this.  Moved edge creation for
19730         indirect calls to try_make_edge_direct_simple_call, also calls
19731         try_make_edge_direct_virtual_call for virtual calls.
19732         (ipa_print_node_params): Changed the header message.
19733         (ipa_write_jump_function): Stream also known type jump functions.
19734         (ipa_read_jump_function): Likewise.
19735         (ipa_write_indirect_edge_info): Stream new fields in
19736         cgraph_indirect_call_info.
19737         (ipa_read_indirect_edge_info): Likewise.
19738         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19739         GIMPLE_FOLD_H.
19740
19741 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19742
19743         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19744
19745 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19746
19747         * tree.h (CALL_EXPR_ARGS): Delete.
19748         (call_expr_arglist): Delete.
19749         * tree.c (call_expr_arglist): Delete.
19750         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19751         targetm.fold_builtin.
19752         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19753         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19754         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19755         arglist parameter.  Use CALL_EXPR_ARG.
19756         (picochip_expand_builtin_3op): Likewise.
19757         (picochip_expand_builtin_2opvoid): Likewise.
19758         (picochip_expand_array_get): Likewise.
19759         (picochip_expand_array_put): Likewise.
19760         (picochip_expand_array_testport): Likewise.
19761         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
19762         rather than arglist.
19763         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19764         CALL_EXPR_ARGS.
19765         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19766         than TREE_VALUE and TREE_CHAIN.
19767         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19768         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19769         the arglist.
19770
19771 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19772
19773         PR bootstrap/42347
19774         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19775         to have no fallthru edge.
19776
19777         PR middle-end/44102
19778         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19779         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19780         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19781         add BARRIER after previous bb if needed.
19782
19783 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19784
19785         * tree.c (build_function_type_list_1): Remove bogus assert condition.
19786
19787 2010-05-17  Alan Modra  <amodra@gmail.com>
19788
19789         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19790         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
19791         with copy_reg rtx param.
19792         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19793         Correct cases where code for ABI_V4 did not initialise the reg
19794         used to access frame.  Also leave frame_reg_rtx as sp for large
19795         frames that save no regs.
19796
19797 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19798
19799         PR middle-end/44133
19800         * tree-sra.c (create_access_replacement): New parameter rename, mark
19801         the replaement for renaming only when it is true.
19802         (get_access_replacement): Pass true in the rename parameter of
19803         create_access_replacement.
19804         (get_unrenamed_access_replacement): New function.
19805         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19806         replacement declaration from it.
19807
19808 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
19809
19810         * function.c (try_fit_stack_local, add_frame_space): New static
19811         functions.
19812         (assign_stack_local_1): Use them.  Look for opportunities to use
19813         space previously wasted on alignment.
19814         * function.h (struct frame_space): New.
19815         (struct rtl_data): Add FRAME_SPACE_LIST member.
19816         * reload1.c (something_was_spilled): New static variable.
19817         (alter_reg): Set it.
19818         (reload): Test it in addition to testing if the frame size changed.
19819
19820 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19821
19822         * config/s390/s390.c: Define sane prefetch settings and activate
19823         flag_prefetch_loop_arrays on -O3.
19824         * config/s390/s390.h: Declare that read can use write prefetch.
19825
19826 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19827
19828         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19829         build.
19830
19831 2010-05-16  Jan Hubicka  <jh@suse.cz>
19832
19833         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19834         function body; do not check stdarg field of struct function.
19835
19836 2010-05-16  Jan Hubicka  <jh@suse.cz>
19837
19838         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19839         * cgraph.h (cgraph_local_info): Add versionable flag.
19840         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19841         (ipcp_versionable_function_p): Use it.
19842         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19843         versionable flag.
19844
19845 2010-05-16  Jan Hubicka  <jh@suse.cz>
19846
19847         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19848         clone into hash when it is different from orig.
19849         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19850         * cgraph.h (cgraph_clone_node): Update prototype.
19851         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19852         (lto_cgraph_encoder_delete): Delete body map.
19853         (lto_cgraph_encoder_size): Move to header.
19854         (lto_cgraph_encoder_encode_body_p,
19855         lto_set_cgraph_encoder_encode_body): New.
19856         (lto_output_node): Do not take written_decls argument; output clone_of
19857         pointer.
19858         (add_node_to): Add include_body_argument; call
19859         lto_set_cgraph_encoder_encode_body on master of the clone.
19860         (add_references): Update use of add_node_to.
19861         (compute_ltrans_boundary): Likewise.
19862         (output_cgraph): Do not create written_decls bitmap.
19863         (input_node): Take nodes argument; stream in clone_of correctly.
19864         (input_cgraph_1): Update use of input_node.
19865         * lto-streamer-out.c (lto_output): Use encoder info to decide
19866         what bodies to output.
19867         * ipa-inline.c (cgraph_clone_inlined_nodes,
19868         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19869         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19870         (lto_cgraph_encoder_size): Define here.
19871         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19872         Declare.
19873
19874 2010-05-16  Richard Guenther  <rguenther@suse.de>
19875
19876         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19877         -fipa-type-escape.
19878         * ipa-type-escape.c (gate_type_escape_vars): Run when
19879         -fipa-struct-reorg runs.
19880         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19881         * common.opt (fipa-type-escape): Remove.
19882
19883 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19884
19885         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19886         (decode_options): Likewise.
19887         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19888
19889 2010-05-16  Jan Hubicka  <jh@suse.cz>
19890
19891         * ipa.c (function_and_variable_visibility): Also bring local all
19892         aliases.
19893
19894 2010-05-16  Richard Guenther  <rguenther@suse.de>
19895
19896         * alias.c (nonoverlapping_memrefs_p): Remove use of
19897         IPA type-escape information.
19898
19899 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19900
19901         * c-common.c (c_common_reswords): Add _Static_assert for C.
19902         * c-parser.c (c_token_starts_declaration,
19903         c_parser_next_token_starts_declaration,
19904         c_parser_static_assert_declaration_no_semi,
19905         c_parser_static_assert_declaration): New.
19906         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19907         Handle static assertions if static_assert_ok.
19908         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19909         c_parser_compound_statement_nostart, c_parser_label,
19910         c_parser_for_statement, c_parser_objc_methodprotolist,
19911         c_parser_omp_for_loop): All callers of
19912         c_parser_declaration_or_fndef changed.
19913         (c_parser_struct_declaration): Handle static assertions.
19914         (c_parser_compound_statement_nostart): Use
19915         c_parser_next_token_starts_declaration and
19916         c_token_starts_declaration to detect start of declarations.
19917         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19918         Likewise.
19919
19920 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19921
19922         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19923         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19924         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19925         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19926         (mmix_function_outgoing_value): Rename to...
19927         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19928         (mmix_function_value_regno_p): Make static.
19929         (mmix_libcall_value): New function.
19930         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19931         mmix_function_value_regno_p): Remove declaration.
19932
19933 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19934
19935         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19936         BUILT_IN_ALLOCA if stack checking is enabled.
19937
19938 2010-05-16  Richard Guenther  <rguenther@suse.de>
19939
19940         * var-tracking.c (vars_copy_1): Inline ...
19941         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19942         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19943         (variable_merge_over_cur): Adjust.  Merge asserts.
19944         (variable_merge_over_src): Likewise.
19945         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19946         (variable_post_merge_new_vals): Merge asserts.
19947         (variable_post_merge_perm_vals): Likewise.
19948         (find_mem_expr_in_1pdv): Likewise.
19949         (dataflow_set_different_value): Remove.
19950         (onepart_variable_different_p): Merge asserts.
19951         (variable_different_p): Likewise.
19952         (dataflow_set_different_1): Inline ...
19953         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19954         (emit_notes_for_differences_1): Merge asserts.
19955
19956 2010-05-16  Richard Guenther  <rguenther@suse.de>
19957
19958         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19959         * optabs.c (libfunc_decl_hash): Likewise.
19960         * varasm.c (emutls_decl): Likewise.
19961
19962 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19963
19964         * c-decl.c: Don't include gimple.h.
19965         (merge_decls): Do not copy gimple_body.
19966
19967 2010-05-15  Jason Merrill  <jason@redhat.com>
19968
19969         * c.opt: Add -fnothrow-opt.
19970
19971 2010-05-15  Jan Hubicka  <jh@suse.cz>
19972
19973         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19974         analyzed.
19975         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19976
19977 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19978
19979         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19980         * Makefile.in: Add it.
19981         Fix all other Makefile dependencies for changes below.
19982         * tree.h: Include it instead of defining VEC primitives here.
19983         * gimple.h: Likewise.
19984         * rtl.h: Likewise.
19985         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19986         * except.h: Include vecir.h, break dependence on tree.h.
19987
19988         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19989         Move from here...
19990         * tree-iterator.c: ...to here.
19991         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19992
19993         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19994         tm_p.h.
19995         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19996         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19997         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19998         tree-mudflap.h, and target.h.
19999         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
20000         predict.h, tree-inline.h, gimple.h, and langhooks.h.
20001         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
20002         Add FIXME for why gimple.h is still included (should be unnecessary
20003         since GCC 4.5 gimplification unit-at-a-time).
20004         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
20005         * c-pragma.c: Add FIXME for why function.h needs to be included just
20006         for cfun, at front-end level.
20007         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
20008         Do not include ggc.h, but include vecprim.h for VEC(char).
20009         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
20010         Explain why target.h is included.
20011         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
20012         Explain why gimple.h is included.
20013         * c-ppoutput.c: Do not include tm.h.
20014         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
20015         * c-parses.c: Explain why rtl.h is included, and that this (and only
20016         this) is also why tm.h must be included.
20017         Do not include except.h.
20018         * c-lang.c: Do not include ggc.h.
20019
20020 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
20021
20022         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
20023
20024 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
20025
20026         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
20027         unions by default if those structs and unions have no tags.  Do
20028         not condition anonymous struct and unions handling on flag_iso.
20029         Allow anonymous structs and unions for C1X.
20030         (finish_struct): Do not diagnose lack of named fields when
20031         anonymous structs and unions present for C1X.  Accept flexible
20032         array members in structure with anonymous structs or unions but no
20033         directly named fields.
20034         * doc/extend.texi (Unnamed Fields): Update.
20035
20036 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
20037
20038         * gimple.h (compare_field_offset): Rename into...
20039         (gimple_compare_field_offset): ...this.
20040         * gimple.c (compare_field_offset): Rename into...
20041         (gimple_compare_field_offset): ...this.  Compare the full access if
20042         the offset is self-referential.
20043         (gimple_types_compatible_p): Adjust for above renaming.
20044         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
20045         DECL_NONADDRESSABLE_P flag of fields before merging them.
20046
20047 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
20048
20049         * tree.h (ctor_to_list): Delete.
20050         * tree.c (ctor_to_list): Delete.
20051
20052 2010-05-15  Jan Hubicka  <jh@suse.cz>
20053
20054         * ipa-reference.c: Include toplev.h
20055         (is_proper_for_analysis): Only add to all_module_statics
20056         if it is allocated.
20057         (write_node_summary_p, stream_out_bitmap,
20058         ipa_reference_write_optimization_summary,
20059         ipa_reference_read_optimization_summary): New.
20060         (struct ipa_opt_pass_d pass_ipa_reference): Add
20061         optimization summary streaming.
20062         * lto-cgraph.c (referenced_from_this_partition_p,
20063         reachable_from_this_partition_p): New functions.
20064         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20065         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
20066         * opts.c (decode_options): Enable ipa_reference.
20067         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
20068         * lto-streamer.h (referenced_from_this_partition_p,
20069         reachable_from_this_partition_p): Declare.
20070
20071 2010-05-15  Richard Guenther  <rguenther@suse.de>
20072
20073         PR tree-optimization/44038
20074         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
20075         taking the address of a V_C_E of a constant.
20076
20077 2010-05-14  Jan Hubicka  <jh@suse.cz>
20078
20079         * tree.h (memory_identifier_string): Remove.
20080         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
20081         (ipa_reference_global_vars_info_d): Remove statics_not_read and
20082         statics_not_written.
20083         (ipa_reference_optimization_summary_d): New structure.
20084         (ipa_reference_optimization_summary_t): New type and vector.
20085         (ipa_reference_vars_info_d): Embedd structures instead of using
20086         pointers.
20087         (reference_vars_to_consider): Remove out of GGC space.
20088         (module_statics_escape): Remove.
20089         (global_info_obstack): Rename to ...
20090         (optimization_summary_obstack): ... this one.
20091         (initialization_status_t): Remove.
20092         (memory_identifier_string): Remove.
20093         (get_reference_vars_info): Fix indenting.
20094         (set_reference_vars_info): Likewise.
20095         (get_reference_optimization_summary): New.
20096         (set_reference_optimization_summary): New.
20097         (get_global_reference_vars_info): Remove.
20098         (ipa_reference_get_read_global): Remove.
20099         (ipa_reference_get_written_global): Remove.
20100         (ipa_reference_get_not_read_global): Update.
20101         (ipa_reference_get_not_written_global): Update.
20102         (is_proper_for_analysis): Outlaw addressable.
20103         (propagate_bits): Update for new datastructures.
20104         (analyze_variable): Remove.
20105         (init_function_info): Update for new datastructures.
20106         (clean_function_local_data): Remove.
20107         (clean_function): Remove.
20108         (copy_global_bitmap): Use optimizations_summary_obstack.
20109         (duplicate_node_data): Duplicate optimization summary only.
20110         (remove_node_data): Remove optimization summary only.
20111         (generate_summary): Do not analyze variables; do not compute
20112         module_statics_escape; do not prune solutions by it.
20113         (read_write_all_from_decl): Fix typos in comments.
20114         (propagate): Doscover readonly and nonaddressable first;
20115         update for new datastructures; share global bitmaps.
20116         * ipa-reference.h (ipa_reference_get_read_global,
20117         ipa_reference_get_written_global): Remove.
20118         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
20119         * Makefile.in: Remove ipa-refereference from GT files.
20120
20121 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20122
20123         PR debug/44112
20124         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
20125         for all SYMBOL_REF_DECLs.
20126
20127 2010-05-14  Jan Hubicka  <jh@suse.cz>
20128
20129         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
20130         (varpool_all_refs_explicit_p): New inline function.
20131         * ipa-reference.c: Update comment.
20132         (module_statics_written): Remove.
20133         (get_static_decl): Remove.
20134         (ipa_init): Do not initialize module_statics_written.
20135         (analyze_function): Likewise.
20136         (generate_summary): Likewise; do not compute module_statics_readonly
20137         and do not update variable flags.
20138         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
20139         * ipa.c: Inlucde flags.h
20140         (cgraph_local_node_p): New.
20141         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
20142         promote functions to local.
20143         (ipa_discover_readonly_nonaddressable_vars): New function.
20144         (function_and_variable_visibility): Use cgraph_local_node_p.
20145         * varpool.c (varpool_finalize_decl): Set force_output for
20146         DECL_PRESERVE_P vars.
20147
20148 2010-05-14  Jan Hubicka  <jh@suse.cz>
20149
20150         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
20151
20152 2010-05-14  Richard Guenther  <rguenther@suse.de>
20153
20154         PR tree-optimization/44119
20155         * tree-ssa-pre.c (eliminate): Properly mark replacement of
20156         a PHI node necessary.
20157
20158 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20159
20160         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
20161
20162 2010-05-14  Jason Merrill  <jason@redhat.com>
20163
20164         PR c++/44127
20165         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
20166         (gimple_call_set_nothrow): New.
20167         * gimple.c (gimple_build_call_from_tree): Call it.
20168         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
20169
20170         PR c++/44127
20171         * gimplify.c (gimplify_seq_add_stmt): No longer static.
20172         * gimple.h: Declare it.
20173         * gimple.c (gimple_build_eh_filter): No ops.
20174
20175 2010-05-14  Jan Hubicka  <jh@suse.cz>
20176
20177         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
20178         nodes already in queue.
20179         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
20180         re-enqueueing node.
20181
20182 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20183
20184         PR debug/44136
20185         * cfgexpand.c (expand_debug_expr): If non-memory op0
20186         has BLKmode, return NULL.
20187
20188 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
20189
20190         * config.gcc: Add support for --with-cpu option for bdver1.
20191         * config/i386/i386.h (TARGET_BDVER1): New macro.
20192         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
20193         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20194         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
20195         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20196         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
20197         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
20198         (processor_type): Add PROCESSOR_BDVER1.
20199         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
20200         processor_type in config/i386/i386.h.
20201         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
20202         movaps <reg, reg> instead of movapd <reg, reg> when replacing
20203         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
20204         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
20205         to emit packed xor instead of packed double/packed integer
20206         xor for SSE and AVX when moving a zero value.
20207         * config/i386/sse.md: Add check for
20208         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
20209         movapd/movdqa for SSE and AVX.
20210         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
20211         single logical operations i.e and, or and xor instead of packed double
20212         logical operations for SSE and AVX.
20213         * config/i386/i386-c.c (ix86_target_macros_internal):
20214         Add PROCESSOR_BDVER1.
20215         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
20216         (has_fma4, has_xop): New.
20217         * config/i386/i386.c (bdver1_cost): New variable.
20218         (m_BDVER1): New macro.
20219         (m_AMD_MULTIPLE): Add m_BDVER1.
20220         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
20221         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
20222         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
20223         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
20224         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
20225         x86_tune_sse_partial_reg_dependency,
20226         x86_tune_sse_unaligned_load_optimal,
20227         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
20228         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
20229         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
20230         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
20231         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
20232         Enable/disable for bdver1.
20233         (processor_target_table): Add bdver1_cost.
20234         (cpu_names): Add bdver1.
20235         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
20236          processor_alias_table.
20237         (ix86_expand_vector_move_misalign): Change.
20238         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
20239         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
20240         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
20241         of movupd/movdqu for SSE and AVX.
20242         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
20243         (ix86_tune_adjust_cost): Add code for bdver1.
20244         (standard_sse_constant_opcode): Add check for
20245         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
20246         of packed double xor for SSE and AVX.
20247
20248 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
20249
20250         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
20251         result to unsigned.
20252
20253 2010-05-14  Tristan Gingold  <gingold@adacore.com>
20254
20255         * toplev.c (default_debug_hooks): Remove this variable.
20256         (process_options): Remove assignments to default_debug_hooks.
20257
20258 2010-05-14  Martin Jambor  <mjambor@suse.cz>
20259
20260         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
20261         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
20262         * langhooks.h (struct lang_hooks_for_decls): Removed field
20263         fold_obj_type_ref.
20264         * tree.c (free_lang_data): Remove assignment to
20265         lang_hooks.fold_obj_type_ref.
20266         * tree.def (OBJ_TYPE_REF): Update comment.
20267
20268 2010-05-14  Richard Guenther  <rguenther@suse.de>
20269
20270         PR tree-optimization/44124
20271         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
20272
20273 2010-05-14  Alan Modra  <amodra@gmail.com>
20274
20275         PR target/44075
20276         * config/rs6000/rs6000.c (struct machine_function): Reorder
20277         fields for better packing.  Add lr_save_state.
20278         (rs6000_ra_ever_killed): Return lr_save_state if set.
20279         (rs6000_emit_eh_reg_restore): Set lr_save_state.
20280
20281 2010-05-13  Jan Hubicka  <jh@suse.cz>
20282
20283         * varpool.c (decide_is_variable_needed): Drop code checking
20284         TREE_SYMBOL_REFERENCED.
20285
20286 2010-05-13  Jan Hubicka  <jh@suse.cz>
20287
20288         * final.c (output_addr_const): Do not call mark_decl_referenced.
20289         * cgraphunit.c (process_function_and_variable_attributes): Use
20290         mark_needed_node dirrectly.
20291         (assemble_thunk): Do not call mark_decl_referenced.
20292
20293 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
20294
20295         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
20296
20297 2010-05-13  Jeff Law  <law@redhat.com>
20298
20299         * ira-conflicts.c (print_allocno_conflicts): New function broken out
20300         from...
20301         (print_conflicts): Call print_allocno_conflicts.
20302
20303 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20304
20305         PR debug/44104
20306         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
20307         if it is NULL.
20308
20309 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
20310
20311         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
20312         t-mingw-w64 or t-mingw-w32 for multilib configuration.
20313         * config/i386/t-mingw-w32: New.
20314         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
20315
20316 2010-05-13  Martin Jambor  <mjambor@suse.cz>
20317
20318         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
20319         gimple-fold.c).
20320         * gimple-fold.c (get_base_binfo_for_type): New function.
20321         (gimple_get_relevant_ref_binfo): Likewise.
20322         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20323         (gimple_fold_obj_type_ref): Likewise.
20324         (fold_gimple_call): Simplify condition for folding virtual calls
20325         and call gimple_fold_obj_type_ref.
20326         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
20327         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20328
20329 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
20330
20331         * config/rs6000/rs6000-protos.h
20332         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
20333         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
20334         (rs6000_debug_mode_dependent_address)
20335         (rs6000_mode_dependent_address_ptr): Likewise.
20336
20337 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20338
20339         PR debug/43983
20340         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
20341         by SRA.
20342         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
20343         * tree-sra.c (create_access_replacement): Call unshare_expr before
20344         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
20345         * dwarf2out.c: Include tree-flow.h.
20346         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
20347         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
20348         Handle DW_OP_bit_piece.
20349         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
20350         construct_piece_list, adjust_piece_list): New functions.
20351         (add_var_loc_to_decl): Handle SRA optimized variables.
20352         Adjust for var_loc_note to loc field renaming.
20353         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
20354         in VAR_LOCATION note.
20355         (new_loc_descr_op_bit_piece): New function.
20356         (dw_sra_loc_expr): New function.
20357         (dw_loc_list): Use it.  Don't handle the last range after the
20358         loop, handle it inside of the loop.  Adjust for var_loc_note
20359         to loc field renaming.
20360         (add_location_or_const_value_attribute): Only special case
20361         single entry loc lists if loc is NOTE_P.  Adjust for
20362         var_loc_note to loc field renaming.
20363         (dwarf2out_var_location): Don't set newloc->var_loc_note
20364         and newloc->next here.
20365
20366 2010-05-12  Jan Hubicka  <jh@suse.cz>
20367
20368         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
20369         flag.
20370         * cgraph.h (cgraph_only_called_directly_p,
20371         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
20372         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
20373         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
20374         (assemble
20375         * ipa.c (cgraph_remove_unreachable_nodes): Use
20376         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
20377         flags.
20378         * tree-inline.c (copy_bb): Check address_taken flag.
20379         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
20380         externally_visible flag.
20381
20382 2010-05-12  Jason Merrill  <jason@redhat.com>
20383
20384         PR bootstrap/44048
20385         PR target/44099
20386         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
20387         * sdbout.c (plain_type_1): Likewise.
20388         * dwarf2out.c (is_base_type): Likewise.
20389         (gen_type_die_with_usage): Likewise.  Generate
20390         DW_TAG_unspecified_type for any LANG_TYPE.
20391
20392 2010-05-12  Jan Hubicka  <jh@suse.cz>
20393
20394         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
20395         indrect edges too.
20396         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
20397         (cgraph_clone_edge): Update.
20398         (cgraph_node_remove_callees): Remove indirect calls too.
20399         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
20400         (cgraph_create_indirect_edge): Update prototype.
20401         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
20402         is_proper_for_analysis.
20403         (add_new_function, visited_nodes, function_insertion_hook_holder,
20404         get_local_reference_vars_info, mark_address_taken, mark_address,
20405         mark_load, mark_store, check_asm_memory_clobber, check_call,
20406         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
20407         (ipa_init): Do not initialize visited_nodes;
20408         function_insertion_hook_holder.
20409         (analyze_variable): Rewrite.
20410         (analyze_function): Rewrite.
20411         (copy_local_bitmap): Remove.
20412         (duplicate_node_dat): Do not duplicate local info.
20413         (generate_summary): Simplify to only walk cgraph.
20414         (write_node_summary_p, ipa_reference_write_summary,
20415         ipa_reference_read_summary): Remove.
20416         (propagate): Do not remove function insertion;
20417         generate summary.
20418         (pass_ipa_reference): NULLify summary handling fields.
20419         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
20420         (input_edge): Input ecf_flags.
20421         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
20422         (update_indirect_edges_after_inlining): Ignore edges with unknown
20423         param.
20424
20425 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
20426
20427         * implicit-zee.c: New file.
20428         * tree-pass.h (pass_implicit_zee): Declare.
20429         * passes.c (init_optimization_passes): Add zee pass.
20430         * common.opt (fzee): New flag.
20431         * timevar.def (TV_ZEE): Define.
20432         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
20433         and beyond.
20434         * Makefile.in (implicit-zee.o): Add new build file.
20435
20436 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20437             Nathan Froyd  <froydnj@codesourcery.com>
20438
20439         * c-common.c (sync_resolve_params): Remove write-only variable.
20440
20441 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
20442
20443         * target.h (struct gcc_target): Add mode_dependent_address_p field.
20444         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20445         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20446         * targhooks.c (default_mode_dependent_address_p): New function.
20447         * targhooks.h (default_mode_dependent_address_p): Declare function.
20448         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20449         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20450         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20451         target hook. Change return type to bool.
20452         * recog.h (mode_dependent_address_p): Change return type to bool.
20453
20454 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20455             Nathan Froyd  <froydnj@codesourcery.com>
20456
20457         * tree-mudflap.c (build_function_type_0, build_function_type_1,
20458         build_function_type_2, build_function_type_3): Remove.
20459         (mudflap_init): Use build_function_type_list.
20460
20461 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20462             Nathan Froyd  <froydnj@codesourcery.com>
20463
20464         * coverage.c (build_fn_info_value): Call build_constructor instead of
20465         build_constructor_from_list.
20466         (build_ctr_info_value): Likewise.
20467         (build_gcov_info): Likewise.
20468
20469 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
20470
20471         * tree.c (build_constructor): Compute TREE_CONSTANT for the
20472         resultant constructor.
20473         (build_constructor_single): Don't set TREE_CONSTANT.
20474         (build_constructor_from_list): Don't compute TREE_CONSTANT.
20475
20476 2010-05-12  Jan Hubicka  <jh@suse.cz>
20477
20478         * cgraph.h (struct varpool_node): Add aux.
20479         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20480         * varpool.c (varpool_remove_node): Do not remove initializer.
20481         (varpool_reset_queue): Export.
20482         (varpool_finalize_decl): Volatile vars are forced to be output.
20483         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20484         replaced decl.
20485         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20486         process_references, varpool_can_remove_if_no_refs): New functions.
20487         (cgraph_remove_unreachable_nodes): Handle variables too.
20488
20489 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20490
20491         PR target/44088
20492         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20493
20494 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
20495
20496         PR middle-end/44085
20497         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20498         change value of ORT_TASK.
20499         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20500         (omp_notice_threadprivate_variable): New function.
20501         (omp_notice_variable): Call it for threadprivate variables.
20502         If enclosing ctx is a task, print enclosing task rather than
20503         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
20504         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20505         if task has untied clause.
20506
20507         PR debug/42278
20508         * dwarf2out.c (base_type_die): Don't add name attribute here.
20509         (modified_type_die): Instead of sizetype use
20510         its underlying original type.  If a DW_TAG_base_type doesn't
20511         have name added, add __unknown__.
20512         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20513         always call force_type_die instead.
20514
20515 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
20516
20517         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20518         for __stack_chk_guard.
20519
20520 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20521
20522         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20523         don't call start_source_file debug hook here...
20524         (finish_options): ... but here, after outputting predefined and
20525         command line defines and undefs.
20526
20527         PR middle-end/44071
20528         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20529         no fallthru edge.
20530         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20531         optimizing away empty bb with no successors, move over its
20532         footer chain to fallthru predecessor.
20533         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20534         (rtl_split_edge): For asm goto call patch_jump_insn even if
20535         splitting fallthru edge.
20536
20537         PR c++/44059
20538         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20539         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20540         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20541         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20542         on DW.ref.* decls.
20543
20544         PR c++/44062
20545         * c-parser.c (c_parser_expression): Mark LHS of a comma
20546         expression as read if it is a decl, handled component or
20547         COMPOUND_EXPR with that on the RHS.
20548         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20549         if it is a decl or handled component.
20550
20551 2010-05-11  Jan Hubicka  <jh@suse.cz>
20552
20553         * lto-symtab.c (lto_symtab_free): New function.
20554         * lto-streamer.h (lto_symtab_free): Declare.
20555
20556 2010-05-11  Jan Hubicka  <jh@suse.cz>
20557
20558         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20559         that if function is needed it is reachable.
20560         (lto_output_node): See if it the function is reachable or referenced.
20561         (output_cgraph): Update call of lto_output_node.
20562         * lto-streamer.h (reachable_from_other_partition_p): Declare.
20563
20564 2010-05-11  Jan Hubicka  <jh@suse.cz>
20565
20566         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20567         Mark as used.
20568
20569 2010-05-11  Jan Hubicka  <jh@suse.cz>
20570
20571         PR tree-optimize/44063
20572         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20573         queue.
20574         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20575         limits.
20576         (estimate_function_body_sizes): Compute sizes even when disregarding.
20577
20578 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
20579
20580         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20581
20582 2010-05-11  Jan Hubicka  <jh@suse.cz>
20583
20584         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20585         into every boundary.
20586
20587 2010-05-11  Jan Hubicka  <jh@suse.cz>
20588
20589         * matrix-reorg.c (matrix_reorg): Rebuild edges.
20590
20591 2010-05-11  Jan Hubicka  <jh@suse.cz>
20592
20593         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20594         lto_streamer_cache_delete): Put nodes into heap.
20595         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20596         heap.
20597
20598 2010-05-11  Jan Hubicka  <jh@suse.cz>
20599
20600         * cgraphbuild.c (cgraph_rebuild_references): New.
20601         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20602         out extern inlines.
20603         * cgraph.h (cgraph_rebuild_references): Declare.
20604         * tree-inline.c (tree_function_versioning): Use it.
20605         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20606
20607 2010-05-11  Jan Hubicka  <jh@suse.cz>
20608
20609         * cgraph.c: Include ipa-utils.h
20610         (cgraph_create_virtual_clone): Update references.
20611         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20612
20613 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20614
20615         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20616         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20617         cache size.
20618
20619 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20620
20621         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20622
20623 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20624
20625         * gcc.c (execute): For -### don't quote arguments that
20626         contain just alphanumerics and _/-. characters.
20627         * doc/invoke.texi: Document that change for -###.
20628
20629         PR debug/44023
20630         * df-problems.c (struct dead_debug): Add to_rescan field.
20631         (dead_debug_init): Clear to_rescan field.
20632         (dead_debug_finish): Rescan all debug insns in to_rescan
20633         bitmap and free the bitmap.
20634         (dead_debug_insert_before): Instead of rescanning debug insns
20635         immediately queue their rescanning until dead_debug_finish.
20636         (df_note_bb_compute): After dead_debug_add do continue instead
20637         of break.
20638
20639 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
20640
20641         PR debug/44028
20642         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20643         clear also INSN_REG_USE_LIST.
20644
20645 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20646
20647         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20648
20649 2010-05-10  Jan Hubicka  <jh@suse.cz>
20650
20651         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20652         commited change.
20653
20654 2010-05-10  Jan Hubicka  <jh@suse.cz>
20655
20656         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20657         Allocate encoders.
20658         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20659         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20660         (lto_streamer_cache_create): Init alloc pool.
20661         (lto_streamer_cache_delete): Free alloc pool.
20662         * lto-streamer.h: Include alloc pool.
20663         (lto_streamer_cache_d): Use alloc pool.
20664         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20665
20666 2010-05-10  Jan Hubicka  <jh@suse.cz>
20667
20668         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20669         * cgraphbuild.c: Include except.h
20670         (record_type_list, record_eh_tables): New function.
20671         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20672
20673 2010-05-10  Jan Hubicka  <jh@suse.cz>
20674
20675         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20676         __frame_dummy_init_array_entry, force_to_data): Attribute as used
20677         rather than unused.
20678
20679 2010-05-10  Michael Matz  <matz@suse.de>
20680
20681         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20682         (can_reassociate_p): Use FLOAT_TYPE_P.
20683         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20684         (vect_force_simple_reduction): ... this.
20685         * tree-parloops.c (gather_scalar_reductions): Use
20686         vect_force_simple_reduction.
20687         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20688         vect_is_simple_reduction, add modify argument, if true rewrite
20689         "a-b" into "a+(-b)".
20690         (vect_is_simple_reduction, vect_force_simple_reduction): New
20691         functions.
20692         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20693
20694 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20695             Vladimir Makarov  <vmakarov@redhat.com>
20696
20697         PR rtl-optimization/44012
20698         * ira-build.c (remove_unnecessary_allocnos): Nullify
20699         regno_allocno_map of the removed allocno.
20700
20701 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20702
20703         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20704         to /dev/null.
20705         * configure: Regenerate.
20706
20707 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20708
20709         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20710         unused.
20711         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20712         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20713         support in Sun ld.
20714         * configure: Regenerate.
20715
20716 2010-05-10  Richard Guenther  <rguenther@suse.de>
20717
20718         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20719         marked if the entry identifier is marked.
20720
20721 2010-05-10  Richard Guenther  <rguenther@suse.de>
20722
20723         * c-common.c (struct c_common_attributes): Add fnspec attribute.
20724         (handle_fnspec_attribute): New function.
20725         * gimple.h (gimple_call_return_flags): Declare.
20726         (gimple_call_arg_flags): Likewise.
20727         * gimple.c (gimple_call_arg_flags): New function.
20728         (gimple_call_return_flags): Likewise.
20729         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20730         New argument flags.
20731         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20732         return value flags.
20733         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20734         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20735         main work to ...
20736         (make_heapvar_for): ... this new function.
20737         (handle_rhs_call): Handle fnspec attribute argument specifiers.
20738         (handle_lhs_call): Likewise.
20739         (find_func_aliases): Adjust.
20740
20741 2010-05-10  Richard Guenther  <rguenther@suse.de>
20742
20743         PR tree-optimization/44050
20744         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20745
20746 2010-05-10  Wei Guozhi  <carrot@google.com>
20747
20748         PR target/42879
20749         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20750
20751 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20752
20753         PR c/10676
20754         * c-typeck.c (lookup_field): Take a type directly.  Update
20755         recursive calls.
20756         (build_component_ref): Update call to lookup_field.
20757         (set_init_label): Use lookup_field to find initialized field.
20758         Handle returned list of fields like a sequence of designators.
20759
20760 2010-05-09  Richard Guenther  <rguenther@suse.de>
20761
20762         PR middle-end/44024
20763         * fold-const.c (tree_single_nonzero_warnv_p): Properly
20764         handle &FUNCTION_DECL.
20765
20766 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20767
20768         PR c/4784
20769         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
20770         structures and unions recursively.
20771         (detect_field_duplicates): Move duplicate detection with a hash to
20772         detect_field_duplicates_hash.  Always use a hash if anonymous
20773         structures or unions are present.
20774         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20775         give errors.
20776
20777 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20778
20779         PR target/44046
20780         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20781         detect Atom, Core 2 and Core i7.
20782
20783 2010-05-09  Richard Guenther  <rguenther@suse.de>
20784
20785         * gcc.c (store_arg): Handle temporary file deletion for
20786         joined arguments.
20787
20788 2010-05-09  Richard Guenther  <rguenther@suse.de>
20789
20790         PR middle-end/44043
20791         * ipa-inline.c (estimate_function_body_sizes): Return after
20792         disregarding inline limits.
20793
20794 2010-05-09  Richard Guenther  <rguenther@suse.de>
20795
20796         * gcc.c (store_arg): Revert last change.
20797
20798 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
20799
20800         PR middle-end/28685
20801         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20802         (optimize_ops_list): Call it.
20803
20804 2010-05-08  Richard Guenther  <rguenther@suse.de>
20805
20806         PR tree-optimization/44030
20807         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
20808         NECESSARY flag if we propagate from a inserted expression.
20809
20810 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
20811
20812         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20813         domain types as equal if they are both PLACEHOLDER_EXPRs.
20814
20815 2010-05-08  Richard Guenther  <rguenther@suse.de>
20816
20817         * lto-wrapper.c (run_gcc): Remove linker output from
20818         command line for LTRANS invocation.
20819
20820 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20821
20822         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20823         lto-macho as lto_binary_reader.
20824         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20825         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20826         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20827         in lto_start and lto_end calls.
20828         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20829         magic numbers.
20830         (scan_prog_file): Update is_elf_or_coff call.
20831         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20832
20833         * collect2.c (main): Fix enum comparison.
20834
20835         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20836         Add prototypes.
20837         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20838         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20839         and TARGET_ASM_LTO_END.
20840         * darwin.c: Include obstack.h and lto-streamer.h.
20841         (lto_section_names_offset, lto_section_names_obstack,
20842         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20843         global variables.
20844         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20845         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20846         to a temporary file.
20847         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20848         (darwin_asm_named_section): For LTO sections, replace the name with
20849         the offset of the section name in a string table, and build this
20850         table.
20851         (darwin_file_start): Initialize global vars for LTO support.
20852         (darwin_file_end): If output to asm_out_file was redirected, append it
20853         to the proper asm_out_file here.  Add the section names section.
20854
20855 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20856
20857         * c-pragma.c (pending_weak_d, pending_weak): New.
20858         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20859         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20860         handle_pragma_weak): Update the uses of pending_weaks.
20861
20862 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20863
20864         PR documentation/44016
20865         * doc/standards.texi (Standards): Link to unversioned
20866         cxx0x_status.html page.
20867
20868 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20869
20870         PR target/43708
20871         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20872         in addition to TREE_USED, to avoid "set but unused" warnings.
20873
20874 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20875
20876         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20877         (is_loop_prefetching_profitable): Do not insert prefetches
20878         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20879         times the prefetch ahead distance.
20880
20881 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20882
20883         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20884         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20885         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20886         the unroll_factor.
20887
20888 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20889
20890         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20891         a diagnostic info when the insn-to-mem ratio is too small.
20892
20893 2010-05-07  Richard Guenther  <rguenther@suse.de>
20894
20895         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20896         the linker plugin.
20897         (store_arg): Queue temp_filename for deletion instead of
20898         the whole argument.
20899
20900 2010-05-07  Richard Guenther  <rguenther@suse.de>
20901
20902         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20903         (run_gcc): Handle LTRANS phase invocation.
20904         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20905
20906 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20907
20908         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20909         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20910
20911 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20912
20913         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20914
20915 2010-05-07  Richard Guenther  <rguenther@suse.de>
20916
20917         PR tree-optimization/44020
20918         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20919         code when PRE is not yet initialized.
20920
20921 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20922
20923         * config/mips/dbxmdebug.h: Remove.
20924         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20925
20926 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20927
20928         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20929         with null pointer and also warn about ordered comparison of zero with
20930         pointer if -Wextra.
20931
20932 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20933
20934         * graphite-blocking.c
20935         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20936         * graphite-clast-to-gimple.c
20937         (clast_to_gcc_expression): Same.
20938         (precision_for_value): Same.
20939         (precision_for_interval): Same.
20940         (gcc_type_for_interval): Same.
20941         (graphite_create_new_guard): Same.
20942         (compute_bounds_for_level): Same.
20943         (graphite_create_new_loop_guard): Same.
20944         * graphite-interchange.c
20945         (build_linearized_memory_access): Same.
20946         (pdr_stride_in_loop): Same.
20947         (memory_strides_in_loop_1): Same.
20948         (memory_strides_in_loop): Same.
20949         (extend_scattering): Same.
20950         (psct_scattering_dim_for_loop_depth): Same.
20951         (pbb_number_of_iterations): Same.
20952         * graphite-poly.h
20953         (debug_iteration_domains): Same.
20954         * graphite-ppl.c
20955         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20956         (ppl_set_inhomogeneous_gmp): Same.
20957         (ppl_strip_loop): Same.
20958         (ppl_lexico_compare_linear_expressions): Same.
20959         (ppl_read_polyhedron_matrix): Same.
20960         (ppl_max_for_le_pointset): Same.
20961         * graphite-ppl.h
20962         (ppl_read_polyhedron_matrix): Same.
20963         (tree_int_to_gmp): Same.
20964         (gmp_cst_to_tree): Same.
20965         (ppl_set_inhomogeneous): Same.
20966         (ppl_set_inhomogeneous_tree): Same.
20967         (ppl_set_coef): Same.
20968         (ppl_set_coef_tree): Same.
20969         * graphite-sese-to-poly.c
20970         (build_pbb_scattering_polyhedrons): Same.
20971         (build_scop_scattering): Same.
20972         (scan_tree_for_params_right_scev): Same.
20973         (scan_tree_for_params): Same.
20974         (find_params_in_bb): Same.
20975         (find_scop_parameters): Same.
20976         (add_upper_bounds_from_estimated_nit): Same.
20977         (build_loop_iteration_domains): Same.
20978         (add_condition_to_domain): Same.
20979         (pdr_add_memory_accesses): Same.
20980
20981 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20982
20983         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20984         CLooG's value_* macros to their respective mpz_* counterparts.
20985         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20986         (graphite_create_new_loop_guard): Same.
20987         * graphite-interchange.c (build_linearized_memory_access): Same.
20988         (pdr_stride_in_loop): Same.
20989         (memory_strides_in_loop_1): Same.
20990         (1st_interchange_profitable_p): Same.
20991         * graphite-poly.c (extend_scattering): Same.
20992         (psct_scattering_dim_for_loop_depth): Same.
20993         (pbb_number_of_iterations): Same.
20994         (pbb_number_of_iterations_at_time): Same.
20995         * graphite-poly.h (new_1st_loop): Same.
20996         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20997         (oppose_constraint): Same.
20998         (insert_constraint_into_matrix): Same.
20999         (ppl_set_inhomogeneous_gmp): Same.
21000         (ppl_set_coef_gmp): Same.
21001         (ppl_strip_loop): Same.
21002         (ppl_lexico_compare_linear_expressions): Same.
21003         (ppl_max_for_le_pointset): Same.
21004         (ppl_min_for_le_pointset): Same.
21005         (ppl_build_realtion): Same.
21006         * graphite-ppl.h (gmp_cst_to_tree): Same.
21007         (ppl_set_inhomogeneous): Same.
21008         (ppl_set_inhomogeneous_tree): Same.
21009         (ppl_set_coef): Same.
21010         (ppl_set_coef_tree): Same.
21011         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
21012         (build_scop_scattering): Same.
21013         (add_value_to_dim): Same.
21014         (scan_tree_for_params_right_scev): Same.
21015         (scan_tree_for_params_int): Same.
21016         (scan_tree_for_params): Same.
21017         (find_params_in_bb): Same.
21018         (find_scop_parameters): Same.
21019         (add_upper_bounds_from_estimated_nit): Same.
21020         (build_loop_iteration_domains): Same.
21021         (create_linear_expr_from_tree): Same.
21022         (add_condition_to_domain): Same.
21023         (pdr_add_memory_accesses): Same.
21024
21025 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
21026             Jason Merrill  <jason@redhat.com>
21027
21028         * c-common.c (c_common_reswords): Add nullptr.
21029         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
21030         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
21031         (gen_type_die_with_usage): Likewise.
21032         * dbxout.c (dbxout_type): Likewise.
21033         * sdbout.c (plain_type_1): Likewise.
21034
21035 2010-05-06  Jason Merrill  <jason@redhat.com>
21036
21037         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
21038         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
21039         ret appropriately.
21040         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
21041
21042         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
21043         stripping WITH_SIZE_EXPR.
21044         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
21045         change.
21046
21047 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21048
21049         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
21050         list of obsolete configurations.
21051         Disabled check for obsolete configurations.
21052         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
21053         Removed support for previous versions.
21054         * config/mips/iris.h: Removed.
21055         * config/mips/iris5.h: Removed.
21056         * config/mips/iris6.h: Merged old iris.h contents.
21057         (TARGET_IRIX): Removed.
21058         (DRIVER_SELF_SPECS): Removed mabi=32.
21059         (IDENT_ASM_OP): Removed undef.
21060         (STARTFILE_SPEC): Removed mabi=32.
21061         (ENDFILE_SPEC): Likewise.
21062         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
21063         (MACHINE_TYPE): Update for IRIX 6.5.
21064         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
21065         TARGET_IRIX by TARGET_IRIX6.
21066         (mips_file_start): Likewise.
21067         (mips_output_external): Remove IRIX 5/6 O32 support.
21068         (mips_output_function_prologue): Likewise.
21069         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
21070         TARGET_IRIX6.
21071         (TARGET_CPU_CPP_BUILTINS): Likewise.
21072         (TARGET_IRIX): Removed.
21073         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
21074         (MULTILIB_DIRNAMES): Removed 32.
21075         (MULTILIB_OSDIRNAMES): Removed ../lib.
21076         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
21077         (Specific, mips-sgi-irix5): Document removal.
21078         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
21079         Remove references to older IRIX 6 releases and the O32 ABI.
21080
21081 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
21082
21083         PR bootstrap/43994
21084         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
21085         instead of DF_REF_REAL_REG.
21086
21087 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
21088
21089         PR target/43888
21090         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
21091         handling to still return true for x64 targets.
21092
21093 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21094
21095         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
21096
21097 2010-05-06  Jan Hubicka  <jh@suse.cz>
21098
21099         PR tree-optimization/43791
21100         * ipa-inline.c (update_caller_keys): Remove bogus
21101         disregard_inline_limits check.
21102
21103 2010-05-06  Michael Matz  <matz@suse.de>
21104
21105         PR tree-optimization/43984
21106         * tree-ssa-pre.c (inserted_phi_names): Remove.
21107         (inserted_exprs): Change to bitmap.
21108         (create_expression_by_pieces): Set bits, don't append to vector.
21109         (insert_into_preds_of_block): Don't handle inserted_phi_names.
21110         (eliminate): Don't look at inserted_phi_names, remove deleted
21111         insns from inserted_exprs.
21112         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
21113         (init_pre, fini_pre): Allocate and free bitmaps.
21114         (execute_pre): Insert insns on edges before elimination.
21115
21116 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21117
21118         * tree.c (initializer_zerop): Handle STRING_CST.
21119
21120 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21121
21122         PR 40989
21123         * doc/invoke.texi (Wimplicit): Document as C only.
21124         * opts.c (common_handle_option): Add argument kind.
21125         (handle_option): Rename as read_cmdline_option. Factor out code to...
21126         (handle_option): ... here. New.
21127         (handle_options): Rename as read_cmdline_options.
21128         (decode_options): Update call.
21129         (set_option): Use option index instead of option pointer. Classify
21130         diagnostics correctly.
21131         (enable_warning_as_error): Call handle_option.
21132         * opts.h (set_option): Update declaration.
21133         (handle_option): Declare.
21134         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
21135         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
21136         * c-opts.c (set_Wimplicit): Delete.
21137         (c_family_lang_mask): New static constant.
21138         (c_common_handle_option): Add argument kind. Use handle_option
21139         instead of set_Wimplicit.
21140         (c_common_post_options): warn_implicit and warn_implicit_int
21141         are disabled by default.
21142         * c-common.c (warn_implicit): Do not define here.
21143         * c-common.h (warn_implicit): Do not declare here.
21144         (c_common_handle_option): Update declaration.
21145         * lto-opts.c (lto_reissue_options): Update call to set_option.
21146
21147 2010-05-06  Richard Guenther  <rguenther@suse.de>
21148
21149         PR tree-optimization/43571
21150         * domwalk.c (walk_dominator_tree): Walk the dominator
21151         sons in more optimal order.
21152
21153 2010-05-06  Richard Guenther  <rguenther@suse.de>
21154
21155         PR tree-optimization/43934
21156         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
21157         (stmt_cost): Likewise.
21158         (extract_true_false_args_from_phi): New helper.
21159         (determine_max_movement): For PHI nodes verify we can hoist them
21160         and compute their cost.
21161         (determine_invariantness_stmt): Handle PHI nodes.
21162         (move_computations_stmt): Likewise.  Hoist PHI nodes in
21163         if-converted form using COND_EXPRs.
21164         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
21165         (tree_ssa_lim): Likewise.
21166         * tree-flow.h (tree_ssa_lim): Adjust prototype.
21167         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
21168
21169 2010-05-06  Richard Guenther  <rguenther@suse.de>
21170
21171         PR tree-optimization/43987
21172         * tree-ssa-structalias.c (could_have_pointers): For possibly
21173         address-taken variables force pointers to be recorded.
21174         (create_variable_info_for_1): Likewise.
21175         (push_fields_onto_fieldstack): Pass in wheter all fields
21176         must have pointers.
21177         (find_func_aliases): Query types instead of vars whether
21178         they contain pointers where appropriate.
21179
21180 2010-05-06  Jan Hubicka  <jh@suse.cz>
21181
21182         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
21183         (record_reference, mark_address, mark_load, mark_store): Record
21184         references.
21185         (record_references_in_initializer): Update call of record_references.
21186         (rebuild_cgraph_edges): Remove all references before rebuiding.
21187         * cgraph.c (cgraph_create_node): Clear ref list.
21188         (cgraph_remove_node): Remove references.
21189         (dump_cgraph_node): Dump references.
21190         (cgraph_clone_node): Clone references.
21191         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
21192         (struct cgraph_node, varpool_node): Add ref_lst.
21193         * ipa-ref.c: New file.
21194         * ipa-ref.h: New file.
21195         * ipa-ref-inline.h: New file.
21196         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
21197         (referenced_from_other_partition_p): New function.
21198         (lto_output_varpool_node): Take set arugment; call
21199         referenced_from_other_partition.
21200         (lto_output_ref): New.
21201         (add_references): New.
21202         (output_refs): New.
21203         (output_cgraph): Compute boundary based on references; output refs.
21204         (output_varpool): Accept cgraph_node_set argument.
21205         (input_ref): New.
21206         (input_refs): New.
21207         (input_cgraph): Call input_refs.
21208         * lto-section-in.c (lto_section_name): Add refs.
21209         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
21210         (ipa-ref.o): New file.
21211         * varpool.c (varpool_node): Clear ipa ref list.
21212         (varpool_remove_node): Remove references.
21213         (dump_varpool_node): Dump references.
21214         (varpool_assemble_decl): Only compile finalized ones.
21215         (varpool_extra_name_alias): Initialize ref list.
21216         * lto-streamer.c (lto-get_section_name): Add .refs section.
21217         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
21218         (referenced_from_other_partition_p): Declared.
21219
21220 2010-05-06  Ira Rosen  <irar@il.ibm.com>
21221
21222         PR tree-optimization/43901
21223         * tree-vect-stmts.c (vectorizable_call): Assert that vector
21224         type is not NULL if it's transformation phase, and return
21225         FALSE if it's analysis.
21226         (vectorizable_conversion, vectorizable_operation,
21227         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
21228
21229 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
21230
21231         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21232         Delete.
21233         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21234         New define.
21235         * config/mips/mips-protos.h
21236         (mips_small_register_classes_for_mode_p): Delete prototype.
21237
21238 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
21239
21240         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
21241         * config/arm/arm.c (multiple_operation_profitable_p,
21242         compute_offset_order): New static functions.
21243         (load_multiple_sequence, store_multiple_sequence): Use them.
21244         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
21245         memory offsets, not register numbers.
21246         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
21247
21248 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
21249
21250         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
21251         (get_pending_sizes, put_pending_size, put_pending_sizes):
21252         Update the uses of pending_sizes.
21253         * c-decl.c (store_parm_decls): Likewise.
21254         * c-tree.h (struct c_arg_info): Likewise.
21255         * tree.h: Update the prototype for get_pending_sizes and
21256         put_pending_sizes.
21257
21258 2010-05-05  Jason Merrill  <jason@redhat.com>
21259
21260         PR debug/43370
21261         * c-common.c (handle_aligned_attribute): Respect
21262         ATTR_FLAG_TYPE_IN_PLACE.
21263
21264         PR testsuite/43758
21265         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
21266         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21267         (TARGET_INITIALIZER): Use it.
21268         * c-common.c (attribute_takes_identifier_p): Call it.
21269         * c-common.h: Update prototype.
21270         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
21271         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21272
21273 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21274
21275         PR debug/43950
21276         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
21277         DW_ID_down_case for Fortran compilation units.
21278
21279 2010-05-05  Jan Hubicka  <jh@suse.cz>
21280
21281         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
21282         handle aliases.
21283
21284 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
21285
21286         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
21287         a variable-sized RESULT_DECL.
21288
21289 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
21290
21291         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
21292
21293 2010-05-05  Jason Merrill  <jason@redhat.com>
21294
21295         PR c++/43787
21296         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
21297         returns GS_OK.
21298         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
21299
21300 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
21301             Jakub Jelinek  <jakub@redhat.com>
21302
21303         PR debug/43478
21304         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
21305         (dead_debug_init, dead_debug_finish): New functions.
21306         (dead_debug_add, dead_debug_insert_before): Likewise.
21307         (df_note_bb_compute): Initialize a dead_debug object, add dead
21308         debug uses to it, insert debug bind insns before death insns,
21309         reset debug insns that refer to pending uses at the end.
21310         * rtl.h (make_debug_expr_from_rtl): New prototype.
21311         * varasm.c (make_debug_expr_from_rtl): New function.
21312
21313 2010-05-05  Jan Hubicka  <jh@suse.cz>
21314
21315         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
21316         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
21317         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
21318         lto_varpool_encoder_deref, lto_varpool_encoder_size,
21319         lto_varpool_encoder_encode_initializer_p,
21320         lto_set_varpool_encoder_encode_initializer): New functions.
21321         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
21322         call output_varpool.
21323         (input_varpool_node): Do not always set analyzed.
21324         (input_cgraph_1): Return vector of cgraph nodes.
21325         (input_varpool_1): Return vector of varpools.
21326         (input_cgraph): Free the vectors.
21327         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21328         output only initializers needed.
21329         (lto_output): Only call output_cgraph.
21330         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
21331         * lto-section-out.c (lto_new_out_decl_state): Initialize
21332         state->varpool_node_encoder.
21333         * lto-streamer.h (lto_varpool_encoder_d): New.
21334         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
21335         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
21336         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
21337         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
21338         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
21339         Declare.
21340         (output_varpool, input_varpool): Remove declarations.
21341
21342 2010-05-05  Jan Hubicka  <jh@suse.cz>
21343
21344         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
21345         with body can prevail.
21346
21347 2010-05-05  Jan Hubicka  <jh@suse.cz>
21348
21349         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
21350         size.
21351
21352 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21353
21354         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
21355
21356         * gengtype.h (erro_at_line): Constify pos argument.
21357
21358         * gengtype.c: Include hashtab.h.
21359         (enum gc_used): Document GC_MAYBE_POINTED_TO.
21360         (error_at_line): Constify pos argument.
21361         (do_typedef): Initialize p->opt field.
21362         (get_file_gtfilename): Fix comment typo.
21363         (struct walk_type_data): Constify line field.
21364         (get_output_file_for_structure): New function.
21365         (write_local_func_for_structure): Constify orig_s argument.
21366         Use get_output_file_for_structure.
21367         (write_func_for_structure): Use get_output_file_for_structure.
21368         (INDENT): New define.
21369         (dump_pair, dump_type, dump_type_list, dump_typekind)
21370         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
21371         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
21372         functions.
21373         (seen_types): New variable.
21374         (main): New variable do_dump.  Process "-d" command line option.
21375         Call dump_everything if dump requested.
21376
21377 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21378
21379         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
21380         in a temporary instead of invoking the macro multiple times.
21381         (track_expr_p): Likewise.
21382
21383 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
21384
21385         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
21386         per new semantics.
21387         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
21388         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
21389         conditions for printing notes.
21390         * common.opt (-Wcoverage-mismatch): Allow negative, default to
21391         true, update documentation.
21392         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
21393
21394 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
21395
21396         PR c/43981
21397         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
21398         on dimen.
21399
21400 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21401
21402         PR target/43799
21403         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
21404         (*sse_prologue_save_insn1): Likewise.
21405         (SSE prologue save splitter): Likewise.
21406
21407 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21408
21409         * tree.c (free_lang_data_in_one_sizepos): New inline function.
21410         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
21411         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
21412         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
21413         all decls.  Call it on DECL_FIELD_OFFSET of fields.
21414         (find_decls_types_r): Follow DECL_VALUE_EXPR.
21415         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
21416
21417 2010-05-04  Martin Jambor  <mjambor@suse.cz>
21418
21419         * tree-sra.c (build_access_from_expr_1): The first parameter type
21420         changed to simple tree.
21421         (build_access_from_expr): Likewise, gsi parameter was eliminated.
21422         (scan_assign_result): Renamed to assignment_mod_result, enum elements
21423         renamed as well.
21424         (build_accesses_from_assign): Removed all parameters except for a
21425         simple gimple statement.  Now returns a simple bool.
21426         (scan_function): All non-analysis parts moved to separate functions
21427         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
21428         parameters and updated both callers.
21429         (sra_modify_expr): Removed parameter data.
21430         (sra_modify_function_body): New function.
21431         (perform_intra_sra): Call sra_modify_function_body to modify the
21432         function body.
21433         (replace_removed_params_ssa_names): Parameter data changed into
21434         adjustments vector.
21435         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
21436         changed the parameter dont_convert to convert with the opposite
21437         meaning.
21438         (sra_ipa_modify_assign): Parameter data changed into adjustments
21439         vector, return value changed to bool.
21440         (ipa_sra_modify_function_body): New function.
21441         (sra_ipa_reset_debug_stmts): Updated a comment.
21442         (modify_function): Use ipa_sra_modify_function_body to modify function
21443         body.
21444
21445 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21446
21447         PR middle-end/43671
21448         * alias.c (true_dependence): Handle the same VALUE in x and mem.
21449         (canon_true_dependence): Likewise.
21450         (write_dependence_p): Likewise.
21451
21452 2010-05-04  Jan Hubicka  <jh@suse.cz>
21453
21454         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21455         * cgraphbuild.c: Include ipa-utils.h
21456         (record_reference_ctx): New struct.
21457         (record_reference): Simplify to work on initializers; not statements.
21458         (mark_address, mark_load, mark_store): New.
21459         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21460         walk PHI nodes too.
21461         (record_references_in_initializer): Update use of record_reference.
21462         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21463         walk PHI nodes too.
21464
21465 2010-05-04  Jan Hubicka  <jh@suse.cz>
21466
21467         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21468         node will be removed anyway.
21469         (lto_varpool_replace_node): Allow also unanalyzed nodes;
21470         relink aliases of node into prevailing node.
21471         * varpool.c (varpool_remove_node): Remove aliases properly;
21472         when removing node, remove all its aliases too; remove DECL_INITIAL
21473         of removed node; ggc_free the varpool node.
21474
21475 2010-05-04  Richard Guenther  <rguenther@suse.de>
21476
21477         PR tree-optimization/43879
21478         * tree-ssa-structalias.c (alias_get_name): Use
21479         DECL_ASSEMBLER_NAME if available.
21480         (create_function_info_for): Return the varinfo node.
21481         (ipa_pta_execute): Associate same-body aliases and extra names
21482         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
21483
21484 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21485
21486         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21487
21488 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
21489
21490         PR bootstrap/43964
21491         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21492         only if HONOR_REG_ALLOC_ORDER is not defined.
21493
21494 2010-05-04  Richard Guenther  <rguenther@suse.de>
21495
21496         PR tree-optimization/43949
21497         * tree-vrp.c (extract_range_from_binary_expr): Only handle
21498         TRUNC_MOD_EXPR.
21499
21500 2010-04-26  Jason Merrill  <jason@redhat.com>
21501
21502         * c.opt (-fstrict-enums): New.
21503         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21504
21505 2010-05-03  David Ung  <davidu@mips.com>
21506             James E. Wilson  <wilson@codesourcery.com>
21507
21508         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21509         emit the trap instruction before the divide for TUNE_74K.
21510
21511 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
21512
21513         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21514         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21515         based on the above, for new target hook.
21516
21517         * hooks.c (hook_bool_mode_true): New generic hook.
21518         * hooks.h (hook_bool_mode_true): Add prototype.
21519
21520         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21521         target hook.
21522         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21523         target hook, set to hook_bool_mode_false.
21524         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21525         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21526         with targetm.small_register_classes_for_mode_p.
21527         (find_reusable_reload): Likewise.
21528         (combine_reloads): Likewise.
21529         * reload1.c (reload_as_needed): Likewise.
21530         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21531         * ifcvt.c (noce_process_if_block, check_cond_move_block,
21532         dead_or_predicable): Likewise.
21533         * regmove.c (optimize_reg_copy_1): Likewise.
21534         * calls.c (prepare_call_address): Likewise.
21535         (precompute_register_parameters): Likewise.
21536
21537         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21538         hook definition.
21539         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21540         implementation of the hook that considers all register classes
21541         small except for SH64.
21542         (sh_override_options): Use the new hook.
21543         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21544         Add prototype.
21545
21546         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21547         hook definition.
21548         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21549         implementation of the hook that considers all register classes
21550         small for THUMB1.
21551         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21552         Add prototype.
21553
21554         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21555         hook definition.
21556         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21557         implementation of the hook that considers all register classes
21558         small for MIPS16.
21559         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21560         Add prototype.
21561
21562         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21563         hook definition.
21564         * config/m32c/m32c.h: Likewise.
21565         * config/pdp11/pdp11.h: Likewise.
21566         * config/avr/avr.h: Likewise.
21567         * config/xtensa/xtensa.h: Likewise.
21568         * config/m68hc11/m68hc11.h: Likewise.
21569         * config/mn10300/mn10300.h: Likewise.
21570         * config/mcore/mcore.h: Likewise.
21571         * config/h8300/h8300.h: Likewise.
21572         * config/bfin/bfin.h: Likewise.
21573
21574         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21575         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21576
21577 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
21578
21579         * double-int.h (tree_to_double_int): Remove macro.
21580         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21581         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21582         (tree_to_double_int): New function.
21583         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21584         Move ...
21585         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21586
21587 2010-05-03  Richard Guenther  <rguenther@suse.de>
21588
21589         PR tree-optimization/43971
21590         * tree-ssa-structalias.c (get_constraint_for_1): Fix
21591         constraints in the !flag_delete_null_pointer_checks case.
21592
21593 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
21594
21595         PR debug/43972
21596         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21597         result mode matches original rtl mode.
21598
21599 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
21600
21601         PR target/43888
21602         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21603
21604 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21605
21606         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21607         when processing flag options.
21608
21609 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21610
21611         * gcov-iov.c (main): Change format string placeholder
21612         from %#08x to 0x%08x.
21613         * genchecksum.c (dosum): Change format string placeholder
21614         from %#02x to 0x%02x.
21615
21616 2010-05-02  Richard Guenther  <rguenther@suse.de>
21617
21618         PR tree-optimization/43879
21619         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21620
21621 2010-05-02  Bruno Haible  <bruno@clisp.org>
21622
21623         * doc/extend.texi (Function Attributes): Fix a typo.
21624
21625 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21626
21627         Revert:
21628         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21629         placeholder from 0x%x to %#x.
21630         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21631         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21632         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21633         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21634         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21635         * config/i386/i386.c (ix86_target_string): Ditto.
21636         * config/i386/i386.c (output_pic_addr_const): Ditto.
21637         (print_operand): Ditto.
21638
21639 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21640
21641         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21642         placeholder from 0x%x to %#x.
21643         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21644         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21645         (ASM_OUTPUT_DEBUG_DATA): Ditto.
21646         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21647         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21648         * optc-gen.awk: Ditto.
21649         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21650         (HOST_WIDE_INT_PRINT_HEX): Ditto.
21651         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21652         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21653
21654 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21655
21656         * target.h (struct calls): Add function_value_regno_p field.
21657         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21658         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21659         * targhooks.c (default_function_value_regno_p): New function.
21660         * targhooks.h (default_function_value_regno_p): Declare function.
21661         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21662         * builtins.c. (apply_result_size): (Ditto.).
21663         * combine.c. (likely_spilled_retval_p): (Ditto.).
21664         * mode-switching.c. Include 'target.h'.
21665         (create_pre_exit): Use function_value_regno_p hook.
21666         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21667         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21668         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21669
21670         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21671         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21672         (ix86_function_value_regno_p): Declare as static, change argument
21673         type to const unsigned int.
21674         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21675
21676 2010-05-01  Richard Guenther  <rguenther@suse.de>
21677
21678         PR tree-optimization/43949
21679         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21680         types.
21681         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21682
21683 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21684
21685         * rtl.h (CONST_DOUBLE_P): Define.
21686         (rtx_to_double_int): Declare.
21687         * emit-rtl.c (rtx_to_double_int): New function.
21688         * dwarf2out.c (insert_double): New function.
21689         (loc_descriptor, add_const_value_attribute): Clean up, use
21690         rtx_to_double_int and insert_double functions.
21691
21692 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
21693
21694         * doc/extend.texi (Inline): Add missing return keyword to examples.
21695         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21696         "command-line".
21697
21698 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21699
21700         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21701         the variable part of the offset as well.  Use highest_pow2_factor for
21702         all alignment checks.
21703
21704 2010-04-30  Richard Guenther  <rguenther@suse.de>
21705
21706         PR tree-optimization/43879
21707         * tree-ssa-structalias.c (type_could_have_pointers): Functions
21708         can have pointers.
21709
21710 2010-04-30  Jan Hubicka  <jh@suse.cz>
21711
21712         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21713         varpool.
21714         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21715
21716 2010-04-30  Jan Hubicka  <jh@suse.cz>
21717
21718         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21719         New.
21720         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21721         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21722         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21723         cgraph_node_set_needs_ltrans_p): Remove.
21724
21725 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21726
21727         * sdbout.c: Include vec.h, do not include varray.h.
21728         (deferred_global_decls, sdbout_global_decl,
21729         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21730         * toplev.c: Do not include varray.h.
21731         (dump_memory_report): Do not dump VARRAY statistics.
21732         * gengtype.c (open_base_file): Ignore varray.h.
21733         * Makefile.in: Update for abovementioned changes.
21734         Remove all traces of varray.c and varray.h.
21735         * varray.c: Remove file.
21736         * varray.h: Remove file.
21737
21738 2010-04-30  Jan Hubicka  <jh@suse.cz>
21739
21740         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21741         references.
21742
21743 2010-04-30  Jan Hubicka  <jh@suse.cz>
21744
21745         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21746         needed.
21747
21748 2010-04-30  Richard Guenther  <rguenther@suse.de>
21749
21750         * tree-ssa-structalias.c (get_constraint_for_1): Generate
21751         constraints for CONSTRUCTOR.
21752
21753 2010-04-30  Richard Guenther  <rguenther@suse.de>
21754
21755         PR lto/43946
21756         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21757         first after all lowering passes.
21758
21759 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21760
21761         * toplev.c: Include varray.h for statistics dumping.
21762         * tree.h: Do not declare varray_head_tag.
21763         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21764         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21765         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21766         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21767         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21768         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21769         c-common.c, c-common.h, reg-stack.c, basic-block.h,
21770         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21771         include varray.h.
21772         * Makefile.in: Update for abovementioned changes.
21773
21774 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
21775
21776         PR debug/43942
21777         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21778
21779 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
21780
21781         * config/picochip/picochip.c (picochip_legitimize_address): Define.
21782         Use this function to do machine-specific conversion.
21783         (picochip_legitimize_reload_address): Likewise.
21784         (picochip_legitimate_address_p): Check valid base register only if
21785         strict.
21786         (picochip_check_conditional_copy): Check for modw only if opnd is
21787         register.
21788         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21789         to call the function in c.
21790         * config/picochip/picochip-protos.h
21791         (picochip_legitimize_reload_address): Define.
21792         * config/picochip/picochip.md (supported_compare1): Define.
21793
21794 2010-04-30  Jan Hubicka  <jh@suse.cz>
21795
21796         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21797         (cgraph_global_info): Remove inlined.
21798         (LTO_cgraph_tag_names): Remove.
21799         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21800         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21801         simplify cgraph tags and document.
21802         (lto_output_node): Use only LTO_cgraph_unavail_node and
21803         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21804         for_functions_valid, global info, process and output flags.
21805         (input_overwrite_node): Initialize estimated stack size and
21806         estimated growth.  Do not read flags we no longer store.
21807         (input_node): Likewise do not read info no longer stored.
21808         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21809         flag.
21810
21811 2010-04-30  Richard Guenther  <rguenther@suse.de>
21812
21813         PR tree-optimization/43879
21814         * tree-ssa-structalias.c (get_constraint_for_1): Properly
21815         handle non-zero initializers.
21816
21817 2010-04-30  Richard Guenther  <rguenther@suse.de>
21818
21819         * builtins.c (fold_builtin_1): Delete free (0).
21820
21821 2010-04-29  Jan Hubicka  <jh@suse.cz>
21822
21823         * gengtype.c (open_base_files): Add lto-streamer.h
21824         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21825         (pass_ipa_cp): GGC collect.
21826         * toplev. (compile_file): Do not output symbols.
21827         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21828         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21829         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21830         * lto-section-in.c: Include ggc.h
21831         (lto_new_in_decl_state): Alloc in GGC.
21832         (lto_delete_in_decl_state): Likewise.
21833         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21834         Collect.
21835
21836 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21837
21838         PR target/42895
21839         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21840         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21841         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21842         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21843         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21844         account only if HONOR_REG_ALLOC_ORDER is not defined.
21845         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21846         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21847
21848 2010-04-29  Jon Grant  <04@jguk.org>
21849
21850         * collect2.c (vflag): Change type from int to bool.
21851         (debug): Likewise.
21852         (helpflag): New global bool.
21853         (main): Set vflag and debug with boolean, not integer truth values.
21854         Accept new "--help" option and output usage text if found.
21855         * collect2.h (vflag): Update prototype.
21856         (debug): Likewise.
21857
21858 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21859
21860         PR bootstrap/43936
21861         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21862
21863 2010-04-29  Richard Guenther  <rguenther@suse.de>
21864
21865         PR bootstrap/43935
21866         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21867         with ATTRIBUTE_UNUSED.
21868
21869 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21870
21871         PR target/43921
21872         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21873         INSN_P with NONDEBUG_INSN_P.
21874         (distance_non_agu_define): Likewise.
21875         (distance_agu_use): Likewise.
21876
21877 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21878
21879         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21880         PR bootstrap/43858
21881         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21882         test_set.
21883
21884 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21885
21886         * plugin.h (invoke_plugin_callbacks): New inline function.
21887         * plugin.c (flag_plugin_added): New global flag.
21888         (add_new_plugin): Initialize above flag.
21889         (invoke_plugin_callbacks): Rename to ...
21890         (invoke_plugin_callbacks_full): ... this.
21891
21892 2010-04-28  Jan Hubicka  <jh@suse.cz>
21893
21894         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21895         (lto_varpool_replace_node): New.
21896         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21897         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21898         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21899         * cgraph.h (varpool_node_ptr): New type.
21900         (varpool_node_ptr): New vector.
21901         (varpool_node_set_def): New structure.
21902         (varpool_node_set): New type.
21903         (varpool_node_set): New vector.
21904         (varpool_node_set_element_def): New structure.
21905         (varpool_node_set_element, const_varpool_node_set_element): New types.
21906         (varpool_node_set_iterator): New type.
21907         (varpool_node): Add prev pointers, add used_from_other_partition,
21908         in_other_partition.
21909         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21910         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21911         varpool_get_node, varpool_remove_node): Declare.
21912         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21913         varpool_node_set_size): New inlines.
21914         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21915         * tree-pass.h (varpool_node_set_def): Forward declare.
21916         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21917         (ipa_write_optimization_summaries): Update prototype.
21918         * ipa-cp.c (ipcp_write_summary): Update.
21919         * ipa-reference.c (ipa_reference_write_summary): Update.
21920         * lto-cgraph.c (lto_output_varpool_node): New static function.
21921         (output_varpool): New function.
21922         (input_varpool_node): New static function.
21923         (input_varpool_1): New function.
21924         (input_cgraph): Input varpool.
21925         * ipa-pure-const.c (pure_const_write_summary): Update.
21926         * lto-streamer-out.c (lto_output): Update, output varpool too.
21927         (write_global_stream): Kill WPA hack.
21928         (produce_asm_for_decls): Update.
21929         (output_alias_pair_p): Handle variables.
21930         (output_unreferenced_globals): Output only needed partition of varpool.
21931         * ipa-inline.c (inline_write_summary): Update.
21932         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21933         cgraph.
21934         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21935         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21936         varpool_node_set_new, varpool_node_set_add,
21937         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21938         debug_varpool_node_set): New functions.
21939         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21940         (execute_one_pass): Process new decls too.
21941         (ipa_write_summaries_2): Pass around vsets.
21942         (ipa_write_summaries_1): Likewise.
21943         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21944         to add.
21945         (ipa_write_optimization_summaries_1): Pass around vsets.
21946         (ipa_write_optimization_summaries): Likewise.
21947         * varpool.c (varpool_get_node): New.
21948         (varpool_node): Update doubly linked lists.
21949         (varpool_remove_node): New.
21950         (dump_varpool_node): More dumping.
21951         (varpool_enqueue_needed_node): Update doubly linked lists.
21952         (decide_is_variable_needed): Kill ltrans hack.
21953         (varpool_finalize_decl): Kill lto hack.
21954         (varpool_assemble_decl): Skip decls in other partitions.
21955         (varpool_assemble_pending_decls): Update doubly linkes lists.
21956         (varpool_empty_needed_queue): Likewise.
21957         (varpool_extra_name_alias): Likewise.
21958         * lto-streamer.c (lto_get_section_name): Add vars section.
21959         * lto-streamer.h (lto_section_type): Update.
21960         (output_varpool, input_varpool): Declare.
21961
21962 2010-04-28  Mike Stump  <mikestump@comcast.net>
21963
21964         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21965
21966 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21967
21968         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21969         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21970         (lto_input_ts_type_tree_pointers): Likewise.
21971         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21972         (lto_output_ts_type_tree_pointers): Likewise.
21973
21974 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21975
21976         Uniquization of constants at the Tree level
21977         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21978         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21979         bit to the end.
21980         (tree_output_constant_def): Declare.
21981         * gimplify.c (gimplify_init_constructor): When using block copy, first
21982         uniquize the constant constructor on the RHS.
21983         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21984         DECL_IN_CONSTANT_POOL flag.
21985         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21986         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21987         constant pool.
21988         (assemble_variable): Deal with symbols belonging to the tree constant
21989         pool.
21990         (get_constant_section): Add ALIGN parameter and simplify.
21991         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21992         (assemble_constant_contents): Use the expression of the VAR_DECL.
21993         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21994         (tree_output_constant_def): New global function.
21995         (mark_constant): Use the expression of the VAR_DECL.
21996         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21997         its expression.
21998         (output_object_block): Likewise and assemble the expression.
21999
22000 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22001
22002         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
22003         hash_tree, eq_tree): New tree hash table.
22004         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
22005         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
22006         lto_orig_address_remove): Reimplement.
22007
22008 2010-04-28  Xinliang David Li  <davidxl@google.com>
22009
22010         PR c/42643
22011         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
22012         (compute_uninit_opnds_pos): New function.
22013         (is_non_loop_exit_postdominating): New function.
22014         (compute_control_dep_chain): New function.
22015         (find_pdom): New function.
22016         (convert_control_dep_chain_into_preds): New function.
22017         (find_predicates): New function.
22018         (find_control_equiv_block): New function.
22019         (collect_phi_def_edges): New function.
22020         (find_def_preds): New function.
22021         (find_dom): New function.
22022         (dump_predicates): New function.
22023         (get_cmp_code): New function.
22024         (is_value_included_in): New function.
22025         (find_matching_predicate_in_rest_chains): New function.
22026         (use_pred_not_overlap_with_undef_path_pred): New function.
22027         (is_use_properly_guarded): New function.
22028         (normalize_cond_1): New function.
22029         (is_and_or_or): New function.
22030         (normalize_cond): New function.
22031         (is_gcond_subset_of): New function.
22032         (is_subset_of_any): New function.
22033         (is_or_set_subset_of): New function.
22034         (is_and_set_subset_of): New function.
22035         (is_norm_cond_subset_of): New function.
22036         (is_pred_expr_subset_of): New function.
22037         (is_pred_chain_subset_of): New function.
22038         (is_included_in): New function.
22039         (is_superset_of): New function.
22040         (find_uninit_use): New function.
22041         (warn_uninitialized_phi): New function.
22042         (compute_possibly_undefined_names): New function.
22043         (ssa_undefined_value_p): New function.
22044         (execute_late_warn_uninitialized): New function.
22045         * tree-ssa.c (ssa_undefined_value_p): Removed.
22046         (warn_uninit): Changed to extern.
22047         (warn_uninitialized_phi): Removed.
22048         (warn_uninitialized_vars): Changed to extern.
22049         (execute_late_warn_uninitialized): Removed
22050         * tree-flow.h: Add new prototypes.
22051         * timevar.def: Add new time variable.
22052         * Makefile.in: Add new build file.
22053
22054 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
22055
22056         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
22057         type if available.
22058
22059 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22060
22061         PR target/22224
22062         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
22063
22064 2010-04-28  Martin Jambor  <mjambor@suse.cz>
22065
22066         * cgraph.h (struct cgraph_node): New field indirect_calls.
22067         (struct cgraph_indirect_call_info): New type.
22068         (struct cgraph_edge): Removed field indirect_call. New fields
22069         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
22070         (cgraph_create_indirect_edge): Declare.
22071         (cgraph_make_edge_direct): Likewise.
22072         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
22073         * ipa-prop.h (struct ipa_param_call_note): Removed.
22074         (struct ipa_node_params): Removed field param_calls.
22075         (ipa_create_all_structures_for_iinln): Declare.
22076         * cgraph.c: Described indirect edges and uids in initial comment.
22077         (cgraph_add_edge_to_call_site_hash): New function.
22078         (cgraph_edge): Search also among the indirect edges, use
22079         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
22080         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
22081         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
22082         site hash.
22083         (initialize_inline_failed): Assign a reason to indirect edges.
22084         (cgraph_create_edge_1): New function.
22085         (cgraph_create_edge): Moved some functionality to
22086         cgraph_create_edge_1.
22087         (cgraph_create_indirect_edge): New function.
22088         (cgraph_edge_remove_callee): Add an assert checking for
22089         non-indirectness.
22090         (cgraph_edge_remove_caller): Special-case indirect edges.
22091         (cgraph_remove_edge): Likewise.
22092         (cgraph_set_edge_callee): New function.
22093         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
22094         (cgraph_make_edge_direct): New function.
22095         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
22096         the declaration of the call statement matches.
22097         (cgraph_node_remove_callees): Special-case indirect edges.
22098         (cgraph_clone_edge): Likewise.
22099         (cgraph_clone_node): Clone also the indirect edges.
22100         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
22101         indirect_call, dump count of indirect_calls edges.
22102         * ipa-prop.c (iinlining_processed_edges): New variable.
22103         (ipa_note_param_call): Create indirect edges instead of
22104         creating notes.  New parameter node.
22105         (ipa_analyze_call_uses): New parameter node, pass it on to
22106         ipa_note_param_call.
22107         (ipa_analyze_stmt_uses): Likewise.
22108         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
22109         (print_edge_addition_message): Work on edges rather than on notes.
22110         (update_call_notes_after_inlining): Likewise, renamed to
22111         update_indirect_edges_after_inlining.
22112         (ipa_create_all_structures_for_iinln): New function.
22113         (ipa_free_node_params_substructures): Do not free notes.
22114         (ipa_edge_duplication_hook): Propagate bits within
22115         iinlining_processed_edges bitmap.
22116         (ipa_node_duplication_hook): Do not duplicate notes.
22117         (free_all_ipa_structures_after_ipa_cp): Renamed to
22118         ipa_free_all_structures_after_ipa_cp.
22119         (free_all_ipa_structures_after_iinln): Renamed to
22120         ipa_free_all_structures_after_iinln.
22121         (ipa_write_param_call_note): Removed.
22122         (ipa_read_param_call_note): Removed.
22123         (ipa_write_indirect_edge_info): New function.
22124         (ipa_read_indirect_edge_info): Likewise.
22125         (ipa_write_node_info): Do not stream notes, do stream information
22126         in indirect edges.
22127         (ipa_read_node_info): Likewise.
22128         (lto_ipa_fixup_call_notes): Removed.
22129         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
22130         * ipa-inline.c (pass_ipa_inline): Likewise.
22131         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
22132         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
22133         * tree-inline.c (copy_bb): Removed an unnecessary double check for
22134         is_gimple_call.
22135         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
22136         edges.
22137         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
22138         (output_cgraph): Stream also indirect edges.
22139         (lto_output_edge): Added capability to stream indirect edges.
22140         (input_edge): Likewise.
22141         (input_cgraph_1): Likewise.
22142         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
22143         of indirect edges.
22144
22145 2010-04-28  Richard Guenther  <rguenther@suse.de>
22146
22147         PR tree-optimization/43879
22148         PR tree-optimization/43909
22149         * tree-ssa-structalias.c (struct variable_info): Add
22150         only_restrict_pointers flag.
22151         (new_var_info): Initialize it.  Increment stats.total_vars here.
22152         (create_function_info_for): Do not increment stats.total_vars here.
22153         (get_function_part_constraint): Fix build with C++.
22154         (insert_into_field_list): Remove.
22155         (push_fields_onto_fieldstack): Properly merge fields.
22156         (create_variable_info_for): Split and simplify.
22157         (create_variable_info_for_1): New piece.
22158         (intra_create_variable_infos): Properly make restrict constraints
22159         from parameters.
22160
22161 2010-04-28  Richard Guenther  <rguenther@suse.de>
22162
22163         PR c++/43880
22164         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
22165
22166 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22167             Jan Hubicka  <hubicka@ucw.cz>
22168
22169         * doc/invoke.texi (-Wsuggest-attribute=const,
22170         -Wsuggest-attribute=pure): Document.
22171         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
22172         (function_always_visible_to_compiler_p,
22173         suggest_attribute, warn_function_pure, warn_function_const):
22174         New functions.
22175         (check_call): Improve debug info.
22176         (analyze_function): Do not check availability.
22177         (add_new_function): Check availability.
22178         (propagate): Output warnings.
22179         (skip_function_for_local_pure_const): New function.
22180         (local_pure_const): Use it; output warnings.
22181         * common.opt (Wsuggest-attribute=const,
22182         Wsuggest-attribute=pure): New.
22183
22184 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
22185
22186         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
22187         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
22188         or DW_CFA_def_cfa_offset{,_sf}.
22189
22190 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22191
22192         * tree.h: Fix truncated long macros.
22193
22194 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
22195
22196         * collect2.c (TARGET_64BIT): Redefine to target's default.
22197         * tlink.c: Likewise.
22198         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
22199         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
22200         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
22201         for underscoring __USER_LABEL_PREFIX__.
22202         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
22203         (SUB_LINK_ENTRY32): New.
22204         (SUB_LINK_ENTRY64): New.
22205         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
22206         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
22207         (SUB_LINK_ENTRY64): New.
22208         (SUB_LINK_ENTRY): New.
22209         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
22210         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
22211         x64 target is choosen.
22212         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
22213         * configure: Regenerated.
22214         * configure.ac (leading-mingw64-underscores): Option added.
22215
22216 2010-04-27  Jan Hubicka  <jh@suse.cz>
22217
22218         * doc/invoke.texi (-fipa-profile): Document.
22219         * opts.c (decode_options): Enable ipa-profile at -O1.
22220         * timevar.def (TV_IPA_PROFILE): Define.
22221         * common.opt (fipa-profile): Add.
22222         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
22223         flag for clones.
22224         (cgraph_propagate_frequency): Handle only local ones.
22225         * tree-pass.h (pass_ipa_profile): Declare.
22226         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
22227         (pass_ipa_profile): Use TV_IPA_PROFILE.
22228         * ipa.c (ipa_profile): New function.
22229         (gate_ipa_profile): Likewise.
22230         (pass_ipa_profile): New global variable.
22231         * passes.c (pass_ipa_profile): New.
22232
22233 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
22234
22235         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
22236
22237 2010-04-27  Martin Jambor  <mjambor@suse.cz>
22238
22239         PR middle-end/43812
22240         * ipa.c (dissolve_same_comdat_group_list): New function.
22241         (function_and_variable_visibility): Call
22242         dissolve_same_comdat_group_list when comdat group contains external or
22243         newly local nodes.
22244         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
22245         lists are circular and that they contain only DECL_ONE_ONLY nodes.
22246
22247 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22248
22249         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
22250         (const_hash_1) <VECTOR_CST>: New case.
22251         (compare_constant) <VECTOR_CST>: Likewise.
22252         <ADDR_EXPR>: Deal with LABEL_REFs.
22253         (copy_constant) <VECTOR_CST>: New case.
22254
22255 2010-04-27  Jan Hubicka  <jh@suse.cz>
22256
22257         * cgraph.c (cgraph_propagate_frequency): New function.
22258         * cgraph.h (cgraph_propagate_frequency): Declare.
22259         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
22260         cgraph_propagate_frequency.
22261
22262 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
22263
22264         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
22265
22266 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
22267
22268         PR target/40657
22269         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
22270         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
22271         here to determine which regs to push and how much stack to reserve.
22272
22273 2010-04-27  Jie Zhang  <jie@codesourcery.com>
22274
22275         * doc/gimple.texi (gimple_statement_with_ops): Remove
22276         addresses_taken field.
22277         (gimple_statement_with_memory_ops): Likewise.
22278
22279 2010-04-27  Jan Hubicka  <jh@suse.cz>
22280
22281         * tree-inline.c (eni_inlining_weights): Remove.
22282         (estimate_num_insns): Special case more builtins.
22283
22284 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
22285
22286         PR c/32207
22287         * c-typeck.c (build_binary_op): Move forward check for comparison
22288         pointer with null pointer constant and adjust the diagnostic message.
22289
22290 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
22291
22292         PR lto/42776
22293         * configure.ac (gcc_cv_as_section_has_align): Set if installed
22294         binutils supports extended .section directive needed by LTO, or
22295         warn if older binutils found.
22296         (LTO_BINARY_READER): New AC_SUBST'd variable.
22297         (LTO_USE_LIBELF): Likewise.
22298         * config.gcc (lto_binary_reader): New target-specific configure
22299         variable.
22300         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
22301         (LTO_USE_LIBELF): Likewise.
22302         * configure: Regenerate.
22303
22304         * collect2.c (is_elf): Rename from this ...
22305         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
22306          object files in addition to ELF-formatted ones.
22307         (scan_prog_file): Caller updated.  Also allow for LTO info marker
22308         symbol to be prefixed or not by an extra underscore.
22309
22310         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
22311         * config/i386/winnt.c: Also #include lto-streamer.h
22312         (i386_pe_asm_named_section): Specify 1-byte section alignment for
22313         LTO named sections.
22314         (i386_pe_asm_output_aligned_decl_common): Add comment.
22315         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
22316
22317 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
22318
22319         PR target/43889
22320         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
22321         Add missing earlyclobber for second alternative.
22322
22323 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
22324
22325         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
22326         bits for artificial defs at the top of the block.
22327         * fwprop.c (single_def_use_enter_block): Don't call it.
22328
22329 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
22330
22331         PR 43715
22332         * configure.ac: Use "$gcc_cv_nm -g" on darwin
22333         instead of "$gcc_cv_objdump -T".
22334         Use "-undefined dynamic_lookup" on darwin.
22335         * configure: Regenerate.
22336
22337 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
22338
22339         PR c/43893
22340         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
22341
22342 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22343
22344         * c-parser.c (struct c_token): Move location field up.
22345         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
22346         (struct c_declspecs): Convert typespec_word, storage_class, and
22347         default_int_p into bitfields.
22348         (struct c_declarator): Move loc field up.
22349
22350 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22351
22352         * cfgloop.h (struct loop): Move can_be_parallel field up.
22353         * ipa-prop.h (struct ip_node_params): Move bitfields up.
22354         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
22355         down.
22356         (struct iv_cand): Convert pos field into a bitfield.
22357         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
22358         field up.
22359         (struct _stmt_vec_info): Shuffle fields for better packing.
22360
22361 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22362
22363         * varasm.c (IN_NAMED_SECTION): Remove guard.
22364         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
22365         (IN_NAMED_SECTION_P): ...this.
22366         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
22367         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
22368
22369 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22370
22371         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
22372         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
22373         of shadowing it.  Fix comments.
22374
22375 2010-04-26  Jan Hubicka  <jh@suse.cz>
22376
22377         * cgraph.c (cgraph_create_node): Set node frequency to normal.
22378         (cgraph_clone_node): Copy function frequency.
22379         * cgraph.h (node_frequency): New enum
22380         (struct cgraph_node): Add.
22381         * final.c (rest_of_clean_state): Update.
22382         * lto-cgraph.c (lto_output_node): Output node frequency.
22383         (input_overwrite_node): Input node frequency.
22384         * tre-ssa-loop-ivopts (computation_cost): Update.
22385         * lto-streamer-out.c (output_function): Do not output function
22386         frequency.
22387         * predict.c (maybe_hot_frequency_p): Update and handle functions
22388         executed once.
22389         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
22390         attribute lookup.
22391         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
22392         (compute_function_frequency): Set noreturn functions to be executed
22393         once.
22394         (choose_function_section): Update.
22395         * lto-streamer-in.c (input_function): Do not input function frequency.
22396         * function.c (allocate_struct_function): Do not initialize function
22397         frequency.
22398         * function.h (function_frequency): Remove.
22399         (struct function): Remove function frequency.
22400         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
22401         (try_update): Update.
22402         * tree-inline.c (initialize_cfun): Do not update function frequency.
22403         * passes.c (pass_init_dump_file): Update.
22404         * i386.c (ix86_compute_frame_layout): Update.
22405         (ix86_pad_returns): Update.
22406
22407 2010-04-26  Jie Zhang  <jie@codesourcery.com>
22408
22409         PR tree-optimization/43833
22410         * tree-vrp.c (range_int_cst_p): New.
22411         (range_int_cst_singleton_p): New.
22412         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
22413         when both operands are constants.  Use range_int_cst_p in
22414         BIT_IOR_EXPR case.
22415
22416 2010-04-26  Jan Hubicka  <jh@suse.cz>
22417
22418         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
22419
22420 2010-04-26  Richard Guenther  <rguenther@suse.de>
22421
22422         PR lto/43080
22423         * gimple.c (gimple_decl_printable_name): Deal gracefully
22424         with a NULL DECL_NAME.
22425
22426 2010-04-26  Richard Guenther  <rguenther@suse.de>
22427
22428         PR lto/42425
22429         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
22430         if emitting debug information and it is either a function
22431         or a namespace decl.
22432
22433 2010-04-26  Ira Rosen  <irar@il.ibm.com>
22434
22435         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
22436         determine if the statement is vectorizable, and a macro to access it.
22437         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22438         Skip statements that can't be vectorized. If the analysis fails,
22439         mark the statement as unvectorizable if vectorizing basic block.
22440         (vect_compute_data_refs_alignment): Likewise.
22441         (vect_verify_datarefs_alignment): Skip statements marked as
22442         unvectorizable. Add print.
22443         (vect_analyze_group_access): Skip statements that can't be
22444         vectorized. If the analysis fails, mark the statement as
22445         unvectorizable if vectorizing basic block.
22446         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22447         * tree-vect-stmts.c (vectorizable_store): Fix the number of
22448         generated stmts for SLP.
22449         (new_stmt_vec_info): Initialize the new field.
22450         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22451         statements marked as unvectorizable.
22452
22453 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
22454
22455         * c-common.c (flag_isoc1x): New.
22456         (flag_isoc99): Update comment.
22457         * c-common.h (flag_isoc1x): New.
22458         (flag_isoc99): Update comment.
22459         * c-cppbuiltin.c (builtin_define_float_constants): Also define
22460         __<type>_DECIMAL_DIG__.
22461         * c-opts.c (set_std_c1x): New.
22462         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22463         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22464         * c.opt (-std=c1x, -std=gnu1x): New options.
22465         * doc/cpp.texi: Mention -std=c1x.
22466         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22467         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22468         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22469         * doc/standards.texi: Mention C1X.
22470         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22471         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22472         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22473         Define for C1X.
22474
22475 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
22476
22477         * config/i386/gmon-sol2.c (_mcleanup): Change format string
22478         placeholder from 0x%x to %#x.
22479         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22480         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22481         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22482         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22483         * config/i386/i386.c (ix86_target_string): Ditto.
22484         (output_pic_addr_const): Ditto.
22485         (print_operand): Ditto.
22486
22487 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
22488
22489         * combine.c (find_split_point): Add third argument.  Use it
22490         to find nested multiply-accumulate instructions.  Adjust calls.
22491         (try_combine): Adjust call to find_split_point.
22492
22493 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
22494
22495         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22496
22497 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
22498
22499         PR tree-optimization/41442
22500         * fold-const.c (merge_truthop_with_opposite_arm): New function.
22501         (fold_binary_loc): Call it.
22502
22503 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22504
22505         * toplev.c (general_init): Set default for fdiagnostics-show-option.
22506         * opts.c (common_handle_option): Allow disabling it.
22507         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22508
22509 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22510
22511         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22512         between modes if both types are integral.
22513
22514 2010-04-23  Richard Guenther  <rguenther@suse.de>
22515
22516         PR tree-optimization/43572
22517         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22518
22519 2010-04-23  Richard Guenther  <rguenther@suse.de>
22520
22521         PR lto/43455
22522         * tree-inline.c (tree_can_inline_p): Also check compatibility
22523         of return types.
22524
22525 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22526
22527         PR tree-optimization/43846
22528         * tree-sra.c (struct access): New flag grp_assignment_read.
22529         (build_accesses_from_assign): Set grp_assignment_read.
22530         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22531         (enum mark_read_status): New type.
22532         (analyze_access_subtree): Propagate grp_assignment_read, create
22533         accesses also if both direct_read and root->grp_assignment_read.
22534
22535 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22536
22537         PR middle-end/43835
22538         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22539         function does not have type attributes.
22540
22541 2010-04-23  Richard Guenther  <rguenther@suse.de>
22542
22543         PR lto/42653
22544         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22545         of FUNCTION_DECLs.
22546
22547 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22548
22549         * sese.h (create_if_region_on_edge): Remove.
22550
22551         * sese.c (create_if_region_on_edge): Make static.
22552
22553         * tree-inline.c: Do not include ggc.h.
22554
22555         * expr.c: Do not include ggc.h.
22556
22557         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22558         dependencies.
22559
22560 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
22561
22562         PR target/43744
22563         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22564         in the middle of insns for casesi_worker_2.
22565
22566 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
22567
22568         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22569
22570 2010-04-22  Ira Rosen  <irar@il.ibm.com>
22571
22572         PR tree-optimization/43842
22573         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22574         loop unrolling in update of exit phis. Fix comment.
22575         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22576         least two reduction statements in the loop before starting SLP
22577         analysis.
22578
22579 2010-04-22  Nick Clifton  <nickc@redhat.com>
22580
22581         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22582
22583 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
22584
22585         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22586         to simplify a + ~a.
22587
22588 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22589
22590         * tree-parloops.c (loop_parallel_p): New argument
22591         parloop_obstack.  Pass it down.
22592         (parallelize_loops): New variable parloop_obstack.  Initialize it,
22593         pass it down, free it.
22594
22595         * tree-loop-linear.c (linear_transform_loops): Pass down
22596         lambda_obstack.
22597
22598         * tree-data-ref.h (lambda_compute_access_matrices): New argument
22599         of type struct obstack *.
22600
22601         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22602         scratch_obstack.  Initialize it, pass down, free it.
22603
22604         * lambda.h (lambda_loop_new): Remove.
22605         (lambda_matrix_new, lambda_matrix_inverse)
22606         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22607         argument of type struct obstack *.
22608
22609         * lambda-trans.c (lambda_trans_matrix_new): New argument
22610         lambda_obstack.  Pass it down, use obstack allocation for ret.
22611         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
22612         it down.
22613
22614         * lambda-mat.c (lambda_matrix_get_column)
22615         (lambda_matrix_project_to_null): Remove.
22616         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
22617         allocation for mat.
22618         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22619         lambda_obstack.
22620
22621         * lambda-code.c (lambda_loop_new): New function.
22622         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22623         (lambda_compute_auxillary_space, lambda_compute_target_space)
22624         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22625         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22626         (build_access_matrix): New argument lambda_obstack.  Use obstack
22627         allocation for am.
22628         (lambda_compute_step_signs, lambda_compute_access_matrices): New
22629         argument lambda_obstack.  Pass it down.
22630
22631 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22632
22633         * optabs.h (expand_widening_mult): Declare.
22634
22635 2010-04-22  Richard Guenther  <rguenther@suse.de>
22636
22637         PR tree-optimization/43845
22638         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22639         lookup the CALL_EXPR function and arguments.
22640
22641 2010-04-22  Nick Clifton  <nickc@redhat.com>
22642
22643         * config/stormy16/stormy16.c
22644         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22645         * config/stormy16/stormy16.h: Tidy up formatting.
22646         (DONT_USE_BUILTIN_SETJMP): Remove definition.
22647         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22648         (ineqbranchsi): Delete pattern.
22649         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22650         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22651         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22652         stormy16-lib2-ucmpsi2.c.
22653
22654 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22655
22656         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22657         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
22658         extra set merge_set_noclobber, and use it to relax the final test
22659         slightly.
22660         * df.h (df_simulate_find_noclobber_defs): Declare.
22661         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22662         conditional defs.
22663         (df_simulate_find_noclobber_defs): New function.
22664
22665 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
22666
22667         * config/i386/i386.md: Use {} around multi-line preparation statements.
22668
22669 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22670
22671         * c-tree.h (push_init_level, pop_init_level, set_init_index)
22672         (process_init_element): New argument of type struct obstack *.
22673
22674         * c-typeck.c (push_init_level, pop_init_level, set_designator)
22675         (set_init_index, set_init_label, set_nonincremental_init)
22676         (set_nonincremental_init_from_string, find_init_member)
22677         (output_init_element, output_pending_init_elements)
22678         (process_init_element): New argument braced_init_obstack.  Pass it
22679         down.
22680         (push_range_stack, add_pending_init): New argument
22681         braced_init_obstack.  Use obstack allocation.
22682
22683         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22684         braced_init_obstack.  Pass it down.
22685         (c_parser_braced_init): New variables ret, braced_init_obstack.
22686         Initialize obstack, pass it down and finally free it.
22687
22688 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22689
22690         PR middle-end/29274
22691         * tree-pass.h (pass_optimize_widening_mul): Declare.
22692         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22693         gate_optimize_widening_mul): New static functions.
22694         (pass_optimize_widening_mul): New.
22695         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22696         <case MULT_EXPR>: Remove support for widening multiplies.
22697         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22698         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22699         simplify_gen_unary rather than directly building extensions.
22700         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22701         WIDEN_MULT_EXPR.
22702         * expmed.c (expand_widening_mult): New function.
22703         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22704
22705 2010-04-21  Jan Hubicka  <jh@suse.cz>
22706
22707         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22708         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22709         * lto-wpa-fixup.c: Remove.
22710         * Makefile.in (lto-wpa-fixup.o): Remove.
22711         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22712         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22713         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22714
22715 2010-04-21  Jan Hubicka  <jh@suse.cz>
22716
22717         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22718         add write_optimization_summary, read_optimization_summary.
22719         (ipa_write_summaries_of_cgraph_node_set): Remove.
22720         (ipa_write_optimization_summaries): Declare.
22721         (ipa_read_optimization_summaries): Declare.
22722         * ipa-cp.c (pass_ipa_cp): Update.
22723         * ipa-reference.c (pass_ipa_reference): Update.
22724         * ipa-pure-const.c (pass_ipa_pure_const): Update.
22725         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22726         Update.
22727         * ipa-inline.c (pass_ipa_inline): Update.
22728         * ipa.c (pass_ipa_whole_program): Update.
22729         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22730         * passes.c (ipa_write_summaries_1): Do not test wpa.
22731         (ipa_write_optimization_summaries_1): New.
22732         (ipa_write_optimization_summaries): New.
22733         (ipa_read_summaries): Do not test ltrans.
22734         (ipa_read_optimization_summaries_1): New.
22735         (ipa_read_optimization_summaries): New.
22736
22737 2010-04-21  Jan Hubicka  <jh@suse.cz>
22738
22739         * lto-cgraph.c (lto_output_node): Do not output comdat groups
22740         for boundary nodes.
22741         (output_cgraph): Do not arrange comdat groups for boundary nodes.
22742
22743 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22744
22745         PR debug/40040
22746         * dwarf2out.c (add_name_and_src_coords_attributes): Add
22747         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22748
22749 2010-04-21  Jan Hubicka  <jh@suse.cz>
22750
22751         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22752
22753 2010-04-21  Jan Hubicka  <jh@suse.cz>
22754
22755         * varpool.c (decide_is_variable_needed): Variable is always needed
22756         during ltrans.
22757
22758 2010-04-21  Jan Hubicka  <jh@suse.cz>
22759
22760         * opts.c (decode_options): Enable pure-const pass for whopr.
22761
22762 2010-04-21  Jan Hubicka  <jh@suse.cz>
22763
22764         * cgraph.c (dump_cgraph_node): Dump also assembler name.
22765         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22766         at WPA dumping.
22767         (cgraph_decide_inlining): Do not expect callee to be removed in all
22768         cases.
22769
22770 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
22771
22772         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22773
22774 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22775
22776         * config/i386/i386.md (x86_shrd): Add athlon_decode and
22777         amdfam10_decode attributes.
22778
22779 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22780
22781         PR middle-end/43570
22782         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22783         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22784         (lower_copyprivate_clauses): Use private var in outer
22785         context instead of original var.  Make sure the types
22786         are correct for VLAs.
22787
22788 2010-04-21  Richard Guenther  <rguenther@suse.de>
22789
22790         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22791         to non-pointer objects.
22792
22793 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22794
22795         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
22796         last chain entry if it starts with the still current label.
22797         (add_location_or_const_value_attribute): Check that
22798         loc_list->first->next is NULL instead of comparing ->first with ->last.
22799         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22800         to add_var_loc_to_decl.
22801
22802         * dwarf2out.c (output_call_frame_info): For dw_cie_version
22803         >= 4 add also address size and segment size fields into CIE header.
22804
22805         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22806         long as address size is the same as sizeof (void *) and
22807         segment size is 0.
22808         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
22809         address size or segment size is unexpected, return DW_EH_PE_omit.
22810         (classify_object_over_fdes): If get_cie_encoding returned
22811         DW_EH_PE_omit, return -1.
22812         (init_object): If classify_object_over_fdes returned -1,
22813         pretend there were no FDEs at all.
22814
22815 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22816
22817         * config/i386/i386.md (bswap<mode>2): Macroize expander from
22818         bswap{si,di}2 using SWI48 mode iterator.
22819         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22820         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22821         set modrm attribute of bswap insn to 0 and remove length attribute.
22822         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22823         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22824         set mode attribute to <MODE> and remove length attribute.
22825
22826 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22827
22828         PR rtl-optimization/43520
22829         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22830         zero available registers.
22831
22832 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22833
22834         * builtins.c (fold_builtin_cproj): Fold more cases.
22835
22836 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22837
22838         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22839         (fold_builtin_1): Fold builtin cproj.
22840         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22841         Use ATTR_CONST_NOTHROW_LIST.
22842
22843 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22844
22845         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22846         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22847         ffsi2_no_cmove for !TARGET_CMOVE.
22848         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22849         (ffssi2): Remove expander.
22850         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22851         mode iterator.
22852         (ctz<mode>2): Ditto from ctz{si,di}2.
22853         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22854         mode iterator.
22855         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22856         mode iterator.
22857
22858 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22859
22860         * dwarf2out.c (AT_linkage_name): Define.
22861         (clone_as_declaration): Handle DW_AT_linkage_name.
22862         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22863         of DW_AT_MIPS_linkage_name.
22864         (move_linkage_attr): Likewise.
22865         (dwarf2out_finish): Likewise.
22866
22867 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22868
22869         PR middle-end/41952
22870         * fold-const.c (fold_comparison): New folding rule.
22871
22872 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22873
22874         * double-int.h (double_int_setbit): Declare.
22875         * double-int.c (double_int_setbit): New function.
22876         * rtl.h (immed_double_int_const): Declare.
22877         * emit-rtl.c (immed_double_int_const): New function.
22878         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22879         and immed_double_int_const functions.
22880         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22881         expand_copysign_bit): (Ditto.).
22882         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22883         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22884         * dojump.c (prefer_and_bit_test): (Ditto.).
22885         * expr.c (convert_modes, reduce_to_bit_field_precision,
22886         const_vector_from_tree): (Ditto.).
22887         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22888
22889 2010-04-20  Jan Hubicka  <jh@suse.cz>
22890
22891         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22892         (dump_cgraph_node): Dump new flags.
22893         * cgraph.h (struct cgraph_node): Add flags
22894         reachable_from_other_partition and in_other_partition.
22895         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22896         other partition can not be removed.
22897         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22898         the other partition must be output; silence sanity checking on
22899         leaking functions bodies from other paritition.
22900         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22901         (lto_output_node): Output new flags; do not sanity check that inline
22902         clones are output; drop lto_forced_extern_inline_p code; do not mock
22903         visibility flags at partition boundaries.
22904         (add_node_to): New function.
22905         (output_cgraph): Use it to sort functions so masters appear before
22906         clones.
22907         (input_overwrite_node): Input new flags.
22908         * passes.c (ipa_write_summaries): Do not call
22909         lto_new_extern_inline_states.
22910         * lto-section-out.c (forced_extern_inline,
22911         lto_new_extern_inline_states lto_delete_extern_inline_states,
22912         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22913         * lto-streamer.h (lto_new_extern_inline_states,
22914         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22915         lto_forced_extern_inline_p): Kill.
22916
22917 2010-04-20  Richard Guenther  <rguenther@suse.de>
22918
22919         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22920         from vars that can have pointers.
22921         (process_constraint): Dump useless constraints.
22922
22923 2010-04-20  Richard Guenther  <rguenther@suse.de>
22924
22925         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22926         (dump_sa_points_to_info): Remove asserts.
22927         (init_base_vars): nothing_id isn't an escape point nor does it
22928         have pointers.
22929
22930 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22931
22932         * tree.h (TYPE_REF_IS_RVALUE): Define.
22933         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22934         should_move_die_to_comdat, prune_unused_types_walk): Handle
22935         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22936         (modified_type_die, gen_reference_type_die): Emit
22937         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22938         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22939
22940 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22941
22942         PR target/43635
22943         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22944         calls for -fpic -m31 if they have been sibcall optimized.
22945
22946 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22947
22948         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22949         ar.lc fixed and call-used.
22950
22951         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22952
22953 2010-04-19  Jan Hubicka  <jh@suse.cz>
22954
22955         * opts.c (decode_options): Disable whpr incompatible passes.
22956         * lto/lto.c (lto_1_to_1_map): Skip clones.
22957         (read_cgraph_and_symbols): Do not mark everything as needed.
22958         (do_whole_program_analysis): Do map only after optimizing;
22959         set proper cgraph_state; use passmanager.
22960
22961 2010-04-19  DJ Delorie  <dj@redhat.com>
22962
22963         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22964         POINTER_PLUS_EXPR and fix them.
22965
22966 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22967
22968         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22969         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22970         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22971         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22972         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22973         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22974         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22975         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22976         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22977         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22978         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22979
22980 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22981
22982         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22983         (check_cond_move_block): Likewise.
22984         (cond_move_process_if_block): Likewise.
22985         (noce_find_if_block): Improve formatting.
22986         (find_if_header): Pass 0 to memset and tweak conditions.
22987         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22988
22989 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22990
22991         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22992         for -gdwarf-4.
22993
22994         PR middle-end/43337
22995         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22996         with non-local decl doesn't need chain.
22997
22998 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22999
23000         * ira-color.c (allocno_reload_assign): Avoid accumulating
23001         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
23002
23003 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23004
23005         * gimple.h (create_tmp_reg): Declare.
23006         * gimplify.c (create_tmp_reg): New function.
23007         (gimplify_return_expr): Use create_tmp_reg.
23008         (gimplify_omp_atomic): Likewise.
23009         (gimple_regimplify_operands): Likewise.
23010         * tree-dfa.c (make_rename_temp): Likewise.
23011         * tree-predcom.c (predcom_tmp_var): Likewise.
23012         (reassociate_to_the_same_stmt): Likewise.
23013         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
23014         (get_replaced_param_substitute): Likewise.
23015         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
23016         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
23017         * tree-ssa-pre.c (get_representative_for): Likewise.
23018         (create_expression_by_pieces): Likewise.
23019         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
23020         (create_tailcall_accumulator): Likewise.
23021
23022 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23023
23024         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
23025         new_stmt.
23026         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
23027
23028 2010-04-19  Richard Guenther  <rguenther@suse.de>
23029
23030         PR tree-optimization/43796
23031         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
23032         from SCEV in the lattice.
23033         (vrp_visit_phi_node): Dump change.
23034
23035 2010-04-19  Richard Guenther  <rguenther@suse.de>
23036
23037         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
23038         * configure: Re-generated.
23039
23040 2010-04-19  Richard Guenther  <rguenther@suse.de>
23041
23042         PR tree-optimization/43783
23043         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
23044         constant ARRAY_REF operands two and three if possible.
23045
23046 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
23047
23048         PR target/43766
23049         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
23050
23051 2010-04-19  Jie Zhang  <jie@codesourcery.com>
23052
23053         PR target/43662
23054         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
23055
23056 2010-04-19  Ira Rosen  <irar@il.ibm.com>
23057
23058         PR tree-optimization/37027
23059         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
23060         and macro to access it.
23061         (vectorizable_reduction): Add argument.
23062         (vect_get_slp_defs): Likewise.
23063         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
23064         statements for possible use in SLP.
23065         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
23066         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
23067         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
23068         add new argument.
23069         (vectorizable_reduction): Likewise.
23070         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
23071         vect_get_slp_defs.
23072         (vectorizable_type_demotion, vectorizable_type_promotion,
23073         vectorizable_store): Likewise.
23074         (vect_analyze_stmt): Update call to vectorizable_reduction.
23075         (vect_transform_stmt): Likewise.
23076         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
23077         (vect_build_slp_tree): Fix indentation. Check that there are no loads
23078         from different interleaving chains in same node.
23079         (vect_slp_rearrange_stmts): New function.
23080         (vect_supported_load_permutation_p): Allow load permutations for
23081         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
23082         inside SLP nodes if necessary.
23083         (vect_analyze_slp_instance): Handle reductions.
23084         (vect_analyze_slp): Try to build SLP instances originating from groups
23085         of reductions.
23086         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
23087         (vect_get_constant_vectors): Create initial vectors for reductions
23088         according to reduction code. Add new argument.
23089         (vect_get_slp_defs): Add new argument, pass it to
23090         vect_get_constant_vectors.
23091         (vect_schedule_slp_instance): Remove SLP tree root statements.
23092
23093 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
23094
23095         * tree.h (ENUM_IS_SCOPED): Define.
23096         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
23097         for ENUM_IS_SCOPED enums.
23098
23099 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
23100
23101         * fold-const.c (fold_comparison): Use ssizetype.
23102         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23103         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
23104         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
23105         * tree-object-size.c (compute_object_sizes): Use size_type_node.
23106
23107         * tree.h (initialize_sizetypes): Remove parameter.
23108         (build_common_tree_nodes): Remove second parameter.
23109         * stor-layout.c (initialize_sizetypes): Remove parameter.
23110         Always create an unsigned type.
23111         (set_sizetype): Assert that the passed type is unsigned and simplify.
23112         * tree.c (build_common_tree_nodes): Remove second parameter.
23113         Adjust call to initialize_sizetypes.
23114         * c-decl.c (c_init_decl_processing): Remove second argument in call to
23115         build_common_tree_nodes.
23116
23117 2010-04-18  Matthias Klose  <doko@ubuntu.com>
23118
23119         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
23120
23121 2010-04-18  Ira Rosen  <irar@il.ibm.com>
23122
23123         PR tree-optimization/43771
23124         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
23125         load permutation doesn't have gaps.
23126
23127 2010-04-18  Jan Hubicka  <jh@suse.cz>
23128
23129         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
23130         (sse_prologue_save_insn expander): Use new pattern.
23131         (sse_prologue_save_insn1): New pattern and splitter.
23132         (sse_prologue_save_insn): Update to deal also with 64bit aligned
23133         blocks.
23134         * i386.c (setup_incoming_varargs_64): Do not compute jump
23135         destination here.
23136         (ix86_gimplify_va_arg): Update alignment needed.
23137         (ix86_local_alignment): Do not align all local arrays to 128bit.
23138
23139 2010-04-17  Jan Hubicka  <jh@suse.cz>
23140
23141         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
23142
23143 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23144
23145         * arm.md (negdi2): Remove redundant code to force values into a
23146         register.
23147
23148 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23149
23150         * arm/bpabi.S: Add EABI alignment attributes to objects.
23151         * arm/bpabi-v6m.S: Likewise.
23152         * arm/crti.asm: Likewise.
23153         * arm/crtn.asm: Likewise.
23154         * arm/lib1funcs.asm: Likewise.
23155         * arm/libunwind.S: Likewise.
23156
23157 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23158
23159         * arm-protos.h (tune_params): New structure.
23160         * arm.c (current_tune): New variable.
23161         (arm_constant_limit): Delete.
23162         (struct processors): Add pointer to the tune parameters.
23163         (arm_slowmul_tune): New tuning option.
23164         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
23165         (all_cores): Adjust to pick up the tuning model.
23166         (arm_constant_limit): New function.
23167         (arm_override_options): Select the appropriate tuning model.  Delete
23168         initialization of arm_const_limit.
23169         (arm_split_constant): Use the new constant-limit model.
23170         (arm_rtx_costs): Pick up the current tuning model.
23171         * arm.md (is_strongarm, is_xscale): Delete.
23172         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
23173         for Xscale variant architectures.
23174         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
23175
23176 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23177
23178         * config/arm/arm.c (arm_gen_constant): Remove unused variable
23179         can_shift.
23180         (arm_rtx_costs_1): Remove unused variable extra_cost.
23181         (arm_unwind_emit_set): Use variable offset.
23182         (thumb1_output_casesi): Remove unused variable flags.
23183
23184 2010-04-16  Jeff Law  <law@redhat.com>
23185
23186         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
23187         needing assignment rather than doing a two-phase assignment.  Remove
23188         unused variable 'm'.
23189
23190 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23191
23192         PR bootstrap/43767
23193         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
23194
23195 2010-04-16  Doug Kwan  <dougkwan@google.com>
23196
23197         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
23198         (next_operand_entry_id): New static variable.
23199         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
23200         (add_to_ops_vec): Assigned unique ID to operand entry.
23201         (struct oecount_s): New field ID.
23202         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
23203         (undistribute_ops_list): Assign unique IDs to oecounts.
23204         (init_reassoc): reset next_operand_entry_id.
23205
23206 2010-04-16  Doug Kwan  <dougkwan@google.com>
23207
23208         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
23209         missing left parenthesis.
23210
23211 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
23212
23213         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
23214         *btdi_rex64 using SWI48 mode iterator.
23215         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
23216         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
23217         *jcc_btdi_mask_rex64.
23218
23219 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
23220
23221         * double-int.h (tree_to_double_int): Convert to macro.
23222         * double-int.c (tree_to_double_int): Remove.
23223
23224 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23225
23226         PR debug/43762
23227         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
23228         with want_address 2 and in case a single element list might be
23229         possible, call it again with want_address 0.
23230
23231 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23232
23233         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
23234         case 'W' print operands for HI mode.
23235         * config/h8300/h8300.h (Y0, Y2) : New constraints.
23236         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
23237         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
23238         * config/h8300/predicate.md (bit_register_indirect_operand): New.
23239
23240         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
23241
23242         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
23243         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
23244         #xx:3 and #xx:4 mode.
23245
23246         * config/h8300/h8300.md (inverted load with HImode dest): Add
23247         support for H8300SX.
23248
23249         * config/h8300/predicate.md (bit_operand): Allow immediate values that
23250         satisfy 'U' constraint.
23251
23252 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23253
23254         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
23255         * configure: Regenerate.
23256         * config.in: Regenerate.
23257         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
23258         works.
23259
23260 2010-04-16  Richard Guenther  <rguenther@suse.de>
23261
23262         * tree.h (struct tree_decl_minimal): Move pt_uid ...
23263         (struct tree_decl_common): ... here.
23264         (DECL_PT_UID): Adjust.
23265         (SET_DECL_PT_UID): Likewise.
23266         (DECL_PT_UID_SET_P): Likewise.
23267
23268 2010-04-16  Richard Guenther  <rguenther@suse.de>
23269
23270         PR tree-optimization/43572
23271         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
23272         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
23273         * tree-flow.h (is_call_clobbered): Remove.
23274         * tree-flow-inline.h (is_call_clobbered): Likewise.
23275         * tree-dfa.c (dump_variable): Do not dump call clobber state.
23276         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
23277         (execute_return_slot_opt): Adjust.
23278         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
23279         check for call clobbered vars here.
23280         (find_tail_calls): Move tailcall verification to the
23281         proper place.
23282
23283 2010-04-16  Diego Novillo  <dnovillo@google.com>
23284
23285         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
23286
23287 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
23288
23289         PR target/40603
23290         * config/arm/arm.md (cbranchqi4): New pattern.
23291         * config/arm/predicates.md (const0_operand,
23292         cbranchqi4_comparison_operator): New predicates.
23293
23294 2010-04-16  Richard Guenther  <rguenther@suse.de>
23295
23296         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
23297         (dump_gimple_stmt): Likewise.
23298
23299 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
23300
23301         * recog.h (struct recog_data): New field is_operator.
23302         (struct insn_operand_data): New field is_operator.
23303         * recog.c (extract_insn): Set recog_data.is_operator.
23304         * genoutput.c (output_operand_data): Emit code to set the
23305         is_operator field.
23306         * reload.c (find_reloads): Use it rather than testing for an
23307         empty constraint string.
23308
23309         PR target/41514
23310         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
23311         If the previous insn is a cbranchsi4_insn with the same arguments,
23312         omit the compare instruction.
23313
23314         * config/arm/arm.md (addsi3_cbranch): If destination is a high
23315         register, inputs must be low registers and we need a low register
23316         scratch.  Handle alternative 2 like alternative 3.
23317
23318 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23319
23320         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
23321         don't call get_addr on both.  If one expression is a VALUE and
23322         the other a REG, check VALUE's locs if the REG isn't among them.
23323
23324 2010-04-16  Christian Bruel  <christian.bruel@st.com>
23325
23326         * config/sh/sh.h (sh_frame_pointer_required): New function.
23327         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
23328         (flag_omit_frame_pointer) Set.
23329         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
23330         (rounded_frame_size): Adjust size with outgoing_args_size.
23331         (sh_set_return_address): Must return from stack pointer.
23332         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
23333         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
23334         (ACCUMULATE_OUTGOING_ARGS): Define.
23335         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
23336         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
23337
23338 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23339
23340         PR target/43471
23341         * config/sh/sh.c (sh_legitimize_reload_address): Use
23342         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
23343         Remove a unneeded check for offset_base.
23344
23345 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
23346
23347         * configure: Regenerated.
23348
23349 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23350
23351         * config/s390/s390.c (s390_call_save_register_used): Switch back
23352         to HARD_REGNO_NREGS.
23353
23354 2010-04-15  Richard Guenther  <rguenther@suse.de>
23355
23356         * alias.c (alias_set_subset_of): Handle alias-set zero
23357         child properly.
23358
23359 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
23360             Julian Brown  <julian@codesourcery.com>
23361
23362         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
23363         alternatives according to use of high and low regs.
23364         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
23365         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
23366         optimizing for size on Thumb-2.
23367
23368 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
23369
23370         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
23371
23372 2010-04-15  Richard Guenther  <rguenther@suse.de>
23373
23374         * tree-ssa-structalias.c (struct variable_info): Add
23375         is_fn_info flag.
23376         (new_var_info): Initialize it.
23377         (dump_constraints): Support printing last added constraints.
23378         (debug_constraints): Adjust.
23379         (dump_constraint_graph): Likewise.
23380         (make_heapvar_for): Check for NULL cfun.
23381         (get_function_part_constraint): New function.
23382         (get_fi_for_callee): Likewise.
23383         (find_func_aliases): Properly implement IPA PTA constraints.
23384         (process_ipa_clobber): New function.
23385         (find_func_clobbers): Likewise.
23386         (insert_into_field_list_sorted): Remove.
23387         (create_function_info_for): Properly allocate vars for IPA mode.
23388         Do not use insert_into_field_list_sorted.
23389         (create_variable_info_for): Properly generate constraints for
23390         global vars in IPA mode.
23391         (dump_solution_for_var): Always dump the solution.
23392         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
23393         (find_what_var_points_to): Adjust.
23394         (pt_solution_set): Change.
23395         (pt_solution_ior_into): New function.
23396         (pt_solution_empty_p): Export.
23397         (pt_solution_includes_global): Adjust.
23398         (pt_solution_includes_1): Likewise.
23399         (pt_solutions_intersect_1): Likewise.
23400         (dump_sa_points_to_info): Check some invariants.
23401         (solve_constraints): Move constraint dumping ...
23402         (compute_points_to_sets): ... here.
23403         (ipa_pta_execute): ... and here.
23404         (compute_may_aliases): Do not re-compute points-to info
23405         locally if IPA info is available.
23406         (ipa_escaped_pt): New global var.
23407         (ipa_pta_execute): Properly implement IPA PTA.
23408         * tree-into-ssa.c (dump_decl_set): Support dumping
23409         decls not in referenced-vars.
23410         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
23411         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
23412         (dump_points_to_solution): Likewise.
23413         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
23414         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
23415         (remap_gimple_stmt): Reset call clobber/use information if necessary.
23416         (copy_decl_to_var): Copy DECL_PT_UID.
23417         (copy_result_decl_to_var): Likewise.
23418         * tree.c (make_node_stat): Initialize DECL_PT_UID.
23419         (copy_node_stat): Copy it.
23420         * tree.h (DECL_PT_UID): New macro.
23421         (SET_DECL_PT_UID): Likewise.
23422         (DECL_PT_UID_SET_P): Likewise.
23423         (struct tree_decl_minimal): Add pt_uid member.
23424         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
23425         (pt_solution_empty_p): Declare.
23426         (pt_solution_set): Adjust.
23427         (ipa_escaped_pt): Declare.
23428         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
23429         * gimple-pretty-print.c (pp_points_to_solution): New function.
23430         (dump_gimple_call): Dump call clobber/use information.
23431         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
23432         * tree-pass.h (TDF_ALIAS): New dump option.
23433         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
23434         * doc/invoke.texi (-fipa-pta): Update documentation.
23435
23436 2010-04-15  Richard Guenther  <rguenther@suse.de>
23437
23438         * Makefile.in (OBJS-common): Add gimple-fold.o.
23439         (gimple-fold.o): New rule.
23440         * tree.h (maybe_fold_offset_to_reference,
23441         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23442         prototypes ...
23443         * gimple.h: ... here.
23444         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23445         may_propagate_address_into_dereference): Move prototypes ...
23446         * gimple.h: ... here.
23447         * tree-ssa-ccp.c (get_symbol_constant_value,
23448         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23449         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23450         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23451         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23452         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23453         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23454         gimplify_and_update_call_from_tree): Move ...
23455         * gimple-fold.c: ... here.  New file.
23456         (ccp_fold_builtin): Rename to ...
23457         (gimple_fold_builtin): ... this.
23458         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23459
23460 2010-04-15  Richard Guenther  <rguenther@suse.de>
23461
23462         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23463         fit_double_type, force_fit_type_double, add_double_with_sign,
23464         neg_double, mul_double_with_sign, lshift_double, rshift_double,
23465         lrotate_double, rrotate_double, div_and_round_double): Move ...
23466         * double-int.c: ... here.
23467         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23468         add_double, neg_double, mul_double_with_sign, mul_double,
23469         lshift_double, rshift_double, lrotate_double, rrotate_double,
23470         div_and_round_double): Move prototypes ...
23471         * double-int.h: ... here.
23472
23473 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
23474
23475         PR target/43742
23476         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
23477         matching constraints to ensure inputs match the output.
23478
23479 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23480
23481         PR target/43742
23482         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23483         in an input-only operand.
23484
23485 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
23486
23487         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23488         (double_int_not, double_int_lshift, double_int_rshift): Declare.
23489         (double_int_negative_p): Convert to static inline function.
23490         * double-int.c (double_int_lshift, double_int_lshift): New functions.
23491         (double_int_negative_p): Remove.
23492         * tree.h (lshift_double, rshift_double):
23493         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23494         * fold-const.c (fold_convert_const_int_from_real,
23495         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23496         (lshift_double): Change type of arith argument to bool.
23497         (rshift_double): Change type of arith argument to bool. Correct
23498         comment.
23499         * expmed.c (mask_rtx, lshift_value): (Ditto.).
23500
23501 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
23502
23503         PR target/21803
23504         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23505         at the start and end of the then/else blocks, and omit them from the
23506         conversion.
23507         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
23508         argument; all callers changed.  Pass zero to old_insns_match_p instead.
23509         (flow_find_head_matching_sequence): New function.
23510         (old_insns_match_p): Check REG_EH_REGION notes for calls.
23511         * basic-block.h (flow_find_cross_jump,
23512         flow_find_head_matching_sequence): Declare functions.
23513
23514 2010-04-14  Jason Merrill  <jason@redhat.com>
23515
23516         PR c++/36625
23517         * c-common.c (attribute_takes_identifier_p): New fn.
23518         * c-common.h: Declare it.
23519
23520 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23521
23522         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23523         splitter condition.
23524         (*udivmod<mode>4): Ditto.
23525
23526 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23527
23528         * config/i386/i386.md (maxmin_int): Rename code attribute from
23529         maxminiprefix and update all users.
23530         (maxmin_float): Ditto from maxminfprefix.
23531         (logic): Ditto from logicprefix.
23532         (absneg_mnemonic): Ditto from absnegprefix.
23533         * config/i386/mmx.md: Update all users of maxminiprefix,
23534         maxminfprefix and logicprefix for rename.
23535         * config/i386/sse.md: Ditto.
23536         * config/i386/sync.md (sync_<code><mode>): Update for
23537         logicprefix rename.
23538
23539 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23540
23541         PR 42966
23542         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23543         warnings converted to errors.
23544
23545 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23546
23547         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23548         used insn_type variable.
23549         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23550         to avoid set-but-not-used warning.
23551
23552 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23553
23554         * df-core.c (df_ref_debug): Change format string placeholder
23555         from 0x%x to %#x.
23556         * dwarf2asm.c (dw2_asm_output_data_raw,
23557         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23558         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23559         * dwarf2out.c (output_cfi, output_cfi_directive,
23560         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23561         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23562         Ditto.
23563         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23564         * print-rtl.c (print_rtx): Ditto.
23565
23566 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23567
23568         PR middle-end/42694
23569         * builtins.c (expand_builtin_pow_root): New function to expand pow
23570         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23571         series of sqrt and cbrt calls under -ffast-math.
23572         (expand_builtin_pow): Call it.
23573
23574 2010-04-14  Michael Matz  <matz@suse.de>
23575
23576         PR tree-optimization/42963
23577         * tree-cfg.c (touched_switch_bbs): New static variable.
23578         (group_case_labels_stmt): New function broken out from ...
23579         (group_case_labels): ... here, use the above.
23580         (start_recording_case_labels): Allocate touched_switch_bbs.
23581         (end_recording_case_labels): Deallocate it, call
23582         group_case_labels_stmt.
23583         (gimple_redirect_edge_and_branch): Remember index of affected BB.
23584
23585 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23586
23587         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23588         from insn template.
23589
23590 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23591
23592         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23593
23594 2010-04-13  Jan Hubicka  <jh@suse.cz>
23595
23596         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23597         of optimized out static functions.
23598         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23599         cost computation.  Also sanity check for overflows.
23600         (update_caller_keys): Update cgraph_edge_badness call; properly
23601         update fibheap and sanity check that it is up to date.
23602         (add_new_edges_to_heap): Update cgraph_edge_badness.
23603         (cgraph_decide_inlining_of_small_function): Likewise;
23604         add sanity checking that badness in heap is up to date;
23605         improve dumping of reason; Update badness of calls to the
23606         offline copy of function currently inlined; dump badness
23607         of functions not inlined because of unit growth limits.
23608
23609 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23610
23611         PR middle-end/32628
23612         * c-common.c (pointer_int_sum): Disregard overflow that occured only
23613         because of sign-extension change when converting to sizetype here...
23614         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23615
23616         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23617         the folding to constants.  Remove redundant final conversion.
23618         (fold_binary) <associate>: Do not associate if the re-association of
23619         constants alone overflows.
23620         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23621         to the end of the list.
23622         (multiple_of_p) <COND_EXPR>: New case.
23623
23624 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23625
23626         * opt-functions.awk (opt_sanitized_name): New.
23627         (opt_enum): New.
23628         * optc-gen.awk: Use it
23629         * opth-gen.awk: Use it.
23630
23631 2010-04-13  Martin Jambor  <mjambor@suse.cz>
23632
23633         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23634         (sra_modify_assign): Delete stmts loading dead data even if racc has no
23635         children.  Call replace_uses_with_default_def_ssa_name to handle
23636         SSA_NAES on lhs.
23637
23638 2010-04-13  Michael Matz  <matz@suse.de>
23639
23640         PR middle-end/43730
23641         * builtins.c (expand_builtin_interclass_mathfn): Also create
23642         a register if the predicate doesn't match.
23643
23644 2010-04-13  Diego Novillo  <dnovillo@google.com>
23645
23646         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23647         * c-pch.c: Include timevar.h.
23648         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23649         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23650         * ggc-common.c: Include timevar.h.
23651         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23652         * timevar.def (TV_PCH_SAVE): Define.
23653         (TV_PCH_CPP_SAVE): Define.
23654         (TV_PCH_PTR_REALLOC): Define.
23655         (TV_PCH_PTR_SORT): Define.
23656         (TV_PCH_RESTORE): Define.
23657         (TV_PCH_CPP_RESTORE): Define.
23658
23659 2010-04-13  Michael Matz  <matz@suse.de>
23660
23661         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23662         into MINUS_EXPRs.
23663         (can_reassociate_p): New function.
23664         (break_up_subtract_bb, reassociate_bb): Use it.
23665
23666 2010-04-13  Richard Guenther  <rguenther@suse.de>
23667
23668         PR bootstrap/43737
23669         * builtins.c (c_readstr): Fix assert.
23670
23671 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
23672
23673         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23674         when generating cltd insn.
23675
23676         (*ashl<mode>3_1): Remove special handling for register operand 2.
23677         (*ashlsi3_1_zext): Ditto.
23678         (*ashlhi3_1): Ditto.
23679         (*ashlhi3_1_lea): Ditto.
23680         (*ashlqi3_1): Ditto.
23681         (*ashlqi3_1_lea): Ditto.
23682         (*<shiftrt_insn><mode>3_1): Ditto.
23683         (*<shiftrt_insn>si3_1_zext): Ditto.
23684         (*<shiftrt_insn>qi3_1_slp): Ditto.
23685         (*<rotate_insn><mode>3_1): Ditto.
23686         (*<rotate_insn>si3_1_zext): Ditto.
23687         (*<rotate_insn>qi3_1_slp): Ditto.
23688
23689 2010-04-13  Richard Guenther  <rguenther@suse.de>
23690
23691         * tree-ssa-structalias.c (callused_id): Remove.
23692         (call_stmt_vars): New.
23693         (get_call_vi): Likewise.
23694         (lookup_call_use_vi): Likewise.
23695         (lookup_call_clobber_vi): Likewise.
23696         (get_call_use_vi): Likewise.
23697         (get_call_clobber_vi): Likewise.
23698         (make_transitive_closure_constraints): Likewise.
23699         (handle_const_call): Adjust to do per-call call-used handling.
23700         (handle_pure_call): Likewise.
23701         (find_what_var_points_to): Remove general callused handling.
23702         (init_base_vars): Likewise.
23703         (init_alias_vars): Initialize call_stmt_vars.
23704         (compute_points_to_sets): Process call-used and call-clobbered
23705         vars for call statements.
23706         (delete_points_to_sets): Free call_stmt_vars.
23707
23708 2010-04-13  Richard Guenther  <rguenther@suse.de>
23709
23710         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23711         Only add RW dependence for dependence distance zero.
23712         Adjust maximal vectorization factor according to dependences.
23713         Move alignment handling ...
23714         (vect_find_same_alignment_drs): ... here.  New function.
23715         (vect_analyze_data_ref_dependences): Adjust.
23716         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23717         (vect_analyze_data_refs): Adjust minimal vectorization factor
23718         according to data references.
23719         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23720         dependences before determining the vectorization factor.
23721         Analyze alignment after determining the vectorization factor.
23722         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23723         dependences before alignment.
23724         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23725         Adjust prototype.
23726         (vect_analyze_data_refs): Likewise.
23727         (MAX_VECTORIZATION_FACTOR): New define.
23728
23729 2010-04-13  Duncan Sands  <baldrick@free.fr>
23730
23731         * except.h (lang_eh_type_covers): Remove.
23732         * except.c (lang_eh_type_covers): Likewise.
23733
23734 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23735             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23736
23737         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23738         * config/s390/s390.c: Replace UNTIS_PER_WORD with
23739         UNITS_PER_LONG where it is ABI relevant.
23740         (s390_return_addr_rtx): Likewise.
23741         (s390_back_chain_rtx): Likewise.
23742         (s390_frame_area): Likewise.
23743         (s390_frame_info): Likewise.
23744         (s390_initial_elimination_offset): Likewise.
23745         (save_gprs): Likewise.
23746         (s390_emit_prologue): Likewise.
23747         (s390_emit_epilogue): Likewise.
23748         (s390_function_arg_advance): Likewise.
23749         (s390_function_arg): Likewise.
23750         (s390_va_start): Likewise.
23751         (s390_gimplify_va_arg): Likewise.
23752         (s390_function_profiler): Likewise.
23753         (s390_optimize_prologue): Likewise.
23754         (s390_rtx_costs): Likewise.
23755         (s390_secondary_reload): Likewise.
23756         (s390_promote_function_mode): Likewise.
23757         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23758         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23759         registers available.
23760         (s390_unwind_word_mode): New function.
23761         (s390_function_value): Split 64 bit values into register pair if
23762         used as return value.
23763         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23764         function call parameters.  Handle parallels.
23765         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23766         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23767         (DWARF_CIE_DATA_ALIGNMENT): New macro.
23768         (s390_expand_setmem): Remove unused variable src_addr.
23769         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23770         deal with 64 bit registers.
23771         * config/s390/s390.h: Define __zarch__ predefined macro.
23772         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23773         (UNITS_PER_LONG): New macro.
23774         * libjava/include/s390-signal.h: Define extended ucontext
23775         structure containing the upper halfs of the 64 bit registers.
23776
23777 2010-04-13  Simon Baldwin  <simonb@google.com>
23778
23779         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23780
23781 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23782
23783         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23784         rvalue on the RHS if the LHS is of a non-renamable type.
23785         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23786
23787 2010-04-13  Matthias Klose  <doko@ubuntu.com>
23788
23789         * gcc.c (cc1_options): Handle -iplugindir before processing
23790         the cc1 spec. Only add -iplugindir once.
23791         (cpp_unique_options): Add -iplugindir option if -fplugin* options
23792         found.
23793         * common.opt (iplugindir): Remove `Separate' property, initialize.
23794         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23795         option.
23796         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23797         (distclean): Remove plugin dir.
23798         * doc/invoke.texi: Document -iplugindir.
23799
23800 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
23801
23802         * doc/plugins.texi (Loading Plugins): Document short
23803         -fplugin=foo option.
23804         (Plugin API): Mention default_plugin_dir_name function.
23805
23806         * gcc.c (find_file_spec_function): Add new declaration.
23807         (static_spec_func): Use it for "find-file".
23808         (find_file_spec_function): Add new function.
23809         (cc1_options): Add -iplugindir option if -fplugin* options found.
23810
23811         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23812
23813         * plugin.c (add_new_plugin): Updated comment, and handle short
23814         plugin name.
23815         (default_plugin_dir_name): Added new function.
23816
23817         * common.opt (iplugindir): New option to set the plugin directory.
23818
23819 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23820
23821         * config/i386/i386.md (any_rotate): New code iterator.
23822         (rotate_insn): New code attribute.
23823         (rotate): Ditto.
23824         (SWIM124): New mode iterator.
23825         (<rotate_insn>ti3): New expander.
23826         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23827         any_rotate code iterator.
23828         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23829         using any_rotate code iterator and SWIM124 mode iterator.
23830         (ix86_rotlti3): New insn_and_split pattern.
23831         (ix86_rotrti3): Ditto.
23832         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23833         ix86_rotl{di,ti}3 patterns.
23834         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23835         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23836         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23837         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23838         code iterator and SWI mode iterator.
23839         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23840         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23841         code iterator.
23842         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23843         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23844         (bswap rotatert splitter): Add splitter.
23845         (bswap splitter): Macroize splitter using any_rotate code iterator.
23846         Add insn predicate to split only for TARGET_USE_XCHGB or when
23847         optimizing function for size.
23848
23849 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23850
23851         * config/pa/pa.c (emit_move_sequence): Remove use of
23852         deleted variable flag_argument_noalias.
23853
23854 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23855
23856         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23857         configurations.
23858         Add to unsupported targets list.
23859         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23860         sparc*-sun-solaris2.[567]* from target lists.
23861         * configure: Regenerate.
23862         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23863         removal.
23864         Remove Solaris 7 patch references.
23865         (Specific, sparc-sun-solaris2.7): Removed.
23866         (sparc-sun-solaris2*): Update Solaris 7 example.
23867         (sparc64-*-solaris2*): Likewise.
23868
23869 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23870
23871         * config.build (alpha*-dec-osf4*): Remove.
23872         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23873         of obsolete configurations.
23874         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23875         support.
23876         * config/alpha/t-osf4: Renamed to ...
23877         * config/alpha/t-osf5: ... this.
23878         * config/alpha/osf.h: Renamed to ...
23879         * config/alpha/osf5.h: ... this.
23880         Merged old osf5.h contents.
23881         Update comments.
23882         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23883         (EXTRA_SPECS): Removed.
23884         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23885         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23886         Document that.
23887
23888 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23889
23890         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23891
23892 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23893
23894         PR/43702
23895         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23896         __thiscall convention.
23897
23898 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23899
23900         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23901         orig_base.
23902         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23903
23904 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23905
23906         * function.c (assign_parms_initialize_all): Add unused attribute
23907         to fntype.
23908
23909 2010-04-12  Richard Guenther  <rguenther@suse.de>
23910
23911         * gsstruct.def (GSS_CALL): New.
23912         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23913         * gimple.h: Include tree-ssa-alias.h.
23914         (struct gimple_statement_call): New.
23915         (union gimple_statement_struct_d): Add gimple_call member.
23916         (gimple_call_reset_alias_info): Declare.
23917         (gimple_call_use_set): New function.
23918         (gimple_call_clobber_set): Likewise.
23919         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23920         * gimple.c (gimple_call_reset_alias_info): New function.
23921         (gimple_build_call_1): Call it.
23922         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23923         * tree-inline.c (remap_gimple_stmt): Likewise.
23924         (expand_call_inline): Remove callused handling.
23925         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23926         * tree-dfa.c (dump_variable): Likewise.
23927         * tree-parloops.c (parallelize_loops): Likewise.
23928         * tree-ssa.c (init_tree_ssa): Likewise.
23929         (delete_tree_ssa): Likewise.
23930         * tree-flow-inline.h (is_call_used): Remove.
23931         * tree-flow.h (struct gimple_df): Remove callused member.
23932         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23933         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23934         (ref_maybe_used_by_call_p_1): Simplify.
23935         (call_may_clobber_ref_p_1): Likewise.
23936         * tree-ssa-structalias.c (compute_points_to_sets): Set
23937         the call stmt used and clobbered sets.
23938         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23939         (find_tail_calls): Verify the tail call.
23940
23941 2010-04-12  Richard Guenther  <rguenther@suse.de>
23942
23943         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23944         single-iteration always-inline inlining.
23945         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23946         (cgraph_decide_inlining): Do not handle always-inline specially.
23947         (try_inline): Remove always-inline cycle detection special case.
23948         Do not recurse on always-inlines.
23949         (cgraph_early_inlining): Do not iterate if not optimizing.
23950         (cgraph_gate_early_inlining): remove.
23951         (pass_early_inline): Run unconditionally.
23952         (gate_cgraph_decide_inlining): New function.
23953         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23954         not inlining or optimizing.
23955         (cgraph_decide_inlining_of_small_functions): Also consider
23956         always-inline functions.
23957         (cgraph_default_inline_p): Return true for nodes which should
23958         disregard inline limits.
23959         (estimate_function_body_sizes): Assume zero size and time for
23960         nodes which are marked as disregarding inline limits.
23961         (cgraph_decide_recursive_inlining): Do not perform recursive
23962         inlining on always-inline nodes.
23963
23964 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23965
23966         PR bootstrap/43699
23967         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23968         for exprs satisfying handled_component_p.
23969
23970 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23971
23972         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23973         non-constant aggregate elements.
23974
23975         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23976         is a real initialization.
23977
23978 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23979
23980         PR c/36774
23981         * c-decl.c (start_function): Move forward check for nested function.
23982
23983 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23984
23985         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23986         * config/sh/sh.c: Include reload.h.
23987         (sh_legitimize_reload_address): New.
23988         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23989         sh_legitimize_reload_address.
23990
23991 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23992
23993         * config/sh/sh.md (*movqi_pop): New insn pattern.
23994         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23995
23996 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23997
23998         * config/i386/i386.md (any_shiftrt): New code iterator.
23999         (shiftrt_insn): New code attribute.
24000         (shiftrt): Ditto.
24001         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
24002         using any_shiftrt code iterator.
24003         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
24004         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
24005         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
24006         pattern from corresponding peephole2 patterns.
24007         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
24008         using any_shiftrt code iterator.
24009         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
24010         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
24011         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
24012         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
24013         *{ashr,lshr}<mode>3_cmp_zext.
24014         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
24015
24016 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24017
24018         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
24019         scratch register.
24020         (*lshr<mode>3_cconly): Ditto.
24021
24022 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24023
24024         * config/i386/i386.md (lshr<mode>3): Macroize expander from
24025         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24026         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24027         pattern from *lshr{di,ti}3_1 and corresponding splitters using
24028         DWI mode iterator.
24029         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24030         from corresponding peephole2 patterns.
24031         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
24032         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
24033         and *lshrdi3_1_rex64 using SWI mode iterator.
24034         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
24035         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
24036         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
24037         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
24038         and *lshrdi3_cmp_rex64 using SWI mode iterator.
24039         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
24040         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
24041         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
24042         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
24043         SWI mode iterator.
24044
24045 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
24046
24047         * config/i386/i386.md (ashr<mode>3): Macroize expander from
24048         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24049         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24050         pattern from *ashr{di,ti}3_1 and corresponding splitters using
24051         DWI mode iterator.
24052         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24053         from corresponding peephole2 patterns.
24054         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
24055         (ashrsi3_cvt): Rename from ashrsi3_31.
24056         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
24057         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
24058         and x86_64_shift_adj_3 using SWI48 mode iterator.
24059         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
24060         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
24061         and *ashrdi3_1_rex64 using SWI mode iterator.
24062         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
24063         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
24064         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
24065         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
24066         and *ashrdi3_cmp_rex64 using SWI mode iterator.
24067         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
24068         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
24069         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
24070         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
24071         SWI mode iterator.
24072         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
24073         * config/i386/i386.c (ix86_split_ashr): Update for renamed
24074         x86_shift<mode>_adj_3 expanders.
24075
24076 2010-04-10  Wei Guozhi  <carrot@google.com>
24077
24078         PR target/42601
24079         * config/arm/arm.c (arm_pic_static_addr): New function.
24080         (legitimize_pic_address): Call arm_pic_static_addr when it detects
24081         a static symbol.
24082         (arm_output_addr_const_extra): Output expression for new pattern.
24083         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
24084
24085 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
24086
24087         * ira-costs.c (record_reg_classes): Ignore alternatives that are
24088         not enabled.
24089
24090         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
24091         * web.c: Include "insn-config.h" and "recog.h".
24092         (union_match_dups): New function.
24093         (web_main): Call it.
24094         (union_defs): Don't try to recognize match_dups.
24095
24096         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
24097         if doing so would replace the entire pattern.
24098
24099 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24100
24101         PR target/43707
24102         PR target/43709
24103         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
24104         and splitter pattern.  Change splitter operand 1 predicate to
24105         nonmemory_operand.
24106
24107 2010-04-09  Martin Jambor  <mjambor@suse.cz>
24108
24109         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
24110         lattices are addresses of CONST_DECLs with the same initial value.
24111         (ipcp_print_all_lattices): Print values of CONST_DECLs.
24112         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
24113
24114 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
24115             Bernd Schmidt  <bernds@codesourcery.com>
24116
24117         * loop-invariant.c (replace_uses): New static function.
24118         (move_invariant_reg): Use it to ensure we can replace the uses.
24119
24120 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
24121
24122         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
24123         function template.
24124         (picochip_override_options): Enable section anchors only above -O1.
24125         (picochip_reorg): Fixed a couple of build warnings.
24126
24127 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24128
24129         * configure.ac (plugin -rdynamic test): Log result.
24130         * configure: Regenerate.
24131         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
24132         (RDYNAMIC_SPEC): Define.
24133         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
24134
24135 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24136
24137         * configure.ac: Determine Sun ld version numbers.
24138         (comdat_group): Restrict GNU ld version checks to gld.
24139         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
24140         (enable_comdat): Support --enable-comdat.
24141         * configure: Regenerate.
24142         * doc/install.texi (Configuration): Document --enable-comdat.
24143
24144 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24145
24146         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
24147         * config/sol2-gld.h: ... here.
24148         * config.gcc (sparc*-*-solaris2*): Reflect this.
24149         (i[34567]86-*-solaris2*): Use it.
24150
24151 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
24152
24153         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
24154         setup_clocks_p.
24155         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
24156
24157 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24158
24159         PR 42965
24160         * diagnostic.c (diagnostic_initialize): Initialize
24161         some_warnings_are_errors.
24162         (diagnostic_finish): New.
24163         (diagnostic_action_after_output): Call it before exiting.
24164         (diagnostic_report_diagnostic): Do not print message here. Set
24165         some_warnings_are_errors.
24166         * diagnostic.h (diagnostic_context): Delete
24167         issue_warnings_are_errors_message. Add some_warnings_are_errors.
24168         (diagnostic_finish): Declare.
24169         * toplev.c (toplev_main): Call it before exit.
24170
24171 2010-04-09  Jason Merrill  <jason@redhat.com>
24172
24173         PR c++/42623
24174         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
24175         for incomplete type.
24176
24177         PR c++/41788
24178         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
24179         based on a warning flag.
24180
24181 2010-04-09  Richard Guenther  <rguenther@suse.de>
24182
24183         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
24184
24185 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
24186
24187         PR bootstrap/43684
24188         * varasm.c (default_assemble_visibility): Wrap vars that are
24189         set, but unused, by targets without GAS.
24190         * config/rs6000/rs6000.c (paired_emit_vector_compare):
24191         Remove set, but unused, vars.
24192         (rs6000_legitimize_tls_address): Likewise.
24193         (altivec_expand_dst_builtin): Likewise.
24194         * config/darwin.c (machopic_classify_symbol): Likewise.
24195         (machopic_indirection_name): Likewise.
24196
24197 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24198
24199         * config/i386/i386.md (DWI): New mode iterator.
24200         (S): New mode attribute.
24201         (shift_operand): Ditto.
24202         (shift_immediate_operand): Ditto.
24203         (ashl_input_operand): Ditto.
24204         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
24205         using SDWIM mode iterator.
24206         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24207         pattern from *ashl{di,ti}3_1 and corresponding splitters using
24208         DWI mode iterator.
24209         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
24210         from corresponding peephole2 patterns.
24211         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
24212         and x86_64_shift_adj_1 using SWI48 mode iterator.
24213         (x86_shift<mode>_adj_2): Ditto.
24214         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
24215         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
24216         using SWI48 mode iterator.
24217         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
24218         *ashldi3_cmp_rex64 using SWI mode iterator.
24219         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
24220         *ashldi3_cconly_rex64 using SWI mode iterator.
24221         * config/i386/i386.c (ix86_split_ashl): Update for renamed
24222         x86_shift<mode>_adj_{1,2}.
24223         (ix86_split_ashr): Ditto.
24224         (ix86_split_lshr): Ditto.
24225
24226 2010-04-09  Richard Guenther  <rguenther@suse.de>
24227
24228         * target.h (builtin_conversion): Pass in input and output types.
24229         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
24230         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
24231         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
24232         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
24233
24234         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
24235         Handle AVX modes.
24236         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
24237
24238 2010-04-09  Richard Guenther  <rguenther@suse.de>
24239
24240         PR target/43152
24241         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
24242
24243 2010-04-09  Richard Guenther  <rguenther@suse.de>
24244
24245         * tree-vectorizer.h (struct _stmt_vec_info): Document
24246         that vectype is the type of the LHS.
24247         (supportable_widening_operation, supportable_narrowing_operation):
24248         Get both input and output vector types as arguments.
24249         (vect_is_simple_use_1): Declare.
24250         (get_same_sized_vectype): Likewise.
24251         * tree-vect-loop.c (vect_determine_vectorization_factor):
24252         Set STMT_VINFO_VECTYPE to the vector type of the def.
24253         (vectorizable_reduction): Adjust.
24254         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
24255         Adjust.  Specify the output vector type.
24256         (vect_pattern_recog_1): Adjust.
24257         * tree-vect-stmts.c (get_same_sized_vectype): New function.
24258         (vectorizable_call): Adjust.
24259         (vectorizable_conversion): Likewise.
24260         (vectorizable_operation): Likewise.
24261         (vectorizable_type_demotion): Likewise.
24262         (vectorizable_type_promotion): Likewise.
24263         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
24264         the def.
24265         (vect_is_simple_use_1): New function.
24266         (supportable_widening_operation): Get both input and output
24267         vector types.
24268         (supportable_narrowing_operation): Likewise.
24269         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
24270
24271 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
24272
24273         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
24274         __thiscall and _thiscall as predefined macros.
24275         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
24276         thiscall attribute handling.
24277         (ix86_comp_type_attributes): Likewise.
24278         (ix86_function_regparm): Likewise.
24279         (ix86_return_pops_args): Likewise.
24280         (init_cumulative_args): Likewise.
24281         (find_drap_reg): Likewise.
24282         (ix86_static_chain): Likewise.
24283         (x86_this_parameter): Likewise.
24284         (x86_output_mi_thunk): Likewise.
24285         (ix86_attribute_table): Add description for thiscall attribute.
24286         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
24287         * doc/extend.texi: Add documentation for thiscall.
24288
24289 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24290
24291         PR c++/28584
24292         * c.opt (Wint-to-pointer-cast): Available in C++.
24293         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
24294
24295 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
24296
24297         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
24298         * calls.c (expand_call): Pass the function type to aggregate_value_p.
24299         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
24300         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
24301         function type instead.  Reorder and simplify checks.
24302
24303         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
24304
24305 2010-04-08  Jing Yu  <jingyu@google.com>
24306             Zdenek Dvorak  <ook@ucw.cz>
24307
24308         PR tree-optimization/42720
24309         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
24310         loop unswitch conditions here from ...
24311         (tree_unswitch_single_loop): ... here.
24312
24313 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24314
24315         * tree-if-conv.c: Fix comments and simplify logic.
24316
24317 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24318
24319         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
24320         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
24321         (main_tree_if_conversion): Update call to tree_if_conversion.
24322
24323 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24324
24325         PR 42485
24326         * doc/invoke.texi (-b,-V): Delete.
24327         * doc/tm.texi: Do not mention -b.
24328         * gcc.c (display_help): Delete -b and -V.
24329         (process_command): Delete -b and -V.
24330         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
24331
24332 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
24333             Wolfgang Gellerich  <gellerich@de.ibm.com>
24334
24335         Implement target hook for loop unrolling
24336         * target.h (loop_unroll_adjust): Add a new target hook function.
24337         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
24338         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
24339         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
24340         (s390_loop_unroll_adjust): Implement the new target hook for s390.
24341         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
24342         target hook.
24343         (decide_unroll_stupid): Likewise.
24344
24345 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24346
24347         PR target/43643
24348         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
24349
24350 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24351
24352         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
24353         (Specific, *-*-solaris2*): Likewise.
24354         Don't prefer Sun as over GNU as.
24355
24356 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
24357
24358         * config/s390/s390.c (override_options): Adjust the z10 defaults
24359         for max-unroll-times, max-completely-peeled-insns
24360         and max-completely-peel-times.
24361
24362 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24363
24364         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
24365         instructions for z10.
24366         (s390_expand_setmem): Likewise.
24367         (s390_expand_cmpmem): Likewise.
24368
24369 2010-04-08  Richard Guenther  <rguenther@suse.de>
24370
24371         PR tree-optimization/43679
24372         * tree-ssa-pre.c (eliminate): Only propagate copies.
24373
24374 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24375
24376         PR bootstrap/43681
24377         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
24378         set but not used variable warning.
24379
24380 2010-04-08  Wei Guozhi  <carrot@google.com>
24381
24382         PR target/41653
24383         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
24384         (arm_size_rtx_costs): Call the new function when optimized for size.
24385
24386 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24387
24388         PR debug/43670
24389         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
24390         op0 is not a MEM, just return NULL instead of assertion
24391         failure.
24392         (discover_nonconstant_array_refs): Don't walk debug stmts.
24393
24394 2010-04-08  Doug Kwan  <dougkwan@google.com>
24395
24396         * configure.ac: Recognize gold and do not use its version number
24397         to test ld features.
24398         * configure: Regenerate.
24399
24400 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
24401
24402         PR middle-end/40815
24403         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
24404         (negate_value): Move code to push elements to broken_up_substracts ...
24405         (eliminate_plus_minus_pair): ... here.  Push operands that have no
24406         negative pair to plus_negates.
24407         (repropagate_negates, init_reassoc, fini_reassoc): Update.
24408
24409 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24410
24411         * doc/install.texi (Configuration): Move description of
24412         --enable-lto, --with-libelf*, --enable-gold from Java section to
24413         general section.
24414
24415         * doc/generic.texi (Working with declarations)
24416         (Function Properties, C and C++ Trees): Fix typos.
24417         * doc/sourcebuild.texi (Top Level): Likewise.
24418
24419 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24420
24421         PR c/18624
24422         * tree.h (DECL_READ_P): Define.
24423         (struct tree_decl_common): Add decl_read_flag.
24424         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
24425         a set but not used warning.
24426         (merge_decls): Merge DECL_READ_P flag.
24427         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
24428         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
24429         * c-common.c (handle_used_attribute, handle_unused_attribute):
24430         Likewise.
24431         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
24432         New prototypes.
24433         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
24434         New functions.
24435         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
24436         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
24437         c_parser_binary_expression, c_parser_cast_expression,
24438         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
24439         Call default_function_array_read_conversion instead of
24440         default_function_array_conversion where needed.
24441         (c_parser_unary_expression, c_parser_conditional_expression,
24442         c_parser_postfix_expression_after_primary, c_parser_initelt):
24443         Likewise.  Call mark_exp_read where needed.
24444         (c_parser_statement_after_labels, c_parser_asm_operands,
24445         c_parser_typeof_specifier, c_parser_sizeof_expression,
24446         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24447         where needed.
24448         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24449         New.
24450         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24451         (warn_unused_but_set_parameter): Default to warn_unused
24452         && extra_warnings.
24453         * doc/invoke.texi: Document -Wunused-but-set-variable and
24454         -Wunused-but-set-parameter.
24455
24456         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24457         used count variable.
24458         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24459         when operandN variables aren't used in the body of the expander
24460         or splitter.
24461         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24462         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24463         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24464         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24465         FOR_EACH_IMM_USE_ON_STMT): Likewise.
24466         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24467         * tree.c (PROCESS_ARG): Likewise.
24468
24469 2010-04-07  Simon Baldwin  <simonb@google.com>
24470
24471         * diagnostic.h (diagnostic_override_option_index): New macro to
24472         set a diagnostic's option_index.
24473         * c-tree.h (c_cpp_error): Add warning reason argument.
24474         * opts.c (_warning_as_error_callback): New.
24475         (register_warning_as_error_callback): Store callback for
24476         warnings enabled via enable_warning_as_error.
24477         (enable_warning_as_error): Call callback, minor code tidy.
24478         * opts.h (register_warning_as_error_callback): Declare.
24479         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24480         response to -Werror=.
24481         (c_common_init_options): Register warning_as_error_callback in opts.c.
24482         * common.opt: Add -Wno-cpp option.
24483         * c-common.c (struct reason_option_codes_t): Map cpp warning
24484         reason codes to gcc option indexes.
24485         * (c_option_controlling_cpp_error): New function, lookup the gcc
24486         option index for a cpp warning reason code.
24487         * (c_cpp_error): Add warning reason argument, call
24488         c_option_controlling_cpp_error for diagnostic_override_option_index.
24489         * doc/invoke.texi: Document -Wno-cpp.
24490
24491 2010-04-07  Richard Guenther  <rguenther@suse.de>
24492
24493         * ipa-reference.c (mark_load): Use get_base_address.
24494         (mark_store): Likewise.
24495
24496         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24497         inserting GIMPLE_NOPs into the IL.
24498         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24499         Explicitly strip handled components and indirect references.
24500
24501         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24502         folding address expressions.
24503         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24504         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24505         operand_equal_p to compare decls.
24506         (ptr_deref_may_alias_decl_p): Likewise.
24507         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24508         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24509         Handle reversed comparison ops.
24510         * tree-sra.c (asm_visit_addr): Use get_base_address.
24511         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24512         * ipa-reference.c (mark_address): Use get_base_address.
24513
24514 2010-04-07  Richard Guenther  <rguenther@suse.de>
24515
24516         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24517         Propagate constants everywhere.
24518
24519 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24520
24521         PR debug/43516
24522         * tree.c (MAX_INT_CACHED_PREC): Define.
24523         (nonstandard_integer_type_cache): New array.
24524         (build_nonstandard_integer_type): Cache results for precision
24525         <= MAX_INT_CACHED_PREC.
24526
24527 2010-04-07  Richard Guenther  <rguenther@suse.de>
24528
24529         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24530         -fargument-noalias-global, -fargument-noalias-anything): Remove.
24531         * common.opt: Likewise.
24532         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24533         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24534         (nonoverlapping_memrefs_p): Likewise.
24535         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24536         * opts.c (common_handle_option): Handle OPT_fargument_alias,
24537         OPT_fargument_noalias, OPT_fargument_noalias_anything and
24538         OPT_fargument_noalias_global for backward compatibility.
24539
24540 2010-04-07  Richard Guenther  <rguenther@suse.de>
24541
24542         PR tree-optimization/43270
24543         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24544         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24545         * tree-ssa-pre.c (phi_translate_1): Adjust.
24546         (fully_constant_expression): Split out vn_reference handling to ...
24547         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24548         Fold reads from constant strings.
24549         (vn_reference_lookup): Handle fully constant references.
24550         (vn_reference_lookup_pieces): Likewise.
24551         * Makefile.in (expmed.o-warn): Add -Wno-error.
24552
24553 2010-04-07  Martin Jambor  <mjambor@suse.cz>
24554
24555         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24556
24557 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
24558
24559         PR driver/41594
24560         * gcc.c: Add -static-libstdc++ to list of recognized options.
24561
24562 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24563
24564         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24565
24566 2010-04-07  Richard Guenther  <rguenther@suse.de>
24567
24568         PR middle-end/42617
24569         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24570         bases build simple mem attributes to retain points-to information.
24571
24572 2010-04-07  Richard Guenther  <rguenther@suse.de>
24573
24574         PR middle-end/42617
24575         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24576         preserve points-to related information.
24577
24578 2010-04-07  Richard Guenther  <rguenther@suse.de>
24579
24580         PR middle-end/42617
24581         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24582         discard plain indirect references.
24583         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24584         * tree.c (tree_nop_conversion): Likewise.
24585
24586 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
24587
24588         PR debug/43628
24589         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24590
24591 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
24592
24593         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24594         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24595
24596 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24597
24598         * tree-if-conv.c: Fix indentation and comments.
24599
24600 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24601
24602         * tree-if-conv.c: Sort static functions in topological order.
24603
24604 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24605
24606         * tree-if-conv.c: Fix indentation and comments.
24607
24608 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24609
24610         PR middle-end/43519
24611         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24612         lang_hooks.types.type_for_size instead of
24613         build_nonstandard_integer_type.
24614         When converting an unsigned type to signed, double its precision.
24615         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24616         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24617         (graphite_create_new_loop_guard): When ub + 1 wraps around,
24618         use lb <= ub.
24619
24620 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24621
24622         PR middle-end/43519
24623         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24624         POINTER_PLUS_EXPR for pointer types.
24625
24626 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24627
24628         PR middle-end/43519
24629         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24630         * graphite-clast-to-gimple.c: Include langhooks.h.
24631         (max_signed_precision_type): New.
24632         (max_precision_type): Takes two types as arguments.
24633         (precision_for_value): New.
24634         (precision_for_interval): New.
24635         (gcc_type_for_interval): New.
24636         (gcc_type_for_value): New.
24637         (gcc_type_for_clast_term): New.
24638         (gcc_type_for_clast_red): New.
24639         (gcc_type_for_clast_bin): New.
24640         (gcc_type_for_clast_expr): Split up into several functions.
24641         (gcc_type_for_clast_eq): Rewritten.
24642         (compute_bounds_for_level): New.
24643         (compute_type_for_level_1): New.
24644         (compute_type_for_level): New.
24645         (gcc_type_for_cloog_iv): Removed.
24646         (gcc_type_for_iv_of_clast_loop): Rewritten.
24647         (graphite_create_new_loop): Compute the lower and upper bound types
24648         with gcc_type_for_clast_expr.
24649         (graphite_create_new_loop_guard): Same.
24650         (find_cloog_iv_in_expr): Removed.
24651         (compute_cloog_iv_types_1): Removed.
24652         (compute_cloog_iv_types): Removed.
24653         (gloog): Do not call compute_cloog_iv_types.
24654         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24655         GBB_CLOOG_IV_TYPES.
24656         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24657         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24658         (GBB_CLOOG_IV_TYPES): Removed.
24659
24660 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24661
24662         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24663         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24664         (detect_commutative_reduction): Same.
24665
24666 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24667
24668         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24669         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
24670         argument.
24671         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24672         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24673         (rewrite_commutative_reductions_out_of_ssa): Same.
24674         * passes.c (execute_function_todo): Call verify_ssa for every pass
24675         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
24676         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24677         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24678         with an extra argument.
24679         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
24680         verify_ssa only when the extra argument is true.
24681         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24682         with an extra argument.
24683         (tree_transform_and_unroll_loop): Same.
24684
24685 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24686
24687         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24688         for all the passes of the LNO having LOOP_CLOSED_SSA.
24689         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24690         * tree-loop-distribution.c (pass_loop_distribution): Same.
24691         * tree-pass.h (TODO_verify_loops): Removed.
24692         * tree-ssa-loop.c (pass_tree_loop_init): Same.
24693         (pass_lim): Same.
24694         (pass_tree_unswitch): Same.
24695         (pass_predcom): Same.
24696         (pass_vectorize): Same.
24697         (pass_linear_transform): Same.
24698         (pass_graphite_transforms): Same.
24699         (pass_iv_canon): Same.
24700         (pass_complete_unroll): Same.
24701         (pass_complete_unrolli): Same.
24702         (pass_parallelize_loops): Same.
24703         (pass_loop_prefetch): Same.
24704         (pass_iv_optimize): Same.
24705
24706 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
24707
24708         PR middle-end/32824
24709         * passes.c (init_optimization_passes): Move pass_lim before
24710         pass_copy_prop and pass_dce_loop.
24711
24712 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24713
24714         PR target/43667
24715         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24716         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24717         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24718         MULTI_* defines for 4 argument vpermil2p* builtins.
24719
24720 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24721
24722         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24723         * config/i386/i386.c (x86_maybe_negate_const_int): New.
24724         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24725         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24726         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24727         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24728         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24729         Use x86_maybe_negate_const_int to output insn mnemonic.
24730         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
24731         check from instruction predicate.  Update comments.
24732         * config/i386/sync.md (sync_add<mode>): Use
24733         x86_maybe_negate_const_int to output insn mnemonic.
24734
24735 2010-04-06  Jan Hubicka  <jh@suse.cz>
24736
24737         PR tree-optimization/42906
24738         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24739         IGNORE_SELF argument.  Set visited_control_parents for fully
24740         processed BBs.
24741         (find_obviously_necessary_stmts): Update call of
24742         mark_control_dependent_edges_necessary.
24743         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
24744
24745 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24746
24747         * config/i386/i386.md: Remove comment about 'e' and 'E'
24748         operand modifier.
24749
24750 2010-04-06  Richard Guenther  <rguenther@suse.de>
24751
24752         PR tree-optimization/43627
24753         * tree-vrp.c (extract_range_from_unary_expr): Widenings
24754         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24755         not varying.
24756
24757 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24758
24759         * BASE-VER: Change to 4.6.0.
24760
24761         PR target/43638
24762         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24763         handling.
24764
24765 2010-04-06  Richard Guenther  <rguenther@suse.de>
24766
24767         PR middle-end/43661
24768         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24769
24770 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24771
24772         * doc/invoke.texi (Optimize Options): Document that LTO
24773         won't remove object access purely due to incompatible
24774         declarations.
24775
24776 2010-04-04  Matthias Klose  <doko@ubuntu.com>
24777
24778         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24779         Initialize variable.
24780
24781 2010-04-03  Richard Guenther  <rguenther@suse.de>
24782
24783         PR middle-end/42509
24784         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24785         require a non-NULL MEM_OFFSET.
24786
24787 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
24788
24789         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24790         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24791         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24792         config/alpha/predicates.md, config/arm/arm.md,
24793         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24794         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24795         config/darwin9.h, config/darwin.c, config/darwin.h,
24796         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24797         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24798         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24799         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24800         config/mips/mips.md, config/mn10300/mn10300.c,
24801         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24802         config/rs6000/aix.h, config/rs6000/dfp.md,
24803         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24804         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24805         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24806         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24807         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24808         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24809         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24810         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24811         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24812         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24813         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24814         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24815         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24816         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24817         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24818         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24819         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24820         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24821         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24822         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24823         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24824         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24825         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24826         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24827         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24828         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24829         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24830         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24831         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24832         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24833         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24834         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24835         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24836         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24837         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24838         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24839
24840 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24841
24842         PR other/43620
24843         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24844         * aclocal.m4: Regenerate.
24845
24846 2010-04-02  Richard Guenther  <rguenther@suse.de>
24847
24848         PR tree-optimization/43629
24849         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24850         if we have seen a constant value.
24851
24852 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24853
24854         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24855
24856 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24857
24858         PR target/43469
24859         * arm.c (legitimize_tls_address): Adjust call to
24860         gen_tls_load_dot_plus_four.
24861         (arm_note_pic_base): New function.
24862         (arm_cannot_copy_insn_p): Use it.
24863         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24864         constraint.
24865
24866 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24867
24868         PR bootstrap/43531
24869
24870         Revert:
24871         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24872
24873         * Makefile.in ($(out_object_file)): Depend on
24874         gt-$(basename $(notdir $(out_file))).h.
24875
24876 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24877
24878         * config.gcc (lm32-*-rtems*): Add t-lm32.
24879
24880 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24881
24882         * config.gcc: Add lm32-*-rtems*.
24883         * config/lm32/rtems.h: New file.
24884
24885 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24886
24887         PR target/42609
24888         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24889
24890 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24891
24892         * dwarf2out.c (output_compilation_unit_header): For
24893         -gdwarf-4 use version 4 instead of version 3.
24894         (output_line_info): For version 4 and above emit additional
24895         maximum ops per insn header field.
24896         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24897
24898         * dwarf2out.c (is_c_family, is_java): Remove.
24899         (lower_bound_default): New function.
24900         (add_bound_info, gen_descr_array_type_die): Use it.
24901
24902 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24903
24904         PR debug/43325
24905         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24906         re-declaration when it happens in a function.
24907
24908 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24909
24910         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24911         (cgraph_remove_function_insertion_hook): Same.
24912         (cgraph_call_function_insertion_hooks): Same.
24913
24914 2010-04-01  Richard Guenther  <rguenther@suse.de>
24915
24916         PR middle-end/43614
24917         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24918         and TREE_THIS_VOLATILE.
24919         (copy_ref_info): Likewise.
24920         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24921         * tree.c (build6_stat): Ignore side-effects of all but arg5
24922         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24923         TARGET_MEM_REF.
24924
24925 2010-04-01  Richard Guenther  <rguenther@suse.de>
24926
24927         PR tree-optimization/43607
24928         * ipa-type-escape.c (check_call): Do not access non-existing
24929         arguments.
24930
24931 2010-04-01  Richard Guenther  <rguenther@suse.de>
24932
24933         PR middle-end/43602
24934         Revert
24935         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24936                     Jack Howarth  <howarth@bromo.med.uc.edu>
24937
24938         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24939         variables TLS.
24940
24941 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24942
24943         * doc/install.texi (Prerequisites): Document libelf usability on
24944         IRIX 5/6 and Solaris 2.
24945         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24946         Update GNU as, GNU ld requirements.
24947         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24948         Document Sun Studio compiler download.
24949         Update and simplify as, ld recommendations.
24950         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24951
24952 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24953
24954         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24955         with_tune_32 to pentium4.
24956
24957 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24958
24959         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24960
24961 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24962
24963         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24964         obsoletion, removal.
24965         Update IDO URL.
24966         Document GNU as requirement.
24967         Update configure requirements.
24968         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24969         Recomment IRIX 6.5.18+.
24970         Document IDF/IDL requirement.
24971         Document GNU as requirement.
24972         Document GNU ld bootstrap failure.
24973         Remove freeware.sgi.com reference.
24974
24975 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24976
24977         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24978         UNIX V4.0, V5.0 obsoletion, removal.
24979         Remove --with-gc=simple reference.
24980         Update VM requirements during bootstrap.
24981         Remove -oldas bootstrap description.
24982         Update binutils reference.
24983         Remove comparison failure note.
24984
24985 2010-03-31  Richard Guenther  <rguenther@suse.de>
24986             Zdenek Dvorak  <ook@ucw.cz>
24987             Sebastian Pop  <sebastian.pop@amd.com>
24988
24989         PR middle-end/43464
24990         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24991         with multiple arguments.
24992         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24993
24994 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24995
24996         * graphite-dependences.c (print_pddr): Call print_pdr with an
24997         extra argument.
24998         * graphite-poly.c (debug_pdr): Add an extra argument for the
24999         verbosity level.
25000         (print_pdr): Same.
25001         (print_pbb_domain): Same.
25002         (print_pbb): Same.
25003         (print_scop_context): Same.
25004         (print_scop): Same.
25005         (print_cloog): Same.
25006         (debug_pbb_domain): Same.
25007         (debug_pbb): Same.
25008         (print_pdrs): Same.
25009         (debug_pdrs): Same.
25010         (debug_scop_context): Same.
25011         (debug_scop): Same.
25012         (debug_cloog): Same.
25013         (print_scop_params): Same.
25014         (debug_scop_params): Same.
25015         (print_iteration_domain): Same.
25016         (print_iteration_domains): Same.
25017         (debug_iteration_domain): Same.
25018         (debug_iteration_domains): Same.
25019         (print_scattering_function): Same.
25020         (print_scattering_functions): Same.
25021         (debug_scattering_function): Same.
25022         (debug_scattering_functions): Same.
25023         * graphite-poly.h (debug_pdr): Update declaration.
25024         (print_pdr): Same.
25025         (print_pbb_domain): Same.
25026         (print_pbb): Same.
25027         (print_scop_context): Same.
25028         (print_scop): Same.
25029         (print_cloog): Same.
25030         (debug_pbb_domain): Same.
25031         (debug_pbb): Same.
25032         (print_pdrs): Same.
25033         (debug_pdrs): Same.
25034         (debug_scop_context): Same.
25035         (debug_scop): Same.
25036         (debug_cloog): Same.
25037         (print_scop_params): Same.
25038         (debug_scop_params): Same.
25039         (print_iteration_domain): Same.
25040         (print_iteration_domains): Same.
25041         (debug_iteration_domain): Same.
25042         (debug_iteration_domains): Same.
25043         (print_scattering_function): Same.
25044         (print_scattering_functions): Same.
25045         (debug_scattering_function): Same.
25046         (debug_scattering_functions): Same.
25047
25048 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25049
25050         * graphite-poly.c (print_scattering_function_1): New.
25051         (print_scattering_function): Call it.
25052         (print_scop_params): Remove spaces at the end of lines.
25053         (print_cloog): New.
25054         (debug_cloog): New.
25055         * graphite-poly.h (print_cloog): Declared.
25056         (debug_cloog): Declared.
25057
25058 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25059
25060         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
25061         in loop->header.
25062         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
25063         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
25064         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
25065         to switch between adding the IV bump in loop->latch or in loop->header.
25066
25067 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25068
25069         * graphite-poly.c (print_scattering_function): Pretty print following
25070         the scoplib format.
25071         (print_pdr): Same.
25072         (print_pbb_domain): Same.
25073         (dump_gbb_cases): Same.
25074         (dump_gbb_conditions): Same.
25075         (print_pdrs): Same.
25076         (print_pbb): Same.
25077         (print_scop_params): Same.
25078         (print_scop_context): Same.
25079         (print_scop): Same.
25080         (print_pbb_body): New.
25081         (lst_indent_to): New.
25082         (print_lst): Start new lines with a #.
25083         * graphite-poly.h (pbb_bb): New.
25084         (pbb_index): Use pbb_bb.
25085         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
25086         disjuncts.
25087         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
25088
25089 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25090
25091         * dwarf2out.c (size_of_die): For -gdwarf-4 use
25092         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
25093         and 0 instead of 1 for dw_val_class_flag.
25094         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
25095         dw_val_class_range_list, dw_val_class_loc_list,
25096         dw_val_class_lineptr and dw_val_class_macptr, use
25097         DW_FORM_flag_present for dw_val_class_flag and
25098         DW_FORM_exprloc for dw_val_class_loc.
25099         (output_die): For -gdwarf-4 print dw_val_class_loc
25100         size as uleb128 instead of 1 or 2 bytes and don't print
25101         anything for dw_val_class_flag.
25102
25103         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
25104         instead of cselib_lookup following by tweaking locs->setting_insn.
25105
25106         PR bootstrap/43596
25107         * cselib.c (cselib_process_insn): Clear cselib_current_insn
25108         even before returning from label, setjmp call or volatile asm
25109         handling.
25110
25111 2010-03-31  Richard Guenther  <rguenther@suse.de>
25112
25113         PR middle-end/43600
25114         * cgraphunit.c (cgraph_output_in_order): Do not allocate
25115         temporary data on stack.
25116
25117 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25118
25119         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
25120         (PUSHSECTION_ASM_OP): Remove.
25121         (POPSECTION_ASM_OP): Remove.
25122         (PUSHSECTION_FORMAT): Remove.
25123         * config/sol2.h (PUSHSECTION_FORMAT): Define.
25124         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
25125         * config/sol2.c (solaris_output_init_fini): Use it.
25126
25127 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25128
25129         PR 43574
25130         * opt-functions.awk (var_type_struct): Use signed char type
25131         for simple variables.
25132
25133 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25134
25135         * config/sol2.c: Include output.h.
25136         (solaris_assemble_visibility): New function.
25137         * config/t-sol2 (sol2.o): Add output.h dependency.
25138         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
25139         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
25140         Redefine.
25141
25142 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25143
25144         PR target/43580
25145         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
25146         V2SImode or XFmode on PRE_DEC.
25147
25148         PR debug/43557
25149         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
25150         BLKmode.
25151
25152 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25153
25154         PR 43562
25155         * reload.h (caller_save_initialized_p): Declare.
25156         * toplev.c (backend_init_target): Don't call
25157         init_caller_save but set caller_save_initialized_p to false.
25158         * caller-save.c (caller_save_initialized_p): Define.
25159         (init_caller_save): Check caller_save_initialized_p.
25160         * ira.c (ira): Call init_caller_save if flag_caller_saves.
25161
25162 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25163
25164         PR target/39048
25165         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
25166         and soft-fp/t-softfp to tmake_file.
25167         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
25168         (LIBGCC2_TF_CEXT): Define.
25169         (TF_SIZE): Define.
25170
25171 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
25172
25173         PR debug/42977
25174         * cselib.c (n_useless_values): Document handling of debug locs.
25175         (n_useless_debug_values, n_debug_values): New variables.
25176         (new_elt_loc_list): Don't add to debug values, keep count.
25177         (promote_debug_loc): New.
25178         (cselib_reset_table): Zero new variables.
25179         (entry_and_rtx_equal_p): Promote debug locs.
25180         (discard_useless_locs): Increment n_useless_debug_values for
25181         debug values.
25182         (remove_useless_values): Adjust n_useless_values and n_debug_values
25183         with n_useless_debug_values.
25184         (add_mem_for_addr): Promote debug locs.
25185         (cselib_lookup_mem): Likewise.
25186         (cselib_lookup_addr): Renamed to...
25187         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
25188         (cselib_log_lookup): ... this.  Turn into...
25189         (cselib_lookup_addr): ... new wrapper.
25190         (cselib_lookup_from_insn): New.
25191         (cselib_invalidate_regno): Increment n_useless_debug_values for
25192         debug values.
25193         (cselib_invalidate_mem): Likewise.
25194         (cselib_process_insn): Take n_deleted and n_debug_values into
25195         account to guard remove_useless_value call.
25196         (cselib_finish): Zero n_useless_debug_values.
25197         * cselib.h (cselib_lookup_from_insn): Declare.
25198         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
25199         (sched_analyze_2): Likewise.
25200
25201 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
25202
25203         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
25204         functions.
25205         (adjust_mems): Replace narrowing SUBREG of expression containing
25206         just PLUS, MINUS, MULT and ASHIFT of registers and constants
25207         with operations in the narrower mode.
25208
25209         PR debug/43593
25210         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
25211         regs_invalidated_by_call instead all call_used_reg_set registers.
25212
25213 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
25214
25215         PR middle-end/43430
25216         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
25217         pointer comparisons with types_compatible_p.
25218         * tree-vect-stmts.c (vectorizable_call): Same.
25219         (vectorizable_condition): Same.
25220
25221 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25222
25223         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
25224         stack check if the mask would be zero.
25225
25226 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
25227             Jack Howarth  <howarth@bromo.med.uc.edu>
25228
25229         * tree-profile.c (tree_init_ic_make_global_vars): Make static
25230         variables TLS.
25231
25232 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
25233
25234         PR other/25232
25235         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
25236         and __unordtf2.
25237         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
25238         Include ___unordxf2 and ___unordtf2.
25239         * config/i386/libgcc-glibc.ver: Do not define inheritance from
25240         GCC_4.4.0 here.
25241
25242 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
25243
25244         * config/lm32/t-lm32: New file.
25245         * config.gcc: Use the above file when targetting lm32.
25246
25247 2010-03-28  Duncan Sands  <baldrick@free.fr>
25248
25249         * Makefile.in (PLUGIN_HEADERS): Add except.h.
25250
25251 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
25252
25253         PR middle-end/43431
25254         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
25255         Improve vectorization cost model diagnostic.
25256
25257 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
25258
25259         PR middle-end/43436
25260         * tree-vect-data-refs.c (vect_analyze_data_refs): When
25261         compute_data_dependences_for_loop returns false, early exit
25262         and output an extra diagnostic for the failed data reference
25263         analysis.
25264
25265 2010-03-29  Richard Guenther  <rguenther@suse.de>
25266
25267         PR tree-optimization/43560
25268         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
25269         (can_sm_ref_p): Treat stores to readonly locations as trapping.
25270
25271 2010-03-29  Jie Zhang  <jie@codesourcery.com>
25272
25273         PR 43564
25274         * toplev.c (process_options): Set optimization_default_node
25275         and optimization_current_node.
25276         * opts.c (decode_options): Don't set optimization_default_node
25277         and optimization_current_node.
25278
25279 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
25280
25281         * config/rtems.h: Abandon -qrtems_debug.
25282
25283 2010-03-28  Jan Hubicka  <jh@suse.cz>
25284
25285         PR tree-optimization/43505
25286         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
25287         map should not be copied.
25288
25289 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25290
25291         PR middle-end/41674
25292         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
25293         cdtors, set DECL_PRESERVE_P.
25294         * ipa.c (cgraph_externally_visible_p): Return true if declaration
25295         should be preseved.
25296
25297 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
25298
25299         PR tree-optimization/43528
25300         * stor-layout.c (place_field): Check that constant fits into
25301         unsigned HWI when skipping calculation of MS bitfield layout.
25302
25303 2010-03-27  Jan Hubicka  <jh@suse.cz>
25304
25305         PR middle-end/43391
25306         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
25307         notice_global_symbol work.
25308
25309 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
25310
25311         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
25312         instead of dwarf2out_decl.
25313         (struct var_loc_node): Remove section_label field.
25314         (dwarf2out_function_decl): New function.
25315         (dwarf2out_var_location): Don't set section_label field.
25316         (dwarf2out_begin_function): Don't empty decl_loc_table here.
25317
25318 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25319
25320         PR tree-optimization/43544
25321         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25322         First argument for builtin vectorized function hook is now a
25323         tree to be able to distinguish between machine specific and
25324         standard builtins.
25325         * targhooks.c (default_builtin_vectorized_function): Ditto.
25326         * targhooks.h (default_builtin_vectorized_function): Ditto.
25327         * target.h (struct gcc_target): Ditto.
25328         * tree-vect-stmts.c (vectorizable_function): Ditto.
25329         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
25330         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
25331         Ditto.
25332
25333 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
25334
25335         PR c/43381
25336         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
25337         nested binding iff it is a FUNCTION_DECL.
25338         (store_parm_decls_newstyle): Pass nested=true to bind for
25339         FUNCTION_DECLs amongst parameters.
25340
25341 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25342
25343         * var-tracking.c (vt_expand_loc_callback): Don't run
25344         cselib_expand_value_rtx_cb in dummy mode if
25345         cselib_dummy_expand_value_rtx_cb returned false.
25346
25347         * var-tracking.c (emit_note_insn_var_location): For one part
25348         notes with offset 0, don't add EXPR_LIST around the location.
25349         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
25350         add_location_or_const_value_attribute): Adjust for that change.
25351
25352         PR debug/43540
25353         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
25354         into first operand and location into second.
25355         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
25356         dw_cfi_oprnd_loc for DW_CFA_expression.
25357         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
25358         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
25359         assume first argument is regnum and second argument is location.
25360
25361 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25362
25363         PR target/42113
25364         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
25365         of scratch register to DImode.  Split to DImode comparison operator.
25366         Use SImode subreg of scratch register in the multiplication.
25367         (*cmp_sadd_sidi): Ditto.
25368         (*cmp_ssub_si): Ditto.
25369         (*cmp_ssub_sidi): Ditto.
25370
25371 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25372
25373         PR target/43524
25374         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
25375         Remove invalid assert and wrong comment.
25376
25377 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25378
25379         PR debug/43516
25380         * flags.h (final_insns_dump_p): New extern.
25381         * final.c (final_insns_dump_p): New variable.
25382         (rest_of_clean_state): Set it before -fdump-final-insns=
25383         dumping, clear afterwards.
25384         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
25385         MEM_ALIAS_SET on MEMs.
25386
25387 2010-03-26  David S. Miller  <davem@davemloft.net>
25388
25389         * configure.ac: Fix sparc GOTDATA_OP bug check.
25390         * configure: Rebuild.
25391
25392 2010-03-26  Alan Modra  <amodra@gmail.com>
25393
25394         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
25395
25396 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25397
25398         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
25399         TLS_SECTION_ASM_FLAG.
25400
25401 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
25402
25403         PR bootstrap/43511
25404         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
25405         Clear first_function_block_is_cold.
25406
25407         PR c/43385
25408         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
25409         argument if the argument is truth_value_p.
25410
25411 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25412
25413         * config/rs6000/constraints.md: Update copyright year for my changes.
25414
25415         PR target/43484
25416         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
25417         used in reg+reg addressing, swap registers.
25418
25419 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25420
25421         PR debug/43293
25422         * target.h (struct gcc_target): Add code_end hook.
25423         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
25424         if not yet defined.
25425         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
25426         * toplev.c (compile_file): Call targetm.asm_out.code_end
25427         hook before unwind info/debug info output.
25428         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
25429         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
25430         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25431         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
25432         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25433         * config/i386/i386.c (ix86_file_end): Renamed to...
25434         (ix86_code_end): ... this.  Make static.  Don't call
25435         file_end_indicate_exec_stack.  Emit unwind info using
25436         final_start_function/final_end_function.
25437         (darwin_x86_file_end): Remove.
25438         (TARGET_ASM_CODE_END): Define.
25439         * config/i386/i386.h (TARGET_ASM_FILE_END,
25440         NEED_INDICATE_EXEC_STACK): Don't define.
25441         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25442         (TARGET_ASM_FILE_END): Define to darwin_file_end.
25443         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25444         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25445
25446         PR target/43498
25447         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25448         at the beginning and final_end_function at the end.
25449         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25450
25451 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25452
25453         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25454         and Sun as TLS syntax.
25455         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25456         * configure: Regenerate.
25457         * config.in: Regenerate.
25458         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25459         (default_elf_asm_named_section): Use it.
25460         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25461         (i386_output_dwarf_dtprel): Likewise.
25462         (output_addr_const_extra): Likewise.
25463         (output_pic_addr_const): Lowercase @GOTTPOFF.
25464         (output_addr_const_extra): Likewise.
25465         (output_pic_addr_const): Lowercase @GOTNTPOFF.
25466         (output_addr_const_extra): Likewise.
25467         (output_pic_addr_const): Lowercase @INDNTPOFF.
25468         (output_addr_const_extra): Likewise.
25469         (output_pic_addr_const): Lowercase @NTPOFF.
25470         (output_addr_const_extra): Likewise.
25471         (output_pic_addr_const): Lowercase @TPOFF.
25472         (output_addr_const_extra): Likewise.
25473         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25474         (*tls_global_dynamic_64): Likewise.
25475         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25476         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25477
25478         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25479         (ASM_OUTPUT_TLS_COMMON): Use it.
25480         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25481
25482         PR target/38118
25483         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25484         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25485         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25486         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25487         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25488         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25489
25490 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25491
25492         * config/i386/i386.c (override_options): Don't accept
25493         -mtls-dialect=sun any longer.
25494         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25495         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25496         (*tls_local_dynamic_base_32_sun): Likewise.
25497         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25498
25499 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25500
25501         PR debug/43508
25502         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25503         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25504
25505         PR debug/43479
25506         * ira.c (adjust_cleared_regs): New function.
25507         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25508
25509         PR debug/19192
25510         PR debug/43479
25511         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25512         from gimple_block.
25513         * expr.c (expand_expr_real): Restore previous
25514         curr_insn_source_location and curr_insn_block after
25515         expand_expr_real_1 call.
25516         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25517         instead of expand_expr_real_1.
25518
25519 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
25520
25521         PR rtl-optimization/43413
25522         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25523         hard regs too.
25524
25525 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
25526
25527         PR target/43348
25528         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25529         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25530
25531 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25532
25533         * config/i386/i386.c (ix86_target_string): Add -mfma.
25534         Fix a typo in comment.
25535
25536 2010-03-22  Mike Stump  <mikestump@comcast.net>
25537
25538         PR target/23071
25539         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25540         Don't overly align based upon packed packed fields.
25541
25542 2010-03-22  Jason Merrill  <jason@redhat.com>
25543
25544         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25545         Use () rather than [], and move before the element type.
25546
25547 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25548
25549         * doc/configfiles.texi (Configuration Files): Removed
25550         fixinc/Makefile*, intl/Makefile.*.
25551         * doc/makefile.texi: Fixed markup. Abstract from version
25552         control system used.
25553         (Makefile): Removed obsolete java/parse.y example.
25554         * doc/sourcebuild.texi: Likewise.
25555         (Top Level): Added config, gnattools, libdecnumber, libgcc,
25556         libgomp, libssp.  Removed fastjar.
25557         (Miscellaneous Docs): Clarify location.
25558         Added COPYING3, COPYING3.LIB.
25559         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25560
25561 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25562
25563         PR target/38085
25564         * config/i386/i386.c (x86_function_profiler)
25565         [!NO_PROFILE_COUNTERS]: Fix typo.
25566         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25567         instead of callq.
25568
25569 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
25570             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25571
25572         * doc/sourcebuild.texi (Test Directives): Split into six
25573         subsections, with most of the current text in new subsections
25574         Directives, Selectors, and Final Actions.
25575         (Directives): Split list of test directives into multiple
25576         subsubsections.
25577         (Selectors): Describe use and syntax of selectors.
25578         (Effective-Target Keywords): Describe all existing keywords.
25579         (Add Options): Describe features for dg-add-options.
25580         (Require Support): Describe variants of dg-require-support.
25581         (Final Actions): Describe commands to use in dg-final.
25582
25583 2010-03-22  Michael Matz  <matz@suse.de>
25584
25585         PR middle-end/43475
25586         * recog.c (validate_replace_rtx_group): Replace also in
25587         REG_EQUAL and REG_EQUIV notes.
25588
25589 2010-03-22  Richard Guenther  <rguenther@suse.de>
25590
25591         PR tree-optimization/43390
25592         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25593         sure vector extracts are type correct.
25594
25595 2010-03-22  Richard Guenther  <rguenther@suse.de>
25596
25597         PR middle-end/40106
25598         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25599         x * sqrt (x) even when optimizing for size if the target
25600         has native support for sqrt.
25601
25602 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
25603
25604         * varasm.c (make_decl_rtl_for_debug): Also clear
25605         flag_mudflap for the duration of make_decl_rtl call.
25606
25607         PR debug/43443
25608         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25609         locs from preserved VALUEs.
25610
25611 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25612
25613         PR middle-end/42718
25614         * pa.md (movmemsi): Set align to one if zero.
25615         (movmemdi): Likewise.
25616
25617 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
25618
25619         PR target/42321
25620         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25621         with their corresponding prologue pushes.
25622
25623 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
25624
25625         PR target/43156
25626         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25627         at the begining or end.
25628         (spu_expand_epilogue): Likewise.
25629
25630 2010-03-20  Richard Guenther  <rguenther@suse.de>
25631
25632         PR rtl-optimization/43438
25633         * combine.c (make_extraction): Properly zero-/sign-extend an
25634         extraction of the low part of a CONST_INT.  Also handle
25635         CONST_DOUBLE.
25636
25637 2010-03-19  Mike Stump  <mikestump@comcast.net>
25638
25639         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25640         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25641         (override_options): Use SUBTARGET32_DEFAULT_CPU.
25642
25643 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25644
25645         PR c/43211
25646         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25647         an error.
25648
25649 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
25650
25651         PR rtl-optimization/42258
25652         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25653         use that may match DEF.
25654
25655         PR target/40697
25656         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25657         the cost of loading the constant rather than assuming
25658         COSTS_N_INSNS (1).
25659         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25660         outer code is AND, do the same tests as the andsi3 expander and
25661         return COSTS_N_INSNS (1) if and is cheap.
25662
25663         * optabs.c (avoid_expensive_constant): Fix formatting.
25664
25665 2010-03-19  Michael Matz  <matz@suse.de>
25666
25667         PR c++/43116
25668         * attribs.c (decl_attributes): When rebuilding a function pointer
25669         type use the same qualifiers as the original pointer type.
25670
25671 2010-03-19  Martin Jambor  <mjambor@suse.cz>
25672
25673         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25674         and is_gimple_ip_invariant_address.
25675
25676 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25677
25678         Revert
25679         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25680
25681         * config/arm/arm.c (arm_override_options): Turn off
25682         flag_dwarf2_cfi_asm for AAPCS variants.
25683
25684 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25685
25686         PR target/43399
25687         * config/arm/arm.c (emit_multi_reg_push): Update comments.
25688         Use PRE_MODIFY instead of PRE_DEC.
25689         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25690         (vfp_emit_fstmd): Likewise.
25691
25692 2010-03-19  Michael Matz  <matz@suse.de>
25693
25694         PR target/43305
25695         * builtins.c (expand_builtin_interclass_mathfn,
25696         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25697         if that fails.
25698
25699 2010-03-19  Richard Guenther  <rguenther@suse.de>
25700
25701         PR tree-optimization/43415
25702         * tree-ssa-pre.c (phi_translate): Split out worker to ...
25703         (phi_translate_1): ... this.
25704         (phi_translate): Move all caching here.  Cache all NARY
25705         and REFERENCE translations.
25706
25707 2010-03-19  David S. Miller  <davem@davemloft.net>
25708
25709         With help from Eric Botcazou.
25710         * config/sparc/sparc.c: Include dwarf2out.h.
25711         (emit_pic_helper): Delete.
25712         (pic_helper_symbol_name): Delete.
25713         (pic_helper_emitted_p): Delete.
25714         (pic_helper_needed): New.
25715         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25716         (get_pc_thunk_name): New.
25717         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
25718         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25719         Set pic_helper_needed to true.  Don't call emit_pic_helper.
25720         (sparc_expand_prologue): Update load_pic_register call.
25721         (sparc_output_mi_thunk): Likewise.
25722         (sparc_file_end): Emit a hidden comdat symbol for the PIC
25723         thunk if possible.  Output CFI information as needed.
25724
25725 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25726             Jack Howarth  <howarth@bromo.med.uc.edu>
25727
25728         PR target/36399
25729         * config/i386/i386.h: Fix ABI on darwin x86-32.
25730
25731 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
25732
25733         * tree.h: Declare make_decl_rtl_for_debug.
25734         * varasm.c (make_decl_rtl_for_debug): New.
25735         * dwarf2out.c (rtl_for_decl_location): Call it.
25736         * cfgexpand.c (expand_debug_expr): Call it.
25737
25738 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25739
25740         PR bootstrap/43399
25741         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25742         mem_mode.
25743
25744         PR bootstrap/43403
25745         * var-tracking.c (vt_init_cfa_base): Do nothing if
25746         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25747
25748 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
25749
25750         PR debug/42873
25751         * var-tracking.c (canonicalize_vars_star): New.
25752         (dataflow_post_merge_adjust): Use it.
25753
25754 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25755
25756         PR debug/43058
25757         * var-tracking.c (non_suitable_const): New function.
25758         (add_uses): For DEBUG_INSNs with constants, don't record any
25759         value, instead just the constant value itself.
25760         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25761         is not VAR_LOC_UNKNOWN_P, set var to the constant.
25762         (emit_notes_in_bb): Likewise.
25763         (emit_note_insn_var_location): For onepart variables if
25764         cur_loc is a VOIDmode constant, use DECL_MODE.
25765
25766 2010-03-18  Martin Jambor  <mjambor@suse.cz>
25767
25768         PR middle-end/42450
25769         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25770         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25771         all non-clones.  Moved call redirection...
25772         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25773         (cgraph_materialize_all_clones): Dispose of all
25774         combined_args_to_skip bitmaps.
25775         (verify_cgraph_node): Do not check for edges pointing to wrong
25776         nodes in inline clones.
25777         * tree-inline.c (copy_bb): Call
25778         cgraph_redirect_edge_call_stmt_to_callee.
25779         * ipa.c (cgraph_remove_unreachable_nodes): Call
25780         cgraph_node_remove_callees even when there are used clones.
25781
25782 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25783
25784         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25785
25786 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25787
25788         PR target/43383
25789         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25790         for 32bit.
25791
25792 2010-03-18  Michael Matz  <matz@suse.de>
25793
25794         PR middle-end/43419
25795         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25796         into sqrt(x) if we need to preserve signed zeros.
25797
25798 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
25799             Eric Botcazou  <ebotcazou@adacore.com>
25800
25801         PR rtl-optimization/43360
25802         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25803         note if we don't know its invariant status.
25804
25805 2010-03-18  Michael Matz  <matz@suse.de>
25806
25807         PR tree-optimization/43402
25808         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25809         PHI chains of ssa names registered for update.
25810
25811 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
25812
25813         PR target/42427
25814         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25815         non-offsettable and pre_modify update addressing.
25816         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25817         and "2" alternatives "#".
25818         (*movdd_softfloat32): Make all alternatives "#";
25819         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25820         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25821         (*movdf_softfloat32): Make all alternatives "#";
25822         (movdi): Use the new DIFD mode iterator to create a common splitter
25823         for movdi, movdf and movdd patterns.
25824
25825 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25826
25827         * common.opt (dumpdir): Remove redundant tab.
25828
25829 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25830
25831         PR tree-optimization/43347
25832         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25833         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25834
25835 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25836
25837         PR rtl-optimization/42216
25838         * regrename.c (create_new_chain): New function, broken out from...
25839         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25840         appending a use to an empty chain.
25841         (build_def_use): Remove previous changes that convert OP_INOUT to
25842         OP_OUT operands; instead detect the case where an OP_INOUT operand
25843         uses a previously untracked register and create an empty chain for it.
25844
25845 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25846
25847         * doc/extend.texi (Function Attributes): Rewrite unfinished
25848         sentence in ms_abi documentation.
25849
25850 2010-03-17  Alan Modra  <amodra@gmail.com>
25851
25852         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25853         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25854         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25855         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25856
25857 2010-03-16  Richard Henderson  <rth@redhat.com>
25858
25859         PR middle-end/43365
25860         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25861         (lower_try_finally): Save and restore eh_seq around the expansion
25862         of the try-finally.
25863
25864 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25865
25866         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25867         statements before splitting block.
25868
25869 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25870
25871         * doc/sourcebuild.texi (Testsuites): Fix markup.
25872         Use pathnames relative to gcc/testsuite.
25873         (Test Directives): Move description of how timeout is determined.
25874         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25875         (C Tests): Correct gcc.misc-tests directory.
25876         Framework tests now live in gcc.test-framework.
25877
25878 2010-03-16  Richard Guenther  <rguenther@suse.de>
25879
25880         PR middle-end/43379
25881         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25882         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25883
25884 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25885             Alexandre Oliva  <aoliva@redhat.com>
25886
25887         PR tree-optimization/42917
25888         * lambda-code.c (remove_iv): Skip debug statements.
25889         (lambda_loopnest_to_gcc_loopnest): Likewise.
25890         (not_interesting_stmt): Debug statements are not interesting.
25891
25892 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25893
25894         PR debug/43051
25895         PR debug/43092
25896         * cselib.c (cselib_preserve_constants,
25897         cfa_base_preserved_val): New static variables.
25898         (preserve_only_constants): New function.
25899         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25900         clear its REG_VALUES.  If cselib_preserve_constants, don't
25901         empty the whole hash table, but preserve there VALUEs with constants,
25902         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25903         (cselib_preserve_cfa_base_value): New function.
25904         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25905         (cselib_init): Change argument to int bitfield.  Set
25906         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25907         is in it.
25908         (cselib_finish): Clear cselib_preserve_constants and
25909         cfa_base_preserved_val.
25910         * cselib.h (enum cselib_record_what): New enum.
25911         (cselib_init): Change argument to int.
25912         (cselib_preserve_cfa_base_value): New prototype.
25913         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25914         * dse.c (dse_step1): Likewise.
25915         * cfgcleanup.c (thread_jump): Likewise.
25916         * sched-deps.c (sched_analyze): Likewise.
25917         * gcse.c (local_cprop_pass): Likewise.
25918         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25919         If FN is non-NULL, call the callback always and whenever it returns
25920         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25921         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25922         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25923         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25924         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25925         * var-tracking.c: Include recog.h.
25926         (bb_stack_adjust_offset): Remove.
25927         (vt_stack_adjustments): Don't call it, instead just gather the
25928         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25929         (adjust_stack_reference): Remove.
25930         (compute_cfa_pointer): New function.
25931         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25932         (struct adjust_mem_data): New type.
25933         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25934         functions.
25935         (get_address_mode): New function.
25936         (replace_expr_with_values): Use it.
25937         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25938         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25939         (adjust_sets): Remove.
25940         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25941         Use get_address_mode.
25942         (get_adjusted_src): Remove.
25943         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25944         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25945         (add_with_sets): Don't call adjust_sets.
25946         (fp_setter, vt_init_cfa_base): New functions.
25947         (vt_initialize): Change return type to bool.  Move most of pool etc.
25948         initialization to the beginning of the function from end.  Pass
25949         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25950         If !frame_pointer_needed, call vt_stack_adjustment before mos
25951         vector is filled, call vt_init_cfa_base if argp/framep has been
25952         eliminated to sp.  If frame_pointer_needed and argp/framep has
25953         been eliminated to hard frame pointer, set
25954         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25955         encountering fp setter in the prologue.  For MO_ADJUST, call
25956         log_op_type before pusing the op into mos vector, not afterwards.
25957         Call adjust_insn before cselib_process_insn/add_with_sets,
25958         call cancel_changes (0) afterwards.
25959         (variable_tracking_main_1): Adjust for vt_initialize calling
25960         vt_stack_adjustments and returning whether it succeeded or not.
25961
25962 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25963
25964         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25965         debug statements.
25966
25967 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25968
25969         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25970         has been set.
25971         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25972         drap_reg has not been set.
25973
25974 2010-03-15  Michael Matz  <matz@suse.de>
25975
25976         PR middle-end/43300
25977         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25978         use it to expand block copies.
25979         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25980         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25981         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25982
25983 2010-03-15  Richard Guenther  <rguenther@suse.de>
25984
25985         PR tree-optimization/43367
25986         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25987         elimination check.
25988
25989 2010-03-15  Richard Guenther  <rguenther@suse.de>
25990
25991         PR tree-optimization/43317
25992         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25993
25994 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25995
25996         PR tree-optimization/43141
25997         * tree-sra.c (create_abstract_origin): New function.
25998         (modify_function): Call create_abstract_origin.
25999
26000 2010-03-15  Chris Demetriou  <cgd@google.com>
26001
26002         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
26003         wasn't copied.
26004
26005 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26006
26007         PR middle-end/43354
26008         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
26009         call insert_out_of_ssa_copy for default definitions.
26010
26011 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26012
26013         * graphite-clast-to-gimple.c (my_long_long): Defined.
26014         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
26015         * graphite-sese-to-poly.c (my_long_long): Defined.
26016         (scop_ivs_can_be_represented): Use it.
26017
26018 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26019
26020         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
26021         graphite-max-bbs-per-function, and loop-block-tile-size.
26022         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
26023         with "maximum".
26024         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
26025
26026 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26027
26028         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
26029         forward declaration.
26030         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
26031         (add_upper_bounds_from_estimated_nit): New.
26032         (build_loop_iteration_domains): Use it.
26033
26034 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26035
26036         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
26037
26038 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26039
26040         PR middle-end/43306
26041         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
26042         should be an INTEGER_CST.  Also handle CASE_CONVERT.
26043
26044 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26045
26046         * graphite.c (graphite_initialize): To bound the number of bbs per
26047         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
26048         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
26049         * doc/invoke.texi: Document it.
26050
26051 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26052
26053         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
26054         * graphite-sese-to-poly.h (build_poly_scop): Same.
26055
26056 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26057
26058         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
26059         the number of parameters in the scop.  Use as an upper bound
26060         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
26061         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
26062         * doc/invoke.texi: Document it.
26063
26064 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
26065
26066         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
26067         * doc/c-tree.texi: Remove.
26068         * doc/generic.texi: Merge c-tree.texi here.
26069         * doc/gccint.texi (Trees): Remove menu entry.
26070         (c-tree.texi): Remove @include.
26071         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
26072         * doc/languages.texi (Reading RTL): Ditto.
26073
26074 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
26075
26076         PR target/42869
26077         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
26078
26079 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26080
26081         PR middle-end/42431
26082         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
26083         code added to work around reload clobbering CONST insns.
26084
26085 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
26086
26087         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
26088         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
26089         (cselib_preserve_only_values): Remove retain argument, don't
26090         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
26091         * cselib.h (cselib_preserve_only_values): Remove retain argument.
26092         * var-tracking.c (micro_operation): Move insn field before union.
26093         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
26094         (struct variable_tracking_info_def): Remove n_mos field, change
26095         mos into a vector of micro_operations.
26096         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
26097         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
26098         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
26099         changing into a vector.
26100         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
26101         come before all other uops generated by add_stores.
26102         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
26103         argument removal.
26104         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
26105         a vector.  Run just one pass over the bbs instead of separate counting
26106         and computation phase.
26107         (vt_finalize): Free VTI (bb)->mos vector instead of array.
26108
26109         PR debug/43329
26110         * tree-inline.c (remap_decls): Put old_var rather than origin_var
26111         into *nonlocalized_list vector.
26112         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
26113         even if origin is non-NULL.
26114         (gen_variable_die): Likewise.
26115         (process_scope_var): Don't change origin.
26116         (gen_decl_die): Likewise.
26117         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
26118         before adding new edges instead of after it, fix moving over
26119         debug stmts.
26120
26121 2010-03-11  David S. Miller  <davem@davemloft.net>
26122
26123         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
26124         of four.
26125         * configure: Rebuild.
26126
26127 2010-03-11  Martin Jambor  <mjambor@suse.cz>
26128
26129         PR tree-optimization/43257
26130         * tree.c (assign_assembler_name_if_neeeded): New function.
26131         (free_lang_data_in_cgraph): Assembler name assignment moved to the
26132         above new function.
26133         * tree.h (assign_assembler_name_if_neeeded): Declare.
26134         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
26135         the function if needed.
26136
26137 2010-03-11  Chris Demetriou  <cgd@google.com>
26138
26139         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
26140         include/stdint-gcc.h, and include/stdint.h world-readable.
26141
26142 2010-03-11  Richard Guenther  <rguenther@suse.de>
26143
26144         PR tree-optimization/43255
26145         * tree-vrp.c (process_assert_insertions_for): Do not insert
26146         asserts for trivial conditions.
26147
26148 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26149
26150         PR tree-optimization/43280
26151         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
26152         generation.  Move calculation of size out of the if branch.
26153         (find_bswap): Modify compare number generation.
26154
26155 2010-03-11  Richard Guenther  <rguenther@suse.de>
26156
26157         PR lto/43200
26158         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
26159         (input_gimple_stmt): Fixup handled component types during
26160         operand read.  Also fix up decls in ADDR_EXPRs.
26161
26162 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
26163
26164         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
26165         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
26166
26167 2010-03-10  Jan Hubicka  <jh@suse.cz>
26168
26169         PR c/43288
26170         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
26171         * varasm.c (get_variable_section): Don't do that here...
26172         (make_decl_rtl): ... and here.
26173         (do_assemble_alias): Produce decl RTL.
26174         (assemble_alias): Likewise.
26175
26176 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
26177
26178         PR debug/43290
26179         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
26180         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
26181         of fde->vdrap_reg.
26182         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
26183         (based_loc_descr): Only express drap or vdrap regno based expressions
26184         using DW_OP_fbreg when not optimizing.
26185         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
26186         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
26187         REG_CFA_SET_VDRAP note.
26188
26189 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
26190
26191         PR tree-optimization/43236
26192         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
26193         error in calculation of base address in reverse iteration case.
26194         (generate_builtin): Take number of latch executions if the statement
26195         is in the latch.
26196
26197 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
26198
26199         PR middle-end/42859
26200         * tree-eh.c: Include pointer-set.h.
26201         (lower_eh_dispatch): Filter out duplicate case labels and
26202         remove the unneeded edge when the label is unused.  Return
26203         true when some edges are removed.
26204         (execute_lower_eh_dispatch): When any lowering resulted in
26205         removing an edge, also delete unreachable blocks.
26206
26207 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
26208
26209         PR bootstrap/43287
26210         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26211         UNSPEC_MACHOPIC_OFFSET.
26212
26213 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
26214
26215         PR target/43294
26216         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
26217         (m68k_delegitimize_address): New function.
26218
26219 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
26220
26221         PR debug/43299
26222         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
26223
26224         PR debug/43299
26225         * var-tracking.c (adjust_sets): New function.
26226         (count_with_sets, add_with_sets): Use it.
26227         (get_adjusted_src): New inline function.
26228         (add_stores): Use it.
26229
26230         PR debug/43304
26231         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
26232         call cselib_dummy_expand_value_rtx_cb instead of
26233         cselib_expand_value_rtx_cb.
26234
26235         PR debug/43293
26236         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
26237         * config/i386/i386.c: Include debug.h and dwarf2out.h.
26238         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
26239         and .cfi_endproc around the pic thunks.
26240         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
26241         all queued unwind info register saves are saved before the call.
26242         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
26243         considered as sp-=4 for unwind info and the pop as sp+=4 which
26244         also clobbers dest, but doesn't actually restore it.
26245
26246         PR debug/43290
26247         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
26248         RTX_FRAME_RELATED_P.
26249
26250 2010-03-09  Jie Zhang  <jie@codesourcery.com>
26251
26252         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
26253         whitespaces in output template.
26254
26255 2010-03-09  Jie Zhang  <jie@codesourcery.com>
26256
26257         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
26258         out array boundary.
26259
26260 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26261
26262         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
26263         builtins.exp in a separate job.
26264
26265 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26266
26267         * graphite-sese-to-poly.c (add_param_constraints): Use
26268         lower_bound_in_type and upper_bound_in_type.
26269
26270 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26271
26272         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
26273         instead of unsigned_type_node.
26274
26275 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26276             Reza Yazdani  <reza.yazdani@amd.com>
26277
26278         PR middle-end/43065
26279         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
26280         on pointer type parameters.
26281
26282 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
26283
26284         PR middle-end/42644
26285         PR middle-end/42130
26286         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
26287         handle conversions from pointer to integers.
26288         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
26289         induction variable, to be able to work with code generated by CLooG.
26290         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
26291         (build_poly_scop): Bail out if we cannot codegen a loop.
26292
26293 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
26294
26295         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
26296         code generation with gloog_error.
26297
26298 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26299
26300         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
26301         Call fold_convert on all the returned values.
26302         (expand_scalar_variables_expr): Pass to
26303         expand_scalar_variables_ssa_name the type of the resulting expression.
26304
26305 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26306
26307         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
26308         ppl_min_for_le_pointset.
26309         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
26310         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
26311
26312 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26313
26314         * graphite-dependences.c (map_into_dep_poly): Removed.
26315         (dependence_polyhedron_1): Use combine_context_id_scat.
26316
26317 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26318
26319         * graphite-poly.h (struct poly_scattering): Add layout documentation.
26320         (struct poly_bb): Same.
26321         (combine_context_id_scat): New.
26322
26323 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26324
26325         PR middle-end/42326
26326         * sese.c (name_defined_in_loop_p): Return false for default
26327         definitions.
26328
26329 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26330
26331         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
26332         and clean up the logic.
26333
26334 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26335
26336         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
26337         early return.
26338
26339 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26340
26341         * var-tracking.c (remove_cselib_value_chains): Define only for
26342         ENABLE_CHECKING.
26343         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
26344         delete_slot_part, emit_notes_for_differences_1): Don't call
26345         remove_cselib_value_chains here.
26346         (set_slot_part, emit_notes_for_differences_2): Don't call
26347         add_cselib_value_chains here.
26348         (preserved_values): New vector.
26349         (preserve_value): New function.
26350         (add_uses, add_stores, vt_add_function_parameters): Use it
26351         instead of cselib_preserve_value.
26352         (changed_values_stack): New vector.
26353         (check_changed_vars_0): New function.
26354         (check_changed_vars_1, check_changed_vars_2): Use it.
26355         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
26356         changed_values_stack VALUEs.
26357         (vt_emit_notes): For all preserved_values call
26358         add_cselib_value_chains.  If ENABLE_CHECKING call
26359         remove_cselib_value_chains before verifying value_chains is empty.
26360         Initialize and free changed_values_stack.
26361         (vt_initialize): Initialize preserved_values.
26362         (vt_finalize): Free preserved_values.
26363
26364 2010-03-08  Richard Guenther  <rguenther@suse.de>
26365
26366         PR tree-optimization/43269
26367         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
26368         region detection.
26369
26370 2010-03-08  Martin Jambor  <mjambor@suse.cz>
26371
26372         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
26373         (ipa_is_param_called): Removed.
26374         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
26375         (ipa_print_node_params): Do not print the called flag.
26376         (ipa_write_node_info): Do not stream the called flag.
26377         (ipa_read_node_info): Likewise.
26378
26379 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
26380
26381         PR debug/43176
26382         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
26383         * cselib.c (struct expand_value_data): Add dummy field.
26384         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
26385         dummy to false.
26386         (cselib_dummy_expand_value_rtx_cb): New function.
26387         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
26388         any rtl.
26389         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
26390         * var-tracking.c: Include pointer-set.h.
26391         (variable): Change n_var_parts to char from int.  Add
26392         cur_loc_changed and in_changed_variables fields.
26393         (variable_canonicalize): Remove.
26394         (shared_var_p): New inline function.
26395         (unshare_variable): Maintain cur_loc_changed and
26396         in_changed_variables fields.  If var was in changed_variables,
26397         replace it there with new_var.  Just copy cur_loc instead of
26398         resetting it to something else.
26399         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
26400         (dataflow_set_union): Don't call variable_canonicalize.
26401         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
26402         of their DEBUG_EXPR_TREE_DECLs.
26403         (canonicalize_loc_order_check): Verify that cur_loc is NULL
26404         and in_changed_variables and cur_loc_changed is false.
26405         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
26406         and cur_loc_changed.  Don't update cur_loc here.
26407         (variable_merge_over_src): Don't call variable_canonicalize.
26408         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
26409         removing loc that is equal to cur_loc, clear cur_loc,
26410         set cur_loc_changed and ensure variable_was_changed is called.
26411         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
26412         compare pointers in cur_loc check, if it is equal to loc,
26413         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
26414         (variable_different_p): Remove compare_current_location argument,
26415         don't compare cur_loc.
26416         (dataflow_set_different_1): Adjust variable_different_p caller.
26417         (variable_was_changed): If dv had some var in changed_variables
26418         already, reset in_changed_variables flag for it and propagate
26419         cur_loc_changed over to the new variable.  On empty var
26420         always set cur_loc_changed.  Set in_changed_variables on whatever
26421         var is added to changed_variables.
26422         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
26423         Use shared_var_p.  When removing loc that is equal to cur_loc,
26424         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
26425         end, don't set it to something else, just call variable_was_changed.
26426         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
26427         loc being removed, clear cur_loc and set cur_loc_changed.
26428         Set cur_loc_changed if all locations have been removed.
26429         (struct expand_loc_callback_data): New type.
26430         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
26431         allocated.  Always create SUBREGs if simplify_subreg failed.
26432         Prefer to use cur_loc, when that fails and still in
26433         changed_variables (and seen first time) recompute it.  Set
26434         cur_loc_changed of variables which had to change cur_loc and
26435         compute elcd->cur_loc_changed if any of the subexpressions used
26436         had to change cur_loc.
26437         (vt_expand_loc): Adjust to pass arguments in
26438         expand_loc_callback_data structure.
26439         (vt_expand_loc_dummy): New function.
26440         (emitted_notes): New variable.
26441         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26442         that weren't used for any other decl in current
26443         emit_notes_for_changes call call vt_expand_loc_dummy to update
26444         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
26445         first loc_chain location if NULL before.  Always use just
26446         cur_loc instead of first loc_chain location.  When cur_loc_changed
26447         is false, when not --enable-checking=rtl just don't emit any note.
26448         When rtl checking, compute the note and assert it is the same
26449         as previous note.  Clear cur_loc_changed and in_changed_variables
26450         at the end before removing from changed_variables.
26451         (check_changed_vars_3): New function.
26452         (emit_notes_for_changes): Traverse changed_vars to call
26453         check_changed_vars_3 on each changed var.
26454         (emit_notes_for_differences_1): Clear cur_loc_changed and
26455         in_changed_variables.  Recompute cur_loc of new_var.
26456         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26457         (vt_emit_notes): Initialize and destroy emitted_notes.
26458
26459 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
26460
26461         PR rtl-optimization/42220
26462         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26463         Use verify_reg_tracked to determine if we should use OP_OUT rather
26464         than OP_INOUT.
26465         (build_def_use): If we see an in-out operand for a register that we
26466         know nothing about, treat is an output if possible, fail the block if
26467         not.
26468
26469 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26470
26471         PR debug/42897
26472         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26473         permanently.
26474
26475 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26476
26477         PR debug/42897
26478         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26479         uses of relevant DEFs that are dead outside the loop too.
26480
26481 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26482
26483         * var-tracking.c (dataflow_set_merge): Swap src and src2.
26484         Reverted:
26485         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26486         PR debug/41371
26487         * var-tracking.c (values_to_unmark): New variable.
26488         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26489         values_to_unmark vector.  Moved body to...
26490         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26491         instead queue it into values_to_unmark vector.
26492         (vt_find_locations): Free values_to_unmark vector.
26493
26494 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26495
26496         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26497         (site.exp): Export them when plugins are enabled.
26498
26499 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
26500
26501         PR middle-end/42326
26502         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26503         that contain scevs.
26504         (chrec_fold_multiply): Same.
26505
26506 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
26507
26508         PR c/43248
26509         * c-decl.c (build_compound_literal): Return early if init is
26510         an error_mark_node.
26511
26512 2010-03-04  Martin Jambor  <mjambor@suse.cz>
26513
26514         PR tree-optimization/43164
26515         PR tree-optimization/43191
26516         * tree-sra.c (type_consists_of_records_p): Reject records with
26517         zero-size bit-fields at the end.
26518
26519 2010-03-04  Mike Stump  <mikestump@comcast.net>
26520
26521         * Makefile.in (TAGS): Remove *.y.
26522
26523 2010-03-04  Richard Guenther  <rguenther@suse.de>
26524
26525         PR tree-optimization/40761
26526         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26527         in reverse order.
26528         (my_rev_post_order_compute): New function.
26529         (init_pre): Call it.
26530
26531 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26532
26533         PR middle-end/43209
26534         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26535         decrease the cost of an IV candidate when the cost is infinite.
26536
26537 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26538
26539         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26540         Use '3DNow!' for the extension of that name, ensure normal space
26541         after the string.
26542         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26543
26544 2010-03-03  Jeff Law  <law@redhat.com>
26545
26546         * PR middle-end/32693
26547         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26548         than gen_rtx_SUBREG.
26549         (extract_bit_field_1): Likewise.
26550
26551 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
26552
26553         * doc/sourcebuild.texi (Test directives): Document that arguments
26554         include-opts and exclude-opts are now optional for dg-skip-if,
26555         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26556
26557 2010-03-03  Jason Merrill  <jason@redhat.com>
26558
26559         PR c++/12909
26560         * cgraph.h (varpool_node): Add extra_name field.
26561         * varpool.c (varpool_extra_name_alias): New.
26562         (varpool_assemble_decl): Emit extra name aliases.
26563         (varpool_mark_needed_node): Look past an extra name alias.
26564         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26565         * lto-streamer-in.c (lto_input_tree): Read it.
26566         * lto-streamer-out.c (output_unreferenced_globals): Write it.
26567
26568 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26569
26570         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26571         (sparc*-*-solaris2*): ...this.
26572
26573 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
26574
26575         PR debug/43229
26576         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26577         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
26578         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26579         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26580
26581         PR debug/43237
26582         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26583         fallthrough to default handling, just with want_address 0 instead of 2.
26584         For single element lists, add_AT_loc directly, otherwise create an
26585         artificial variable DIE and stick location list to it.
26586
26587         PR debug/43177
26588         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26589         (VAL_EXPR_HAS_REVERSE): Define.
26590         (reverse_op): New function.
26591         (add_stores): For reversible operations add an extra MO_VAL_USE.
26592
26593 2010-03-02  Jason Merrill  <jason@redhat.com>
26594
26595         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26596
26597 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
26598
26599         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26600         (sparc64-*-linux*): Likewise.
26601         (sparc64-*-solaris2*): Include assembler files before linker ones.
26602         (sparc-*-solaris2*): Simplify and reorder to match previous case.
26603         * config/sparc/gas.h: Delete.
26604         * config/sparc/sol2-64.h: Add copyright notice.
26605         * config/sparc/sol2-gas-bi.h: Likewise.
26606         * config/sparc/sol2-gld.h: Likewise.
26607         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26608         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26609         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26610         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26611         (sparc_elf_asm_named_section): Rename into...
26612         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
26613
26614 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
26615
26616         * config/alpha/alpha.c (override_options): Fix -mtune error message.
26617
26618 2010-03-02  Jeff Law  <law@redhat.com>
26619
26620         PR middle-end/42431
26621         * reload1.c (rtx_p, substitute_stack): Declare.
26622         (substitute): Record addresses of changed rtxs.
26623         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26624         Restore the original rtx when complete.
26625         (reload): Free subsitute_stack when complete.
26626
26627 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
26628
26629         * doc/gccint.texi (menu): Add Testsuites as a chapter.
26630         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26631         new chapter.
26632         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26633         LTO Testing, gcov Testing, profopt Testing, compat Testing,
26634         Torture Tests): Change from subsection to section.
26635
26636 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
26637             Steven Bosscher  <steven@gcc.gnu.org>
26638
26639         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26640         instead of bb.
26641
26642 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
26643
26644         PR middle-end/42640
26645         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26646         the assignment from the new induction variable to the assignment
26647         of the value from the original loop PHI function.
26648
26649 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
26650             Daniel Jacobowitz  <dan@codesourcery.com>
26651
26652         * doc/sourcebuild.texi (Test directives): Clarify options to
26653         dg-skip-if.
26654
26655 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26656
26657         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26658         Disable cfi directives unless GCC and gas agree on using read-only
26659         .eh_frame sections for 64-bit.
26660         * configure: Regenerate.
26661
26662 2010-03-01  Richard Guenther  <rguenther@suse.de>
26663
26664         PR tree-optimization/43220
26665         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26666         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26667
26668 2010-03-01  Richard Guenther  <rguenther@suse.de>
26669             Martin Jambor  <mjambor@suse.cz>
26670
26671         PR middle-end/41250
26672         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26673         gimplified parameters.
26674
26675 2010-03-01  Christian Bruel  <christian.bruel@st.com>
26676
26677         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26678
26679 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
26680
26681         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26682
26683 2010-03-01  Richard Guenther  <rguenther@suse.de>
26684
26685         PR middle-end/43213
26686         * expr.c (expand_assignment): Use the alias-oracle to tell
26687         if the rhs aliases the result decl.
26688
26689 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26690
26691         PR pch/14940
26692         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26693         to sol_gt_pch_get_address.
26694         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26695         64-bit, SPARC and x86.
26696         (sol_gt_pch_get_address): New function.
26697
26698 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
26699
26700         * toplev.h (inform_n, error_n): Declare.
26701         * diagnostic.c (inform_n, error_n): New function.
26702
26703 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
26704
26705         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26706         has no rtl yet when processing local_decls, queue it and recheck
26707         if deferred stack allocation hasn't assigned it rtl.
26708
26709 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
26710
26711         * config/sh/sh.c (unspec_bbr_uid): New.
26712         (gen_block_redirect): Use it instead of INSN_UID.
26713         (gen_far_branch): Likewise.
26714
26715 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26716
26717         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26718         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26719
26720 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26721
26722         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26723         (Warning Options): -Wno-conversion-null is valid for
26724         Objective-C++ as well.
26725         * doc/tm.texi (Named Address Spaces): Likewise.
26726         * doc/plugins.texi (Plugins): Replace TABs with spaces.
26727         * doc/tree-ssa.texi (Tree SSA): Likewise.
26728
26729 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26730
26731         PR bootstrap/43202
26732         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26733         by default.  Don't set the default arch for
26734         i[34567]86-*-darwin*|x86_64-*-darwin*.
26735
26736 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26737
26738         PR bootstrap/43202
26739         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26740         default.  Set the default 32bit/64bit archs with $with_arch
26741         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26742
26743 2010-02-27  Richard Guenther  <rguenther@suse.de>
26744
26745         PR tree-optimization/43186
26746         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26747         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26748         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26749         unroller iterations.
26750
26751 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26752
26753         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26754         required and i[34567]86-*-* targets don't support 64bit ISA.
26755
26756 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
26757
26758         PR ada/43096
26759         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26760         the same alias set.
26761
26762 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26763
26764         * config.gcc: Set the default arch at least to Prescott for
26765         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26766         if SSE math is enabled.
26767
26768 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26769
26770         * diagnostic.c (diagnostic_initialize): Update.
26771         (diagnostic_report_diagnostic): Test inhibit_notes_p for
26772         informative notes.
26773         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26774         (diagnostic_inhibit_notes): New.
26775         * toplev.c (process_options): inhibit notes with -fcompare-debug.
26776
26777 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26778
26779         PR c/20631
26780         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26781         * doc/standards.texi: Likewise.
26782         * doc/extend.texi: Likewise.
26783         * doc/trouble.texi: Likewise.
26784         * doc/cppopts.texi: Likewise.
26785         * doc/install.texi: Likewise.
26786         * c.opt (std=c90,std=gnu90): New options.
26787         * c-opts.c (c_common_handle_option): Handle them.
26788
26789 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26790
26791         PR c/24577
26792         * c-decl.c (undeclared_variable): Use an informative note.
26793
26794 2010-02-26  Richard Guenther  <rguenther@suse.de>
26795
26796         PR tree-optimization/43186
26797         * gimple.h (gimple_fold): Remove.
26798         * gimple.c (gimple_fold): Remove.  Inline into single user ...
26799         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26800         Try harder for conditions.
26801
26802 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26803
26804         PR debug/43190
26805         * function.c (used_types_insert): Don't skip through named pointer
26806         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
26807         and it is different from the main variant's type.
26808
26809 2010-02-26  Nick Clifton  <nickc@redhat.com>
26810
26811         * config/rx/rx.md (sminsi3): Remove bogus alternative.
26812
26813 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26814
26815         * config.gcc: Support --with-fpmath=sse for x86.
26816
26817         * config/i386/ssemath.h: New.
26818
26819         * doc/install.texi (--with-fpmath=sse): Documented.
26820
26821 2010-02-26  Richard Guenther  <rguenther@suse.de>
26822
26823         PR tree-optimization/43188
26824         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26825         vector types of over-aligned element type.
26826
26827 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26828
26829         PR target/43175
26830         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26831         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26832
26833 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26834
26835         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26836
26837 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26838
26839         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26840         * var-tracking.c: Include diagnostic.h.
26841         (debug_dv): New function.
26842         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26843
26844         PR debug/43160
26845         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26846         (add_value_chain, add_value_chains, remove_value_chain,
26847         remove_value_chains): Handle DEBUG_EXPRs.
26848         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26849
26850         PR debug/43161
26851         * regcprop.c (struct queued_debug_insn_change): New type.
26852         (struct value_data_entry): Add debug_insn_changes field.
26853         (struct value_data): Add n_debug_insn_changes field.
26854         (debug_insn_changes_pool): New variable.
26855         (free_debug_insn_changes, apply_debug_insn_changes,
26856         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26857         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26858         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26859         fields.
26860         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26861         changes for them.
26862         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26863         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26864         changes, call cprop_find_used_regs via note_stores.
26865         (copyprop_hardreg_forward): When copying vd from predecessor
26866         which has any queued DEBUG_INSN changes, make sure the pointers are
26867         cleared.  At the end call df_analyze and then if there are any
26868         DEBUG_INSN changes queued at the end of some basic block for still
26869         live registers, apply them.
26870         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26871
26872 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26873
26874         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26875         (arm*-*-*): Ditto.
26876
26877 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26878
26879         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26880         targets.  Set the default with_cpu/with_arch from arch/cpu.
26881         Allow x86-64 and native for with_cpu/with_arch.
26882
26883 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26884
26885         * ebitmap.c: Change calls to verify_popcount with calls to
26886         sbitmap_verify_popcount.
26887         (ebitmap_clear_bit): Fixed map->cacheindex test and
26888         map>cache update when bit clearing results in an empty
26889         element.
26890
26891 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26892
26893         PR target/43154
26894         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26895         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26896         and support both V2DF and V2DI modes.
26897         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26898         support both V2DF and V2DI modes.
26899         (general): Delete trailing whitespace from a few patterns.
26900
26901         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26902         V2DF/V2DI interleave high/low builtins.
26903
26904         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26905         new VSX builtins.
26906
26907         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26908         interleave high/low functions.
26909
26910 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26911
26912         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26913         #pragma extern_prefix.
26914
26915 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26916
26917         PR debug/43166
26918         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26919         BLKmode, assert op0 is a MEM and just adjust its mode.
26920
26921         PR debug/43165
26922         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26923         if bitpos isn't multiple of mode's bitsize.
26924
26925 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26926
26927         * c.opt (-ftemplate-depth=): New.
26928         (-ftemplate-depth-): Deprecate.
26929         * optc-gen.awk: Handle -ftemplate-depth=.
26930         * opth-gen.awk: Likewise.
26931         * c-opts.c (c_common_handle_option): Likewise.
26932         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26933
26934 2010-02-24  Jason Merrill  <jason@redhat.com>
26935
26936         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26937
26938 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26939
26940         * cfg.c (alloc_aux_for_block): Remove inline.
26941         (alloc_aux_for_edge): Likewise.
26942
26943 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26944
26945         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26946
26947 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26948
26949         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26950         * config/i386/sol2-gas.h: New file.
26951         * config.gcc (i[34567]86-*-solaris2*): Use it.
26952
26953 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26954
26955         PR c/43128
26956         * c-typeck.c (ep_convert_and_check): New.
26957         (build_conditional_expr): Use it.
26958         (build_binary_op): Likewise.
26959
26960 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26961
26962         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26963
26964         PR debug/43150
26965         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26966         bounds even for -O+.
26967         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26968         expr needs to have DECL_NAME set.
26969
26970 2010-02-24  Nick Clifton  <nickc@redhat.com>
26971
26972         * config/mep/mep.c: Include gimple.h.
26973         (mep_function_uses_sp): Delete unused function.
26974         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26975         parameters.  Use unsigned integers to count args.  Return a
26976         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26977
26978 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26979
26980         PR target/43107
26981         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26982         greater or equal to nelt instead of 2 * nelt.
26983         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26984         with nelt - 1.
26985
26986 2010-02-23  Jason Merrill  <jason@redhat.com>
26987
26988         PR debug/42800
26989         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26990         in cfun->local_decls even if they have register types.
26991
26992         PR c++/42837
26993         * stor-layout.c (place_field): Don't warn about unnecessary
26994         DECL_PACKED if the type is packed.
26995
26996 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26997
26998         PR target/43139
26999         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
27000         GOTOFF relocs, even when the base reg isn't pic pointer.
27001
27002 2010-02-23  Michael Matz  <matz@suse.de>
27003
27004         PR debug/43077
27005         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
27006         (expand_gimple_basic_block): Generate and use debug temps if there
27007         are debug uses left after the last real use of TERed ssa names.
27008         Unlink debug immediate uses when they are expanded.
27009
27010 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27011
27012         PR 43123
27013         * config/i386/i386.c (override_options): Reorganise to provide
27014         better error messages.
27015
27016 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27017
27018         PR middle-end/43083
27019         * graphite-scop-detection.c (create_single_exit_edge): Move
27020         the call to find_single_exit_edge to....
27021         (create_sese_edges): ...here.  Don't handle multiple edges
27022         exiting the function.
27023         (build_graphite_scops): Don't handle multiple edges
27024         exiting the function.
27025
27026 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27027
27028         PR middle-end/43097
27029         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
27030         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
27031
27032 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27033
27034         PR middle-end/43026
27035         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
27036
27037 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27038
27039         PR c++/43126
27040         * c-typeck.c (convert_arguments): Print declaration location.
27041         * c-common.c (validate_nargs): Rename as
27042         builtin_function_validate_nargs.
27043         (check_builtin_function_arguments): Update.
27044
27045 2010-02-22  Richard Guenther  <rguenther@suse.de>
27046
27047         PR lto/43045
27048         * tree-inline.c (declare_return_variable): Use the type of
27049         the call stmt lhs if available.
27050
27051 2010-02-22  Duncan Sands  <baldrick@free.fr>
27052
27053         * passes.c (register_pass): Always consider all pass lists when
27054         ref_pass_instance_number is zero.
27055
27056 2010-02-22  Richard Guenther  <rguenther@suse.de>
27057
27058         PR tree-optimization/42749
27059         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
27060         parameter.  Do arithmetic in the original type.
27061         (update_accumulator_with_ops): Likewise.
27062         (adjust_accumulator_values): Adjust.
27063
27064 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27065
27066         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
27067         (QI to BLKmode splitter): New splitter.
27068
27069 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
27070
27071         * config/i386/i386.c (initial_ix86_tune_features): Turn on
27072         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
27073
27074 2010-02-22  Richard Guenther  <rguenther@suse.de>
27075
27076         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
27077
27078 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
27079
27080         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
27081         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
27082         ($(T)crti.o, $(T)crtn.o): Remove rules.
27083
27084 2010-02-21  Tobias Burnus  <burnus@net-b.de>
27085
27086         PR fortran/35259
27087         * doc/invoke.texi (-fassociative-math): Document that this
27088         option is automatically enabled for Fortran.
27089
27090 2010-02-20  David S. Miller  <davem@davemloft.net>
27091
27092         * configure.ac: Test if linker and assembler properly support
27093         GOTDATA_OP relocations.
27094         * configure: Rebuild.
27095         * config.in: Likewise.
27096         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
27097         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
27098         (movsi_high_pic): Likewise.
27099         (movdi_lo_sum_pic): Likewise.
27100         (movdi_high_pic): Likewise.
27101         (movsi_pic_gotdata_op): New pattern.
27102         (movdi_pic_gotdata_op): Likewise.
27103         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
27104         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
27105
27106 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
27107
27108         PR target/43067
27109         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
27110         attribute to ssemul.
27111         (xop_mulv2div2di3_high): Ditto.
27112
27113 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27114
27115         PR c++/35669
27116         * c.opt (Wconversion-null): New option.
27117         * doc/invoke.texi (Wconversion-null): Document.
27118
27119 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27120
27121         * common.opt (Wlarger-than-): Add Undocumented.
27122
27123 2010-02-19  Mike Stump  <mikestump@comcast.net>
27124
27125         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
27126
27127 2010-02-19  Jason Merrill  <jason@redhat.com>
27128
27129         PR target/40332
27130         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
27131         * configure: Likewise.
27132
27133 2010-02-20  Alan Modra  <amodra@gmail.com>
27134
27135         PR middle-end/42344
27136         * cgraph.h (cgraph_make_decl_local): Declare.
27137         * cgraph.c (cgraph_make_decl_local): New function.
27138         (cgraph_make_node_local): Use it.
27139         * cgraphunit.c (cgraph_function_versioning): Likewise.
27140         * ipa.c (function_and_variable_visibility): Likewise.
27141
27142 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27143
27144         PR bootstrap/43121
27145         * except.c (sjlj_emit_function_enter): Don't call
27146         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
27147         directly.
27148         * rtl.h (add_reg_br_prob_note): Remove prototype.
27149
27150 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27151
27152         PR 41779
27153         * c-common.c (conversion_warning): Remove widening conversions
27154         before checking the conversion of integers to reals.
27155
27156 2010-02-19  Mike Stump  <mikestump@comcast.net>
27157
27158         PR middle-end/43125
27159         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
27160
27161         PR objc/43061
27162         * cgraphunit.c (process_function_and_variable_attributes): Check
27163         DECL_PRESERVE_P instead of looking up attribute "used".
27164         * ipa-pure-const.c (check_decl): Likewise.
27165         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
27166         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
27167         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
27168         instead of attribute "used".
27169         * config/sol2-c.c (solaris_pragma_init): Likewise.
27170         (solaris_pragma_fini): Likewise.
27171
27172 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27173
27174         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
27175         Use XCNEW instead of xcalloc.
27176         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
27177         XNEW instead of xmalloc.
27178         (get_fields): Use XNEWVEC instead of xmalloc.
27179
27180         PR debug/43084
27181         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
27182         populate vars array.
27183         (create_new_general_access): For debug stmts just reset value.
27184         (get_stmt_accesses): For accesses within debug stmts just record them
27185         using add_access_to_acc_sites instead of preventing the peeling or
27186         counting them as accesses.
27187
27188         PR middle-end/42233
27189         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
27190
27191 2010-02-19  Richard Guenther  <rguenther@suse.de>
27192
27193         PR tree-optimization/42916
27194         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
27195         instructions.
27196
27197 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
27198
27199         * configure.ac: Replace all uses of changequote in macro arguments
27200         with proper quoting.
27201
27202 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27203
27204         PR middle-end/42233
27205         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
27206
27207 2010-02-19  Richard Guenther  <rguenther@suse.de>
27208
27209         PR tree-optimization/42944
27210         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
27211         test for aliasing with errno.
27212
27213 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27214
27215         PR middle-end/42233
27216         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
27217         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
27218         * dojump.c: Include output.h.
27219         (inv): New inline function.
27220         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
27221         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
27222         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
27223         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
27224         argument, pass it down to other calls.
27225         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
27226         add REG_BR_PROB note to the conditional jump.
27227         * cfgexpand.c (add_reg_br_prob_note): Removed.
27228         (expand_gimple_cond): Don't call it, add the probability
27229         as last argument to jumpif_1/jumpifnot_1.
27230         * Makefile.in (dojump.o): Depend on output.h.
27231         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
27232         callers.
27233         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
27234         * stmt.c (do_jump_if_equal): Likewise.
27235         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
27236         * loop-unswitch.c (compare_and_jump_seq): Likewise.
27237         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
27238         Likewise.
27239         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
27240         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
27241         jumpifnot_1 callers.
27242         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
27243         callers.
27244         (store_expr): Adjust jumpifnot caller.
27245         (store_constructor): Adjust jumpif caller.
27246
27247         PR middle-end/42233
27248         * gimplify.c (gimple_boolify): For __builtin_expect call
27249         gimple_boolify also on its first argument.
27250
27251 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
27252
27253         * configure.ac (gnu-unique-object): Wrap regexps using [] in
27254         changequote block.
27255         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
27256         * configure: Regenerated.
27257
27258 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27259
27260         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
27261         lang_hooks.types_compatible_p instead of comptypes.
27262
27263 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27264
27265         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
27266         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
27267         if __prefer_thumb__ is defined.
27268
27269 2010-02-18  Martin Jambor  <mjambor@suse.cz>
27270
27271         PR tree-optimization/43066
27272         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
27273         array with zero-sized element type.
27274
27275 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
27276
27277         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
27278         rtx, allocate struct var_loc_node here and return it to the
27279         caller, and only if it is actually needed.
27280         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
27281         move it earlier and return immediately if it returns NULL.
27282
27283 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
27284
27285         * config/sparc/gas.h: New file.  Restore
27286         TARGET_ASM_NAMED_SECTION to its ELF default.
27287         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
27288         check !HAVE_GNU_AS.
27289         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27290         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
27291         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
27292         after sparc/sysv4.h.
27293
27294 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27295
27296         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
27297
27298 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
27299
27300         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
27301         patterns from predicated pattern.
27302
27303 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
27304
27305         PR target/43103
27306         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
27307         for insn mnemonic suffix.
27308
27309 2010-02-17  Richard Guenther  <rguenther@suse.de>
27310
27311         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
27312         to loop PHI nodes.
27313
27314 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
27315
27316         PR debug/42918
27317         * caller-save.c (save_call_clobbered_regs): If BB ends with
27318         a DEBUG_INSN, move any notes in between last real insn and the last
27319         DEBUG_INSN after the last DEBUG_INSN.
27320
27321 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
27322
27323         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
27324         Fix return type.  Fix argument type.  Explain meaning of return value.
27325
27326 2010-02-16  Richard Guenther  <rguenther@suse.de>
27327
27328         PR tree-optimization/41043
27329         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
27330         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
27331         statements ...
27332         (vrp_visit_phi_node): ... but only for loop PHI nodes.
27333
27334 2010-02-16  Ira Rosen  <irar@il.ibm.com>
27335
27336         PR tree-optimization/43074
27337         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
27338         * tree-vect-loop.c (vect_analyze_loop_operations): Add
27339         vectorizable cycles in hybrid SLP check.
27340         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
27341
27342 2010-02-16  Richard Guenther  <rguenther@suse.de>
27343
27344         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
27345         (true_dependence): If memrefs_conflict_p computes must-alias
27346         trust it.  Move TBAA check after offset-based disambiguation.
27347         (canon_true_dependence): Likewise.
27348
27349 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
27350
27351         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
27352         * doc/invoke.texi: Document it.
27353         * var-tracking.c: Include toplev.h and params.h.
27354         (vt_find_locations): Return bool indicating success.  Compute
27355         hash sizes unconditionally.  Check new parameter, report.
27356         (variable_tracking_main_1): Check vt_find_locations results and
27357         retry.  Renamed from...
27358         (variable_tracking_main): ... this.  New wrapper to preserve
27359         flag_var_tracking_assignments.
27360         * Makefile.in (var-tracking.o): Adjust dependencies.
27361
27362 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
27363             Jakub Jelinek  <jakub@redhat.com>
27364
27365         PR target/42854
27366         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
27367         if weak_import attribute is present.
27368         * config/darwin.c (machopic_select_section): Likewise.
27369
27370 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
27371
27372         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
27373         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
27374         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
27375         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
27376
27377         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
27378         types.
27379
27380         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27381         Fix argument types.
27382
27383         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
27384         Rewrite text to refer to the names.
27385
27386 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
27387
27388         * config/i386/i386-builtin-types.def
27389         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
27390         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
27391         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
27392         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
27393         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
27394         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
27395         IX86_BUILTIN_VPERMIL2PS256.
27396         (MULTI_ARG_4_DF2_DI_I): Defined.
27397         (MULTI_ARG_4_DF2_DI_I1): Defined.
27398         (MULTI_ARG_4_SF2_SI_I): Defined.
27399         (MULTI_ARG_4_SF2_SI_I1): Defined.
27400         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
27401         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
27402         __builtin_ia32_vpermil2ps256.
27403         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27404         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27405         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
27406         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27407         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27408         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
27409         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
27410         CODE_FOR_xop_vpermil2v8sf3.
27411         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
27412         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
27413         * config/i386/xopintrin.h (_mm_permute2_pd): New.
27414         (_mm256_permute2_pd): New.
27415         (_mm_permute2_ps): New.
27416         (_mm256_permute2_ps): New.
27417
27418 2010-02-15  Nick Clifton  <nickc@redhat.com>
27419
27420         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
27421         boolean parameters.  Use emit_jump_insn when emitting a pop
27422         instruction containing a return insn.
27423         (push): Use 'true' rather than '1' as second parameter to F.
27424         (h8300_expand_prologue): Likewise.
27425         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
27426         (h8300_expand_epilogue): Likewise.
27427
27428 2010-02-15  Richard Guenther  <rguenther@suse.de>
27429
27430         PR middle-end/43068
27431         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
27432         if that is zero.
27433
27434 2010-02-15  Nick Clifton  <nickc@redhat.com>
27435
27436         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
27437         delta.
27438
27439 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
27440
27441         * intl.c (fake_ngettext): New function.
27442         * intl.h (fake_ngettext): Declare.
27443         (ngettext): Define macro.
27444         * collect2.c (notice_translated): New function.
27445         (main): Use notice_translated and ngettext.
27446         * collect2.h (notice_translated): Declare.
27447
27448 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
27449
27450         * reorg.c (delete_computation): Comment fixes.
27451         * caller-save.c (setup_save_areas): Idem.
27452         * sel-sched-dump.c (dump_lv_set): Idem.
27453         * rtl.def: Idem.
27454
27455 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27456
27457         * config/s390/s390.c (s390_sched_init): New function.
27458         (TARGET_SCHED_INIT): Target hook defined.
27459
27460 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
27461             Jack Howarth  <howarth@bromo.med.uc.edu>
27462             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27463
27464         PR target/42982
27465         Partial revert of unintended change in fix for PR41605.
27466         * config/darwin.h: Fix typo.
27467         * config/darwin9.h: Same.
27468
27469 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27470
27471         * c-pch.c (pch_init): Clear v.
27472
27473 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27474
27475         PR middle-end/42930
27476         * graphite-scop-detection.c (graphite_can_represent_scev): Call
27477         graphite_can_represent_init for MULT_EXPR.
27478
27479 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27480
27481         PR middle-end/42914
27482         PR middle-end/42530
27483         * graphite-sese-to-poly.c (remove_phi): New.
27484         (translate_scalar_reduction_to_array): Call remove_phi.
27485
27486 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27487
27488         PR middle-end/42771
27489         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27490         * graphite-clast-to-gimple.h (gloog): Update declaration.
27491         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27492         * graphite-poly.h (struct poly_bb): Add missing comments.
27493         (struct scop): Add poly_scop_p field.
27494         (POLY_SCOP_P): New.
27495         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27496         * graphite.c (graphite_transform_loops): Build the polyhedral
27497         representation for each scop before code generation.
27498         * sese.c (rename_variables_in_operand): Removed.
27499         (rename_variables_in_expr): Return the renamed expression.
27500         (rename_sese_parameters): New.
27501         * sese.h (rename_sese_parameters): Declared.
27502
27503 2010-02-11  Richard Guenther  <rguenther@suse.de>
27504
27505         PR tree-optimization/42998
27506         * tree-ssa-pre.c (create_expression_by_pieces): Treat
27507         POINTER_PLUS_EXPR properly.
27508
27509 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27510             Changpeng Fang  <changpeng.fang@amd.com>
27511
27512         PR middle-end/40886
27513         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27514         the cost of an IV candidate when the IV is used in a test against zero.
27515
27516         * gcc.dg/tree-ssa/ivopts-3.c: New.
27517
27518 2010-02-11  Richard Guenther  <rguenther@suse.de>
27519
27520         PR lto/41664
27521         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27522         pointer-vs-decl case by swapping refs.  Handle some cases
27523         of pointer-vs-decl disambiguations more conservatively.
27524         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27525         to false after expanding.
27526
27527 2010-02-11  Richard Guenther  <rguenther@suse.de>
27528
27529         PR driver/43021
27530         * gcc.c (process_command): Handle LTO file@offset case more
27531         appropriately.
27532
27533 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27534
27535         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27536         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
27537         of DEBUG_INSNs.
27538         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27539
27540         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27541         if MEM's mode size isn't DWARF2_ADDR_SIZE.
27542         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27543         Optimize eq/ne comparisons when both arguments are known to be
27544         zero-extended.
27545         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27546         Don't mask operands unnecessarily if they are known to be already
27547         zero-extended.
27548
27549 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
27550
27551         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27552         instead of loop.
27553
27554 2010-02-10  Richard Guenther  <rguenther@suse.de>
27555
27556         PR tree-optimization/43017
27557         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27558         for wrapping signed arithmetic.
27559
27560 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27561
27562         PR debug/43010
27563         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27564         if no debug info should be emitted for it.
27565
27566 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27567
27568         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27569         note when flag_exceptions is set.
27570
27571 2010-02-10  Duncan Sands  <baldrick@free.fr>
27572
27573         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27574
27575 2010-02-10  Richard Guenther  <rguenther@suse.de>
27576
27577         PR c/43007
27578         * tree.c (get_unwidened): Handle constants.
27579         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27580
27581 2010-02-10  Martin Jambor  <mjambor@suse.cz>
27582
27583         PR lto/42985
27584         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27585         check for variable argument counts independently.
27586
27587 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27588
27589         PR target/42841
27590         * config/sh/sh.c (find_barrier): Increase length for non delayed
27591         conditional branches.
27592
27593 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27594
27595         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27596
27597 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27598
27599         * builtins.c (set_builtin_user_assembler_name): Also handle
27600         ffs if int is smaller than word.
27601
27602 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
27603
27604         PR middle-end/42973
27605         * ira-conflicts.c (get_dup): Remove.
27606         (process_reg_shuffles): Add new parameter.  Use it as an
27607         additional guard for copy generation.
27608         (add_insn_allocno_copies): Rewrite.
27609
27610 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
27611
27612         * common.opt (fsched2-use-traces): Preserved for backward
27613         compatibility.
27614         * doc/invoke.texi: Remove the documentation about option
27615         -fsched2-use-traces.
27616         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27617         flag_sched2_use_traces.
27618         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27619         the backward compatibility flag section.
27620
27621 2010-02-09  Richard Guenther  <rguenther@suse.de>
27622
27623         PR tree-optimization/43008
27624         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27625         make HEAP variables initialized from global memory if they
27626         are not known builtin functions.
27627         (find_func_aliases): Adjust.
27628
27629 2010-02-09  Richard Guenther  <rguenther@suse.de>
27630
27631         PR tree-optimization/43000
27632         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27633         arithmetic manually.
27634
27635 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
27636
27637         PR tree-optimization/42931
27638         * tree-loop-linear.c (try_interchange_loops): Don't call
27639         double_int_mul if estimated_loop_iterations failed.
27640
27641 2010-02-08  Martin Jambor  <mjambor@suse.cz>
27642
27643         PR middle-end/42898
27644         * tree-sra.c (build_accesses_from_assign): Do not mark in
27645         should_scalarize_away_bitmap if stmt has volatile ops.
27646         (sra_modify_assign): Do not process assigns piecemeal if if stmt
27647         has volatile ops.
27648
27649 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
27650
27651         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27652
27653 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
27654
27655         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27656         before the pattern.
27657
27658 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
27659
27660         PR middle-end/42946
27661         * df-core.c (df_finish_pass): Change type of saved_flags to int.
27662
27663 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27664
27665         PR middle-end/42988
27666         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27667         to unknown_dependence.
27668         (graphite_legal_transform_dr): Handle the unknown_dependence.
27669         (graphite_carried_dependence_level_k): Same.
27670
27671 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27672
27673         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27674
27675 2010-02-07  Richard Guenther  <rguenther@suse.de>
27676
27677         PR middle-end/42991
27678         * expr.c (get_inner_reference): Always initialize *pbitsize.
27679
27680 2010-02-07  Richard Guenther  <rguenther@suse.de>
27681
27682         PR middle-end/42956
27683         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27684         new ARRAY_REFs on variable size element or minimal index arrays.
27685         Complete.
27686         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27687         gimple_fold_indirect_ref.
27688
27689 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
27690
27691         PR target/42957
27692         * arm.c (arm_override_options): Just return if the user has specified
27693         an invalid fpu name.
27694
27695 2010-02-03  Jason Merrill  <jason@redhat.com>
27696
27697         PR c++/42870
27698         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27699         i386_pe_maybe_record_exported_symbol.
27700
27701 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
27702
27703         PR target/42924
27704         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27705         (pa_delegitimize_address): New function.
27706
27707 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
27708
27709         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27710         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27711
27712 2010-02-05  Richard Guenther  <rguenther@suse.de>
27713
27714         PR lto/42762
27715         * lto-streamer-in.c (get_resolution): Deal with references
27716         to undefined functions.
27717
27718 2010-02-05  Richard Guenther  <rguenther@suse.de>
27719
27720         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27721         (fold_const_aggregate_ref): Likewise.
27722         (ccp_fold_stmt): Substitute loads.
27723         (maybe_fold_reference): Verify types before substituting.
27724         Unshare properly.
27725         (fold_gimple_assign): Unshare properly.
27726         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27727
27728 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
27729
27730         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27731         for rs6000_gen_cell_microcode.
27732
27733 2010-02-04  Richard Guenther  <rguenther@suse.de>
27734
27735         PR rtl-optimization/42952
27736         * dse.c (const_or_frame_p): Remove MEM handling.
27737
27738 2010-02-04  Nick Clifton  <nickc@redhat.com>
27739
27740         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27741         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27742         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27743         (mn10300_asm_output_mi_thunk): New function.
27744         (mn10300_can_output_mu_thunk): New function.
27745         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27746         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
27747         (FUNCTION_ARG): Delete incorrect comment.
27748
27749 2010-02-03  Jason Merrill  <jason@redhat.com>
27750
27751         PR c++/40138
27752         * fold-const.c (operand_equal_p): Handle erroneous types.
27753
27754 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27755
27756         * config/h8300/h8300.md (can_delay): Fix attibute condition.
27757
27758 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
27759
27760         PR rtl-optimization/42941
27761         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27762         of xmalloc.
27763
27764 2010-02-03  Jason Merrill  <jason@redhat.com>
27765
27766         PR c++/35652
27767         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27768
27769 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
27770
27771         PR debug/42896
27772         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
27773         (cselib_reset_table): Renamed from...
27774         (cselib_reset_table_with_next_value): ... this.
27775         (cselib_get_next_uid): Renamed from...
27776         (cselib_get_next_unknown_value): ... this.
27777         * cselib.c (next_uid): Renamed from...
27778         (next_unknown_value): ... this.
27779         (cselib_clear_table): Adjust.
27780         (cselib_reset_table): Adjust.  Renamed from...
27781         (cselib_reset_table_with_next_value): ... this.
27782         (cselib_get_next_uid): Adjust.  Renamed from...
27783         (cselib_get_next_unknown_value): ... this.
27784         (get_value_hash): Use hash.
27785         (cselib_hash_rtx): Likewise.
27786         (new_cselib_val): Adjust.  Set and dump uid.
27787         (cselib_lookup_mem): Pass next_uid as hash.
27788         (cselib_subst_to_values): Likewise.
27789         (cselib_log_lookup): Dump uid.
27790         (cselib_lookup): Pass next_uid as hash.  Adjust.
27791         (cselib_process_insn): Adjust.
27792         (cselib_init): Initialize next_uid.
27793         (cselib_finish): Adjust.
27794         (dump_cselib_table): Likewise.
27795         * dse.c (canon_address): Dump value uid.
27796         * print-rtl.c (print_rtx): Print value uid.
27797         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27798         (dvuid): New type.
27799         (dv_uid): New function, sort of renamed from...
27800         (dv_htab_hash): ... this, reimplemented in terms of it and...
27801         (dv_uid2hash): ... this.  New.
27802         (variable_htab_eq): Drop excess assertions.
27803         (tie_break_pointers): Removed.
27804         (canon_value_cmp): Compare uids.
27805         (variable_post_merge_New_vals): Print uids.
27806         (vt_add_function_parameters): Adjust.
27807         (vt_initialize): Reset table.  Adjust.
27808
27809 2010-02-03  Richard Guenther  <rguenther@suse.de>
27810
27811         PR tree-optimization/42944
27812         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27813         (call_may_clobber_ref_p_1): Likewise.  Properly handle
27814         malloc and calloc clobbering errno.
27815
27816 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
27817
27818         * doc/invoke.texi: Fix name of sched1 dump.
27819
27820         * opts.c (decode_options): Set flag_tree_switch_conversion
27821         only conditionally on optimize >= 2.
27822
27823         * gcse.c: Assorted comment fixes in pass description.
27824
27825 2010-02-03  Anthony Green  <green@moxielogic.com>
27826
27827         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27828         nop padding in order to maintain alignment of storage location of
27829         target function address.
27830         (moxie_trampoline_init): Store target function address at newly
27831         aligned location.
27832         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27833         to 32.
27834         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27835
27836 2010-02-03  Richard Guenther  <rguenther@suse.de>
27837
27838         PR middle-end/42927
27839         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27840
27841 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27842
27843         * config.gcc: Reenable check for obsolete targets.
27844         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27845         mips-sgi-irix6.[0-4]*.
27846
27847 2010-02-02  Nick Clifton  <nickc@redhat.com>
27848
27849         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27850         constant size of 4 as being the same as 0.
27851         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27852         can take values in the range 0..4.
27853
27854 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27855
27856         PR java/41991
27857         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27858         as _darwin10_Unwind_FindEnclosingFunction().
27859         * libgcc-libsystem.ver: New.
27860
27861 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27862
27863         PR target/41399
27864         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27865         implicitly set registers.
27866
27867 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27868
27869         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27870         (arm_override_options): Allow automatic selection of the thread
27871         pointer register if thumb2.
27872         (legitimize_pic_address): Improve code sequences for Thumb2.
27873         (arm_call_tls_get_addr): Likewise.
27874         (legitimize_tls_address): Likewise.
27875         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27876         (pic_load_addr_32bit): ... this.  New named pattern.
27877         * thumb2.md (pic_load_addr_thumb2): Delete.
27878         (pic_load_dot_plus_four): Delete.
27879         (tls_load_dot_plus_four): New named pattern.
27880
27881 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27882
27883         PR libgomp/29986
27884         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27885         Document fix for TLS bug.
27886
27887 2010-01-31  Richard Guenther  <rguenther@suse.de>
27888
27889         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27890         conservatively correct.
27891
27892 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27893
27894         PR target/42850
27895         Revert:
27896         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27897
27898         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27899
27900 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27901
27902         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27903
27904 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27905
27906         * config.gcc: Adjust order of makefile fragments for mingw targets.
27907
27908 2010-01-31  Richard Guenther  <rguenther@suse.de>
27909
27910         PR middle-end/42898
27911         * gimplify.c (gimplify_init_constructor): For volatile LHS
27912         initialize a temporary.
27913
27914 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27915
27916         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27917         --with-headers
27918         * configure: Regenerate.
27919
27920 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27921
27922         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27923         the same alias set and their sizes different constantness.
27924         (aliasing_component_refs_p): Revert 2009-10-24 change.
27925
27926 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27927
27928         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27929         unused.
27930
27931 2010-01-29  Richard Guenther  <rguenther@suse.de>
27932
27933         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27934         Assert we successfully updated the call.
27935
27936 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27937
27938         PR rtl-optimization/42889
27939         * df.h (df_set_bb_dirty_nonlr): New prototype.
27940         * df-core.c (df_set_bb_dirty_nonlr): New function.
27941         * df-scan.c (df_insn_rescan): Call it instead of
27942         df_set_bb_dirty for DEBUG_INSNs.
27943
27944 2010-01-29  Richard Guenther  <rguenther@suse.de>
27945
27946         PR middle-end/37448
27947         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27948         quadratic behavior in most cases.
27949
27950 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27951
27952         PR target/42891
27953         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27954         in the call to gen_x86_movsicc_0_m1.
27955
27956 2010-01-28  Richard Guenther  <rguenther@suse.de>
27957
27958         PR tree-optimization/42871
27959         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27960
27961 2010-01-28  Richard Guenther  <rguenther@suse.de>
27962
27963         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27964         into call arguments.
27965
27966 2010-01-28  Richard Guenther  <rguenther@suse.de>
27967
27968         PR middle-end/42883
27969         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27970         the forwarder if the destination is an EH landing pad.
27971
27972 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27973
27974         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27975         block list passed to gimple_duplicate_sese_tail.
27976         (parallelize_loops): Avoid parallelization when the function
27977         has_nonlocal_label.
27978         Avoid parallelization when the preheader is IRREDUCIBLE.
27979         Try to optimize when estimated_loop_iterations_int is unresolved.
27980         Add the loop's location to the dump file.
27981         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27982         (gimple_duplicate_sese_tail): Remove the check for the latch.
27983         Redirect nexits to the exit block.
27984         Remove handling of the incoming edges to the latch.
27985         Redirect the backedge from the copied latch to the exit bb.
27986
27987 2010-01-28  Michael Matz  <matz@suse.de>
27988
27989         PR target/42881
27990         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27991         Wrap force_reg into a sequence, emit it before user.
27992
27993 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27994
27995         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27996         (arm_rev): New.
27997         (arm_legacy_rev): Likewise.
27998         (thumb_legacy_rev): Likewise.
27999
28000 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28001
28002         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
28003         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
28004         on MEM's address failed, try avoid_constant_pool_reference and
28005         recurse if it returned something different.
28006         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
28007         address, try avoid_constant_pool_reference and recurse if it
28008         returned something different.
28009         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
28010         address and avoid_constant_pool_reference returned something
28011         different, don't set have_address.
28012
28013 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
28014
28015         PR debug/42861
28016         * var-tracking.c (val_store): Add modified argument, obey it.
28017         Adjust callers.
28018         (count_uses): Move down logging of main.
28019         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
28020         don't need resolution.
28021         (emit_notes_in_bb): Likewise.
28022
28023 2010-01-27  Richard Guenther  <rguenther@suse.de>
28024
28025         PR middle-end/42878
28026         * tree-inline.c (remap_decl): Delay remapping of SSA name
28027         default definitions until we need them.
28028
28029 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28030
28031         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
28032         (rs6000_delegitimize_address): New function.
28033
28034         * config/s390/s390.c (s390_delegitimize_address): Call
28035         delegitimize_mem_from_attrs.
28036
28037         PR middle-end/42874
28038         * tree-inline.c (cannot_copy_type_1): Removed.
28039         (copy_forbidden): Don't forbid copying of functions containing
28040         records/unions with variable length fields.
28041
28042 2010-01-27  Christian Bruel  <christian.bruel@st.com>
28043
28044         Revert:
28045         PR target/42841
28046         * config/sh/sh.c (find_barrier): Increase length for non delayed
28047         conditional branches.
28048
28049 2010-01-27  Matthias Klose  <doko@ubuntu.com>
28050
28051         * configure.ac (gnu-unique-object): Fix ldd version check.
28052         * configure: Regenerate.
28053
28054 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28055
28056         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
28057         HAVE_GNU_AS value.
28058         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
28059         Test for HAVE_GNU_AS value.
28060
28061 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28062
28063         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
28064         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
28065         INT64_TYPE): Define.
28066         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
28067         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28068         INT_LEAST64_TYPE): Define.
28069         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
28070         UINT_LEAST64_TYPE): Define.
28071         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
28072         INT_FAST64_TYPE): Define.
28073         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28074         UINT_FAST64_TYPE): Define.
28075         (INTMAX_TYPE, UINTMAX_TYPE): Define.
28076         (INTPTR_TYPE, UINTPTR_TYPE): Define.
28077         (SIG_ATOMIC_TYPE): Define.
28078
28079 2010-01-26  Richard Guenther  <rguenther@suse.de>
28080
28081         * df-scan.c (df_scan_set_bb_info): Remove assert.
28082         (df_insn_rescan_debug_internal): Merge asserts.
28083         (df_install_ref): Likewise.
28084         (df_mark_reg): Use bitmap_set_range.
28085         (df_hard_reg_used_p): Remove assert.
28086         (df_hard_reg_used_count): Likewise.
28087
28088 2010-01-26  Richard Guenther  <rguenther@suse.de>
28089
28090         PR rtl-optimization/42685
28091         * web.c (web_main): Ignore DEBUG_INSNs.
28092
28093 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
28094
28095         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
28096
28097         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
28098         Fix types of fndecl and arglist parameters.
28099
28100 2010-01-26  Richard Guenther  <rguenther@suse.de>
28101
28102         PR middle-end/42806
28103         * tree-eh.c (unsplit_eh): Skip debug insns.
28104
28105 2010-01-26  Richard Guenther  <rguenther@suse.de>
28106
28107         PR tree-optimization/42250
28108         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
28109
28110 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
28111
28112         PR fortran/42866
28113         * omp-low.c (expand_omp_sections): Only use single_pred if
28114         l2_bb is single_pred_p.
28115
28116 2010-01-25  Christian Bruel  <christian.bruel@st.com>
28117
28118         PR target/42841
28119         * config/sh/sh.c (find_barrier): Increase length for non delayed
28120         conditional branches.
28121         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
28122
28123 2010-01-24  David S. Miller  <davem@davemloft.net>
28124
28125         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
28126         define if not using GAS.
28127         * config/sparc/sparc.c (sparc_elf_asm_named_section):
28128         Likewise.  Delete SECTION_MERGE code, which is only applicable
28129         when using GAS.
28130
28131 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
28132
28133         PR c++/42748
28134         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
28135         mangling of va_list in system headers.
28136
28137 2010-01-23  Toon Moene  <toon@moene.org>
28138
28139         * tree-predcom.c (combine_chains): Return NULL, not false.
28140
28141 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
28142
28143         * tree-loop-distribution.c (distribute_loop): Fix declaration and
28144         initialization of variable res to agree with return type.
28145
28146 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
28147
28148         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
28149         * tree-sra.c: Add include of expr.h.
28150
28151 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
28152
28153         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
28154         insert the debug stmt on the single non-EH edge from the stmt.
28155
28156 2010-01-22  Richard Henderson  <rth@redhat.com>
28157
28158         PR tree-opt/42833
28159         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
28160         the RHS until after generate_subtree_copies has insertted its
28161         code before the current statement.
28162
28163 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
28164
28165         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
28166
28167         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
28168
28169 2010-01-21  Martin Jambor  <mjambor@suse.cz>
28170
28171         PR tree-optimization/42585
28172         * tree-sra.c (struct access): New field grp_total_scalarization.
28173         (dump_access): Dump the new field.
28174         (should_scalarize_away_bitmap): New variable.
28175         (cannot_scalarize_away_bitmap): Likewise.
28176         (sra_initialize): Allocate new bitmaps.
28177         (sra_deinitialize): Free new bitmaps.
28178         (create_access_1): New function.
28179         (create_access): Parts moved to create_access_1.
28180         (type_consists_of_records_p): New function.
28181         (completely_scalarize_record): Likewise.
28182         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
28183         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
28184         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
28185         access.
28186         (analyze_all_variable_accesses): Completely scalarize small eligible
28187         records.
28188
28189 2010-01-21  Martin Jambor  <mjambor@suse.cz>
28190
28191         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
28192
28193 2010-01-21  Andrew Haley  <aph@redhat.com>
28194
28195         * gcc.c (process_command): Move lang_specific_driver before
28196         setting cc_libexec_prefix.
28197
28198 2010-01-21  Richard Guenther  <rguenther@suse.de>
28199
28200         PR middle-end/19988
28201         * fold-const.c (negate_expr_p): Pretend only negative
28202         real constants are easily negatable.
28203
28204 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
28205             Jason Merrill  <jason@redhat.com>
28206
28207         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
28208         (TYPE_TRANSPARENT_AGGR): this, for union and record.
28209         * calls.c (initialize argument_information): Handle it.
28210         * c-common.c (handle_transparent_union_attribute): Use new name.
28211         * c-decl.c (finish_struct): Ditto.
28212         * c-typeck.c (type_lists_compatible_p): Ditto.
28213         (convert_for_assignment): Use new name and also handle record.
28214         * function.c (aggregate_value_p): Handle it.
28215         (pass_by_reference): Ditto.
28216         (assign_parm_data_types): Ditto.
28217         * print-tree.c (print_node): Ditto.
28218         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
28219         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
28220         * tree.c (first_field): New fn.
28221
28222 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
28223
28224         PR target/42818
28225         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
28226         even when linking statically, for now.
28227
28228 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
28229
28230         PR debug/42715
28231         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
28232         without a cselib val.
28233         (count_uses): Accept MO_VAL_SET with no val on stores.
28234         (add_stores): Likewise.
28235
28236 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28237
28238         * var-tracking.c (check_value_val): Add a compile time assertion.
28239         (dv_is_decl_p): Simplify.
28240         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
28241         gcc_assert if ENABLE_CHECKING.
28242
28243 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
28244
28245         PR debug/42782
28246         * var-tracking.c: Include tree-flow.h.
28247         (mem_dies_at_call): New.
28248         (dataflow_set_preserve_mem_locs): Use it.
28249         (dataflow_set_remove_mem_locs): Likewise.
28250         (dump_var): Renamed from dump_variable.  Adjust all callers.
28251         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
28252         * Makefile.in (var-tracking.o): Adjust deps.
28253
28254 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
28255
28256         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
28257
28258 2010-01-20  Richard Guenther  <rguenther@suse.de>
28259
28260         PR tree-optimization/42717
28261         * tree-ssa-dce.c (get_live_post_dom): Remove.
28262         (forward_edge_to_pdom): Take an arbitrary edge to copy
28263         degenerate PHI args from.
28264         (remove_dead_stmt): Use the first post-dominator even if it
28265         does not contain live statements as redirection destination.
28266
28267 2010-01-20  Richard Guenther  <rguenther@suse.de>
28268
28269         * tree-inline.c (estimate_num_insns): Handle EH builtins.
28270
28271 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28272
28273         * sel-sched.c (create_speculation_check): Remove set but not used
28274         variable twin.
28275         (try_transformation_cache): Remove set but not used variable ds.
28276         (calculate_privileged_insns): Remove set but not used variables
28277         cur_insn and min_spec_insn.
28278         (find_best_expr): Remove set but not used variable avail_n.
28279         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
28280         variable e.
28281         * cgraphunit.c (assemble_thunk): Remove set but not used variable
28282         false_label.
28283         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
28284         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
28285         new_scop_exit_edge.
28286
28287 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
28288
28289         PR bootstrap/42786
28290         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
28291         cpu types.  Add support for *-sse3 cpu types.
28292         (x86_64-*-*): Ditto.
28293
28294 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28295
28296         PR middle-end/42803
28297         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
28298         argument, call initializer_constant_valid_p_1 instead of
28299         initializer_constant_valid_p, pass CACHE to it, return NULL
28300         immediately if first call returns NULL.
28301         (initializer_constant_valid_p_1): New function.
28302         (initializer_constant_valid_p): Use it.
28303
28304 2010-01-20  Thomas Quinot  <quinot@adacore.com>
28305
28306         * tree.def (PLACEHOLDER_EXPR): Fix comment.
28307
28308 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28309
28310         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
28311         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
28312         (loc_list_from_tree): Don't handle unsigned division.  Handle
28313         signed modulo using DW_OP_{over,over,div,mul,minus}.
28314         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
28315         modulo instead of signed.
28316
28317 2010-01-20  DJ Delorie  <dj@redhat.com>
28318
28319         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
28320         (Fpa): Pass it
28321         (h8300_emit_stack_adjustment): Propogate it.
28322         (push): Pass it.
28323         (h8300_expand_prologue): Likewise.
28324         (h8300_expand_epilogue): Likewise.
28325
28326 2010-01-19  Michael Matz  <matz@suse.de>
28327
28328         PR tree-optimization/41783
28329         * tree-data-ref.c (toplevel): Include flags.h.
28330         (dump_data_dependence_relation):  Also dump the inputs if the
28331         result will be unknown.
28332         (split_constant_offset_1): Look through some conversions.
28333         * tree-predcom.c (determine_roots_comp): Restart a new chain if
28334         the offset from last element is too large.
28335         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
28336         (reassociate_to_the_same_stmt): Handle vector registers.
28337         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
28338         (e.g. conversions).
28339         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
28340         wide_prolog_niters argument, emit widening instructions.
28341         (vect_do_peeling_for_alignment): Adjust caller, use widened
28342         variant of the iteration cound.
28343         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
28344
28345 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28346
28347         PR target/38697
28348         * config/arm/neon-testgen.m (emit_automatics): New parameter
28349         features. Adjust for Fixed_return_reg feature.
28350         (test_intrinsic): Call emit_automatics with new feature.
28351         * config/arm/neon.ml: Update copyright years.
28352         (features): New Fixed_return_reg feature.
28353         (ops): Update feature for Vget_low.
28354
28355 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
28356
28357         PR tree-optimization/42719
28358         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
28359         stmt uses.
28360
28361         PR debug/42728
28362         * fwprop.c (all_uses_available_at): Return false if def_set dest
28363         is a REG that is used in def_insn.
28364
28365 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
28366
28367         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
28368
28369         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
28370         Add argument names.
28371
28372         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
28373
28374         * target.h (struct gcc_target) <secondary_reload>: Change type
28375         of last argument to secondary_reload_info *.
28376
28377 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
28378
28379         PR target/42774
28380         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
28381         memory references with unaligned offsets.  Remove CQImode handling.
28382         (unaligned_memory_operand): Return 1 for memory references with
28383         unaligned offsets.  Remove CQImode handling.
28384
28385 2010-01-18  Richard Guenther  <rguenther@suse.de>
28386
28387         PR middle-end/39954
28388         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
28389         builtin calls.
28390
28391 2010-01-18  Richard Guenther  <rguenther@suse.de>
28392
28393         PR tree-optimization/42781
28394         * tree-ssa-structalias.c (find_what_var_points_to): Skip
28395         restrict processing only if the original variable was artificial.
28396
28397 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
28398
28399         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
28400         find number of popped argument bytes.
28401
28402         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
28403         Fix the text that describes the return value for invalid insns.
28404
28405         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
28406
28407         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
28408         Clarify what 'cost of the -dependence' is.  Fix quoting.
28409
28410         * toplev.c (default_get_pch_validity): Rename argument to "sz".
28411         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
28412
28413 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
28414
28415         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28416         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
28417
28418 2010-01-17  Richard Guenther  <rguenther@suse.de>
28419
28420         PR middle-end/42248
28421         * function.c (split_complex_args): Take a VEC to modify.
28422         (assign_parms_augmented_arg_list): Build a VEC instead of
28423         a chain of PARM_DECLs.
28424         (assign_parms_unsplit_complex): Take a VEC of arguments.
28425         Do not fixup unmodified parms.
28426         (assign_parms): Deal with the VEC.
28427         (gimplify_parameters): Likewise.
28428
28429 2010-01-17  Richard Guenther  <rguenther@suse.de>
28430
28431         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
28432         node existence check.
28433         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
28434         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
28435         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
28436         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
28437         (gimple_execute_on_growing_pred): Likewise.
28438
28439 2010-01-17  Richard Guenther  <rguenther@suse.de>
28440
28441         PR tree-optimization/42773
28442         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28443         (compute_antic_aux): Likewise.
28444         (compute_partial_antic_aux): Likewise.
28445
28446 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
28447
28448         PR debug/42767
28449         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28450         and US_TRUNCATE.
28451
28452 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
28453
28454         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28455         appearance.
28456
28457         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28458         Fix markup for strict argument.
28459
28460         (TARGET_SCHED_REORDER2): Fix argument types.
28461
28462         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28463         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28464
28465         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28466         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28467
28468         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28469         Add argument name.
28470
28471         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28472         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28473         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28474         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28475         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28476
28477         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28478
28479         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28480
28481         (TARGET_ASM_RELOC_RW_MASK): Add return type.
28482         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28483
28484         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28485
28486         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28487         Use prototype.
28488
28489         (TARGET_ASM_NAMED_SECTION): Fix argument list.
28490
28491         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28492         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28493
28494         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28495
28496         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28497
28498         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28499         referring to it.  Fix language.
28500
28501         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28502
28503         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28504
28505         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28506
28507         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28508
28509         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28510         '@var{stream}.  Remove stray 'and'.
28511
28512         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28513
28514         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28515
28516         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28517
28518         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28519         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28520
28521         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28522         Fix description of return value.
28523         Rename argument "sz" to "len."
28524
28525         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28526         Clarify meaning of 'true' return value.
28527
28528         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28529
28530         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28531         rep_mode versus mode_rep.
28532
28533         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28534
28535         (TARGET_BUILTIN_DECL): Fix name.
28536
28537         (TARGET_COMMUTATIVE_P): Fix type of first argument.
28538
28539         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28540
28541         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28542
28543         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28544
28545         (TARGET_RELAXED_ORDERING): Use @deftypevr.
28546
28547         (TARGET_GET_DRAP_RTX): Note that this is a hook.
28548         Clarify language.
28549
28550         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28551         Rename argument tm_fn to md_fn.
28552
28553         (TARGET_OPTION_PRINT): Fix argument list.
28554
28555 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
28556
28557         PR target/42664
28558         * config/i386/i386.c (ix86_fixup_binary_operands):
28559         Revert FMA4 fixup of operands.
28560
28561 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28562
28563         PR gcc/42525
28564         * Makefile.in (write_entries_to_file, install-plugin):
28565         Use \012 instead of \n with tr.
28566
28567 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
28568
28569         * configure.ac (HAVE_AS_REF): New C macro.
28570         * configure: Regenerate.
28571         * config.in: Likewise.
28572         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28573         if HAVE_AS_REF.
28574         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28575         if HAVE_AS_REF.
28576
28577 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
28578
28579         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28580
28581         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28582
28583         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28584
28585         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28586
28587         (TARGET_IN_SMALL_DATA_P): Fix argument type.
28588
28589         (TARGET_BINDS_LOCAL_P): Fix argument type.
28590
28591         (TARGET_ASM_FILE_END): Use prototype.
28592
28593         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28594
28595         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28596
28597         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28598
28599         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28600
28601         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28602         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28603
28604         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28605         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28606
28607         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28608         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28609         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28610         (TARGET_ADDR_SPACE_CONVERT): Likewise.
28611
28612         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28613
28614         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28615
28616         (TARGET_INIT_BUILTINS): Use prototype.
28617
28618         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28619         Put 'const char *' in braces.  Fix parameter types.
28620         (TARGET_INVALID_CONVERSION): Fix parameter types.
28621         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28622         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28623
28624         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28625         Fix argument type.
28626
28627         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28628
28629         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28630
28631 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
28632
28633         * doc/tm.texi (TARGET_HELP): Fix return type.
28634
28635         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28636         in braces.  Fix argument types.
28637
28638         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28639
28640         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28641
28642         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28643
28644         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28645         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28646
28647         (TARGET_MANGLE_TYPE): Fix argument types.
28648
28649         (TARGET_IRA_COVER_CLASSES): Use prototype.
28650
28651         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
28652
28653         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28654
28655         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28656
28657         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28658
28659         (TARGET_CALLEE_COPIES): Fix argument types.
28660
28661         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28662
28663         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28664
28665         (TARGET_FUNCTION_VALUE): Fix argument types.
28666
28667         (TARGET_RETURN_IN_MSB): Fix argument type.
28668
28669         (TARGET_RETURN_IN_MEMORY): Fix argument types.
28670
28671         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28672
28673         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28674
28675         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28676         agree with return type.
28677
28678         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28679
28680 2010-01-15  Jing Yu  <jingyu@google.com>
28681
28682         PR rtl-optimization/42691
28683         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28684         a pseudo to a constant and are merged, and adjust comments.
28685
28686 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28687
28688         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28689
28690 2010-01-15  Richard Guenther  <rguenther@suse.de>
28691
28692         PR middle-end/42739
28693         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28694         labels of computed or non-local gotos to the destination.
28695         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28696         landing pad label is the first label.
28697
28698 2010-01-15  Richard Guenther  <rguenther@suse.de>
28699
28700         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28701
28702 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28703
28704         PR target/42747
28705         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28706         to allow generation of the xssqrtdp instruction on power7.
28707         (sqrtdf2_fpr): Ditto.
28708
28709 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28710
28711         PR middle-end/42674
28712         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28713         functions with noreturn attribute.
28714
28715         PR c++/42608
28716         * varasm.c (declare_weak): Add weak attribute to decl if it
28717         doesn't have one already.
28718         (assemble_external): Only add decls to weak_decls if they also
28719         have weak attribute.
28720
28721 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
28722
28723         * var-tracking.c (var_reg_delete): Don't delete the association
28724         between REGs and values or one-part variables if the register
28725         isn't clobbered.
28726
28727 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28728
28729         PR debug/42657
28730         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28731         because its first operand is a non-localized variable.
28732
28733 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28734
28735         PR tree-optimization/42706
28736         * tree-sra.c (encountered_recursive_call): New variable.
28737         (encountered_unchangable_recursive_call): Likewise.
28738         (sra_initialize): Initialize both new variables.
28739         (callsite_has_enough_arguments_p): New function.
28740         (scan_function): Call decl and flags check only for IPA-SRA, check
28741         whether there is a recursive call and whether it has enough arguments.
28742         (all_callers_have_enough_arguments_p): New function.
28743         (convert_callers): Look for recursive calls only when
28744         encountered_recursive_call is set.
28745         (ipa_early_sra): Bail out either if
28746         !all_callers_have_enough_arguments_p or
28747         encountered_unchangable_recursive_call.
28748
28749 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28750
28751         * sel-sched.c: Add 2010 to copyright years.
28752         * sel-sched-ir.c: Likewise.
28753         * sel-sched-ir.h: Likewise.
28754
28755 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28756
28757         PR tree-optimization/42714
28758         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28759         constructors specially.
28760
28761 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28762
28763         * config/i386/drivers-i386.c (detect_caches_intel):
28764         Add l2sizekb parameter and fill in.
28765         (host_detect_local_cpu): Add l2sizekb, fill in.
28766         Add Atom small cache heuristic.
28767
28768 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28769
28770         * config/i386/drivers-i386.c (detect_caches_cpuid4):
28771         Add level3 parameter and fill in.
28772         (detect_caches_intel): Handle level3 cache.
28773
28774 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28775
28776         * config/i386/drivers-i386.c (host_detect_local_cpu):
28777         Fix core duo detection.
28778
28779 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28780
28781         * config/i386/drivers-i386.c (host_detect_local_cpu):
28782         Fix Atom detection.
28783
28784 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28785
28786         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28787         (rs6000_variable_issue_1): this.  Use...
28788         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
28789
28790 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28791
28792         * sel-sched-ir.c (sel_restore_other_notes): Rename to
28793         sel_restore_notes.  Update all callers.  Call reemit_notes
28794         for all insns.
28795
28796 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28797
28798         PR rtl-optimization/42246
28799         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28800         loops.
28801
28802 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28803
28804         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28805         all successors is the same as number of successors in current region.
28806
28807 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28808
28809         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28810         to rename is not separable.  Otherwise check that its LHS is not NULL.
28811
28812 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28813
28814         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
28815
28816 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28817
28818         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28819         available registers when failed to discover LHS register class.
28820         Fix indentation.  Update comment.
28821
28822 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28823             Alexander Monakov  <amonakov@ispras.ru>
28824
28825         PR rtl-optimization/42389
28826         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28827         to can_issue_more.
28828         (advance_state_on_fence): Likewise.
28829         (sel_target_adjust_priority): Print debug output only when
28830         sched_verbose >= 4, not 2.
28831         (get_expr_cost): Do not issue all unique insns on the next cycle.
28832         (fill_insns): Initialize can_issue_more from the value saved
28833         with the fence.
28834         * sel-sched-ir.c (flist_add): New parameter issue_more.
28835         Init FENCE_ISSUE_MORE with it.
28836         (merge_fences): Likewise.
28837         (init_fences): Update call to flist_add.
28838         (add_to_fences, add_clean_fence_to_fences)
28839         (add_dirty_fence_to_fences): Likewise.
28840         (move_fence_to_fences): Update call to merge_fences.
28841         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28842         sched groups.
28843         * sel-sched-ir.h (struct _fence): New field issue_more.
28844         (FENCE_ISSUE_MORE): New accessor macro.
28845
28846 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28847
28848         PR rtl-optimization/42388
28849         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28850         that have no predecessors nor successors.  Do not call move_bb_info
28851         for empty blocks outside of current region.
28852
28853 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28854
28855         PR rtl-optimization/42294
28856         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28857         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28858         originators' originators.
28859
28860 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28861
28862         PR rtl-optimization/39453
28863         PR rtl-optimization/42246
28864         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28865         for pipelining_p.
28866         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28867
28868 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28869             Alexander Monakov  <amonakov@ispras.ru>
28870
28871         PR middle-end/42245
28872         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28873         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28874         argument.  Update all callers.
28875         (tidy_control_flow): ... and here.  Recompute topological order
28876         of basic blocks in region if necessary.
28877         (sel_redirect_edge_and_branch): Change return type.  Return true
28878         if topological order might have been invalidated.
28879         (purge_empty_blocks): Export and move from...
28880         * sel-sched.c (purge_empty_blocks): ... here.
28881         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28882         (maybe_tidy_empty_bb): Delete prototype.
28883         (purge_empty_blocks): Declare.
28884
28885 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28886
28887         PR rtl-optimization/42249
28888         * sel-sched.c (try_replace_dest_reg): When chosen register
28889         and original register is the same, do not bail out early, but
28890         still check all original insns for validity of replacing destination
28891         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28892         in this case.
28893
28894 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28895
28896         PR c/42721
28897         Port from no-undefined-overflow branch:
28898         2009-03-09  Richard Guenther  <rguenther@suse.de>
28899
28900         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28901
28902 2010-01-14  Richard Guenther  <rguenther@suse.de>
28903
28904         PR lto/42665
28905         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28906
28907 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28908
28909         PR tree-optimization/42709
28910         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28911         as scalar type in creation of constant vector operand.
28912
28913 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28914
28915         PR testsuite/42414
28916         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28917         (check-parallel-%): Match `testsuite' directory component only
28918         at the end.
28919
28920 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28921
28922         PR translation/39521
28923         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28924         strings with _().
28925
28926 2010-01-13  Richard Guenther  <rguenther@suse.de>
28927
28928         PR tree-optimization/42730
28929         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28930         offset zero.
28931
28932 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28933
28934         PR target/pr42542
28935         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28936         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28937         them signed.
28938
28939 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28940
28941         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28942         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28943         ___umulsi3_highpart.
28944
28945         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28946         rather than schedule_insns if the pass is enabled.
28947
28948 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28949
28950         PR tree-optimization/42704
28951         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28952         SSA_NAMEs.
28953
28954 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28955
28956         PR tree-optimization/42703
28957         * tree-sra.c (analyze_access_subtree): Check that we can build a
28958         reference to the original data within the aggregate.
28959
28960 2010-01-13  Richard Guenther  <rguenther@suse.de>
28961
28962         PR tree-optimization/42705
28963         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28964
28965 2010-01-13  Richard Guenther  <rguenther@suse.de>
28966
28967         PR middle-end/42716
28968         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28969
28970 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28971
28972         PR debug/41371
28973         * var-tracking.c (values_to_unmark): New variable.
28974         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28975         values_to_unmark vector.  Moved body to...
28976         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28977         instead queue it into values_to_unmark vector.
28978         (vt_find_locations): Free values_to_unmark vector.
28979
28980 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28981
28982         * config/s390/s390.c (override_options): Set
28983         default of max-pending-list-length to 256
28984
28985 2010-01-13  Richard Guenther  <rguenther@suse.de>
28986
28987         PR lto/42678
28988         * tree-pass.h (PROP_gimple_lcx): New.
28989         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28990         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28991         before the final cleanup_eh.
28992         (dump_properties): Dump PROP_gimple_lcx.
28993         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28994         (tree_lower_complex_O0): Remove.
28995         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28996         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
28997         tree_lower_complex, schedule TODO_update_ssa.
28998         * lto-streamer-out.c (output_function): Stream the functions
28999         properties.
29000         * lto-streamer-in.c (input_function): Likewise.
29001         (lto_read_body): Do not override them here.
29002
29003 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
29004
29005         PR c/42708
29006         * c-typeck.c (build_c_cast): Fold value cast to union type before
29007         wrapping it in a CONSTRUCTOR.
29008
29009 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29010
29011         PR rtl-optimization/42699
29012         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
29013         involved.
29014
29015 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29016
29017         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29018         SUBTARGET_WARN_UNUSED_SPEC): Move ...
29019         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29020         SUBTARGET_WARN_UNUSED_SPEC): ... here
29021         * config/mips/iris5.h (LIBGCC_SPEC): Define.
29022
29023 2010-01-12  Julian Brown  <julian@codesourcery.com>
29024
29025         * config/arm/neon-schedgen.ml (Utils): Don't try to
29026         open missing module.
29027         (find_with_result): New.
29028
29029 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29030
29031         PR debug/42662
29032         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
29033         sharing when canonicalizing ({lt,ge}u (plus a b) b).
29034
29035         PR tree-optimization/42645
29036         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
29037         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
29038         decl_map, set processing_debug_stmt to -1 and return name without
29039         any remapping.
29040
29041 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
29042
29043         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
29044         binutils version, and reword target configuration description.
29045
29046 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29047
29048         * config/avr/avr.h (LINKER_NAME): Remove.
29049
29050 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
29051
29052         PR target/42416
29053         * config/rs6000/rs6000.c (rs6000_override_options): On targets
29054         that support VSX, warn for -mno-altivec if vsx is not disabled,
29055         and disable vsx.
29056
29057 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
29058             Shujing Zhao  <pearly.zhao@oracle.com>
29059
29060         PR translation/42469
29061         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
29062         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
29063         character between option name and help text.
29064         * c.opt (imultilib): Likewise.
29065
29066 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
29067
29068         * lto-streamer-out.c (output_unreferenced_globals): Output static
29069         variables.
29070
29071 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
29072
29073         PR rtl-optimization/42621
29074         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
29075         optimizing for size.
29076         (duplicate_computed_gotos): Remove now-redundant check.
29077
29078 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
29079
29080         PR target/37454
29081         * configure.ac: Save and restore LDFLAGS and LIBS
29082         * configure: Regenerate.
29083
29084 2010-01-10  Richard Guenther  <rguenther@suse.de>
29085
29086         PR middle-end/42667
29087         * builtins.c (fold_builtin_strlen): Add type argument and
29088         convert the resulting length to it.
29089         (fold_builtin_1): Adjust.
29090
29091 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29092
29093         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
29094         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
29095         1 insn.
29096         (num_insns_constant_wide): Adjust for that change.
29097
29098 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29099
29100         PR debug/42631
29101         * web.c (union_defs): Add used argument, to combine uses of
29102         uninitialized regs.
29103         (entry_register): Adjust type and tests of used argument.
29104         (web_main): Widen used for new use.  Pass it to union_defs.
29105         * df.h (union_defs): Adjust prototype.
29106
29107 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29108
29109         PR debug/42630
29110         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
29111         uses in new incoming argument.  Free body.
29112         (reset_debug_uses_in_loop): New.
29113         (analyze_insn_to_expand_var): Call the latter if the former found
29114         anything.  Fix whitespace.  Reject invalid dest overlaps before
29115         going through all insns in the loop.
29116
29117 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29118
29119         PR debug/42629
29120         * haifa-sched.c (dying_use_p): Debug insns don't count.
29121
29122 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29123
29124         PR middle-end/42363
29125         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
29126         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
29127         (verify_gimple_call): Reject LHS in noreturn calls.
29128
29129 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29130
29131         PR debug/42604
29132         PR debug/42395
29133         * tree-vect-loop-manip.c (adjust_info): New type.
29134         (adjust_vec): New pointer to vector.
29135         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
29136         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
29137         (slpeel_update_phis_for_duplicate_loop): Use them.
29138         (slpeel_update_phi_nodes_for_guard1): Likewise.
29139         (slpeel_update_phi_nodes_for_guard2): Likewise.
29140         (slpeel_tree_peel_loop_to_edge): Likewise.
29141         (vect_update_ivs_after_vectorizer): Likewise.
29142
29143 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29144
29145         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
29146         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
29147
29148 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29149
29150         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
29151         bogus uninitialized warning.
29152
29153 2010-01-09  Richard Guenther  <rguenther@suse.de>
29154
29155         PR middle-end/42512
29156         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
29157         the evolution is compatible with the initial condition.
29158
29159 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29160
29161         * gcc.c (process_command): Update copyright notice dates.
29162         * gcov.c (print_version): Likewise.
29163         * gcov-dump.c (print_version): Likewise.
29164         * mips-tfile.c (main): Likewise.
29165         * mips-tdump.c (main): Likewise.
29166
29167 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29168
29169         PR target/41885
29170         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
29171         (rotlhi3): Delete.
29172         (rotlhi3_8): Delete.
29173         (rotlsi3): Delete.
29174         (rotlsi3_8): Delete.
29175         (rotlsi3_16): Delete.
29176         (rotlsi3_24): Delete.
29177         (rotl<mode>3): New.
29178         (*rotw<mode>3): New.
29179         (*rotb<mode>3): New.
29180         * config/avr/avr.c (avr_rotate_bytes): New function.
29181         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
29182
29183 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
29184
29185         PR target/37454
29186         * configure.ac: Modify -rdynamic check.
29187         * configure: Regenerate.
29188
29189 2010-01-08  DJ Delorie  <dj@redhat.com>
29190
29191         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
29192         register popping order.
29193
29194 2010-01-08  Richard Guenther  <rguenther@suse.de>
29195
29196         PR lto/42528
29197         * c.opt (fsigned-char): Also let LTO handle this option.
29198         (funsigned-char): Likewise.
29199
29200 2010-01-07  Richard Guenther  <rguenther@suse.de>
29201
29202         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
29203         (gimple_op): Likewise.
29204         (gimple_op_ptr): Likewise.
29205         (gimple_assign_set_lhs): Remove gcc_assert.
29206         (gimple_assign_set_rhs1): Likewise.
29207         (gimple_assign_set_rhs2): Likewise.
29208         (gimple_call_set_lhs): Likewise.
29209         (gimple_call_set_fn): Likewise.
29210         (gimple_call_set_fndecl): Likewise.
29211         (gimple_call_fndecl): Likewise.
29212         (gimple_call_return_type): Likewise.
29213         (gimple_call_set_chain): Likewise.
29214         (gimple_call_num_args): Likewise.
29215         (gimple_call_set_arg): Likewise.
29216         (gimple_cond_set_code): Likewise.
29217         (gimple_cond_set_lhs): Likewise.
29218         (gimple_cond_set_rhs): Likewise.
29219         (gimple_cond_set_true_label): Likewise.
29220         (gimple_cond_set_false_label): Likewise.
29221         (gimple_label_set_label): Likewise.
29222         (gimple_goto_set_dest): Likewise.
29223         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
29224         (gimple_debug_bind_get_value): Likewise.
29225         (gimple_debug_bind_get_value_ptr): Likewise.
29226         (gimple_debug_bind_set_var): Likewise.
29227         (gimple_debug_bind_set_value): Likewise.
29228         (gimple_debug_bind_reset_value): Likewise.
29229         (gimple_debug_bind_has_value_p): Likewise.
29230         (gimple_return_retval_ptr): Remove gcc_assert.
29231         (gimple_return_retval): Likewise.
29232         (gimple_return_set_retval): Likewise.
29233         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
29234         (safe_referenced_var_iterator): Remove.
29235         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
29236         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
29237         (fill_referenced_var_vec): Remove.
29238         (first_readonly_imm_use): Remove redundant gcc_assert.
29239         (phi_arg_index_from_use): Combine gcc_asserts.
29240         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
29241         (first_imm_use_stmt): Remove redundant gcc_assert.
29242         * tree-cfg.c (verify_gimple_call): Verify function and chain
29243         operands.  Verify arguments.
29244         (verify_types_in_gimple_stmt): Verify condition code and labels.
29245
29246 2010-01-07  Richard Guenther  <rguenther@suse.de>
29247
29248         PR tree-optimization/42641
29249         * sese.c (rename_map_elt_info): Use the SSA name version, do
29250         not hash pointers.
29251
29252 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
29253
29254         PR tree-optimization/42625
29255         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
29256         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
29257
29258 2010-01-07  Duncan Sands  <baldrick@free.fr>
29259
29260         * Makefile.in (PLUGIN_HEADERS): Add version.h.
29261
29262 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
29263
29264         PR target/42511
29265         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
29266         note itself is not function_invariant_p.
29267
29268 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
29269
29270         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
29271         Do not add the DF_NOTE problem.
29272         * store-motion.c (execute_rtl_store_motion): Likewise.
29273
29274 2010-01-07  Martin Jambor  <mjambor@suse.cz>
29275
29276         PR tree-optimization/42157
29277         * tree-sra.c (compare_access_positions): Stabilize sort if both
29278         accesses have integer types, return zero immediately if they are the
29279         same.
29280
29281 2010-01-06  Richard Henderson  <rth@redhat.com>
29282
29283         PR middle-end/41883
29284         * haifa-sched.c (add_to_note_list): Merge into ...
29285         (concat_note_lists): ... here, and ...
29286         (unlink_other_notes, rm_other_notes): Merge into...
29287         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
29288         NOTE_INSN_EPILOGUE_BEG.
29289
29290 2010-01-06  Richard Guenther  <rguenther@suse.de>
29291
29292         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
29293         not inline regular functions into always-inline functions.
29294
29295 2010-01-06  Nick Clifton  <nickc@redhat.com>
29296
29297         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
29298         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
29299         used together.
29300         (OVERRIDE_OPTIONS): Delete.
29301         (OPTIMIZATION_OPTIONS): Define.
29302         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
29303         * config/rx/rx.c (rx_handle_option): Issue an error message if
29304         -mcpu=rx200 and -fpu are used together.
29305         (rx_set_optimization_options): New function.  Issue an error
29306         message if an optimization attribute attempts to reset the FPU/
29307         math optimization pairing.
29308         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
29309         * config/rx/rx.opt: Set the default to 32-bit doubles.
29310         * config/rx/t-rx: Add multilibs for -nofpu option.
29311         * doc/invoke.texi: Update documentation of RX options.
29312
29313 2010-01-06  Richard Guenther  <rguenther@suse.de>
29314
29315         * tree-ssa-pre.c (name_to_id): New global.
29316         (alloc_expression_id): Simplify SSA name handling.
29317         (lookup_expression_id): Likewise.
29318         (init_pre): Zero name_to_id.
29319         (fini_pre): Free it.
29320
29321 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
29322
29323         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
29324
29325 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
29326
29327         PR target/42542
29328         * config/i386/sse.md (smaxv2di3): New.
29329         (umaxv2di3): Likewise.
29330         (sminv2di3): Likewise.
29331         (uminv2di3): Likewise.
29332
29333 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29334
29335         PR target/42564
29336         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
29337         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
29338         (legitimize_tls_address): Likewise.
29339         (sparc_tls_referenced_p): Likewise.
29340         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
29341         and adjust calls to legitimize_pic_address.
29342         (legitimate_constant_p) Use sparc_tls_referenced_p.
29343         (legitimate_pic_operand_p): Likewise.
29344         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
29345         (sparc_tls_symbol_ref_1): Delete.
29346         (sparc_tls_referenced_p): Make static, recognize specific patterns.
29347         (legitimize_tls_address): Make static, handle CONST patterns.
29348         (legitimize_pic_address): Make static, remove unused parameter and
29349         adjust recursive calls.
29350         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
29351         and adjust call to legitimize_pic_address.
29352         (sparc_output_mi_thunk): Likewise.
29353
29354 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
29355             H.J. Lu  <hongjiu.lu@intel.com>
29356
29357         PR target/42542
29358         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
29359         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
29360         operands to make them signed.
29361
29362         Revert:
29363         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29364
29365         PR target/42542
29366         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29367         GTU to GT for V4SI and V2DI.
29368
29369         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29370         (umin<mode>3): Removed.
29371         (uminv8hi3): New.
29372         (uminv4si3): Likewise.
29373
29374 2010-01-05  Martin Jambor  <mjambor@suse.cz>
29375
29376         PR tree-optimization/42462
29377         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
29378         current_function_decl to helper functions and macros.
29379
29380 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29381
29382         PR bootstrap/41771
29383         * flags.h: Don't include real.h.
29384         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
29385         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
29386         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
29387         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
29388         * dominance.c: Update copyright.
29389         * gimple.c (walk_gimple_op): Remove inline.
29390         * tree-ssa-reassoc.c: Include real.h.
29391         * Makefile.in (FLAGS_H): Remove $(REAL_H).
29392         (tree-ssa-reassoc.o): Depend on $(REAL_H).
29393
29394 2010-01-05  Nick Clifton  <nickc@redhat.com>
29395
29396         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
29397         register to push into the stack frame when the accumulator has to
29398         be saved during interrupts.
29399
29400 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
29401
29402         * doc/invoke.texi: Remove the documentation about option
29403         -Wunreachable-code.
29404         * common.opt (Wunreachable-code):  Preserved for backward
29405         compatibility.
29406         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
29407         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
29408         the backward compatibility flag section.
29409
29410 2010-01-05  Richard Guenther  <rguenther@suse.de>
29411
29412         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
29413
29414 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
29415
29416         PR other/42611
29417         * cfgexpand.c (expand_one_var): Diagnose too large variables.
29418
29419         PR tree-optimization/42508
29420         * tree-sra.c (convert_callers): Check for recursive call
29421         by comparing cgraph nodes instead of decls.
29422         (modify_function): Call ipa_modify_formal_parameters also
29423         on all same_body aliases.
29424
29425         * cgraphunit.c (cgraph_materialize_all_clones): Compare
29426         cgraph nodes when checking for same_body aliases.
29427
29428 2010-01-05  Richard Guenther  <rguenther@suse.de>
29429
29430         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
29431         allocation and lookup.
29432         (get_or_alloc_expr_for_constant): Likewise.
29433         (phi_translate): Sink allocation.
29434
29435 2010-01-04  Richard Guenther  <rguenther@suse.de>
29436
29437         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
29438         a new entry only if needed.
29439         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
29440         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29441         hashtable lookup.
29442         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29443         the result array.
29444         (phi_translate): Handle CONSTANTs early.
29445
29446 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29447
29448         PR tree-optimization/42398
29449         * tree-sra.c (struct access): Removed flag grp_different_types.
29450         (dump_access): Do not dump the removed flag.
29451         (sort_and_splice_var_accesses): Do not set the removed flag.
29452         (sra_modify_expr): Check for type compatibility directly.
29453
29454 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29455
29456         PR tree-optimization/42366
29457         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29458         edges with variable number of parameters.
29459         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29460         flag instead of asserting it.
29461         (ipa_read_node_info): Read uses_analysis_done flag.
29462
29463 2010-01-04  Richard Guenther  <rguenther@suse.de>
29464
29465         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29466         iterative_hash_* as intended.
29467         (vn_reference_compute_hash): Likewise.  Simplify hashing
29468         SSA names.
29469         (vn_reference_lookup_2): Likewise.
29470         (vn_nary_op_compute_hash): Likewise.
29471         (vn_phi_compute_hash): Likewise.
29472         (expressions_equal_p): Remove strange code.
29473         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29474         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
29475         (bitmap_insert_into_set_1): Take value-id as parameter.
29476         (add_to_value): Pass it.
29477         (bitmap_insert_into_set): Likewise.
29478         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
29479
29480 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
29481
29482         PR driver/42442
29483         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29484         (do_self_spec): For switches with SWITCH_IGNORE set set also
29485         SWITCH_IGNORE_PERMANENTLY.
29486         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29487         of SWITCH_IGNORE.
29488
29489 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
29490
29491         * lto-streamer-out.c (output_unreferenced_globals): Output the full
29492         tree of an unreferenced global var.
29493
29494 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29495
29496         PR target/42542
29497         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29498         GTU to GT for V4SI and V2DI.
29499
29500         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29501         (umin<mode>3): Removed.
29502         (uminv8hi3): New.
29503         (uminv4si3): Likewise.
29504
29505 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29506
29507         PR lto/42581
29508         * collect2.c (main): Turn on trace in collect2 if -v is passed
29509         to gcc with LTO.
29510
29511 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
29512
29513         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
29514         description of expression operand.
29515
29516 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
29517
29518         * configure.ac: Add install-html to target_list for Make-hooks.
29519         * configure: Regenerate.
29520         * fortran/Make-lang.in (F95_HTMLFILES): New.
29521         (fortran.html): Use it.
29522         (fortran.install-html): New.
29523         * Makefile.in (install-html): Add lang.install-html.
29524         * java/Make-lang.in (JAVA_HTMLFILES): New.
29525         (java.html): Use it.
29526         (java.install-html): New.
29527         * objc/Make-lang.in (objc.install-html): New.
29528         * objcp/Make-lang.in (obj-c++.install-html): New.
29529         * cp/Make-lang.in (c++.install-html): New.
29530         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29531         * lto/Make-lang.in (lto.install-html): New.
29532
29533 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29534
29535         PR lto/42520
29536         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29537
29538 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29539
29540         PR rtl-optimization/41862
29541         * store-motion.c (store_killed_in_insn, compute_store_table,
29542         remove_reachable_equiv_notes, replace_store_insn,
29543         build_store_vectors): Ignore all DEBUG_INSNs.
29544
29545 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29546
29547         PR lto/41564
29548         * common.opt: Add dumpdir.
29549
29550         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29551         isn't specified.
29552         (option_map): Add --dumpdir.
29553
29554         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29555
29556         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29557
29558         * opts.c (decode_options): Try dump_dir_name first if
29559         dump_base_name isn't an absolute path.
29560         (common_handle_option): Handle OPT_dumpdir.
29561
29562         * toplev.c (dump_dir_name): New.
29563         (print_switch_values): Also ignore -dumpdir.
29564
29565         * toplev.h (dump_dir_name): New.
29566
29567 2010-01-03  Richard Guenther  <rguenther@suse.de>
29568
29569         PR tree-optimization/42589
29570         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29571         double-word expansion of bswap32.
29572
29573 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29574
29575         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29576         with BLOCK_FOR_INSN.
29577         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29578         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29579         noce_process_if_block): Likewise.
29580         * gcse.c (compute_local_properties, insert_expr_in_table,
29581         insert_set_in_table, canon_list_insert, find_avail_set,
29582         pre_insert_copy_insn): Likewise.
29583
29584         * basic-block.h (BLOCK_NUM): Move from here...
29585         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29586
29587 2010-01-03  Richard Guenther  <rguenther@suse.de>
29588
29589         PR tree-optimization/42438
29590         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29591         contains_may_not_return_call flag.
29592         (BB_MAY_NOTRETURN): New.
29593         (valid_in_sets): Trapping nary operations are not valid
29594         in blocks that may not return.
29595         (insert_into_preds_of_block): Remove check for trapping expressions.
29596         (compute_avail): Compute also BB_MAY_NOTRETURN.
29597
29598 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
29599
29600         * doc/invoke.texi: Add 2010 to copyright years.
29601
29602 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29603
29604         * config/sparc/sparc.c: Fix formatting nits.
29605
29606 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
29607             Alexander Monakov  <amonakov@ispras.ru>
29608
29609         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29610
29611 2010-01-02  Richard Guenther  <rguenther@suse.de>
29612
29613         PR middle-end/42577
29614         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29615         (simplify_switch_using_ranges): Mark to be removed edges
29616         as non-executable.
29617
29618 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29619
29620         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29621
29622         * collect2.c (scan_libraries): Add missing argument in call to
29623         scan_prog_file.
29624
29625 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
29626
29627         PR target/42448
29628         * config/alpha/predicates.md (aligned_memory_operand): Return false
29629         for CQImode.
29630         (unaligned_memory_operand): Return true for CQImode.
29631         * config/alpha/alpha.c (get_aligned_mem): Assert that location
29632         doesn not cross aligned SImode word boundary.
29633
29634 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
29635
29636         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29637         Remove.
29638         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29639         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29640
29641 2010-01-02  Richard Guenther  <rguenther@suse.de>
29642
29643         PR lto/41597
29644         * toplev.c (compile_file): Emit LTO marker properly.  Change
29645         it to __gnu_lto_v1.
29646         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29647
29648 2010-01-01  Richard Guenther  <rguenther@suse.de>
29649
29650         PR debug/42455
29651         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29652
29653 2010-01-01  Richard Guenther  <rguenther@suse.de>
29654
29655         PR c/42570
29656         * c-decl.c (grokdeclarator): For zero-size arrays force
29657         structural equality checks as layout_type does.
29658
29659 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29660
29661         * builtins.c: Update copyright to 2010.
29662
29663 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29664
29665         PR lto/42531
29666         * lto-streamer-out.c (produce_asm): Revert the last change.
29667         (copy_function): Likewise.
29668
29669         * lto-streamer.c (lto_get_section_name): Skip any leading
29670         asterisk in name.
29671
29672 2010-01-01  Richard Guenther  <rguenther@suse.de>
29673
29674         PR middle-end/42559
29675         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29676         for LABEL_DECLs.
29677
29678 \f
29679 Copyright (C) 2010 Free Software Foundation, Inc.
29680
29681 Copying and distribution of this file, with or without modification,
29682 are permitted in any medium without royalty provided the copyright
29683 notice and this notice are preserved.