OSDN Git Service

* config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-10-07  Alan Modra  <amodra@gmail.com>
2
3         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4         rather than sign extension by hand.
5
6 2010-10-07  Jan Hubicka  <jh@suse.cz>
7
8         PR middle-end/45926
9         * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
10
11 2010-10-07  Richard Guenther  <rguenther@suse.de>
12
13         PR bootstrap/45914
14         * configure.ac: Fix typo.
15         * configure: Regenerated.
16
17 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
18
19         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
20         define_builtin_std where it's unnecessary.
21         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
22
23 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
24
25         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
26         * doc/tm.texi.in: Regenerate.
27         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
28         * targhooks.c (default_class_likely_spilled_p): Don't use the
29         CLASS_LIKELY_SPILLED_P macro.
30
31         * config/arm/arm.md: Update comment.
32
33 2010-10-06  Jan Hubicka  <jh@suse.cz>
34
35         * ipa.c (cgraph_remove_unreachable_nodes): External references can
36         always be removed.
37         (cgraph_externally_visible_p): We can not bring local comdats that
38         are known to linker; fix handling of internal visibility.
39         (function_and_variable_visibility): Likewise.
40
41 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
42
43         PR rtl-optimization/45394
44         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
45         (struct rtx_subst_pair): Remove AFTER field.
46         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
47         (propagate_for_debug): Remove MOVE parameter and adjust.
48         (try_combine): In the special case where I2 is a PARALLEL, combine only
49         destinations of SETs and set I2SRC to the I2 source.
50         Adjust calls to propagate_for_debug throughout.
51         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
52         insns.
53
54 2010-10-06  Olivier Hainque  <hainque@adacore.com>
55
56         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
57         switch on insn codes as sequence of ifs.
58
59 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
60
61         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
62         be UI_NONE for picochip.
63         (picochip_option_override): Do not disable exception flags.
64         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
65         Declare.
66
67 2010-10-06  Richard Guenther  <rguenther@suse.de>
68
69         * Makefile.in (regmove.o): Depend on $(TARGET_H).
70
71 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
72
73         Implemented fast enumeration for Objective-C.
74         * c-parser.c (objc_could_be_foreach_context): New.
75         (c_lex_one_token): Recognize RID_IN keyword in a potential
76         Objective-C foreach context.
77         (c_parser_declaration_or_fndef): Added parameter.  Accept
78         Objective-C RID_IN keyword as terminating a declaration; in that
79         case, return the declaration in the new parameter.
80         (c_parser_extenral_declaration): Updated calls to
81         c_parser_declaration_or_fndef.
82         (c_parser_declaration_or_fndef): Same change.
83         (c_parser_compound_statement_nostart): Same change.
84         (c_parser_label): Same change.
85         (c_parser_objc_methodprotolist): Same change.
86         (c_parser_omp_for_loop): Same change.
87         (c_parser_for_statement): Detect and parse Objective-C foreach
88         statements.
89         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
90         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
91         fast enumeration parsing code to turn off the c99 error but still
92         perform checks on the loop declarations.
93         * c-tree.h (check_for_loop_decls): Updated declaration.
94         * doc/objc.texi: Document fast enumeration.
95
96 2010-10-06  Nick Clifton  <nickc@redhat.com>
97
98         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by
99         one.
100         (MDR_REGNUM): Define.
101         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed
102         register.
103         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
104         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
105         (REGISTER_NAMES): Add MDR.
106         (DWARF2_DEBUGGING_INFO): Define to 1.
107         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
108         (F): New function.  Sets RTX_FRAME_RELATED_P.
109         (mn10300_gen_multiple_store): Use F.
110         (expand_prologue): Use F.  Use gen_movsf() to push floating
111         point registers.
112         (expand_epilogue): Use gen_movsf() to pop floating point
113         registers.
114         (mn10300_option_override): Disable combine stack adjust pass.
115
116 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
117
118         PR target/45901
119         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
120         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
121
122 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
123
124         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
125         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
126         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
127         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
128         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
129         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
130         BUILT_IN_TOUPPER): Mark as leaf.
131
132         PR middle-end/45838
133         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
134         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
135         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
136         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
137         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
138         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
139         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
140
141 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
142
143         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
144         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
145         (m68hc11_class_likely_spilled_p): New function.
146
147 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
148
149         * c-parser.c (c_parser_objc_method_definition): Updated comment.
150
151 2010-10-05  Jan Hubicka  <jh@suse.cz>
152
153         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
154         Document.
155         * opts.c (decode_options): Handle lto partitions.
156         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
157         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
158
159 2010-10-05  Jan Hubicka  <jh@suse.cz>
160
161         * cgraphunit.c (assemble_function): Output thunks and aliases before
162         the function itself.
163
164 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
165
166         * config/picochip/picochip.c (picochip_option_override): Disable
167         exception flags for picochip.
168
169 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
170
171         * opts-common.c (handle_option, handle_generated_option,
172         read_cmdline_option, set_option): Add diagnostic_context
173         parameter.  Update calls among these functions.
174         (set_option): Don't use global_dc.
175         * opts.c (read_cmdline_options): Pass global_dc to
176         read_cmdline_option.
177         (decode_options): Pass global_dc to enable_warning_as_error.
178         (common_handle_option): Pass global_dc to enable_warning_as_error.
179         (enable_warning_as_error): Add diagnostic_context parameter.
180         Document parameters.  Don't use global_dc.  Pass
181         diagnostic_context parameter to handle_generated_option.
182         * opts.h (set_option, handle_option, handle_generated_option,
183         read_cmdline_option, enable_warning_as_error): Add
184         diagnostic_context parameter.
185         * Makefile.in (lto-opts.o): Update dependencies.
186         * coretypes.h (struct diagnostic_context, diagnostic_context):
187         Declare here.
188         * diagnostic.h (diagnostic_context): Don't declare typedef here.
189         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
190         * langhooks-def.h (struct diagnostic_context): Don't declare here.
191         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
192         using diagnostic_context typedef.
193         * langhooks.c (lhd_initialize_diagnostics): Declare using
194         diagnostic_context typedef.
195         * langhooks.h (struct diagnostic_context): Don't declare here.
196         (initialize_diagnostics, print_error_function): Declare using
197         diagnostic_context typedef.
198         * lto-opts.c: Include diagnostic.h.
199         (lto_reissue_options): Pass global_dc to set_option.  Pass
200         DK_UNSPECIFIED not 0.
201         * plugin.c (plugins_internal_error_function): Declare using
202         diagnostic_context typedef.
203         * plugin.h (struct diagnostic_context): Don't declare here.
204         (plugins_internal_error_function): Declare using
205         diagnostic_context typedef.
206
207 2010-10-05  Olivier Hainque  <hainque@adacore.com>
208             Nicolas Roche  <roche@adacore.com>
209
210         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
211         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
212
213 2010-10-05  Ira Rosen  <irar@il.ibm.com>
214
215         PR tree-optimization/45752
216         * tree-vect-slp.c (vect_get_mask_element): Remove static
217         variables, make them function arguments.
218         (vect_transform_slp_perm_load): Pass new arguments to
219         vect_get_mask_element.
220
221 2010-10-05  Richard Guenther  <rguenther@suse.de>
222
223         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
224         (gimple_mod_pow2): Likewise.
225         (gimple_mod_subtract): Likewise.
226         (gimple_ic): Likewise.
227         (gimple_stringop_fixed_value): Likewise.
228         * tree-profile.c (tree_init_edge_profiler): Mark profile
229         functions nothrow and leaf.
230         (add_abnormal_goto_call_edges): Remove.
231         (tree_gen_edge_profiler): Work on SSA form.
232         (tree_gen_ic_profiler): Likewise.  Simplify.
233         (do_tree_profiling): Update SSA form.
234         (pass_tree_profile): Remove.
235         (do_tree_profiling): Likewise.
236         (gate_tree_profile_ipa): New function.
237         (pass_ipa_tree_profile): New.
238         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
239         state of instrumented functions.
240         * passes.c (init_optimization_passes): Remove early non-SSA
241         inlining.  Move profiling after early optimizations.
242         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
243         (pass_ipa_early_inline): Likewise.
244         * tree-pass.h (pass_ipa_early_inline): Remove.
245         (pass_tree_profile): Likewise.
246         (pass_ipa_tree_profile): Declare.
247
248 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
249             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
250
251         * gcc/config/s390/s390.c (z196_cost): New.
252         (s390_handle_arch_option): Add -march=z196.
253         (s390_option_override): Use the new cost function and use the z10
254         defaults also for z196.
255         (legitimate_reload_constant_p): Adjust comment.
256         (legitimate_reload_fp_constant_p): New function.
257         (s390_preferred_reload_class): Distingiush between FP and Int constants.
258         (preferred_la_operand_p): Avoid la with index on z196.
259         (s390_adjust_priority): Trigger also for z196.
260         (s390_issue_rate): Issue rate for z196 is 3.
261         (s390_z10_fix_long_loop_prediction): Rename to ...
262         (s390_fix_long_loop_prediction): ... this.
263         (s390_reorg): Apply the z10 adjustments also for z196.
264         (s390_loop_unroll_adjust): Do this also for z196.
265         * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
266         (enum processor_flags): Add PF_Z196.
267         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
268         (TARGET_CPU_Z196, TARGET_Z196): New macros.
269         * gcc/config.gcc: Enable z196 for --with-arch.
270         * gcc/config/s390/2817.md: New file.
271         * gcc/config/s390/2084.md: New type for multiply and add.
272         * gcc/config/s390/2097.md: Likewise.
273         * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
274         (UNSPECV_ATOMIC_OP): New constants.
275         (fmadddf, fmaddsf): New values for type attribute.
276         (z196prop): New insn attribute.
277         (cpu, cpu_facility): Add z196.
278         (ATOMIC_Z196): New code iterator.
279         (noxa): New code attribute.
280         (gk): New mode attribute.
281         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
282         Support load zero for fp constants.
283         (fixuns_truncdddi2, fixuns_trunctddi2)
284         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
285         for z196.
286         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
287         (popcounthi2, popcountqi2): New expander.
288         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
289         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
290         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
291         insn definition.
292         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
293         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
294         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc, *sub<mode>3)
295         (*sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly, *sub<mode>3_cc)
296         (*sub<mode>3_cc2, *sub<mode>3_cconly, *sub<mode>3_cconly2)
297         (*anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc, *andsi3_cconly)
298         (*andsi3_zarch, *andsi3_esa, *andhi3_zarch, *andqi3_zarch, *iordi3_cc)
299         (*iordi3_cconly, *iordi3, *iorsi3_cc, *iorsi3_cconly, *iorsi3_zarch)
300         (*iorhi3_zarch, *iorqi3_zarch, *xordi3_cc, *xordi3_cconly, *xordi3)
301         (*xorsi3_cc, *xorsi3_cconly, *xorsi3, *xorhi3, *xorqi3, *<shift><mode>3)
302         (*<shift><mode>3_and, *ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
303         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
304         Support new z196 instructions.
305
306 2010-10-05  Richard Guenther  <rguenther@suse.de>
307
308         PR middle-end/45877
309         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
310         case where gimplification optimizes away the stmt.
311
312 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
313
314         PR debug/45849
315         * var-tracking.c (strip_pointer_flags): New function.
316         (emit_note_insn_var_location): If rtx_equal_p check failed,
317         retry on locations simplified with simplify_replace_fn_rtx
318         and strip_pointer_flags as its callback.
319
320 2010-10-04  Jan Hubicka  <jh@suse.cz>
321
322         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
323         (can_refer_decl_in_current_unit_p): ... this one; reverse return
324         value; handle comdats too.
325         (canonicalize_constructor_val): Use it; handle function_decls
326         correctly.
327         (gimple_fold_obj_type_ref_known_binfo): Likewise.
328         * gimple.c (get_base_address): Accept all kinds of decls.
329
330 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
331
332         * flags.h (g_switch_value, g_switch_set): Remove.
333         * opts.c (g_switch_value, g_switch_set): Remove.
334         * config/g.opt (G): Add Var(g_switch_value).
335         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G
336         here.
337         (alpha_option_override): Check global_options_set.x_g_switch_value
338         instead of g_switch_set.
339         (alpha_in_small_data_p): Remove cast in comparison with
340         g_switch_value.
341         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
342         g_switch_value to unsigned HOST_WIDE_INT.
343         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
344         with g_switch_value.
345         (frv_handle_option): Don't handle -G here.
346         (frv_option_override): Check global_options_set.x_g_switch_value
347         instead of g_switch_set.  Don't modify g_switch_set.
348         (frv_in_small_data_p): Remove cast in comparison with
349         g_switch_value.
350         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
351         g_switch_value to unsigned HOST_WIDE_INT.
352         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
353         (ia64_option_override): Check global_options_set.x_g_switch_value
354         instead of g_switch_set.
355         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
356         Remove.
357         (lm32_in_small_data_p): Remove cast in comparison with
358         g_switch_value.
359         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
360         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
361         HOST_WIDE_INT.
362         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
363         (m32r_init): Check global_options_set.x_g_switch_value instead of
364         g_switch_set.
365         (m32r_in_small_data_p): Remove cast in comparison with
366         g_switch_value.
367         (m32r_file_start): Format g_switch_value with %d.
368         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
369         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned
370         HOST_WIDE_INT.
371         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
372         handle -G here.
373         (microblaze_option_override): Check
374         global_options_set.x_g_switch_value instead of g_switch_set.
375         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
376         (mips_option_override): Check global_options_set.x_g_switch_value
377         instead of g_switch_set.
378         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G
379         here.
380         (rs6000_file_start): Format g_switch_value with %d.
381         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
382         comparisons with g_switch_value.
383         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
384         global_options_set.x_g_switch_value instead of g_switch_set.
385         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
386         global_options_set.x_g_switch_value instead of g_switch_set.
387         * config/score/score.c (score_handle_option): Don't handle -G
388         here.
389         * config/score/score3.c (score3_option_override): Check
390         global_options_set.x_g_switch_value instead of g_switch_set.
391         * config/score/score7.c (score7_option_override): Check
392         global_options_set.x_g_switch_value instead of g_switch_set.
393
394 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
395
396         * common.opt (fira-coalesce): Remove.
397
398         * doc/invoke.texi (flag_ira_coalesce): Remove.
399
400         * ira-color.c (allocno_coalesced_p): Move before
401         copy_freq_compare_func.
402         processed_coalesced_allocno_bitmap): Ditto.
403         (update_conflict_hard_regno_costs): Don't use
404         ALLOCNO_FIRST_COALESCED_ALLOCNO.
405         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
406         (assign_hard_reg): Assume no coalesced allocnos.
407         (get_coalesced_allocnos_attributes): Remove.
408         (bucket_allocno_compare_func): Assume no coalesced allocnos.
409         (push_allocno_to_stack): Ditto.
410         (remove_allocno_from_bucket_and_push): Use
411         ira_print_expanded_allocno instead of print_coalesced_allocno.
412         (push_allocnos_to_stack): Assume uncoalesced allocnos.
413         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
414         all_conflicting_hard_regs.
415         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
416         (setup_allocno_left_conflicts_size): Ditto.
417         (put_allocno_into_bucket): Ditto.
418         (copy_freq_compare_func): Remove.
419         (copy_freq_compare_func, merge_allocnos): Move before
420         coalesced_pseudo_reg_freq_compare.
421         coalesced_allocno_conflict_p): Ditto.
422         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
423         parameter.  Assume it true.
424         (color_allocnos): Assume uncoalesced allocnos.  Use
425         ira_print_expanded_allocno instead of print_coalesced_allocno.
426         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
427         parameter.
428
429         * ira.c: Remove comment about coalescing.
430
431 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
432
433         * config/mips/mips.h (target_flags_explicit): Declare for
434         GENERATOR_FILE.
435
436 2010-10-04  Andi Kleen <ak@linux.intel.com>
437
438         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
439         gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
440
441 2010-10-04  Matthias Klose  <doko@ubuntu.com>
442
443         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
444         multilib osdirname if it exists.
445         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
446
447 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
448
449         PR middle-end/45876
450         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
451         arg0's type or its unsigned counterpart as utype.  Convert
452         arg1 to utype unconditionally.
453
454 2010-10-04  Julian Brown  <julian@codesourcery.com>
455
456         * expr.c (expand_assignment): Add assertion to prevent emitting
457         null rtx for movmisalign pattern.
458         (expand_expr_real_1): Likewise.
459         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
460         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
461         (arm_vector_alignment_reachable): New.
462         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
463         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
464         (arm_print_operand): Include alignment qualifier in %A.
465         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
466         (movmisalign<mode>): New expander.
467         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
468         insn patterns.
469
470 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
471
472         * optc-gen.awk: Define global_options_set.  Don't define
473         target_flags_explicit.
474         * opth-gen.awk: Declare global_options_set.  Define
475         target_flags_explicit as macro.
476         * opts-common.c (handle_option): Take opts_set and generated_p
477         parameters.
478         (handle_generated_option, read_cmdline_option, set_option): Take
479         opts_set parameter.
480         (set_option): Use opts_set instead of hardcoding target_flags and
481         target_flags_explicit.
482         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
483         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
484         flag_value_profile_transformations_set, flag_peel_loops_set,
485         flag_branch_probabilities_set, flag_inline_functions_set,
486         flag_ipa_cp_set, flag_ipa_cp_clone_set,
487         flag_predictive_commoning_set, flag_unswitch_loops_set,
488         flag_gcse_after_reload_set): Remove.
489         (common_handle_option, lang_handle_option, target_handle_option):
490         Take opts_set parameter.  Assert that it is &global_options_set.
491         (common_handle_option): Don't set _set variables.  Check opts_set
492         instead of such variables.
493         (enable_warning_as_error): Pass &global_options_set to
494         handle_generated_option.
495         * opts.h (cl_option_handler_func.handler, set_option,
496         handle_option, handle_generated_option, read_cmdline_option): Add
497         opts_set parameters.
498         (handle_option): Add generated_p parameter.
499         * config/i386/i386.c (ix86_function_specific_save,
500         ix86_function_specific_restore): Updat for renaming of
501         target_flags_explicit field.
502         * config/i386/i386.opt (target_flags_explicit): Rename to
503         ix86_target_flags_explicit.
504         * config/ia64/ia64.c (ia64_override_options_after_change): Check
505         global_options_set.x_flag_selective_scheduling and
506         global_options_set.x_flag_selective_scheduling2, not
507         sel_sched_switch_set.
508         * flags.h (sel_sched_switch_set,
509         flag_speculative_prefetching_set): Remove.
510         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
511         that it is &global_options_set.
512         (process_command): Pass &global_options_set to
513         read_cmdline_option.
514         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
515         set_option.
516         * toplev.c (target_flags_explicit): Remove.
517
518 2010-10-04  Jan Hubicka  <jh@suse.cz>
519
520         PR middle-end/45871
521         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
522         use get_ref_base_and_offset to handle references.
523         (fold_const_aggregate_ref): Update.
524
525 2010-10-04  Martin Jambor  <mjambor@suse.cz>
526
527         PR tree-optimization/45572
528         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
529         ipa_check_create_node_params.
530         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
531
532 2010-10-04  Yao Qi  <yao@codesourcery.com>
533
534         * doc/passes.texi: Clean up.
535
536 2010-10-03  Ian Lance Taylor  <iant@google.com>
537
538         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
539         referring to a field using a typedef name.
540         (find_anonymous_field_with_type): New static function.
541         (convert_to_anonymous_field): New static function.
542         (convert_for_assignment): If -fplan9-extensions, permit converting
543         pointer to struct to pointer to anonymous field.
544         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
545         fields.
546         (is_duplicate_field): New static function.
547         (detect_field_duplicates_hash): If -fplan9-extensions, check for
548         typedef names duplicating field names.
549         (detect_field_duplicates): Likewise.
550         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
551         (C Dialect Options): Document -fplan9-extensions.
552         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
553
554 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
555
556         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
557         revision 164914.
558         (vect_create_data_ref_ptr): Likewise.
559         * tree-vect-stmts.c (vectorizable_store): Likewise.
560         (perm_mask_for_reverse): Likewise.
561         (reverse_vec_elements): Likewise.
562         (vectorizable_load): Likewise.
563
564 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
565
566         * cppbuiltin.c: New file.
567         * cppbuiltin.h: New file.
568         * Makefile.in: Take into account cppbuiltin.{h,c}.
569
570 2010-10-03  Andi Kleen <ak@linux.intel.com>
571
572         * lto-cgraph.c (input_cgraph): Check for missing sections.
573
574 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
575
576         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
577         to nonimmediate_operand.  Force operand 2 to register when allowed.
578         (*<shiftrt_insn><mode>3_mask): Ditto.
579         (*<rotate_insn><mode>3_mask): Ditto.
580
581 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
582
583         PR tree-optimization/45720
584         PR tree-optimization/45764
585         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
586         Don't accept backwards consecutive accesses.
587         (vect_create_data_ref_ptr): Disallow negative steps.
588
589         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
590         (perm_mask_for_reverse): Removed.
591         (reverse_vec_elements): Likewise.
592         (vectorizable_load): Don't handle negative steps.
593
594 2010-10-02  Jan Hubicka  <jh@suse.cz>
595
596         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
597         call destination is known.
598
599 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
600
601         PR target/45820
602         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
603         earlier.
604
605 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
606
607         * doc/install.texi (Configuration): Document build_configargs,
608         host_configargs, target_configargs.
609
610 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
611
612         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
613         (*<shiftrt_insn><mode>3_mask): Ditto.
614         (*<rotate_insn><mode>3_mask): Ditto.
615
616 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
617
618         PR tree-optimization/44716
619         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
620         (HOT_TEXT_SECTION_NAME): Define.
621
622 2010-10-01  Nick Clifton  <nickc@redhat.com>
623
624         * common.opt: Add -fcombine-stack-adjustments.
625         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
626         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
627         flag_combine_stack_adjustments.
628         * doc/invoke.texi: Document the new option.
629
630 2010-10-01  Richard Guenther  <rguenther@suse.de>
631
632         PR tree-optimization/45854
633         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
634
635 2010-10-01  Anthony Green  <green@moxielogic.com>
636
637         * config.gcc: Fix moxie-*-rtems* configuration.
638
639 2010-10-01  Richard Guenther  <rguenther@suse.de>
640
641         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
642         (gen_decl_die): Likewise.
643
644 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
645
646         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
647         to the function code for SPU MD builtins.
648         (spu_expand_builtin): Update.
649         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
650
651 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
652
653         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
654         sjlj_except_unwind_info.
655
656 2010-10-01  Tristan Gingold  <gingold@adacore.com>
657
658         * configure.ac: Define the nop insn for avr*-*-*
659         * configure: Regenerate.
660
661 2010-10-01  Alan Modra  <amodra@gmail.com>
662
663         PR target/45807
664         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
665         extend toc_restore_insn.
666
667 2010-09-30  Richard Guenther  <rguenther@suse.de>
668
669         PR tree-optimization/43959
670         * function.c (gimplify_parameters): Use create_tmp_reg instead of
671         create_tmp_var.
672
673 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
674
675         * config/sh/sh.c (sh_expand_prologue): Set
676         current_function_static_stack_size.
677
678 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
679
680         * configure.ac: Check for Solaris 8 ld with .hidden support.
681         * configure: Regenerate.
682
683 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
684
685         PR middle-end/45758
686         * graphite.c (graphite_initialize): Call scev_reset.
687
688 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
689
690         * sese.h (scev_analyzable_p): Return false for real or floating
691         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
692
693 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
694
695         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
696         and ps.
697         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
698         domain.
699         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
700         Do not allocate ub_expr, it is passed in initialized.
701
702 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
703
704         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
705         (build_cloog_prog): Dump CLooG input file when
706         flag_graphite_dump_cloog is set.  This is disabled on trunk.
707         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
708
709 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
710
711         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
712         verify_dominators for CDI_POST_DOMINATORS.
713         * sese.h: Remove comment about CDI_POST_DOMINATORS.
714         (recompute_all_dominators): Remove call to free_dominance_info
715         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
716         for CDI_POST_DOMINATORS.
717
718 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
719
720         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
721         over pbb_dim_iter_domain.
722
723 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
724
725         * graphite-flattening.c: Fix comments.
726
727 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
728
729         * Makefile.in (OBJS-common): Add graphite-flattening.o.
730         (graphite-flattening.o): New rule.
731         * common.opt (floop-flatten): New flag.
732         * doc/invoke.texi (-floop-flatten): Documented.
733         * graphite-flattening.c: New.
734         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
735         * graphite-poly.h (flatten_all_loops): Declared.
736         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
737         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
738         is set, also set flag_graphite.
739
740 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
741
742         * graphite-poly.c (cloog_checksum): New.
743         * graphite-poly.h (cloog_checksum): Declared.
744
745 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
746
747         * graphite-poly.c (pbb_number_of_iterations): Removed.
748         (pbb_number_of_iterations_at_time): Correctly compute the number
749         of iterations in the transformed loop.
750         * graphite-poly.h (pbb_number_of_iterations): Removed.
751
752 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
753
754         * graphite-poly.h (lst_update_scattering_seq): Removed.
755         (lst_update_scattering): Correctly handle outermost loop dewey
756         renumbering.
757
758 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
759
760         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
761         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
762         * graphite-poly.h (lst_niter_for_loop): New.
763
764 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
765
766         * graphite-poly.c (apply_poly_transforms): Do not abort when the
767         transform read from disk is not legal.  Call fatal_error instead.
768
769 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
770
771         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
772         (print_scop_header): Removed.  Inlined in the only call place...
773         (print_scop): ... here.
774
775 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
776
777         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
778
779 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
780
781         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
782
783 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
784
785         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
786         (dot_deps_stmt): Same.
787         * graphite-poly.c (dot_lst): Same.
788
789 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
790
791         * graphite-blocking.c (scop_do_strip_mine): Do not call
792         graphite_legal_transform.
793         (scop_do_block): Same.
794
795 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
796
797         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
798         description.
799
800 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
801
802         * tree-scalar-evolution.c (instantiate_array_ref): New.
803         (instantiate_scev_r): Also handle ARRAY_REFs.
804
805 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
806
807         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
808         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
809         RESULT_DECL, and FIELD_DECL.  Return false for an
810         SSA_NAME_IS_DEFAULT_DEF.
811         (compute_scalar_evolution_in_loop): Do not further analyze the
812         scalar evolution when no_evolution_in_loop_p returns true.
813
814 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
815
816         * tree-chrec.h (evolution_function_is_affine_p): Do not check
817         whether CHREC_LEFT is invariant.  A function is affine when
818         CHREC_RIGHT is invariant.
819
820 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
821
822         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
823         is_gimple_reg.
824         (rewrite_degenerate_phi): Same.
825         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
826
827 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
828
829         * graphite-scop-detection.c (graphite_can_represent_scev,
830         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
831         graphite_can_represent_loop): Remove outermost_loop.
832
833 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
834
835         PR middle-end/45229
836         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
837         handle GIMPLE_CALLs with no LHS.
838
839 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
840
841         * graphite-poly.c (init_graphite_out_file): New.
842         (init_graphite_in_file): New.
843         (apply_poly_transforms): Updated to enable reading and writing of
844         multiple scop files.
845
846 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
847
848         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
849         redundant checks.
850
851 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
852
853         * graphite-clast-to-gimple.c (precision_for_value): Adjust
854         computation of precision by 1.
855
856 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
857
858         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
859         (openscop_read_polyhedron_matrix): New.
860         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
861         (openscop_read_N_int): Same.
862         * graphite-poly.c (openscop_read_N_int): New.
863         (openscop_read_one_int): New.
864         (openscop_read_N_string): New.
865         (openscop_read_one_string): New.
866         (openscop_read_powerset_matrix): New.
867         (graphite_read_transforms): Remove.
868         (graphite_read_scatt): New.
869         (graphite_read_scop_file): New.
870         (apply_poly_transforms): Updated to call graphite_read_scop_file.
871
872 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
873
874         * graphite-poly.c: Change include order.
875
876 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
877
878         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
879         (cloog_matrix_nrows): New.
880
881 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
882
883         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
884         from matrix lines.
885         * graphite-poly.c (openscop_print_scattering_function_1): Same.
886         (print_scattering_function_1): Same.
887         (openscop_print_pbb_domain): Same.
888         (openscop_print_scop_context): Same.
889         (print_scop_context): Same.
890
891 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
892
893         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
894         (openscop_print_pdr_polyhedron): Print pph.
895
896 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
897
898         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
899         priority signed types.
900
901 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
902
903         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
904         the call to lang_hooks.types.type_for_size.  Call
905         build_nonstandard_integer_type.
906
907 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
908
909         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
910         (openscop_print_polyhedron_matrix): New.
911         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
912         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
913         (openscop_print_pdr_powerset): New.
914         (openscop_print_powerset_matrix): New.
915         (openscop_print_scattering_function_1): New.
916         (print_scattering_function): Add support for scattering names and
917         OpenScop format.
918         (graphite_write_transforms): Remove.
919         (print_pdr_access_layout): Updated to support OpenScop format.
920         (print_pdr): Same.
921         (openscop_print_pbb_domain): New.
922         (print_pbb_body): Added a parameter to allow indicating that pbb_body
923         is not provided.
924         (print_pbb): Updated to call the new print_pbb_body.
925         (openscop_print_scop_context): New.
926         (print_scop_header): New.
927         (print_scop): Updated to call print_scop_header.
928         * graphite-poly.h: Document OpenScop format.
929
930 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
931
932         * config/cris/m32c.c (cris_memory_move_cost): New.
933         (cris_register_move_cost): Make static. Change arguments type from
934         enum reg_class to reg_class_t.
935         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
936         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
937         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
938
939 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
940
941         PR target/45843
942         * config/i386/i386.c (ix86_gimplify_va_arg): Use
943         INTVAL (XEXP (slot, 1)) as prev_size.
944
945 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
946
947         PR target/45837
948         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
949         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
950         defined.
951         * config/rs6000/option-defaults.h (toplevel): Change #if
952         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
953         global option changes.
954
955 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
956
957         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
958
959         PR tree-optimization/31261
960         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
961         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
962
963 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
964
965         PR bootstrap/45796
966         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
967         special-casing for generators and turn into ...
968         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
969         rule, for better error messages in case of toplevel dependency errors.
970         (genprog): Add hooks, rename to ...
971         (genprogerr): ... this, and let genprog also contain check,
972         checksum, condmd.
973         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
974         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
975         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
976
977 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
978             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
979
980         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
981         for GMP, MPFR and MPC.
982
983 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
984
985         * config/sparc/sparc.opt (mimpure-text): Move ...
986         * config/sol2.opt: ... here.  Correct description.
987         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
988         * doc/invoke.texi (Option Summary, SPARC Options): Move
989         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
990         (Option Summary, Solaris 2 Options): ... here.
991         (Submodel Options, Solaris 2 Options): New menu entry.
992         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
993         (Solaris 2 Options): ... here.
994
995 2010-09-30  Michael Eager  <eager@eagercon.com>
996
997         * extend.texi (interrupt_handler): Add MicroBlaze to list.
998         (save_volatiles): Describe option for MicroBlaze.
999         * invoke.texi: Add MicroBlaze Options.
1000         * contrib.texi: Add acknowledgment.
1001         * md.texi: Add MicroBlaze d and z constraints.
1002         * install.texi: Add microblaze-*-elf.
1003         * configure.ac: Add microblaze-*-* to target list.
1004         * configure: Regenerate.
1005         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
1006         * config/microblaze/microblaze-protos.h: New.
1007         * config/microblaze/crti.s: New.
1008         * config/microblaze/predicates.md: New.
1009         * config/microblaze/linux.h: New.
1010         * config/microblaze/microblaze.md: New.
1011         * config/microblaze/constraints.md: New.
1012         * config/microblaze/crtn.s: New.
1013         * config/microblaze/microblaze.opt: New.
1014         * config/microblaze/microblaze-c.c: New.
1015         * config/microblaze/t-microblaze: New.
1016         * config/microblaze/microblaze.c: New.
1017         * config/microblaze/microblaze.h: New.
1018
1019 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1020
1021         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
1022         parse @optional/@required and set the flags as appropriate.
1023
1024 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
1025
1026         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
1027
1028 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
1029
1030         * opt-functions.awk (static_var): Update comment.
1031         (var_ref): Return offsetof expression or -1, not variable address.
1032         * optc-gen.awk: Generate structure field initializers instead of
1033         static variables.  Expect -1 for missing variables instead of null
1034         pointer.  Add gcc_options parameters to generated functions.
1035         * opth-gen.awk: Generate structure fields for static variables.
1036         Add gcc_options parameters to generated functions.
1037         * common.opt (optimize, optimize_size): Add variables.
1038         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
1039         &global_options to cl_target_option_restore.
1040         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
1041         &global_options to cl_optimization_restore, cl_target_option_save
1042         and cl_target_option_restore.
1043         (ix86_set_current_function): Pass &global_options to
1044         cl_target_option_restore.
1045         * config/pdp11/pdp11.h (optimize): Remove.
1046         * config/rs6000/rs6000.h (optimize): Remove.
1047         * config/sh/sh.h (optimize): Remove.
1048         * config/xtensa/xtensa.h (optimize): Remove.
1049         * coretypes.h (struct gcc_options): Declare.
1050         * diagnostic.c (diagnostic_initialize): Initialize
1051         context->option_state.
1052         (diagnostic_report_diagnostic): Pass option_state to
1053         option_enabled hook.
1054         * diagnostic.h (diagnostic_context.option_enabled): Add void *
1055         parameter.
1056         (diagnostic_context.option_state): New field.
1057         * final.c (final_start_function, final, final_scan_insn): Rename
1058         optimize parameter to optimize_p.
1059         * flags.h (optimize, optimize_size): Remove.
1060         * function.c (invoke_set_current_function_hook): Pass
1061         &global_options to cl_optimization_restore.
1062         * gcc.c (driver_handle_option): Take gcc_options parameter.
1063         Assert that it is &global_options.
1064         (process_command): Pass &global_options to read_cmdline_option.
1065         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
1066         option_enabled.
1067         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
1068         &global_options to set_option.
1069         * opts-common.c (handle_option, handle_generated_option,
1070         read_cmdline_option, set_option): Take explicit gcc_options
1071         parameters.  Use option_flag_var.
1072         (option_flag_var): New.
1073         * opts.c (common_handle_option, lang_handle_option,
1074         target_handle_option): Take gcc_options parameter.  Assert that it
1075         is &global_options.
1076         (read_cmdline_options): Pass &global_options to read_cmdline_option.
1077         (print_filtered_help): Use option_flag_var.  Pass &global_options
1078         to option_enabled.
1079         (common_handle_option): Use option_flag_var.
1080         (option_enabled): Take opts parameter.  Use option_flag_var.
1081         (get_option_state): Take gcc_options parameter.  Use
1082         option_flag_var.  Pass gcc_options parameter to option_enabled.
1083         (enable_warning_as_error): Pass &global_options to
1084         handle_generated_option.
1085         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
1086         (cl_option_handler_func.handler): Take gcc_options parameter.
1087         (option_enabled, get_option_state, set_option, handle_option,
1088         handle_generated_option, read_cmdline_option): Take gcc_options
1089         parameters.
1090         * toplev.c (optimize, optimize_size): Remove.
1091         (print_switch_values): Pass &global_options to option_enabled.
1092         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
1093         to get_option_state.
1094         (general_init): Initialize global_dc->option_state.
1095         * tree.c (build_optimization_node): Pass &global_options to
1096         cl_optimization_save.
1097         (build_target_option_node): Pass &global_options to
1098         cl_target_option_save.
1099
1100 2010-09-30  Martin Jambor  <mjambor@suse.cz>
1101
1102         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
1103         zero sized bit-fields.
1104
1105 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1106
1107         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
1108         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
1109         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
1110         (c_parser_objc_class_declaration): Same change.
1111         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
1112         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1113         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
1114         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
1115         and RID_AT_PUBLIC instead of RID_PUBLIC.
1116         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
1117         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1118
1119 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
1120
1121         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
1122         Add links to current providers of packages for Solaris and IRIX.
1123
1124 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1125
1126         Merge from 'apple/trunk' branch on FSF servers.
1127         * c-parser.c: Applied change originally in c-parse.in.
1128
1129         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1130
1131         Radar 4281748
1132         * c-decl.c (start_decl): Check for redeclaration of class name.
1133         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
1134
1135 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
1136
1137         * config/ia64/ia64.c (ia64_builtin_decl): New.
1138         (TARGET_BUILTIN_DECL): Define.
1139         (ia64_builtins): New.
1140         (ia64_init_builtins): Save decls in ia64_builtins.
1141
1142 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
1143
1144         PR target/40457
1145         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
1146         (move2add_use_add3_insn): Likewise.
1147         (reload_cse_move2add): Likewise.
1148         * rtlanal.c (get_full_rtx_cost): New function.
1149         * rtl.h (struct full_rtx_costs): New.
1150         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
1151         costs_add_n_insns): New inline functions.
1152         (get_full_rtx_cost): Declare.
1153
1154         PR c/45054
1155         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
1156         invariants.  Check for reg_equiv_invariant.
1157         (reload): Assert that spilled_pseudos is empty when returning.
1158
1159 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
1160
1161         * config/i386/mingw32.h (TARGET_64BIT): replaced by
1162         TARGET_64BIT_DEFAULT in #if check.
1163
1164 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
1165
1166         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
1167
1168 2010-09-29  Mike Stump  <mikestump@comcast.net>
1169
1170         * config/darwin.h (flag_mkernel): Remove.
1171         (flag_apple_kext): Likewise.
1172
1173 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1174             Jack Howarth <howarth@bromo.med.uc.edu>
1175
1176         * config/darwin.opt (undefined): Add.
1177
1178 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1179
1180         PR testsuite/45664
1181         * configure.ac: Add --enable-indirect-function option.
1182         * config.gcc: Add default_gnu_indirect_function.
1183         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
1184         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
1185         * varasm.c (do_assemble_alias): Adjust for macro name change.
1186         * configure: Rebuilt.
1187         * doc/install.texi: Document --enable-indirect-function.
1188
1189 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1190
1191         * doc/options.texi (Variable, Var, Init): Update documentation
1192         without reference to VarExists.
1193         (VarExists): Remove.
1194         * common.opt, config/i386/i386.opt, config/linux.opt,
1195         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
1196         Don't use VarExists.
1197
1198 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1199
1200         * optc-gen.awk: Generate global_options initializer instead of
1201         individual variables.  Add x_ prefix to names of structure members.
1202         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
1203         names of structure members.
1204         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1205         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
1206         * doc/tm.texi: Regenerate.
1207         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1208         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1209         * c-parser.c (disable_extension_diagnostics,
1210         restore_extension_diagnostics): Update names of cpp_options members.
1211         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1212         * common.opt (fcompare-debug-second): Don't use Var.
1213         * config/alpha/alpha.h (target_flags): Remove.
1214         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1215         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1216         * config/bfin/bfin.h (target_flags): Remove.
1217         * config/cris/cris.h (target_flags): Remove.
1218         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
1219         cl_target_option members.
1220         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
1221         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
1222         ix86_can_inline_p): Update names of cl_target_option members.
1223         * config/i386/i386.h (ix86_isa_flags): Remove.
1224         * config/lm32/lm32.h (target_flags): Remove.
1225         * config/mcore/mcore.h (mcore_stack_increment): Remove.
1226         * config/mcore/mcore.md (addsi3): Remove extern declaration of
1227         flag_omit_frame_pointer.
1228         * config/mep/mep.h (target_flags): Remove.
1229         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1230         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1231         * config/mmix/mmix.h (target_flags): Remove.
1232         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
1233         flag_expensive_optimizations): Remove.
1234         * config/s390/s390.h (flag_pic): Remove.
1235         * config/score/score-conv.h (target_flags): Remove.
1236         * config/sh/sh.h (sh_fixed_range_str): Remove.
1237         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
1238         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1239         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1240         * diagnostic.c (diagnostic_initialize): Update names of
1241         diagnostic_context members.
1242         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
1243         warn_system_headers.
1244         (diagnostic_report_warnings_p): Update for new names.
1245         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1246         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
1247         HARD_FRAME_POINTER_IS_ARG_POINTER.
1248         * flags.h (flag_compare_debug): Declare.
1249         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1250         * opts.c (flag_compare_debug): Define.
1251         (common_handle_option): Update names of diagnostic_context
1252         members.  Handle -fcompare-debug-second.
1253         (fast_math_flags_struct_set_p): Update names of cl_optimization
1254         members.
1255         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1256         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1257         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1258         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1259         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1260         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1261         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
1262         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1263         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1264
1265 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
1266
1267         * config/picochip/picochip.c (picochip_output_internal_label):
1268         This function can now be called for debug CFI labels, which can come
1269         in the middle of a vliw instruction.  Postpone until end of vliw.
1270
1271 2010-09-29  Richard Guenther  <rguenther@suse.de>
1272
1273         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
1274         (DECL_FILE_SCOPE_P): Use it.
1275         (TYPE_FILE_SCOPE_P): New macro.
1276
1277 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1278
1279         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
1280         a CPP_NAME which is a reserved word, clearly separate cases for
1281         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
1282
1283 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1284
1285         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
1286         token->value with the canonical spelling.  Do exactly like C and
1287         C++ and leave it as it is.
1288
1289 2010-09-28  Richard Henderson  <rth@redhat.com>
1290
1291         * config/alpha/alpha.c (alpha_builtins): New.
1292         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
1293         (alpha_builtin_function): New.
1294         (alpha_add_builtins, alpha_init_builtins): Use it.
1295
1296 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1297
1298         * doc/standards.texi (Standards): Expanded the section on
1299         Objective-C and Objective-C++.
1300
1301 2010-09-28  DJ Delorie  <dj@redhat.com>
1302
1303         PR target/45800
1304         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
1305         volatile MEMs.
1306
1307 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1308
1309         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
1310         attributes on methods.
1311          (c_parser_objc_method_definition): Handle attributes.
1312         (c_parser_objc_methodproto): Likewise.
1313         (c_parser_objc_maybe_method_attributes): New.
1314         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
1315         missing definition, similar to that in ObjC++.
1316
1317 2010-09-28  Richard Henderson  <rth@redhat.com>
1318
1319         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
1320         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1321         (CONFIG_SJLJ_EXCEPTIONS): Remove.
1322         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
1323         (STACK_CHECK_PROTECT): Likewise.
1324         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
1325         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
1326         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
1327         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
1328         (dwarf2out_assembly_start): Likewise.
1329         * except.c (init_eh): Use targetm.except_unwind_info.
1330         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
1331         (output_one_function_exception_table): Likewise.
1332         * final.c: Unconditionally include dwarf2out.h.
1333         (final_start_function): Unconditionally call dwarf2out routines.
1334         (final_end_function, final_scan_insn): Likewise.
1335         * function.c (expand_function_end): Use targetm.except_unwind_info.
1336         * opts.c (decode_options): Use targetm.except_unwind_info.
1337         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
1338         * target.def (debug_unwind_info, except_unwind_info): New.
1339         * target.h (enum unwind_info_type): New.
1340         * targhooks.c (default_debug_unwind_info): New.
1341         (default_except_unwind_info): New.
1342         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
1343         * targhooks.h: Declare them.
1344         * tree-tailcall.c: Include "target.h"
1345         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
1346         * Makefile.in (tree-tailcall.o): Update.
1347         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
1348         (lhd_gcc_personality): Likewise.
1349
1350         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
1351         (TARGET_EXCEPT_UNWIND_INFO): New.
1352         (DWARF2_UNWIND_INFO): Update.
1353         (TARGET_DEBUG_UNWIND_INFO): New.
1354         * doc/tm.texi: Rebuild.
1355
1356         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
1357         targetm.except_unwind_info.
1358
1359         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
1360         (arm_except_unwind_info): New.
1361         (arm_compute_func_type): Use it.
1362         (arm_expand_prologue, thumb_pushpop): Likewise.
1363         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
1364         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
1365         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
1366         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
1367         (DWARF2_UNWIND_INFO): Remove.
1368         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1369         (ARM_EABI_UNWIND_TABLES): Remove.
1370
1371         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
1372         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
1373         (ia64_except_unwind_info): New.
1374         (ia64_output_function_prologue): Use it.
1375         (ia64_add_bundle_selector_before): Likewise.
1376         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
1377         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
1378         (TARGET_UNWIND_INFO): Remove.
1379
1380         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
1381
1382 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1383
1384         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
1385         (c_parser_objc_protocol_definition): Likewise.
1386         (c_parser_external_declaration): Provide dummy attribute arguments.
1387         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
1388         (c_parser_objc_class_definition): Handle attributes.
1389         (c_parser_objc_protocol_definition): Likewise.
1390
1391 2010-09-28  Tobias Burnus  <burnus@net-b.de>
1392
1393         PR fortran/40569
1394         PR fortran/40568
1395         * toplev.h (save_decoded_options, save_decoded_options_count):
1396         New global variables.
1397         * toplev.c (save_decoded_options, save_decoded_options_count):
1398         Export variables.
1399
1400 2010-09-28  Ian Lance Taylor  <iant@google.com>
1401
1402         * config/i386/i386.c (ix86_supports_split_stack): Test
1403         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
1404
1405 2010-09-28  Ian Lance Taylor  <iant@google.com>
1406
1407         PR target/45815
1408         * opts.c (decode_options): Don't test whether the target supports
1409         split stack if flag_split_stack == 0.
1410
1411 2010-09-28  Jan Hubicka  <jh@suse.cz>
1412
1413         * builtin-attrs.def (ATTR_LEAF): New attribute.
1414         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
1415         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
1416         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
1417         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
1418         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
1419         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
1420         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
1421         * sync-builtins.def: Annotate all builtins by leaf.
1422         * omp-builtins.def: Annotate all builtins by leaf.
1423         * builtins.def: Annotate relevant builtins with leaf attribute.
1424         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1425         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
1426         leaf.
1427
1428 2010-09-28  Jan Hubicka  <jh@suse.cz>
1429
1430         * tree-ssa-ccp.c (fold_ctor_reference): New function.
1431         (fold_const_aggregate_ref): Use it.
1432         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
1433         into external static.
1434
1435 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1436
1437         PR target/44452
1438         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
1439         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
1440         (ix86_solaris_return_in_memory): Remove.
1441         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
1442         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1443         (TARGET_SUBTARGET_DEFAULT): Redefine.
1444         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
1445         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1446         (TARGET_SUBTARGET_DEFAULT): Redefine.
1447         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1448         -mvect8-ret-in-mem.
1449         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1450
1451 2010-09-29  Alan Modra  <amodra@gmail.com>
1452
1453         PR target/45807
1454         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1455         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1456         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1457         Delete.
1458         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1459         (rs6000_emit_prologue): Don't just create frame save info for r2,
1460         actually save r2.
1461
1462 2010-09-28  Richard Henderson  <rth@redhat.com>
1463
1464         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1465         when 8 bytes are requested.
1466
1467 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1468
1469         * config/avr/avr.c (expand_prologue): Set
1470         current_function_static_stack_size.
1471
1472 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1473
1474         * config/alpha/alpha.md: Change the initial condition of the
1475         probing loop.
1476
1477 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
1478
1479         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1480         Split from *avx_<maxmin:code><mode>3.
1481         (*avx_<smaxmin:code><mode>3): Ditto.
1482         * config/i386/i386.md (maxmin): Remove code iterator.
1483
1484 2010-09-27  Ian Lance Taylor  <iant@google.com>
1485
1486         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1487         requires assembler support for CFI directives.
1488
1489 2010-09-27  Richard Henderson  <rth@redhat.com>
1490
1491         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1492
1493 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1494
1495         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1496         that AFTER is not in the range FROM..TO, inclusive.
1497
1498 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1499             Bernd Schmidt  <bernds@codesourcery.com>
1500
1501         PR rtl-optimization/45792
1502         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1503         If not all insns are to be merged, for each edge, stash the
1504         next candidate after the to-be-merged insns before doing the
1505         merge, and use them for the retry at the new insertion point.
1506         Handle CC0 targets when retrying.
1507
1508 2010-09-27  Ian Lance Taylor  <iant@google.com>
1509
1510         * common.opt (fsplit-stack): New option.
1511         * opts.c (decode_options): Set flag_split_stack to final value.
1512         * target.def (supports_split_stack): New hook.
1513         * gcc.c (STACK_SPLIT_SPEC): Define.
1514         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1515         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1516         (Code Gen Options): Document -fsplit-stack.
1517         * doc/extend.texi (Function Attributes): Mention no_split_stack.
1518         (Function Attributes): Document no_split_stack.
1519         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1520         TARGET_SUPPORTS_SPLIT_STACK.
1521         * doc/tm.texi: Rebuild.
1522         * function.c (thread_prologue_and_epilogue_insns): If
1523         flag_split_stack, add split stack prologue.
1524         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1525         * varasm.c (saw_no_split_stack): New static variable.
1526         (assemble_start_function): Set saw_no_split_stack if the function
1527         has the no_split_stack attribute.
1528         (file_end_indicate_split_stack): New function.
1529         * output.h (file_end_indicate_split_stack): Declare.
1530         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1531         and function.
1532         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1533         routines.
1534         * config/i386/i386.c (ix86_option_override_internal): Don't set
1535         expand_builtin_va_start to NULL if -fsplit-stack.
1536         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1537         -fsplit-stack.
1538         (ix86_va_start): If -fsplit-stack, get overflow pointer from
1539         scratch register set by prologue.
1540         (ix86_code_end): If -fsplit-stack, call
1541         file_end_indicate_split_stack.
1542         (ix86_supports_split_stack): New static function.
1543         (SPLIT_STACK_AVAILABLE): Define.
1544         (split_stack_prologue_scratch_regno): New static function.
1545         (split_stack_fn): New static variable.
1546         (ix86_expand_split_stack_prologue): New function.
1547         (ix86_live_on_entry): New static function.
1548         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1549         (output_pic_addr_const): Likewise.
1550         (i386_asm_output_addr_const_extra): Likewise.
1551         (ix86_expand_call): Change return type to rtx.  Return the new
1552         call instruction.
1553         (TARGET_SUPPORTS_SPLIT_STACK): Define.
1554         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1555         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1556         (split_stack_prologue, split_stack_return): New insns.
1557         (split_stack_space_check): New insn.
1558         * config/i386/i386.h (struct machine_function): Add
1559         split_stack_varargs_pointer field.
1560         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1561         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1562         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1563         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1564         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1565         Declare.
1566         (ix86_expand_call): Update declaration.
1567
1568 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1569
1570         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1571         code.  Added byref, which was missing in the list of codes.
1572         Explain that enumeration values are encoded as the integer type
1573         that the compiler uses to store them.  Explain and make examples
1574         of how 'const' interacts with pointers, and the complication of
1575         the encoding of 'const char *'.
1576         (Legacy type encoding): New subsection, explaining that GCC emits
1577         incorrect type encodings for the NeXT runtime for compatibility
1578         reasons.
1579         (@@encode): New subsection, explaining @encode and particularly
1580         that protocol qualifiers are not recognized inside an @encode()
1581         expression.
1582         (Method signatures): New subsection, explaining how method
1583         signatures are encoded.
1584
1585 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1586
1587         Merge from 'apple/trunk' branch on FSF servers.  Removed small
1588         change in build_conditional_expr that had been added when fixing
1589         PR objc/27377 and which did the same check in a less complete way.
1590
1591         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1592
1593         Radar 4229905
1594         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1595         looking for objective-c common pointer types.
1596
1597         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1598
1599         Radar 4154928
1600         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1601         use their ObjC common type.
1602
1603 2010-09-27  Richard Guenther  <rguenther@suse.de>
1604
1605         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1606
1607 2010-09-27  Jie Zhang  <jie@codesourcery.com>
1608
1609         * print-tree.c (print_node): Print in-constant-pool.
1610
1611 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
1612
1613         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1614         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1615         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1616         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1617
1618 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1619
1620         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1621         from pro_epilogue_adjust_stack_<mode>_{1,2}.
1622         (pro_epilogue_adjust_stack_<mode>_add): Rename from
1623         pro_epilogue_adjust_stack_<mode>_3.
1624         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1625         renamed pro_epilogue_adjust_stack_{si,di}_add.
1626         (ix86_expand_prologue): Use indirect functions.  Update for renamed
1627         pro_epilogue_adjust_stack_{si,di}_sub.
1628
1629 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1630
1631         * config/i386/i386.md (movmsk_df): New insn.
1632         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
1633         sequence for TARGET_SSE_MATH.
1634
1635 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
1636
1637         * config/mips/mips.c (mips_builtin_decls): Declare.
1638         (mips_init_builtins): Store function declarations in
1639         mips_builtin_decls.
1640         (mips_builtin_decl): New function.
1641         (TARGET_BUILTIN_DECL): Define.
1642
1643 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
1644             Richard Henderson  <rth@redhat.com>
1645
1646         * config/i386/cygwin.asm: Include auto-host.h.
1647         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1648         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1649         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
1650         alignment code from the 64-bit path.  Use gas local labels.
1651         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1652         from _di_2.  Remove the useless constant integer argument.
1653         (pro_epilogue_adjust_stack_<mode>_3): New.
1654         (allocate_stack_worker_probe_<mode>): Macroize from
1655         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
1656         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1657         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1658         (__chkstk_ms): New function.
1659         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1660         * gcc/config/i386/t-interix: Likewise.
1661         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1662         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1663         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1664         * configure, config.in: Rebuild.
1665
1666 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1667
1668         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1669         statements because of the return slot optimization.
1670
1671 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
1672
1673         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1674         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1675         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1676         (class_likely_spilled_p): Rename to...
1677         (avr_class_likely_spilled_p): ...this. Make static. Change argument
1678         type to reg_class_t.
1679
1680 2010-09-24  Jan Hubicka  <jh@suse.cz>
1681
1682         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1683         (lto_symtab_resolve_symbols): Set it.
1684         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1685         store resolution field in cgraph/varpool.
1686         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1687         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1688         (cgraph_dump_node): Drop used_from_object_file.
1689         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1690         (cgraph_function_body_availability): Use decl_replaceable_p.
1691         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1692         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1693         cgraph_used_from_object_file_p.
1694         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1695         cgraph_used_from_object_file_p.
1696         (resolution_used_from_other_file_p): New functoin.
1697         (cgraph_used_from_object_file_p): New predicate.
1698         * cgraph.h: Include plugin-api.h
1699         (struct cgraph_local_info): Remove used_from_object_file.
1700         (struct cgraph_node): Add resolution field.
1701         (struct varpool_node): Likewise; remove used_from_object_file;
1702         reove const_value_known.
1703         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1704         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1705         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1706         varpool_used_from_object_file_p): Declare.
1707         (varpool_get_node, varpool_extra_name_alias): Update prototype.
1708         * tree.h (DECL_REPLACEABLE_P): Remove.
1709         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1710         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1711         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1712         input_overwrite_node, input_node, input_varpool_node): Stream
1713         resolution.
1714         * expr.c (expand_expr_real_1): Use const_value_known_p
1715         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1716         const_value_known.
1717         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1718         (function_and_variable_visibility): Set resolution for local vars
1719         and functions; use varpool_used_from_object_file_p.
1720         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1721         static functions.
1722         (default_binds_local_p_1): Use resolutoin info.
1723         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1724         * varpool.c (varpool_get_node): Constify.
1725         (const_value_known_p): Do not use vnode->const_value_known;
1726         use decl_replaceable_p.
1727         (varpool_finalize_decl): Do not set const_value_known.
1728         (cgraph_variable_initializer_availability): Use decl_replaceable_p
1729         (varpool_extra_name_alias): Return new node.
1730         (varpool_used_from_object_file_p): New function.
1731
1732 2010-09-24  Richard Henderson  <rth@redhat.com>
1733
1734         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1735         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1736         (do_spill): Use REG_CFA_OFFSET.
1737         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1738         as appropriate.
1739         (ia64_expand_epilogue): Likewise.
1740         (process_set): Split into ...
1741         (process_cfa_adjust_cfa): this,
1742         (process_cfa_register): this,
1743         (process_cfa_offset): and this new function.
1744         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
1745         instead of REG_FRAME_RELATED_EXPR.
1746
1747 2010-09-24  Olivier Hainque  <hainque@adacore.com>
1748
1749         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1750
1751 2010-09-24  Jan Hubicka  <jh@suse.cz>
1752
1753         * doc/extend.texi: (attribute leaf): Document.
1754         * tree.c (local_define_builtin): Handle ECF_LEAF.
1755         (build_common_builtin_nodes): Set ECF_LEAF where needed.
1756         * tree.h (ECF_LEAF): New.
1757         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1758         overwrittable and unavailable functions.
1759         (ipa_init): Put all_module_statics into optimization_summary_obstack.
1760         (copy_global_bitmap): Do not copy all_module_statics.
1761         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1762         (propagate): Handle overwritable and unavailable leaf functions;
1763         initialize global info for overwritable and unavailable leaf functions;
1764         do not free all module statics.
1765         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1766         local statics.
1767         * calls.c (flags_from_decl_or_type): Handle leaf.
1768         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1769         abnormal gotos.
1770
1771 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
1772
1773         * gengtype.c: Reindented.
1774         * gengtype.h: Reindented.
1775         * gengtype-parse.c: Reindented.
1776
1777 2010-09-24  Jan Hubicka  <jh@suse.cz>
1778
1779         PR tree-optimization/45738
1780         PR tree-optimization/45741
1781         * expr.c (string_constant): Allow CONST_DECL too;
1782         check that DECL_INITIAL is set.
1783         * varpool.c (const_value_known_p): Only look into VAR_DECL
1784         and CONST_DECL.
1785
1786 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
1787
1788         * common.opt (undef): New.
1789
1790 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
1791
1792         PR middle-end/45234
1793         * rtl.h (enum global_rtl_index): Add
1794         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1795         (LAST_VIRTUAL_POINTER_REGISTER): Define.
1796         (virtual_preferred_stack_boundary_rtx,
1797         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1798         (LAST_VIRTUAL_REGISTER): Increase by one.
1799         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1800         instead of LAST_VIRTUAL_REGISTER.
1801         * function.c (instantiate_new_reg): Handle
1802         virtual_preferred_stack_boundary_rtx.
1803         * emit-rtl.c (init_virtual_regs): Handle
1804         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1805         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1806         * explow.c (round_push): If crtl->preferred_stack_boundary
1807         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1808         virtual_preferred_stack_boundary_rtx alignment instead of
1809         crtl->preferred_stack_boundary alignment.
1810         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1811         macros.  Never decrease crtl->preferred_stack_boundary,
1812         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1813         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
1814         stack_pointer_delta in dynamic allocation, even when size
1815         is constant.
1816         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1817         macro.
1818         * print-rtl.c (print_rtx): Handle
1819         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1820         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1821         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1822         * config/frv/frv.c (frv_emit_movsi): Likewise.
1823         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1824         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1825         Likewise.
1826
1827         Revert:
1828         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1829
1830         PR middle-end/45234
1831         * calls.c (expand_call): Make sure that all variable sized
1832         adjustments are multiple of preferred stack boundary after
1833         stack alignment.
1834
1835 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1836             Dominique Dhumieres  <dominiq@lps.ens.fr>
1837
1838         PR bootstrap/45751
1839         * gcc/config/darwin-driver.c (darwin_default_min_version):
1840         Adjust size passed to memcpy in two places.
1841
1842 2010-09-24  Richard Guenther  <rguenther@suse.de>
1843
1844         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1845         Make sure to not call set_type_context with error_mark_node.
1846         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1847
1848 2010-09-24  Richard Guenther  <rguenther@suse.de>
1849
1850         * Makefile.in (OBJS-onestep): Remove.
1851         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1852         (libbackend.a): Remove onestep support.
1853         (libbackend.o): Remove.
1854         * configure.ac (--enable-intermodule): Remove.
1855         * configure: Regenerate.
1856
1857 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1858
1859         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1860         reaching the end of a block if it occurs at a DEBUG_INSN.
1861
1862 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1863
1864         PR target/44242
1865         * config/vms/vms-crt0-64.c: Removed.
1866         * config/vms/vms-crt0.c: Removed.
1867         * config/vms/vms-psxcrt0-64.c: Removed.
1868         * config/vms/vms-psxcrt0.c: Removed.
1869         * config/vms/vms-ucrt0.c: New file.
1870         * config/vms/t-vms64: Removed.
1871         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1872         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1873         * config.gcc (alpha-dec-vms): Use t-vms.
1874
1875 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1876
1877         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1878         underfull hbox in DVI output.
1879         (-fobjc-class-cxx-cdtors): Same change.
1880         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1881         option does, but moved the (lenghty) description of the exception
1882         syntax into objc.texi.
1883         (-fobjc-gc): Explain that the option is not useful with the GNU
1884         runtime.
1885         (-fzero-link): Explain that the GNU runtime always works in
1886         "zero-link" mode.
1887         * doc/objc.texi: All sections: simplified @node declarations
1888         removing specification of next, previous, up node.
1889         (Objective-C): Updated introduction.
1890         (Garbage Collection): Updated.  The bohem-gc library is now
1891         included in gcc itself.  Mention that this section only applies to
1892         the GNU Objective-C runtime.
1893         (compatibility_alias): Small tidy up.
1894         (Exceptions): New section mostly containing text previously in the
1895         description of the -fobjc-exception command-line option.
1896         (Synchronization): Same.
1897
1898 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1899
1900         * config/i386/i386.md (ix86_code_end): Move the initialization of
1901         xops array near the consumer.  Use AX_REG and SP_REG instead of
1902         numerical constants.
1903
1904 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1905
1906         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1907         method [methodname]' for an Objective-C method instead of the less
1908         satisfactory 'too many arguments to function' (with no method name).
1909
1910 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1911
1912         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1913         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1914         (execute_update_addresses_taken): Remove parameter.  Execute the
1915         optimization unconditionally.
1916         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1917         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1918         if TODO_update_address_taken is set.
1919
1920 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1921
1922         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1923         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1924         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1925         (arm_output_addr_const_extra): Make static.
1926
1927 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1928
1929         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1930         define as unspec_volatile.
1931         ("nops"): Define as unspec_volatile. Use fputs to write to
1932         asm_out_file directly.  Output NOPs on separate lines using while loop.
1933         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1934         asm_out_file directly.  Output NOPs on separate lines using while loop.
1935
1936 2010-09-23  Richard Guenther  <rguenther@suse.de>
1937
1938         PR tree-optimization/45565
1939         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1940         Make sure to adjust the fndecl before replacing the stmt.
1941
1942 2010-09-23  Richard Guenther  <rguenther@suse.de>
1943
1944         PR middle-end/45750
1945         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1946         gimplifying MEM_REF.
1947
1948 2010-09-23  Alan Modra  <amodra@gmail.com>
1949
1950         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1951         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1952
1953 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1954
1955         PR rtl-optimization/44374
1956         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1957         * df-core.c (df_set_bb_dirty): Set it.
1958         * ifcvt.c (find_memory): Remove function.
1959         (dead_or_predicable): Use can_move_insns_across.
1960         * df.h (can_move_insns_across): Declare function.
1961         * cfgcleanup.c (block_was_dirty): New static variable.
1962         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1963         than df_get_bb_dirty.
1964         (try_head_merge_bb): New static function.
1965         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1966         is set.
1967         * df-problems.c: Include "target.h"
1968         (df_simulate_find_uses): New static function.
1969         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1970         (find_memory, find_memory_store): New static functions.
1971         (can_move_insns_across): New function.
1972         * Makefile.in (df-problems.o): Update dependencies.
1973
1974 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1975
1976         PR java/44095
1977         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1978         is specified and the suffix of the file isn't ".c".
1979         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1980
1981 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1982
1983         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1984         * doc/cppopts.texi: Fix markup of index entry.
1985         * doc/extend.texi (Constructing Calls): Fix markup of
1986         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1987         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1988         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1989         keywords.
1990         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1991         avoid long lines.
1992         (C Dialect Options, C++ Dialect Options, Warning Options)
1993         (Debugging Options, Spec Files, Darwin Options)
1994         (i386 and x86-64 Options, MIPS Options)
1995         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1996         index entries, avoid abbreviations, allow URLs to wrap, avoid
1997         long lines, avoid overlong pages from long @itemx lists.
1998         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1999         * doc/standards.texi (Standards): Likewise.
2000         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
2001
2002 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2003
2004         * opts-common.c (prune_options): Make static.  Work with decoded
2005         options.
2006         (decode_cmdline_options_to_array): Call prune_options.  Don't
2007         resize option array here.
2008         * opts.h (prune_options): Remove prototype.
2009         * gcc.c (process_command): Take decoded options; don't call
2010         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
2011         (main): Call decode_cmdline_options_to_array here instead of
2012         prune_options.  Update call to process_command.
2013         * config/darwin-driver.c: Include opts.h.
2014         (darwin_default_min_version): Work with decoded options.  Don't
2015         handle -b or -V here.
2016         * config/darwin.h (darwin_default_min_version): Update prototype.
2017         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
2018         darwin_default_min_version.
2019         * config/i386/cygwin.h (mingw_scan): Update prototype.
2020         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
2021         * config/i386/cygwin1.c: Include opts.h.
2022         (mingw_scan): Work with decoded options.
2023         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
2024         * config/t-darwin (darwin-driver.o): Update dependencies.
2025
2026 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2027
2028         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
2029         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
2030         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
2031         -force-link, -force-link=, -language, -language=,
2032         -library-directory, -library-directory=, -no-canonical-prefixes,
2033         -no-standard-libraries, -no-warnings, -optimize, -output,
2034         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
2035         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
2036         -print-file-name=, -print-libgcc-file-name,
2037         -print-multi-directory, -print-multi-lib,
2038         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
2039         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
2040         -profile, -save-temps, -shared, -specs, -specs=, -static,
2041         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
2042         symbolic): New.
2043         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
2044         * gcc.c (A Short Introduction to Adding a Command-Line Option):
2045         Remove comment.
2046         (cc1_options): Correct specs for passing down --help,
2047         --target-help and --help=*.  Add spec for passing down --version.
2048         (struct option_map, option_map, target_option_translations,
2049         translate_options): Remove.
2050         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
2051         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
2052         OPT_fhelp_ and OPT_ftarget_help.
2053         (process_command): Don't call translate_options.  Call
2054         decode_cmdline_options_to_array before checking for
2055         -no-canonical-prefixes using decoded options.
2056         * opts-common.c (tm.h): Update comment on #include.
2057         (find_opt): Allow abbreviations of long options.
2058         (struct option_map, option_map): New.
2059         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
2060         and -mno handling.
2061         (target_option_translations): New.
2062         (decode_cmdline_options_to_array): Handle
2063         TARGET_OPTION_TRANSLATE_TABLE in driver.
2064         * opts.c (common_handle_option): Don't handle OPT_fhelp,
2065         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
2066
2067 2010-09-22  Richard Guenther  <rguenther@suse.de>
2068
2069         * tree-inline.c (optimize_inline_calls): Schedule cleanups
2070         only if we inlined something.  Block compaction and conditional
2071         folding are done by cfg cleanup.  Schedule update-address-taken.
2072         (tree_function_versioning): Remove redundant call to number_blocks.
2073         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
2074         folding is done by cfg cleanup.
2075         * passes.c (init_optimization_passes): Remove update-address-taken
2076         pass after IPA inlining.
2077
2078 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
2079
2080         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
2081         to update conditions. Fix reg_mode[] check.
2082
2083 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
2084
2085         * config/picochip/picochip.md (movhicc): Use expand to check whether
2086         movhicc is available and split it after reload.
2087
2088 2010-09-22  Richard Guenther  <rguenther@suse.de>
2089
2090         * tree-ssanames.c (release_dead_ssa_names): Do not remove
2091         callee edges here.
2092         * passes.c (init_optimization_passes): Remove early CFG cleanup.
2093         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
2094         (pass_cleanup_cfg): Likewise.
2095         (execute_fixup_cfg): Cleanup.
2096         * tree-pass.h (pass_cleanup_cfg): Remove.
2097
2098 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2099
2100         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
2101         builtins if it is true.
2102         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
2103         parameter.
2104
2105 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2106
2107         * tree-sra.c (struct access): New field grp_no_warning.
2108         (create_access_replacement): Set TREE_NO_WARNING according to
2109          grp_no_warning.
2110         (create_artificial_child_access): Use build_ref_for_model and set
2111         grp_no_warning if build_user_friendly_ref_for_offset fails.
2112         (propagate_subaccesses_across_link): Likewise.
2113
2114 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2115
2116         PR target/35664
2117         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
2118         ('f'): Likewise.
2119
2120 2010-09-22  Tristan Gingold  <gingold@adacore.com>
2121
2122         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
2123
2124 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
2125
2126         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
2127         * config/i386/i386.c (decide_alg): Update for rename.
2128
2129 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
2130
2131         PR rtl-optimization/45739
2132         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
2133         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
2134
2135 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
2136
2137         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
2138         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
2139         Remove.
2140         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
2141         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2142
2143 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2144
2145         PR objc/23710
2146         * c-parser.c (c_parser_objc_method_definition): Check the return
2147         value of objc_start_method_definition and if false is returned,
2148         parse the method definition but emit no code.
2149
2150 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2151
2152         PR objc/25965
2153         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
2154         call objc_get_interface_ivars ().
2155
2156 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
2157
2158         PR target/45694
2159         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
2160         static chain-register is used for 64-bit.
2161
2162 2010-09-21  Richard Guenther  <rguenther@suse.de>
2163
2164         * dwarf2out.c (is_cu_die): New function.
2165         (add_pubtype): Use it.
2166         (gen_subprogram_die): Likewise.
2167         (gen_struct_or_union_type_die): Likewise.
2168         (dwarf2out_finish): Likewise.
2169         (comp_unit_die): Rename to ...
2170         (single_comp_unit_die): ... this.
2171         (comp_unit_die): New function lazily constructing and
2172         returning single_comp_unit_die.
2173         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
2174         base_type_die, subrange_type_die, modified_type_die,
2175         lower_bound_default, add_bound_info, add_prototyped_attribute,
2176         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
2177         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
2178         force_decl_die, gen_namespace_die, dwarf2out_decl,
2179         dwarf2out_start_source_file, dwarf2out_end_source_file,
2180         prune_unused_types, dwarf2out_finish): Use it.
2181         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
2182         the global list of translation-unit decls.
2183         (dwarf2out_init): Do not create single_comp_unit_die here.
2184         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
2185
2186 2010-09-21  Richard Guenther  <rguenther@suse.de>
2187
2188         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
2189         for bool for C++.
2190
2191 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
2192
2193         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
2194         (qhs_extenddi_cstr): Likewise.
2195         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
2196         them for the source operand.
2197
2198 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
2199
2200         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
2201         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
2202         (ix86_split_ashr): Ditto.
2203         (ix86_split_lshr): Ditto.
2204
2205 2010-09-21  Richard Guenther  <rguenther@suse.de>
2206
2207         PR tree-optimization/45580
2208         * tree-ssa-propagate.c (substitute_and_fold): Always replace
2209         regular uses.
2210         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
2211         virtuals fold the call into a regular indirect one.
2212
2213 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2214
2215         PR rtl-optimization/42775
2216         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
2217         scheduling is enabled.
2218
2219 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2220
2221         PR rtl-optimization/45728
2222         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
2223         gen_lowpart_common first and if that fails, force_reg first
2224         before calling gen_lowpart.
2225
2226         PR middle-end/45678
2227         * cfgexpand.c (expand_one_stack_var_at): Use
2228         crtl->max_used_stack_slot_alignment as max_align, instead
2229         of maximum of that and PREFERRED_STACK_BOUNDARY.
2230         Don't call update_stack_alignment.
2231
2232 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2233
2234         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
2235         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
2236         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
2237         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
2238         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
2239         (build_nonstandard_integer_type): Likewise.
2240         (build_range_type_1): New function, built from...
2241         (build_range_type): ...this.  Call build_range_type_1.
2242         (build_nonshared_range_type): New function.
2243         (build_array_type_1): New function, built from...
2244         (build_array_type: ...this.  Call build_array_type_1.
2245         (build_nonshared_array_type): New function.
2246         * tree.h (build_nonshared_range_type): Declare.
2247         (build_nonshared_array_type): Likewise.
2248
2249 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
2250
2251         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
2252         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2253         (arm_class_likely_spilled_p): New function.
2254
2255 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
2256
2257         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
2258         indirect functions.
2259         (ix86_split_ashl): Ditto.
2260         (ix86_split_ashr): Ditto.
2261         (ix86_split_lshr): Ditto.
2262         (ix86_adjust_counter): Ditto.
2263
2264 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2265
2266         * c-family/c-common.h (constant_string_class): Documented with
2267         comment identical to the one already in c-common.c.
2268
2269 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2270
2271         * dwarf2out.c (any_cfis_emitted): New static variable.
2272         (add_fde_cfi): Set it.
2273         (dwarf2out_frame_debug): Clear it before processing,
2274         if it is set afterwards, flush any queued reg saves.
2275
2276         PR debug/45124
2277         * dwarf2out.c (add_accessibility_attribute): Assume
2278         DW_ACCESS_private as the default for dwarf_version > 2
2279         and DW_TAG_class_type parent.
2280         (gen_inheritance_die): Assume DW_ACCESS_public as the default
2281         for dwarf_version > 2 and parent other than DW_TAG_class_type.
2282
2283 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2284
2285         PR target/45726
2286         * arm.md (arm_movt): Only enable on machines with MOVT.
2287
2288 2010-09-20  Jie Zhang  <jie@codesourcery.com>
2289
2290         * config/arm/arm.c (arm_address_offset_is_imm): New.
2291         (arm_early_store_addr_dep): New.
2292         (arm_early_load_addr_dep): New.
2293         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
2294         (arm_early_load_addr_dep): Declare.
2295         (arm_address_offset_is_imm): Declare.
2296         * config/arm/cortex-m4.md: New file.
2297         * config/arm/cortex-m4-fpu.md: New file.
2298         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
2299         (attr generic_sched): Exclude cortexm4.
2300         (attr generic_vfp): Exclude cortexm4.
2301
2302 2010-09-20  Richard Guenther  <rguenther@suse.de>
2303
2304         PR middle-end/45704
2305         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
2306
2307 2010-09-20  Jan Hubicka  <jh@suse.cz>
2308
2309         PR tree-optimize/45605
2310         * cgraph.h (const_value_known_p): Declare.
2311         (varpool_decide_const_value_known): Remove.
2312         * tree-ssa-ccp.c (get_base_constructor): Use it.
2313         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
2314         * expr.c (string_constant): Likewise.
2315         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2316         * ipa.c (ipa_discover_readonly_nonaddressable_var,
2317         function_and_variable_visibility): Likewise.
2318         * gimplify.c (gimplify_call_expr): Likewise.
2319         * gimple-fold.c (get_symbol_constant_value): Likewise.
2320         * varpool.c (varpool_decide_const_value_known): Replace by...
2321         (const_value_known_p): ... this one; handle other kinds of DECLs
2322         too and work for automatic vars.
2323         (varpool_finalize_decl): Use const_value_known_p.
2324
2325 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2326
2327         PR target/45726
2328         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
2329
2330 2010-09-20  Richard Guenther  <rguenther@suse.de>
2331
2332         PR tree-optimization/45705
2333         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
2334
2335 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2336
2337         PR rtl-optimization/45695
2338         * combine.c (try_combine): When splitting a two set pattern,
2339         make sure the pattern which will be put into i2 doesn't use REGs
2340         or MEMs set by insns in between i2 and i3.
2341
2342 2010-09-19  Jan Hubicka  <jh@suse.cz>
2343
2344         PR lto/44246
2345         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
2346         processing same node twice.
2347
2348 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
2349
2350         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
2351         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2352         (bfin_class_likely_spilled_p): New function
2353
2354 2010-09-19  Ira Rosen  <irar@il.ibm.com>
2355
2356         PR tree-optimization/45714
2357         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
2358         created in vectorizable_call instead of the original statement in
2359         def stmt updates.
2360
2361 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
2362
2363         * config/i386/i386-protos.h (split_double_mode): New prototype.
2364         (split_di, split_ti): Remove prototypes.
2365         * config/i386/i386.c (split_double_mode): New function.
2366         (split_di, split_ti): Remove.
2367         (ix86_expand_branch): Use split_double_mode.
2368         (ix86_split_to_parts): Ditto.
2369         (ix86_split_ashl): Ditto.
2370         (ix86_split_ashr): Ditto.
2371         (ix86_split_lshr): Ditto.
2372         (ix86_force_to_memory): Ditto.
2373         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
2374
2375 2010-09-18  Jan Hubicka  <jh@suse.cz>
2376
2377         PR tree-optimization/45453
2378         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
2379         virtual functions are reachable.
2380         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
2381         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2382         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
2383         when modifying function.
2384
2385 2010-09-18  Jan Hubicka  <jh@suse.cz>
2386
2387         PR tree-optimization/45605
2388         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
2389         * gimple-fold.c (static_object_in_other_unit_p): New function.
2390         (canonicalize_constructor_val): Use it.
2391         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
2392         returning NULL.
2393         (gimple_fold_obj_type_ref_known_binfo): Use
2394         static_object_in_other_unit_p.
2395
2396 2010-09-18  Richard Guenther  <rguenther@suse.de>
2397
2398         PR tree-optimization/45709
2399         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
2400         insertions until after all PHI nodes of the block are processed.
2401
2402 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
2403
2404         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
2405
2406 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
2407
2408         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
2409
2410 2010-09-18  Richard Guenther  <rguenther@suse.de>
2411
2412         PR tree-optimization/45709
2413         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
2414
2415 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2416
2417         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
2418         (dot_deps_stmt): Same.
2419         * graphite-poly.c (dot_lst): Same.
2420         * graphite-scop-detection.c (dot_all_scops): Same.
2421         (dot_scop): Same.
2422
2423 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2424
2425         Revert:
2426         2009-12-16  Ben Elliston  <bje@au.ibm.com>
2427
2428         * tree-data-ref.c (dot_rdg_1): Added back.
2429         (dot_rdg): Same.  Added "#if 0" around system call.
2430
2431 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2432             Richard Henderson  <rth@redhat.com>
2433
2434         * config/i386/i386.c (initial_ix86_tune_features): Add
2435         X86_TUNE_PAD_SHORT_FUNCTION.
2436         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
2437         (ix86_count_insn): New.
2438         (ix86_pad_short_function): Likewise.
2439         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
2440
2441         * config/i386/i386.h (ix86_tune_indices): Add
2442         X86_TUNE_PAD_SHORT_FUNCTION.
2443         (TARGET_PAD_SHORT_FUNCTION): New.
2444
2445         * config/i386/i386.md (UNSPEC_NOPS): New.
2446         (nops): Likewise.
2447
2448 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2449
2450         PR middle-end/45234
2451         * calls.c (expand_call): Make sure that all variable sized
2452         adjustments are multiple of preferred stack boundary after
2453         stack alignment.
2454
2455 2010-09-17  DJ Delorie  <dj@redhat.com>
2456
2457         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2458         passed an invalid value, print an error instead of ICEing.
2459         (valid_psw_flag): New.
2460         (rx_expand_builtin): Call it for setpsw/clrpsw.
2461         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2462
2463         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2464         (bitclr_in_memory): Likewise.
2465         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2466
2467 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2468
2469         PR middle-end/45678
2470         * cfgexpand.c (update_stack_alignment): New.
2471         (get_decl_align_unit): Use it.
2472         (expand_one_stack_var_at): Call update_stack_alignment.
2473
2474 2010-09-17  Richard Guenther  <rguenther@suse.de>
2475
2476         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2477         Properly copy the read string.
2478
2479 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
2480
2481         * doc/options.texi (Variable): Document.
2482         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
2483         generate target_flags declarations explicitly.  Don't define
2484         VarExists variables for the driver.
2485         * common.opt (target_flags): New Variable record.
2486         (flag_dump_unnumbered, flag_dump_unnumbered_links,
2487         flag_var_tracking, flag_var_tracking_assignments,
2488         flag_var_tracking_assignments_toggle): Don't mark variables with
2489         VarExists.
2490         * config/i386/i386.c (ix86_isa_flags): Don't define here.
2491         * config/i386/i386.opt (ix86_isa_flags): Define here.
2492         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2493         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2494         VarExists.
2495         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2496         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2497         Only define for generator programs.
2498         * rtlanal.c (target_flags): Remove.
2499         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2500         flag_var_tracking_assignments_toggle): Remove.
2501
2502 2010-09-17  Michael Matz  <matz@suse.de>
2503
2504         PR tree-optimization/43432
2505         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2506         Accept backwards consecutive accesses.
2507         (vect_create_data_ref_ptr): If step is negative generate
2508         decreasing IVs.
2509         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2510         (perm_mask_for_reverse, reverse_vec_elements): New functions.
2511         (vectorizable_load): Handle loads with negative steps when easily
2512         possible.
2513
2514 2010-09-03  Jan Hubicka  <jh@suse.cz>
2515
2516         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2517
2518 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
2519
2520         * config/v850/v850.c (v850_function_value_regno_p): Make static.
2521         Adjust comments. Declare.
2522         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2523         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2524
2525 2010-09-17  Richard Guenther  <rguenther@suse.de>
2526
2527         * common.opt (combine): Remove.
2528         * gcc.c (default_compilers): Remove specs testing combine.
2529         The C compilers no longer can combine.
2530         (option_map): Remove -combine.
2531         (display_help): Remove -combine.
2532         (driver_handle_option): Remove OPT_combine handling.
2533         (compile_input_file_p): Remove.
2534         (do_spec): Remove code concerning combine.
2535         (main): Likewise.
2536         * doc/invoke.texi: Remove traces of -combine.
2537         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2538
2539 2010-09-17  Richard Guenther  <rguenther@suse.de>
2540
2541         PR middle-end/45678
2542         * builtins.c (fold_builtin_memory_op): Always properly adjust
2543         alignment of memory accesses.
2544
2545 2010-09-16  Jan Hubicka  <jh@suse.cz>
2546
2547         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2548         processing clone.
2549
2550 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
2551
2552         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2553
2554         * config/i386/i386.c (predict_jump): Add prototype.
2555         (flag_opts): Add -m8bit-idiv.
2556         (ix86_split_idivmod): New.
2557
2558         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2559         Add 2 splitters for SI/DI mode divide.
2560         (divmod<mode>4_1): New pattern.
2561         (udivmod<mode>4_1): Likewise.
2562         (testdi_ccno_1): Likewise.
2563
2564         * config/i386/i386.opt (m8bit-idiv): New.
2565
2566         * doc/invoke.texi: Document -m8bit-idiv.
2567
2568 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
2569
2570         PR bootstrap/45680
2571         * config/i386/i386.c (min_insn_size): Moved out of the
2572         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2573
2574 2010-09-16  Jan Hubicka  <jh@suse.cz>
2575
2576         * lto-cgraph.c (lto_output_node): Fix handling of clones.
2577         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2578         unreachable clones with reachable clones.
2579         * tree-inline.c (copy_bb): Fix sanity checking when producing
2580         unreachable clone.
2581
2582 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
2583
2584         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2585         (TARGET_MEMORY_MOVE_COST): Define.
2586         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2587
2588 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
2589
2590         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2591         maybe_tidy_empty_bb.
2592
2593         Revert:
2594         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
2595         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2596
2597 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2598
2599         * target.def (target_option.optimization): New hook.
2600         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2601         TARGET_OPTION_OPTIMIZATION hook.
2602         * doc/tm.texi: Regenerate.
2603         * hooks.c (hook_void_int_int): New.
2604         * hooks.h (hook_void_int_int): Declare.
2605         * opts.c: Don't include tm_p.h.
2606         (decode_options): Use targetm.target_option.optimization instead
2607         of OPTIMIZATION_OPTIONS.
2608         * system.h (OPTIMIZATION_OPTIONS): Poison.
2609         * config/arm/arm-protos.h (arm_optimization_options): Remove.
2610         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2611         (arm_optimization_options): Rename to arm_option_optimization.
2612         Make static.
2613         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2614         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2615         (cris_option_optimization): New.
2616         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2617         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2618         (crx_option_optimization): New.
2619         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2620         * config/frv/frv-protos.h (frv_optimization_options): Remove.
2621         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2622         (frv_optimization_options): Rename to frv_option_optimization.
2623         Make static.
2624         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2625         * config/h8300/h8300.c (h8300_option_optimization): New.
2626         (TARGET_OPTION_OPTIMIZATION): Define.
2627         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2628         * config/i386/i386-protos.h (optimization_options): Remove.
2629         * config/i386/i386.c (optimization_options): Rename to
2630         ix86_option_optimization.  Make static.
2631         (TARGET_OPTION_OPTIMIZATION): Define.
2632         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2633         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2634         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2635         (ia64_optimization_options): Rename to ia64_option_optimization.
2636         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
2637         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
2638         commented-out definition.
2639         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2640         instead of OPTIMIZATION_OPTIONS.
2641         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2642         (m32r_option_optimization): New.
2643         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2644         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2645         Remove.
2646         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2647         (mcore_option_optimization): New.
2648         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2649         * config/mep/mep-protos.h (mep_optimization_options): Remove.
2650         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2651         (mep_optimization_options): Rename to mep_option_optimization.
2652         Make static.  Take unused level and size parameters.
2653         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2654         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2655         (mmix_option_optimization): New.
2656         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2657         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2658         (pdp11_option_optimization): New.
2659         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2660         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2661         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2662         (optimization_options): Rename to rs6000_option_optimization.
2663         Make static.
2664         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2665         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2666         * config/rx/rx.c (rx_set_optimization_options): Rename to
2667         rx_option_optimization.  Make static.  Take unused level and size
2668         parameters.
2669         (TARGET_OPTION_OPTIMIZATION): Define.
2670         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2671         * config/s390/s390-protos.h (optimization_options): Remove.
2672         * config/s390/s390.c (optimization_options): Rename to
2673         s390_option_optimization.  Make static.  Don't mark size parameter
2674         unused.
2675         (TARGET_OPTION_OPTIMIZATION): Define.
2676         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2677         * config/sh/sh-protos.h (sh_optimization_options): Remove.
2678         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2679         (sh_optimization_options): Rename to sh_option_optimization.  Make
2680         static.  Don't mark parameters unused.
2681         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2682         * config/spu/spu-protos.h (spu_optimization_options): Remove.
2683         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2684         (spu_optimization_options): Rename to spu_option_optimization.
2685         Make static.
2686         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2687         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2688         (v850_option_optimization): New.
2689         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2690         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2691         (xtensa_option_optimization): New.
2692         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2693
2694 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2695
2696         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2697         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2698         * doc/tm.texi: Regenerate.
2699         * system.h (OVERRIDE_OPTIONS): Poison.
2700         * target.def (override): Default to hook_void_void.
2701         * targhooks.c (default_target_option_override): Remove.
2702         * genmodes.c, machmode.def: Update comments mentioning
2703         OVERRIDE_OPTIONS.
2704         * config/alpha/alpha-modes.def: Update comment mentioning
2705         alpha_override_options.
2706         * config/alpha/alpha-protos.h (override_options): Remove.
2707         * config/alpha/alpha.c (override_options): Rename to
2708         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
2709         (TARGET_OPTION_OVERRIDE): Define.
2710         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2711         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2712         of OVERRIDE_OPTIONS.
2713         * config/arc/arc-protos.h (arc_init): Remove.
2714         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2715         (arc_init): Rename to arc_option_override.  Make static.
2716         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2717         (OVERRIDE_OPTIONS): Remove.
2718         * config/arm/arm-protos.h (arm_override_options): Remove.
2719         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2720         (arm_override_options): Rename to arm_option_override.  Make
2721         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2722         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2723         * config/arm/arm.md: Update comment referring to arm_override_options.
2724         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2725         instead of OVERRIDE_OPTIONS.
2726         * config/avr/avr-protos.h (avr_override_options): Remove.
2727         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2728         (avr_override_options): Rename to avr_option_override.  Make static.
2729         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2730         * config/bfin/bfin-protos.h (override_options): Remove (twice).
2731         * config/bfin/bfin.c (override_options): Rename to
2732         bfin_option_override.  Make static.
2733         (TARGET_OPTION_OVERRIDE): Define.
2734         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2735         * config/cris/cris-protos.h (cris_override_options): Remove.
2736         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2737         (cris_override_options): Rename to cris_option_override.  Make static.
2738         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2739         * config/frv/frv-protos.h (frv_override_options): Remove.
2740         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2741         (frv_override_options): Rename to frv_option_override.  Make static.
2742         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2743         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2744         * config/h8300/h8300.c (h8300_init_once): Rename to
2745         h8300_option_override.  Make static.
2746         (TARGET_OPTION_OVERRIDE): Define.
2747         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2748         * config/i386/i386-protos.h (override_options): Remove.
2749         * config/i386/i386.c (override_options): Rename to
2750         ix86_option_override_internal.  Make static.  Comments referring
2751         to this function and callers changed.
2752         (ix86_option_override): New.
2753         (TARGET_OPTION_OVERRIDE): Define.
2754         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2755         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2756         * config/ia64/ia64.c (ia64_file_start): Update comment referring
2757         to ia64_override_options.
2758         * config/iq2000/iq2000-protos.h (override_options): Remove.
2759         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2760         (override_options): Rename to iq2000_option_override.  Make static.
2761         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2762         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2763         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2764         (lm32_override_options): Rename to lm32_option_override.  Make static.
2765         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2766         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2767         (m32r_option_override): New.
2768         (m32r_init): Update comment.
2769         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2770         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2771         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2772         (m68hc11_override_options): Rename to m68hc11_option_override.
2773         Make static.  Return void.
2774         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2775         * config/m68k/m68k-protos.h (override_options): Remove.
2776         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2777         (override_options): Rename to m68k_option_override.  Make static.
2778         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2779         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2780         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2781         (mcore_override_options): Rename to mcore_option_override.  Make
2782         static.
2783         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2784         * config/mep/mep-protos.h (mep_override_options): Remove.
2785         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2786         (mep_override_options): Rename to mep_option_override.  Make static.
2787         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2788         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2789         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2790         (mmix_override_options): Rename to mmix_option_override.  Make static.
2791         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2792         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2793         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2794         (mn10300_override_options): Rename to mn10300_option_override.
2795         Make static.
2796         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2797         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2798         * config/moxie/moxie.c (moxie_override_options): Rename to
2799         moxie_option_override.  Make static.
2800         (TARGET_OPTION_OVERRIDE): Define.
2801         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2802         * config/picochip/picochip-protos.h (picochip_override_options):
2803         Remove.  Update comment referring to picochip_override_options.
2804         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2805         (picochip_override_options): Rename to picochip_option_override.
2806         Make static.  Update comment and definition of
2807         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2808         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2809         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2810         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2811         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2812         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2813         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2814         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2815         instead of OVERRIDE_OPTIONS.
2816         * config/rs6000/rs6000-modes.def: Update comment referring to
2817         rs6000_override_options.
2818         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2819         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2820         (rs6000_override_options): Rename to
2821         rs6000_option_override_internal.  Make static.  Commented
2822         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2823         (rs6000_option_override): New.
2824         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2825         instead of OVERRIDE_OPTIONS.
2826         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2827         * config/s390/s390-protos.h (override_options): Remove.
2828         * config/s390/s390.c (override_options): Rename to
2829         s390_option_override.  Make static.
2830         (TARGET_OPTION_OVERRIDE): Define.
2831         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2832         * config/score/score-protos.h (score_override_options): Remove.
2833         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2834         (score_override_options): Rename to score_option_override.  Make
2835         static.
2836         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2837         Update comment referring to override_options.
2838         * config/score/score3.c (score3_override_options): Rename to
2839         score3_option_override.
2840         * config/score/score3.h (score3_override_options): Rename to
2841         score3_option_override.
2842         * config/score/score7.c (score7_override_options): Rename to
2843         score7_option_override.
2844         * config/score/score7.h (score7_override_options): Rename to
2845         score7_option_override.
2846         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2847         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2848         (sparc_override_options): Rename to sparc_option_override.  Make
2849         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2850         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2851         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2852         instead of OVERRIDE_OPTIONS.
2853         * config/spu/spu-protos.h (spu_override_options): Remove.
2854         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2855         (spu_override_options): Rename to spu_option_override.  Make
2856         static.
2857         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2858         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2859         OVERRIDE_OPTIONS.
2860         * config/vax/vax-protos.h (override_options): Remove.
2861         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2862         (override_options): Rename to vax_option_override.  Make static.
2863         Call SUBTARGET_OVERRIDE_OPTIONS.
2864         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2865         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2866         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2867         * config/xtensa/xtensa-protos.h (override_options): Remove.
2868         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2869         (override_options): Rename to xtensa_option_override.  Make static.
2870         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2871
2872 2010-09-16  Richard Guenther  <rguenther@suse.de>
2873
2874         PR tree-optimization/45623
2875         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2876         (get_constraint_for_component_ref): If computing a constraint
2877         for the rhs handle type punning through unions.
2878         (get_constraint_for_address_of): Adjust.
2879         (get_constraint_for_1): Likewise.
2880         (get_constraint_for): Likewise.
2881         (get_constraint_for_rhs): New function.
2882         (do_structure_copy): Adjust.
2883         (make_constraint_to): Likewise.
2884         (handle_const_call): Likewise.
2885         (find_func_aliases): Likewise.
2886         (process_ipa_clobber): Likewise.
2887         (create_variable_info_for): Likewise.
2888
2889 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2890
2891         * tree-vectorizer.c: Fix documentation.
2892         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2893         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2894         is_pattern_stmt_p, is_loop_header_bb_p,
2895         stmt_vinfo_set_inside_of_loop_cost,
2896         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2897         known_alignment_for_access_p): Likewise.
2898         * tree-vect-loop.c: Fix documentation.
2899         (vect_get_cost): Start function name from new line.
2900         * tree-vect-data-refs.c: Fix documentation.
2901         * tree-vect_stmts.c: Likewise.
2902         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2903         (vectorizable_store): Free vec_oprnds if allocated.
2904         (vectorizable_condition): Initialize several variables to avoid
2905         warnings.
2906         * tree-vect-slp.c: Fix documentation.
2907
2908 2010-09-16  Richard Guenther  <rguenther@suse.de>
2909
2910         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2911         is TS_TRANSLATION_UNIT_DECL.
2912         (initialize_tree_contains_struct): Adjust.
2913         (all_translation_units): New global vector.
2914         (build_translation_unit_decl): New function.
2915         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2916         (struct tree_translation_unit_decl): New.
2917         (all_translation_units): Declare.
2918         (union tree_node): Add translation_unit_decl member.
2919         (build_translation_unit_decl): Declare.
2920         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2921         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2922         New function.
2923         (pack_value_fields): Call it.
2924         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2925         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2926         (lto_output_tree_pointers): Call it.
2927         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2928         to TRANSLATION_UNIT_DECL.
2929         (unpack_ts_translation_unit_decl_value_fields): New function.
2930         (unpack_value_fields): Call it.
2931         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2932         (lto_input_tree_pointers): Call it.
2933         * lto-streamer.c (check_handled_ts_structures): Adjust.
2934         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2935         * c-decl.c (all_translation_units): Remove.
2936         (pop_scope): Use build_translation_unit_decl.
2937         (collect_all_refs): Adjust.
2938         (for_each_global_decl): Likewise.
2939         (c_write_global_declarations): Likewise.
2940
2941 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2942
2943         PR bootstrap/45686
2944         * fold-const.c (fold_checksum_tree): Change slot from const void **
2945         to void **, use CONST_CAST_TREE to store into *slot.
2946
2947 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2948
2949         * config/i386/i386.md: Remove unneeded empty conditions and
2950         preparation statements from expanders.
2951         * config/i386/mmx.md: Ditto.
2952         * config/i386/sse.md: Ditto.
2953
2954 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2955
2956         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2957
2958 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2959
2960         PR rtl-optimization/45593
2961         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2962         insns that were in delay slots as stand-alone insns.
2963
2964 2010-09-15  Ian Lance Taylor  <iant@google.com>
2965
2966         * incpath.c (remove_duplicates): If name is not a directory, issue
2967         a warning rather than an error.
2968
2969 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2970
2971         PR middle-end/45644
2972         * tree-sra.c (create_access): Check for bit-fields directly.
2973
2974 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2975
2976         PR tree-optimization/45633
2977         * tree-cfg.c (verify_gimple_assign_binary): Allow
2978         MINUS_EXPR with lhs and rhs1 pointer vector and
2979         rhs2 sizetype vector.
2980         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2981         or vector pointer use TER to optimize pointer subtraction.
2982
2983 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2984
2985         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2986         fcmpd to fcmps.
2987
2988 2010-09-15  Ian Lance Taylor  <iant@google.com>
2989
2990         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2991
2992 2010-09-15  Ian Lance Taylor  <iant@google.com>
2993
2994         * function.c (get_arg_pointer_save_area): Set
2995         arg_pointer_save_area_init to true.
2996
2997 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2998
2999         * tree-sra.c (generate_subtree_copies): Updated comment.
3000         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
3001         obtained from the statement iterator instead.
3002         (load_assign_lhs_subreplacements): Removed parameters lhs and
3003         right_offset, which is obtained from top_racc instead.  Parameter lacc
3004         is now expected to be the root of the processed tree rather than root's
3005         first child.  Updated all callers.
3006
3007 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
3008
3009         * config/pdp11/pdp11.c (register_move_cost): Rename to
3010         pdp11_register_move_cost.
3011         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
3012         pdp11_register_move_cost.
3013         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
3014         pdp11_register_move_cost instead of register_move_cost.
3015
3016 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
3017
3018         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
3019         pattern for vmovn. Expansion in case of non
3020         -mvectorize-with-neon-quad.
3021         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
3022         non- -mvectorize-with-neon-quad case.
3023         (move_lo_quad_<mode>): New expansion to vmov into low part.
3024         (move_hi_quad_<mode>): New expansion to vmov into high part.
3025         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
3026         (move_lo_quad_v4sf): Likewise.
3027         (move_lo_quad_v8hi): Likewise.
3028         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
3029         low part.
3030         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
3031         high part.
3032         * config/arm/iterators.md (ANY128): New mode iterator.
3033         (V_narrow_pack): New mode attribute.
3034         (V_HALF): Add attribute.
3035         (V_DOUBLE): Add attribute.
3036         (V_mode_nunits): Add attribute.
3037
3038 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3039
3040         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
3041         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
3042
3043 2010-09-15  Olivier Hainque  <hainque@adacore.com>
3044             Jose Ruiz  <ruiz@adacore.com>
3045
3046         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
3047         * config/alpha/osf5-unwind.h: New file.
3048
3049 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3050
3051         PR bootstrap/45672
3052         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
3053         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3054         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3055
3056 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3057
3058         * c-lang.h (struct lang_type): Add variable_size GTY option.
3059
3060 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         PR bootstrap/45672
3063         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3064
3065 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3066
3067         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
3068         result isn't used in memory address.
3069
3070 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3071
3072         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
3073         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
3074         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
3075         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
3076         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
3077         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
3078
3079         * target.def: Add units_per_simd_word to vectorize.
3080
3081         * targhooks.c (default_units_per_simd_word): New.
3082         * targhooks.h (default_units_per_simd_word): Likewise.
3083         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
3084         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3085         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
3086         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3087         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3088         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3089         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3090         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3091
3092         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
3093         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
3094
3095         * tree-vect-stmts.c: Don't include "tm_p.h".
3096         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
3097         with targetm.vectorize.units_per_simd_word.
3098
3099         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
3100
3101         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
3102
3103         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
3104         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3105
3106         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
3107         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
3108
3109         * doc/tm.texi: Regenerated.
3110
3111 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3112
3113         * tree-vect-stmts.c: Include "tm_p.h".
3114
3115         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
3116         out of RTX_CODE.
3117
3118 2010-09-14  Martin Jambor  <mjambor@suse.cz>
3119
3120         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
3121         location of generated statement.  Changed all callers.
3122         (build_ref_for_model): New parameter loc which used to set location of
3123         all generated expressions.  Changed all callers.
3124         (generate_subtree_copies): Likewise.
3125         (init_subtree_with_zero): Likewise.
3126         (sra_modify_expr): Set locations of all generated statements and
3127         expressions to the location the original statement.
3128         (handle_unscalarized_data_in_subtree): Likewise.
3129         (load_assign_lhs_subreplacements): Likewise.
3130         (sra_modify_constructor_assign): Likewise.
3131         (sra_modify_assign): Likewise.
3132
3133 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3134
3135         PR target/45277
3136         PR target/45363
3137         PR target/45407
3138         * doc/install.texi (sparc*-*-*): New section.
3139         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
3140
3141 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3142
3143         PR middle-end/45567
3144         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
3145         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
3146         (expand_builtin): Adjust caller.
3147         (expand_builtin_unop): Only use subtarget if it has the right mode.
3148
3149 2010-09-14  Tristan Gingold  <gingold@adacore.com>
3150
3151         * configure.ac (plugins): Fix typos.
3152         * configure: Regenerate.
3153
3154 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3155
3156         PR debug/45660
3157         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
3158         gen_type_die for function/method return type.
3159
3160 2010-09-14  Ira Rosen  <irar@il.ibm.com>
3161
3162         PR tree-optimization/45470
3163         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3164         can throw an exception.
3165         * tree-vect-stmts.c (vectorizable_call): Likewise.
3166
3167 2010-09-14  DJ Delorie  <dj@redhat.com>
3168
3169         PR target/44749
3170         * config/mep/mep-protos.h (mep_save_register_info,
3171         mep_reinit_regs, mep_init_regs): Declare.
3172
3173         * config/mep/mep.c: Move all target definitions to the end of the
3174         file to avoid the need for duplicate declarations.
3175         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
3176         (mep_reorg_erepeat): Remove unused variables.
3177         (mep_expand_builtin): Likewise.
3178
3179         * config/mep/mep-pragma.c: Don't include rtl.h.
3180         (INVALID_REGNUM): New.
3181         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
3182         functions.
3183         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
3184         Avoid enum/integer math.
3185
3186 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
3187
3188         PR target/44749
3189         * config/mep/t-mep (GTM_H): Add insn-constants.h.
3190         * config/mep/mep.c (mep_conditional_register_usage): Take no
3191         parameters.
3192         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
3193         prototype.
3194         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
3195         call to mep_conditional_register_usage.
3196
3197 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3198
3199         PR debug/43937
3200         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
3201         the DECL as well.
3202
3203 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
3204
3205         PR rtl-optimization/45617
3206         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
3207         even if low N bits of X aren't known to be zero.
3208
3209 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3210
3211         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
3212
3213         * config/i386/i386.c (initial_ix86_tune_features): Add
3214         X86_TUNE_VECTORIZE_DOUBLE.
3215         (ix86_units_per_simd_word): New.
3216
3217         * config/i386/i386.h (ix86_tune_indices): Add
3218         X86_TUNE_VECTORIZE_DOUBLE.
3219         (TARGET_VECTORIZE_DOUBLE): New.
3220         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
3221
3222 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
3223
3224         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
3225         (new_temp_expr_table): Allocate call_cnt vector.
3226         (free_temp_expr_table): Free it.
3227         (process_replaceable): Add call_cnt parm and set in vector.
3228         (find_replaceable_in_bb): Skip replacement if def/use span a call.
3229         (debug_ter): Dump call_cnt value, remove stderr uses.
3230
3231 2010-09-13  Jan Hubicka  <jh@suse.cz>
3232
3233         * tree.c (build_zero_cst): New.
3234         * tree.h (build_zero_cst): Declare.
3235         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
3236         (get_base_constructor): Break out from ...
3237         (fold_const_aggregate_ref): Here; handle empty constructors.
3238
3239 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3240
3241         * config/arm/arm.md: (define_attr "conds"): Update comment.
3242         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
3243         conds attribute to clob.
3244         (arm_sync_compare_and_swapsi): Likewise.
3245         (arm_sync_compare_and_swap<mode>): Likewise.
3246         (arm_sync_lock_test_and_setsi): Likewise.
3247         (arm_sync_lock_test_and_set<mode>): Likewise.
3248         (arm_sync_new_<sync_optab>si): Likewise.
3249         (arm_sync_new_nandsi): Likewise.
3250         (arm_sync_new_<sync_optab><mode>): Likewise.
3251         (arm_sync_new_nand<mode>): Likewise.
3252         (arm_sync_old_<sync_optab>si): Likewise.
3253         (arm_sync_old_nandsi): Likewise.
3254         (arm_sync_old_<sync_optab><mode>): Likewise.
3255         (arm_sync_old_nand<mode>): Likewise.
3256
3257 2010-09-13  Olivier Hainque  <hainque@adacore.com>
3258
3259         * fwprop.c (forward_propagate_and_simplify): Only attach a
3260         REG_EQUAL note to an insn if the destination is a register.
3261         * gcse.c (try_replace_reg): Likewise.
3262
3263 2010-09-13  Richard Guenther  <rguenther@suse.de>
3264
3265         PR tree-optimization/45611
3266         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
3267         (copy_ref_info): Likewise.
3268
3269 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
3270
3271         PR debug/45604
3272         PR debug/45419
3273         PR debug/45408
3274         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3275         types of MEM_REF pointer types to the same type.
3276
3277 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
3278
3279         PR rtl-optimization/41087
3280         * ifcvt.c (noce_get_condition): Don't allow conditions with
3281         side-effects.
3282
3283 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
3284
3285         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3286         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
3287         * config/frv/frv.c (frv_register_move_cost): Make static. Change
3288         arguments type to reg_class_t. Add mode argument.
3289         (frv_memory_move_cost): New.
3290         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
3291
3292 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3293
3294         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
3295         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
3296
3297 2010-09-10  Jan Hubicka  <jh@suse.cz>
3298
3299         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
3300
3301 2010-09-10  Richard Guenther  <rguenther@suse.de>
3302
3303         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
3304         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
3305         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
3306         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
3307         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
3308
3309 2010-09-10  Richard Guenther  <rguenther@suse.de>
3310
3311         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
3312         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
3313         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
3314         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
3315
3316 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3317
3318         PR middle-end/45634
3319         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
3320         of string folding is of integral type.
3321
3322 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
3323
3324         * doc/invoke.texi (-x): Fix typo.
3325
3326 2010-09-10  Richard Guenther  <rguenther@suse.de>
3327
3328         PR debug/44115
3329         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
3330         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3331         Output DECL_DEBUG_EXPR.
3332         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3333         Input DECL_DEBUG_EXPR.
3334
3335 2010-09-10  Richard Guenther  <rguenther@suse.de>
3336
3337         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
3338         (build_index_type): Implement in terms of build_range_type.
3339         (build_range_type): Do not allow NULL_TREE type, improve
3340         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
3341         if we didn't hash.
3342         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
3343         create a distinct copy of the type.
3344
3345 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
3346
3347         * configure: Regenerated.
3348         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
3349
3350 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3351
3352         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
3353         * config/arm/cortex-a9-neon.md: New and partially generated.
3354         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
3355
3356 2010-09-10  Richard Guenther  <rguenther@suse.de>
3357
3358         * tree.h (build_index_2_type): Remove.
3359         * tree.c (build_index_2_type): Remove.
3360
3361 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
3362
3363         PR bootstrap/45630
3364         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
3365         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
3366         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
3367
3368 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3369
3370         PR tree-optimization/44972
3371         * tree-sra.c: Include toplev.h.
3372         (build_ref_for_offset): Entirely reimplemented.
3373         (build_ref_for_model): New function.
3374         (build_user_friendly_ref_for_offset): New function.
3375         (analyze_access_subtree): Removed build_ref_for_offset check.
3376         (propagate_subaccesses_across_link): Likewise.
3377         (create_artificial_child_access): Use
3378         build_user_friendly_ref_for_offset.
3379         (propagate_subaccesses_across_link): Likewise.
3380         (ref_expr_for_all_replacements_p): Removed.
3381         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
3382         (sra_modify_expr): Use build_ref_for_model.
3383         (load_assign_lhs_subreplacements): Likewise.
3384         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
3385         checks for return values of build_ref_for_offset.
3386         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
3387         build_ref_for_offset.
3388         * ipa-prop.h: Include gimple.h
3389         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
3390         (ipa_analyze_indirect_call_uses): Update comment.
3391         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
3392         (IPA_PROP_H): Likewise.
3393
3394 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3395
3396         PR tree-optimization/44972
3397         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
3398         calling build_ref_for_offset.
3399
3400 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3401
3402         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
3403         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
3404         * config/arm/arm-tune.md: Regenerate.
3405         * doc/invoke.texi (ARM Options): Document it.
3406
3407 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
3408
3409         * config/i386/i386.c: Include sched-int.h.
3410         (TARGET_SCHED_DISPATCH): Defined.
3411         (TARGET_SCHED_DISPATCH_DO): Defined.
3412         (DISPATCH_WINDOW_SIZE): Defined.
3413         (MAX_DISPATCH_WINDOWS): Defined.
3414         (MAX_INSN): Defined.
3415         (MAX_IMM): Defined.
3416         (MAX_IMM_SIZE): Defined.
3417         (MAX_IMM_32): Defined.
3418         (MAX_IMM_64): Defined.
3419         (MAX_LOAD): Defined.
3420         (MAX_STORE): Defined.
3421         (BIG): Defined.
3422         (dispatch_group): New.
3423         (num_allowable_groups): New.
3424         (group_name): New.
3425         (sched_insn_info_s): New.
3426         (dispatch_windows_s): New.
3427         (imm_info_s): New.
3428         (dispatch_window_list): New.
3429         (dispatch_window_list1): New.
3430         (get_mem_group): New.
3431         (is_cmp): New.
3432         (dispatch_violation): New.
3433         (is_branch): New.
3434         (is_prefetch): New.
3435         (init_window): New.
3436         (allocate_window): New.
3437         (init_dispatch_sched): New.
3438         (is_end_basic_block): New.
3439         (process_end_window): New.
3440         (allocate_next_window): New.
3441         (find_constant_1): New.
3442         (find_constant): New.
3443         (get_num_immediates): New.
3444         (has_immediate): New.
3445         (get_insn_path): New.
3446         (get_insn_group): New.
3447         (count_num_restricted): New.
3448         (fits_dispatch_window): New.
3449         (add_insn_window): New.
3450         (add_to_dispatch_window): New.
3451         (debug_dispatch_window_file): New.
3452         (debug_dispatch_window): New.
3453         (debug_insn_dispatch_info_file): New.
3454         (debug_ready_dispatch): New.
3455         (do_dispatch): New.
3456         (has_dispatch): New.
3457         * config/i386/i386.h (debug_ready_dispatch): Declared.
3458         (debug_dispatch_window): Declared.
3459         * config/i386/i386.opt (mdispatch-scheduler): New flag.
3460         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3461         (TARGET_SCHED_DISPATCH_DO): New.
3462         * doc/tm.texi: Regererated.
3463         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3464         ready_remove_first_dispatch
3465         (schedule_block): Call targetm.sched.dispatch and
3466         targetm.sched.dispatch_do.
3467         (sched_init): Call targetm.sched.dispatch and
3468         targetm.sched.dispatch_do.
3469         (ready_remove_first_dispatch): New.
3470         (number_in_ready): New.
3471         (get_ready_element): New.
3472         * hooks.c (hook_bool_rtx_int_false): New.
3473         (hook_void_rtx_int): New.
3474         * hooks.h (hook_bool_rtx_int_false): Declared.
3475         (hook_void_rtx_int): Declared.
3476         * sched-int.h (IS_DISPATCH_ON): Defined.
3477         (IS_CMP): Defined.
3478         (DISPATCH_VIOLATION): Defined.
3479         (FITS_DISPATCH_WINDOW): Defined.
3480         (DISPATCH_INIT): Defined.
3481         (ADD_TO_DISPATCH_WINDOW): Defined.
3482         (get_ready_element): Declared.
3483         (number_in_ready): Declared.
3484         * target.def (dispatch): Defined.
3485         (dispatch_do): Defined.
3486
3487 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3488
3489         PR middle-end/45312
3490         * reload1.c (merge_assigned_reloads): Remove.
3491         (reload_as_needed): Don't call it.
3492
3493 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
3494
3495         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3496         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3497         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3498
3499 2010-09-09  Matthias Klose  <doko@ubuntu.com>
3500
3501         PR bootstrap/43847
3502         * configure.ac (--enable-plugin): Enhance for cross builds.
3503         * configure: Regenerate.
3504
3505 2010-09-09  Jan Hubicka  <jh@suse.cz>
3506
3507         PR tree-optimization/45598
3508         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3509         string folding is of integral type.
3510
3511 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3512
3513         * configure.ac (gnu_indirect_function): New test.
3514         * configure: Rebuilt.
3515         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3516         * defaults.h (IFUNC_ASM_TYPE): Provide default.
3517
3518         * doc/extend.texi (Function Attributes): Document ifunc.
3519         * varasm.c (do_assemble_alias): Deal with ifuncs too.
3520
3521 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3522
3523         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3524         epilogue instruction move.
3525
3526 2010-09-09  Jan Hubicka  <jh@suse.cz>
3527
3528         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3529         command line to allow more partitions than input files.
3530
3531 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3532
3533         PR middle-end/44554
3534         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3535
3536 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3537
3538         PR middle-end/40386
3539         * ira.c (pseudo_for_reload_consideration_p): Don't use
3540         flag_ira_share_spill_slots.
3541
3542 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3543
3544         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3545         point zero operands that fit into a single GPR.
3546         (s390_preferred_reload_class): Ensure we only return general-purpose
3547         register classes.
3548         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3549         floating-point zero operands into GPRs.
3550         ("*mov<mode>_64"): Likewise.
3551         ("mov<mode>"): Likewise using lhi.
3552
3553 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3554
3555         * config/s390/s390.c (s390_symref_operand_p): Return false for
3556         literal pool references.
3557         (s390_check_qrst_address): Update caller.
3558
3559 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
3560
3561         * config/i386/predicates.md (ext_register_operand): Check that
3562         SUBREG_REG is really a register before looking for REGNO.
3563         (reg_not_xmm0_operand): Handle SUBREGs correctly.
3564         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3565
3566 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
3567
3568         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3569         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3570         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3571         * print-rtl.c (print_rtx): Likewise.
3572         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3573         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3574         for ADDR_EXPR with non-addressable object.
3575         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3576         (struct dw_val_struct): Add v.val_decl_ref.
3577         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3578         Handle DW_OP_GNU_implicit_pointer.
3579         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
3580         (get_ref_die_offset_label): New function.
3581         (implicit_ptr_descriptor): New function.
3582         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3583         (loc_descriptor): Likewise.
3584         (gen_variable_die): Put even definitions into decl_die_table.
3585         (resolve_addr_in_expr): Resolve still unresolved
3586         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3587         return false.
3588         (dwarf2out_finish): Call output_location_lists after outputting
3589         .debug_info and .debug_abbrev instead of before.
3590
3591 2010-09-09  Roland McGrath  <roland@redhat.com>
3592
3593         * dwarf2out.c (DWARF_REF_SIZE): Define.
3594         (size_of_loc_descr): Use it for DW_OP_call_ref.
3595
3596 2010-09-09  Alan Modra  <amodra@gmail.com>
3597
3598         * doc/invoke.text: Reinstate mcmodel=medium.
3599         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3600         CMODEL_MEDIUM as default.
3601         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3602         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3603         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3604         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3605
3606 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3607
3608         PR target/45250
3609         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3610         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3611         (builtin_longjmp): Likewise.
3612         (allocate_stack): Use hard_frame_pointer_rtx instead of
3613         frame_pointer_rtx.
3614         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3615         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3616         (pa_can_eliminate): Likewise.
3617         (TARGET_INTERNAL_ARG_POINTER): Define.
3618         (TARGET_CAN_ELIMINATE): Define.
3619         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3620         pointer.
3621         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3622         (pa_internal_arg_pointer, pa_can_eliminate,
3623         pa_initial_elimination_offset): New.
3624         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3625         (HARD_FRAME_POINTER_REGNUM): Set to register three.
3626         (INITIAL_FRAME_POINTER_OFFSET): Delete.
3627         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3628         Define.
3629         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3630         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3631         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3632         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3633         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3634         new soft frame pointer.
3635         * config/pa/pa64-regs.h: Likewise.
3636
3637 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3638
3639         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3640         numerical constant.
3641         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3642
3643 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3644
3645         PR debug/45531
3646         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3647
3648 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3649
3650         PR debug/45419
3651         PR debug/45408
3652         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3653         qualifiers in otherwise equal MEM_REF pointer types.
3654         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3655         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3656
3657 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3658
3659         PR target/44392
3660         * config/arm/arm.md (bswapsi2): Handle condition correctly
3661         for armv6 and optimize_size.
3662
3663 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3664
3665         PR other/18555
3666         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3667
3668 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3669
3670         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3671         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3672         ix86_expand_strlen, legitimate_pic_address_disp_p,
3673         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3674         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3675         ix86_check_movabs, ix86_secondary_memory_needed): Change function
3676         prototype to bool.
3677         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3678         return_in_memory_ms_64, ix86_check_movabs,
3679         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3680         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3681         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3682         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3683         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3684         ix86_secondary_memory_needed): Change to bool.  Return
3685         "true" and "false" values.
3686         * config/i386/i386.md: Return "true" and "false" values.
3687
3688 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3689
3690         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3691         run_expensive_tests.
3692
3693 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3694
3695         * toplev.c (output_stack_usage): Use lbasename instead of basename.
3696
3697 2010-09-08  Martin Jambor  <mjambor@suse.cz>
3698
3699         PR other/45443
3700         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3701         at -O3.
3702
3703 2010-09-08  Richard Guenther  <rguenther@suse.de>
3704
3705         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3706         (visit): Adjust.
3707         (iterative_hash_gimple_type): Likewise.
3708         (gimple_type_hash): Likewise.
3709         (gimple_register_type): Likewise.
3710         (print_gimple_types_stats): Likewise.
3711         (free_gimple_type_tables): Likewise.
3712
3713 2010-09-08  Michael Matz  <matz@suse.de>
3714
3715         PR tree-optimization/43430
3716         * tree-vect-stmts.c (vectorizable_condition): Support multiple
3717         copies for conditional statements if it's not part of a reduction.
3718
3719 2010-09-08  Michael Matz  <matz@suse.de>
3720
3721         PR tree-optimization/33244
3722         * tree-ssa-sink.c (statement_sink_location): Don't sink into
3723         empty loop latches.
3724
3725 2010-09-08  Richard Guenther  <rguenther@suse.de>
3726
3727         PR tree-optimization/45578
3728         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3729         Be more careful when transfering alignment information to
3730         the new induction variable.
3731         (copy_ref_info): Likewise.
3732
3733 2010-09-08  Richard Guenther  <rguenther@suse.de>
3734
3735         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3736         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3737
3738 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
3739
3740         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3741         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3742
3743 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3744
3745         PR doc/45587
3746         * doc/md.texi: Fixed modes on several standard pattern names.
3747
3748 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
3749
3750         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3751         (ashl<mode>3): ...this.
3752         (loongson_psra<V_suffix>): Rename to...
3753         (ashr<mode>3): ...this.
3754         (loongson_psrl<V_suffix>): Rename to...
3755         (lshr<mode>3): ...this.
3756         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3757         (CODE_FOR_loongson_psllw): Define.
3758         (CODE_FOR_loongson_psrlh): Define.
3759         (CODE_FOR_loongson_psrlw): Define.
3760         (CODE_FOR_loongson_psrah): Define.
3761         (CODE_FOR_loongson_psraw): Define.
3762
3763 2010-09-07  Richard Henderson  <rth@redhat.com>
3764
3765         * tree-vect-data-refs.c: Include tm_p.h.
3766         * Makefile.in (tree-vect-data-refs.o): Update deps.
3767         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3768         Move delarations outside #ifdef RTX_CODE.
3769
3770 2010-09-07  Richard Henderson  <rth@redhat.com>
3771
3772         * final.c (rest_of_handle_final): Unconditionally do
3773         output_function_exception_table before assemble_end_function.
3774
3775 2010-09-07  Jan Hubicka  <jh@suse.cz>
3776
3777         * tree-inline.c (tree_inlinable_function_p): Do not test
3778         DECL_REPLACEABLE_P.
3779         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3780         update_callee_keys, cgraph_decide_inlining): Test function availability.
3781         * cif-code.def (OVERWRITABLE): New code.
3782
3783 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
3784             Jack Howarth  <howarth@bromo.med.uc.edu>
3785
3786         PR target/36502
3787         PR target/42313
3788         PR target/44651
3789         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3790         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3791         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3792         MAX macro.
3793
3794 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3795
3796         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3797         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3798
3799 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3800
3801         * config.gcc: Don't append t-android for Android targets.
3802
3803         * config/t-android: Removed.
3804
3805 2010-09-07  Richard Henderson  <rth@redhat.com>
3806
3807         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3808         * doc/tm.texi.in: Add doc marker.
3809         * doc/tm.texi: Rebuild.
3810         * except.c (switch_to_exception_section): Always build.
3811         (output_one_function_exception_table): Move section switch,
3812         personality output, and label output ...
3813         (output_function_exception_table): ... here.  Use the new
3814         personality hook.
3815
3816         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3817         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3818         TARGET_ASM_INIT_SECTIONS): New.
3819         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3820         make static.
3821         (TARGET_ASM_UNWIND_EMIT): Update to match.
3822         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3823
3824         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3825         (arm_asm_init_sections): New.
3826         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3827
3828 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3829
3830         * config/arm/arm.md: Remove unused variable.
3831
3832 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3833
3834         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3835         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3836         (m32r_memory_move_cost): New function.
3837
3838 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3839
3840         * config.gcc: Append t-android for Android targets.
3841
3842         * config/t-android: New.
3843
3844 2010-09-07  Richard Henderson  <rth@redhat.com>
3845
3846         * target.def (unwind_emit_before_insn): New hook.
3847         * doc/tm.texi.in: Add @hook marker for it.
3848         * doc/tm.texi: Rebuild.
3849         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3850
3851 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3852
3853         PR fortran/43665
3854         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3855         are any type attributes.
3856
3857 2010-09-07  Jan Hubicka  <jh@suse.cz>
3858
3859         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3860         array_ref_low_bound in string access folding.
3861
3862 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3863
3864         PR target/45206
3865         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3866         eh_return fixup sequence.
3867
3868 2010-09-07  Jan Hubicka  <jh@suse.cz>
3869
3870         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3871         gimple_min_invariant.
3872
3873 2010-09-07  Richard Guenther  <rguenther@suse.de>
3874
3875         PR middle-end/45569
3876         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3877         nor CONSTRUCTOR can trap.
3878         * tree-complex.c (update_complex_assignment): Update EH info.
3879
3880 2010-09-07  Richard Guenther  <rguenther@suse.de>
3881
3882         PR middle-end/45569
3883         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3884         * passes.c (execute_function_todo): Do not verify anything if
3885         we saw errors.
3886
3887 2010-09-07  Richard Guenther  <rguenther@suse.de>
3888
3889         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3890
3891 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3892
3893         PR target/43137
3894         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3895         New define_mode_attrs.
3896         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3897         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3898         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3899         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3900         Remove pool_range attribute.
3901         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3902         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3903         pool_range and neg_pool_range attributes.
3904         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3905         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3906         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3907
3908 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3909
3910         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3911         check glibc.
3912
3913 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3914
3915         PR target/22152
3916         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3917         *mov<mode>_internal_avx, *mov<mode>_internal,
3918         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3919         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3920
3921 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3922
3923         * c-typeck.c (do_warn_double_promotion): Remove.
3924         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3925         Objective-C++ too.
3926
3927 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3928
3929         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3930         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3931         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3932         argument type to reg_class_t. Change result type to bool.
3933         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3934
3935 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3936
3937         PR libobjc/19850
3938         * gthr-posix.h (__gthread_objc_thread_detach): Use
3939         _objc_thread_attribs when detaching a thread.
3940         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3941
3942 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3943
3944         PR target/45524
3945         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3946         * configure: Regenerated.
3947
3948 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3949
3950         * combine.c (try_combine): Set subst_low_luid to i0.
3951
3952 2010-09-06  Richard Guenther  <rguenther@suse.de>
3953
3954         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3955         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3956         (build_aligned_type): Declare.
3957         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3958         (check_aligned_type): New function.
3959         (build_aligned_type): Likewise.
3960         * expr.c (expand_assignment): Handle misaligned stores via
3961         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3962         (expand_expr_real_1): Likewise.
3963         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3964         * tree-vect-stmts.c (vectorizable_store): Do not build
3965         MISALIGNED_INDIRECT_REF but initialize alignment information.
3966         (vectorizable_load): Likewise.
3967         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3968         handling.
3969         * cfgexpand.c (expand_debug_expr): Likewise.
3970         * dwarf2out.c (loc_list_from_tree): Likewise.
3971         * fold-const.c (maybe_lvalue_p): Likewise.
3972         (operand_equal_p): Likewise.
3973         (build_fold_addr_expr_with_type_loc): Likewise.
3974         * gimplify.c (gimplify_addr_expr): Likewise.
3975         (gimplify_expr): Likewise.
3976         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3977         (verify_gimple_assign_single): Likewise.
3978         * tree-dump.c (dequeue_and_dump): Likewise.
3979         (tree_could_trap_p): Likewise.
3980         * tree-predcom.c (ref_at_iteration): Likewise.
3981         * tree-pretty-print.c (dump_generic_node): Likewise.
3982         (op_code_prio): Likewise.
3983         (op_symbol_code): Likewise.
3984         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3985         * tree-ssa-loop-im.c (for_each_index): Likewise.
3986         (gen_lsm_tmp_name): Likewise.
3987         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3988         (find_interesting_uses_address): Likewise.
3989         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3990         * tree-ssa-operands.c (get_expr_operands): Likewise.
3991         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3992         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3993         (ao_ref_init_from_vn_reference): Likewise.
3994         * tree.c (staticp): Likewise.
3995         (build1_stat): Likewise.
3996         (reference_alias_ptr_type): Likewise.
3997         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3998         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3999         MISALIGNED_INDIRECT_REF handling.
4000
4001 2010-09-06  Richard Guenther  <rguenther@suse.de>
4002
4003         PR tree-optimization/45534
4004         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
4005         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
4006         on the target.
4007         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
4008         valid on the target.
4009
4010 2010-09-06  Andreas Schwab  <schwab@redhat.com>
4011
4012         * configure.ac: Quote argument of AC_MSG_WARN.
4013         * configure: Regenerate.
4014
4015 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
4016
4017         * sel-sched.c (move_cond_jump): Correct arguments to
4018         maybe_tidy_empty_bb.
4019         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4020
4021 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
4022
4023         PR rtl-optimization/44919
4024         * sel-sched.c (move_cond_jump): Remove assert, check that
4025         the several blocks case can only happen with mutually exclusive
4026         insns instead.  Rewrite the movement code to support moving through
4027         several basic blocks.
4028
4029 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
4030
4031         * config/i386/i386.md (iptrsize): New mode attribute.
4032         (tp_seg): Ditto.
4033         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
4034         mode iterator.
4035         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
4036         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
4037         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
4038         (stack_tls_protect_set_<mode>): Ditto from
4039         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
4040         of thread base pointer load.
4041         (stack_tls_protect_test_<mode>): Ditto from
4042         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
4043         of thread base pointer load.
4044         (stack_protect_set): Rewrite using indirect functions.
4045         (stack_protect_test): Ditto.
4046         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
4047         (ix86_print_operand): Handle '@'.
4048
4049 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
4050
4051         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
4052         MINUS_EXPR.
4053
4054 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4055
4056         * doc/invoke.texi: Document -Wdouble-promotion.
4057         * c-typeck.c (convert_arguments): Check for implicit conversions
4058         from float to double.
4059         (do_warn_double_promotion): New function.
4060         (build_conditional_expr): Use it.
4061         (build_binary_op): Likewise.
4062
4063 2010-09-05  Richard Guenther  <rguenther@suse.de>
4064
4065         PR tree-optimization/45535
4066         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
4067         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
4068         dereferencing it.
4069         (indirect_refs_may_alias_p): Likewise.
4070
4071 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
4072
4073         * config/sh/sh.c (sh_option_override): Make static.
4074         Adjust comments.  Declare.
4075         (sh_function_value_regno_p): Likewise.
4076         (sh_register_move_cost): Modify the arguments, make static.
4077         Adjust comments.  Declare.
4078         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
4079         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4080         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
4081         REGISTER_MOVE_COST): Delete.
4082         * config/sh/sh-protos.h (sh_override_options): Delete.
4083         (sh_register_move_cost): Delete.
4084         (sh_function_value_regno_p): Delete.
4085
4086 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
4087
4088         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
4089         m32r_function_value_regno_p): New functions.
4090         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4091         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
4092         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
4093         FUNCTION_VALUE_REGNO_P): Remove.
4094
4095 2010-09-04  Jan Hubicka  <jh@suse.cz>
4096
4097         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
4098         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
4099         fold_read_from_constant_string.
4100
4101         * gimple.h (canonicalize_constructor_val): Declare.
4102         * gimple-fold.c (canonicalize_constructor_val): New function.
4103         (get_symbol_constant_value):Use it.
4104         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4105
4106 2010-09-04  Jan Hubicka  <jh@suse.cz>
4107
4108         * tree-switch-conversion.c (build_one_array): Set constructor to be
4109         static.
4110         * varpool.c (varpool_finalize_decl): Compute const_value_known.
4111
4112 2010-09-04  Richard Guenther  <rguenther@suse.de>
4113
4114         PR bootstrap/45519
4115         * tree-flow.h (force_gimple_operand_1): Declare.
4116         (force_gimple_operand_gsi_1): Likewise.
4117         * gimplify.c (force_gimple_operand_1): New worker taking a
4118         gimple predicate for ...
4119         (force_gimple_operand): ... which now wraps it.
4120         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
4121         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
4122         last change.
4123         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
4124         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
4125         (create_mem_ref): Likewise.
4126
4127 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
4128
4129         * config/i386/predicates.md (sse_reg_operand): New predicate.
4130         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
4131         predicate for operand 1.
4132         (XFmode push splitter): Use fp_register_operand predicate
4133         for operand 1.
4134         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
4135         (SF-DF float_extend push splitter): Add reload_completed insn
4136         predicate.
4137         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
4138         MODEF mode macro.  Add reload_completed insn predicate.
4139
4140 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
4141
4142         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
4143         (struct df_extract_ref): Remove.
4144         (union df_ref_d): Remove extract_ref member.
4145         (df_ref_create): Remove last three arguments.
4146         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
4147         * df-scan.c (df_ref_record): Remove last three arguments, do not
4148         pass them to df_ref_create_structure.
4149         (df_uses_record): Remove first and last three arguments.  Replace
4150         first argument with DF_REF_REGULAR, adjust calls to remove the
4151         width, offset and mode.  Always call recursively on the second
4152         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
4153         (df_ref_create_structure): Remove first argument.
4154         (struct df_scan_problem_data): Remove ref_extract_pool.
4155         (df_scan_free_internal): Do not free it.
4156         (df_scan_alloc): Do not allocate it.
4157         (df_ref_create): Remove last three arguments, do not pass them to
4158         df_ref_create_structure.
4159         (df_free_ref): Remove DF_REF_EXTRACT case.
4160         (df_notes_rescan): Adjust call to df_uses_record.
4161         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
4162         Remove DF_REF_EXTRACT case.
4163         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
4164         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
4165         and SUBREG definitions.
4166         (df_get_conditional_uses): Remove references to width/offset/mode,
4167         adjust call to df_ref_create_structure.
4168         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
4169         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
4170         calls to df_uses_record and df_ref_record.
4171         * fwprop.c (update_df): Remove references to width/offset/mode,
4172         adjust call to df_ref_create.
4173
4174 2010-09-03  Jan Hubicka  <jh@suse.cz>
4175
4176         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
4177         (build_cdtor_fns): Update use of build_cdtor.
4178
4179 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
4180
4181         * doc/options.texi (SeparateAlias): Document.
4182         * opt-functions.awk (switch_flags): Handle SeparateAlias.
4183         * opth-gen.awk: Generate enumeration names for options marked
4184         SeparateAlias, but not for those marked Ignore.
4185         * opts-common.c (generate_canonical_option): Don't output separate
4186         argument for options marked CL_SEPARATE_ALIAS.
4187         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
4188         * opts.h (CL_SEPARATE_ALIAS): New.
4189         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4190         CL_COMMON): Adjust definitions.
4191         * config/i386/darwin.opt, config/mips/sde.opt: New.
4192         * common.opt (fdump-final-insns): New.
4193         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4194         i386/darwin.opt.
4195         (mips*-sde-elf*): Add mips/sde.opt.
4196         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
4197         -mno-data-in-code and -mcode-xonly here.
4198         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
4199         * gcc.c (option_map): Add "j" to --dump entry.
4200         (translate_options): Don't translate -d to -foutput-class-dir= here.
4201
4202 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
4203
4204         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
4205         DR_IS_WRITE.
4206         (compute_all_dependences): Same.
4207         (create_rdg_edge_for_ddr): Same.
4208         * tree-data-ref.h (DR_IS_WRITE): New.
4209         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
4210         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
4211         (write_memrefs_written_at_least_once): Same.
4212         * tree-predcom.c (suitable_component_p): Same.
4213         (determine_roots_comp): Same.
4214         (execute_load_motion): Same.
4215         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
4216         (vect_enhance_data_refs_alignment): Same.
4217         (vect_analyze_group_access): Same.
4218
4219 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
4220
4221         PR testsuite/42843
4222         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
4223         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
4224
4225 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
4226
4227         * dwarf2out.c (file scope): Remove #if0'd code.
4228         (gen_subprogram_die): Same.
4229
4230 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
4231
4232         PR middle-end/45484
4233         * dwarf2out.c (flush_queued_reg_saves): Rename to...
4234         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
4235         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
4236         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
4237         * config/i386/i386.c (output_set_got): Call it.
4238
4239 2010-09-03  Michael Matz  <matz@suse.de>
4240
4241         PR middle-end/45415
4242         * tree-sra.c (sra_modify_assign): If we modify the statement,
4243         say so.
4244
4245         * tree-ssa.c (verify_ssa): Check number of operands and links
4246         per statement to agree.
4247
4248 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
4249             Iain Sandoe  <iains@gcc.gnu.org>
4250
4251         PR target/45476
4252         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
4253         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
4254         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4255
4256 2010-09-03  Richard Guenther  <rguenther@suse.de>
4257
4258         * lto-streamer-out.c (output_function): Output function
4259         start and end loci.
4260         * lto-streamer-in.c (input_function): Input function start
4261         and end loci.
4262
4263 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4264
4265         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
4266         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
4267         * configure: Regenerate.
4268         * aclocal.m4: Regenerate.
4269
4270 2010-09-03  Jan Hubicka  <jh@suse.cz>
4271
4272         PR lto/44812
4273         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
4274         on functions/variables in other partition.
4275
4276 2010-09-03  Jan Hubicka  <jh@suse.cz>
4277
4278         * cgraph.h (struct varpool_node): Add const_value_known.
4279         (varpool_decide_const_value_known): Declare.
4280         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
4281         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
4282         (input_varpool_node): Restore const_value_known.
4283         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
4284         initializer folding.
4285         * ipa.c (ipa_discover_readonly_nonaddressable_var,
4286         function_and_variable_visibility): Compute const_value_known.
4287         * gimple-fold.c (get_symbol_constant_value): Use varpool for
4288         initializer folding.
4289         * varpool.c (varpool_decide_const_value_known): New function.
4290
4291 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
4292
4293         * config/i386/i386.md: Remove empty preparation statements
4294         from splitters.
4295
4296 2010-09-03  Jan Hubicka  <jh@suse.cz>
4297
4298         * passes.c (rest_of_decl_compilation): Do not add local vars into
4299         varpool.
4300         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
4301         static or extern vars are in varpool.
4302         (varpool_finalize_decl): Sanity check that only static vars are
4303         finalized.
4304
4305 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
4306
4307         PR debug/45500
4308         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
4309         not just generic vectors with BLKmode.
4310
4311 2010-09-03  Richard Guenther  <rguenther@suse.de>
4312
4313         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
4314         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
4315         * tree.h (TMR_SYMBOL): Remove.
4316         (TMR_BASE, TMR_OFFSET): Adjust.
4317         (TMR_INDEX2): New.
4318         * alias.c (ao_ref_from_mem): Use TMR_BASE.
4319         * builtins.c (get_object_alignment): Merge TMR_BASE and
4320         TMR_SYMBOL handling.
4321         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
4322         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
4323         handling.  Also allow TARGET_MEM_REF as base address.
4324         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
4325         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
4326         base.  Gimplify TMR_INDEX2.
4327         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
4328         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4329         (get_addr_base_and_unit_offset): Likewise.
4330         * tree-eh.c (tree_could_trap_p): Likewise.
4331         * tree-pretty-print.c (dump_generic_node): Likewise.
4332         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
4333         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
4334         base to index2.
4335         (get_address_description): Reconstruct addres description
4336         from merged TMR_BASE and TMR_INDEX2.
4337         (maybe_fold_tmr): Fold propagated addresses.
4338         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
4339         MEM_REF and TARGET_MEM_REF paths.
4340         (indirect_refs_may_alias_p): Likewise.
4341         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
4342         instead of TMR_SYMBOL.
4343         * tree-ssa-operands.c (get_tmr_operands): Simplify.
4344         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
4345         according to changes ...
4346         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
4347         Split TARGET_MEM_REF into two fields plus the base.
4348         * tree.c (mem_ref_offset): Simplify.
4349         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
4350         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
4351         Strip NOPs when folding MEM_REF addresses.
4352         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
4353         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
4354         (fold_gimple_assign): ... not here.
4355
4356 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
4357
4358         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
4359         * config/mips/mips.c (mips_shift_truncation_mask): New function.
4360         (TARGET_SHIFT_TRUNCATION_MASK): Define.
4361
4362 2010-09-02  Richard Henderson  <rth@redhat.com>
4363
4364         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
4365         instead of readelf in the test.
4366         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
4367         in the .debug_frame section for coff targets.
4368         * configure: Rebuild.
4369
4370 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4371
4372         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
4373         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
4374         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4375         (m32c_class_likely_spilled_p): Make static. Change argument type to
4376         reg_class_t. Change result type to bool.
4377
4378 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4379
4380         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
4381         to convert (double)(long) into a single FRIZ instruction or not
4382         when -ffast-math is used.
4383
4384         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
4385         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
4386         or FRIZ instruction if -ffast-math.
4387         * config/rs6000/rs6000.md (friz): Ditto.
4388
4389         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
4390
4391 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4392
4393         * opth-gen.awk (quote, comma): Remove unused variables.
4394
4395 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
4396
4397         * arm.c (arm_override_options): Correct fall-back code to use
4398         SUBTARGET_CPU_DEFAULT.
4399
4400 2010-09-02  Julian Brown  <julian@codesourcery.com>
4401
4402         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
4403         unspecs.
4404         (vcond<mode>, vcondu<mode>): New expanders.
4405         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
4406         comparisons with zero.
4407         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
4408         * config/arm/constraints.md (Dz): New constraint.
4409
4410 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4411
4412         * target.def (class_likely_spilled_p): New hook.
4413         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
4414         * doc/tm.texi: Regenerate.
4415         * targhooks.c (default_class_likely_spilled_p): New function.
4416         * targhooks.h (default_class_likely_spilled_p): Declare.
4417         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
4418         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
4419         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
4420         Use fixed_reg_set instead of fixed_regs.
4421         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4422         * calls.c (avoid_likely_spilled_reg): Ditto.
4423         * ira-conflicts.c (ira_build_conflicts): Ditto.
4424         * ira.c (update_equiv_regs): Ditto.
4425         * mode-switching.c (create_pre_exit): Ditto.
4426         * regmove.c (find_matches): Ditto.
4427         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4428         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
4429         (small_register_class_p): New inline function.
4430         (push_secondary_reload, find_reusable_reload, find_reloads): Use
4431         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
4432
4433         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
4434         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
4435         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4436
4437 2010-09-02  Richard Guenther  <rguenther@suse.de>
4438
4439         PR tree-optimization/44937
4440         PR tree-optimization/45412
4441         * ipa-split.c (split_function): Properly remove PHI nodes.
4442
4443 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4444
4445         * opts.h (struct cl_option): Add warn_message field.
4446         (struct cl_decoded_option): Add warn_message field.
4447         * doc/options.texi (Ignore, Warn): Document.
4448         * opt-functions.awk (needs_state_p): Don't consider aliases or
4449         ignored options to need state saved.
4450         * optc-gen.awk: Handle Warn and Ignore.
4451         * opth-gen.awk: Output OPT_SPECIAL_ignore.
4452         * opts-common.c (decode_cmdline_option): Set warn_message field.
4453         Handle ignored options.
4454         (decode_cmdline_options_to_array, generate_option,
4455         generate_option_input_file): Set warn_message field.
4456         (read_cmdline_option): Generate warnings from warn_message field.
4457         Handle ignored options.
4458         * common.opt (Wunreachable-code, fargument-alias,
4459         fargument-noalias, fargument-noalias-global,
4460         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4461         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4462         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4463         ftree-salias): Mark Ignore.
4464         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4465         -mintel-syntax and -mno-intel-syntax here.
4466         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4467         using Warn.
4468         * opts.c (common_handle_option): Don't handle options marked as
4469         ignored.
4470         (enable_warning_as_error): Handle ignored options.
4471
4472 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4473
4474         PR driver/44076
4475         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4476         alias_target fields.
4477         * opt-functions.awk (opt_sanitized_name): Don't handle
4478         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4479         * optc-gen.awk: Generate alias fields.
4480         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4481         Don't generate such constants for aliases.
4482         * opts-common.c (generate_canonical_option): New.
4483         (decode_cmdline_option): Handle aliases.  Use
4484         generate_canonical_option for known options instead of copying the
4485         input option text.
4486         * doc/options.texi (Alias): Document.
4487         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4488         fstack-check, specs): Mark as aliases.
4489         * gcc.c (driver_handle_option): Canonicalize -L options to joined
4490         arguments.
4491         (driver_handle_option): Don't handle OPT_specs.
4492         * opts.c (common_handle_option): Don't handle options marked as
4493         aliases.
4494         (enable_warning_as_error): Handle aliases.
4495         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4496         OPT_Wlarger_than_eq.
4497         * tree-optimize.c (tree_rest_of_compilation): Use
4498         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4499
4500 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4501
4502         * config/i386/i386.md (nonmemory_operand): New mode attribute.
4503         (push memory peephole2): Macroize peepholes using SWI mode iterator.
4504         (move immediate to memory peephole2): Macroize peepholes using
4505         SWI124 mode iterator.
4506         (non-pairable NOT peephole2): Macroize peepholes using SWI124
4507         mode iterator.
4508         (simple lea add peephole2): Macroize peepholes using SWI48
4509         mode iterator.
4510         (simple lea mult peephole2): Ditto.
4511         (imul by 3,5,9 to lea peephole2): Ditto.
4512         (mov $-1, reg peephole2): Macroize peepholes using SWI248
4513         mode iterator.
4514         (imul $32bit_imm,mem,reg peephole2): Ditto.
4515         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4516
4517 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
4518
4519         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4520
4521 2010-09-02  Olivier Hainque  <hainque@adacore.com>
4522
4523         PR middle-end/44763
4524         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4525         (allocno_priority_compare_func): Use it instead of a straight
4526         difference computation over priorities.
4527
4528 2010-09-02  Andi Kleen  <ak@linux.intel.com>
4529
4530         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4531
4532 2010-09-02  Ira Rosen  <irar@il.ibm.com>
4533
4534         * tree-vectorizer.h (get_later_stmt): New function.
4535         (vect_analyze_data_ref_dependences): Add argument.
4536         * tree-vect-loop.c (vect_analyze_loop): Update call to
4537         vect_analyze_data_ref_dependences.
4538         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4539         New function.
4540         (vect_analyze_data_ref_dependence): Add argument for basic block
4541         dependencies. Check dependencies in basic block vectorization.
4542         (vect_analyze_data_ref_dependences): Add argument and update call to
4543         vect_analyze_data_ref_dependences.
4544         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4545         (vect_bb_vectorizable_with_dependencies): New.
4546         (vect_slp_analyze_bb): Check dependencies in basic block.
4547         (vect_schedule_slp_instance): Insert stores before the last store in
4548         SLP instance.
4549
4550 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4551
4552         PR target/45476
4553         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4554         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4555
4556 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
4557
4558         PR middle-end/45458
4559         * bb-reorder.c (add_labels_and_missing_jumps): Treat
4560         bbs ending with throwing insns like blocks ending with a call.
4561         (fix_up_fall_thru_edges): Likewise.
4562
4563 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
4564
4565         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4566         (m32c_function_arg_advance): Delete.
4567         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4568         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
4569         comments.  Take a const_tree and a bool.  Declare.
4570         (m32c_function_arg_advance): Likewise.
4571         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4572
4573 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4574
4575         PR target/45476
4576         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4577         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4578         * config/i386/mingw32.h: ... here.
4579
4580 2010-09-01  Andi Kleen  <ak@linux.intel.com>
4581
4582         PR lto/45475
4583         * lto-streamer-in.c (lto_input_ts_target_option): Add.
4584         (lto_input_tree_pointers): Call lto_input_ts_target_option.
4585         * lto-streamer-out (lto_output_ts_target_option): Add.
4586         (lto_output_tree_pointers): Call lto_output_ts_target_option.
4587
4588 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
4589
4590         PR/target 45452
4591         * config/i386/cygwin.h: Change order of specified import libraries.
4592         * config/i386/mingw32.h: Likewise.
4593         * config/i386/t-cygwin: Likewise.
4594         * config/i386/t-mingw32: Likewise.
4595         * config/i386/t-mingw-w32: Likewise.
4596         * config/i386/t-mingw-w64: Likewise.
4597
4598 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4599
4600         * config/arm/neon-schedgen.ml (core): New type.
4601         (allCores): List of supported cores.
4602         (availability_table): Add supported cores.
4603         (collate_bypasses): Accept core as a parameter.
4604         (worst_case_latencies_and_bypasses): Accept core as a parameter.
4605         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
4606         and coreStr to get tune attribute and prefix for functional units.
4607         (emit_bypasses): Accept core name and use it.
4608         (calculate_per_core_availability_table): New.
4609         (filter_core): New.
4610         (calculate_core_availability_table): New.
4611         (main): Use calculate_core_availablity_table.
4612         * config/arm/cortex-a8-neon.md: Update copyright year.
4613         Regenerated from ml file and merged in.
4614         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4615         cortex_a8_neon_mrc.
4616
4617 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
4618
4619         * Makefile.in (tree-switch-conversion.o): Update dependencies.
4620
4621 2010-09-01  Richard Guenther  <rguenther@suse.de>
4622
4623         * alias.c (ao_ref_from_mem): Adjust.
4624         * builtins.c (get_object_alignment): Likewise.
4625         * cfgexpand.c (expand_debug_expr): Likewise.
4626         * gimple.c (get_base_address): Likewise.
4627         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4628         (get_addr_base_and_unit_offset): Likewise.  Fix for
4629         both TMR_SYMBOL and TMR_BASE being set.
4630         * tree-eh.c (tree_could_trap_p): Likewise.
4631         * gimplify.c (gimplify_expr): Do not attempt to gimplify
4632         TMR_SYMBOL.  Always gimplify TMR_BASE.
4633         * tree-cfg.c (verify_types_in_gimple_reference): Verify
4634         TMR_BASE if there is a TMR_SYMBOL.
4635         * tree-pretty-print.c (dump_generic_node): Adjust.
4636         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4637         (tree_mem_ref_addr): Likewise.
4638         (create_mem_ref_raw): Likewise.
4639         (move_fixed_address_to_symbol): Likewise.
4640         (create_mem_ref): Likewise.
4641         (dump_mem_address): Likewise.
4642         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4643         Fix for both TMR_SYMBOL and TMR_BASE being set.
4644         (indirect_refs_may_alias_p): Likewise.
4645         * tree-ssa-operands.c (get_tmr_operands): Adjust.
4646         * tree.def (TARGET_MEM_REF): Adjust documentation.
4647
4648 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4649
4650         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4651         Rename from X86_TUNE_ADD_ESP_4.
4652         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4653         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4654         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4655         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4656         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4657         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4658         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4659         * config/i386/i386.c (initial_ix86_tune_features)
4660         <X86_TUNE_SINGLE_POP>: Invert members.
4661         <X86_TUNE_DOUBLE_POP>: Ditto.
4662         <X86_TUNE_SINGLE_PUSH>: Ditto.
4663         <X86_TUNE_DOUBLE_PUSH>: Ditto.
4664         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4665         No longer exported.
4666         (push peephole2 patterns): Macroize peepholes using P mode iterator.
4667         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4668         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4669         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4670
4671 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4672
4673         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4674         a volatile LHS if the constructor has only one element.
4675
4676 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
4677
4678         PR bootstrap/45321
4679         * tree.c (stdarg_p): Make fntype parameter const.
4680         * tree.h (stdarg_p): Likewise.
4681         (function_args_iterator): Remove unused fntype field.
4682         (function_args_iter_init): Do not initialize fntype
4683         field.  Make fntype parameter const.
4684
4685 2010-09-01  Richard Guenther  <rguenther@suse.de>
4686
4687         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4688         estimate.
4689         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4690         (execute_vrp): Compute number of iteration estimates.
4691         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4692         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4693         * tree-data-ref.c (estimated_loop_iterations): Adjust.
4694         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4695         Infer loop bounds from undefined behavior based on a new parameter.
4696         (estimate_numbers_of_iterations): Likewise.
4697         (scev_probably_wraps_p): Adjust.
4698         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4699
4700 2010-09-01  Nick Clifton  <nickc@redhat.com>
4701
4702         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4703         where appropriate.
4704         (xstormy16_legitimate_address_p): Use true and false instead of 1
4705         and 0.
4706         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4707         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4708         magic constant 2.
4709         (xstormy16_expand_call): Fix comment at start of function.
4710
4711 2010-09-01  Nick Clifton  <nickc@redhat.com>
4712
4713         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4714         when pushing accumulator register.
4715         (rx_get_stack_layout): Always save call clobbered registers inside
4716         interrupt handlers.
4717         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4718
4719 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4720
4721         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4722         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4723
4724         * libgcc-std.ver (GCC_4.6.0): Define version.
4725
4726 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4727
4728         * tree-nested.c (convert_all_function_calls): Iterate until after the
4729         sum of static chains in the nest doesn't change.
4730
4731 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
4732
4733         * config/m32c/m32c.c (classes_intersect): Remove.
4734         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4735         reg_classes_intersect_p instead of classes_intersect.
4736         (class_can_hold_mode): Change arguments type from enum reg_class to
4737         reg_class_t.  Use reg_class_contents instead of class_contents.
4738         (m32c_register_move_cost): Make static. Change arguments type from
4739         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4740         classes_intersect. Use reg_class_contents instead of class_contents.
4741         (m32c_memory_move_cost): Make static. Change arguments type from
4742         enum reg_class to reg_class_t.
4743         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4744         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4745         * config/m32c/m32c-protos.h (m32c_register_move_cost,
4746         m32c_memory_move_cost): Remove.
4747
4748 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4749
4750         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4751         (arm_function_arg): Delete.
4752         (arm_needs_doubleword_align): Take a const_tree.
4753         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4754         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4755         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4756         (arm_function_arg): Make static.  Take a const_tree and a bool.
4757         (arm_function_arg_advance): Likewise.
4758         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4759
4760 2010-08-31  Andi Kleen  <ak@linux.intel.com>
4761
4762         * common.opt (fwhopr=): Update for -fwhopr=jobserver
4763         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4764         * lto-wrapper.c (run_gcc): Add jobserver mode.
4765         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4766         argument.
4767
4768 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
4769
4770         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4771         (popsi1): Ditto.
4772         (*popdi1_epilogue): Ditto.
4773         (*popsi1_epilogue): Ditto.
4774         (popsi, popdi peephole2 patterns): Update peepholes for changed
4775         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4776
4777         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4778         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4779
4780         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4781         (override_options): Do not initialize removed ix86_gen_pop1.
4782         (gen_pop): New static function.
4783         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4784         (release_scratch_register_on_entry): Ditto.
4785         (ix86_restore_reg_using_pop): Ditto.
4786         (ix86_expand_epilogue): Ditto.
4787
4788 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
4789
4790         PR middle-end/45461
4791         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4792
4793 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4794
4795         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4796         semicolons.
4797
4798 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4799
4800         * doc/extend.texi: Fix documentation of the return value of
4801         __builtin_choose_expr.
4802
4803 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4804
4805         * config/v850/v850-protos.h (function_arg): Delete.
4806         * config/v850/v850.h (FUNCTION_ARG): Delete.
4807         (FUNCTION_ARG_ADVANCE): Move code to...
4808         * config/v850/v850.c (v850_function_arg_advance): ...here.
4809         (v850_function_arg): Make static.  Take a const_tree and a bool.
4810         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4811
4812 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4813
4814         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4815         these...
4816         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4817         ...and these...
4818         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4819         ..to here..
4820         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4821         ...and here.
4822         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4823
4824 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4825
4826         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4827         Delete.
4828         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4829         * config/rx/rx.c (rx_function_arg_size): Make static.
4830         (rx_function_arg): Likewise.
4831         (rx_function_arg_advance): New function.
4832         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4833
4834 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4835
4836         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4837         Fix indentation.
4838
4839 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4840
4841         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4842         (dwarf2out_decl) <CONST_DECL>: Likewise.
4843
4844 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4845
4846         Stack usage support
4847         * common.opt (-fstack-usage): New option.
4848         * doc/invoke.texi (Debugging options): Document it.
4849         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4850         allocate_dynamic_stack_space.
4851         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4852         and propagate it to allocate_dynamic_stack_space.
4853         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4854         * calls.c (initialize_argument_information): Pass TRUE as 4th
4855         argument to allocate_dynamic_stack_space.
4856         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4857         to 1 when pushing a variable-sized argument onto the stack.  Pass
4858         TRUE as 4th argument to allocate_dynamic_stack_space.
4859         Update current_function_pushed_stack_size.
4860         (emit_library_call_value_1): Likewise.
4861         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4862         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4863         attempt to find an upper bound.  Remove redundant code for the
4864         SETJMP_VIA_SAVE_AREA case.
4865         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4866         * function.h (struct stack_usage): New structure.
4867         (current_function_static_stack_size): New macro.
4868         (current_function_dynamic_stack_size): Likewise.
4869         (current_function_pushed_stack_size): Likewise.
4870         (current_function_dynamic_alloc_count): Likewise.
4871         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4872         (current_function_allocates_dynamic_stack_space): Likewise.
4873         (struct function): Add new field 'su'.
4874         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4875         add the value of the dynamic offset to the dynamic stack usage.
4876         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4877         for variable-sized objects.
4878         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4879         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4880         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4881         BUILT_IN_ALLOCA for variable-sized objects.
4882         * output.h (output_stack_usage): Declare.
4883         * toplev.c (stack_usage_file): New file pointer.
4884         (output_stack_usage): New function.
4885         (open_auxiliary_file): Likewise.
4886         (lang_dependent_init): Open file if flag_stack_usage is set.
4887         (finalize): Close file if stack_usage_file is not null.
4888         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4889         * config/alpha/alpha.c (compute_frame_size): New function.
4890         (alpha_expand_prologue): Use it.
4891         (alpha_start_function): Likewise.
4892         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4893         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4894         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4895         * config/mips/mips.c (mips_expand_prologue): Likewise.
4896         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4897         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4898         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4899
4900 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4901
4902         PR tree-optimization/45427
4903         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4904         Handle the case that the exit is never taken correctly.
4905         (number_of_iterations_ne): Pass exit_must_be_taken to
4906         number_of_iterations_ne_max.
4907
4908 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4909
4910         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4911         Infer -mdspr2 for the the 74K.
4912
4913 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4914
4915         PR debug/45419
4916         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4917
4918         PR middle-end/45423
4919         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4920         and TRUTH_{AND,OR,XOR}_EXPR.
4921         * c-parser.c (c_parser_omp_atomic): Handle boolean
4922         {PRE,POST}_{INC,DEC}REMENT.
4923
4924 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4925
4926         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4927         (function_arg): Delete.
4928         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4929         (FUNCTION_INCOMING_ARG): Delete.
4930         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4931         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4932         and a bool.
4933         (function_arg): Rename to...
4934         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4935         a bool.
4936         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4937         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4938         (TARGET_FUNCTION_INCOMING_ARG): Define.
4939
4940 2010-08-30  Richard Guenther  <rguenther@suse.de>
4941
4942         PR tree-optimization/21602
4943         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4944         using points-to information.
4945
4946 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4949
4950 2010-08-30  Richard Guenther  <rguenther@suse.de>
4951
4952         PR tree-optimization/45449
4953         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4954         variables.
4955
4956 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4957
4958         * opts.h (CL_ERR_NEGATIVE): Define.
4959         * opts.c (unknown_option_callback): Don't postpone warnings for
4960         options marked with CL_ERR_NEGATIVE.
4961         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4962         for negative versions of CL_REJECT_NEGATIVE options.
4963
4964 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4965
4966         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4967         zero_extendsidi2_32.
4968         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4969         using SWI12 mode iterator.
4970         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4971         to define_insn_and_split pattern.
4972         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4973         using SWI24 mode iterator.
4974         (*zero_extendqi<mode>2_and): Macroize insn from
4975         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4976         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4977         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4978         SWI24 mode iterator.
4979         (*zero_extendqi<mode>2_movzbl): Ditto from
4980         *zero_extendqi{hi,si}2_movzbl.
4981         (extendsidi2_1): Rename from extendsidi2_32.
4982         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4983         SWI12 mode iterator.
4984
4985 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4986
4987         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4988         general purpose registers.
4989         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4990         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4991         with general purpose registers and memory operands.  Add associated
4992         CCImode post-reload splitter.
4993         * config/ia64/div.md: Change BImode to CCImode throughout.
4994
4995 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4996
4997         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4998
4999 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
5000
5001         * config/picochip/picochip.c (reorder_var_tracking_notes): This
5002         function was dropping debug insns which caused PR45299.
5003
5004 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
5005
5006         * config/i386/sse.md (extsuffix): New code attribute.
5007         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
5008         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
5009         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
5010         and sse4_1_zero_extendv4qiv4si2.
5011         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
5012         and sse4_1_zero_extendv2qiv2di2.
5013         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
5014         and sse4_1_zero_extendv4hiv4si2.
5015         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
5016         and sse4_1_zero_extendv2hiv2di2.
5017         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
5018         and sse4_1_zero_extendv2siv2di2
5019
5020         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
5021         using any_extend code iterator.
5022         (*avx_<s>mulv8hi3_highpart): Macroize insn from
5023         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
5024         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
5025
5026         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
5027         gen_sse4_1_sign_extend* functions.
5028         (struct builtin_description bdesc_args): Ditto.
5029
5030 2010-08-27  Xinliang David Li  <davidxl@google.com>
5031
5032         PR/45422
5033         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
5034         (iv_ca_set_no_cp): Update used inv expr count.
5035         (iv_ca_set_cp): Ditto.
5036         (iv_ca_new): Initialize new member.
5037         (iv_ca_free): Free memory.
5038
5039 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5040
5041         * config/sh/sh-protos.h (sh_function_arg): Delete.
5042         (sh_function_arg_advance): Delete.
5043         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5044         (PASS_IN_REG_P): Eliminate cast.
5045         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
5046         const_tree and a bool.
5047         (sh_function_arg): Likewise.
5048         (sh_output_mi_thunk): Call sh_function_arg_advance) and
5049         sh_function_arg.
5050         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5051
5052 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
5053             Kaz Kojima  <kkojima@gcc.gnu.org>
5054
5055         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
5056         when possible.
5057         (sh_expand_epilogue): Likewise.
5058         * config/sh/sh.md (movml_push_banked): New insn.
5059         (movml_pop_banked): Likewise.
5060
5061 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
5062
5063         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
5064         gen_regexp_oneof, gen_regexp_sequence): Use the string found
5065         in vector element 0 rather than the original string when there's
5066         only one element.
5067         (gen_regexp): Remove extra semicolon.
5068
5069         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
5070         thumb2_movsf_vfp): Set attribute "insn".
5071         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
5072         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
5073         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
5074         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
5075         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
5076         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
5077         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
5078         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
5079         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
5080         if_not_arith, if_arith_not, cond_move_not): Likewise.
5081
5082 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5083
5084         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
5085         New declaration.
5086         (rs6000_allocate_stack_temp): Ditto.
5087         (rs6000_expand_convert_si_to_sfdf): Ditto.
5088
5089         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
5090         line.  Update the options set if power6 or power7 server/embedded
5091         type options are used.  If we give a warning for no vsx under
5092         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
5093         (rs6000_allocate_stack_temp): New function to allocate a stack
5094         tempoary and adjust the address so it meets either REG+OFFSET or
5095         REG+REG addressing requirements.
5096         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
5097         that they can be used with the LFIWAX/LFIWZX instrucitons.
5098         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
5099         converting signed/unsigned SImode to either SFmode/DFmode.
5100
5101         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
5102         whether certain instructions can be generated.
5103         (TARGET_FCTIDZ): Ditto.
5104         (TARGET_STFIWX): Ditto.
5105         (TARGET_LFIWAX): Ditto.
5106         (TARGET_LFIWZX): Ditto.
5107         (TARGET_FCFIDS): Ditto.
5108         (TARGET_FCFIDU): Ditto.
5109         (TARGET_FCFIDUS): Ditto.
5110         (TARGET_FCTIDUZ): Ditto.
5111         (TARGET_FCTIWUZ): Ditto.
5112
5113         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
5114         (UNSPEC_FCTID): Ditto.
5115         (UNSPEC_LFIWAX): Ditto.
5116         (UNSPEC_LFIWZX): Ditto.
5117         (UNSPEC_FCTIWUZ): Ditto.
5118         (rreg): Use correct constraints.
5119         (SI_CONVERT_FP): New mode attribute for floating point conversion
5120         tests.
5121         (E500_CONVERT): Ditto.
5122         (lfiwax): New insns for converting from integer to floating point
5123         utilizing newer instructions.  Attempt to optimize conversions
5124         that come from memory so that we don't load the value into a GPR,
5125         spill it to the stack and reload it into a FPR.
5126         (floatsi<mode>2_lfiwax): Ditto.
5127         (floatsi<mode>2_lfiwax_mem): Ditto.
5128         (floatsi<mode>2_lfiwax_mem2): Ditto.
5129         (lfiwzx): Ditto.
5130         (floatunssi<mode>2_lfiwzx): Ditto.
5131         (floatunssi<mode>2_lfiwzx_mem): Ditto.
5132         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5133         (floatdidf2_mem): Ditto.
5134         (floatunsdidf2_fcfidu): Ditto.
5135         (floatunsdidf2_mem): Ditto.
5136         (floatunsdisf2): Ditto.
5137         (floatunsdisf2_fcfidus): Ditto.
5138         (floatunsdisf2_mem): Ditto.
5139         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
5140         Use FCFID on 32-bit hosts that support it.
5141         (floatsidf2_internal): Ditto.
5142         (floatunssisf2): Ditto.
5143         (floatunssidf2): Ditto.
5144         (floatunssidf2_internal): Ditto.
5145         (floatsisf2): Ditto.
5146         (floatdidf2): Ditto.
5147         (floatdidf2_fpr): Ditto.
5148         (floatunsdidf2): Ditto.
5149         (floatdisf2): Ditto.
5150         (floatdisf2_fcfids): Ditto.
5151         (floatdisf2_internal1): Ditto.
5152         (fixuns_truncsfsi2): Delete, merge into common pattern for both
5153         SF/DF.  Add power7 support.
5154         (fix_truncsfsi2): Ditto.
5155         (fixuns_truncdfsi2): Ditto.
5156         (fixuns_truncdfdi2): Ditto.
5157         (fix_truncdfsi2): Ditto.
5158         (fix_truncdfsi2_internal): Ditto.
5159         (fix_truncdfsi2_internal_gfxopt): Ditto.
5160         (fix_truncdfsi2_mfpgpr): Ditto.
5161         (fctiwz): Ditto.
5162         (btruncdf2): Ditto.
5163         (btruncdf2_fpr): Ditto.
5164         (btructsf2): Ditto.
5165         (ceildf2): Ditto.
5166         (ceildf2_fpr): Ditto.
5167         (ceilsf2): Ditto.
5168         (floordf2): Ditto.
5169         (floordf2_fpr): Ditto.
5170         (floorsf2): Ditto.
5171         (rounddf2): Ditto.
5172         (rounddf2_fpr): Ditto.
5173         (roundsf2): Ditto.
5174         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
5175         (fix_trunc<mode>di2): Ditto.
5176         (fixuns_trunc<mode>si2): Ditto.
5177         (fixuns_trunc<mode>di2): Ditto.
5178         (fctiwz_<mode>): Ditto.
5179         (btrunc<mode>2): Ditto.
5180         (btrunc<mode>2_fpr): Ditto.
5181         (ceil<mode>2): Ditto.
5182         (ceil<mode>2_fpr): Ditto.
5183         (floor<mode>2): Ditto.
5184         (float<mode>2_fpr): Ditto.
5185         (round<mode>2): Ditto.
5186         (round<mode>2_fpr): Ditto.
5187         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
5188         (fixuns_trunc<mode>si2_stfiwx): Ditto.
5189         (fix_truncdfsi2_internal): Ditto.
5190         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
5191         converted value on stack, loaded into GPR, and then stored into
5192         the final destination.
5193         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
5194         FCTIDZ.
5195         (lrint<mode>di2): New insn, provide the lrint builtin functions.
5196         (ftruncdf2): Delete, unused.
5197         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
5198
5199         * config/rs6000/vsx.md (toplevel): Update copyright year.
5200         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
5201         (VSr3): Ditto.
5202
5203 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
5204             Jeremie Salvucci  <jeremie.salvucci@free.fr>
5205
5206         * gengtype.c (output_type_enum): Test the right union member.
5207
5208 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
5209
5210         PR target/41484
5211         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
5212         operands for operand 1.
5213         (sse4_1_extendv4qiv4si2): Ditto.
5214         (sse4_1_extendv2qiv2di2): Ditto.
5215         (sse4_1_extendv4hiv4si2): Ditto.
5216         (sse4_1_extendv2hiv2di2): Ditto.
5217         (sse4_1_extendv2siv2di2): Ditto.
5218         (sse4_1_zero_extendv8qiv8hi2): Ditto.
5219         (sse4_1_zero_extendv4qiv4si2): Ditto.
5220         (sse4_1_zero_extendv2qiv2di2): Ditto.
5221         (sse4_1_zero_extendv4hiv4si2): Ditto.
5222         (sse4_1_zero_extendv2hiv2di2): Ditto.
5223         (sse4_1_zero_extendv2siv2di2): Ditto.
5224         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
5225         (*sse4_1_extendv4qiv4si2): Ditto.
5226         (*sse4_1_extendv2qiv2di2): Ditto.
5227         (*sse4_1_extendv4hiv4si2): Ditto.
5228         (*sse4_1_extendv2hiv2di2): Ditto.
5229         (*sse4_1_extendv2siv2di2): Ditto.
5230         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
5231         (*sse4_1_zero_extendv4qiv4si2): Ditto.
5232         (*sse4_1_zero_extendv2qiv2di2): Ditto.
5233         (*sse4_1_zero_extendv4hiv4si2): Ditto.
5234         (*sse4_1_zero_extendv2hiv2di2): Ditto.
5235         (*sse4_1_zero_extendv2siv2di2): Ditto.
5236
5237 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5238
5239         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
5240         (mips_function_arg): Delete.
5241         (mips_function_arg_boundary): Take a const_tree.
5242         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
5243         (mips_arg_info): Likewise.
5244         (mips_setup_incoming_varargs): Call mips_function_arg_advance
5245         instead of FUNCTION_ARG_ADVANCE.
5246         (mips_function_arg_advance): Adjust prototype.  Make static.
5247         (mips_function_arg): Likewise.
5248         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5249         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5250
5251 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5252
5253         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5254         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
5255         (function_arg): Delete.
5256         (function_arg_boundary): Take a const_tree.
5257         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
5258         (rs6000_spe_function_arg): Likewise.
5259         (rs6000_parm_start): Likewise.
5260         (rs6000_arg_size): Likewise.
5261         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
5262         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
5263         (rs6000_mixed_function_arg): Likewise.
5264         (function_arg): Rename to...
5265         (rs6000_function_arg): ...this.
5266         (function_arg_advance): Rename to...
5267         (rs6000_function_arg_advance_1): ...this
5268         (rs6000_function_arg_advance): New function.  Call it.
5269         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
5270         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
5271         (rs6000_function_value): Likewise.
5272         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5273
5274 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5275
5276         * config/arm/arm.md (enabled): Test the value of arch_enabled
5277         rather than just using it.
5278
5279 2010-08-27  Olivier Hainque  <hainque@adacore.com>
5280             Eric Botcazou  <ebotcazou@adacore.com>
5281
5282         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
5283         cover all the possible offsets from this base.
5284         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
5285
5286 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
5287
5288         PR tree-optimization/44485
5289         * calls.c (flags_from_decl_or_type): For const or pure
5290         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
5291         together with ECF_CONST resp. ECF_PURE.
5292         * builtins.c (expand_builtin): Use flags_from_decl_or_type
5293         instead of querying flags directly.
5294         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
5295         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
5296
5297 2010-08-26  Richard Guenther  <rguenther@suse.de>
5298
5299         PR tree-optimization/45255
5300         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
5301         and externals are also invariant.
5302
5303 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5304
5305         PR rtl-optimization/44858
5306         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
5307         newi2pat, make sure they don't affect newpat.
5308
5309         PR rtl-optimization/45400
5310         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
5311         SUBREG_REG if both modes are of MODE_INT class.
5312
5313 2010-08-25  Julian Brown  <julian@codesourcery.com>
5314
5315         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
5316         * config/arm/arm.md (generic_sched): No for Cortex-A5.
5317         (generic_vfp): Likewise.
5318         (cortex-a5.md): Include.
5319         * config/arm/cortex-a5.md: New.
5320
5321 2010-08-25  Richard Guenther  <rguenther@suse.de>
5322
5323         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
5324         * gimple.c (gimple_get_alias_set): Remove special handling
5325         for pointers.
5326
5327 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5328
5329         PR middle-end/45355
5330         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
5331         dead_or_set_p when computing i0_feeds_i2_n.
5332
5333         * combine.c (find_split_point): Undo canonicalization of multiply-add
5334         to (minus x (mult)) when it seems likely that this will increase the
5335         chances of a split.
5336
5337 2010-08-25  Richard Guenther  <rguenther@suse.de>
5338
5339         PR lto/44562
5340         * lto-streamer.c (lto_record_common_node): Do not mess with
5341         TYPE_CANONICAL when not in lto.
5342         * gimple.c (gimple_register_type): Likewise.
5343
5344 2010-08-25  Richard Guenther  <rguenther@suse.de>
5345
5346         PR tree-optimization/45316
5347         * tree-ssa-pre.c (eliminate): Properly clean EH info.
5348
5349 2010-08-25  Richard Guenther  <rguenther@suse.de>
5350
5351         PR tree-optimization/45393
5352         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
5353         and clean EH info.  Avoid SSA update.
5354         (execute_cse_sincos): Cleanup the CFG if it has changed.
5355
5356 2010-08-25  Richard Guenther  <rguenther@suse.de>
5357
5358         PR middle-end/45379
5359         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5360         TARGET_MEM_REF in alignment computation.
5361
5362 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5363
5364         PR tree-optimization/45059
5365         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5366         type conversions from newop{1,2}.  Assert t is a comparison and
5367         newop{1,2} after the stripping are gimple vals.
5368
5369 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
5370
5371         * config/arm/iterators.md (VU, SE, V_widen_l): New.
5372         (V_unpack, US): New.
5373         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
5374         (vec_unpack<US>_lo_<mode>): Likewise.
5375         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
5376         (neon_vec_unpack<US>_lo_<mode>): Likewise.
5377         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
5378         (vec_widen_<US>mult_hi_<mode>): Likewise.
5379         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
5380         (neon_vec_<US>mult_hi_<mode>"): Likewise.
5381         (neon_unpack<US>_<mode>): Widening move intermediate step for
5382         vectorizing without -mvectorize-with-neon-quad.
5383         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
5384         for vectorizing without -mvectorize-with-neon-quad.
5385         * config/arm/predicates.md (vect_par_constant_high): Check for
5386         high-half lanes of a vector.
5387         (vect_par_constant_low): Check for low-half lanes of a vector.
5388
5389 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5390
5391         * tree-if-conv.c (struct ifc_dr): New.
5392         (IFC_DR): New.
5393         (DR_WRITTEN_AT_LEAST_ONCE): New.
5394         (DR_RW_UNCONDITIONALLY): New.
5395         (memref_read_or_written_unconditionally): Use the cached values
5396         when possible.
5397         (write_memref_written_at_least_once): Same.
5398         (if_convertible_loop_p): Initialize and free DR->aux fields.
5399
5400 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5401
5402         * gimple.c (gimple_could_trap_p_1): Not static anymore.
5403         Pass an extra bool parameter include_mem.
5404         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
5405         (gimple_assign_rhs_could_trap_p): Same.
5406         * gimple.h (gimple_could_trap_p_1): Declared.
5407         * tree-data-ref.h (same_data_refs_base_objects): New.
5408         (same_data_refs): New.
5409         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
5410         (write_memrefs_written_at_least_once): New.
5411         (ifcvt_memrefs_wont_trap): New.
5412         (operations_could_trap): New.
5413         (ifcvt_could_trap_p): New.
5414         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
5415         Gets a vector of data refs.
5416         (if_convertible_stmt_p): Same.
5417         (if_convertible_loop_p_1): New.
5418         (if_convertible_loop_p): Call if_convertible_loop_p_1.
5419
5420 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5421
5422         * common.opt (ftree-loop-if-convert-stores): New flag.
5423         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
5424         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
5425         the created statement before GSI.
5426         (if_convertible_phi_p): Allow virtual phi nodes when
5427         flag_loop_if_convert_stores is set.
5428         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
5429         Do not handle types that do not match is_gimple_reg_type.
5430         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
5431         when flag_loop_if_convert_stores is set, as LHS can contain
5432         memory refs.
5433         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
5434         to if_convertible_gimple_assign_stmt_p.
5435         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
5436         (replace_phi_with_cond_gimple_assign_stmt): Renamed
5437         predicate_scalar_phi.  Do not handle virtual phi nodes.
5438         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
5439         Call predicate_scalar_phi.
5440         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
5441         just after the labels for flag_loop_if_convert_stores, otherwise
5442         insert the predicate in the end of the BB.
5443         (predicate_mem_writes): New.
5444         (combine_blocks): Call predicate_all_scalar_phis.  When
5445         flag_loop_if_convert_stores is set, call predicate_mem_writes.
5446         (tree_if_conversion): Call mark_sym_for_renaming when
5447         flag_loop_if_convert_stores is set.
5448         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5449         flag_loop_if_convert_stores is set.
5450
5451 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
5452
5453         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5454         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5455         (pa_function_value): Make static.
5456         (override_options): Rename to...
5457         (pa_option_override): ...this. Make static.
5458         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5459         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5460         TARGET_OPTION_OVERRIDE): Define.
5461         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5462         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5463         Remove.
5464         * config/pa/pa-protos.h (override_options): Remove.
5465
5466 2010-08-24  Richard Guenther  <rguenther@suse.de>
5467
5468         PR middle-end/45379
5469         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5470         if addr->index is NULL or zero.
5471         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5472         TARGET_MEM_REF more properly.
5473         (indirect_ref_may_alias_decl_p): Likewise.
5474         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5475         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5476
5477 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
5478
5479         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5480         (m32c_override_options): Rename to...
5481         (m32c_option_override): ...this. Make static.
5482         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5483         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5484         Remove.
5485         * config/m32c/m32c-protos.h (m32c_override_options,
5486         m32c_function_value_regno_p): Remove.
5487
5488 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5489
5490         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5491         Fix a typo in a previous commit.
5492
5493 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
5494
5495         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5496         Pre-initialize innerloop_iters to one.
5497
5498 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5499
5500         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5501         existing static function global.
5502
5503         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5504         is changed to global.
5505
5506         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5507         may_be_nonaddressable_p on base, and don't collect this reference
5508         if the address of the base could not be taken.
5509
5510 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5511
5512         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5513         enable the compiler to autovectorize mathmetical functions for
5514         power7 using the Mathematical Acceleration Subsystem library.
5515
5516         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5517         handle which vector math library we have.
5518         (rs6000_override_options): Add -mveclibabi=mass support.
5519         (rs6000_builtin_vectorized_libmass): New function to handle auto
5520         vectorizing math functions that are in the MASS library.
5521         (rs6000_builtin_vectorized_function): Call it.
5522
5523         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5524         -mveclibabi=mass.
5525
5526 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5527
5528         PR boehm-gc/34544
5529         * gthr-posix.h (__gthread_active_init): Delete.
5530         (__gthread_active_p): Do activity check here.
5531         Don't include errno.h on hppa-hpux.  Update comment.
5532         * gthr-posix95.h (__gthread_active_init): Delete.
5533         (__gthread_active_p): Do activity check here.
5534         Don't include errno.h on hppa-hpux.  Update comment.
5535         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5536         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5537         add -lpthread when -mt or -pthread is specified.
5538         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5539         (LINK_GCC_C_SEQUENCE_SPEC): Define.
5540         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5541         (stublib.c, pthread_default_stacksize_np-stub.o,
5542         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5543         $(T)libgcc_stub.a): Add methods.
5544         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5545         (stublib.c, pthread_default_stacksize_np-stub.o,
5546         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5547         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5548         pthread_mutex_unlock): New stubs.
5549
5550 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
5551
5552         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5553         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5554         options.
5555         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5556         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5557         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5558         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5559         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5560         "-l".
5561         * cppspec.c: Include opts.h.
5562         (lang_specific_driver): Use cl_decoded_option structures.
5563         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5564         * doc/tm.texi: Regenerate.
5565         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5566         (driver_handle_option): Allow driver options needing no special
5567         processing.
5568         (process_command): Decode options before call to
5569         lang_specific_driver.  Pass decoded options to
5570         lang_specific_driver.
5571         * gcc.h (lang_specific_driver): Update prototype.
5572         * gccspec.c: Include opts.h.
5573         (lang_specific_driver): Use cl_decoded_option structures.
5574         * opts-common.c (option_ok_for_language, generate_option,
5575         generate_option_input_file): New.
5576         (decode_cmdline_option): Use option_ok_for_language.
5577         (decode_cmdline_options_to_array): Use generate_option_input_file.
5578         (handle_generated_option): Use generate_option.
5579         * opts.h (generate_option, generate_option_input_file): Declare.
5580
5581 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
5582
5583         * config/mips/mips.c (mips_override_options): Rename to...
5584         (mips_option_override): ...this. Make static.
5585         (TARGET_OPTION_OVERRIDE): Define.
5586         (mips_in_small_data_p): Update comment.
5587         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5588         (FIXED_REGISTERS): Update comment.
5589         * config/mips/mips-protos.h (mips_override_options): Remove.
5590
5591 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5592
5593         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5594
5595 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5596
5597         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5598         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5599
5600 2010-08-20  Jan Hubicka  <jh@suse.cz>
5601
5602         * tree-pass.h (pass_ipa_cdtor_merge): New function.
5603         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5604         heap allocated.
5605         (record_cdtor_fn): Move to ipa.c; do not test for
5606         have_ctors_dtors.
5607         (build_cdtor): Move to ipa.c; add code avoiding construction
5608         when target have ctors/dtors and there is only one ctor/dtor at given
5609         priority.
5610         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5611         sort; reverse order of constructors.
5612         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5613         (cgraph_finalize_function): Do not call record_cdtor_fn.
5614         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5615         (cgraph_build_static_cdtor): Move to ipa.c.
5616         * ipa.c: Include target.h and tree-iterator.h.
5617         (cgraph_build_static_cdtor, static_ctors, static_dtors,
5618         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5619         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5620         pass_ipa_cdtor_merge): New.
5621         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5622         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5623         bounds access.
5624
5625 2010-08-20  Jan Hubicka  <jh@suse.cz>
5626
5627         PR c++/45307
5628         PR c++/17736
5629         * cgraph.h (cgraph_only_called_directly_p,
5630         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5631         static cdtors.
5632         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5633         are not needed.
5634         (cgraph_finalize_function): Static cdtors are reachable.
5635         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5636
5637 2010-08-20  Jan Hubicka  <jh@suse.cz>
5638
5639         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5640         flag_wpa.
5641         * lto-streamer-out.c (lto_output): Likewise.
5642         * passes.c (ipa_write_optimization_summaries): Initialize statement
5643         uids.
5644
5645 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5646
5647         * tree.h (alias_diag_flags): New enum.
5648         (alias_pair): Add an 'emitted_diags' field.
5649         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5650         (assemble_alias): Initialize emitted_diags of new pairs.
5651
5652 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
5653
5654         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5655         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5656         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5657         (STACK_CHECK_PROTECT): Define.
5658         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5659         (output_probe_stack_range): Likewise.
5660         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5661         builtin stack checking is enabled.
5662         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5663         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5664         (probe_stack_range): New insn.
5665
5666 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5667
5668         PR target/45336
5669         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5670         short first.
5671
5672         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5673         char first.
5674
5675 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5676
5677         PR target/45336
5678         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5679         to cover zero extension into 64-bit register.
5680         (*sse2_pextrw): Likewise.
5681         (*sse4_1_pextrd_zext): New insn.
5682
5683 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5684
5685         revert r163410, partially revert r163267.
5686         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5687         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5688         Darwin versions.
5689
5690 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5691
5692         PR middle-end/44974
5693         * builtins.c (expand_builtin): Don't optimize away
5694         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5695
5696 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
5697
5698         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5699         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5700         alternative 1 of operand 2.
5701
5702 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5703             Paolo Bonzini  <bonzini@gnu.org>
5704
5705         * simplify-rtx.c (simplify_unary_operation_1): Optimize
5706         (sign_extend (zero_extend (...)) and
5707         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5708
5709 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5710
5711         PR rtl-optimization/45353
5712         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5713         after bb_note is a BARRIER.
5714
5715 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5716
5717         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5718         linking libgcc.a.
5719
5720 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5721             Michael Matz  <matz@suse.de>
5722
5723         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5724
5725 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5726
5727         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5728         (ggc_mark_roots): ...here.
5729
5730 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5731
5732         * vec.h (FOR_EACH_VEC_ELT): Define.
5733         * c-decl.c: Use it.
5734         * cfgloop.c: Likewise.
5735         * cfgloopmanip.c: Likewise.
5736         * cgraph.c: Likewise.
5737         * cgraphunit.c: Likewise.
5738         * combine.c: Likewise.
5739         * config/bfin/bfin.c: Likewise.
5740         * config/mips/mips.c: Likewise.
5741         * config/rs6000/rs6000.c: Likewise.
5742         * dbxout.c: Likewise.
5743         * df-scan.c: Likewise.
5744         * dominance.c: Likewise.
5745         * dse.c: Likewise.
5746         * dwarf2out.c: Likewise.
5747         * except.c: Likewise.
5748         * expr.c: Likewise.
5749         * function.c: Likewise.
5750         * gcse.c: Likewise.
5751         * genattr.c: Likewise.
5752         * ggc-common.c: Likewise.
5753         * gimplify.c: Likewise.
5754         * graphite-blocking.c: Likewise.
5755         * graphite-clast-to-gimple.c: Likewise.
5756         * graphite-dependences.c: Likewise.
5757         * graphite-interchange.c: Likewise.
5758         * graphite-poly.c: Likewise.
5759         * graphite-scop-detection.c: Likewise.
5760         * graphite-sese-to-poly.c: Likewise.
5761         * graphite.c: Likewise.
5762         * haifa-sched.c: Likewise.
5763         * ifcvt.c: Likewise.
5764         * implicit-zee.c: Likewise.
5765         * ipa-prop.c: Likewise.
5766         * ipa-struct-reorg.c: Likewise.
5767         * ipa.c: Likewise.
5768         * ira-build.c: Likewise.
5769         * ira-color.c: Likewise.
5770         * ira-emit.c: Likewise.
5771         * lambda-code.c: Likewise.
5772         * loop-invariant.c: Likewise.
5773         * loop-unroll.c: Likewise.
5774         * lower-subreg.c: Likewise.
5775         * lto-cgraph.c: Likewise.
5776         * lto-opts.c: Likewise.
5777         * lto-streamer-in.c: Likewise.
5778         * lto-streamer-out.c: Likewise.
5779         * lto-streamer.c: Likewise.
5780         * lto-symtab.c: Likewise.
5781         * matrix-reorg.c: Likewise.
5782         * opts.c: Likewise.
5783         * predict.c: Likewise.
5784         * print-tree.c: Likewise.
5785         * sdbout.c: Likewise.
5786         * sel-sched-dump.c: Likewise.
5787         * sel-sched-ir.c: Likewise.
5788         * sel-sched.c: Likewise.
5789         * sese.c: Likewise.
5790         * stor-layout.c: Likewise.
5791         * tree-cfg.c: Likewise.
5792         * tree-cfgcleanup.c: Likewise.
5793         * tree-chrec.c: Likewise.
5794         * tree-data-ref.c: Likewise.
5795         * tree-emutls.c: Likewise.
5796         * tree-inline.c: Likewise.
5797         * tree-into-ssa.c: Likewise.
5798         * tree-loop-distribution.c: Likewise.
5799         * tree-loop-linear.c: Likewise.
5800         * tree-mudflap.c: Likewise.
5801         * tree-outof-ssa.c: Likewise.
5802         * tree-parloops.c: Likewise.
5803         * tree-predcom.c: Likewise.
5804         * tree-pretty-print.c: Likewise.
5805         * tree-scalar-evolution.c: Likewise.
5806         * tree-ssa-live.c: Likewise.
5807         * tree-ssa-loop-im.c: Likewise.
5808         * tree-ssa-loop-ivcanon.c: Likewise.
5809         * tree-ssa-loop-ivopts.c: Likewise.
5810         * tree-ssa-loop-manip.c: Likewise.
5811         * tree-ssa-loop-niter.c: Likewise.
5812         * tree-ssa-loop-prefetch.c: Likewise.
5813         * tree-ssa-phiprop.c: Likewise.
5814         * tree-ssa-pre.c: Likewise.
5815         * tree-ssa-reassoc.c: Likewise.
5816         * tree-ssa-sccvn.c: Likewise.
5817         * tree-ssa-structalias.c: Likewise.
5818         * tree-ssa.c: Likewise.
5819         * tree-vect-data-refs.c: Likewise.
5820         * tree-vect-loop-manip.c: Likewise.
5821         * tree-vect-loop.c: Likewise.
5822         * tree-vect-patterns.c: Likewise.
5823         * tree-vect-slp.c: Likewise.
5824         * tree-vect-stmts.c: Likewise.
5825         * tree-vrp.c: Likewise.
5826         * tree.c: Likewise.
5827         * value-prof.c: Likewise.
5828         * var-tracking.c: Likewise.
5829         * varasm.c: Likewise.
5830         * vmsdbgout.c: Likewise.
5831
5832 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5833             Richard Guenther  <richard.guenther@gmail.com>
5834
5835         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5836         copy the src value and return a copy.
5837         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5838         (C++ Volatiles): Adjust to describe C++ semantics only.
5839
5840 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5841
5842         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5843         be zero or nonzero.
5844         * doc/tm.texi: Regenerate.
5845         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5846         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5847         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5848         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5849         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5850         to 1.
5851
5852 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5853
5854         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5855         an extra nop past a sibling call at the very end.
5856
5857 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5858
5859         PR bootstrap/45350
5860         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5861         a comment.
5862
5863 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5864
5865         * target.def (function_arg, function_incoming_arg): Remove const
5866         qualifier on CUMULATIVE_ARGS parameter.
5867         * targhooks.h (default_function_arg, default_function_incoming_arg):
5868         Likewise.
5869         * targhooks.c (default_function_arg, default_function_incoming_arg):
5870         Likewise.
5871         * config/i386/i386.c (ix86_function_arg): Likewise.
5872
5873 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5874
5875         PR target/45336
5876         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5877         SIGN_EXTENDs or ZERO_EXTENDs.
5878
5879 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5880
5881         PR target/42172
5882         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5883         Take its cost into account if nonnull.
5884         (insn_a_feeds_b): New static function.
5885         (combine_instructions): Look for four-insn combinations.
5886         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5887         them into account when computing all_adjacent and looking for other
5888         uses.
5889         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5890         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5891         (try_combine): New arg I0.  Handle four-insn combinations.
5892         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5893         like ELIM_I1.
5894
5895 2010-08-19  Jason Merrill  <jason@redhat.com>
5896
5897         PR c++/45307
5898         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5899         if ctor is empty.
5900         (gimplify_modify_expr_rhs): Adjust.
5901
5902 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5903
5904         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5905         bitmap_bit_p.
5906         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5907         * dominance.c (iterate_fix_dominators): Likewise.
5908         * dse.c (set_usage_bits): Likewise.
5909         (set_position_unneeded, record_store): Likewise.
5910         * gimple-fold.c (get_maxval_strlen): Likewise.
5911         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5912         * ipa-inline.c (update_caller_keys): Likewise.
5913         * ipa-split.c (verify_non_ssa_vars): Likewise.
5914         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5915         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5916         (close_addressof_down): Likewise.
5917         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5918         (setup_allocno_left_conflicts_size): Likewise.
5919         (ira_reassign_conflict_allocnos): Likewise.
5920         (ira_reassign_pseudos): Likewise.
5921         * ira-emit.c (change_loop): Likewise.
5922         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5923         * lto-streamer-out.c (write_symbol): Likewise.
5924         * predict.c (expr_expected_value_1): Likewise.
5925         * regstat.c (regstat_bb_compute_ri): Likewise.
5926         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5927         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5928         * stmt.c (expand_case): Likewise.
5929         * tree-eh.c (emit_eh_dispatch): Likewise.
5930         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5931         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5932         Likewise.
5933         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5934         (rdg_build_components): Likewise.
5935         * tree-object-size.c (collect_object_sizes_for): Likewise.
5936         * tree-sra.c (convert_callers): Likewise.
5937         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5938         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5939         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5940
5941 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5942
5943         * config/i386/i386.md (*lea_1): Use P mode iterator.
5944         (lea add splitter): Also handle DImode operands.
5945         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5946         predicate.  Do not use ix86_lea_for_add_ok.
5947         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5948         (lea ashift splitter): Also handle DImode operands.
5949         (DImode lea ashift splitter): Remove splitter.
5950
5951 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5952
5953         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5954         ix86_binary_operator_ok.
5955
5956 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5957
5958         PR rtl-optimization/44691
5959         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5960         is not a register.
5961
5962 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5963
5964         PR target/45070
5965         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5966          value of size 1-3 is handled correctly.
5967
5968 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5969
5970         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5971         type for the conditional has wide enough range.
5972
5973 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5974
5975         PR target/45327
5976         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5977         ix86_binary_operator_ok.
5978
5979 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5980
5981         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5982         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5983         code to output insn mnemonic.  Fix comment.
5984         (*addsi_1_zext): Add r-r-0 alternative 1.
5985         <TYPE_LEA>: Split insn to lea.
5986         <default>: Handle alternative 1.
5987         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5988         multi-level if_then_else RTX to set "type" attribute.
5989         <default>: Handle alternative 2.
5990         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5991         Use cond RTX instead of multi-level if_then_else RTX to set
5992         "type" attribute.
5993         <default>: Handle alternatives 2 and 4.
5994         (lea splitters): Update calls to ix86_lea_for_add_ok.
5995
5996         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5997         argument.
5998         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5999
6000 2010-08-18  Richard Guenther  <rguenther@suse.de>
6001
6002         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
6003         use operand helpers.
6004
6005 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
6006
6007         PR middle-end/45292
6008         * optabs.c (expand_bool_compare_and_swap): Expand pending
6009         pops before trying the optab.
6010
6011 2010-08-18  Yao Qi  <yao@codesourcery.com>
6012
6013         PR target/45094
6014         * config/arm/arm.c (output_move_double): Fix typo generating
6015         instructions ('ldr'->'str').
6016
6017 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6018
6019         PR rtl-optimization/42575
6020         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
6021         live ranges.
6022
6023 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6024
6025         * config/arm/arm-protos.h (arm_expand_sync): New.
6026         (arm_output_memory_barrier, arm_output_sync_insn): New.
6027         (arm_sync_loop_insns): New.
6028         * config/arm/arm.c (FL_ARCH7): New.
6029         (FL_FOR_ARCH7): Include FL_ARCH7.
6030         (arm_arch7): New.
6031         (arm_print_operand): Support %C markup.
6032         (arm_legitimize_sync_memory): New.
6033         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
6034         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
6035         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
6036         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
6037         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
6038         (arm_process_output_sync_insn, arm_output_sync_insn): New.
6039         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
6040         * config/arm/arm.h (struct arm_sync_generator): New.
6041         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
6042         (TARGET_HAVE_MEMORY_BARRIER): New.
6043         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
6044         * config/arm/arm.md: Include sync.md.
6045         (UNSPEC_MEMORY_BARRIER): New.
6046         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
6047         (VUNSPEC_SYNC_OP):New.
6048         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
6049         (sync_result, sync_memory, sync_required_value): New attributes.
6050         (sync_new_value, sync_t1, sync_t2): Likewise.
6051         (sync_release_barrier, sync_op): Likewise.
6052         (length): Add logic to length attribute defintion to call
6053         arm_sync_loop_insns when appropriate.
6054         * config/arm/sync.md: New file.
6055
6056 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6057
6058         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
6059         ENABLE_TREE_CHECKING.
6060         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
6061         and GCC >= 4.3.
6062
6063 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6064
6065         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
6066         or optimizing for size, always avoid lea if possible.
6067
6068         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
6069
6070 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
6071
6072         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
6073         Dunmmy function with NULL return unless the target is
6074         OSX >= 10.6 (Darwin10).
6075
6076 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
6077
6078         * gcc.c (spec_function): Add remove-outfile.
6079         (remove_outfile_spec_function): New function.
6080         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
6081         * invoke.texi (replace-outfile): Document.
6082
6083 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
6084
6085         PR target/45296
6086         * reginfo.c (globalize_reg): Reject stack registers.
6087
6088 2010-08-17  Richard Guenther  <rguenther@suse.de>
6089
6090         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
6091         list of conditional equivalences.
6092         (free_all_edge_infos): Adjust.
6093         (record_equivalences_from_incoming_edge): Likewise.
6094         (record_cond): Likewise.
6095         (build_and_record_new_cond): Likewise.
6096         (record_conditions): Likewise.
6097         (dom_opt_leave_block): Likewise.
6098
6099 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
6100
6101         * doc/invoke.texi (ms-extension): Add documentation.
6102
6103 2010-08-17  Richard Guenther  <rguenther@suse.de>
6104
6105         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
6106
6107 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
6108
6109         PR c/40563
6110         * c-decl.c (diagnose_uninitialized_cst_member): New function.
6111         (finish_decl): Use it to issue a -Wc++-compat warning about
6112         uninitialized const field in struct or union.
6113
6114         (finish_struct): Use strip_array_types.
6115
6116 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6117
6118         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
6119         functions.
6120         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
6121         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
6122         call block_nreverse here.
6123         (blocks_nreverse): Rename decl temporary to block.
6124
6125 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
6126
6127         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
6128         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
6129         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
6130         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
6131         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
6132         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
6133         thumb2_iorsi3): Delete.
6134         (orsi_notsi_si): No longer a named pattern.
6135         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
6136         * config/arm/predicates.md (shift_amount_operand): New.
6137         (mult_operator): New.
6138         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
6139         attr enabled): New.
6140         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
6141         arch matches t2.
6142         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
6143         (not_shiftsi_compare0): Likewise, renamed from
6144         arm_notsi_shiftsi_compare0.
6145         (not_shiftsi_compare0_scratch): Likweise, renamed from
6146         arm_notsi_shiftsi_compare0_scratch.
6147         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
6148         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
6149         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
6150         so that the register alternative is disabled when the shift_operator
6151         is MULT.  Use "M" as the constraint for constants.
6152         (arith_shiftsi splitter): Enable for TARGET_32BIT.
6153         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
6154         constraint for constants.
6155         (arith_shiftsi_compare0_scratch): Likewise.
6156         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
6157         Handle Thumb2 alternative.
6158
6159 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
6160
6161         * doc/options.texi (NoDriverArg): Document.
6162         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
6163         -MDX and -MMDX.
6164         * opt-functions.awk (switch_flags): Handle NoDriverArg.
6165         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
6166         marking for CL_NO_DRIVER_ARG options when in the driver.
6167         * opts.h (CL_NO_DRIVER_ARG): Define.
6168         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6169         CL_COMMON): Update values.
6170
6171 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
6172
6173         * common.opt: Add driver options.
6174         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
6175         * doc/options.texi (Driver, RejectDriver): Document.
6176         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
6177         print_prog_name, print_multi_directory, print_sysroot,
6178         print_multi_os_directory, print_multi_lib,
6179         print_sysroot_headers_suffix, report_times, combine_flag,
6180         use_pipes, wrapper_string): Remove.
6181         (save_switch, driver_unknown_option_callback,
6182         driver_wrong_lang_callback, driver_post_handling_callback,
6183         driver_handle_option): New.
6184         (spec_lang, last_language_n_infiles): Make file-scope static
6185         instead of local to process_command.
6186         (process_command): Use decode_cmdline_options_to_array and
6187         read_cmdline_option for option processing.  Compute have_c in
6188         prescan of decoded options.
6189         * opt-functions.awk (switch_flags): Handle Driver and
6190         RejectDriver.
6191         (var_type, var_type_struct): Handle Separate options as generating
6192         const char * variables.
6193         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
6194         CL_TARGET to be passed by caller if required.
6195         (decode_cmdline_options_to_array): Update comment.
6196         * opts.c (complain_wrong_lang): Handle options only valid for the
6197         driver.
6198         (decode_options): Update call to decode_cmdline_options_to_array.
6199         (print_filtered_help): Ignore driver-only options.
6200         (print_specific_help): Ignore CL_DRIVER.
6201         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
6202         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
6203         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
6204         Update values.
6205
6206 2010-08-16  Richard Guenther  <rguenther@suse.de>
6207
6208         * tree-cfg.c (verify_types_in_gimple_reference): Verify
6209         TARGET_MEM_REF a bit.
6210         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
6211         (create_mem_ref_raw): Always create TMR_OFFSET, store the
6212         alias pointer type via it.
6213         (copy_mem_ref_info): Adjust.
6214         (maybe_fold_tmr): Likewise.
6215         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
6216         (reference_alias_ptr_type): Likewise.
6217         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
6218         adjust documentation of TMR_OFFSET operand.
6219         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
6220         use the alias pointer type.
6221         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
6222         initialize mem attrs but the TMR itself.
6223         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
6224         similar to MEM_REF.
6225         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
6226         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
6227         (unshare_and_remove_ssa_names): Likewise.
6228         (copy_ref_info): Adjust.
6229         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
6230         TARGET_MEM_REF case.
6231         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
6232         at TMR_ORIGINAL.
6233         * tree.h (TMR_ORIGINAL): Remove.
6234         * gimple.c (get_base_address): For TARGET_MEM_REF with a
6235         symbol return that.
6236         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
6237         with a symbol.
6238         (get_addr_base_and_unit_offset): Likewise.
6239         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
6240         TARGET_MEM_REFs.
6241         (indirect_ref_may_alias_decl_p): Likewise.
6242         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
6243
6244 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
6245
6246         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
6247         with GCC version 4.6, the default setting (when not optimizing
6248         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
6249         been changed to -fomit-frame-pointer.
6250
6251 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
6252
6253         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
6254         Darwin10.  Do not link libgcc.a for Darwin >= 9.
6255
6256 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
6257
6258         * doc/invoke.texi (Warning Options): Fix terminology and markup
6259         in the description of how unknown warning options are handled.
6260
6261 2010-08-15  Ira Rosen  <irar@il.ibm.com>
6262
6263         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
6264         in basic blocks.
6265         (vect_supportable_dr_alignment): Check alignment for basic blocks.
6266         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
6267         data references.
6268         (vect_bb_vectorization_profitable_p): New function.
6269         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
6270         check if it's worthwhile to vectorize the basic block.
6271
6272 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
6273
6274         * reload.h (register_move_cost, memory_move_secondary_cost,
6275         secondary_reload_class): Adjust prototype.
6276         * rtl.h (reg_class_subset_p): Adjust prototype.
6277         * reload.c (secondary_reload_class): Change arguments type from
6278         enum reg_class to reg_class_t. Change result type to reg_class_t.
6279         * reginfo.c (register_move_cost, reg_class_subset_p): Change
6280         arguments type from enum reg_class to reg_class_t.
6281         (memory_move_secondary_cost): Change arguments type from
6282         enum reg_class to reg_class_t. Change type of saved_flags to
6283         reg_class_t.
6284
6285         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6286         Remove macros.
6287         (mips_cost): Remove.
6288         (struct mips_rtx_cost_data): Moved to mips.c.
6289         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
6290         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
6291         (mips_cost): Make static.
6292         (mips_canonicalize_move_class): Change argument type to reg_class_t.
6293         Change result type to reg_class_t.
6294         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
6295         type from enum reg_class to reg_class_t.
6296         (mips_register_move_cost): Make static. Change arguments
6297         type from enum reg_class to reg_class_t.
6298         (mips_memory_move_cost): New function.
6299         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6300
6301 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
6302
6303         PR rtl-optimization/43358
6304         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
6305         of a single hard register, using simplify_subreg_regno to decide
6306         what that register should be.
6307
6308 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
6309
6310         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
6311         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
6312         (loongson_pmull<V_suffix>): Rename to...
6313         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
6314
6315 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
6316
6317         * configure.ac: Enable -fomit-frame-pointer on darwin
6318         which support dwarf2.
6319         * config/i386/i386.c (override_options): Same.
6320
6321 2010-08-13  Jie Zhang  <jie@codesourcery.com>
6322
6323         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
6324
6325 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
6326
6327         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
6328         -MMD.
6329
6330 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
6331
6332         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
6333         up dot_prod pattern searching if a stmt is outside the loop.
6334
6335 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
6336             Uros Bizjak  <ubizjak@gmail.com>
6337
6338         * config.gcc: Handle --enable-frame-pointer.
6339
6340         * configure.ac: Add --enable-frame-pointer.
6341         * configure: Regenerated.
6342
6343         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
6344         (override_options): If not configured with --enable-frame-pointer,
6345         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
6346         optimizing for size), -fasynchronous-unwind-tables and
6347         -maccumulate-outgoing-args by default.
6348
6349 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6350
6351         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
6352
6353         PR middle-end/45262
6354         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
6355         -a overflows.  Normalize the range.
6356
6357 2010-08-12  Richard Guenther  <rguenther@suse.de>
6358
6359         PR tree-optimization/45232
6360         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
6361         for types with undefined overflow.
6362         (reassociate_bb): Allow re-associating of bit and min/max
6363         operations for types with undefined overflow.
6364         * tree-ssa-forwprop.c (associate_plusminus): New function.
6365         (tree_ssa_forward_propagate_single_use_vars): Call it.
6366
6367 2010-08-12  Richard Guenther  <rguenther@suse.de>
6368
6369         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
6370         * tree-ssa-alias.c (get_ptr_info): Move ...
6371         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
6372         align and misalign fields conservatively.
6373         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
6374         derive alignment information.
6375         (evaluate_stmt): Derive alignment information from memory
6376         allocation functions.
6377         * tree.h (get_pointer_alignment): Make unsigned.
6378         * builtins.c (get_object_alignment): Use alignment information we
6379         have computed for pointers.
6380         (get_pointer_alignment): Likewise.  Make conservative, return
6381         and unsigned value.
6382         (expand_builtin_strlen): Adjust.
6383         (expand_builtin_memcmp): Likewise.
6384         (expand_builtin_strcmp): Likewise.
6385         (expand_builtin_strncmp): Likewise.
6386         (get_builtin_sync_mem): Use at least mode alignment.
6387         (fold_builtin_memset): Adjust.
6388         (fold_builtin_memory_op): Likewise.
6389         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
6390         information also dump pointer alignment knowledge.
6391         (dump_gimple_stmt): Likewise.
6392
6393 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
6394
6395         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
6396         (EMPTY_FIELD_BOUNDARY): Remove.
6397         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
6398
6399 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6400
6401         PR debug/45259
6402         * caller-save.c (save_call_clobbered_regs): Only swap notes with
6403         DEBUG_INSNs if n_regs_saved.
6404
6405 2010-08-12  Wei Guozhi  <carrot@google.com>
6406
6407         PR target/44999
6408         * config/arm/arm.md (andsi3): Change to zero extension if possible.
6409         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
6410
6411 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
6412
6413         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
6414
6415         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
6416
6417 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6418
6419         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
6420         the case removed in the previous patch, when the only phi argument
6421         is defined in the same loop as the phi node itself.  Handle it
6422         separately from the invariant case by both propagating it outside
6423         the region and replacing the phi node with an assign.
6424
6425 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6426
6427         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
6428         constant phi nodes with one argument are is_gimple_min_invariant
6429         and SSA_NAME_IS_DEFAULT_DEF.
6430
6431 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6432
6433         * graphite-cloog-util.c (oppose_constraint):
6434         Extend loop counter's value range (CLOOG_ORG).
6435         (cloog_matrix_to_ppl_constraint): Same.
6436         (new_Constraint_System_from_Cloog_matrix): Same.
6437         * graphite-cloog-compat.h (matrix_num_type): New.
6438
6439 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6440
6441         * graphite.c (graphite_initialize): Do not initialize
6442         CLooG and initialize the Parma Polyhedra Library
6443         manually when using CLOOG_ORG.
6444         (graphite_finalize): Do not finalize CLooG and finalize
6445         the Parma Polyhedra Library manually when using CLOOG_ORG.
6446         * graphite-cloog-compat.h (cloog_initialize): Hide function
6447         when using CLOOG_ORG.
6448         (cloog_finalize): Same.
6449
6450 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6451
6452         * graphite-clast-to-gimple.c (free_scattering): Change
6453         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6454         (CLOOG_ORG).
6455         (build_cloog_prog): Same.
6456         * graphite-cloog-compat.h (cloog_domain): Removed.
6457         (cloog_scattering): New.
6458         (cloog_set_domain): Removed.
6459         (cloog_set_scattering): New.
6460         (cloog_next_domain): Removed.
6461         (cloog_next_scattering): New.
6462         (cloog_set_next_domain): Removed.
6463         (cloog_set_next_scattering): New.
6464         (CloogScatteringList): New.
6465         (CloogScattering): New.
6466         (cloog_scattering_free): New.
6467         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6468         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6469         New.
6470
6471 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6472
6473         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6474         CloogState.
6475         (set_cloog_options): Same.
6476         (print_clast_stmt): Same.
6477         (scop_to_clast): Same.
6478         (print_generated_program): Same.
6479         (gloog): Same.
6480         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6481         (scop_to_clast): Extend with CloogState.
6482         * graphite-cloog-util.c: Include graphite-cloog-compat.h
6483         (new_Cloog_Domain_from_ppl_Polyhedron):
6484         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6485         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6486         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6487         * graphite-cloog-util.h (build_cloog_prog): Same.
6488         * graphite-cloog-copat.h (build_cloog_prog): New.
6489         (CloogState): New.
6490         (cloog_state_malloc): New.
6491         (cloog_state_free): New.
6492         (cloog_loop_malloc): New.
6493         (cloog_options_malloc): New.
6494         (cloog_statement_alloc): New.
6495         (cloog_domain_from_cloog_matrix): New.
6496         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6497         (new_Cloog_Domain_from_ppl_Polyhedron): New.
6498
6499 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6500
6501         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6502         type of NAME now depends on used CLooG version.
6503         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6504         (gcc_type_for_clast_expr): Same.
6505         (print_clast_stmt): Replace pprint with clast_pprint.
6506         * graphite-cloog-compat.h: Provide compatibility macros for
6507         CLooG Legacy.
6508         (clast_name_p): New.
6509         (clast_expr_term): New.
6510         (clast_expr_red): New.
6511         (clast_expr_bin): New.
6512         (clast_pprint): New.
6513
6514 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6515
6516         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6517         compatible to newer CLooG releases (CLOOG_ORG).
6518         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6519         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6520         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6521         (build_cloog_prog) : New.
6522         (cloog_program_extract_scalars): New.
6523         (cloog_program_scatter): New.
6524
6525 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6526
6527         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6528         conditionally (CLOOG_ORG).
6529         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
6530         (cloog_statement_usr): New.
6531         (cloog_domain): Same.
6532         (cloog_set_domain): Same.
6533         (cloog_next_domain): Same.
6534         (cloog_set_next_domain): Same.
6535         (cloog_program_nb_scattdims): Same.
6536         (cloog_program_set_nb_scattdims): Same.
6537         (cloog_program_names): Same.
6538         (cloog_program_set_names): Same.
6539         (cloog_program_set_context): Same.
6540         (cloog_program_set_loop): Same.
6541         (cloog_program_blocklist): Same.
6542         (cloog_program_set_blocklist): Same.
6543         (cloog_program_scaldims): Same.
6544         (cloog_program_set_scaldims): Same.
6545         (cloog_names_nb_parameters): Same.
6546         (cloog_names_set_nb_parameters): Same.
6547         (cloog_names_parameters): Same.
6548         (cloog_names_set_parameters): Same.
6549         (cloog_names_set_nb_iterators): Same.
6550         (cloog_names_set_iterators): Same.
6551         (cloog_names_set_nb_scattering): Same.
6552         (cloog_names_set_scattering): Same.
6553         (cloog_statement_set_usr): Same.
6554         (cloog_loop_set_next): Same.
6555         (cloog_loop_set_domain): Same.
6556         (cloog_loop_set_block): Same.
6557         (cloog_block_list_next): Same.
6558         (cloog_block_list_set_next):
6559         (cloog_block_list_set_block): Same.
6560
6561 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6562
6563         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6564         a bool.
6565         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6566         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6567         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6568         when something has been changed.
6569         (rewrite_commutative_reductions_out_of_ssa): Same.
6570
6571 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6572
6573         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6574         handle the case when def is in the sese region.
6575         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6576         for invariant expressions.
6577         (rewrite_cross_bb_phi_deps): Removed.
6578         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6579         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6580         rewrite_cross_bb_phi_deps.
6581
6582 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6583
6584         * graphite-sese-to-poly.c
6585         (rewrite_commutative_reductions_out_of_ssa_loop): Call
6586         scev_analyzable_p only on is_gimple_reg
6587
6588 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6589
6590         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6591         (rewrite_close_phi_out_of_ssa): Propagate constant values or
6592         parametric expressions outside the scop region.
6593         (rewrite_cross_bb_scalar_deps): Same.
6594         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6595
6596 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6597
6598         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6599         SSA_NAME_DEF_STMT only on SSA_NAMEs.
6600
6601 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6602
6603         * tree-scalar-evolution.c (instantiate_scev_name): Do not
6604         instantiate default definitions.
6605
6606 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
6607             Sebastian Pop  <sebastian.pop@amd.com>
6608
6609         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6610         (loop_exits_from_bb_p): New.
6611         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6612         (loop_exits_from_bb_p): Declared.
6613         * graphite-scop-detection.c (scopdet_basic_block_info): Call
6614         loop_exits_to_bb_p.
6615
6616 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6617
6618         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6619         extra parameter for the region.  Call scev_analyzable_p.
6620         (rewrite_reductions_out_of_ssa): Update call to
6621         rewrite_close_phi_out_of_ssa.
6622         (rewrite_cross_bb_phi_deps): Same.
6623         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6624         parameter for the region.  Call scev_analyzable_p.
6625         (rewrite_commutative_reductions_out_of_ssa): Update call to
6626         rewrite_commutative_reductions_out_of_ssa_loop.
6627
6628 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6629
6630         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6631
6632 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6633
6634         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6635         SSA scalar phi nodes that can be scev_analyzable_p.
6636
6637 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6638
6639         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6640         handle SSA_NAME_IS_DEFAULT_DEF.
6641
6642 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6643
6644         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6645
6646 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6647
6648         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6649         case non close-phi nodes with one argument.
6650
6651 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6652
6653         * sese.h (scev_analyzable_p): Scevs could be expressions without
6654         chrecs and still be scev_analyzable_p.
6655
6656 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6657
6658         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6659
6660 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6661
6662         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6663         * cfgloop.h (struct loop): Remove single_iv field.
6664         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6665         (scop_canonicalize_loops): Removed.
6666         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
6667         over all the loop phi nodes in loop->header.
6668         (build_poly_scop): Remove use of scop_canonicalize_loops.
6669
6670 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6671
6672         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6673         handle GIMPLE_CALL.
6674
6675 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6676
6677         * tree-chrec.c (chrec_apply): Should only apply to the specified
6678         variable.  Also handle multivariate chains of recurrences that
6679         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
6680
6681 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6682
6683         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6684         (debug_clast_name_indexes_1): Removed.
6685         (debug_clast_name_indexes): Removed.
6686         (pbb_to_depth_to_oldiv): Removed.
6687         (build_iv_mapping): Replace the use of rename_map with iv_map.
6688         (translate_clast_user): Remove uses of rename_map.  Allocate and
6689         free iv_map.
6690         (translate_clast_for_loop): Remove uses of rename_map.
6691         (translate_clast_for): Same.
6692         (translate_clast_guard): Same.
6693         (translate_clast): Same.
6694         (gloog): Same.
6695         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6696         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6697         * sese.c (set_rename): Now static.
6698         (rename_variables_in_stmt): Removed.
6699         (rename_uses): New.
6700         (is_parameter): Removed.
6701         (is_iv): Removed.
6702         (expand_scalar_variables_call): Removed.
6703         (expand_scalar_variables_ssa_name): Removed.
6704         (expand_scalar_variables_expr): Removed.
6705         (expand_scalar_variables_stmt): Removed.
6706         (expand_scalar_variables): Removed.
6707         (rename_variables): Removed.
6708         (remove_condition): Removed.
6709         (get_true_edge_from_guard_bb): Removed.
6710         (get_false_edge_from_guard_bb): Removed.
6711         (struct igp): Removed.
6712         (default_before_guard): Removed.
6713         (convert_for_phi_arg): Removed.
6714         (add_guard_exit_phis): Removed.
6715         (insert_guard_phis): Removed.
6716         (graphite_copy_stmts_from_block): Now also uses iv_map and a
6717         region.  Do not copy conditions.  Do not copy induction variables.
6718         Call rename_uses.
6719         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6720         the translated statement.  Use the iv_map for the induction
6721         variable renaming.
6722         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6723         (set_rename): Removed declaration.
6724         (scev_analyzable_p): ...here.
6725         * tree-chrec.c (chrec_apply_map): New.
6726         * tree-chrec.h (chrec_apply_map): Declared.
6727
6728 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6729
6730         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6731         insert_loop_close_phis.
6732         * sese.c (name_defined_in_loop_p): Removed.
6733         (expr_defined_in_loop_p): Removed.
6734         (alive_after_loop): Removed.
6735         (close_phi_not_yet_inserted_p): Removed.
6736         (struct alep): Removed.
6737         (add_loop_exit_phis): Removed.
6738         (insert_loop_close_phis): Removed.
6739
6740 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6741
6742         * graphite-cloog-util.c
6743         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6744         * graphite-poly.c
6745         (psct_scattering_dim_for_loop_depth): Same.
6746
6747 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6748
6749         * graphite-cloog-util.h: Added cloog.h.
6750         * graphite-blocking.c: Removed cloog.h.
6751         * graphite-dependences.c: Same.
6752         * graphite-interchange.c: Same.
6753         * graphite-poly.c: Same.
6754         * graphite-ppl.c: Same.
6755         * graphite-scop-detection.c: Same.
6756         * graphite-sese-to-poly.c:
6757         Removed cloog.h.
6758         Removed graphite-clast-to-gimple.h.
6759         (check_poly_representation): Removed (unused).
6760         * graphite-sese-to-poly.h
6761         (check_poly_representation): Removed (unused).
6762
6763 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6764
6765         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6766         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6767         (graphite-cloog-util.o): New.
6768         (graphite-ppl.o): Added graphite-cloog-util.h.
6769         * graphite-clast-to-gimple.c:
6770         Added graphite-cloog-util.h to include statements.
6771         * graphite-cloog-util.c: New.
6772         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6773         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6774         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6775         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6776         (insert_constraint_into_matrix): Same.
6777         (ppl_Constrain_System_number_of_constraints): Same.
6778         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6779         (oppose_constraint): Same.
6780         (cloog_matrix_to_ppl_constraint): Same.
6781         (new_Constraint_System_from_Cloog_Matrix): Same.
6782         * graphite-cloog-util.h: New.
6783         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6784         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6785         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6786         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6787         (insert_constraint_into_matrix): Same.
6788         * graphite-ppl.c:
6789         Added graphite-cloog-util.h to include statements.
6790         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6791         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6792         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6793         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6794         (insert_constraint_into_matrix): Same.
6795         (ppl_Constrain_System_number_of_constraints): Same.
6796         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6797         (oppose_constraint): Same.
6798         (cloog_matrix_to_ppl_constraint): Same.
6799         (new_Constraint_System_from_Cloog_Matrix): Same.
6800         * graphite-ppl.h:
6801         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6802         graphite-cloog-util.h.
6803         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6804         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6805         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6806         (insert_constraint_into_matrix): Same.
6807
6808 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6809
6810         * graphite-clast-to-gimple.c
6811         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6812         (precision_for_interval): Same.
6813         (gcc_type_for_interval): Same.
6814         (compute_type_for_level): Same.
6815         * graphite-interchange.c
6816         (lst_interchange_profitable_p): Same.
6817         * graphite-poly.c
6818         (psct_scattering_dim_for_loop_depth): Same.
6819         * graphite-ppl.c
6820         (ppl_max_for_le_pointset): Same.
6821         (ppl_min_for_le_pointset): Same.
6822
6823 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6824
6825         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6826         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6827
6828 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6829
6830         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6831         rewrite_close_phi_out_of_ssa.
6832
6833 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6834
6835         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6836
6837 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6838
6839         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6840         rename_map.
6841         * sese.c (debug_rename_map): Same.
6842         (get_rename): Same.
6843         (set_rename): Same.
6844         (rename_variables_in_stmt): Same.
6845         (expand_scalar_variables_call): Same.
6846         (expand_scalar_variables_ssa_name): Same.
6847         (expand_scalar_variables_expr): Same.
6848         (expand_scalar_variables_stmt): Same.
6849         (expand_scalar_variables): Same.
6850         (rename_variables): Same.
6851         (graphite_copy_stmts_from_block): Same.
6852         (copy_bb_and_scalar_dependences): Same.
6853
6854 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6855
6856         * graphite-clast-to-gimple.c (copy_renames): Removed.
6857         (translate_clast_for): Do not call copy_renames.
6858         (translate_clast_guard): Same.
6859
6860 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6861
6862         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6863         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6864         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6865         before rewrite_cross_bb_scalar_deps.
6866
6867 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6868
6869         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6870         Early return in when flag_associative_math is not set.
6871
6872 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6873
6874         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6875         of SSA copies on edges except for loop->latch.
6876
6877 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6878
6879         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6880         Split out of rewrite_reductions_out_of_ssa.
6881         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6882         Declared.
6883         * graphite.c (graphite_transform_loops): Call it.
6884
6885 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6886
6887         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6888
6889 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6890
6891         * dbgcnt.def (graphite_scop): New counter.
6892         * graphite.c: Include dbgcnt.h.
6893         (graphite_transform_loops): Use new counter to limit transformations.
6894         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6895
6896 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6897
6898         * passes.c (init_optimization_passes): Add pass_graphite.
6899         Schedule a pass_copy_prop before pass_graphite_transforms.
6900         * timevar.def (TV_GRAPHITE): Declared.
6901         * tree-pass.h (pass_graphite): Declared.
6902         * tree-ssa-loop.c (pass_graphite): New.
6903
6904 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6905
6906         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6907         Remove calls to rename_nb_iterations and rename_sese_parameters.
6908         * graphite-clast-to-gimple.h (gloog): Update declaration.
6909         * graphite.c (graphite_transform_loops): Update call to gloog.
6910         * sese.c (rename_variables_in_expr): Removed.
6911         (rename_nb_iterations): Removed.
6912         (rename_sese_parameters): Removed.
6913         * sese.h (rename_nb_iterations): Removed.
6914         (rename_sese_parameters): Removed.
6915
6916 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6917
6918         * graphite-clast-to-gimple.c (gloog): Remove call to
6919         sese_adjust_liveout_phis.
6920         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6921         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6922         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6923         rewrite_phi_out_of_ssa.
6924         * sese.c (get_vdef_before_sese): Removed.
6925         (sese_adjust_vphi): Removed.
6926         (sese_adjust_liveout_phis): Removed.
6927         * sese.h (sese_adjust_liveout_phis): Removed.
6928
6929 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6930
6931         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6932         argument for the place after which to insert the out of SSA copy.
6933         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6934         (rewrite_phi_out_of_ssa): Same.
6935         (rewrite_cross_bb_scalar_deps): Same.
6936         (insert_copyout): Removed.
6937         (insert_copyin): Removed.
6938         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6939         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6940         insert_copyin.
6941
6942 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6943
6944         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6945         (rewrite_reductions_out_of_ssa): Same.
6946         (rewrite_commutative_reductions_out_of_ssa): Same.
6947         (build_poly_scop): Do not call these functions.
6948         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6949         (rewrite_reductions_out_of_ssa): Declared.
6950         (rewrite_commutative_reductions_out_of_ssa): Declared.
6951         * graphite.c (graphite_transform_loops): Call on every scop
6952         rewrite_commutative_reductions_out_of_ssa before calling
6953         rewrite_reductions_out_of_ssa and build_scop_bbs.
6954
6955 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6956
6957         * graphite-dependences.c (dot_deps): Make system call to dotty run
6958         in background.
6959         (dot_deps_stmt): Same.
6960         * graphite-poly.c (dot_lst): Same.
6961
6962 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6963
6964         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6965         phi_arg_in_outermost_loop.
6966         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6967         (remove_invariant_phi): Same.
6968
6969 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6970
6971         * target.def (output_addr_const_extra): New hook.
6972         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6973         * doc/tm.texi: Regenerate.
6974         * targhooks.c (default_asm_output_addr_const_extra): New function.
6975         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6976         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6977         target hook.
6978
6979         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6980         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6981         * config/i386/i386.h (output_addr_const_extra): Rename to...
6982         (i386_asm_output_addr_const_extra): ...this. Make static.
6983         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6984
6985 2010-08-11  Richard Henderson  <rth@redhat.com>
6986
6987         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6988
6989 2010-08-11  Nick Clifton  <nickc@redhat.com>
6990
6991         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6992         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6993         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6994         stormy16-lib2-cmpsi.c.
6995
6996         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6997         -O2.
6998
6999 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
7000
7001         * opts.h (struct cl_option_handler_func): Make handler take
7002         cl_decoded_option structure as parameter, not individual elements.
7003         (struct cl_option_handlers): Make callbacks take cl_decoded_option
7004         structure as parameter, not individual elements.
7005         (handle_option): Take cl_decoded_option structure as parameter,
7006         not individual elements.
7007         (handle_generated_option): Declare.
7008         * opts-common.c (handle_option): Take cl_decoded_option structure
7009         as parameter, not individual elements.  Update calls to callback
7010         and handler functions.
7011         (handle_generated_option): New.
7012         (read_cmdline_option): Update calls to callback functions and
7013         handle_option.
7014         * opts.c (common_handle_option, complain_wrong_lang,
7015         unknown_option_callback, post_handling_callback,
7016         lang_handle_option, target_handle_option): Take cl_decoded_option
7017         structure as parameter, not individual elements.
7018         (lang_handle_option, target_handle_option, common_handle_option):
7019         Assert option has at most one argument.
7020         (enable_warning_as_error): Call handle_generated_option instead of
7021         handle_option.  Do not pass -Werror argument as argument of
7022         generated option.
7023
7024 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7025
7026         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7027         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7028         (SUBWORD_BOOL_CAS): Likewise.
7029         (SUBWORD_SYNC_OP): Likewise.
7030         (SUBWORD_TEST_AND_SET): Likewise.
7031         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7032         (SUBWORD_SYNC_OP): Likewise.
7033         (OP_AND_FETCH_WORD): Likewise.
7034
7035 2010-08-10  Xinliang David Li  <davidxl@google.com>
7036
7037         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
7038         compute max/min offset in address.
7039
7040 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
7041
7042         * ira-live.c: Include sbitmap.h.
7043         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
7044         Compress live ranges even more.
7045
7046 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7047
7048         * coverage.c (ctr_labels): Delete.
7049
7050 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7051
7052         PR bootstrap/45177
7053         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
7054         test here from arm_gen_load_multiple_1.
7055         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
7056         multiple_operation_profitable_p.
7057
7058 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7059
7060         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
7061         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
7062
7063 2010-08-10  Richard Henderson  <rth@redhat.com>
7064
7065         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
7066         after saving registers.  Assert that SSE registers are only saved
7067         with a sufficiently aligned frame.
7068         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
7069         remove stack_realign_fp handling.
7070         (ix86_expand_prologue): Save int registers before stack_realign_fp,
7071         and do not mark the stack alignment as frame related.
7072         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
7073
7074         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
7075         saves when re-aligning the stack.
7076
7077 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7078
7079         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
7080         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
7081         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
7082
7083 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7084
7085         * dwarf2out.c (struct die_struct): Move die_tag to the end.
7086
7087 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
7088
7089         * config/arm/iterators.md: New file.
7090         * config/arm/arm.md: Include iterators.md.
7091         (QHSI): Move to new file.
7092         (LTUGEU, cnb, optab, ior_xor): Likewise.
7093         * config/arm/iwmmxt.md (VMMX): Move to new file.
7094         (VSHFT, MMX_char): Likewise.
7095         * config/arm/neon.md (VD): Move to new file.
7096         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
7097         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
7098         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
7099         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
7100         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
7101         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
7102         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
7103         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
7104         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
7105         (Is_d_reg, V_mode_nunits): Likewise.
7106         * config/arm/vec-common.md (VALL): Move to new file.
7107         (VALLW, VINT, VINTW): Likewise.
7108
7109 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7110
7111         PR middle-end/45182
7112         * combine.c (make_compound_operation): Don't try to convert
7113         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
7114
7115 2010-08-10  Richard Guenther  <rguenther@suse.de>
7116
7117         * tree.h (get_object_alignment): Adjust prototype.
7118         * builtins.c (get_object_alignment): Return unsigned int,
7119         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
7120         and TARGET_MEM_REF properly.
7121         (get_pointer_alignment): Adjust.
7122         * emit-rtl.c (get_mem_align_offset): Adjust comment.
7123         (set_mem_attributes_minus_bitpos): Adjust.
7124         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
7125
7126 2010-08-10  Richard Guenther  <rguenther@suse.de>
7127
7128         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
7129         (copy_prop_visit_assignment): Simplify.
7130         (copy_prop_visit_stmt): Also visit assignments from
7131         constants.
7132         (copy_prop_visit_phi_node): Use operand_equal_p.
7133
7134 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7135
7136         * ipa-split.c (find_split_points): Free stack.
7137
7138 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7139
7140         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
7141         * tree.c (tree_node_kind): Delete corresponding entries.
7142
7143 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7144
7145         * alias.c (may_alias_p): Remove unused ret.
7146
7147 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
7148
7149         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
7150         alias_sets_conflict_p.
7151         (walk_mems_1): Moved from alias.c.
7152         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
7153         in alias.c.
7154         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
7155         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
7156         * alias.c (walk_mems_2): Moved to ddg.c.
7157         (walk_mems_1): Ditto.
7158         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
7159         to ddg.c.
7160         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
7161         disambiguation.
7162         *(may_alias_p): New function to check whether two memory expression
7163         may alias or not. Currently used in buidling inter-iteration memory
7164         dependence.
7165         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
7166         (insn_alias_sets_conflict_p): Removed
7167         *rtl.h (may_alias_p): New function prototype.
7168
7169 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7170
7171         * tree.c (nreverse): Assert that we don't have a BLOCK.
7172
7173 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7174
7175         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
7176         * config/arm/arm.c (arm_get_pcs_model): Likewise.
7177         * config/avr/avr.c (init_cumulative_args): Likewise.
7178         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7179         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7180         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
7181         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
7182         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7183         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7184         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7185         * dwarf2out.c (gen_subprogram_die): Likewise.
7186         * function.c (allocate_struct_function): Likewise.
7187         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
7188         (deserves_ellipsis): Delete.
7189
7190 2010-08-09  Richard Guenther  <rguenther@suse.de>
7191
7192         * tree-ssa-copy.c (cached_last_copy_of): Remove.
7193         (valueize_val): New function.
7194         (get_last_copy_of): Remove.
7195         (set_copy_of_val): Simplify.
7196         (dump_copy_of): Likewise.
7197         (copy_prop_visit_cond_stmt): Use valueize_val.
7198         (copy_prop_visit_phi_node): Properly handle unvisited names.
7199         Drop code managing copy-of chains.
7200         (init_copy_prop): Adjust.
7201         (fini_copy_prop): Likewise.
7202         (execute_copy_prop): Remove obsolete comment.
7203
7204 2010-08-09  Richard Guenther  <rguenther@suse.de>
7205
7206         PR middle-end/44632
7207         * function.c (gimplify_parameters): Do not clear addressable
7208         bit of the original parameter.
7209
7210 2010-08-09  Richard Guenther  <rguenther@suse.de>
7211
7212         PR middle-end/45212
7213         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
7214         alignment from MEM_REF offset only if we took it from the
7215         base object.
7216
7217 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
7218
7219         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
7220
7221 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7222
7223         * c-tree.h (build_arg_info): Declare.
7224         * c-decl.c (build_arg_info): Define.
7225         (get_parm_info): Call it.  Delete initialization code.
7226         * c-parser.c (c_parser_parms_declarator): Likewise.
7227         (c_parser_parms_list_declaractor): Likewise.
7228
7229 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7230
7231         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
7232         (struct c_arg_info): Change type of tags field.
7233         * c-decl.c (grokdeclarator): Update for changed type of tags field.
7234         (get_parm_info): Likewise.
7235         (store_parm_decls_newstyle): Likewise.
7236
7237 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7238
7239         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
7240         (branch_island_list): Delete.
7241         (branch_islands): Declare.
7242         (add_compiler_branch_island): Adjust for branch_islands instead of
7243         branch_island_list.
7244         (macho_branch_islands): Likewise.
7245         (no_previous_def): Likewise.
7246         (get_prev_label): Likewise.
7247
7248 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7249
7250         PR boehm-gc/34544
7251         * gthr-posix.h (__gthread_start): Delete.
7252         (__gthread_active_init): Use pthread_default_stacksize_np instead of
7253         pthread_create to determine if hpux pthreads are active.
7254         * gthr-posix95.h (__gthread_start): Delete.
7255         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
7256
7257 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
7258
7259         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
7260         _WIN64 not expanded.
7261
7262 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
7263             H.J. Lu  <hongjiu.lu@intel.com>
7264
7265         PR target/45213
7266         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
7267         to output 32bit SFmode immediate as 8 byte sign extended value.
7268
7269 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7270
7271         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7272         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7273         (SUBWORD_BOOL_CAS): Likewise.
7274         (SUBWORD_SYNC_OP): Likewise.
7275         (SUBWORD_TEST_AND_SET): Likewise.
7276         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7277         (SUBWORD_SYNC_OP): Likewise.
7278         (OP_AND_FETCH_WORD): Likewise.
7279
7280 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7281
7282         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
7283         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
7284         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
7285         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
7286         generic part.
7287         (cortex_a9_sched_adjust_cost): New function.
7288         (xscale_sched_adjust_cost): New function.
7289         * config/arm/arm-protos.h (struct tune_params): New field
7290         sched_adjust_cost.
7291         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
7292
7293 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
7294
7295         PR target/44942
7296         * config/sparc/sparc.c (function_arg_advance): Always take into account
7297         the padding, if any.
7298
7299 2010-08-06  Richard Guenther  <rguenther@suse.de>
7300
7301         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
7302         (dump_lattice_value): Dump it.
7303         (get_default_value): Adjust.
7304         (get_constant_value): Likewise.
7305         (set_value_varying): Likewise.
7306         (set_lattice_value): Make sure to not go up the lattice
7307         with bitwise constant values.
7308         (get_value_for_expr): Handle ADDR_EXPRs.
7309         (value_to_double_int): New function.
7310         (get_value_from_alignment): Likewise.
7311         (do_dbg_cnt): Adjust.
7312         (ccp_lattice_meet): Handle partially constant values.
7313         (bit_value_unop_1): New function.
7314         (bit_value_binop_1): Likewise.
7315         (bit_value_unop): Likewise.
7316         (bit_value_binop): Likewise.
7317         (evaluate_stmt): Track partially constant values if
7318         flag_tree_bit_ccp is set.
7319         (ccp_fold_stmt): Dump if we folded a predicate.
7320         (ccp_visit_stmt): Adjust.
7321         * common.opt (ftree-bit-ccp): New flag.
7322         * doc/invoke.texi (ftree-bit-ccp): Document.
7323         * opts.c (decode_options): Enable bit-CCP at -O1.
7324
7325 2010-08-06  Alan Modra  <amodra@gmail.com>
7326
7327         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
7328         and -mrelocatable-lib description.
7329
7330 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7331
7332         From Martin Thuresson  <martint@google.com>
7333         * postreload.c (reload_cse_simplify_operands): Use
7334         SET_REGNO_RAW instead of SET_REGNO.
7335         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
7336         SET_REGNO.
7337         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
7338         instead of SET_REGNO.
7339         * rtl.h (SET_REGNO_RAW): New macro.
7340
7341 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
7342
7343         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
7344         computations.  Fix formatting issues.
7345         (num_sign_bit_copies1): Likewise.
7346         (canonicalize_condition): Likewise.
7347
7348 2010-08-05  Richard Henderson  <rth@redhat.com>
7349
7350         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
7351         (floor_log2): Use clz_hwi.
7352         (exact_log2): Use ctz_hwi.
7353         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
7354         * builtins.c (fold_builtin_bitop): Use them.
7355         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7356         * combine.c (get_pos_from_mask): Use ctz_hwi.
7357         * double-int.c (double_int_ctz): Likewise.
7358         * explow.c (force_reg): Likewise.
7359         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
7360
7361 2010-08-05  Richard Henderson  <rth@redhat.com>
7362
7363         PR target/45189
7364         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
7365         the alignment constant is properly sign-extended.
7366
7367 2010-08-05  Richard Guenther  <rguenther@suse.de>
7368
7369         * expr.c (store_expr): Use emit_block_move only if both
7370         source and target are MEMs.  Use store_bit_field if only
7371         the target is a MEM.
7372
7373 2010-08-05  Richard Henderson  <rth@redhat.com>
7374
7375         PR debug/45188
7376         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
7377         (INCOMING_RETURN_ADDR_RTX): Likewise.
7378         (dwarf2out_do_frame): Remove conditional compilation.
7379         (dwarf2out_frame_init): Likewise.
7380
7381 2010-08-05  Nicolas Setton  <setton@adacore.com>
7382
7383         * gcov.c (flag_display_progress): New static variable.
7384         (main): Display progress info on standard output if requested.
7385         (options): Add -d/--display-progress.
7386         (print_usage): Print them.
7387         (process_args): Handle them.
7388         * doc/gcov.texi: Document them.
7389
7390 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7391
7392         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
7393         (ipcp_insert_stage): Redirect only edges not flagged with
7394         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
7395         discovered constants.
7396
7397 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7398
7399         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
7400         (struct ipa_param_descriptor): New fields types and
7401         cannot_devirtualize.
7402         (ipa_param_cannot_devirtualize_p): New function.
7403         (ipa_param_types_vec_empty): Likewise.
7404         (ipa_make_edge_direct_to_target): Declare.
7405         * ipa-cp.c: Fixed first stage driver name in initial comment,
7406         described devirtualization there too.
7407         (ipcp_analyze_node): Call ipa_analyze_params_uses.
7408         (ipcp_print_all_lattices): Print devirtualization info.
7409         (ipa_set_param_cannot_devirtualize): New function.
7410         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
7411         lattice to BOTTOM.
7412         (ipcp_init_stage): Merged into...
7413         (ipcp_generate_summary): ...its caller.
7414         (ipcp_change_tops_to_bottom): Also process type lists.
7415         (ipcp_add_param_type): New function.
7416         (ipcp_copy_types): Likewise.
7417         (ipcp_propagate_types): Likewise.
7418         (ipcp_propagate_stage): Also propagate types.
7419         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
7420         Also return true if propagated types require it.
7421         (ipcp_update_callgraph): Dump redirection info.
7422         (ipcp_process_devirtualization_opportunities): New function.
7423         (ipcp_const_param_count): Include known type information.
7424         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
7425         on new node.  Fixed formatting.
7426         * ipa-prop.c (make_edge_direct_to_target): Renamed to
7427         ipa_make_edge_direct_to_target and changed all callers.  Made
7428         externally visible.
7429         (ipa_node_duplication_hook): Duplicate types vector.
7430         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
7431         redirect outgoing calls for which we can't get a decl from the
7432         statement.  Check that we can get a decl from the call statement.
7433         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7434         ipa_analyze_params_uses only when ipa-cp is disabled.
7435         * tree-inline.c (get_indirect_callee_fndecl): Removed.
7436         (expand_call_inline): Do not call get_indirect_callee_fndecl.
7437         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
7438         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
7439
7440 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7441
7442         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
7443         temporary. Emit move from temporary to accum, so REG_EQUAL note will
7444         be attached to this insn in correct mode.
7445
7446 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7447
7448         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7449         using REGNO of base_reg directly.
7450
7451 2010-08-05  Jie Zhang  <jie@codesourcery.com>
7452
7453         PR tree-optimization/45144
7454         * tree-sra.c (type_consists_of_records_p): Return false
7455         if the record contains bit-field.
7456
7457 2010-08-04  Richard Henderson  <rth@redhat.com>
7458
7459         * config/i386/i386.c (struct ix86_frame): Remove padding and
7460         to_allocate members.
7461         (ix86_compute_frame_layout): Don't store them.
7462         (ix86_can_use_return_insn_p): Use a more direct and more obviously
7463         correct condition for the position of the stack pointer.
7464         (ix86_expand_prologue): Compute remaining stack allocation based
7465         on the ultimate stack pointer offset.
7466         (ix86_expand_epilogue): Use more obvious expressions testing for
7467         the stack pointer already pointing to the saved registers.
7468
7469         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7470         duplication deconstructing the frame pointer.  Simplify
7471         deallocation of the local stack frame.
7472
7473         * reg-notes.def (CFA_EXPRESSION): New.
7474         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7475         (dwarf2out_frame_debug_cfa_expression): New.
7476         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7477
7478         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7479         * config/i386/i386.c (ix86_expand_prologue): Set it.
7480         (ix86_expand_epilogue): Clear it.
7481         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7482         context, add REG_CFA_EXPRESSION notes.
7483
7484         * config/i386/i386.h (struct machine_frame_state): Rename from
7485         machine_cfa_state.  Add members tracking SP and FP regardless
7486         of the current CFA register.
7487         (ix86_cfa_state): Remove.
7488         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7489         and sse_reg_save_offset members.
7490         (ix86_compute_frame_layout): Set them.
7491         (gen_push): Increment sp_offset too.
7492         (choose_baseaddr_len, choose_baseaddr): New.
7493         (ix86_emit_save_reg_using_mov): New.
7494         (ix86_emit_save_regs_using_mov): Use it.
7495         (ix86_emit_save_sse_regs_using_mov): Likewise.
7496         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7497         compare vs the saved red_zone_offset.
7498         (pro_epilogue_adjust_stack): Adjust sp_offset.
7499         (ix86_adjust_stack_and_probe): Likewise.
7500         (ix86_expand_prologue): Set up, use, and validate the new
7501         frame_state_info members.  Use gen_frame_mem.
7502         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7503         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
7504         new frame_state_info members.
7505         (ix86_emit_leave): Likewise.
7506         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
7507         out-of-range stack pointer offsets here.
7508         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7509         (ix86_expand_epilogue): Use and validate the new frame_state_info
7510         members.  Break up and simplify the logic selecting the
7511         restore_regs_via_mov code path.  Ensure that there will be no
7512         out-of-range stack pointer offsets.
7513
7514         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7515
7516         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7517         argument name to reflect the expected tree; fix indentation.
7518         (ix86_asm_output_function_label): Output the entire 32-bit
7519         ms_hook here as bytes ...
7520         (ix86_expand_prologue): ... not here as insns.  Attach the
7521         unwind info for the ms_hook to a blockage insn.
7522         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7523         (ix86_ms_bitfield_layout_p): Fix indentation.
7524         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7525
7526         * config/i386/i386.c (ix86_using_red_zone): New.
7527         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7528         ix86_expand_prologue, ix86_force_to_memory): Use it.
7529
7530         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7531         saving the int registers.
7532
7533         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7534         and DWARF2_UNWIND_INFO conditional compilation.
7535
7536 2010-08-04  Richard Henderson  <rth@redhat.com>
7537
7538         PR debug/45171
7539         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7540         an is_naming_typedef_decl.
7541
7542 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
7543
7544         PR rtl-optimization/45162
7545         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7546         * dce.c (word_dce_process_block): Likewise.
7547
7548 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
7549
7550         PR target/44583
7551         * config/ia64/constraints.md (Z): New.
7552         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7553         (xfreg_or_signed_fp01_operand): New.
7554         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7555         with fr_reg_or_signed_fp01_operand and constraint G with Z.
7556         (subsf3): Ditto.
7557         (*maddsf4): Ditto.
7558         (*msubsf4): Ditto.
7559         (adddf3): Ditto.
7560         (adddf3_trunc): Ditto.
7561         (subdf3): Ditto.
7562         (*subdf3_trunc): Ditto.
7563         (*madddf4): Ditto.
7564         (*madddf4_trunc): Ditto.
7565         (*msubdf4): Ditto.
7566         (*msubdf4_trunc): Ditto.
7567         (addxf3): Replace xfreg_or_fp01_operand with
7568         xfreg_or_signed_fp01_operand and constraint G with Z.
7569         (*addxf3_truncsf): Ditto.
7570         (*addxf3_truncdf): Ditto.
7571         (subxf3): Ditto.
7572         (*subxf3_truncsf): Ditto.
7573         (*subxf3_truncdf): Ditto.
7574         (*maddxf4): Ditto.
7575         (*maddxf4_truncsf): Ditto.
7576         (*maddxf4_truncdf): Ditto.
7577         (*msubxf4): Ditto.
7578         (*msubxf4_truncsf): Ditto.
7579         (*msubxf4_truncdf): Ditto.
7580
7581 2010-08-04  Richard Guenther  <rguenther@suse.de>
7582
7583         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7584         if either alias-set is zero.
7585
7586 2010-08-04  Richard Guenther  <rguenther@suse.de>
7587
7588         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7589         * tree-ssa-ccp.c: ... here.
7590         * tree-ssa-copy.c: ... and here.
7591         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7592         value_range_t): Move ...
7593         * tree-vrp.c: ... here.
7594         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7595         (substitute_and_fold): Adjust prototype.
7596         * tree-ssa-propagate.c (replace_uses_in): Adjust.
7597         (replace_phi_args_in): Likewise.
7598         (substitute_and_fold): Take callback to query lattice instead
7599         of pointer to lattice.  Replace SSA name defs with lattice
7600         values first.
7601         * tree-ssa-ccp.c (ccp_finalize): Adjust.
7602         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7603         (get_value): New function.
7604         (fini_copy_prop): Adjust.
7605         * tree-vrp.c (vrp_finalize): Adjust.
7606
7607 2010-08-04  Richard Guenther  <rguenther@suse.de>
7608
7609         PR middle-end/45176
7610         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7611         points-to set for original MEM_REF.
7612
7613 2010-08-04  Richard Guenther  <rguenther@suse.de>
7614
7615         * tree-ssa-ccp.c (get_constant_value): New function.
7616         (get_rhs_assign_op_for_ccp): Remove.
7617         (valueize_op): New function.
7618         (ccp_fold): Use get_constant_value and valueize_op.
7619         (fold_const_aggregate_ref): Likewise.
7620         (ccp_fold_stmt): Likewise.
7621         (visit_assignment): Simplify.
7622
7623 2010-08-04  Richard Guenther  <rguenther@suse.de>
7624
7625         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7626         * double-int.h (double_int_ctz): Declare.
7627         * double-int.c (double_int_ctz): New function.
7628
7629 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7630
7631         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7632         Define.
7633         picochip_expand_movmemhi : Expand movmem pattern.
7634         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7635         Declare.
7636         * config/picochip/picochip.md (movmemhi) : New pattern.
7637
7638 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7639
7640         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7641
7642 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
7643
7644         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7645         NEG as operand of a MULT by merging it with the other operand.
7646         * combine.c (make_compound_operation): Use trunc_int_for_mode when
7647         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
7648         MULT.
7649         * config/arm/constraints.md (M): Examine only 32 bits of a
7650         HOST_WIDE_INT.
7651         * config/arm/predicates.md (power_of_two_operand): Likewise.
7652
7653 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7654
7655         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7656         non-NOTE insns.
7657
7658 2010-08-03  Jan Hubicka  <jh@suse.cz>
7659
7660         * ipa-split.c (struct split_point): Add split_part_set_retval.
7661         (find_retval): Forward declare.
7662         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7663         (consider_split): Compute current->split_part_set_retval.
7664         (visit_bb): Do not look into return value.
7665         (split_function): Handle !split_part_set_retval
7666
7667 2010-08-03  Martin Jambor  <mjambor@suse.cz>
7668
7669         * tree-sra.c (completely_scalarize_record): New parameter REF, create
7670         its own access->expr intead of using build_ref_for_offset.
7671
7672 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
7673
7674         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7675         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7676         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7677         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7678         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7679         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7680         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7681         DEFAULT_SWITCH_TAKES_ARG.
7682         * config/rx/rx.opt (-patch=): Remove option.
7683         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7684         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7685         * doc/invoke.texi (RX Options): Remove -patch=.
7686         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7687         (option_map): Remove --profile-blocks, --quiet and --silent.
7688
7689 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7690
7691         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7692         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7693         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
7694         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7695         Update calls to ix86_expand_compare and ix86_expand_branch.
7696         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
7697         ix86_expand_compare.
7698         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
7699         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7700         Make static.
7701         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7702         and ix86_compare_op1.  Update calls to ix86_expand_compare.
7703         (ix86_expand_int_movcc): Ditto.
7704         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
7705         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7706         (ix86_expand_setcc): Ditto.
7707         (ix86_expand_compare): Remove prototype.
7708         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7709         ix86_compare_op0 and ix86_compare_op1.  Update calls
7710         to ix86_expand_branch to directly pass operands[1] and operands[2].
7711         (cbranchxf4): Ditto.
7712         (cbranch<MODEF:mode>4): Ditto.
7713         (cbranchcc4): Ditto.
7714         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7715         Update calls to ix86_expand_setcc to directly pass operands[2] and
7716         operands[3].
7717         (cstorexf4): Ditto.
7718         (cstore<MODEF:mode>4): Ditto.
7719         (cstorecc4): Ditto.
7720
7721 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7722
7723         PR target/45063
7724         * caller-save.c (save_call_clobbered_regs): Remove regs from
7725         hard_regs_saved when they are set.
7726
7727 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7728
7729         PR target/41089
7730         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7731         as volatile.
7732
7733 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
7734
7735         * common.opt (ftree-loop-distribute-patterns): New.
7736         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7737         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7738         at -O3.
7739         * tree-data-ref.c (stores_zero_from_loop): New.
7740         * tree-data-ref.h (stores_zero_from_loop): Declared.
7741         * tree-loop-distribution.c (tree_loop_distribution): Call
7742         stores_zero_from_loop.
7743         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7744
7745 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7746
7747         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7748         into account.
7749
7750         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7751         * config/arm/arm.c (thumb1_code): New variable.
7752         (arm_override_options): Set it.
7753         (thumb1_final_prescan_insn): Keep track of condition code status.
7754         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7755         jumps that depend on them.
7756         * config/arm/arm.h (thumb1_code): Declare variable.
7757         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
7758         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7759         thumb1_cc_mode.
7760         (CC_STATUS_INIT): New macro.
7761         * config/arm/constraints.md (Pd): New constraint.
7762         * config/arm/predicates.md (noov_comparison_operator): New predicate.
7763         * config/arm/arm.md (is_thumb1): New define_attr.
7764         (conds): Set default to "clob" when generating Thumb1 code.
7765         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
7766         code are set.  Use two-operand assembly syntax.
7767         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
7768         pattern.
7769         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7770         codes are set.  Use two-operand assembly syntax.
7771         (zero_extendhisi splitter): Remove constraints.
7772         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7773         thumb1_movsf_insn): Set conds attribute as appropriate.
7774         (cbranchsi4_insn): Use condition code status from struct
7775         machine_function to determine whether the comparison can be eliminated.
7776         Discourage the alternative using high registers.
7777         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7778         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7779         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7780         subsi3_cbranch): Delete.
7781         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7782         one subtract and one cbranch insn.
7783
7784         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7785         thumb2_movdf_soft_insn): Delete patterns.
7786         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7787         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7788         (pool_range, neg_pool_range): Use them to define defaults.
7789         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7790         and allow for TARGET_32BIT.
7791
7792         PR target/40457
7793         * config/arm/arm.h (arm_regs_in_sequence): Declare.
7794         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7795         load_multiple_sequence, store_multiple_sequence): Delete
7796         declarations.
7797         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7798         declarations.
7799         * config/arm/ldmstm.md: New file.
7800         * config/arm/arm.c (arm_regs_in_sequence): New array.
7801         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
7802         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.  Handle Thumb mode.
7805         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
7806         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
7807         If SAVED_ORDER is nonnull, copy the computed order into it.
7808         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
7809         like REGS.  Handle Thumb mode.
7810         (arm_gen_load_multiple_1): New function, broken out of
7811         arm_gen_load_multiple.
7812         (arm_gen_store_multiple_1): New function, broken out of
7813         arm_gen_store_multiple.
7814         (arm_gen_multiple_op): New function, with code from
7815         arm_gen_load_multiple and arm_gen_store_multiple moved here.
7816         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7817         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
7818         changed.
7819         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7820         * config/arm/predicates.md (commutative_binary_operator): New.
7821         (load_multiple_operation, store_multiple_operation): Handle more
7822         variants of these patterns with different starting offsets.  Handle
7823         Thumb-1.
7824         * config/arm/arm.md: Include "ldmstm.md".
7825         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7826         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7827         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7828         peepholes): Delete.
7829         * config/arm/ldmstm.md: New file.
7830         * config/arm/arm-ldmstm.ml: New file.
7831
7832         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7833         if statement which adds extra costs to frame-related expressions.
7834
7835 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7836
7837         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7838
7839 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7840
7841         PR target/45142
7842         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7843         alternative 2.
7844         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7845         split V4SI operands.
7846
7847 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7848
7849         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7850         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7851         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7852         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7853
7854 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7855
7856         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7857         LOCAL_INCLUDE_DIR.
7858
7859 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7860
7861         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7862         used in the call to optab_for_tree_code.  Fix the second
7863         is_widening_mult_p call.  Check that both unwidened operands
7864         have the same sign.
7865
7866 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7867
7868         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7869
7870 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7871
7872         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7873
7874 2010-07-30  DJ Delorie  <dj@redhat.com>
7875
7876         * config/rx/predicates.md (rx_constshift_operand): New.
7877         * config/rx/rx.md (zs_cond): New.
7878         (cbranchsi4): Remove mode.
7879         (*cbranchsi4_<code>): Likewise.
7880         (*tstbranchsi4_<code>): New.
7881         (*tstbranchsi4r_<code>): New.
7882         (*tstbranchsi4m_eq): New.
7883         (*tstbranchsi4m_ne): New.
7884         (cbranchsf4): Remove mode.
7885         (*cbranchsf4_<code>): Likewise.
7886
7887 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7888
7889         * rtlanal.c (simplify_subreg_regno): Don't treat
7890         HARD_FRAME_POINTER_REGNUM specially.
7891
7892 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7893
7894         * common.opt (-G): Don't define option here.
7895         * config/g.opt: New.
7896         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7897         rs6000/powerpc and score targets.
7898         * opts.c (common_handle_option): Don't handle -G here.
7899         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7900         * config/frv/frv.c (frv_handle_option): Handle -G.
7901         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7902         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7903         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7904         * config/mips/mips.c (mips_handle_option): Handle -G.
7905         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7906         * config/score/score.c (score_handle_option): Handle -G.
7907
7908 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7909
7910         * config/mmix/mmix.c: Include basic-block.h.
7911
7912 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7913
7914         PR debug/45055
7915         PR rtl-optimization/45137
7916         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7917         prototypes.
7918         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7919         New functions.
7920         * combine.c (next_nonnote_nondebug_insn): Removed.
7921         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7922         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7923         * sched-deps.c (sched_analyze_insn): Likewise.
7924         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7925         * rtlanal.c (canonicalize_condition): Likewise.
7926         * postreload.c (reload_combine_recognize_pattern): Likewise.
7927         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7928
7929 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7930
7931         * config/i386/i386.md (int_cond): Remove code iterator.
7932         (fp_cond): Ditto.
7933         (cbranch<mode>4): Use ordered_comparison_operator predicate
7934         for operator0.
7935         (cstore<mode>4): Ditto for operator1.
7936         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7937         (add<mode>cc): ditto.
7938
7939 2010-07-30  Richard Guenther  <rguenther@suse.de>
7940
7941         PR middle-end/45141
7942         * expr.c (expand_expr_real_1): Check for not handled base address.
7943
7944 2010-07-30  Richard Guenther  <rguenther@suse.de>
7945
7946         * ipa-prop.c (ipa_modify_formal_parameters): Use
7947         build_distinct_type_copy.
7948
7949 2010-07-30  Anthony Green  <green@moxielogic.com>
7950
7951         * config/moxie/rtems.h: New file.
7952         * config.gcc: Add moxie-rtems support.
7953
7954 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7955
7956         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7957         df flags as in run_fast_df_dce.
7958
7959 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7960
7961         Revert:
7962         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7963
7964         * rtl.def (NOTE): Swap operands 4 and 5.
7965         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7966         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7967         Adjust accordingly.
7968         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7969
7970 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7971
7972         PR debug/45110
7973         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7974         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7975         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7976         formal parameters.
7977         (gen_decl_die): Change return type to dw_die_ref, return what
7978         gen_formal_parameter_die returned.
7979
7980 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7981
7982         * dbgcnt.def (eipa_sra): New counter.
7983         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7984
7985 2010-07-29  Xinliang David Li  <davidxl@google.com>
7986
7987         PR bootstrap/45119
7988         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7989         in revision 162652.
7990
7991 2010-07-29  Richard Guenther  <rguenther@suse.de>
7992
7993         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7994         (TV_TREE_STORE_CCP): Likewise.
7995         (TV_TREE_REDPHI): Likewise.
7996
7997 2010-07-29  Richard Guenther  <rguenther@suse.de>
7998
7999         * double-int.h (double_int_and_not): New function.
8000         * combine.c (try_combine): Use it.
8001         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
8002
8003 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
8004
8005         PR rtl-optimization/42575
8006         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
8007         Argument AU removed.  All callers changed.  Ignore artificial refs.
8008         Use return value of df_word_lr_simulate_defs to decide whether an insn
8009         is necessary.
8010         (fast_dce): Rename arg to WORD_LEVEL.
8011         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
8012         static.
8013         (pass_fast_rtl_byte_dce): Delete.
8014         * dce.h (run_word_dce): Declare.
8015         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
8016         All callers changed.  Simplify code to only deal with two-word regs.
8017         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
8018         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
8019         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
8020         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
8021         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
8022         (df_word_lr_mark_ref): Declare.
8023         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
8024         df_word_lr_simulate_uses): Declare or rename from byte variants.
8025         (df_byte_lr_simulate_artificial_refs_at_top,
8026         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8027         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
8028         declarations.
8029         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
8030         (enum df_mm): Delete.
8031         * df-byte-scan.c: Delete file.
8032         * df-problems.c (df_word_lr_problem_data): Renamed from
8033         df_byte_lr_problem_data, all members deleted except for
8034         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
8035         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
8036         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8037         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
8038         df_byte_lr_confluence_0): Delete functions.
8039         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
8040         callers changed.
8041         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
8042         Don't initialize members that were deleted, don't try to discover data
8043         about registers.  Ignore hard regs.
8044         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
8045         (df_word_lr_mark_ref): New function.
8046         (df_word_lr_bb_local_compute): Renamed from
8047         df_byte_bb_lr_local_compute; all callers changed.  Use
8048         df_word_lr_mark_ref.  Assert that artificial refs don't include
8049         pseudos.  Ignore hard registers.
8050         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
8051         Assert that exit block uses don't contain pseudos.
8052         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
8053         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
8054         callers changed.  Ignore hard regs.
8055         (df_word_lr_transfer_function): Renamed from
8056         df_byte_lr_transfer_function; all callers changed.
8057         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
8058         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
8059         changed.
8060         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
8061         callers changed.
8062         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
8063         confluence operator 0 set to NULL.
8064         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
8065         callers changed.
8066         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
8067         Return bool, true if bitmap changed or insn otherwise necessary.
8068         All callers changed.  Simplify using df_word_lr_mark_ref.
8069         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
8070         all callers changed.  Simplify using df_word_lr_mark_ref.
8071         * lower-subreg.c: Include "dce.h"
8072         (decompose_multiword_subregs): Call run_word_dce if df available.
8073         * Makefile.in (lower-subreg.o): Adjust dependencies.
8074         (df-byte-scan.o): Delete.
8075         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
8076
8077 2010-07-29  Richard Guenther  <rguenther@suse.de>
8078
8079         * tree.c (build_vector): Assert that the vector constant
8080         has enough elements.
8081         (build_vector_from_ctor): Pad with trailing zeros.
8082
8083 2010-07-29  Richard Guenther  <rguenther@suse.de>
8084
8085         PR tree-optimization/45120
8086         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8087         Handle offset in DEREFs properly.
8088         (get_constraint_for_1): Handle MEM_REF offset properly.
8089
8090 2010-07-29  Richard Guenther  <rguenther@suse.de>
8091
8092         PR middle-end/45034
8093         * convert.c (convert_to_integer): Always use an unsigned
8094         type for narrowed negate and bitwise not.
8095
8096 2010-07-29  Ira Rosen  <irar@il.ibm.com>
8097
8098         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
8099         to outer loop when creating reduction epilogue for double reduction,
8100         and switch back to the inner loop when updating the phi nodes.
8101         Update uses of outer loop exit phi nodes in double reduction (instead
8102         of uses of reduction).
8103
8104 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
8105
8106         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
8107         popcount on power7 and parity on power6 systems.
8108         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
8109         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
8110         instructions.
8111
8112         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
8113         (UNSPEC_PARITY): Ditto.
8114         (SFDF): New iterator for SF/DF.
8115         (rreg2): New mode attribute for floating register constraint.
8116         (TARGET_FLOAT): New mode attribute for whether single/double float
8117         is supported.
8118         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
8119         pattern.
8120         (parity<mode>2_cmpb): New insn for parity on power6 and newer
8121         machines.
8122         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
8123         pattern.  Add support for fcpsgn instruction added in power6.
8124         (copysignsf3): Delete.
8125         (copysigndf3): Delete.
8126         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
8127         instead of if_then_else in RTL to avoid problems with -0.
8128
8129         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
8130         of if_then_else to mirror scalar code.
8131         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
8132         rs6000.md.
8133
8134         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
8135         instead of if_then_else.
8136
8137 2010-07-28  Xinliang David Li  <davidxl@google.com>
8138
8139         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
8140         (dump_cand): Dump var_before/after.
8141         (htab_inv_expr_eq): New function.
8142         (htab_inv_expr_hash): New function.
8143         (tree_ssa_iv_optimize_init): Support pseudo invariants.
8144         (add_candidate_1): consider base type precision.
8145         (set_use_iv_cost): New parameter.
8146         (adjust_setup_cost): Use profile information.
8147         (get_address_cost): Do not hard code width in computing address
8148         offset limits.
8149         (compare_aff_trees): New function.
8150         (get_loop_invariant_expr_id): New function.
8151         (get_computation_cost_at): New parameter and use profile information.
8152         (get_computation_cost): New parameter.
8153         (determine_use_iv_cost_generic): Pass new parameter.
8154         (determine_use_iv_cost_address): Ditto.
8155         (determine_use_iv_cost_condition): Ditto.
8156         (autoinc_possible_for_pair): Ditto.
8157         (determine_use_iv_costs): More dumps.
8158         (iv_ca_get_num_inv_exprs): New function.
8159         (iv_ca_recount_cost): Consider loop invariants in register pressure
8160         cost.
8161         (iv_ca_add_use): New parameter.
8162         (iv_ca_dump): Better dumping.
8163         (iv_ca_extend): New parameter.
8164         (try_add_cand_for): Attempt to get better partial solution.
8165         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
8166         (create_new-ivs): More dumps.
8167         (rewrite_use_compare): Ditto.
8168         (free_loop_data): More cleanup.
8169         (treee_ssa_iv_optimize_finalize): Ditto.
8170
8171 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
8172
8173         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
8174         * config/i386/i386.c (ix86_profile_before_prologue): New.
8175         (override_options): Add special handling for -mfentry.
8176         (ix86_function_regparm): Likewise.
8177         (ix86_function_sseregparm): Likewise.
8178         (ix86_frame_pointer_required): Likewise.
8179         (ix86_expand_prologue): Check for ms_hook_prologue.
8180         (x86_function_profiler): Adjust mcount output.
8181         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
8182         * config/i386/i386.opt (mfentry): New.
8183         * doc/invoke.texi (mfentry): Add documentation.
8184         * doc/tm.texi: Regenerated..
8185         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
8186         * final.c (final_start_function): Replace macro
8187         PROFILE_BEFORE_PROLOGUE by target hook.
8188         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8189         * target.def (profile_before_prologue): New hook.
8190         * targhooks.c (default_profile_before_prologue): New.
8191         * targhooks.h (default_profile_before_prologue): New.
8192
8193 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
8194
8195         PR debug/45105
8196         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
8197
8198         PR debug/45103
8199         * dwarf2out.c (dwarf2out_var_location): Always consider
8200         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
8201
8202 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8203
8204         PR rtl-optimization/45107
8205         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
8206
8207 2010-07-28  Richard Guenther  <rguenther@suse.de>
8208
8209         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
8210         (set_lattice_value): Do not query an old default value.
8211         (get_value_for_expr): New function.  Properly canonicalize
8212         float values.
8213         (ccp_visit_phi_node): Use it.
8214
8215 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
8216
8217         * config/arm/arm.c (arm_pcs_default): Remove static.
8218         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
8219         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
8220         (arm_pcs_default): Declare.
8221
8222 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
8223
8224         * config/rs6000/rs6000.c (rs6000_override_options):
8225         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
8226         ... to darwin_rs6000_override_options.
8227         (rs6000_return_in_memory): Update preceding comment for darwin
8228         64 bit ABI.  Use TARGET_MACHO inline.
8229         (rs6000_darwin64_struct_check_p): New.
8230         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
8231         (function_arg): Likewise.
8232         (rs6000_arg_partial_bytes): Likewise.
8233         (rs6000_function_value): Likewise.
8234
8235 2010-07-28  Andi Kleen  <ak@linux.intel.com>
8236
8237         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
8238
8239 2010-07-28  Richard Guenther  <rguenther@suse.de>
8240
8241         PR middle-end/44903
8242         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
8243         targets try harder to not generate unaligned accesses.
8244
8245 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8246
8247         PR rtl-optimization/45101
8248         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
8249         for gcse-las.
8250
8251 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8252
8253         PR tree-optimization/44885
8254         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
8255         with non-aliased component.
8256
8257 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
8258
8259         * config/darwin-driver.c (SWITCH_TAKES_ARG,
8260         WORD_SWITCH_TAKES_ARG): Remove.
8261         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
8262         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
8263         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
8264         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
8265         definitions from gcc.c.
8266         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
8267         defaults.h.
8268         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
8269         Move to defaults.h.
8270         * opts-common.c: Include tm.h.
8271         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
8272         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
8273         Handle more than one argument.  Set canonical_option_num_elements.
8274         (decode_cmdline_options_to_array): Set
8275         canonical_option_num_elements and trailing elements of
8276         canonical_option.
8277         * opts.h (struct cl_decoded_option): Allow four elements in
8278         canonical_option.  Add field canonical_option_num_elements.
8279         * Makefile.in (opts-common.o): Update dependencies.
8280
8281 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8282
8283         PR middle-end/44790
8284         PR middle-end/44993
8285         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
8286         sure the base has address_mode before adding the offset.
8287
8288 2010-07-27  Xinliang David Li  <davidxl@google.com>
8289
8290         * tree-flow.h (create_mem_ref): Add one new parameter.
8291         * tree-ssa-address.c (create_mem_ref): New parameter.
8292         (addr_to_parts): Ditto.
8293         (move_variant_to_index): New function.
8294         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
8295
8296 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8297
8298         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
8299         4 and 5.
8300         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
8301         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
8302         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
8303         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
8304         CODE_LABELs and NOTEs.
8305         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
8306         * combine.c (try_combine): Likewise.
8307         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8308         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
8309
8310 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8311
8312         * coretypes.h (struct cl_option_handlers): Declare.
8313         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
8314         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
8315         * langhooks-def.h (lhd_handle_option): Declare.
8316         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
8317         * langhooks.c (lhd_handle_option): New.
8318         * langhooks.h (struct lang_hooks): Update prototype and return
8319         value type of handle_option hook.
8320         * optc-gen.awk: Generate target_flags_explicit definition for the
8321         driver.
8322         * opts-common.c: Include diagnostic.h.
8323         (handle_option): Move from opts.c.  Update prototype and return
8324         value type.  Use handlers structure.
8325         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
8326         handlers structure.
8327         (set_option): Move from opts.c.
8328         * opts.c (common_handle_option): Update prototype and return value
8329         type.  Update calls to handle_option and enable_warning_as_error.
8330         (unknown_option_callback, post_handling_callback,
8331         lang_handle_option, target_handle_option): New.
8332         (handle_option, read_cmdline_option): Move to opts-common.c.
8333         (read_cmdline_options): Update prototype.  Update call to
8334         read_cmdline_option.
8335         (decode_options): Initialize and use handlers structure.
8336         (set_option): Move to opts-common.c.
8337         (enable_warning_as_error): Update prototype.  Update call to
8338         handle_option.
8339         * opts.h (struct cl_option_handler_func, struct
8340         cl_option_handlers): New.
8341         (handle_option, enable_warning_as_error): Update prototypes.
8342         (read_cmdline_option): Declare.
8343         * Makefile.in (opts-common.o): Update dependencies.
8344
8345 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8346
8347         * config/arm/arm.c (params.h): Include.
8348         (arm_override_options): Tune gcse-unrestricted-cost.
8349         * config/arm/t-arm (arm.o): Define dependencies.
8350
8351 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8352
8353         PR target/42495
8354         PR middle-end/42574
8355         * basic-block.h (get_dominated_to_depth): Declare.
8356         * dominance.c (get_dominated_to_depth): New function, use
8357         get_all_dominated_blocks as a base.
8358         (get_all_dominated_blocks): Use get_dominated_to_depth.
8359
8360         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
8361         (hoist_exprs): Remove.
8362         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
8363         (compute_code_hoist_vbeinout): Add debug print outs.
8364         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
8365
8366         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
8367         quadratic behavior.
8368         * params.h (MAX_HOIST_DEPTH): New macro.
8369         * doc/invoke.texi (max-hoist-depth): Document.
8370
8371 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8372
8373         PR rtl-optimization/40956
8374         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
8375         constants.
8376
8377 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8378
8379         PR target/42495
8380         PR middle-end/42574
8381         * config/arm/arm.c (legitimize_pic_address): Use
8382         gen_calculate_pic_address pattern to emit calculation of PIC address.
8383         (will_be_in_index_register): New function.
8384         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
8385         (thumb1_legitimate_address_p): Use it provided !strict_p.
8386         * config/arm/arm.md (calculate_pic_address): New expand and split.
8387
8388 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8389
8390         PR target/42495
8391         PR middle-end/42574
8392         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
8393         * config/arm/arm.md (define_split "J", define_split "K"): Make
8394         IRA/reload friendly.
8395
8396 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8397
8398         * gcse.c (insert_insn_end_basic_block): Update signature, remove
8399         unused checks.
8400         (pre_edge_insert, hoist_code): Update.
8401
8402 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8403
8404         PR target/42495
8405         PR middle-end/42574
8406         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
8407
8408 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8409
8410         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
8411
8412 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8413
8414         PR rtl-optimization/40956
8415         PR target/42495
8416         PR middle-end/42574
8417         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
8418         for hoisting.
8419         (hoist_code): Count occurences in current block too.
8420
8421 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8422
8423         * gcse.c (struct expr:max_distance): New field.
8424         (doing_code_hoisting_p): New static variable.
8425         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
8426         simple expressions, don't change behavior for PRE.  Set max_distance.
8427         (insert_expr_in_table): Set new max_distance field.
8428         (hash_scan_set): Update.
8429         (hoist_expr_reaches_here_p): Stop search after max_distance
8430         instructions.
8431         (find_occr_in_bb): New static function.  Use it in ...
8432         (hoist_code): Calculate sizes of basic block before any changes are
8433         done.  Pass max_distance to hoist_expr_reaches_here_p.
8434         (one_code_hoisting_pass): Set doing_code_hoisting_p.
8435
8436         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
8437         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
8438         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
8439         macros.
8440         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
8441         Document.
8442
8443 2010-07-27  Jeff Law  <law@redhat.com>
8444             Maxim Kuvyrkov  <maxim@codesourcery.com>
8445
8446         * gcse.c (compute_transpout, transpout): Remove, move logic
8447         to prune_expressions.
8448         (compute_pre_data): Move pruning of trapping expressions ...
8449         (prune_expressions): ... here.  New static function.
8450         (compute_code_hoist_data): Use it.
8451         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8452
8453 2010-07-27  Xinliang David Li  <davidxl@google.com>
8454
8455         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8456         (rewrite_use_address): Adjust iv update position when needed.
8457
8458 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8459
8460         * dbgcnt.def (hoist_insn): New debug counter.
8461         * gcse.c (hoist_code): Use it.
8462
8463 2010-07-27  Xinliang David Li  <davidxl@google.com>
8464
8465         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8466         (niter_for_single_dom_exit): Passes additional parameter.
8467         (iv_period): Fix comments.
8468         (may_eliminate_iv): Handles multiple exit loops properly.
8469         (free_tree_niter_desc): New function.
8470         (free_loop_data): Frees up loop iteration descriptors.
8471
8472 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8473
8474         PR target/44542
8475         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8476         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8477         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8478         (expand_one_var): Don't consider DECL_ALIGN for variables for
8479         which expand_one_stack_var_at has been already called.
8480
8481         PR testsuite/44701
8482         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8483         constraints on IA-64.
8484
8485 2010-07-27  Jie Zhang  <jie@codesourcery.com>
8486
8487         PR target/44290
8488         Revert:
8489         2010-07-23  Jie Zhang  <jie@codesourcery.com>
8490
8491         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8492         false if ! tree_versionable_function_p.
8493
8494 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8495
8496         * dwarf2out.c (add_data_member_location_attribute): Use
8497         add_AT_unsigned instead of add_AT_int if offset is non-negative.
8498
8499 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8500
8501         * postreload.c (try_replace_in_use): New static function.
8502         (reload_combine_recognize_const_pattern): Use it here.  Allow
8503         substituting into a final add insn, and substituting into a memory
8504         reference in an insn that sets the reg.
8505
8506 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8507
8508         * common.opt (o): Add MissingArgError.
8509         * doc/options.texi (MissingArgError): Document.
8510         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8511         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8512         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8513         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8514         * langhooks.h (struct lang_hooks): Remove missing_argument.
8515         * optc-gen.awk: Handle MissingArgError and output new structure
8516         field initializers.
8517         * opts.c (read_cmdline_option): Use missing_argument_error field
8518         instead of missing_argument langhook.
8519         * opts.h (struct cl_option): Add missing_argument_error field.
8520         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8521
8522 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8523
8524         PR target/29090
8525         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8526         Darwin64 ABI, for zero-sized objects.
8527
8528 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8529
8530         PR target/35491
8531         PR target/29090
8532
8533         Merge from Apple local 4.2.1.
8534         2005-05-11  Stan Shebs  <shebs@apple.com>
8535         Fix 64-bit varargs for Darwin (Radar 4028089).
8536         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8537         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8538         Add argument, add case for 8-byte register half-filled with a float.
8539         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8540         single-precision floats specially.
8541
8542 2010-07-27  Ira Rosen  <irar@il.ibm.com>
8543
8544         PR tree-optimization/44152
8545         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8546         complex numbers for further check.
8547         (vect_supported_load_permutation_p): Check nodes with
8548         complex numbers.
8549
8550 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8551
8552         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8553         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8554         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8555         (LANG_HOOKS_INITIALIZER): Add new hooks.
8556         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8557         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8558         and complain_wrong_lang_p.  Update init_options prototype.
8559         * c-objc-common.c (c_initialize_diagnostics): First call
8560         c_common_initialize_diagnostics.
8561         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8562         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8563         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8564         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8565         (hook_uint_void_0): New.
8566         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8567         (hook_uint_void_0): New.
8568         * opts-common.c (decode_cmdline_option,
8569         decode_cmdline_options_to_array): Also fill in canonical_option field.
8570         * opts.c (complain_wrong_lang): Use langhook to determine whether
8571         to complain instead of special-casing LTO.
8572         (decode_options): Separate lang_mask determination with
8573         option_lang_mask hook from call of init_options hook.
8574         * opts.h (struct cl_decoded_option): Add canonical_option.
8575
8576 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8577
8578         PR tree-optimization/45083
8579         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8580
8581 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8582
8583         * postreload.c (reload_combine_recognize_const_pattern): Move test
8584         for limiting the insn movement to the right scope.
8585
8586         PR rtl-optimization/45051
8587         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8588         than reg_mentioned_p.
8589
8590 2010-07-26  Richard Henderson  <rth@redhat.com>
8591
8592         PR target/44132
8593         * tree-emutls.c: New file.
8594         * Makefile.in (OBJS-common): Add it.
8595         * tree-pass.h (pass_ipa_lower_emutls): Declare.
8596         * passes.c (init_optimization_passes): Add it.
8597
8598         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8599         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8600         * expr.c (emutls_var_address): Delete.
8601         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8602         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8603         (emutls_finish): Delete.
8604         * toplev.c (compile_file): Don't call it.
8605         * tree.h (emutls_decl): Delete.
8606         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8607         (emutls_finish, emutls_finalize_control_var): Delete.
8608         (emutls_object_type): Move to tree-emutls.c.
8609         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8610         default_emutls_var_fields, get_emutls_object_type,
8611         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8612         default_emutls_var_init): Likewise.
8613         (get_variable_section): Don't special case emutls.
8614         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8615         default_elf_select_section, default_unique_section,
8616         default_encode_section_info): Likewise.
8617         * varpool.c (decide_is_variable_needed): Likewise.
8618         * gimple-iterator.c (update_call_edge_frequencies): New
8619         (gsi_insert_on_edge_immediate): Use it.
8620         (gsi_insert_seq_on_edge_immediate): Likewise.
8621         (gsi_commit_one_edge_insert): Likewise.
8622
8623         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8624         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8625         (x86_64_elf_unique_section): Likewise.
8626
8627 2010-07-26  Jan Hubicka  <jh@suse.cz>
8628
8629         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8630         GTY((skip)).
8631
8632 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
8633
8634         * target.def (output_source_filename): New hook.
8635         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8636         * doc/tm.texi: Regenerate.
8637         * toplev.c (output_file_directive) Remove function.
8638         * toplev.h (output_file_directive) Remove.
8639         * output.h (default_asm_output_source_filename,
8640         output_file_directive): Declare.
8641         * varasm.h (default_asm_output_source_filename,
8642         output_file_directive): New functions.
8643
8644         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8645         * config/mips/mips-protos.h (mips_output_filename): Remove.
8646         * config/mips/mips.c (mips_output_filename): Make Static.
8647         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8648
8649 2010-07-26  Richard Guenther  <rguenther@suse.de>
8650
8651         PR tree-optimization/43784
8652         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8653         if the destination is used by the call.
8654
8655 2010-07-26  Richard Guenther  <rguenther@suse.de>
8656
8657         PR middle-end/45073
8658         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8659         SSA updating on being in SSA form.
8660
8661 2010-07-26  Richard Guenther  <rguenther@suse.de>
8662
8663         PR middle-end/45056
8664         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8665
8666 2010-07-26  Richard Guenther  <rguenther@suse.de>
8667
8668         PR tree-optimization/45071
8669         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8670         adjust op->opcode.
8671
8672 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
8673
8674         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8675         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8676         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8677         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8678         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8679         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8680         save_r31, return_r31, save_interrupt, return_interrupt,
8681         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8682         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8683         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8684         new ABI requirements.
8685         (save_r6_r9, L_callt_save_r6_r9): Remove.
8686         * config/v850/predicates.md (even_reg_operand, disp23_operand,
8687         const_float_1_operand const_float_0_operand): New Predicates.
8688         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8689         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8690         * config/v850/t-v850: Update multilibs for new target variants.
8691         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8692         * config/v850/t-v850e: Likewise.
8693         * config/v850/v850.c (v850_issue_rate): New.
8694         (v850_strict_argument_naming): New.
8695         (function_arg): Modify to generate a different ABI.
8696         (print_operand): Update case 'z' to support float modes.
8697         (output_move_single): Modify to generate appropriate and better
8698         assembly.
8699         (v850_float_z_comparison_operator, v850_select_cc_mode,
8700         v850_float_nz_comparison_operator,  v850_gen_float_compare,
8701         v850_gen_compare): New functions to support comparison of float values.
8702         (ep_memory_offset): Add support for V850E2 targets.
8703         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8704         (INTERRUPT_REGPARM_NUM): Remove.
8705         (compute_register_save_size): Add extra case to save/restore long call.
8706         (use_prolog_function): New function to support prologue.
8707         (expand_prologue): Add support for V850E2 targets and modified
8708         as per the current ABI requirements.
8709         (expand_epilogue): Likewise.
8710         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8711         (construct_save_jarl): Likewise.
8712         (construct_dispose_instruction): Update as per the current ABI
8713         requirements.
8714         (construct_prepare_instruction): Likewise.
8715         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8716         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8717         (CPP_SPEC): Updated to support v850e2 targets.
8718         (STRICT_ALIGNMENT): Modified.
8719         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8720         (FIXED_REGISTERS): Likewise.
8721         (CALL_USED_REGISTERS): Likewise.
8722         (CONDITIONAL_REGISTER_USAGE): Updated.
8723         (HARD_REGNO_MODE_OK): Updated.
8724         (reg_class): Updated to add even registers.
8725         (REG_CLASS_NAMES): Likewise.
8726         (REG_CLASS_CONTENTS): Likewise.
8727         (REGNO_REG_CLASS): Updated for CC registers.
8728         (REG_CLASS_FROM_LETTER): Added support for even registers.
8729         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8730         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8731         ARG_POINTER_REGNUM): Updated.
8732         (FUNCTION_ARG_ADVANCE): Define.
8733         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8734         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8735         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8736         (GO_IF_LEGITIMATE_ADDRESS): Updated.
8737         (SELECT_CC_MODE): Define.
8738         (REGISTER_NAMES): Updated to add psw and fcc registers.
8739         (ADDITIONAL_REGISTER_NAMES): Updated.
8740         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8741         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8742         * config/v850/v850.md (define_constants): Define new constants.
8743         (type): Update store,bit1,macc,div,fpu and single attributes.
8744         (cpu): New attribute.
8745         (cc): Add set_z attribute.
8746         (unsign23byte_load, sign23byte_load, unsign23hword_load,
8747         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8748         23word_store): New instructions for 23-bit displacement load and store.
8749         (movqi_internal, movhi_internal): Update the attributes.
8750         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8751         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8752         the attributes.
8753         (v850_tst1): Modified using CC_REGNUM.
8754         (tstsi): Remove.
8755         (cmpsi): Modified as define_expand from define_insn.
8756         (cmpsi_insn, cmpsf, cmpdf): New instructions.
8757         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8758         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8759         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8760         one_cmplsi2): Clobber the CC_REGNUM register.
8761         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8762         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8763         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8764         (setf_insn, set_z_insn, set_nz_insn): New instructions for
8765         v850e2v3 target.
8766         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8767         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8768         targets.
8769         (sasf_1, sasf_2): Remove.
8770         (sasf): New instruction.
8771         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8772         targets. CC_REGNUM register is clobbered and attributes are
8773         updated.
8774         (branch_z_normal, branch_z_invert, branch_nz_normal,
8775         branch_nz_invert): New branch related instructions.
8776         (jump): Updated the attributes.
8777         (switch): Update to support new targets. CC_REGNUM register is
8778         clobbered and attributes are updated.
8779         (call_internal_short, call_internal_long, call_value_internal_short,
8780         call_value_internal_long): Updated the attributes.
8781         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8782         clobbered and attributes are updated.
8783         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8784         Update to support new targets. CC_REGNUM register is clobbered.
8785         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8786         instructions.
8787         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8788         are updated.
8789         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8790         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8791         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8792         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8793         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8794         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8795         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8796         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8797         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8798         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8799         point instructions defined for V850e2v3 target.
8800         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8801         Add support for V850E2 targets and CC_REGNUM register is clobbered.
8802         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8803         support for new targets.
8804         * config/v850/v850-modes.def: New file.
8805         * config/v850/v850.opt(mstrict-align): Remove.
8806         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8807         mv850e2v3): New command line options for V850.
8808         * config.gcc: Update the newly added files.
8809         * doc/invoke.texi: Update the newly added command line options for
8810         V850 target.
8811
8812 2010-07-26  Richard Guenther  <rguenther@suse.de>
8813
8814         PR tree-optimization/45052
8815         * ipa-pure-const.c (check_stmt): Check volatileness.
8816
8817 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8818
8819         PR target/44707
8820         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8821         * config/sparc/sparc.c: Include reload.h.
8822         (legitimize_tls_address): Rename into...
8823         (sparc_legitimize_tls_address): ...this.
8824         (legitimize_pic_address): Rename into...
8825         (sparc_legitimize_pic_address): ...this.
8826         (sparc_expand_move): Adjust to above renaming.
8827         (sparc_tls_referenced_p): Likewise.
8828         (sparc_legitimize_tls_address): Likewise.
8829         (sparc_legitimize_pic_address): Likewise.
8830         (sparc_legitimize_address): Likewise.
8831         (sparc_output_mi_thunk): Likewise.
8832         (sparc_legitimize_reload_address): New global function.  Recognize
8833         (lo_sum (high ...) ...) patterns generated by earlier passes.
8834         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8835
8836 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8837
8838         PR target/44484
8839         * config/sparc/predicates.md (memory_reg_operand): Delete.
8840         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8841         (*sync_compare_and_swap): Encode the address form in the pattern.
8842         (*sync_compare_and_swapdi_v8plus): Likewise.
8843
8844 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8845
8846         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8847         Streamline paragraph on compatibility with the system compiler.
8848
8849 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8850
8851         PR middle-end/45035
8852         * alias.c (true_dependence_1): Fix thinko in merge of old
8853         true_dependence and canon_true_dependence.
8854
8855 2010-07-23  Jan Hubicka  <jh@suse.cz>
8856
8857         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8858         references.
8859
8860 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8861
8862         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8863         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8864         and an unnecessary assignment.
8865         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8866         self-assign warning.
8867         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8868         unnecessary self-init.
8869
8870 2010-07-23  Richard Guenther  <rguenther@suse.de>
8871
8872         PR lto/43071
8873         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8874         for -flto and -fwhopr.
8875
8876 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8877
8878         PR target/41943
8879         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8880         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8881         * config.gcc (user_headers_inc_next_pre): New.
8882         (user_headers_inc_next_post): Likewise.
8883         (*-w64-mingw*): Use for float.h post-fixing, and for
8884         stddef.h/stdarg.h pre-fixing by include_next.
8885         * configure.ac (user_headers_inc_next_post): New.
8886         (user_headers_inc_next_pre): New.
8887         * configure: Regenerated.
8888
8889 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8890
8891         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8892         Set tga_func for Solaris 2/x86 resp. SPARC.
8893         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8894         (LIB_THREAD_LDFLAGS_SPEC): Define.
8895         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8896         * configure: Regenerate.
8897         * config.in: Regenerate.
8898         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8899         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8900         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8901         alternate thread libraries on Solaris 8.
8902         Document TLS patch requirements.
8903         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8904         Document tls.
8905
8906         PR target/18788
8907         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8908         -shared.
8909
8910 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8911
8912         * tree.h (struct tree_base): Add nameless_flag bitfield.
8913         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8914         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8915         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8916         DECL_ARTIFICIAL where needed.
8917         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8918         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8919         has DECL_NAMELESS set.
8920
8921 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8922
8923         PR tree-optimization/44915
8924         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8925         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8926         (analyze_function): Likewise.
8927
8928 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8929
8930         PR tree-optimization/44914
8931         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8932         changed, add purging dead eh edges.
8933         (ipa_sra_modify_function_body): Return true if CFG was changed,
8934         simplify purging dead eh edges.
8935         (modify_function): Return true if CFG was changed.
8936         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8937         was changed.
8938         (ipa_early_sra): Likewise.
8939
8940 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8941
8942         PR target/44290
8943         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8944         if "naked".
8945         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8946         false if ! tree_versionable_function_p.
8947
8948 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8949
8950         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8951         * ipa-pure-const.c (special_builtlin_state): Remove
8952         BUILT_IN_ARGS_INFO case.
8953         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8954         * builtins.c (expand_builtin): Likewise.
8955         (expand_builtin_args_info): Remove.
8956         * doc/tm.texi (__builtin_args_info): Remove.
8957         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8958         * doc/tm.text.in: Likewise.
8959
8960 2010-07-23  Richard Guenther  <rguenther@suse.de>
8961
8962         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8963         (lto_symtab_merge_decls_2): Likewise.
8964         * tree-ssa.c (useless_type_conversion_p): Likewise.
8965         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8966         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8967         (struct type_pair_d): Make same_p an array indexed by mode.
8968         Update comment.
8969         (lookup_type_pair): Update initialization.
8970         (struct sccs): Adjust same_p type.
8971         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8972         Adjust.
8973         (print_gimple_types_stats): Likewise.
8974         * gimple.h (enum gtc_mode): New.
8975         (gimple_types_compatible_p): Adjust prototype.
8976
8977 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8978
8979         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8980         again after processing insn.
8981
8982 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8983
8984         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8985         proper words when !tree_versionable_function_p.
8986
8987 2010-07-23  Richard Guenther  <rguenther@suse.de>
8988
8989         PR tree-optimization/45037
8990         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8991
8992 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8993
8994         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8995         Add MCORE instead.
8996
8997 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8998
8999         PR lto/44992
9000         * lto-opts.c (lto_write_options): Add NULL file_data argument to
9001         lto_get_section_name.
9002         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
9003         * lto-streamer-out.c (produce_asm): Likewise.
9004         (copy_function): Likewise.
9005         (produce_symtab): Likewise.
9006         (produce_asm_for_decls): Likewise.
9007         * lto-streamer.c (lto_get_section_name): Add file_data argument.
9008         Rewrite to add random postfix to LTO sections.
9009         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
9010         (lto_get_section_name): Add file_data argument to prototype.
9011
9012 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9013
9014         * lto-section-in.c (lto_section_name): Synchronize names
9015         with lto_get_section_name.
9016
9017 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9018
9019         * lto-opts.c (lto_read_file_options): Check for missing section.
9020
9021 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9022
9023         * ira.c (check_allocation): Correctly handle the case where an allocno
9024         with two objects was allocated to a single reg.
9025
9026 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
9027
9028         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
9029         (is_widening_mult_p): Likewise.
9030         (convert_to_widen): Use them.
9031         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
9032         well as integer ones.
9033
9034 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
9035
9036         * alias.c (true_dependence_1): New function, merged version of
9037         true_dependence and canon_true_dependence.
9038         (true_dependence): Simplify.
9039         (canon_true_dependence): Simplify.
9040
9041 2010-07-22  Richard Henderson  <rth@redhat.com>
9042
9043         PR target/45027
9044         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
9045         of V4SFmode for the SSE saves; increase stack alignment if needed.
9046         (ix86_gimplify_va_arg): Don't increase stack alignment here.
9047
9048 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
9049
9050         PR bootstrap/45028
9051         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
9052         call cprop_find_used_regs again via note_uses.
9053
9054 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9055
9056         * alias.c (get_alias_set): Fix formatting issues.
9057
9058 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
9059
9060         PR middle-end/44878
9061         * stmt.c (expand_value_return):  Call promote_function_mode with
9062         a for_return argument of 2 when returning by reference.
9063
9064 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
9065
9066         PR debug/45024
9067         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
9068         unit DIE if we can find the scope DIE.
9069
9070 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9071
9072         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
9073         changed.  Initialize OBJECT_SUBWORD.
9074         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
9075         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
9076         all callers changed.
9077         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
9078         (finish_allocno): Likewise.
9079         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
9080         (remove_low_level_allocnos): Likewise.
9081         (update_bad_spill_attribute): Likewise.
9082         (setup_min_max_allocno_live_range_point): Likewise.
9083         (sort_conflict_id_map): Likewise.
9084         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
9085         (ior_hard_reg_conflicts): New function.
9086         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
9087         (compress_conflict_vecs): Iterate over objects, not allocnos.
9088         (ira_add_live_range_to_object): New function.
9089         (object_range_compare_func): Renamed from allocno_range_compare_func.
9090         All callers changed.
9091         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
9092         subobjects, widen the min/max range of the lowest-order object to
9093         potentially include all other such low-order objects.
9094         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
9095         (check_allocation): Likewise.  Use more fine-grained tests for register
9096         conflicts.
9097         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
9098         allocno subobjects.
9099         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
9100         choices about which bits to set in each set.  Don't use
9101         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
9102         using the multiple sets we computed.
9103         (push_allocno_to_stack): Iterate over allocno subobjects.
9104         (all_conflicting_hard_regs_coalesced): New static function.
9105         (setup_allocno_available_regs_num): Use it.
9106         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
9107         subobjects.
9108         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
9109         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9110         by ALLOCNO_NUM_OBJECTS.
9111         (calculate_spill_cost): Likewise.
9112         (color_pass): Express if statement in a more normal way.
9113         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
9114         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
9115         (setup_slot_coalesced_allocno_live_ranges): Likewise.
9116         (allocno_reload_assign): Likewise.
9117         (ira_reassign_pseudos): Likewise.
9118         (fast_allocation): Likewise.
9119         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9120         (print_allocno_conflicts): Likewise.
9121         (ira_build_conflicts): Likewise.
9122         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
9123         callers changed.  Test subword 0 of each allocno for conflicts.
9124         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
9125         callers changed.  Iterate over allocno subobjects.
9126         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
9127         * ira-int.h (struct ira_allocno): New member: num_objects.
9128         Rename object to objects and change it into an array.
9129         (ALLOCNO_OBJECT): Add new argument N.
9130         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
9131         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
9132         (ior_hard_reg_conflicts): Declare.
9133         (ira_add_live_range_to_object): Declare.
9134         (ira_allocno_object_iterator): New.
9135         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
9136         (FOR_EACH_ALLOCNO_OBJECT): New macro.
9137         * ira-lives.c (objects_live): Renamed from allocnos_live; all
9138         uses changed.
9139         (allocnos_processed): New sparseset.
9140         (make_object_born): Renamed from make_allocno_born; take an
9141         ira_object_t argument.  All callers changed.
9142         (make_object_dead): Renamed from make_allocno_dead; take an
9143         ira_object_t argument.  All callers changed.
9144         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
9145         All callers changed.
9146         (mark_pseudo_regno_live): Iterate over allocno subobjects.
9147         (mark_pseudo_regno_dead): Likewise.
9148         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
9149         functions.
9150         (mark_ref_live): Detect subword accesses and call
9151         mark_pseudo_regno_subword_live as appropriate.
9152         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
9153         (process_bb_nodes_live): Deal with object-related updates first; set
9154         and test bits in allocnos_processed to avoid computing allocno
9155         statistics more than once.
9156         (create_start_finish_chains): Iterate over objects, not allocnos.
9157         (print_object_live_ranges): New function.
9158         (print_allocno_live_ranges): Use it.
9159         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
9160         and objects_live.
9161
9162 2010-07-22  Richard Guenther  <rguenther@suse.de>
9163
9164         PR lto/42451
9165         * gimple.c (gtc_next_dfs_num): New global.
9166         (struct sccs): Make value a union, add integer same_p member.
9167         (gtc_visit): New function.
9168         (gimple_types_compatible_p_1): New function, split out from ...
9169         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
9170         (iterative_hash_gimple_type): Adjust for sccs change.
9171
9172 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9173
9174         PR tree-optimization/44891
9175         * tree-sra.c: Include gimple-pretty-print.h.
9176         (replace_uses_with_default_def_ssa_name): Renamed to
9177         get_repl_default_def_ssa_name, return the new SSA name instead of
9178         replacing the old one.
9179         (sra_modify_assign): Dump a message when removing a load, if the LHS
9180         is an SSA_NAME, do not do any propagation, just set the RHS to a
9181         default definition SSA NAME, type convert if necessary.
9182         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
9183
9184 2010-07-22  Richard Guenther  <rguenther@suse.de>
9185
9186         PR tree-optimization/45017
9187         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
9188         TYPE_PRECISION of integral types in addition to size.
9189
9190 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9191
9192         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
9193         when no C library is specified.
9194
9195 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9196
9197         * ipa-prop.h (struct ipa_node_params): Updated comment.
9198         (struct ipa_edge_args): Likewise.
9199         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
9200
9201 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9202
9203         * cgraphunit.c (verify_edge_count_and_frequency): New function.
9204         (verify_cgraph_node): Verify frequencies of indirect edges.
9205         * tree-inline.c (tree_function_versioning): Update frequencies of
9206         indirect edges.
9207
9208 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9209
9210         PR target/43698
9211         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
9212         Set *arm_rev to be predicable.
9213
9214 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
9215
9216         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
9217         (LINK_COMMAND_SPEC_A): New.
9218         (DSYMUTIL): New.
9219         (DSYMUTIL_SPEC): New.
9220         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
9221         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
9222
9223 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
9224
9225         * calls.c (load_register_parameters): Move check for zero
9226         sized items so that only the call to
9227         mem_overlaps_already_clobbered_arg_p () is protected.
9228
9229 2010-07-22  Jan Hubicka  <jh@suse.cz>
9230
9231         * ipa-pure-const.c (varying_state): Break out from ...
9232         (get_function_state): ... here; always return varying_state
9233         when state would be NULL otherwise.
9234         (remove_node_data): Do not free varying state.
9235
9236 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9237
9238         PR bootstrap/44970
9239         PR middle-end/45009
9240         * postreload.c: Include "target.h".
9241         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
9242         into account.
9243         (fixup_debug_insns): Don't copy the rtx.
9244         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
9245         Don't copy when replacing.  Call fixup_debug_insns in the case where
9246         we merged one add with another.
9247         (reload_combine_recognize_pattern): Fail if there aren't any uses.
9248         Try harder to determine whether we're picking a valid index register.
9249         Don't set store_ruid for an insn we're going to scan in the
9250         next iteration.
9251         (reload_combine): Remove unused code.
9252         (reload_combine_note_use): When updating use information for
9253         an old insn, ignore a use that occurs after store_ruid.
9254         * Makefile.in (postreload.o): Update dependencies.
9255
9256         * function.c (record_hard_reg_sets): Restrict the previous change
9257         to cases where the incoming nominal mode is the same as the
9258         incoming promoted mode and everything happens in MODE_INT.
9259
9260 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9261
9262         PR debug/45015
9263         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
9264         ASM_OPERANDS_OUTPUT_IDX.
9265         (adjust_insn): For inline asm with multiple sets ensure first
9266         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
9267         the insn.
9268
9269 2010-07-21  Richard Henderson  <rth@redhat.com>
9270
9271         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
9272         comparison for avoiding xmm register saves.  Emit the xmm register
9273         saves explicitly.
9274         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
9275         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
9276         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
9277         Remove patterns and the associated splitters.
9278
9279 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
9280
9281         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
9282         and imagine parts of a complex, so that they can have the same
9283         base and fall into the same group.
9284
9285 2010-07-21  Richard Guenther  <rguenther@suse.de>
9286
9287         PR lto/45018
9288         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
9289         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
9290         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
9291
9292 2010-07-21  Martin Jambor  <mjambor@suse.cz>
9293
9294         PR tree-optimization/44900
9295         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
9296         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
9297
9298 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
9299
9300         PR middle-end/44738
9301         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
9302
9303 2010-07-21  Richard Guenther  <rguenther@suse.de>
9304
9305         PR middle-end/45013
9306         * tree-ssa.c (useless_type_conversion_p): Dispatch to
9307         gimple_types_compatible_p only when in lto.
9308         * gimple.c (gimple_types_compatible_p): Use canonical types
9309         to speed up comparison.
9310
9311 2010-07-21  Richard Guenther  <rguenther@suse.de>
9312
9313         * tree-flow.h (referenced_var): Move define ...
9314         * tree-flow-inline.h (referenced_var): ... here as an inline
9315         function.  Assert here ...
9316         * tree-dfa.c (referenced_var_lookup): ... instead of here.
9317         * tree-ssa.c (maybe_optimize_var): Check if the variable
9318         is in referenced vars.
9319         (execute_update_addresses_taken): Remove old broken check.
9320         * gimple-pretty-print.c (pp_points_to_solution): Use
9321         referenced_var_lookup.
9322         * tree-into-ssa.c (dump_decl_set): Likewise.
9323
9324 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9325
9326         PR debug/45003
9327         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
9328         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
9329         ZERO_EXTEND here.
9330
9331 2010-07-20  Richard Henderson  <rth@redhat.com>
9332
9333         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
9334
9335 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9336
9337         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
9338         computing the sum of the stack pointer and a large constant.
9339         * config/arm/constraints.md (M): Remove superfluous parentheses.
9340         (Pc): New constraint.
9341
9342 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9343
9344         PR debug/45006
9345         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
9346         operand's type if exp is tcc_unary class tree.
9347
9348 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9349
9350         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
9351         Reverse sense of if_then_else condition.
9352
9353 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9354
9355         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
9356         * config/rs6000/rs6000.c (rs6000_override_options): Set
9357         rs6000_block_move_inline_limit appropriately.
9358         (expand_block_move): Use rs6000_block_move_inline_limit.
9359         * doc/invoke.texi (mblock-move-inline-limit): Document.
9360
9361 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9362
9363         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
9364         FROM and TO.  All callers changed.  Don't look for tracked uses,
9365         just scan the RTL for DEBUG_INSNs and substitute.
9366         (reload_combine_recognize_pattern): Call fixup_debug_insns.
9367         (reload_combine): Ignore DEBUG_INSNs.
9368
9369 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9370
9371         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
9372         depth to 8 from 5.
9373
9374         PR debug/45003
9375         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
9376         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
9377         instead of the result's type.
9378
9379 2010-07-20  Richard Guenther  <rguenther@suse.de>
9380
9381         PR tree-optimization/44977
9382         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
9383         SSA form.
9384
9385 2010-07-20  Richard Guenther  <rguenther@suse.de>
9386
9387         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
9388         (lto_symtab_merge_decls_2): Likewise.
9389         * gimple.h (gimple_types_compatible_p): Declare.
9390         * gimple.c (gimple_queue_type_fixup): Remove.
9391         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
9392         (gimple_compatible_complete_and_incomplete_type_p): New function.
9393         (gimple_types_compatible_p): Adjust.
9394         (gimple_register_type): Remove type fixup code.
9395         (print_gimple_types_stats): Adjust.
9396         (free_gimple_type_tables): Likewise.
9397         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
9398         * tree-ssa.c (useless_type_conversion_p): Likewise.
9399
9400 2010-07-20  Richard Guenther  <rguenther@suse.de>
9401
9402         PR middle-end/44971
9403         PR middle-end/44988
9404         * tree-ssa.c (maybe_optimize_var): New function split out from ...
9405         (execute_update_addresses_taken): ... here.
9406         (non_rewritable_mem_ref_base): Likewise.
9407         (execute_update_addresses_taken): Do not iterate over all referenced
9408         vars but just all local decls and parms.
9409         Properly check call and asm arguments and rewrite call arguments.
9410
9411 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
9412
9413         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
9414         to top level.
9415         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
9416         definitions ...
9417         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
9418         New macro.
9419         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
9420
9421 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9422
9423         * gengtype.c (start_root_entry): New function, split out from
9424         write_root.  Check whether V is null and raise an error if so.
9425         (write_field_root): Check for V being null.  Don't raise an error here;
9426         set V to null instead.
9427         (write_root): Update comment above function.  Use start_root_entry.
9428
9429 2010-07-19  Xinliang David Li  <davidxl@google.com>
9430
9431         PR testsuite/44932
9432         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
9433         def edges.
9434         (find_uninit_use): Add dump.
9435         (is_use_properly_guarded): Ditto.
9436         (warn_uninitialized_phi): Ditto.
9437         (execute_late_warn_uninitialized): Ditto.
9438
9439 2010-07-19  Richard Guenther  <rguenther@suse.de>
9440
9441         PR middle-end/44941
9442         * expr.c (emit_block_move_hints): Move zero size check first.
9443         Move asserts to more useful places.
9444         * calls.c (load_register_parameters): Check for zero size.
9445
9446 2010-07-19  Richard Henderson  <rth@redhat.com>
9447
9448         * tree-optimize.c (execute_all_early_local_passes): New.  Change
9449         cgraph_state here ...
9450         (execute_early_local_optimizations): ... not here.  Remove.
9451         (pass_early_local_passes, pass_all_early_optimizations): Update.
9452
9453 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
9454
9455         * postreload.c (reload_combine_closest_single_use): Ignore the
9456         number of uses for DEBUG_INSNs.
9457         (fixup_debug_insns): New static function.
9458         (reload_combine_recognize_const_pattern): Use it.  Don't let the
9459         main loop be affected by DEBUG_INSNs.
9460         Really disallow moving adds past a jump insn.
9461         (reload_combine_recognize_pattern): Don't update use_ruid here.
9462         (reload_combine_note_use): Do it here.
9463         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9464
9465 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
9466
9467         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9468         of a loop.
9469         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9470
9471 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
9472
9473         * config/i386/darwin.h: Define darwin_emit_branch_islands.
9474         (TARGET_MACHO_BRANCH_ISLANDS): New.
9475         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9476         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9477         default value.
9478         * config/i386/i386.c (output_pic_addr_const): Do not emit
9479         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9480         (x86_output_mi_thunk): Adjust symbol creation.
9481         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9482         Remove out of date comment.
9483         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9484         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9485         (DARWIN_GENERATE_ISLANDS): Ditto.
9486         (output_call):  Do not emit branch islands unless
9487         darwin_emit_branch_islands is set.
9488         * config/darwin.c: Declare darwin_emit_branch_islands.
9489         (machopic_indirect_data_reference): Do not emit unless
9490         darwin_emit_branch_islands is set.
9491         (darwin_override_options): Set darwin_emit_branch_islands
9492         where it is needed.
9493         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9494
9495 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9496
9497         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9498         sse_runtime, sse2_runtime.
9499
9500 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
9501
9502         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9503         low half of a single-register SCmode return value before ORing
9504         it with the high half.
9505         * config/mips/mips16.S (MERGE_GPRf): Likewise.
9506
9507 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9508
9509         PR target/44805
9510         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9511         on all targets.
9512
9513 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
9514
9515         PR target/42235
9516         * postreload.c (reload_cse_move2add): Return bool, true if anything.
9517         changed.  All callers changed.
9518         (move2add_use_add2_insn): Likewise.
9519         (move2add_use_add3_insn): Likewise.
9520         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9521         reload_combine.
9522         (RELOAD_COMBINE_MAX_USES): Bump to 16.
9523         (last_jump_ruid): New static variable.
9524         (struct reg_use): New members CONTAINING_MEM and RUID.
9525         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9526         (reload_combine_split_one_ruid, reload_combine_split_ruids,
9527         reload_combine_purge_insn_uses, reload_combine_closest_single_use
9528         reload_combine_purge_reg_uses_after_ruid,
9529         reload_combine_recognize_const_pattern): New static functions.
9530         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9531         is true for our reg and that we have available index regs.
9532         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
9533         callers changed.  Use them to initialize fields in struct reg_use.
9534         (reload_combine): Initialize last_jump_ruid.  Be careful when to
9535         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
9536         Call reload_combine_recognize_const_pattern.
9537         (reload_combine_note_store): Update REAL_STORE_RUID field.
9538
9539 2010-07-16  Jason Merrill  <jason@redhat.com>
9540
9541         * Makefile.in (opts-common.o): Depend on options.h.
9542
9543 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9544
9545         * tree.c (build_common_builtin_nodes): Use build_function_type_list
9546         instead of build_function_type.
9547         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9548         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9549
9550 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9551
9552         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9553         do all the work.
9554         (rs6000_emit_int_cmove): Use function pointers for insn generation.
9555         Don't force values into registers unnecessarily.
9556         (output_isel): Assert that we're not given conditions we can't handle.
9557         Delete corresponding code.
9558         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9559         scc_comparison_operator constraint.  Permit 0 for the consequent
9560         operand.  Permit any GPR for the alternative operand.
9561         (isel_unsigned_<mode>): Likewise.
9562
9563 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
9564
9565         PR target/44942
9566         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9567         argument to const_tree.
9568         * config/i386/i386.c (function_arg_advance): If padding needs to be
9569         inserted before argument, increment cum->words by number of padding
9570         words as well.
9571         (contains_aligned_value_p): Change argument to const_tree.
9572         (ix86_function_arg_boundary): Change second argument to const_tree.
9573
9574 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
9575
9576         PR target/42235
9577         * function.c (record_hard_reg_sets): New static function.
9578         (assign_parm_setup_reg): If an optab for extending exists and the
9579         generated code clobbbers no hard regs, emit the insn directly and
9580         create a REG_EQUIV note.
9581
9582 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9583
9584         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9585         TREE_CHAIN.
9586         * c-typeck.c (push_init_level): Likewise.
9587         (process_init_element): Likewise.
9588
9589 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
9590
9591         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9592         (integer_three_node): Add.
9593         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9594         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9595         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9596         of call build_int_cst.
9597         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9598         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9599         (find_interesting_uses_address): Ditto.
9600         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9601         * tree-eh.c (lower_eh_constructs_2): Ditto.
9602         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9603         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9604         * expmed.c (expand_divmod): Ditto.
9605         * tree-mudflap.c (mx_register_decls): Ditto.
9606         * varasm.c (array_size_for_constructor): Ditto.
9607         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9608         * c-parser.c (c_parser_postfix_expression): Ditto.
9609
9610 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9611
9612         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9613         New static variables.
9614         (reload_combine_recognize_pattern): New static function, broken out
9615         of reload_combine.
9616         (reload_combine): Use it.  Only initialize first_index_reg and
9617         last_index_reg once.
9618
9619 2010-07-15  Richard Henderson  <rth@redhat.com>
9620
9621         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9622         when done.
9623
9624 2010-07-15  Jan Hubicka  <jh@suse.cz>
9625
9626         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9627         comdats for broken gold.
9628         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9629
9630 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9631
9632         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9633
9634 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9635
9636         * tree.h (DECL_CHAIN): Define.
9637         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9638         * c-decl.c: Likewise.
9639         * c-parser.c: Likewise.
9640         * c-typeck.c: Likewise.
9641         * cfgexpand.c: Likewise.
9642         * cgraph.c: Likewise.
9643         * cgraphunit.c: Likewise.
9644         * combine.c: Likewise.
9645         * config/alpha/alpha.c: Likewise.
9646         * config/arm/arm.c: Likewise.
9647         * config/frv/frv.c: Likewise.
9648         * config/i386/i386.c: Likewise.
9649         * config/i386/winnt-cxx.c: Likewise.
9650         * config/ia64/ia64.c: Likewise.
9651         * config/iq2000/iq2000.c: Likewise.
9652         * config/mep/mep.c: Likewise.
9653         * config/mips/mips.c: Likewise.
9654         * config/pa/som.h: Likewise.
9655         * config/rs6000/rs6000.c: Likewise.
9656         * config/s390/s390.c: Likewise.
9657         * config/sh/sh.c: Likewise.
9658         * config/sh/symbian-cxx.c: Likewise.
9659         * config/sparc/sparc.c: Likewise.
9660         * config/spu/spu.c: Likewise.
9661         * config/stormy16/stormy16.c: Likewise.
9662         * config/vxworks.c: Likewise.
9663         * config/xtensa/xtensa.c: Likewise.
9664         * coverage.c: Likewise.
9665         * dbxout.c: Likewise.
9666         * dwarf2out.c: Likewise.
9667         * emit-rtl.c: Likewise.
9668         * expr.c: Likewise.
9669         * function.c: Likewise.
9670         * gimple-low.c: Likewise.
9671         * gimple-pretty-print.c: Likewise.
9672         * gimplify.c: Likewise.
9673         * integrate.c: Likewise.
9674         * ipa-inline.c: Likewise.
9675         * ipa-prop.c: Likewise.
9676         * ipa-split.c: Likewise.
9677         * ipa-struct-reorg.c: Likewise.
9678         * ipa-type-escape.c: Likewise.
9679         * langhooks.c: Likewise.
9680         * lto-cgraph.c: Likewise.
9681         * omp-low.c: Likewise.
9682         * stor-layout.c: Likewise.
9683         * tree-cfg.c: Likewise.
9684         * tree-complex.c: Likewise.
9685         * tree-dfa.c: Likewise.
9686         * tree-dump.c: Likewise.
9687         * tree-inline.c: Likewise.
9688         * tree-mudflap.c: Likewise.
9689         * tree-nested.c: Likewise.
9690         * tree-object-size.c: Likewise.
9691         * tree-pretty-print.c: Likewise.
9692         * tree-sra.c: Likewise.
9693         * tree-ssa-live.c: Likewise.
9694         * tree-ssa-loop-niter.c: Likewise.
9695         * tree-ssa-math-opts.c: Likewise.
9696         * tree-ssa-reassoc.c: Likewise.
9697         * tree-ssa-sccvn.c: Likewise.
9698         * tree-ssa-structalias.c: Likewise.
9699         * tree-tailcall.c: Likewise.
9700         * tree-vrp.c: Likewise.
9701         * tree.c: Likewise.
9702         * var-tracking.c: Likewise.
9703         * varasm.c: Likewise.
9704
9705 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9706
9707         PR target/44877
9708         * config/spu/spu.c (spu_expand_builtin_1): Allow references
9709         (as well as pointers) as argument to mask_for_load builtins.
9710
9711 2010-07-15  Richard Guenther  <rguenther@suse.de>
9712
9713         PR tree-optimization/44946
9714         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9715         with accessing only padding properly.
9716
9717 2010-07-15  Jan Hubicka  <jh@suse.cz>
9718
9719         * ipa.c (function_and_variable_visibility): Variables marked as used
9720         should not be localized.
9721
9722 2010-07-15  Jan Hubicka  <jh@suse.cz>
9723
9724         * cgraph.c: Include lto-streamer.h
9725         (change_decl_assembler_name): Work when assembler name hash is at place.
9726         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9727         be sure to rename it to avoid name clash.
9728         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9729         Localize hidden symbols only when locally defined.
9730
9731 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
9732
9733         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9734
9735 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
9736             Kevin F. Quinn  <kevquinn@gentoo.org>
9737
9738         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9739         * common.opt: Add -Wtrampolines.
9740         * doc/invoke.texi: Add -Wtrampolines.
9741
9742 2010-07-15  Jie Zhang  <jie@codesourcery.com>
9743
9744         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9745         cortex_a8_issue_ls.
9746
9747 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9748
9749         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9750         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9751
9752 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9753
9754         * config/spu/spu.c (reg_names): Remove prototype.
9755         (call_used_regs): Likewise.
9756
9757 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
9758
9759         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9760         "unused" with attribute "used".
9761         (__JCR_END__): Likewise.
9762         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9763         "used" attribute.
9764         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9765
9766 2010-07-14  Richard Guenther  <rguenther@suse.de>
9767
9768         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9769         (maybe_fixup_decls): Likewise.
9770         (input_gimple_stmt): Do not fixup anything.
9771         * lto-streamer-out.c (output_gimple_stmt): Make sure all
9772         non-automatic variable uses are wrapped inside a MEM_REF.
9773
9774 2010-07-14  Richard Henderson  <rth@redhat.com>
9775
9776         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9777         for functions.
9778         * varasm.c (assemble_variable): Remove early exit for functions;
9779         assert that we're given a variable.
9780
9781 2010-07-14  Jie Zhang  <jie@codesourcery.com>
9782
9783         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9784         cortex_a8_default when neon_type is not none.
9785
9786 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9787
9788         * lower-subreg.c (subreg_context): New static bitmap.
9789         (decompose_multiword_subregs): Allocate and free it.
9790         (find_decomposable_subregs): Set a bit in it for a register that
9791         occurs in a subreg that changes mode but not size.
9792         (can_decompose_p): Test it instead of non_decomposable_context.
9793
9794 2010-07-14  Richard Guenther  <rguenther@suse.de>
9795
9796         PR tree-optimization/44824
9797         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9798         is_gimple_mem_ref_addr.
9799         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9800         non-decl_address_invariant_p addresses.
9801
9802 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9803
9804         * reload.c (find_reloads): Revert code to penalize small register
9805         classes that was brought in with the IRA merge.
9806
9807 2010-07-14  Richard Guenther  <rguenther@suse.de>
9808
9809         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9810         as base of ARRAY_REFs.
9811
9812 2010-07-14  Richard Guenther  <rguenther@suse.de>
9813
9814         PR middle-end/44930
9815         * tree-pretty-print.c (do_niy): Do not print a newline.
9816
9817 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9818
9819         * ira-int.h (struct ira_object): New.
9820         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9821         (struct ira_allocno): Remove members min, max,
9822         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9823         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9824         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9825         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9826         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9827         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9828         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9829         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9830         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9831         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9832         an ira_object_t rather than ira_allocno_t.  All uses changed.
9833         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9834         contains a vector of ira_object_t; all uses changed.
9835         (ira_objects_num): Declare variable.
9836         (ira_create_allocno_object): Declare function.
9837         (ira_conflict_vector_profitable_p): Adjust prototype.
9838         (ira_allocate_conflict_vec): Renamed from
9839         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9840         (ira_allocate_object_conflicts): Renamed from
9841         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9842         (struct ira_object_iterator): New.
9843         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9844         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9845         to conflict_vec_p.  All uses changed.
9846         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9847         Changed to take into account that conflicts are now tracked for
9848         objects.
9849         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9850         Args changed to accept ira_object_t.  All uses changed.
9851         (allocnos_conflict_p): New static function.
9852         (collected_conflict_objects): Renamed from collected_allocno_objects;
9853         now a vector of ira_object_t.  All uses changed.
9854         (build_conflict_bit_table): Changed to take into account that
9855         conflicts are now tracked for objects.
9856         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9857         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9858         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9859         setup_allocno_left_conflicts_size, allocno_reload_assign,
9860         fast_allocation): Likewise.
9861         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9862         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9863         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9864         Likewise.
9865         * ira-build.c (ira_objects_num): New variable.
9866         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9867         contains a vector of ira_object_t; all uses changed.
9868         (ira_object_id_map_vec): Corresponding change.
9869         (object_pool): New static variable.
9870         (initiate_allocnos): Initialize it.
9871         (finish_allocnos): Free it.
9872         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9873         New functions.
9874         (ira_create_allocno): Don't set members that were removed.
9875         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9876         (merge_hard_reg_conflicts): Changed to take into account that
9877         conflicts are now tracked for objects.
9878         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9879         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9880         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9881         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9882         setup_min_max_conflict_allocno_ids, ):  Likewise.
9883         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9884         to ira_object_t; all callers changed.
9885         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9886         to ira_object_t, all callers changed.
9887         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9888         to ira_object_t, all callers changed.
9889         (conflict_check, curr_conflict_check_tick): Renamed from
9890         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9891         changed.
9892         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9893         arg changed to ira_object_t, all callers changed.
9894         (create_cap_allocno): Call ira_create_allocno_object.
9895         (finish_allocno): Free the corresponding object.
9896         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9897         callers changed.  Adjusted for dealing with objects.
9898         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9899         dealing with objects.
9900         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9901
9902         * ira-int.h (struct live_range): Rename allocno member to object
9903         and change type to ira_object_t.
9904         (struct ira_object): New member live_ranges.
9905         (struct ira_allocno): Remove member live_ranges.
9906         (ALLOCNO_LIVE_RANGES): Remove.
9907         (OBJECT_LIVE_RANGES): New macro.
9908         (ira_create_live_range, ira_copy_live_range_list,
9909         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9910         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9911         * ira-build.c (ira_create_object): Initialize live ranges here.
9912         (ira_create_allocno): Not here.
9913         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9914         changed to ira_object_t, all callers changed.
9915         (copy_live_range): Rename from copy_allocno_live_range, all callers
9916         changed.
9917         (ira_copy_live_range_list): Rename from
9918         ira_copy_allocno_live_range_list, all callers changed.
9919         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9920         all callers changed.
9921         (ira_live_ranges_intersect_p): Rename from
9922         ira_allocno_live_ranges_intersect_p, all callers changed.
9923         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9924         callers changed.
9925         (ira_finish_live_range_list): Rename from
9926         ira_finish_allocno_live_range_list, all callers changed.
9927         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9928         last arg changed to ira_object_t, all callers changed.
9929         (finish_allocno): Changed to expect live ranges in the allocno's object.
9930         (move_allocno_live_ranges, copy_allocno_live_ranges,
9931         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9932         ira_flattening, ira_build): Likewise.
9933         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9934         slot_coalesced_allocno_live_ranges_intersect,
9935         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9936         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9937         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9938         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9939         make_allocno_dead, create_start_finish_chains,
9940         remove_some_program_points_and_update_live_ranges,
9941         ira_debug_live_range_list): Likewise.
9942
9943         * ira-int.h (ira_object_conflict_iterator): Rename from
9944         ira_allocno_conflict_iterator.
9945         (ira_object_conflict_iter_init): Rename from
9946         ira_allocno_conflict_iter_init, second arg changed to
9947         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9948         FOR_EACH_ALLOCNO_CONFLICT.
9949         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9950         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9951         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9952         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9953
9954 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9955
9956         PR other/44874
9957         * tree-dump.c (dump_options): Add enumerate_locals entry.
9958         Add TDF_NOID exclusion to all entry.
9959         * tree-dump.h (dump_enumerated_decls): Declare.
9960         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9961         Don't display type uid.
9962         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9963         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9964         * tree-ssa-live.c: Include gimple.h.
9965         (numbered_tree_d): New struct.
9966         (numbered_tree): New typedef.
9967         (DEF_VEC_O (numbered_tree): New.
9968         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9969         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9970         (dump_enumerated_decls): Likewise.
9971         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9972         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9973         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9974         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9975
9976 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9977
9978         * expmed.h (MAX_BITS_PER_WORD): Move to...
9979         * defaults.h (MAX_BITS_PER_WORD): ...here.
9980
9981 2010-07-13  DJ Delorie  <dj@redhat.com>
9982
9983         * config/h8300/h8300.c (h8300_init_once): Default to
9984         -fstrict_volatile_bitfields.
9985
9986         * config/sh/sh.c (sh_override_options): Default to
9987         -fstrict_volatile_bitfields.
9988
9989         * config/rx/rx.c (rx_option_override): New.
9990
9991         * config/m32c/m32c.c (m32c_override_options): Default to
9992         -fstrict_volatile_bitfields.
9993
9994 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9995
9996         * tree.h (build_function_call_expr): Delete.
9997         (build_call_expr_loc_array): New function.
9998         (build_call_expr_loc_vec): New function.
9999         * tree-flow.h (struct omp_region): Change type of ws_args field
10000         to a VEC.
10001         * builtins.c (build_function_call_expr): Delete.
10002         (build_call_expr_loc_array): New function.
10003         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
10004         (build_call_expr): Likewise.
10005         (build_call_expr_loc_vec): New function.
10006         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
10007         build_function_call_expr.
10008         * expr.c (emutls_var_address): Likewise.
10009         * varasm.c (emutls_common_1): Likewise.
10010         * omp-low.c (expand_omp_atomic_mutex): Likewise.
10011         (expand_omp_taskreg): Adjust for new type of region->ws_args.
10012         (get_ws_args_for): Return a VEC instead of a tree.
10013         (expand_parallel_call): Call build_call_expr_loc_vec instead of
10014         build_function_call_expr.
10015         * stor-layout.c (self_referential_size): Likewise.
10016
10017 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10018
10019         PR testsuite/44701
10020         * recog.c (constrain_operands): Allow side-effects in memory
10021         operands if either < or > constraint is used, rather than if
10022         both < and > is used.
10023
10024 2010-07-13  Richard Guenther  <rguenther@suse.de>
10025
10026         PR middle-end/44911
10027         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
10028         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
10029         without name.
10030
10031 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10032
10033         PR target/44761
10034         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
10035         to variable emited.
10036         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
10037         * config/sh/sh.md (symGOT_load): Likewise.
10038         (symDTPOFF2reg): Likewise.
10039         (symTPOFF2reg): Likewise.
10040
10041 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10042
10043         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
10044         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
10045
10046 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10047
10048         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
10049         explanation.
10050         Find ucontext_t * on Solaris 11.
10051         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
10052         Handle new Solaris 11 __sighndlr patterns.
10053
10054 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10055
10056         PR debug/44901
10057         * vec.h (VEC_block_remove): Fix comment.
10058         * tree-ssa-live.c (remove_unused_locals): Don't use
10059         VEC_unordered_remove on local_decls, instead replace a single
10060         vector element in each iteration if at least one element had
10061         to be removed and VEC_truncate at the end.
10062         * omp-low.c (expand_omp_taskreg): Likewise.
10063
10064 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10065
10066         * c-decl.c (finish_function): Fix typo in comment.
10067
10068 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
10069
10070         PR bootstrap/44921
10071         * postreload.c (move2add_use_add3_insn): Silence gcc warning
10072         on min_regno.
10073
10074 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
10075
10076         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
10077         (simplify_stmt_using_ranges): Use it.
10078
10079 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10080
10081         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
10082         member.  Do not mark as GTY(()).
10083         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
10084         (spu_builtin_decls): New static variable.
10085         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
10086         (spu_init_builtins): Likewise.
10087         (spu_builtin_mul_widen_even): Likewise.
10088         (spu_builtin_mul_widen_odd): Likewise.
10089         (spu_builtin_mask_for_load): Likewise.
10090         (spu_builtin_vec_perm): Likewise.
10091         * config/spu/spu-c.c: Include "target.h".
10092         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
10093         of using spu_builtins[].fndecl.
10094
10095 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10096
10097         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
10098         imply -minterlink-mips16.
10099
10100 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10101
10102         * config/mips/mips.h (mips16_globals): Declare.
10103         (SWITCHABLE_TARGET): Define.
10104         * config/mips/mips.c: Include target-globals.h.
10105         (mips16_globals): New variable.
10106         (mips_set_mips16_mode): Use save_target_globals and
10107         restore_target_globals instead of target_reinit.
10108
10109 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10110
10111         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
10112         to say that the function can be called more than once.
10113         * target-globals.c (save_target_globals): Call init_reg_sets.
10114
10115 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10116
10117         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
10118         * bb-reorder.h: New file.
10119         * bb-reorder.c (default_target_bb_reorder): New variable.
10120         (this_target_bb_reorder): New conditional variable.
10121         (uncond_jump_length): Redefine as a macro.
10122         * target-globals.h (this_target_bb_reorder): Declare.
10123         (target_globals): Add a bb_reorder field.
10124         (restore_target_globals): Copy the bb_reorder field to
10125         this_target_bb-reorder.
10126         * target-globals.c: Include bb-reorder.h.
10127         (default_target_globals): Initialize the bb_reorder field.
10128         (save_target_globals): Likewise.
10129
10130 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10131
10132         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
10133         * gcse.h: New file.
10134         * gcse.c: Include gcse.h.
10135         (default_target_gcse): New variable.
10136         (this_target_gcse): New conditional variable.
10137         (can_copy): Redefine as a macro.
10138         (can_copy_init_p): New macro.
10139         (can_copy_p): Remove can_copy_init_p.
10140         * target-globals.h (this_target_gcse): Declare.
10141         (target_globals): Add a gcse field.
10142         (restore_target_globals): Copy the gcse field to this_target_gcse.
10143         * target-globals.c: Include gcse.h.
10144         (default_target_globals): Initialize the gcse field.
10145         (save_target_globals): Likewise.
10146
10147 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10148
10149         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
10150         and x_ira_prohibited_mode_move_regs_initialized_p.
10151         (ira_prohibited_mode_move_regs): Redefine as a macro.
10152         * ira.c (ira_prohibited_mode_move_regs): Delete.
10153         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
10154
10155 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10156
10157         * reload.h (target_reload): Add x_cached_reg_save_code and
10158         x_cached_reg_restore_code.
10159         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
10160         Redefine as macros.
10161
10162 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10163
10164         * Makefile.in (target-globals.o): Depend on builtins.h.
10165         * builtins.h: New file.
10166         * builtins.c: Include builtins.h.
10167         (default_target_builtins): New variable.
10168         (this_target_builtins): New conditional variable.
10169         (apply_args_mode, apply_result_mode): Redefine as macros.
10170         * target-globals.h (this_target_builtins): Declare.
10171         (target_globals): Add a builtins field.
10172         (restore_target_globals): Copy the builtins field to
10173         this_target_builtins.
10174         * target-globals.c: Include builtins.h.
10175         (default_target_globals): Initialize the builtins field.
10176         (save_target_globals): Likewise.
10177
10178 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10179
10180         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
10181         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
10182         from expmed.c.
10183         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
10184         (alg_hash, alg_hash_used_p): New macros.
10185         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
10186         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
10187         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
10188
10189 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10190
10191         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
10192         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
10193         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
10194         (this_op_costs, costs_classes): Redefine as macros.
10195         (record_reg_classes): Don't take op_costs as a parameter.
10196         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
10197         (scan_one_insn): Update call to record_operand_costs.
10198
10199 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10200
10201         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
10202         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
10203         (target_ira_int): New structure.
10204         (default_target_ira_int): Declare.
10205         (this_target_ira_int): Declare as a variable or define as a macro.
10206         (ira_reg_mode_hard_regset, ira_register_move_cost)
10207         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
10208         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
10209         (prohibited_class_mode_regs, ira_important_classes_num)
10210         (ira_important_classes, ira_reg_class_intersect)
10211         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
10212         (ira_reg_class_union): Redefine as macros.
10213         * ira.h (target_ira): New structure.
10214         (default_target_ira): Declare.
10215         (this_target_ira): Declare as a variable or define as a macro.
10216         (ira_available_class_regs, ira_hard_regno_cover_class)
10217         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
10218         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
10219         (ira_class_hard_regs_num): Redefine as macros.
10220         * ira.c (default_target_ira, default_target_ira_int): New variables.
10221         (this_target_ira, this_target_ira_int): New conditional variables.
10222         (ira_reg_mode_hard_regset, ira_memory_move_cost)
10223         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
10224         (ira_class_subset_p): Delete.
10225         (no_unit_alloc_regs): Redefine as a macro.
10226         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
10227         (ira_class_hard_regs_num, ira_class_hard_reg_index)
10228         (ira_available_class_regs): Delete.
10229         (alloc_reg_class_subclasses): Redefine as a macro.
10230         (ira_reg_class_cover_size, ira_reg_class_cover)
10231         (ira_important_classes_num, ira_important_classes)
10232         (ira_important_class_nums, ira_class_translate): Delete.
10233         (cover_class_order): Document the variable's lifetime.
10234         (reorder_important_classes): Don't set ira_important_class_nums.
10235         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
10236         (ira_reg_class_super_classes, ira_reg_class_union)
10237         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
10238         Delete.
10239         (setup_reg_class_nregs): Don't set ira_max_regs.
10240         (prohibited_class_mode_regs): Delete.
10241         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
10242         (target_globals): Add ira and ira_int fields.
10243         (restore_target_globals): Copy the ira field to this_target_ira
10244         and the ira_int field to this_target_ira_int.
10245         * target-globals.c: Include ira-int.h.
10246         (default_target_globals): Initialize the ira and ira_int fields.
10247         (save_target_globals): Likewise.
10248
10249 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10250
10251         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
10252         * cfgloop.h (target_cfgloop): New structure.
10253         (default_target_cfgloop): Declare.
10254         (this_target_cfgloop): Declare as a variable or define as a macro.
10255         (target_avail_regs, target_clobbered_regs, target_res_regs)
10256         (target_reg_cost, target_spill_cost): Redefine as macros.
10257         * cfgloopanal.c (default_target_cfgloop): New variable.
10258         (this_target_cfgloop): New conditional variable.
10259         (target_avail_regs, target_clobbered_regs, target_res_regs)
10260         (target_reg_cost, target_spill_cost): Delete.
10261         * target-globals.h (this_target_cfgloop): Declare.
10262         (target_globals): Add a cfgloop field.
10263         (restore_target_globals): Copy the cfgloop field to
10264         this_target_cfgloop.
10265         * target-globals.c: Include cfgloop.h.
10266         (default_target_globals): Initialize the cfgloop field.
10267         (save_target_globals): Likewise.
10268
10269 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10270
10271         * regs.h (target_regs): Add x_direct_load, x_direct_store and
10272         x_float_extend_from_mem.
10273         (direct_load, direct_store, float_extend_from_mem): New macros.
10274         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
10275
10276 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10277
10278         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
10279         (target-globals.o): Depend on $(LIBFUNCS_H).
10280         * libfuncs.h: Include hashtab.h.
10281         (libfunc_entry): Moved from optabs.c.
10282         (target_libfuncs): New structure.
10283         (default_target_libfuncs): Declare.
10284         (this_target_libfuncs): Declare as a variable or define as a macro.
10285         (libfunc_table): Redefine as a macro.
10286         * optabs.c (default_target_libfuncs): New variable.
10287         (this_target_libfuncs): New conditional variable.
10288         (libfunc_table): Delete.
10289         (libfunc_entry): Moved to optabs.h.
10290         (libfunc_hash): Redefine as a macro.
10291         (hash_libfunc, eq_libfunc): Fix comments.
10292         (init_optabs): Use libfunc_hash to detect cases where the function
10293         has already been called.  Clear the hash table instead of
10294         recreating it.
10295         * target-globals.h (this_target_libfuncs): Declare.
10296         (target_globals): Add a libfuncs field.
10297         (restore_target_globals): Copy the libfuncs field to
10298         this_target_libfuncs.
10299         * target-globals.c: Include libfuncs.h.
10300         (default_target_globals): Initialize the libfuncs field.
10301         (save_target_globals): Likewise.
10302
10303 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10304
10305         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
10306         in all dependency lists.
10307
10308 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10309
10310         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
10311         * optabs.h (target_optabs): New structure.
10312         (default_target_optabs): Declare.
10313         (this_target_optabs): Declare as a variable or define as a macro.
10314         (optab_table, convert_optab_table, direct_optab_table): Redefine
10315         as macros.
10316         * optabs.c (default_target_optabs): New variable.
10317         (this_target_optabs): New conditional variable.
10318         (optab_table, convert_optab_table, direct_optab_table): Delete.
10319         * target-globals.h (this_target_optabs): Declare.
10320         (target_globals): Add a optabs field.
10321         (restore_target_globals): Copy the optabs field to
10322         this_target_optabs.
10323         * target-globals.c: Include expr.h and optabs.h.
10324         (default_target_globals): Initialize the optabs field.
10325         (save_target_globals): Likewise.
10326
10327 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10328
10329         * flags.h (target_flagstate): Add x_flag_excess_precision.
10330         (flag_excess_precision): Redefine as a macro.
10331         * toplev.c (flag_excess_precision): Delete.
10332
10333 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10334
10335         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
10336         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
10337         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
10338         (no_caller_save_reg_set): Redefine as a macro.
10339         * reload.h (target_reload): Add x_caller_save_initialized_p and
10340         x_regno_save_mode.
10341         (caller_save_initialized_p): Redefine as a macro.
10342         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
10343         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
10344         (regno_save_mode): Redefine as a macro.
10345
10346 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10347
10348         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
10349         * expmed.h: New file.
10350         * expmed.c (default_target_costs): New variable.
10351         (this_target_costs): New conditional variable.
10352         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
10353         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
10354         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
10355         * target-globals.h (this_target_expmed): Declare.
10356         (target_globals): Add a expmed field.
10357         (restore_target_globals): Copy the expmed field to
10358         this_target_expmed.
10359         * target-globals.c: Include expmed.h.
10360         (default_target_globals): Initialize the expmed field.
10361         (save_target_globals): Likewise.
10362
10363 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10364
10365         * Makefile.in (target-globals.o): Depend on reload.h.
10366         * reload.h (target_reload): New structure.
10367         (default_target_reload): Declare.
10368         (this_target_reload): Declare as a variable or define as a macro.
10369         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
10370         * reload1.c (default_target_reload): New variable
10371         (this_target_reload): New conditional variable.
10372         (indirect_symref_ok, double_reg_address_ok): Delete.
10373         (spill_indirect_levels): Redefine as a macro.
10374         * target-globals.h (this_target_reload): Declare.
10375         (target_globals): Add a reload field.
10376         (restore_target_globals): Copy the reload field to
10377         this_target_reload.
10378         * target-globals.c: Include hard-reg-set.h.
10379         (default_target_globals): Initialize the reload field.
10380         (save_target_globals): Likewise.
10381
10382 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10383
10384         * rtl.h (target_rtl): Add x_static_reg_base_value.
10385         * alias.c (static_reg_base_value): Redefine as a macro.
10386
10387 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10388
10389         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
10390         (GTFILES): Remove reginfo.c.
10391         * rtl.h (target_rtl): Add x_top_of_stack.
10392         (top_of_stack): New macro.
10393         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
10394         (top_of_stack): Delete.
10395
10396 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10397
10398         * regs.h (target_regs): Add x_hard_regs_of_mode,
10399         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
10400         x_may_move_out_cost and x_last_mode_for_init_move_cost.
10401         (have_regs_of_mode, contains_reg_of_mode, move_cost)
10402         (may_move_in_cost, may_move_out_cost): Redefine as macros.
10403         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
10404         (may_move_in_cost, may_move_out_cost): Delete.
10405         (last_mode_for_init_move_cost): Redefine as a macro.
10406
10407 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10408
10409         * hard-reg-set.h (target_hard_regs): New structure.
10410         (default_target_hard_regs): Declare.
10411         (this_target_hard_regs): Declare as a variable or define as a macro.
10412         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
10413         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
10414         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
10415         (reg_class_size, reg_class_subclasses, reg_class_subunion)
10416         (reg_class_superunion, reg_names): Redefine as macros.
10417         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
10418         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
10419         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
10420         (reg_class_contents, reg_class_size, reg_class_subclasses)
10421         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
10422         (default_target_hard_regs): New variable
10423         (this_target_hard_regs, initial_call_really_used_regs)
10424         (initial_reg_alloc_order): New conditional variables.
10425         (initial_reg_names): New variable.
10426         (init_reg_sets): Assert that initial_call_really_used_regs,
10427         initial_reg_alloc_order and initial_reg_names
10428         are all the same size as their variable counterparts.  Use them to
10429         initialize those counterparts.
10430         * target-globals.h (this_target_hard_regs): Declare.
10431         (target_globals): Add a hard_regs field.
10432         (restore_target_globals): Copy the hard_regs field to
10433         this_target_hard_regs.
10434         * target-globals.c: Include hard-reg-set.h.
10435         (default_target_globals): Initialize the hard_regs field.
10436         (save_target_globals): Likewise.
10437
10438 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10439
10440         * Makefile.in (target-globals.o): Depend on $(RTL_H).
10441         * rtl.h (target_rtl): New structure.
10442         (default_target_rtl): Declare.
10443         (this_target_rtl): Declare as a variable or define as a macro.
10444         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10445         Redefine as macros.
10446         * emit-rtl.c (default_target_rtl): New variable.
10447         (this_target_rtl): New conditional variable.
10448         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10449         (return_address_pointer_rtx): Delete.
10450         (initial_regno_reg_rtx): New macro.
10451         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10452         (init_emit_regs): Likewise.
10453         * target-globals.h (this_target_rtl): Declare.
10454         (target_globals): Add a rtl field.
10455         (restore_target_globals): Copy the rtl field to this_target_rtl.
10456         * target-globals.c: Include rtl.h.
10457         (default_target_globals): Initialize the rtl field.
10458         (save_target_globals): Likewise.
10459
10460 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10461
10462         * Makefile.in (target-globals.o): Depend on $(REGS_H).
10463         * regs.h (target_reg_modes): New structure.
10464         (default_target_reg_modes): Declare.
10465         (this_target_reg_modes): Declare as a variable or define as a macro.
10466         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10467         * reginfo.c (default_target_reg_modes): New variable.
10468         (this_target_reg_modes): New conditional variable.
10469         (hard_regno_nregs, reg_raw_mode): Delete.
10470         * target-globals.h (this_target_regs): Declare.
10471         (target_globals): Add a regs field.
10472         (restore_target_globals): Copy the regs field to this_target_regs.
10473         * target-globals.c: Include regs.h.
10474         (default_target_globals): Initialize the regs field.
10475         (save_target_globals): Likewise.
10476
10477 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10478
10479         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10480         * doc/tm.texi: Regenerate.
10481         * Makefile.in (OBJS-common): Add target-globals.o.
10482         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10483         and target-globals.h.
10484         (target-globals.o): New rule.
10485         (GTFILES): Include $(srcdir)/target-globals.h.
10486         * defaults.h (SWITCHABLE_TARGET): Define.
10487         * gengtype.c (open_base_files): Add target-globals.h to the
10488         list of includes.
10489         * target-globals.h: New file.
10490         * target-globals.c: Likewise.
10491
10492         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10493         * flags.h (target_flag_state): New structure.
10494         (default_target_flag_state): Declare.
10495         (this_target_flag_state): Declare as a variable or define as a macro.
10496         (align_loops_log): Redefine as a macro.
10497         (align_loops_max_skip, align_jumps_log): Likewise.
10498         (align_jumps_max_skip, align_labels_log): Likewise.
10499         (align_labels_max_skip, align_functions_log): Likewise.
10500         * toplev.c (default_target_flag_state): New variable.
10501         (this_target_flag_state): New conditional variable.
10502         (align_loops_log): Delete.
10503         (align_loops_max_skip, align_jumps_log): Likewise.
10504         (align_jumps_max_skip, align_labels_log): Likewise.
10505         (align_labels_max_skip, align_functions_log): Likewise.
10506         * target-globals.h (this_target_flag_state): Declare.
10507         (target_globals): Add a flag_state field.
10508         (restore_target_globals): Copy the flag_state field to
10509         this_target_flag_state.
10510         * target-globals.c: Include flags.h.
10511         (default_target_globals): Initialize the flag_state field.
10512         (save_target_globals): Likewise.
10513
10514 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10515
10516         * postreload.c (reg_symbol_ref[]): New.
10517         (move2add_use_add2_insn): New.
10518         (move2add_use_add3_insn): New.
10519         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10520         (move2add_note_store): Likewise.
10521
10522 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
10523
10524         PR rtl-optimization/44752
10525         * genautomata.c (main): Don't emit an empty file even if there
10526         is no automaton.
10527
10528 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10529
10530         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10531         ix86_solaris_return_in_memory.
10532         * config/i386-protos.h: Reflect this.
10533         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10534         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10535         Move ...
10536         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10537
10538 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10539
10540         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10541         align the stack when it's going to be saved.
10542
10543 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10544
10545         PR pch/14940
10546         * config/host-solaris.c (mmap_fixed): New function.
10547         (sol_gt_pch_get_address): Use it.
10548         (sol_gt_pch_use_address): Likewise.
10549
10550 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10551
10552         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10553         pentiumpro on Solaris 8 and 9/x86.
10554         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10555         Document SSE/SSE2 support.
10556         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10557
10558 2010-07-12  Andi Kleen  <ak@linux.intel.com>
10559
10560         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10561         instead of gcc_assert to print better error message for multiple
10562         prevailing defs.
10563
10564 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
10565
10566         * config/i386/i386.c (ix86_asm_output_function_label): Change format
10567         string placeholder from 0x%x to %#x.
10568         (ix86_code_end): Use putc to output '\n'.
10569         (ix86_print_operand) <case ';'>: Use putc to output ';'.
10570
10571 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
10572
10573         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10574         in directive -export.
10575
10576 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
10577
10578         * reginfo.h (reg_classes_intersect_p): Change arguments type to
10579         reg_class_t.
10580         * rtl.h (reg_classes_intersect_p): Adjust prototype.
10581
10582         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10583         Remove macros.
10584         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10585         rs6000_memory_move_cost): Remove
10586         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10587         TARGET_MEMORY_MOVE_COST): Define.
10588         (rs6000_register_move_cost): Make static. Change arguments type from
10589         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10590         (rs6000_memory_move_cost): Make static. Change arguments type from
10591         'enum reg_class' to reg_class_t.
10592
10593 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
10594
10595         PR middle-end/42505
10596         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10597         lookup code into....
10598         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10599         new functions.
10600         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10601         * cfgloopanal.c (target_clobbered_regs): Define.
10602         (init_set_costs): Initialize target_clobbered_regs.
10603         (estimate_reg_pressure_cost): Add call_p argument.  When true,
10604         adjust the number of available registers to exclude the
10605         call-clobbered registers.
10606         * cfgloop.h (target_clobbered_regs): Declare.
10607         (estimate_reg_pressure_cost): Adjust declaration.
10608         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10609         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10610         (determine_set_costs): Dump target_clobbered_regs.
10611         (loop_body_includes_call): New function.
10612         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10613         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10614         call_p flag through.
10615         (best_gain_for_invariant): Likewise.
10616         (find_invariants_to_move): Likewise.
10617         (move_single_loop_invariants): Likewise, using already-computed
10618         has_call field.
10619
10620 2010-07-10  Richard Guenther  <rguenther@suse.de>
10621             Joern Rennecke  <joern.rennecke@embecosm.com>
10622
10623         PR debug/44832
10624         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10625         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10626         unless they have DECL_IGNORED_P set.
10627
10628 2010-07-10  Richard Guenther  <rguenther@suse.de>
10629
10630         PR lto/44889
10631         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10632         helper function.
10633         (gimple_types_compatible_p): Similar to pointed-to
10634         types allow and merge a mix of complete and incomplete aggregate.
10635         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10636         (iterative_hash_gimple_type): Adjust for that.
10637
10638 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
10639
10640         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10641
10642 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
10643
10644         PR objc/44140
10645         * config/darwin.c (output_objc_section_asm_op): Save and restore
10646         section when outputting ObjC section list.
10647
10648 2010-07-09  Jan Hubicka  <jh@suse.cz>
10649
10650         * lto-streamer-out.c (produce_symtab): Do not write alias
10651         cgraph/varpool nodes.
10652
10653 2010-07-09  Jan Hubicka  <jh@suse.cz>
10654
10655         * tree-inline.c (declare_return_variable): Fix ICE while
10656         inlining DECL_BY_VALUE function not in SSA form
10657
10658 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
10659
10660         PR tree-optimization/44576
10661         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10662         New.  Pull out from is_loop_prefetching_profitable to implement
10663         the trip count to ahead ratio heuristic.
10664         (mem_ref_count_reasonable_p): New.  Pull out from
10665         is_loop_prefetching_profitable to implement the instruction to
10666         memory reference ratio heuristic.  Also consider not reasonable if
10667         the memory reference count is above a threshold (to avoid
10668         explosive compilation time.
10669         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
10670         is_loop_prefetching_profitable to implement the instruction to
10671         prefetch ratio heuristic.
10672         (is_loop_prefetching_profitable): Removed.
10673         (loop_prefetch_arrays): Distribute the cost analysis across the
10674         function to allow early exit of the prefetch analysis.
10675         is_loop_prefetching_profitable is splitted into three functions,
10676         with each one called as early as possible.
10677         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
10678         number of memory references in a loop is considered too many.
10679
10680 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10681
10682         * reload.c (find_reloads): Don't clear badop if we have a winreg
10683         alternative, but not win, and the class only has fixed regs.
10684         * hard-reg-set.h (class_only_fixed_regs): Declare.
10685         * reginfo.c (class_only_fixed_regs): New array.
10686         (init_reg_sets_1): Initialize it.
10687         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10688         discourage alternatives using the stack pointer.
10689
10690         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10691
10692         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10693
10694         * config/arm/arm.md (cbranchqi4): Fix array size.
10695         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10696         calculating length.
10697
10698 2010-07-09  Richard Guenther  <rguenther@suse.de>
10699
10700         * gimple.c (struct type_fixup_s): New struct and VEC type.
10701         (gimple_register_type_fixups): New static global.
10702         (gimple_queue_type_fixup): New function.
10703         (gimple_types_compatible_p): Queue type fixups instead of
10704         applying them here.
10705         (gimple_register_type): Apply queued fixups for the
10706         canonical type.  Empty the type fixup queue.
10707
10708 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10709
10710         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10711         * configure: Regenerate.
10712         * config.in: Ditto.
10713
10714 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10715             Denys Vlasenko  <dvlasenk@redhat.com>
10716             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10717
10718         PR tree-optimization/28632
10719         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10720         (extract_range_from_binary_expr): Further optimize
10721         BIT_AND_EXPR and BIT_IOR_EXPR.
10722
10723 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
10724
10725         * tree-if-conv.c (fold_or_predicates): New.
10726         (add_to_predicate_list): Call it.
10727
10728 2010-07-09  Richard Guenther  <rguenther@suse.de>
10729
10730         PR middle-end/44890
10731         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10732         if base is a pointer.
10733         * tree-cfg.c (verify_expr): Update MEM_REF checking.
10734
10735 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10736
10737         PR target/44877
10738         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10739         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10740         builtin mask for load/store builtins.
10741
10742 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10743
10744         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10745         for "lock addl".
10746         * configure: Regenerate.
10747         * config/i386/i386.c (ix86_print_operand) <case ';'>:
10748         Remove TARGET_MACHO.
10749
10750 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
10751
10752         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10753         default ISA flags.
10754         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10755
10756 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
10757
10758         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10759
10760 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10761
10762         * config/picochip/picochip.md (commsTestPort): Emit more
10763         efficient sequence for tstport instruction.
10764
10765 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10766
10767         * config/i386/i386.c (ix86_veclib_handler): Make static.
10768
10769 2010-07-09  Richard Guenther  <rguenther@suse.de>
10770
10771         PR tree-optimization/44852
10772         * tree-ssa-alias.c: Include toplev.h for exact_log2.
10773         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10774         in MEM_REF.
10775         (indirect_refs_may_alias_p): Likewise.
10776         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10777
10778 2010-07-09  Richard Guenther  <rguenther@suse.de>
10779
10780         PR tree-optimization/44882
10781         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10782         sets do conflict.
10783         (vectorizable_load): Likewise.
10784
10785 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10786
10787         PR target/40657
10788         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10789         All callers changed.
10790         Handle the case when we're called for the epilogue.
10791         (thumb_unexpanded_epilogue): Use it.
10792         (thumb1_expand_epilogue): Likewise.
10793
10794 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10795
10796         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10797         both ranges are range_int_cst_p with non-negative minimum,
10798         try harder to derive smaller range.
10799
10800 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10801
10802         * genrecog.c: Include diagnostic-core.h before toplev.h.
10803         * genoutput.c: Likewise.
10804         * genextract.c: Likewise.
10805         * genautomata.c: Likewise.
10806         * genemit.c: Likewise.
10807         * genpeep.c: Likewise.
10808         * genattrtab.c: Likewise.
10809         * genconditions.c: Likewise.
10810         * genpreds.c: Likewise.
10811
10812 2010-07-08  Andi Kleen  <ak@linux.intel.com>
10813
10814         * lto-section-in.c (lto_section_name): Add missing comma.
10815
10816 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
10817
10818         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10819         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10820         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10821         (ia64_override_options): Rename to...
10822         (ia64_option_override): ... this one. Make static.
10823
10824 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10825
10826         PR middle-end/44843
10827         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10828         pointed-to type of the offset in a MEM_REF to compute the alignment.
10829
10830 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10831
10832         * final.c (final_scan_insn): Replace
10833         TARGET_UNWIND_INFO macro check by unwind_emit
10834         hook NULL check.
10835         * targhooks.c (default_unwind_emit): Removed.
10836         * targhooks.h (default_unwind_emit): Likewise.
10837         * target.def (unwind_emit): Set default value to NULL.
10838
10839         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10840         New prototype.
10841         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10842         for NULL fntype argument and allow 64-bit targets.
10843         (ix86_asm_output_function_label): New function.
10844         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10845         (ix86_handle_fndecl_attribute): Likewise.
10846         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10847         * doc/doc/tm.texi: Regenerated.
10848         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10849         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10850         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10851         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10852         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10853         * config/elfos.h: Likewise.
10854         * config/i386/cygming.h: Likewise.
10855         * config/netbsd-aout.h: Likewise.
10856         * config/openbsd.h: Likewise.
10857         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10858         by ix86_asm_output_function_label function call.
10859         * varasm.c (assemble_start_function): Use
10860         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10861
10862 2010-07-08  Jan Hubicka  <jh@suse.cz>
10863
10864         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10865         New function.
10866         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10867         Declare.
10868         * ipa-cp.c (ipcp_estimate_growth): Use it.
10869         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10870         Likewise.
10871
10872 2010-07-08  Jan Hubicka  <jh@suse.cz>
10873
10874         * tree-inline.c (declare_return_variable): Allocate annotation for new
10875         temporary.
10876
10877 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10878
10879         PR tree-optimization/44710
10880         * tree-if-conv.c (parse_predicate): New.
10881         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10882         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10883
10884 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10885
10886         * common.opt (ftree-loop-if-convert): New flag.
10887         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10888         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10889         when flag_tree_loop_if_convert is set.
10890
10891 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10892
10893         * config/i386/i386.c: Use short syntax for function calls
10894         through function pointers.
10895         * config/i386/i386.md: Ditto.
10896
10897 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10898
10899         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10900
10901 2010-07-08  Richard Guenther  <rguenther@suse.de>
10902
10903         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10904         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10905
10906 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10907
10908         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10909         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10910         (loc_list_from_tree): Likewise.
10911         (output_loc_operands): Handle outputting DW_OP_const[48]u
10912         with loc->dtprel set.
10913         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10914
10915 2010-07-08  Jan Hubicka  <jh@suse.cz>
10916
10917         * ipa.c: Include pointer-set.h
10918         (cgraph_externally_visible_p): New attribute ALIASED;
10919         when in LTO, hidden symbols are local unless they are aliased.
10920         (function_and_variable_visibility): Compute aliased nodes;
10921         handle LTO and hidden symbol on functions and vars.
10922         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10923         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10924
10925 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10926
10927         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10928         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10929         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10930         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10931         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10932         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10933         (ix86_gen_probe_stack_range): Likewise.
10934         (override_options): Set them.
10935         (ix86_target_stack_probe): New function.
10936         (ix86_compute_frame_layout): Force use of push instructions to
10937         save registers if stack checking with probes is enabled.
10938         (get_scratch_register_on_entry): New function.
10939         (release_scratch_register_on_entry): Likewise.
10940         (ix86_adjust_stack_and_probe): Likewise.
10941         (output_adjust_stack_and_probe): Likewise.
10942         (ix86_emit_probe_stack_range): Likewise.
10943         (output_probe_stack_range): Likewise.
10944         (ix86_expand_prologue): Emit stack checking code if static built-in
10945         stack checking is enabled.
10946         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10947         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10948         (output_adjust_stack_and_probe): Likewise.
10949         (output_probe_stack_range): Likewise.
10950         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10951         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10952         TARGET_STACK_PROBE.
10953         (allocate_stack_worker_64): Likewise.
10954         (allocate_stack): Likewise.
10955         (adjust_stack_and_probe): New insn.
10956         (probe_stack_range): Likewise.
10957
10958 2010-07-08  Richard Guenther  <rguenther@suse.de>
10959
10960         PR tree-optimization/44831
10961         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10962         a MEM_REF preserving TBAA info of the original dereference.
10963         Dereference the original pointer if the address is not invariant.
10964         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10965         at least one invariant address that we are going to dereference.
10966
10967 2010-07-08  Richard Guenther  <rguenther@suse.de>
10968
10969         PR tree-optimization/44861
10970         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10971         information when building MEM_REFs.
10972         (vectorizable_load): Likewise.
10973         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10974
10975 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10976
10977         * config/sol2-c.c: Do not include diagnostic-core.h.
10978
10979 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10980
10981         PR bootstrap/44768
10982         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10983         with respect to current_function_decl. Pass decl of the function.
10984         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10985         * ipa-inline.c (compute_inline_parameters): Pass decl to
10986         estimated_stack_frame_size.
10987
10988 2010-07-08  Richard Guenther  <rguenther@suse.de>
10989
10990         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10991         New function.
10992         (valueize_refs): Call it.
10993
10994 2010-07-08  Richard Guenther  <rguenther@suse.de>
10995
10996         PR rtl-optimization/44838
10997         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10998         SSA form do not use pointer equivalence.
10999
11000 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11001
11002         * dwarf2out.c (AT_linkage_name): Delete.
11003         (add_linkage_attr): New function.
11004         (add_linkage_name): Call it to emit the linkage attribute.
11005         (dwarf2out_finish): Likewise.
11006         (move_linkage_attr): Explicitly accept both attribute variants.
11007
11008 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11009
11010         * toplev.h: Do not include diagnostic-core.h.
11011         Include diagnostic-core.h in every file that includes toplev.h.
11012         * c-tree.h: Do not include toplev.h.
11013         * pretty-print.h: Update comment.
11014         * Makefile.in: Update dependencies.
11015         * alias.c: Include diagnostic-core.h in every file that includes
11016         toplev.h.
11017         * attribs.c: Likewise.
11018         * auto-inc-dec.c: Likewise.
11019         * bb-reorder.c: Likewise.
11020         * bt-load.c: Likewise.
11021         * caller-save.c: Likewise.
11022         * calls.c: Likewise.
11023         * cfg.c: Likewise.
11024         * cfganal.c: Likewise.
11025         * cfgbuild.c: Likewise.
11026         * cfgcleanup.c: Likewise.
11027         * cfghooks.c: Likewise.
11028         * cfgloop.c: Likewise.
11029         * combine.c: Likewise.
11030         * config/alpha/alpha.c: Likewise.
11031         * config/arc/arc.c: Likewise.
11032         * config/arm/arm.c: Likewise.
11033         * config/arm/pe.c: Likewise.
11034         * config/avr/avr.c: Likewise.
11035         * config/bfin/bfin.c: Likewise.
11036         * config/cris/cris.c: Likewise.
11037         * config/crx/crx.c: Likewise.
11038         * config/darwin-c.c: Likewise.
11039         * config/darwin.c: Likewise.
11040         * config/fr30/fr30.c: Likewise.
11041         * config/frv/frv.c: Likewise.
11042         * config/h8300/h8300.c: Likewise.
11043         * config/host-darwin.c: Likewise.
11044         * config/i386/i386.c: Likewise.
11045         * config/i386/netware.c: Likewise.
11046         * config/i386/nwld.c: Likewise.
11047         * config/i386/winnt-cxx.c: Likewise.
11048         * config/i386/winnt-stubs.c: Likewise.
11049         * config/i386/winnt.c: Likewise.
11050         * config/ia64/ia64-c.c: Likewise.
11051         * config/ia64/ia64.c: Likewise.
11052         * config/iq2000/iq2000.c: Likewise.
11053         * config/lm32/lm32.c: Likewise.
11054         * config/m32c/m32c-pragma.c: Likewise.
11055         * config/m32c/m32c.c: Likewise.
11056         * config/m32r/m32r.c: Likewise.
11057         * config/m68hc11/m68hc11.c: Likewise.
11058         * config/m68k/m68k.c: Likewise.
11059         * config/mcore/mcore.c: Likewise.
11060         * config/mep/mep-pragma.c: Likewise.
11061         * config/mep/mep.c: Likewise.
11062         * config/mmix/mmix.c: Likewise.
11063         * config/mn10300/mn10300.c: Likewise.
11064         * config/moxie/moxie.c: Likewise.
11065         * config/pa/pa.c: Likewise.
11066         * config/pdp11/pdp11.c: Likewise.
11067         * config/picochip/picochip.c: Likewise.
11068         * config/rs6000/rs6000-c.c: Likewise.
11069         * config/rs6000/rs6000.c: Likewise.
11070         * config/rx/rx.c: Likewise.
11071         * config/s390/s390.c: Likewise.
11072         * config/score/score.c: Likewise.
11073         * config/score/score3.c: Likewise.
11074         * config/score/score7.c: Likewise.
11075         * config/sh/sh.c: Likewise.
11076         * config/sh/symbian-base.c: Likewise.
11077         * config/sh/symbian-c.c: Likewise.
11078         * config/sh/symbian-cxx.c: Likewise.
11079         * config/sol2-c.c: Likewise.
11080         * config/sol2.c: Likewise.
11081         * config/sparc/sparc.c: Likewise.
11082         * config/spu/spu.c: Likewise.
11083         * config/stormy16/stormy16.c: Likewise.
11084         * config/v850/v850-c.c: Likewise.
11085         * config/v850/v850.c: Likewise.
11086         * config/vax/vax.c: Likewise.
11087         * config/vxworks.c: Likewise.
11088         * config/xtensa/xtensa.c: Likewise.
11089         * convert.c: Likewise.
11090         * cse.c: Likewise.
11091         * cselib.c: Likewise.
11092         * dbgcnt.c: Likewise.
11093         * dbxout.c: Likewise.
11094         * ddg.c: Likewise.
11095         * dominance.c: Likewise.
11096         * emit-rtl.c: Likewise.
11097         * explow.c: Likewise.
11098         * expmed.c: Likewise.
11099         * fixed-value.c: Likewise.
11100         * fold-const.c: Likewise.
11101         * fwprop.c: Likewise.
11102         * gcse.c: Likewise.
11103         * ggc-common.c: Likewise.
11104         * ggc-page.c: Likewise.
11105         * ggc-zone.c: Likewise.
11106         * gimple-low.c: Likewise.
11107         * gimplify.c: Likewise.
11108         * graph.c: Likewise.
11109         * haifa-sched.c: Likewise.
11110         * ifcvt.c: Likewise.
11111         * implicit-zee.c: Likewise.
11112         * integrate.c: Likewise.
11113         * ira-build.c: Likewise.
11114         * ira-color.c: Likewise.
11115         * ira-conflicts.c: Likewise.
11116         * ira-costs.c: Likewise.
11117         * ira-lives.c: Likewise.
11118         * ira.c: Likewise.
11119         * lists.c: Likewise.
11120         * loop-doloop.c: Likewise.
11121         * loop-iv.c: Likewise.
11122         * lto-opts.c: Likewise.
11123         * lto-symtab.c: Likewise.
11124         * main.c: Likewise.
11125         * modulo-sched.c: Likewise.
11126         * optabs.c: Likewise.
11127         * params.c: Likewise.
11128         * plugin.c: Likewise.
11129         * postreload-gcse.c: Likewise.
11130         * postreload.c: Likewise.
11131         * predict.c: Likewise.
11132         * profile.c: Likewise.
11133         * real.c: Likewise.
11134         * regcprop.c: Likewise.
11135         * reginfo.c: Likewise.
11136         * regmove.c: Likewise.
11137         * reorg.c: Likewise.
11138         * resource.c: Likewise.
11139         * rtl.c: Likewise.
11140         * rtlanal.c: Likewise.
11141         * sched-deps.c: Likewise.
11142         * sched-ebb.c: Likewise.
11143         * sched-rgn.c: Likewise.
11144         * sdbout.c: Likewise.
11145         * sel-sched-dump.c: Likewise.
11146         * sel-sched-ir.c: Likewise.
11147         * simplify-rtx.c: Likewise.
11148         * stmt.c: Likewise.
11149         * stor-layout.c: Likewise.
11150         * store-motion.c: Likewise.
11151         * targhooks.c: Likewise.
11152         * tree-cfg.c: Likewise.
11153         * tree-cfgcleanup.c: Likewise.
11154         * tree-dump.c: Likewise.
11155         * tree-eh.c: Likewise.
11156         * tree-inline.c: Likewise.
11157         * tree-nomudflap.c: Likewise.
11158         * tree-object-size.c: Likewise.
11159         * tree-optimize.c: Likewise.
11160         * tree-outof-ssa.c: Likewise.
11161         * tree-phinodes.c: Likewise.
11162         * tree-profile.c: Likewise.
11163         * tree-ssa-ccp.c: Likewise.
11164         * tree-ssa-coalesce.c: Likewise.
11165         * tree-ssa-live.c: Likewise.
11166         * tree-ssa-loop-niter.c: Likewise.
11167         * tree-ssa-loop-prefetch.c: Likewise.
11168         * tree-ssa-loop.c: Likewise.
11169         * tree-ssa-structalias.c: Likewise.
11170         * tree-ssa-uninit.c: Likewise.
11171         * tree-ssa.c: Likewise.
11172         * tree-vect-data-refs.c: Likewise.
11173         * tree-vect-loop-manip.c: Likewise.
11174         * tree-vect-loop.c: Likewise.
11175         * tree-vect-patterns.c: Likewise.
11176         * tree-vect-stmts.c: Likewise.
11177         * tree-vrp.c: Likewise.
11178         * varasm.c: Likewise.
11179         * vec.c: Likewise.
11180         * web.c: Likewise.
11181         * xcoffout.c: Likewise.
11182
11183 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
11184
11185         * gengtype.c (write_field_root): New function.
11186         (write_root): Use it.
11187
11188 2010-07-07  Wei Guozhi  <carrot@google.com>
11189
11190         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11191         of lowest bits to lshift/compare): Add a missing line.
11192
11193 2010-07-07  Wei Guozhi  <carrot@google.com>
11194
11195         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11196         of lowest bits to lshift/compare): New.
11197
11198 2010-07-07  Tom Tromey  <tromey@redhat.com>
11199
11200         * doc/tm.texi: Update.
11201         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
11202         Add @hook.
11203         * target.def (want_debug_pub_sections): New hook.
11204         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
11205         * dwarf2out.c (add_pubname_string): Check
11206         targetm.want_debug_pub_sections.
11207         (add_pubname): Likewise.
11208         (add_pubtype): Likewise.
11209
11210 2010-07-07  Jie Zhang  <jie@codesourcery.com>
11211
11212         * genautomata.c (output_automata_list_min_issue_delay_code):
11213         Correctly decompress min_issue_delay.
11214
11215 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11216
11217         PR rtl-optimization/44404
11218         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
11219         possible, use reg_overlap_mentioned_p instead.
11220
11221 2010-07-07  Duncan Sands  <baldrick@free.fr>
11222
11223         PR middle-end/41355
11224         * tree.c (build_function_type_skip_args): Copy the original type using
11225         build_distinct_type_copy rather than copy_node.
11226
11227 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11228
11229         PR target/44850
11230         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
11231         revision 161876.
11232         (ix86_expand_prologue): Likewise.
11233         (ix86_handle_fndecl_attribute): Likewise.
11234         (ix86_asm_declare_function_name): Likewise.
11235         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11236         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11237         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
11238         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
11239         * doc/extend.texi: Likewise.
11240
11241 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11242
11243         PR target/44844
11244         * config/i386/i386.md (rdrand<mode>): Changed to expand to
11245         retry if the carry flag isn't valid.
11246         (rdrand<mode>_1): New.
11247
11248 2010-07-07  Richard Guenther  <rguenther@suse.de>
11249
11250         PR middle-end/44790
11251         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
11252         for expanding the constant offset for MEM_REFs.
11253
11254 2010-07-07  Richard Guenther  <rguenther@suse.de>
11255
11256         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
11257         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
11258         * gimple.h (is_gimple_operand): Remove.
11259         * gimple.c (is_gimple_operand): Likewise.
11260         (walk_gimple_op): Fix wi->val_only setting for calls.
11261         * tree-cfg.c (verify_gimple_call): Fix argument validation.
11262         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
11263         invalid gimple calls.
11264
11265 2010-07-06  Jan Hubicka  <jh@suse.cz>
11266
11267         * lto-cgraph.c (output_cgraph): Add missing declaration.
11268
11269 2010-07-06  Jan Hubicka  <jh@suse.cz>
11270
11271         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
11272         partition.
11273
11274 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
11275
11276         * doc/gimple.texi (GIMPLE_DEBUG): Document.
11277         * doc/rtl.texi (Debug Information): New node.
11278         (NOTE_INSN_VAR_LOCATION): Document.
11279         (debug_insn): Likewise.
11280         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
11281
11282 2010-07-07  Jan Hubicka  <jh@suse.cz>
11283
11284         With parts by Richard Guenther.
11285
11286         PR middle-end/44813
11287         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
11288         for functions passed by reference.
11289         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
11290         in memory when passed by reference.
11291         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
11292         beggining.
11293         * ipa-split.c (split_function): Cleanup way return value is passed;
11294         handle SSA DECL_BY_REFERENCE retvals.
11295         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
11296         DECL_BY_REFERENCE is set.
11297         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
11298         find_what_p_points_to): Handle RESULT_DECL.
11299         * tree-inline.c (declare_return_variable): Get new entry_block argument;
11300         when passing by reference ensure that RESULT_DECL is gimple_val.
11301         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
11302         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
11303
11304 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11305
11306         PR rtl-optimization/44787
11307         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
11308         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
11309
11310 2010-07-06  Jan Hubicka  <jh@suse.cz>
11311
11312         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
11313         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
11314         with body can prevail.
11315         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
11316         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
11317         * cgraph.c (cgraph_get_node_or_alias): New function.
11318         * cgraph.h (cgraph_get_node_or_alias): Declare.
11319
11320 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
11321
11322         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
11323         support.
11324         (ix86_expand_prologue): Likewise.
11325         (ix86_handle_fndecl_attribute): Likewise.
11326         (ix86_asm_declare_function_name): New function for
11327         ASM_DECLARE_FUNCTION_NAME.
11328         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
11329         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
11330         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
11331         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
11332         * doc/extend.texi: Adjust documentation about ms_hook_prologue
11333         attribute.
11334
11335 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11336
11337         * config/i386/i386.md (immediate_operand): New mode attribute.
11338
11339         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
11340         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
11341         using P mode iterator.
11342         (pro_epilogue_adjust_stack_di_2): Rename from
11343         pro_epilogue_adjust_stack_rex64_2.
11344
11345         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
11346
11347 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11348
11349         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
11350         through gen_mov_insv_1 function pointer.
11351         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
11352         gen_truncxf<mode>2 through gen_truncxf function pointer.
11353         (remainder<mode>3): Ditto.
11354         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
11355         (allocate_stack): Call gen_allocate_stack_worker_64 or
11356         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
11357         function pointer.
11358         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
11359         function pointer.
11360
11361 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11362
11363         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
11364         operand constraint instead of <r><i>m.
11365
11366 2010-07-06  Richard Guenther  <rguenther@suse.de>
11367
11368         PR middle-end/44828
11369         * convert.c (convert_to_integer): Watch out for overflowing
11370         MULT_EXPR as well.
11371
11372 2010-07-05  Jan Hubicka  <jh@suse.cz>
11373
11374         * lto-streamer.c (write_symbol_vec): Rename to ...
11375         (write_symbol) ... this one; write only symbol given and when
11376         present in cache. Sanity check that what is defined is present
11377         in cgraph/varpool with body/finalized decl.
11378         (write_symbols_of_kind): Remove.
11379         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
11380         pairs to produce symtab.
11381         (produce_asm_for_decls): Update call of produce_symtab; don't do so
11382         when doing WPA streaming.
11383
11384 2010-07-05  Jan Hubicka  <jh@suse.cz>
11385
11386         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
11387         function is still available to fold into.
11388
11389 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11390
11391         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
11392         * function.h (struct_function): Change type of local_decls field
11393         to a VEC.
11394         (add_local_decl): New function.
11395         (FOR_EACH_LOCAL_DECL): New macro.
11396         * cfgexpand.c (init_vars_expansion): Adjust for new type of
11397         cfun->local_decls.
11398         (estimated_stack_frame_size): Likewise.
11399         (expand_used_vars): Likewise.
11400         * cgraphbuild.c (build_cgraph_edges): Likewise.
11401         * function.c (instantiate_decls_1): Likewise.
11402         * ipa-struct-reorg.c (build_data_structure): Likewise.
11403         * ipa-type-escape.c (analyze_function): Likewise.
11404         * lto-streamer-in.c (input_function): Likewise.
11405         * lto-streamer-out.c (output_function): Likewise.
11406         * tree-ssa-live.c (remove_unused_locals): Likewise.
11407         * tree.c (free_lang_data_in_decl): Likewise.
11408         (find_decls_types_in_node): Likewise.
11409         * omp-low.c (remove_exit_barrier): Likewise.
11410         (expand_omp_taskreg): Likewise.
11411         (list2chain): Rename to...
11412         (vec2chain): ...this.  Adjust.
11413         * cgraphunit.c (assemble_thunk): Call add_local_decl.
11414         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
11415         * gimple-low.c (record_vars_into): Likewise.
11416         * tree-inline.c (remap_decls): Likewise.
11417         (declare_return_variable): Likewise.
11418         (declare_inline_vars): Likewise.
11419         (copy_forbidden): Adjust for new type of cfun->local_decls.
11420         (add_local_variables): New function.
11421         (expand_call_inline): Call it.
11422         (tree_function_versioning): Likewise.
11423
11424 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11425
11426         AVX Programming Reference (June, 2010)
11427         * config/i386/cpuid.h (bit_F16C): New.
11428         (bit_RDRND): Likewise.
11429         (bit_FSGSBASE): Likewise.
11430
11431         * config/i386/i386-builtin-types.def: Add
11432         "DEF_FUNCTION_TYPE (UINT16)", function types for
11433         float16 <-> float conversions and
11434         "DEF_FUNCTION_TYPE (VOID, UINT64)".
11435
11436         * config/i386/i386-c.c (ix86_target_macros_internal): Support
11437         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
11438         OPTION_MASK_ISA_F16C.
11439
11440         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
11441         (OPTION_MASK_ISA_RDRND_SET): Likewise.
11442         (OPTION_MASK_ISA_F16C_SET): Likewise.
11443         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
11444         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11445         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11446         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11447         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11448         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11449         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11450         (override_options): Handle them.
11451         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11452         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11453         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11454         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11455         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11456         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11457         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11458         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11459         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11460         (bdesc_args): Likewise.
11461         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11462         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11463         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11464         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11465         Handle non-memory store.
11466
11467         * config/i386/i386.h (TARGET_FSGSBASE): New.
11468         (TARGET_RDRND): Likewise.
11469         (TARGET_F12C): Likewise.
11470
11471         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11472         (UNSPEC_VCVTPS2PH): Likewise.
11473         (UNSPECV_RDFSBASE): Likewise.
11474         (UNSPECV_RDGSBASE): Likewise.
11475         (UNSPECV_WRFSBASE): Likewise.
11476         (UNSPECV_WRGSBASE): Likewise.
11477         (UNSPECV_RDRAND): Likewise.
11478         (rdfsbase<mode>): Likewise.
11479         (rdgsbase<mode>): Likewise.
11480         (wrfsbase<mode>): Likewise.
11481         (wrgsbase<mode>): Likewise.
11482         (rdrand<mode>): Likewise.
11483
11484         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11485
11486         * config/i386/immintrin.h (_rdrand_u16): New.
11487         (_rdrand_u32): Likewise.
11488         (_readfsbase_u32): Likewise.
11489         (_readfsbase_u64): Likewise.
11490         (_readgsbase_u32): Likewise.
11491         (_readgsbase_u64): Likewise.
11492         (_writefsbase_u32): Likewise.
11493         (_writefsbase_u64): Likewise.
11494         (_writegsbase_u32): Likewise.
11495         (_writegsbase_u64): Likewise.
11496         (_rdrand_u64): Likewise.
11497         (_cvtsh_ss): Likewise.
11498         (_mm_cvtph_ps): Likewise.
11499         (_mm256_cvtph_ps): Likewise.
11500         (_cvtss_sh): Likewise.
11501         (_mm_cvtps_ph): Likewise.
11502         (_mm256_cvtps_ph): Likewise.
11503
11504         * config/i386/sse.md (vcvtph2ps): New.
11505         (*vcvtph2ps_load): Likewise.
11506         (vcvtph2ps256): Likewise.
11507         (vcvtps2ph): Likewise.
11508         (*vcvtps2ph): Likewise.
11509         (*vcvtps2ph_store): Likewise.
11510         (vcvtps2ph256): Likewise.
11511
11512         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11513
11514         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11515
11516 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11517
11518         PR bootstrap/44512
11519         * genenums.c (main): Output include of insn-constants.h
11520         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11521
11522 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
11523
11524         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11525         (override_options): Initialize it.
11526         (ix86_expand_prologue): Use it.
11527
11528 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11529
11530         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11531
11532 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11533
11534         * double-int.h (fit_double_type): Remove declaration.
11535         * double-int.c (fit_double_type): Remove function.
11536         * tree.h (int_fits_type_p): Adjust prototype.
11537         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11538         instead of fit_double_type.
11539         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11540         instead of fit_double_type and build_int_cst_wide.
11541         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11542         instead of fit_double_type and build_int_cst_wide.
11543         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11544         of fit_double_type.
11545
11546 2010-07-05  Jan Hubicka  <jh@suse.cz>
11547
11548         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11549         in_other_partition.
11550         * lto-cgraph.c (referenced_from_other_partition_p,
11551         reachable_from_other_partition_p): Use in_other_partition flags.
11552         (output_node, output_varpool_node): COMDAT nodes always have private
11553         copies and thus are never used from other partition.
11554
11555 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11556
11557         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11558         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11559         * config/ia64/ia64.c Include reload.h.
11560         (ia64_memory_move_cost): New function.
11561         (TARGET_MEMORY_MOVE_COST): Define.
11562         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11563         memory_move_cost.
11564
11565 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11566
11567         PR middle-end/42505
11568         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11569         comments about cost model.
11570         (try_add_cand_for):  Add second strategy for choosing initial set
11571         based on original IVs, controlled by ORIGINALP argument.
11572         (get_initial_solution): Add ORIGINALP argument.
11573         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11574         (find_optimal_iv_set): Try two different strategies for choosing
11575         the IV set, and return the one with lower cost.
11576
11577 2010-07-05  Richard Guenther  <rguenther@suse.de>
11578
11579         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11580
11581 2010-07-05  Richard Guenther  <rguenther@suse.de>
11582
11583         * tree.c (reference_alias_ptr_type): New function.
11584         * tree.h (reference_alias_ptr_type): Declare.
11585         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11586         allow non-TARGET_MEM_REF new refs.
11587         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11588         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11589         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11590         (create_mem_ref): Get alias pointer type.  Adjust calls to
11591         create_mem_ref_raw.
11592         (maybe_fold_tmr): Likewise.
11593         * tree-flow.h (create_mem_ref): Adjust prototype.
11594
11595 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11596
11597         PR c++/44808
11598         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11599         *from_p is VAR_DECL.
11600
11601 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11602
11603         * tree.h (build_call_list): Remove.
11604         * tree.c (build_call_list): Remove.
11605
11606 2010-07-05  Richard Guenther  <rguenther@suse.de>
11607
11608         * double-int.h (double_int_sub): Declare.
11609         * double-int.c (double_int_sub): New function.
11610         * dwarf2out.c (field_byte_offset): Use it.
11611         * fixed-value.c (do_fixed_add): Likewise.
11612         (do_fixed_multiply): Likewise.
11613         (do_fixed_divide): Likewise.
11614         * tree-predcom.c (add_ref_to_chain): Likewise.
11615         (determine_roots_comp): Likewise.
11616         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11617
11618 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11619
11620         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
11621         implementations.
11622
11623 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
11624
11625         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11626         * arm-modes.def (CC_NOTB): Don't define.
11627         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11628         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11629         (LTUGEU): New code_iterator.
11630         (cnb, optab): New corresponding code_attrs.
11631         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
11632         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
11633         using LTUGEU.
11634         (addsi3_carryin_shift_<optab>): Likewise.
11635         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11636         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
11637         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11638         (subsi3_compare): Renamed from subsi3_compare0_c.
11639         Change CC_NOTB to CC.
11640         (arm_subsi3_insn): Allow constants for operand 0.
11641         (compare_scc peephole for eq case): New.
11642         (compare_scc splitters): Change CC_NOTB to CC.
11643
11644 2010-07-05  Richard Guenther  <rguenther@suse.de>
11645
11646         * tree-ssa-loop-im.c (for_each_index): Do not handle
11647         ALIGN_INDIRECT_REF.
11648         (gen_lsm_tmp_name): Likewise.
11649         * tree-dump.c (dequeue_and_dump): Likewise.
11650         * tree-pretty-print.c (dump_generic_node): Likewise.
11651         (op_code_prio): Likewise.
11652         (op_symbol_code): Likewise.
11653         * tree.c (staticp): Likewise.
11654         (build1_stat): Likewise.
11655         * tree.h (INDIRECT_REF_P): Likewise.
11656         * fold-const.c (maybe_lvalue_p): Likewise.
11657         (operand_equal_p): Likewise.
11658         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11659         (ao_ref_init_from_vn_reference): Likewise.
11660         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11661         (find_interesting_uses_address): Likewise.
11662         * dwarf2out.c (loc_list_from_tree): Likewise.
11663         * gimplify.c (gimplify_expr): Likewise.
11664         * tree-eh.c (tree_could_trap_p): Likewise.
11665         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11666         * cfgexpand.c (expand_debug_expr): Likewise.
11667         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11668         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11669         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11670         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11671         * tree-ssa-operands.c (get_expr_operands): Likewise.
11672         * expr.c (safe_from_p): Likewise.
11673         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
11674         * tree-vect-data-refs.c (vect_setup_realignment): Build
11675         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11676         * tree-vect-stmts.c (vectorizable_load): Likewise.
11677         * tree.def (ALIGN_INDIRECT_REF): Remove.
11678
11679 2010-07-05  Richard Guenther  <rguenther@suse.de>
11680
11681         PR tree-optimization/44784
11682         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11683         for inserted stmts.
11684         (find_or_generate_expression): Fix SCCVN insertion check.
11685
11686 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11687
11688         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11689         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11690         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11691         directives.
11692
11693 2010-07-05  Ira Rosen  <irar@il.ibm.com>
11694
11695         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11696         statements that are not vectorized.
11697         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11698         in INSIDE_COST.
11699
11700 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
11701
11702         PR bootstrap/44820
11703         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11704
11705 2010-07-05  Richard Guenther  <rguenther@suse.de>
11706
11707         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11708         RESULT_DECLs properly.
11709
11710 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11711
11712         PR rtl-optimization/44695
11713         * config/i386/i386.md (extract_code): Removed.
11714         (<u>divmodqi4): Likewise.
11715         (divmodqi4): New.
11716         (udivmodqi4): Likewise.
11717         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11718         (udivmodhiqi3): Likewise.
11719
11720 2010-07-04  Jan Hubicka  <jh@suse.cz>
11721
11722         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11723
11724 2010-07-04  Jan Hubicka  <jh@suse.cz>
11725
11726         * cgraphunit.c (init_cgraph): Only initialize dump file if it
11727         is not already initialized.
11728
11729 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11730
11731         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11732         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11733         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11734         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11735         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11736         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11737         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11738         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11739         (sync_new_nand_optab): Redefine as macros.
11740         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11741         Delete.
11742         (direct_optab_index): New enum.
11743         (direct_optab_d): New structure.
11744         (direct_optab): New typedef.
11745         (direct_optab_table): Declare.
11746         (direct_optab_handler, set_direct_optab_handler): New functions.
11747         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11748         (sync_lock_release_optab): New macros.
11749         * optabs.c (direct_optab_table): New variable.
11750         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11751         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11752         cmpstr_optab and cmpstrn_optab.
11753         (emit_conditional_move): Likewise for movcc_optab.
11754         (can_conditionally_move_p): Likewise for movcc_gen_code.
11755         (init_insn_codes): Clear direct_optab_table.
11756         (init_optabs): Don't initialize the new "direct optabs" here.
11757         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11758         vcond_gen_code.
11759         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11760         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11761         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11762         (expand_sync_operation): Likewise other sync_*_optabs.
11763         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
11764         to sync_compare_and_swap_optab.
11765         (expand_sync_lock_test_and_set): Use direct_optab_handler for
11766         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11767         to the names of both.
11768         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11769         cmpstr_optab and cmpstrn_optab.
11770         (expand_builtin_lock_release): Likewise sync_lock_release.
11771         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11772         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11773         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11774         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11775         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11776         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11777         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11778         (sync_lock_test_and_set, sync_lock_release): Delete.
11779         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11780         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11781         * genopinit.c (optabs): Use set_direct_optab_handler for the new
11782         macro optabs.
11783         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11784         the "optab" local variable.  Use direct_optab_handler for optab and
11785         sync_compare_and_swap_optab.
11786         * reload1.c (reload_in_optab, reload_out_optab): Delete.
11787         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11788         reload_in_optab and reload_out_optab.
11789         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11790         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11791         * config/pa/pa.c (pa_secondary_reload): Likewise.
11792         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11793         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11794         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11795         (VMSupportsCS8_builtin): Likewise.
11796
11797 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11798
11799         * optabs.h (optab_handlers): Change type of insn_code to int.
11800         (optab_handler, set_optab_handler, convert_optab_handler)
11801         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11802         CODE_FOR_nothing".
11803         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11804         (init_insn_codes): Zero both the above arrays.
11805         (init_optabs): Never call init_insn_codes first time around.
11806
11807 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11808
11809         * optabs.h (optab_handler, convert_optab_handler): Turn into
11810         inline functions that return an insn code.
11811         (set_optab_handler, set_convert_optab_handler): New functions.
11812         * builtins.c: Replace optab_handler(X)->insn_code with
11813         optab_handler or set_optab_handler thoughout.  Likewise
11814         convert_optab_handler(X)->insn_code with convert_optab_handler
11815         and set_convert_optab_handler.
11816         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11817         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11818         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11819         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11820         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11821         config/spu/spu.c: Likewise.
11822
11823 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11824
11825         PR target/44531
11826         * config.gcc (sh*-*-*): Use regular expressions instead of
11827         the 'i' modifier for sed substitutions.
11828
11829 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11830
11831         * gimple.c (gimple_body): Comments added.
11832
11833 2010-07-04  Richard Guenther  <rguenther@suse.de>
11834
11835         PR middle-end/44809
11836         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11837         of an INDIRECT_REF.
11838
11839 2010-07-04  Richard Guenther  <rguenther@suse.de>
11840
11841         PR tree-optimization/44479
11842         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11843         extra SSA name copy statements which preserves points-to
11844         information.
11845         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11846         Copy points-to information for all pointers.  Properly handle
11847         MEM_REFs.
11848         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11849         copy statements.
11850         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11851         dependency.
11852
11853 2010-07-04  Richard Guenther  <rguenther@suse.de>
11854
11855         PR middle-end/44785
11856         * tree-inline.c (initialize_inlined_parameters): Do not
11857         re-use pointer-map slot over remap_type call.
11858
11859 2010-07-04  Richard Guenther  <rguenther@suse.de>
11860
11861         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11862
11863 2010-07-04  Richard Guenther  <rguenther@suse.de>
11864
11865         PR tree-optimization/44656
11866         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11867         again after value-replacing in the defintions lhs.
11868
11869 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11870             Revital Eres  <eres@il.ibm.com>
11871
11872         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11873         Document new arguments.
11874         * doc/tm.texi: Regenerate.
11875         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11876         Handle unaligned store.
11877         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11878         * target.def (builtin_vectorization_cost): Add new arguments.
11879         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11880         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11881         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11882         (vect_vfa_segment_size): Fix indentation.
11883         * tree-vectorizer.h (struct _vect_peel_info): New.
11884         (struct _vect_peel_extended_info): New.
11885         (struct _loop_vec_info): Add new field for peeling hash table and a
11886         macro for its access.
11887         (VECT_MAX_COST): Define.
11888         (vect_get_load_cost): Declare.
11889         (vect_get_store_cost, vect_get_known_peeling_cost,
11890         vect_get_single_scalar_iteraion_cost): Likewise.
11891         (vect_supportable_dr_alignment): Add new argument.
11892         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11893         field.
11894         (destroy_loop_vec_info): Free peeling hash table.
11895         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11896         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11897         vect_analyze_slp. Fix indentation.
11898         (vect_get_single_scalar_iteraion_cost): New function.
11899         (vect_get_known_peeling_cost): Likewise.
11900         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11901         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11902         statement. Move outside cost calculation inside unknown peeling case.
11903         Call vect_get_known_peeling_cost for known amount of peeling.
11904         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11905         reference to the print message of forced alignment.
11906         (vect_verify_datarefs_alignment): Update call to
11907         vect_supportable_dr_alignment.
11908         (vect_get_data_access_cost): New function.
11909         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11910         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11911         vect_peeling_hash_choose_best_peeling): Likewise.
11912         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11913         to store all the accesses in the loop and find best possible access to
11914         align using peeling for known alignment case. For unknown alignment
11915         check if stores are preferred or if peeling is worthy.
11916         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11917         (vect_supportable_dr_alignment): Add new argument and check aligned
11918         accesses according to it.
11919         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11920         (cost_for_stmt): Call vect_get_stmt_cost.
11921         (vect_model_simple_cost): Likewise.
11922         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11923         vect_get_store_cost to calculate the cost of the statement.
11924         (vect_get_store_cost): New function.
11925         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11926         vect_get_load_cost to calculate the cost of the statement.
11927         (vect_get_load_cost): New function.
11928         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11929         (vectorizable_load): Likewise.
11930         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11931         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11932         arguments. Handle unaligned store.
11933         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11934         (rs6000_builtin_support_vector_misalignment): Return true for word and
11935         double word alignments for VSX.
11936         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11937         vect_supportable_dr_alignment and builtin_vectorization_cost.
11938
11939 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11940
11941         PR target/44597
11942         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11943         (prefetch_nocc_operand): Likewise.
11944         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11945         (prefetch_20): New insn.
11946         (prefetch_cc): Remove.
11947         (prefetch_nocc): Likewise.
11948
11949 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11950
11951         * expr.c (vector_mode_valid_p): Move to c-common.c.
11952         * expr.h (vector_mode_valid_p): Do not declare here.
11953         * system.h: Poison GCC_EXPR_H in front-ends.
11954         * Makefile.in: Update dependencies.
11955
11956 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11957
11958         PR target/44705
11959         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11960
11961 2010-07-03  Jan Hubicka  <jh@suse.cz>
11962
11963         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11964         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11965         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11966         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11967         Likewise.
11968
11969         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11970         Update timevars.V
11971         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11972         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11973         TV_IPA_LTO_DECL_OUT): New.
11974         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11975
11976 2010-07-03  Jan Hubicka  <jh@suse.cz>
11977
11978         * ipa-inline.c (update_edge_key): Break out from ...
11979         update_callers_keys): ... here;
11980         (update_callee_keys): Update only the edges from caller to callee.
11981         (update_all_calle_keys): Do what update_calle_keys did.
11982         (decide_inlining_of_small_functions): Avoid recomputing of all
11983         callees when badness increase.
11984
11985 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11986
11987         * config/arm/arm.c (arm_attr_length_move_neon): New.
11988         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11989         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11990         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11991         to compute length attribute.
11992
11993 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11994
11995         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11996         as predicate for operand 1 and remove its constraint.
11997         * config/arm/predicates.md (vfp_register_operand): New.
11998         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11999         (*push_fp_multi): Likewise.
12000
12001 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
12002
12003         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
12004
12005 2010-07-03  Jan Hubicka  <jh@suse.cz>
12006
12007         * config/i386/i386.c (override_options): Revert accidental commit.
12008
12009 2010-07-02  Le-Chun Wu  <lcwu@google.com>
12010
12011         PR c++/44128
12012         * doc/invoke.texi: Update documentation of -Wshadow.
12013
12014 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
12015             Julian Brown  <julian@codesourcery.com>
12016             Sandra Loosemore  <sandra@codesourcery.com>
12017
12018         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
12019         comparisons.  Adjust to take both operands.
12020         (arm_select_cc_mode): Handle DImode comparisons.
12021         (arm_gen_compare_reg): Generate a scratch register for DImode
12022         comparisons which require one.  Use xor for Thumb equality checks.
12023         (arm_const_double_by_immediates): New.
12024         (arm_print_operand): Allow 'Q' and 'R' for constants.
12025         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
12026         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
12027         arm_canonicalize_comparison.
12028         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
12029         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
12030         prototype.
12031         (arm_const_double_by_immediates): Declare.
12032         * config/arm/constraints.md (Di): New constraint.
12033         * config/arm/predicates.md (arm_immediate_di_operand)
12034         (arm_di_operand, cmpdi_operand): New.
12035         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
12036         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
12037         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
12038         (cstoredi4): Handle non-Cirrus also.
12039
12040 2010-07-02  Julian Brown  <julian@codesourcery.com>
12041             Sandra Loosemore  <sandra@codesourcery.com>
12042
12043         PR target/43703
12044         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
12045         (smax<mode>3): Disable for NEON float modes when
12046         flag_unsafe_math_optimizations is false.
12047         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
12048         (*mul<mode>3_neon)
12049         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
12050         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
12051         for NEON float modes when flag_unsafe_math_optimizations is false.
12052         (quad_halves_<code>v4sf): Only enable if
12053         flag_unsafe_math_optimizations is true.
12054         * doc/invoke.texi (ARM Options): Add note about floating point
12055         vectorization requiring -funsafe-math-optimizations.
12056
12057 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12058             Julian Brown  <julian@codesourcery.com>
12059
12060         * config/arm/neon.md (UNSPEC_VABA): Delete.
12061         (UNSPEC_VABAL): Delete.
12062         (UNSPEC_VABS): Delete.
12063         (UNSPEC_VMUL_N): Delete.
12064         (adddi3_neon): New.
12065         (subdi3_neon): New.
12066         (mul<mode>3add<mode>_neon): Make the pattern named.
12067         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
12068         (neon_vadd<mode>): Replace with define_expand, and move the remaining
12069         unspec parts...
12070         (neon_vadd<mode>_unspec): ...to this.
12071         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
12072         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
12073         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
12074         (neon_vaba<mode>): Rewrite in terms of vabd.
12075         (neon_vabal<mode>): Rewrite in terms of vabdl.
12076         (neon_vabs<mode>): Rewrite without unspec.
12077         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
12078         (*arm_subdi3): Likewise.
12079         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
12080         No_op attribute to disable assembly output checks.
12081         * config/arm/arm_neon.h: Regenerated.
12082         * doc/arm-neon-intrinsics.texi: Regenerated.
12083
12084 2010-07-02  Jan Hubicka  <jh@suse.cz>
12085
12086         * ipa-split.c (split_function): For aggregate values, set the return
12087         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
12088         *<retval> = fncall.part ().
12089         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
12090
12091 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12092
12093         * config/arm/neon.md (UNSPEC_VAND): Delete.
12094         (UNSPEC_VBIC): Delete.
12095         (UNSPEC_VCLZ): Delete.
12096         (UNSPEC_VCNT): Delete.
12097         (UNSPEC_VEOR): Delete.
12098         (UNSPEC_VORN): Delete.
12099         (UNSPEC_VORR): Delete.
12100         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
12101         core registers too.
12102         (anddi3_neon): Likewise.
12103         (orndi3_neon): Likewise.
12104         (bicdi3_neon): Likewise.
12105         (xordi3_neon): Likewise.
12106         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
12107         rid of unspec and handle unused operand.
12108         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
12109         * config/arm/predicates.md (imm_for_neon_logic_operand):
12110         Require TARGET_NEON.
12111         (imm_for_neon_inv_logic_operand): Likewise.
12112         * config/arm/arm.md (define_split for logical_binary_operator):
12113         Disable for NEON registers.
12114         (anddi3): Add new define_expand, and rename the insn.  Disable
12115         this insn for NEON, where anddi3_neon now applies.
12116         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
12117         (iordi3): As for anddi3.
12118         (xordi3): Likewise.
12119         * config/arm/neon.ml (Vand): Split DImode variants and mark them
12120         as No_op to disable testing for exact instruction match.
12121         (Vorr): Likewise.
12122         (Veor): Likewise.
12123         (Vbic): Likewise.
12124         (Vorn): Likewise.
12125         * config/arm/arm_neon.h: Regenerated.
12126         * doc/arm-neon-intrinsics.texi: Regenerated.
12127
12128 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12129
12130         * expr.h (emit_stack_probe): Declare.
12131         * explow.c (emit_stack_probe): Make global.
12132         (anti_adjust_stack_and_probe): Fix comments.
12133         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12134         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12135         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12136         * config/sparc/sparc.c: Include except.h.
12137         (sparc_emit_probe_stack_range): New function.
12138         (output_probe_stack_range): Likewise.
12139         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
12140         built-in stack checking is enabled.
12141         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
12142         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12143         (probe_stack_range): New insn.
12144
12145 2010-07-02  Richard Guenther  <rguenther@suse.de>
12146
12147         PR target/43958
12148         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
12149         for argument alignment.
12150
12151 2010-07-02  Jan Hubicka  <jh@suse.cz>
12152
12153         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
12154         walk backwards from entry_bb to check only those basic block of header
12155         that might lead to execution of split part.
12156         (consider_split) ... here.
12157         (find_return_bb): Allow assignment in return BB.
12158         (find_retval): New.
12159         (split_function): Fix name of cloned function; take care of updating
12160         return value in return_bb containing move.
12161
12162 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
12163
12164         PR target/44771
12165         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
12166         used variable insn.
12167
12168 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12169
12170         * implicit-zee.c (combine_reaching_defs): Fix long lines.
12171         (is_set_with_extension_DI): Delete.
12172         (struct zero_extend_info): New structure.
12173         (add_removable_zero_extend): New function.
12174         (find_removable_zero_extends): Use note_stores to find SETs.
12175         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
12176
12177 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
12178
12179         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
12180         is_miss_rate_acceptable. Pull total_positions computation
12181         out of the loops.  Early return if miss_positions exceeds
12182         the acceptable threshold.
12183         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
12184         is_miss_rate_acceptable after renaming of compute_miss_rate.
12185
12186 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
12187
12188         PR middle-end/44576
12189         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
12190         of 1000) for miss rate if the address diference is greater than or
12191         equal to the cache line size (the two reference will never hit the
12192         same cache line).
12193
12194 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
12195
12196         PR target/42835
12197         * config/arm/arm-modes.def (CC_NOTB): New mode.
12198         * config/arm/arm.c (get_arm_condition_code): Handle it.
12199         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
12200         * config/arm/arm.md (subsi3_compare0_c): New pattern.
12201         (compare_scc): Now a define_and_split.  Add a number of extra
12202         splitters before it.
12203
12204         PR target/42172
12205         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
12206         and ZERO_EXTEND.
12207         (arm_rtx_costs_1): Likewise.
12208         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
12209         * config/arm/arm.md (is_arch6): New attribute.
12210         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
12211         extendqisi2): Tighten the code somewhat, avoiding invalid
12212         RTL to occur in the expander patterns.
12213         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
12214         (thumb1_zero_extendhisi2_v6): Delete.
12215         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
12216         (thumb1_extendhisi2_v6): Delete.
12217         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
12218         (thumb1_extendqisi2_v6): Delete.
12219         (zero_extendhisi2 for register input splitter): New.
12220         (zero_extendqisi2 for register input splitter): New.
12221         (thumb1_extendhisi2 for register input splitter): New.
12222         (extendhisi2 for register input splitter): New.
12223         (extendqisi2 for register input splitter): New.
12224         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
12225         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
12226         and add support for a register alternative requiring a split.
12227         (thumb1_zero_extendqisi2): Likewise.
12228         (arm_zero_extendqisi2): Likewise.
12229         (arm_extendhisi2): Likewise.
12230         (arm_extendqisi2): Likewise.
12231
12232 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12233
12234         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
12235         instead of an unspec.
12236         (neon_expand_vector_init): Likewise.
12237         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
12238         (UNSPEC_VDUP_LANE): Delete.
12239         (UNSPEC VDUP_N): Delete.
12240         (UNSPEC_VGET_HIGH): Delete.
12241         (UNSPEC_VGET_LANE): Delete.
12242         (UNSPEC_VGET_LOW): Delete.
12243         (UNSPEC_VMVN): Delete.
12244         (UNSPEC_VSET_LANE): Delete.
12245         (V_double_vector_mode): New.
12246         (vec_set<mode>_internal): Make code emitted match that for the
12247         corresponding intrinsics.
12248         (vec_setv2di_internal): Likewise.
12249         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
12250         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
12251         (neon_vset_lane<mode>): Combine double and quad patterns and
12252         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
12253         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
12254         (neon_vdup_n<mode>): Rewrite RTL without unspec.
12255         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
12256         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
12257         with neon_vdup_lanev2di, adjusting the pattern from the latter
12258         to be predicable for consistency.
12259         (neon_vdup_lane<mode>_internal): New.
12260         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
12261         to avoid using an unspec.
12262         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
12263         (neon_vdup_lanev2di): Turn into a define_expand.
12264         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
12265         (neon_vget_high<mode>): Replace with....
12266         (neon_vget_highv16qi): New pattern using canonical RTL.
12267         (neon_vget_highv8hi): Likewise.
12268         (neon_vget_highv4si): Likewise.
12269         (neon_vget_highv4sf): Likewise.
12270         (neon_vget_highv2di): Likewise.
12271         (neon_vget_low<mode>): Replace with....
12272         (neon_vget_lowv16qi): New pattern using canonical RTL.
12273         (neon_vget_lowv8hi): Likewise.
12274         (neon_vget_lowv4si): Likewise.
12275         (neon_vget_lowv4sf): Likewise.
12276         (neon_vget_lowv2di): Likewise.
12277
12278         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
12279         test for this emitting vmov.
12280         (Vset_lane): Likewise.
12281         (Vdup_n): Likewise.
12282         (Vmov_n): Likewise.
12283
12284         * doc/arm-neon-intrinsics.texi: Regenerated.
12285
12286 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12287
12288         * config/arm/neon.md (vec_extractv2di): Correct error in register
12289         numbering to reconcile with neon_vget_lanev2di.
12290
12291 2010-07-02  Richard Guenther  <rguenther@suse.de>
12292
12293         * tree-ssa-structalias.c (pt_solution_set_var): New function.
12294         * tree-ssa-alias.h (pt_solution_set_var): Declare.
12295         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
12296         points-to information.
12297
12298 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
12299
12300         * config/s390/s390.c (override_options): Adopt prefetching
12301         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
12302
12303 2010-07-02  Jan Hubicka  <jh@suse.cz>
12304
12305         * df-problems.c (df_kill_notes): Do not collect dead  notes.
12306         (df_set_note): Just call add_reg_note.
12307         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
12308         df_create_unused_note): Do not deal with lists of old notes.
12309         (df_note_bb_compute): Likewise.
12310
12311 2010-07-02  Richard Guenther  <rguenther@suse.de>
12312
12313         * tree-ssa-structalias.c (find_func_aliases): Handle
12314         pointer alignment via BIT_AND_EXPR.
12315         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
12316
12317 2010-07-02  Richard Guenther  <rguenther@suse.de>
12318
12319         * tree-data-ref.c (initialize_data_dependence_relation): Handle
12320         mismatching number of dimensions properly.
12321
12322 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12323
12324         PR target/44707
12325         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
12326         (lo_sum (high ...) ...) patterns generated by earlier passes.
12327
12328 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12329
12330         * doc/install.texi (Prerequisites): Document Perl requirement on
12331         Solaris 2.
12332         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
12333
12334 2010-07-02  Richard Guenther  <rguenther@suse.de>
12335
12336         PR middle-end/44777
12337         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
12338
12339 2010-07-02  Jan Hubicka  <jh@suse.cz>
12340
12341         PR middle-end/44706
12342         * predict.c (predict_paths_for_bb): Handle case when control dependence
12343         BB has only abnormal edges.
12344
12345 2010-07-02  Richard Guenther  <rguenther@suse.de>
12346
12347         PR tree-optimization/44748
12348         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
12349         the embedded conversion in MEM_REFs.
12350
12351 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
12352
12353         * reload.c: Include toplev.h.
12354         * recog.c:  Likewise.
12355         * Makefile.in: Adjust dependencies.
12356
12357 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
12358
12359         PR debug/44694
12360         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
12361         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
12362
12363 2010-07-01  Richard Guenther  <rguenther@suse.de>
12364
12365         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
12366         types for offsets.
12367
12368 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12369
12370         PR target/44732
12371         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
12372         Fix argument types.
12373
12374 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
12375
12376         PR target/44727
12377         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12378         Make sure operand 0 dies.
12379
12380 2010-07-01  Richard Guenther  <rguenther@suse.de>
12381
12382         PR middle-end/42834
12383         PR middle-end/44468
12384         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
12385         * doc/generic.texi (References to storage): Document MEM_REF.
12386         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
12387         (print_call_name): Likewise.
12388         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
12389         (build_simple_mem_ref_loc): New function.
12390         (mem_ref_offset): Likewise.
12391         * tree.h (build_simple_mem_ref_loc): Declare.
12392         (build_simple_mem_ref): Define.
12393         (mem_ref_offset): Declare.
12394         * fold-const.c: Include tree-flow.h.
12395         (operand_equal_p): Handle MEM_REF.
12396         (build_fold_addr_expr_with_type_loc): Likewise.
12397         (fold_comparison): Likewise.
12398         (fold_unary_loc): Fold
12399         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
12400         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
12401         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
12402         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
12403         (ptr_deref_may_alias_ref_p_1): Likewise.
12404         (ao_ref_base_alias_set): Properly differentiate base object for
12405         offset and TBAA.
12406         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
12407         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
12408         (indirect_refs_may_alias_p): Likewise.
12409         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
12410         chasing code.
12411         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
12412         (call_may_clobber_ref_p_1): Likewise.
12413         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
12414         * expr.c (expand_assignment): Handle MEM_REF.
12415         (store_expr): Handle MEM_REFs from STRING_CSTs.
12416         (store_field): If expanding a MEM_REF of a non-addressable
12417         decl use bitfield operations.
12418         (get_inner_reference): Handle MEM_REF.
12419         (expand_expr_addr_expr_1): Likewise.
12420         (expand_expr_real_1): Likewise.
12421         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
12422         * alias.c (ao_ref_from_mem): Handle MEM_REF.
12423         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
12424         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
12425         (dr_analyze_indices): Likewise.
12426         (dr_analyze_alias): Likewise.
12427         (object_address_invariant_in_loop_p): Likewise.
12428         * gimplify.c (mark_addressable): Handle MEM_REF.
12429         (gimplify_cond_expr): Build MEM_REFs.
12430         (gimplify_modify_expr_to_memcpy): Likewise.
12431         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
12432         (gimple_fold_indirect_ref): Adjust.
12433         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
12434         * tree.def (MEM_REF): New tree code.
12435         * tree-dfa.c: Include toplev.h.
12436         (get_ref_base_and_extent): Handle MEM_REF.
12437         (get_addr_base_and_unit_offset): New function.
12438         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
12439         * gimple-fold.c (may_propagate_address_into_dereference): Handle
12440         MEM_REF.
12441         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
12442         accesses if the array has just one dimension.  Remove always true
12443         parameter.  Do not require type compatibility here.
12444         (maybe_fold_offset_to_component_ref): Remove.
12445         (maybe_fold_stmt_indirect): Remove.
12446         (maybe_fold_reference): Remove INDIRECT_REF handling.
12447         Fold back to non-MEM_REF.
12448         (maybe_fold_offset_to_address): Simplify.  Deal with type
12449         mismatches here.
12450         (maybe_fold_reference): Likewise.
12451         (maybe_fold_stmt_addition): Likewise.  Also handle
12452         &ARRAY + I in addition to &ARRAY[0] + I.
12453         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12454         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12455         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12456         * tree-ssa.c (useless_type_conversion_p): Make most pointer
12457         conversions useless.
12458         (warn_uninitialized_var): Handle MEM_REF.
12459         (maybe_rewrite_mem_ref_base): New function.
12460         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12461         to SSA form.
12462         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12463         INDIRECT_REF handling.
12464         (copy_tree_body_r): Handle MEM_REF.
12465         * gimple.c (is_gimple_addressable): Adjust.
12466         (is_gimple_address): Likewise.
12467         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12468         invariant base are invariant.
12469         (is_gimple_min_lval): Adjust.
12470         (is_gimple_mem_ref_addr): New function.
12471         (get_base_address): Handle MEM_REF.
12472         (count_ptr_derefs): Likewise.
12473         (get_base_loadstore): Likewise.
12474         * gimple.h (is_gimple_mem_ref_addr): Declare.
12475         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12476         * tree-cfg.c (verify_address): New function, split out from ...
12477         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
12478         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
12479         INDIRECT_REFs.
12480         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
12481         INDIRECT_REF.  Allow conversions.
12482         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12483         a register does not change its size.
12484         (verify_types_in_gimple_reference): Verify MEM_REF.
12485         (verify_gimple_assign_single): Disallow INDIRECT_REF.
12486         Handle MEM_REF.
12487         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12488         New.
12489         (mark_address_taken): Handle MEM_REF.
12490         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12491         (get_asm_expr_operands): Pass opf_not_non_addressable.
12492         (get_expr_operands): Handle opf_[not_]non_addressable.
12493         Handle MEM_REF.  Remove INDIRECT_REF handling.
12494         * tree-vrp.c (check_array_ref): Handle MEM_REF.
12495         (search_for_addr_array): Likewise.
12496         (check_array_bounds): Likewise.
12497         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12498         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12499         (ref_always_accessed_p): Likewise.
12500         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
12501         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12502         Handle MEM_REF.
12503         * cgraphbuild.c (mark_load): Properly check for NULL result
12504         from get_base_address.
12505         (mark_store): Likewise.
12506         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12507         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12508         handling for MEM_REF.
12509         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12510         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12511         * builtins.c (stabilize_va_list_loc): Use the function ABI
12512         valist type if we couldn't canonicalize the argument type.
12513         Always dereference with the canonical va-list type.
12514         (maybe_emit_free_warning): Handle MEM_REF.
12515         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12516         memmove to memcpy.
12517         * builtins.c (fold_builtin_memory_op): Use ref-all types
12518         for all memcpy foldings.
12519         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12520         (build_outer_var_ref): Likewise.
12521         (scan_omp_1_op): Likewise.
12522         (lower_rec_input_clauses): Likewise.
12523         (lower_lastprivate_clauses): Likewise.
12524         (lower_reduction_clauses): Likewise.
12525         (lower_copyprivate_clauses): Likewise.
12526         (expand_omp_atomic_pipeline): Likewise.
12527         (expand_omp_atomic_mutex): Likewise.
12528         (create_task_copyfn): Likewise.
12529         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12530         Remove old union trick.  Initialize constant offsets.
12531         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
12532         INDIRECT_REF.  Init base_alias_set properly.
12533         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12534         (vn_reference_fold_indirect): Adjust for MEM_REFs.
12535         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
12536         for ARRAY_REFs.
12537         (may_insert): Remove.
12538         (visit_reference_op_load): Do not test may_insert.
12539         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12540         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12541         a field to store the constant offset this op applies.
12542         (run_scc_vn): Adjust prototype.
12543         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12544         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12545         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
12546         bother about volatile qualifiers on pointers.
12547         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12548         * tree-ssa-loop-ivopts.c
12549         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12550         (strip_offset_1): Likewise.
12551         (find_interesting_uses_address): Replace INDIRECT_REF handling with
12552         MEM_REF handling.
12553         (get_computation_cost_at): Likewise.
12554         * ipa-pure-const.c (check_op): Handle MEM_REF.
12555         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12556         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12557         and constants.
12558         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12559         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12560         (eliminate_local_variables_1): Likewise.
12561         (create_call_for_reduction_1): Likewise.
12562         (create_loads_for_reductions): Likewise.
12563         (create_loads_and_stores_for_name): Likewise.
12564         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12565         (ssa_accessed_in_tree): Handle MEM_REF.
12566         (ssa_accessed_in_assign_rhs): Likewise.
12567         (update_type_size): Likewise.
12568         (analyze_accesses_for_call_stmt): Likewise.
12569         (analyze_accesses_for_assign_stmt): Likewise.
12570         (transform_access_sites): Likewise.
12571         (transform_allocation_sites): Likewise.
12572         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12573         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12574         not handle INDIRECT_REF.
12575         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12576         (cond_store_replacement): Likewise.
12577         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12578         MEM_REF, no not handle INDIRECT_REFs.
12579         (insert_into_preds_of_block): Properly initialize avail.
12580         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
12581         for ARRAY_REFs.  Properly handle reference lookups that
12582         require a bit re-interpretation.
12583         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
12584         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12585         (build_ref_for_offset_1): Remove.
12586         (build_ref_for_offset): Build MEM_REFs.
12587         (gate_intra_sra): Disable for now.
12588         (sra_ipa_modify_expr): Handle MEM_REF.
12589         (ipa_early_sra_gate): Disable for now.
12590         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12591         MEM_REF handling.
12592         (disqualify_base_of_expr): Likewise.
12593         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12594         MEM_REF handling.
12595         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12596         Use mem_ref_offset.  Remove bogus folding.
12597         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12598         (make_fancy_name_1): Add support for MEM_REF.
12599         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12600         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12601         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12602         (compute_complex_ancestor_jump_func): Likewise.
12603         (ipa_analyze_virtual_call_uses): Likewise.
12604         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12605         INDIRECT_REF folding with more generalized MEM_REF folding.
12606         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12607         (forward_propagate_addr_into_variable_array_index): Also handle
12608         &ARRAY + I in addition to &ARRAY[0] + I.
12609         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12610         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12611         creates assignments with overlap.
12612         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12613         (get_frame_field): Likewise.
12614         (get_nonlocal_debug_decl): Likewise.
12615         (convert_nonlocal_reference_op): Likewise.
12616         (struct nesting_info): Add mem_refs pointer-set.
12617         (create_nesting_tree): Allocate it.
12618         (convert_local_reference_op): Insert to be folded mem-refs.
12619         (fold_mem_refs): New function.
12620         (finalize_nesting_tree_1): Perform defered folding of mem-refs
12621         (free_nesting_tree): Free the pointer-set.
12622         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12623         (vectorizable_load): Likewise.
12624         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12625         (propagate_with_phi): Likewise.
12626         * tree-object-size.c (addr_object_size): Handle MEM_REFs
12627         instead of INDIRECT_REFs.
12628         (compute_object_offset): Handle MEM_REF.
12629         (plus_stmt_object_size): Handle MEM_REF.
12630         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12631         for &MEM_REF.
12632         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12633         (symbol_marked_for_renaming): Likewise.
12634         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12635         (fold-const.o): Add $(TREE_FLOW_H).
12636         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12637         (find_func_clobbers): Likewise.
12638         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12639         (decompose_access): Likewise.
12640         (replace_field_acc): Likewise.
12641         (replace_field_access_stmt): Likewise.
12642         (insert_new_var_in_stmt): Likewise.
12643         (get_stmt_accesses): Likewise.
12644         (reorg_structs_drive): Disable.
12645         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12646         (ix86_canonical_va_list_type): Likewise.
12647
12648 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12649
12650         PR other/44566
12651         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12652         * target.def (struct gcc_target): Replace enum reg_class with
12653         reg_class_t in hook argument / return types.
12654         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12655         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12656         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12657         * targhooks.h (default_branch_target_register_class): Likewise.
12658         (default_ira_cover_classes, default_secondary_reload): Likewise.
12659         (default_memory_move_cost, default_register_move_cost): Likewise.
12660         * targhooks.c (default_branch_target_register_class): Likewise.
12661         (default_ira_cover_classes, default_secondary_reload): Likewise.
12662         (default_memory_move_cost, default_register_move_cost): Likewise.
12663         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12664         * bt-load.c (branch_target_load_optimize): Likewise.
12665         * ira.c (setup_cover_and_important_classes): Likewise.
12666         * ira-costs.c (copy_cost): Likewise.
12667         * reload1.c (emit_input_reload_insns): Likewise.
12668         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12669         * config/frv/frv.c (frv_secondary_reload): Likewise.
12670         * config/s390/s390.c (s390_secondary_reload): Likewise.
12671         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12672         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12673         (ix86_register_move_cost): Likewise.
12674         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12675         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12676         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12677         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12678         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12679         (rs6000_ira_cover_classes): Likewise.
12680         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12681         * config/picochip/picochip-protos.h (picochip_secondary_reload):
12682         Likewise.
12683         * config/pa/pa.c (pa_secondary_reload): Likewise.
12684         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12685         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12686         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12687         * doc/tm.texi: Regenerate.
12688
12689 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
12690
12691         PR bootstrrap/44726
12692         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12693         use.
12694         (build_alias_set_optimal_p): Likewise.
12695         (build_base_obj_set_for_drs): Likewise.
12696
12697 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12698
12699         * target.def: Remove comment about licensing problems of function
12700         declarations.
12701
12702         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
12703         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12704         * doc/tm.texi: Regenerate.
12705
12706         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
12707         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12708
12709         * target.def (enum_va_list_p): Use DEFHOOK.
12710         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12711         Rename ptype to ptree.
12712         * doc/tm.texi: Regenerate.
12713
12714         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
12715         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12716         * doc/tm.texi: Regenerate.
12717
12718         * target.def (memory_move_cost): Use DEFHOOK.
12719         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12720         Rename regclass AKA class to rclass.
12721         * doc/tm.texi: Regenerate.
12722
12723         * target.def (pragma_parse): Use DEFHOOK.
12724         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12725         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12726         * doc/tm.texi: Regenerate.
12727
12728         * target.def (pass_by_reference): Use DEFHOOK.
12729         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12730         * doc/tm.texi: Regenerate.
12731
12732         * target.def (resolve_overloaded_builtin): Rename params to arglist.
12733         Use DEFHOOK.
12734         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12735         * doc/tm.texi: Regenerate.
12736
12737         * target.def (return_pops_args): Use DEFHOOK.
12738         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12739         Rename stack-size to size.
12740         * doc/tm.texi: Regenerate.
12741
12742         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
12743         last-sched_cycle to last_clock, cur_cycle to clock.
12744         * doc/tm.texi.in: Use @hook.
12745         * doc/tm.texi: Regenerate.
12746
12747         * target.def (print_operand, print_operand_address): Update comment.
12748         (print_operand_punct_valid_p): Likewise.
12749
12750 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12751
12752         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12753         to rtl.h.
12754         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12755         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12756         * rtl-error.h: New.
12757         * regrename.c: Do not include toplev.h. Include rtl-error.h.
12758         * rtl-error.c: Likewise.
12759         * reload.c: Likewise.
12760         * recog.c:  Likewise.
12761         * sel-sched.c: Likewise.
12762         * function.c: Likewise.
12763         * reg-stack.c: Likewise.
12764         * cfgrtl.c: Likewise.
12765         * reload1.c: Likewise.
12766         * final.c: Include rtl-error.
12767         * Makefile.in: Adjust dependencies.
12768
12769 2010-06-30  Jan Hubicka  <jh@suse.cz>
12770
12771         PR middle-end/PR44706
12772         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12773         to return the value.
12774
12775 2010-06-30  Michael Matz  <matz@suse.de>
12776
12777         PR bootstrap/44699
12778         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12779         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12780         a gimple reg, attach the original VDEF to the last store in the
12781         sequence.
12782
12783 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
12784
12785         PR other/44034
12786         * config/darwin.c (darwin_override_options): Use renamed
12787         targetm.asm_out.emit_unwind_label.
12788
12789 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12790
12791         PR tree-optimization/39799
12792         * tree-inline.c (remap_ssa_name): Initialize variable only if
12793         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12794
12795 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
12796
12797         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12798
12799 2010-06-30  Richard Guenther  <rguenther@suse.de>
12800
12801         PR target/44722
12802         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12803         against oscillation with reverse peephole2.
12804
12805 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12806
12807         PR target/44721
12808         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12809         Fix last commit.
12810
12811 2010-06-30  Nick Clifton  <nickc@redhat.com>
12812
12813         * config/rx/rx-modes.def: New file.
12814         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12815         (CC_REGNUM): Define.
12816         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12817         register.
12818         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12819         (SELECT_CC_MODE): Define.
12820         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
12821         (reg:CC CC_REG) instead of (cc0).
12822         (attr "cc"): Delete.
12823         (cbranchsi4): Do not split compare and branch here. Instead move
12824         it to...
12825         (cbranchsi4_<code>): ... here.  New patterns.
12826         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12827         to emit the compare instruction.
12828         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12829         cc_status flags.
12830         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12831         FIRST_PSEUDO_REGNUM.
12832         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12833         (rx_notice_update_cc): Delete.
12834         (rx_cc_modes_compatible): New function.
12835         (flags_needed_for_conditional): New function.
12836         (flags_from_mode): New function.
12837         (rx_compare_redundant): New function - scans backwards through
12838         insn list to find out if condition flags are already set correctly.
12839         (TARGET_CC_MODES_COMPATIBLE): Define.
12840         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12841
12842         * config/rx/rx.h (BRANCH_COST): Define.
12843         (REGISTER_MOVE_COST): Define.
12844         * config/rx/predicates (rx_source_operand): Allow all constant types.
12845         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12846         (tstsi4): New pattern.
12847         * config/rx/rx.c (rx_memory_move_cost): Define.
12848         (TARGET_MEMORY_MOVE_COST): Define.
12849
12850 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12851
12852         * tree.h (block_may_fallthru): Declare here.
12853         * tree-flow.h (block_may_fallthru): Do not declare here.
12854         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12855         bitmap.h
12856         * Makefile.in (c-typeck.o): Update dependencies.
12857
12858 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12859
12860         PR debug/44694
12861         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12862         * cselib.c (cfa_base_preserved_regno): New static variable.
12863         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12864         of REGNO (cfa_base_preserved_val->locs->loc).
12865         (cselib_preserve_cfa_base_value): Add regno argument, set
12866         cfa_base_preserved_regno to it.
12867         (cselib_invalidate_regno): Allow removal of registers other than
12868         cfa_base_preserved_regno from cfa_base_preserved_val.
12869         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12870         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12871         of MEM addresses, if not on LHS.
12872         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12873         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12874
12875 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12876
12877         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12878         static variables.
12879         (peep2_buf_position): New static function.
12880         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12881         peephole2_optimize): Use it.
12882         (peep2_attempt, peep2_update_life): New static functions, broken out
12883         of peephole2_optimize.
12884         (peep2_fill_buffer): New static function.
12885         (peephole2_optimize): Change the main loop to try to fill the buffer
12886         with the maximum number of insns before matching them against
12887         peepholes.  Use a forward scan.  Remove special case for targets with
12888         conditional execution.
12889         * genrecog.c (change_state): Delete dead code.
12890         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12891         Rewrite so as not to expect the second insn to have had a peephole
12892         applied yet.
12893
12894 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12895
12896         * genhooks.c (emit_findices): Cast field precision to int.
12897         (emit_documentation): Likewise.
12898
12899 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12900
12901         PR tree-optimization/43801
12902         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12903         if old_decl was DECL_ONE_ONLY.
12904
12905         PR debug/44668
12906         * dwarf2out.c (add_accessibility_attribute): New function.
12907         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12908         instead of adding DW_AT_accessibility manually.
12909         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12910         gen_typedef_die): Use it.
12911
12912 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12913
12914         * vmsdbgout.c (full_name): Just output the file name if not native.
12915
12916 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12917
12918         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12919         (funcnam_table): New static table.
12920         (funcnum_table): New static table.
12921         (write_rtnbeg): Write value saved in funcnum_table.
12922         (write_rtnend): Write value saved in funcnum_table.
12923         (vmsdbgout_begin_function): Save current function info in
12924         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12925         (vmsdbgout_finish): Iterate over funcnum_table.
12926
12927 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12928
12929         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12930         (vmsdbgout_type_decl): Declare
12931         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12932         (FUNC_EPILOGUE_LABEL): New macro
12933         (vmsdbgout_begin_epilogue): New function.
12934         (vmsdbgout_type_decl): New function.
12935
12936 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12937
12938         * vmsdbg.h: Update copyright.
12939
12940 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12941
12942         * vmsdbg.h (DST_K_TBG): New DST constant.
12943         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12944         (write_modbeg): Cast module_language to avoid warning.
12945         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12946
12947 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12948
12949         PR other/44034
12950         * target.def, doc/tm.texi.in, genhooks.c: New files.
12951         * target.h: Instead of defining individual hook members,
12952         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12953         include target.def.
12954         * target-def.h: Instead of defining individual hook initializers,
12955         include target-hooks-def.h.
12956         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12957         targetm.live_on_entry -> targetm.extra_live_on_entry
12958         targetm.sched.md_finish ->targetm.sched.finish
12959         targetm.sched.md_init -> targetm.sched.init
12960         targetm.sched.md_init_global -> targetm.sched.init_global
12961         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12962         targetm.asm_out.except_table_label ->
12963           targetm.asm_out.emit_except_table_label
12964         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12965         targetm.target_help -> targetm.help
12966         targetm.vectorize.builtin_support_vector_misalignment ->
12967           targetm.vectorize.support_vector_misalignment
12968         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12969         targetm.file_start_file_directive ->
12970          targetm.asm_file_start_file_directive
12971         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12972         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12973         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12974         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12975           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12976         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12977           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12978         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12979         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12980         * Makefile.in (TARGET_H): Depend on target.def.
12981         (TARGET_DEF_H): Depend on target-hooks-def.h.
12982         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12983         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12984         * doc/tm.texi: Regenerate.
12985
12986         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12987
12988         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12989         (targetm.sched.init): Likewise.
12990
12991 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12992
12993         PR bootstrap/44713
12994         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12995         (function_arg_advance_32): Const-ify TYPE parameter.
12996         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12997         (ix86_function_arg_advance): Change type of NAMED to bool.
12998         (function_arg_32): Const-ify CUM and TYPE parameters.
12999         (function_arg_64): Likewise.  Change type of NAMED to bool.
13000         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
13001         to bool.
13002         (ix86_function_arg): Change type of NAMED to bool.
13003         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
13004         last argument as a bool.
13005
13006 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
13007
13008         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
13009         (OVERRIDE_OPTIONS): Add note of obsolescence.
13010         Replace references with references to TARGET_OPTION_OVERRIDE.
13011         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
13012          the macro).
13013         * targhooks.c (default_target_option_override): New function.
13014         * targhooks.h (default_target_option_override): Declare.
13015         * target.h (struct gcc_target): Add override member to
13016         target_option member.
13017         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
13018         targetm.target_option.override call.
13019         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
13020         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
13021
13022 2010-06-29  Jan Hubicka  <jh@suse.cz>
13023
13024         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
13025
13026 2010-06-29  Jan Hubicka  <jh@suse.cz>
13027
13028         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
13029         unreachable.
13030         (rebuild_frequencies): New function.
13031         * predict.h (rebuild_frequencies): Declare.
13032         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
13033         entry block and edge reaching new_entry.
13034         (tree_function_versioning): When doing partial cloning, rebuild
13035         frequencies when done.
13036         * passes.c (execute_function_todo): Use rebild_frequencies.
13037
13038 2010-06-29  Richard Guenther  <rguenther@suse.de>
13039
13040         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
13041         * tree-flow.h (enum noalias_state): Remove.
13042         (struct var_ann_d): Remove noalias_state member.
13043
13044 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13045
13046         PR target/43902
13047         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
13048         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
13049         (maddhidi4): Likewise.
13050
13051         Revert parts of the change for PR25130.
13052         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13053         MEM_ALIAS_SET.
13054
13055 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13056
13057         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
13058         targetm.calls.function_incoming_arg, and
13059         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
13060         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
13061         * target.h (struct gcc_target): Add function_arg_advance,
13062         function_arg, and function_incoming_arg fields.
13063         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
13064         (TARGET_FUNCTION_INCOMING_ARG): Define.
13065         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
13066         and TARGET_FUNCTION_INCOMING_ARG.
13067         * targhooks.h (default_function_arg_advance): Declare.
13068         (default_function_arg, default_function_incoming_arg): Declare.
13069         * targhooks.c (default_function_arg_advance): New function.
13070         (default_function_arg, default_function_incoming_arg): New function.
13071         * config/i386/i386.c (function_arg_advance): Rename to...
13072         (ix86_function_arg_advance): ...this.  Make static.
13073         (function_arg): Rename to...
13074         (ix86_function_arg): ...this.  Make static.
13075         (TARGET_FUNCTION_ARG_ADVANCE): Define.
13076         (TARGET_FUNCTION_ARG): Define.
13077         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
13078         (FUNCTION_ARG): Delete.
13079         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
13080         (function_arg): Delete prototype.
13081
13082 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13083
13084         * reginfo.c (init_reg_sets_1): Adjust comments.
13085         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
13086         * calls.c (prepare_call_address): Likewise.
13087         (emit_call_1): Use targetm.calls.return_pops_args.
13088         (expand_call): Likewise.
13089         * function.c (assign_parms): Likewise.
13090         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
13091         * target.h (struct gcc_target) [struct calls]: Add
13092         return_pops_args field.
13093         * targhooks.h (default_return_pops_args): Declare.
13094         * targhooks.c (default_return_pops_args): Define.
13095         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
13096         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
13097         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
13098         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
13099         documentation.
13100         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
13101         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
13102         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
13103         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
13104         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
13105         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
13106         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
13107         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
13108         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
13109         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
13110         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
13111         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
13112         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
13113         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
13114         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
13115         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
13116         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
13117         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
13118         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
13119         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
13120         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
13121         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
13122         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
13123         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
13124         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
13125         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
13126         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
13127         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
13128         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
13129         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
13130         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
13131         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
13132         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
13133         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
13134         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
13135         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
13136         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
13137         * config/i386/i386.c (ix86_return_pops_args): Make static.
13138         Constify arguments.
13139         (TARGET_RETURN_POPS_ARGS): Define.
13140         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
13141         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
13142         (TARGET_RETURN_POPS_ARGS): Define.
13143         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
13144         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
13145         (TARGET_RETURN_POPS_ARGS): Define.
13146
13147 2010-06-29  Richard Guenther  <rguenther@suse.de>
13148
13149         PR middle-end/44667
13150         * tree-inline.c (initialize_inlined_parameters): Make sure
13151         to remap the inlined parameter variable substitutions types.
13152
13153 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13154
13155         PR rtl-optimization/44659
13156         * combine.c (make_compound_operation) <SUBREG>: Do not return the
13157         result of force_to_mode if it partially re-expanded the compound.
13158
13159 2010-06-28  Jan Hubicka  <jh@suse.cz>
13160
13161         PR middle-end/44671
13162         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
13163         RESULT_DECL.
13164
13165 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
13166
13167         * double-int.h (force_fit_type_double): Remove declaration.
13168         * double-int.c (force_fit_type_double): Move to tree.c.
13169         * tree.h (force_fit_type_double): Declare.
13170         * tree.h (force_fit_type_double): Moved from double-int.c. Use
13171         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
13172         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
13173         * convert.c (convert_to_pointer): Adjust call to
13174         force_fit_type_double.
13175         * tree-vrp.c (extract_range_from_assert,
13176         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
13177         * fold-const.c: Update comment.
13178         (int_const_binop, fold_convert_const_int_from_int,
13179         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
13180         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
13181         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
13182         round_up_loc): Adjust call to force_fit_type_double.
13183
13184 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13185
13186         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
13187
13188 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13189
13190         * tree-sra.c (convert_callers): New parameter, change fndecls of
13191         recursive calls.
13192         (modify_function): Pass the old decl to convert_callers.
13193
13194 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13195
13196         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
13197         ipa_check_create_node_params and ipa_initialize_node_params with
13198         checking asserts they are not necessary.
13199
13200 2010-06-28  Jan Hubicka  <jh@suse.cz>
13201
13202         PR tree-optimization/44687
13203         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
13204
13205 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13206
13207         PR c++/44535
13208         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
13209         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
13210         instead of BINFO_BASE_BINFO.
13211
13212 2010-06-28  Michael Matz  <matz@suse.de>
13213
13214         PR middle-end/44592
13215         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
13216         proper VDEF chain for intermediate stores in the sequence.
13217
13218 2010-06-28  Jan Hubicka  <jh@suse.cz>
13219
13220         PR tree-optimization/44357
13221         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
13222         uninlinable functions.
13223
13224 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13225
13226         * config.gcc (powerpc*-*-*): Handle titan.
13227         * config/rs6000/rs6000.c (titan_cost): New costs.
13228         (rs6000_override_options): Add "titan" to processor_target_table.
13229         Add Titan to branch alignment logic.
13230         Correctly set rs6000_cost for titan.
13231         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
13232         * config/rs6000/titan.md: New file.
13233         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
13234
13235 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13236
13237         * tree-browser.c (TB_history_stack): Convert to a VEC.
13238         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
13239         (TB_history_prev): Likewise.
13240
13241 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13242
13243         * vec.h (vec_heap_free): Add parentheses around free.
13244
13245 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
13246
13247         * system.h: Poison GCC_EXCEPT_H for front-end files.
13248
13249         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
13250         langhook.
13251         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
13252         Define to NULL by default.
13253         * except.h: Define GCC_EXCEPT_H.
13254         (doing_eh): Remove prototype.
13255         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
13256         (lang_protect_cleanup_actions): Remove.
13257         * except.c (lang_protect_cleanup_actions): Remove.
13258         (doing_eh): Remove.
13259         (gen_eh_region): Don't check doing_eh here.
13260         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
13261         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
13262         instead of lang_protect_cleanup_actions.
13263         * omp-low.c (maybe_catch_exception): Likewise.
13264         * Makefile.in: Update dependencies.
13265
13266 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
13267
13268         * cgraph.h (struct varpool_node): new used_from_object_file flag.
13269         (struct cgraph_local_info): new used_from_object_file flag.
13270         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
13271         (cgraph_clone_node): initialize used_from_object_file.
13272         (cgraph_create_virtual_clone): initialize used_from_object_file.
13273         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
13274         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
13275         when compiling with -fwhole-program.
13276         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
13277         internal resolver.
13278         * ipa.c (function_and_variable_visibility): Set externally_visible
13279         flag of varpool_node if used_from_object_file flag is set.
13280         (cgraph_externally_visible_p): check used_from_object_file flag.
13281         * doc/invoke.texi (-fwhole-program option): Change description of
13282         externally_visible attribute accordingly.
13283         * doc/extend.texi (externally_visible): Ditto.
13284
13285 2010-06-27  Jan Hubicka  <jh@suse.cz>
13286
13287         * params.def (max-inline-insns-auto): Default to 40.
13288         * doc/invoke.texi (max-inline-insns-auto): Document the change.
13289
13290 2010-06-27  Jan Hubicka  <jh@suse.cz>
13291
13292         PR middle-end/44671
13293         PR middle-end/44686
13294         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
13295         signature change.
13296         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
13297         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13298
13299 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
13300
13301         * target.h (struct gcc_target): Add register_move_cost field.
13302         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
13303         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
13304         * targhooks.c (default_register_move_cost): New function.
13305         * targhooks.h (default_register_move_cost): Declare function.
13306         * defaults.h (REGISTER_MOVE_COST): Delete.
13307         * ira-int.h (ira_register_move_cost): Update comment.
13308         * ira.c (ira_register_move_cost): Update comment.
13309         * reload.h (register_move_cost): Declare.
13310         * reginfo.c (register_move_cost): New function.
13311         (move_cost): Update comment.
13312         (init_move_cost, memory_move_secondary_cost): Replace
13313         REGISTER_MOVE_COST with register_move_cost.
13314         * postreload.c (reload_cse_simplify_set): (Ditto.).
13315         * reload.c (find_valid_class, find_reloads): (Ditto.).
13316         * reload1.c (choose_reload_regs): (Ditto.).
13317         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
13318         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
13319         * doc/md.texi (can_create_pseudo_p): Update documentation.
13320
13321         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13322         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13323         * config/i386/i386.h (ix86_memory_move_cost): Make static.
13324         (TARGET_MEMORY_MOVE_COST): Define.
13325
13326         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13327         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
13328         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
13329         (TARGET_MEMORY_MOVE_COST): Define.
13330
13331 2010-06-27  Richard Guenther  <rguenther@suse.de>
13332
13333         PR tree-optimization/44683
13334         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
13335         false edge from the inverted condition.
13336
13337 2010-06-27  Richard Guenther  <rguenther@suse.de>
13338
13339         PR middle-end/44684
13340         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
13341         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
13342         for register LHS.  Or non-store assignments.
13343
13344 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
13345
13346         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
13347         (sparc_emit_set_const64): Likewise.  Remove disabled code.
13348         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
13349         (sparc_emit_set_const64): Likewise.
13350
13351 2010-06-26  Catherine Moore  <clm@codesourcery.com>
13352
13353         * config/mips/mips.md (alu_type): New attribute.
13354         (type): Infer type from alu_type.
13355         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13356         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
13357         *subsi3_extended, negsi2, negdi2, *low<mode>,
13358         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
13359         xor<mode>3, *nor<mode>3,
13360         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
13361         *zero_extendhi_truncqi):  Set alu_type instead of type.
13362
13363 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
13364
13365         * config/alpha/alpha.c (alpha_need_linkage): Adjust
13366         splay_tree_new_ggc call.
13367         (alpha_use_linkage): Likewise.
13368
13369 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13370
13371         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
13372         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
13373         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
13374         (static_specs): Remove switches_need_spaces.
13375         (process_command, do_self_spec): Hardcode handling "-o" instead of
13376         checking switches_need_spaces.
13377         * system.h (SWITCHES_NEED_SPACES): Poison.
13378
13379 2010-06-26  Richard Guenther  <rguenther@suse.de>
13380
13381         PR tree-optimization/44393
13382         * tree-loop-distribution.c (generate_loops_for_partition): Fix
13383         stmt removal and VOP renaming.
13384         (generate_memset_zero): Remove redundant stmt updating.
13385         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
13386         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
13387
13388 2010-06-26  Jan Hubicka  <jh@suse.cz>
13389
13390         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
13391         edges comming from header are equivalent.
13392         (visit_bb): Handle PHIs correctly.
13393         * tree-inline.c (copy_phis_for_bb): Be able to copy
13394         PHI from entry edge.
13395         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
13396
13397 2010-06-26  Richard Guenther  <rguenther@suse.de>
13398
13399         PR middle-end/44674
13400         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
13401         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
13402
13403 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13404
13405         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
13406         add_infile, alloc_switch): New.
13407         (process_command): Remove variable lang_n_infiles.  Process
13408         options in a single pass.  Use new functions for allocating
13409         infiles and switches arrays.  Properly skip operands of
13410         -Xpreprocessor and -Xassembler.
13411
13412 2010-06-26  Jan Hubicka  <jh@suse.cz>
13413
13414         PR middle-end/44671
13415         * cgraphunit.c (cgraph_function_versioning): Remove wrong
13416         cgraph_make_decl_local call; fix typo copying RTL data.
13417
13418 2010-06-25  DJ Delorie  <dj@redhat.com>
13419
13420         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
13421         (m32c_output_aligned_common): Likewise.
13422         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13423         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13424         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
13425         (m32c_register_pragmas): Register it.
13426         * config/m32c/m32c.c (m32c_get_pragma_address): New.
13427         (m32c_insert_attributes): Set #pragma address decls volatile.
13428         (pragma_entry_eq): New.
13429         (pragma_entry_hash): New.
13430         (m32c_note_pragma_address): New.
13431         (m32c_get_pragma_address): New.
13432         (m32c_output_aligned_common): New.
13433         * doc/extend.texi: Document the new pragma.
13434
13435         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
13436         also.
13437         * config/m32c/predicates.md (m32c_any_operand): Check the code
13438         instead of memory_operand so as to allow matching volatile MEMs.
13439         (m32c_nonimmediate_operand): Likewise.
13440         (mra_operand): Allow volatiles.
13441
13442 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
13443
13444         PR debug/44610
13445         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13446         address if the offset is unknown.
13447
13448 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
13449
13450         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13451         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13452         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13453         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13454         to ia64_start_function. Invoke it.
13455         * config/ia64/ia64.c (ia64_start_function): Call new function
13456         dwarf2out_vms_debug_main_pointer.
13457
13458 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13459
13460         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13461         statements computing the true predicate.
13462
13463 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13464
13465         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13466         to boolean_true_node.
13467         (reset_bb_predicate): New.
13468         (predicate_bbs): Call reset_bb_predicate.
13469
13470 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13471
13472         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13473         (tree_if_conversion): Returns true when something has been changed.
13474         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13475         changed something.
13476
13477 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13478
13479         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13480         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13481         * tree-if-conv.c: Include dbgcnt.h.
13482         (tree_if_conversion): Use if_conversion_tree to count the number of
13483         if-convertible loops.
13484
13485 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
13486
13487         * common.opt (fprefetch-loop-arrays): Re-define
13488         -fprefetch-loop-arrays as a tri-state option with the initial
13489         value of -1.
13490         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13491         pass only when flag_prefetch_loop_arrays > 0.
13492         * toplev.c (process_options): Note that, with tri-states,
13493         flag_prefetch_loop_arrays>0 means prefetching is enabled.
13494         * config/i386/i386.c (override_options): Enable prefetching at -O3
13495         for a set of CPUs that sw prefetching is helpful.
13496         (software_prefetching_beneficial_p): New.  Return TRUE if software
13497         prefetching is beneficial for the given CPU.
13498
13499 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13500
13501         PR rtl-optimization/44326
13502         * implicit-zee.c (find_removable_zero_extends): Replace
13503         INSN_P with NONDEBUG_INSN_P.
13504
13505 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13506
13507         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13508         (struct ipa_node_params): Removed the modification_analysis_done flag.
13509         (ipa_is_param_modified): Removed.
13510         (ipa_analyze_node): Declare.
13511         (ipa_compute_jump_functions): Remove declaration.
13512         (ipa_count_arguments): Likewise.
13513         (ipa_detect_param_modifications): Likewise.
13514         (ipa_analyze_params_uses): Likewise.
13515         * ipa-prop.c (struct param_analysis_info): New type.
13516         (visit_store_addr_for_mod_analysis): Removed.
13517         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13518         moved down in the file.
13519         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13520         (ipa_count_arguments): Made static.
13521         (mark_modified): New function.
13522         (is_parm_modified_before_call): New function.
13523         (compute_pass_through_member_ptrs): New parameter parms_info, call
13524         is_parm_modified_before_call instead of ipa_is_param_modified.
13525         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13526         it to compute_pass_through_member_ptrs.
13527         (ipa_compute_jump_functions): New parameter parms_info, pass it to
13528         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
13529         on the callee if it is analyzed.  Made static.
13530         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13531         is_parm_modified_before_call instead of ipa_is_param_modified.
13532         (ipa_analyze_call_uses): New parameter parms_info, pass it to
13533         ipa_analyze_indirect_call_uses.
13534         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13535         ipa_analyze_call_uses.
13536         (ipa_analyze_params_uses): New parameter parms_info, pass it to
13537         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
13538         (ipa_analyze_node): New function.
13539         (ipa_print_node_params): Do not dump the modified flag.
13540         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13541         it.  Do not stream the modified parameter flag.
13542         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13543         it.  Do not stream the modified parameter flag.
13544         * ipa-cp.c (ipcp_analyze_node): Removed.
13545         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13546         with only a call to ipa_analyze_node.
13547         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13548         node with only a call to ipa_analyze_node.
13549
13550 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13551
13552         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13553
13554 2010-06-25  Jan Hubicka  <jh@suse.cz>
13555
13556         * tree-pass.h (pass_split_functions): Declare.
13557         * opts.c (decode_options): Enable function splitting at -O2
13558         * timevar.def (TV_IPA_FNSPLIT): New macro.
13559         * ipa-split.c: New file.
13560         * common.opt (-fpartial-inlining): New flag.
13561         * Makefile.in (ipa-split.o): New object file.
13562         * passes.c (init_optimization_passes): Add ipa-split.
13563         * params.def (partial-inlining-entry-probability): New parameters.
13564         * doc/invoke.texi (-fpartial-inlining): New.
13565
13566 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13567
13568         PR 44665
13569         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13570         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13571         (gimplify_expr): Likewise.
13572
13573 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13574
13575         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13576         statements instead of bailing out on them.
13577         (ipa_analyze_indirect_call_uses): Do not require that loads from the
13578         parameter are in the same BB as the condition.  Update comments.
13579
13580 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
13581
13582         PR middle-end/43866
13583         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13584         true or always false, return NULL_TREE.
13585         (tree_unswitch_single_loop): Optimize conditions even when reaching
13586         max-unswitch-level parameter.  If num > 0, optimize first all conditions
13587         using entry checks, then do still reachable block discovery and consider
13588         only conditions in still reachable basic blocks in the loop.
13589
13590         PR tree-optimization/44539
13591         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13592         the call doesn't have LHS, but has VDEF.
13593
13594 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13595
13596         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13597         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13598         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13599         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13600         * system.h (MODIFY_TARGET_NAME): Poison.
13601
13602 2010-06-25  Alan Modra  <amodra@gmail.com>
13603
13604         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13605         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13606         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13607         CMODEL_LARGE as default.
13608         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13609         (offsettable_ok_by_alignment): Delete.
13610         (rs6000_emit_move): Remove mcmodel=medium optimization.
13611
13612 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13613
13614         With large parts from Jim Wilson:
13615         PR target/43902
13616         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13617         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13618         * optabs.c (optab_for_tree_code): Likewise.
13619         (expand_widen_pattern_expr): Likewise.
13620         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13621         out of execute_optimize_widening_mul.
13622         (convert_plusminus_to_widen): New function.
13623         (execute_optimize_widening_mul): Use the two new functions.
13624         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13625         Remove code to generate widening multiply-accumulate.  Add support
13626         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13627         * gimple-pretty-print.c (dump_ternary_rhs): New function.
13628         (dump_gimple_assign): Call it when appropriate.
13629         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13630         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13631         (expand_gimple_stmt_1): Likewise.
13632         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13633         WIDEN_MULT_MINUS_EXPR.
13634         * tree-ssa-operands.c (get_expr_operands): Likewise.
13635         * tree-inline.c (estimate_operator_cost): Likewise.
13636         * gimple.c (extract_ops_from_tree_1): Renamed from
13637         extract_ops_from_tree.  Add new arg for a third operand; fill it.
13638         (gimple_build_assign_stat): Support operations with three operands.
13639         (gimple_build_assign_with_ops_stat): Likewise.
13640         (gimple_assign_set_rhs_from_tree): Likewise.
13641         (gimple_assign_set_rhs_with_ops_1): Renamed from
13642         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
13643         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13644         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13645         WIDEN_MULT_MINUS_EXPR.
13646         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13647         (extract_ops_from_tree_1): Adjust declaration.
13648         (gimple_assign_set_rhs_with_ops_1): Likewise.
13649         (gimple_build_assign_with_ops): Pass NULL for last operand.
13650         (gimple_build_assign_with_ops3): New macro.
13651         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13652         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13653         functions.
13654         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13655         (verify_gimple_assign): Call it.
13656         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13657         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13658         functions for dealing with three-operand statements.
13659         * tree.c (commutative_ternary_tree_code): New function.
13660         * tree.h (commutative_ternary_tree_code): Declare it.
13661         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13662         ternary statements.
13663         (gimple_assign_nonzero_warnv_p): Likewise.
13664         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13665         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13666         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
13667         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13668         (struct hashtable_expr): New member ternary in the union.
13669         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13670         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
13671         (iterative_hash_hashable_expr): Likewise.
13672         (print_expr_hash_elt): Handle EXPR_TERNARY.
13673         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13674         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13675         statements.  Handle GIMPLE_TERNARY_RHS.
13676
13677 2010-06-25  Jan Hubicka  <jh@suse.cz>
13678
13679         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13680
13681 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
13682
13683         PR c/44517
13684         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13685         parameters are not good.
13686         (c_parser_parameter_declaration): Error unknown type name if the type
13687         name can't start declaration specifiers.
13688
13689 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13690
13691         * gcc.c (translate_options): Don't mention +e in comment.
13692         (process_command): Don't handle +e specially.
13693
13694 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13695
13696         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13697
13698         * ira-build.c (merge_hard_reg_conflicts): New function.
13699         (create_cap_allocno, copy_info_to_removed_store_destinations,
13700         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13701         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13702         (remove_unnecessary_allocnos, remove_low_level_allocnos)
13703         copy_nifo_to_removed_store_destination): Use them.
13704         * ira-lives.c (make_hard_regno_born): New function, split out of
13705         make_regno_born.
13706         (make_allocno_born): Likewise.
13707         (make_hard_regno_dead): New function, split out of make_regno_dead.
13708         (make_allocno_dead): Likewise.
13709         (inc_register_pressure): New function, split out of set_allocno_live.
13710         (dec_register_pressure): New function, split out of clear_allocno_live.
13711         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13712         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
13713         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13714         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
13715         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13716         mark_pseudo_regno_live.
13717         (process_bb_node_lives): Use mark_pseudo_regno_live,
13718         make_hard_regno_born and make_allocno_dead.
13719         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13720         set_allocno_live, clear_allocno_live): Delete functions.
13721
13722         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13723         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13724         functions.
13725         (ira_flattening): Use ira_parent_allocno.
13726         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13727         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13728
13729         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13730         statement.
13731
13732         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13733         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13734         minmax_set_iter_cond, minmax_set_iter_next,
13735         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13736         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13737         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13738         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
13739         uses changed.
13740
13741         * ira-int.h (struct live_range, live_range_t): Renamed from struct
13742         ira_allocno_live_range and allocno_live_range_t; all uses changed.
13743         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13744         All uses changed.
13745
13746 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
13747
13748         * thumb2.md (thumb2_tlobits_cbranch): Delete.
13749         (peephole2 to convert zero_extract/compare of single bit to
13750          lshift/compare): New.
13751
13752 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
13753
13754         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13755         recursive call and call to 'int_const_binop'.
13756         (build_range_check, fold_cond_expr_with_comparison, unextend,
13757         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13758         multiple_of_p): Adjust call to const_binop.
13759
13760 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
13761
13762         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13763         determine size of XFmode operand.
13764         (XFmode extended DFmode push splitter): Ditto.
13765         (XFmode extended SFmode push splitter): Ditto.
13766
13767 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13768
13769         PR target/44588
13770         * config/i386/i386.md (extract_code): New.
13771         (<u>divmodqi4): Likewise.
13772         (divmodhiqi3): Likewise.
13773         (udivmodhiqi3): Likewise.
13774         (<u>divqi3): Remvoved.
13775
13776 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
13777
13778         PR middle-end/44492
13779         * recog.h (struct recog_data): Add is_asm field.
13780         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13781         present in constraints of inline-asm operand and memory operand
13782         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13783         (extract_insn): Initialize recog_data.is_asm.
13784         * doc/md.texi (Constraints): Document operand side-effect rules.
13785
13786 2010-06-24  Andi Kleen  <ak@linux.intel.com>
13787
13788         * c-parser.c (c_parser_conditional_expression): Call
13789         warn_for_omitted_condop.
13790         * doc/invoke.texi: Document omitted condop warning.
13791
13792 2010-06-24  Nick Clifton<nickc@redhat.com>
13793
13794         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13795         insn in the sequence is a jump insn before setting its label.
13796
13797 2010-06-24  Alan Modra  <amodra@gmail.com>
13798
13799         * collect2.c (main): Match exactly --version and --help.
13800
13801 2010-06-24  DJ Delorie  <dj@redhat.com>
13802
13803         * config/m32c/m32c-pragma.c: Don't include rtl.h.
13804
13805 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
13806
13807         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13808         using X87MODEF mode iterator.
13809         (pushsf splitter): Macroize splitter using P mode iterator.
13810         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13811         mode iterator.
13812
13813         (*movxf_internal): Rename from *movxf_integer.
13814         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13815         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13816         (*movdf_internal): Rename from *movdf_integer.
13817         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13818         (*movsf_internal): Rename from *movdf_1.
13819
13820 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
13821
13822         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13823         (const_gimple_seq_node): Removed typedefs.
13824
13825         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13826         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13827
13828 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13829
13830         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13831         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13832         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13833         and CODE_FOR_vec_extract_lo_v4df.
13834
13835         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13836         Changed to define_insn_and_split.
13837         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13838         (vec_extract_lo_v16hi): Likewise.
13839         (vec_extract_lo_v32qi): Likewise.
13840         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13841         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13842
13843 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13844
13845         PR target/44640
13846         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13847         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13848         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13849         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13850         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13851
13852         PR target/44640
13853         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13854
13855         PR other/44644
13856         * df-core.c (struct df): Rename to df_d.
13857         * df.h (struct df): Likewise.
13858         * dse.h (struct df): Remove forward declaration.
13859         * recog.h (struct insn_data): Rename to:
13860         (struct_insn_data_d).  Adjusted all users.
13861
13862 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13863
13864         PR ada/22220
13865         * doc/install.texi: Update requirements to build GNAT.
13866
13867 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13868
13869         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13870         enum type.
13871         (m68k_sched_attr_opx_type): Remove unreachable return.
13872         (m68k_sched_attr_opy_type): Likewise.
13873         (m68k_sched_attr_size): Likewise.
13874         (sched_get_opxy_mem_type): Likewise.
13875         (m68k_sched_attr_op_mem): Likewise.
13876
13877 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13878
13879         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13880         new statement and adjust VDEF only if necessary.  Remove superfluous
13881         call to maybe_clean_or_replace_eh_stmt.
13882         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13883         copy the flags.
13884         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13885         * tree-inline.c (copy_bb): ...and not there.
13886
13887 2010-06-22  Cary Coutant  <ccoutant@google.com>
13888
13889         * dwarf2out.c (is_nested_in_subprogram): New function.
13890         (should_move_die_to_comdat): Use it.
13891         (copy_ancestor_tree): Don't mark DIEs here.
13892         (copy_decls_walk): Start walk from root of newly-added tree;
13893         mark DIEs here instead.
13894
13895 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13896
13897         * config/i386/i386.md (unit): Also check sseishft1.
13898
13899 2010-06-22  Jan Hubicka  <jh@suse.cz>
13900
13901         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13902         enabled.
13903
13904 2010-06-22  Jan Hubicka  <jh@suse.cz>
13905
13906         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13907         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13908         Return true if something changed.
13909         * df.h (df_confluence_function_n): Return bool.
13910         * df-core.c (df_worklist_propagate_forward,
13911         df_worklist_propagate_backward): Track changes and ages.
13912         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13913         track ages.
13914         * dse.c (dse_confluence_n): Return always true.
13915
13916 2010-06-22  Jan Hubicka  <jh@suse.cz>
13917
13918         * bitmap.c (bitmap_clear_bit): Micro optimize.
13919
13920 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13921
13922         * config/i386/i386.md (SWI1248x): New mode iterator.
13923         (SWI48x): Ditto.
13924         (SWI12): Ditto.
13925         (SWI24): Ditto.
13926
13927         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13928         SWI1248x mode iterator.
13929         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13930         using SWI124 mode iterator.
13931         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13932         mode iterator.
13933         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13934         *pushdi2_prologue_rex64 using P mode iterator.
13935         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13936         using SWI48 mode iterator.
13937         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13938         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13939         using SWI1248x mode iterator.
13940         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13941         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13942         SWI48 mode iterator.
13943         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13944         iterator.
13945         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13946         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13947         SWI12 mode iterator.
13948         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13949         SWI12 mode iterator.
13950         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13951         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13952         SWI24 mode iterator.
13953         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13954         SWI48 mode iterator.
13955         (mov<mode>_insn_1): New expander.
13956         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13957         using SWI48x mode iterator.
13958
13959         (*movoi_internal_avx): Rename from *movoi_internal.
13960         (*movti_internal_rex64): Rename from *movti_rex64.
13961         (*movti_internal_sse): Rename from *movti_sse.
13962         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13963         (*movdi_internal): Rename from *movdi_2.
13964         (*movsi_internal): Rename from *movsi_1.
13965         (*movhi_internal): Rename from *movhi_1.
13966         (*movqi_internal): Rename from *movqi_1.
13967
13968         (insv): Update the call to gen_movsi_insv_1 for rename.
13969         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13970
13971 2010-06-22  Jan Hubicka  <jh@suse.cz>
13972
13973         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13974         to ...
13975         (execute_todo) ... this one.
13976
13977 2010-06-22  Alan Modra  <amodra@gmail.com>
13978
13979         PR target/44364
13980         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13981         * caller-save.c (insert_restore, insert_save): Use non-validate
13982         form of adjust_address.
13983
13984 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13985
13986         PR target/39690
13987         * config/pa/pa.c (override_options): Disable
13988         -freorder-blocks-and-partition.
13989
13990 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13991
13992         PR target/44615
13993         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13994
13995         * config/i386/i386.md (type): Add sseishft1
13996
13997         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13998         (ppro_insn_load): Likewise.
13999         (ppro_insn_store): Likewise.
14000         (ppro_insn_both): Likewise.
14001
14002         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
14003         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
14004         for type.
14005         (*vec_extractv2di_1_avx): Likewise.
14006         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
14007         type.  Remove atom_unit.
14008         (*vec_extractv2di_1_sse2): Likewise.
14009
14010 2010-06-21  DJ Delorie  <dj@redhat.com>
14011
14012         * diagnostic.h (diagnostic_classification_change_t): New.
14013         (diagnostic_context): Add history and push/pop list.
14014         (diagnostic_push_diagnostics): Declare.
14015         (diagnostic_pop_diagnostics): Declare.
14016         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
14017         from pragmas in a history chain instead of the global table.
14018         (diagnostic_push_diagnostics): New.
14019         (diagnostic_pop_diagnostics): New.
14020         (diagnostic_report_diagnostic): Scan history chain to find state
14021         of diagnostics as of the diagnostic location.
14022         * opts.c (set_option): Pass UNKNOWN_LOCATION to
14023         diagnostic_classify_diagnostic.
14024         (enable_warning_as_error): Likewise.
14025         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
14026         use in the history chain.
14027         * doc/extend.texi: Document pragma GCC diagnostic changes.
14028
14029 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
14030
14031         * dwarf2out.c (add_linkage_name): New function.  Don't add
14032         anything to DW_TAG_member DIEs.
14033         (add_name_and_src_coords_attributes): Use it.
14034         (gen_variable_die): Call it for C++ static data members if
14035         specification is DW_TAG_member.
14036
14037         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
14038         C++ char16_t and char32_t.
14039
14040         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
14041         * genattrtab.c: Include vecprim.h.
14042         (cached_attrs, cached_attr_count, attrs_seen_once,
14043         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
14044         attrs_cached_after): New variables.
14045         (find_attrs_to_cache): New function.
14046         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
14047         (write_test_expr): Add attrs_cached argument, return it too,
14048         attempt to cache non-const attributes used more than once in
14049         a single case handling.
14050         (write_attr_get): Use find_attrs_to_cache, for caching candidates
14051         emit cached_* variables.  Adjust write_attr_set callers.
14052         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
14053         to find attributes that should be cached in this block.  Adjust
14054         write_test_expr callers.
14055         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
14056         callers.
14057         (make_automaton_attrs): Adjust write_test_expr caller.
14058
14059         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
14060         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
14061         (make_automaton_attrs): If find_tune_attr returns non-NULL,
14062         write separate internal_dfa_insn_code_* and insn_default_latency_*
14063         functions for each attribute's value and emit init_sched_attrs
14064         function and function pointers.
14065         * genattr.c (const_attrs, reservations): New variables.
14066         (gen_attr): Add const attributes to const_attrs vector.
14067         (check_tune_attr, find_tune_attr): New functions.
14068         (main): Add reservations to reservations vector.  If find_tune_attr
14069         returns true, add prototype for init_sched_attrs and make
14070         internal_dfa_insn_code and insn_default_latency function pointers,
14071         otherwise define init_sched_attrs as dummy macro.
14072         * cfgexpand.c: Include insn-attr.h.
14073         (gimple_expand_cfg): Call init_sched_attrs.
14074
14075         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
14076
14077         PR target/44575
14078         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
14079         va_arg from a set of register save slots into a temporary,
14080         if the container is bigger than type size, do the copying
14081         using smaller mode or using memcpy.
14082
14083         PR bootstrap/44426
14084         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
14085         prototype.
14086         (sel_print_to_dot): Remove macro.
14087         (sel_print): Likewise.  New prototype.
14088         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
14089         (sel_print): New function.
14090
14091 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14092
14093         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
14094         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
14095
14096 2010-06-21  Nick Clifton  <nickc@redhat.com>
14097
14098         * config/rx/rx.h (PTRDIFF_TYPE): Define.
14099         (SMALL_REGISTER_CLASS): Define (to zero).
14100         (PRINT_OPERAND): Delete.
14101         (PRINT_OPERAND_ADDRESS): Delete.
14102         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
14103         (rx_print_operand_address): Delete prototype.
14104         * config/rx/rx.c (rx_print_operand): Make static.
14105         Allow %H and %L to handle CONST_DOUBLEs.
14106         (rx_print_operand_address): Make static.
14107         (rx_gen_move_template): Rename local variable 'template' to
14108         out_template.
14109         (rx_function_arg): Do not pass unknown sized objects in registers.
14110         (TARGET_PRINT_OPERAND): Define.
14111         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14112
14113 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
14114
14115         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
14116
14117 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
14118
14119         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
14120         stack-alignment for simple leaf-functions.
14121
14122 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14123
14124         * doc/install.texi: Document bootstrap-lto.
14125
14126 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14127
14128         PR debug/44248
14129         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
14130         (input_function): Drop them here, if VTA is disabled.
14131
14132 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
14133
14134         PR target/44546
14135         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
14136         New predicate.
14137         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
14138         ix86_swapped_fp_comparsion_operator instead of
14139         ix86_fp_comparison_operator.
14140
14141         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
14142         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
14143         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
14144         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
14145         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
14146         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
14147
14148 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
14149
14150         PR other/32998
14151         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
14152         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
14153         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
14154         (decode_cmdline_option): Update for this return value.  Set
14155         orig_option_with_args_text field.  Set arg field for unknown
14156         options.  Make static.
14157         (decode_cmdline_options_to_array): New.
14158         (prune_options): Update handling of find_opt return value.
14159         * opts.c (read_cmdline_option): Take decoded option.  Return void.
14160         (read_cmdline_options): Take decoded options.
14161         (decode_options): Add parameters for decoded options.  Use
14162         decode_cmdline_options_to_array.  Use decoded options for -O
14163         scan.  Use integral_argument for -O parameters.  Update call to
14164         read_cmdline_options.
14165         (enable_warning_as_error): Update handling of find_opt return value.
14166         * opts.h: Update comment on unknown options.
14167         (struct cl_decoded_option): Update comments on opt_index and arg.
14168         Add orig_option_with_args_text.
14169         (decode_cmdline_option): Remove.
14170         (decode_cmdline_options_to_array): Declare.
14171         (decode_options): Update prototype.
14172         * toplev.c (save_argv): Remove.
14173         (save_decoded_options, save_decoded_options_count): New.
14174         (read_integral_parameter): Remove.
14175         (print_switch_values): Use decoded options.
14176         (toplev_main): Don't set save_argv.  Update call to decode_options.
14177         * toplev.h (read_integral_parameter): Remove.
14178         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
14179
14180 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
14181
14182         PR target/44072
14183         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
14184         immediate.
14185         * constraints.md (Pw, Px): New constraints.
14186         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
14187
14188 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
14189
14190         * config/i386/sse.md (fma4modesuffixf4): Removed.
14191         (ssemodesuffixf2s): Likewise.
14192         (ssemodesuffixf4): Likewise.
14193         (ssemodesuffixf2c): Likewise.
14194         (ssescalarmodesuffix2s): Likewise.
14195         (avxmodesuffixf2c): Likewise.
14196         (ssemodesuffix): New.
14197         (ssescalarmodesuffix): Likewise.
14198         Update patterns with ssemodesuffix and ssescalarmodesuffix.
14199
14200 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
14201
14202         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
14203
14204 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14205
14206         * stor-layout.c (debug_rli): Remove unused local variables.
14207
14208 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
14209
14210         PR rtl-optimization/40900
14211         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
14212         original expression for later reuse.
14213         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
14214         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
14215
14216 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
14217
14218         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
14219         double_int_fits_in_uhwi_p): Implement as static inline.
14220         (double_int_xor): New inline function.
14221         (double_int_lrotate, double_int_rrotate, double_int_max,
14222         double_int_umax, double_int_smax, double_int_min, double_int_umin,
14223         double_int_smin): Declare.
14224         (lrotate_double, rrotate_double): Remove declaration.
14225         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
14226         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
14227         (double_int_lrotate, double_int_rrotate, double_int_max,
14228         double_int_umax, double_int_smax, double_int_min, double_int_umin,
14229         double_int_smin): New function.
14230         * fold-const.c (int_const_binop): Clean up, use double_int_*
14231         functions.
14232         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
14233         double_int_* and immed_double_int_const functions.
14234
14235 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14236
14237         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
14238         * function.c (types_used_by_cur_var_decl): Likewise.
14239         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
14240
14241 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14242
14243         * tree.h (record_layout_info): Change type of pending_statics field
14244         to a VEC.
14245         * stor-layout.c (start_record_layout): Store NULL into
14246         pending_statics.
14247         (debug_rli): Call debug_vec_tree instead of debug_tree.
14248         (place_field): Likewise.
14249         (finish_record_layout): Likewise.
14250
14251 2010-06-18  Alan Modra  <amodra@gmail.com>
14252
14253         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
14254
14255 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14256
14257         PR target/43740
14258         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
14259         for SET source operand from SET destination operand.
14260
14261 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
14262
14263         PR rtl-optimization/39871
14264         * reload1.c (init_eliminable_invariants): For flag_pic, disable
14265         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
14266         (function_invariant_p): Rule out a plus of frame or arg pointer with
14267         a SYMBOL_REF.
14268         * ira.c (find_reg_equiv_invariant_const): Likewise.
14269
14270 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
14271
14272         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
14273         print_operand_address and puts to output the operand for CONST.
14274
14275 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
14276
14277         PR debug/44572
14278         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
14279         hook.
14280
14281 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14282
14283         * v850-protos.h (print_operand): Delete.
14284         (print_operand_address): Delete.
14285         * v850.h (PRINT_OPERAND): Delete.
14286         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14287         (PRINT_OPERAND_ADDRESS): Delete.
14288         * v850.c (print_operand_address): Rename to...
14289         (v850_print_operand_address): ...this.  Make static. Call
14290         v850_print_operand.
14291         (print_operand): Rename to...
14292         (v850_print_operand): ...this.  Make static.  Call
14293         v850_print_operand_address.
14294         (v850_print_operand_punct_valid_p): New function.
14295         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14296         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14297
14298 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14299
14300         * config/sh/sh-protos.h (print_operand): Delete.
14301         (print_operand_address): Delete.
14302         * config/sh/sh.h (PRINT_OPERAND): Delete.
14303         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14304         (PRINT_OPERAND_ADDRESS): Delete.
14305         * config/sh/sh.c (sh_print_operand_address): Make static.
14306         (sh_print_operand): Make static.  Call sh_print_operand_address
14307         and sh_print_operand.
14308         (sh_print_operand_punct_valid_p): New function.
14309         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14310         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14311
14312 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14313
14314         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
14315         (mcore_print_operand_address): Delete.
14316         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
14317         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14318         (PRINT_OPERAND_ADDRESS): Delete.
14319         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
14320         (mcore_print_operand): Make static.
14321         (mcore_print_operand_punct_valid_p): New function.
14322         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
14323         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14324
14325 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14326
14327         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
14328         (print_operand_address): Delete.
14329         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
14330         (PRINT_OPERAND_ADDRESS): Delete.
14331         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
14332         static.
14333         (m68hc11_print_operand): Make static.
14334         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14335
14336 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14337
14338         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
14339         (m32r_print_operand_address): Delete.
14340         * config/m32r/m32r.h (m32r_punct_chars): Delete.
14341         (PRINT_OPERAND): Delete.
14342         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14343         (PRINT_OPERAND_ADDRESS): Delete.
14344         * config/m32r/m32r.c (m32r_punct_chars): Make static.
14345         (m32r_print_operand_address): Make static.
14346         (m32r_print_operand): Make static.
14347         (m32r_print_operand_punct_valid_p): New function.
14348         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14349         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14350
14351 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14352
14353         * config/iq2000/iq2000-protos.h (print_operand): Delete.
14354         (print_operand_address): Delete.
14355         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
14356         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14357         (PRINT_OPERAND_ADDRESS): Delete.
14358         (iq2000_print_operand_punct): Delete.
14359         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
14360         (iq2000_print_operand_address): Make static.
14361         (iq2000_print_operand): Make static.
14362         (iq2000_print_operand_punct_valid_p): New function.
14363         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14364         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14365
14366 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14367
14368         * config/frv/frv-protos.h (frv_print_operand): Delete.
14369         (frv_print_operand_address): Delete.
14370         * config/frv/frv.h (PRINT_OPERAND): Delete.
14371         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14372         (PRINT_OPERAND_ADDRESS): Delete.
14373         * config/frv/frv.c (frv_print_operand_address): Make static.
14374         (frv_print_operand): Make static.
14375         (frv_print_operand_punct_valid_p): New function.
14376         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14377         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14378
14379 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14380
14381         * tree.h (vec_member): Declare.
14382         * tree.c (vec_member): Define.
14383
14384 2010-06-17  Richard Guenther  <rguenther@suse.de>
14385
14386         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
14387         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
14388
14389 2010-06-17  Richard Guenther  <rguenther@suse.de>
14390
14391         * tree-inline.c (declare_return_variable): Remove bogus code.
14392
14393 2010-06-17  Richard Guenther  <rguenther@suse.de>
14394
14395         * gimplify.c (gimplify_bind_expr): Always promote complex
14396         and vector variables to registers if possible.
14397
14398 2010-06-17  Richard Guenther  <rguenther@suse.de>
14399
14400         * expr.c (get_inner_reference): Use double_int for bit_offset
14401         calculation.
14402
14403 2010-06-16  DJ Delorie  <dj@redhat.com>
14404
14405         * common.opt (-fstrict-volatile-bitfields): new.
14406         * doc/invoke.texi: Document it.
14407         * fold-const.c (optimize_bit_field_compare): For volatile
14408         bitfields, use the field's type to determine the mode, not the
14409         field's size.
14410         * expr.c (expand_assignment): Likewise.
14411         (get_inner_reference): Likewise.
14412         (expand_expr_real_1): Likewise.
14413         * expmed.c (store_fixed_bit_field): Likewise.
14414         (extract_bit_field_1): Likewise.
14415         (extract_fixed_bit_field): Likewise.
14416
14417 2010-06-16  Richard Guenther  <rguenther@suse.de>
14418
14419         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
14420
14421 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
14422
14423         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
14424         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
14425         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
14426         * debug.c: Likewise.
14427         * sdbout.c: Likewise.
14428         * vmsdbgout.c: Likewise.
14429         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
14430         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
14431         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
14432         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
14433         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
14434         * dwarf2out.c (dw_fde_struct): New fields
14435         dw_fde_vms_{end,begin}_prologue.
14436         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
14437         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
14438         (dwarf2out_vms_end_prologue): New function.
14439         (dwarf2out_vms_begin_epilogue): New function.
14440         (dw_val_struct): New value dw_val_class_vms_delta.
14441         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
14442         begin_epilogue for VMS.
14443         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
14444         new static functions.
14445         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14446         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14447         static functions.
14448         (print_die): New case dw_val_class_vms_delta.
14449         (attr_checksum): Likewise.
14450         (same_dw_val_p: Likewise.
14451         (size_of_die): Likewise.
14452         (value_format): Likewise.
14453         (output_die): Likewise.
14454         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14455         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14456         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14457         dwarf2out_cfi_begin_epilogue
14458         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14459
14460 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14461
14462         * config/cris/cris-protos.h (cris_print_operand): Delete.
14463         (cris_print_operand_address): Delete.
14464         * config/cris/cris.h (PRINT_OPERAND): Delete.
14465         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14466         (PRINT_OPERAND_ADDRESS): Delete.
14467         * config/cris/cris.c (cris_print_operand_address): Make static.
14468         (cris_print_operand): Make static.
14469         (cris_print_operand_punct_valid_p): New function.
14470         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14471         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14472
14473 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14474
14475         * config/arm/arm-protos.h (arm_print_operand): Delete.
14476         (arm_print_operand_address): Delete.
14477         * config/arm/arm.h (PRINT_OPERAND): Delete.
14478         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14479         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14480         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14481         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
14482         (arm_print_operand): Make static.
14483         (arm_print_operand_punct_valid_p): New function.
14484         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14485         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14486
14487 2010-06-16  Nick Clifton  <nickc@redhat.com>
14488
14489         * config/rx/constraints.md (NEGint4): New constraint.
14490         * config/rx/rx.md (attr cc): Add set_zsc.
14491         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14492         initialised.
14493         (cmpsf): Likewise.
14494         (call_internal): Clobber the cc0 register.
14495         (call_value_internal): Likewise.
14496         (cstoresi4): Likewise.
14497         (movsieq): Likewise.
14498         (movsine): Likewise.
14499         (addsi3): Add alternative to handle small negative constants.
14500         (sunsi3): Likewise.
14501         (addsi3): Do not set the O bit in the cc0 register.
14502         (adddi3): Likewise.
14503         (subsi3): Likewise.
14504         (subdi3): Likewise.
14505         (andsi3): Reorder alternatives to prefer shorter forms.
14506         (mulsi3): Likewise.
14507         (iorsi3): Likewise.
14508         (negsi2): Note that the cc0 flags are set.
14509         (rotlsi3): Note that only the Z and S bits are set in cc0.
14510         (lshrsi3): Likewise.
14511         (ashlsi3): Likewise.
14512         (subsf3): Use %Q for the MEM operand.
14513         (fix_truncsfsi2): Likewise.
14514         (floatsisf2): Likewise.
14515         (bitset): Remove early clobber from destination.
14516         (bitset_in_memory): Likewise.
14517         (lrintsf2): Clobber the cc0 register.
14518         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14519         (rx_print_operand): Handle %N.
14520
14521 2010-06-16  Jan Hubicka  <jh@suse.cz>
14522
14523         * df-core.c (df_compact_blocks): Free problem_temps vector.
14524
14525 2010-06-16  Martin Jambor  <mjambor@suse.cz>
14526
14527         PR tree-optimization/43905
14528         * tree-sra.c: Include tree-inline.h.
14529         (create_abstract_origin): Removed.
14530         (modify_function): Version the call graph node instead of creating
14531         abstract origins and dealing with same_body aliases.
14532         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14533         function is versionable.
14534         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14535
14536 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14537
14538         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14539         (CHOOSE_DYNAMIC_LINKER): Update.
14540
14541 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
14542
14543         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
14544         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14545         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14546         *prefetch_3dnow_rex.
14547
14548 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
14549
14550         * target.h (struct asm_out):Add declare_constant_name field.
14551         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14552         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14553         * output.h (default_asm_declare_constant_name): Declare.
14554         (assemble_label): Update prototype.
14555         * varasm.c (assemble_constant_contents): Use
14556         targetm.asm_out.declare_constant_name target hook.
14557         (assemble_label): Add 'file' argument.
14558         (default_asm_declare_constant_name): New function.
14559         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14560         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14561         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14562
14563         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14564         * config/darwin.c (darwin_asm_declare_constant_name): New function.
14565         (machopic_output_indirection): Update assemble_label argument list.
14566         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14567         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14568
14569 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
14570
14571         PR middle-end/44391
14572         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14573         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
14574
14575 2010-06-15  Richard Guenther  <rguenther@suse.de>
14576
14577         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14578
14579 2010-06-15  Paul Brook  <paul@codesourcery.com>
14580
14581         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14582         hard-float ABI.
14583
14584 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
14585
14586         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14587         don't get a vector type for output.
14588
14589 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
14590
14591         PR fortran/44536
14592         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14593         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14594         (LANG_HOOKS_DECLS): Add it.
14595         * gimplify.c (omp_notice_variable): Call
14596         lang_hooks.decls.omp_report_decl.
14597
14598 2010-06-15  Martin Jambor  <mjambor@suse.cz>
14599
14600         PR lto/44464
14601         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14602         on the newly dead SSA name.
14603
14604 2010-06-15  Alan Modra  <amodra@gmail.com>
14605
14606         * doc/invoke.texi: Add mcmodel to powerpc options.
14607         * configure.ac: Add HAVE_LD_LARGE_TOC test.
14608         * configure: Regenerate.
14609         * config.in: Regenerate.
14610         * config/rs6000/linux64.opt (mcmodel): New.
14611         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14612         (TARGET_CMODEL, SET_CMODEL): Define.
14613         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14614         select CMODEL_MEDIUM default.
14615         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14616         (TARGET_CMODEL): Define default.
14617         * config/rs6000/rs6000.c (cmodel): New variable.
14618         (rs6000_explicit_options): Add cmodel field.
14619         (rs6000_handle_option): Handle -mcmodel.
14620         (create_TOC_reference): Add largetoc_reg param.  Generate high,
14621         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
14622         (rs6000_delegitimize_address): Recognise new toc reference rtl
14623         and minimal-toc rtl.
14624         (rs6000_legitimize_reload_address): Handle new toc references.
14625         (print_operand_address): Handle legitimate_constant_pool_address_p
14626         match before lo_sum.
14627         (rs6000_eliminate_indexed_memrefs): Tidy.
14628         (rs6000_emit_move): Tweak threshold for inlining constants.
14629         Keep rs6000_emit_allocate_stack large stack frame offsets
14630         loaded into r0 inline.
14631         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14632         (tocrel_base, tocrel_offset): New variables.
14633         (toc_relative_expr_p): Set them here.
14634         (print_operand_address): Skip over any offset on constant pool address.
14635         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14636         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14637         (offsettable_ok_by_alignment): New function.
14638         (rs6000_emit_move): Address suitably aligned local symbol_refs
14639         relative to the toc pointer for -mcmodel=medium.
14640         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
14641         strict param.  Allow lo_sum version of addressing.  Verify reg
14642         used for -mminimal-toc and -mcmodel != small.  Update all callers.
14643         * config/rs6000/constraints.md: Update for above change.
14644         * config/rs6000/predicates.md: Likewise.
14645         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14646         code.
14647         (tls_gd): Split for -mcmodel=medium/large.
14648         (tls_gd_high, tls_gd_low): New.
14649         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14650         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14651         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14652         (largetoc_high, largetoc_low): New.
14653         (cmptf_internal2): Add clobber.
14654         * config/rs6000/rs6000-protos.h: Update.
14655
14656 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
14657
14658         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
14659         true if no prefetch is going to be generated for a given group.
14660         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14661         estimate the prefetch_count.
14662         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14663         prefetch count by considering the unroll_factor and prefetch_mod
14664         for is_loop_prefetching_profitable.
14665
14666 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
14667
14668         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14669         anything if the argument is not a MEM.
14670
14671 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14672
14673         PR debug/43650
14674         PR debug/44181
14675         PR debug/44247
14676         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14677         debug stmts.
14678         (canonicalize_loop_ivs): Likewise.
14679
14680 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14681
14682         PR debug/43656
14683         * haifa-sched.c (setup_insn_reg_pressure_info,
14684         update_register_pressure): Reject debug insns.
14685         (ready_sort): Don't setup reg pressure for debug insns.
14686         (schedule_insn): Don't update reg pressure for debug insns.
14687
14688 2010-06-14  Richard Guenther  <rguenther@suse.de>
14689
14690         * lto-streamer.c (cached_bp): Remove.
14691         (bitpack_delete): Likewise.
14692         (bitpack_create): Likewise.
14693         (bp_get_next_word): Likewise.
14694         (bp_pack_value, bp_unpack_value): Move ...
14695         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14696         Re-implement.
14697         (struct bitpack_d): Likewise.
14698         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14699         New inline functions.
14700         * lto-streamer-out.c (lto_output_bitpack): Remove.
14701         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14702         (pack_value_fields): Adjust.
14703         (lto_write_tree): Likewise.
14704         (output_gimple_stmt): Likewise.
14705         (output_function): Likewise.
14706         * lto-streamer-in.c (input_gimple_stmt): Adjust.
14707         (input_function): Likewise.
14708         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14709         (lto_input_bitpack): Remove.
14710         (lto_materialize_tree): Adjust.
14711         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14712         * lto-cgraph.c (lto_output_edge): Adjust.
14713         (lto_output_node): Likewise.
14714         (lto_output_varpool_node): Likewise.
14715         (lto_output_ref): Likewise.
14716         (input_node): Likewise.
14717         (input_varpool_node): Likewise.
14718         (input_ref): Likewise.
14719         (input_edge): Likewise.
14720         (output_node_opt_summary): Likewise.
14721         (input_node_opt_summary): Likewise.
14722         * ipa-pure-const.c (pure_const_write_summary): Likewise.
14723         (pure_const_read_summary): Likewise.
14724         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14725         (ipa_read_indirect_edge_info): Likewise.
14726         (ipa_write_node_info): Likewise.
14727         (ipa_read_node_info): Likewise.
14728
14729 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14730
14731         PR target/44534
14732         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14733         (vec_extract_lo_v16hi): Likewise.
14734         (vec_extract_lo_v32qi): Likewise.
14735
14736 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14737
14738         PR bootstrap/44426
14739         * tree.h (build_call_expr): Don't define as vararg macro, instead
14740         add a prototype.
14741         * builtins.c (build_call_nofold): Remove.
14742         (expand_builtin_int_roundingfn, expand_builtin_pow,
14743         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14744         expand_builtin_memset_args, expand_builtin_strcmp,
14745         expand_builtin_strncmp, expand_builtin_memory_chk): Use
14746         build_call_nofold_loc instead of build_call_nofold.
14747         (build_call_expr): New function.
14748
14749         PR tree-optimization/44508
14750         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14751         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14752         don't eliminate trivially dead stmts.
14753         * tree-vrp.c (vrp_finalize): Pass false as last argument
14754         to substitute_and_fold.
14755         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14756         to substitute_and_fold.
14757         * tree-ssa-ccp.c (ccp_finalize): Likewise.
14758
14759         PR bootstrap/44509
14760         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14761
14762 2010-06-14  Ira Rosen  <irar@il.ibm.com>
14763
14764         PR tree-optimization/44507
14765         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14766         to build initial vector for BIT_AND_EXPR.
14767         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14768
14769 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14770
14771         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14772         adjust z10prop set_attr.
14773
14774 2010-06-13  Jan Hubicka  <jh@suse.cz>
14775
14776         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14777         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14778         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14779         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14780         datastructure checks into checking asserts.
14781         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14782         * tree-ssa-sccvn.c (VN_INFO): Likewise.
14783         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14784         df_ref_create_structure): Likewise.
14785         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14786         pool_free): Use gcc_checking_assert.
14787         * alias.c (get_alias_set): Likewise.
14788         * var-tracking.c (variable_htab_free, shared_hash_copy,
14789         canonicalize_values_mark, variable_merge_over_cur): Likewise.
14790         * lto-streamer.c (bp_unpack_value): Likewise.
14791
14792 2010-06-13  Richard Guenther  <rguenther@suse.de>
14793
14794         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14795         Do not stream but initialize TYPE_CANONICAL to NULL.
14796         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14797         * gimple.c (gimple_types_compatible_p): Disregard
14798         TYPE_STRUCTURAL_EQUALITY_P.
14799         (gimple_register_type): Use TYPE_CANONICAL as cache.
14800         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14801         before registering common types.
14802         * config/i386/i386.c (ix86_function_arg_boundary): Do not
14803         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14804         * tree.h (TYPE_CANONICAL): Clarify documentation.
14805
14806 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
14807
14808         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14809         LIBCALL_VALUE): Remove macros.
14810         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14811         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14812         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14813         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14814         (ia64_function_value): Make static. Handle receiving the function
14815         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14816
14817 2010-06-12  Jan Hubicka  <jh@suse.cz>
14818
14819         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14820         at correct place.
14821
14822 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
14823
14824         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14825
14826 2010-06-12  Jan Hubicka  <jh@suse.cz>
14827
14828         * df-core.c (df_clear_bb_info): New function.
14829         (df_set_blocks): bb_info is always allocated.
14830         (df_get_bb_info): Use block_info_elt_size.
14831         (df_set_bb_info): Likewise.
14832         (df_compact_blocks): Update for new block_info.
14833         (grow_bb_info): New function.
14834         * df-problems.c (df_grow_bb_info): Move to df-core.c
14835         (df_rd_set_bb_info): Remove.
14836         (df_rd_free_bb_info): Do not free block pool.
14837         (df_rd_alloc): Do not create pool, use check for
14838         obstack presence instead of NULL pointer for new blocks.
14839         (df_rd_free): DO not free alloc pool; clear block_info.
14840         (problem_RD): Add size of block info structure.
14841         (df_lr_set_bb_info): Remove.
14842         (df_lr_free_bb_info): Do not free block pool.
14843         (df_lr_alloc): Do not create pool, use check for
14844         obstack presence instead of NULL pointer for new blocks.
14845         (df_lr_free): DO not free alloc pool; clear block_info.
14846         (problem_LR): Add size of block info structure.
14847         (df_live_set_bb_info): Remove.
14848         (df_live_free_bb_info): Do not free block pool.
14849         (df_live_alloc): Do not create pool, use check for
14850         obstack presence instead of NULL pointer for new blocks.
14851         (df_live_free): DO not free alloc pool; clear block_info.
14852         (problem_LIVE): Add size of block info structure.
14853         (problem_CHAIN): Add size of block info structure.
14854         (df_byte_lr_set_bb_info): Remove.
14855         (df_byte_lr_free_bb_info): Do not free block pool.
14856         (df_byte_lr_alloc): Do not create pool, use check for
14857         obstack presence instead of NULL pointer for new blocks.
14858         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14859         (problem_BYTE_LR): Add size of block info structure.
14860         (problem_NOTE): Add size of block info structure.
14861         (df_byte_MD_set_bb_info): Remove.
14862         (df_byte_MD_free_bb_info): Do not free block pool.
14863         (df_byte_MD_alloc): Do not create pool, use check for
14864         obstack presence instead of NULL pointer for new blocks.
14865         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14866         (problem_BD): Add size of block info structure.
14867         * df-scan.c (df_scan_free_internal): Free block pool.
14868         (df_scan_set_bb_info): Remove.
14869         (df_scan_free_bb_info): Check for artificial_defs instead
14870         of bb_info being non-NULL.
14871         (df_scan_alloc): DO not create df_scan_block pool.
14872         (problem_SCAN): Set size of block info.
14873         (df_bb_refs_record): Do not allocate bb_info.
14874         * df.h (df_problem): Add block_info_elt_size.
14875         (struct dataflow): Change block_info to void *.
14876         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14877         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14878         in-line structures.
14879
14880 2010-06-12  Jan Hubicka  <jh@suse.cz>
14881
14882         PR tree-optimize/44485
14883         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14884         containing use of return value of noreturn function.
14885
14886 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14887
14888         * targhooks.c (default_function_value): Don't use
14889         FUNCTION_OUTGOING_VALUE.
14890         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14891         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14892
14893 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14894
14895         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14896         Add crtfastmath.o to extra_parts.
14897         * config/mips/crtfastmath.c: New.
14898         * config/mips/linux.h (ENDFILE_SPEC): New.
14899
14900 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14901
14902         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14903         old_type in parameter.
14904         (gcc_type_for_value): Update call to gcc_type_for_interval.
14905         (compute_type_for_level_1): Renamed compute_type_for_level.
14906         Update call to gcc_type_for_interval.
14907
14908 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14909
14910         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14911         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14912
14913 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14914
14915         * opts-common.c: Include options.h.
14916         (integral_argument): Move from opts.c.
14917         (decode_cmdline_option): New.  Based on read_cmdline_option.
14918         * opts.c (integral_argument): Move to opts-common.c.
14919         (read_cmdline_option): Move most contents to
14920         decode_cmdline_option.  Use %qs in diagnostics.
14921         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14922         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14923         decode_cmdline_option): New.
14924
14925 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14926
14927         PR target/44481
14928         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14929         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14930         (partiysi2_cmp): Ditto.
14931         (*partiyhi2_cmp): Ditto.
14932         (*parityqi2_cmp): Remove.
14933
14934 2010-06-11  Jan Hubicka  <jh@suse.cz>
14935
14936         * bitmap.h (bmp_iter_next_bit): New.
14937         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14938
14939 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14940             Eric Botcazou  <ebotcazou@adacore.com>
14941
14942         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14943         computed cost.
14944
14945 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14946
14947         * config/i386/i386.md (unspec): New define_c_enum.
14948         (unspecv): Ditto.
14949
14950 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14951
14952         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14953
14954 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14955
14956         PR middle-end/44483
14957         * tree-if-conv.c (bb_predicate_s): New struct.
14958         (bb_predicate_p): New.
14959         (bb_has_predicate): New.
14960         (bb_predicate): New.
14961         (set_bb_predicate): New.
14962         (bb_predicate_gimplified_stmts): New.
14963         (set_bb_predicate_gimplified_stmts): New.
14964         (add_bb_predicate_gimplified_stmts): New.
14965         (init_bb_predicate): New.
14966         (free_bb_predicate): New.
14967         (is_predicated): Use bb_predicate.
14968         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14969         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14970         before processing their successors.
14971         (clean_predicate_lists): Removed.
14972         (find_phi_replacement_condition): Use bb_predicate.
14973         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14974         computations.
14975         (insert_gimplified_predicates): New.
14976         (combine_blocks): Call insert_gimplified_predicates.
14977         (tree_if_conversion): Call free_bb_predicate instead of
14978         clean_predicate_lists.
14979
14980 2010-10-11  Paul Brook  <paul@codesourcery.com>
14981
14982         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14983         * config/arm/arm.c (all_architectures): Change v7e-m default to
14984         cortexm4.
14985         * config/arm/arm-cores.def: Add cortex-m4.
14986         * config/arm/arm-tune.md: Regenerate.
14987
14988 2010-06-11  Jan Hubicka  <jh@suse.cz>
14989
14990         * ipa-pure-const.c (special_builtlin_state): New function.
14991         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14992         (propagate_pure_const): Use it.
14993
14994 2010-06-11  Jan Hubicka  <jh@suse.cz>
14995
14996         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14997         (df_live_alloc): Initialize df_live_scratch when initializing
14998         problem_data.
14999         (df_live_transfer_function): Update uses of df_live_scratch.
15000         (df_live_free): Free problem_data; clear df_live_scratch before
15001         releasing the obstack.
15002         (df_md_free): Free problem data.
15003
15004 2010-06-11  Jan Hubicka  <jh@suse.cz>
15005
15006         * doc/invoke.texi (Wsuggest-attribute): Document.
15007         (Wmissing-noreturn): Remove.
15008         * ipa-pure-const.c (warn_function_noreturn): New function.
15009         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
15010         warn_missing_noreturn.
15011         * common.opt (Wsuggest-attribute=noreturn): New.
15012         * tree-flow.h (warn_function_noreturn): Declare.
15013         * tree-cfg.c (execute_warn_function_noreturn): Use
15014         warn_function_noreturn.
15015         (gate_warn_function_noreturn): New.
15016         (pass_warn_function_noreturn): Update.
15017
15018 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15019
15020         * c-typeck.c (handle_warn_cast_qual): Add loc
15021         parameter. Improve warning message.
15022         (build_c_cast): Pass location to handle_warn_cast_qual.
15023
15024 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
15025
15026         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
15027         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
15028         insn mnemonic.
15029         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
15030
15031 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
15032
15033         Fix bootstap on mips
15034         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
15035         be naming typedefs.
15036
15037 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
15038
15039         * system.h (helper_const_non_const_cast): New inline for
15040         gcc version <= 4.0.
15041         (CONST_CAST2): For gcc version <= 4.0 use
15042         new helper to do const/non-const casting.
15043
15044 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15045
15046         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
15047         * Makefile.in (OBJS-common): Include insn-enums.o.
15048         (insn-enums.o): New rule.
15049         (simple_generated_c): Add insn-enums.c.
15050         (build/genenums.o): New rule.
15051         (genprogmd): Add "enums".
15052         * genconstants.c (print_enum_type): Declare a C string array
15053         for each enum.
15054         * genenums.c: New file.
15055         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
15056         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
15057         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
15058
15059 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15060
15061         * doc/md.texi (define_enum_attr): Document.
15062         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
15063         * read-md.h (lookup_enum_type): Declare.
15064         * read-md.c (lookup_enum_type): New function.
15065         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
15066         * genattrtab.c (attr_desc): Add an enum_name field.
15067         (evaluate_eq_attr): Take the associated attribute as argument.
15068         Get the enum prefix from the enum_name field, if defined.
15069         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
15070         (simplify_test_exp): Pass attr to evaluate_eq_attr.
15071         (add_attr_value): New function, split out from...
15072         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
15073         (write_test_expr): Pass attr to evaluate_eq_attr.
15074         (write_attr_get): Use the enum_name as the enum tag, if defined.
15075         (write_attr_valueq): Use the enum_name as a prefix, if defined.
15076         (find_attr): Initialize enum_name.
15077         (main): Handle DEFINE_ENUM_ATTR.
15078         * gensupport.c (process_rtx): Likewise.
15079         * config/mips/mips.h (mips_tune_attr): Delete.
15080         * config/mips/mips.md (cpu): Use define_attr_enum.
15081
15082 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15083
15084         * doc/md.texi (define_c_enum, define_enum): Document.
15085         * read-md.h (md_constant): Add a parent_enum field.
15086         (enum_value, enum_type): New structures.
15087         (upcase_string, traverse_enum_types): Declare.
15088         * read-md.c (enum_types): New variable.
15089         (upcase_string, add_constant): New functions.
15090         (handle_constants): Don't create the hash table here.
15091         Use add_constant.
15092         (traverse_md_constants): Don't check for a null md_constants.
15093         (decimal_string, handle_enum, traverse_enum_types): New functions.
15094         (read_md_files): Initialize md_constants and md_enums.
15095         * genconstants.c (print_md_constant): Ignore info argument.
15096         Only print constants that belong to no enum.
15097         (print_enum_type): New function.
15098         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
15099         for each defined enum type.
15100         * config/mips/mips.md (processor): New define_enum.
15101         (unspec): New define_c_enum.
15102         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
15103         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
15104         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
15105         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
15106         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
15107         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
15108         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
15109         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
15110         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
15111         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
15112         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
15113         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
15114         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
15115         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
15116         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
15117         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
15118         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
15119         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
15120         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
15121         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
15122         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
15123         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
15124         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15125         (UNSPEC_RDDSP): Move to mips-dsp.md.
15126         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
15127         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
15128         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
15129         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
15130         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
15131         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
15132         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
15133         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
15134         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
15135         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
15136         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
15137         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
15138         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
15139         Moved to mips-dspr2.md.
15140         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
15141         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
15142         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
15143         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
15144         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
15145         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
15146         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15147         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15148         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15149         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15150         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15151         UNSPEC_LOONGSON_PSADBH)
15152         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15153         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15154         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
15155         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15156         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15157         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15158         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
15159         (cpu): Update comment.
15160         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
15161         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
15162         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
15163         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
15164         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
15165         UNSPEC_LOONGSON_PCMPEQ)
15166         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
15167         UNSPEC_LOONGSON_PINSR_0)
15168         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15169         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15170         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15171         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15172         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15173         UNSPEC_LOONGSON_PSADBH)
15174         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15175         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15176         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
15177         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15178         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15179         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15180         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
15181         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
15182         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
15183         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
15184         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
15185         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
15186         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
15187         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
15188         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
15189         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
15190         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
15191         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
15192         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
15193         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
15194         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
15195         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
15196         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
15197         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
15198         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
15199         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
15200         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15201         (UNSPEC_RDDSP): Moved from mips.md.
15202         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
15203         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
15204         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
15205         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
15206         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
15207         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
15208         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
15209         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
15210         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
15211         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
15212         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
15213         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
15214         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
15215         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
15216         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
15217         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
15218         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
15219         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
15220         (UNSPEC_SCC): Moved from mips.md.
15221         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
15222         "processor_type" to "processor".
15223         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
15224         * config/mips/mips.h (processor_type): Delete.
15225         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
15226         "processor_type" to "processor".
15227
15228 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15229
15230         * configure.ac (tm_include_list): Add insn-constants.h.
15231         * configure: Regenerate.
15232         * Makefile.in (GTM_H): Move insn-constants.h here from...
15233         (TM_H): ...here.
15234         * mkconfig.sh: Remove special handling for insn-constants.h.
15235
15236 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15237
15238         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
15239         (BUILD_MD): ...this new variable.
15240         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
15241         that include the old contents of simple_generated_h and
15242         simple_generated_c.
15243         (simple_generated_h, simple_generated_c): Include them.  Add
15244         insn-constants.h.
15245         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
15246         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
15247         Remove these dependencies from the main rule and include
15248         insn-conditions.md in the command line only if it appears
15249         in the dependency list.
15250         (insn-constants.h, s-constants): Delete.
15251         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
15252         or gensupport.h.
15253         (build/genmddeps.o): Likewise.
15254         (genprogrtl): New variable that contains everything from genprogmd
15255         except mddeps and constants.
15256         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
15257         depend on $(BUILD_MD)
15258         (genprog): New variable.  Make these programs depend on
15259         $(BUILD_ERRORS).
15260         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
15261         (main): Use read_md_files instead of init_rtx_reader_args.
15262         * genconstants.c: As for genmddeps.c.
15263         * read-md.h (read_skip_construct): Declare.
15264         * read-md.c (read_skip_construct): New function.
15265         (handle_file): Allow a null handle_directive, skipping the
15266         construct if so.
15267         (parse_include): Update the comment accordingly.
15268
15269 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15270
15271         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
15272         * genmddeps.c: Include read-md.h.
15273         (main): Call init_rtx_reader_args instead of init_md_reader_args.
15274         * genattr.c (main): Likewise.
15275         * genattrtab.c (main): Likewise.
15276         * genautomata.c (main): Likewise.
15277         * gencodes.c (main): Likewise.
15278         * genconditions.c (main): Likewise.
15279         * genconfig.c (main): Likewise.
15280         * genconstants.c (main): Likewise.
15281         * genemit.c (main): Likewise.
15282         * genextract.c (main): Likewise.
15283         * genflags.c (main): Likewise.
15284         * genopinit.c (main): Likewise.
15285         * genoutput.c (main): Likewise.
15286         * genpeep.c (main): Likewise.
15287         * genrecog.c (main): Likewise.
15288         * genpreds.c (main): Likewise.
15289         * gensupport.h (in_fname): Move to read-md.h.
15290         (init_md_reader_args_cb): Rename to...
15291         (init_rtx_reader_args_cb): ...this and return a bool.
15292         (init_md_reader_args): Rename to...
15293         (init_rtx_reader_args): ...this and return a bool.
15294         (include_callback): Move to read-md.h.
15295         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
15296         (file_name_list, first_dir_md_include): Move to read-md.c
15297         (first_bracket_include): Delete unused variable.
15298         (last_dir_md_include): Move to read-md.c.
15299         (process_include): Delete, moving code to read-md.c:handle_include.
15300         (process_rtx): Don't handle INCLUDE.
15301         (save_string): Delete.
15302         (rtx_handle_directive): New function.
15303         (init_md_reader_args_cb): Rename to...
15304         (init_rtx_reader_args_cb): ...this and return a boolean success value.
15305         Use read_md_args.
15306         (init_md_reader_args): Rename to...
15307         (init_rtx_reader_args): ...this and return a boolean success value.
15308         * rtl.def (INCLUDE): Delete.
15309         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
15310         argument.
15311         * read-rtl.c (read_conditions): Don't gobble ')' here.
15312         (read_mapping): Likewise.
15313         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
15314         Handle top-level non-rtx constructs here rather than in read_rtx_1.
15315         Store the whole queue in *X.  Remove call to init_md_reader.
15316         (read_rtx_1): Rename to...
15317         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
15318         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
15319         here.
15320         (read_nested_rtx): New function.  Handle (nil) here rather than
15321         in read_rtx_code.
15322         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
15323         gobble ')' here.
15324         * read-md.h (directive_handler_t): New type.
15325         (in_fname, include_callback): Moved from read-md.h.
15326         (read_constants, init_md_reader): Delete.
15327         (read_md_files): Declare.
15328         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
15329         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
15330         from gensupport.c.
15331         (read_constants): Rename to...
15332         (handle_constants): ...this.  Don't gobble ')' here.
15333         (handle_include, handle_file, handle_toplevel_file)
15334         (parse_include): New functions, mostly taken from gensupport.c.
15335         (init_md_reader): Subsume into...
15336         (read_md_files): ...this new function.
15337
15338 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15339
15340         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
15341         (unread_char): Decrement read_md_lineno after putting back '\n'.
15342         * read-md.c (fatal_with_file_and_line): Push back any characters
15343         that we decide not to add to the context.
15344         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
15345         fatal_expected_char in cases where '/' ends a line (for example).
15346         (read_name): Don't increment read_md_lineno here.
15347         (read_escape): Likewise.
15348         (read_quoted_string): Likewise.
15349         (read_braced_string): Likewise.
15350
15351 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15352
15353         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
15354         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
15355         * genconstants.c: Include read-md.h.
15356         * read-rtl.c (md_constants): Move to read-md.c.
15357         (md_name): Move to read-md.h.
15358         (initialize_iterators): Use leading_string_hash instead of def_hash
15359         and leading_string_eq_p instead of def_name_eq_p.
15360         (read_name): Move to read-md.c.
15361         (def_hash, def_name_eq_p): Delete.
15362         (read_constants, traverse_md_constants): Move to read-md.c.
15363         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
15364         * read-md.h: Include hashtab.h.
15365         (md_name): Moved from read-rtl.c.
15366         (md_constant): Moved from read-md.h.
15367         (leading_string_hash, leading_string_eq_p, read_name)
15368         (read_constants, traverse_md_constants): Declare.
15369         * read-md.c (md_constants): Moved from read-rtl.c.
15370         (leading_string_hash, leading_string_eq_p): New functions.
15371         (read_name, read_constants, traverse_md_constants): Moved from
15372         read-rtl.c.
15373
15374 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15375
15376         * read-rtl.c (md_name): New structure.
15377         (read_name): Take an md_name instead of a buffer pointer.
15378         Use the "string" field instead of strcpy when expanding constants.
15379         (read_constants): Remove the tmp_char argument.  Update the calls
15380         to read_name, using two local name buffers instead of the tmp_char
15381         argument.  Merge the constant-creation code.
15382         (read_conditions): Remove the tmp_char argument.  Update the calls
15383         to read_name, using a local name buffer instead of the tmp_char
15384         argument.
15385         (read_mapping): Replace tmp_char variable with a local name buffer.
15386         Update the calls to read_name.
15387         (read_rtx_1): Likewise.  Update the calls to read_constants and
15388         read_conditions.
15389
15390 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15391
15392         * Makefile.in (build/read-md.o): Depend on errors.h.
15393         * read-md.h (error_with_line): Declare.
15394         * read-md.c: Include errors.h.
15395         (message_with_line_1): New function, extracted from...
15396         (message_with_line): ...here.
15397         (error_with_line): New function.
15398         * genattrtab.c: If a call to message_with_line is followed by
15399         "have_error = 1;", replace both statements with a call to
15400         error_with_line.
15401         * genoutput.c: Likewise.
15402         * genpreds.c: Likewise.
15403         * genrecog.c: If a call to message_with_line is followed by
15404         "error_count++;", replace both statements with a call to
15405         error_with_line.
15406         (errorcount): Delete.
15407         (main): Don't check it.
15408         * gensupport.c: If a call to message_with_line is followed by
15409         "errors = 1;", replace both statements with a call to error_with_line.
15410         (errors): Delete.
15411         (process_define_cond_exec): Check have_error instead of errors.
15412         (init_md_reader_args_cb): Likewise.  Don't set errors.
15413
15414 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15415
15416         * read-md.h (read_md_file): Declare.
15417         (read_char, unread_char): New functions.
15418         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15419         (read_quoted_string, read_string): Remove FILE * argument.
15420         * read-md.c (read_md_file): New variable.
15421         (read_md_filename, read_md_lineno): Update comments and remove
15422         unnecessary initialization.
15423         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15424         (read_escape, read_quoted_string, read_braced_string, read_string):
15425         Remove FILE * argument.  Update calls accordingly, using read_char
15426         and unread_char instead of getc and ungetc.
15427         * rtl.h (read_rtx): Remove FILE * argument.
15428         * read-rtl.c (iterator_group): Remove FILE * argument from
15429         "find_builtin".
15430         (iterator_traverse_data): Remove "infile" field.
15431         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
15432         (add_mapping, read_name, read_constants, read_conditions)
15433         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
15434         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
15435         Remove file arguments from all calls, using read_char and unread_char
15436         instead of getc and ungetc.
15437         * gensupport.c (process_include): Preserve read_md_file around
15438         the include.  Set read_md_file to the handle of the included file.
15439         Update call to read_rtx.
15440         (init_md_reader_args_cb): Set read_md_file to the handle of the file
15441         and remove local FILE *.  Update calls to read_rtx.
15442
15443 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15444
15445         * read-md.h (read_rtx_lineno): Rename to...
15446         (read_md_lineno): ...this.
15447         (read_rtx_filename): Rename to...
15448         (read_md_filename): ...this.
15449         (copy_rtx_ptr_loc): Rename to...
15450         (copy_md_ptr_loc): ...this.
15451         (print_rtx_ptr_loc): Rename to...
15452         (print_md_ptr_loc): ...this.
15453         * read-md.c: Likewise.  Update references after renaming.
15454         (string_obstack): Replace RTL with MD in comment.
15455         (set_rtx_ptr_loc): Rename to...
15456         (set_md_ptr_loc): ...this.
15457         (get_rtx_ptr_loc): Rename to...
15458         (get_md_ptr_loc): ...this.
15459         * genconditions.c: Update references after renaming.
15460         * genemit.c: Likewise.
15461         * genoutput.c: Likewise.
15462         * genpreds.c: Likewise.
15463         * gensupport.c: Likewise.
15464         * read-rtl.c: Likewise.
15465
15466 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15467
15468         * Makefile.in (READ_MD_H): New variable.
15469         (BUILD_RTL): Add build/read-md.o.
15470         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15471         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15472         (build/genattrtab.o, build/genconditions.o build/genemit.o)
15473         (build/genextract.o, build/genflags.o, build/genoutput.o)
15474         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15475         (build/read-md.o): New rule.
15476         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15477         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15478         * coretypes.h: ...here.
15479         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15480         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15481         * genattr.c: Include read-md.h.
15482         * genattrtab.c: Likewise.
15483         * genconditions.c: Likewise.
15484         * genemit.c: Likewise.
15485         * genextract.c: Likewise.
15486         * genflags.c: Likewise.
15487         * genoutput.c: Likewise.
15488         * genpreds.c: Likewise.
15489         * genrecog.c: Likewise.
15490         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15491         (join_c_conditions, print_c_condition, read_rtx_filename)
15492         (read_rtx_lineno): Move to read-md.h.
15493         * read-rtl.c: Include read-md.h.
15494         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15495         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15496         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15497         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15498         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15499         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15500         (read_braced_string, read_string): Move to read-md.c.
15501         (read_rtx): Move some initialization to init_md_reader and call
15502         init_md_reader here.
15503         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15504         Move to read-md.h.
15505         * gensupport.c: Include read-md.h.
15506         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15507         * read-md.h, read-md.c: New files.
15508
15509 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
15510
15511         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15512         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15513         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15514         * config/moxie/moxie.c (moxie_function_value): Make static.
15515         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15516         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15517
15518 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15519
15520         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15521         * dbgcnt.def (tree_sra): New counter.
15522         * tree-sra.c: Include dbgcnt.h.
15523         (gate_intra_sra): Check tree_sra debug counter.
15524
15525 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15526
15527         PR tree-optimization/44258
15528         * tree-sra.c (build_access_subtree): Return false iff there is a
15529         partial overlap.
15530         (build_access_trees): Likewise.
15531         (analyze_all_variable_accesses): Disqualify candidates if
15532         build_access_trees returns true for them.
15533
15534 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
15535
15536         PR debug/41371
15537         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15538         tail-recurse into canonical node.  Fast-forward over
15539         non-canonical VALUEs.
15540
15541 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15542
15543         PR boostrap/44470
15544         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15545         (*addsi_1_zext) <TYPE_LEA>: Likewise.
15546         (add lea splitter): Likewise.
15547         (add_zext lea splitter): Likewise.
15548
15549 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
15550
15551         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15552
15553 2010-06-10  Jan Hubicka  <jh@suse.cz>
15554
15555         * df-problems.c (df_live_problem_data): Add live_bitmaps.
15556         (df_live_alloc): Initialize problem data and live_osbtacks.
15557         (df_live_finalize): Remove obstack, problem data; do not
15558         clear all bitmaps.
15559         (df_live_top_dump, df_live_bottom_dump): Do not dump old
15560         data when not allocated.
15561         (df_live_verify_solution_start): Do not allocate problem data.
15562         (df_live_verify_solution_end): Check if out is allocated.
15563         (struct df_md_problem_data): New structure.
15564         (df_md_alloc): Allocate problem data.
15565         (df_md_free): Free problem data; do not clear bitmaps.
15566
15567 2010-06-10  Jan Beulich  <jbeulich@novell.com>
15568
15569         PR bootstrap/37304
15570         * configure.ac: Replace $() with ${} when intending to expand
15571         variables rather than invoking commands.
15572         * configure: Re-generate.
15573
15574 2010-06-10  Jan Hubicka  <jh@suse.cz>
15575
15576         PR rtl-optimization/44460
15577         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15578         TYPE_NEEDS_CONSTRUCTING sanity check.
15579
15580 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
15581
15582         * doc/include/fdl.texi: Move to GFDL version 1.3.
15583
15584         * doc/cpp.texi: Move to GFDL version 1.3.
15585         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
15586         * doc/gccint.texi: Move to GFDL version 1.3.
15587         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
15588         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
15589         * doc/invoke.texi: Move to GFDL version 1.3.
15590
15591 2010-06-09  Jan Hubicka  <jh@suse.cz>
15592
15593         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15594         Break out from ...
15595         (propagate) ... here; swap the order.
15596
15597 2010-06-09  Jan Hubicka  <jh@suse.cz>
15598
15599         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15600         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15601         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15602         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15603
15604 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15605
15606         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15607         Do not the gather memory reference in the outer loop if the step
15608         is not a constant.
15609
15610 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15611
15612         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15613         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15614         8 to 4.  Minor change of the related comments.
15615
15616 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15617
15618         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15619         the scev analysis when the variable is not used outside the loop
15620         in a close phi node: call compute_overall_effect_of_inner_loop.
15621
15622 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15623
15624         * graphite-sese-to-poly.c (single_pred_cond): Renamed
15625         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
15626         (build_sese_conditions_before): Renamed call to single_pred_cond.
15627         (build_sese_conditions_after): Same.
15628
15629 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15630
15631         * graphite-poly.h: Fix comments and indentation.
15632         * graphite-sese-to-poly.c: Same.
15633         (build_sese_conditions_before): Compute stmt and gbb only when needed.
15634         * tree-chrec.c: Fix comments and indentation.
15635         (tree-ssa-loop-niter.c): Same.
15636
15637 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15638
15639         PR rtl-optimization/42461
15640         * dce.c (deletable_insn_p): Return true for const or pure calls again.
15641         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15642
15643 2010-06-09  Jan Hubicka  <jh@suse.cz>
15644
15645         * bitmap.c (bitmap_and): Walk array forward.
15646         (bitmap_and_compl_into): Likewise.
15647         (bitmap_xor): Likewise.
15648         (bitmap_xor_into):  Likewise.
15649         (bitmap_equal_p): Likewise.
15650         (bitmap_intersect_p): Likewise.
15651         (bitmap_intersect_compl_p): Likewise.
15652         (bitmap_ior_and_into): Likewise.
15653         (bitmap_elt_copy): Likewise.
15654         (bitmap_and_compl): Likewise.
15655         (bitmap_elt_ior): Likewise.
15656
15657 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
15658
15659         * opts-common.c (prune_options): Ensure replacement argv array
15660         is correctly terminated by a NULL entry.
15661
15662 2010-06-09  Jan Hubicka  <jh@suse.cz>
15663
15664         * cgraph.h (varpool_first_static_initializer,
15665         varpool_next_static_initializer): Make checking only when
15666         checking enabled.
15667         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15668         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15669         gcc_assert to gcc_checking_assert.
15670         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15671         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15672         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15673         op_iter_init_phiuse, op_iter_init_phidef,
15674         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15675         gcc_checking_assert.
15676         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15677         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15678         partition_is_global, live_on_entry, live_on_exit,
15679         live_merge_and_clear): Likewise.
15680         * system.h (gcc_checking_assert): New macro.
15681         * gimple.h (set_bb_seq): Use gcc_checking_assert.
15682
15683 2010-06-09  Jason Merrill  <jason@redhat.com>
15684
15685         * Makefile.in (TAGS): Collect tags info from c-family.
15686
15687 2010-06-09  Jan Hubicka  <jh@suse.cz>
15688
15689         * gimple.h (gcc_gimple_checking_assert): New macro.
15690         (gimple_set_def_ops, gimple_set_use_ops,
15691         gimple_set_vuse, gimple_set_vdef,
15692         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15693         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15694         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15695         gimple_asm_output_op, gimple_asm_output_op_ptr,
15696         gimple_asm_set_output_op, gimple_asm_clobber_op,
15697         gimple_asm_set_clobber_op, gimple_asm_label_op,
15698         gimple_asm_set_label_op, gimple_try_set_kind,
15699         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15700         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15701         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15702         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15703         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15704         gimple_omp_for_set_initial, gimple_omp_for_final,
15705         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15706         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15707         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15708         conditional with ENABLE_GIMPLE_CHECKING.
15709         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15710
15711 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
15712
15713         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15714         (get_computation_cost_at): Use it.
15715         (determine_use_iv_cost_condition): Likewise.
15716         (determine_iv_cost): Likewise.
15717
15718 2010-06-09  Richard Guenther  <rguenther@suse.de>
15719
15720         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15721         replace constants.
15722
15723 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
15724
15725         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15726
15727 2010-06-09  Martin Jambor  <mjambor@suse.cz>
15728
15729         PR tree-optimization/44423
15730         * tree-sra.c (dump_access): Dump also grp_assignment_read.
15731         (analyze_access_subtree): Pass negative allow_replacements to children
15732         if the current type is scalar.
15733
15734 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15735
15736         PR testsuite/42843
15737         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15738         * doc/plugins.texi (Plugin license check): Update information
15739         on type of plugin_is_GPL_compatible.
15740         * Makefile.in (PLUGINCC): Define as $(COMPILER).
15741         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15742
15743 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15744
15745         * config/arm/arm.c (thumb2_reorg): New function.
15746         (arm_reorg): Call it.
15747         * config/arm/thumb2.md (define_peephole2 for flag clobbering
15748         arithmetic operations): Delete.
15749
15750 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
15751
15752         PR target/44067
15753         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15754         e500v2 target.
15755
15756 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15757
15758         PR plugins/44459
15759         * gcc-plugin.h: Encapsulate all declarations in extern "C".
15760
15761 2010-06-08  Jan Hubicka  <jh@suse.cz>
15762
15763         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15764         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15765
15766 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
15767
15768         PR tree-optimization/39874
15769         PR middle-end/28685
15770         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15771         Declare.
15772         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15773         same_bool_result_p): New.
15774         (and_var_with_comparison, and_var_with_comparison_1,
15775         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15776         (or_var_with_comparison, or_var_with_comparison_1,
15777         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15778         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15779         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15780         of combine_comparisons.
15781         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15782
15783 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
15784
15785         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15786         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15787         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15788         pdp11_function_value_regno_p): New functions.
15789         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15790         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15791
15792 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
15793
15794         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15795         Thumb-2 in the MINUS case.
15796
15797 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15798
15799         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15800
15801         * doc/gty.texi (GTY Options): Document typed GC allocation and
15802         variable_size GTY option.
15803
15804         * ggc-internal.h: New.
15805
15806         * ggc.h: Update copyright year.
15807         (digit_string): Move to stringpool.c.
15808         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15809         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15810         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15811         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15812         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15813         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15814         (ggc_force_collect, ggc_get_size, ggc_statistics)
15815         (ggc_print_common_statistics): Move to ggc-internal.h.
15816         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15817         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15818         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15819         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15820         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15821         (ggc_alloc_zone_pass_stat): Remove.
15822         (ggc_internal_alloc_stat, ggc_internal_alloc)
15823         (ggc_internal_cleared_alloc_stat): New.
15824         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15825         (ggc_internal_vec_alloc_stat)
15826         (ggc_internal_cleared_vec_alloc_stat)
15827         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15828         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15829         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15830         (ggc_cleared_alloc_ptr_array_two_args): New.
15831         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15832         (ggc_splay_alloc): Change the type of the first argument to
15833         enum gt_types_enum.
15834         (ggc_alloc_string): Make macro.
15835         (ggc_alloc_string_stat): New.
15836         (ggc_strdup): Redefine.
15837         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15838         (ggc_alloc_rtvec_sized): New.
15839         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15840         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15841         (ggc_internal_cleared_alloc_zone_stat)
15842         (ggc_internal_zone_alloc_stat)
15843         (ggc_internal_zone_cleared_alloc_stat)
15844         (ggc_internal_zone_vec_alloc_stat)
15845         (ggc_alloc_zone_rtx_def_stat)
15846         (ggc_alloc_zone_tree_node_stat)
15847         (ggc_alloc_zone_cleared_tree_node_stat)
15848         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15849
15850         * ggc-common.c: Include ggc-internal.h.
15851         (ggc_internal_cleared_alloc_stat): Rename from
15852         ggc_alloc_cleared_stat.
15853         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15854         (ggc_calloc): Remove.
15855         (ggc_cleared_alloc_htab_ignore_args): New.
15856         (ggc_cleared_alloc_ptr_array_two_args): New.
15857         (ggc_splay_alloc): Add obj_type parameter.
15858         (init_ggc_heuristics): Formatting fixes.
15859
15860         * ggc-none.c: Update copyright year.
15861         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15862         (ggc_alloc_cleared_stat): Rename to
15863         ggc_internal_cleared_alloc_stat.
15864         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15865
15866         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15867         Remove references to ggc_alloc in comments.
15868         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15869         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15870         (new_ggc_zone, destroy_ggc_zone): Remove.
15871         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15872
15873         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15874         ggc_alloc in comments.
15875         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15876         (ggc_internal_alloc_zone_pass_stat): New.
15877         (ggc_internal_cleared_alloc_zone_stat): New.
15878         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15879         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15880         (new_ggc_zone, destroy_ggc_zone): Remove.
15881
15882         * stringpool.c: Update copyright year.  Include ggc-internal.h
15883         (digit_vector): Make static.
15884         (digit_string): Moved from ggc.h.
15885         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15886         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15887
15888         * Makefile.in (GGC_INTERNAL_H): New.
15889         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15890         $(GGC_INTERNAL_H) to dependencies.
15891
15892         * gentype.c: Update copyright year.
15893         (walk_type): Accept variable_size GTY option.
15894         (USED_BY_TYPED_GC_P): New macro.
15895         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15896         whitespace at the end of strings.
15897         (get_type_specifier, variable_size_p): New functions.
15898         (alloc_quantity, alloc_zone): New enums.
15899         (write_typed_alloc_def): New function.
15900         (write_typed_struct_alloc_def): Likewise.
15901         (write_typed_typed_typedef_alloc_def): Likewise.
15902         (write_typed_alloc_defns): Likewise.
15903         (output_typename, write_splay_tree_allocator_def): Likewise.
15904         (write_splay_tree_allocators): Likewise.
15905         (main): Call write_typed_alloc_defns and
15906         write_splay_tree_allocators.
15907
15908         * lto-streamer.h (lto_file_decl_data_ptr): New.
15909
15910         * passes.c (order): Define using cgraph_node_ptr.
15911
15912         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15913         ht_identifier_ptr.
15914
15915         * gimple.h (union gimple_statement_d): Likewise.
15916
15917         * rtl.h (struct rtx_def): Likewise.
15918         (struct rtvec_def): Likewise.
15919
15920         * tree.h (union tree_node): Likewise.
15921
15922         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15923
15924         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15925
15926         * tree-scalar-evolution.c (scev_initialize): Likewise.
15927
15928         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15929
15930         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15931
15932         * omp-low.c (lower_omp_critical): Likewise.
15933
15934         * bitmap.h (struct bitmap_head_def): Update comment to not
15935         reference ggc_alloc.
15936
15937         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15938
15939         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15940
15941         * ipa-prop.c (duplicate_ggc_array): Rename to
15942         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15943         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15944
15945         * gimple.c (gimple_alloc_stat): Use
15946         ggc_alloc_cleared_gimple_statement_d_stat.
15947
15948         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15949
15950         * tree.c (make_node_stat): Use
15951         ggc_alloc_zone_cleared_tree_node_stat.
15952         (make_tree_vec_stat): Likewise.
15953         (build_vl_exp_stat): Likewise.
15954         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15955         (make_tree_binfo_stat): Likewise.
15956         (tree_cons_stat): Likewise.
15957
15958         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15959         (shallow_copy_rtx_stat): Likewise.
15960         (make_node_stat): Likewise.
15961
15962         * lto-symtab.c: Fix comment.
15963
15964         * tree-cfg.c (create_bb): Update comment to not reference
15965         ggc_alloc_cleared.
15966         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15967
15968         * varpool.c (varpool_node): Use typed GC allocation.
15969         (varpool_extra_name_alias): Likewise.
15970
15971         * varasm.c (emutls_decl): Likewise.
15972         (get_unnamed_section): Likewise.
15973         (get_noswitch_section): Likewise.
15974         (get_section): Likewise.
15975         (get_block_for_section): Likewise.
15976         (build_constant_desc): Likewise.
15977         (create_constant_pool): Likewise.
15978         (force_const_mem): Likewise.
15979
15980         * tree.c (build_vl_exp_stat): Likewise.
15981         (build_real): Likewise.
15982         (build_string): Likewise.
15983         (decl_debug_expr_insert): Likewise.
15984         (decl_value_expr_insert): Likewise.
15985         (type_hash_add): Likewise.
15986         (build_omp_clause): Likewise.
15987
15988         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15989
15990         * tree-ssa.c (init_tree_ssa): Likewise.
15991
15992         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15993
15994         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15995
15996         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15997
15998         * tree-ssa-alias.c (get_ptr_info): Likewise.
15999
16000         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
16001
16002         * tree-phinodes.c (allocate_phi_node): Likewise.
16003
16004         * tree-iterator.c (tsi_link_before): Likewise.
16005         (tsi_link_after): Likewise.
16006
16007         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
16008
16009         * tree-dfa.c (create_var_ann): Likewise.
16010
16011         * tree-cfg.c (create_bb): Likewise.
16012
16013         * toplev.c (alloc_for_identifier_to_locale): Likewise.
16014         (general_init): Likewise.
16015
16016         * stringpool.c (stringpool_ggc_alloc): Likewise.
16017         (gt_pch_save_stringpool): Likewise.
16018
16019         * sese.c (if_region_set_false_region): Likewise.
16020
16021         * passes.c (do_per_function_toporder): Likewise.
16022
16023         * optabs.c (set_optab_libfunc): Likewise.
16024         (set_conv_libfunc): Likewise.
16025
16026         * lto-symtab.c (lto_symtab_register_decl): Likewise.
16027
16028         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16029         (input_eh_region): Likewise.
16030         (input_eh_lp): Likewise.
16031         (make_new_block): Likewise.
16032         (unpack_ts_real_cst_value_fields): Likewise.
16033
16034         * lto-section-in.c (lto_new_in_decl_state): Likewise.
16035
16036         * lto-cgraph.c (input_node_opt_summary): Likewise.
16037
16038         * loop-init.c (loop_optimizer_init): Likewise.
16039
16040         * lambda.h (lambda_vector_new): Likewise.
16041
16042         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
16043
16044         * ira.c (update_equiv_regs): Likewise.
16045
16046         * ipa.c (cgraph_node_set_new): Likewise.
16047         (cgraph_node_set_add): Likewise.
16048         (varpool_node_set_new): Likewise.
16049         (varpool_node_set_add): Likewise.
16050
16051         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
16052         (duplicate_ipa_jump_func_array): Likewise.
16053         (ipa_read_node_info): Likewise.
16054
16055         * ipa-cp.c (ipcp_create_replace_map): Likewise.
16056
16057         * integrate.c (get_hard_reg_initial_val): Likewise.
16058
16059         * gimple.c (gimple_alloc_stat): Likewise.
16060         (gimple_build_omp_for): Likewise.
16061         (gimple_seq_alloc): Likewise.
16062         (gimple_copy): Likewise.
16063
16064         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
16065         (gsi_insert_after_without_update): Likewise.
16066
16067         * function.c (add_frame_space): Likewise.
16068         (insert_temp_slot_address): Likewise.
16069         (assign_stack_temp_for_type): Likewise.
16070         (allocate_struct_function): Likewise.
16071         (types_used_by_var_decl_insert): Likewise.
16072
16073         * except.c (init_eh_for_function): Likewise.
16074         (gen_eh_region): Likewise.
16075         (gen_eh_region_catch): Likewise.
16076         (gen_eh_landing_pad): Likewise.
16077         (add_call_site): Likewise.
16078
16079         * emit-rtl.c (get_mem_attrs): Likewise.
16080         (get_reg_attrs): Likewise.
16081         (start_sequence): Likewise.
16082         (init_emit): Likewise.
16083
16084         * dwarf2out.c (new_cfi): Likewise.
16085         (queue_reg_save): Likewise.
16086         (dwarf2out_frame_init): Likewise.
16087         (new_loc_descr): Likewise.
16088         (find_AT_string): Likewise.
16089         (new_die): Likewise.
16090         (add_var_loc_to_decl): Likewise.
16091         (clone_die): Likewise.
16092         (clone_as_declaration): Likewise.
16093         (break_out_comdat_types): Likewise.
16094         (new_loc_list): Likewise.
16095         (loc_descriptor): Likewise.
16096         (add_loc_descr_to_each): Likewise.
16097         (add_const_value_attribute): Likewise.
16098         (tree_add_const_value_attribute): Likewise.
16099         (add_comp_dir_attribute): Likewise.
16100         (add_name_and_src_coords_attributes): Likewise.
16101         (lookup_filename): Likewise.
16102         (store_vcall_insn): Likewise.
16103         (dwarf2out_init): Likewise.
16104
16105         * dbxout.c (dbxout_init): Likewise.
16106
16107         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16108
16109         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16110
16111         * config/score/score7.c (score7_output_external): Likewise.
16112
16113         * config/score/score3.c (score3_output_external): Likewise.
16114
16115         * config/s390/s390.c (s390_init_machine_status): Likewise.
16116
16117         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16118         (rs6000_init_machine_status): Likewise.
16119         (output_toc): Likewise.
16120
16121         * config/pa/pa.c (pa_init_machine_status): Likewise.
16122         (get_deferred_plabel): Likewise.
16123
16124         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16125
16126         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16127
16128         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16129
16130         * config/mep/mep.c (mep_init_machine_status): Likewise.
16131         (mep_note_pragma_flag): Likewise.
16132
16133         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16134
16135         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16136
16137         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16138
16139         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16140         (i386_pe_maybe_record_exported_symbol): Likewise.
16141
16142         * config/i386/i386.c (get_dllimport_decl): Likewise.
16143         (ix86_init_machine_status): Likewise.
16144         (assign_386_stack_local): Likewise.
16145
16146         * config/frv/frv.c (frv_init_machine_status): Likewise.
16147
16148         * config/darwin.c (machopic_indirection_name): Likewise.
16149
16150         * config/cris/cris.c (cris_init_machine_status): Likewise.
16151
16152         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16153
16154         * config/avr/avr.c (avr_init_machine_status): Likewise.
16155
16156         * config/arm/arm.c (arm_init_machine_status): Likewise.
16157
16158         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16159         (alpha_need_linkage): Likewise.
16160         (alpha_use_linkage): Likewise.
16161
16162         * cgraph.c (cgraph_allocate_node): Likewise.
16163         (cgraph_create_edge_1): Likewise.
16164         (cgraph_create_indirect_edge): Likewise.
16165         (cgraph_add_asm_node): Likewise.
16166
16167         * cfgrtl.c (init_rtl_bb_info): Likewise.
16168
16169         * cfgloop.c (alloc_loop): Likewise.
16170         (rescan_loop_exit): Likewise.
16171
16172         * cfg.c (init_flow): Likewise.
16173         (alloc_block): Likewise.
16174         (unchecked_make_edge): Likewise.
16175
16176         * c-parser.c (c_parse_init): Likewise.
16177         (c_parse_file): Likewise.
16178
16179         * c-decl.c (bind): Likewise.
16180         (record_inline_static): Likewise.
16181         (push_scope): Likewise.
16182         (make_label): Likewise.
16183         (lookup_label_for_goto): Likewise.
16184         (finish_struct): Likewise.
16185         (finish_enum): Likewise.
16186         (c_push_function_context): Likewise.
16187
16188         * bitmap.c (bitmap_element_allocate): Likewise.
16189         (bitmap_gc_alloc_stat): Likewise.
16190
16191         * alias.c (record_alias_subset): Likewise.
16192         (init_alias_analysis): Likewise.
16193
16194 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
16195
16196         * fold-const.c (fold_comparison): Remove redundant parenthesis.
16197         * tree-inline.c (expand_call_inline): Pass translated return value of
16198         cgraph_inline_failed_string to diagnostic function.
16199
16200 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
16201             Shujing Zhao  <pearly.zhao@oracle.com>
16202
16203         PR c/37724
16204         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
16205         implicit bad conversions is initialization.
16206         (error_init): Use gmsgid instead of msgid for argument name and change
16207         the call for error.
16208         (pedwarn_init): Use gmsgid instead of msgid for argument name and
16209         change the call for pedwarn.
16210         (warning_init): Use gmsgid instead of msgid for argument name and
16211         change the call for warning.
16212
16213 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
16214
16215         * config/mips/mips-protos.h (mips_print_operand): Delete.
16216         (mips_print_operand_address): Delete.
16217         * config/mips/mips.h (mips_print_operand_punct): Delete.
16218         (PRINT_OPERAND): Delete.
16219         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16220         (PRINT_OPERAND_ADDRESS): Delete.
16221         * config/mips/mips.c (mips_print_operand_punct): Make static.
16222         (mips_print_operand_address): Make static.
16223         (mips_print_operand): Make static.  Call
16224         mips_print_operand_punct_valid_p.
16225         (mips_print_operand_punct_valid_p): New function.
16226         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16227         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16228
16229 2010-06-07  Jan Hubicka  <jh@suse.cz>
16230
16231         PR middle-end/44454
16232         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
16233         are allocated.
16234
16235 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16236
16237         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
16238         name of RECORD.
16239
16240 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16241
16242         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16243         attributes): Document gas.
16244
16245 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
16246
16247         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
16248         <TYPE_LEA>: Split instruction.
16249         <default>: Remove alternative 2 handling.
16250         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
16251         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
16252         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
16253
16254         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
16255         (ashift_zext lea splitter): Use DImode for multiplication.
16256
16257         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
16258         to generate addition.
16259
16260 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
16261
16262         * common.opt (fira-verbose): Use Var.
16263         (fpcc-struct-return): Use Init instead of VarExists.
16264         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
16265         toplev.c.
16266         * flags.h (flag_signed_char, flag_short_enums,
16267         flag_pcc_struct_return, flag_ira_verbose,
16268         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
16269         * toplev.c (flag_detailed_statistics, flag_signed_char,
16270         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
16271         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
16272         * toplev.h (flag_crossjumping, flag_if_conversion,
16273         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
16274         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
16275         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
16276         flag_cprop_registers, time_report, flag_ira_loop_pressure,
16277         flag_ira_coalesce, flag_ira_move_spills,
16278         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
16279
16280 2010-06-07  Jan Hubicka  <jh@suse.cz>
16281
16282         * df-core.c (df_analyze_problem): Do verification after allocation.
16283
16284         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
16285         (df_lr_alloc): Initialize problem data; move bitmaps to
16286         lr_bitmaps obstack.
16287         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
16288         (df_lr_verify_solution_start): Do not initialize problem data;
16289         allocate bitmaps in lr_bitmaps.
16290         (df_lr_verify_solution_end): Do not free problem data.
16291
16292 2010-06-07  Jan Hubicka  <jh@suse.cz>
16293
16294         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
16295         if caller is noreturn.
16296         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
16297         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
16298         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
16299         * ipa-pure-const.c (check_decl): Add IPA parameter.
16300         (state_from_flags): New function.
16301         (better_state, worse_state): New functions.
16302         (check_call): When in IPA mode, do not care about callees.
16303         (check_load, check_store): Update.
16304         (check_ipa_load, check_ipa_store): New.
16305         (check_stmt): When in IPA mode, use IPA checkers.
16306         (analyze_function): Use state_from_flags.
16307         (propagate): Check indirect edges and references.
16308
16309 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
16310
16311         PR rtl-optimization/44404
16312         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
16313         of count_occurrences to see if it's safe to modify mem_insn.
16314
16315 2010-06-07  Richard Guenther  <rguenther@suse.de>
16316
16317         * gimplify.c (gimplify_cleanup_point_expr): For empty body
16318         and EH-only cleanup drop the cleanup instead of inserting it
16319         unconditionally.
16320
16321 2010-06-07  Ira Rosen  <irar@il.ibm.com>
16322
16323         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
16324         documentation.
16325         * targhooks.c (default_builtin_vectorization_cost): New function.
16326         * targhooks.h (default_builtin_vectorization_cost): Declare.
16327         * target.h (enum vect_cost_for_stmt): Define.
16328         (builtin_vectorization_cost): Change argument and comment.
16329         * tree-vectorizer.h: Remove cost model macros.
16330         * tree-vect-loop.c: Include target.h.
16331         (vect_get_cost): New function.
16332         (vect_estimate_min_profitable_iters): Replace cost model macros with
16333         calls to vect_get_cost.
16334         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
16335         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
16336         default implementation.
16337         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
16338         calls to target hook builtin_vectorization_cost.
16339         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
16340         Likewise.
16341         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
16342         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
16343         implementation to return costs.
16344         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16345         * config/spu/spu.h: Remove vectorizer cost model macros.
16346         * config/i386/i386.h: Likewise.
16347         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
16348         a call to target hook builtin_vectorization_cost.
16349
16350 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
16351
16352         PR target/44319
16353         * config/i386/i386.c (override_options): Turn zee pass on for level 2
16354         and above and defer till target is known.
16355         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
16356         turn off otherwise.
16357
16358 2010-05-25  Jan Hubicka  <jh@suse.cz>
16359
16360         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
16361         (df_compact_blocks): Likewise.
16362         * df.h (struct df): Turn hardware_regs_used,
16363         regular_block_artificial_uses, eh_block_artificial_uses,
16364         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
16365         bitmap_head.
16366         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
16367         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
16368         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
16369         df_scan_blocks, df_insn_delete, df_insn_rescan,
16370         df_insn_rescan_debug_internal, df_insn_rescan_all,
16371         df_process_deferred_rescans, df_process_deferred_rescans,
16372         df_notes_rescan, df_get_call_refs, df_get_call_refs,
16373         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
16374         df_record_entry_block_defs, df_record_exit_block_uses,
16375         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
16376         df_scan_verify): Update.
16377
16378 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
16379
16380         PR c++/44188
16381         * c-common.c (is_typedef_decl): Move this definition ...
16382         * tree.c (is_typedef_decl): ... here.
16383         (typdef_variant_p): Move definition here from cp/tree.c.
16384         * c-common.h (is_typedef_decl): Move this declaration ...
16385         * tree.h (is_typedef_decl): ... here.
16386         (typedef_variant_p): Move declaration here from cp/cp-tree.h
16387         * dwarf2out.c (is_naming_typedef_decl): New function.
16388         (gen_tagged_type_die): Split out of ...
16389         (gen_type_die_with_usage): ... this function. When an anonymous
16390         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16391         is emitted for the typedef.
16392         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16393         anonymous tagged types.
16394
16395 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16396
16397         PR c/20000
16398         * c-decl.c (grokdeclarator): Delete warning.
16399
16400 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16401
16402         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
16403         newly built CALL_EXPR.
16404         * tree-profile.c (tree_profiling): Don't profile functions produced
16405         for built-in stuff.
16406
16407 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
16408
16409         PR bootstrap/44427
16410         PR bootstrap/44428
16411         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
16412         endianness-independent.
16413
16414 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
16415
16416         * c-common.c: Move to c-family/.
16417         * c-common.def: Likewise.
16418         * c-common.h: Likewise.
16419         * c-cppbuiltin.c: Likewise.
16420         * c-dump.c: Likewise.
16421         * c-format.c: Likewise.
16422         * c-format.h : Likewise.
16423         * c-gimplify.c: Likewise.
16424         * c-lex.c: Likewise.
16425         * c-omp.c: Likewise.
16426         * c.opt: Likewise.
16427         * c-opts.c: Likewise.
16428         * c-pch.c: Likewise.
16429         * c-ppoutput.c: Likewise.
16430         * c-pragma.c: Likewise.
16431         * c-pragma.h: Likewise.
16432         * c-pretty-print.c: Likewise.
16433         * c-pretty-print.h: Likewise.
16434         * c-semantics.c: Likewise.
16435         * stub-objc.c: Likewise.
16436
16437         * gengtype.c (get_file_langdir): Special-case files in c-family/.
16438         (get_output_file_with_visibility): Fix name for c-common.h.
16439         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
16440
16441         * c-tree.h: Update include path for moved files.
16442         * c-lang.c: Likewise.
16443         * c-lang.h: Likewise.
16444         * c-parser.c: Likewise.
16445         * c-convert.c: Likewise.
16446         * c-decl.c: Likewise.
16447         * c-objc-common.c: Likewise.
16448         * configure.ac: Make sure c-family/ exists in the build directory.
16449         * configure: Regenerate.
16450         * Makefile.in: Update paths for moved files.  Regroup files per
16451         location and update dependencies.  Move generated_files down after
16452         ALL_GTFILES_H.
16453
16454         * config/spu/spu-c.c: Update paths for moved files.
16455         * config/mep/mep-pragma.c: Likewise.
16456         * config/darwin-c.c: Likewise.
16457         * config/i386/msformat-c.c: Likewise.
16458         * config/i386/i386-c.c: Likewise.
16459         * config/avr/avr-c.c: Likewise.
16460         * config/sol2-c.c: Likewise.
16461         * config/ia64/ia64-c.c: Likewise.
16462         * config/rs6000/rs6000-c.c: Likewise.
16463         * config/arm/arm.c: Likewise.
16464         * config/arm/arm-c.c: Likewise.
16465         * config/h8300/h8300.c: Likewise.
16466         * config/v850/v850-c.c: Likewise.
16467
16468         * config/t-darwin: Fix dependencies for moved files.
16469         * config/t-sol2: Fix dependencies for moved files.
16470         * config/mep/t-mep: Fix dependencies for moved files.
16471         * config/ia64/t-ia64: Fix dependencies for moved files.
16472         * config/rs6000/t-rs6000: Fix dependencies for moved files.
16473         * config/v850/t-v850: Fix dependencies for moved files.
16474         * config/v850/t-v850e: Fix dependencies for moved files.
16475
16476         * config/m32c/m32c-pragma.c
16477
16478         * po/exgettext: Look in c-family/ also.
16479
16480 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
16481
16482         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16483         (mark_control_dependent_edges_necessary): Call it instead of marking
16484         the last statement manually.
16485         (propagate_necessity): Likewise.
16486
16487 2010-06-05  Jan Hubicka  <jh@suse.cz>
16488
16489         * basic-block.h (compute_dominance_frontiers): Updated.
16490         (compute_idf): Likewise.
16491
16492         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16493         for dominance frontiers.
16494         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16495         (insert_updated_phi_nodes_for): Likewise.
16496         (update_ssa): Likewise.
16497         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16498         (compute_dominance_frontiers): Likewise.
16499         (compute_idf): Likewise.
16500         * df-problems.c (df_md_local_compute): Likewise.
16501
16502 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
16503
16504         * target.h (struct gcc_target): Add memory_move_cost field.
16505         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16506         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16507         * targhooks.c (default_memory_move_cost): New function.
16508         * targhooks.h (default_memory_move_cost): Declare function.
16509         * reload.h (memory_move_cost): Declare.
16510         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16511         * reginfo.c (memory_move_cost): New function.
16512         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16513         * ira.h (ira_memory_move_cost): Update comment.
16514         * ira.c (ira_memory_move_cost): Update comment.
16515         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16516         with memory_move_cost.
16517         * postreload.c (reload_cse_simplify_set): (Ditto.).
16518         * reload1.c (choose_reload_regs): (Ditto.).
16519         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16520         (MEMORY_MOVE_COST):  Revise documentation.
16521
16522         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16523         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16524         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16525         type of 'in' argument to bool.
16526         (TARGET_MEMORY_MOVE_COST): Define.
16527
16528 2010-06-05  Jan Hubicka  <jh@suse.cz>
16529
16530         * ipa-pure-const.c (propagate): Fix typo in handling of functions
16531         that cannot return.  Be more careful when merging the results with
16532         previously known ones.
16533
16534 2010-06-05  Matthias Klose  <doko@ubuntu.com>
16535
16536         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16537         function to add the -iplugindir option.
16538         (find_plugindir_spec_function): Add new declaration and function.
16539         (static_spec_func): Use it for "find-plugindir".
16540
16541 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
16542
16543         PR c++/44361
16544         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16545         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16546         statement expression.
16547
16548 2010-06-05  Jan Hubicka  <jh@suse.cz>
16549
16550         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16551         (df_rd_problem_data): Convert sparse_invalidated_by_call,
16552         dense_invalidated_by_call to bitmap head.
16553         (df_rd_alloc, df_rd_bb_local_compute_process_def,
16554         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16555         df_rd_start_dump, df_lr_verify_transfer_functions,
16556         df_live_verify_transfer_functions, df_chain_create_bb,
16557         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16558         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16559         df_simulate_one_insn_forwards, df_md_alloc,
16560         df_md_bb_local_compute_process_def,
16561         df_md_bb_local_compute_process_def, df_md_local_compute,
16562         df_md_transfer_function df_md_free): Update.
16563
16564 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
16565
16566         PR c/44322
16567         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16568         target type for ADDR_EXPR; require no changes to qualifiers except
16569         for function types.
16570         * c-tree.h (c_build_type_variant): Remove.
16571
16572 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16573
16574         * genautomata.c (get_excl_set): Do work per element, not per char.
16575         (check_presence_pattern_sets): Similar.
16576         (check_absence_pattern_sets): Similar.
16577
16578 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16579
16580         * genautomata.c (curr_state_pass_num): Delete.
16581         (min_issue_delay_pass_states): Delete.
16582         (min_issue_delay): Delete.
16583         (initiate_min_issue_delay_pass_states): Delete.
16584         (output_min_issue_delay_table): Compute min_issue_delay_vect
16585         using a breadth-first search variant.
16586         (output_tables): Don't call initiate_min_issue_delay_pass_states.
16587
16588 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16589
16590         PR boostrap/44421
16591         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16592         (df_byte_lr_bb_local_compute): Likewise.
16593
16594 2010-06-03  Jason Merrill  <jason@redhat.com>
16595
16596         Implement noexcept operator (5.3.7)
16597         * c-common.c (c_common_reswords): Add noexcept.
16598         * c-common.h (enum rid): Add RID_NOEXCEPT.
16599
16600 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
16601
16602         * config/darwin-driver.c (darwin_default_min_version): Use
16603         GCC-specific formats in diagnostics.
16604         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16605         diagnostics.
16606         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16607         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16608         eval_spec_function, handle_braces, process_brace_body, main,
16609         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16610         getenv_spec_function, compare_version_strings,
16611         version_compare_spec_function): Use GCC-specific formats in
16612         diagnostics.
16613
16614 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16615
16616         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16617         that operand 0 and operand 1 are equal.
16618         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16619         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16620         and operand 1 are equal.
16621         <default>: Ditto.  Remove ??? comment.
16622         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16623         and operand 1 are equal.
16624         <default>: Ditto.  Remove ??? comment.
16625         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16626         are equal.
16627         (*add<mode>_4) <default>: Ditto.
16628         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16629
16630 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
16631
16632         * config/i386/i386-protos.h (ix86_print_operand): Declare.
16633         * config/i386/i386.c (ix86_print_operand): Make non-static.
16634         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16635         * output.h (output_operand): Declare.
16636         * final.c (output_operand): Make non-static.
16637
16638 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
16639
16640         PR rtl-optimization/44013
16641         * sched-deps.c (add_dependence_list_and_free): Don't free lists
16642         when processing debug insns.
16643
16644         PR debug/41371
16645         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16646         recursing.  Check that recursion is bounded.  Rename inner var
16647         to avoid hiding incoming argument.
16648
16649 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16650
16651         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16652         operands[2] == 255.
16653         (*addqi_3): Ditto.
16654         (*addqi_4): Ditto.
16655         (*addqi_5): Ditto.
16656         (*addqi_ext_1_rex64): Ditto.
16657         (*addqi_ext_1): Ditto.
16658
16659         (*addqi_4): Check for incdec_operand in QImode.
16660
16661         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16662         using SWI mode iterator.
16663         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16664         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16665         mode iterator.
16666         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16667         using SWI mode iterator.
16668
16669 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16670
16671         PR c/25880
16672         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16673         * c-format.c (gcc_diag_flag_specs): Add hash.
16674         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16675         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16676         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16677         pp_c_cv_qualifiers. Handle qualifiers spelling here.
16678         (pp_c_type_qualifier_list): Call the function above.
16679         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16680         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16681         (WARN_FOR_QUALIFIERS): New macro.
16682         (convert_for_assignment): Use it.
16683
16684 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
16685
16686         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16687
16688 2010-06-04  Jan Hubicka  <jh@suse.cz>
16689
16690         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16691         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16692         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16693         DF_BYTE_LR_OUT): Update for embedded bitmaps.
16694         * fwprop.c (single_def_use_enter_block): Likewise.
16695         * ddg.c (create_ddg_dep_from_intra_loop_link,
16696         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16697         * loop-iv.c (latch_dominating_def): Likewise.
16698         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16699         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16700         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16701         df_rd_transfer_function, df_rd_top_dump,
16702         df_rd_bottom_dump): Update.
16703         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16704         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16705         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16706         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16707         df_lr_verify_solution_start, df_lr_verify_solution_end,
16708         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16709         df_live_free_bb_info, df_live_alloc, df_live_reset,
16710         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16711         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16712         df_live_verify_solution_start, df_live_verify_solution_end,
16713         df_live_verify_transfer_functions, df_chain_create_bb,
16714         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16715         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16716         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16717         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16718         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16719         df_byte_lr_transfer_function, df_byte_lr_top_dump,
16720         df_byte_lr_bottom_dump, df_create_unused_note,
16721         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16722         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16723         df_md_transfer_function, df_md_init, df_md_confluence_0,
16724         df_md_confluence_n,
16725         df_md_top_dump, df_md_bottom_dump): Update.
16726         (struct df_lr_problem_data): Embedd bitmap headers.
16727
16728 2010-06-04  Jan Hubicka  <jh@suse.cz>
16729
16730         * dce.c (dce_process_block): Do not re-scan already marked
16731         instructions.
16732
16733 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16734
16735         PR rtl-optimization/39871
16736         PR rtl-optimization/40615
16737         PR rtl-optimization/42500
16738         PR rtl-optimization/42502
16739         * ira.c (init_reg_equiv_memory_loc: New function.
16740         (ira): Call it twice.
16741         * reload.h (calculate_elim_costs_all_insns): Declare.
16742         * ira-costs.c: Include "reload.h".
16743         (regno_equiv_gains): New static variable.
16744         (init_costs): Allocate it.
16745         (finish_costs): Free it.
16746         (ira_costs): Call calculate_elim_costs_all_insns.
16747         (find_costs_and_classes): Take estimated elimination costs
16748         into account.
16749         (ira_adjust_equiv_reg_cost): New function.
16750         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16751         * reload1.c (init_eliminable_invariants, free_reg_equiv,
16752         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16753         (elim_bb): New static variable.
16754         (reload): Move code out of here into init_eliminable_invariants and
16755         free_reg_equiv.  Call them.
16756         (calculate_elim_costs_all_insns): New function.
16757         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
16758         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
16759         but call note_reg_elim_costly if we turned a valid memory address
16760         into an invalid one.
16761         * Makefile.in (ira-costs.o): Depend on reload.h.
16762
16763 2010-06-04  Julian Brown  <julian@codesourcery.com>
16764
16765         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16766         for pool ranges.
16767
16768 2010-06-04  Richard Guenther  <rguenther@suse.de>
16769
16770         PR lto/41584
16771         * cgraph.h (struct varpool_node): Add lto_file_data field.
16772         * lto-cgraph.c (input_varpool_node): Initialize it.
16773
16774 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16775
16776         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16777         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16778         predicate in "type" attribute calculation.
16779         (*addsi_1_zext): Ditto.
16780         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16781         (*addsi_2_zext): Ditto.
16782         (*add<mode>_3): Ditto.
16783         (*addsi_3_zext): Ditto.
16784         (*add<mode>_5): Ditto.
16785
16786 2010-06-03  Jan Hubicka  <jh@suse.cz>
16787
16788         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16789         of bitmap_bit_p.
16790         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16791
16792 2010-06-03  Jan Hubicka  <jh@suse.cz>
16793
16794         * df-problems.c (df_create_unused_note, df_note_bb_compute):
16795         micro-optimize the checks when to add new note.
16796
16797 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
16798
16799         * final.c (output_asm_insn): Call
16800         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
16801         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
16802         (output_address): Call targetm.asm_out.print_operand_address.
16803         Update comments.
16804         * target.h (struct gcc_target): Add print_operand,
16805         print_operand_address, and print_operand_punct_valid_p fields.
16806         * targhooks.h (default_print_operand): Declare.
16807         (default_print_operand_address): Declare.
16808         (default_print_operand_punct_valid_p): Declare.
16809         * targhooks.c (default_print_operand): Define.
16810         (default_print_operand_address): Define.
16811         (default_print_operand_punct_valid_p): Define.
16812         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16813         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16814         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16815         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16816         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16817         * vmsdbgout.c (addr_const_to_string): Update comment.
16818         * config/i386/i386.c (print_operand): Rename to...
16819         (ix86_print_operand): ...this.  Make static.
16820         (print_operand_address): Rename to...
16821         (ix86_print_operand_address): ...this.  Make static.  Call
16822         ix86_print_operand instead of PRINT_OPERAND.
16823         (ix86_print_operand_punct_valid_p): New function.
16824         (TARGET_PRINT_OPERAND): Define.
16825         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16826         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16827         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16828         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16829         (PRINT_OPERAND): Delete.
16830         (PRINT_OPERAND_ADDRESS): Delete.
16831         * config/i386/i386-protos.h (print_operand): Delete prototype.
16832         (print_operand_address): Delete prototype.
16833
16834 2010-06-03  Richard Guenther  <rguenther@suse.de>
16835
16836         PR tree-optimization/44403
16837         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16838         Preserve pointer qualifiers.
16839         (vect_create_data_ref_ptr): Likewise.
16840
16841 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16842
16843         PR c++/44294
16844         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16845
16846         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16847
16848 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16849
16850         PR debug/44375
16851         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16852         return false if merging the bbs would lead to goto_locus
16853         location being lost from the IL.
16854
16855 2010-06-03  Jan Hubicka  <jh@suse.cz>
16856             Jakub Jelinek  <jakub@redhat.com>
16857
16858         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16859         set->regs[i] is NULL or has just one entry.
16860
16861 2010-06-03  Jan Hubicka  <jh@suse.cz>
16862
16863         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16864         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16865
16866 2010-06-03  Paul Brook  <paul@codesourcery.com>
16867
16868         * config/arm/arm.c (FL_TUNE): Define.
16869         (arm_default_cpu, arm_cpu_select): Remove.
16870         (all_cores): Populate core field.
16871         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16872         (arm_find_cpu): New function.
16873         (arm_handle_option): Lookup cpu/architecture names.
16874         (arm_override_options): Cleanup mcpu/march/mtune handling.
16875         (arm_file_start): Ditto.
16876
16877 2010-06-03  Alan Modra  <amodra@gmail.com>
16878
16879         PR target/44169
16880         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16881         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16882         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16883         (rs6000_emit_load_toc_table): Likewise.
16884
16885 2010-06-02  Jan Hubicka  <jh@suse.cz>
16886
16887         * passes.c (init_optimization_passes): Put ipa reference
16888         after ipa pure-const.
16889
16890 2010-06-02  Jan Hubicka  <jh@suse.cz>
16891
16892         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16893         calls_read_all and calls_write_all.
16894         (get_reference_optimization_summary): Fix formatting.
16895         (is_proper_for_analysis): Check that decl is not readonly.
16896         (propagate_bits): Check CONST/PURE/noreturn flags.
16897         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16898         (analyze_function): Ignore indirect edges.
16899         (copy_global_bitmap): For all module statics, do nothing.
16900         (generate_summary): Do not print calls_read_all/calls_write_all.
16901         (read_write_all_from_decl): Take node as argument; check
16902         cgraph_node_cannot_return.
16903         (propagate): Reorganize read_all/write_all computation;
16904         check indirect edges; check ecf flags; use all_module_statics
16905         in the results; do not free all_module_statics.
16906         (stream_out_bitmap): Handle all_module_statics.
16907         (ipa_reference_write_optimization_summary): Likewise; use
16908         varpool/cgraph encoders to get boundaries.
16909         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16910         use it when possible.
16911
16912 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16913
16914         PR target/44218
16915         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16916         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16917
16918         * doc/extend.texi (powerpc builtins): Document vec_recip,
16919         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16920
16921         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16922         (rs6000_emit_swrsqrt): Ditto.
16923         (rs6000_emit_swdivsf): Delete.
16924         (rs6000_emit_swdivdf): Ditto.
16925         (rs6000_emit_swrsqrtsf): Ditto.
16926
16927         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16928         describe the reciprocal estimate support for each type.
16929         (recip_options): Map -mrecip=<opt> into option bits.
16930         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16931         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16932         reciprocal estimate instructions.
16933         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16934         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16935         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16936         cost information if -mdebug=cost or -mdebug=reg.
16937         (rs6000_override_options): Set -mrecip-precision for power6, and
16938         power7 machines.  If -mvsx or -mdfp, enable various options that
16939         came in previous instruction set ISAs, unless the option was
16940         explicitly disabled by the command line option.  Parse
16941         -mrecip=<opt> options.
16942         (rs6000_builtin_vectorized_function): Add support for vectorizing
16943         the reciprocal estimate builtins and expansions.
16944         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16945         (bdesc_2arg): Add reciprocal estimate builtins.
16946         (bdesc_1arg): Add reciprocal square root estimate builtins.
16947         (rs6000_expand_builtin): Rewrite to use a switch statement,
16948         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16949         (rs6000_init_builtins): Create declarations for reciprocal
16950         estimate builtins.
16951         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16952         sized, prefer traditional floating point registers, if integer
16953         vector types, prefer altivec registers.  Don't actually look at
16954         the memory address any more.
16955         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16956         builtins.
16957         (rs6000_load_constant_and_splat): New helper function to load up
16958         the constant for reciprocal estimate instructions.
16959         (rs6000_emit_madd): New helper function for generating
16960         multiply/add type instructions, based on the current switches.
16961         (rs6000_emit_msub): Ditto.
16962         (rs6000_emit_mnsub): Ditto.
16963         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16964         replace a divide with a reciprocal estimate and fixup, adding
16965         support for machines with high precision and vectors.
16966         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16967         low precision machines.
16968         (rs6000_emit_swdiv): New common function to be called to replace a
16969         division with reciprocal estimate and fixup.
16970         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16971         for double and vector types.  Add support for high precision machines.
16972
16973         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16974         the reciprocal estimate instructions can be generated.
16975         (TARGET_FRE): Ditto.
16976         (TARGET_FRSQRTES): Ditto.
16977         (TARGET_FRSQRTE): Ditto.
16978         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16979
16980         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16981         square root estimate on vectors.
16982         (re<mode>2): New insn for reciprocal division estimate on vectors.
16983
16984         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16985         New builtin.
16986         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16987         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16988         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16989         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16990         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16991         (RS6000_BUILTIN_RSQRT): Ditto.
16992         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16993         floating point builtin.
16994
16995         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16996         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16997         __RECIP_PRECISION__ based on the command line switches.
16998         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16999
17000         * config/rs6000/rs6000.opt (-mrecip): Document add support for
17001         replacing division instructions with reciprocal estimate and fixup.
17002         (-mrecip=<opt>): New option.
17003         (-mrecip-precision): Ditto.
17004
17005         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
17006         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
17007         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
17008         precision scalar.
17009
17010         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
17011         (UNSPEC_VREFP): Ditto.
17012         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
17013         conterparts with regard to support of -mno-fused-madd and -ffast-math.
17014         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
17015         reciprocal estimate instructions to be generated.
17016         (altivec_vrefp): Ditto.
17017
17018         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
17019         estimate support.
17020         (rreg): New mode attribute for reciprocal estimate support.
17021         (recip<mode>3): New insn for division using reciprocal estimate
17022         and fixup builtins.
17023         (divide define_split): New define_split to convert floating point
17024         division to use reciprocal estimate if the user used the
17025         appropriate options and the split is run when we can add new
17026         pseudo registers for the fixup.
17027         (rsqrt<mode>2): New insn for reciprocal square root support.
17028         (recipsf3): Move into recip<mode>3.
17029         (recipdf3): Ditto.
17030         (fres): Use TARGET_FRES.
17031         (rsqrtsf2): Move into rsqrt<mode>2.
17032         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
17033         (copysignsf3): Add support for VSX.
17034         (fred): Use TARGET_FRE.
17035         (fred_fpr): Ditto.
17036         (rsqrtdf_internal1): New function for frsqrte instruciton.
17037
17038         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
17039         (vec_rsqrt): Ditto.
17040
17041 2010-06-03  Richard Guenther  <rguenther@suse.de>
17042
17043         PR middle-end/44291
17044         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
17045         (set_user_assembler_libfunc): Likewise.
17046
17047 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17048
17049         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
17050         defaults.h.
17051         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
17052         to defaults.h
17053         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
17054         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
17055         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
17056         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
17057         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
17058         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
17059         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
17060         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
17061         * defaults.h: Updated for above mentioned changes.
17062
17063 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
17064
17065         * c-common.c: Remove header include of tm_p.h.
17066         * Makefile.in (c-common.o): Remove TM_P_H dependency.
17067
17068 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
17069
17070         * tree.h (struct tree_decl_map): New type.
17071         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
17072         (tree_decl_map_hash): New prototype.
17073         (debug_expr_for_decl, value_expr_for_decl): Change into
17074         tree_decl_map hashtab from tree_map.
17075         (init_ttree): Adjust initialization.
17076         (tree_decl_map_hash): New function.
17077         (decl_debug_expr_lookup, decl_debug_expr_insert,
17078         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
17079
17080 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17081
17082         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
17083         linker emulations.
17084         * configure: Regenerate.
17085         * config.in: Regenerate.
17086
17087         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
17088         (X86_64_EMULATION): Define.
17089         (TARGET_LD_EMULATION): Use them.
17090
17091         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
17092         (SPARC64_EMULATION): Define.
17093         (LINK_ARCH_SPEC): Use them.
17094
17095 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17096
17097         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
17098         smallest_mode_for_size for computing the precision types of new
17099         graphite IVs.  Do not call lang_hooks.types.type_for_size.
17100
17101 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17102
17103         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
17104         information.
17105         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
17106
17107 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17108
17109         PR middle-end/44363
17110         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
17111         return false instead.
17112
17113 2010-06-02  Jan Hubicka  <jh@suse.cz>
17114
17115         PR middle-end/44295
17116         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
17117         create new cgraph node to check callee.
17118
17119 2010-06-02  Richard Guenther  <rguenther@suse.de>
17120
17121         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
17122
17123 2010-06-02  Richard Guenther  <rguenther@suse.de>
17124
17125         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
17126         (lto_wrapper_cleanup): ... this.  Do not exit.
17127         (fatal): Adjust.  Exit here.
17128         (fatal_perror): Likewise.
17129         (fatal_signal): New function.
17130         (main): Set up signal handlers to cleanup temporary files.
17131         * Makefile.in (lto-wrapper.o): Adjust dependencies.
17132
17133 2010-06-02  Richard Guenther  <rguenther@suse.de>
17134
17135         PR tree-optimization/44377
17136         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
17137
17138 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17139
17140         * config/s390/2097.md (z10_fhex): Remove insn reservation.
17141         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
17142         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
17143         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
17144         instruction.
17145         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
17146
17147 2010-06-02  Jan Hubicka  <jh@suse.cz>
17148
17149         * bitmap.c (bitmap_descriptor): Add search_iter.
17150         (bitmap_find_bit): Increment it.
17151         (print_statistics): Print it.
17152
17153 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
17154
17155         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
17156         instead of gimple_build_call_vec.  Delete unnecessary local variable.
17157
17158 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17159
17160         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
17161         change from yesterday.
17162
17163 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17164
17165         * c-ada-spec.c: Clean up redundant includes.
17166
17167 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
17168
17169         * gimplify.c: Do not include except.h and optabs.h.
17170         (gimplify_body): Do not initialize RTL profiling.
17171         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
17172         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
17173         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
17174         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
17175         langhooks.h.
17176
17177         * tree-pretty-print.h: Include pretty-print.h.
17178         * gimple-pretty-print.h: Include pretty-print.h.
17179
17180         * tree-pretty-print.c: Do not include diagnostic.h.
17181         * tree-vrp.c: Likewise.
17182         * tree-tailcall.c: Likewise
17183         * tree-scalar-evolution.c: Likewise
17184         * tree-ssa-dse.c: Likewise
17185         * tree-chrec.c: Likewise
17186         * tree-ssa-sccvn.c: Likewise
17187         * tree-ssa-copyrename.c: Likewise
17188         * tree-nomudflap.c: Likewise
17189         * tree-call-cdce.c: Likewise
17190         * tree-stdarg.c: Likewise
17191         * tree-ssa-math-opts.c: Likewise
17192         * tree-nrv.c: Likewise
17193         * tree-ssa-sink.c: Likewise
17194         * tree-browser.c: Likewise
17195         * tree-ssa-loop-ivcanon.c: Likewise
17196         * tree-ssa-loop.c: Likewise
17197         * tree-parloops.c: Likewise
17198         * tree-ssa-address.c: Likewise
17199         * tree-ssa-ifcombine.c: Likewise
17200         * tree-if-conv.c: Likewise
17201         * tree-data-ref.c: Likewise
17202         * tree-affine.c: Likewise
17203         * tree-ssa-phiopt.c: Likewise
17204         * tree-ssa-coalesce.c: Likewise
17205         * tree-ssa-pre.c: Likewise
17206         * tree-ssa-live.c: Likewise
17207         * tree-predcom.c: Likewise
17208         * tree-ssa-forwprop.c: Likewise
17209         * tree-ssa-dce.c: Likewise
17210         * tree-ssa-ter.c: Likewise
17211         * tree-ssa-loop-prefetch.c: Likewise
17212         * tree-optimize.c: Likewise
17213         * tree-ssa-phiprop.c: Likewise
17214         * tree-object-size.c: Likewise
17215         * tree-outof-ssa.c: Likewise
17216         * tree-ssa-structalias.c: Likewise
17217         * tree-switch-conversion.c: Likewise
17218         * tree-ssa-reassoc.c: Likewise
17219         * tree-ssa-operands.c: Likewise
17220         * tree-vectorizer.c: Likewise
17221         * tree-vect-data-refs.c: Likewise
17222         * tree-vect-generic.c: Likewise
17223         * tree-vect-stmts.c: Likewise
17224         * tree-vect-patterns.c: Likewise
17225         * tree-vect-slp.c: Likewise
17226         * tree-vect-loop.c: Likewise
17227         * tree-ssa-loop-ivopts.c: Likewise
17228         * tree-ssa-loop-im.c: Likewise
17229         * tree-ssa-loop-niter.c: Likewise
17230         * tree-ssa-loop-unswitch.c: Likewise
17231         * tree-ssa-loop-manip.c: Likewise
17232         * tree-ssa-loop-ch.c: Likewise
17233         * tree-dump.c: Likewise
17234         * tree-complex.c: Likewise
17235
17236         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
17237         * tree-ssa-uninit.c: Likewise
17238         * tree-ssa-threadupdate.c: Likewise
17239         * tree-ssa-uncprop.c: Likewise
17240         * tree-ssa-ccp.c: Likewise
17241         * tree-ssa-dom.c: Likewise
17242         * tree-ssa-propagate.c: Likewise
17243         * tree-ssa-alias.c: Likewise
17244         * tree-dfa.c: Likewise
17245         * tree-cfgcleanup.c: Likewise
17246         * tree-sra.c: Likewise
17247         * tree-ssa-copy.c: Likewise
17248         * tree-ssa.c: Likewise
17249         * tree-profile.c: Likewise
17250         * tree-cfg.c: Likewise
17251         * tree-ssa-threadedge.c: Likewise
17252         * tree-vect-loop-manip.c: Likewise
17253
17254         * tree-inline.c: Do not include diagnostic.h and expr.h.
17255         Include rtl.h.
17256         (copy_decl_for_dup_finish): Do not use NULL_RTX.
17257
17258         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
17259         * tree-loop-distribution.c: Likewise.
17260
17261 2010-06-01  Jan Hubicka  <jh@suse.cz>
17262
17263         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
17264
17265 2010-06-01  Jan Hubicka  <jh@suse.cz>
17266
17267         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
17268         remove return value.
17269         (split_bbs_on_noreturn_calls) .... here.
17270         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
17271         * tree-flow.h (fixup_noreturn_call): New.
17272
17273 2010-06-01  Jan Hubicka  <jh@suse.cz>
17274
17275         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
17276
17277 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
17278
17279         * tree.h (build_nt_call_list): Delete.
17280         * tree.c (build_nt_call_list): Delete.
17281
17282 2010-06-01  Jan Hubicka  <jh@suse.cz>
17283
17284         * fwprop.c: Make emit-rtl.h include last.
17285         * rtlanal.c: Include emit-rtl.h.
17286         * genautomata.c: Output emit-rtl include into insn-automata.c
17287         * df-scan.c: Include emit-rtl.h.
17288         * haifa-sched.c: Indlude emit-rtl.h.
17289         * mode-switching.c: Indlude emit-rtl.h.
17290         * graph.c: Indlude emit-rtl.h.
17291         * sel-sched.c: Include emit-rtl.h.
17292         * sel-sched-ir.c: Include emit-rtl.h.
17293         * ira-build.c: Include emit-rtl.h.
17294         * emit-rtl.c (first_insn, last_insn): Remove defines.
17295         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
17296         Move to emit-rtl.h.
17297         (set_new_first_and_last_insn, get_last_insn_anywhere,
17298         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
17299         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
17300         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
17301         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
17302         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
17303         Use accessor functions.
17304         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17305          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17306         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17307         mem_expr_equal_p): Move here from rtl.h.
17308         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
17309         Move here from emit-rtl.c; make inline.
17310         * cfglayout.h: Include emit-rtl.h.
17311         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17312          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17313         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17314         mem_expr_equal_p, get_insns, set_first-insn,
17315         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
17316         * reg-stack.c: Include emit-rtl.h.
17317         * dce.c: Likewise.
17318
17319 2010-06-01  Jan Hubicka  <jh@suse.cz>
17320
17321         * cgraph.h (tree_function_versioning): Update prototype.
17322         (cgraph_function_versioning): Update prototype.
17323         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
17324         bitmap.
17325         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
17326         (cgraph_materialize_clone, save_inline_function_body): Update use of
17327         tree_function_versioning.
17328         * tree-inline.c (copy_bb): Look for previous copied block to link
17329         after; fix debug output.
17330         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
17331         (copy_body): Likewise.
17332         (expand_call_inline): Update use of copy_body.
17333         (tree_function_versioning): Update use of copy body; accept
17334         blocks_to_copy and new_entry.
17335
17336 2010-06-01  Jan Hubicka  <jh@suse.cz>
17337
17338         * gegenrtl.c: Remove unnecesary prototypes.
17339         (gendecl): Remove.
17340         (gendef): Produce static inline.
17341         (gencode): Remove.
17342         (main): Do not decode parameters; generate header only.
17343         * Makefile.in (genrtl.c): Remove.
17344
17345 2010-06-01  Jan Hubicka  <jh@suse.cz>
17346
17347         * tree-switch-conversion.c (build_one_array): Make it readonly.
17348
17349 2010-06-01  Richard Guenther  <rguenther@suse.de>
17350
17351         * optabs.c (init_optabs): Guard all accesses to reinit.
17352         * ipa-pure-const.c (propagate): Fix another typo.
17353         * opts.c (common_handle_option): Split assignment to bool.
17354         * c-opts.c (c_common_handle_option): Likewise.
17355
17356 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
17357             Matthew Gingell  <gingell@adacore.com>
17358
17359         * doc/invoke.texi: Mention -fdump-ada-spec.
17360         * tree-dump.c (dump_files): Add ada-spec.
17361         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
17362         * tree-pass.h (tree_dump_index): Add TDI_ada.
17363         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
17364         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
17365         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
17366         * c-decl.c: Include c-ada-spec.h.
17367         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
17368         functions.
17369         (c_write_global_declarations): Add handling of -fdump-ada-spec.
17370         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
17371         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
17372         * c-ada-spec.h, c-ada-spec.c: New files.
17373
17374 2010-06-01  Richard Guenther  <rguenther@suse.de>
17375
17376         PR lto/43853
17377         * ipa-pure-const.c (get_function_state): Hand back varying state
17378         if we do not have one.
17379         (has_function_state): New function.
17380         (duplicate_node_data): Adjust.
17381         (remove_node_data): Likewise.
17382         (pure_const_write_summary): Likewise.
17383         (propagate): Likewise.  Fix typo.
17384
17385 2010-06-01  Jan Hubicka  <jh@suse.cz>
17386
17387         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
17388         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
17389         (execute_all_ipa_transforms): Do not play with the states.
17390
17391 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17392
17393         * config/arm/t-linux-androideabi: New.
17394         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
17395
17396 2010-06-01  Jan Hubicka  <jh@suse.cz>
17397
17398         * tree-inline.c (estimate_num_insns): For stdarg functions look
17399         into call statement to count cost of argument passing.
17400
17401 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
17402
17403         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
17404         argument for fprintf.
17405         (ix86_output_addr_diff_elt): Likewise.
17406         (x86_function_profiler): Likewise.
17407         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
17408         (LPREFIX): Likewise.
17409         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17410
17411 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17412
17413         PR target/44338
17414         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
17415         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
17416         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
17417         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
17418         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
17419         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
17420         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
17421         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
17422         TARGET_FUSED_MADD.
17423
17424 2010-05-31  Jan Hubicka  <jh@suse.cz>
17425
17426         * tree.h (tree_range_check_failed): Declare noreturn.
17427
17428 2010-05-31  Jan Hubicka  <jh@suse.cz>
17429
17430         * gimple.c (gimple_call_builtin_p): New function.
17431         * gimple.h (gimple_call_builtin_p): Declare.
17432         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
17433         to exit.
17434         (execute_warn_function_return): BUILT_IN_RETURN is return.
17435         (split_critical_edges): Return edges are not critical.
17436         (is_ctrl_altering_stmt): Builtin_in_return is altering.
17437         (gimple_verify_flow_info): Handle built_in_return.
17438         (execute_warn_function_return): Handle built_in_return.
17439         * ipa-pure-const.c (check_call): Ignore builtin_return.
17440
17441 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17442
17443         PR middle-end/44337
17444         * expr.c (expand_assignment): Don't store anything for out-of-bounds
17445         array accesses with non-MEM.
17446
17447         PR tree-optimization/44182
17448         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17449         newly needs to end a bb is followed by debug stmts, instead return
17450         true from the function at the end.
17451         (maybe_move_debug_stmts_to_successors): New function.
17452         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17453
17454 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
17455
17456         PR target/44161
17457         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17458
17459 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17460
17461         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17462         for nested functions in non-optimized compilation.
17463
17464 2010-05-31  Richard Guenther  <rguenther@suse.de>
17465
17466         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17467
17468 2010-05-30  Jan Hubicka  <jh@suse.cz>
17469
17470         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17471
17472 2010-05-30  Richard Guenther  <rguenther@suse.de>
17473
17474         PR lto/42975
17475         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17476         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17477         no longer needed.
17478
17479 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
17480
17481         * config/darwin.c (output_objc_section_asm_op): Add comment.
17482         (name_needs_quotes): Add '_' to list of valid comment chars.
17483         (machopic_output_function_base_name): Remove unneeded quotes.
17484         (darwin_encode_section_info): Adjust asm whitespace.
17485         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17486         (ASM_OUTPUT_LOCAL): Ditto.
17487         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17488         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17489         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17490
17491 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
17492
17493         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17494         RS6000_OUTPUT_BASENAME unconditionally.
17495         (rs6000_output_function_epilogue): Likewise.
17496
17497 2010-05-30  Jan Hubicka  <jh@suse.cz>
17498
17499         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17500         nodes.
17501
17502 2010-05-30  Richard Guenther  <rguenther@suse.de>
17503
17504         * tree-cfg.c (verify_gimple_assign_single): Implement
17505         verification for COND_EXPR rhs.
17506
17507 2010-05-30  Jan Hubicka  <jh@suse.cz>
17508
17509         * cgraph.h (cgraph_dump_file): Declare.
17510         * cgraphunit.c (cgraph_dump_file): Export.
17511         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17512
17513 2010-05-30  Jan Hubicka  <jh@suse.cz>
17514
17515         * dwarf2out.c (reference_to_unused,
17516         premark_types_used_by_global_vars_helper): Avoid creation of new
17517         varpool nodes.
17518
17519 2010-05-30  Jan Hubicka  <jh@suse.cz>
17520
17521         * cgraph.h (cgraph_node_cannot_return,
17522         cgraph_edge_cannot_lead_to_return): New functions.
17523         * cgraph.c (cgraph_node_cannot_return,
17524         cgraph_edge_cannot_lead_to_return): Use them.
17525         * ipa-pure-const.c (pure_const_names): New static var.
17526         (check_call): Handle calls not leading to return.
17527         (pure_const_read_summary): Dump info read.
17528         (propagate): Dump info about propagation process; ignore side effects
17529         of functions not leading to exit; fix handling of pure functions.
17530
17531 2010-05-30  Jan Hubicka  <jh@suse.cz>
17532
17533         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17534         for tail call epilogues.
17535
17536 2010-05-30  Jan Hubicka  <jh@suse.cz>
17537
17538         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17539         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17540         dump files.
17541
17542 2010-05-29  Jan Hubicka  <jh@suse.cz>
17543
17544         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17545         node; remove references in node we no longer keep in cgrpah but need
17546         body of.
17547
17548 2010-05-29  Jan Hubicka  <jh@suse.cz>
17549
17550         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17551
17552 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17553
17554         PR target/44165
17555         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17556
17557 2010-05-29  Jan Hubicka  <jh@suse.cz>
17558
17559         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17560         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17561         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17562         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17563         debug_names_replaced_by, debug_update_ssa): Likewise.
17564         * sbitmap.c (debug_sbitmap): Likewise.
17565         * genrecog.c (debug_decision, debug_decision_list): Likewise.
17566         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17567         debug_tree_chain): Likewise.
17568         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17569         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17570         * optabs.c (debug_optab_libfuncs): Likewise.
17571         (verify_loop_closed_ssa): Likewise.
17572         * value-prof.c (verify_histograms): Likewise.
17573         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17574         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17575         * cfghooks.c (verify_flow_info): Likewise.
17576         * fold-const.c (debug_fold_checksum): Likewise.
17577         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17578         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17579         Likewise.
17580         * omega.c (debug_omega_problem): Likewise.
17581         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17582         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17583         * dominance.c (verify_dominators, debug_dominance_info,
17584         debug_dominance_tree): Likewise.
17585         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17586         * df_regno_debug, df_ref_debug,
17587         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17588         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17589         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17590         * sel-sched.c (debug_state): Likewise.
17591         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17592         Likewise.
17593         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17594         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17595         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17596         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17597         Likewise.
17598         * c-pretty-print.c (debug_c_tree): Likewise.
17599         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17600         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17601         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17602         * ebitmap.c (debug_ebitmap): Likewise.
17603         * function.c (debug_find_var_in_block_tree): Likewise.
17604         * print-rtl.c (debug_rtx): Likewise.
17605         (debug_rtx_count): Likewise.
17606         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17607         * stor-layout.c (debug_rli): Likewise.
17608         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17609         * tree-data-ref.c (debug_data_references,
17610         debug_data_dependence_relations, debug_data_reference,
17611         debug_data_dependence_relation, debug_rdg_vertex,
17612         debug_rdg_component, debug_rdg): Likewise.
17613         * tree-affine.c (debug_aff): Likewise.
17614         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17615         Likewise.
17616         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17617         * emit-rtl.c (verify_rtl_sharing): Likewise.
17618         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17619         debug_value_expressions): Likewise.
17620         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17621         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17622         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17623         * cfglayout.c (verify_insn_chain): Likewise.
17624         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17625         debug_clast_stmt, debug_generated_program): Likewise.
17626         * ggc-page.c (debug_print_page_list): Likewise.
17627         * tree-ssa-ter.c (debug_ter): Likewise.
17628         * graphite-dependences.c (debug_pddr): Likewise.
17629         * sched-deps.c (debug_ds): Likewise.
17630         * tree-ssa.c (verify_ssa): Likewise.
17631         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17632         debug_scattering_functions, debug_iteration_domains, debug_pdr,
17633         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17634         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17635         * tree-inline.c (debug_find_tree): Likewise.
17636         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17637         debug_ppl_powerset_matrix): Likewise.
17638         * var-tracking.c (debug_dv): Likewise.
17639         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17640         * cfgloop.c (verify_loop_structure): Likewise.
17641         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17642         * c-common.c (verify_sequence_points): Likewise.
17643         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17644         debug_candidates, debug_rgn_dependencies): Likewise.
17645         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17646         * debug_constraint_graph, debug_solution_for_var,
17647         debug_sa_points_to_info): Likewise.
17648         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17649         Likewie.
17650         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17651         debug_loops, debug_loop, debug_loop_num): Likewise.
17652         * passes.c (debug_pass): Likewise.
17653         (dump_properties): Likewise; add cfglayout property.
17654         (debug_properties): Likewise.
17655         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17656         * varpool.c (debug_varpool): Likewise.
17657         * regcprop.c (debug_value_data): Likewise.
17658         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17659         debug_immediate_uses_for): Likewise.
17660
17661 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17662
17663         PR bootstrap/44315
17664         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17665         Filter out insn-flags.h.
17666
17667 2010-05-29  Jan Hubicka  <jh@suse.cz>
17668
17669         * cgraph.h (struct varpool_node_set_def,
17670         struct cgraph_node_set_def): Remove unused AUX pointer.
17671         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17672         VEC_empty macro.
17673
17674 2010-05-29  Jan Hubicka  <jh@suse.cz>
17675
17676         PR middle-end/44324
17677         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17678
17679 2010-05-29  Richard Guenther  <rguenther@suse.de>
17680
17681         * lto-streamer.c (cached_bp): New global variable.
17682         (bitpack_create): Return the cached bitpack, if available.
17683         (bitpack_delete): Clear and cache the bitpack, if appropriate.
17684         (bp_pack_value): Remove redundant asserts.
17685
17686 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17687
17688         PR middle-end/44306
17689         * tree-if-conv.c (is_true_predicate): New.
17690         (is_predicated): Use is_true_predicate.
17691         (add_to_predicate_list): Same.  Do not use unshare_expr.
17692         (add_to_dst_predicate_list): Same.
17693
17694 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17695
17696         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17697         field on edges.
17698         (predicate_bbs): Same.
17699         (clean_predicate_lists): Same.
17700         (find_phi_replacement_condition): Do not AND the predicate from
17701         edge->aux.
17702
17703 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17704
17705         PR bootstrap/44315
17706         * Makefile.in (build/gencondmd.o): Add a missing `\'.
17707
17708 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17709
17710         PR target/44261
17711         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17712         (negdf2): Adjust expander pattern and use negdf2_slow.
17713         (negsf2): Likewise.
17714
17715 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
17716
17717         * basic-block.h (struct control_flow_graph): Move last_label_uid field
17718         up.
17719         * df.h (struct df_base_ref): Move regno field up.
17720         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17721         * expr.h (struct separate_ops): Move location field up.
17722         * optabs.h (struct optab_d): Move libcall_basename field down.
17723         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17724         * config/i386/i386.h (struct machine_function): Convert call_abi field
17725         into a bitfield.  Move cfa field to the end of the structure.
17726
17727 2010-05-29  Jan Hubicka  <jh@suse.cz>
17728
17729         * varpool.c (varpool_get_node): Fix lookup.
17730
17731 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17732
17733         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
17734         RTL specific prototypes with #ifdef RTX_CODE.
17735         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17736         * config/spu/t-spu-elf: Fix dependencies.
17737
17738         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17739
17740 2010-05-29  Mike Stump  <mikestump@comcast.net>
17741
17742         PR bootstrap/44315
17743         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17744         TM_H when building to avoid dependency loops.
17745
17746 2010-05-29  Jan Hubicka  <jh@suse.cz>
17747
17748         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17749         refs and body; not the whole node for masters of materialized clones.
17750
17751 2010-05-29  Mike Stump  <mikestump@comcast.net>
17752
17753         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17754
17755 2010-05-29  Jan Hubicka  <jh@suse.cz>
17756
17757         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17758         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17759         use of clone_function_name.
17760         * cgraph.h (cgraph_create_virtual_clone,
17761         cgraph_function_versioning): update prototypes.
17762         (clone_function_name): Declare.
17763         * ipa-cp.c (ipcp_insert_stage): Update call of
17764         cgraph_create_virtual_clone.
17765         * omp-low.c (create_omp_child_function_name): Use
17766         cgraph_create_virtual_clone.
17767         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17768         (cgraph_function_versioning): Take SUFFIX argument; produce new name
17769         and make decl local.
17770
17771 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17772
17773         * vec.h: Include statistics.h
17774         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
17775         with VEC_H.
17776
17777 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17778
17779         * c-lex.c: Do not include c-tree.h.
17780         * c-pretty-print.c: Likewise.
17781         * c-opts.c: Likewise.
17782         * c-gimplify.c: Likewise.
17783         * c-common.c: Likewise.
17784         * c-dump.c: Likewise.  Include c-common.h.
17785
17786 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17787
17788         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17789         before including diagnostic-core.h.
17790         (c_cpp_error): New prototype moved from c-tree.h.
17791         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17792         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17793         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17794         (c_cpp_error): Prototype moved to c-common.h.
17795         * Makefile.in: Update dependency for C_COMMON_H.
17796
17797 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17798
17799         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17800         * c-common.c (c_register_addr_space): Remove here.
17801         * c-decl.c (c_register_addr_space): Re-add here.
17802
17803 2010-05-28  Mike Stump  <mikestump@comcast.net>
17804
17805         * config/darwin-c.c: Remove c-tree.h include.
17806
17807 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17808
17809         * gcc.c: Include diagnostic.h.
17810         (error_count): Remove.  All users changed to use errorcount.
17811         (programname): Remove.  All users changed to use progname.
17812         (fancy_abort, internal_error, fatal_error, error, warning, inform,
17813         fnotice): Remove.
17814         (execute): Don't include "Internal error" and bug reporting
17815         information in argument of internal_error call.
17816         (process_command): Don't increment error_count after calling
17817         perror_with_name.
17818         (input_filename): Rename to gcc_input_filename.  All users
17819         changed.
17820         (main): Call diagnostic_initialize.  Register delete_temp_files
17821         with atexit.  Use seen_error to test for errors.
17822         * gcc.h: Include diagnostic-core.h.
17823         (fatal_error, error, warning): Remove.
17824         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17825         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17826         (gcc.o): Update dependencies.
17827
17828 2010-05-28  Jeff Law  <law@redhat.com>
17829
17830         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17831         functions.
17832         * ira.h (ira_bad_reload_regno): Declare
17833         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17834
17835         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17836         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17837         (allocno_reload_assign): Likewise.
17838
17839 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17840
17841         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17842         build1_stat.
17843
17844 2010-05-28  Richard Guenther  <rguenther@suse.de>
17845
17846         PR lto/44312
17847         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17848         Stream fixed-point constants mode.
17849         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17850         and TYPE_PRECISION.
17851         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17852         Stream fixed-point constants mode.
17853         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17854         and TYPE_PRECISION.
17855
17856 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17857
17858         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17859         only place it was called from.
17860         (number_of_latch_executions): Do not return chrec_dont_know when the
17861         may_be_zero is a runtime condition: instead, return a COND_EXPR
17862         including the may_be_zero condition.
17863         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17864         of nb_iterations.
17865         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17866         COND_EXPRs.
17867
17868 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17869
17870         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17871         generate COND_EXPRs for degenerate_phi_result.
17872
17873 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17874
17875         PR middle-end/44293
17876         * tree-if-conv.c (if_convertible_loop_p): Check the
17877         if-convertibility of phi nodes in non predicated BBs.
17878
17879 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17880
17881         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17882
17883 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17884
17885         PR driver/15303
17886         * gcc.c (inform, warning, inform): New functions.
17887         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17888         gmsgid.  All callers changed.
17889         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17890         (fatal_error): Rename to fatal_signal.  All users changed.
17891         (fatal): Rename to fatal_error; change cmsgid parameter to
17892         gmsgid.  All callers changed.
17893         (process_command): Use warning instead of error for warnings.
17894         (end_going_arg): Don't use _() around argument of error.
17895         (do_spec_1): Use inform for message from %n specs.  Use warning
17896         instead of error for warnings.
17897         (main): Use inform for comparison messages.  Use warning for
17898         message about unused linker input.
17899         (error): Increment error_count.  Print "error: ".
17900         * gcc.h (fatal): Change to fatal_error.
17901         (warning): Declare.
17902         * config/darwin-driver.c (darwin_default_min_version): Use warning
17903         instead of fprintf for warnings.
17904         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17905
17906 2010-05-28  Julian Brown  <julian@codesourcery.com>
17907
17908         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17909         (*thumb2_addsi3_compare0_scratch): New.
17910         * config/arm/constraints.md (Pv): New.
17911         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17912         for ARM mode only.
17913         (*addsi3_compare0_scratch): Likewise.
17914
17915 2010-05-28  Jan Hubicka  <jh@suse.cz>
17916
17917         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17918         check.
17919         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17920         only on local statics.
17921
17922 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17923
17924         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17925
17926 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17927
17928         PR bootstrap/44314
17929         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17930         (OPTION_GLIBC): Define.
17931
17932 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17933
17934         PR debug/41048
17935         * dwarf2out.c (double_int_type_size_in_bits): New function.
17936         (round_up_to_align): Change first argument and return value to
17937         double_int.
17938         (field_byte_offset): Work internally on double_ints.
17939
17940         PR target/43636
17941         * builtins.c (expand_movstr): Use a temporary pseudo instead
17942         of target even when target is not NULL and not const0_rtx, but
17943         fails movstr predicate.
17944         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17945
17946 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17947
17948         * final.c (rest_of_clean_state): Use %m in errors instead of
17949         strerror (errno).
17950         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17951         instead of strerror.
17952         * toplev.c (process_options): Use %m in errors instead of strerror
17953         (errno).
17954         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17955         (errno).
17956
17957 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17958
17959         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17960         (ix86_canonical_va_list_type): Make static.  Add declaration.
17961         (ix86_enum_va_list): Make static.  Reindent.
17962         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17963         (ix86_canonical_va_list_type): Ditto.
17964         (ix86_enum_va_list): Ditto.
17965
17966 2010-05-28  Richard Guenther  <rguenther@suse.de>
17967
17968         * lto-wrapper.c (run_gcc): With -save-temps generate a
17969         user-visible ltrans filename.  Fixup ltrans unit numbering.
17970
17971 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17972
17973         * c-common.c (c_common_nodes_and_builtins): Replace use
17974         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17975         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17976         to ix86_enum_va_list.
17977         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17978         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17979         (TARGET_ENUM_VA_LIST_P): Add hook description.
17980         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17981         * target.h (gcc_target): Add enum_va_list hook.
17982
17983         PR bootstrap/44299
17984         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17985         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17986         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17987
17988 2010-05-28  Alan Modra  <amodra@gmail.com>
17989
17990         PR target/44266
17991         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17992         emit_library_call machinery to set up __tls_get_addr calls.
17993
17994 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17995
17996         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17997
17998 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17999
18000         Revert fix for PR c++/44188
18001         * c-common.c (is_typedef_decl): Revert the moving of  this
18002         definition ...
18003         * tree.c (is_typedef_decl): ... here.
18004         (typdef_variant_p): Revert the moving of this  definition
18005         here from cp/tree.c.
18006         * c-common.h (is_typedef_decl): Revert the moving of this
18007         declaration ...
18008         * tree.h (is_typedef_decl): ... here.
18009         (typedef_variant_p): Revert the moving of this  declaration here
18010         from cp/cp-tree.h
18011         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
18012         (gen_tagged_type_die): Revert the splitting out of ...
18013         (gen_type_die_with_usage): ... this function. Revert the anonymous
18014         tagged type handling.
18015         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
18016         typedefs naming anonymous tagged types.
18017
18018 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18019
18020         * config/rs6000/rs6000-modes.def (PSImode): Delete.
18021
18022 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18023
18024         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
18025         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
18026         throughout.
18027         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
18028         "xer" to "ca".
18029         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
18030         XER_REGS to CA_REGS throughout.
18031         * config/rs6000/rs6000.h: Same.
18032         (ADDITIONAL_REGISTER_NAMES): Add "xer".
18033         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
18034         that mode_iterator "P" is the size for arithmetic carries as well.
18035         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
18036
18037 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
18038
18039         PR bootstrap/44255
18040         * combine.c (struct rtx_subst_pair): Define unconditionally.
18041         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
18042         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
18043         Call make_compound_operation on pair->to.
18044         (propagate_for_debug): Don't call make_compound_operation here.
18045         Always use simplify_replace_fn_rtx.
18046
18047 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
18048
18049         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
18050         * config/xtensa/xtensa.c (override_options): Check
18051           TARGET_FORCE_NO_PIC and set flag_pic.
18052         * config/xtensa/xtensa.opt: Document -mforce-no-pic
18053
18054 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18055
18056         PR bootstrap/44299
18057         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
18058         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
18059
18060 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18061
18062         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
18063         toplev.h.
18064         * diagnostic.c: Don't include toplev.h.
18065         (progname): Define.  Moved from toplev.c.
18066         (seen_error): New function.
18067         * diagnostic.h: Include diagnostic-core.h.
18068         (diagnostic_t, emit_diagnostic): Don't declare here.
18069         * toplev.c (progname): Move to toplev.c.
18070         (emit_debug_global_declarations, compile_file, finalize,
18071         do_compile, toplev_main): Use seen_error.
18072         * toplev.h: Include diagnostic-core.h.
18073         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
18074         internal_error, warning, warning_at, error, error_n, error_at,
18075         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
18076         verbatim, fnotice, progname): Move to diagnostic-core.h.
18077         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
18078         (expand_builtin_expect): Use seen_error.
18079         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
18080         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
18081         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
18082         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
18083         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
18084         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
18085         errorcount for errors.
18086         * c-opts.c (c_common_finish): Use seen_error.
18087         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18088         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
18089         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
18090         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
18091         (get_coverage_counts): Use seen_error.
18092         * dwarf2out.c (dwarf2out_finish): Use seen_error.
18093         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
18094         gimplify_body): Use seen_error.
18095         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
18096         * ipa-pure-const.c (gate_pure_const): Use seen_error.
18097         * ipa-reference.c (gate_reference): Use seen_error.
18098         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
18099         * lambda-code.c: Include diagnostic-core.h instead of
18100         diagnostic.h.
18101         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18102         * lto-compress.c: Include diagnostic-core.h instead of
18103         diagnostic.h.
18104         * lto-section-in.c: Include diagnostic-core.h instead of
18105         diagnostic.h.
18106         * lto-streamer-out.c: Include diagnostic-core.h instead of
18107         diagnostic.h.
18108         * lto-streamer.c: Include diagnostic-core.h instead of
18109         diagnostic.h.
18110         (gate_lto_out): Use seen_error.
18111         * matrix-reorg.c: Include diagnostic-core.h instead of
18112         diagnostic.h.
18113         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
18114         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
18115         (gate_expand_omp, lower_omp_1): Use seen_error.
18116         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
18117         (rest_of_decl_compilation, rest_of_type_compilation,
18118         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
18119         * tree-cfg.c (label_to_block_fn): Use seen_error.
18120         * tree-inline.c (optimize_inline_calls): Use seen_error.
18121         * tree-mudflap.c (mudflap_finish_file): Use
18122         seen_error.
18123         * tree-optimize.c (gate_all_optimizations,
18124         gate_all_early_local_passes, gate_all_early_optimizations): Use
18125         seen_error.
18126         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
18127         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
18128         (varpool_remove_unreferenced_decls,
18129         varpool_assemble_pending_decls): Use seen_error.
18130         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
18131         (TOPLEV_H, DIAGNOSTIC_H): Update.
18132         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
18133         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
18134         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
18135         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
18136         coverage.o, lambda-code.o): Update dependencies.
18137
18138 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
18139
18140         PR c++/44188
18141         * c-common.c (is_typedef_decl): Move this definition ...
18142         * tree.c (is_typedef_decl): ... here.
18143         (typdef_variant_p): Move definition here from cp/tree.c.
18144         * c-common.h (is_typedef_decl): Move this declaration ...
18145         * tree.h (is_typedef_decl): ... here.
18146         (typedef_variant_p): Move declaration here from cp/cp-tree.h
18147         * dwarf2out.c (is_naming_typedef_decl): New function.
18148         (gen_tagged_type_die): Split out of ...
18149         (gen_type_die_with_usage): ... this function. When an anonymous
18150         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18151         is emitted for the typedef.
18152         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18153         anonymous tagged types.
18154
18155 2010-05-27  Jason Merrill  <jason@redhat.com>
18156
18157         * print-tree.c (debug_vec_tree): New fn.
18158         (print_vec_tree): New fn.
18159         * tree.h: Declare them.
18160         * gdbinit.in (pvt): New command.
18161
18162         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
18163
18164         * gdbinit.in (pdd): New command.
18165
18166 2010-05-27  Jan Hubicka  <jh@suse.cz>
18167
18168         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
18169         (update_caller_keys): Return early if there are no callers;
18170         only update fibheap when decresing the key.
18171         (update_callee_keys): Avoid recursion.
18172         (decide_inlining_of_small_functions): When badness does not match;
18173         re-insert into fibheap.
18174
18175 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
18176
18177         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
18178         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
18179         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
18180         (ALL_HOST_OBJS): Now a union of the above two.
18181         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
18182         all files in ALL_HOST_FRONTEND_OBJS.
18183         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
18184
18185         * c-common.c: Pretend to be a backend file by undefining
18186         IN_GCC_FRONTEND (still need rtl.h here).
18187
18188 2010-05-27  Jan Hubicka  <jh@suse.cz>
18189
18190         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
18191         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
18192
18193 2010-05-27  Jan Hubicka  <jh@suse.cz>
18194
18195         * sched-ebb.c: Rename struct deps to struct deps_desc.
18196         * ddg.c: Likewise.
18197         * sel-sched-ir.c: Likewise.
18198         * sched-deps.c: Likewise.
18199         * sched-int.h: Likewise.
18200         * sched-rgn.c: Likewise.
18201
18202 2010-05-27  Jon Beniston  <jon@beniston.com>
18203
18204         PR 43726
18205         * config/lm32/lm32.h: Remove definition of
18206         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
18207
18208 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18209
18210         PR lto/44230
18211         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
18212
18213 2010-05-27  Richard Guenther  <rguenther@suse.de>
18214
18215         PR tree-optimization/44284
18216         * tree-vect-stmts.c (vectorizable_assignment): Handle
18217         sign-changing conversions as simple copy.
18218
18219 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18220
18221         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
18222         Bionic C library.
18223         (__gthread_active_p): Check for pthread_create if compiling against
18224         Bionic C library.
18225
18226 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18227
18228         Support compilation for Android platform.  Reimplement -mandroid.
18229
18230         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
18231         (*android*): Set ANDROID_DEFAULT.
18232         (arm*-*-linux*): Include linux-android.h.
18233         (arm*-*-eabi*): Don't include previous -mandroid implementation.
18234         * config/arm/eabi.h: Remove, move Android-specific parts ...
18235         * config/linux-android.h: ... here.  New file.
18236         * config/arm/eabi.opt: Rename to ...
18237         * config/linux-android.opt: ... this.
18238         (mandroid): Allow -mno-android option.  Initialize based on
18239         ANDROID_DEFAULT.
18240         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
18241         Move logic to corresponding LINUX_TARGET_* macros.
18242         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
18243         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
18244         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
18245         Android definitions.
18246         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
18247         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
18248         Document.
18249
18250 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18251
18252         Add support for Bionic C library
18253
18254         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
18255         macro.
18256         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
18257         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
18258
18259         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
18260         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
18261         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
18262         to support multiple C libraries.  Handle Bionic.
18263         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
18264         (BIONIC_DYNAMIC_LINKER64): Define.
18265         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
18266         Update.
18267         (TARGET_HAS_SINCOS): Enable for Bionic.
18268
18269         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
18270         the last option specified on command line take effect.
18271         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
18272         (mbionic): New.
18273         (mglibc, muclibc): Update.
18274
18275         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
18276         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
18277         DEFAULT_LIBC.
18278
18279         * doc/invoke.texi (-mglibc, -muclibc): Update.
18280         (-mbionic): Document.
18281
18282 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18283
18284         * c-common.h (c_register_addr_space): Add prototype.
18285         (ADDR_SPACE_KEYWORD): Remove.
18286         * c-common.c (c_register_addr_space): New function.
18287         (c_addr_space_name): Reimplement.
18288         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
18289
18290         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
18291         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
18292
18293         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
18294         Remove TARGET_ADDR_SPACE_KEYWORDS.
18295
18296 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18297
18298         * input.c: New file.
18299         * input.h (main_input_filename): Move declaration to toplev.h.
18300         * toplev.c (input_location, line_table): Move to input.c
18301         * toplev.h (main_input_filename): Move declaration from input.h.
18302         * tree.c (expand_location): Move to input.c.
18303         * Makefile.in (OBJS-common): Add input.o.
18304         (input.o): Add dependencies.
18305
18306 2010-05-27  Richard Guenther  <rguenther@suse.de>
18307
18308         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
18309         for non-existant files.
18310         (fork_execute): Mark args_name file as deleted.
18311
18312 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18313
18314         PR bootstrp/44287
18315         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
18316         (narrow_signed_type): Likewise.
18317
18318 2010-05-26  Jan Hubicka  <jh@suse.cz>
18319
18320         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
18321         edge only when checking is enabled; check using former_clone_of;
18322         check inline clones too.
18323         (cgraph_materialize_clone): Record former_clone_of pointer.
18324         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
18325         combining redirections; dump args_to_skip bitmap
18326         (cgraph_materialize_all_clones): Do no redirection here.
18327         * ipa-inline.c (inline_transform): Do redirection here.
18328         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
18329         cheking only).
18330
18331 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18332
18333         * config/avr/avr-c.c: Do not include regs.h.
18334         Include cpplib.h for cpp_define and tree.h for c-common.h.
18335         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
18336         * config/avr/t-avr: Fix dependencies for avr-c.o.
18337
18338 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18339
18340         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
18341         string instead of SYMBOL_REF rtx.
18342         * rtl.h (set_stack_check_libfunc): Move prototype from here...
18343         * libfuncs.h: ...to here.  Adjust for explow.c change.
18344
18345 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18346
18347         * pretty-print.c: Don't include ggc.h.
18348         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
18349         (identifier_to_locale): Use them for allocation.
18350         * pretty-print.h (identifier_to_locale_alloc,
18351         identifier_to_locale_free): Declare.
18352         * toplev.c (alloc_for_identifier_to_locale): New.
18353         (general_init): Set identifier_to_locale_alloc and
18354         identifier_to_locale_free.
18355         * Makefile.in (pretty-print.o): Update dependencies.
18356
18357 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18358
18359         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
18360         pointer types if they have different alignment or mode.
18361
18362 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
18363
18364         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18365         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18366         * config/sparc/sparc-protos.h (function_value): Remove declaration.
18367         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
18368         sparc_function_value_regno_p): New functions.
18369         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18370         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18371         (function_value): Rename to...
18372         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
18373         argument to 'outgoing'.
18374         (function_arg_record_value, function_arg_union_value,
18375         function_arg_vector_value): Update comment.
18376
18377 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18378
18379         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
18380         (fde_needed_for_eh_p): New predicate.
18381         (output_call_frame_info): Use it throughout to decide whether FDEs
18382         are needed for EH purpose.
18383         (dwarf2out_begin_prologue): Reorder assignments.
18384
18385 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18386
18387         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
18388         special case loop->header.
18389         (is_predicated): New.
18390         (if_convertible_loop_p): Call it.
18391
18392 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18393
18394         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
18395         iterator in parameter.  Do not generate code during the analysis.
18396         (tree_if_convert_cond_stmt): Removed.
18397         (tree_if_convert_stmt): Removed.
18398         (predicate_bbs): New.
18399         (if_convertible_loop_p): Call predicate_bbs.
18400         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
18401         now contains all the analysis part.
18402
18403 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18404
18405         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
18406         statements in the analysis part.
18407         (tree_if_convert_stmt): Update comment.
18408         (remove_conditions_and_labels): New.
18409         (combine_blocks): Call remove_conditions_and_labels.
18410         (tree_if_conversion): Update comment.
18411
18412 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18413
18414         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
18415         than 2 predecessors or more than 2 successors.
18416
18417 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18418
18419         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
18420         of loops in which the data dependence analysis fails.
18421
18422 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18423
18424         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
18425         CDI_POST_DOMINATORS.
18426         (tree_if_conversion): Same.
18427
18428 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18429
18430         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
18431
18432 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18433
18434         * tree-if-conv.c: Update copyright years.  Fix comments.
18435         Fix indentation.
18436
18437 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
18438
18439         * builtin-types.def (BT_INT128): New primitive type.
18440         (BT_UINT128): Likewise.
18441         * c-common.c (c_common_r): Add __int128 keyword.
18442         (c_common_type_for_size): Handle __int128.
18443         (c_common_type_for_mode): Likewise.
18444         (c_common_signed_or_unsigned_type): Likewise.
18445         (c_common_nodes_and_builtins): Add builtin type
18446         if target supports 128-bit integer scalar.
18447         * c-common.h (enum rid): Add RID_INT128.
18448         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18449         if target supports 128-bit integer scalar.
18450         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18451         (finish_declspecs): Likewise.
18452         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18453         (c_token_starts_declspecs): Likewise.
18454         (c_parser_declspecs): Likewise.
18455         (c_parser_attributes): Likewise.
18456         (c_parser_objc_selector): Likewise.
18457         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18458         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18459         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18460         * tree.c (make_or_reuse_type): Likewise.
18461         (make_unsigned_type): Likewise.
18462         (build_common_tree_nodes_2): Likewise.
18463         * tree.h (enum integer_type_kind): Add itk_int128 and
18464         itk_unsigned_int128.
18465         (int128_integer_type_node): New define.
18466         (int128_unsigned_type_node): New define.
18467         * doc/extend.texi: Add documentation about __int128 type.
18468
18469 2010-05-26  Richard Guenther  <rguenther@suse.de>
18470
18471         * tree-ssa-sccvn.c (copy_nary): Adjust.
18472         (copy_phis): Rename to ...
18473         (copy_phi): ... this.  Adjust.
18474         (copy_references): Rename to ...
18475         (copy_reference): ... this.  Adjust.
18476         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18477         result into the valid table.
18478
18479 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18480
18481         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18482         insn-config.h, insn-codes.h, recog.h, and optabs.h.
18483
18484 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18485
18486         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18487
18488 2010-05-26  Richard Guenther  <rguenther@suse.de>
18489
18490         * opts.c (common_handle_option): Handle OPT_Ofast.
18491
18492 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18493
18494         * diagnostic.c: Don't include opts.h.
18495         (permissive_error_option): Define.
18496         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
18497         for classify_diagnostic.  Don't use memset for
18498         classify_diagnostic.  Initialize new and recently added fields.
18499         (diagnostic_classify_diagnostic): Use context->n_opts instead of
18500         N_OPTS.
18501         (diagnostic_report_diagnostic): Pass context parameter to
18502         diagnostic_report_warnings_p.  Use option_enabled and option_name
18503         hooks from context.
18504         (emit_diagnostic): Use permissive_error_option.
18505         (permerror): Likewise.
18506         * diagnostic.h: Don't include options.h.
18507         (struct diagnostic_context): Add n_opts, opt_permissive,
18508         inhibit_warnings, warn_system_headers, option_enabled and
18509         option_name fields.  Change classify_diagnostic to a pointer.
18510         * opts-diagnostic.h: New file.
18511         * opts.c: Include opts-diagnostic.h.
18512         (common_handle_option): Set global_dc fields for -Wfatal-errors,
18513         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18514         (option_name): New function.
18515         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18516         (c_common_handle_option): Set global_dc->permissive for
18517         -fpermissive.
18518         * c-common.c (c_cpp_error): Save and restore
18519         global_dc->warn_system_headers, not variable warn_system_headers.
18520         * toplev.c: Include opts-diagnostic.h.
18521         (general_init): Update call to diagnostic_initialize.  Set
18522         global_dc->show_column, global_dc->option_enabled and
18523         global_dc->option_name.
18524         (process_options): Don't set global_dc fields here.
18525         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18526         (diagnostic.o, opts.o, toplev.o): Update dependencies.
18527
18528 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18529
18530         * config/picochip/picochip.md (movsi): Split a movsi from a
18531         const after reload.
18532
18533 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18534
18535         * ggc-zone.c: Update copyright year.
18536         (poison_region): Mark memory for Valgrind as undefined before
18537         memset () call and inaccessible afterwards.
18538         (ggc_pch_total_size): Change type of i to int.
18539
18540 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18541
18542         * ggc-common.c (ggc_free_overhead): Allow empty slot.
18543
18544 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18545
18546         * ggc-common.c: Update copyright year.
18547         (ggc_rlimit_bound): Remove prototype.  Compile only if
18548         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18549         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18550         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
18551         (ggc_min_heapsize_heuristic): Likewise.
18552
18553 2010-05-26  Richard Guenther  <rguenther@suse.de>
18554
18555         PR rtl-optimization/44164
18556         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18557         no-common access-path disambiguation.
18558         (indirect_ref_may_alias_decl_p): Adjust.
18559         (indirect_refs_may_alias_p): Likewise.
18560         (refs_may_alias_p_1): Likewise.
18561
18562 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18563
18564         * c-typeck.c: Do not include expr.h.
18565
18566 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18567
18568         * rtl.h (decl_default_tls_model): Move prototype from here...
18569         * output.h: ...to here.
18570         * c-decl.c: Do not include rtl.h.
18571         * c-pragma.c: Likewise.
18572         * c-parser.c: Likewise.
18573         * c-gimplify.c: Likewise.  And also not hard-reg-set.
18574         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
18575         FIXME note for it.  Add a FIXME note for expr.h.
18576         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18577         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18578         defined.
18579
18580 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
18581
18582         PR target/44199
18583         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18584         or total_size is larger than red zone size for non-V4 ABI, emit a
18585         stack_tie resp. frame_tie insn before stack pointer restore.
18586         * config/rs6000/rs6000.md (frame_tie): New insn.
18587
18588 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18589
18590         * function.h (struct function): Add can_throw_non_call_exceptions bit.
18591         * lto-streamer-in.c (input_function): Stream it in.
18592         * lto-streamer-out.c (output_function): Stream it out.
18593         * function.c (allocate_struct_function): Set it.
18594         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18595         for flag_non_call_exceptions.
18596         * cfgbuild.c (control_flow_insn_p): Likewise.
18597         (make_edges): Likewise.
18598         * cfgexpand.c (expand_stack_alignment): Likewise.
18599         * combine.c (distribute_notes): Likewise.
18600         * cse.c (cse_extended_basic_block): Likewise.
18601         * except.c (insn_could_throw_p): Likewise.
18602         * gcse.c (simple_mem): Likewise.
18603         * ipa-pure-const.c (check_call): Likewise.
18604         (check_stmt ): Likewise.
18605         * lower-subreg.c (lower-subreg.c): Likewise.
18606         * optabs.c (emit_libcall_block): Likewise.
18607         (prepare_cmp_insn): Likewise.
18608         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18609         * postreload.c (rest_of_handle_postreload): Likewise.
18610         * reload1.c (reload_as_needed): Likewise.
18611         (emit_input_reload_insns): Likewise.
18612         (emit_output_reload_insns): Likewise.
18613         (fixup_abnormal_edges): Likewise.
18614         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18615         * store-motion.c (find_moveable_store): Likewise.
18616         * tree-eh.c (stmt_could_throw_p): Likewise.
18617         (tree_could_throw_p): Likewise.
18618         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18619         * config/arm/arm.c (arm_expand_prologue): Likewise.
18620         (thumb1_expand_prologue): Likewise.
18621         * config/rx/rx.md (cbranchsf4): Likewise.
18622         (cmpsf): Likewise.
18623         * config/s390/s390.c (s390_emit_prologue): Likewise.
18624         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18625         (inline_forbidden_into_p): New predicate.
18626         (expand_call_inline): Use it to forbid inlining.
18627         (tree_can_inline_p): Likewise.
18628
18629 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18630
18631         * config/i386/i386-c.c: Do not include rtl.h.
18632         * config/i386/t-i386: Update dependencies.
18633
18634 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18635
18636         * attribs.c: Do not include rtl.h.
18637         * Makefile.in: Update dependencies.
18638
18639 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
18640
18641         * double-int.h (double_int_and): New.
18642         * combine.c (try_combine): Clean up, use double_int_* and
18643         immed_double_int_const functions.
18644
18645 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18646
18647         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18648         stderr to /dev/null instead of grep -q.
18649         * configure: Regenerate.
18650
18651 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18652
18653         * Makefile.in (EXCEPT_H): Fix typo.
18654
18655 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
18656
18657         * ira-build.c (update_conflict_hard_reg_costs): New.
18658         (ira_build): Call update_conflict_hard_reg_costs.
18659
18660 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18661
18662         PR debug/41371
18663         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18664         ENABLE_CHECKING.
18665         (intersect_loc_chains): Walk the s2var's loc_chain together
18666         with s1node chain as long as the locations are equal, don't
18667         call find_loc_in_1pdv in that case.
18668
18669         PR debug/42801
18670         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18671         (copy_bind_expr): ... instead of here.
18672         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18673         if the block hasn't been remapped.
18674         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18675         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18676
18677 2010-05-25  Richard Guenther  <rguenther@suse.de>
18678
18679         PR middle-end/44069
18680         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18681         out-of-bounds array accesses.
18682
18683 2010-05-25  Richard Guenther  <rguenther@suse.de>
18684
18685         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18686         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18687         (run_gcc): Re-organize to make cleanup easier.
18688
18689 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18690
18691         * config/s390/s390.c (optimization_options): Fix and move the
18692         flag_prefetch_loop_arrays override ...
18693         (override_options): ... here.
18694
18695 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
18696
18697         * diagnostic.c: Don't include plugin.h.
18698         (diagnostic_report_diagnostic): Don't handle plugins specially
18699         here.  Pass context to internal_error callback.
18700         * diagnostic.h (struct diagnostic_context): Add context parameter
18701         to internal_error callback.
18702         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18703         * plugin.h (struct diagnostic_context): Declare.
18704         (warn_if_plugins, plugins_internal_error_function): Declare.
18705         * toplev.c (general_init): Set global_dc->internal_error.
18706         * Makefile.in (diagnostic.o): Update dependencies.
18707
18708 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
18709
18710         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18711         * config/rs6000/t-darwin64: New.
18712         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18713         build crt2.
18714
18715 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
18716
18717         PR 44203
18718         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18719         match the original (and intended) behaviour before r159557.  This
18720         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18721         in two ways.
18722
18723 2010-05-25  Richard Guenther  <rguenther@suse.de>
18724
18725         * doc/invoke.texi: Document -Ofast.
18726         * target.h (struct gcc_target): Add handle_ofast.
18727         * target-def.h (TARGET_HANDLE_OFAST): Add.
18728         (TARGET_INITIALIZER): Adjust.
18729         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
18730         * common.opt (Ofast): Add.
18731
18732 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18733
18734         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18735         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18736
18737 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18738
18739         PR target/43610
18740         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18741         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
18742         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
18743         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18744
18745 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18746
18747         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18748         DW_OP_minus with negated offset instead of DW_OP_plus.
18749         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18750
18751 2010-05-25  Wei Guozhi  <carrot@google.com>
18752
18753         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18754         tst instruction and a new alternative.
18755         * config/arm/constraints.md (Pu): New constraint.
18756
18757 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
18758
18759         * function.c (assign_stack_local_1): Initialize variable
18760         to avoid warning when bootstrapping at -O3.
18761
18762 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18763
18764         * configure.ac (all_lang_makefiles): Remove everything related to it.
18765         * configure: Regenerate.
18766         * Makefile.in: Fix reference to ada Make-lang.in.
18767         Remove support for LANG_MAKEFILES.
18768
18769 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
18770             Sandra Loosemore  <sandra@codesourcery.com>
18771
18772         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18773         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18774         description.  Add arm_neon_fp16_ok.
18775         (Add Options): Add arm_neon and arm_neon_fp16.
18776
18777 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
18778
18779         * diagnostic.c: Don't include flags.h.
18780         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18781         context parameters.  Check flags in the context passed as a parameter.
18782         (diagnostic_build_prefix): Add context parameter.  Check
18783         show_column flag in context.
18784         (diagnostic_action_after_output): Check fatal_errors flag in context.
18785         (diagnostic_report_current_module): Check show_column flag in context.
18786         (default_diagnostic_starter): Update call to
18787         diagnostic_build_prefix.
18788         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18789         (emit_diagnostic): Pass context to permissive_error_kind.
18790         (permerror): Pass context to permissive_error_kind.
18791         * diagnostic.h (struct diagnostic_context): Add show_column,
18792         pedantic_errors, permissive and fatal_errors fields.
18793         (diagnostic_build_prefix): Update prototype.
18794         * langhooks.c
18795         * toplev.c (process_options): Set flags in global_dc from
18796         flag_show_column, flag_pedantic_errors, flag_permissive,
18797         flag_fatal_errors.
18798         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18799         to diagnostic_build_prefix.
18800         * Makefile.in (diagnostic.o): Update dependencies.
18801
18802 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18803
18804         * config/i386/ia32intrin.h (__crc32q): Define only if
18805         __SSE4_2__ is defined.
18806
18807 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
18808
18809         PR target/44132
18810         PR middle-end/43602
18811         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18812         DECL_VISIBILITY_SPECIFIED.
18813         (emutls_decl): Set DECL_PRESERVE_P and copy
18814         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18815         (emutls_finalize_control_var): New callback.
18816         (emutls_finish): Finalize emutls control variables.
18817         * toplev.c (compile_file): Move the call to emutls_finish ()
18818         before varpool_assemble_pending_decls ().
18819
18820 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
18821
18822         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18823         added to the preprocessor condition.
18824
18825 2010-05-24  Paul Brook  <paul@codesourcery.com>
18826
18827         * gengtype-lex.l: Add HARD_REG_SET.
18828         * expr.c (expand_expr_real_1): Record writes to hard registers.
18829         * function.c (rtl_data): Add asm_clobbers.
18830         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18831         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18832         Use crtl->asm_clobbers.
18833
18834 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18835
18836         * doc/makefile.texi (Makefile): Mention stages 'profile'
18837         and 'feedback' for profiledbootstrap.
18838
18839 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18840
18841         PR target/44245
18842         * config/i386/i386.c (def_builtin): Properly check
18843         OPTION_MASK_ISA_64BIT.
18844
18845 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18846
18847         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18848         typedefs with different but compatible types.  Allow duplicate
18849         typedefs with the same type except for pedantic non-C1X, but give
18850         warning for variably modified types.
18851         * c-typeck.c (tagged_types_tu_compatible_p,
18852         function_types_compatible_p, type_lists_compatible_p,
18853         comptypes_internal): Add parameter different_types_p; set
18854         *different_types_p for different but compatible types.  All
18855         callers changed.
18856         (comptypes_check_different_types): New.
18857         * c-tree.h (comptypes_check_different_types): Declare.
18858
18859 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18860
18861         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18862         * jump.c: Include basic-block.h.
18863         * profile.c: Likewise.
18864         * tree-profile.c: Likewise.
18865         * coverage.c: Likewise.
18866         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18867         (optimize_function_for_speed_p): Likewise.
18868         * function.h (optimize_function_for_size_p,
18869         optimize_function_for_speed_p): Moved here from basic-block.h.
18870         * Makefile.in: Update dependencies.
18871
18872 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18873
18874         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18875         before calling make; allow override through $MAKE.
18876         * doc/invoke.texi (Optimize Options): Document override.
18877
18878 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18879
18880         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18881         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18882         (rs6000_mode_dependent_address_ptr): Make static.
18883         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18884         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18885         Remove.
18886
18887 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18888
18889         PR target/43869
18890         * config/i386/i386.c: Make sure that the correct regparm is passed.
18891
18892 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18893
18894         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18895         * sbitmap.c: ...to here to internalize sbitmap element access.
18896         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18897         Explain why basic-block.h is included.
18898         * function.h: Include tm.h for CUMULATIVE_ARGS.
18899         * Makefile.in: Update dependencies.
18900
18901 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18902
18903         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18904         New core types.
18905         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18906         * sbitmap.c: Include sbitmap.h.
18907         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18908         hard-reg-set.h.  Split everything related to regsets out from here...
18909         * regset.h: ...to here.  New file.
18910         * df.h: Include regset.h and sbitmap.h.
18911         * tree-flow.h: Likewise.
18912         * cfgloop.h: Likewise.
18913         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18914         * cgraph.h: Include vec.h and function.h.
18915         * reload.h (struct insn_chain): Change types of live_throughout
18916         and dead_or_set from regset_head to bitmap_head.
18917         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18918         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18919         spilled_regs from regset_head to bitmap_head to avoid dependency
18920         in regset.h.
18921         * sel-sched-ir.h: Include regset.h.
18922         * reload.c: Include df.h before reload.h.
18923         * caller-save.c: Likewise.
18924         * reload1.c: Likewise.
18925         * ira.c: Likewise.
18926         (mark_elimination): Update type of r to bitmap, consistent with
18927         DF_LR_IN.
18928         * dominance.c: Include bitmap.h.
18929         * modulo-sched.c: Include df.h.
18930         * cfganal.c: Include bitmap.h and sbitmap.h.
18931         * cfgbuild.c: Include sbitmap.h.
18932         * lcm.c: Include sbitmap.h.
18933         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18934         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18935         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18936         * cselib.c: Include bitmap.h.
18937         * tree-optimize.c: Include regset.h.
18938         * stmt.c: Include bitmap.h.
18939         * Makefile.in: Update dependencies.
18940
18941 2010-05-22  Jan Hubicka  <jh@suse.cz>
18942
18943         * cgraph.h (struct varpool_node): Add same_comdat_group.
18944         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18945         pointer.
18946         (output_varpool): Update call of lto_output_varpool_node.
18947         (input_varpool): Read same_comdat_group pointer.
18948         (input_varpool_1): Fixup same_comdat_group pointer.
18949         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18950         group is needed, all are.
18951         * varpool.c (varpool_remove_node): Remove node from same comdat group
18952         linklist too.
18953         (varpool_analyze_pending_decls): Walk same comdat groups.
18954
18955 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18956
18957         * rtl.h (union rtunion_def): Remove rt_bit member.
18958         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18959         * print-rtl (print_rtx): Do not print the member.
18960         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18961         * gengenrtl.c (type_from_format): Likewise.
18962         (accessor_from_format): Likewise.
18963
18964 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18965
18966         * dbgcnt.c: Include toplev.h instead of errors.h.
18967         * ira-emit.c: Don't include errors.h.
18968         * ira.c: Include toplev.h instead of errors.h.
18969         * lto-compress.c: Include toplev.h instead of errors.h.
18970         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18971         ira.o, dbgcnt.o): Update dependencies.
18972
18973 2010-05-22  Richard Guenther  <rguenther@suse.de>
18974
18975         * gimple.c (gimple_types_compatible_p): Check type qualifications
18976         before merging pointer to complete and pointer to incomplete type.
18977         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18978         we use our own resolution algorithm.  The gold linker plugin
18979         doesn't do the job we want it to do here.
18980
18981 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18982
18983         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18984         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18985         (sparc_mode_dependent_address_p): New function.
18986
18987 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18988
18989         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18990
18991         * timevar.c: Do not include any core headers.
18992         (timevar_print): De-i18n-ize.
18993         (print_time): Likewise.
18994         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18995
18996 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18997
18998         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18999         langhooks-def.h.
19000         (diagnostic_initialize): Initialize x_data not last_function.
19001         (diagnostic_report_current_function): Move to tree-diagnostic.c.
19002         (default_diagnostic_starter): Call
19003         diagnostic_report_current_module not
19004         diagnostic_report_current_function.
19005         (diagnostic_report_diagnostic): Initialize x_data not
19006         abstract_origin.
19007         (verbatim): Likewise.
19008         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
19009         x_data.
19010         (struct diagnostic_context): Change last_function to x_data.
19011         (diagnostic_auxiliary_data): Replace with
19012         diagnostic_context_auxiliary_data and
19013         diagnostic_info_auxiliary_data.
19014         (diagnostic_last_function_changed, diagnostic_set_last_function,
19015         diagnostic_report_current_function): Move to tree-diagnostic.h.
19016         (print_declaration, dump_generic_node, print_generic_stmt,
19017         print_generic_stmt_indented, print_generic_expr,
19018         print_generic_decl, debug_c_tree, dump_omp_clauses,
19019         print_call_name, debug_generic_expr, debug_generic_stmt,
19020         debug_tree_chain, default_tree_printer): Move to
19021         tree-pretty-print.h.
19022         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
19023         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
19024         gimple-pretty-print.h.
19025         * pretty-print.c: Don't include tree.h
19026         (pp_base_format): Don't handle %K here.
19027         (pp_base_tree_identifier): Move to tree-pretty-print.c.
19028         * pretty-print.h (text_info): Change abstract_origin to x_data.
19029         (pp_tree_identifier, pp_unsupported_tree,
19030         pp_base_tree_identifier): Move to tree-pretty-print.h.
19031         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
19032         tree-pretty-print.h: New files.
19033         * tree-pretty-print.c: Include tree-pretty-print.h.
19034         (percent_K_format): New.  Moved from pretty-print.c.
19035         (pp_base_tree_identifier): Move from pretty-print.c.
19036         * c-objc-common.c: Include tree-pretty-print.h.
19037         (c_tree_printer): Handle %K here.
19038         * langhooks.c: Include tree-diagnostic.h.
19039         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
19040         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
19041         (default_tree_printer): Handle %K using percent_K_format.
19042         (general_init): Use default_tree_diagnostic_starter.
19043         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
19044         (free_lang_data): Use default_tree_diagnostic_starter.
19045         * c-pretty-print.c: Include tree-pretty-print.h.
19046         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19047         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19048         * dwarf2out.c: Include tree-pretty-print.h.
19049         * except.c: Include tree-pretty-print.h.
19050         * gimple-pretty-print.c: Include tree-pretty-print.h and
19051         gimple-pretty-print.h.
19052         * gimplify.c: Include tree-pretty-print.h.
19053         * graphite-poly.c: Include tree-pretty-print.h and
19054         gimple-pretty-print.h.
19055         * ipa-cp.c: Include tree-pretty-print.h.
19056         * ipa-inline.c: Include gimple-pretty-print.h.
19057         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19058         * ipa-pure-const.c: Include gimple-pretty-print.h.
19059         * ipa-struct-reorg.c: Include tree-pretty-print.h and
19060         gimple-pretty-print.h.
19061         * ipa-type-escape.c: Include tree-pretty-print.h.
19062         * print-rtl.c: Include tree-pretty-print.h.
19063         * print-tree.c: Include gimple-pretty-print.h.
19064         * sese.c: Include tree-pretty-print.h.
19065         * tree-affine.c: Include tree-pretty-print.h.
19066         * tree-browser.c: Include tree-pretty-print.h.
19067         * tree-call-cdce.c: Include gimple-pretty-print.h.
19068         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19069         * tree-chrec.c: Include tree-pretty-print.h.
19070         * tree-data-ref.c: Include tree-pretty-print.h and
19071         gimple-pretty-print.h.
19072         * tree-dfa.c: Include tree-pretty-print.h.
19073         * tree-if-conv.c: Include tree-pretty-print.h and
19074         gimple-pretty-print.h.
19075         * tree-inline.c: Include tree-pretty-print.h.
19076         * tree-into-ssa.c: Include tree-pretty-print.h and
19077         gimple-pretty-print.h.
19078         * tree-nrv.c: Include tree-pretty-print.h.
19079         * tree-object-size.c: Include tree-pretty-print.h and
19080         gimple-pretty-print.h.
19081         * tree-outof-ssa.c: Include tree-pretty-print.h and
19082         gimple-pretty-print.h.
19083         * tree-parloops.c: Include tree-pretty-print.h and
19084         gimple-pretty-print.h.
19085         * tree-predcom.c: Include tree-pretty-print.h and
19086         gimple-pretty-print.h.
19087         * tree-scalar-evolution.c: Include tree-pretty-print.h and
19088         gimple-pretty-print.h.
19089         * tree-sra.c: Include tree-pretty-print.h.
19090         * tree-ssa-address.c: Include tree-pretty-print.h.
19091         * tree-ssa-alias.c: Include tree-pretty-print.h.
19092         * tree-ssa-ccp.c: Include tree-pretty-print.h and
19093         gimple-pretty-print.h.
19094         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
19095         * tree-ssa-copy.c: Include tree-pretty-print.h and
19096         gimple-pretty-print.h.
19097         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
19098         * tree-ssa-dce.c: Include tree-pretty-print.h and
19099         gimple-pretty-print.h.
19100         * tree-ssa-dom.c: Include tree-pretty-print.h and
19101         gimple-pretty-print.h.
19102         * tree-ssa-dse.c: Include gimple-pretty-print.h.
19103         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
19104         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
19105         * tree-ssa-live.c: Include tree-pretty-print.h and
19106         gimple-pretty-print.h.
19107         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
19108         gimple-pretty-print.h.
19109         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
19110         gimple-pretty-print.h.
19111         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
19112         gimple-pretty-print.h.
19113         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
19114         gimple-pretty-print.h.
19115         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
19116         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
19117         * tree-ssa-operands.c: Include tree-pretty-print.h and
19118         gimple-pretty-print.h.
19119         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
19120         gimple-pretty-print.h.
19121         * tree-ssa-pre.c: Include tree-pretty-print.h and
19122         gimple-pretty-print.h.
19123         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
19124         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
19125         gimple-pretty-print.h.
19126         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
19127         gimple-pretty-print.h.
19128         * tree-ssa-sink.c: Include gimple-pretty-print.h.
19129         * tree-ssa-ter.c: Include tree-pretty-print.h and
19130         gimple-pretty-print.h.
19131         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
19132         * tree-ssa.c: Include tree-pretty-print.h and
19133         gimple-pretty-print.h.
19134         * tree-stdarg.c: Include gimple-pretty-print.h.
19135         * tree-switch-conversion.c: Include gimple-pretty-print.h.
19136         * tree-tailcall.c: Include tree-pretty-print.h and
19137         gimple-pretty-print.h.
19138         * tree-vect-data-refs.c: Include tree-pretty-print.h and
19139         gimple-pretty-print.h.
19140         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
19141         gimple-pretty-print.h.
19142         * tree-vect-loop.c: Include tree-pretty-print.h and
19143         gimple-pretty-print.h.
19144         * tree-vect-patterns.c: Include gimple-pretty-print.h.
19145         * tree-vect-slp.c: Include tree-pretty-print.h and
19146         gimple-pretty-print.h.
19147         * tree-vect-stmts.c: Include tree-pretty-print.h and
19148         gimple-pretty-print.h.
19149         * tree-vectorizer.c: Include tree-pretty-print.h.
19150         * tree-vrp.c: Include tree-pretty-print.h and
19151         gimple-pretty-print.h.
19152         * value-prof.c: Include tree-pretty-print.h and
19153         gimple-pretty-print.h.
19154         * var-tracking.c: Include tree-pretty-print.h.
19155         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
19156         (tree-diagnostic.o): New dependencies.
19157         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
19158         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
19159         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
19160         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
19161         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
19162         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
19163         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
19164         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
19165         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
19166         tree-ssa-address.o, tree-ssa-loop-niter.o,
19167         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
19168         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
19169         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
19170         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
19171         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
19172         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
19173         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
19174         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
19175         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
19176         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
19177         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
19178         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
19179         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
19180         tree-switch-conversion.o, var-tracking.o, value-prof.o,
19181         cfgexpand.o, pretty-print.o): Update dependencies.
19182
19183 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
19184
19185         * tree-ssa-structalias.c: Remove tm_p.h from include.
19186
19187 2010-05-21  Jeff Law  <law@redhat.com>
19188
19189         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
19190
19191 2010-05-21  Jason Merrill  <jason@redhat.com>
19192
19193         * tree-eh.c (cleanup_is_dead_in): New.
19194         (lower_try_finally): Don't generate a dead cleanup region.
19195         (lower_cleanup): Likewise.
19196
19197 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19198
19199         PR debug/44223
19200         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
19201         unchain each use from the cyclic next_regno_use chain first.
19202
19203 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19204
19205         * real: Do not include gmp.h, mpfr.h, and mpc.h.
19206         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
19207         (real_value_negate, real_value_abs): New prototypes.
19208         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
19209         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
19210         new include file for interface between MPFR and REAL_VALUE_TYPE.
19211         * real.c: Include realmpfr.h.
19212         (real_arithmetic2): Remove legacy function.
19213         (real_value_negate): New.
19214         (real_value_abs): New.
19215         (mfpr_from_real, real_from_mpfr): Move from here...
19216         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
19217         * builtins.c: Include realmpfr.h.
19218         * fold-const.c: Include realmpfr.h.
19219         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
19220         (fold_negate_const): Likewise.
19221         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
19222         * toplev.c: Include realmpfr.h.
19223         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
19224         and real_value_negate.
19225         * fixed-value.c (check_real_for_fixed_mode): Likewise.
19226         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
19227         (vfp3_const_double_index): Likewise.
19228         (arm_print_operand): Likewise.
19229         * Makefile.in: Update dependencies.
19230
19231 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19232
19233         * config/s390/s390.c (override_options): Increase the default
19234         of max-completely-peel-times.
19235
19236 2010-05-21  Julian Brown  <julian@codesourcery.com>
19237             Mark Mitchell  <mark@codesourcery.com>
19238
19239         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
19240         sibling calls for Thumb-1.
19241         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
19242         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
19243         Thumb-2.
19244         (*call_insn, *call_value_insn): Don't use for Thumb-2.
19245         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
19246         for Thumb-2.
19247         (return): New expander.
19248         (*arm_return): New name for ARM return insn.
19249         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
19250
19251 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
19252
19253         * config.gcc (sparc64-*-rtems*): New target.
19254
19255 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
19256
19257         * tree.c (build_function_decl_skip_args): Fix grammar.
19258         (build_function_type_list_1): Fix typos, adjust formatting.
19259
19260 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19261
19262         * tree.h: Include real.h and fixed-value.h as basic datatypes.
19263         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
19264         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
19265         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
19266         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
19267         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
19268         tree-pretty-print.c, tree-loop-distribution.c,
19269         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
19270         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
19271         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
19272         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
19273         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
19274         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
19275         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
19276         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
19277         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
19278         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
19279         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
19280         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
19281         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
19282         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
19283         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
19284         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
19285         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
19286         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
19287         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
19288         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
19289         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
19290         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
19291         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
19292         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
19293         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
19294         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
19295         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
19296         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
19297         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
19298         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
19299         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
19300         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
19301         config/score/score7.c, config/score/score.c, config/arm/arm.c,
19302         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
19303         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
19304         config/bfin/bfin.c: Clean up redundant includes.
19305         * Makefile.in: Update accordingly.
19306
19307 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
19308
19309         PR middle-end/44204
19310         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
19311         statement has no arguments.
19312
19313 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
19314
19315         PR/44139
19316         * varasm.c (emutls_decl): Merge attributes to new decl.
19317
19318 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
19319
19320         PR middle-end/44101
19321         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
19322         around the uniquized constructor if its type requires a conversion.
19323
19324 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19325
19326         PR debug/44205
19327         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
19328         at -O0 goto_locus of any of the incoming edges differs from
19329         goto_locus of outgoing edge, or gimple_location of any of the
19330         labels differs.
19331
19332 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
19333
19334         * ira.c (ira_non_ordered_class_hard_regs): Define.
19335         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
19336         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
19337         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
19338         cost of unaligned hard regs when allocating multi-reg pseudos.
19339
19340 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19341
19342         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
19343         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
19344         for TARGET_NO_FLOAT.
19345         * config/mips/mips.c (mips_file_start): Expand conditional expression
19346         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
19347         (mips_override_options): Move -mno-float override -msoft-float and
19348         -mhard-float.
19349         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
19350         Condition(TARGET_SUPPORTS_NO_FLOAT).
19351         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
19352         __mips_no_float here.
19353         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
19354         (TARGET_SUPPORTS_NO_FLOAT): Define.
19355         * config/mips/sdemtk.opt: Delete.
19356
19357 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
19358
19359         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
19360
19361 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
19362
19363         PR target/43733
19364         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
19365         * configure: Regenerate.
19366         * config.in: Regenerate.
19367         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
19368         instead of sahf only for 64bit targets.
19369
19370 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19371
19372         PR debug/44178
19373         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
19374         setup_ref_regs for DEBUG_INSNs.
19375
19376 2010-05-20  Jan Hubicka  <jh@suse.cz>
19377
19378         PR middle-end/44197
19379         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
19380
19381 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
19382
19383         PR bootstrap/43870
19384         * df-scan.c (df_ref_compare): Stabilize sort.
19385
19386 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19387
19388         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
19389         argument.  Don't use DW_OP_piece if offset is non-zero,
19390         put offset into second DW_OP_bit_piece argument.
19391         (dw_sra_loc_expr): Adjust callers.  For memory expressions
19392         compute offset.
19393
19394 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
19395
19396         PR target/44202
19397         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
19398         settings for 16-bit-constant "addo" alternative.
19399
19400 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
19401
19402         * config/mips/mips-dsp.md (add<DSPV:mode>3,
19403         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
19404
19405         PR target/43764
19406         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
19407         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
19408         Use it.
19409
19410 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
19411
19412         * diagnostic.c (FLOAT, FFS): Don't undefine.
19413         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
19414         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
19415         include ordering.
19416
19417 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19418
19419         * combine.c (propagate_for_debug): Call make_compound_operation
19420         on the source value.
19421         (try_combine): When implementing a split chosen by find_split_point,
19422         either copy i2src or set it to null.  Assert that i2src is not null
19423         before substituting into CALL_INSN_FUNCTION_USAGE.
19424
19425 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
19426
19427         * double-int.h (double_int_ior): New function.
19428         * tree.h (build_int_cst_wide_type): Remove.
19429         * tree.c (build_int_cst_wide_type): Remove.
19430         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
19431         of build_int_cst_wide_type.
19432         * stor-layout.c (set_sizetype): (Ditto.).
19433         * dojump.c (do_jump): Use build_int_cstu instead of
19434         build_int_cst_wide_type.
19435
19436 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19437
19438         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
19439         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
19440         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
19441         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
19442         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
19443         propagate the 'data' argument to copy_tree_r.
19444         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19445         Propagate 'data' argument to walk_tree.
19446         (copy_if_shared): New function.
19447         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19448         (unmark_visited): New function.
19449         (unshare_body): Call copy_if_shared instead of doing it manually.
19450         (unvisit_body): Call unmark_visited instead of doing it manually.
19451
19452 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
19453
19454         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19455         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
19456         * hooks.c: Likewise.
19457         * target-def.h (TARGET_FOLD_BUILTIN): Define to
19458         hook_tree_tree_int_treep_bool_null.
19459         * target.h (struct gcc_target): Update signature of fold_builtin
19460         field.
19461         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19462         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19463         instead of the call expression.
19464         (fold_builtin_call_array): Pass n and argarray directly.
19465         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19466         consing a list.
19467         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
19468         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
19469         `i' and use it in place of `arity'.
19470         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19471         Dereference `args' directly.
19472         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19473
19474 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19475
19476         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19477         3dnow, sse3, sse2.
19478         (Directives): Document optional dg-require-effective-target
19479         selector.
19480
19481 2010-05-19  Richard Guenther  <rguenther@suse.de>
19482
19483         PR lto/44196
19484         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19485
19486 2010-05-19  Richard Guenther  <rguenther@suse.de>
19487
19488         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19489         * common.opt (fwhopr=): New.
19490         * opts.c (common_handle_option): Handle OPT_fwhopr.
19491         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19492         * collect2.c (main): Match -fwhopr*.
19493         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19494         Execute ltrans stage in parallel when jobs is bigger than 1.
19495
19496 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19497
19498         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19499         pentiumpro on Solaris 8/x86 with Sun as.
19500         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19501         hidden alias bug.
19502         (gcc_cv_as_ix86_quad): Check for .quad directive.
19503         * configure: Regenerate.
19504         * config.in: Regenerate.
19505         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19506
19507 2010-05-19  Martin Jambor  <mjambor@suse.cz>
19508
19509         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19510         also for indirect edges.  Actual printing moved...
19511         (ipa_print_node_jump_functions_for_edge): ...here.
19512         (ipa_compute_jump_functions): Renamed to
19513         ipa_compute_jump_functions_for_edge and made static.
19514         (ipa_compute_jump_functions): New function.
19515         (make_edge_direct_to_target): Check if the number of arguments on
19516         the newly direct edge is the same as the number of parametrs of
19517         the callee.
19518         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19519         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
19520         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19521         analysis functions unconditionally, call the new
19522         ipa_analyze_params_uses on the node instead of every edge.
19523
19524 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
19525
19526         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19527         to tree.
19528         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
19529         also checks for a constant int vs.  non-constant but
19530         loop-invariant steps.
19531         (find_or_create_group): Change the sort algorithm to only consider
19532         steps that are constant ints.
19533         (idx_analyze_ref): Adopt code to handle a tree instead of a
19534         HOST_WIDE_INT for step.
19535         (gather_memory_references_ref): Handle tree instead of int and be
19536         prepared to see a NULL_TREE.
19537         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19538         prefetches if the step cannot be calculated at compile time.
19539         (issue_prefetch_ref): Issue prefetches for non-constant but
19540         loop-invariant steps.
19541
19542 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19543
19544         Revert:
19545         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19546
19547         * tree.h (build_call_list): Remove.
19548         * tree.c (build_call_list): Remove.
19549
19550 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19551
19552         * tree.h (build_call_list): Remove.
19553         * tree.c (build_call_list): Remove.
19554
19555 2010-05-18  Jan Hubicka  <jh@suse.cz>
19556
19557         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19558
19559 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
19560
19561         PR rtl-optimization/43332
19562         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19563
19564 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
19565
19566         * tree.h (build_int_cstu): Implement as static inline.
19567         * tree.c (build_int_cstu): Remove function.
19568         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19569         sign extended.
19570
19571 2010-05-18  Richard Guenther  <rguenther@suse.de>
19572
19573         PR lto/44143
19574         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
19575         (debug): Initialize from -save-temps.
19576         (collect_execute): Print command-line when verbose.
19577         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
19578         for ltrans invocation.  Produce -dumpbase flag again.
19579         (process_args): Remove.
19580         (main): Simplify.
19581         * collect2.c (maybe_run_lto_and_relink): Only pass object
19582         files to lto-wrapper.
19583         * gcc.c (LINK_COMMAND_SPEC): Likewise.
19584
19585 2010-05-18  Jan Hubicka  <jh@suse.cz>
19586
19587         * opts.c (decode_options): Do not disable whopr at ipa_cp.
19588         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19589
19590 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19591
19592         PR lto/44184
19593         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19594         in a GIMPLE_ASM.
19595         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19596         in a GIMPLE_ASM.
19597
19598 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
19599
19600         PR debug/41371
19601         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19602         rtx_equal_p inline.
19603
19604 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19605
19606         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19607         lto-macho as lto_binary_reader.
19608
19609         * darwin.c (darwin_asm_named_section): Do not add assembler comment
19610         after .section directive; just print it before the directive instead.
19611
19612 2010-05-17  Jan Hubicka  <jh@suse.cz>
19613
19614         * cgraph.c (cgraph_create_virtual_clone): Only check
19615         versionable_function_p when not in wpa and checking is enabled.
19616         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19617         there are no more functions to materialize.
19618
19619 2010-05-17  Jan Hubicka  <jh@suse.cz>
19620
19621         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19622         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19623         New functions.
19624         (output_cgraph): Call output_cgraph_opt_summary.
19625         (input_cgrpah): Call input_cgraph_opt_summary.
19626         (output_cgraph_opt_summary_p, output_node_opt_summary,
19627         input_node_opt_summary, input_cgraph_opt_section): New functions.
19628         * lto-section-in.c (lto_section_name): Add cgraphopt.
19629         * tree-inline.c (tree_function_versioning): Handle parm_num.
19630         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19631         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19632
19633 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19634
19635         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19636         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19637         the insn to prefetch ratio heuristic to loops with known trip count.
19638
19639 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19640
19641         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19642         (schedule_prefetches): Do not generate a prefetch if the unroll factor
19643         is far from what is required by the prefetch.
19644
19645 2010-05-17  Jan Hubicka  <jh@suse.cz>
19646
19647         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19648         (ipcp_estimate_growth): Likewise.
19649         (ipcp_const_param_count): Likewise.
19650         (ipcp_insert_stage): Likewise.
19651         * ipa-prop.c (visit_load_for_mod_analysis): New function.
19652         (visit_store_addr_for_mod_analysis): Set used flag.
19653         (ipa_detect_param_modifications): Set used flag for SSE params;
19654         update use of walk_stmt_load_store_addr_ops.
19655         (ipa_print_node_params): Print used flag.
19656         (ipa_write_node_info): Stream used flag.
19657         (ipa_read_node_info): Likewise.
19658         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19659         (ipa_is_param_used): New function.
19660         (lto_ipa_fixup_call_notes): Remove unused declaration.
19661
19662 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19663
19664         PR target/44074
19665         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19666         * configure: Regenerate.
19667         * config.in: Regenerate.
19668         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19669         !HAVE_AS_IX86_REP_LOCK_PREFIX.
19670         Don't emit whitespace.
19671         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19672         (*rep_movsi): Likewise.
19673         (*rep_movsi_rex64): Likewise.
19674         (*rep_movqi): Likewise.
19675         (*rep_movqi_rex64): Likewise.
19676         (*rep_stosdi_rex64): Likewise.
19677         (*rep_stossi): Likewise.
19678         (*rep_stossi_rex64): Likewise.
19679         (*rep_stosqi): Likewise.
19680         (*rep_stosqi_rex64): Likewise.
19681         (*cmpstrnqi_nz_1): Use {%;} after repz.
19682         (*cmpstrnqi_nz_rex_1): Likewise.
19683         (*cmpstrnqi_1): Likewise.
19684         (*cmpstrnqi_rex_1): Likewise.
19685         (*strlenqi_1): Use {%;} after repnz.
19686         (*strlenqi_rex_1): Likewise.
19687         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19688         (*sync_compare_and_swap<mode>): Likewise.
19689         (sync_double_compare_and_swap<mode>): Likewise.
19690         (*sync_double_compare_and_swapdi_pic): Likewise.
19691         (sync_old_add<mode>): Likewise.
19692         (sync_add<mode>): Likewise.
19693         (sync_sub<mode>): Likewise.
19694         (sync_<code><mode>): Likewise.
19695
19696 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19697
19698         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19699         otr_token and polymorphic.
19700         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19701         (cgraph_clone_edge): Copy the above fields.
19702         * tree.c (get_binfo_at_offset): New function.
19703         * tree.h (get_binfo_at_offset): Declare.
19704         * ipa-prop.h (enum jump_func_type): Added known_type jump function
19705         type, reordered items, updated comments.
19706         (union jump_func_value): Added base_type field, reordered fields.
19707         (enum ipa_lattice_type): Moved down in the file.
19708         (struct ipa_param_descriptor): New field polymorphic.
19709         (ipa_is_param_polymorphic): New function.
19710         * ipa-prop.c: Include gimple.h and gimple-fold.h.
19711         (ipa_print_node_jump_functions): Print known type jump functions.
19712         (compute_complex_pass_through): Renamed to...
19713         (compute_complex_assign_jump_func): this.
19714         (compute_complex_ancestor_jump_func): New function.
19715         (compute_known_type_jump_func): Likewise.
19716         (compute_scalar_jump_functions): Create known type and complex ancestor
19717         jump functions.
19718         (ipa_note_param_call): New parameter polymorphic, set the corresponding
19719         flag in the call note accordingly.
19720         (ipa_analyze_call_uses): Renamed to...
19721         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
19722         variable var only in the block where it is used.
19723         (ipa_analyze_virtual_call_uses): New function.
19724         (ipa_analyze_call_uses): Likewise.
19725         (combine_known_type_and_ancestor_jfs): Likewise.
19726         (update_jump_functions_after_inlining): Implemented handling of a
19727         number of new jump function types combination.
19728         (print_edge_addition_message): Removed.
19729         (make_edge_direct_to_target): New function.
19730         (try_make_edge_direct_simple_call): Likewise.
19731         (try_make_edge_direct_virtual_call): Likewise.
19732         (update_call_notes_after_inlining): Renamed to...
19733         (update_indirect_edges_after_inlining): this.  Moved edge creation for
19734         indirect calls to try_make_edge_direct_simple_call, also calls
19735         try_make_edge_direct_virtual_call for virtual calls.
19736         (ipa_print_node_params): Changed the header message.
19737         (ipa_write_jump_function): Stream also known type jump functions.
19738         (ipa_read_jump_function): Likewise.
19739         (ipa_write_indirect_edge_info): Stream new fields in
19740         cgraph_indirect_call_info.
19741         (ipa_read_indirect_edge_info): Likewise.
19742         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19743         GIMPLE_FOLD_H.
19744
19745 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19746
19747         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19748
19749 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19750
19751         * tree.h (CALL_EXPR_ARGS): Delete.
19752         (call_expr_arglist): Delete.
19753         * tree.c (call_expr_arglist): Delete.
19754         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19755         targetm.fold_builtin.
19756         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19757         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19758         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19759         arglist parameter.  Use CALL_EXPR_ARG.
19760         (picochip_expand_builtin_3op): Likewise.
19761         (picochip_expand_builtin_2opvoid): Likewise.
19762         (picochip_expand_array_get): Likewise.
19763         (picochip_expand_array_put): Likewise.
19764         (picochip_expand_array_testport): Likewise.
19765         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
19766         rather than arglist.
19767         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19768         CALL_EXPR_ARGS.
19769         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19770         than TREE_VALUE and TREE_CHAIN.
19771         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19772         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19773         the arglist.
19774
19775 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19776
19777         PR bootstrap/42347
19778         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19779         to have no fallthru edge.
19780
19781         PR middle-end/44102
19782         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19783         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19784         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19785         add BARRIER after previous bb if needed.
19786
19787 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19788
19789         * tree.c (build_function_type_list_1): Remove bogus assert condition.
19790
19791 2010-05-17  Alan Modra  <amodra@gmail.com>
19792
19793         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19794         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
19795         with copy_reg rtx param.
19796         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19797         Correct cases where code for ABI_V4 did not initialise the reg
19798         used to access frame.  Also leave frame_reg_rtx as sp for large
19799         frames that save no regs.
19800
19801 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19802
19803         PR middle-end/44133
19804         * tree-sra.c (create_access_replacement): New parameter rename, mark
19805         the replaement for renaming only when it is true.
19806         (get_access_replacement): Pass true in the rename parameter of
19807         create_access_replacement.
19808         (get_unrenamed_access_replacement): New function.
19809         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19810         replacement declaration from it.
19811
19812 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
19813
19814         * function.c (try_fit_stack_local, add_frame_space): New static
19815         functions.
19816         (assign_stack_local_1): Use them.  Look for opportunities to use
19817         space previously wasted on alignment.
19818         * function.h (struct frame_space): New.
19819         (struct rtl_data): Add FRAME_SPACE_LIST member.
19820         * reload1.c (something_was_spilled): New static variable.
19821         (alter_reg): Set it.
19822         (reload): Test it in addition to testing if the frame size changed.
19823
19824 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19825
19826         * config/s390/s390.c: Define sane prefetch settings and activate
19827         flag_prefetch_loop_arrays on -O3.
19828         * config/s390/s390.h: Declare that read can use write prefetch.
19829
19830 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19831
19832         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19833         build.
19834
19835 2010-05-16  Jan Hubicka  <jh@suse.cz>
19836
19837         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19838         function body; do not check stdarg field of struct function.
19839
19840 2010-05-16  Jan Hubicka  <jh@suse.cz>
19841
19842         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19843         * cgraph.h (cgraph_local_info): Add versionable flag.
19844         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19845         (ipcp_versionable_function_p): Use it.
19846         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19847         versionable flag.
19848
19849 2010-05-16  Jan Hubicka  <jh@suse.cz>
19850
19851         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19852         clone into hash when it is different from orig.
19853         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19854         * cgraph.h (cgraph_clone_node): Update prototype.
19855         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19856         (lto_cgraph_encoder_delete): Delete body map.
19857         (lto_cgraph_encoder_size): Move to header.
19858         (lto_cgraph_encoder_encode_body_p,
19859         lto_set_cgraph_encoder_encode_body): New.
19860         (lto_output_node): Do not take written_decls argument; output clone_of
19861         pointer.
19862         (add_node_to): Add include_body_argument; call
19863         lto_set_cgraph_encoder_encode_body on master of the clone.
19864         (add_references): Update use of add_node_to.
19865         (compute_ltrans_boundary): Likewise.
19866         (output_cgraph): Do not create written_decls bitmap.
19867         (input_node): Take nodes argument; stream in clone_of correctly.
19868         (input_cgraph_1): Update use of input_node.
19869         * lto-streamer-out.c (lto_output): Use encoder info to decide
19870         what bodies to output.
19871         * ipa-inline.c (cgraph_clone_inlined_nodes,
19872         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19873         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19874         (lto_cgraph_encoder_size): Define here.
19875         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19876         Declare.
19877
19878 2010-05-16  Richard Guenther  <rguenther@suse.de>
19879
19880         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19881         -fipa-type-escape.
19882         * ipa-type-escape.c (gate_type_escape_vars): Run when
19883         -fipa-struct-reorg runs.
19884         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19885         * common.opt (fipa-type-escape): Remove.
19886
19887 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19888
19889         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19890         (decode_options): Likewise.
19891         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19892
19893 2010-05-16  Jan Hubicka  <jh@suse.cz>
19894
19895         * ipa.c (function_and_variable_visibility): Also bring local all
19896         aliases.
19897
19898 2010-05-16  Richard Guenther  <rguenther@suse.de>
19899
19900         * alias.c (nonoverlapping_memrefs_p): Remove use of
19901         IPA type-escape information.
19902
19903 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19904
19905         * c-common.c (c_common_reswords): Add _Static_assert for C.
19906         * c-parser.c (c_token_starts_declaration,
19907         c_parser_next_token_starts_declaration,
19908         c_parser_static_assert_declaration_no_semi,
19909         c_parser_static_assert_declaration): New.
19910         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19911         Handle static assertions if static_assert_ok.
19912         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19913         c_parser_compound_statement_nostart, c_parser_label,
19914         c_parser_for_statement, c_parser_objc_methodprotolist,
19915         c_parser_omp_for_loop): All callers of
19916         c_parser_declaration_or_fndef changed.
19917         (c_parser_struct_declaration): Handle static assertions.
19918         (c_parser_compound_statement_nostart): Use
19919         c_parser_next_token_starts_declaration and
19920         c_token_starts_declaration to detect start of declarations.
19921         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19922         Likewise.
19923
19924 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19925
19926         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19927         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19928         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19929         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19930         (mmix_function_outgoing_value): Rename to...
19931         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19932         (mmix_function_value_regno_p): Make static.
19933         (mmix_libcall_value): New function.
19934         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19935         mmix_function_value_regno_p): Remove declaration.
19936
19937 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19938
19939         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19940         BUILT_IN_ALLOCA if stack checking is enabled.
19941
19942 2010-05-16  Richard Guenther  <rguenther@suse.de>
19943
19944         * var-tracking.c (vars_copy_1): Inline ...
19945         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19946         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19947         (variable_merge_over_cur): Adjust.  Merge asserts.
19948         (variable_merge_over_src): Likewise.
19949         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19950         (variable_post_merge_new_vals): Merge asserts.
19951         (variable_post_merge_perm_vals): Likewise.
19952         (find_mem_expr_in_1pdv): Likewise.
19953         (dataflow_set_different_value): Remove.
19954         (onepart_variable_different_p): Merge asserts.
19955         (variable_different_p): Likewise.
19956         (dataflow_set_different_1): Inline ...
19957         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19958         (emit_notes_for_differences_1): Merge asserts.
19959
19960 2010-05-16  Richard Guenther  <rguenther@suse.de>
19961
19962         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19963         * optabs.c (libfunc_decl_hash): Likewise.
19964         * varasm.c (emutls_decl): Likewise.
19965
19966 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19967
19968         * c-decl.c: Don't include gimple.h.
19969         (merge_decls): Do not copy gimple_body.
19970
19971 2010-05-15  Jason Merrill  <jason@redhat.com>
19972
19973         * c.opt: Add -fnothrow-opt.
19974
19975 2010-05-15  Jan Hubicka  <jh@suse.cz>
19976
19977         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19978         analyzed.
19979         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19980
19981 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19982
19983         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19984         * Makefile.in: Add it.
19985         Fix all other Makefile dependencies for changes below.
19986         * tree.h: Include it instead of defining VEC primitives here.
19987         * gimple.h: Likewise.
19988         * rtl.h: Likewise.
19989         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19990         * except.h: Include vecir.h, break dependence on tree.h.
19991
19992         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19993         Move from here...
19994         * tree-iterator.c: ...to here.
19995         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19996
19997         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19998         tm_p.h.
19999         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
20000         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
20001         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
20002         tree-mudflap.h, and target.h.
20003         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
20004         predict.h, tree-inline.h, gimple.h, and langhooks.h.
20005         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
20006         Add FIXME for why gimple.h is still included (should be unnecessary
20007         since GCC 4.5 gimplification unit-at-a-time).
20008         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
20009         * c-pragma.c: Add FIXME for why function.h needs to be included just
20010         for cfun, at front-end level.
20011         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
20012         Do not include ggc.h, but include vecprim.h for VEC(char).
20013         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
20014         Explain why target.h is included.
20015         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
20016         Explain why gimple.h is included.
20017         * c-ppoutput.c: Do not include tm.h.
20018         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
20019         * c-parses.c: Explain why rtl.h is included, and that this (and only
20020         this) is also why tm.h must be included.
20021         Do not include except.h.
20022         * c-lang.c: Do not include ggc.h.
20023
20024 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
20025
20026         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
20027
20028 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
20029
20030         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
20031         unions by default if those structs and unions have no tags.  Do
20032         not condition anonymous struct and unions handling on flag_iso.
20033         Allow anonymous structs and unions for C1X.
20034         (finish_struct): Do not diagnose lack of named fields when
20035         anonymous structs and unions present for C1X.  Accept flexible
20036         array members in structure with anonymous structs or unions but no
20037         directly named fields.
20038         * doc/extend.texi (Unnamed Fields): Update.
20039
20040 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
20041
20042         * gimple.h (compare_field_offset): Rename into...
20043         (gimple_compare_field_offset): ...this.
20044         * gimple.c (compare_field_offset): Rename into...
20045         (gimple_compare_field_offset): ...this.  Compare the full access if
20046         the offset is self-referential.
20047         (gimple_types_compatible_p): Adjust for above renaming.
20048         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
20049         DECL_NONADDRESSABLE_P flag of fields before merging them.
20050
20051 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
20052
20053         * tree.h (ctor_to_list): Delete.
20054         * tree.c (ctor_to_list): Delete.
20055
20056 2010-05-15  Jan Hubicka  <jh@suse.cz>
20057
20058         * ipa-reference.c: Include toplev.h
20059         (is_proper_for_analysis): Only add to all_module_statics
20060         if it is allocated.
20061         (write_node_summary_p, stream_out_bitmap,
20062         ipa_reference_write_optimization_summary,
20063         ipa_reference_read_optimization_summary): New.
20064         (struct ipa_opt_pass_d pass_ipa_reference): Add
20065         optimization summary streaming.
20066         * lto-cgraph.c (referenced_from_this_partition_p,
20067         reachable_from_this_partition_p): New functions.
20068         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20069         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
20070         * opts.c (decode_options): Enable ipa_reference.
20071         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
20072         * lto-streamer.h (referenced_from_this_partition_p,
20073         reachable_from_this_partition_p): Declare.
20074
20075 2010-05-15  Richard Guenther  <rguenther@suse.de>
20076
20077         PR tree-optimization/44038
20078         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
20079         taking the address of a V_C_E of a constant.
20080
20081 2010-05-14  Jan Hubicka  <jh@suse.cz>
20082
20083         * tree.h (memory_identifier_string): Remove.
20084         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
20085         (ipa_reference_global_vars_info_d): Remove statics_not_read and
20086         statics_not_written.
20087         (ipa_reference_optimization_summary_d): New structure.
20088         (ipa_reference_optimization_summary_t): New type and vector.
20089         (ipa_reference_vars_info_d): Embedd structures instead of using
20090         pointers.
20091         (reference_vars_to_consider): Remove out of GGC space.
20092         (module_statics_escape): Remove.
20093         (global_info_obstack): Rename to ...
20094         (optimization_summary_obstack): ... this one.
20095         (initialization_status_t): Remove.
20096         (memory_identifier_string): Remove.
20097         (get_reference_vars_info): Fix indenting.
20098         (set_reference_vars_info): Likewise.
20099         (get_reference_optimization_summary): New.
20100         (set_reference_optimization_summary): New.
20101         (get_global_reference_vars_info): Remove.
20102         (ipa_reference_get_read_global): Remove.
20103         (ipa_reference_get_written_global): Remove.
20104         (ipa_reference_get_not_read_global): Update.
20105         (ipa_reference_get_not_written_global): Update.
20106         (is_proper_for_analysis): Outlaw addressable.
20107         (propagate_bits): Update for new datastructures.
20108         (analyze_variable): Remove.
20109         (init_function_info): Update for new datastructures.
20110         (clean_function_local_data): Remove.
20111         (clean_function): Remove.
20112         (copy_global_bitmap): Use optimizations_summary_obstack.
20113         (duplicate_node_data): Duplicate optimization summary only.
20114         (remove_node_data): Remove optimization summary only.
20115         (generate_summary): Do not analyze variables; do not compute
20116         module_statics_escape; do not prune solutions by it.
20117         (read_write_all_from_decl): Fix typos in comments.
20118         (propagate): Doscover readonly and nonaddressable first;
20119         update for new datastructures; share global bitmaps.
20120         * ipa-reference.h (ipa_reference_get_read_global,
20121         ipa_reference_get_written_global): Remove.
20122         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
20123         * Makefile.in: Remove ipa-refereference from GT files.
20124
20125 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20126
20127         PR debug/44112
20128         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
20129         for all SYMBOL_REF_DECLs.
20130
20131 2010-05-14  Jan Hubicka  <jh@suse.cz>
20132
20133         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
20134         (varpool_all_refs_explicit_p): New inline function.
20135         * ipa-reference.c: Update comment.
20136         (module_statics_written): Remove.
20137         (get_static_decl): Remove.
20138         (ipa_init): Do not initialize module_statics_written.
20139         (analyze_function): Likewise.
20140         (generate_summary): Likewise; do not compute module_statics_readonly
20141         and do not update variable flags.
20142         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
20143         * ipa.c: Inlucde flags.h
20144         (cgraph_local_node_p): New.
20145         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
20146         promote functions to local.
20147         (ipa_discover_readonly_nonaddressable_vars): New function.
20148         (function_and_variable_visibility): Use cgraph_local_node_p.
20149         * varpool.c (varpool_finalize_decl): Set force_output for
20150         DECL_PRESERVE_P vars.
20151
20152 2010-05-14  Jan Hubicka  <jh@suse.cz>
20153
20154         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
20155
20156 2010-05-14  Richard Guenther  <rguenther@suse.de>
20157
20158         PR tree-optimization/44119
20159         * tree-ssa-pre.c (eliminate): Properly mark replacement of
20160         a PHI node necessary.
20161
20162 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20163
20164         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
20165
20166 2010-05-14  Jason Merrill  <jason@redhat.com>
20167
20168         PR c++/44127
20169         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
20170         (gimple_call_set_nothrow): New.
20171         * gimple.c (gimple_build_call_from_tree): Call it.
20172         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
20173
20174         PR c++/44127
20175         * gimplify.c (gimplify_seq_add_stmt): No longer static.
20176         * gimple.h: Declare it.
20177         * gimple.c (gimple_build_eh_filter): No ops.
20178
20179 2010-05-14  Jan Hubicka  <jh@suse.cz>
20180
20181         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
20182         nodes already in queue.
20183         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
20184         re-enqueueing node.
20185
20186 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20187
20188         PR debug/44136
20189         * cfgexpand.c (expand_debug_expr): If non-memory op0
20190         has BLKmode, return NULL.
20191
20192 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
20193
20194         * config.gcc: Add support for --with-cpu option for bdver1.
20195         * config/i386/i386.h (TARGET_BDVER1): New macro.
20196         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
20197         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20198         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
20199         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20200         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
20201         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
20202         (processor_type): Add PROCESSOR_BDVER1.
20203         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
20204         processor_type in config/i386/i386.h.
20205         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
20206         movaps <reg, reg> instead of movapd <reg, reg> when replacing
20207         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
20208         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
20209         to emit packed xor instead of packed double/packed integer
20210         xor for SSE and AVX when moving a zero value.
20211         * config/i386/sse.md: Add check for
20212         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
20213         movapd/movdqa for SSE and AVX.
20214         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
20215         single logical operations i.e and, or and xor instead of packed double
20216         logical operations for SSE and AVX.
20217         * config/i386/i386-c.c (ix86_target_macros_internal):
20218         Add PROCESSOR_BDVER1.
20219         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
20220         (has_fma4, has_xop): New.
20221         * config/i386/i386.c (bdver1_cost): New variable.
20222         (m_BDVER1): New macro.
20223         (m_AMD_MULTIPLE): Add m_BDVER1.
20224         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
20225         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
20226         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
20227         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
20228         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
20229         x86_tune_sse_partial_reg_dependency,
20230         x86_tune_sse_unaligned_load_optimal,
20231         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
20232         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
20233         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
20234         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
20235         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
20236         Enable/disable for bdver1.
20237         (processor_target_table): Add bdver1_cost.
20238         (cpu_names): Add bdver1.
20239         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
20240          processor_alias_table.
20241         (ix86_expand_vector_move_misalign): Change.
20242         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
20243         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
20244         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
20245         of movupd/movdqu for SSE and AVX.
20246         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
20247         (ix86_tune_adjust_cost): Add code for bdver1.
20248         (standard_sse_constant_opcode): Add check for
20249         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
20250         of packed double xor for SSE and AVX.
20251
20252 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
20253
20254         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
20255         result to unsigned.
20256
20257 2010-05-14  Tristan Gingold  <gingold@adacore.com>
20258
20259         * toplev.c (default_debug_hooks): Remove this variable.
20260         (process_options): Remove assignments to default_debug_hooks.
20261
20262 2010-05-14  Martin Jambor  <mjambor@suse.cz>
20263
20264         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
20265         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
20266         * langhooks.h (struct lang_hooks_for_decls): Removed field
20267         fold_obj_type_ref.
20268         * tree.c (free_lang_data): Remove assignment to
20269         lang_hooks.fold_obj_type_ref.
20270         * tree.def (OBJ_TYPE_REF): Update comment.
20271
20272 2010-05-14  Richard Guenther  <rguenther@suse.de>
20273
20274         PR tree-optimization/44124
20275         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
20276
20277 2010-05-14  Alan Modra  <amodra@gmail.com>
20278
20279         PR target/44075
20280         * config/rs6000/rs6000.c (struct machine_function): Reorder
20281         fields for better packing.  Add lr_save_state.
20282         (rs6000_ra_ever_killed): Return lr_save_state if set.
20283         (rs6000_emit_eh_reg_restore): Set lr_save_state.
20284
20285 2010-05-13  Jan Hubicka  <jh@suse.cz>
20286
20287         * varpool.c (decide_is_variable_needed): Drop code checking
20288         TREE_SYMBOL_REFERENCED.
20289
20290 2010-05-13  Jan Hubicka  <jh@suse.cz>
20291
20292         * final.c (output_addr_const): Do not call mark_decl_referenced.
20293         * cgraphunit.c (process_function_and_variable_attributes): Use
20294         mark_needed_node dirrectly.
20295         (assemble_thunk): Do not call mark_decl_referenced.
20296
20297 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
20298
20299         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
20300
20301 2010-05-13  Jeff Law  <law@redhat.com>
20302
20303         * ira-conflicts.c (print_allocno_conflicts): New function broken out
20304         from...
20305         (print_conflicts): Call print_allocno_conflicts.
20306
20307 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20308
20309         PR debug/44104
20310         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
20311         if it is NULL.
20312
20313 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
20314
20315         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
20316         t-mingw-w64 or t-mingw-w32 for multilib configuration.
20317         * config/i386/t-mingw-w32: New.
20318         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
20319
20320 2010-05-13  Martin Jambor  <mjambor@suse.cz>
20321
20322         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
20323         gimple-fold.c).
20324         * gimple-fold.c (get_base_binfo_for_type): New function.
20325         (gimple_get_relevant_ref_binfo): Likewise.
20326         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20327         (gimple_fold_obj_type_ref): Likewise.
20328         (fold_gimple_call): Simplify condition for folding virtual calls
20329         and call gimple_fold_obj_type_ref.
20330         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
20331         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20332
20333 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
20334
20335         * config/rs6000/rs6000-protos.h
20336         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
20337         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
20338         (rs6000_debug_mode_dependent_address)
20339         (rs6000_mode_dependent_address_ptr): Likewise.
20340
20341 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20342
20343         PR debug/43983
20344         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
20345         by SRA.
20346         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
20347         * tree-sra.c (create_access_replacement): Call unshare_expr before
20348         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
20349         * dwarf2out.c: Include tree-flow.h.
20350         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
20351         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
20352         Handle DW_OP_bit_piece.
20353         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
20354         construct_piece_list, adjust_piece_list): New functions.
20355         (add_var_loc_to_decl): Handle SRA optimized variables.
20356         Adjust for var_loc_note to loc field renaming.
20357         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
20358         in VAR_LOCATION note.
20359         (new_loc_descr_op_bit_piece): New function.
20360         (dw_sra_loc_expr): New function.
20361         (dw_loc_list): Use it.  Don't handle the last range after the
20362         loop, handle it inside of the loop.  Adjust for var_loc_note
20363         to loc field renaming.
20364         (add_location_or_const_value_attribute): Only special case
20365         single entry loc lists if loc is NOTE_P.  Adjust for
20366         var_loc_note to loc field renaming.
20367         (dwarf2out_var_location): Don't set newloc->var_loc_note
20368         and newloc->next here.
20369
20370 2010-05-12  Jan Hubicka  <jh@suse.cz>
20371
20372         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
20373         flag.
20374         * cgraph.h (cgraph_only_called_directly_p,
20375         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
20376         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
20377         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
20378         (assemble
20379         * ipa.c (cgraph_remove_unreachable_nodes): Use
20380         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
20381         flags.
20382         * tree-inline.c (copy_bb): Check address_taken flag.
20383         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
20384         externally_visible flag.
20385
20386 2010-05-12  Jason Merrill  <jason@redhat.com>
20387
20388         PR bootstrap/44048
20389         PR target/44099
20390         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
20391         * sdbout.c (plain_type_1): Likewise.
20392         * dwarf2out.c (is_base_type): Likewise.
20393         (gen_type_die_with_usage): Likewise.  Generate
20394         DW_TAG_unspecified_type for any LANG_TYPE.
20395
20396 2010-05-12  Jan Hubicka  <jh@suse.cz>
20397
20398         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
20399         indrect edges too.
20400         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
20401         (cgraph_clone_edge): Update.
20402         (cgraph_node_remove_callees): Remove indirect calls too.
20403         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
20404         (cgraph_create_indirect_edge): Update prototype.
20405         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
20406         is_proper_for_analysis.
20407         (add_new_function, visited_nodes, function_insertion_hook_holder,
20408         get_local_reference_vars_info, mark_address_taken, mark_address,
20409         mark_load, mark_store, check_asm_memory_clobber, check_call,
20410         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
20411         (ipa_init): Do not initialize visited_nodes;
20412         function_insertion_hook_holder.
20413         (analyze_variable): Rewrite.
20414         (analyze_function): Rewrite.
20415         (copy_local_bitmap): Remove.
20416         (duplicate_node_dat): Do not duplicate local info.
20417         (generate_summary): Simplify to only walk cgraph.
20418         (write_node_summary_p, ipa_reference_write_summary,
20419         ipa_reference_read_summary): Remove.
20420         (propagate): Do not remove function insertion;
20421         generate summary.
20422         (pass_ipa_reference): NULLify summary handling fields.
20423         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
20424         (input_edge): Input ecf_flags.
20425         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
20426         (update_indirect_edges_after_inlining): Ignore edges with unknown
20427         param.
20428
20429 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
20430
20431         * implicit-zee.c: New file.
20432         * tree-pass.h (pass_implicit_zee): Declare.
20433         * passes.c (init_optimization_passes): Add zee pass.
20434         * common.opt (fzee): New flag.
20435         * timevar.def (TV_ZEE): Define.
20436         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
20437         and beyond.
20438         * Makefile.in (implicit-zee.o): Add new build file.
20439
20440 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20441             Nathan Froyd  <froydnj@codesourcery.com>
20442
20443         * c-common.c (sync_resolve_params): Remove write-only variable.
20444
20445 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
20446
20447         * target.h (struct gcc_target): Add mode_dependent_address_p field.
20448         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20449         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20450         * targhooks.c (default_mode_dependent_address_p): New function.
20451         * targhooks.h (default_mode_dependent_address_p): Declare function.
20452         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20453         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20454         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20455         target hook. Change return type to bool.
20456         * recog.h (mode_dependent_address_p): Change return type to bool.
20457
20458 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20459             Nathan Froyd  <froydnj@codesourcery.com>
20460
20461         * tree-mudflap.c (build_function_type_0, build_function_type_1,
20462         build_function_type_2, build_function_type_3): Remove.
20463         (mudflap_init): Use build_function_type_list.
20464
20465 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20466             Nathan Froyd  <froydnj@codesourcery.com>
20467
20468         * coverage.c (build_fn_info_value): Call build_constructor instead of
20469         build_constructor_from_list.
20470         (build_ctr_info_value): Likewise.
20471         (build_gcov_info): Likewise.
20472
20473 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
20474
20475         * tree.c (build_constructor): Compute TREE_CONSTANT for the
20476         resultant constructor.
20477         (build_constructor_single): Don't set TREE_CONSTANT.
20478         (build_constructor_from_list): Don't compute TREE_CONSTANT.
20479
20480 2010-05-12  Jan Hubicka  <jh@suse.cz>
20481
20482         * cgraph.h (struct varpool_node): Add aux.
20483         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20484         * varpool.c (varpool_remove_node): Do not remove initializer.
20485         (varpool_reset_queue): Export.
20486         (varpool_finalize_decl): Volatile vars are forced to be output.
20487         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20488         replaced decl.
20489         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20490         process_references, varpool_can_remove_if_no_refs): New functions.
20491         (cgraph_remove_unreachable_nodes): Handle variables too.
20492
20493 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20494
20495         PR target/44088
20496         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20497
20498 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
20499
20500         PR middle-end/44085
20501         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20502         change value of ORT_TASK.
20503         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20504         (omp_notice_threadprivate_variable): New function.
20505         (omp_notice_variable): Call it for threadprivate variables.
20506         If enclosing ctx is a task, print enclosing task rather than
20507         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
20508         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20509         if task has untied clause.
20510
20511         PR debug/42278
20512         * dwarf2out.c (base_type_die): Don't add name attribute here.
20513         (modified_type_die): Instead of sizetype use
20514         its underlying original type.  If a DW_TAG_base_type doesn't
20515         have name added, add __unknown__.
20516         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20517         always call force_type_die instead.
20518
20519 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
20520
20521         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20522         for __stack_chk_guard.
20523
20524 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20525
20526         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20527         don't call start_source_file debug hook here...
20528         (finish_options): ... but here, after outputting predefined and
20529         command line defines and undefs.
20530
20531         PR middle-end/44071
20532         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20533         no fallthru edge.
20534         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20535         optimizing away empty bb with no successors, move over its
20536         footer chain to fallthru predecessor.
20537         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20538         (rtl_split_edge): For asm goto call patch_jump_insn even if
20539         splitting fallthru edge.
20540
20541         PR c++/44059
20542         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20543         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20544         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20545         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20546         on DW.ref.* decls.
20547
20548         PR c++/44062
20549         * c-parser.c (c_parser_expression): Mark LHS of a comma
20550         expression as read if it is a decl, handled component or
20551         COMPOUND_EXPR with that on the RHS.
20552         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20553         if it is a decl or handled component.
20554
20555 2010-05-11  Jan Hubicka  <jh@suse.cz>
20556
20557         * lto-symtab.c (lto_symtab_free): New function.
20558         * lto-streamer.h (lto_symtab_free): Declare.
20559
20560 2010-05-11  Jan Hubicka  <jh@suse.cz>
20561
20562         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20563         that if function is needed it is reachable.
20564         (lto_output_node): See if it the function is reachable or referenced.
20565         (output_cgraph): Update call of lto_output_node.
20566         * lto-streamer.h (reachable_from_other_partition_p): Declare.
20567
20568 2010-05-11  Jan Hubicka  <jh@suse.cz>
20569
20570         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20571         Mark as used.
20572
20573 2010-05-11  Jan Hubicka  <jh@suse.cz>
20574
20575         PR tree-optimize/44063
20576         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20577         queue.
20578         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20579         limits.
20580         (estimate_function_body_sizes): Compute sizes even when disregarding.
20581
20582 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
20583
20584         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20585
20586 2010-05-11  Jan Hubicka  <jh@suse.cz>
20587
20588         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20589         into every boundary.
20590
20591 2010-05-11  Jan Hubicka  <jh@suse.cz>
20592
20593         * matrix-reorg.c (matrix_reorg): Rebuild edges.
20594
20595 2010-05-11  Jan Hubicka  <jh@suse.cz>
20596
20597         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20598         lto_streamer_cache_delete): Put nodes into heap.
20599         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20600         heap.
20601
20602 2010-05-11  Jan Hubicka  <jh@suse.cz>
20603
20604         * cgraphbuild.c (cgraph_rebuild_references): New.
20605         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20606         out extern inlines.
20607         * cgraph.h (cgraph_rebuild_references): Declare.
20608         * tree-inline.c (tree_function_versioning): Use it.
20609         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20610
20611 2010-05-11  Jan Hubicka  <jh@suse.cz>
20612
20613         * cgraph.c: Include ipa-utils.h
20614         (cgraph_create_virtual_clone): Update references.
20615         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20616
20617 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20618
20619         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20620         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20621         cache size.
20622
20623 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20624
20625         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20626
20627 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20628
20629         * gcc.c (execute): For -### don't quote arguments that
20630         contain just alphanumerics and _/-. characters.
20631         * doc/invoke.texi: Document that change for -###.
20632
20633         PR debug/44023
20634         * df-problems.c (struct dead_debug): Add to_rescan field.
20635         (dead_debug_init): Clear to_rescan field.
20636         (dead_debug_finish): Rescan all debug insns in to_rescan
20637         bitmap and free the bitmap.
20638         (dead_debug_insert_before): Instead of rescanning debug insns
20639         immediately queue their rescanning until dead_debug_finish.
20640         (df_note_bb_compute): After dead_debug_add do continue instead
20641         of break.
20642
20643 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
20644
20645         PR debug/44028
20646         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20647         clear also INSN_REG_USE_LIST.
20648
20649 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20650
20651         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20652
20653 2010-05-10  Jan Hubicka  <jh@suse.cz>
20654
20655         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20656         commited change.
20657
20658 2010-05-10  Jan Hubicka  <jh@suse.cz>
20659
20660         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20661         Allocate encoders.
20662         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20663         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20664         (lto_streamer_cache_create): Init alloc pool.
20665         (lto_streamer_cache_delete): Free alloc pool.
20666         * lto-streamer.h: Include alloc pool.
20667         (lto_streamer_cache_d): Use alloc pool.
20668         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20669
20670 2010-05-10  Jan Hubicka  <jh@suse.cz>
20671
20672         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20673         * cgraphbuild.c: Include except.h
20674         (record_type_list, record_eh_tables): New function.
20675         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20676
20677 2010-05-10  Jan Hubicka  <jh@suse.cz>
20678
20679         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20680         __frame_dummy_init_array_entry, force_to_data): Attribute as used
20681         rather than unused.
20682
20683 2010-05-10  Michael Matz  <matz@suse.de>
20684
20685         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20686         (can_reassociate_p): Use FLOAT_TYPE_P.
20687         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20688         (vect_force_simple_reduction): ... this.
20689         * tree-parloops.c (gather_scalar_reductions): Use
20690         vect_force_simple_reduction.
20691         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20692         vect_is_simple_reduction, add modify argument, if true rewrite
20693         "a-b" into "a+(-b)".
20694         (vect_is_simple_reduction, vect_force_simple_reduction): New
20695         functions.
20696         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20697
20698 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20699             Vladimir Makarov  <vmakarov@redhat.com>
20700
20701         PR rtl-optimization/44012
20702         * ira-build.c (remove_unnecessary_allocnos): Nullify
20703         regno_allocno_map of the removed allocno.
20704
20705 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20706
20707         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20708         to /dev/null.
20709         * configure: Regenerate.
20710
20711 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20712
20713         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20714         unused.
20715         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20716         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20717         support in Sun ld.
20718         * configure: Regenerate.
20719
20720 2010-05-10  Richard Guenther  <rguenther@suse.de>
20721
20722         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20723         marked if the entry identifier is marked.
20724
20725 2010-05-10  Richard Guenther  <rguenther@suse.de>
20726
20727         * c-common.c (struct c_common_attributes): Add fnspec attribute.
20728         (handle_fnspec_attribute): New function.
20729         * gimple.h (gimple_call_return_flags): Declare.
20730         (gimple_call_arg_flags): Likewise.
20731         * gimple.c (gimple_call_arg_flags): New function.
20732         (gimple_call_return_flags): Likewise.
20733         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20734         New argument flags.
20735         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20736         return value flags.
20737         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20738         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20739         main work to ...
20740         (make_heapvar_for): ... this new function.
20741         (handle_rhs_call): Handle fnspec attribute argument specifiers.
20742         (handle_lhs_call): Likewise.
20743         (find_func_aliases): Adjust.
20744
20745 2010-05-10  Richard Guenther  <rguenther@suse.de>
20746
20747         PR tree-optimization/44050
20748         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20749
20750 2010-05-10  Wei Guozhi  <carrot@google.com>
20751
20752         PR target/42879
20753         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20754
20755 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20756
20757         PR c/10676
20758         * c-typeck.c (lookup_field): Take a type directly.  Update
20759         recursive calls.
20760         (build_component_ref): Update call to lookup_field.
20761         (set_init_label): Use lookup_field to find initialized field.
20762         Handle returned list of fields like a sequence of designators.
20763
20764 2010-05-09  Richard Guenther  <rguenther@suse.de>
20765
20766         PR middle-end/44024
20767         * fold-const.c (tree_single_nonzero_warnv_p): Properly
20768         handle &FUNCTION_DECL.
20769
20770 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20771
20772         PR c/4784
20773         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
20774         structures and unions recursively.
20775         (detect_field_duplicates): Move duplicate detection with a hash to
20776         detect_field_duplicates_hash.  Always use a hash if anonymous
20777         structures or unions are present.
20778         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20779         give errors.
20780
20781 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20782
20783         PR target/44046
20784         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20785         detect Atom, Core 2 and Core i7.
20786
20787 2010-05-09  Richard Guenther  <rguenther@suse.de>
20788
20789         * gcc.c (store_arg): Handle temporary file deletion for
20790         joined arguments.
20791
20792 2010-05-09  Richard Guenther  <rguenther@suse.de>
20793
20794         PR middle-end/44043
20795         * ipa-inline.c (estimate_function_body_sizes): Return after
20796         disregarding inline limits.
20797
20798 2010-05-09  Richard Guenther  <rguenther@suse.de>
20799
20800         * gcc.c (store_arg): Revert last change.
20801
20802 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
20803
20804         PR middle-end/28685
20805         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20806         (optimize_ops_list): Call it.
20807
20808 2010-05-08  Richard Guenther  <rguenther@suse.de>
20809
20810         PR tree-optimization/44030
20811         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
20812         NECESSARY flag if we propagate from a inserted expression.
20813
20814 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
20815
20816         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20817         domain types as equal if they are both PLACEHOLDER_EXPRs.
20818
20819 2010-05-08  Richard Guenther  <rguenther@suse.de>
20820
20821         * lto-wrapper.c (run_gcc): Remove linker output from
20822         command line for LTRANS invocation.
20823
20824 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20825
20826         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20827         lto-macho as lto_binary_reader.
20828         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20829         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20830         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20831         in lto_start and lto_end calls.
20832         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20833         magic numbers.
20834         (scan_prog_file): Update is_elf_or_coff call.
20835         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20836
20837         * collect2.c (main): Fix enum comparison.
20838
20839         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20840         Add prototypes.
20841         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20842         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20843         and TARGET_ASM_LTO_END.
20844         * darwin.c: Include obstack.h and lto-streamer.h.
20845         (lto_section_names_offset, lto_section_names_obstack,
20846         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20847         global variables.
20848         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20849         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20850         to a temporary file.
20851         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20852         (darwin_asm_named_section): For LTO sections, replace the name with
20853         the offset of the section name in a string table, and build this
20854         table.
20855         (darwin_file_start): Initialize global vars for LTO support.
20856         (darwin_file_end): If output to asm_out_file was redirected, append it
20857         to the proper asm_out_file here.  Add the section names section.
20858
20859 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20860
20861         * c-pragma.c (pending_weak_d, pending_weak): New.
20862         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20863         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20864         handle_pragma_weak): Update the uses of pending_weaks.
20865
20866 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20867
20868         PR documentation/44016
20869         * doc/standards.texi (Standards): Link to unversioned
20870         cxx0x_status.html page.
20871
20872 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20873
20874         PR target/43708
20875         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20876         in addition to TREE_USED, to avoid "set but unused" warnings.
20877
20878 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20879
20880         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20881         (is_loop_prefetching_profitable): Do not insert prefetches
20882         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20883         times the prefetch ahead distance.
20884
20885 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20886
20887         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20888         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20889         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20890         the unroll_factor.
20891
20892 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20893
20894         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20895         a diagnostic info when the insn-to-mem ratio is too small.
20896
20897 2010-05-07  Richard Guenther  <rguenther@suse.de>
20898
20899         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20900         the linker plugin.
20901         (store_arg): Queue temp_filename for deletion instead of
20902         the whole argument.
20903
20904 2010-05-07  Richard Guenther  <rguenther@suse.de>
20905
20906         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20907         (run_gcc): Handle LTRANS phase invocation.
20908         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20909
20910 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20911
20912         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20913         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20914
20915 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20916
20917         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20918
20919 2010-05-07  Richard Guenther  <rguenther@suse.de>
20920
20921         PR tree-optimization/44020
20922         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20923         code when PRE is not yet initialized.
20924
20925 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20926
20927         * config/mips/dbxmdebug.h: Remove.
20928         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20929
20930 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20931
20932         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20933         with null pointer and also warn about ordered comparison of zero with
20934         pointer if -Wextra.
20935
20936 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20937
20938         * graphite-blocking.c
20939         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20940         * graphite-clast-to-gimple.c
20941         (clast_to_gcc_expression): Same.
20942         (precision_for_value): Same.
20943         (precision_for_interval): Same.
20944         (gcc_type_for_interval): Same.
20945         (graphite_create_new_guard): Same.
20946         (compute_bounds_for_level): Same.
20947         (graphite_create_new_loop_guard): Same.
20948         * graphite-interchange.c
20949         (build_linearized_memory_access): Same.
20950         (pdr_stride_in_loop): Same.
20951         (memory_strides_in_loop_1): Same.
20952         (memory_strides_in_loop): Same.
20953         (extend_scattering): Same.
20954         (psct_scattering_dim_for_loop_depth): Same.
20955         (pbb_number_of_iterations): Same.
20956         * graphite-poly.h
20957         (debug_iteration_domains): Same.
20958         * graphite-ppl.c
20959         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20960         (ppl_set_inhomogeneous_gmp): Same.
20961         (ppl_strip_loop): Same.
20962         (ppl_lexico_compare_linear_expressions): Same.
20963         (ppl_read_polyhedron_matrix): Same.
20964         (ppl_max_for_le_pointset): Same.
20965         * graphite-ppl.h
20966         (ppl_read_polyhedron_matrix): Same.
20967         (tree_int_to_gmp): Same.
20968         (gmp_cst_to_tree): Same.
20969         (ppl_set_inhomogeneous): Same.
20970         (ppl_set_inhomogeneous_tree): Same.
20971         (ppl_set_coef): Same.
20972         (ppl_set_coef_tree): Same.
20973         * graphite-sese-to-poly.c
20974         (build_pbb_scattering_polyhedrons): Same.
20975         (build_scop_scattering): Same.
20976         (scan_tree_for_params_right_scev): Same.
20977         (scan_tree_for_params): Same.
20978         (find_params_in_bb): Same.
20979         (find_scop_parameters): Same.
20980         (add_upper_bounds_from_estimated_nit): Same.
20981         (build_loop_iteration_domains): Same.
20982         (add_condition_to_domain): Same.
20983         (pdr_add_memory_accesses): Same.
20984
20985 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20986
20987         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20988         CLooG's value_* macros to their respective mpz_* counterparts.
20989         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20990         (graphite_create_new_loop_guard): Same.
20991         * graphite-interchange.c (build_linearized_memory_access): Same.
20992         (pdr_stride_in_loop): Same.
20993         (memory_strides_in_loop_1): Same.
20994         (1st_interchange_profitable_p): Same.
20995         * graphite-poly.c (extend_scattering): Same.
20996         (psct_scattering_dim_for_loop_depth): Same.
20997         (pbb_number_of_iterations): Same.
20998         (pbb_number_of_iterations_at_time): Same.
20999         * graphite-poly.h (new_1st_loop): Same.
21000         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
21001         (oppose_constraint): Same.
21002         (insert_constraint_into_matrix): Same.
21003         (ppl_set_inhomogeneous_gmp): Same.
21004         (ppl_set_coef_gmp): Same.
21005         (ppl_strip_loop): Same.
21006         (ppl_lexico_compare_linear_expressions): Same.
21007         (ppl_max_for_le_pointset): Same.
21008         (ppl_min_for_le_pointset): Same.
21009         (ppl_build_realtion): Same.
21010         * graphite-ppl.h (gmp_cst_to_tree): Same.
21011         (ppl_set_inhomogeneous): Same.
21012         (ppl_set_inhomogeneous_tree): Same.
21013         (ppl_set_coef): Same.
21014         (ppl_set_coef_tree): Same.
21015         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
21016         (build_scop_scattering): Same.
21017         (add_value_to_dim): Same.
21018         (scan_tree_for_params_right_scev): Same.
21019         (scan_tree_for_params_int): Same.
21020         (scan_tree_for_params): Same.
21021         (find_params_in_bb): Same.
21022         (find_scop_parameters): Same.
21023         (add_upper_bounds_from_estimated_nit): Same.
21024         (build_loop_iteration_domains): Same.
21025         (create_linear_expr_from_tree): Same.
21026         (add_condition_to_domain): Same.
21027         (pdr_add_memory_accesses): Same.
21028
21029 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
21030             Jason Merrill  <jason@redhat.com>
21031
21032         * c-common.c (c_common_reswords): Add nullptr.
21033         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
21034         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
21035         (gen_type_die_with_usage): Likewise.
21036         * dbxout.c (dbxout_type): Likewise.
21037         * sdbout.c (plain_type_1): Likewise.
21038
21039 2010-05-06  Jason Merrill  <jason@redhat.com>
21040
21041         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
21042         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
21043         ret appropriately.
21044         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
21045
21046         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
21047         stripping WITH_SIZE_EXPR.
21048         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
21049         change.
21050
21051 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21052
21053         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
21054         list of obsolete configurations.
21055         Disabled check for obsolete configurations.
21056         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
21057         Removed support for previous versions.
21058         * config/mips/iris.h: Removed.
21059         * config/mips/iris5.h: Removed.
21060         * config/mips/iris6.h: Merged old iris.h contents.
21061         (TARGET_IRIX): Removed.
21062         (DRIVER_SELF_SPECS): Removed mabi=32.
21063         (IDENT_ASM_OP): Removed undef.
21064         (STARTFILE_SPEC): Removed mabi=32.
21065         (ENDFILE_SPEC): Likewise.
21066         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
21067         (MACHINE_TYPE): Update for IRIX 6.5.
21068         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
21069         TARGET_IRIX by TARGET_IRIX6.
21070         (mips_file_start): Likewise.
21071         (mips_output_external): Remove IRIX 5/6 O32 support.
21072         (mips_output_function_prologue): Likewise.
21073         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
21074         TARGET_IRIX6.
21075         (TARGET_CPU_CPP_BUILTINS): Likewise.
21076         (TARGET_IRIX): Removed.
21077         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
21078         (MULTILIB_DIRNAMES): Removed 32.
21079         (MULTILIB_OSDIRNAMES): Removed ../lib.
21080         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
21081         (Specific, mips-sgi-irix5): Document removal.
21082         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
21083         Remove references to older IRIX 6 releases and the O32 ABI.
21084
21085 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
21086
21087         PR bootstrap/43994
21088         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
21089         instead of DF_REF_REAL_REG.
21090
21091 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
21092
21093         PR target/43888
21094         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
21095         handling to still return true for x64 targets.
21096
21097 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21098
21099         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
21100
21101 2010-05-06  Jan Hubicka  <jh@suse.cz>
21102
21103         PR tree-optimization/43791
21104         * ipa-inline.c (update_caller_keys): Remove bogus
21105         disregard_inline_limits check.
21106
21107 2010-05-06  Michael Matz  <matz@suse.de>
21108
21109         PR tree-optimization/43984
21110         * tree-ssa-pre.c (inserted_phi_names): Remove.
21111         (inserted_exprs): Change to bitmap.
21112         (create_expression_by_pieces): Set bits, don't append to vector.
21113         (insert_into_preds_of_block): Don't handle inserted_phi_names.
21114         (eliminate): Don't look at inserted_phi_names, remove deleted
21115         insns from inserted_exprs.
21116         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
21117         (init_pre, fini_pre): Allocate and free bitmaps.
21118         (execute_pre): Insert insns on edges before elimination.
21119
21120 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21121
21122         * tree.c (initializer_zerop): Handle STRING_CST.
21123
21124 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21125
21126         PR 40989
21127         * doc/invoke.texi (Wimplicit): Document as C only.
21128         * opts.c (common_handle_option): Add argument kind.
21129         (handle_option): Rename as read_cmdline_option. Factor out code to...
21130         (handle_option): ... here. New.
21131         (handle_options): Rename as read_cmdline_options.
21132         (decode_options): Update call.
21133         (set_option): Use option index instead of option pointer. Classify
21134         diagnostics correctly.
21135         (enable_warning_as_error): Call handle_option.
21136         * opts.h (set_option): Update declaration.
21137         (handle_option): Declare.
21138         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
21139         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
21140         * c-opts.c (set_Wimplicit): Delete.
21141         (c_family_lang_mask): New static constant.
21142         (c_common_handle_option): Add argument kind. Use handle_option
21143         instead of set_Wimplicit.
21144         (c_common_post_options): warn_implicit and warn_implicit_int
21145         are disabled by default.
21146         * c-common.c (warn_implicit): Do not define here.
21147         * c-common.h (warn_implicit): Do not declare here.
21148         (c_common_handle_option): Update declaration.
21149         * lto-opts.c (lto_reissue_options): Update call to set_option.
21150
21151 2010-05-06  Richard Guenther  <rguenther@suse.de>
21152
21153         PR tree-optimization/43571
21154         * domwalk.c (walk_dominator_tree): Walk the dominator
21155         sons in more optimal order.
21156
21157 2010-05-06  Richard Guenther  <rguenther@suse.de>
21158
21159         PR tree-optimization/43934
21160         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
21161         (stmt_cost): Likewise.
21162         (extract_true_false_args_from_phi): New helper.
21163         (determine_max_movement): For PHI nodes verify we can hoist them
21164         and compute their cost.
21165         (determine_invariantness_stmt): Handle PHI nodes.
21166         (move_computations_stmt): Likewise.  Hoist PHI nodes in
21167         if-converted form using COND_EXPRs.
21168         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
21169         (tree_ssa_lim): Likewise.
21170         * tree-flow.h (tree_ssa_lim): Adjust prototype.
21171         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
21172
21173 2010-05-06  Richard Guenther  <rguenther@suse.de>
21174
21175         PR tree-optimization/43987
21176         * tree-ssa-structalias.c (could_have_pointers): For possibly
21177         address-taken variables force pointers to be recorded.
21178         (create_variable_info_for_1): Likewise.
21179         (push_fields_onto_fieldstack): Pass in wheter all fields
21180         must have pointers.
21181         (find_func_aliases): Query types instead of vars whether
21182         they contain pointers where appropriate.
21183
21184 2010-05-06  Jan Hubicka  <jh@suse.cz>
21185
21186         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
21187         (record_reference, mark_address, mark_load, mark_store): Record
21188         references.
21189         (record_references_in_initializer): Update call of record_references.
21190         (rebuild_cgraph_edges): Remove all references before rebuiding.
21191         * cgraph.c (cgraph_create_node): Clear ref list.
21192         (cgraph_remove_node): Remove references.
21193         (dump_cgraph_node): Dump references.
21194         (cgraph_clone_node): Clone references.
21195         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
21196         (struct cgraph_node, varpool_node): Add ref_lst.
21197         * ipa-ref.c: New file.
21198         * ipa-ref.h: New file.
21199         * ipa-ref-inline.h: New file.
21200         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
21201         (referenced_from_other_partition_p): New function.
21202         (lto_output_varpool_node): Take set arugment; call
21203         referenced_from_other_partition.
21204         (lto_output_ref): New.
21205         (add_references): New.
21206         (output_refs): New.
21207         (output_cgraph): Compute boundary based on references; output refs.
21208         (output_varpool): Accept cgraph_node_set argument.
21209         (input_ref): New.
21210         (input_refs): New.
21211         (input_cgraph): Call input_refs.
21212         * lto-section-in.c (lto_section_name): Add refs.
21213         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
21214         (ipa-ref.o): New file.
21215         * varpool.c (varpool_node): Clear ipa ref list.
21216         (varpool_remove_node): Remove references.
21217         (dump_varpool_node): Dump references.
21218         (varpool_assemble_decl): Only compile finalized ones.
21219         (varpool_extra_name_alias): Initialize ref list.
21220         * lto-streamer.c (lto-get_section_name): Add .refs section.
21221         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
21222         (referenced_from_other_partition_p): Declared.
21223
21224 2010-05-06  Ira Rosen  <irar@il.ibm.com>
21225
21226         PR tree-optimization/43901
21227         * tree-vect-stmts.c (vectorizable_call): Assert that vector
21228         type is not NULL if it's transformation phase, and return
21229         FALSE if it's analysis.
21230         (vectorizable_conversion, vectorizable_operation,
21231         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
21232
21233 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
21234
21235         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21236         Delete.
21237         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21238         New define.
21239         * config/mips/mips-protos.h
21240         (mips_small_register_classes_for_mode_p): Delete prototype.
21241
21242 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
21243
21244         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
21245         * config/arm/arm.c (multiple_operation_profitable_p,
21246         compute_offset_order): New static functions.
21247         (load_multiple_sequence, store_multiple_sequence): Use them.
21248         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
21249         memory offsets, not register numbers.
21250         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
21251
21252 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
21253
21254         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
21255         (get_pending_sizes, put_pending_size, put_pending_sizes):
21256         Update the uses of pending_sizes.
21257         * c-decl.c (store_parm_decls): Likewise.
21258         * c-tree.h (struct c_arg_info): Likewise.
21259         * tree.h: Update the prototype for get_pending_sizes and
21260         put_pending_sizes.
21261
21262 2010-05-05  Jason Merrill  <jason@redhat.com>
21263
21264         PR debug/43370
21265         * c-common.c (handle_aligned_attribute): Respect
21266         ATTR_FLAG_TYPE_IN_PLACE.
21267
21268         PR testsuite/43758
21269         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
21270         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21271         (TARGET_INITIALIZER): Use it.
21272         * c-common.c (attribute_takes_identifier_p): Call it.
21273         * c-common.h: Update prototype.
21274         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
21275         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21276
21277 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21278
21279         PR debug/43950
21280         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
21281         DW_ID_down_case for Fortran compilation units.
21282
21283 2010-05-05  Jan Hubicka  <jh@suse.cz>
21284
21285         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
21286         handle aliases.
21287
21288 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
21289
21290         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
21291         a variable-sized RESULT_DECL.
21292
21293 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
21294
21295         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
21296
21297 2010-05-05  Jason Merrill  <jason@redhat.com>
21298
21299         PR c++/43787
21300         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
21301         returns GS_OK.
21302         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
21303
21304 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
21305             Jakub Jelinek  <jakub@redhat.com>
21306
21307         PR debug/43478
21308         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
21309         (dead_debug_init, dead_debug_finish): New functions.
21310         (dead_debug_add, dead_debug_insert_before): Likewise.
21311         (df_note_bb_compute): Initialize a dead_debug object, add dead
21312         debug uses to it, insert debug bind insns before death insns,
21313         reset debug insns that refer to pending uses at the end.
21314         * rtl.h (make_debug_expr_from_rtl): New prototype.
21315         * varasm.c (make_debug_expr_from_rtl): New function.
21316
21317 2010-05-05  Jan Hubicka  <jh@suse.cz>
21318
21319         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
21320         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
21321         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
21322         lto_varpool_encoder_deref, lto_varpool_encoder_size,
21323         lto_varpool_encoder_encode_initializer_p,
21324         lto_set_varpool_encoder_encode_initializer): New functions.
21325         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
21326         call output_varpool.
21327         (input_varpool_node): Do not always set analyzed.
21328         (input_cgraph_1): Return vector of cgraph nodes.
21329         (input_varpool_1): Return vector of varpools.
21330         (input_cgraph): Free the vectors.
21331         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21332         output only initializers needed.
21333         (lto_output): Only call output_cgraph.
21334         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
21335         * lto-section-out.c (lto_new_out_decl_state): Initialize
21336         state->varpool_node_encoder.
21337         * lto-streamer.h (lto_varpool_encoder_d): New.
21338         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
21339         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
21340         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
21341         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
21342         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
21343         Declare.
21344         (output_varpool, input_varpool): Remove declarations.
21345
21346 2010-05-05  Jan Hubicka  <jh@suse.cz>
21347
21348         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
21349         with body can prevail.
21350
21351 2010-05-05  Jan Hubicka  <jh@suse.cz>
21352
21353         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
21354         size.
21355
21356 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21357
21358         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
21359
21360         * gengtype.h (erro_at_line): Constify pos argument.
21361
21362         * gengtype.c: Include hashtab.h.
21363         (enum gc_used): Document GC_MAYBE_POINTED_TO.
21364         (error_at_line): Constify pos argument.
21365         (do_typedef): Initialize p->opt field.
21366         (get_file_gtfilename): Fix comment typo.
21367         (struct walk_type_data): Constify line field.
21368         (get_output_file_for_structure): New function.
21369         (write_local_func_for_structure): Constify orig_s argument.
21370         Use get_output_file_for_structure.
21371         (write_func_for_structure): Use get_output_file_for_structure.
21372         (INDENT): New define.
21373         (dump_pair, dump_type, dump_type_list, dump_typekind)
21374         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
21375         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
21376         functions.
21377         (seen_types): New variable.
21378         (main): New variable do_dump.  Process "-d" command line option.
21379         Call dump_everything if dump requested.
21380
21381 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21382
21383         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
21384         in a temporary instead of invoking the macro multiple times.
21385         (track_expr_p): Likewise.
21386
21387 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
21388
21389         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
21390         per new semantics.
21391         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
21392         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
21393         conditions for printing notes.
21394         * common.opt (-Wcoverage-mismatch): Allow negative, default to
21395         true, update documentation.
21396         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
21397
21398 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
21399
21400         PR c/43981
21401         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
21402         on dimen.
21403
21404 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21405
21406         PR target/43799
21407         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
21408         (*sse_prologue_save_insn1): Likewise.
21409         (SSE prologue save splitter): Likewise.
21410
21411 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21412
21413         * tree.c (free_lang_data_in_one_sizepos): New inline function.
21414         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
21415         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
21416         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
21417         all decls.  Call it on DECL_FIELD_OFFSET of fields.
21418         (find_decls_types_r): Follow DECL_VALUE_EXPR.
21419         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
21420
21421 2010-05-04  Martin Jambor  <mjambor@suse.cz>
21422
21423         * tree-sra.c (build_access_from_expr_1): The first parameter type
21424         changed to simple tree.
21425         (build_access_from_expr): Likewise, gsi parameter was eliminated.
21426         (scan_assign_result): Renamed to assignment_mod_result, enum elements
21427         renamed as well.
21428         (build_accesses_from_assign): Removed all parameters except for a
21429         simple gimple statement.  Now returns a simple bool.
21430         (scan_function): All non-analysis parts moved to separate functions
21431         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
21432         parameters and updated both callers.
21433         (sra_modify_expr): Removed parameter data.
21434         (sra_modify_function_body): New function.
21435         (perform_intra_sra): Call sra_modify_function_body to modify the
21436         function body.
21437         (replace_removed_params_ssa_names): Parameter data changed into
21438         adjustments vector.
21439         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
21440         changed the parameter dont_convert to convert with the opposite
21441         meaning.
21442         (sra_ipa_modify_assign): Parameter data changed into adjustments
21443         vector, return value changed to bool.
21444         (ipa_sra_modify_function_body): New function.
21445         (sra_ipa_reset_debug_stmts): Updated a comment.
21446         (modify_function): Use ipa_sra_modify_function_body to modify function
21447         body.
21448
21449 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21450
21451         PR middle-end/43671
21452         * alias.c (true_dependence): Handle the same VALUE in x and mem.
21453         (canon_true_dependence): Likewise.
21454         (write_dependence_p): Likewise.
21455
21456 2010-05-04  Jan Hubicka  <jh@suse.cz>
21457
21458         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21459         * cgraphbuild.c: Include ipa-utils.h
21460         (record_reference_ctx): New struct.
21461         (record_reference): Simplify to work on initializers; not statements.
21462         (mark_address, mark_load, mark_store): New.
21463         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21464         walk PHI nodes too.
21465         (record_references_in_initializer): Update use of record_reference.
21466         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21467         walk PHI nodes too.
21468
21469 2010-05-04  Jan Hubicka  <jh@suse.cz>
21470
21471         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21472         node will be removed anyway.
21473         (lto_varpool_replace_node): Allow also unanalyzed nodes;
21474         relink aliases of node into prevailing node.
21475         * varpool.c (varpool_remove_node): Remove aliases properly;
21476         when removing node, remove all its aliases too; remove DECL_INITIAL
21477         of removed node; ggc_free the varpool node.
21478
21479 2010-05-04  Richard Guenther  <rguenther@suse.de>
21480
21481         PR tree-optimization/43879
21482         * tree-ssa-structalias.c (alias_get_name): Use
21483         DECL_ASSEMBLER_NAME if available.
21484         (create_function_info_for): Return the varinfo node.
21485         (ipa_pta_execute): Associate same-body aliases and extra names
21486         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
21487
21488 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21489
21490         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21491
21492 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
21493
21494         PR bootstrap/43964
21495         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21496         only if HONOR_REG_ALLOC_ORDER is not defined.
21497
21498 2010-05-04  Richard Guenther  <rguenther@suse.de>
21499
21500         PR tree-optimization/43949
21501         * tree-vrp.c (extract_range_from_binary_expr): Only handle
21502         TRUNC_MOD_EXPR.
21503
21504 2010-04-26  Jason Merrill  <jason@redhat.com>
21505
21506         * c.opt (-fstrict-enums): New.
21507         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21508
21509 2010-05-03  David Ung  <davidu@mips.com>
21510             James E. Wilson  <wilson@codesourcery.com>
21511
21512         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21513         emit the trap instruction before the divide for TUNE_74K.
21514
21515 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
21516
21517         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21518         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21519         based on the above, for new target hook.
21520
21521         * hooks.c (hook_bool_mode_true): New generic hook.
21522         * hooks.h (hook_bool_mode_true): Add prototype.
21523
21524         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21525         target hook.
21526         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21527         target hook, set to hook_bool_mode_false.
21528         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21529         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21530         with targetm.small_register_classes_for_mode_p.
21531         (find_reusable_reload): Likewise.
21532         (combine_reloads): Likewise.
21533         * reload1.c (reload_as_needed): Likewise.
21534         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21535         * ifcvt.c (noce_process_if_block, check_cond_move_block,
21536         dead_or_predicable): Likewise.
21537         * regmove.c (optimize_reg_copy_1): Likewise.
21538         * calls.c (prepare_call_address): Likewise.
21539         (precompute_register_parameters): Likewise.
21540
21541         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21542         hook definition.
21543         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21544         implementation of the hook that considers all register classes
21545         small except for SH64.
21546         (sh_override_options): Use the new hook.
21547         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21548         Add prototype.
21549
21550         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21551         hook definition.
21552         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21553         implementation of the hook that considers all register classes
21554         small for THUMB1.
21555         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21556         Add prototype.
21557
21558         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21559         hook definition.
21560         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21561         implementation of the hook that considers all register classes
21562         small for MIPS16.
21563         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21564         Add prototype.
21565
21566         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21567         hook definition.
21568         * config/m32c/m32c.h: Likewise.
21569         * config/pdp11/pdp11.h: Likewise.
21570         * config/avr/avr.h: Likewise.
21571         * config/xtensa/xtensa.h: Likewise.
21572         * config/m68hc11/m68hc11.h: Likewise.
21573         * config/mn10300/mn10300.h: Likewise.
21574         * config/mcore/mcore.h: Likewise.
21575         * config/h8300/h8300.h: Likewise.
21576         * config/bfin/bfin.h: Likewise.
21577
21578         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21579         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21580
21581 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
21582
21583         * double-int.h (tree_to_double_int): Remove macro.
21584         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21585         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21586         (tree_to_double_int): New function.
21587         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21588         Move ...
21589         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21590
21591 2010-05-03  Richard Guenther  <rguenther@suse.de>
21592
21593         PR tree-optimization/43971
21594         * tree-ssa-structalias.c (get_constraint_for_1): Fix
21595         constraints in the !flag_delete_null_pointer_checks case.
21596
21597 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
21598
21599         PR debug/43972
21600         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21601         result mode matches original rtl mode.
21602
21603 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
21604
21605         PR target/43888
21606         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21607
21608 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21609
21610         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21611         when processing flag options.
21612
21613 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21614
21615         * gcov-iov.c (main): Change format string placeholder
21616         from %#08x to 0x%08x.
21617         * genchecksum.c (dosum): Change format string placeholder
21618         from %#02x to 0x%02x.
21619
21620 2010-05-02  Richard Guenther  <rguenther@suse.de>
21621
21622         PR tree-optimization/43879
21623         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21624
21625 2010-05-02  Bruno Haible  <bruno@clisp.org>
21626
21627         * doc/extend.texi (Function Attributes): Fix a typo.
21628
21629 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21630
21631         Revert:
21632         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21633         placeholder from 0x%x to %#x.
21634         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21635         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21636         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21637         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21638         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21639         * config/i386/i386.c (ix86_target_string): Ditto.
21640         * config/i386/i386.c (output_pic_addr_const): Ditto.
21641         (print_operand): Ditto.
21642
21643 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21644
21645         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21646         placeholder from 0x%x to %#x.
21647         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21648         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21649         (ASM_OUTPUT_DEBUG_DATA): Ditto.
21650         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21651         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21652         * optc-gen.awk: Ditto.
21653         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21654         (HOST_WIDE_INT_PRINT_HEX): Ditto.
21655         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21656         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21657
21658 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21659
21660         * target.h (struct calls): Add function_value_regno_p field.
21661         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21662         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21663         * targhooks.c (default_function_value_regno_p): New function.
21664         * targhooks.h (default_function_value_regno_p): Declare function.
21665         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21666         * builtins.c. (apply_result_size): (Ditto.).
21667         * combine.c. (likely_spilled_retval_p): (Ditto.).
21668         * mode-switching.c. Include 'target.h'.
21669         (create_pre_exit): Use function_value_regno_p hook.
21670         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21671         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21672         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21673
21674         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21675         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21676         (ix86_function_value_regno_p): Declare as static, change argument
21677         type to const unsigned int.
21678         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21679
21680 2010-05-01  Richard Guenther  <rguenther@suse.de>
21681
21682         PR tree-optimization/43949
21683         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21684         types.
21685         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21686
21687 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21688
21689         * rtl.h (CONST_DOUBLE_P): Define.
21690         (rtx_to_double_int): Declare.
21691         * emit-rtl.c (rtx_to_double_int): New function.
21692         * dwarf2out.c (insert_double): New function.
21693         (loc_descriptor, add_const_value_attribute): Clean up, use
21694         rtx_to_double_int and insert_double functions.
21695
21696 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
21697
21698         * doc/extend.texi (Inline): Add missing return keyword to examples.
21699         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21700         "command-line".
21701
21702 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21703
21704         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21705         the variable part of the offset as well.  Use highest_pow2_factor for
21706         all alignment checks.
21707
21708 2010-04-30  Richard Guenther  <rguenther@suse.de>
21709
21710         PR tree-optimization/43879
21711         * tree-ssa-structalias.c (type_could_have_pointers): Functions
21712         can have pointers.
21713
21714 2010-04-30  Jan Hubicka  <jh@suse.cz>
21715
21716         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21717         varpool.
21718         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21719
21720 2010-04-30  Jan Hubicka  <jh@suse.cz>
21721
21722         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21723         New.
21724         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21725         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21726         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21727         cgraph_node_set_needs_ltrans_p): Remove.
21728
21729 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21730
21731         * sdbout.c: Include vec.h, do not include varray.h.
21732         (deferred_global_decls, sdbout_global_decl,
21733         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21734         * toplev.c: Do not include varray.h.
21735         (dump_memory_report): Do not dump VARRAY statistics.
21736         * gengtype.c (open_base_file): Ignore varray.h.
21737         * Makefile.in: Update for abovementioned changes.
21738         Remove all traces of varray.c and varray.h.
21739         * varray.c: Remove file.
21740         * varray.h: Remove file.
21741
21742 2010-04-30  Jan Hubicka  <jh@suse.cz>
21743
21744         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21745         references.
21746
21747 2010-04-30  Jan Hubicka  <jh@suse.cz>
21748
21749         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21750         needed.
21751
21752 2010-04-30  Richard Guenther  <rguenther@suse.de>
21753
21754         * tree-ssa-structalias.c (get_constraint_for_1): Generate
21755         constraints for CONSTRUCTOR.
21756
21757 2010-04-30  Richard Guenther  <rguenther@suse.de>
21758
21759         PR lto/43946
21760         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21761         first after all lowering passes.
21762
21763 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21764
21765         * toplev.c: Include varray.h for statistics dumping.
21766         * tree.h: Do not declare varray_head_tag.
21767         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21768         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21769         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21770         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21771         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21772         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21773         c-common.c, c-common.h, reg-stack.c, basic-block.h,
21774         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21775         include varray.h.
21776         * Makefile.in: Update for abovementioned changes.
21777
21778 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
21779
21780         PR debug/43942
21781         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21782
21783 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
21784
21785         * config/picochip/picochip.c (picochip_legitimize_address): Define.
21786         Use this function to do machine-specific conversion.
21787         (picochip_legitimize_reload_address): Likewise.
21788         (picochip_legitimate_address_p): Check valid base register only if
21789         strict.
21790         (picochip_check_conditional_copy): Check for modw only if opnd is
21791         register.
21792         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21793         to call the function in c.
21794         * config/picochip/picochip-protos.h
21795         (picochip_legitimize_reload_address): Define.
21796         * config/picochip/picochip.md (supported_compare1): Define.
21797
21798 2010-04-30  Jan Hubicka  <jh@suse.cz>
21799
21800         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21801         (cgraph_global_info): Remove inlined.
21802         (LTO_cgraph_tag_names): Remove.
21803         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21804         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21805         simplify cgraph tags and document.
21806         (lto_output_node): Use only LTO_cgraph_unavail_node and
21807         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21808         for_functions_valid, global info, process and output flags.
21809         (input_overwrite_node): Initialize estimated stack size and
21810         estimated growth.  Do not read flags we no longer store.
21811         (input_node): Likewise do not read info no longer stored.
21812         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21813         flag.
21814
21815 2010-04-30  Richard Guenther  <rguenther@suse.de>
21816
21817         PR tree-optimization/43879
21818         * tree-ssa-structalias.c (get_constraint_for_1): Properly
21819         handle non-zero initializers.
21820
21821 2010-04-30  Richard Guenther  <rguenther@suse.de>
21822
21823         * builtins.c (fold_builtin_1): Delete free (0).
21824
21825 2010-04-29  Jan Hubicka  <jh@suse.cz>
21826
21827         * gengtype.c (open_base_files): Add lto-streamer.h
21828         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21829         (pass_ipa_cp): GGC collect.
21830         * toplev. (compile_file): Do not output symbols.
21831         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21832         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21833         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21834         * lto-section-in.c: Include ggc.h
21835         (lto_new_in_decl_state): Alloc in GGC.
21836         (lto_delete_in_decl_state): Likewise.
21837         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21838         Collect.
21839
21840 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21841
21842         PR target/42895
21843         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21844         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21845         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21846         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21847         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21848         account only if HONOR_REG_ALLOC_ORDER is not defined.
21849         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21850         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21851
21852 2010-04-29  Jon Grant  <04@jguk.org>
21853
21854         * collect2.c (vflag): Change type from int to bool.
21855         (debug): Likewise.
21856         (helpflag): New global bool.
21857         (main): Set vflag and debug with boolean, not integer truth values.
21858         Accept new "--help" option and output usage text if found.
21859         * collect2.h (vflag): Update prototype.
21860         (debug): Likewise.
21861
21862 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21863
21864         PR bootstrap/43936
21865         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21866
21867 2010-04-29  Richard Guenther  <rguenther@suse.de>
21868
21869         PR bootstrap/43935
21870         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21871         with ATTRIBUTE_UNUSED.
21872
21873 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21874
21875         PR target/43921
21876         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21877         INSN_P with NONDEBUG_INSN_P.
21878         (distance_non_agu_define): Likewise.
21879         (distance_agu_use): Likewise.
21880
21881 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21882
21883         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21884         PR bootstrap/43858
21885         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21886         test_set.
21887
21888 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21889
21890         * plugin.h (invoke_plugin_callbacks): New inline function.
21891         * plugin.c (flag_plugin_added): New global flag.
21892         (add_new_plugin): Initialize above flag.
21893         (invoke_plugin_callbacks): Rename to ...
21894         (invoke_plugin_callbacks_full): ... this.
21895
21896 2010-04-28  Jan Hubicka  <jh@suse.cz>
21897
21898         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21899         (lto_varpool_replace_node): New.
21900         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21901         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21902         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21903         * cgraph.h (varpool_node_ptr): New type.
21904         (varpool_node_ptr): New vector.
21905         (varpool_node_set_def): New structure.
21906         (varpool_node_set): New type.
21907         (varpool_node_set): New vector.
21908         (varpool_node_set_element_def): New structure.
21909         (varpool_node_set_element, const_varpool_node_set_element): New types.
21910         (varpool_node_set_iterator): New type.
21911         (varpool_node): Add prev pointers, add used_from_other_partition,
21912         in_other_partition.
21913         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21914         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21915         varpool_get_node, varpool_remove_node): Declare.
21916         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21917         varpool_node_set_size): New inlines.
21918         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21919         * tree-pass.h (varpool_node_set_def): Forward declare.
21920         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21921         (ipa_write_optimization_summaries): Update prototype.
21922         * ipa-cp.c (ipcp_write_summary): Update.
21923         * ipa-reference.c (ipa_reference_write_summary): Update.
21924         * lto-cgraph.c (lto_output_varpool_node): New static function.
21925         (output_varpool): New function.
21926         (input_varpool_node): New static function.
21927         (input_varpool_1): New function.
21928         (input_cgraph): Input varpool.
21929         * ipa-pure-const.c (pure_const_write_summary): Update.
21930         * lto-streamer-out.c (lto_output): Update, output varpool too.
21931         (write_global_stream): Kill WPA hack.
21932         (produce_asm_for_decls): Update.
21933         (output_alias_pair_p): Handle variables.
21934         (output_unreferenced_globals): Output only needed partition of varpool.
21935         * ipa-inline.c (inline_write_summary): Update.
21936         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21937         cgraph.
21938         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21939         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21940         varpool_node_set_new, varpool_node_set_add,
21941         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21942         debug_varpool_node_set): New functions.
21943         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21944         (execute_one_pass): Process new decls too.
21945         (ipa_write_summaries_2): Pass around vsets.
21946         (ipa_write_summaries_1): Likewise.
21947         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21948         to add.
21949         (ipa_write_optimization_summaries_1): Pass around vsets.
21950         (ipa_write_optimization_summaries): Likewise.
21951         * varpool.c (varpool_get_node): New.
21952         (varpool_node): Update doubly linked lists.
21953         (varpool_remove_node): New.
21954         (dump_varpool_node): More dumping.
21955         (varpool_enqueue_needed_node): Update doubly linked lists.
21956         (decide_is_variable_needed): Kill ltrans hack.
21957         (varpool_finalize_decl): Kill lto hack.
21958         (varpool_assemble_decl): Skip decls in other partitions.
21959         (varpool_assemble_pending_decls): Update doubly linkes lists.
21960         (varpool_empty_needed_queue): Likewise.
21961         (varpool_extra_name_alias): Likewise.
21962         * lto-streamer.c (lto_get_section_name): Add vars section.
21963         * lto-streamer.h (lto_section_type): Update.
21964         (output_varpool, input_varpool): Declare.
21965
21966 2010-04-28  Mike Stump  <mikestump@comcast.net>
21967
21968         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21969
21970 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21971
21972         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21973         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21974         (lto_input_ts_type_tree_pointers): Likewise.
21975         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21976         (lto_output_ts_type_tree_pointers): Likewise.
21977
21978 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21979
21980         Uniquization of constants at the Tree level
21981         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21982         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21983         bit to the end.
21984         (tree_output_constant_def): Declare.
21985         * gimplify.c (gimplify_init_constructor): When using block copy, first
21986         uniquize the constant constructor on the RHS.
21987         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21988         DECL_IN_CONSTANT_POOL flag.
21989         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21990         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21991         constant pool.
21992         (assemble_variable): Deal with symbols belonging to the tree constant
21993         pool.
21994         (get_constant_section): Add ALIGN parameter and simplify.
21995         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21996         (assemble_constant_contents): Use the expression of the VAR_DECL.
21997         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21998         (tree_output_constant_def): New global function.
21999         (mark_constant): Use the expression of the VAR_DECL.
22000         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
22001         its expression.
22002         (output_object_block): Likewise and assemble the expression.
22003
22004 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
22005
22006         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
22007         hash_tree, eq_tree): New tree hash table.
22008         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
22009         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
22010         lto_orig_address_remove): Reimplement.
22011
22012 2010-04-28  Xinliang David Li  <davidxl@google.com>
22013
22014         PR c/42643
22015         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
22016         (compute_uninit_opnds_pos): New function.
22017         (is_non_loop_exit_postdominating): New function.
22018         (compute_control_dep_chain): New function.
22019         (find_pdom): New function.
22020         (convert_control_dep_chain_into_preds): New function.
22021         (find_predicates): New function.
22022         (find_control_equiv_block): New function.
22023         (collect_phi_def_edges): New function.
22024         (find_def_preds): New function.
22025         (find_dom): New function.
22026         (dump_predicates): New function.
22027         (get_cmp_code): New function.
22028         (is_value_included_in): New function.
22029         (find_matching_predicate_in_rest_chains): New function.
22030         (use_pred_not_overlap_with_undef_path_pred): New function.
22031         (is_use_properly_guarded): New function.
22032         (normalize_cond_1): New function.
22033         (is_and_or_or): New function.
22034         (normalize_cond): New function.
22035         (is_gcond_subset_of): New function.
22036         (is_subset_of_any): New function.
22037         (is_or_set_subset_of): New function.
22038         (is_and_set_subset_of): New function.
22039         (is_norm_cond_subset_of): New function.
22040         (is_pred_expr_subset_of): New function.
22041         (is_pred_chain_subset_of): New function.
22042         (is_included_in): New function.
22043         (is_superset_of): New function.
22044         (find_uninit_use): New function.
22045         (warn_uninitialized_phi): New function.
22046         (compute_possibly_undefined_names): New function.
22047         (ssa_undefined_value_p): New function.
22048         (execute_late_warn_uninitialized): New function.
22049         * tree-ssa.c (ssa_undefined_value_p): Removed.
22050         (warn_uninit): Changed to extern.
22051         (warn_uninitialized_phi): Removed.
22052         (warn_uninitialized_vars): Changed to extern.
22053         (execute_late_warn_uninitialized): Removed
22054         * tree-flow.h: Add new prototypes.
22055         * timevar.def: Add new time variable.
22056         * Makefile.in: Add new build file.
22057
22058 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
22059
22060         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
22061         type if available.
22062
22063 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22064
22065         PR target/22224
22066         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
22067
22068 2010-04-28  Martin Jambor  <mjambor@suse.cz>
22069
22070         * cgraph.h (struct cgraph_node): New field indirect_calls.
22071         (struct cgraph_indirect_call_info): New type.
22072         (struct cgraph_edge): Removed field indirect_call. New fields
22073         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
22074         (cgraph_create_indirect_edge): Declare.
22075         (cgraph_make_edge_direct): Likewise.
22076         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
22077         * ipa-prop.h (struct ipa_param_call_note): Removed.
22078         (struct ipa_node_params): Removed field param_calls.
22079         (ipa_create_all_structures_for_iinln): Declare.
22080         * cgraph.c: Described indirect edges and uids in initial comment.
22081         (cgraph_add_edge_to_call_site_hash): New function.
22082         (cgraph_edge): Search also among the indirect edges, use
22083         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
22084         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
22085         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
22086         site hash.
22087         (initialize_inline_failed): Assign a reason to indirect edges.
22088         (cgraph_create_edge_1): New function.
22089         (cgraph_create_edge): Moved some functionality to
22090         cgraph_create_edge_1.
22091         (cgraph_create_indirect_edge): New function.
22092         (cgraph_edge_remove_callee): Add an assert checking for
22093         non-indirectness.
22094         (cgraph_edge_remove_caller): Special-case indirect edges.
22095         (cgraph_remove_edge): Likewise.
22096         (cgraph_set_edge_callee): New function.
22097         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
22098         (cgraph_make_edge_direct): New function.
22099         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
22100         the declaration of the call statement matches.
22101         (cgraph_node_remove_callees): Special-case indirect edges.
22102         (cgraph_clone_edge): Likewise.
22103         (cgraph_clone_node): Clone also the indirect edges.
22104         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
22105         indirect_call, dump count of indirect_calls edges.
22106         * ipa-prop.c (iinlining_processed_edges): New variable.
22107         (ipa_note_param_call): Create indirect edges instead of
22108         creating notes.  New parameter node.
22109         (ipa_analyze_call_uses): New parameter node, pass it on to
22110         ipa_note_param_call.
22111         (ipa_analyze_stmt_uses): Likewise.
22112         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
22113         (print_edge_addition_message): Work on edges rather than on notes.
22114         (update_call_notes_after_inlining): Likewise, renamed to
22115         update_indirect_edges_after_inlining.
22116         (ipa_create_all_structures_for_iinln): New function.
22117         (ipa_free_node_params_substructures): Do not free notes.
22118         (ipa_edge_duplication_hook): Propagate bits within
22119         iinlining_processed_edges bitmap.
22120         (ipa_node_duplication_hook): Do not duplicate notes.
22121         (free_all_ipa_structures_after_ipa_cp): Renamed to
22122         ipa_free_all_structures_after_ipa_cp.
22123         (free_all_ipa_structures_after_iinln): Renamed to
22124         ipa_free_all_structures_after_iinln.
22125         (ipa_write_param_call_note): Removed.
22126         (ipa_read_param_call_note): Removed.
22127         (ipa_write_indirect_edge_info): New function.
22128         (ipa_read_indirect_edge_info): Likewise.
22129         (ipa_write_node_info): Do not stream notes, do stream information
22130         in indirect edges.
22131         (ipa_read_node_info): Likewise.
22132         (lto_ipa_fixup_call_notes): Removed.
22133         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
22134         * ipa-inline.c (pass_ipa_inline): Likewise.
22135         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
22136         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
22137         * tree-inline.c (copy_bb): Removed an unnecessary double check for
22138         is_gimple_call.
22139         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
22140         edges.
22141         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
22142         (output_cgraph): Stream also indirect edges.
22143         (lto_output_edge): Added capability to stream indirect edges.
22144         (input_edge): Likewise.
22145         (input_cgraph_1): Likewise.
22146         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
22147         of indirect edges.
22148
22149 2010-04-28  Richard Guenther  <rguenther@suse.de>
22150
22151         PR tree-optimization/43879
22152         PR tree-optimization/43909
22153         * tree-ssa-structalias.c (struct variable_info): Add
22154         only_restrict_pointers flag.
22155         (new_var_info): Initialize it.  Increment stats.total_vars here.
22156         (create_function_info_for): Do not increment stats.total_vars here.
22157         (get_function_part_constraint): Fix build with C++.
22158         (insert_into_field_list): Remove.
22159         (push_fields_onto_fieldstack): Properly merge fields.
22160         (create_variable_info_for): Split and simplify.
22161         (create_variable_info_for_1): New piece.
22162         (intra_create_variable_infos): Properly make restrict constraints
22163         from parameters.
22164
22165 2010-04-28  Richard Guenther  <rguenther@suse.de>
22166
22167         PR c++/43880
22168         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
22169
22170 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22171             Jan Hubicka  <hubicka@ucw.cz>
22172
22173         * doc/invoke.texi (-Wsuggest-attribute=const,
22174         -Wsuggest-attribute=pure): Document.
22175         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
22176         (function_always_visible_to_compiler_p,
22177         suggest_attribute, warn_function_pure, warn_function_const):
22178         New functions.
22179         (check_call): Improve debug info.
22180         (analyze_function): Do not check availability.
22181         (add_new_function): Check availability.
22182         (propagate): Output warnings.
22183         (skip_function_for_local_pure_const): New function.
22184         (local_pure_const): Use it; output warnings.
22185         * common.opt (Wsuggest-attribute=const,
22186         Wsuggest-attribute=pure): New.
22187
22188 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
22189
22190         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
22191         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
22192         or DW_CFA_def_cfa_offset{,_sf}.
22193
22194 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22195
22196         * tree.h: Fix truncated long macros.
22197
22198 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
22199
22200         * collect2.c (TARGET_64BIT): Redefine to target's default.
22201         * tlink.c: Likewise.
22202         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
22203         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
22204         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
22205         for underscoring __USER_LABEL_PREFIX__.
22206         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
22207         (SUB_LINK_ENTRY32): New.
22208         (SUB_LINK_ENTRY64): New.
22209         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
22210         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
22211         (SUB_LINK_ENTRY64): New.
22212         (SUB_LINK_ENTRY): New.
22213         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
22214         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
22215         x64 target is choosen.
22216         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
22217         * configure: Regenerated.
22218         * configure.ac (leading-mingw64-underscores): Option added.
22219
22220 2010-04-27  Jan Hubicka  <jh@suse.cz>
22221
22222         * doc/invoke.texi (-fipa-profile): Document.
22223         * opts.c (decode_options): Enable ipa-profile at -O1.
22224         * timevar.def (TV_IPA_PROFILE): Define.
22225         * common.opt (fipa-profile): Add.
22226         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
22227         flag for clones.
22228         (cgraph_propagate_frequency): Handle only local ones.
22229         * tree-pass.h (pass_ipa_profile): Declare.
22230         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
22231         (pass_ipa_profile): Use TV_IPA_PROFILE.
22232         * ipa.c (ipa_profile): New function.
22233         (gate_ipa_profile): Likewise.
22234         (pass_ipa_profile): New global variable.
22235         * passes.c (pass_ipa_profile): New.
22236
22237 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
22238
22239         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
22240
22241 2010-04-27  Martin Jambor  <mjambor@suse.cz>
22242
22243         PR middle-end/43812
22244         * ipa.c (dissolve_same_comdat_group_list): New function.
22245         (function_and_variable_visibility): Call
22246         dissolve_same_comdat_group_list when comdat group contains external or
22247         newly local nodes.
22248         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
22249         lists are circular and that they contain only DECL_ONE_ONLY nodes.
22250
22251 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22252
22253         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
22254         (const_hash_1) <VECTOR_CST>: New case.
22255         (compare_constant) <VECTOR_CST>: Likewise.
22256         <ADDR_EXPR>: Deal with LABEL_REFs.
22257         (copy_constant) <VECTOR_CST>: New case.
22258
22259 2010-04-27  Jan Hubicka  <jh@suse.cz>
22260
22261         * cgraph.c (cgraph_propagate_frequency): New function.
22262         * cgraph.h (cgraph_propagate_frequency): Declare.
22263         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
22264         cgraph_propagate_frequency.
22265
22266 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
22267
22268         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
22269
22270 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
22271
22272         PR target/40657
22273         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
22274         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
22275         here to determine which regs to push and how much stack to reserve.
22276
22277 2010-04-27  Jie Zhang  <jie@codesourcery.com>
22278
22279         * doc/gimple.texi (gimple_statement_with_ops): Remove
22280         addresses_taken field.
22281         (gimple_statement_with_memory_ops): Likewise.
22282
22283 2010-04-27  Jan Hubicka  <jh@suse.cz>
22284
22285         * tree-inline.c (eni_inlining_weights): Remove.
22286         (estimate_num_insns): Special case more builtins.
22287
22288 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
22289
22290         PR c/32207
22291         * c-typeck.c (build_binary_op): Move forward check for comparison
22292         pointer with null pointer constant and adjust the diagnostic message.
22293
22294 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
22295
22296         PR lto/42776
22297         * configure.ac (gcc_cv_as_section_has_align): Set if installed
22298         binutils supports extended .section directive needed by LTO, or
22299         warn if older binutils found.
22300         (LTO_BINARY_READER): New AC_SUBST'd variable.
22301         (LTO_USE_LIBELF): Likewise.
22302         * config.gcc (lto_binary_reader): New target-specific configure
22303         variable.
22304         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
22305         (LTO_USE_LIBELF): Likewise.
22306         * configure: Regenerate.
22307
22308         * collect2.c (is_elf): Rename from this ...
22309         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
22310          object files in addition to ELF-formatted ones.
22311         (scan_prog_file): Caller updated.  Also allow for LTO info marker
22312         symbol to be prefixed or not by an extra underscore.
22313
22314         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
22315         * config/i386/winnt.c: Also #include lto-streamer.h
22316         (i386_pe_asm_named_section): Specify 1-byte section alignment for
22317         LTO named sections.
22318         (i386_pe_asm_output_aligned_decl_common): Add comment.
22319         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
22320
22321 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
22322
22323         PR target/43889
22324         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
22325         Add missing earlyclobber for second alternative.
22326
22327 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
22328
22329         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
22330         bits for artificial defs at the top of the block.
22331         * fwprop.c (single_def_use_enter_block): Don't call it.
22332
22333 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
22334
22335         PR 43715
22336         * configure.ac: Use "$gcc_cv_nm -g" on darwin
22337         instead of "$gcc_cv_objdump -T".
22338         Use "-undefined dynamic_lookup" on darwin.
22339         * configure: Regenerate.
22340
22341 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
22342
22343         PR c/43893
22344         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
22345
22346 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22347
22348         * c-parser.c (struct c_token): Move location field up.
22349         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
22350         (struct c_declspecs): Convert typespec_word, storage_class, and
22351         default_int_p into bitfields.
22352         (struct c_declarator): Move loc field up.
22353
22354 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22355
22356         * cfgloop.h (struct loop): Move can_be_parallel field up.
22357         * ipa-prop.h (struct ip_node_params): Move bitfields up.
22358         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
22359         down.
22360         (struct iv_cand): Convert pos field into a bitfield.
22361         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
22362         field up.
22363         (struct _stmt_vec_info): Shuffle fields for better packing.
22364
22365 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22366
22367         * varasm.c (IN_NAMED_SECTION): Remove guard.
22368         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
22369         (IN_NAMED_SECTION_P): ...this.
22370         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
22371         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
22372
22373 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22374
22375         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
22376         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
22377         of shadowing it.  Fix comments.
22378
22379 2010-04-26  Jan Hubicka  <jh@suse.cz>
22380
22381         * cgraph.c (cgraph_create_node): Set node frequency to normal.
22382         (cgraph_clone_node): Copy function frequency.
22383         * cgraph.h (node_frequency): New enum
22384         (struct cgraph_node): Add.
22385         * final.c (rest_of_clean_state): Update.
22386         * lto-cgraph.c (lto_output_node): Output node frequency.
22387         (input_overwrite_node): Input node frequency.
22388         * tre-ssa-loop-ivopts (computation_cost): Update.
22389         * lto-streamer-out.c (output_function): Do not output function
22390         frequency.
22391         * predict.c (maybe_hot_frequency_p): Update and handle functions
22392         executed once.
22393         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
22394         attribute lookup.
22395         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
22396         (compute_function_frequency): Set noreturn functions to be executed
22397         once.
22398         (choose_function_section): Update.
22399         * lto-streamer-in.c (input_function): Do not input function frequency.
22400         * function.c (allocate_struct_function): Do not initialize function
22401         frequency.
22402         * function.h (function_frequency): Remove.
22403         (struct function): Remove function frequency.
22404         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
22405         (try_update): Update.
22406         * tree-inline.c (initialize_cfun): Do not update function frequency.
22407         * passes.c (pass_init_dump_file): Update.
22408         * i386.c (ix86_compute_frame_layout): Update.
22409         (ix86_pad_returns): Update.
22410
22411 2010-04-26  Jie Zhang  <jie@codesourcery.com>
22412
22413         PR tree-optimization/43833
22414         * tree-vrp.c (range_int_cst_p): New.
22415         (range_int_cst_singleton_p): New.
22416         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
22417         when both operands are constants.  Use range_int_cst_p in
22418         BIT_IOR_EXPR case.
22419
22420 2010-04-26  Jan Hubicka  <jh@suse.cz>
22421
22422         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
22423
22424 2010-04-26  Richard Guenther  <rguenther@suse.de>
22425
22426         PR lto/43080
22427         * gimple.c (gimple_decl_printable_name): Deal gracefully
22428         with a NULL DECL_NAME.
22429
22430 2010-04-26  Richard Guenther  <rguenther@suse.de>
22431
22432         PR lto/42425
22433         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
22434         if emitting debug information and it is either a function
22435         or a namespace decl.
22436
22437 2010-04-26  Ira Rosen  <irar@il.ibm.com>
22438
22439         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
22440         determine if the statement is vectorizable, and a macro to access it.
22441         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22442         Skip statements that can't be vectorized. If the analysis fails,
22443         mark the statement as unvectorizable if vectorizing basic block.
22444         (vect_compute_data_refs_alignment): Likewise.
22445         (vect_verify_datarefs_alignment): Skip statements marked as
22446         unvectorizable. Add print.
22447         (vect_analyze_group_access): Skip statements that can't be
22448         vectorized. If the analysis fails, mark the statement as
22449         unvectorizable if vectorizing basic block.
22450         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22451         * tree-vect-stmts.c (vectorizable_store): Fix the number of
22452         generated stmts for SLP.
22453         (new_stmt_vec_info): Initialize the new field.
22454         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22455         statements marked as unvectorizable.
22456
22457 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
22458
22459         * c-common.c (flag_isoc1x): New.
22460         (flag_isoc99): Update comment.
22461         * c-common.h (flag_isoc1x): New.
22462         (flag_isoc99): Update comment.
22463         * c-cppbuiltin.c (builtin_define_float_constants): Also define
22464         __<type>_DECIMAL_DIG__.
22465         * c-opts.c (set_std_c1x): New.
22466         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22467         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22468         * c.opt (-std=c1x, -std=gnu1x): New options.
22469         * doc/cpp.texi: Mention -std=c1x.
22470         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22471         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22472         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22473         * doc/standards.texi: Mention C1X.
22474         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22475         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22476         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22477         Define for C1X.
22478
22479 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
22480
22481         * config/i386/gmon-sol2.c (_mcleanup): Change format string
22482         placeholder from 0x%x to %#x.
22483         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22484         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22485         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22486         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22487         * config/i386/i386.c (ix86_target_string): Ditto.
22488         (output_pic_addr_const): Ditto.
22489         (print_operand): Ditto.
22490
22491 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
22492
22493         * combine.c (find_split_point): Add third argument.  Use it
22494         to find nested multiply-accumulate instructions.  Adjust calls.
22495         (try_combine): Adjust call to find_split_point.
22496
22497 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
22498
22499         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22500
22501 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
22502
22503         PR tree-optimization/41442
22504         * fold-const.c (merge_truthop_with_opposite_arm): New function.
22505         (fold_binary_loc): Call it.
22506
22507 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22508
22509         * toplev.c (general_init): Set default for fdiagnostics-show-option.
22510         * opts.c (common_handle_option): Allow disabling it.
22511         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22512
22513 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22514
22515         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22516         between modes if both types are integral.
22517
22518 2010-04-23  Richard Guenther  <rguenther@suse.de>
22519
22520         PR tree-optimization/43572
22521         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22522
22523 2010-04-23  Richard Guenther  <rguenther@suse.de>
22524
22525         PR lto/43455
22526         * tree-inline.c (tree_can_inline_p): Also check compatibility
22527         of return types.
22528
22529 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22530
22531         PR tree-optimization/43846
22532         * tree-sra.c (struct access): New flag grp_assignment_read.
22533         (build_accesses_from_assign): Set grp_assignment_read.
22534         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22535         (enum mark_read_status): New type.
22536         (analyze_access_subtree): Propagate grp_assignment_read, create
22537         accesses also if both direct_read and root->grp_assignment_read.
22538
22539 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22540
22541         PR middle-end/43835
22542         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22543         function does not have type attributes.
22544
22545 2010-04-23  Richard Guenther  <rguenther@suse.de>
22546
22547         PR lto/42653
22548         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22549         of FUNCTION_DECLs.
22550
22551 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22552
22553         * sese.h (create_if_region_on_edge): Remove.
22554
22555         * sese.c (create_if_region_on_edge): Make static.
22556
22557         * tree-inline.c: Do not include ggc.h.
22558
22559         * expr.c: Do not include ggc.h.
22560
22561         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22562         dependencies.
22563
22564 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
22565
22566         PR target/43744
22567         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22568         in the middle of insns for casesi_worker_2.
22569
22570 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
22571
22572         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22573
22574 2010-04-22  Ira Rosen  <irar@il.ibm.com>
22575
22576         PR tree-optimization/43842
22577         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22578         loop unrolling in update of exit phis. Fix comment.
22579         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22580         least two reduction statements in the loop before starting SLP
22581         analysis.
22582
22583 2010-04-22  Nick Clifton  <nickc@redhat.com>
22584
22585         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22586
22587 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
22588
22589         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22590         to simplify a + ~a.
22591
22592 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22593
22594         * tree-parloops.c (loop_parallel_p): New argument
22595         parloop_obstack.  Pass it down.
22596         (parallelize_loops): New variable parloop_obstack.  Initialize it,
22597         pass it down, free it.
22598
22599         * tree-loop-linear.c (linear_transform_loops): Pass down
22600         lambda_obstack.
22601
22602         * tree-data-ref.h (lambda_compute_access_matrices): New argument
22603         of type struct obstack *.
22604
22605         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22606         scratch_obstack.  Initialize it, pass down, free it.
22607
22608         * lambda.h (lambda_loop_new): Remove.
22609         (lambda_matrix_new, lambda_matrix_inverse)
22610         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22611         argument of type struct obstack *.
22612
22613         * lambda-trans.c (lambda_trans_matrix_new): New argument
22614         lambda_obstack.  Pass it down, use obstack allocation for ret.
22615         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
22616         it down.
22617
22618         * lambda-mat.c (lambda_matrix_get_column)
22619         (lambda_matrix_project_to_null): Remove.
22620         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
22621         allocation for mat.
22622         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22623         lambda_obstack.
22624
22625         * lambda-code.c (lambda_loop_new): New function.
22626         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22627         (lambda_compute_auxillary_space, lambda_compute_target_space)
22628         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22629         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22630         (build_access_matrix): New argument lambda_obstack.  Use obstack
22631         allocation for am.
22632         (lambda_compute_step_signs, lambda_compute_access_matrices): New
22633         argument lambda_obstack.  Pass it down.
22634
22635 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22636
22637         * optabs.h (expand_widening_mult): Declare.
22638
22639 2010-04-22  Richard Guenther  <rguenther@suse.de>
22640
22641         PR tree-optimization/43845
22642         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22643         lookup the CALL_EXPR function and arguments.
22644
22645 2010-04-22  Nick Clifton  <nickc@redhat.com>
22646
22647         * config/stormy16/stormy16.c
22648         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22649         * config/stormy16/stormy16.h: Tidy up formatting.
22650         (DONT_USE_BUILTIN_SETJMP): Remove definition.
22651         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22652         (ineqbranchsi): Delete pattern.
22653         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22654         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22655         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22656         stormy16-lib2-ucmpsi2.c.
22657
22658 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22659
22660         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22661         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
22662         extra set merge_set_noclobber, and use it to relax the final test
22663         slightly.
22664         * df.h (df_simulate_find_noclobber_defs): Declare.
22665         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22666         conditional defs.
22667         (df_simulate_find_noclobber_defs): New function.
22668
22669 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
22670
22671         * config/i386/i386.md: Use {} around multi-line preparation statements.
22672
22673 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22674
22675         * c-tree.h (push_init_level, pop_init_level, set_init_index)
22676         (process_init_element): New argument of type struct obstack *.
22677
22678         * c-typeck.c (push_init_level, pop_init_level, set_designator)
22679         (set_init_index, set_init_label, set_nonincremental_init)
22680         (set_nonincremental_init_from_string, find_init_member)
22681         (output_init_element, output_pending_init_elements)
22682         (process_init_element): New argument braced_init_obstack.  Pass it
22683         down.
22684         (push_range_stack, add_pending_init): New argument
22685         braced_init_obstack.  Use obstack allocation.
22686
22687         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22688         braced_init_obstack.  Pass it down.
22689         (c_parser_braced_init): New variables ret, braced_init_obstack.
22690         Initialize obstack, pass it down and finally free it.
22691
22692 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22693
22694         PR middle-end/29274
22695         * tree-pass.h (pass_optimize_widening_mul): Declare.
22696         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22697         gate_optimize_widening_mul): New static functions.
22698         (pass_optimize_widening_mul): New.
22699         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22700         <case MULT_EXPR>: Remove support for widening multiplies.
22701         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22702         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22703         simplify_gen_unary rather than directly building extensions.
22704         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22705         WIDEN_MULT_EXPR.
22706         * expmed.c (expand_widening_mult): New function.
22707         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22708
22709 2010-04-21  Jan Hubicka  <jh@suse.cz>
22710
22711         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22712         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22713         * lto-wpa-fixup.c: Remove.
22714         * Makefile.in (lto-wpa-fixup.o): Remove.
22715         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22716         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22717         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22718
22719 2010-04-21  Jan Hubicka  <jh@suse.cz>
22720
22721         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22722         add write_optimization_summary, read_optimization_summary.
22723         (ipa_write_summaries_of_cgraph_node_set): Remove.
22724         (ipa_write_optimization_summaries): Declare.
22725         (ipa_read_optimization_summaries): Declare.
22726         * ipa-cp.c (pass_ipa_cp): Update.
22727         * ipa-reference.c (pass_ipa_reference): Update.
22728         * ipa-pure-const.c (pass_ipa_pure_const): Update.
22729         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22730         Update.
22731         * ipa-inline.c (pass_ipa_inline): Update.
22732         * ipa.c (pass_ipa_whole_program): Update.
22733         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22734         * passes.c (ipa_write_summaries_1): Do not test wpa.
22735         (ipa_write_optimization_summaries_1): New.
22736         (ipa_write_optimization_summaries): New.
22737         (ipa_read_summaries): Do not test ltrans.
22738         (ipa_read_optimization_summaries_1): New.
22739         (ipa_read_optimization_summaries): New.
22740
22741 2010-04-21  Jan Hubicka  <jh@suse.cz>
22742
22743         * lto-cgraph.c (lto_output_node): Do not output comdat groups
22744         for boundary nodes.
22745         (output_cgraph): Do not arrange comdat groups for boundary nodes.
22746
22747 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22748
22749         PR debug/40040
22750         * dwarf2out.c (add_name_and_src_coords_attributes): Add
22751         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22752
22753 2010-04-21  Jan Hubicka  <jh@suse.cz>
22754
22755         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22756
22757 2010-04-21  Jan Hubicka  <jh@suse.cz>
22758
22759         * varpool.c (decide_is_variable_needed): Variable is always needed
22760         during ltrans.
22761
22762 2010-04-21  Jan Hubicka  <jh@suse.cz>
22763
22764         * opts.c (decode_options): Enable pure-const pass for whopr.
22765
22766 2010-04-21  Jan Hubicka  <jh@suse.cz>
22767
22768         * cgraph.c (dump_cgraph_node): Dump also assembler name.
22769         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22770         at WPA dumping.
22771         (cgraph_decide_inlining): Do not expect callee to be removed in all
22772         cases.
22773
22774 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
22775
22776         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22777
22778 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22779
22780         * config/i386/i386.md (x86_shrd): Add athlon_decode and
22781         amdfam10_decode attributes.
22782
22783 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22784
22785         PR middle-end/43570
22786         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22787         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22788         (lower_copyprivate_clauses): Use private var in outer
22789         context instead of original var.  Make sure the types
22790         are correct for VLAs.
22791
22792 2010-04-21  Richard Guenther  <rguenther@suse.de>
22793
22794         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22795         to non-pointer objects.
22796
22797 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22798
22799         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
22800         last chain entry if it starts with the still current label.
22801         (add_location_or_const_value_attribute): Check that
22802         loc_list->first->next is NULL instead of comparing ->first with ->last.
22803         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22804         to add_var_loc_to_decl.
22805
22806         * dwarf2out.c (output_call_frame_info): For dw_cie_version
22807         >= 4 add also address size and segment size fields into CIE header.
22808
22809         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22810         long as address size is the same as sizeof (void *) and
22811         segment size is 0.
22812         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
22813         address size or segment size is unexpected, return DW_EH_PE_omit.
22814         (classify_object_over_fdes): If get_cie_encoding returned
22815         DW_EH_PE_omit, return -1.
22816         (init_object): If classify_object_over_fdes returned -1,
22817         pretend there were no FDEs at all.
22818
22819 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22820
22821         * config/i386/i386.md (bswap<mode>2): Macroize expander from
22822         bswap{si,di}2 using SWI48 mode iterator.
22823         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22824         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22825         set modrm attribute of bswap insn to 0 and remove length attribute.
22826         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22827         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22828         set mode attribute to <MODE> and remove length attribute.
22829
22830 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22831
22832         PR rtl-optimization/43520
22833         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22834         zero available registers.
22835
22836 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22837
22838         * builtins.c (fold_builtin_cproj): Fold more cases.
22839
22840 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22841
22842         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22843         (fold_builtin_1): Fold builtin cproj.
22844         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22845         Use ATTR_CONST_NOTHROW_LIST.
22846
22847 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22848
22849         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22850         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22851         ffsi2_no_cmove for !TARGET_CMOVE.
22852         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22853         (ffssi2): Remove expander.
22854         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22855         mode iterator.
22856         (ctz<mode>2): Ditto from ctz{si,di}2.
22857         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22858         mode iterator.
22859         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22860         mode iterator.
22861
22862 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22863
22864         * dwarf2out.c (AT_linkage_name): Define.
22865         (clone_as_declaration): Handle DW_AT_linkage_name.
22866         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22867         of DW_AT_MIPS_linkage_name.
22868         (move_linkage_attr): Likewise.
22869         (dwarf2out_finish): Likewise.
22870
22871 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22872
22873         PR middle-end/41952
22874         * fold-const.c (fold_comparison): New folding rule.
22875
22876 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22877
22878         * double-int.h (double_int_setbit): Declare.
22879         * double-int.c (double_int_setbit): New function.
22880         * rtl.h (immed_double_int_const): Declare.
22881         * emit-rtl.c (immed_double_int_const): New function.
22882         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22883         and immed_double_int_const functions.
22884         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22885         expand_copysign_bit): (Ditto.).
22886         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22887         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22888         * dojump.c (prefer_and_bit_test): (Ditto.).
22889         * expr.c (convert_modes, reduce_to_bit_field_precision,
22890         const_vector_from_tree): (Ditto.).
22891         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22892
22893 2010-04-20  Jan Hubicka  <jh@suse.cz>
22894
22895         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22896         (dump_cgraph_node): Dump new flags.
22897         * cgraph.h (struct cgraph_node): Add flags
22898         reachable_from_other_partition and in_other_partition.
22899         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22900         other partition can not be removed.
22901         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22902         the other partition must be output; silence sanity checking on
22903         leaking functions bodies from other paritition.
22904         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22905         (lto_output_node): Output new flags; do not sanity check that inline
22906         clones are output; drop lto_forced_extern_inline_p code; do not mock
22907         visibility flags at partition boundaries.
22908         (add_node_to): New function.
22909         (output_cgraph): Use it to sort functions so masters appear before
22910         clones.
22911         (input_overwrite_node): Input new flags.
22912         * passes.c (ipa_write_summaries): Do not call
22913         lto_new_extern_inline_states.
22914         * lto-section-out.c (forced_extern_inline,
22915         lto_new_extern_inline_states lto_delete_extern_inline_states,
22916         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22917         * lto-streamer.h (lto_new_extern_inline_states,
22918         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22919         lto_forced_extern_inline_p): Kill.
22920
22921 2010-04-20  Richard Guenther  <rguenther@suse.de>
22922
22923         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22924         from vars that can have pointers.
22925         (process_constraint): Dump useless constraints.
22926
22927 2010-04-20  Richard Guenther  <rguenther@suse.de>
22928
22929         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22930         (dump_sa_points_to_info): Remove asserts.
22931         (init_base_vars): nothing_id isn't an escape point nor does it
22932         have pointers.
22933
22934 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22935
22936         * tree.h (TYPE_REF_IS_RVALUE): Define.
22937         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22938         should_move_die_to_comdat, prune_unused_types_walk): Handle
22939         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22940         (modified_type_die, gen_reference_type_die): Emit
22941         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22942         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22943
22944 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22945
22946         PR target/43635
22947         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22948         calls for -fpic -m31 if they have been sibcall optimized.
22949
22950 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22951
22952         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22953         ar.lc fixed and call-used.
22954
22955         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22956
22957 2010-04-19  Jan Hubicka  <jh@suse.cz>
22958
22959         * opts.c (decode_options): Disable whpr incompatible passes.
22960         * lto/lto.c (lto_1_to_1_map): Skip clones.
22961         (read_cgraph_and_symbols): Do not mark everything as needed.
22962         (do_whole_program_analysis): Do map only after optimizing;
22963         set proper cgraph_state; use passmanager.
22964
22965 2010-04-19  DJ Delorie  <dj@redhat.com>
22966
22967         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22968         POINTER_PLUS_EXPR and fix them.
22969
22970 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22971
22972         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22973         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22974         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22975         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22976         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22977         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22978         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22979         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22980         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22981         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22982         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22983
22984 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22985
22986         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22987         (check_cond_move_block): Likewise.
22988         (cond_move_process_if_block): Likewise.
22989         (noce_find_if_block): Improve formatting.
22990         (find_if_header): Pass 0 to memset and tweak conditions.
22991         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22992
22993 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22994
22995         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22996         for -gdwarf-4.
22997
22998         PR middle-end/43337
22999         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
23000         with non-local decl doesn't need chain.
23001
23002 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
23003
23004         * ira-color.c (allocno_reload_assign): Avoid accumulating
23005         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
23006
23007 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23008
23009         * gimple.h (create_tmp_reg): Declare.
23010         * gimplify.c (create_tmp_reg): New function.
23011         (gimplify_return_expr): Use create_tmp_reg.
23012         (gimplify_omp_atomic): Likewise.
23013         (gimple_regimplify_operands): Likewise.
23014         * tree-dfa.c (make_rename_temp): Likewise.
23015         * tree-predcom.c (predcom_tmp_var): Likewise.
23016         (reassociate_to_the_same_stmt): Likewise.
23017         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
23018         (get_replaced_param_substitute): Likewise.
23019         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
23020         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
23021         * tree-ssa-pre.c (get_representative_for): Likewise.
23022         (create_expression_by_pieces): Likewise.
23023         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
23024         (create_tailcall_accumulator): Likewise.
23025
23026 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23027
23028         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
23029         new_stmt.
23030         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
23031
23032 2010-04-19  Richard Guenther  <rguenther@suse.de>
23033
23034         PR tree-optimization/43796
23035         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
23036         from SCEV in the lattice.
23037         (vrp_visit_phi_node): Dump change.
23038
23039 2010-04-19  Richard Guenther  <rguenther@suse.de>
23040
23041         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
23042         * configure: Re-generated.
23043
23044 2010-04-19  Richard Guenther  <rguenther@suse.de>
23045
23046         PR tree-optimization/43783
23047         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
23048         constant ARRAY_REF operands two and three if possible.
23049
23050 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
23051
23052         PR target/43766
23053         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
23054
23055 2010-04-19  Jie Zhang  <jie@codesourcery.com>
23056
23057         PR target/43662
23058         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
23059
23060 2010-04-19  Ira Rosen  <irar@il.ibm.com>
23061
23062         PR tree-optimization/37027
23063         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
23064         and macro to access it.
23065         (vectorizable_reduction): Add argument.
23066         (vect_get_slp_defs): Likewise.
23067         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
23068         statements for possible use in SLP.
23069         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
23070         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
23071         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
23072         add new argument.
23073         (vectorizable_reduction): Likewise.
23074         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
23075         vect_get_slp_defs.
23076         (vectorizable_type_demotion, vectorizable_type_promotion,
23077         vectorizable_store): Likewise.
23078         (vect_analyze_stmt): Update call to vectorizable_reduction.
23079         (vect_transform_stmt): Likewise.
23080         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
23081         (vect_build_slp_tree): Fix indentation. Check that there are no loads
23082         from different interleaving chains in same node.
23083         (vect_slp_rearrange_stmts): New function.
23084         (vect_supported_load_permutation_p): Allow load permutations for
23085         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
23086         inside SLP nodes if necessary.
23087         (vect_analyze_slp_instance): Handle reductions.
23088         (vect_analyze_slp): Try to build SLP instances originating from groups
23089         of reductions.
23090         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
23091         (vect_get_constant_vectors): Create initial vectors for reductions
23092         according to reduction code. Add new argument.
23093         (vect_get_slp_defs): Add new argument, pass it to
23094         vect_get_constant_vectors.
23095         (vect_schedule_slp_instance): Remove SLP tree root statements.
23096
23097 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
23098
23099         * tree.h (ENUM_IS_SCOPED): Define.
23100         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
23101         for ENUM_IS_SCOPED enums.
23102
23103 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
23104
23105         * fold-const.c (fold_comparison): Use ssizetype.
23106         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23107         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
23108         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
23109         * tree-object-size.c (compute_object_sizes): Use size_type_node.
23110
23111         * tree.h (initialize_sizetypes): Remove parameter.
23112         (build_common_tree_nodes): Remove second parameter.
23113         * stor-layout.c (initialize_sizetypes): Remove parameter.
23114         Always create an unsigned type.
23115         (set_sizetype): Assert that the passed type is unsigned and simplify.
23116         * tree.c (build_common_tree_nodes): Remove second parameter.
23117         Adjust call to initialize_sizetypes.
23118         * c-decl.c (c_init_decl_processing): Remove second argument in call to
23119         build_common_tree_nodes.
23120
23121 2010-04-18  Matthias Klose  <doko@ubuntu.com>
23122
23123         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
23124
23125 2010-04-18  Ira Rosen  <irar@il.ibm.com>
23126
23127         PR tree-optimization/43771
23128         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
23129         load permutation doesn't have gaps.
23130
23131 2010-04-18  Jan Hubicka  <jh@suse.cz>
23132
23133         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
23134         (sse_prologue_save_insn expander): Use new pattern.
23135         (sse_prologue_save_insn1): New pattern and splitter.
23136         (sse_prologue_save_insn): Update to deal also with 64bit aligned
23137         blocks.
23138         * i386.c (setup_incoming_varargs_64): Do not compute jump
23139         destination here.
23140         (ix86_gimplify_va_arg): Update alignment needed.
23141         (ix86_local_alignment): Do not align all local arrays to 128bit.
23142
23143 2010-04-17  Jan Hubicka  <jh@suse.cz>
23144
23145         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
23146
23147 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23148
23149         * arm.md (negdi2): Remove redundant code to force values into a
23150         register.
23151
23152 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23153
23154         * arm/bpabi.S: Add EABI alignment attributes to objects.
23155         * arm/bpabi-v6m.S: Likewise.
23156         * arm/crti.asm: Likewise.
23157         * arm/crtn.asm: Likewise.
23158         * arm/lib1funcs.asm: Likewise.
23159         * arm/libunwind.S: Likewise.
23160
23161 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23162
23163         * arm-protos.h (tune_params): New structure.
23164         * arm.c (current_tune): New variable.
23165         (arm_constant_limit): Delete.
23166         (struct processors): Add pointer to the tune parameters.
23167         (arm_slowmul_tune): New tuning option.
23168         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
23169         (all_cores): Adjust to pick up the tuning model.
23170         (arm_constant_limit): New function.
23171         (arm_override_options): Select the appropriate tuning model.  Delete
23172         initialization of arm_const_limit.
23173         (arm_split_constant): Use the new constant-limit model.
23174         (arm_rtx_costs): Pick up the current tuning model.
23175         * arm.md (is_strongarm, is_xscale): Delete.
23176         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
23177         for Xscale variant architectures.
23178         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
23179
23180 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23181
23182         * config/arm/arm.c (arm_gen_constant): Remove unused variable
23183         can_shift.
23184         (arm_rtx_costs_1): Remove unused variable extra_cost.
23185         (arm_unwind_emit_set): Use variable offset.
23186         (thumb1_output_casesi): Remove unused variable flags.
23187
23188 2010-04-16  Jeff Law  <law@redhat.com>
23189
23190         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
23191         needing assignment rather than doing a two-phase assignment.  Remove
23192         unused variable 'm'.
23193
23194 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23195
23196         PR bootstrap/43767
23197         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
23198
23199 2010-04-16  Doug Kwan  <dougkwan@google.com>
23200
23201         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
23202         (next_operand_entry_id): New static variable.
23203         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
23204         (add_to_ops_vec): Assigned unique ID to operand entry.
23205         (struct oecount_s): New field ID.
23206         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
23207         (undistribute_ops_list): Assign unique IDs to oecounts.
23208         (init_reassoc): reset next_operand_entry_id.
23209
23210 2010-04-16  Doug Kwan  <dougkwan@google.com>
23211
23212         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
23213         missing left parenthesis.
23214
23215 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
23216
23217         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
23218         *btdi_rex64 using SWI48 mode iterator.
23219         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
23220         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
23221         *jcc_btdi_mask_rex64.
23222
23223 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
23224
23225         * double-int.h (tree_to_double_int): Convert to macro.
23226         * double-int.c (tree_to_double_int): Remove.
23227
23228 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23229
23230         PR debug/43762
23231         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
23232         with want_address 2 and in case a single element list might be
23233         possible, call it again with want_address 0.
23234
23235 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23236
23237         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
23238         case 'W' print operands for HI mode.
23239         * config/h8300/h8300.h (Y0, Y2) : New constraints.
23240         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
23241         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
23242         * config/h8300/predicate.md (bit_register_indirect_operand): New.
23243
23244         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
23245
23246         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
23247         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
23248         #xx:3 and #xx:4 mode.
23249
23250         * config/h8300/h8300.md (inverted load with HImode dest): Add
23251         support for H8300SX.
23252
23253         * config/h8300/predicate.md (bit_operand): Allow immediate values that
23254         satisfy 'U' constraint.
23255
23256 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23257
23258         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
23259         * configure: Regenerate.
23260         * config.in: Regenerate.
23261         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
23262         works.
23263
23264 2010-04-16  Richard Guenther  <rguenther@suse.de>
23265
23266         * tree.h (struct tree_decl_minimal): Move pt_uid ...
23267         (struct tree_decl_common): ... here.
23268         (DECL_PT_UID): Adjust.
23269         (SET_DECL_PT_UID): Likewise.
23270         (DECL_PT_UID_SET_P): Likewise.
23271
23272 2010-04-16  Richard Guenther  <rguenther@suse.de>
23273
23274         PR tree-optimization/43572
23275         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
23276         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
23277         * tree-flow.h (is_call_clobbered): Remove.
23278         * tree-flow-inline.h (is_call_clobbered): Likewise.
23279         * tree-dfa.c (dump_variable): Do not dump call clobber state.
23280         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
23281         (execute_return_slot_opt): Adjust.
23282         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
23283         check for call clobbered vars here.
23284         (find_tail_calls): Move tailcall verification to the
23285         proper place.
23286
23287 2010-04-16  Diego Novillo  <dnovillo@google.com>
23288
23289         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
23290
23291 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
23292
23293         PR target/40603
23294         * config/arm/arm.md (cbranchqi4): New pattern.
23295         * config/arm/predicates.md (const0_operand,
23296         cbranchqi4_comparison_operator): New predicates.
23297
23298 2010-04-16  Richard Guenther  <rguenther@suse.de>
23299
23300         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
23301         (dump_gimple_stmt): Likewise.
23302
23303 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
23304
23305         * recog.h (struct recog_data): New field is_operator.
23306         (struct insn_operand_data): New field is_operator.
23307         * recog.c (extract_insn): Set recog_data.is_operator.
23308         * genoutput.c (output_operand_data): Emit code to set the
23309         is_operator field.
23310         * reload.c (find_reloads): Use it rather than testing for an
23311         empty constraint string.
23312
23313         PR target/41514
23314         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
23315         If the previous insn is a cbranchsi4_insn with the same arguments,
23316         omit the compare instruction.
23317
23318         * config/arm/arm.md (addsi3_cbranch): If destination is a high
23319         register, inputs must be low registers and we need a low register
23320         scratch.  Handle alternative 2 like alternative 3.
23321
23322 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23323
23324         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
23325         don't call get_addr on both.  If one expression is a VALUE and
23326         the other a REG, check VALUE's locs if the REG isn't among them.
23327
23328 2010-04-16  Christian Bruel  <christian.bruel@st.com>
23329
23330         * config/sh/sh.h (sh_frame_pointer_required): New function.
23331         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
23332         (flag_omit_frame_pointer) Set.
23333         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
23334         (rounded_frame_size): Adjust size with outgoing_args_size.
23335         (sh_set_return_address): Must return from stack pointer.
23336         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
23337         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
23338         (ACCUMULATE_OUTGOING_ARGS): Define.
23339         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
23340         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
23341
23342 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23343
23344         PR target/43471
23345         * config/sh/sh.c (sh_legitimize_reload_address): Use
23346         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
23347         Remove a unneeded check for offset_base.
23348
23349 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
23350
23351         * configure: Regenerated.
23352
23353 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23354
23355         * config/s390/s390.c (s390_call_save_register_used): Switch back
23356         to HARD_REGNO_NREGS.
23357
23358 2010-04-15  Richard Guenther  <rguenther@suse.de>
23359
23360         * alias.c (alias_set_subset_of): Handle alias-set zero
23361         child properly.
23362
23363 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
23364             Julian Brown  <julian@codesourcery.com>
23365
23366         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
23367         alternatives according to use of high and low regs.
23368         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
23369         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
23370         optimizing for size on Thumb-2.
23371
23372 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
23373
23374         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
23375
23376 2010-04-15  Richard Guenther  <rguenther@suse.de>
23377
23378         * tree-ssa-structalias.c (struct variable_info): Add
23379         is_fn_info flag.
23380         (new_var_info): Initialize it.
23381         (dump_constraints): Support printing last added constraints.
23382         (debug_constraints): Adjust.
23383         (dump_constraint_graph): Likewise.
23384         (make_heapvar_for): Check for NULL cfun.
23385         (get_function_part_constraint): New function.
23386         (get_fi_for_callee): Likewise.
23387         (find_func_aliases): Properly implement IPA PTA constraints.
23388         (process_ipa_clobber): New function.
23389         (find_func_clobbers): Likewise.
23390         (insert_into_field_list_sorted): Remove.
23391         (create_function_info_for): Properly allocate vars for IPA mode.
23392         Do not use insert_into_field_list_sorted.
23393         (create_variable_info_for): Properly generate constraints for
23394         global vars in IPA mode.
23395         (dump_solution_for_var): Always dump the solution.
23396         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
23397         (find_what_var_points_to): Adjust.
23398         (pt_solution_set): Change.
23399         (pt_solution_ior_into): New function.
23400         (pt_solution_empty_p): Export.
23401         (pt_solution_includes_global): Adjust.
23402         (pt_solution_includes_1): Likewise.
23403         (pt_solutions_intersect_1): Likewise.
23404         (dump_sa_points_to_info): Check some invariants.
23405         (solve_constraints): Move constraint dumping ...
23406         (compute_points_to_sets): ... here.
23407         (ipa_pta_execute): ... and here.
23408         (compute_may_aliases): Do not re-compute points-to info
23409         locally if IPA info is available.
23410         (ipa_escaped_pt): New global var.
23411         (ipa_pta_execute): Properly implement IPA PTA.
23412         * tree-into-ssa.c (dump_decl_set): Support dumping
23413         decls not in referenced-vars.
23414         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
23415         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
23416         (dump_points_to_solution): Likewise.
23417         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
23418         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
23419         (remap_gimple_stmt): Reset call clobber/use information if necessary.
23420         (copy_decl_to_var): Copy DECL_PT_UID.
23421         (copy_result_decl_to_var): Likewise.
23422         * tree.c (make_node_stat): Initialize DECL_PT_UID.
23423         (copy_node_stat): Copy it.
23424         * tree.h (DECL_PT_UID): New macro.
23425         (SET_DECL_PT_UID): Likewise.
23426         (DECL_PT_UID_SET_P): Likewise.
23427         (struct tree_decl_minimal): Add pt_uid member.
23428         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
23429         (pt_solution_empty_p): Declare.
23430         (pt_solution_set): Adjust.
23431         (ipa_escaped_pt): Declare.
23432         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
23433         * gimple-pretty-print.c (pp_points_to_solution): New function.
23434         (dump_gimple_call): Dump call clobber/use information.
23435         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
23436         * tree-pass.h (TDF_ALIAS): New dump option.
23437         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
23438         * doc/invoke.texi (-fipa-pta): Update documentation.
23439
23440 2010-04-15  Richard Guenther  <rguenther@suse.de>
23441
23442         * Makefile.in (OBJS-common): Add gimple-fold.o.
23443         (gimple-fold.o): New rule.
23444         * tree.h (maybe_fold_offset_to_reference,
23445         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23446         prototypes ...
23447         * gimple.h: ... here.
23448         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23449         may_propagate_address_into_dereference): Move prototypes ...
23450         * gimple.h: ... here.
23451         * tree-ssa-ccp.c (get_symbol_constant_value,
23452         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23453         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23454         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23455         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23456         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23457         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23458         gimplify_and_update_call_from_tree): Move ...
23459         * gimple-fold.c: ... here.  New file.
23460         (ccp_fold_builtin): Rename to ...
23461         (gimple_fold_builtin): ... this.
23462         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23463
23464 2010-04-15  Richard Guenther  <rguenther@suse.de>
23465
23466         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23467         fit_double_type, force_fit_type_double, add_double_with_sign,
23468         neg_double, mul_double_with_sign, lshift_double, rshift_double,
23469         lrotate_double, rrotate_double, div_and_round_double): Move ...
23470         * double-int.c: ... here.
23471         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23472         add_double, neg_double, mul_double_with_sign, mul_double,
23473         lshift_double, rshift_double, lrotate_double, rrotate_double,
23474         div_and_round_double): Move prototypes ...
23475         * double-int.h: ... here.
23476
23477 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
23478
23479         PR target/43742
23480         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
23481         matching constraints to ensure inputs match the output.
23482
23483 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23484
23485         PR target/43742
23486         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23487         in an input-only operand.
23488
23489 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
23490
23491         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23492         (double_int_not, double_int_lshift, double_int_rshift): Declare.
23493         (double_int_negative_p): Convert to static inline function.
23494         * double-int.c (double_int_lshift, double_int_lshift): New functions.
23495         (double_int_negative_p): Remove.
23496         * tree.h (lshift_double, rshift_double):
23497         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23498         * fold-const.c (fold_convert_const_int_from_real,
23499         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23500         (lshift_double): Change type of arith argument to bool.
23501         (rshift_double): Change type of arith argument to bool. Correct
23502         comment.
23503         * expmed.c (mask_rtx, lshift_value): (Ditto.).
23504
23505 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
23506
23507         PR target/21803
23508         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23509         at the start and end of the then/else blocks, and omit them from the
23510         conversion.
23511         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
23512         argument; all callers changed.  Pass zero to old_insns_match_p instead.
23513         (flow_find_head_matching_sequence): New function.
23514         (old_insns_match_p): Check REG_EH_REGION notes for calls.
23515         * basic-block.h (flow_find_cross_jump,
23516         flow_find_head_matching_sequence): Declare functions.
23517
23518 2010-04-14  Jason Merrill  <jason@redhat.com>
23519
23520         PR c++/36625
23521         * c-common.c (attribute_takes_identifier_p): New fn.
23522         * c-common.h: Declare it.
23523
23524 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23525
23526         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23527         splitter condition.
23528         (*udivmod<mode>4): Ditto.
23529
23530 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23531
23532         * config/i386/i386.md (maxmin_int): Rename code attribute from
23533         maxminiprefix and update all users.
23534         (maxmin_float): Ditto from maxminfprefix.
23535         (logic): Ditto from logicprefix.
23536         (absneg_mnemonic): Ditto from absnegprefix.
23537         * config/i386/mmx.md: Update all users of maxminiprefix,
23538         maxminfprefix and logicprefix for rename.
23539         * config/i386/sse.md: Ditto.
23540         * config/i386/sync.md (sync_<code><mode>): Update for
23541         logicprefix rename.
23542
23543 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23544
23545         PR 42966
23546         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23547         warnings converted to errors.
23548
23549 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23550
23551         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23552         used insn_type variable.
23553         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23554         to avoid set-but-not-used warning.
23555
23556 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23557
23558         * df-core.c (df_ref_debug): Change format string placeholder
23559         from 0x%x to %#x.
23560         * dwarf2asm.c (dw2_asm_output_data_raw,
23561         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23562         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23563         * dwarf2out.c (output_cfi, output_cfi_directive,
23564         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23565         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23566         Ditto.
23567         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23568         * print-rtl.c (print_rtx): Ditto.
23569
23570 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23571
23572         PR middle-end/42694
23573         * builtins.c (expand_builtin_pow_root): New function to expand pow
23574         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23575         series of sqrt and cbrt calls under -ffast-math.
23576         (expand_builtin_pow): Call it.
23577
23578 2010-04-14  Michael Matz  <matz@suse.de>
23579
23580         PR tree-optimization/42963
23581         * tree-cfg.c (touched_switch_bbs): New static variable.
23582         (group_case_labels_stmt): New function broken out from ...
23583         (group_case_labels): ... here, use the above.
23584         (start_recording_case_labels): Allocate touched_switch_bbs.
23585         (end_recording_case_labels): Deallocate it, call
23586         group_case_labels_stmt.
23587         (gimple_redirect_edge_and_branch): Remember index of affected BB.
23588
23589 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23590
23591         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23592         from insn template.
23593
23594 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23595
23596         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23597
23598 2010-04-13  Jan Hubicka  <jh@suse.cz>
23599
23600         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23601         of optimized out static functions.
23602         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23603         cost computation.  Also sanity check for overflows.
23604         (update_caller_keys): Update cgraph_edge_badness call; properly
23605         update fibheap and sanity check that it is up to date.
23606         (add_new_edges_to_heap): Update cgraph_edge_badness.
23607         (cgraph_decide_inlining_of_small_function): Likewise;
23608         add sanity checking that badness in heap is up to date;
23609         improve dumping of reason; Update badness of calls to the
23610         offline copy of function currently inlined; dump badness
23611         of functions not inlined because of unit growth limits.
23612
23613 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23614
23615         PR middle-end/32628
23616         * c-common.c (pointer_int_sum): Disregard overflow that occured only
23617         because of sign-extension change when converting to sizetype here...
23618         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23619
23620         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23621         the folding to constants.  Remove redundant final conversion.
23622         (fold_binary) <associate>: Do not associate if the re-association of
23623         constants alone overflows.
23624         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23625         to the end of the list.
23626         (multiple_of_p) <COND_EXPR>: New case.
23627
23628 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23629
23630         * opt-functions.awk (opt_sanitized_name): New.
23631         (opt_enum): New.
23632         * optc-gen.awk: Use it
23633         * opth-gen.awk: Use it.
23634
23635 2010-04-13  Martin Jambor  <mjambor@suse.cz>
23636
23637         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23638         (sra_modify_assign): Delete stmts loading dead data even if racc has no
23639         children.  Call replace_uses_with_default_def_ssa_name to handle
23640         SSA_NAES on lhs.
23641
23642 2010-04-13  Michael Matz  <matz@suse.de>
23643
23644         PR middle-end/43730
23645         * builtins.c (expand_builtin_interclass_mathfn): Also create
23646         a register if the predicate doesn't match.
23647
23648 2010-04-13  Diego Novillo  <dnovillo@google.com>
23649
23650         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23651         * c-pch.c: Include timevar.h.
23652         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23653         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23654         * ggc-common.c: Include timevar.h.
23655         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23656         * timevar.def (TV_PCH_SAVE): Define.
23657         (TV_PCH_CPP_SAVE): Define.
23658         (TV_PCH_PTR_REALLOC): Define.
23659         (TV_PCH_PTR_SORT): Define.
23660         (TV_PCH_RESTORE): Define.
23661         (TV_PCH_CPP_RESTORE): Define.
23662
23663 2010-04-13  Michael Matz  <matz@suse.de>
23664
23665         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23666         into MINUS_EXPRs.
23667         (can_reassociate_p): New function.
23668         (break_up_subtract_bb, reassociate_bb): Use it.
23669
23670 2010-04-13  Richard Guenther  <rguenther@suse.de>
23671
23672         PR bootstrap/43737
23673         * builtins.c (c_readstr): Fix assert.
23674
23675 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
23676
23677         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23678         when generating cltd insn.
23679
23680         (*ashl<mode>3_1): Remove special handling for register operand 2.
23681         (*ashlsi3_1_zext): Ditto.
23682         (*ashlhi3_1): Ditto.
23683         (*ashlhi3_1_lea): Ditto.
23684         (*ashlqi3_1): Ditto.
23685         (*ashlqi3_1_lea): Ditto.
23686         (*<shiftrt_insn><mode>3_1): Ditto.
23687         (*<shiftrt_insn>si3_1_zext): Ditto.
23688         (*<shiftrt_insn>qi3_1_slp): Ditto.
23689         (*<rotate_insn><mode>3_1): Ditto.
23690         (*<rotate_insn>si3_1_zext): Ditto.
23691         (*<rotate_insn>qi3_1_slp): Ditto.
23692
23693 2010-04-13  Richard Guenther  <rguenther@suse.de>
23694
23695         * tree-ssa-structalias.c (callused_id): Remove.
23696         (call_stmt_vars): New.
23697         (get_call_vi): Likewise.
23698         (lookup_call_use_vi): Likewise.
23699         (lookup_call_clobber_vi): Likewise.
23700         (get_call_use_vi): Likewise.
23701         (get_call_clobber_vi): Likewise.
23702         (make_transitive_closure_constraints): Likewise.
23703         (handle_const_call): Adjust to do per-call call-used handling.
23704         (handle_pure_call): Likewise.
23705         (find_what_var_points_to): Remove general callused handling.
23706         (init_base_vars): Likewise.
23707         (init_alias_vars): Initialize call_stmt_vars.
23708         (compute_points_to_sets): Process call-used and call-clobbered
23709         vars for call statements.
23710         (delete_points_to_sets): Free call_stmt_vars.
23711
23712 2010-04-13  Richard Guenther  <rguenther@suse.de>
23713
23714         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23715         Only add RW dependence for dependence distance zero.
23716         Adjust maximal vectorization factor according to dependences.
23717         Move alignment handling ...
23718         (vect_find_same_alignment_drs): ... here.  New function.
23719         (vect_analyze_data_ref_dependences): Adjust.
23720         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23721         (vect_analyze_data_refs): Adjust minimal vectorization factor
23722         according to data references.
23723         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23724         dependences before determining the vectorization factor.
23725         Analyze alignment after determining the vectorization factor.
23726         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23727         dependences before alignment.
23728         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23729         Adjust prototype.
23730         (vect_analyze_data_refs): Likewise.
23731         (MAX_VECTORIZATION_FACTOR): New define.
23732
23733 2010-04-13  Duncan Sands  <baldrick@free.fr>
23734
23735         * except.h (lang_eh_type_covers): Remove.
23736         * except.c (lang_eh_type_covers): Likewise.
23737
23738 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23739             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23740
23741         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23742         * config/s390/s390.c: Replace UNTIS_PER_WORD with
23743         UNITS_PER_LONG where it is ABI relevant.
23744         (s390_return_addr_rtx): Likewise.
23745         (s390_back_chain_rtx): Likewise.
23746         (s390_frame_area): Likewise.
23747         (s390_frame_info): Likewise.
23748         (s390_initial_elimination_offset): Likewise.
23749         (save_gprs): Likewise.
23750         (s390_emit_prologue): Likewise.
23751         (s390_emit_epilogue): Likewise.
23752         (s390_function_arg_advance): Likewise.
23753         (s390_function_arg): Likewise.
23754         (s390_va_start): Likewise.
23755         (s390_gimplify_va_arg): Likewise.
23756         (s390_function_profiler): Likewise.
23757         (s390_optimize_prologue): Likewise.
23758         (s390_rtx_costs): Likewise.
23759         (s390_secondary_reload): Likewise.
23760         (s390_promote_function_mode): Likewise.
23761         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23762         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23763         registers available.
23764         (s390_unwind_word_mode): New function.
23765         (s390_function_value): Split 64 bit values into register pair if
23766         used as return value.
23767         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23768         function call parameters.  Handle parallels.
23769         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23770         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23771         (DWARF_CIE_DATA_ALIGNMENT): New macro.
23772         (s390_expand_setmem): Remove unused variable src_addr.
23773         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23774         deal with 64 bit registers.
23775         * config/s390/s390.h: Define __zarch__ predefined macro.
23776         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23777         (UNITS_PER_LONG): New macro.
23778         * libjava/include/s390-signal.h: Define extended ucontext
23779         structure containing the upper halfs of the 64 bit registers.
23780
23781 2010-04-13  Simon Baldwin  <simonb@google.com>
23782
23783         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23784
23785 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23786
23787         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23788         rvalue on the RHS if the LHS is of a non-renamable type.
23789         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23790
23791 2010-04-13  Matthias Klose  <doko@ubuntu.com>
23792
23793         * gcc.c (cc1_options): Handle -iplugindir before processing
23794         the cc1 spec. Only add -iplugindir once.
23795         (cpp_unique_options): Add -iplugindir option if -fplugin* options
23796         found.
23797         * common.opt (iplugindir): Remove `Separate' property, initialize.
23798         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23799         option.
23800         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23801         (distclean): Remove plugin dir.
23802         * doc/invoke.texi: Document -iplugindir.
23803
23804 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
23805
23806         * doc/plugins.texi (Loading Plugins): Document short
23807         -fplugin=foo option.
23808         (Plugin API): Mention default_plugin_dir_name function.
23809
23810         * gcc.c (find_file_spec_function): Add new declaration.
23811         (static_spec_func): Use it for "find-file".
23812         (find_file_spec_function): Add new function.
23813         (cc1_options): Add -iplugindir option if -fplugin* options found.
23814
23815         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23816
23817         * plugin.c (add_new_plugin): Updated comment, and handle short
23818         plugin name.
23819         (default_plugin_dir_name): Added new function.
23820
23821         * common.opt (iplugindir): New option to set the plugin directory.
23822
23823 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23824
23825         * config/i386/i386.md (any_rotate): New code iterator.
23826         (rotate_insn): New code attribute.
23827         (rotate): Ditto.
23828         (SWIM124): New mode iterator.
23829         (<rotate_insn>ti3): New expander.
23830         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23831         any_rotate code iterator.
23832         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23833         using any_rotate code iterator and SWIM124 mode iterator.
23834         (ix86_rotlti3): New insn_and_split pattern.
23835         (ix86_rotrti3): Ditto.
23836         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23837         ix86_rotl{di,ti}3 patterns.
23838         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23839         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23840         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23841         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23842         code iterator and SWI mode iterator.
23843         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23844         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23845         code iterator.
23846         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23847         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23848         (bswap rotatert splitter): Add splitter.
23849         (bswap splitter): Macroize splitter using any_rotate code iterator.
23850         Add insn predicate to split only for TARGET_USE_XCHGB or when
23851         optimizing function for size.
23852
23853 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23854
23855         * config/pa/pa.c (emit_move_sequence): Remove use of
23856         deleted variable flag_argument_noalias.
23857
23858 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23859
23860         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23861         configurations.
23862         Add to unsupported targets list.
23863         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23864         sparc*-sun-solaris2.[567]* from target lists.
23865         * configure: Regenerate.
23866         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23867         removal.
23868         Remove Solaris 7 patch references.
23869         (Specific, sparc-sun-solaris2.7): Removed.
23870         (sparc-sun-solaris2*): Update Solaris 7 example.
23871         (sparc64-*-solaris2*): Likewise.
23872
23873 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23874
23875         * config.build (alpha*-dec-osf4*): Remove.
23876         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23877         of obsolete configurations.
23878         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23879         support.
23880         * config/alpha/t-osf4: Renamed to ...
23881         * config/alpha/t-osf5: ... this.
23882         * config/alpha/osf.h: Renamed to ...
23883         * config/alpha/osf5.h: ... this.
23884         Merged old osf5.h contents.
23885         Update comments.
23886         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23887         (EXTRA_SPECS): Removed.
23888         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23889         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23890         Document that.
23891
23892 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23893
23894         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23895
23896 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23897
23898         PR/43702
23899         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23900         __thiscall convention.
23901
23902 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23903
23904         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23905         orig_base.
23906         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23907
23908 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23909
23910         * function.c (assign_parms_initialize_all): Add unused attribute
23911         to fntype.
23912
23913 2010-04-12  Richard Guenther  <rguenther@suse.de>
23914
23915         * gsstruct.def (GSS_CALL): New.
23916         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23917         * gimple.h: Include tree-ssa-alias.h.
23918         (struct gimple_statement_call): New.
23919         (union gimple_statement_struct_d): Add gimple_call member.
23920         (gimple_call_reset_alias_info): Declare.
23921         (gimple_call_use_set): New function.
23922         (gimple_call_clobber_set): Likewise.
23923         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23924         * gimple.c (gimple_call_reset_alias_info): New function.
23925         (gimple_build_call_1): Call it.
23926         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23927         * tree-inline.c (remap_gimple_stmt): Likewise.
23928         (expand_call_inline): Remove callused handling.
23929         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23930         * tree-dfa.c (dump_variable): Likewise.
23931         * tree-parloops.c (parallelize_loops): Likewise.
23932         * tree-ssa.c (init_tree_ssa): Likewise.
23933         (delete_tree_ssa): Likewise.
23934         * tree-flow-inline.h (is_call_used): Remove.
23935         * tree-flow.h (struct gimple_df): Remove callused member.
23936         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23937         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23938         (ref_maybe_used_by_call_p_1): Simplify.
23939         (call_may_clobber_ref_p_1): Likewise.
23940         * tree-ssa-structalias.c (compute_points_to_sets): Set
23941         the call stmt used and clobbered sets.
23942         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23943         (find_tail_calls): Verify the tail call.
23944
23945 2010-04-12  Richard Guenther  <rguenther@suse.de>
23946
23947         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23948         single-iteration always-inline inlining.
23949         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23950         (cgraph_decide_inlining): Do not handle always-inline specially.
23951         (try_inline): Remove always-inline cycle detection special case.
23952         Do not recurse on always-inlines.
23953         (cgraph_early_inlining): Do not iterate if not optimizing.
23954         (cgraph_gate_early_inlining): remove.
23955         (pass_early_inline): Run unconditionally.
23956         (gate_cgraph_decide_inlining): New function.
23957         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23958         not inlining or optimizing.
23959         (cgraph_decide_inlining_of_small_functions): Also consider
23960         always-inline functions.
23961         (cgraph_default_inline_p): Return true for nodes which should
23962         disregard inline limits.
23963         (estimate_function_body_sizes): Assume zero size and time for
23964         nodes which are marked as disregarding inline limits.
23965         (cgraph_decide_recursive_inlining): Do not perform recursive
23966         inlining on always-inline nodes.
23967
23968 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23969
23970         PR bootstrap/43699
23971         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23972         for exprs satisfying handled_component_p.
23973
23974 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23975
23976         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23977         non-constant aggregate elements.
23978
23979         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23980         is a real initialization.
23981
23982 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23983
23984         PR c/36774
23985         * c-decl.c (start_function): Move forward check for nested function.
23986
23987 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23988
23989         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23990         * config/sh/sh.c: Include reload.h.
23991         (sh_legitimize_reload_address): New.
23992         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23993         sh_legitimize_reload_address.
23994
23995 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23996
23997         * config/sh/sh.md (*movqi_pop): New insn pattern.
23998         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23999
24000 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24001
24002         * config/i386/i386.md (any_shiftrt): New code iterator.
24003         (shiftrt_insn): New code attribute.
24004         (shiftrt): Ditto.
24005         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
24006         using any_shiftrt code iterator.
24007         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
24008         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
24009         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
24010         pattern from corresponding peephole2 patterns.
24011         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
24012         using any_shiftrt code iterator.
24013         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
24014         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
24015         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
24016         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
24017         *{ashr,lshr}<mode>3_cmp_zext.
24018         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
24019
24020 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24021
24022         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
24023         scratch register.
24024         (*lshr<mode>3_cconly): Ditto.
24025
24026 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24027
24028         * config/i386/i386.md (lshr<mode>3): Macroize expander from
24029         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24030         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24031         pattern from *lshr{di,ti}3_1 and corresponding splitters using
24032         DWI mode iterator.
24033         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24034         from corresponding peephole2 patterns.
24035         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
24036         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
24037         and *lshrdi3_1_rex64 using SWI mode iterator.
24038         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
24039         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
24040         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
24041         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
24042         and *lshrdi3_cmp_rex64 using SWI mode iterator.
24043         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
24044         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
24045         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
24046         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
24047         SWI mode iterator.
24048
24049 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
24050
24051         * config/i386/i386.md (ashr<mode>3): Macroize expander from
24052         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24053         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24054         pattern from *ashr{di,ti}3_1 and corresponding splitters using
24055         DWI mode iterator.
24056         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24057         from corresponding peephole2 patterns.
24058         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
24059         (ashrsi3_cvt): Rename from ashrsi3_31.
24060         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
24061         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
24062         and x86_64_shift_adj_3 using SWI48 mode iterator.
24063         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
24064         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
24065         and *ashrdi3_1_rex64 using SWI mode iterator.
24066         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
24067         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
24068         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
24069         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
24070         and *ashrdi3_cmp_rex64 using SWI mode iterator.
24071         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
24072         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
24073         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
24074         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
24075         SWI mode iterator.
24076         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
24077         * config/i386/i386.c (ix86_split_ashr): Update for renamed
24078         x86_shift<mode>_adj_3 expanders.
24079
24080 2010-04-10  Wei Guozhi  <carrot@google.com>
24081
24082         PR target/42601
24083         * config/arm/arm.c (arm_pic_static_addr): New function.
24084         (legitimize_pic_address): Call arm_pic_static_addr when it detects
24085         a static symbol.
24086         (arm_output_addr_const_extra): Output expression for new pattern.
24087         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
24088
24089 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
24090
24091         * ira-costs.c (record_reg_classes): Ignore alternatives that are
24092         not enabled.
24093
24094         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
24095         * web.c: Include "insn-config.h" and "recog.h".
24096         (union_match_dups): New function.
24097         (web_main): Call it.
24098         (union_defs): Don't try to recognize match_dups.
24099
24100         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
24101         if doing so would replace the entire pattern.
24102
24103 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24104
24105         PR target/43707
24106         PR target/43709
24107         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
24108         and splitter pattern.  Change splitter operand 1 predicate to
24109         nonmemory_operand.
24110
24111 2010-04-09  Martin Jambor  <mjambor@suse.cz>
24112
24113         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
24114         lattices are addresses of CONST_DECLs with the same initial value.
24115         (ipcp_print_all_lattices): Print values of CONST_DECLs.
24116         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
24117
24118 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
24119             Bernd Schmidt  <bernds@codesourcery.com>
24120
24121         * loop-invariant.c (replace_uses): New static function.
24122         (move_invariant_reg): Use it to ensure we can replace the uses.
24123
24124 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
24125
24126         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
24127         function template.
24128         (picochip_override_options): Enable section anchors only above -O1.
24129         (picochip_reorg): Fixed a couple of build warnings.
24130
24131 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24132
24133         * configure.ac (plugin -rdynamic test): Log result.
24134         * configure: Regenerate.
24135         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
24136         (RDYNAMIC_SPEC): Define.
24137         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
24138
24139 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24140
24141         * configure.ac: Determine Sun ld version numbers.
24142         (comdat_group): Restrict GNU ld version checks to gld.
24143         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
24144         (enable_comdat): Support --enable-comdat.
24145         * configure: Regenerate.
24146         * doc/install.texi (Configuration): Document --enable-comdat.
24147
24148 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24149
24150         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
24151         * config/sol2-gld.h: ... here.
24152         * config.gcc (sparc*-*-solaris2*): Reflect this.
24153         (i[34567]86-*-solaris2*): Use it.
24154
24155 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
24156
24157         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
24158         setup_clocks_p.
24159         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
24160
24161 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24162
24163         PR 42965
24164         * diagnostic.c (diagnostic_initialize): Initialize
24165         some_warnings_are_errors.
24166         (diagnostic_finish): New.
24167         (diagnostic_action_after_output): Call it before exiting.
24168         (diagnostic_report_diagnostic): Do not print message here. Set
24169         some_warnings_are_errors.
24170         * diagnostic.h (diagnostic_context): Delete
24171         issue_warnings_are_errors_message. Add some_warnings_are_errors.
24172         (diagnostic_finish): Declare.
24173         * toplev.c (toplev_main): Call it before exit.
24174
24175 2010-04-09  Jason Merrill  <jason@redhat.com>
24176
24177         PR c++/42623
24178         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
24179         for incomplete type.
24180
24181         PR c++/41788
24182         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
24183         based on a warning flag.
24184
24185 2010-04-09  Richard Guenther  <rguenther@suse.de>
24186
24187         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
24188
24189 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
24190
24191         PR bootstrap/43684
24192         * varasm.c (default_assemble_visibility): Wrap vars that are
24193         set, but unused, by targets without GAS.
24194         * config/rs6000/rs6000.c (paired_emit_vector_compare):
24195         Remove set, but unused, vars.
24196         (rs6000_legitimize_tls_address): Likewise.
24197         (altivec_expand_dst_builtin): Likewise.
24198         * config/darwin.c (machopic_classify_symbol): Likewise.
24199         (machopic_indirection_name): Likewise.
24200
24201 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24202
24203         * config/i386/i386.md (DWI): New mode iterator.
24204         (S): New mode attribute.
24205         (shift_operand): Ditto.
24206         (shift_immediate_operand): Ditto.
24207         (ashl_input_operand): Ditto.
24208         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
24209         using SDWIM mode iterator.
24210         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24211         pattern from *ashl{di,ti}3_1 and corresponding splitters using
24212         DWI mode iterator.
24213         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
24214         from corresponding peephole2 patterns.
24215         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
24216         and x86_64_shift_adj_1 using SWI48 mode iterator.
24217         (x86_shift<mode>_adj_2): Ditto.
24218         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
24219         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
24220         using SWI48 mode iterator.
24221         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
24222         *ashldi3_cmp_rex64 using SWI mode iterator.
24223         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
24224         *ashldi3_cconly_rex64 using SWI mode iterator.
24225         * config/i386/i386.c (ix86_split_ashl): Update for renamed
24226         x86_shift<mode>_adj_{1,2}.
24227         (ix86_split_ashr): Ditto.
24228         (ix86_split_lshr): Ditto.
24229
24230 2010-04-09  Richard Guenther  <rguenther@suse.de>
24231
24232         * target.h (builtin_conversion): Pass in input and output types.
24233         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
24234         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
24235         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
24236         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
24237
24238         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
24239         Handle AVX modes.
24240         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
24241
24242 2010-04-09  Richard Guenther  <rguenther@suse.de>
24243
24244         PR target/43152
24245         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
24246
24247 2010-04-09  Richard Guenther  <rguenther@suse.de>
24248
24249         * tree-vectorizer.h (struct _stmt_vec_info): Document
24250         that vectype is the type of the LHS.
24251         (supportable_widening_operation, supportable_narrowing_operation):
24252         Get both input and output vector types as arguments.
24253         (vect_is_simple_use_1): Declare.
24254         (get_same_sized_vectype): Likewise.
24255         * tree-vect-loop.c (vect_determine_vectorization_factor):
24256         Set STMT_VINFO_VECTYPE to the vector type of the def.
24257         (vectorizable_reduction): Adjust.
24258         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
24259         Adjust.  Specify the output vector type.
24260         (vect_pattern_recog_1): Adjust.
24261         * tree-vect-stmts.c (get_same_sized_vectype): New function.
24262         (vectorizable_call): Adjust.
24263         (vectorizable_conversion): Likewise.
24264         (vectorizable_operation): Likewise.
24265         (vectorizable_type_demotion): Likewise.
24266         (vectorizable_type_promotion): Likewise.
24267         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
24268         the def.
24269         (vect_is_simple_use_1): New function.
24270         (supportable_widening_operation): Get both input and output
24271         vector types.
24272         (supportable_narrowing_operation): Likewise.
24273         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
24274
24275 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
24276
24277         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
24278         __thiscall and _thiscall as predefined macros.
24279         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
24280         thiscall attribute handling.
24281         (ix86_comp_type_attributes): Likewise.
24282         (ix86_function_regparm): Likewise.
24283         (ix86_return_pops_args): Likewise.
24284         (init_cumulative_args): Likewise.
24285         (find_drap_reg): Likewise.
24286         (ix86_static_chain): Likewise.
24287         (x86_this_parameter): Likewise.
24288         (x86_output_mi_thunk): Likewise.
24289         (ix86_attribute_table): Add description for thiscall attribute.
24290         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
24291         * doc/extend.texi: Add documentation for thiscall.
24292
24293 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24294
24295         PR c++/28584
24296         * c.opt (Wint-to-pointer-cast): Available in C++.
24297         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
24298
24299 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
24300
24301         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
24302         * calls.c (expand_call): Pass the function type to aggregate_value_p.
24303         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
24304         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
24305         function type instead.  Reorder and simplify checks.
24306
24307         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
24308
24309 2010-04-08  Jing Yu  <jingyu@google.com>
24310             Zdenek Dvorak  <ook@ucw.cz>
24311
24312         PR tree-optimization/42720
24313         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
24314         loop unswitch conditions here from ...
24315         (tree_unswitch_single_loop): ... here.
24316
24317 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24318
24319         * tree-if-conv.c: Fix comments and simplify logic.
24320
24321 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24322
24323         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
24324         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
24325         (main_tree_if_conversion): Update call to tree_if_conversion.
24326
24327 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24328
24329         PR 42485
24330         * doc/invoke.texi (-b,-V): Delete.
24331         * doc/tm.texi: Do not mention -b.
24332         * gcc.c (display_help): Delete -b and -V.
24333         (process_command): Delete -b and -V.
24334         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
24335
24336 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
24337             Wolfgang Gellerich  <gellerich@de.ibm.com>
24338
24339         Implement target hook for loop unrolling
24340         * target.h (loop_unroll_adjust): Add a new target hook function.
24341         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
24342         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
24343         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
24344         (s390_loop_unroll_adjust): Implement the new target hook for s390.
24345         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
24346         target hook.
24347         (decide_unroll_stupid): Likewise.
24348
24349 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24350
24351         PR target/43643
24352         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
24353
24354 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24355
24356         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
24357         (Specific, *-*-solaris2*): Likewise.
24358         Don't prefer Sun as over GNU as.
24359
24360 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
24361
24362         * config/s390/s390.c (override_options): Adjust the z10 defaults
24363         for max-unroll-times, max-completely-peeled-insns
24364         and max-completely-peel-times.
24365
24366 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24367
24368         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
24369         instructions for z10.
24370         (s390_expand_setmem): Likewise.
24371         (s390_expand_cmpmem): Likewise.
24372
24373 2010-04-08  Richard Guenther  <rguenther@suse.de>
24374
24375         PR tree-optimization/43679
24376         * tree-ssa-pre.c (eliminate): Only propagate copies.
24377
24378 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24379
24380         PR bootstrap/43681
24381         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
24382         set but not used variable warning.
24383
24384 2010-04-08  Wei Guozhi  <carrot@google.com>
24385
24386         PR target/41653
24387         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
24388         (arm_size_rtx_costs): Call the new function when optimized for size.
24389
24390 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24391
24392         PR debug/43670
24393         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
24394         op0 is not a MEM, just return NULL instead of assertion
24395         failure.
24396         (discover_nonconstant_array_refs): Don't walk debug stmts.
24397
24398 2010-04-08  Doug Kwan  <dougkwan@google.com>
24399
24400         * configure.ac: Recognize gold and do not use its version number
24401         to test ld features.
24402         * configure: Regenerate.
24403
24404 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
24405
24406         PR middle-end/40815
24407         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
24408         (negate_value): Move code to push elements to broken_up_substracts ...
24409         (eliminate_plus_minus_pair): ... here.  Push operands that have no
24410         negative pair to plus_negates.
24411         (repropagate_negates, init_reassoc, fini_reassoc): Update.
24412
24413 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24414
24415         * doc/install.texi (Configuration): Move description of
24416         --enable-lto, --with-libelf*, --enable-gold from Java section to
24417         general section.
24418
24419         * doc/generic.texi (Working with declarations)
24420         (Function Properties, C and C++ Trees): Fix typos.
24421         * doc/sourcebuild.texi (Top Level): Likewise.
24422
24423 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24424
24425         PR c/18624
24426         * tree.h (DECL_READ_P): Define.
24427         (struct tree_decl_common): Add decl_read_flag.
24428         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
24429         a set but not used warning.
24430         (merge_decls): Merge DECL_READ_P flag.
24431         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
24432         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
24433         * c-common.c (handle_used_attribute, handle_unused_attribute):
24434         Likewise.
24435         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
24436         New prototypes.
24437         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
24438         New functions.
24439         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
24440         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
24441         c_parser_binary_expression, c_parser_cast_expression,
24442         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
24443         Call default_function_array_read_conversion instead of
24444         default_function_array_conversion where needed.
24445         (c_parser_unary_expression, c_parser_conditional_expression,
24446         c_parser_postfix_expression_after_primary, c_parser_initelt):
24447         Likewise.  Call mark_exp_read where needed.
24448         (c_parser_statement_after_labels, c_parser_asm_operands,
24449         c_parser_typeof_specifier, c_parser_sizeof_expression,
24450         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24451         where needed.
24452         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24453         New.
24454         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24455         (warn_unused_but_set_parameter): Default to warn_unused
24456         && extra_warnings.
24457         * doc/invoke.texi: Document -Wunused-but-set-variable and
24458         -Wunused-but-set-parameter.
24459
24460         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24461         used count variable.
24462         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24463         when operandN variables aren't used in the body of the expander
24464         or splitter.
24465         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24466         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24467         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24468         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24469         FOR_EACH_IMM_USE_ON_STMT): Likewise.
24470         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24471         * tree.c (PROCESS_ARG): Likewise.
24472
24473 2010-04-07  Simon Baldwin  <simonb@google.com>
24474
24475         * diagnostic.h (diagnostic_override_option_index): New macro to
24476         set a diagnostic's option_index.
24477         * c-tree.h (c_cpp_error): Add warning reason argument.
24478         * opts.c (_warning_as_error_callback): New.
24479         (register_warning_as_error_callback): Store callback for
24480         warnings enabled via enable_warning_as_error.
24481         (enable_warning_as_error): Call callback, minor code tidy.
24482         * opts.h (register_warning_as_error_callback): Declare.
24483         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24484         response to -Werror=.
24485         (c_common_init_options): Register warning_as_error_callback in opts.c.
24486         * common.opt: Add -Wno-cpp option.
24487         * c-common.c (struct reason_option_codes_t): Map cpp warning
24488         reason codes to gcc option indexes.
24489         * (c_option_controlling_cpp_error): New function, lookup the gcc
24490         option index for a cpp warning reason code.
24491         * (c_cpp_error): Add warning reason argument, call
24492         c_option_controlling_cpp_error for diagnostic_override_option_index.
24493         * doc/invoke.texi: Document -Wno-cpp.
24494
24495 2010-04-07  Richard Guenther  <rguenther@suse.de>
24496
24497         * ipa-reference.c (mark_load): Use get_base_address.
24498         (mark_store): Likewise.
24499
24500         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24501         inserting GIMPLE_NOPs into the IL.
24502         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24503         Explicitly strip handled components and indirect references.
24504
24505         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24506         folding address expressions.
24507         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24508         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24509         operand_equal_p to compare decls.
24510         (ptr_deref_may_alias_decl_p): Likewise.
24511         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24512         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24513         Handle reversed comparison ops.
24514         * tree-sra.c (asm_visit_addr): Use get_base_address.
24515         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24516         * ipa-reference.c (mark_address): Use get_base_address.
24517
24518 2010-04-07  Richard Guenther  <rguenther@suse.de>
24519
24520         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24521         Propagate constants everywhere.
24522
24523 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24524
24525         PR debug/43516
24526         * tree.c (MAX_INT_CACHED_PREC): Define.
24527         (nonstandard_integer_type_cache): New array.
24528         (build_nonstandard_integer_type): Cache results for precision
24529         <= MAX_INT_CACHED_PREC.
24530
24531 2010-04-07  Richard Guenther  <rguenther@suse.de>
24532
24533         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24534         -fargument-noalias-global, -fargument-noalias-anything): Remove.
24535         * common.opt: Likewise.
24536         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24537         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24538         (nonoverlapping_memrefs_p): Likewise.
24539         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24540         * opts.c (common_handle_option): Handle OPT_fargument_alias,
24541         OPT_fargument_noalias, OPT_fargument_noalias_anything and
24542         OPT_fargument_noalias_global for backward compatibility.
24543
24544 2010-04-07  Richard Guenther  <rguenther@suse.de>
24545
24546         PR tree-optimization/43270
24547         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24548         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24549         * tree-ssa-pre.c (phi_translate_1): Adjust.
24550         (fully_constant_expression): Split out vn_reference handling to ...
24551         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24552         Fold reads from constant strings.
24553         (vn_reference_lookup): Handle fully constant references.
24554         (vn_reference_lookup_pieces): Likewise.
24555         * Makefile.in (expmed.o-warn): Add -Wno-error.
24556
24557 2010-04-07  Martin Jambor  <mjambor@suse.cz>
24558
24559         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24560
24561 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
24562
24563         PR driver/41594
24564         * gcc.c: Add -static-libstdc++ to list of recognized options.
24565
24566 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24567
24568         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24569
24570 2010-04-07  Richard Guenther  <rguenther@suse.de>
24571
24572         PR middle-end/42617
24573         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24574         bases build simple mem attributes to retain points-to information.
24575
24576 2010-04-07  Richard Guenther  <rguenther@suse.de>
24577
24578         PR middle-end/42617
24579         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24580         preserve points-to related information.
24581
24582 2010-04-07  Richard Guenther  <rguenther@suse.de>
24583
24584         PR middle-end/42617
24585         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24586         discard plain indirect references.
24587         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24588         * tree.c (tree_nop_conversion): Likewise.
24589
24590 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
24591
24592         PR debug/43628
24593         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24594
24595 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
24596
24597         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24598         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24599
24600 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24601
24602         * tree-if-conv.c: Fix indentation and comments.
24603
24604 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24605
24606         * tree-if-conv.c: Sort static functions in topological order.
24607
24608 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24609
24610         * tree-if-conv.c: Fix indentation and comments.
24611
24612 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24613
24614         PR middle-end/43519
24615         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24616         lang_hooks.types.type_for_size instead of
24617         build_nonstandard_integer_type.
24618         When converting an unsigned type to signed, double its precision.
24619         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24620         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24621         (graphite_create_new_loop_guard): When ub + 1 wraps around,
24622         use lb <= ub.
24623
24624 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24625
24626         PR middle-end/43519
24627         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24628         POINTER_PLUS_EXPR for pointer types.
24629
24630 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24631
24632         PR middle-end/43519
24633         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24634         * graphite-clast-to-gimple.c: Include langhooks.h.
24635         (max_signed_precision_type): New.
24636         (max_precision_type): Takes two types as arguments.
24637         (precision_for_value): New.
24638         (precision_for_interval): New.
24639         (gcc_type_for_interval): New.
24640         (gcc_type_for_value): New.
24641         (gcc_type_for_clast_term): New.
24642         (gcc_type_for_clast_red): New.
24643         (gcc_type_for_clast_bin): New.
24644         (gcc_type_for_clast_expr): Split up into several functions.
24645         (gcc_type_for_clast_eq): Rewritten.
24646         (compute_bounds_for_level): New.
24647         (compute_type_for_level_1): New.
24648         (compute_type_for_level): New.
24649         (gcc_type_for_cloog_iv): Removed.
24650         (gcc_type_for_iv_of_clast_loop): Rewritten.
24651         (graphite_create_new_loop): Compute the lower and upper bound types
24652         with gcc_type_for_clast_expr.
24653         (graphite_create_new_loop_guard): Same.
24654         (find_cloog_iv_in_expr): Removed.
24655         (compute_cloog_iv_types_1): Removed.
24656         (compute_cloog_iv_types): Removed.
24657         (gloog): Do not call compute_cloog_iv_types.
24658         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24659         GBB_CLOOG_IV_TYPES.
24660         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24661         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24662         (GBB_CLOOG_IV_TYPES): Removed.
24663
24664 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24665
24666         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24667         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24668         (detect_commutative_reduction): Same.
24669
24670 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24671
24672         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24673         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
24674         argument.
24675         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24676         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24677         (rewrite_commutative_reductions_out_of_ssa): Same.
24678         * passes.c (execute_function_todo): Call verify_ssa for every pass
24679         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
24680         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24681         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24682         with an extra argument.
24683         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
24684         verify_ssa only when the extra argument is true.
24685         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24686         with an extra argument.
24687         (tree_transform_and_unroll_loop): Same.
24688
24689 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24690
24691         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24692         for all the passes of the LNO having LOOP_CLOSED_SSA.
24693         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24694         * tree-loop-distribution.c (pass_loop_distribution): Same.
24695         * tree-pass.h (TODO_verify_loops): Removed.
24696         * tree-ssa-loop.c (pass_tree_loop_init): Same.
24697         (pass_lim): Same.
24698         (pass_tree_unswitch): Same.
24699         (pass_predcom): Same.
24700         (pass_vectorize): Same.
24701         (pass_linear_transform): Same.
24702         (pass_graphite_transforms): Same.
24703         (pass_iv_canon): Same.
24704         (pass_complete_unroll): Same.
24705         (pass_complete_unrolli): Same.
24706         (pass_parallelize_loops): Same.
24707         (pass_loop_prefetch): Same.
24708         (pass_iv_optimize): Same.
24709
24710 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
24711
24712         PR middle-end/32824
24713         * passes.c (init_optimization_passes): Move pass_lim before
24714         pass_copy_prop and pass_dce_loop.
24715
24716 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24717
24718         PR target/43667
24719         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24720         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24721         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24722         MULTI_* defines for 4 argument vpermil2p* builtins.
24723
24724 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24725
24726         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24727         * config/i386/i386.c (x86_maybe_negate_const_int): New.
24728         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24729         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24730         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24731         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24732         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24733         Use x86_maybe_negate_const_int to output insn mnemonic.
24734         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
24735         check from instruction predicate.  Update comments.
24736         * config/i386/sync.md (sync_add<mode>): Use
24737         x86_maybe_negate_const_int to output insn mnemonic.
24738
24739 2010-04-06  Jan Hubicka  <jh@suse.cz>
24740
24741         PR tree-optimization/42906
24742         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24743         IGNORE_SELF argument.  Set visited_control_parents for fully
24744         processed BBs.
24745         (find_obviously_necessary_stmts): Update call of
24746         mark_control_dependent_edges_necessary.
24747         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
24748
24749 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24750
24751         * config/i386/i386.md: Remove comment about 'e' and 'E'
24752         operand modifier.
24753
24754 2010-04-06  Richard Guenther  <rguenther@suse.de>
24755
24756         PR tree-optimization/43627
24757         * tree-vrp.c (extract_range_from_unary_expr): Widenings
24758         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24759         not varying.
24760
24761 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24762
24763         * BASE-VER: Change to 4.6.0.
24764
24765         PR target/43638
24766         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24767         handling.
24768
24769 2010-04-06  Richard Guenther  <rguenther@suse.de>
24770
24771         PR middle-end/43661
24772         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24773
24774 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24775
24776         * doc/invoke.texi (Optimize Options): Document that LTO
24777         won't remove object access purely due to incompatible
24778         declarations.
24779
24780 2010-04-04  Matthias Klose  <doko@ubuntu.com>
24781
24782         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24783         Initialize variable.
24784
24785 2010-04-03  Richard Guenther  <rguenther@suse.de>
24786
24787         PR middle-end/42509
24788         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24789         require a non-NULL MEM_OFFSET.
24790
24791 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
24792
24793         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24794         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24795         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24796         config/alpha/predicates.md, config/arm/arm.md,
24797         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24798         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24799         config/darwin9.h, config/darwin.c, config/darwin.h,
24800         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24801         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24802         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24803         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24804         config/mips/mips.md, config/mn10300/mn10300.c,
24805         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24806         config/rs6000/aix.h, config/rs6000/dfp.md,
24807         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24808         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24809         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24810         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24811         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24812         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24813         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24814         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24815         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24816         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24817         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24818         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24819         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24820         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24821         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24822         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24823         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24824         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24825         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24826         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24827         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24828         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24829         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24830         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24831         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24832         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24833         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24834         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24835         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24836         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24837         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24838         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24839         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24840         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24841         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24842         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24843
24844 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24845
24846         PR other/43620
24847         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24848         * aclocal.m4: Regenerate.
24849
24850 2010-04-02  Richard Guenther  <rguenther@suse.de>
24851
24852         PR tree-optimization/43629
24853         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24854         if we have seen a constant value.
24855
24856 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24857
24858         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24859
24860 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24861
24862         PR target/43469
24863         * arm.c (legitimize_tls_address): Adjust call to
24864         gen_tls_load_dot_plus_four.
24865         (arm_note_pic_base): New function.
24866         (arm_cannot_copy_insn_p): Use it.
24867         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24868         constraint.
24869
24870 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24871
24872         PR bootstrap/43531
24873
24874         Revert:
24875         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24876
24877         * Makefile.in ($(out_object_file)): Depend on
24878         gt-$(basename $(notdir $(out_file))).h.
24879
24880 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24881
24882         * config.gcc (lm32-*-rtems*): Add t-lm32.
24883
24884 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24885
24886         * config.gcc: Add lm32-*-rtems*.
24887         * config/lm32/rtems.h: New file.
24888
24889 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24890
24891         PR target/42609
24892         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24893
24894 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24895
24896         * dwarf2out.c (output_compilation_unit_header): For
24897         -gdwarf-4 use version 4 instead of version 3.
24898         (output_line_info): For version 4 and above emit additional
24899         maximum ops per insn header field.
24900         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24901
24902         * dwarf2out.c (is_c_family, is_java): Remove.
24903         (lower_bound_default): New function.
24904         (add_bound_info, gen_descr_array_type_die): Use it.
24905
24906 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24907
24908         PR debug/43325
24909         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24910         re-declaration when it happens in a function.
24911
24912 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24913
24914         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24915         (cgraph_remove_function_insertion_hook): Same.
24916         (cgraph_call_function_insertion_hooks): Same.
24917
24918 2010-04-01  Richard Guenther  <rguenther@suse.de>
24919
24920         PR middle-end/43614
24921         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24922         and TREE_THIS_VOLATILE.
24923         (copy_ref_info): Likewise.
24924         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24925         * tree.c (build6_stat): Ignore side-effects of all but arg5
24926         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24927         TARGET_MEM_REF.
24928
24929 2010-04-01  Richard Guenther  <rguenther@suse.de>
24930
24931         PR tree-optimization/43607
24932         * ipa-type-escape.c (check_call): Do not access non-existing
24933         arguments.
24934
24935 2010-04-01  Richard Guenther  <rguenther@suse.de>
24936
24937         PR middle-end/43602
24938         Revert
24939         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24940                     Jack Howarth  <howarth@bromo.med.uc.edu>
24941
24942         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24943         variables TLS.
24944
24945 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24946
24947         * doc/install.texi (Prerequisites): Document libelf usability on
24948         IRIX 5/6 and Solaris 2.
24949         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24950         Update GNU as, GNU ld requirements.
24951         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24952         Document Sun Studio compiler download.
24953         Update and simplify as, ld recommendations.
24954         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24955
24956 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24957
24958         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24959         with_tune_32 to pentium4.
24960
24961 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24962
24963         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24964
24965 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24966
24967         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24968         obsoletion, removal.
24969         Update IDO URL.
24970         Document GNU as requirement.
24971         Update configure requirements.
24972         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24973         Recomment IRIX 6.5.18+.
24974         Document IDF/IDL requirement.
24975         Document GNU as requirement.
24976         Document GNU ld bootstrap failure.
24977         Remove freeware.sgi.com reference.
24978
24979 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24980
24981         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24982         UNIX V4.0, V5.0 obsoletion, removal.
24983         Remove --with-gc=simple reference.
24984         Update VM requirements during bootstrap.
24985         Remove -oldas bootstrap description.
24986         Update binutils reference.
24987         Remove comparison failure note.
24988
24989 2010-03-31  Richard Guenther  <rguenther@suse.de>
24990             Zdenek Dvorak  <ook@ucw.cz>
24991             Sebastian Pop  <sebastian.pop@amd.com>
24992
24993         PR middle-end/43464
24994         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24995         with multiple arguments.
24996         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24997
24998 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24999
25000         * graphite-dependences.c (print_pddr): Call print_pdr with an
25001         extra argument.
25002         * graphite-poly.c (debug_pdr): Add an extra argument for the
25003         verbosity level.
25004         (print_pdr): Same.
25005         (print_pbb_domain): Same.
25006         (print_pbb): Same.
25007         (print_scop_context): Same.
25008         (print_scop): Same.
25009         (print_cloog): Same.
25010         (debug_pbb_domain): Same.
25011         (debug_pbb): Same.
25012         (print_pdrs): Same.
25013         (debug_pdrs): Same.
25014         (debug_scop_context): Same.
25015         (debug_scop): Same.
25016         (debug_cloog): Same.
25017         (print_scop_params): Same.
25018         (debug_scop_params): Same.
25019         (print_iteration_domain): Same.
25020         (print_iteration_domains): Same.
25021         (debug_iteration_domain): Same.
25022         (debug_iteration_domains): Same.
25023         (print_scattering_function): Same.
25024         (print_scattering_functions): Same.
25025         (debug_scattering_function): Same.
25026         (debug_scattering_functions): Same.
25027         * graphite-poly.h (debug_pdr): Update declaration.
25028         (print_pdr): Same.
25029         (print_pbb_domain): Same.
25030         (print_pbb): Same.
25031         (print_scop_context): Same.
25032         (print_scop): Same.
25033         (print_cloog): Same.
25034         (debug_pbb_domain): Same.
25035         (debug_pbb): Same.
25036         (print_pdrs): Same.
25037         (debug_pdrs): Same.
25038         (debug_scop_context): Same.
25039         (debug_scop): Same.
25040         (debug_cloog): Same.
25041         (print_scop_params): Same.
25042         (debug_scop_params): Same.
25043         (print_iteration_domain): Same.
25044         (print_iteration_domains): Same.
25045         (debug_iteration_domain): Same.
25046         (debug_iteration_domains): Same.
25047         (print_scattering_function): Same.
25048         (print_scattering_functions): Same.
25049         (debug_scattering_function): Same.
25050         (debug_scattering_functions): Same.
25051
25052 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25053
25054         * graphite-poly.c (print_scattering_function_1): New.
25055         (print_scattering_function): Call it.
25056         (print_scop_params): Remove spaces at the end of lines.
25057         (print_cloog): New.
25058         (debug_cloog): New.
25059         * graphite-poly.h (print_cloog): Declared.
25060         (debug_cloog): Declared.
25061
25062 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25063
25064         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
25065         in loop->header.
25066         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
25067         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
25068         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
25069         to switch between adding the IV bump in loop->latch or in loop->header.
25070
25071 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25072
25073         * graphite-poly.c (print_scattering_function): Pretty print following
25074         the scoplib format.
25075         (print_pdr): Same.
25076         (print_pbb_domain): Same.
25077         (dump_gbb_cases): Same.
25078         (dump_gbb_conditions): Same.
25079         (print_pdrs): Same.
25080         (print_pbb): Same.
25081         (print_scop_params): Same.
25082         (print_scop_context): Same.
25083         (print_scop): Same.
25084         (print_pbb_body): New.
25085         (lst_indent_to): New.
25086         (print_lst): Start new lines with a #.
25087         * graphite-poly.h (pbb_bb): New.
25088         (pbb_index): Use pbb_bb.
25089         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
25090         disjuncts.
25091         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
25092
25093 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25094
25095         * dwarf2out.c (size_of_die): For -gdwarf-4 use
25096         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
25097         and 0 instead of 1 for dw_val_class_flag.
25098         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
25099         dw_val_class_range_list, dw_val_class_loc_list,
25100         dw_val_class_lineptr and dw_val_class_macptr, use
25101         DW_FORM_flag_present for dw_val_class_flag and
25102         DW_FORM_exprloc for dw_val_class_loc.
25103         (output_die): For -gdwarf-4 print dw_val_class_loc
25104         size as uleb128 instead of 1 or 2 bytes and don't print
25105         anything for dw_val_class_flag.
25106
25107         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
25108         instead of cselib_lookup following by tweaking locs->setting_insn.
25109
25110         PR bootstrap/43596
25111         * cselib.c (cselib_process_insn): Clear cselib_current_insn
25112         even before returning from label, setjmp call or volatile asm
25113         handling.
25114
25115 2010-03-31  Richard Guenther  <rguenther@suse.de>
25116
25117         PR middle-end/43600
25118         * cgraphunit.c (cgraph_output_in_order): Do not allocate
25119         temporary data on stack.
25120
25121 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25122
25123         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
25124         (PUSHSECTION_ASM_OP): Remove.
25125         (POPSECTION_ASM_OP): Remove.
25126         (PUSHSECTION_FORMAT): Remove.
25127         * config/sol2.h (PUSHSECTION_FORMAT): Define.
25128         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
25129         * config/sol2.c (solaris_output_init_fini): Use it.
25130
25131 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25132
25133         PR 43574
25134         * opt-functions.awk (var_type_struct): Use signed char type
25135         for simple variables.
25136
25137 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25138
25139         * config/sol2.c: Include output.h.
25140         (solaris_assemble_visibility): New function.
25141         * config/t-sol2 (sol2.o): Add output.h dependency.
25142         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
25143         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
25144         Redefine.
25145
25146 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25147
25148         PR target/43580
25149         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
25150         V2SImode or XFmode on PRE_DEC.
25151
25152         PR debug/43557
25153         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
25154         BLKmode.
25155
25156 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25157
25158         PR 43562
25159         * reload.h (caller_save_initialized_p): Declare.
25160         * toplev.c (backend_init_target): Don't call
25161         init_caller_save but set caller_save_initialized_p to false.
25162         * caller-save.c (caller_save_initialized_p): Define.
25163         (init_caller_save): Check caller_save_initialized_p.
25164         * ira.c (ira): Call init_caller_save if flag_caller_saves.
25165
25166 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25167
25168         PR target/39048
25169         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
25170         and soft-fp/t-softfp to tmake_file.
25171         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
25172         (LIBGCC2_TF_CEXT): Define.
25173         (TF_SIZE): Define.
25174
25175 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
25176
25177         PR debug/42977
25178         * cselib.c (n_useless_values): Document handling of debug locs.
25179         (n_useless_debug_values, n_debug_values): New variables.
25180         (new_elt_loc_list): Don't add to debug values, keep count.
25181         (promote_debug_loc): New.
25182         (cselib_reset_table): Zero new variables.
25183         (entry_and_rtx_equal_p): Promote debug locs.
25184         (discard_useless_locs): Increment n_useless_debug_values for
25185         debug values.
25186         (remove_useless_values): Adjust n_useless_values and n_debug_values
25187         with n_useless_debug_values.
25188         (add_mem_for_addr): Promote debug locs.
25189         (cselib_lookup_mem): Likewise.
25190         (cselib_lookup_addr): Renamed to...
25191         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
25192         (cselib_log_lookup): ... this.  Turn into...
25193         (cselib_lookup_addr): ... new wrapper.
25194         (cselib_lookup_from_insn): New.
25195         (cselib_invalidate_regno): Increment n_useless_debug_values for
25196         debug values.
25197         (cselib_invalidate_mem): Likewise.
25198         (cselib_process_insn): Take n_deleted and n_debug_values into
25199         account to guard remove_useless_value call.
25200         (cselib_finish): Zero n_useless_debug_values.
25201         * cselib.h (cselib_lookup_from_insn): Declare.
25202         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
25203         (sched_analyze_2): Likewise.
25204
25205 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
25206
25207         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
25208         functions.
25209         (adjust_mems): Replace narrowing SUBREG of expression containing
25210         just PLUS, MINUS, MULT and ASHIFT of registers and constants
25211         with operations in the narrower mode.
25212
25213         PR debug/43593
25214         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
25215         regs_invalidated_by_call instead all call_used_reg_set registers.
25216
25217 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
25218
25219         PR middle-end/43430
25220         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
25221         pointer comparisons with types_compatible_p.
25222         * tree-vect-stmts.c (vectorizable_call): Same.
25223         (vectorizable_condition): Same.
25224
25225 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25226
25227         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
25228         stack check if the mask would be zero.
25229
25230 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
25231             Jack Howarth  <howarth@bromo.med.uc.edu>
25232
25233         * tree-profile.c (tree_init_ic_make_global_vars): Make static
25234         variables TLS.
25235
25236 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
25237
25238         PR other/25232
25239         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
25240         and __unordtf2.
25241         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
25242         Include ___unordxf2 and ___unordtf2.
25243         * config/i386/libgcc-glibc.ver: Do not define inheritance from
25244         GCC_4.4.0 here.
25245
25246 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
25247
25248         * config/lm32/t-lm32: New file.
25249         * config.gcc: Use the above file when targetting lm32.
25250
25251 2010-03-28  Duncan Sands  <baldrick@free.fr>
25252
25253         * Makefile.in (PLUGIN_HEADERS): Add except.h.
25254
25255 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
25256
25257         PR middle-end/43431
25258         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
25259         Improve vectorization cost model diagnostic.
25260
25261 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
25262
25263         PR middle-end/43436
25264         * tree-vect-data-refs.c (vect_analyze_data_refs): When
25265         compute_data_dependences_for_loop returns false, early exit
25266         and output an extra diagnostic for the failed data reference
25267         analysis.
25268
25269 2010-03-29  Richard Guenther  <rguenther@suse.de>
25270
25271         PR tree-optimization/43560
25272         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
25273         (can_sm_ref_p): Treat stores to readonly locations as trapping.
25274
25275 2010-03-29  Jie Zhang  <jie@codesourcery.com>
25276
25277         PR 43564
25278         * toplev.c (process_options): Set optimization_default_node
25279         and optimization_current_node.
25280         * opts.c (decode_options): Don't set optimization_default_node
25281         and optimization_current_node.
25282
25283 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
25284
25285         * config/rtems.h: Abandon -qrtems_debug.
25286
25287 2010-03-28  Jan Hubicka  <jh@suse.cz>
25288
25289         PR tree-optimization/43505
25290         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
25291         map should not be copied.
25292
25293 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25294
25295         PR middle-end/41674
25296         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
25297         cdtors, set DECL_PRESERVE_P.
25298         * ipa.c (cgraph_externally_visible_p): Return true if declaration
25299         should be preseved.
25300
25301 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
25302
25303         PR tree-optimization/43528
25304         * stor-layout.c (place_field): Check that constant fits into
25305         unsigned HWI when skipping calculation of MS bitfield layout.
25306
25307 2010-03-27  Jan Hubicka  <jh@suse.cz>
25308
25309         PR middle-end/43391
25310         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
25311         notice_global_symbol work.
25312
25313 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
25314
25315         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
25316         instead of dwarf2out_decl.
25317         (struct var_loc_node): Remove section_label field.
25318         (dwarf2out_function_decl): New function.
25319         (dwarf2out_var_location): Don't set section_label field.
25320         (dwarf2out_begin_function): Don't empty decl_loc_table here.
25321
25322 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25323
25324         PR tree-optimization/43544
25325         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25326         First argument for builtin vectorized function hook is now a
25327         tree to be able to distinguish between machine specific and
25328         standard builtins.
25329         * targhooks.c (default_builtin_vectorized_function): Ditto.
25330         * targhooks.h (default_builtin_vectorized_function): Ditto.
25331         * target.h (struct gcc_target): Ditto.
25332         * tree-vect-stmts.c (vectorizable_function): Ditto.
25333         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
25334         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
25335         Ditto.
25336
25337 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
25338
25339         PR c/43381
25340         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
25341         nested binding iff it is a FUNCTION_DECL.
25342         (store_parm_decls_newstyle): Pass nested=true to bind for
25343         FUNCTION_DECLs amongst parameters.
25344
25345 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25346
25347         * var-tracking.c (vt_expand_loc_callback): Don't run
25348         cselib_expand_value_rtx_cb in dummy mode if
25349         cselib_dummy_expand_value_rtx_cb returned false.
25350
25351         * var-tracking.c (emit_note_insn_var_location): For one part
25352         notes with offset 0, don't add EXPR_LIST around the location.
25353         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
25354         add_location_or_const_value_attribute): Adjust for that change.
25355
25356         PR debug/43540
25357         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
25358         into first operand and location into second.
25359         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
25360         dw_cfi_oprnd_loc for DW_CFA_expression.
25361         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
25362         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
25363         assume first argument is regnum and second argument is location.
25364
25365 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25366
25367         PR target/42113
25368         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
25369         of scratch register to DImode.  Split to DImode comparison operator.
25370         Use SImode subreg of scratch register in the multiplication.
25371         (*cmp_sadd_sidi): Ditto.
25372         (*cmp_ssub_si): Ditto.
25373         (*cmp_ssub_sidi): Ditto.
25374
25375 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25376
25377         PR target/43524
25378         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
25379         Remove invalid assert and wrong comment.
25380
25381 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25382
25383         PR debug/43516
25384         * flags.h (final_insns_dump_p): New extern.
25385         * final.c (final_insns_dump_p): New variable.
25386         (rest_of_clean_state): Set it before -fdump-final-insns=
25387         dumping, clear afterwards.
25388         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
25389         MEM_ALIAS_SET on MEMs.
25390
25391 2010-03-26  David S. Miller  <davem@davemloft.net>
25392
25393         * configure.ac: Fix sparc GOTDATA_OP bug check.
25394         * configure: Rebuild.
25395
25396 2010-03-26  Alan Modra  <amodra@gmail.com>
25397
25398         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
25399
25400 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25401
25402         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
25403         TLS_SECTION_ASM_FLAG.
25404
25405 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
25406
25407         PR bootstrap/43511
25408         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
25409         Clear first_function_block_is_cold.
25410
25411         PR c/43385
25412         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
25413         argument if the argument is truth_value_p.
25414
25415 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25416
25417         * config/rs6000/constraints.md: Update copyright year for my changes.
25418
25419         PR target/43484
25420         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
25421         used in reg+reg addressing, swap registers.
25422
25423 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25424
25425         PR debug/43293
25426         * target.h (struct gcc_target): Add code_end hook.
25427         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
25428         if not yet defined.
25429         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
25430         * toplev.c (compile_file): Call targetm.asm_out.code_end
25431         hook before unwind info/debug info output.
25432         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
25433         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
25434         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25435         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
25436         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25437         * config/i386/i386.c (ix86_file_end): Renamed to...
25438         (ix86_code_end): ... this.  Make static.  Don't call
25439         file_end_indicate_exec_stack.  Emit unwind info using
25440         final_start_function/final_end_function.
25441         (darwin_x86_file_end): Remove.
25442         (TARGET_ASM_CODE_END): Define.
25443         * config/i386/i386.h (TARGET_ASM_FILE_END,
25444         NEED_INDICATE_EXEC_STACK): Don't define.
25445         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25446         (TARGET_ASM_FILE_END): Define to darwin_file_end.
25447         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25448         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25449
25450         PR target/43498
25451         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25452         at the beginning and final_end_function at the end.
25453         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25454
25455 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25456
25457         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25458         and Sun as TLS syntax.
25459         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25460         * configure: Regenerate.
25461         * config.in: Regenerate.
25462         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25463         (default_elf_asm_named_section): Use it.
25464         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25465         (i386_output_dwarf_dtprel): Likewise.
25466         (output_addr_const_extra): Likewise.
25467         (output_pic_addr_const): Lowercase @GOTTPOFF.
25468         (output_addr_const_extra): Likewise.
25469         (output_pic_addr_const): Lowercase @GOTNTPOFF.
25470         (output_addr_const_extra): Likewise.
25471         (output_pic_addr_const): Lowercase @INDNTPOFF.
25472         (output_addr_const_extra): Likewise.
25473         (output_pic_addr_const): Lowercase @NTPOFF.
25474         (output_addr_const_extra): Likewise.
25475         (output_pic_addr_const): Lowercase @TPOFF.
25476         (output_addr_const_extra): Likewise.
25477         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25478         (*tls_global_dynamic_64): Likewise.
25479         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25480         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25481
25482         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25483         (ASM_OUTPUT_TLS_COMMON): Use it.
25484         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25485
25486         PR target/38118
25487         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25488         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25489         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25490         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25491         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25492         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25493
25494 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25495
25496         * config/i386/i386.c (override_options): Don't accept
25497         -mtls-dialect=sun any longer.
25498         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25499         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25500         (*tls_local_dynamic_base_32_sun): Likewise.
25501         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25502
25503 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25504
25505         PR debug/43508
25506         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25507         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25508
25509         PR debug/43479
25510         * ira.c (adjust_cleared_regs): New function.
25511         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25512
25513         PR debug/19192
25514         PR debug/43479
25515         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25516         from gimple_block.
25517         * expr.c (expand_expr_real): Restore previous
25518         curr_insn_source_location and curr_insn_block after
25519         expand_expr_real_1 call.
25520         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25521         instead of expand_expr_real_1.
25522
25523 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
25524
25525         PR rtl-optimization/43413
25526         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25527         hard regs too.
25528
25529 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
25530
25531         PR target/43348
25532         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25533         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25534
25535 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25536
25537         * config/i386/i386.c (ix86_target_string): Add -mfma.
25538         Fix a typo in comment.
25539
25540 2010-03-22  Mike Stump  <mikestump@comcast.net>
25541
25542         PR target/23071
25543         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25544         Don't overly align based upon packed packed fields.
25545
25546 2010-03-22  Jason Merrill  <jason@redhat.com>
25547
25548         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25549         Use () rather than [], and move before the element type.
25550
25551 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25552
25553         * doc/configfiles.texi (Configuration Files): Removed
25554         fixinc/Makefile*, intl/Makefile.*.
25555         * doc/makefile.texi: Fixed markup. Abstract from version
25556         control system used.
25557         (Makefile): Removed obsolete java/parse.y example.
25558         * doc/sourcebuild.texi: Likewise.
25559         (Top Level): Added config, gnattools, libdecnumber, libgcc,
25560         libgomp, libssp.  Removed fastjar.
25561         (Miscellaneous Docs): Clarify location.
25562         Added COPYING3, COPYING3.LIB.
25563         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25564
25565 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25566
25567         PR target/38085
25568         * config/i386/i386.c (x86_function_profiler)
25569         [!NO_PROFILE_COUNTERS]: Fix typo.
25570         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25571         instead of callq.
25572
25573 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
25574             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25575
25576         * doc/sourcebuild.texi (Test Directives): Split into six
25577         subsections, with most of the current text in new subsections
25578         Directives, Selectors, and Final Actions.
25579         (Directives): Split list of test directives into multiple
25580         subsubsections.
25581         (Selectors): Describe use and syntax of selectors.
25582         (Effective-Target Keywords): Describe all existing keywords.
25583         (Add Options): Describe features for dg-add-options.
25584         (Require Support): Describe variants of dg-require-support.
25585         (Final Actions): Describe commands to use in dg-final.
25586
25587 2010-03-22  Michael Matz  <matz@suse.de>
25588
25589         PR middle-end/43475
25590         * recog.c (validate_replace_rtx_group): Replace also in
25591         REG_EQUAL and REG_EQUIV notes.
25592
25593 2010-03-22  Richard Guenther  <rguenther@suse.de>
25594
25595         PR tree-optimization/43390
25596         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25597         sure vector extracts are type correct.
25598
25599 2010-03-22  Richard Guenther  <rguenther@suse.de>
25600
25601         PR middle-end/40106
25602         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25603         x * sqrt (x) even when optimizing for size if the target
25604         has native support for sqrt.
25605
25606 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
25607
25608         * varasm.c (make_decl_rtl_for_debug): Also clear
25609         flag_mudflap for the duration of make_decl_rtl call.
25610
25611         PR debug/43443
25612         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25613         locs from preserved VALUEs.
25614
25615 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25616
25617         PR middle-end/42718
25618         * pa.md (movmemsi): Set align to one if zero.
25619         (movmemdi): Likewise.
25620
25621 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
25622
25623         PR target/42321
25624         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25625         with their corresponding prologue pushes.
25626
25627 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
25628
25629         PR target/43156
25630         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25631         at the begining or end.
25632         (spu_expand_epilogue): Likewise.
25633
25634 2010-03-20  Richard Guenther  <rguenther@suse.de>
25635
25636         PR rtl-optimization/43438
25637         * combine.c (make_extraction): Properly zero-/sign-extend an
25638         extraction of the low part of a CONST_INT.  Also handle
25639         CONST_DOUBLE.
25640
25641 2010-03-19  Mike Stump  <mikestump@comcast.net>
25642
25643         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25644         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25645         (override_options): Use SUBTARGET32_DEFAULT_CPU.
25646
25647 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25648
25649         PR c/43211
25650         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25651         an error.
25652
25653 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
25654
25655         PR rtl-optimization/42258
25656         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25657         use that may match DEF.
25658
25659         PR target/40697
25660         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25661         the cost of loading the constant rather than assuming
25662         COSTS_N_INSNS (1).
25663         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25664         outer code is AND, do the same tests as the andsi3 expander and
25665         return COSTS_N_INSNS (1) if and is cheap.
25666
25667         * optabs.c (avoid_expensive_constant): Fix formatting.
25668
25669 2010-03-19  Michael Matz  <matz@suse.de>
25670
25671         PR c++/43116
25672         * attribs.c (decl_attributes): When rebuilding a function pointer
25673         type use the same qualifiers as the original pointer type.
25674
25675 2010-03-19  Martin Jambor  <mjambor@suse.cz>
25676
25677         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25678         and is_gimple_ip_invariant_address.
25679
25680 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25681
25682         Revert
25683         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25684
25685         * config/arm/arm.c (arm_override_options): Turn off
25686         flag_dwarf2_cfi_asm for AAPCS variants.
25687
25688 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25689
25690         PR target/43399
25691         * config/arm/arm.c (emit_multi_reg_push): Update comments.
25692         Use PRE_MODIFY instead of PRE_DEC.
25693         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25694         (vfp_emit_fstmd): Likewise.
25695
25696 2010-03-19  Michael Matz  <matz@suse.de>
25697
25698         PR target/43305
25699         * builtins.c (expand_builtin_interclass_mathfn,
25700         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25701         if that fails.
25702
25703 2010-03-19  Richard Guenther  <rguenther@suse.de>
25704
25705         PR tree-optimization/43415
25706         * tree-ssa-pre.c (phi_translate): Split out worker to ...
25707         (phi_translate_1): ... this.
25708         (phi_translate): Move all caching here.  Cache all NARY
25709         and REFERENCE translations.
25710
25711 2010-03-19  David S. Miller  <davem@davemloft.net>
25712
25713         With help from Eric Botcazou.
25714         * config/sparc/sparc.c: Include dwarf2out.h.
25715         (emit_pic_helper): Delete.
25716         (pic_helper_symbol_name): Delete.
25717         (pic_helper_emitted_p): Delete.
25718         (pic_helper_needed): New.
25719         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25720         (get_pc_thunk_name): New.
25721         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
25722         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25723         Set pic_helper_needed to true.  Don't call emit_pic_helper.
25724         (sparc_expand_prologue): Update load_pic_register call.
25725         (sparc_output_mi_thunk): Likewise.
25726         (sparc_file_end): Emit a hidden comdat symbol for the PIC
25727         thunk if possible.  Output CFI information as needed.
25728
25729 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25730             Jack Howarth  <howarth@bromo.med.uc.edu>
25731
25732         PR target/36399
25733         * config/i386/i386.h: Fix ABI on darwin x86-32.
25734
25735 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
25736
25737         * tree.h: Declare make_decl_rtl_for_debug.
25738         * varasm.c (make_decl_rtl_for_debug): New.
25739         * dwarf2out.c (rtl_for_decl_location): Call it.
25740         * cfgexpand.c (expand_debug_expr): Call it.
25741
25742 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25743
25744         PR bootstrap/43399
25745         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25746         mem_mode.
25747
25748         PR bootstrap/43403
25749         * var-tracking.c (vt_init_cfa_base): Do nothing if
25750         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25751
25752 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
25753
25754         PR debug/42873
25755         * var-tracking.c (canonicalize_vars_star): New.
25756         (dataflow_post_merge_adjust): Use it.
25757
25758 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25759
25760         PR debug/43058
25761         * var-tracking.c (non_suitable_const): New function.
25762         (add_uses): For DEBUG_INSNs with constants, don't record any
25763         value, instead just the constant value itself.
25764         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25765         is not VAR_LOC_UNKNOWN_P, set var to the constant.
25766         (emit_notes_in_bb): Likewise.
25767         (emit_note_insn_var_location): For onepart variables if
25768         cur_loc is a VOIDmode constant, use DECL_MODE.
25769
25770 2010-03-18  Martin Jambor  <mjambor@suse.cz>
25771
25772         PR middle-end/42450
25773         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25774         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25775         all non-clones.  Moved call redirection...
25776         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25777         (cgraph_materialize_all_clones): Dispose of all
25778         combined_args_to_skip bitmaps.
25779         (verify_cgraph_node): Do not check for edges pointing to wrong
25780         nodes in inline clones.
25781         * tree-inline.c (copy_bb): Call
25782         cgraph_redirect_edge_call_stmt_to_callee.
25783         * ipa.c (cgraph_remove_unreachable_nodes): Call
25784         cgraph_node_remove_callees even when there are used clones.
25785
25786 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25787
25788         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25789
25790 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25791
25792         PR target/43383
25793         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25794         for 32bit.
25795
25796 2010-03-18  Michael Matz  <matz@suse.de>
25797
25798         PR middle-end/43419
25799         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25800         into sqrt(x) if we need to preserve signed zeros.
25801
25802 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
25803             Eric Botcazou  <ebotcazou@adacore.com>
25804
25805         PR rtl-optimization/43360
25806         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25807         note if we don't know its invariant status.
25808
25809 2010-03-18  Michael Matz  <matz@suse.de>
25810
25811         PR tree-optimization/43402
25812         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25813         PHI chains of ssa names registered for update.
25814
25815 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
25816
25817         PR target/42427
25818         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25819         non-offsettable and pre_modify update addressing.
25820         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25821         and "2" alternatives "#".
25822         (*movdd_softfloat32): Make all alternatives "#";
25823         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25824         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25825         (*movdf_softfloat32): Make all alternatives "#";
25826         (movdi): Use the new DIFD mode iterator to create a common splitter
25827         for movdi, movdf and movdd patterns.
25828
25829 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25830
25831         * common.opt (dumpdir): Remove redundant tab.
25832
25833 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25834
25835         PR tree-optimization/43347
25836         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25837         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25838
25839 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25840
25841         PR rtl-optimization/42216
25842         * regrename.c (create_new_chain): New function, broken out from...
25843         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25844         appending a use to an empty chain.
25845         (build_def_use): Remove previous changes that convert OP_INOUT to
25846         OP_OUT operands; instead detect the case where an OP_INOUT operand
25847         uses a previously untracked register and create an empty chain for it.
25848
25849 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25850
25851         * doc/extend.texi (Function Attributes): Rewrite unfinished
25852         sentence in ms_abi documentation.
25853
25854 2010-03-17  Alan Modra  <amodra@gmail.com>
25855
25856         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25857         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25858         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25859         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25860
25861 2010-03-16  Richard Henderson  <rth@redhat.com>
25862
25863         PR middle-end/43365
25864         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25865         (lower_try_finally): Save and restore eh_seq around the expansion
25866         of the try-finally.
25867
25868 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25869
25870         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25871         statements before splitting block.
25872
25873 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25874
25875         * doc/sourcebuild.texi (Testsuites): Fix markup.
25876         Use pathnames relative to gcc/testsuite.
25877         (Test Directives): Move description of how timeout is determined.
25878         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25879         (C Tests): Correct gcc.misc-tests directory.
25880         Framework tests now live in gcc.test-framework.
25881
25882 2010-03-16  Richard Guenther  <rguenther@suse.de>
25883
25884         PR middle-end/43379
25885         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25886         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25887
25888 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25889             Alexandre Oliva  <aoliva@redhat.com>
25890
25891         PR tree-optimization/42917
25892         * lambda-code.c (remove_iv): Skip debug statements.
25893         (lambda_loopnest_to_gcc_loopnest): Likewise.
25894         (not_interesting_stmt): Debug statements are not interesting.
25895
25896 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25897
25898         PR debug/43051
25899         PR debug/43092
25900         * cselib.c (cselib_preserve_constants,
25901         cfa_base_preserved_val): New static variables.
25902         (preserve_only_constants): New function.
25903         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25904         clear its REG_VALUES.  If cselib_preserve_constants, don't
25905         empty the whole hash table, but preserve there VALUEs with constants,
25906         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25907         (cselib_preserve_cfa_base_value): New function.
25908         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25909         (cselib_init): Change argument to int bitfield.  Set
25910         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25911         is in it.
25912         (cselib_finish): Clear cselib_preserve_constants and
25913         cfa_base_preserved_val.
25914         * cselib.h (enum cselib_record_what): New enum.
25915         (cselib_init): Change argument to int.
25916         (cselib_preserve_cfa_base_value): New prototype.
25917         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25918         * dse.c (dse_step1): Likewise.
25919         * cfgcleanup.c (thread_jump): Likewise.
25920         * sched-deps.c (sched_analyze): Likewise.
25921         * gcse.c (local_cprop_pass): Likewise.
25922         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25923         If FN is non-NULL, call the callback always and whenever it returns
25924         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25925         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25926         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25927         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25928         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25929         * var-tracking.c: Include recog.h.
25930         (bb_stack_adjust_offset): Remove.
25931         (vt_stack_adjustments): Don't call it, instead just gather the
25932         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25933         (adjust_stack_reference): Remove.
25934         (compute_cfa_pointer): New function.
25935         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25936         (struct adjust_mem_data): New type.
25937         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25938         functions.
25939         (get_address_mode): New function.
25940         (replace_expr_with_values): Use it.
25941         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25942         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25943         (adjust_sets): Remove.
25944         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25945         Use get_address_mode.
25946         (get_adjusted_src): Remove.
25947         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25948         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25949         (add_with_sets): Don't call adjust_sets.
25950         (fp_setter, vt_init_cfa_base): New functions.
25951         (vt_initialize): Change return type to bool.  Move most of pool etc.
25952         initialization to the beginning of the function from end.  Pass
25953         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25954         If !frame_pointer_needed, call vt_stack_adjustment before mos
25955         vector is filled, call vt_init_cfa_base if argp/framep has been
25956         eliminated to sp.  If frame_pointer_needed and argp/framep has
25957         been eliminated to hard frame pointer, set
25958         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25959         encountering fp setter in the prologue.  For MO_ADJUST, call
25960         log_op_type before pusing the op into mos vector, not afterwards.
25961         Call adjust_insn before cselib_process_insn/add_with_sets,
25962         call cancel_changes (0) afterwards.
25963         (variable_tracking_main_1): Adjust for vt_initialize calling
25964         vt_stack_adjustments and returning whether it succeeded or not.
25965
25966 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25967
25968         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25969         debug statements.
25970
25971 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25972
25973         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25974         has been set.
25975         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25976         drap_reg has not been set.
25977
25978 2010-03-15  Michael Matz  <matz@suse.de>
25979
25980         PR middle-end/43300
25981         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25982         use it to expand block copies.
25983         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25984         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25985         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25986
25987 2010-03-15  Richard Guenther  <rguenther@suse.de>
25988
25989         PR tree-optimization/43367
25990         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25991         elimination check.
25992
25993 2010-03-15  Richard Guenther  <rguenther@suse.de>
25994
25995         PR tree-optimization/43317
25996         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25997
25998 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25999
26000         PR tree-optimization/43141
26001         * tree-sra.c (create_abstract_origin): New function.
26002         (modify_function): Call create_abstract_origin.
26003
26004 2010-03-15  Chris Demetriou  <cgd@google.com>
26005
26006         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
26007         wasn't copied.
26008
26009 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26010
26011         PR middle-end/43354
26012         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
26013         call insert_out_of_ssa_copy for default definitions.
26014
26015 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26016
26017         * graphite-clast-to-gimple.c (my_long_long): Defined.
26018         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
26019         * graphite-sese-to-poly.c (my_long_long): Defined.
26020         (scop_ivs_can_be_represented): Use it.
26021
26022 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26023
26024         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
26025         graphite-max-bbs-per-function, and loop-block-tile-size.
26026         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
26027         with "maximum".
26028         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
26029
26030 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26031
26032         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
26033         forward declaration.
26034         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
26035         (add_upper_bounds_from_estimated_nit): New.
26036         (build_loop_iteration_domains): Use it.
26037
26038 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26039
26040         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
26041
26042 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26043
26044         PR middle-end/43306
26045         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
26046         should be an INTEGER_CST.  Also handle CASE_CONVERT.
26047
26048 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26049
26050         * graphite.c (graphite_initialize): To bound the number of bbs per
26051         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
26052         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
26053         * doc/invoke.texi: Document it.
26054
26055 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26056
26057         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
26058         * graphite-sese-to-poly.h (build_poly_scop): Same.
26059
26060 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26061
26062         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
26063         the number of parameters in the scop.  Use as an upper bound
26064         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
26065         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
26066         * doc/invoke.texi: Document it.
26067
26068 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
26069
26070         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
26071         * doc/c-tree.texi: Remove.
26072         * doc/generic.texi: Merge c-tree.texi here.
26073         * doc/gccint.texi (Trees): Remove menu entry.
26074         (c-tree.texi): Remove @include.
26075         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
26076         * doc/languages.texi (Reading RTL): Ditto.
26077
26078 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
26079
26080         PR target/42869
26081         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
26082
26083 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26084
26085         PR middle-end/42431
26086         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
26087         code added to work around reload clobbering CONST insns.
26088
26089 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
26090
26091         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
26092         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
26093         (cselib_preserve_only_values): Remove retain argument, don't
26094         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
26095         * cselib.h (cselib_preserve_only_values): Remove retain argument.
26096         * var-tracking.c (micro_operation): Move insn field before union.
26097         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
26098         (struct variable_tracking_info_def): Remove n_mos field, change
26099         mos into a vector of micro_operations.
26100         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
26101         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
26102         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
26103         changing into a vector.
26104         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
26105         come before all other uops generated by add_stores.
26106         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
26107         argument removal.
26108         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
26109         a vector.  Run just one pass over the bbs instead of separate counting
26110         and computation phase.
26111         (vt_finalize): Free VTI (bb)->mos vector instead of array.
26112
26113         PR debug/43329
26114         * tree-inline.c (remap_decls): Put old_var rather than origin_var
26115         into *nonlocalized_list vector.
26116         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
26117         even if origin is non-NULL.
26118         (gen_variable_die): Likewise.
26119         (process_scope_var): Don't change origin.
26120         (gen_decl_die): Likewise.
26121         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
26122         before adding new edges instead of after it, fix moving over
26123         debug stmts.
26124
26125 2010-03-11  David S. Miller  <davem@davemloft.net>
26126
26127         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
26128         of four.
26129         * configure: Rebuild.
26130
26131 2010-03-11  Martin Jambor  <mjambor@suse.cz>
26132
26133         PR tree-optimization/43257
26134         * tree.c (assign_assembler_name_if_neeeded): New function.
26135         (free_lang_data_in_cgraph): Assembler name assignment moved to the
26136         above new function.
26137         * tree.h (assign_assembler_name_if_neeeded): Declare.
26138         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
26139         the function if needed.
26140
26141 2010-03-11  Chris Demetriou  <cgd@google.com>
26142
26143         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
26144         include/stdint-gcc.h, and include/stdint.h world-readable.
26145
26146 2010-03-11  Richard Guenther  <rguenther@suse.de>
26147
26148         PR tree-optimization/43255
26149         * tree-vrp.c (process_assert_insertions_for): Do not insert
26150         asserts for trivial conditions.
26151
26152 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26153
26154         PR tree-optimization/43280
26155         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
26156         generation.  Move calculation of size out of the if branch.
26157         (find_bswap): Modify compare number generation.
26158
26159 2010-03-11  Richard Guenther  <rguenther@suse.de>
26160
26161         PR lto/43200
26162         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
26163         (input_gimple_stmt): Fixup handled component types during
26164         operand read.  Also fix up decls in ADDR_EXPRs.
26165
26166 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
26167
26168         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
26169         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
26170
26171 2010-03-10  Jan Hubicka  <jh@suse.cz>
26172
26173         PR c/43288
26174         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
26175         * varasm.c (get_variable_section): Don't do that here...
26176         (make_decl_rtl): ... and here.
26177         (do_assemble_alias): Produce decl RTL.
26178         (assemble_alias): Likewise.
26179
26180 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
26181
26182         PR debug/43290
26183         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
26184         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
26185         of fde->vdrap_reg.
26186         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
26187         (based_loc_descr): Only express drap or vdrap regno based expressions
26188         using DW_OP_fbreg when not optimizing.
26189         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
26190         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
26191         REG_CFA_SET_VDRAP note.
26192
26193 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
26194
26195         PR tree-optimization/43236
26196         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
26197         error in calculation of base address in reverse iteration case.
26198         (generate_builtin): Take number of latch executions if the statement
26199         is in the latch.
26200
26201 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
26202
26203         PR middle-end/42859
26204         * tree-eh.c: Include pointer-set.h.
26205         (lower_eh_dispatch): Filter out duplicate case labels and
26206         remove the unneeded edge when the label is unused.  Return
26207         true when some edges are removed.
26208         (execute_lower_eh_dispatch): When any lowering resulted in
26209         removing an edge, also delete unreachable blocks.
26210
26211 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
26212
26213         PR bootstrap/43287
26214         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26215         UNSPEC_MACHOPIC_OFFSET.
26216
26217 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
26218
26219         PR target/43294
26220         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
26221         (m68k_delegitimize_address): New function.
26222
26223 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
26224
26225         PR debug/43299
26226         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
26227
26228         PR debug/43299
26229         * var-tracking.c (adjust_sets): New function.
26230         (count_with_sets, add_with_sets): Use it.
26231         (get_adjusted_src): New inline function.
26232         (add_stores): Use it.
26233
26234         PR debug/43304
26235         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
26236         call cselib_dummy_expand_value_rtx_cb instead of
26237         cselib_expand_value_rtx_cb.
26238
26239         PR debug/43293
26240         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
26241         * config/i386/i386.c: Include debug.h and dwarf2out.h.
26242         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
26243         and .cfi_endproc around the pic thunks.
26244         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
26245         all queued unwind info register saves are saved before the call.
26246         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
26247         considered as sp-=4 for unwind info and the pop as sp+=4 which
26248         also clobbers dest, but doesn't actually restore it.
26249
26250         PR debug/43290
26251         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
26252         RTX_FRAME_RELATED_P.
26253
26254 2010-03-09  Jie Zhang  <jie@codesourcery.com>
26255
26256         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
26257         whitespaces in output template.
26258
26259 2010-03-09  Jie Zhang  <jie@codesourcery.com>
26260
26261         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
26262         out array boundary.
26263
26264 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26265
26266         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
26267         builtins.exp in a separate job.
26268
26269 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26270
26271         * graphite-sese-to-poly.c (add_param_constraints): Use
26272         lower_bound_in_type and upper_bound_in_type.
26273
26274 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26275
26276         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
26277         instead of unsigned_type_node.
26278
26279 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26280             Reza Yazdani  <reza.yazdani@amd.com>
26281
26282         PR middle-end/43065
26283         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
26284         on pointer type parameters.
26285
26286 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
26287
26288         PR middle-end/42644
26289         PR middle-end/42130
26290         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
26291         handle conversions from pointer to integers.
26292         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
26293         induction variable, to be able to work with code generated by CLooG.
26294         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
26295         (build_poly_scop): Bail out if we cannot codegen a loop.
26296
26297 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
26298
26299         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
26300         code generation with gloog_error.
26301
26302 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26303
26304         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
26305         Call fold_convert on all the returned values.
26306         (expand_scalar_variables_expr): Pass to
26307         expand_scalar_variables_ssa_name the type of the resulting expression.
26308
26309 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26310
26311         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
26312         ppl_min_for_le_pointset.
26313         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
26314         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
26315
26316 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26317
26318         * graphite-dependences.c (map_into_dep_poly): Removed.
26319         (dependence_polyhedron_1): Use combine_context_id_scat.
26320
26321 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26322
26323         * graphite-poly.h (struct poly_scattering): Add layout documentation.
26324         (struct poly_bb): Same.
26325         (combine_context_id_scat): New.
26326
26327 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26328
26329         PR middle-end/42326
26330         * sese.c (name_defined_in_loop_p): Return false for default
26331         definitions.
26332
26333 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26334
26335         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
26336         and clean up the logic.
26337
26338 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26339
26340         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
26341         early return.
26342
26343 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26344
26345         * var-tracking.c (remove_cselib_value_chains): Define only for
26346         ENABLE_CHECKING.
26347         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
26348         delete_slot_part, emit_notes_for_differences_1): Don't call
26349         remove_cselib_value_chains here.
26350         (set_slot_part, emit_notes_for_differences_2): Don't call
26351         add_cselib_value_chains here.
26352         (preserved_values): New vector.
26353         (preserve_value): New function.
26354         (add_uses, add_stores, vt_add_function_parameters): Use it
26355         instead of cselib_preserve_value.
26356         (changed_values_stack): New vector.
26357         (check_changed_vars_0): New function.
26358         (check_changed_vars_1, check_changed_vars_2): Use it.
26359         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
26360         changed_values_stack VALUEs.
26361         (vt_emit_notes): For all preserved_values call
26362         add_cselib_value_chains.  If ENABLE_CHECKING call
26363         remove_cselib_value_chains before verifying value_chains is empty.
26364         Initialize and free changed_values_stack.
26365         (vt_initialize): Initialize preserved_values.
26366         (vt_finalize): Free preserved_values.
26367
26368 2010-03-08  Richard Guenther  <rguenther@suse.de>
26369
26370         PR tree-optimization/43269
26371         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
26372         region detection.
26373
26374 2010-03-08  Martin Jambor  <mjambor@suse.cz>
26375
26376         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
26377         (ipa_is_param_called): Removed.
26378         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
26379         (ipa_print_node_params): Do not print the called flag.
26380         (ipa_write_node_info): Do not stream the called flag.
26381         (ipa_read_node_info): Likewise.
26382
26383 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
26384
26385         PR debug/43176
26386         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
26387         * cselib.c (struct expand_value_data): Add dummy field.
26388         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
26389         dummy to false.
26390         (cselib_dummy_expand_value_rtx_cb): New function.
26391         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
26392         any rtl.
26393         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
26394         * var-tracking.c: Include pointer-set.h.
26395         (variable): Change n_var_parts to char from int.  Add
26396         cur_loc_changed and in_changed_variables fields.
26397         (variable_canonicalize): Remove.
26398         (shared_var_p): New inline function.
26399         (unshare_variable): Maintain cur_loc_changed and
26400         in_changed_variables fields.  If var was in changed_variables,
26401         replace it there with new_var.  Just copy cur_loc instead of
26402         resetting it to something else.
26403         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
26404         (dataflow_set_union): Don't call variable_canonicalize.
26405         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
26406         of their DEBUG_EXPR_TREE_DECLs.
26407         (canonicalize_loc_order_check): Verify that cur_loc is NULL
26408         and in_changed_variables and cur_loc_changed is false.
26409         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
26410         and cur_loc_changed.  Don't update cur_loc here.
26411         (variable_merge_over_src): Don't call variable_canonicalize.
26412         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
26413         removing loc that is equal to cur_loc, clear cur_loc,
26414         set cur_loc_changed and ensure variable_was_changed is called.
26415         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
26416         compare pointers in cur_loc check, if it is equal to loc,
26417         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
26418         (variable_different_p): Remove compare_current_location argument,
26419         don't compare cur_loc.
26420         (dataflow_set_different_1): Adjust variable_different_p caller.
26421         (variable_was_changed): If dv had some var in changed_variables
26422         already, reset in_changed_variables flag for it and propagate
26423         cur_loc_changed over to the new variable.  On empty var
26424         always set cur_loc_changed.  Set in_changed_variables on whatever
26425         var is added to changed_variables.
26426         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
26427         Use shared_var_p.  When removing loc that is equal to cur_loc,
26428         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
26429         end, don't set it to something else, just call variable_was_changed.
26430         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
26431         loc being removed, clear cur_loc and set cur_loc_changed.
26432         Set cur_loc_changed if all locations have been removed.
26433         (struct expand_loc_callback_data): New type.
26434         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
26435         allocated.  Always create SUBREGs if simplify_subreg failed.
26436         Prefer to use cur_loc, when that fails and still in
26437         changed_variables (and seen first time) recompute it.  Set
26438         cur_loc_changed of variables which had to change cur_loc and
26439         compute elcd->cur_loc_changed if any of the subexpressions used
26440         had to change cur_loc.
26441         (vt_expand_loc): Adjust to pass arguments in
26442         expand_loc_callback_data structure.
26443         (vt_expand_loc_dummy): New function.
26444         (emitted_notes): New variable.
26445         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26446         that weren't used for any other decl in current
26447         emit_notes_for_changes call call vt_expand_loc_dummy to update
26448         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
26449         first loc_chain location if NULL before.  Always use just
26450         cur_loc instead of first loc_chain location.  When cur_loc_changed
26451         is false, when not --enable-checking=rtl just don't emit any note.
26452         When rtl checking, compute the note and assert it is the same
26453         as previous note.  Clear cur_loc_changed and in_changed_variables
26454         at the end before removing from changed_variables.
26455         (check_changed_vars_3): New function.
26456         (emit_notes_for_changes): Traverse changed_vars to call
26457         check_changed_vars_3 on each changed var.
26458         (emit_notes_for_differences_1): Clear cur_loc_changed and
26459         in_changed_variables.  Recompute cur_loc of new_var.
26460         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26461         (vt_emit_notes): Initialize and destroy emitted_notes.
26462
26463 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
26464
26465         PR rtl-optimization/42220
26466         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26467         Use verify_reg_tracked to determine if we should use OP_OUT rather
26468         than OP_INOUT.
26469         (build_def_use): If we see an in-out operand for a register that we
26470         know nothing about, treat is an output if possible, fail the block if
26471         not.
26472
26473 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26474
26475         PR debug/42897
26476         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26477         permanently.
26478
26479 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26480
26481         PR debug/42897
26482         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26483         uses of relevant DEFs that are dead outside the loop too.
26484
26485 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26486
26487         * var-tracking.c (dataflow_set_merge): Swap src and src2.
26488         Reverted:
26489         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26490         PR debug/41371
26491         * var-tracking.c (values_to_unmark): New variable.
26492         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26493         values_to_unmark vector.  Moved body to...
26494         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26495         instead queue it into values_to_unmark vector.
26496         (vt_find_locations): Free values_to_unmark vector.
26497
26498 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26499
26500         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26501         (site.exp): Export them when plugins are enabled.
26502
26503 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
26504
26505         PR middle-end/42326
26506         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26507         that contain scevs.
26508         (chrec_fold_multiply): Same.
26509
26510 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
26511
26512         PR c/43248
26513         * c-decl.c (build_compound_literal): Return early if init is
26514         an error_mark_node.
26515
26516 2010-03-04  Martin Jambor  <mjambor@suse.cz>
26517
26518         PR tree-optimization/43164
26519         PR tree-optimization/43191
26520         * tree-sra.c (type_consists_of_records_p): Reject records with
26521         zero-size bit-fields at the end.
26522
26523 2010-03-04  Mike Stump  <mikestump@comcast.net>
26524
26525         * Makefile.in (TAGS): Remove *.y.
26526
26527 2010-03-04  Richard Guenther  <rguenther@suse.de>
26528
26529         PR tree-optimization/40761
26530         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26531         in reverse order.
26532         (my_rev_post_order_compute): New function.
26533         (init_pre): Call it.
26534
26535 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26536
26537         PR middle-end/43209
26538         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26539         decrease the cost of an IV candidate when the cost is infinite.
26540
26541 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26542
26543         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26544         Use '3DNow!' for the extension of that name, ensure normal space
26545         after the string.
26546         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26547
26548 2010-03-03  Jeff Law  <law@redhat.com>
26549
26550         * PR middle-end/32693
26551         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26552         than gen_rtx_SUBREG.
26553         (extract_bit_field_1): Likewise.
26554
26555 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
26556
26557         * doc/sourcebuild.texi (Test directives): Document that arguments
26558         include-opts and exclude-opts are now optional for dg-skip-if,
26559         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26560
26561 2010-03-03  Jason Merrill  <jason@redhat.com>
26562
26563         PR c++/12909
26564         * cgraph.h (varpool_node): Add extra_name field.
26565         * varpool.c (varpool_extra_name_alias): New.
26566         (varpool_assemble_decl): Emit extra name aliases.
26567         (varpool_mark_needed_node): Look past an extra name alias.
26568         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26569         * lto-streamer-in.c (lto_input_tree): Read it.
26570         * lto-streamer-out.c (output_unreferenced_globals): Write it.
26571
26572 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26573
26574         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26575         (sparc*-*-solaris2*): ...this.
26576
26577 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
26578
26579         PR debug/43229
26580         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26581         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
26582         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26583         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26584
26585         PR debug/43237
26586         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26587         fallthrough to default handling, just with want_address 0 instead of 2.
26588         For single element lists, add_AT_loc directly, otherwise create an
26589         artificial variable DIE and stick location list to it.
26590
26591         PR debug/43177
26592         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26593         (VAL_EXPR_HAS_REVERSE): Define.
26594         (reverse_op): New function.
26595         (add_stores): For reversible operations add an extra MO_VAL_USE.
26596
26597 2010-03-02  Jason Merrill  <jason@redhat.com>
26598
26599         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26600
26601 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
26602
26603         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26604         (sparc64-*-linux*): Likewise.
26605         (sparc64-*-solaris2*): Include assembler files before linker ones.
26606         (sparc-*-solaris2*): Simplify and reorder to match previous case.
26607         * config/sparc/gas.h: Delete.
26608         * config/sparc/sol2-64.h: Add copyright notice.
26609         * config/sparc/sol2-gas-bi.h: Likewise.
26610         * config/sparc/sol2-gld.h: Likewise.
26611         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26612         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26613         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26614         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26615         (sparc_elf_asm_named_section): Rename into...
26616         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
26617
26618 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
26619
26620         * config/alpha/alpha.c (override_options): Fix -mtune error message.
26621
26622 2010-03-02  Jeff Law  <law@redhat.com>
26623
26624         PR middle-end/42431
26625         * reload1.c (rtx_p, substitute_stack): Declare.
26626         (substitute): Record addresses of changed rtxs.
26627         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26628         Restore the original rtx when complete.
26629         (reload): Free subsitute_stack when complete.
26630
26631 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
26632
26633         * doc/gccint.texi (menu): Add Testsuites as a chapter.
26634         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26635         new chapter.
26636         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26637         LTO Testing, gcov Testing, profopt Testing, compat Testing,
26638         Torture Tests): Change from subsection to section.
26639
26640 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
26641             Steven Bosscher  <steven@gcc.gnu.org>
26642
26643         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26644         instead of bb.
26645
26646 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
26647
26648         PR middle-end/42640
26649         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26650         the assignment from the new induction variable to the assignment
26651         of the value from the original loop PHI function.
26652
26653 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
26654             Daniel Jacobowitz  <dan@codesourcery.com>
26655
26656         * doc/sourcebuild.texi (Test directives): Clarify options to
26657         dg-skip-if.
26658
26659 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26660
26661         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26662         Disable cfi directives unless GCC and gas agree on using read-only
26663         .eh_frame sections for 64-bit.
26664         * configure: Regenerate.
26665
26666 2010-03-01  Richard Guenther  <rguenther@suse.de>
26667
26668         PR tree-optimization/43220
26669         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26670         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26671
26672 2010-03-01  Richard Guenther  <rguenther@suse.de>
26673             Martin Jambor  <mjambor@suse.cz>
26674
26675         PR middle-end/41250
26676         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26677         gimplified parameters.
26678
26679 2010-03-01  Christian Bruel  <christian.bruel@st.com>
26680
26681         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26682
26683 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
26684
26685         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26686
26687 2010-03-01  Richard Guenther  <rguenther@suse.de>
26688
26689         PR middle-end/43213
26690         * expr.c (expand_assignment): Use the alias-oracle to tell
26691         if the rhs aliases the result decl.
26692
26693 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26694
26695         PR pch/14940
26696         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26697         to sol_gt_pch_get_address.
26698         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26699         64-bit, SPARC and x86.
26700         (sol_gt_pch_get_address): New function.
26701
26702 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
26703
26704         * toplev.h (inform_n, error_n): Declare.
26705         * diagnostic.c (inform_n, error_n): New function.
26706
26707 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
26708
26709         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26710         has no rtl yet when processing local_decls, queue it and recheck
26711         if deferred stack allocation hasn't assigned it rtl.
26712
26713 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
26714
26715         * config/sh/sh.c (unspec_bbr_uid): New.
26716         (gen_block_redirect): Use it instead of INSN_UID.
26717         (gen_far_branch): Likewise.
26718
26719 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26720
26721         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26722         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26723
26724 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26725
26726         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26727         (Warning Options): -Wno-conversion-null is valid for
26728         Objective-C++ as well.
26729         * doc/tm.texi (Named Address Spaces): Likewise.
26730         * doc/plugins.texi (Plugins): Replace TABs with spaces.
26731         * doc/tree-ssa.texi (Tree SSA): Likewise.
26732
26733 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26734
26735         PR bootstrap/43202
26736         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26737         by default.  Don't set the default arch for
26738         i[34567]86-*-darwin*|x86_64-*-darwin*.
26739
26740 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26741
26742         PR bootstrap/43202
26743         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26744         default.  Set the default 32bit/64bit archs with $with_arch
26745         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26746
26747 2010-02-27  Richard Guenther  <rguenther@suse.de>
26748
26749         PR tree-optimization/43186
26750         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26751         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26752         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26753         unroller iterations.
26754
26755 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26756
26757         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26758         required and i[34567]86-*-* targets don't support 64bit ISA.
26759
26760 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
26761
26762         PR ada/43096
26763         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26764         the same alias set.
26765
26766 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26767
26768         * config.gcc: Set the default arch at least to Prescott for
26769         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26770         if SSE math is enabled.
26771
26772 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26773
26774         * diagnostic.c (diagnostic_initialize): Update.
26775         (diagnostic_report_diagnostic): Test inhibit_notes_p for
26776         informative notes.
26777         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26778         (diagnostic_inhibit_notes): New.
26779         * toplev.c (process_options): inhibit notes with -fcompare-debug.
26780
26781 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26782
26783         PR c/20631
26784         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26785         * doc/standards.texi: Likewise.
26786         * doc/extend.texi: Likewise.
26787         * doc/trouble.texi: Likewise.
26788         * doc/cppopts.texi: Likewise.
26789         * doc/install.texi: Likewise.
26790         * c.opt (std=c90,std=gnu90): New options.
26791         * c-opts.c (c_common_handle_option): Handle them.
26792
26793 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26794
26795         PR c/24577
26796         * c-decl.c (undeclared_variable): Use an informative note.
26797
26798 2010-02-26  Richard Guenther  <rguenther@suse.de>
26799
26800         PR tree-optimization/43186
26801         * gimple.h (gimple_fold): Remove.
26802         * gimple.c (gimple_fold): Remove.  Inline into single user ...
26803         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26804         Try harder for conditions.
26805
26806 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26807
26808         PR debug/43190
26809         * function.c (used_types_insert): Don't skip through named pointer
26810         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
26811         and it is different from the main variant's type.
26812
26813 2010-02-26  Nick Clifton  <nickc@redhat.com>
26814
26815         * config/rx/rx.md (sminsi3): Remove bogus alternative.
26816
26817 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26818
26819         * config.gcc: Support --with-fpmath=sse for x86.
26820
26821         * config/i386/ssemath.h: New.
26822
26823         * doc/install.texi (--with-fpmath=sse): Documented.
26824
26825 2010-02-26  Richard Guenther  <rguenther@suse.de>
26826
26827         PR tree-optimization/43188
26828         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26829         vector types of over-aligned element type.
26830
26831 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26832
26833         PR target/43175
26834         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26835         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26836
26837 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26838
26839         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26840
26841 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26842
26843         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26844         * var-tracking.c: Include diagnostic.h.
26845         (debug_dv): New function.
26846         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26847
26848         PR debug/43160
26849         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26850         (add_value_chain, add_value_chains, remove_value_chain,
26851         remove_value_chains): Handle DEBUG_EXPRs.
26852         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26853
26854         PR debug/43161
26855         * regcprop.c (struct queued_debug_insn_change): New type.
26856         (struct value_data_entry): Add debug_insn_changes field.
26857         (struct value_data): Add n_debug_insn_changes field.
26858         (debug_insn_changes_pool): New variable.
26859         (free_debug_insn_changes, apply_debug_insn_changes,
26860         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26861         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26862         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26863         fields.
26864         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26865         changes for them.
26866         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26867         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26868         changes, call cprop_find_used_regs via note_stores.
26869         (copyprop_hardreg_forward): When copying vd from predecessor
26870         which has any queued DEBUG_INSN changes, make sure the pointers are
26871         cleared.  At the end call df_analyze and then if there are any
26872         DEBUG_INSN changes queued at the end of some basic block for still
26873         live registers, apply them.
26874         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26875
26876 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26877
26878         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26879         (arm*-*-*): Ditto.
26880
26881 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26882
26883         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26884         targets.  Set the default with_cpu/with_arch from arch/cpu.
26885         Allow x86-64 and native for with_cpu/with_arch.
26886
26887 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26888
26889         * ebitmap.c: Change calls to verify_popcount with calls to
26890         sbitmap_verify_popcount.
26891         (ebitmap_clear_bit): Fixed map->cacheindex test and
26892         map>cache update when bit clearing results in an empty
26893         element.
26894
26895 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26896
26897         PR target/43154
26898         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26899         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26900         and support both V2DF and V2DI modes.
26901         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26902         support both V2DF and V2DI modes.
26903         (general): Delete trailing whitespace from a few patterns.
26904
26905         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26906         V2DF/V2DI interleave high/low builtins.
26907
26908         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26909         new VSX builtins.
26910
26911         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26912         interleave high/low functions.
26913
26914 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26915
26916         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26917         #pragma extern_prefix.
26918
26919 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26920
26921         PR debug/43166
26922         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26923         BLKmode, assert op0 is a MEM and just adjust its mode.
26924
26925         PR debug/43165
26926         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26927         if bitpos isn't multiple of mode's bitsize.
26928
26929 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26930
26931         * c.opt (-ftemplate-depth=): New.
26932         (-ftemplate-depth-): Deprecate.
26933         * optc-gen.awk: Handle -ftemplate-depth=.
26934         * opth-gen.awk: Likewise.
26935         * c-opts.c (c_common_handle_option): Likewise.
26936         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26937
26938 2010-02-24  Jason Merrill  <jason@redhat.com>
26939
26940         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26941
26942 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26943
26944         * cfg.c (alloc_aux_for_block): Remove inline.
26945         (alloc_aux_for_edge): Likewise.
26946
26947 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26948
26949         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26950
26951 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26952
26953         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26954         * config/i386/sol2-gas.h: New file.
26955         * config.gcc (i[34567]86-*-solaris2*): Use it.
26956
26957 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26958
26959         PR c/43128
26960         * c-typeck.c (ep_convert_and_check): New.
26961         (build_conditional_expr): Use it.
26962         (build_binary_op): Likewise.
26963
26964 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26965
26966         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26967
26968         PR debug/43150
26969         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26970         bounds even for -O+.
26971         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26972         expr needs to have DECL_NAME set.
26973
26974 2010-02-24  Nick Clifton  <nickc@redhat.com>
26975
26976         * config/mep/mep.c: Include gimple.h.
26977         (mep_function_uses_sp): Delete unused function.
26978         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26979         parameters.  Use unsigned integers to count args.  Return a
26980         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26981
26982 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26983
26984         PR target/43107
26985         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26986         greater or equal to nelt instead of 2 * nelt.
26987         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26988         with nelt - 1.
26989
26990 2010-02-23  Jason Merrill  <jason@redhat.com>
26991
26992         PR debug/42800
26993         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26994         in cfun->local_decls even if they have register types.
26995
26996         PR c++/42837
26997         * stor-layout.c (place_field): Don't warn about unnecessary
26998         DECL_PACKED if the type is packed.
26999
27000 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
27001
27002         PR target/43139
27003         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
27004         GOTOFF relocs, even when the base reg isn't pic pointer.
27005
27006 2010-02-23  Michael Matz  <matz@suse.de>
27007
27008         PR debug/43077
27009         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
27010         (expand_gimple_basic_block): Generate and use debug temps if there
27011         are debug uses left after the last real use of TERed ssa names.
27012         Unlink debug immediate uses when they are expanded.
27013
27014 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27015
27016         PR 43123
27017         * config/i386/i386.c (override_options): Reorganise to provide
27018         better error messages.
27019
27020 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27021
27022         PR middle-end/43083
27023         * graphite-scop-detection.c (create_single_exit_edge): Move
27024         the call to find_single_exit_edge to....
27025         (create_sese_edges): ...here.  Don't handle multiple edges
27026         exiting the function.
27027         (build_graphite_scops): Don't handle multiple edges
27028         exiting the function.
27029
27030 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27031
27032         PR middle-end/43097
27033         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
27034         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
27035
27036 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27037
27038         PR middle-end/43026
27039         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
27040
27041 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27042
27043         PR c++/43126
27044         * c-typeck.c (convert_arguments): Print declaration location.
27045         * c-common.c (validate_nargs): Rename as
27046         builtin_function_validate_nargs.
27047         (check_builtin_function_arguments): Update.
27048
27049 2010-02-22  Richard Guenther  <rguenther@suse.de>
27050
27051         PR lto/43045
27052         * tree-inline.c (declare_return_variable): Use the type of
27053         the call stmt lhs if available.
27054
27055 2010-02-22  Duncan Sands  <baldrick@free.fr>
27056
27057         * passes.c (register_pass): Always consider all pass lists when
27058         ref_pass_instance_number is zero.
27059
27060 2010-02-22  Richard Guenther  <rguenther@suse.de>
27061
27062         PR tree-optimization/42749
27063         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
27064         parameter.  Do arithmetic in the original type.
27065         (update_accumulator_with_ops): Likewise.
27066         (adjust_accumulator_values): Adjust.
27067
27068 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27069
27070         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
27071         (QI to BLKmode splitter): New splitter.
27072
27073 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
27074
27075         * config/i386/i386.c (initial_ix86_tune_features): Turn on
27076         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
27077
27078 2010-02-22  Richard Guenther  <rguenther@suse.de>
27079
27080         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
27081
27082 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
27083
27084         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
27085         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
27086         ($(T)crti.o, $(T)crtn.o): Remove rules.
27087
27088 2010-02-21  Tobias Burnus  <burnus@net-b.de>
27089
27090         PR fortran/35259
27091         * doc/invoke.texi (-fassociative-math): Document that this
27092         option is automatically enabled for Fortran.
27093
27094 2010-02-20  David S. Miller  <davem@davemloft.net>
27095
27096         * configure.ac: Test if linker and assembler properly support
27097         GOTDATA_OP relocations.
27098         * configure: Rebuild.
27099         * config.in: Likewise.
27100         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
27101         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
27102         (movsi_high_pic): Likewise.
27103         (movdi_lo_sum_pic): Likewise.
27104         (movdi_high_pic): Likewise.
27105         (movsi_pic_gotdata_op): New pattern.
27106         (movdi_pic_gotdata_op): Likewise.
27107         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
27108         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
27109
27110 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
27111
27112         PR target/43067
27113         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
27114         attribute to ssemul.
27115         (xop_mulv2div2di3_high): Ditto.
27116
27117 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27118
27119         PR c++/35669
27120         * c.opt (Wconversion-null): New option.
27121         * doc/invoke.texi (Wconversion-null): Document.
27122
27123 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27124
27125         * common.opt (Wlarger-than-): Add Undocumented.
27126
27127 2010-02-19  Mike Stump  <mikestump@comcast.net>
27128
27129         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
27130
27131 2010-02-19  Jason Merrill  <jason@redhat.com>
27132
27133         PR target/40332
27134         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
27135         * configure: Likewise.
27136
27137 2010-02-20  Alan Modra  <amodra@gmail.com>
27138
27139         PR middle-end/42344
27140         * cgraph.h (cgraph_make_decl_local): Declare.
27141         * cgraph.c (cgraph_make_decl_local): New function.
27142         (cgraph_make_node_local): Use it.
27143         * cgraphunit.c (cgraph_function_versioning): Likewise.
27144         * ipa.c (function_and_variable_visibility): Likewise.
27145
27146 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27147
27148         PR bootstrap/43121
27149         * except.c (sjlj_emit_function_enter): Don't call
27150         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
27151         directly.
27152         * rtl.h (add_reg_br_prob_note): Remove prototype.
27153
27154 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27155
27156         PR 41779
27157         * c-common.c (conversion_warning): Remove widening conversions
27158         before checking the conversion of integers to reals.
27159
27160 2010-02-19  Mike Stump  <mikestump@comcast.net>
27161
27162         PR middle-end/43125
27163         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
27164
27165         PR objc/43061
27166         * cgraphunit.c (process_function_and_variable_attributes): Check
27167         DECL_PRESERVE_P instead of looking up attribute "used".
27168         * ipa-pure-const.c (check_decl): Likewise.
27169         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
27170         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
27171         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
27172         instead of attribute "used".
27173         * config/sol2-c.c (solaris_pragma_init): Likewise.
27174         (solaris_pragma_fini): Likewise.
27175
27176 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27177
27178         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
27179         Use XCNEW instead of xcalloc.
27180         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
27181         XNEW instead of xmalloc.
27182         (get_fields): Use XNEWVEC instead of xmalloc.
27183
27184         PR debug/43084
27185         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
27186         populate vars array.
27187         (create_new_general_access): For debug stmts just reset value.
27188         (get_stmt_accesses): For accesses within debug stmts just record them
27189         using add_access_to_acc_sites instead of preventing the peeling or
27190         counting them as accesses.
27191
27192         PR middle-end/42233
27193         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
27194
27195 2010-02-19  Richard Guenther  <rguenther@suse.de>
27196
27197         PR tree-optimization/42916
27198         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
27199         instructions.
27200
27201 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
27202
27203         * configure.ac: Replace all uses of changequote in macro arguments
27204         with proper quoting.
27205
27206 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27207
27208         PR middle-end/42233
27209         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
27210
27211 2010-02-19  Richard Guenther  <rguenther@suse.de>
27212
27213         PR tree-optimization/42944
27214         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
27215         test for aliasing with errno.
27216
27217 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27218
27219         PR middle-end/42233
27220         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
27221         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
27222         * dojump.c: Include output.h.
27223         (inv): New inline function.
27224         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
27225         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
27226         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
27227         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
27228         argument, pass it down to other calls.
27229         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
27230         add REG_BR_PROB note to the conditional jump.
27231         * cfgexpand.c (add_reg_br_prob_note): Removed.
27232         (expand_gimple_cond): Don't call it, add the probability
27233         as last argument to jumpif_1/jumpifnot_1.
27234         * Makefile.in (dojump.o): Depend on output.h.
27235         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
27236         callers.
27237         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
27238         * stmt.c (do_jump_if_equal): Likewise.
27239         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
27240         * loop-unswitch.c (compare_and_jump_seq): Likewise.
27241         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
27242         Likewise.
27243         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
27244         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
27245         jumpifnot_1 callers.
27246         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
27247         callers.
27248         (store_expr): Adjust jumpifnot caller.
27249         (store_constructor): Adjust jumpif caller.
27250
27251         PR middle-end/42233
27252         * gimplify.c (gimple_boolify): For __builtin_expect call
27253         gimple_boolify also on its first argument.
27254
27255 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
27256
27257         * configure.ac (gnu-unique-object): Wrap regexps using [] in
27258         changequote block.
27259         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
27260         * configure: Regenerated.
27261
27262 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27263
27264         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
27265         lang_hooks.types_compatible_p instead of comptypes.
27266
27267 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27268
27269         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
27270         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
27271         if __prefer_thumb__ is defined.
27272
27273 2010-02-18  Martin Jambor  <mjambor@suse.cz>
27274
27275         PR tree-optimization/43066
27276         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
27277         array with zero-sized element type.
27278
27279 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
27280
27281         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
27282         rtx, allocate struct var_loc_node here and return it to the
27283         caller, and only if it is actually needed.
27284         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
27285         move it earlier and return immediately if it returns NULL.
27286
27287 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
27288
27289         * config/sparc/gas.h: New file.  Restore
27290         TARGET_ASM_NAMED_SECTION to its ELF default.
27291         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
27292         check !HAVE_GNU_AS.
27293         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27294         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
27295         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
27296         after sparc/sysv4.h.
27297
27298 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27299
27300         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
27301
27302 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
27303
27304         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
27305         patterns from predicated pattern.
27306
27307 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
27308
27309         PR target/43103
27310         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
27311         for insn mnemonic suffix.
27312
27313 2010-02-17  Richard Guenther  <rguenther@suse.de>
27314
27315         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
27316         to loop PHI nodes.
27317
27318 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
27319
27320         PR debug/42918
27321         * caller-save.c (save_call_clobbered_regs): If BB ends with
27322         a DEBUG_INSN, move any notes in between last real insn and the last
27323         DEBUG_INSN after the last DEBUG_INSN.
27324
27325 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
27326
27327         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
27328         Fix return type.  Fix argument type.  Explain meaning of return value.
27329
27330 2010-02-16  Richard Guenther  <rguenther@suse.de>
27331
27332         PR tree-optimization/41043
27333         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
27334         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
27335         statements ...
27336         (vrp_visit_phi_node): ... but only for loop PHI nodes.
27337
27338 2010-02-16  Ira Rosen  <irar@il.ibm.com>
27339
27340         PR tree-optimization/43074
27341         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
27342         * tree-vect-loop.c (vect_analyze_loop_operations): Add
27343         vectorizable cycles in hybrid SLP check.
27344         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
27345
27346 2010-02-16  Richard Guenther  <rguenther@suse.de>
27347
27348         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
27349         (true_dependence): If memrefs_conflict_p computes must-alias
27350         trust it.  Move TBAA check after offset-based disambiguation.
27351         (canon_true_dependence): Likewise.
27352
27353 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
27354
27355         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
27356         * doc/invoke.texi: Document it.
27357         * var-tracking.c: Include toplev.h and params.h.
27358         (vt_find_locations): Return bool indicating success.  Compute
27359         hash sizes unconditionally.  Check new parameter, report.
27360         (variable_tracking_main_1): Check vt_find_locations results and
27361         retry.  Renamed from...
27362         (variable_tracking_main): ... this.  New wrapper to preserve
27363         flag_var_tracking_assignments.
27364         * Makefile.in (var-tracking.o): Adjust dependencies.
27365
27366 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
27367             Jakub Jelinek  <jakub@redhat.com>
27368
27369         PR target/42854
27370         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
27371         if weak_import attribute is present.
27372         * config/darwin.c (machopic_select_section): Likewise.
27373
27374 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
27375
27376         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
27377         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
27378         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
27379         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
27380
27381         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
27382         types.
27383
27384         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27385         Fix argument types.
27386
27387         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
27388         Rewrite text to refer to the names.
27389
27390 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
27391
27392         * config/i386/i386-builtin-types.def
27393         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
27394         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
27395         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
27396         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
27397         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
27398         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
27399         IX86_BUILTIN_VPERMIL2PS256.
27400         (MULTI_ARG_4_DF2_DI_I): Defined.
27401         (MULTI_ARG_4_DF2_DI_I1): Defined.
27402         (MULTI_ARG_4_SF2_SI_I): Defined.
27403         (MULTI_ARG_4_SF2_SI_I1): Defined.
27404         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
27405         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
27406         __builtin_ia32_vpermil2ps256.
27407         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27408         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27409         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
27410         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27411         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27412         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
27413         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
27414         CODE_FOR_xop_vpermil2v8sf3.
27415         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
27416         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
27417         * config/i386/xopintrin.h (_mm_permute2_pd): New.
27418         (_mm256_permute2_pd): New.
27419         (_mm_permute2_ps): New.
27420         (_mm256_permute2_ps): New.
27421
27422 2010-02-15  Nick Clifton  <nickc@redhat.com>
27423
27424         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
27425         boolean parameters.  Use emit_jump_insn when emitting a pop
27426         instruction containing a return insn.
27427         (push): Use 'true' rather than '1' as second parameter to F.
27428         (h8300_expand_prologue): Likewise.
27429         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
27430         (h8300_expand_epilogue): Likewise.
27431
27432 2010-02-15  Richard Guenther  <rguenther@suse.de>
27433
27434         PR middle-end/43068
27435         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
27436         if that is zero.
27437
27438 2010-02-15  Nick Clifton  <nickc@redhat.com>
27439
27440         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
27441         delta.
27442
27443 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
27444
27445         * intl.c (fake_ngettext): New function.
27446         * intl.h (fake_ngettext): Declare.
27447         (ngettext): Define macro.
27448         * collect2.c (notice_translated): New function.
27449         (main): Use notice_translated and ngettext.
27450         * collect2.h (notice_translated): Declare.
27451
27452 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
27453
27454         * reorg.c (delete_computation): Comment fixes.
27455         * caller-save.c (setup_save_areas): Idem.
27456         * sel-sched-dump.c (dump_lv_set): Idem.
27457         * rtl.def: Idem.
27458
27459 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27460
27461         * config/s390/s390.c (s390_sched_init): New function.
27462         (TARGET_SCHED_INIT): Target hook defined.
27463
27464 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
27465             Jack Howarth  <howarth@bromo.med.uc.edu>
27466             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27467
27468         PR target/42982
27469         Partial revert of unintended change in fix for PR41605.
27470         * config/darwin.h: Fix typo.
27471         * config/darwin9.h: Same.
27472
27473 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27474
27475         * c-pch.c (pch_init): Clear v.
27476
27477 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27478
27479         PR middle-end/42930
27480         * graphite-scop-detection.c (graphite_can_represent_scev): Call
27481         graphite_can_represent_init for MULT_EXPR.
27482
27483 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27484
27485         PR middle-end/42914
27486         PR middle-end/42530
27487         * graphite-sese-to-poly.c (remove_phi): New.
27488         (translate_scalar_reduction_to_array): Call remove_phi.
27489
27490 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27491
27492         PR middle-end/42771
27493         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27494         * graphite-clast-to-gimple.h (gloog): Update declaration.
27495         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27496         * graphite-poly.h (struct poly_bb): Add missing comments.
27497         (struct scop): Add poly_scop_p field.
27498         (POLY_SCOP_P): New.
27499         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27500         * graphite.c (graphite_transform_loops): Build the polyhedral
27501         representation for each scop before code generation.
27502         * sese.c (rename_variables_in_operand): Removed.
27503         (rename_variables_in_expr): Return the renamed expression.
27504         (rename_sese_parameters): New.
27505         * sese.h (rename_sese_parameters): Declared.
27506
27507 2010-02-11  Richard Guenther  <rguenther@suse.de>
27508
27509         PR tree-optimization/42998
27510         * tree-ssa-pre.c (create_expression_by_pieces): Treat
27511         POINTER_PLUS_EXPR properly.
27512
27513 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27514             Changpeng Fang  <changpeng.fang@amd.com>
27515
27516         PR middle-end/40886
27517         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27518         the cost of an IV candidate when the IV is used in a test against zero.
27519
27520         * gcc.dg/tree-ssa/ivopts-3.c: New.
27521
27522 2010-02-11  Richard Guenther  <rguenther@suse.de>
27523
27524         PR lto/41664
27525         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27526         pointer-vs-decl case by swapping refs.  Handle some cases
27527         of pointer-vs-decl disambiguations more conservatively.
27528         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27529         to false after expanding.
27530
27531 2010-02-11  Richard Guenther  <rguenther@suse.de>
27532
27533         PR driver/43021
27534         * gcc.c (process_command): Handle LTO file@offset case more
27535         appropriately.
27536
27537 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27538
27539         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27540         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
27541         of DEBUG_INSNs.
27542         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27543
27544         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27545         if MEM's mode size isn't DWARF2_ADDR_SIZE.
27546         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27547         Optimize eq/ne comparisons when both arguments are known to be
27548         zero-extended.
27549         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27550         Don't mask operands unnecessarily if they are known to be already
27551         zero-extended.
27552
27553 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
27554
27555         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27556         instead of loop.
27557
27558 2010-02-10  Richard Guenther  <rguenther@suse.de>
27559
27560         PR tree-optimization/43017
27561         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27562         for wrapping signed arithmetic.
27563
27564 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27565
27566         PR debug/43010
27567         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27568         if no debug info should be emitted for it.
27569
27570 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27571
27572         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27573         note when flag_exceptions is set.
27574
27575 2010-02-10  Duncan Sands  <baldrick@free.fr>
27576
27577         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27578
27579 2010-02-10  Richard Guenther  <rguenther@suse.de>
27580
27581         PR c/43007
27582         * tree.c (get_unwidened): Handle constants.
27583         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27584
27585 2010-02-10  Martin Jambor  <mjambor@suse.cz>
27586
27587         PR lto/42985
27588         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27589         check for variable argument counts independently.
27590
27591 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27592
27593         PR target/42841
27594         * config/sh/sh.c (find_barrier): Increase length for non delayed
27595         conditional branches.
27596
27597 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27598
27599         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27600
27601 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27602
27603         * builtins.c (set_builtin_user_assembler_name): Also handle
27604         ffs if int is smaller than word.
27605
27606 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
27607
27608         PR middle-end/42973
27609         * ira-conflicts.c (get_dup): Remove.
27610         (process_reg_shuffles): Add new parameter.  Use it as an
27611         additional guard for copy generation.
27612         (add_insn_allocno_copies): Rewrite.
27613
27614 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
27615
27616         * common.opt (fsched2-use-traces): Preserved for backward
27617         compatibility.
27618         * doc/invoke.texi: Remove the documentation about option
27619         -fsched2-use-traces.
27620         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27621         flag_sched2_use_traces.
27622         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27623         the backward compatibility flag section.
27624
27625 2010-02-09  Richard Guenther  <rguenther@suse.de>
27626
27627         PR tree-optimization/43008
27628         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27629         make HEAP variables initialized from global memory if they
27630         are not known builtin functions.
27631         (find_func_aliases): Adjust.
27632
27633 2010-02-09  Richard Guenther  <rguenther@suse.de>
27634
27635         PR tree-optimization/43000
27636         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27637         arithmetic manually.
27638
27639 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
27640
27641         PR tree-optimization/42931
27642         * tree-loop-linear.c (try_interchange_loops): Don't call
27643         double_int_mul if estimated_loop_iterations failed.
27644
27645 2010-02-08  Martin Jambor  <mjambor@suse.cz>
27646
27647         PR middle-end/42898
27648         * tree-sra.c (build_accesses_from_assign): Do not mark in
27649         should_scalarize_away_bitmap if stmt has volatile ops.
27650         (sra_modify_assign): Do not process assigns piecemeal if if stmt
27651         has volatile ops.
27652
27653 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
27654
27655         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27656
27657 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
27658
27659         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27660         before the pattern.
27661
27662 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
27663
27664         PR middle-end/42946
27665         * df-core.c (df_finish_pass): Change type of saved_flags to int.
27666
27667 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27668
27669         PR middle-end/42988
27670         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27671         to unknown_dependence.
27672         (graphite_legal_transform_dr): Handle the unknown_dependence.
27673         (graphite_carried_dependence_level_k): Same.
27674
27675 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27676
27677         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27678
27679 2010-02-07  Richard Guenther  <rguenther@suse.de>
27680
27681         PR middle-end/42991
27682         * expr.c (get_inner_reference): Always initialize *pbitsize.
27683
27684 2010-02-07  Richard Guenther  <rguenther@suse.de>
27685
27686         PR middle-end/42956
27687         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27688         new ARRAY_REFs on variable size element or minimal index arrays.
27689         Complete.
27690         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27691         gimple_fold_indirect_ref.
27692
27693 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
27694
27695         PR target/42957
27696         * arm.c (arm_override_options): Just return if the user has specified
27697         an invalid fpu name.
27698
27699 2010-02-03  Jason Merrill  <jason@redhat.com>
27700
27701         PR c++/42870
27702         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27703         i386_pe_maybe_record_exported_symbol.
27704
27705 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
27706
27707         PR target/42924
27708         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27709         (pa_delegitimize_address): New function.
27710
27711 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
27712
27713         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27714         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27715
27716 2010-02-05  Richard Guenther  <rguenther@suse.de>
27717
27718         PR lto/42762
27719         * lto-streamer-in.c (get_resolution): Deal with references
27720         to undefined functions.
27721
27722 2010-02-05  Richard Guenther  <rguenther@suse.de>
27723
27724         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27725         (fold_const_aggregate_ref): Likewise.
27726         (ccp_fold_stmt): Substitute loads.
27727         (maybe_fold_reference): Verify types before substituting.
27728         Unshare properly.
27729         (fold_gimple_assign): Unshare properly.
27730         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27731
27732 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
27733
27734         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27735         for rs6000_gen_cell_microcode.
27736
27737 2010-02-04  Richard Guenther  <rguenther@suse.de>
27738
27739         PR rtl-optimization/42952
27740         * dse.c (const_or_frame_p): Remove MEM handling.
27741
27742 2010-02-04  Nick Clifton  <nickc@redhat.com>
27743
27744         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27745         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27746         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27747         (mn10300_asm_output_mi_thunk): New function.
27748         (mn10300_can_output_mu_thunk): New function.
27749         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27750         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
27751         (FUNCTION_ARG): Delete incorrect comment.
27752
27753 2010-02-03  Jason Merrill  <jason@redhat.com>
27754
27755         PR c++/40138
27756         * fold-const.c (operand_equal_p): Handle erroneous types.
27757
27758 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27759
27760         * config/h8300/h8300.md (can_delay): Fix attibute condition.
27761
27762 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
27763
27764         PR rtl-optimization/42941
27765         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27766         of xmalloc.
27767
27768 2010-02-03  Jason Merrill  <jason@redhat.com>
27769
27770         PR c++/35652
27771         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27772
27773 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
27774
27775         PR debug/42896
27776         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
27777         (cselib_reset_table): Renamed from...
27778         (cselib_reset_table_with_next_value): ... this.
27779         (cselib_get_next_uid): Renamed from...
27780         (cselib_get_next_unknown_value): ... this.
27781         * cselib.c (next_uid): Renamed from...
27782         (next_unknown_value): ... this.
27783         (cselib_clear_table): Adjust.
27784         (cselib_reset_table): Adjust.  Renamed from...
27785         (cselib_reset_table_with_next_value): ... this.
27786         (cselib_get_next_uid): Adjust.  Renamed from...
27787         (cselib_get_next_unknown_value): ... this.
27788         (get_value_hash): Use hash.
27789         (cselib_hash_rtx): Likewise.
27790         (new_cselib_val): Adjust.  Set and dump uid.
27791         (cselib_lookup_mem): Pass next_uid as hash.
27792         (cselib_subst_to_values): Likewise.
27793         (cselib_log_lookup): Dump uid.
27794         (cselib_lookup): Pass next_uid as hash.  Adjust.
27795         (cselib_process_insn): Adjust.
27796         (cselib_init): Initialize next_uid.
27797         (cselib_finish): Adjust.
27798         (dump_cselib_table): Likewise.
27799         * dse.c (canon_address): Dump value uid.
27800         * print-rtl.c (print_rtx): Print value uid.
27801         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27802         (dvuid): New type.
27803         (dv_uid): New function, sort of renamed from...
27804         (dv_htab_hash): ... this, reimplemented in terms of it and...
27805         (dv_uid2hash): ... this.  New.
27806         (variable_htab_eq): Drop excess assertions.
27807         (tie_break_pointers): Removed.
27808         (canon_value_cmp): Compare uids.
27809         (variable_post_merge_New_vals): Print uids.
27810         (vt_add_function_parameters): Adjust.
27811         (vt_initialize): Reset table.  Adjust.
27812
27813 2010-02-03  Richard Guenther  <rguenther@suse.de>
27814
27815         PR tree-optimization/42944
27816         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27817         (call_may_clobber_ref_p_1): Likewise.  Properly handle
27818         malloc and calloc clobbering errno.
27819
27820 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
27821
27822         * doc/invoke.texi: Fix name of sched1 dump.
27823
27824         * opts.c (decode_options): Set flag_tree_switch_conversion
27825         only conditionally on optimize >= 2.
27826
27827         * gcse.c: Assorted comment fixes in pass description.
27828
27829 2010-02-03  Anthony Green  <green@moxielogic.com>
27830
27831         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27832         nop padding in order to maintain alignment of storage location of
27833         target function address.
27834         (moxie_trampoline_init): Store target function address at newly
27835         aligned location.
27836         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27837         to 32.
27838         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27839
27840 2010-02-03  Richard Guenther  <rguenther@suse.de>
27841
27842         PR middle-end/42927
27843         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27844
27845 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27846
27847         * config.gcc: Reenable check for obsolete targets.
27848         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27849         mips-sgi-irix6.[0-4]*.
27850
27851 2010-02-02  Nick Clifton  <nickc@redhat.com>
27852
27853         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27854         constant size of 4 as being the same as 0.
27855         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27856         can take values in the range 0..4.
27857
27858 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27859
27860         PR java/41991
27861         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27862         as _darwin10_Unwind_FindEnclosingFunction().
27863         * libgcc-libsystem.ver: New.
27864
27865 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27866
27867         PR target/41399
27868         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27869         implicitly set registers.
27870
27871 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27872
27873         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27874         (arm_override_options): Allow automatic selection of the thread
27875         pointer register if thumb2.
27876         (legitimize_pic_address): Improve code sequences for Thumb2.
27877         (arm_call_tls_get_addr): Likewise.
27878         (legitimize_tls_address): Likewise.
27879         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27880         (pic_load_addr_32bit): ... this.  New named pattern.
27881         * thumb2.md (pic_load_addr_thumb2): Delete.
27882         (pic_load_dot_plus_four): Delete.
27883         (tls_load_dot_plus_four): New named pattern.
27884
27885 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27886
27887         PR libgomp/29986
27888         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27889         Document fix for TLS bug.
27890
27891 2010-01-31  Richard Guenther  <rguenther@suse.de>
27892
27893         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27894         conservatively correct.
27895
27896 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27897
27898         PR target/42850
27899         Revert:
27900         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27901
27902         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27903
27904 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27905
27906         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27907
27908 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27909
27910         * config.gcc: Adjust order of makefile fragments for mingw targets.
27911
27912 2010-01-31  Richard Guenther  <rguenther@suse.de>
27913
27914         PR middle-end/42898
27915         * gimplify.c (gimplify_init_constructor): For volatile LHS
27916         initialize a temporary.
27917
27918 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27919
27920         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27921         --with-headers
27922         * configure: Regenerate.
27923
27924 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27925
27926         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27927         the same alias set and their sizes different constantness.
27928         (aliasing_component_refs_p): Revert 2009-10-24 change.
27929
27930 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27931
27932         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27933         unused.
27934
27935 2010-01-29  Richard Guenther  <rguenther@suse.de>
27936
27937         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27938         Assert we successfully updated the call.
27939
27940 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27941
27942         PR rtl-optimization/42889
27943         * df.h (df_set_bb_dirty_nonlr): New prototype.
27944         * df-core.c (df_set_bb_dirty_nonlr): New function.
27945         * df-scan.c (df_insn_rescan): Call it instead of
27946         df_set_bb_dirty for DEBUG_INSNs.
27947
27948 2010-01-29  Richard Guenther  <rguenther@suse.de>
27949
27950         PR middle-end/37448
27951         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27952         quadratic behavior in most cases.
27953
27954 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27955
27956         PR target/42891
27957         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27958         in the call to gen_x86_movsicc_0_m1.
27959
27960 2010-01-28  Richard Guenther  <rguenther@suse.de>
27961
27962         PR tree-optimization/42871
27963         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27964
27965 2010-01-28  Richard Guenther  <rguenther@suse.de>
27966
27967         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27968         into call arguments.
27969
27970 2010-01-28  Richard Guenther  <rguenther@suse.de>
27971
27972         PR middle-end/42883
27973         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27974         the forwarder if the destination is an EH landing pad.
27975
27976 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27977
27978         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27979         block list passed to gimple_duplicate_sese_tail.
27980         (parallelize_loops): Avoid parallelization when the function
27981         has_nonlocal_label.
27982         Avoid parallelization when the preheader is IRREDUCIBLE.
27983         Try to optimize when estimated_loop_iterations_int is unresolved.
27984         Add the loop's location to the dump file.
27985         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27986         (gimple_duplicate_sese_tail): Remove the check for the latch.
27987         Redirect nexits to the exit block.
27988         Remove handling of the incoming edges to the latch.
27989         Redirect the backedge from the copied latch to the exit bb.
27990
27991 2010-01-28  Michael Matz  <matz@suse.de>
27992
27993         PR target/42881
27994         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27995         Wrap force_reg into a sequence, emit it before user.
27996
27997 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27998
27999         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
28000         (arm_rev): New.
28001         (arm_legacy_rev): Likewise.
28002         (thumb_legacy_rev): Likewise.
28003
28004 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28005
28006         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
28007         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
28008         on MEM's address failed, try avoid_constant_pool_reference and
28009         recurse if it returned something different.
28010         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
28011         address, try avoid_constant_pool_reference and recurse if it
28012         returned something different.
28013         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
28014         address and avoid_constant_pool_reference returned something
28015         different, don't set have_address.
28016
28017 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
28018
28019         PR debug/42861
28020         * var-tracking.c (val_store): Add modified argument, obey it.
28021         Adjust callers.
28022         (count_uses): Move down logging of main.
28023         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
28024         don't need resolution.
28025         (emit_notes_in_bb): Likewise.
28026
28027 2010-01-27  Richard Guenther  <rguenther@suse.de>
28028
28029         PR middle-end/42878
28030         * tree-inline.c (remap_decl): Delay remapping of SSA name
28031         default definitions until we need them.
28032
28033 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28034
28035         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
28036         (rs6000_delegitimize_address): New function.
28037
28038         * config/s390/s390.c (s390_delegitimize_address): Call
28039         delegitimize_mem_from_attrs.
28040
28041         PR middle-end/42874
28042         * tree-inline.c (cannot_copy_type_1): Removed.
28043         (copy_forbidden): Don't forbid copying of functions containing
28044         records/unions with variable length fields.
28045
28046 2010-01-27  Christian Bruel  <christian.bruel@st.com>
28047
28048         Revert:
28049         PR target/42841
28050         * config/sh/sh.c (find_barrier): Increase length for non delayed
28051         conditional branches.
28052
28053 2010-01-27  Matthias Klose  <doko@ubuntu.com>
28054
28055         * configure.ac (gnu-unique-object): Fix ldd version check.
28056         * configure: Regenerate.
28057
28058 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28059
28060         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
28061         HAVE_GNU_AS value.
28062         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
28063         Test for HAVE_GNU_AS value.
28064
28065 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28066
28067         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
28068         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
28069         INT64_TYPE): Define.
28070         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
28071         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28072         INT_LEAST64_TYPE): Define.
28073         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
28074         UINT_LEAST64_TYPE): Define.
28075         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
28076         INT_FAST64_TYPE): Define.
28077         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28078         UINT_FAST64_TYPE): Define.
28079         (INTMAX_TYPE, UINTMAX_TYPE): Define.
28080         (INTPTR_TYPE, UINTPTR_TYPE): Define.
28081         (SIG_ATOMIC_TYPE): Define.
28082
28083 2010-01-26  Richard Guenther  <rguenther@suse.de>
28084
28085         * df-scan.c (df_scan_set_bb_info): Remove assert.
28086         (df_insn_rescan_debug_internal): Merge asserts.
28087         (df_install_ref): Likewise.
28088         (df_mark_reg): Use bitmap_set_range.
28089         (df_hard_reg_used_p): Remove assert.
28090         (df_hard_reg_used_count): Likewise.
28091
28092 2010-01-26  Richard Guenther  <rguenther@suse.de>
28093
28094         PR rtl-optimization/42685
28095         * web.c (web_main): Ignore DEBUG_INSNs.
28096
28097 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
28098
28099         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
28100
28101         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
28102         Fix types of fndecl and arglist parameters.
28103
28104 2010-01-26  Richard Guenther  <rguenther@suse.de>
28105
28106         PR middle-end/42806
28107         * tree-eh.c (unsplit_eh): Skip debug insns.
28108
28109 2010-01-26  Richard Guenther  <rguenther@suse.de>
28110
28111         PR tree-optimization/42250
28112         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
28113
28114 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
28115
28116         PR fortran/42866
28117         * omp-low.c (expand_omp_sections): Only use single_pred if
28118         l2_bb is single_pred_p.
28119
28120 2010-01-25  Christian Bruel  <christian.bruel@st.com>
28121
28122         PR target/42841
28123         * config/sh/sh.c (find_barrier): Increase length for non delayed
28124         conditional branches.
28125         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
28126
28127 2010-01-24  David S. Miller  <davem@davemloft.net>
28128
28129         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
28130         define if not using GAS.
28131         * config/sparc/sparc.c (sparc_elf_asm_named_section):
28132         Likewise.  Delete SECTION_MERGE code, which is only applicable
28133         when using GAS.
28134
28135 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
28136
28137         PR c++/42748
28138         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
28139         mangling of va_list in system headers.
28140
28141 2010-01-23  Toon Moene  <toon@moene.org>
28142
28143         * tree-predcom.c (combine_chains): Return NULL, not false.
28144
28145 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
28146
28147         * tree-loop-distribution.c (distribute_loop): Fix declaration and
28148         initialization of variable res to agree with return type.
28149
28150 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
28151
28152         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
28153         * tree-sra.c: Add include of expr.h.
28154
28155 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
28156
28157         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
28158         insert the debug stmt on the single non-EH edge from the stmt.
28159
28160 2010-01-22  Richard Henderson  <rth@redhat.com>
28161
28162         PR tree-opt/42833
28163         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
28164         the RHS until after generate_subtree_copies has insertted its
28165         code before the current statement.
28166
28167 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
28168
28169         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
28170
28171         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
28172
28173 2010-01-21  Martin Jambor  <mjambor@suse.cz>
28174
28175         PR tree-optimization/42585
28176         * tree-sra.c (struct access): New field grp_total_scalarization.
28177         (dump_access): Dump the new field.
28178         (should_scalarize_away_bitmap): New variable.
28179         (cannot_scalarize_away_bitmap): Likewise.
28180         (sra_initialize): Allocate new bitmaps.
28181         (sra_deinitialize): Free new bitmaps.
28182         (create_access_1): New function.
28183         (create_access): Parts moved to create_access_1.
28184         (type_consists_of_records_p): New function.
28185         (completely_scalarize_record): Likewise.
28186         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
28187         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
28188         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
28189         access.
28190         (analyze_all_variable_accesses): Completely scalarize small eligible
28191         records.
28192
28193 2010-01-21  Martin Jambor  <mjambor@suse.cz>
28194
28195         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
28196
28197 2010-01-21  Andrew Haley  <aph@redhat.com>
28198
28199         * gcc.c (process_command): Move lang_specific_driver before
28200         setting cc_libexec_prefix.
28201
28202 2010-01-21  Richard Guenther  <rguenther@suse.de>
28203
28204         PR middle-end/19988
28205         * fold-const.c (negate_expr_p): Pretend only negative
28206         real constants are easily negatable.
28207
28208 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
28209             Jason Merrill  <jason@redhat.com>
28210
28211         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
28212         (TYPE_TRANSPARENT_AGGR): this, for union and record.
28213         * calls.c (initialize argument_information): Handle it.
28214         * c-common.c (handle_transparent_union_attribute): Use new name.
28215         * c-decl.c (finish_struct): Ditto.
28216         * c-typeck.c (type_lists_compatible_p): Ditto.
28217         (convert_for_assignment): Use new name and also handle record.
28218         * function.c (aggregate_value_p): Handle it.
28219         (pass_by_reference): Ditto.
28220         (assign_parm_data_types): Ditto.
28221         * print-tree.c (print_node): Ditto.
28222         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
28223         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
28224         * tree.c (first_field): New fn.
28225
28226 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
28227
28228         PR target/42818
28229         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
28230         even when linking statically, for now.
28231
28232 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
28233
28234         PR debug/42715
28235         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
28236         without a cselib val.
28237         (count_uses): Accept MO_VAL_SET with no val on stores.
28238         (add_stores): Likewise.
28239
28240 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28241
28242         * var-tracking.c (check_value_val): Add a compile time assertion.
28243         (dv_is_decl_p): Simplify.
28244         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
28245         gcc_assert if ENABLE_CHECKING.
28246
28247 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
28248
28249         PR debug/42782
28250         * var-tracking.c: Include tree-flow.h.
28251         (mem_dies_at_call): New.
28252         (dataflow_set_preserve_mem_locs): Use it.
28253         (dataflow_set_remove_mem_locs): Likewise.
28254         (dump_var): Renamed from dump_variable.  Adjust all callers.
28255         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
28256         * Makefile.in (var-tracking.o): Adjust deps.
28257
28258 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
28259
28260         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
28261
28262 2010-01-20  Richard Guenther  <rguenther@suse.de>
28263
28264         PR tree-optimization/42717
28265         * tree-ssa-dce.c (get_live_post_dom): Remove.
28266         (forward_edge_to_pdom): Take an arbitrary edge to copy
28267         degenerate PHI args from.
28268         (remove_dead_stmt): Use the first post-dominator even if it
28269         does not contain live statements as redirection destination.
28270
28271 2010-01-20  Richard Guenther  <rguenther@suse.de>
28272
28273         * tree-inline.c (estimate_num_insns): Handle EH builtins.
28274
28275 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28276
28277         * sel-sched.c (create_speculation_check): Remove set but not used
28278         variable twin.
28279         (try_transformation_cache): Remove set but not used variable ds.
28280         (calculate_privileged_insns): Remove set but not used variables
28281         cur_insn and min_spec_insn.
28282         (find_best_expr): Remove set but not used variable avail_n.
28283         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
28284         variable e.
28285         * cgraphunit.c (assemble_thunk): Remove set but not used variable
28286         false_label.
28287         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
28288         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
28289         new_scop_exit_edge.
28290
28291 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
28292
28293         PR bootstrap/42786
28294         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
28295         cpu types.  Add support for *-sse3 cpu types.
28296         (x86_64-*-*): Ditto.
28297
28298 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28299
28300         PR middle-end/42803
28301         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
28302         argument, call initializer_constant_valid_p_1 instead of
28303         initializer_constant_valid_p, pass CACHE to it, return NULL
28304         immediately if first call returns NULL.
28305         (initializer_constant_valid_p_1): New function.
28306         (initializer_constant_valid_p): Use it.
28307
28308 2010-01-20  Thomas Quinot  <quinot@adacore.com>
28309
28310         * tree.def (PLACEHOLDER_EXPR): Fix comment.
28311
28312 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28313
28314         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
28315         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
28316         (loc_list_from_tree): Don't handle unsigned division.  Handle
28317         signed modulo using DW_OP_{over,over,div,mul,minus}.
28318         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
28319         modulo instead of signed.
28320
28321 2010-01-20  DJ Delorie  <dj@redhat.com>
28322
28323         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
28324         (Fpa): Pass it
28325         (h8300_emit_stack_adjustment): Propogate it.
28326         (push): Pass it.
28327         (h8300_expand_prologue): Likewise.
28328         (h8300_expand_epilogue): Likewise.
28329
28330 2010-01-19  Michael Matz  <matz@suse.de>
28331
28332         PR tree-optimization/41783
28333         * tree-data-ref.c (toplevel): Include flags.h.
28334         (dump_data_dependence_relation):  Also dump the inputs if the
28335         result will be unknown.
28336         (split_constant_offset_1): Look through some conversions.
28337         * tree-predcom.c (determine_roots_comp): Restart a new chain if
28338         the offset from last element is too large.
28339         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
28340         (reassociate_to_the_same_stmt): Handle vector registers.
28341         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
28342         (e.g. conversions).
28343         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
28344         wide_prolog_niters argument, emit widening instructions.
28345         (vect_do_peeling_for_alignment): Adjust caller, use widened
28346         variant of the iteration cound.
28347         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
28348
28349 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28350
28351         PR target/38697
28352         * config/arm/neon-testgen.m (emit_automatics): New parameter
28353         features. Adjust for Fixed_return_reg feature.
28354         (test_intrinsic): Call emit_automatics with new feature.
28355         * config/arm/neon.ml: Update copyright years.
28356         (features): New Fixed_return_reg feature.
28357         (ops): Update feature for Vget_low.
28358
28359 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
28360
28361         PR tree-optimization/42719
28362         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
28363         stmt uses.
28364
28365         PR debug/42728
28366         * fwprop.c (all_uses_available_at): Return false if def_set dest
28367         is a REG that is used in def_insn.
28368
28369 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
28370
28371         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
28372
28373         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
28374         Add argument names.
28375
28376         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
28377
28378         * target.h (struct gcc_target) <secondary_reload>: Change type
28379         of last argument to secondary_reload_info *.
28380
28381 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
28382
28383         PR target/42774
28384         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
28385         memory references with unaligned offsets.  Remove CQImode handling.
28386         (unaligned_memory_operand): Return 1 for memory references with
28387         unaligned offsets.  Remove CQImode handling.
28388
28389 2010-01-18  Richard Guenther  <rguenther@suse.de>
28390
28391         PR middle-end/39954
28392         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
28393         builtin calls.
28394
28395 2010-01-18  Richard Guenther  <rguenther@suse.de>
28396
28397         PR tree-optimization/42781
28398         * tree-ssa-structalias.c (find_what_var_points_to): Skip
28399         restrict processing only if the original variable was artificial.
28400
28401 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
28402
28403         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
28404         find number of popped argument bytes.
28405
28406         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
28407         Fix the text that describes the return value for invalid insns.
28408
28409         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
28410
28411         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
28412         Clarify what 'cost of the -dependence' is.  Fix quoting.
28413
28414         * toplev.c (default_get_pch_validity): Rename argument to "sz".
28415         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
28416
28417 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
28418
28419         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28420         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
28421
28422 2010-01-17  Richard Guenther  <rguenther@suse.de>
28423
28424         PR middle-end/42248
28425         * function.c (split_complex_args): Take a VEC to modify.
28426         (assign_parms_augmented_arg_list): Build a VEC instead of
28427         a chain of PARM_DECLs.
28428         (assign_parms_unsplit_complex): Take a VEC of arguments.
28429         Do not fixup unmodified parms.
28430         (assign_parms): Deal with the VEC.
28431         (gimplify_parameters): Likewise.
28432
28433 2010-01-17  Richard Guenther  <rguenther@suse.de>
28434
28435         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
28436         node existence check.
28437         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
28438         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
28439         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
28440         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
28441         (gimple_execute_on_growing_pred): Likewise.
28442
28443 2010-01-17  Richard Guenther  <rguenther@suse.de>
28444
28445         PR tree-optimization/42773
28446         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28447         (compute_antic_aux): Likewise.
28448         (compute_partial_antic_aux): Likewise.
28449
28450 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
28451
28452         PR debug/42767
28453         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28454         and US_TRUNCATE.
28455
28456 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
28457
28458         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28459         appearance.
28460
28461         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28462         Fix markup for strict argument.
28463
28464         (TARGET_SCHED_REORDER2): Fix argument types.
28465
28466         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28467         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28468
28469         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28470         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28471
28472         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28473         Add argument name.
28474
28475         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28476         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28477         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28478         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28479         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28480
28481         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28482
28483         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28484
28485         (TARGET_ASM_RELOC_RW_MASK): Add return type.
28486         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28487
28488         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28489
28490         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28491         Use prototype.
28492
28493         (TARGET_ASM_NAMED_SECTION): Fix argument list.
28494
28495         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28496         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28497
28498         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28499
28500         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28501
28502         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28503         referring to it.  Fix language.
28504
28505         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28506
28507         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28508
28509         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28510
28511         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28512
28513         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28514         '@var{stream}.  Remove stray 'and'.
28515
28516         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28517
28518         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28519
28520         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28521
28522         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28523         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28524
28525         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28526         Fix description of return value.
28527         Rename argument "sz" to "len."
28528
28529         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28530         Clarify meaning of 'true' return value.
28531
28532         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28533
28534         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28535         rep_mode versus mode_rep.
28536
28537         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28538
28539         (TARGET_BUILTIN_DECL): Fix name.
28540
28541         (TARGET_COMMUTATIVE_P): Fix type of first argument.
28542
28543         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28544
28545         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28546
28547         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28548
28549         (TARGET_RELAXED_ORDERING): Use @deftypevr.
28550
28551         (TARGET_GET_DRAP_RTX): Note that this is a hook.
28552         Clarify language.
28553
28554         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28555         Rename argument tm_fn to md_fn.
28556
28557         (TARGET_OPTION_PRINT): Fix argument list.
28558
28559 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
28560
28561         PR target/42664
28562         * config/i386/i386.c (ix86_fixup_binary_operands):
28563         Revert FMA4 fixup of operands.
28564
28565 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28566
28567         PR gcc/42525
28568         * Makefile.in (write_entries_to_file, install-plugin):
28569         Use \012 instead of \n with tr.
28570
28571 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
28572
28573         * configure.ac (HAVE_AS_REF): New C macro.
28574         * configure: Regenerate.
28575         * config.in: Likewise.
28576         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28577         if HAVE_AS_REF.
28578         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28579         if HAVE_AS_REF.
28580
28581 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
28582
28583         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28584
28585         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28586
28587         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28588
28589         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28590
28591         (TARGET_IN_SMALL_DATA_P): Fix argument type.
28592
28593         (TARGET_BINDS_LOCAL_P): Fix argument type.
28594
28595         (TARGET_ASM_FILE_END): Use prototype.
28596
28597         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28598
28599         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28600
28601         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28602
28603         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28604
28605         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28606         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28607
28608         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28609         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28610
28611         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28612         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28613         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28614         (TARGET_ADDR_SPACE_CONVERT): Likewise.
28615
28616         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28617
28618         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28619
28620         (TARGET_INIT_BUILTINS): Use prototype.
28621
28622         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28623         Put 'const char *' in braces.  Fix parameter types.
28624         (TARGET_INVALID_CONVERSION): Fix parameter types.
28625         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28626         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28627
28628         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28629         Fix argument type.
28630
28631         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28632
28633         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28634
28635 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
28636
28637         * doc/tm.texi (TARGET_HELP): Fix return type.
28638
28639         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28640         in braces.  Fix argument types.
28641
28642         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28643
28644         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28645
28646         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28647
28648         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28649         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28650
28651         (TARGET_MANGLE_TYPE): Fix argument types.
28652
28653         (TARGET_IRA_COVER_CLASSES): Use prototype.
28654
28655         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
28656
28657         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28658
28659         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28660
28661         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28662
28663         (TARGET_CALLEE_COPIES): Fix argument types.
28664
28665         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28666
28667         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28668
28669         (TARGET_FUNCTION_VALUE): Fix argument types.
28670
28671         (TARGET_RETURN_IN_MSB): Fix argument type.
28672
28673         (TARGET_RETURN_IN_MEMORY): Fix argument types.
28674
28675         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28676
28677         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28678
28679         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28680         agree with return type.
28681
28682         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28683
28684 2010-01-15  Jing Yu  <jingyu@google.com>
28685
28686         PR rtl-optimization/42691
28687         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28688         a pseudo to a constant and are merged, and adjust comments.
28689
28690 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28691
28692         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28693
28694 2010-01-15  Richard Guenther  <rguenther@suse.de>
28695
28696         PR middle-end/42739
28697         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28698         labels of computed or non-local gotos to the destination.
28699         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28700         landing pad label is the first label.
28701
28702 2010-01-15  Richard Guenther  <rguenther@suse.de>
28703
28704         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28705
28706 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28707
28708         PR target/42747
28709         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28710         to allow generation of the xssqrtdp instruction on power7.
28711         (sqrtdf2_fpr): Ditto.
28712
28713 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28714
28715         PR middle-end/42674
28716         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28717         functions with noreturn attribute.
28718
28719         PR c++/42608
28720         * varasm.c (declare_weak): Add weak attribute to decl if it
28721         doesn't have one already.
28722         (assemble_external): Only add decls to weak_decls if they also
28723         have weak attribute.
28724
28725 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
28726
28727         * var-tracking.c (var_reg_delete): Don't delete the association
28728         between REGs and values or one-part variables if the register
28729         isn't clobbered.
28730
28731 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28732
28733         PR debug/42657
28734         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28735         because its first operand is a non-localized variable.
28736
28737 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28738
28739         PR tree-optimization/42706
28740         * tree-sra.c (encountered_recursive_call): New variable.
28741         (encountered_unchangable_recursive_call): Likewise.
28742         (sra_initialize): Initialize both new variables.
28743         (callsite_has_enough_arguments_p): New function.
28744         (scan_function): Call decl and flags check only for IPA-SRA, check
28745         whether there is a recursive call and whether it has enough arguments.
28746         (all_callers_have_enough_arguments_p): New function.
28747         (convert_callers): Look for recursive calls only when
28748         encountered_recursive_call is set.
28749         (ipa_early_sra): Bail out either if
28750         !all_callers_have_enough_arguments_p or
28751         encountered_unchangable_recursive_call.
28752
28753 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28754
28755         * sel-sched.c: Add 2010 to copyright years.
28756         * sel-sched-ir.c: Likewise.
28757         * sel-sched-ir.h: Likewise.
28758
28759 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28760
28761         PR tree-optimization/42714
28762         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28763         constructors specially.
28764
28765 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28766
28767         * config/i386/drivers-i386.c (detect_caches_intel):
28768         Add l2sizekb parameter and fill in.
28769         (host_detect_local_cpu): Add l2sizekb, fill in.
28770         Add Atom small cache heuristic.
28771
28772 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28773
28774         * config/i386/drivers-i386.c (detect_caches_cpuid4):
28775         Add level3 parameter and fill in.
28776         (detect_caches_intel): Handle level3 cache.
28777
28778 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28779
28780         * config/i386/drivers-i386.c (host_detect_local_cpu):
28781         Fix core duo detection.
28782
28783 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28784
28785         * config/i386/drivers-i386.c (host_detect_local_cpu):
28786         Fix Atom detection.
28787
28788 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28789
28790         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28791         (rs6000_variable_issue_1): this.  Use...
28792         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
28793
28794 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28795
28796         * sel-sched-ir.c (sel_restore_other_notes): Rename to
28797         sel_restore_notes.  Update all callers.  Call reemit_notes
28798         for all insns.
28799
28800 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28801
28802         PR rtl-optimization/42246
28803         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28804         loops.
28805
28806 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28807
28808         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28809         all successors is the same as number of successors in current region.
28810
28811 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28812
28813         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28814         to rename is not separable.  Otherwise check that its LHS is not NULL.
28815
28816 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28817
28818         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
28819
28820 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28821
28822         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28823         available registers when failed to discover LHS register class.
28824         Fix indentation.  Update comment.
28825
28826 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28827             Alexander Monakov  <amonakov@ispras.ru>
28828
28829         PR rtl-optimization/42389
28830         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28831         to can_issue_more.
28832         (advance_state_on_fence): Likewise.
28833         (sel_target_adjust_priority): Print debug output only when
28834         sched_verbose >= 4, not 2.
28835         (get_expr_cost): Do not issue all unique insns on the next cycle.
28836         (fill_insns): Initialize can_issue_more from the value saved
28837         with the fence.
28838         * sel-sched-ir.c (flist_add): New parameter issue_more.
28839         Init FENCE_ISSUE_MORE with it.
28840         (merge_fences): Likewise.
28841         (init_fences): Update call to flist_add.
28842         (add_to_fences, add_clean_fence_to_fences)
28843         (add_dirty_fence_to_fences): Likewise.
28844         (move_fence_to_fences): Update call to merge_fences.
28845         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28846         sched groups.
28847         * sel-sched-ir.h (struct _fence): New field issue_more.
28848         (FENCE_ISSUE_MORE): New accessor macro.
28849
28850 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28851
28852         PR rtl-optimization/42388
28853         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28854         that have no predecessors nor successors.  Do not call move_bb_info
28855         for empty blocks outside of current region.
28856
28857 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28858
28859         PR rtl-optimization/42294
28860         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28861         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28862         originators' originators.
28863
28864 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28865
28866         PR rtl-optimization/39453
28867         PR rtl-optimization/42246
28868         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28869         for pipelining_p.
28870         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28871
28872 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28873             Alexander Monakov  <amonakov@ispras.ru>
28874
28875         PR middle-end/42245
28876         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28877         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28878         argument.  Update all callers.
28879         (tidy_control_flow): ... and here.  Recompute topological order
28880         of basic blocks in region if necessary.
28881         (sel_redirect_edge_and_branch): Change return type.  Return true
28882         if topological order might have been invalidated.
28883         (purge_empty_blocks): Export and move from...
28884         * sel-sched.c (purge_empty_blocks): ... here.
28885         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28886         (maybe_tidy_empty_bb): Delete prototype.
28887         (purge_empty_blocks): Declare.
28888
28889 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28890
28891         PR rtl-optimization/42249
28892         * sel-sched.c (try_replace_dest_reg): When chosen register
28893         and original register is the same, do not bail out early, but
28894         still check all original insns for validity of replacing destination
28895         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28896         in this case.
28897
28898 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28899
28900         PR c/42721
28901         Port from no-undefined-overflow branch:
28902         2009-03-09  Richard Guenther  <rguenther@suse.de>
28903
28904         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28905
28906 2010-01-14  Richard Guenther  <rguenther@suse.de>
28907
28908         PR lto/42665
28909         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28910
28911 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28912
28913         PR tree-optimization/42709
28914         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28915         as scalar type in creation of constant vector operand.
28916
28917 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28918
28919         PR testsuite/42414
28920         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28921         (check-parallel-%): Match `testsuite' directory component only
28922         at the end.
28923
28924 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28925
28926         PR translation/39521
28927         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28928         strings with _().
28929
28930 2010-01-13  Richard Guenther  <rguenther@suse.de>
28931
28932         PR tree-optimization/42730
28933         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28934         offset zero.
28935
28936 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28937
28938         PR target/pr42542
28939         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28940         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28941         them signed.
28942
28943 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28944
28945         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28946         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28947         ___umulsi3_highpart.
28948
28949         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28950         rather than schedule_insns if the pass is enabled.
28951
28952 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28953
28954         PR tree-optimization/42704
28955         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28956         SSA_NAMEs.
28957
28958 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28959
28960         PR tree-optimization/42703
28961         * tree-sra.c (analyze_access_subtree): Check that we can build a
28962         reference to the original data within the aggregate.
28963
28964 2010-01-13  Richard Guenther  <rguenther@suse.de>
28965
28966         PR tree-optimization/42705
28967         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28968
28969 2010-01-13  Richard Guenther  <rguenther@suse.de>
28970
28971         PR middle-end/42716
28972         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28973
28974 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28975
28976         PR debug/41371
28977         * var-tracking.c (values_to_unmark): New variable.
28978         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28979         values_to_unmark vector.  Moved body to...
28980         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28981         instead queue it into values_to_unmark vector.
28982         (vt_find_locations): Free values_to_unmark vector.
28983
28984 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28985
28986         * config/s390/s390.c (override_options): Set
28987         default of max-pending-list-length to 256
28988
28989 2010-01-13  Richard Guenther  <rguenther@suse.de>
28990
28991         PR lto/42678
28992         * tree-pass.h (PROP_gimple_lcx): New.
28993         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28994         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28995         before the final cleanup_eh.
28996         (dump_properties): Dump PROP_gimple_lcx.
28997         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28998         (tree_lower_complex_O0): Remove.
28999         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
29000         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
29001         tree_lower_complex, schedule TODO_update_ssa.
29002         * lto-streamer-out.c (output_function): Stream the functions
29003         properties.
29004         * lto-streamer-in.c (input_function): Likewise.
29005         (lto_read_body): Do not override them here.
29006
29007 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
29008
29009         PR c/42708
29010         * c-typeck.c (build_c_cast): Fold value cast to union type before
29011         wrapping it in a CONSTRUCTOR.
29012
29013 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29014
29015         PR rtl-optimization/42699
29016         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
29017         involved.
29018
29019 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29020
29021         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29022         SUBTARGET_WARN_UNUSED_SPEC): Move ...
29023         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29024         SUBTARGET_WARN_UNUSED_SPEC): ... here
29025         * config/mips/iris5.h (LIBGCC_SPEC): Define.
29026
29027 2010-01-12  Julian Brown  <julian@codesourcery.com>
29028
29029         * config/arm/neon-schedgen.ml (Utils): Don't try to
29030         open missing module.
29031         (find_with_result): New.
29032
29033 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29034
29035         PR debug/42662
29036         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
29037         sharing when canonicalizing ({lt,ge}u (plus a b) b).
29038
29039         PR tree-optimization/42645
29040         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
29041         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
29042         decl_map, set processing_debug_stmt to -1 and return name without
29043         any remapping.
29044
29045 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
29046
29047         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
29048         binutils version, and reword target configuration description.
29049
29050 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29051
29052         * config/avr/avr.h (LINKER_NAME): Remove.
29053
29054 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
29055
29056         PR target/42416
29057         * config/rs6000/rs6000.c (rs6000_override_options): On targets
29058         that support VSX, warn for -mno-altivec if vsx is not disabled,
29059         and disable vsx.
29060
29061 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
29062             Shujing Zhao  <pearly.zhao@oracle.com>
29063
29064         PR translation/42469
29065         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
29066         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
29067         character between option name and help text.
29068         * c.opt (imultilib): Likewise.
29069
29070 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
29071
29072         * lto-streamer-out.c (output_unreferenced_globals): Output static
29073         variables.
29074
29075 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
29076
29077         PR rtl-optimization/42621
29078         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
29079         optimizing for size.
29080         (duplicate_computed_gotos): Remove now-redundant check.
29081
29082 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
29083
29084         PR target/37454
29085         * configure.ac: Save and restore LDFLAGS and LIBS
29086         * configure: Regenerate.
29087
29088 2010-01-10  Richard Guenther  <rguenther@suse.de>
29089
29090         PR middle-end/42667
29091         * builtins.c (fold_builtin_strlen): Add type argument and
29092         convert the resulting length to it.
29093         (fold_builtin_1): Adjust.
29094
29095 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29096
29097         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
29098         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
29099         1 insn.
29100         (num_insns_constant_wide): Adjust for that change.
29101
29102 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29103
29104         PR debug/42631
29105         * web.c (union_defs): Add used argument, to combine uses of
29106         uninitialized regs.
29107         (entry_register): Adjust type and tests of used argument.
29108         (web_main): Widen used for new use.  Pass it to union_defs.
29109         * df.h (union_defs): Adjust prototype.
29110
29111 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29112
29113         PR debug/42630
29114         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
29115         uses in new incoming argument.  Free body.
29116         (reset_debug_uses_in_loop): New.
29117         (analyze_insn_to_expand_var): Call the latter if the former found
29118         anything.  Fix whitespace.  Reject invalid dest overlaps before
29119         going through all insns in the loop.
29120
29121 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29122
29123         PR debug/42629
29124         * haifa-sched.c (dying_use_p): Debug insns don't count.
29125
29126 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29127
29128         PR middle-end/42363
29129         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
29130         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
29131         (verify_gimple_call): Reject LHS in noreturn calls.
29132
29133 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29134
29135         PR debug/42604
29136         PR debug/42395
29137         * tree-vect-loop-manip.c (adjust_info): New type.
29138         (adjust_vec): New pointer to vector.
29139         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
29140         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
29141         (slpeel_update_phis_for_duplicate_loop): Use them.
29142         (slpeel_update_phi_nodes_for_guard1): Likewise.
29143         (slpeel_update_phi_nodes_for_guard2): Likewise.
29144         (slpeel_tree_peel_loop_to_edge): Likewise.
29145         (vect_update_ivs_after_vectorizer): Likewise.
29146
29147 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29148
29149         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
29150         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
29151
29152 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29153
29154         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
29155         bogus uninitialized warning.
29156
29157 2010-01-09  Richard Guenther  <rguenther@suse.de>
29158
29159         PR middle-end/42512
29160         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
29161         the evolution is compatible with the initial condition.
29162
29163 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29164
29165         * gcc.c (process_command): Update copyright notice dates.
29166         * gcov.c (print_version): Likewise.
29167         * gcov-dump.c (print_version): Likewise.
29168         * mips-tfile.c (main): Likewise.
29169         * mips-tdump.c (main): Likewise.
29170
29171 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29172
29173         PR target/41885
29174         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
29175         (rotlhi3): Delete.
29176         (rotlhi3_8): Delete.
29177         (rotlsi3): Delete.
29178         (rotlsi3_8): Delete.
29179         (rotlsi3_16): Delete.
29180         (rotlsi3_24): Delete.
29181         (rotl<mode>3): New.
29182         (*rotw<mode>3): New.
29183         (*rotb<mode>3): New.
29184         * config/avr/avr.c (avr_rotate_bytes): New function.
29185         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
29186
29187 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
29188
29189         PR target/37454
29190         * configure.ac: Modify -rdynamic check.
29191         * configure: Regenerate.
29192
29193 2010-01-08  DJ Delorie  <dj@redhat.com>
29194
29195         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
29196         register popping order.
29197
29198 2010-01-08  Richard Guenther  <rguenther@suse.de>
29199
29200         PR lto/42528
29201         * c.opt (fsigned-char): Also let LTO handle this option.
29202         (funsigned-char): Likewise.
29203
29204 2010-01-07  Richard Guenther  <rguenther@suse.de>
29205
29206         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
29207         (gimple_op): Likewise.
29208         (gimple_op_ptr): Likewise.
29209         (gimple_assign_set_lhs): Remove gcc_assert.
29210         (gimple_assign_set_rhs1): Likewise.
29211         (gimple_assign_set_rhs2): Likewise.
29212         (gimple_call_set_lhs): Likewise.
29213         (gimple_call_set_fn): Likewise.
29214         (gimple_call_set_fndecl): Likewise.
29215         (gimple_call_fndecl): Likewise.
29216         (gimple_call_return_type): Likewise.
29217         (gimple_call_set_chain): Likewise.
29218         (gimple_call_num_args): Likewise.
29219         (gimple_call_set_arg): Likewise.
29220         (gimple_cond_set_code): Likewise.
29221         (gimple_cond_set_lhs): Likewise.
29222         (gimple_cond_set_rhs): Likewise.
29223         (gimple_cond_set_true_label): Likewise.
29224         (gimple_cond_set_false_label): Likewise.
29225         (gimple_label_set_label): Likewise.
29226         (gimple_goto_set_dest): Likewise.
29227         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
29228         (gimple_debug_bind_get_value): Likewise.
29229         (gimple_debug_bind_get_value_ptr): Likewise.
29230         (gimple_debug_bind_set_var): Likewise.
29231         (gimple_debug_bind_set_value): Likewise.
29232         (gimple_debug_bind_reset_value): Likewise.
29233         (gimple_debug_bind_has_value_p): Likewise.
29234         (gimple_return_retval_ptr): Remove gcc_assert.
29235         (gimple_return_retval): Likewise.
29236         (gimple_return_set_retval): Likewise.
29237         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
29238         (safe_referenced_var_iterator): Remove.
29239         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
29240         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
29241         (fill_referenced_var_vec): Remove.
29242         (first_readonly_imm_use): Remove redundant gcc_assert.
29243         (phi_arg_index_from_use): Combine gcc_asserts.
29244         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
29245         (first_imm_use_stmt): Remove redundant gcc_assert.
29246         * tree-cfg.c (verify_gimple_call): Verify function and chain
29247         operands.  Verify arguments.
29248         (verify_types_in_gimple_stmt): Verify condition code and labels.
29249
29250 2010-01-07  Richard Guenther  <rguenther@suse.de>
29251
29252         PR tree-optimization/42641
29253         * sese.c (rename_map_elt_info): Use the SSA name version, do
29254         not hash pointers.
29255
29256 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
29257
29258         PR tree-optimization/42625
29259         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
29260         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
29261
29262 2010-01-07  Duncan Sands  <baldrick@free.fr>
29263
29264         * Makefile.in (PLUGIN_HEADERS): Add version.h.
29265
29266 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
29267
29268         PR target/42511
29269         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
29270         note itself is not function_invariant_p.
29271
29272 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
29273
29274         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
29275         Do not add the DF_NOTE problem.
29276         * store-motion.c (execute_rtl_store_motion): Likewise.
29277
29278 2010-01-07  Martin Jambor  <mjambor@suse.cz>
29279
29280         PR tree-optimization/42157
29281         * tree-sra.c (compare_access_positions): Stabilize sort if both
29282         accesses have integer types, return zero immediately if they are the
29283         same.
29284
29285 2010-01-06  Richard Henderson  <rth@redhat.com>
29286
29287         PR middle-end/41883
29288         * haifa-sched.c (add_to_note_list): Merge into ...
29289         (concat_note_lists): ... here, and ...
29290         (unlink_other_notes, rm_other_notes): Merge into...
29291         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
29292         NOTE_INSN_EPILOGUE_BEG.
29293
29294 2010-01-06  Richard Guenther  <rguenther@suse.de>
29295
29296         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
29297         not inline regular functions into always-inline functions.
29298
29299 2010-01-06  Nick Clifton  <nickc@redhat.com>
29300
29301         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
29302         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
29303         used together.
29304         (OVERRIDE_OPTIONS): Delete.
29305         (OPTIMIZATION_OPTIONS): Define.
29306         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
29307         * config/rx/rx.c (rx_handle_option): Issue an error message if
29308         -mcpu=rx200 and -fpu are used together.
29309         (rx_set_optimization_options): New function.  Issue an error
29310         message if an optimization attribute attempts to reset the FPU/
29311         math optimization pairing.
29312         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
29313         * config/rx/rx.opt: Set the default to 32-bit doubles.
29314         * config/rx/t-rx: Add multilibs for -nofpu option.
29315         * doc/invoke.texi: Update documentation of RX options.
29316
29317 2010-01-06  Richard Guenther  <rguenther@suse.de>
29318
29319         * tree-ssa-pre.c (name_to_id): New global.
29320         (alloc_expression_id): Simplify SSA name handling.
29321         (lookup_expression_id): Likewise.
29322         (init_pre): Zero name_to_id.
29323         (fini_pre): Free it.
29324
29325 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
29326
29327         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
29328
29329 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
29330
29331         PR target/42542
29332         * config/i386/sse.md (smaxv2di3): New.
29333         (umaxv2di3): Likewise.
29334         (sminv2di3): Likewise.
29335         (uminv2di3): Likewise.
29336
29337 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29338
29339         PR target/42564
29340         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
29341         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
29342         (legitimize_tls_address): Likewise.
29343         (sparc_tls_referenced_p): Likewise.
29344         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
29345         and adjust calls to legitimize_pic_address.
29346         (legitimate_constant_p) Use sparc_tls_referenced_p.
29347         (legitimate_pic_operand_p): Likewise.
29348         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
29349         (sparc_tls_symbol_ref_1): Delete.
29350         (sparc_tls_referenced_p): Make static, recognize specific patterns.
29351         (legitimize_tls_address): Make static, handle CONST patterns.
29352         (legitimize_pic_address): Make static, remove unused parameter and
29353         adjust recursive calls.
29354         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
29355         and adjust call to legitimize_pic_address.
29356         (sparc_output_mi_thunk): Likewise.
29357
29358 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
29359             H.J. Lu  <hongjiu.lu@intel.com>
29360
29361         PR target/42542
29362         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
29363         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
29364         operands to make them signed.
29365
29366         Revert:
29367         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29368
29369         PR target/42542
29370         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29371         GTU to GT for V4SI and V2DI.
29372
29373         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29374         (umin<mode>3): Removed.
29375         (uminv8hi3): New.
29376         (uminv4si3): Likewise.
29377
29378 2010-01-05  Martin Jambor  <mjambor@suse.cz>
29379
29380         PR tree-optimization/42462
29381         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
29382         current_function_decl to helper functions and macros.
29383
29384 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29385
29386         PR bootstrap/41771
29387         * flags.h: Don't include real.h.
29388         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
29389         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
29390         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
29391         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
29392         * dominance.c: Update copyright.
29393         * gimple.c (walk_gimple_op): Remove inline.
29394         * tree-ssa-reassoc.c: Include real.h.
29395         * Makefile.in (FLAGS_H): Remove $(REAL_H).
29396         (tree-ssa-reassoc.o): Depend on $(REAL_H).
29397
29398 2010-01-05  Nick Clifton  <nickc@redhat.com>
29399
29400         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
29401         register to push into the stack frame when the accumulator has to
29402         be saved during interrupts.
29403
29404 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
29405
29406         * doc/invoke.texi: Remove the documentation about option
29407         -Wunreachable-code.
29408         * common.opt (Wunreachable-code):  Preserved for backward
29409         compatibility.
29410         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
29411         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
29412         the backward compatibility flag section.
29413
29414 2010-01-05  Richard Guenther  <rguenther@suse.de>
29415
29416         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
29417
29418 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
29419
29420         PR other/42611
29421         * cfgexpand.c (expand_one_var): Diagnose too large variables.
29422
29423         PR tree-optimization/42508
29424         * tree-sra.c (convert_callers): Check for recursive call
29425         by comparing cgraph nodes instead of decls.
29426         (modify_function): Call ipa_modify_formal_parameters also
29427         on all same_body aliases.
29428
29429         * cgraphunit.c (cgraph_materialize_all_clones): Compare
29430         cgraph nodes when checking for same_body aliases.
29431
29432 2010-01-05  Richard Guenther  <rguenther@suse.de>
29433
29434         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
29435         allocation and lookup.
29436         (get_or_alloc_expr_for_constant): Likewise.
29437         (phi_translate): Sink allocation.
29438
29439 2010-01-04  Richard Guenther  <rguenther@suse.de>
29440
29441         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
29442         a new entry only if needed.
29443         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
29444         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29445         hashtable lookup.
29446         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29447         the result array.
29448         (phi_translate): Handle CONSTANTs early.
29449
29450 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29451
29452         PR tree-optimization/42398
29453         * tree-sra.c (struct access): Removed flag grp_different_types.
29454         (dump_access): Do not dump the removed flag.
29455         (sort_and_splice_var_accesses): Do not set the removed flag.
29456         (sra_modify_expr): Check for type compatibility directly.
29457
29458 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29459
29460         PR tree-optimization/42366
29461         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29462         edges with variable number of parameters.
29463         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29464         flag instead of asserting it.
29465         (ipa_read_node_info): Read uses_analysis_done flag.
29466
29467 2010-01-04  Richard Guenther  <rguenther@suse.de>
29468
29469         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29470         iterative_hash_* as intended.
29471         (vn_reference_compute_hash): Likewise.  Simplify hashing
29472         SSA names.
29473         (vn_reference_lookup_2): Likewise.
29474         (vn_nary_op_compute_hash): Likewise.
29475         (vn_phi_compute_hash): Likewise.
29476         (expressions_equal_p): Remove strange code.
29477         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29478         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
29479         (bitmap_insert_into_set_1): Take value-id as parameter.
29480         (add_to_value): Pass it.
29481         (bitmap_insert_into_set): Likewise.
29482         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
29483
29484 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
29485
29486         PR driver/42442
29487         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29488         (do_self_spec): For switches with SWITCH_IGNORE set set also
29489         SWITCH_IGNORE_PERMANENTLY.
29490         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29491         of SWITCH_IGNORE.
29492
29493 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
29494
29495         * lto-streamer-out.c (output_unreferenced_globals): Output the full
29496         tree of an unreferenced global var.
29497
29498 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29499
29500         PR target/42542
29501         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29502         GTU to GT for V4SI and V2DI.
29503
29504         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29505         (umin<mode>3): Removed.
29506         (uminv8hi3): New.
29507         (uminv4si3): Likewise.
29508
29509 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29510
29511         PR lto/42581
29512         * collect2.c (main): Turn on trace in collect2 if -v is passed
29513         to gcc with LTO.
29514
29515 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
29516
29517         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
29518         description of expression operand.
29519
29520 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
29521
29522         * configure.ac: Add install-html to target_list for Make-hooks.
29523         * configure: Regenerate.
29524         * fortran/Make-lang.in (F95_HTMLFILES): New.
29525         (fortran.html): Use it.
29526         (fortran.install-html): New.
29527         * Makefile.in (install-html): Add lang.install-html.
29528         * java/Make-lang.in (JAVA_HTMLFILES): New.
29529         (java.html): Use it.
29530         (java.install-html): New.
29531         * objc/Make-lang.in (objc.install-html): New.
29532         * objcp/Make-lang.in (obj-c++.install-html): New.
29533         * cp/Make-lang.in (c++.install-html): New.
29534         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29535         * lto/Make-lang.in (lto.install-html): New.
29536
29537 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29538
29539         PR lto/42520
29540         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29541
29542 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29543
29544         PR rtl-optimization/41862
29545         * store-motion.c (store_killed_in_insn, compute_store_table,
29546         remove_reachable_equiv_notes, replace_store_insn,
29547         build_store_vectors): Ignore all DEBUG_INSNs.
29548
29549 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29550
29551         PR lto/41564
29552         * common.opt: Add dumpdir.
29553
29554         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29555         isn't specified.
29556         (option_map): Add --dumpdir.
29557
29558         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29559
29560         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29561
29562         * opts.c (decode_options): Try dump_dir_name first if
29563         dump_base_name isn't an absolute path.
29564         (common_handle_option): Handle OPT_dumpdir.
29565
29566         * toplev.c (dump_dir_name): New.
29567         (print_switch_values): Also ignore -dumpdir.
29568
29569         * toplev.h (dump_dir_name): New.
29570
29571 2010-01-03  Richard Guenther  <rguenther@suse.de>
29572
29573         PR tree-optimization/42589
29574         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29575         double-word expansion of bswap32.
29576
29577 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29578
29579         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29580         with BLOCK_FOR_INSN.
29581         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29582         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29583         noce_process_if_block): Likewise.
29584         * gcse.c (compute_local_properties, insert_expr_in_table,
29585         insert_set_in_table, canon_list_insert, find_avail_set,
29586         pre_insert_copy_insn): Likewise.
29587
29588         * basic-block.h (BLOCK_NUM): Move from here...
29589         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29590
29591 2010-01-03  Richard Guenther  <rguenther@suse.de>
29592
29593         PR tree-optimization/42438
29594         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29595         contains_may_not_return_call flag.
29596         (BB_MAY_NOTRETURN): New.
29597         (valid_in_sets): Trapping nary operations are not valid
29598         in blocks that may not return.
29599         (insert_into_preds_of_block): Remove check for trapping expressions.
29600         (compute_avail): Compute also BB_MAY_NOTRETURN.
29601
29602 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
29603
29604         * doc/invoke.texi: Add 2010 to copyright years.
29605
29606 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29607
29608         * config/sparc/sparc.c: Fix formatting nits.
29609
29610 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
29611             Alexander Monakov  <amonakov@ispras.ru>
29612
29613         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29614
29615 2010-01-02  Richard Guenther  <rguenther@suse.de>
29616
29617         PR middle-end/42577
29618         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29619         (simplify_switch_using_ranges): Mark to be removed edges
29620         as non-executable.
29621
29622 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29623
29624         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29625
29626         * collect2.c (scan_libraries): Add missing argument in call to
29627         scan_prog_file.
29628
29629 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
29630
29631         PR target/42448
29632         * config/alpha/predicates.md (aligned_memory_operand): Return false
29633         for CQImode.
29634         (unaligned_memory_operand): Return true for CQImode.
29635         * config/alpha/alpha.c (get_aligned_mem): Assert that location
29636         doesn not cross aligned SImode word boundary.
29637
29638 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
29639
29640         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29641         Remove.
29642         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29643         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29644
29645 2010-01-02  Richard Guenther  <rguenther@suse.de>
29646
29647         PR lto/41597
29648         * toplev.c (compile_file): Emit LTO marker properly.  Change
29649         it to __gnu_lto_v1.
29650         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29651
29652 2010-01-01  Richard Guenther  <rguenther@suse.de>
29653
29654         PR debug/42455
29655         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29656
29657 2010-01-01  Richard Guenther  <rguenther@suse.de>
29658
29659         PR c/42570
29660         * c-decl.c (grokdeclarator): For zero-size arrays force
29661         structural equality checks as layout_type does.
29662
29663 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29664
29665         * builtins.c: Update copyright to 2010.
29666
29667 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29668
29669         PR lto/42531
29670         * lto-streamer-out.c (produce_asm): Revert the last change.
29671         (copy_function): Likewise.
29672
29673         * lto-streamer.c (lto_get_section_name): Skip any leading
29674         asterisk in name.
29675
29676 2010-01-01  Richard Guenther  <rguenther@suse.de>
29677
29678         PR middle-end/42559
29679         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29680         for LABEL_DECLs.
29681
29682 \f
29683 Copyright (C) 2010 Free Software Foundation, Inc.
29684
29685 Copying and distribution of this file, with or without modification,
29686 are permitted in any medium without royalty provided the copyright
29687 notice and this notice are preserved.