* config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
[official-gcc.git] / gcc / ChangeLog
blob76c269144f6145de96b68d70f969cd0e227767d9
1 2010-10-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4         define_builtin_std where it's unnecessary.
5         * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
7 2010-10-06  Anatoly Sokolov  <aesok@post.ru>
9         * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
10         * doc/tm.texi.in: Regenerate.
11         * system.h (CLASS_LIKELY_SPILLED_P): Poison.
12         * targhooks.c (default_class_likely_spilled_p): Don't use the 
13         CLASS_LIKELY_SPILLED_P macro.
15         * config\arm\arm.md: Update comment.
17 2010-10-06  Jan Hubicka  <jh@suse.cz>
19         * ipa.c (cgraph_remove_unreachable_nodes): External references can always
20         be removed.
21         (cgraph_externally_visible_p): We can not bring local comdats that are known
22         to linker; fix handling of internal visibility.
23         (function_and_variable_visibility): Likewise.
25 2010-10-06  Eric Botcazou  <ebotcazou@adacore.com>
27         PR rtl-optimization/45394
28         * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
29         (struct rtx_subst_pair): Remove AFTER field.
30         (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
31         (propagate_for_debug): Remove MOVE parameter and adjust.
32         (try_combine): In the special case where I2 is a PARALLEL, combine only
33         destinations of SETs and set I2SRC to the I2 source.
34         Adjust calls to propagate_for_debug throughout.
35         * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
36         insns.
38 2010-10-06  Olivier Hainque  <hainque@adacore.com>
40         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
41         switch on insn codes as sequence of ifs.
43 2010-10-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
45         * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
46         be UI_NONE for picochip.
47         (picochip_option_override): Do not disable exception flags.
48         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
49         Declare.
51 2010-10-06  Richard Guenther  <rguenther@suse.de>
53         * Makefile.in (regmove.o): Depend on $(TARGET_H).
55 2010-10-06  Nicola Pero  <nicola.pero@meta-innovation.com>
57         Implemented fast enumeration for Objective-C.   
58         * c-parser.c (objc_could_be_foreach_context): New.
59         (c_lex_one_token): Recognize RID_IN keyword in a potential
60         Objective-C foreach context.
61         (c_parser_declaration_or_fndef): Added parameter.  Accept
62         Objective-C RID_IN keyword as terminating a declaration; in that
63         case, return the declaration in the new parameter.
64         (c_parser_extenral_declaration): Updated calls to
65         c_parser_declaration_or_fndef.
66         (c_parser_declaration_or_fndef): Same change.
67         (c_parser_compound_statement_nostart): Same change.
68         (c_parser_label): Same change.
69         (c_parser_objc_methodprotolist): Same change.
70         (c_parser_omp_for_loop): Same change.
71         (c_parser_for_statement): Detect and parse Objective-C foreach
72         statements.
73         (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
74         * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
75         fast enumeration parsing code to turn off the c99 error but still
76         perform checks on the loop declarations.
77         * c-tree.h (check_for_loop_decls): Updated declaration.
78         * doc/objc.texi: Document fast enumeration.
79         
80 2010-10-06  Nick Clifton  <nickc@redhat.com>
82         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by
83         one.
84         (MDR_REGNUM): Define.
85         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed
86         register.
87         (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
88         (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
89         (REGISTER_NAMES): Add MDR.
90         (DWARF2_DEBUGGING_INFO): Define to 1.
91         * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
92         (F): New function.  Sets RTX_FRAME_RELATED_P.
93         (mn10300_gen_multiple_store): Use F.
94         (expand_prologue): Use F.  Use gen_movsf() to push floating
95         point registers.
96         (expand_epilogue): Use gen_movsf() to pop floating point
97         registers.
98         (mn10300_option_override): Disable combine stack adjust pass.
100 2010-10-06  Thomas Schwinge  <thomas@schwinge.name>
102         PR target/45901
103         * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
104         LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
106 2010-10-06  Jakub Jelinek  <jakub@redhat.com>
108         * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
109         BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
110         BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
111         BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
112         BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
113         BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
114         BUILT_IN_TOUPPER): Mark as leaf.
116         PR middle-end/45838
117         * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
118         BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
119         BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
120         BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
121         BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
122         BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
123         Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
125 2010-10-05  Anatoly Sokolov  <aesok@post.ru>
127         * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
128         * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
129         (m68hc11_class_likely_spilled_p): New function.
131 2010-10-05  Nicola Pero  <nicola.pero@meta-innovation.com>
133         * c-parser.c (c_parser_objc_method_definition): Updated comment.
135 2010-10-05  Jan Hubicka  <jh@suse.cz>
137         * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
138         Document.
139         * opts.c (decode_options): Handle lto partitions.
140         * common.opt (flto-partition=1to1, flto-partition=balanced): New.
141         * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
143 2010-10-05  Jan Hubicka  <jh@suse.cz>
145         * cgraphunit.c (assemble_function): Output thunks and aliases before
146         the function itself.
148 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
150         * config/picochip/picochip.c (picochip_option_override): Disable
151         exception flags for picochip.
153 2010-10-05  Joseph Myers  <joseph@codesourcery.com>
155         * opts-common.c (handle_option, handle_generated_option,
156         read_cmdline_option, set_option): Add diagnostic_context
157         parameter.  Update calls among these functions.
158         (set_option): Don't use global_dc.
159         * opts.c (read_cmdline_options): Pass global_dc to
160         read_cmdline_option.
161         (decode_options): Pass global_dc to enable_warning_as_error.
162         (common_handle_option): Pass global_dc to enable_warning_as_error.
163         (enable_warning_as_error): Add diagnostic_context parameter.
164         Document parameters.  Don't use global_dc.  Pass
165         diagnostic_context parameter to handle_generated_option.
166         * opts.h (set_option, handle_option, handle_generated_option,
167         read_cmdline_option, enable_warning_as_error): Add
168         diagnostic_context parameter.
169         * Makefile.in (lto-opts.o): Update dependencies.
170         * coretypes.h (struct diagnostic_context, diagnostic_context):
171         Declare here.
172         * diagnostic.h (diagnostic_context): Don't declare typedef here.
173         * gcc.c (process_command): Pass global_dc to read_cmdline_option.
174         * langhooks-def.h (struct diagnostic_context): Don't declare here.
175         (lhd_print_error_function, lhd_initialize_diagnostics): Declare
176         using diagnostic_context typedef.
177         * langhooks.c (lhd_initialize_diagnostics): Declare using
178         diagnostic_context typedef.
179         * langhooks.h (struct diagnostic_context): Don't declare here.
180         (initialize_diagnostics, print_error_function): Declare using
181         diagnostic_context typedef.
182         * lto-opts.c: Include diagnostic.h.
183         (lto_reissue_options): Pass global_dc to set_option.  Pass
184         DK_UNSPECIFIED not 0.
185         * plugin.c (plugins_internal_error_function): Declare using
186         diagnostic_context typedef.
187         * plugin.h (struct diagnostic_context): Don't declare here.
188         (plugins_internal_error_function): Declare using
189         diagnostic_context typedef.
191 2010-10-05  Olivier Hainque  <hainque@adacore.com>
192             Nicolas Roche  <roche@adacore.com>
194         * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
195         * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
197 2010-10-05  Ira Rosen  <irar@il.ibm.com>
199         PR tree-optimization/45752
200         * tree-vect-slp.c (vect_get_mask_element): Remove static
201         variables, make them function arguments.
202         (vect_transform_slp_perm_load): Pass new arguments to
203         vect_get_mask_element.
205 2010-10-05  Richard Guenther  <rguenther@suse.de>
207         * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
208         (gimple_mod_pow2): Likewise.
209         (gimple_mod_subtract): Likewise.
210         (gimple_ic): Likewise.
211         (gimple_stringop_fixed_value): Likewise.
212         * tree-profile.c (tree_init_edge_profiler): Mark profile
213         functions nothrow and leaf.
214         (add_abnormal_goto_call_edges): Remove.
215         (tree_gen_edge_profiler): Work on SSA form.
216         (tree_gen_ic_profiler): Likewise.  Simplify.
217         (do_tree_profiling): Update SSA form.
218         (pass_tree_profile): Remove.
219         (do_tree_profiling): Likewise.
220         (gate_tree_profile_ipa): New function.
221         (pass_ipa_tree_profile): New.
222         (tree_profiling): Re-write as IPA pass.  Properly drop const/pure
223         state of instrumented functions.
224         * passes.c (init_optimization_passes): Remove early non-SSA
225         inlining.  Move profiling after early optimizations.
226         * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
227         (pass_ipa_early_inline): Likewise.
228         * tree-pass.h (pass_ipa_early_inline): Remove.
229         (pass_tree_profile): Likewise.
230         (pass_ipa_tree_profile): Declare.
232 2010-10-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
233             Christian Borntraeger  <Christian.Borntraeger@de.ibm.com>
235         * gcc/config/s390/s390.c (z196_cost): New.
236         (s390_handle_arch_option): Add -march=z196.
237         (s390_option_override): Use the new cost function and use the z10
238         defaults also for z196.
239         (legitimate_reload_constant_p): Adjust comment.
240         (legitimate_reload_fp_constant_p): New function.
241         (s390_preferred_reload_class): Distingiush between FP and Int constants.
242         (preferred_la_operand_p): Avoid la with index on z196.
243         (s390_adjust_priority): Trigger also for z196.
244         (s390_issue_rate): Issue rate for z196 is 3.
245         (s390_z10_fix_long_loop_prediction): Rename to ...
246         (s390_fix_long_loop_prediction): ... this.
247         (s390_reorg): Apply the z10 adjustments also for z196.
248         (s390_loop_unroll_adjust): Do this also for z196.
249         * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
250         (enum processor_flags): Add PF_Z196.
251         (TARGET_AVOID_CMP_AND_BRANCH): New macro.
252         (TARGET_CPU_Z196, TARGET_Z196): New macros.
253         * gcc/config.gcc: Enable z196 for --with-arch.
254         * gcc/config/s390/2817.md: New file.
255         * gcc/config/s390/2084.md: New type for multiply and add.
256         * gcc/config/s390/2097.md: Likewise.
257         * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
258         (UNSPECV_ATOMIC_OP): New constants.
259         (fmadddf, fmaddsf): New values for type attribute.
260         (z196prop): New insn attribute.
261         (cpu, cpu_facility): Add z196.
262         (ATOMIC_Z196): New code iterator.
263         (noxa): New code attribute.
264         (gk): New mode attribute.
265         (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
266         Support load zero for fp constants.
267         (fixuns_truncdddi2, fixuns_trunctddi2)
268         (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
269         for z196.
270         (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
271         (popcounthi2, popcountqi2): New expander.
272         (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
273         (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
274         (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
275         insn definition.
276         (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
277         (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
278         (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc, *sub<mode>3)
279         (*sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly, *sub<mode>3_cc)
280         (*sub<mode>3_cc2, *sub<mode>3_cconly, *sub<mode>3_cconly2)
281         (*anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc, *andsi3_cconly)
282         (*andsi3_zarch, *andsi3_esa, *andhi3_zarch, *andqi3_zarch, *iordi3_cc)
283         (*iordi3_cconly, *iordi3, *iorsi3_cc, *iorsi3_cconly, *iorsi3_zarch)
284         (*iorhi3_zarch, *iorqi3_zarch, *xordi3_cc, *xordi3_cconly, *xordi3)
285         (*xorsi3_cc, *xorsi3_cconly, *xorsi3, *xorhi3, *xorqi3, *<shift><mode>3)
286         (*<shift><mode>3_and, *ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
287         (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
288         Support new z196 instructions.
290 2010-10-05  Richard Guenther  <rguenther@suse.de>
292         PR middle-end/45877
293         * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
294         case where gimplification optimizes away the stmt.
296 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
298         PR debug/45849
299         * var-tracking.c (strip_pointer_flags): New function.
300         (emit_note_insn_var_location): If rtx_equal_p check failed,
301         retry on locations simplified with simplify_replace_fn_rtx
302         and strip_pointer_flags as its callback.
304 2010-10-04  Jan Hubicka  <jh@suse.cz>
306         * gimple-fold.c (static_object_in_other_unit_p): Rename to...
307         (can_refer_decl_in_current_unit_p): ... this one; reverse return
308         value; handle comdats too.
309         (canonicalize_constructor_val): Use it; handle function_decls
310         correctly.
311         (gimple_fold_obj_type_ref_known_binfo): Likewise.
312         * gimple.c (get_base_address): Accept all kinds of decls.
314 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
316         * flags.h (g_switch_value, g_switch_set): Remove.
317         * opts.c (g_switch_value, g_switch_set): Remove.
318         * config/g.opt (G): Add Var(g_switch_value).
319         * config/alpha/alpha.c (alpha_handle_option): Don't handle -G
320         here.
321         (alpha_option_override): Check global_options_set.x_g_switch_value
322         instead of g_switch_set.
323         (alpha_in_small_data_p): Remove cast in comparison with
324         g_switch_value.
325         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
326         g_switch_value to unsigned HOST_WIDE_INT.
327         * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
328         with g_switch_value.
329         (frv_handle_option): Don't handle -G here.
330         (frv_option_override): Check global_options_set.x_g_switch_value
331         instead of g_switch_set.  Don't modify g_switch_set.
332         (frv_in_small_data_p): Remove cast in comparison with
333         g_switch_value.
334         * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
335         g_switch_value to unsigned HOST_WIDE_INT.
336         * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
337         (ia64_option_override): Check global_options_set.x_g_switch_value
338         instead of g_switch_set.
339         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
340         Remove.
341         (lm32_in_small_data_p): Remove cast in comparison with
342         g_switch_value.
343         * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
344         ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
345         HOST_WIDE_INT.
346         * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
347         (m32r_init): Check global_options_set.x_g_switch_value instead of
348         g_switch_set.
349         (m32r_in_small_data_p): Remove cast in comparison with
350         g_switch_value.
351         (m32r_file_start): Format g_switch_value with %d.
352         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
353         ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned
354         HOST_WIDE_INT.
355         * config/microblaze/microblaze.c (microblaze_handle_option): Don't
356         handle -G here.
357         (microblaze_option_override): Check
358         global_options_set.x_g_switch_value instead of g_switch_set.
359         * config/mips/mips.c (mips_handle_option): Don't handle -G here.
360         (mips_option_override): Check global_options_set.x_g_switch_value
361         instead of g_switch_set.
362         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G
363         here.
364         (rs6000_file_start): Format g_switch_value with %d.
365         (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
366         comparisons with g_switch_value.
367         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
368         global_options_set.x_g_switch_value instead of g_switch_set.
369         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
370         global_options_set.x_g_switch_value instead of g_switch_set.
371         * config/score/score.c (score_handle_option): Don't handle -G
372         here.
373         * config/score/score3.c (score3_option_override): Check
374         global_options_set.x_g_switch_value instead of g_switch_set.
375         * config/score/score7.c (score7_option_override): Check
376         global_options_set.x_g_switch_value instead of g_switch_set.
378 2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
380         * common.opt (fira-coalesce): Remove.
382         * doc/invoke.texi (flag_ira_coalesce): Remove.
384         * ira-color.c (allocno_coalesced_p): Move before
385         copy_freq_compare_func.
386         processed_coalesced_allocno_bitmap): Ditto.
387         (update_conflict_hard_regno_costs): Don't use
388         ALLOCNO_FIRST_COALESCED_ALLOCNO.
389         (allocno_cost_compare_func, print_coalesced_allocno): Remove.
390         (assign_hard_reg): Assume no coalesced allocnos.
391         (get_coalesced_allocnos_attributes): Remove.
392         (bucket_allocno_compare_func): Assume no coalesced allocnos.
393         (push_allocno_to_stack): Ditto.
394         (remove_allocno_from_bucket_and_push): Use
395         ira_print_expanded_allocno instead of print_coalesced_allocno.
396         (push_allocnos_to_stack): Assume uncoalesced allocnos.
397         (all_conflicting_hard_regs_coalesced): Ditto.  Rename to
398         all_conflicting_hard_regs.
399         (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
400         (setup_allocno_left_conflicts_size): Ditto.
401         (put_allocno_into_bucket): Ditto.
402         (copy_freq_compare_func): Remove.
403         (copy_freq_compare_func, merge_allocnos): Move before
404         coalesced_pseudo_reg_freq_compare.
405         coalesced_allocno_conflict_p): Ditto.
406         (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto.  Remove
407         parameter.  Assume it true.
408         (color_allocnos): Assume uncoalesced allocnos.  Use
409         ira_print_expanded_allocno instead of print_coalesced_allocno.
410         (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
411         parameter.
413         * ira.c: Remove comment about coalescing.
415 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
417         * config/mips/mips.h (target_flags_explicit): Declare for
418         GENERATOR_FILE.
420 2010-10-04  Andi Kleen <ak@linux.intel.com>
422         * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
423         gcov-dump, cc1-dummy, genprog, build/gcov-iov):
424         Add + to build rule.
426 2010-10-04  Matthias Klose  <doko@ubuntu.com>
428         * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
429         multilib osdirname if it exists.
430         * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
432 2010-10-04  Jakub Jelinek  <jakub@redhat.com>
434         PR middle-end/45876
435         * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
436         arg0's type or its unsigned counterpart as utype.  Convert
437         arg1 to utype unconditionally.
439 2010-10-04  Julian Brown  <julian@codesourcery.com>
441         * expr.c (expand_assignment): Add assertion to prevent emitting
442         null rtx for movmisalign pattern.
443         (expand_expr_real_1): Likewise.
444         * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
445         (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
446         (arm_vector_alignment_reachable): New.
447         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
448         (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
449         (arm_print_operand): Include alignment qualifier in %A.
450         * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
451         (movmisalign<mode>): New expander.
452         (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
453         insn patterns.
455 2010-10-04  Joseph Myers  <joseph@codesourcery.com>
457         * optc-gen.awk: Define global_options_set.  Don't define
458         target_flags_explicit.
459         * opth-gen.awk: Declare global_options_set.  Define
460         target_flags_explicit as macro.
461         * opts-common.c (handle_option): Take opts_set and generated_p
462         parameters.
463         (handle_generated_option, read_cmdline_option, set_option): Take
464         opts_set parameter.
465         (set_option): Use opts_set instead of hardcoding target_flags and
466         target_flags_explicit.
467         * opts.c (sel_sched_switch_set, profile_arc_flag_set,
468         flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
469         flag_value_profile_transformations_set, flag_peel_loops_set,
470         flag_branch_probabilities_set, flag_inline_functions_set,
471         flag_ipa_cp_set, flag_ipa_cp_clone_set,
472         flag_predictive_commoning_set, flag_unswitch_loops_set,
473         flag_gcse_after_reload_set): Remove.
474         (common_handle_option, lang_handle_option, target_handle_option):
475         Take opts_set parameter.  Assert that it is &global_options_set.
476         (common_handle_option): Don't set _set variables.  Check opts_set
477         instead of such variables.
478         (enable_warning_as_error): Pass &global_options_set to
479         handle_generated_option.
480         * opts.h (cl_option_handler_func.handler, set_option,
481         handle_option, handle_generated_option, read_cmdline_option): Add
482         opts_set parameters.
483         (handle_option): Add generated_p parameter.
484         * config/i386/i386.c (ix86_function_specific_save,
485         ix86_function_specific_restore): Updat for renaming of
486         target_flags_explicit field.
487         * config/i386/i386.opt (target_flags_explicit): Rename to
488         ix86_target_flags_explicit.
489         * config/ia64/ia64.c (ia64_override_options_after_change): Check
490         global_options_set.x_flag_selective_scheduling and
491         global_options_set.x_flag_selective_scheduling2, not
492         sel_sched_switch_set.
493         * flags.h (sel_sched_switch_set,
494         flag_speculative_prefetching_set): Remove.
495         * gcc.c (driver_handle_option): Take opts_set parameter.  Assert
496         that it is &global_options_set.
497         (process_command): Pass &global_options_set to
498         read_cmdline_option.
499         * lto-opts.c (lto_reissue_options): Pass &global_options_set to
500         set_option.
501         * toplev.c (target_flags_explicit): Remove.
503 2010-10-04  Jan Hubicka  <jh@suse.cz>
505         PR middle-end/45871
506         * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
507         use get_ref_base_and_offset to handle references.
508         (fold_const_aggregate_ref): Update.
510 2010-10-04  Martin Jambor  <mjambor@suse.cz>
512         PR tree-optimization/45572
513         * ipa-prop.c (ipa_make_edge_direct_to_target): Call
514         ipa_check_create_node_params.
515         * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
517 2010-10-04  Yao Qi  <yao@codesourcery.com>
519         * doc/passes.texi: Clean up.
521 2010-10-03  Ian Lance Taylor  <iant@google.com>
523         * c-typeck.c (lookup_field): If -fplan9-extensions, permit
524         referring to a field using a typedef name.
525         (find_anonymous_field_with_type): New static function.
526         (convert_to_anonymous_field): New static function.
527         (convert_for_assignment): If -fplan9-extensions, permit converting
528         pointer to struct to pointer to anonymous field.
529         * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous
530         fields.
531         (is_duplicate_field): New static function.
532         (detect_field_duplicates_hash): If -fplan9-extensions, check for
533         typedef names duplicating field names.
534         (detect_field_duplicates): Likewise.
535         * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
536         (C Dialect Options): Document -fplan9-extensions.
537         * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
539 2010-10-03  H.J. Lu  <hongjiu.lu@intel.com>
541         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
542         revision 164914.
543         (vect_create_data_ref_ptr): Likewise.
544         * tree-vect-stmts.c (vectorizable_store): Likewise.
545         (perm_mask_for_reverse): Likewise.
546         (reverse_vec_elements): Likewise.
547         (vectorizable_load): Likewise.
549 2010-10-03  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
551         * cppbuiltin.c: New file.
552         * cppbuiltin.h: New file.
553         * Makefile.in: Take into account cppbuiltin.{h,c}.
555 2010-10-03  Andi Kleen <ak@linux.intel.com>
557         * lto-cgraph.c (input_cgraph): Check for missing sections.
559 2010-10-03  Uros Bizjak  <ubizjak@gmail.com>
561         * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 preticate
562         to nonimmediate_operand.  Force operand 2 to register when allowed.
563         (*<shiftrt_insn><mode>3_mask): Ditto.
564         (*<rotate_insn><mode>3_mask): Ditto.
566 2010-10-02  H.J. Lu  <hongjiu.lu@intel.com>
568         PR tree-optimization/45720
569         PR tree-optimization/45764
570         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
571         Don't accept backwards consecutive accesses.
572         (vect_create_data_ref_ptr): Disallow negative steps.
574         * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
575         (perm_mask_for_reverse): Removed.
576         (reverse_vec_elements): Likewise.
577         (vectorizable_load): Don't handle negative steps.
579 2010-10-02  Jan Hubicka  <jh@suse.cz>
581         * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
582         call destination is known.
584 2010-10-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
586         PR target/45820
587         * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
588         earlier.
590 2010-10-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
592         * doc/install.texi (Configuration): Document build_configargs,
593         host_configargs, target_configargs.
595 2010-10-01  Uros Bizjak  <ubizjak@gmail.com>
597         * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
598         (*<shiftrt_insn><mode>3_mask): Ditto.
599         (*<rotate_insn><mode>3_mask): Ditto.
601 2010-10-01  Steve Ellcey  <sje@cup.hp.com>
603         PR tree-optimization/44716
604         * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
605         (HOT_TEXT_SECTION_NAME): Define.
607 2010-10-01  Nick Clifton  <nickc@redhat.com>
609         * common.opt: Add -fcombine-stack-adjustments.
610         * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
611         * combine-stack-adj.c (gate_handle_stack_adjustments): Check
612         flag_combine_stack_adjustments.
613         * doc/invoke.texi: Document the new option.
615 2010-10-01  Richard Guenther  <rguenther@suse.de>
617         PR tree-optimization/45854
618         * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
620 2010-10-01  Anthony Green  <green@moxielogic.com>
622         * config.gcc: Fix moxie-*-rtems* configuration.
624 2010-10-01  Richard Guenther  <rguenther@suse.de>
626         * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
627         (gen_decl_die): Likewise.
629 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
631         * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
632         to the function code for SPU MD builtins.
633         (spu_expand_builtin): Update.
634         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
636 2010-10-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
638         * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
639         sjlj_except_unwind_info.
641 2010-10-01  Tristan Gingold  <gingold@adacore.com>
643         * configure.ac: Define the nop insn for avr*-*-*
644         * configure: Regenerate.
646 2010-10-01  Alan Modra  <amodra@gmail.com>
648         PR target/45807
649         * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
650         extend toc_restore_insn.
652 2010-09-30  Richard Guenther  <rguenther@suse.de>
654         PR tree-optimization/43959
655         * function.c (gimplify_parameters): Use create_tmp_reg instead of
656         create_tmp_var.
658 2010-09-30  Kaz Kojima  <kkojima@gcc.gnu.org>
660         * config/sh/sh.c (sh_expand_prologue): Set
661         current_function_static_stack_size.
663 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
665         * configure.ac: Check for Solaris 8 ld with .hidden support.
666         * configure: Regenerate.
668 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
670         PR middle-end/45758
671         * graphite.c (graphite_initialize): Call scev_reset.
673 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
675         * sese.h (scev_analyzable_p): Return false for real or floating
676         point.  Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
678 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
680         * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
681         and ps.
682         * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
683         domain.
684         * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
685         Do not allocate ub_expr, it is passed in initialized.
687 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
689         * graphite-clast-to-gimple.c (init_cloog_input_file): New.
690         (build_cloog_prog): Dump CLooG input file when
691         flag_graphite_dump_cloog is set.  This is disabled on trunk.
692         * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
694 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
696         * graphite-clast-to-gimple.c (graphite_verify): Remove call to
697         verify_dominators for CDI_POST_DOMINATORS.
698         * sese.h: Remove comment about CDI_POST_DOMINATORS.
699         (recompute_all_dominators): Remove call to free_dominance_info
700         for CDI_POST_DOMINATORS.  Remove call to calculate_dominance_info
701         for CDI_POST_DOMINATORS.
703 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
705         * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
706         over pbb_dim_iter_domain.
708 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
710         * graphite-flattening.c: Fix comments.
712 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
714         * Makefile.in (OBJS-common): Add graphite-flattening.o.
715         (graphite-flattening.o): New rule.
716         * common.opt (floop-flatten): New flag.
717         * doc/invoke.texi (-floop-flatten): Documented.
718         * graphite-flattening.c: New.
719         * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
720         * graphite-poly.h (flatten_all_loops): Declared.
721         (lst_remove_loop_and_inline_stmts_in_loop_father): New.
722         * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
723         is set, also set flag_graphite.
725 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
727         * graphite-poly.c (cloog_checksum): New.
728         * graphite-poly.h (cloog_checksum): Declared.
730 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
732         * graphite-poly.c (pbb_number_of_iterations): Removed.
733         (pbb_number_of_iterations_at_time): Correctly compute the number
734         of iterations in the transformed loop.
735         * graphite-poly.h (pbb_number_of_iterations): Removed.
737 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
739         * graphite-poly.h (lst_update_scattering_seq): Removed.
740         (lst_update_scattering): Correctly handle outermost loop dewey
741         renumbering.
743 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
745         * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
746         lst_strip_mine_profitable_p.  Call lst_niter_for_loop.
747         * graphite-poly.h (lst_niter_for_loop): New.
749 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
751         * graphite-poly.c (apply_poly_transforms): Do not abort when the
752         transform read from disk is not legal.  Call fatal_error instead.
754 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
756         * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
757         (print_scop_header): Removed.  Inlined in the only call place...
758         (print_scop): ... here.
760 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
762         * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
764 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
766         * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
768 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
770         * graphite-dependences.c (dot_deps): Avoid set but not used warning.
771         (dot_deps_stmt): Same.
772         * graphite-poly.c (dot_lst): Same.
774 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
776         * graphite-blocking.c (scop_do_strip_mine): Do not call
777         graphite_legal_transform.
778         (scop_do_block): Same.
780 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
782         * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
783         description.
785 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
787         * tree-scalar-evolution.c (instantiate_array_ref): New.
788         (instantiate_scev_r): Also handle ARRAY_REFs.
790 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
792         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
793         Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
794         RESULT_DECL, and FIELD_DECL.  Return false for an
795         SSA_NAME_IS_DEFAULT_DEF.
796         (compute_scalar_evolution_in_loop): Do not further analyze the
797         scalar evolution when no_evolution_in_loop_p returns true.
799 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
801         * tree-chrec.h (evolution_function_is_affine_p): Do not check
802         whether CHREC_LEFT is invariant.  A function is affine when
803         CHREC_RIGHT is invariant.
805 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
807         * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
808         is_gimple_reg.
809         (rewrite_degenerate_phi): Same.
810         (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
812 2010-09-30  Vladimir Kargov  <kargov@gmail.com>
814         * graphite-scop-detection.c (graphite_can_represent_scev,
815         graphite_can_represent_expr, stmt_has_simple_data_refs_p,
816         graphite_can_represent_loop): Remove outermost_loop.
818 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
820         PR middle-end/45229
821         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
822         handle GIMPLE_CALLs with no LHS.
824 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
826         * graphite-poly.c (init_graphite_out_file): New.
827         (init_graphite_in_file): New.
828         (apply_poly_transforms): Updated to enable reading and writing of
829         multiple scop files.
831 2010-09-30  Tobias Grosser  <grosser@fim.uni-passau.de>
833         * graphite-scop-detection.c (graphite_can_represent_scev): Remove
834         redundant checks.
836 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
838         * graphite-clast-to-gimple.c (precision_for_value): Adjust
839         computation of precision by 1.
841 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
843         * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
844         (openscop_read_polyhedron_matrix): New.
845         * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
846         (openscop_read_N_int): Same.
847         * graphite-poly.c (openscop_read_N_int): New.
848         (openscop_read_one_int): New.
849         (openscop_read_N_string): New.
850         (openscop_read_one_string): New.
851         (openscop_read_powerset_matrix): New.
852         (graphite_read_transforms): Remove.
853         (graphite_read_scatt): New.
854         (graphite_read_scop_file): New.
855         (apply_poly_transforms): Updated to call graphite_read_scop_file.
857 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
859         * graphite-poly.c: Change include order.
861 2010-09-30  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
863         * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
864         (cloog_matrix_nrows): New.
866 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
868         * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
869         from matrix lines.
870         * graphite-poly.c (openscop_print_scattering_function_1): Same.
871         (print_scattering_function_1): Same.
872         (openscop_print_pbb_domain): Same.
873         (openscop_print_scop_context): Same.
874         (print_scop_context): Same.
876 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
878         * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
879         (openscop_print_pdr_polyhedron): Print pph.
881 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
883         * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
884         priority signed types.
886 2010-09-30  Sebastian Pop  <sebastian.pop@amd.com>
888         * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
889         the call to lang_hooks.types.type_for_size.  Call
890         build_nonstandard_integer_type.
892 2010-09-30  Riyadh Baghdadi <baghdadi.mr@gmail.com>
894         * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
895         (openscop_print_polyhedron_matrix): New.
896         * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
897         * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
898         (openscop_print_pdr_powerset): New.
899         (openscop_print_powerset_matrix): New.
900         (openscop_print_scattering_function_1): New.
901         (print_scattering_function): Add support for scattering names and
902         OpenScop format.
903         (graphite_write_transforms): Remove.
904         (print_pdr_access_layout): Updated to support OpenScop format.
905         (print_pdr): Same.
906         (openscop_print_pbb_domain): New.
907         (print_pbb_body): Added a parameter to allow indicating that pbb_body
908         is not provided.
909         (print_pbb): Updated to call the new print_pbb_body.
910         (openscop_print_scop_context): New.
911         (print_scop_header): New.
912         (print_scop): Updated to call print_scop_header.
913         * graphite-poly.h: Document OpenScop format.
915 2010-09-30  Anatoly Sokolov  <aesok@post.ru>
917         * config/cris/m32c.c (cris_memory_move_cost): New.
918         (cris_register_move_cost): Make static. Change arguments type from
919         enum reg_class to reg_class_t.
920         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
921         * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
922         * config/cris/cris-protos.h (cris_register_move_cost): Remove.
924 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
926         PR target/45843
927         * config/i386/i386.c (ix86_gimplify_va_arg): Use
928         INTVAL (XEXP (slot, 1)) as prev_size.
930 2010-09-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
932         PR target/45837
933         * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
934         * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
935         defined.
936         * config/rs6000/option-defaults.h (toplevel): Change #if
937         TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
938         global option changes.
940 2010-09-30  Jakub Jelinek  <jakub@redhat.com>
942         * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
944         PR tree-optimization/31261
945         * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
946         for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
948 2010-09-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
950         PR bootstrap/45796
951         * Makefile.in (build/gen%$(build_exeext)): Move rule after all
952         special-casing for generators and turn into ...
953         ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
954         rule, for better error messages in case of toplevel dependency errors.
955         (genprog): Add hooks, rename to ...
956         (genprogerr): ... this, and let genprog also contain check,
957         checksum, condmd.
958         ((genprog:%=build/gen%$(build_exeext))): Rename to ...
959         ((genprogerr:%=build/gen%$(build_exeext))): ... this.
960         (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
962 2010-09-30  Jonathan Wakely  <jwakely.gcc@gmail.com>
963             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
965         * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
966         for GMP, MPFR and MPC.
968 2010-09-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
970         * config/sparc/sparc.opt (mimpure-text): Move ...
971         * config/sol2.opt: ... here.  Correct description.
972         * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
973         * doc/invoke.texi (Option Summary, SPARC Options): Move
974         -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
975         (Option Summary, Solaris 2 Options): ... here.
976         (Submodel Options, Solaris 2 Options): New menu entry.
977         (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
978         (Solaris 2 Options): ... here.
980 2010-09-30  Michael Eager  <eager@eagercon.com>
982         * extend.texi (interrupt_handler): Add MicroBlaze to list.
983         (save_volatiles): Describe option for MicroBlaze.
984         * invoke.texi: Add MicroBlaze Options.
985         * contrib.texi: Add acknowledgment. 
986         * md.texi: Add MicroBlaze d and z constraints.
987         * install.texi: Add microblaze-*-elf.
988         * configure.ac: Add microblaze-*-* to target list.
989         * configure: Regenerate.
990         * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
991         * config/microblaze/microblaze-protos.h: New.
992         * config/microblaze/crti.s: New.
993         * config/microblaze/predicates.md: New.
994         * config/microblaze/linux.h: New.
995         * config/microblaze/microblaze.md: New.
996         * config/microblaze/constraints.md: New.
997         * config/microblaze/crtn.s: New.
998         * config/microblaze/microblaze.opt: New.
999         * config/microblaze/microblaze-c.c: New.
1000         * config/microblaze/t-microblaze: New.
1001         * config/microblaze/microblaze.c: New.
1002         * config/microblaze/microblaze.h: New.
1004 2010-09-30  Iain Sandoe  <iains@gcc.gnu.org>
1006         * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
1007         parse @optional/@required and set the flags as appropriate.
1009 2010-09-30  Nathan Froyd  <froydnj@codesourcery.com>
1011         * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
1013 2010-09-30  Joseph Myers  <joseph@codesourcery.com>
1015         * opt-functions.awk (static_var): Update comment.
1016         (var_ref): Return offsetof expression or -1, not variable address.
1017         * optc-gen.awk: Generate structure field initializers instead of
1018         static variables.  Expect -1 for missing variables instead of null
1019         pointer.  Add gcc_options parameters to generated functions.
1020         * opth-gen.awk: Generate structure fields for static variables.
1021         Add gcc_options parameters to generated functions.
1022         * common.opt (optimize, optimize_size): Add variables.
1023         * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
1024         &global_options to cl_target_option_restore.
1025         * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
1026         &global_options to cl_optimization_restore, cl_target_option_save
1027         and cl_target_option_restore.
1028         (ix86_set_current_function): Pass &global_options to
1029         cl_target_option_restore.
1030         * config/pdp11/pdp11.h (optimize): Remove.
1031         * config/rs6000/rs6000.h (optimize): Remove.
1032         * config/sh/sh.h (optimize): Remove.
1033         * config/xtensa/xtensa.h (optimize): Remove.
1034         * coretypes.h (struct gcc_options): Declare.
1035         * diagnostic.c (diagnostic_initialize): Initialize
1036         context->option_state.
1037         (diagnostic_report_diagnostic): Pass option_state to
1038         option_enabled hook.
1039         * diagnostic.h (diagnostic_context.option_enabled): Add void *
1040         parameter.
1041         (diagnostic_context.option_state): New field.
1042         * final.c (final_start_function, final, final_scan_insn): Rename
1043         optimize parameter to optimize_p.
1044         * flags.h (optimize, optimize_size): Remove.
1045         * function.c (invoke_set_current_function_hook): Pass
1046         &global_options to cl_optimization_restore.
1047         * gcc.c (driver_handle_option): Take gcc_options parameter.
1048         Assert that it is &global_options.
1049         (process_command): Pass &global_options to read_cmdline_option.
1050         * ipa-pure-const.c (suggest_attribute): Pass &global_options to
1051         option_enabled.
1052         * lto-opts.c (lto_reissue_options): Use option_flag_var.  Pass
1053         &global_options to set_option.
1054         * opts-common.c (handle_option, handle_generated_option,
1055         read_cmdline_option, set_option): Take explicit gcc_options
1056         parameters.  Use option_flag_var.
1057         (option_flag_var): New.
1058         * opts.c (common_handle_option, lang_handle_option,
1059         target_handle_option): Take gcc_options parameter.  Assert that it
1060         is &global_options.
1061         (read_cmdline_options): Pass &global_options to read_cmdline_option.
1062         (print_filtered_help): Use option_flag_var.  Pass &global_options
1063         to option_enabled.
1064         (common_handle_option): Use option_flag_var.
1065         (option_enabled): Take opts parameter.  Use option_flag_var.
1066         (get_option_state): Take gcc_options parameter.  Use
1067         option_flag_var.  Pass gcc_options parameter to option_enabled.
1068         (enable_warning_as_error): Pass &global_options to
1069         handle_generated_option.
1070         * opts.h (struct cl_option): Change flag_var to flag_var_offset.
1071         (cl_option_handler_func.handler): Take gcc_options parameter.
1072         (option_enabled, get_option_state, set_option, handle_option,
1073         handle_generated_option, read_cmdline_option): Take gcc_options
1074         parameters.
1075         * toplev.c (optimize, optimize_size): Remove.
1076         (print_switch_values): Pass &global_options to option_enabled.
1077         (option_affects_pch_p): Use option_flag_var.  Pass &global_options
1078         to get_option_state.
1079         (general_init): Initialize global_dc->option_state.
1080         * tree.c (build_optimization_node): Pass &global_options to
1081         cl_optimization_save.
1082         (build_target_option_node): Pass &global_options to
1083         cl_target_option_save.
1085 2010-09-30  Martin Jambor  <mjambor@suse.cz>
1087         * tree-sra.c (type_consists_of_records_p): Do not check for trailing
1088         zero sized bit-fields.
1090 2010-09-30  Nicola Pero  <nicola.pero@meta-innovation.com>
1092         * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
1093         Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
1094         (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
1095         (c_parser_objc_class_declaration): Same change.
1096         (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
1097         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1098         (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
1099         instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
1100         and RID_AT_PUBLIC instead of RID_PUBLIC.
1101         (c_parser_statement_after_labels): Use RID_AT_TRY instead of
1102         RID_TRY and RID_AT_CATCH instead of RID_CATCH.
1103         
1104 2010-09-30  Tom G. Christensen <tgc@jupiterrise.com>
1106         * doc/install.texi (Binaries): Update link to HP-UX porting centre.
1107         Add links to current providers of packages for Solaris and IRIX.
1109 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1111         Merge from 'apple/trunk' branch on FSF servers.
1112         * c-parser.c: Applied change originally in c-parse.in.
1113         
1114         2005-10-04  Fariborz Jahanian <fjahanian@apple.com>
1116         Radar 4281748
1117         * c-decl.c (start_decl): Check for redeclaration of class name.
1118         * c-parse.in (after_type_declarator): Recognize CLASSNAME.
1120 2010-09-29  Steve Ellcey  <sje@cup.hp.com>
1122         * config/ia64/ia64.c (ia64_builtin_decl): New.
1123         (TARGET_BUILTIN_DECL): Define.
1124         (ia64_builtins): New.
1125         (ia64_init_builtins): Save decls in ia64_builtins.
1127 2010-09-29  Bernd Schmidt  <bernds@codesourcery.com>
1129         PR target/40457
1130         * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
1131         (move2add_use_add3_insn): Likewise.
1132         (reload_cse_move2add): Likewise.
1133         * rtlanal.c (get_full_rtx_cost): New function.
1134         * rtl.h (struct full_rtx_costs): New.
1135         (init_costs_to_max, init_costs_to_zero, costs_lt_p,
1136         costs_add_n_insns): New inline functions.
1137         (get_full_rtx_cost): Declare.
1139         PR c/45054
1140         * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
1141         invariants.  Check for reg_equiv_invariant.
1142         (reload): Assert that spilled_pseudos is empty when returning.
1144 2010-09-29  Kai Tietz  <kai.tietz@onevision.com>
1146         * config/i386/mingw32.h (TARGET_64BIT): replaced by
1147         TARGET_64BIT_DEFAULT in #if check.
1149 2010-09-29  Jack Howarth <howarth@bromo.med.uc.edu>
1151         * varasm.c (assemble_alias): Add error message for unsupported ifunc.
1153 2010-09-29  Mike Stump  <mikestump@comcast.net>
1155         * config/darwin.h (flag_mkernel): Remove.
1156         (flag_apple_kext): Likewise.
1158 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1159             Jack Howarth <howarth@bromo.med.uc.edu>
1161         * config/darwin.opt (undefined): Add.
1163 2010-09-29  Nathan Sidwell  <nathan@codesourcery.com>
1165         PR testsuite/45664
1166         * configure.ac: Add --enable-indirect-function option.
1167         * config.gcc: Add default_gnu_indirect_function.
1168         * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
1169         (HAVE_GNU_INDIRECT_FUNCTION): ... this.
1170         * varasm.c (do_assemble_alias): Adjust for macro name change.
1171         * configure: Rebuilt.
1172         * doc/install.texi: Document --enable-indirect-function.
1174 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1176         * doc/options.texi (Variable, Var, Init): Update documentation
1177         without reference to VarExists.
1178         (VarExists): Remove.
1179         * common.opt, config/i386/i386.opt, config/linux.opt,
1180         config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
1181         Don't use VarExists.
1183 2010-09-29  Joseph Myers  <joseph@codesourcery.com>
1185         * optc-gen.awk: Generate global_options initializer instead of
1186         individual variables.  Add x_ prefix to names of structure members.
1187         * opth-gen.awk: Generate gcc_options structure.  Add x_ prefix to
1188         names of structure members.
1189         * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1190         HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
1191         * doc/tm.texi: Regenerate.
1192         * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1193         * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1194         * c-parser.c (disable_extension_diagnostics,
1195         restore_extension_diagnostics): Update names of cpp_options members.
1196         * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1197         * common.opt (fcompare-debug-second): Don't use Var.
1198         * config/alpha/alpha.h (target_flags): Remove.
1199         * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1200         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1201         * config/bfin/bfin.h (target_flags): Remove.
1202         * config/cris/cris.h (target_flags): Remove.
1203         * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
1204         cl_target_option members.
1205         * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
1206         (ix86_function_specific_print, ix86_valid_target_attribute_tree,
1207         ix86_can_inline_p): Update names of cl_target_option members.
1208         * config/i386/i386.h (ix86_isa_flags): Remove.
1209         * config/lm32/lm32.h (target_flags): Remove.
1210         * config/mcore/mcore.h (mcore_stack_increment): Remove.
1211         * config/mcore/mcore.md (addsi3): Remove extern declaration of
1212         flag_omit_frame_pointer.
1213         * config/mep/mep.h (target_flags): Remove.
1214         * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1215         HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
1216         * config/mmix/mmix.h (target_flags): Remove.
1217         * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
1218         flag_expensive_optimizations): Remove.
1219         * config/s390/s390.h (flag_pic): Remove.
1220         * config/score/score-conv.h (target_flags): Remove.
1221         * config/sh/sh.h (sh_fixed_range_str): Remove.
1222         * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
1223         * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1224         * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1225         * diagnostic.c (diagnostic_initialize): Update names of
1226         diagnostic_context members.
1227         * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
1228         warn_system_headers.
1229         (diagnostic_report_warnings_p): Update for new names.
1230         * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
1231         * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
1232         HARD_FRAME_POINTER_IS_ARG_POINTER.
1233         * flags.h (flag_compare_debug): Declare.
1234         * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1235         * opts.c (flag_compare_debug): Define.
1236         (common_handle_option): Update names of diagnostic_context
1237         members.  Handle -fcompare-debug-second.
1238         (fast_math_flags_struct_set_p): Update names of cl_optimization
1239         members.
1240         * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1241         * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1242         * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1243         * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1244         * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
1245         * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
1246         HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
1247         * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
1248         * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
1250 2010-09-29  Hariharan Sandanagobalane  <hariharan@picochip.com>
1252         * config/picochip/picochip.c (picochip_output_internal_label):
1253         This function can now be called for debug CFI labels, which can come
1254         in the middle of a vliw instruction.  Postpone until end of vliw.
1256 2010-09-29  Richard Guenther  <rguenther@suse.de>
1258         * tree.h (SCOPE_FILE_SCOPE_P): New macro.
1259         (DECL_FILE_SCOPE_P): Use it.
1260         (TYPE_FILE_SCOPE_P): New macro.
1262 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1264         * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
1265         a CPP_NAME which is a reserved word, clearly separate cases for
1266         OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
1268 2010-09-29  Nicola Pero  <nicola.pero@meta-innovation.com>
1270         * c-parser.c (c_lex_one_token): In Objective-C, do not replace
1271         token->value with the canonical spelling.  Do exactly like C and
1272         C++ and leave it as it is.
1274 2010-09-28  Richard Henderson  <rth@redhat.com>
1276         * config/alpha/alpha.c (alpha_builtins): New.
1277         (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
1278         (alpha_builtin_function): New.
1279         (alpha_add_builtins, alpha_init_builtins): Use it.
1281 2010-09-28  Nicola Pero  <nicola.pero@meta-innovation.com>
1283         * doc/standards.texi (Standards): Expanded the section on
1284         Objective-C and Objective-C++.
1286 2010-09-28  DJ Delorie  <dj@redhat.com>
1288         PR target/45800
1289         * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
1290         volatile MEMs.
1292 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1294         * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
1295         attributes on methods.
1296          (c_parser_objc_method_definition): Handle attributes.
1297         (c_parser_objc_methodproto): Likewise.
1298         (c_parser_objc_maybe_method_attributes): New.
1299         (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
1300         missing definition, similar to that in ObjC++.
1302 2010-09-28  Richard Henderson  <rth@redhat.com>
1304         * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
1305         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1306         (CONFIG_SJLJ_EXCEPTIONS): Remove.
1307         (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
1308         (STACK_CHECK_PROTECT): Likewise.
1309         * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
1310         (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
1311         (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
1312         (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
1313         (dwarf2out_assembly_start): Likewise.
1314         * except.c (init_eh): Use targetm.except_unwind_info.
1315         (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
1316         (output_one_function_exception_table): Likewise.
1317         * final.c: Unconditionally include dwarf2out.h.
1318         (final_start_function): Unconditionally call dwarf2out routines.
1319         (final_end_function, final_scan_insn): Likewise.
1320         * function.c (expand_function_end): Use targetm.except_unwind_info.
1321         * opts.c (decode_options): Use targetm.except_unwind_info.
1322         * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
1323         * target.def (debug_unwind_info, except_unwind_info): New.
1324         * target.h (enum unwind_info_type): New.
1325         * targhooks.c (default_debug_unwind_info): New.
1326         (default_except_unwind_info): New.
1327         (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
1328         * targhooks.h: Declare them.
1329         * tree-tailcall.c: Include "target.h"
1330         (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
1331         * Makefile.in (tree-tailcall.o): Update.
1332         * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
1333         (lhd_gcc_personality): Likewise.
1335         * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
1336         (TARGET_EXCEPT_UNWIND_INFO): New.
1337         (DWARF2_UNWIND_INFO): Update.
1338         (TARGET_DEBUG_UNWIND_INFO): New.
1339         * doc/tm.texi: Rebuild.
1341         * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
1342         targetm.except_unwind_info.
1344         * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
1345         (arm_except_unwind_info): New.
1346         (arm_compute_func_type): Use it.
1347         (arm_expand_prologue, thumb_pushpop): Likewise.
1348         (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
1349         (arm_unwind_emit, arm_output_fn_unwind): Likewise.
1350         * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
1351         * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
1352         (DWARF2_UNWIND_INFO): Remove.
1353         (MUST_USE_SJLJ_EXCEPTIONS): Remove.
1354         (ARM_EABI_UNWIND_TABLES): Remove.
1356         * config/ia64/ia64.c (ia64_debug_unwind_info): New.
1357         (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
1358         (ia64_except_unwind_info): New.
1359         (ia64_output_function_prologue): Use it.
1360         (ia64_add_bundle_selector_before): Likewise.
1361         (ia64_reorg, ia64_asm_unwind_emit): Likewise.
1362         * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
1363         (TARGET_UNWIND_INFO): Remove.
1365         * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
1367 2010-09-28  Iain Sandoe  <iains@gcc.gnu.org>
1369         * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
1370         (c_parser_objc_protocol_definition): Likewise.
1371         (c_parser_external_declaration): Provide dummy attribute arguments.
1372         (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
1373         (c_parser_objc_class_definition): Handle attributes.
1374         (c_parser_objc_protocol_definition): Likewise.
1376 2010-09-28  Tobias Burnus  <burnus@net-b.de>
1378         PR fortran/40569
1379         PR fortran/40568
1380         * toplev.h (save_decoded_options, save_decoded_options_count):
1381         New global variables.
1382         * toplev.c (save_decoded_options, save_decoded_options_count):
1383         Export variables.
1385 2010-09-28  Ian Lance Taylor  <iant@google.com>
1387         * config/i386/i386.c (ix86_supports_split_stack): Test
1388         HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
1390 2010-09-28  Ian Lance Taylor  <iant@google.com>
1392         PR target/45815
1393         * opts.c (decode_options): Don't test whether the target supports
1394         split stack if flag_split_stack == 0.
1396 2010-09-28  Jan Hubicka  <jh@suse.cz>
1398         * builtin-attrs.def (ATTR_LEAF): New attribute.
1399         (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
1400         ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
1401         ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
1402         ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
1403         ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
1404         ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
1405         ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
1406         * sync-builtins.def: Annotate all builtins by leaf.
1407         * omp-builtins.def: Annotate all builtins by leaf.
1408         * builtins.def: Annotate relevant builtins with leaf attribute.
1409         (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
1410         ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
1411         leaf.
1413 2010-09-28  Jan Hubicka  <jh@suse.cz>
1415         * tree-ssa-ccp.c (fold_ctor_reference): New function.
1416         (fold_const_aggregate_ref): Use it.
1417         * fold-const.c (canonicalize_constructor_val): Check that we don't fold
1418         into external static.
1420 2010-09-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1422         PR target/44452
1423         * config/i386/i386.opt (mvect8-ret-in-mem): Define.
1424         * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
1425         (ix86_solaris_return_in_memory): Remove.
1426         * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
1427         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1428         (TARGET_SUBTARGET_DEFAULT): Redefine.
1429         * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
1430         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
1431         (TARGET_SUBTARGET_DEFAULT): Redefine.
1432         * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
1433         -mvect8-ret-in-mem.
1434         (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
1436 2010-09-29  Alan Modra  <amodra@gmail.com>
1438         PR target/45807
1439         * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
1440         * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
1441         * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
1442         Delete.
1443         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
1444         (rs6000_emit_prologue): Don't just create frame save info for r2,
1445         actually save r2.
1447 2010-09-28  Richard Henderson  <rth@redhat.com>
1449         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
1450         when 8 bytes are requested.
1452 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1454         * config/avr/avr.c (expand_prologue): Set
1455         current_function_static_stack_size.
1457 2010-09-28  Tristan Gingold  <gingold@adacore.com>
1459         * config/alpha/alpha.md: Change the initial condition of the
1460         probing loop.
1462 2010-09-28  Uros Bizjak  <ubizjak@gmail.com>
1464         * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
1465         Split from *avx_<maxmin:code><mode>3.
1466         (*avx_<smaxmin:code><mode>3): Ditto.
1467         * config/i386/i386.md (maxmin): Remove code iterator.
1469 2010-09-27  Ian Lance Taylor  <iant@google.com>
1471         * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
1472         requires assembler support for CFI directives.
1474 2010-09-27  Richard Henderson  <rth@redhat.com>
1476         * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
1478 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1480         * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
1481         that AFTER is not in the range FROM..TO, inclusive.
1483 2010-09-27  Hans-Peter Nilsson  <hp@axis.com>
1484             Bernd Schmidt  <bernds@codesourcery.com>
1486         PR rtl-optimization/45792
1487         * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
1488         If not all insns are to be merged, for each edge, stash the
1489         next candidate after the to-be-merged insns before doing the
1490         merge, and use them for the retry at the new insertion point.
1491         Handle CC0 targets when retrying.
1493 2010-09-27  Ian Lance Taylor  <iant@google.com>
1495         * common.opt (fsplit-stack): New option.
1496         * opts.c (decode_options): Set flag_split_stack to final value.
1497         * target.def (supports_split_stack): New hook.
1498         * gcc.c (STACK_SPLIT_SPEC): Define.
1499         (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
1500         * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
1501         (Code Gen Options): Document -fsplit-stack.
1502         * doc/extend.texi (Function Attributes): Mention no_split_stack.
1503         (Function Attributes): Document no_split_stack.
1504         * doc/tm.texi.in (Stack Smashing Protection): Add @hook
1505         TARGET_SUPPORTS_SPLIT_STACK.
1506         * doc/tm.texi: Rebuild.
1507         * function.c (thread_prologue_and_epilogue_insns): If
1508         flag_split_stack, add split stack prologue.
1509         * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
1510         * varasm.c (saw_no_split_stack): New static variable.
1511         (assemble_start_function): Set saw_no_split_stack if the function
1512         has the no_split_stack attribute.
1513         (file_end_indicate_split_stack): New function.
1514         * output.h (file_end_indicate_split_stack): Declare.
1515         * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
1516         and function.
1517         * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
1518         routines.
1519         * config/i386/i386.c (ix86_option_override_internal): Don't set
1520         expand_builtin_va_start to NULL if -fsplit-stack.
1521         (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
1522         -fsplit-stack.
1523         (ix86_va_start): If -fsplit-stack, get overflow pointer from
1524         scratch register set by prologue.
1525         (ix86_code_end): If -fsplit-stack, call
1526         file_end_indicate_split_stack.
1527         (ix86_supports_split_stack): New static function.
1528         (SPLIT_STACK_AVAILABLE): Define.
1529         (split_stack_prologue_scratch_regno): New static function.
1530         (split_stack_fn): New static variable.
1531         (ix86_expand_split_stack_prologue): New function.
1532         (ix86_live_on_entry): New static function.
1533         (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
1534         (output_pic_addr_const): Likewise.
1535         (i386_asm_output_addr_const_extra): Likewise.
1536         (ix86_expand_call): Change return type to rtx.  Return the new
1537         call instruction.
1538         (TARGET_SUPPORTS_SPLIT_STACK): Define.
1539         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1540         * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
1541         (split_stack_prologue, split_stack_return): New insns.
1542         (split_stack_space_check): New insn.
1543         * config/i386/i386.h (struct machine_function): Add
1544         split_stack_varargs_pointer field.
1545         * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
1546         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1547         * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
1548         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
1549         * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
1550         Declare.
1551         (ix86_expand_call): Update declaration.
1553 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1555         * doc/objc.texi (Type encoding): Added the new 'long double' (D)
1556         code.  Added byref, which was missing in the list of codes.
1557         Explain that enumeration values are encoded as the integer type
1558         that the compiler uses to store them.  Explain and make examples
1559         of how 'const' interacts with pointers, and the complication of
1560         the encoding of 'const char *'.
1561         (Legacy type encoding): New subsection, explaining that GCC emits
1562         incorrect type encodings for the NeXT runtime for compatibility
1563         reasons.
1564         (@@encode): New subsection, explaining @encode and particularly
1565         that protocol qualifiers are not recognized inside an @encode()
1566         expression.
1567         (Method signatures): New subsection, explaining how method
1568         signatures are encoded.
1570 2010-09-27  Nicola Pero  <nicola.pero@meta-innovation.com>
1572         Merge from 'apple/trunk' branch on FSF servers.  Removed small
1573         change in build_conditional_expr that had been added when fixing
1574         PR objc/27377 and which did the same check in a less complete way.
1576         2005-12-15  Fariborz Jahanian <fjahanian@apple.com>
1578         Radar 4229905
1579         * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
1580         looking for objective-c common pointer types.
1582         2005-06-22  Ziemowit Laski  <zlaski@apple.com>
1584         Radar 4154928
1585         * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
1586         use their ObjC common type.
1588 2010-09-27  Richard Guenther  <rguenther@suse.de>
1590         * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
1592 2010-09-27  Jie Zhang  <jie@codesourcery.com>
1594         * print-tree.c (print_node): Print in-constant-pool.
1596 2010-09-27  Uros Bizjak  <ubizjak@gmail.com>
1598         * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
1599         (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
1600         (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
1601         (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
1603 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1605         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
1606         from pro_epilogue_adjust_stack_<mode>_{1,2}.
1607         (pro_epilogue_adjust_stack_<mode>_add): Rename from
1608         pro_epilogue_adjust_stack_<mode>_3.
1609         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
1610         renamed pro_epilogue_adjust_stack_{si,di}_add.
1611         (ix86_expand_prologue): Use indirect functions.  Update for renamed
1612         pro_epilogue_adjust_stack_{si,di}_sub.
1614 2010-09-26  Uros Bizjak  <ubizjak@gmail.com>
1616         * config/i386/i386.md (movmsk_df): New insn.
1617         (signbitdf): Split out of signbit<mode>2.  Generate movmsk_df
1618         sequence for TARGET_SSE_MATH.
1620 2010-09-26  Richard Sandiford  <rdsandiford@googlemail.com>
1622         * config/mips/mips.c (mips_builtin_decls): Declare.
1623         (mips_init_builtins): Store function declarations in
1624         mips_builtin_decls.
1625         (mips_builtin_decl): New function.
1626         (TARGET_BUILTIN_DECL): Define.
1628 2010-09-25  Kai Tietz  <kai.tietz@onevision.com>
1629             Richard Henderson  <rth@redhat.com>
1631         * config/i386/cygwin.asm: Include auto-host.h.
1632         (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
1633         cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
1634         (__chkstk, __alloca): Annotate for dwarf2 unwind info.  Drop
1635         alignment code from the 64-bit path.  Use gas local labels.
1636         * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
1637         from _di_2.  Remove the useless constant integer argument.
1638         (pro_epilogue_adjust_stack_<mode>_3): New.
1639         (allocate_stack_worker_probe_<mode>): Macroize from
1640         allocate_stack_worker_{32,64}.  Use __chkstk_ms.  Update all users.
1641         * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
1642         use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
1643         (__chkstk_ms): New function.
1644         * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
1645         * gcc/config/i386/t-interix: Likewise.
1646         * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
1647         (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
1648         (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
1649         * configure, config.in: Rebuild.
1651 2010-09-25  Eric Botcazou  <ebotcazou@adacore.com>
1653         * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
1654         statements because of the return slot optimization.
1656 2010-09-25  Anatoly Sokolov  <aesok@post.ru>
1658         * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
1659         * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
1660         * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
1661         (class_likely_spilled_p): Rename to...
1662         (avr_class_likely_spilled_p): ...this. Make static. Change argument
1663         type to reg_class_t.
1665 2010-09-24  Jan Hubicka  <jh@suse.cz>
1667         * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
1668         (lto_symtab_resolve_symbols): Set it.
1669         (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
1670         store resolution field in cgraph/varpool.
1671         * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
1672         (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
1673         (cgraph_dump_node): Drop used_from_object_file.
1674         (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
1675         (cgraph_function_body_availability): Use decl_replaceable_p.
1676         (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
1677         (cgraph_can_remove_if_no_direct_calls_and_refs): Use
1678         cgraph_used_from_object_file_p.
1679         (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
1680         cgraph_used_from_object_file_p.
1681         (resolution_used_from_other_file_p): New functoin.
1682         (cgraph_used_from_object_file_p): New predicate.
1683         * cgraph.h: Include plugin-api.h
1684         (struct cgraph_local_info): Remove used_from_object_file.
1685         (struct cgraph_node): Add resolution field.
1686         (struct varpool_node): Likewise; remove used_from_object_file;
1687         reove const_value_known.
1688         (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
1689         cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
1690         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
1691         varpool_used_from_object_file_p): Declare.
1692         (varpool_get_node, varpool_extra_name_alias): Update prototype.
1693         * tree.h (DECL_REPLACEABLE_P): Remove.
1694         (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
1695         * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
1696         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1697         input_overwrite_node, input_node, input_varpool_node): Stream
1698         resolution.
1699         * expr.c (expand_expr_real_1): Use const_value_known_p
1700         * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
1701         const_value_known.
1702         (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
1703         (function_and_variable_visibility): Set resolution for local vars
1704         and functions; use varpool_used_from_object_file_p.
1705         * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
1706         static functions.
1707         (default_binds_local_p_1): Use resolutoin info.
1708         (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
1709         * varpool.c (varpool_get_node): Constify.
1710         (const_value_known_p): Do not use vnode->const_value_known;
1711         use decl_replaceable_p.
1712         (varpool_finalize_decl): Do not set const_value_known.
1713         (cgraph_variable_initializer_availability): Use decl_replaceable_p
1714         (varpool_extra_name_alias): Return new node.
1715         (varpool_used_from_object_file_p): New function.
1717 2010-09-24  Richard Henderson  <rth@redhat.com>
1719         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
1720         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
1721         (do_spill): Use REG_CFA_OFFSET.
1722         (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
1723         as appropriate.
1724         (ia64_expand_epilogue): Likewise.
1725         (process_set): Split into ...
1726         (process_cfa_adjust_cfa): this,
1727         (process_cfa_register): this,
1728         (process_cfa_offset): and this new function.
1729         (ia64_asm_unwind_emit): Use them.  Expect REG_CFA_* notes
1730         instead of REG_FRAME_RELATED_EXPR.
1732 2010-09-24  Olivier Hainque  <hainque@adacore.com>
1734         * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
1736 2010-09-24  Jan Hubicka  <jh@suse.cz>
1738         * doc/extend.texi: (attribute leaf): Document.
1739         * tree.c (local_define_builtin): Handle ECF_LEAF.
1740         (build_common_builtin_nodes): Set ECF_LEAF where needed.
1741         * tree.h (ECF_LEAF): New.
1742         * ipa-reference.c (propagate_bits): For leaf calls propagate ever
1743         overwrittable and unavailable functions.
1744         (ipa_init): Put all_module_statics into optimization_summary_obstack.
1745         (copy_global_bitmap): Do not copy all_module_statics.
1746         (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
1747         (propagate): Handle overwritable and unavailable leaf functions;
1748         initialize global info for overwritable and unavailable leaf functions;
1749         do not free all module statics.
1750         (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
1751         local statics.
1752         * calls.c (flags_from_decl_or_type): Handle leaf.
1753         * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
1754         abnormal gotos.
1756 2010-09-24  Basile Starynkevitch  <basile@starynkevitch.net>
1758         * gengtype.c: Reindented.
1759         * gengtype.h: Reindented.
1760         * gengtype-parse.c: Reindented.
1762 2010-09-24  Jan Hubicka  <jh@suse.cz>
1764         PR tree-optimization/45738
1765         PR tree-optimization/45741
1766         * expr.c (string_constant): Allow CONST_DECL too;
1767         check that DECL_INITIAL is set.
1768         * varpool.c (const_value_known_p): Only look into VAR_DECL
1769         and CONST_DECL.
1771 2010-09-24  Joseph Myers  <joseph@codesourcery.com>
1773         * common.opt (undef): New.
1775 2010-09-24  Jakub Jelinek  <jakub@redhat.com>
1777         PR middle-end/45234
1778         * rtl.h (enum global_rtl_index): Add
1779         GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
1780         (LAST_VIRTUAL_POINTER_REGISTER): Define.
1781         (virtual_preferred_stack_boundary_rtx,
1782         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
1783         (LAST_VIRTUAL_REGISTER): Increase by one.
1784         (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
1785         instead of LAST_VIRTUAL_REGISTER.
1786         * function.c (instantiate_new_reg): Handle
1787         virtual_preferred_stack_boundary_rtx.
1788         * emit-rtl.c (init_virtual_regs): Handle
1789         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1790         (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
1791         * explow.c (round_push): If crtl->preferred_stack_boundary
1792         is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
1793         virtual_preferred_stack_boundary_rtx alignment instead of
1794         crtl->preferred_stack_boundary alignment.
1795         (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
1796         macros.  Never decrease crtl->preferred_stack_boundary,
1797         use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
1798         instead of PREFERRED_STACK_BOUNDARY.  Don't modify
1799         stack_pointer_delta in dynamic allocation, even when size
1800         is constant.
1801         (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
1802         macro.
1803         * print-rtl.c (print_rtx): Handle
1804         VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
1805         * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
1806         LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
1807         * config/frv/frv.c (frv_emit_movsi): Likewise.
1808         * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
1809         * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
1810         Likewise.
1812         Revert:
1813         2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
1815         PR middle-end/45234
1816         * calls.c (expand_call): Make sure that all variable sized
1817         adjustments are multiple of preferred stack boundary after
1818         stack alignment.
1820 2010-09-24  Iain Sandoe  <iains@gcc.gnu.org>
1821             Dominique Dhumieres  <dominiq@lps.ens.fr>
1823         PR bootstrap/45751
1824         * gcc/config/darwin-driver.c (darwin_default_min_version):
1825         Adjust size passed to memcpy in two places.
1827 2010-09-24  Richard Guenther  <rguenther@suse.de>
1829         * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
1830         Make sure to not call set_type_context with error_mark_node.
1831         * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
1833 2010-09-24  Richard Guenther  <rguenther@suse.de>
1835         * Makefile.in (OBJS-onestep): Remove.
1836         (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
1837         (libbackend.a): Remove onestep support.
1838         (libbackend.o): Remove.
1839         * configure.ac (--enable-intermodule): Remove.
1840         * configure: Regenerate.
1842 2010-09-24  Bernd Schmidt  <bernds@codesourcery.com>
1844         * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
1845         reaching the end of a block if it occurs at a DEBUG_INSN.
1847 2010-09-09  Tristan Gingold  <gingold@adacore.com>
1849         PR target/44242
1850         * config/vms/vms-crt0-64.c: Removed.
1851         * config/vms/vms-crt0.c: Removed.
1852         * config/vms/vms-psxcrt0-64.c: Removed.
1853         * config/vms/vms-psxcrt0.c: Removed.
1854         * config/vms/vms-ucrt0.c: New file.
1855         * config/vms/t-vms64: Removed.
1856         * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it.  Remove DECC.
1857         Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
1858         * config.gcc (alpha-dec-vms): Use t-vms.
1860 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1862         * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
1863         underfull hbox in DVI output.
1864         (-fobjc-class-cxx-cdtors): Same change.
1865         (-fobjc-exceptions): Tidied up documentation.  Explain what the
1866         option does, but moved the (lenghty) description of the exception
1867         syntax into objc.texi.
1868         (-fobjc-gc): Explain that the option is not useful with the GNU
1869         runtime.
1870         (-fzero-link): Explain that the GNU runtime always works in
1871         "zero-link" mode.
1872         * doc/objc.texi: All sections: simplified @node declarations
1873         removing specification of next, previous, up node.
1874         (Objective-C): Updated introduction.
1875         (Garbage Collection): Updated.  The bohem-gc library is now
1876         included in gcc itself.  Mention that this section only applies to
1877         the GNU Objective-C runtime.
1878         (compatibility_alias): Small tidy up.
1879         (Exceptions): New section mostly containing text previously in the
1880         description of the -fobjc-exception command-line option.
1881         (Synchronization): Same.
1883 2010-09-24  Uros Bizjak  <ubizjak@gmail.com>
1885         * config/i386/i386.md (ix86_code_end): Move the initialization of
1886         xops array near the consumer.  Use AX_REG and SP_REG instead of
1887         numerical constants.
1889 2010-09-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1891         * c-typeck.c (convert_arguments): Use warning 'too many arguments to
1892         method [methodname]' for an Objective-C method instead of the less
1893         satisfactory 'too many arguments to function' (with no method name).
1895 2010-09-23  Eric Botcazou  <ebotcazou@adacore.com>
1897         * tree-flow.h (execute_update_addresses_taken): Remove parameter.
1898         * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
1899         (execute_update_addresses_taken): Remove parameter.  Execute the
1900         optimization unconditionally.
1901         * passes.c (execute_function_todo): Call execute_update_addresses_taken
1902         unconditionally if TODO_rebuild_alias is set, else only when optimizing
1903         if TODO_update_address_taken is set.
1905 2010-09-23  Anatoly Sokolov  <aesok@post.ru>
1907         * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1908         * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
1909         * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1910         (arm_output_addr_const_extra): Make static.
1912 2010-09-23  Uros Bizjak  <ubizjak@gmail.com>
1914         * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
1915         define as unspec_volatile.
1916         ("nops"): Define as unspec_volatile. Use fputs to write to
1917         asm_out_file directly.  Output NOPs on separate lines using while loop.
1918         * config/i386/i386.c (ix86_code_end): Use fputs to write to
1919         asm_out_file directly.  Output NOPs on separate lines using while loop.
1921 2010-09-23  Richard Guenther  <rguenther@suse.de>
1923         PR tree-optimization/45565
1924         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
1925         Make sure to adjust the fndecl before replacing the stmt.
1927 2010-09-23  Richard Guenther  <rguenther@suse.de>
1929         PR middle-end/45750
1930         * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
1931         gimplifying MEM_REF.
1933 2010-09-23  Alan Modra  <amodra@gmail.com>
1935         * config/rs6000/rs6000.c (toc_relative_ok): Delete.
1936         (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
1938 2010-09-23  Bernd Schmidt  <bernds@codesourcery.com>
1940         PR rtl-optimization/44374
1941         * basic-block.h (enum bb_flags): Add BB_MODIFIED.
1942         * df-core.c (df_set_bb_dirty): Set it.
1943         * ifcvt.c (find_memory): Remove function.
1944         (dead_or_predicable): Use can_move_insns_across.
1945         * df.h (can_move_insns_across): Declare function.
1946         * cfgcleanup.c (block_was_dirty): New static variable.
1947         (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
1948         than df_get_bb_dirty.
1949         (try_head_merge_bb): New static function.
1950         (try_optimize_cfg): Call it.  Call df_analyze if block_was_dirty
1951         is set.
1952         * df-problems.c: Include "target.h"
1953         (df_simulate_find_uses): New static function.
1954         (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
1955         (find_memory, find_memory_store): New static functions.
1956         (can_move_insns_across): New function.
1957         * Makefile.in (df-problems.o): Update dependencies.
1959 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
1961         PR java/44095
1962         * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
1963         is specified and the suffix of the file isn't ".c".
1964         * config/sparc/linux64.h (ASM_SPEC): Likewise.
1966 2010-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1968         * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
1969         * doc/cppopts.texi: Fix markup of index entry.
1970         * doc/extend.texi (Constructing Calls): Fix markup of
1971         __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
1972         (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
1973         (Vague Linkage, C++ Attributes): Fix markup of index entries and
1974         keywords.
1975         * doc/invoke.texi (Option Summary): Fix spacing.  Rewrap to
1976         avoid long lines.
1977         (C Dialect Options, C++ Dialect Options, Warning Options)
1978         (Debugging Options, Spec Files, Darwin Options)
1979         (i386 and x86-64 Options, MIPS Options)
1980         (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
1981         index entries, avoid abbreviations, allow URLs to wrap, avoid
1982         long lines, avoid overlong pages from long @itemx lists.
1983         * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
1984         * doc/standards.texi (Standards): Likewise.
1985         * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
1987 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
1989         * opts-common.c (prune_options): Make static.  Work with decoded
1990         options.
1991         (decode_cmdline_options_to_array): Call prune_options.  Don't
1992         resize option array here.
1993         * opts.h (prune_options): Remove prototype.
1994         * gcc.c (process_command): Take decoded options; don't call
1995         decode_cmdline_options_to_array here.  Use decoded options for argv[0].
1996         (main): Call decode_cmdline_options_to_array here instead of
1997         prune_options.  Update call to process_command.
1998         * config/darwin-driver.c: Include opts.h.
1999         (darwin_default_min_version): Work with decoded options.  Don't
2000         handle -b or -V here.
2001         * config/darwin.h (darwin_default_min_version): Update prototype.
2002         (GCC_DRIVER_HOST_INITIALIZATION): Update call to
2003         darwin_default_min_version.
2004         * config/i386/cygwin.h (mingw_scan): Update prototype.
2005         (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
2006         * config/i386/cygwin1.c: Include opts.h.
2007         (mingw_scan): Work with decoded options.
2008         * config/i386/t-cygwin (cygwin1.o): Update dependencies.
2009         * config/t-darwin (darwin-driver.o): Update dependencies.
2011 2010-09-22  Joseph Myers  <joseph@codesourcery.com>
2013         * common.opt (-assemble, -compile, -coverage, -debug, -dump,
2014         -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
2015         -for-assembler, -for-assembler=, -for-linker, -for-linker=,
2016         -force-link, -force-link=, -language, -language=,
2017         -library-directory, -library-directory=, -no-canonical-prefixes,
2018         -no-standard-libraries, -no-warnings, -optimize, -output,
2019         -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
2020         -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
2021         -print-file-name=, -print-libgcc-file-name,
2022         -print-multi-directory, -print-multi-lib,
2023         -print-multi-os-directory, -print-prog-name, -print-prog-name=,
2024         -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
2025         -profile, -save-temps, -shared, -specs, -specs=, -static,
2026         -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
2027         symbolic): New.
2028         (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
2029         * gcc.c (A Short Introduction to Adding a Command-Line Option):
2030         Remove comment.
2031         (cc1_options): Correct specs for passing down --help,
2032         --target-help and --help=*.  Add spec for passing down --version.
2033         (struct option_map, option_map, target_option_translations,
2034         translate_options): Remove.
2035         (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
2036         and OPT__target_help instead of OPT_fversion, OPT_fhelp,
2037         OPT_fhelp_ and OPT_ftarget_help.
2038         (process_command): Don't call translate_options.  Call
2039         decode_cmdline_options_to_array before checking for
2040         -no-canonical-prefixes using decoded options.
2041         * opts-common.c (tm.h): Update comment on #include.
2042         (find_opt): Allow abbreviations of long options.
2043         (struct option_map, option_map): New.
2044         (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
2045         and -mno handling.
2046         (target_option_translations): New.
2047         (decode_cmdline_options_to_array): Handle
2048         TARGET_OPTION_TRANSLATE_TABLE in driver.
2049         * opts.c (common_handle_option): Don't handle OPT_fhelp,
2050         OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
2052 2010-09-22  Richard Guenther  <rguenther@suse.de>
2054         * tree-inline.c (optimize_inline_calls): Schedule cleanups
2055         only if we inlined something.  Block compaction and conditional
2056         folding are done by cfg cleanup.  Schedule update-address-taken.
2057         (tree_function_versioning): Remove redundant call to number_blocks.
2058         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
2059         folding is done by cfg cleanup.
2060         * passes.c (init_optimization_passes): Remove update-address-taken
2061         pass after IPA inlining.
2063 2010-09-22  Chung-Lin Tang  <cltang@codesourcery.com>
2065         * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
2066         to update conditions. Fix reg_mode[] check.
2068 2010-09-22  Hariharan Sandanagobalane  <hariharan@picochip.com>
2070         * config/picochip/picochip.md (movhicc): Use expand to check whether
2071         movhicc is available and split it after reload.
2073 2010-09-22  Richard Guenther  <rguenther@suse.de>
2075         * tree-ssanames.c (release_dead_ssa_names): Do not remove
2076         callee edges here.
2077         * passes.c (init_optimization_passes): Remove early CFG cleanup.
2078         * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
2079         (pass_cleanup_cfg): Likewise.
2080         (execute_fixup_cfg): Cleanup.
2081         * tree-pass.h (pass_cleanup_cfg): Remove.
2083 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2085         * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
2086         builtins if it is true.
2087         (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
2088         parameter.
2090 2010-09-22  Martin Jambor  <mjambor@suse.cz>
2092         * tree-sra.c (struct access): New field grp_no_warning.
2093         (create_access_replacement): Set TREE_NO_WARNING according to
2094          grp_no_warning.
2095         (create_artificial_child_access): Use build_ref_for_model and set
2096         grp_no_warning if build_user_friendly_ref_for_offset fails.
2097         (propagate_subaccesses_across_link): Likewise.
2099 2010-09-22  Eric Botcazou  <ebotcazou@adacore.com>
2101         PR target/35664
2102         * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
2103         ('f'): Likewise.
2105 2010-09-22  Tristan Gingold  <gingold@adacore.com>
2107         * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
2109 2010-09-22  Uros Bizjak  <ubizjak@gmail.com>
2111         * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
2112         * config/i386/i386.c (decide_alg): Update for rename.
2114 2010-09-22  Jakub Jelinek  <jakub@redhat.com>
2116         PR rtl-optimization/45739
2117         * simplify-rtx.c (simplify_binary_operation_1): Optimize even
2118         vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
2120 2010-09-21  Anatoly Sokolov  <aesok@post.ru>
2122         * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
2123         * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
2124         Remove.
2125         * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
2126         (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
2128 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2130         PR objc/23710
2131         * c-parser.c (c_parser_objc_method_definition): Check the return
2132         value of objc_start_method_definition and if false is returned,
2133         parse the method definition but emit no code.
2135 2010-09-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2137         PR objc/25965
2138         * c-decl.c (detect_field_duplicates): If compiling Objective-C,
2139         call objc_get_interface_ivars ().
2141 2010-09-21  Kai Tietz  <kai.tietz@onevision.com>
2143         PR target/45694
2144         * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
2145         static chain-register is used for 64-bit.
2147 2010-09-21  Richard Guenther  <rguenther@suse.de>
2149         * dwarf2out.c (is_cu_die): New function.
2150         (add_pubtype): Use it.
2151         (gen_subprogram_die): Likewise.
2152         (gen_struct_or_union_type_die): Likewise.
2153         (dwarf2out_finish): Likewise.
2154         (comp_unit_die): Rename to ...
2155         (single_comp_unit_die): ... this.
2156         (comp_unit_die): New function lazily constructing and
2157         returning single_comp_unit_die.
2158         (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
2159         base_type_die, subrange_type_die, modified_type_die,
2160         lower_bound_default, add_bound_info, add_prototyped_attribute,
2161         dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
2162         dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
2163         force_decl_die, gen_namespace_die, dwarf2out_decl,
2164         dwarf2out_start_source_file, dwarf2out_end_source_file,
2165         prune_unused_types, dwarf2out_finish): Use it.
2166         (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
2167         the global list of translation-unit decls.
2168         (dwarf2out_init): Do not create single_comp_unit_die here.
2169         (force_decl_die): Handle TRANSLATION_UNIT_DECL.
2171 2010-09-21  Richard Guenther  <rguenther@suse.de>
2173         * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
2174         for bool for C++.
2176 2010-09-21  Bernd Schmidt  <bernds@codesourcery.com>
2178         * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
2179         (qhs_extenddi_cstr): Likewise.
2180         * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
2181         them for the source operand.
2183 2010-09-21  Uros Bizjak  <ubizjak@gmail.com>
2185         * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
2186         to half_width.  Use GET_MODE_BITSIZE to calculate mode size.
2187         (ix86_split_ashr): Ditto.
2188         (ix86_split_lshr): Ditto.
2190 2010-09-21  Richard Guenther  <rguenther@suse.de>
2192         PR tree-optimization/45580
2193         * tree-ssa-propagate.c (substitute_and_fold): Always replace
2194         regular uses.
2195         * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
2196         virtuals fold the call into a regular indirect one.
2198 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2200         PR rtl-optimization/42775
2201         * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
2202         scheduling is enabled.
2204 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2206         PR rtl-optimization/45728
2207         * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
2208         gen_lowpart_common first and if that fails, force_reg first
2209         before calling gen_lowpart.
2211         PR middle-end/45678
2212         * cfgexpand.c (expand_one_stack_var_at): Use
2213         crtl->max_used_stack_slot_alignment as max_align, instead
2214         of maximum of that and PREFERRED_STACK_BOUNDARY.
2215         Don't call update_stack_alignment.
2217 2010-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2219         * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
2220         * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
2221         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
2222         * system.h (LANG_HOOKS_HASH_TYPES): Poison.
2223         * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
2224         (build_nonstandard_integer_type): Likewise.
2225         (build_range_type_1): New function, built from...
2226         (build_range_type): ...this.  Call build_range_type_1.
2227         (build_nonshared_range_type): New function.
2228         (build_array_type_1): New function, built from...
2229         (build_array_type: ...this.  Call build_array_type_1.
2230         (build_nonshared_array_type): New function.
2231         * tree.h (build_nonshared_range_type): Declare.
2232         (build_nonshared_array_type): Likewise.
2234 2010-09-20  Anatoly Sokolov  <aesok@post.ru>
2236         * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
2237         * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2238         (arm_class_likely_spilled_p): New function.
2240 2010-09-20  Uros Bizjak  <ubizjak@gmail.com>
2242         * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
2243         indirect functions.
2244         (ix86_split_ashl): Ditto.
2245         (ix86_split_ashr): Ditto.
2246         (ix86_split_lshr): Ditto.
2247         (ix86_adjust_counter): Ditto.
2249 2010-09-20  Nicola Pero  <nicola.pero@meta-innovation.com>
2251         * c-family/c-common.h (constant_string_class): Documented with
2252         comment identical to the one already in c-common.c.
2254 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2256         * dwarf2out.c (any_cfis_emitted): New static variable.
2257         (add_fde_cfi): Set it.
2258         (dwarf2out_frame_debug): Clear it before processing,
2259         if it is set afterwards, flush any queued reg saves.
2261         PR debug/45124
2262         * dwarf2out.c (add_accessibility_attribute): Assume
2263         DW_ACCESS_private as the default for dwarf_version > 2
2264         and DW_TAG_class_type parent.
2265         (gen_inheritance_die): Assume DW_ACCESS_public as the default
2266         for dwarf_version > 2 and parent other than DW_TAG_class_type.
2268 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2270         PR target/45726
2271         * arm.md (arm_movt): Only enable on machines with MOVT.
2273 2010-09-20  Jie Zhang  <jie@codesourcery.com>
2275         * config/arm/arm.c (arm_address_offset_is_imm): New.
2276         (arm_early_store_addr_dep): New.
2277         (arm_early_load_addr_dep): New.
2278         * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
2279         (arm_early_load_addr_dep): Declare.
2280         (arm_address_offset_is_imm): Declare.
2281         * config/arm/cortex-m4.md: New file.
2282         * config/arm/cortex-m4-fpu.md: New file.
2283         * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
2284         (attr generic_sched): Exclude cortexm4.
2285         (attr generic_vfp): Exclude cortexm4.
2287 2010-09-20  Richard Guenther  <rguenther@suse.de>
2289         PR middle-end/45704
2290         * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
2292 2010-09-20  Jan Hubicka  <jh@suse.cz>
2294         PR tree-optimize/45605
2295         * cgraph.h (const_value_known_p): Declare.
2296         (varpool_decide_const_value_known): Remove.
2297         * tree-ssa-ccp.c (get_base_constructor): Use it.
2298         * lto-cgraph.c (compute_ltrans_boundary): Likewise.
2299         * expr.c (string_constant): Likewise.
2300         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2301         * ipa.c (ipa_discover_readonly_nonaddressable_var,
2302         function_and_variable_visibility): Likewise.
2303         * gimplify.c (gimplify_call_expr): Likewise.
2304         * gimple-fold.c (get_symbol_constant_value): Likewise.
2305         * varpool.c (varpool_decide_const_value_known): Replace by...
2306         (const_value_known_p): ... this one; handle other kinds of DECLs
2307         too and work for automatic vars.
2308         (varpool_finalize_decl): Use const_value_known_p.
2310 2010-09-20  Rafael Carre  <rafael.carre@gmail.com>
2312         PR target/45726
2313         * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
2315 2010-09-20  Richard Guenther  <rguenther@suse.de>
2317         PR tree-optimization/45705
2318         * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
2320 2010-09-20  Jakub Jelinek  <jakub@redhat.com>
2322         PR rtl-optimization/45695
2323         * combine.c (try_combine): When splitting a two set pattern,
2324         make sure the pattern which will be put into i2 doesn't use REGs
2325         or MEMs set by insns in between i2 and i3.
2327 2010-09-19  Jan Hubicka  <jh@suse.cz>
2329         PR lto/44246
2330         * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
2331         processing same node twice.
2333 2010-09-19  Anatoly Sokolov  <aesok@post.ru>
2335         * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
2336         * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
2337         (bfin_class_likely_spilled_p): New function
2339 2010-09-19  Ira Rosen  <irar@il.ibm.com>
2341         PR tree-optimization/45714
2342         * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
2343         created in vectorizable_call instead of the original statement in
2344         def stmt updates.
2346 2010-09-19  Uros Bizjak  <ubizjak@gmail.com>
2348         * config/i386/i386-protos.h (split_double_mode): New prototype.
2349         (split_di, split_ti): Remove prototypes.
2350         * config/i386/i386.c (split_double_mode): New function.
2351         (split_di, split_ti): Remove.
2352         (ix86_expand_branch): Use split_double_mode.
2353         (ix86_split_to_parts): Ditto.
2354         (ix86_split_ashl): Ditto.
2355         (ix86_split_ashr): Ditto.
2356         (ix86_split_lshr): Ditto.
2357         (ix86_force_to_memory): Ditto.
2358         * config/i386/i386.md: Use split_double_mode in double-mode splitters.
2360 2010-09-18  Jan Hubicka  <jh@suse.cz>
2362         PR tree-optimization/45453
2363         * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
2364         virtual functions are reachable.
2365         * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
2366         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
2367         * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
2368         when modifying function.
2370 2010-09-18  Jan Hubicka  <jh@suse.cz>
2372         PR tree-optimization/45605
2373         * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
2374         * gimple-fold.c (static_object_in_other_unit_p): New function.
2375         (canonicalize_constructor_val): Use it.
2376         (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
2377         returning NULL.
2378         (gimple_fold_obj_type_ref_known_binfo): Use
2379         static_object_in_other_unit_p.
2381 2010-09-18  Richard Guenther  <rguenther@suse.de>
2383         PR tree-optimization/45709
2384         * tree-inline.c (copy_phis_for_bb): Delay commit of edge
2385         insertions until after all PHI nodes of the block are processed.
2387 2010-09-18  Tijl Coosemans  <tijl@coosemans.org>
2389         * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
2391 2010-09-18  Kai Tietz  <kai.tietz@onevision.com>
2393         * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
2395 2010-09-18  Richard Guenther  <rguenther@suse.de>
2397         PR tree-optimization/45709
2398         * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
2400 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2402         * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
2403         (dot_deps_stmt): Same.
2404         * graphite-poly.c (dot_lst): Same.
2405         * graphite-scop-detection.c (dot_all_scops): Same.
2406         (dot_scop): Same.
2408 2010-09-17  Sebastian Pop  <sebastian.pop@amd.com>
2410         Revert:
2411         2009-12-16  Ben Elliston  <bje@au.ibm.com>
2413         * tree-data-ref.c (dot_rdg_1): Added back.
2414         (dot_rdg): Same.  Added "#if 0" around system call.
2416 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2417             Richard Henderson  <rth@redhat.com>
2419         * config/i386/i386.c (initial_ix86_tune_features): Add
2420         X86_TUNE_PAD_SHORT_FUNCTION.
2421         (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
2422         (ix86_count_insn): New.
2423         (ix86_pad_short_function): Likewise.
2424         (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
2426         * config/i386/i386.h (ix86_tune_indices): Add
2427         X86_TUNE_PAD_SHORT_FUNCTION.
2428         (TARGET_PAD_SHORT_FUNCTION): New.
2430         * config/i386/i386.md (UNSPEC_NOPS): New.
2431         (nops): Likewise.
2433 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2435         PR middle-end/45234
2436         * calls.c (expand_call): Make sure that all variable sized
2437         adjustments are multiple of preferred stack boundary after
2438         stack alignment.
2440 2010-09-17  DJ Delorie  <dj@redhat.com>
2442         * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
2443         passed an invalid value, print an error instead of ICEing.
2444         (valid_psw_flag): New.
2445         (rx_expand_builtin): Call it for setpsw/clrpsw.
2446         (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
2448         * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
2449         (bitclr_in_memory): Likewise.
2450         (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
2452 2010-09-17  H.J. Lu  <hongjiu.lu@intel.com>
2454         PR middle-end/45678
2455         * cfgexpand.c (update_stack_alignment): New.
2456         (get_decl_align_unit): Use it.
2457         (expand_one_stack_var_at): Call update_stack_alignment.
2459 2010-09-17  Richard Guenther  <rguenther@suse.de>
2461         * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
2462         Properly copy the read string.
2464 2010-09-17  Joseph Myers  <joseph@codesourcery.com>
2466         * doc/options.texi (Variable): Document.
2467         * optc-gen.awk, opth-gen.awk: Handle Variable records.  Don't
2468         generate target_flags declarations explicitly.  Don't define
2469         VarExists variables for the driver.
2470         * common.opt (target_flags): New Variable record.
2471         (flag_dump_unnumbered, flag_dump_unnumbered_links,
2472         flag_var_tracking, flag_var_tracking_assignments,
2473         flag_var_tracking_assignments_toggle): Don't mark variables with
2474         VarExists.
2475         * config/i386/i386.c (ix86_isa_flags): Don't define here.
2476         * config/i386/i386.opt (ix86_isa_flags): Define here.
2477         * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
2478         * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
2479         VarExists.
2480         * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
2481         * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
2482         Only define for generator programs.
2483         * rtlanal.c (target_flags): Remove.
2484         * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
2485         flag_var_tracking_assignments_toggle): Remove.
2487 2010-09-17  Michael Matz  <matz@suse.de>
2489         PR tree-optimization/43432
2490         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
2491         Accept backwards consecutive accesses.
2492         (vect_create_data_ref_ptr): If step is negative generate
2493         decreasing IVs.
2494         * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
2495         (perm_mask_for_reverse, reverse_vec_elements): New functions.
2496         (vectorizable_load): Handle loads with negative steps when easily
2497         possible.
2499 2010-09-03  Jan Hubicka  <jh@suse.cz>
2501         * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
2503 2010-09-03  Naveen H.S  <naveen.S@kpitcummins.com>
2505         * config/v850/v850.c (v850_function_value_regno_p): Make static.
2506         Adjust comments. Declare.
2507         (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2508         * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
2510 2010-09-17  Richard Guenther  <rguenther@suse.de>
2512         * common.opt (combine): Remove.
2513         * gcc.c (default_compilers): Remove specs testing combine.
2514         The C compilers no longer can combine.
2515         (option_map): Remove -combine.
2516         (display_help): Remove -combine.
2517         (driver_handle_option): Remove OPT_combine handling.
2518         (compile_input_file_p): Remove.
2519         (do_spec): Remove code concerning combine.
2520         (main): Likewise.
2521         * doc/invoke.texi: Remove traces of -combine.
2522         * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
2524 2010-09-17  Richard Guenther  <rguenther@suse.de>
2526         PR middle-end/45678
2527         * builtins.c (fold_builtin_memory_op): Always properly adjust
2528         alignment of memory accesses.
2530 2010-09-16  Jan Hubicka  <jh@suse.cz>
2532         * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
2533         processing clone.
2535 2010-09-16  H.J. Lu  <hongjiu.lu@intel.com>
2537         * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
2539         * config/i386/i386.c (predict_jump): Add prototype.
2540         (flag_opts): Add -m8bit-idiv.
2541         (ix86_split_idivmod): New.
2543         * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
2544         Add 2 splitters for SI/DI mode divide.
2545         (divmod<mode>4_1): New pattern.
2546         (udivmod<mode>4_1): Likewise.
2547         (testdi_ccno_1): Likewise.
2549         * config/i386/i386.opt (m8bit-idiv): New.
2551         * doc/invoke.texi: Document -m8bit-idiv.
2553 2010-09-16  Reza Yazdani  <reza.yazdani@amd.com>
2555         PR bootstrap/45680
2556         * config/i386/i386.c (min_insn_size): Moved out of the
2557         ASM_OUTPUT_MAX_SKIP_PAD ifdef.
2559 2010-09-16  Jan Hubicka  <jh@suse.cz>
2561         * lto-cgraph.c (lto_output_node): Fix handling of clones.
2562         * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
2563         unreachable clones with reachable clones.
2564         * tree-inline.c (copy_bb): Fix sanity checking when producing
2565         unreachable clone.
2567 2010-09-16  Anatoly Sokolov  <aesok@post.ru>
2569         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
2570         (TARGET_MEMORY_MOVE_COST): Define.
2571         (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
2573 2010-09-16  Alexander Monakov  <amonakov@ispras.ru>
2575         * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
2576         maybe_tidy_empty_bb.
2578         Revert:
2579         2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
2580         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
2582 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2584         * target.def (target_option.optimization): New hook.
2585         * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
2586         TARGET_OPTION_OPTIMIZATION hook.
2587         * doc/tm.texi: Regenerate.
2588         * hooks.c (hook_void_int_int): New.
2589         * hooks.h (hook_void_int_int): Declare.
2590         * opts.c: Don't include tm_p.h.
2591         (decode_options): Use targetm.target_option.optimization instead
2592         of OPTIMIZATION_OPTIONS.
2593         * system.h (OPTIMIZATION_OPTIONS): Poison.
2594         * config/arm/arm-protos.h (arm_optimization_options): Remove.
2595         * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
2596         (arm_optimization_options): Rename to arm_option_optimization.
2597         Make static.
2598         * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
2599         * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
2600         (cris_option_optimization): New.
2601         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
2602         * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
2603         (crx_option_optimization): New.
2604         * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
2605         * config/frv/frv-protos.h (frv_optimization_options): Remove.
2606         * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
2607         (frv_optimization_options): Rename to frv_option_optimization.
2608         Make static.
2609         * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
2610         * config/h8300/h8300.c (h8300_option_optimization): New.
2611         (TARGET_OPTION_OPTIMIZATION): Define.
2612         * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
2613         * config/i386/i386-protos.h (optimization_options): Remove.
2614         * config/i386/i386.c (optimization_options): Rename to
2615         ix86_option_optimization.  Make static.
2616         (TARGET_OPTION_OPTIMIZATION): Define.
2617         * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
2618         * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
2619         * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
2620         (ia64_optimization_options): Rename to ia64_option_optimization.
2621         Make static.  Call SUBTARGET_OPTIMIZATION_OPTIONS.
2622         * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove.  Remove
2623         commented-out definition.
2624         * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2625         instead of OPTIMIZATION_OPTIONS.
2626         * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
2627         (m32r_option_optimization): New.
2628         * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
2629         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
2630         Remove.
2631         * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
2632         (mcore_option_optimization): New.
2633         * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
2634         * config/mep/mep-protos.h (mep_optimization_options): Remove.
2635         * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
2636         (mep_optimization_options): Rename to mep_option_optimization.
2637         Make static.  Take unused level and size parameters.
2638         * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
2639         * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
2640         (mmix_option_optimization): New.
2641         * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
2642         * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
2643         (pdp11_option_optimization): New.
2644         * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
2645         * config/rs6000/rs6000-protos.h (optimization_options): Remove.
2646         * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
2647         (optimization_options): Rename to rs6000_option_optimization.
2648         Make static.
2649         * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
2650         * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
2651         * config/rx/rx.c (rx_set_optimization_options): Rename to
2652         rx_option_optimization.  Make static.  Take unused level and size
2653         parameters.
2654         (TARGET_OPTION_OPTIMIZATION): Define.
2655         * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
2656         * config/s390/s390-protos.h (optimization_options): Remove.
2657         * config/s390/s390.c (optimization_options): Rename to
2658         s390_option_optimization.  Make static.  Don't mark size parameter
2659         unused.
2660         (TARGET_OPTION_OPTIMIZATION): Define.
2661         * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
2662         * config/sh/sh-protos.h (sh_optimization_options): Remove.
2663         * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
2664         (sh_optimization_options): Rename to sh_option_optimization.  Make
2665         static.  Don't mark parameters unused.
2666         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
2667         * config/spu/spu-protos.h (spu_optimization_options): Remove.
2668         * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
2669         (spu_optimization_options): Rename to spu_option_optimization.
2670         Make static.
2671         * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
2672         * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
2673         (v850_option_optimization): New.
2674         * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
2675         * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
2676         (xtensa_option_optimization): New.
2677         * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
2679 2010-09-16  Joseph Myers  <joseph@codesourcery.com>
2681         * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
2682         (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
2683         * doc/tm.texi: Regenerate.
2684         * system.h (OVERRIDE_OPTIONS): Poison.
2685         * target.def (override): Default to hook_void_void.
2686         * targhooks.c (default_target_option_override): Remove.
2687         * genmodes.c, machmode.def: Update comments mentioning
2688         OVERRIDE_OPTIONS.
2689         * config/alpha/alpha-modes.def: Update comment mentioning
2690         alpha_override_options.
2691         * config/alpha/alpha-protos.h (override_options): Remove.
2692         * config/alpha/alpha.c (override_options): Rename to
2693         alpha_option_override.  Call SUBTARGET_OVERRIDE_OPTIONS.  Make static.
2694         (TARGET_OPTION_OVERRIDE): Define.
2695         * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
2696         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
2697         of OVERRIDE_OPTIONS.
2698         * config/arc/arc-protos.h (arc_init): Remove.
2699         * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
2700         (arc_init): Rename to arc_option_override.  Make static.
2701         * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
2702         (OVERRIDE_OPTIONS): Remove.
2703         * config/arm/arm-protos.h (arm_override_options): Remove.
2704         * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
2705         (arm_override_options): Rename to arm_option_override.  Make
2706         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2707         * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
2708         * config/arm/arm.md: Update comment referring to arm_override_options.
2709         * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2710         instead of OVERRIDE_OPTIONS.
2711         * config/avr/avr-protos.h (avr_override_options): Remove.
2712         * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
2713         (avr_override_options): Rename to avr_option_override.  Make static.
2714         * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
2715         * config/bfin/bfin-protos.h (override_options): Remove (twice).
2716         * config/bfin/bfin.c (override_options): Rename to
2717         bfin_option_override.  Make static.
2718         (TARGET_OPTION_OVERRIDE): Define.
2719         * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
2720         * config/cris/cris-protos.h (cris_override_options): Remove.
2721         * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
2722         (cris_override_options): Rename to cris_option_override.  Make static.
2723         * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
2724         * config/frv/frv-protos.h (frv_override_options): Remove.
2725         * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
2726         (frv_override_options): Rename to frv_option_override.  Make static.
2727         * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
2728         * config/h8300/h8300-protos.h (h8300_init_once): Remove.
2729         * config/h8300/h8300.c (h8300_init_once): Rename to
2730         h8300_option_override.  Make static.
2731         (TARGET_OPTION_OVERRIDE): Define.
2732         * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
2733         * config/i386/i386-protos.h (override_options): Remove.
2734         * config/i386/i386.c (override_options): Rename to
2735         ix86_option_override_internal.  Make static.  Comments referring
2736         to this function and callers changed.
2737         (ix86_option_override): New.
2738         (TARGET_OPTION_OVERRIDE): Define.
2739         * config/i386/i386.h (OVERRIDE_OPTION): Remove.
2740         * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
2741         * config/ia64/ia64.c (ia64_file_start): Update comment referring
2742         to ia64_override_options.
2743         * config/iq2000/iq2000-protos.h (override_options): Remove.
2744         * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
2745         (override_options): Rename to iq2000_option_override.  Make static.
2746         * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
2747         * config/lm32/lm32-protos.h (lm32_override_options): Remove.
2748         * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
2749         (lm32_override_options): Rename to lm32_option_override.  Make static.
2750         * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
2751         * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
2752         (m32r_option_override): New.
2753         (m32r_init): Update comment.
2754         * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
2755         * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
2756         * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
2757         (m68hc11_override_options): Rename to m68hc11_option_override.
2758         Make static.  Return void.
2759         * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
2760         * config/m68k/m68k-protos.h (override_options): Remove.
2761         * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
2762         (override_options): Rename to m68k_option_override.  Make static.
2763         * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
2764         * config/mcore/mcore-protos.h (mcore_override_options): Remove.
2765         * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
2766         (mcore_override_options): Rename to mcore_option_override.  Make
2767         static.
2768         * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
2769         * config/mep/mep-protos.h (mep_override_options): Remove.
2770         * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
2771         (mep_override_options): Rename to mep_option_override.  Make static.
2772         * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
2773         * config/mmix/mmix-protos.h (mmix_override_options): Remove.
2774         * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
2775         (mmix_override_options): Rename to mmix_option_override.  Make static.
2776         * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
2777         * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
2778         * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
2779         (mn10300_override_options): Rename to mn10300_option_override.
2780         Make static.
2781         * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
2782         * config/moxie/moxie-protos.h (moxie_override_options): Remove.
2783         * config/moxie/moxie.c (moxie_override_options): Rename to
2784         moxie_option_override.  Make static.
2785         (TARGET_OPTION_OVERRIDE): Define.
2786         * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
2787         * config/picochip/picochip-protos.h (picochip_override_options):
2788         Remove.  Update comment referring to picochip_override_options.
2789         * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
2790         (picochip_override_options): Rename to picochip_option_override.
2791         Make static.  Update comment and definition of
2792         TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
2793         * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
2794         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2795         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2796         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2797         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2798         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2799         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
2800         instead of OVERRIDE_OPTIONS.
2801         * config/rs6000/rs6000-modes.def: Update comment referring to
2802         rs6000_override_options.
2803         * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
2804         * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
2805         (rs6000_override_options): Rename to
2806         rs6000_option_override_internal.  Make static.  Commented
2807         referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
2808         (rs6000_option_override): New.
2809         * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
2810         instead of OVERRIDE_OPTIONS.
2811         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
2812         * config/s390/s390-protos.h (override_options): Remove.
2813         * config/s390/s390.c (override_options): Rename to
2814         s390_option_override.  Make static.
2815         (TARGET_OPTION_OVERRIDE): Define.
2816         * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
2817         * config/score/score-protos.h (score_override_options): Remove.
2818         * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
2819         (score_override_options): Rename to score_option_override.  Make
2820         static.
2821         * config/score/score.h (OVERRIDE_OPTIONS): Remove.
2822         Update comment referring to override_options.
2823         * config/score/score3.c (score3_override_options): Rename to
2824         score3_option_override.
2825         * config/score/score3.h (score3_override_options): Rename to
2826         score3_option_override.
2827         * config/score/score7.c (score7_override_options): Rename to
2828         score7_option_override.
2829         * config/score/score7.h (score7_override_options): Rename to
2830         score7_option_override.
2831         * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
2832         * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
2833         (sparc_override_options): Rename to sparc_option_override.  Make
2834         static.  Call SUBTARGET_OVERRIDE_OPTIONS.
2835         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
2836         * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
2837         instead of OVERRIDE_OPTIONS.
2838         * config/spu/spu-protos.h (spu_override_options): Remove.
2839         * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
2840         (spu_override_options): Rename to spu_option_override.  Make
2841         static.
2842         * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
2843         * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
2844         OVERRIDE_OPTIONS.
2845         * config/vax/vax-protos.h (override_options): Remove.
2846         * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
2847         (override_options): Rename to vax_option_override.  Make static.
2848         Call SUBTARGET_OVERRIDE_OPTIONS.
2849         * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
2850         * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
2851         * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
2852         * config/xtensa/xtensa-protos.h (override_options): Remove.
2853         * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
2854         (override_options): Rename to xtensa_option_override.  Make static.
2855         * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
2857 2010-09-16  Richard Guenther  <rguenther@suse.de>
2859         PR tree-optimization/45623
2860         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
2861         (get_constraint_for_component_ref): If computing a constraint
2862         for the rhs handle type punning through unions.
2863         (get_constraint_for_address_of): Adjust.
2864         (get_constraint_for_1): Likewise.
2865         (get_constraint_for): Likewise.
2866         (get_constraint_for_rhs): New function.
2867         (do_structure_copy): Adjust.
2868         (make_constraint_to): Likewise.
2869         (handle_const_call): Likewise.
2870         (find_func_aliases): Likewise.
2871         (process_ipa_clobber): Likewise.
2872         (create_variable_info_for): Likewise.
2874 2010-09-16  Ira Rosen  <irar@il.ibm.com>
2876         * tree-vectorizer.c: Fix documentation.
2877         * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
2878         (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
2879         is_pattern_stmt_p, is_loop_header_bb_p,
2880         stmt_vinfo_set_inside_of_loop_cost,
2881         stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
2882         known_alignment_for_access_p): Likewise.
2883         * tree-vect-loop.c: Fix documentation.
2884         (vect_get_cost): Start function name from new line.
2885         * tree-vect-data-refs.c: Fix documentation.
2886         * tree-vect_stmts.c: Likewise.
2887         (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
2888         (vectorizable_store): Free vec_oprnds if allocated.
2889         (vectorizable_condition): Initialize several variables to avoid
2890         warnings.
2891         * tree-vect-slp.c: Fix documentation.
2893 2010-09-16  Richard Guenther  <rguenther@suse.de>
2895         * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
2896         is TS_TRANSLATION_UNIT_DECL.
2897         (initialize_tree_contains_struct): Adjust.
2898         (all_translation_units): New global vector.
2899         (build_translation_unit_decl): New function.
2900         * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
2901         (struct tree_translation_unit_decl): New.
2902         (all_translation_units): Declare.
2903         (union tree_node): Add translation_unit_decl member.
2904         (build_translation_unit_decl): Declare.
2905         * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
2906         * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
2907         New function.
2908         (pack_value_fields): Call it.
2909         (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
2910         (lto_output_ts_translation_unit_decl_tree_pointers): New function.
2911         (lto_output_tree_pointers): Call it.
2912         * lto-streamer-in.c (lto_input_tree_ref): Handle references
2913         to TRANSLATION_UNIT_DECL.
2914         (unpack_ts_translation_unit_decl_value_fields): New function.
2915         (unpack_value_fields): Call it.
2916         (lto_input_ts_translation_unit_decl_tree_pointers): New function.
2917         (lto_input_tree_pointers): Call it.
2918         * lto-streamer.c (check_handled_ts_structures): Adjust.
2919         * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
2920         * c-decl.c (all_translation_units): Remove.
2921         (pop_scope): Use build_translation_unit_decl.
2922         (collect_all_refs): Adjust.
2923         (for_each_global_decl): Likewise.
2924         (c_write_global_declarations): Likewise.
2926 2010-09-16  Jakub Jelinek  <jakub@redhat.com>
2928         PR bootstrap/45686
2929         * fold-const.c (fold_checksum_tree): Change slot from const void **
2930         to void **, use CONST_CAST_TREE to store into *slot.
2932 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2934         * config/i386/i386.md: Remove unneeded empty conditions and
2935         preparation statements from expanders.
2936         * config/i386/mmx.md: Ditto.
2937         * config/i386/sse.md: Ditto.
2939 2010-09-16  Uros Bizjak  <ubizjak@gmail.com>
2941         * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
2943 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
2945         PR rtl-optimization/45593
2946         * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
2947         insns that were in delay slots as stand-alone insns.
2949 2010-09-15  Ian Lance Taylor  <iant@google.com>
2951         * incpath.c (remove_duplicates): If name is not a directory, issue
2952         a warning rather than an error.
2954 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2956         PR middle-end/45644
2957         * tree-sra.c (create_access): Check for bit-fields directly.
2959 2010-09-15  Jakub Jelinek  <jakub@redhat.com>
2961         PR tree-optimization/45633
2962         * tree-cfg.c (verify_gimple_assign_binary): Allow
2963         MINUS_EXPR with lhs and rhs1 pointer vector and
2964         rhs2 sizetype vector.
2965         * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
2966         or vector pointer use TER to optimize pointer subtraction.
2968 2010-09-15  Jie Zhang  <jie@codesourcery.com>
2970         * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
2971         fcmpd to fcmps.
2973 2010-09-15  Ian Lance Taylor  <iant@google.com>
2975         * config/i386/i386.md (truncxf<mode>2): Fix indentation.
2977 2010-09-15  Ian Lance Taylor  <iant@google.com>
2979         * function.c (get_arg_pointer_save_area): Set
2980         arg_pointer_save_area_init to true.
2982 2010-09-15  Martin Jambor  <mjambor@suse.cz>
2984         * tree-sra.c (generate_subtree_copies): Updated comment.
2985         (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
2986         obtained from the statement iterator instead.
2987         (load_assign_lhs_subreplacements): Removed parameters lhs and
2988         right_offset, which is obtained from top_racc instead.  Parameter lacc
2989         is now expected to be the root of the processed tree rather than root's
2990         first child.  Updated all callers.
2992 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
2994         * config/pdp11/pdp11.c (register_move_cost): Rename to
2995         pdp11_register_move_cost.
2996         * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
2997         pdp11_register_move_cost.
2998         * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
2999         pdp11_register_move_cost instead of register_move_cost.
3001 2010-09-15  Tejas Belagod  <tejas.belagod@arm.com>
3003         * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
3004         pattern for vmovn. Expansion in case of non
3005         -mvectorize-with-neon-quad.
3006         (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
3007         non- -mvectorize-with-neon-quad case.
3008         (move_lo_quad_<mode>): New expansion to vmov into low part.
3009         (move_hi_quad_<mode>): New expansion to vmov into high part.
3010         (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
3011         (move_lo_quad_v4sf): Likewise.
3012         (move_lo_quad_v8hi): Likewise.
3013         (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
3014         low part.
3015         (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
3016         high part.
3017         * config/arm/iterators.md (ANY128): New mode iterator.
3018         (V_narrow_pack): New mode attribute.
3019         (V_HALF): Add attribute.
3020         (V_DOUBLE): Add attribute.
3021         (V_mode_nunits): Add attribute.
3023 2010-09-15  Eric Botcazou  <ebotcazou@adacore.com>
3025         * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
3026         is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
3028 2010-09-15  Olivier Hainque  <hainque@adacore.com>
3029             Jose Ruiz  <ruiz@adacore.com>
3031         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
3032         * config/alpha/osf5-unwind.h: New file.
3034 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3036         PR bootstrap/45672
3037         * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
3038         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3039         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3041 2010-09-15  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3043         * c-lang.h (struct lang_type): Add variable_size GTY option.
3045 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3047         PR bootstrap/45672
3048         * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3050 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3052         * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
3053         result isn't used in memory address.
3055 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3057         * defaults.h (UNITS_PER_SIMD_WORD): Removed.
3058         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
3059         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
3060         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
3061         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
3062         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
3064         * target.def: Add units_per_simd_word to vectorize.
3066         * targhooks.c (default_units_per_simd_word): New.
3067         * targhooks.h (default_units_per_simd_word): Likewise.
3068         * config/arm/arm.c (arm_units_per_simd_word): Likewise.
3069         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3070         * config/mips/mips.c (mips_units_per_simd_word): Likewise.
3071         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3072         * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
3073         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3074         * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
3075         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
3077         * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
3078         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
3080         * tree-vect-stmts.c: Don't include "tm_p.h".
3081         (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
3082         with targetm.vectorize.units_per_simd_word.
3084         * system.h (UNITS_PER_SIMD_WORD): Poisoned.
3086         * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
3088         * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
3089         (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
3091         * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD.  Add
3092         TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
3094         * doc/tm.texi: Regenerated.
3096 2010-09-14  H.J. Lu  <hongjiu.lu@intel.com>
3098         * tree-vect-stmts.c: Include "tm_p.h".
3100         * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
3101         out of RTX_CODE.
3103 2010-09-14  Martin Jambor  <mjambor@suse.cz>
3105         * tree-sra.c (build_ref_for_offset): Loc made a parameter.  Set the
3106         location of generated statement.  Changed all callers.
3107         (build_ref_for_model): New parameter loc which used to set location of
3108         all generated expressions.  Changed all callers.
3109         (generate_subtree_copies): Likewise.
3110         (init_subtree_with_zero): Likewise.
3111         (sra_modify_expr): Set locations of all generated statements and
3112         expressions to the location the original statement.
3113         (handle_unscalarized_data_in_subtree): Likewise.
3114         (load_assign_lhs_subreplacements): Likewise.
3115         (sra_modify_constructor_assign): Likewise.
3116         (sra_modify_assign): Likewise.
3118 2010-09-14  Eric Botcazou  <ebotcazou@adacore.com>
3120         PR target/45277
3121         PR target/45363
3122         PR target/45407
3123         * doc/install.texi (sparc*-*-*): New section.
3124         (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
3126 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3128         PR middle-end/45567
3129         * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
3130         expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
3131         (expand_builtin): Adjust caller.
3132         (expand_builtin_unop): Only use subtarget if it has the right mode.
3134 2010-09-14  Tristan Gingold  <gingold@adacore.com>
3136         * configure.ac (plugins): Fix typos.
3137         * configure: Regenerate.
3139 2010-09-14  Jakub Jelinek  <jakub@redhat.com>
3141         PR debug/45660
3142         * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
3143         gen_type_die for function/method return type.
3145 2010-09-14  Ira Rosen  <irar@il.ibm.com>
3147         PR tree-optimization/45470
3148         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
3149         can throw an exception.
3150         * tree-vect-stmts.c (vectorizable_call): Likewise.
3152 2010-09-14  DJ Delorie  <dj@redhat.com>
3154         PR target/44749
3155         * config/mep/mep-protos.h (mep_save_register_info,
3156         mep_reinit_regs, mep_init_regs): Declare.
3158         * config/mep/mep.c: Move all target definitions to the end of the
3159         file to avoid the need for duplicate declarations.
3160         (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
3161         (mep_reorg_erepeat): Remove unused variables.
3162         (mep_expand_builtin): Likewise.
3164         * config/mep/mep-pragma.c: Don't include rtl.h.
3165         (INVALID_REGNUM): New.
3166         (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
3167         functions.
3168         (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
3169         Avoid enum/integer math.
3171 2010-09-13  Joseph Myers  <joseph@codesourcery.com>
3173         PR target/44749
3174         * config/mep/t-mep (GTM_H): Add insn-constants.h.
3175         * config/mep/mep.c (mep_conditional_register_usage): Take no
3176         parameters.
3177         * config/mep/mep-protos.h (mep_conditional_register_usage): Update
3178         prototype.
3179         * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
3180         call to mep_conditional_register_usage.
3182 2010-09-13  Eric Botcazou  <ebotcazou@adacore.com>
3184         PR debug/43937
3185         * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
3186         the DECL as well.
3188 2010-09-13  Jakub Jelinek  <jakub@redhat.com>
3190         PR rtl-optimization/45617
3191         * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
3192         even if low N bits of X aren't known to be zero.
3194 2010-09-13  H.J. Lu  <hongjiu.lu@intel.com>
3196         * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
3198         * config/i386/i386.c (initial_ix86_tune_features): Add
3199         X86_TUNE_VECTORIZE_DOUBLE.
3200         (ix86_units_per_simd_word): New.
3202         * config/i386/i386.h (ix86_tune_indices): Add
3203         X86_TUNE_VECTORIZE_DOUBLE.
3204         (TARGET_VECTORIZE_DOUBLE): New.
3205         (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
3207 2010-09-13  Pat Haugen  <pthaugen@us.ibm.com>
3209         * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
3210         (new_temp_expr_table): Allocate call_cnt vector.
3211         (free_temp_expr_table): Free it.
3212         (process_replaceable): Add call_cnt parm and set in vector.
3213         (find_replaceable_in_bb): Skip replacement if def/use span a call.
3214         (debug_ter): Dump call_cnt value, remove stderr uses.
3216 2010-09-13  Jan Hubicka  <jh@suse.cz>
3218         * tree.c (build_zero_cst): New.
3219         * tree.h (build_zero_cst): Declare.
3220         * tree-ssa-ccp.c (get_constant_value): Accept general operands.
3221         (get_base_constructor): Break out from ...
3222         (fold_const_aggregate_ref): Here; handle empty constructors.
3224 2010-09-13  Marcus Shawcroft  <marcus.shawcroft@arm.com>
3226         * config/arm/arm.md: (define_attr "conds"): Update comment.
3227         * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
3228         conds attribute to clob.
3229         (arm_sync_compare_and_swapsi): Likewise.
3230         (arm_sync_compare_and_swap<mode>): Likewise.
3231         (arm_sync_lock_test_and_setsi): Likewise.
3232         (arm_sync_lock_test_and_set<mode>): Likewise.
3233         (arm_sync_new_<sync_optab>si): Likewise.
3234         (arm_sync_new_nandsi): Likewise.
3235         (arm_sync_new_<sync_optab><mode>): Likewise.
3236         (arm_sync_new_nand<mode>): Likewise.
3237         (arm_sync_old_<sync_optab>si): Likewise.
3238         (arm_sync_old_nandsi): Likewise.
3239         (arm_sync_old_<sync_optab><mode>): Likewise.
3240         (arm_sync_old_nand<mode>): Likewise.
3242 2010-09-13  Olivier Hainque  <hainque@adacore.com>
3244         * fwprop.c (forward_propagate_and_simplify): Only attach a
3245         REG_EQUAL note to an insn if the destination is a register.
3246         * gcse.c (try_replace_reg): Likewise.
3248 2010-09-13  Richard Guenther  <rguenther@suse.de>
3250         PR tree-optimization/45611
3251         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
3252         (copy_ref_info): Likewise.
3254 2010-09-13  Alexandre Oliva  <aoliva@redhat.com>
3256         PR debug/45604
3257         PR debug/45419
3258         PR debug/45408
3259         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3260         types of MEM_REF pointer types to the same type.
3262 2010-09-13  Hans-Peter Nilsson  <hp@axis.com>
3264         PR rtl-optimization/41087
3265         * ifcvt.c (noce_get_condition): Don't allow conditions with
3266         side-effects.
3268 2010-09-12  Anatoly Sokolov  <aesok@post.ru>
3270         * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3271         * config/frv/frv-protos.h (frv_register_move_cost): Remove.
3272         * config/frv/frv.c (frv_register_move_cost): Make static. Change
3273         arguments type to reg_class_t. Add mode argument.
3274         (frv_memory_move_cost): New.
3275         (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
3277 2010-09-12  Bernd Schmidt  <bernds@codesourcery.com>
3279         * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
3280         arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
3282 2010-09-10  Jan Hubicka  <jh@suse.cz>
3284         * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
3286 2010-09-10  Richard Guenther  <rguenther@suse.de>
3288         * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
3289         * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
3290         * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
3291         not stream TYPE_DEBUG_REPRESENTATION_TYPE.
3292         * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
3294 2010-09-10  Richard Guenther  <rguenther@suse.de>
3296         * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
3297         for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
3298         * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
3299         using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
3301 2010-09-10  H.J. Lu  <hongjiu.lu@intel.com>
3303         PR middle-end/45634
3304         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
3305         of string folding is of integral type.
3307 2010-09-10  Ryan Mansfield  <rmansfield@qnx.com>
3309         * doc/invoke.texi (-x): Fix typo.
3311 2010-09-10  Richard Guenther  <rguenther@suse.de>
3313         PR debug/44115
3314         * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
3315         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
3316         Output DECL_DEBUG_EXPR.
3317         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
3318         Input DECL_DEBUG_EXPR.
3320 2010-09-10  Richard Guenther  <rguenther@suse.de>
3322         * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
3323         (build_index_type): Implement in terms of build_range_type.
3324         (build_range_type): Do not allow NULL_TREE type, improve
3325         hashing to cover more cases.  Set TYPE_STRUCTURAL_EQUALITY_P
3326         if we didn't hash.
3327         * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
3328         create a distinct copy of the type.
3330 2010-09-10  Kai Tietz  <kai.tietz@onevision.com>
3332         * configure: Regenerated.
3333         * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
3335 2010-09-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3337         * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
3338         * config/arm/cortex-a9-neon.md: New and partially generated.
3339         * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
3341 2010-09-10  Richard Guenther  <rguenther@suse.de>
3343         * tree.h (build_index_2_type): Remove.
3344         * tree.c (build_index_2_type): Remove.
3346 2010-09-10  Jakub Jelinek  <jakub@redhat.com>
3348         PR bootstrap/45630
3349         * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
3350         HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
3351         (implicit_ptr_descriptor): Return NULL if dwarf_strict.
3353 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3355         PR tree-optimization/44972
3356         * tree-sra.c: Include toplev.h.
3357         (build_ref_for_offset): Entirely reimplemented.
3358         (build_ref_for_model): New function.
3359         (build_user_friendly_ref_for_offset): New function.
3360         (analyze_access_subtree): Removed build_ref_for_offset check.
3361         (propagate_subaccesses_across_link): Likewise.
3362         (create_artificial_child_access): Use
3363         build_user_friendly_ref_for_offset.
3364         (propagate_subaccesses_across_link): Likewise.
3365         (ref_expr_for_all_replacements_p): Removed.
3366         (generate_subtree_copies): Updated comment.  Use build_ref_for_model.
3367         (sra_modify_expr): Use build_ref_for_model.
3368         (load_assign_lhs_subreplacements): Likewise.
3369         (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
3370         checks for return values of build_ref_for_offset.
3371         * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
3372         build_ref_for_offset.
3373         * ipa-prop.h: Include gimple.h
3374         * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
3375         (ipa_analyze_indirect_call_uses): Update comment.
3376         * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
3377         (IPA_PROP_H): Likewise.
3379 2010-09-10  Martin Jambor  <mjambor@suse.cz>
3381         PR tree-optimization/44972
3382         * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
3383         calling build_ref_for_offset.
3385 2010-09-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3387         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
3388         * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
3389         * config/arm/arm-tune.md: Regenerate.
3390         * doc/invoke.texi (ARM Options): Document it.
3392 2010-09-09  Reza Yazdani  <reza.yazdani@amd.com>
3394         * config/i386/i386.c: Include sched-int.h.
3395         (TARGET_SCHED_DISPATCH): Defined.
3396         (TARGET_SCHED_DISPATCH_DO): Defined.
3397         (DISPATCH_WINDOW_SIZE): Defined.
3398         (MAX_DISPATCH_WINDOWS): Defined.
3399         (MAX_INSN): Defined.
3400         (MAX_IMM): Defined.
3401         (MAX_IMM_SIZE): Defined.
3402         (MAX_IMM_32): Defined.
3403         (MAX_IMM_64): Defined.
3404         (MAX_LOAD): Defined.
3405         (MAX_STORE): Defined.
3406         (BIG): Defined.
3407         (dispatch_group): New.
3408         (num_allowable_groups): New.
3409         (group_name): New.
3410         (sched_insn_info_s): New.
3411         (dispatch_windows_s): New.
3412         (imm_info_s): New.
3413         (dispatch_window_list): New.
3414         (dispatch_window_list1): New.
3415         (get_mem_group): New.
3416         (is_cmp): New.
3417         (dispatch_violation): New.
3418         (is_branch): New.
3419         (is_prefetch): New.
3420         (init_window): New.
3421         (allocate_window): New.
3422         (init_dispatch_sched): New.
3423         (is_end_basic_block): New.
3424         (process_end_window): New.
3425         (allocate_next_window): New.
3426         (find_constant_1): New.
3427         (find_constant): New.
3428         (get_num_immediates): New.
3429         (has_immediate): New.
3430         (get_insn_path): New.
3431         (get_insn_group): New.
3432         (count_num_restricted): New.
3433         (fits_dispatch_window): New.
3434         (add_insn_window): New.
3435         (add_to_dispatch_window): New.
3436         (debug_dispatch_window_file): New.
3437         (debug_dispatch_window): New.
3438         (debug_insn_dispatch_info_file): New.
3439         (debug_ready_dispatch): New.
3440         (do_dispatch): New.
3441         (has_dispatch): New.
3442         * config/i386/i386.h (debug_ready_dispatch): Declared.
3443         (debug_dispatch_window): Declared.
3444         * config/i386/i386.opt (mdispatch-scheduler): New flag.
3445         * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
3446         (TARGET_SCHED_DISPATCH_DO): New.
3447         * doc/tm.texi: Regererated.
3448         * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
3449         ready_remove_first_dispatch
3450         (schedule_block): Call targetm.sched.dispatch and
3451         targetm.sched.dispatch_do.
3452         (sched_init): Call targetm.sched.dispatch and
3453         targetm.sched.dispatch_do.
3454         (ready_remove_first_dispatch): New.
3455         (number_in_ready): New.
3456         (get_ready_element): New.
3457         * hooks.c (hook_bool_rtx_int_false): New.
3458         (hook_void_rtx_int): New.
3459         * hooks.h (hook_bool_rtx_int_false): Declared.
3460         (hook_void_rtx_int): Declared.
3461         * sched-int.h (IS_DISPATCH_ON): Defined.
3462         (IS_CMP): Defined.
3463         (DISPATCH_VIOLATION): Defined.
3464         (FITS_DISPATCH_WINDOW): Defined.
3465         (DISPATCH_INIT): Defined.
3466         (ADD_TO_DISPATCH_WINDOW): Defined.
3467         (get_ready_element): Declared.
3468         (number_in_ready): Declared.
3469         * target.def (dispatch): Defined.
3470         (dispatch_do): Defined.
3472 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3474         PR middle-end/45312
3475         * reload1.c (merge_assigned_reloads): Remove.
3476         (reload_as_needed): Don't call it.
3478 2010-09-09  Anatoly Sokolov  <aesok@post.ru>
3480         * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
3481         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
3482         * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
3484 2010-09-09  Matthias Klose  <doko@ubuntu.com>
3486         PR bootstrap/43847
3487         * configure.ac (--enable-plugin): Enhance for cross builds.
3488         * configure: Regenerate.
3490 2010-09-09  Jan Hubicka  <jh@suse.cz>
3492         PR tree-optimization/45598
3493         * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
3494         string folding is of integral type.
3496 2010-09-09  Nathan Sidwell  <nathan@codesourcery.com>
3498         * configure.ac (gnu_indirect_function): New test.
3499         * configure: Rebuilt.
3500         * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
3501         * defaults.h (IFUNC_ASM_TYPE): Provide default.
3503         * doc/extend.texi (Function Attributes): Document ifunc.
3504         * varasm.c (do_assemble_alias): Deal with ifuncs too.
3506 2010-09-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
3508         * config/picochip/picochip.c (picochip_reorg): Check for note_p for
3509         epilogue instruction move.
3511 2010-09-09  Jan Hubicka  <jh@suse.cz>
3513         * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
3514         command line to allow more partitions than input files.
3516 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3518         PR middle-end/44554
3519         * ira.c (ira): Switch off sharing spill slots if setjmp is called.
3521 2010-09-09  Vladimir Makarov  <vmakarov@redhat.com>
3523         PR middle-end/40386
3524         * ira.c (pseudo_for_reload_consideration_p): Don't use
3525         flag_ira_share_spill_slots.
3527 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3529         * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
3530         point zero operands that fit into a single GPR.
3531         (s390_preferred_reload_class): Ensure we only return general-purpose
3532         register classes.
3533         * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
3534         floating-point zero operands into GPRs.
3535         ("*mov<mode>_64"): Likewise.
3536         ("mov<mode>"): Likewise using lhi.
3538 2010-09-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3540         * config/s390/s390.c (s390_symref_operand_p): Return false for
3541         literal pool references.
3542         (s390_check_qrst_address): Update caller.
3544 2010-09-09  Uros Bizjak  <ubizjak@gmail.com>
3546         * config/i386/predicates.md (ext_register_operand): Check that
3547         SUBREG_REG is really a register before looking for REGNO.
3548         (reg_not_xmm0_operand): Handle SUBREGs correctly.
3549         (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
3551 2010-09-09  Jakub Jelinek  <jakub@redhat.com>
3553         * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
3554         * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
3555         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
3556         * print-rtl.c (print_rtx): Likewise.
3557         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
3558         * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
3559         for ADDR_EXPR with non-addressable object.
3560         * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
3561         (struct dw_val_struct): Add v.val_decl_ref.
3562         (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
3563         Handle DW_OP_GNU_implicit_pointer.
3564         (size_of_loc_descr): Likewise.  Fix up DW_OP_call_ref size.
3565         (get_ref_die_offset_label): New function.
3566         (implicit_ptr_descriptor): New function.
3567         (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
3568         (loc_descriptor): Likewise.
3569         (gen_variable_die): Put even definitions into decl_die_table.
3570         (resolve_addr_in_expr): Resolve still unresolved
3571         DW_OP_GNU_implicit_pointer operands, if it can't be resolved
3572         return false.
3573         (dwarf2out_finish): Call output_location_lists after outputting
3574         .debug_info and .debug_abbrev instead of before.
3576 2010-09-09  Roland McGrath  <roland@redhat.com>
3578         * dwarf2out.c (DWARF_REF_SIZE): Define.
3579         (size_of_loc_descr): Use it for DW_OP_call_ref.
3581 2010-09-09  Alan Modra  <amodra@gmail.com>
3583         * doc/invoke.text: Reinstate mcmodel=medium.
3584         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
3585         CMODEL_MEDIUM as default.
3586         * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
3587         * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
3588         (toc_relative_ok, offsettable_ok_by_alignment): New functions.
3589         (rs6000_emit_move): Reinstate mcmodel=medium optimization.
3591 2010-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3593         PR target/45250
3594         * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
3595         hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
3596         (builtin_longjmp): Likewise.
3597         (allocate_stack): Use hard_frame_pointer_rtx instead of
3598         frame_pointer_rtx.
3599         * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
3600         * config/pa/pa.c (pa_internal_arg_pointer): Declare.
3601         (pa_can_eliminate): Likewise.
3602         (TARGET_INTERNAL_ARG_POINTER): Define.
3603         (TARGET_CAN_ELIMINATE): Define.
3604         (hppa_expand_prologue): Use hard frame pointer instead of soft frame
3605         pointer.
3606         (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
3607         (pa_internal_arg_pointer, pa_can_eliminate,
3608         pa_initial_elimination_offset): New.
3609         * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
3610         (HARD_FRAME_POINTER_REGNUM): Set to register three.
3611         (INITIAL_FRAME_POINTER_OFFSET): Delete.
3612         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
3613         Define.
3614         (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
3615         REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
3616         * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
3617         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
3618         REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
3619         new soft frame pointer.
3620         * config/pa/pa64-regs.h: Likewise.
3622 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3624         * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
3625         numerical constant.
3626         (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
3628 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3630         PR debug/45531
3631         * cfglayout.c (fixup_reorder_chain): Skip debug insns.
3633 2010-09-08  Alexandre Oliva  <aoliva@redhat.com>
3635         PR debug/45419
3636         PR debug/45408
3637         * tree-pretty-print.c (dump_generic_node): Disregard top-level
3638         qualifiers in otherwise equal MEM_REF pointer types.
3639         * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
3640         * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
3642 2010-09-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3644         PR target/44392
3645         * config/arm/arm.md (bswapsi2): Handle condition correctly
3646         for armv6 and optimize_size.
3648 2010-09-08  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3650         PR other/18555
3651         * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
3653 2010-09-08  Uros Bizjak  <ubizjak@gmail.com>
3655         * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
3656         symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
3657         ix86_expand_strlen, legitimate_pic_address_disp_p,
3658         ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
3659         ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
3660         ix86_check_movabs, ix86_secondary_memory_needed): Change function
3661         prototype to bool.
3662         * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
3663         return_in_memory_ms_64, ix86_check_movabs,
3664         symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
3665         legitimate_pic_address_disp_p, ix86_binary_operator_ok,
3666         ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
3667         ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
3668         ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
3669         ix86_secondary_memory_needed): Change to bool.  Return
3670         "true" and "false" values.
3671         * config/i386/i386.md: Return "true" and "false" values.
3673 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3675         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3676         run_expensive_tests.
3678 2010-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3680         * toplev.c (output_stack_usage): Use lbasename instead of basename.
3682 2010-09-08  Martin Jambor  <mjambor@suse.cz>
3684         PR other/45443
3685         * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
3686         at -O3.
3688 2010-09-08  Richard Guenther  <rguenther@suse.de>
3690         * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
3691         (visit): Adjust.
3692         (iterative_hash_gimple_type): Likewise.
3693         (gimple_type_hash): Likewise.
3694         (gimple_register_type): Likewise.
3695         (print_gimple_types_stats): Likewise.
3696         (free_gimple_type_tables): Likewise.
3698 2010-09-08  Michael Matz  <matz@suse.de>
3700         PR tree-optimization/43430
3701         * tree-vect-stmts.c (vectorizable_condition): Support multiple
3702         copies for conditional statements if it's not part of a reduction.
3704 2010-09-08  Michael Matz  <matz@suse.de>
3706         PR tree-optimization/33244
3707         * tree-ssa-sink.c (statement_sink_location): Don't sink into
3708         empty loop latches.
3710 2010-09-08  Richard Guenther  <rguenther@suse.de>
3712         PR tree-optimization/45578
3713         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
3714         Be more careful when transfering alignment information to
3715         the new induction variable.
3716         (copy_ref_info): Likewise.
3718 2010-09-08  Richard Guenther  <rguenther@suse.de>
3720         * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
3721         * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
3723 2010-09-08  Arnaud Charlet  <charlet@adacore.com>
3725         * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
3726         * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
3728 2010-09-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
3730         PR doc/45587
3731         * doc/md.texi: Fixed modes on several standard pattern names.
3733 2010-09-08  Mingjie Xing  <mingjie.xing@gmail.com>
3735         * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
3736         (ashl<mode>3): ...this.
3737         (loongson_psra<V_suffix>): Rename to...
3738         (ashr<mode>3): ...this.
3739         (loongson_psrl<V_suffix>): Rename to...
3740         (lshr<mode>3): ...this.
3741         * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
3742         (CODE_FOR_loongson_psllw): Define.
3743         (CODE_FOR_loongson_psrlh): Define.
3744         (CODE_FOR_loongson_psrlw): Define.
3745         (CODE_FOR_loongson_psrah): Define.
3746         (CODE_FOR_loongson_psraw): Define.
3748 2010-09-07  Richard Henderson  <rth@redhat.com>
3750         * tree-vect-data-refs.c: Include tm_p.h.
3751         * Makefile.in (tree-vect-data-refs.o): Update deps.
3752         * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
3753         Move delarations outside #ifdef RTX_CODE.
3755 2010-09-07  Richard Henderson  <rth@redhat.com>
3757         * final.c (rest_of_handle_final): Unconditionally do
3758         output_function_exception_table before assemble_end_function.
3760 2010-09-07  Jan Hubicka  <jh@suse.cz>
3762         * tree-inline.c (tree_inlinable_function_p): Do not test
3763         DECL_REPLACEABLE_P.
3764         * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
3765         update_callee_keys, cgraph_decide_inlining): Test function availability.
3766         * cif-code.def (OVERWRITABLE): New code.
3768 2010-09-07  H.J. Lu  <hjl.tools@gmail.com>
3769             Jack Howarth  <howarth@bromo.med.uc.edu>
3771         PR target/36502
3772         PR target/42313
3773         PR target/44651
3774         * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
3775         profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
3776         (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
3777         MAX macro.
3779 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3781         * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
3782         Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
3784 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3786         * config.gcc: Don't append t-android for Android targets.
3788         * config/t-android: Removed.
3790 2010-09-07  Richard Henderson  <rth@redhat.com>
3792         * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
3793         * doc/tm.texi.in: Add doc marker.
3794         * doc/tm.texi: Rebuild.
3795         * except.c (switch_to_exception_section): Always build.
3796         (output_one_function_exception_table): Move section switch,
3797         personality output, and label output ...
3798         (output_function_exception_table): ... here.  Use the new
3799         personality hook.
3801         * config/ia64/ia64.c (ia64_asm_emit_except_personality,
3802         ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
3803         TARGET_ASM_INIT_SECTIONS): New.
3804         (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
3805         make static.
3806         (TARGET_ASM_UNWIND_EMIT): Update to match.
3807         * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
3809         * config/arm/arm.c (arm_asm_emit_except_personality): New.
3810         (arm_asm_init_sections): New.
3811         (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
3813 2010-09-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3815         * config/arm/arm.md: Remove unused variable.
3817 2010-09-07  Anatoly Sokolov  <aesok@post.ru>
3819         * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
3820         * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
3821         (m32r_memory_move_cost): New function.
3823 2010-09-07  H.J. Lu  <hongjiu.lu@intel.com>
3825         * config.gcc: Append t-android for Android targets.
3827         * config/t-android: New.
3829 2010-09-07  Richard Henderson  <rth@redhat.com>
3831         * target.def (unwind_emit_before_insn): New hook.
3832         * doc/tm.texi.in: Add @hook marker for it.
3833         * doc/tm.texi: Rebuild.
3834         * final.c (final_scan_insn): Respect unwind_emit_before_insn.
3836 2010-09-07  Martin Jambor  <mjambor@suse.cz>
3838         PR fortran/43665
3839         * ipa-cp.c (ipcp_versionable_function_p): Return false if there
3840         are any type attributes.
3842 2010-09-07  Jan Hubicka  <jh@suse.cz>
3844         * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
3845         array_ref_low_bound in string access folding.
3847 2010-09-07  Uros Bizjak  <ubizjak@gmail.com>
3849         PR target/45206
3850         * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
3851         eh_return fixup sequence.
3853 2010-09-07  Jan Hubicka  <jh@suse.cz>
3855         * gimple-fold.c (maybe_fold_reference): Verify that operand is
3856         gimple_min_invariant.
3858 2010-09-07  Richard Guenther  <rguenther@suse.de>
3860         PR middle-end/45569
3861         * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
3862         nor CONSTRUCTOR can trap.
3863         * tree-complex.c (update_complex_assignment): Update EH info.
3865 2010-09-07  Richard Guenther  <rguenther@suse.de>
3867         PR middle-end/45569
3868         * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
3869         * passes.c (execute_function_todo): Do not verify anything if
3870         we saw errors.
3872 2010-09-07  Richard Guenther  <rguenther@suse.de>
3874         * tree-pretty-print.c (dump_generic_node): Dump void types as void.
3876 2010-09-07  Bernd Schmidt  <bernds@codesourcery.com>
3878         PR target/43137
3879         * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
3880         New define_mode_attrs.
3881         * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
3882         arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
3883         (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
3884         (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
3885         Remove pool_range attribute.
3886         (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
3887         arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
3888         pool_range and neg_pool_range attributes.
3889         * config/arm/thumb2.md (thumb2_zero_extendsidi2,
3890         thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
3891         thumb2_extendhidi2, thumb2_extendqidi2): Delete.
3893 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3895         * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
3896         check glibc.
3898 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
3900         PR target/22152
3901         * config/i386/mmx.md (*mov<mode>_internal_rex64,
3902         *mov<mode>_internal_avx, *mov<mode>_internal,
3903         *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
3904         *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
3906 2010-09-06  Mark Mitchell  <mark@codesourcery.com>
3908         * c-typeck.c (do_warn_double_promotion): Remove.
3909         * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
3910         Objective-C++ too.
3912 2010-09-06  Anatoly Sokolov  <aesok@post.ru>
3914         * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
3915         * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
3916         * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
3917         argument type to reg_class_t. Change result type to bool.
3918         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
3920 2010-09-06  Nicola Pero  <nicola.pero@meta-innovation.com>
3922         PR libobjc/19850
3923         * gthr-posix.h (__gthread_objc_thread_detach): Use
3924         _objc_thread_attribs when detaching a thread.
3925         * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
3927 2010-09-06  H.J. Lu  <hongjiu.lu@intel.com>
3929         PR target/45524
3930         * configure.ac (enable_decimal_float): Set to $default_decimal_float.
3931         * configure: Regenerated.
3933 2010-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3935         * combine.c (try_combine): Set subst_low_luid to i0.
3937 2010-09-06  Richard Guenther  <rguenther@suse.de>
3939         * tree.def (MISALIGNED_INDIRECT_REF): Remove.
3940         * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
3941         (build_aligned_type): Declare.
3942         * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
3943         (check_aligned_type): New function.
3944         (build_aligned_type): Likewise.
3945         * expr.c (expand_assignment): Handle misaligned stores via
3946         TARGET_MEM_REF and MEM_REF using movmisalign_optab.
3947         (expand_expr_real_1): Likewise.
3948         (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
3949         * tree-vect-stmts.c (vectorizable_store): Do not build
3950         MISALIGNED_INDIRECT_REF but initialize alignment information.
3951         (vectorizable_load): Likewise.
3952         * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
3953         handling.
3954         * cfgexpand.c (expand_debug_expr): Likewise.
3955         * dwarf2out.c (loc_list_from_tree): Likewise.
3956         * fold-const.c (maybe_lvalue_p): Likewise.
3957         (operand_equal_p): Likewise.
3958         (build_fold_addr_expr_with_type_loc): Likewise.
3959         * gimplify.c (gimplify_addr_expr): Likewise.
3960         (gimplify_expr): Likewise.
3961         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
3962         (verify_gimple_assign_single): Likewise.
3963         * tree-dump.c (dequeue_and_dump): Likewise.
3964         (tree_could_trap_p): Likewise.
3965         * tree-predcom.c (ref_at_iteration): Likewise.
3966         * tree-pretty-print.c (dump_generic_node): Likewise.
3967         (op_code_prio): Likewise.
3968         (op_symbol_code): Likewise.
3969         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3970         * tree-ssa-loop-im.c (for_each_index): Likewise.
3971         (gen_lsm_tmp_name): Likewise.
3972         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
3973         (find_interesting_uses_address): Likewise.
3974         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
3975         * tree-ssa-operands.c (get_expr_operands): Likewise.
3976         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
3977         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3978         (ao_ref_init_from_vn_reference): Likewise.
3979         * tree.c (staticp): Likewise.
3980         (build1_stat): Likewise.
3981         (reference_alias_ptr_type): Likewise.
3982         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
3983         * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
3984         MISALIGNED_INDIRECT_REF handling.
3986 2010-09-06  Richard Guenther  <rguenther@suse.de>
3988         PR tree-optimization/45534
3989         * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
3990         (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
3991         on the target.
3992         (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
3993         valid on the target.
3995 2010-09-06  Andreas Schwab  <schwab@redhat.com>
3997         * configure.ac: Quote argument of AC_MSG_WARN.
3998         * configure: Regenerate.
4000 2010-09-06  Alexander Monakov  <amonakov@ispras.ru>
4002         * sel-sched.c (move_cond_jump): Correct arguments to
4003         maybe_tidy_empty_bb.
4004         * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
4006 2010-09-06  Andrey Belevantsev  <abel@ispras.ru>
4008         PR rtl-optimization/44919
4009         * sel-sched.c (move_cond_jump): Remove assert, check that
4010         the several blocks case can only happen with mutually exclusive
4011         insns instead.  Rewrite the movement code to support moving through
4012         several basic blocks.
4014 2010-09-06  Uros Bizjak  <ubizjak@gmail.com>
4016         * config/i386/i386.md (iptrsize): New mode attribute.
4017         (tp_seg): Ditto.
4018         (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
4019         mode iterator.
4020         (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
4021         (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
4022         (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
4023         (stack_tls_protect_set_<mode>): Ditto from
4024         stack_tls_protect_set_{si,di}.  Use %@ to output segment register
4025         of thread base pointer load.
4026         (stack_tls_protect_test_<mode>): Ditto from
4027         stack_tls_protect_test_{si,di}.  Use %@ to output segment register
4028         of thread base pointer load.
4029         (stack_protect_set): Rewrite using indirect functions.
4030         (stack_protect_test): Ditto.
4031         * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
4032         (ix86_print_operand): Handle '@'.
4034 2010-09-05  Giuseppe Scrivano  <gscrivano@gnu.org>
4036         * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
4037         MINUS_EXPR.
4039 2010-09-05  Mark Mitchell  <mark@codesourcery.com>
4041         * doc/invoke.texi: Document -Wdouble-promotion.
4042         * c-typeck.c (convert_arguments): Check for implicit conversions
4043         from float to double.
4044         (do_warn_double_promotion): New function.
4045         (build_conditional_expr): Use it.
4046         (build_binary_op): Likewise.
4048 2010-09-05  Richard Guenther  <rguenther@suse.de>
4050         PR tree-optimization/45535
4051         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
4052         handle TMR_INDEX2.  Make sure TMR_INDEX is not NULL before
4053         dereferencing it.
4054         (indirect_refs_may_alias_p): Likewise.
4056 2010-09-05  Naveen H.S  <naveen.S@kpitcummins.com>
4058         * config/sh/sh.c (sh_option_override): Make static.
4059         Adjust comments.  Declare.
4060         (sh_function_value_regno_p): Likewise.
4061         (sh_register_move_cost): Modify the arguments, make static.
4062         Adjust comments.  Declare.
4063         (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
4064         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4065         * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
4066         REGISTER_MOVE_COST): Delete.
4067         * config/sh/sh-protos.h (sh_override_options): Delete.
4068         (sh_register_move_cost): Delete.
4069         (sh_function_value_regno_p): Delete.
4071 2010-09-04  Anatoly Sokolov  <aesok@post.ru>
4073         * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
4074         m32r_function_value_regno_p): New functions.
4075         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4076         TARGET_FUNCTION_VALUE_REGNO_P): Declare.
4077         * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
4078         FUNCTION_VALUE_REGNO_P): Remove.
4080 2010-09-04  Jan Hubicka  <jh@suse.cz>
4082         * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
4083         * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
4084         fold_read_from_constant_string.
4086         * gimple.h (canonicalize_constructor_val): Declare.
4087         * gimple-fold.c (canonicalize_constructor_val): New function.
4088         (get_symbol_constant_value):Use it.
4089         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
4091 2010-09-04  Jan Hubicka  <jh@suse.cz>
4093         * tree-switch-conversion.c (build_one_array): Set constructor to be
4094         static.
4095         * varpool.c (varpool_finalize_decl): Compute const_value_known.
4097 2010-09-04  Richard Guenther  <rguenther@suse.de>
4099         PR bootstrap/45519
4100         * tree-flow.h (force_gimple_operand_1): Declare.
4101         (force_gimple_operand_gsi_1): Likewise.
4102         * gimplify.c (force_gimple_operand_1): New worker taking a
4103         gimple predicate for ...
4104         (force_gimple_operand): ... which now wraps it.
4105         (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
4106         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
4107         last change.
4108         * tree-ssa-address.c (gimplify_mem_ref_parts): Use
4109         force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
4110         (create_mem_ref): Likewise.
4112 2010-09-04  Uros Bizjak  <ubizjak@gmail.com>
4114         * config/i386/predicates.md (sse_reg_operand): New predicate.
4115         * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
4116         predicate for operand 1.
4117         (XFmode push splitter): Use fp_register_operand predicate
4118         for operand 1.
4119         (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
4120         (SF-DF float_extend push splitter): Add reload_completed insn
4121         predicate.
4122         ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
4123         MODEF mode macro.  Add reload_completed insn predicate.
4125 2010-09-04  Paolo Bonzini  <bonzini@gnu.org>
4127         * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
4128         (struct df_extract_ref): Remove.
4129         (union df_ref_d): Remove extract_ref member.
4130         (df_ref_create): Remove last three arguments.
4131         (DF_REF_LOC): Remove DF_REF_EXTRACT case.
4132         * df-scan.c (df_ref_record): Remove last three arguments, do not
4133         pass them to df_ref_create_structure.
4134         (df_uses_record): Remove first and last three arguments.  Replace
4135         first argument with DF_REF_REGULAR, adjust calls to remove the
4136         width, offset and mode.  Always call recursively on the second
4137         and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
4138         (df_ref_create_structure): Remove first argument.
4139         (struct df_scan_problem_data): Remove ref_extract_pool.
4140         (df_scan_free_internal): Do not free it.
4141         (df_scan_alloc): Do not allocate it.
4142         (df_ref_create): Remove last three arguments, do not pass them to
4143         df_ref_create_structure.
4144         (df_free_ref): Remove DF_REF_EXTRACT case.
4145         (df_notes_rescan): Adjust call to df_uses_record.
4146         (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
4147         Remove DF_REF_EXTRACT case.
4148         (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
4149         Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
4150         and SUBREG definitions.
4151         (df_get_conditional_uses): Remove references to width/offset/mode,
4152         adjust call to df_ref_create_structure.
4153         (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
4154         df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
4155         calls to df_uses_record and df_ref_record.
4156         * fwprop.c (update_df): Remove references to width/offset/mode,
4157         adjust call to df_ref_create.
4159 2010-09-03  Jan Hubicka  <jh@suse.cz>
4161         * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
4162         (build_cdtor_fns): Update use of build_cdtor.
4164 2010-09-03  Joseph Myers  <joseph@codesourcery.com>
4166         * doc/options.texi (SeparateAlias): Document.
4167         * opt-functions.awk (switch_flags): Handle SeparateAlias.
4168         * opth-gen.awk: Generate enumeration names for options marked
4169         SeparateAlias, but not for those marked Ignore.
4170         * opts-common.c (generate_canonical_option): Don't output separate
4171         argument for options marked CL_SEPARATE_ALIAS.
4172         (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
4173         * opts.h (CL_SEPARATE_ALIAS): New.
4174         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
4175         CL_COMMON): Adjust definitions.
4176         * config/i386/darwin.opt, config/mips/sde.opt: New.
4177         * common.opt (fdump-final-insns): New.
4178         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
4179         i386/darwin.opt.
4180         (mips*-sde-elf*): Add mips/sde.opt.
4181         * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
4182         -mno-data-in-code and -mcode-xonly here.
4183         * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
4184         * gcc.c (option_map): Add "j" to --dump entry.
4185         (translate_options): Don't translate -d to -foutput-class-dir= here.
4187 2010-09-03  Sebastian Pop  <sebastian.pop@amd.com>
4189         * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
4190         DR_IS_WRITE.
4191         (compute_all_dependences): Same.
4192         (create_rdg_edge_for_ddr): Same.
4193         * tree-data-ref.h (DR_IS_WRITE): New.
4194         (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
4195         * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
4196         (write_memrefs_written_at_least_once): Same.
4197         * tree-predcom.c (suitable_component_p): Same.
4198         (determine_roots_comp): Same.
4199         (execute_load_motion): Same.
4200         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
4201         (vect_enhance_data_refs_alignment): Same.
4202         (vect_analyze_group_access): Same.
4204 2010-09-03  Joern Rennecke  <joern.rennecke@embecosm.com>
4206         PR testsuite/42843
4207         * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
4208         (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
4210 2010-09-03  Marcin Baczynski  <marbacz@gmail.com>
4212         * dwarf2out.c (file scope): Remove #if0'd code.
4213         (gen_subprogram_die): Same.
4215 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
4217         PR middle-end/45484
4218         * dwarf2out.c (flush_queued_reg_saves): Rename to...
4219         (dwarf2out_flush_queued_reg_saves): ... this.  No longer static.
4220         (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
4221         * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
4222         * config/i386/i386.c (output_set_got): Call it.
4224 2010-09-03  Michael Matz  <matz@suse.de>
4226         PR middle-end/45415
4227         * tree-sra.c (sra_modify_assign): If we modify the statement,
4228         say so.
4230         * tree-ssa.c (verify_ssa): Check number of operands and links
4231         per statement to agree.
4233 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
4234             Iain Sandoe  <iains@gcc.gnu.org>
4236         PR target/45476
4237         * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
4238         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
4239         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4241 2010-09-03  Richard Guenther  <rguenther@suse.de>
4243         * lto-streamer-out.c (output_function): Output function
4244         start and end loci.
4245         * lto-streamer-in.c (input_function): Input function start
4246         and end loci.
4248 2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4250         * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
4251         * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
4252         * configure: Regenerate.
4253         * aclocal.m4: Regenerate.
4255 2010-09-03  Jan Hubicka  <jh@suse.cz>
4257         PR lto/44812
4258         * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
4259         on functions/variables in other partition.
4261 2010-09-03  Jan Hubicka  <jh@suse.cz>
4263         * cgraph.h (struct varpool_node): Add const_value_known.
4264         (varpool_decide_const_value_known): Declare.
4265         * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
4266         * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
4267         (input_varpool_node): Restore const_value_known.
4268         * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
4269         initializer folding.
4270         * ipa.c (ipa_discover_readonly_nonaddressable_var,
4271         function_and_variable_visibility): Compute const_value_known.
4272         * gimple-fold.c (get_symbol_constant_value): Use varpool for
4273         initializer folding.
4274         * varpool.c (varpool_decide_const_value_known): New function.
4276 2010-09-03  Uros Bizjak  <ubizjak@gmail.com>
4278         * config/i386/i386.md: Remove empty preparation statements
4279         from splitters.
4281 2010-09-03  Jan Hubicka  <jh@suse.cz>
4283         * passes.c (rest_of_decl_compilation): Do not add local vars into
4284         varpool.
4285         * varpool.c (varpool_get_node, varpool_node): Sanity check that only
4286         static or extern vars are in varpool.
4287         (varpool_finalize_decl): Sanity check that only static vars are
4288         finalized.
4290 2010-09-03  Jakub Jelinek  <jakub@redhat.com>
4292         PR debug/45500
4293         * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
4294         not just generic vectors with BLKmode.
4296 2010-09-03  Richard Guenther  <rguenther@suse.de>
4298         * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
4299         Move TMR_OFFSET to second operand.  Add TMR_INDEX2.
4300         * tree.h (TMR_SYMBOL): Remove.
4301         (TMR_BASE, TMR_OFFSET): Adjust.
4302         (TMR_INDEX2): New.
4303         * alias.c (ao_ref_from_mem): Use TMR_BASE.
4304         * builtins.c (get_object_alignment): Merge TMR_BASE and
4305         TMR_SYMBOL handling.
4306         * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
4307         * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
4308         handling.  Also allow TARGET_MEM_REF as base address.
4309         (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
4310         * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
4311         base.  Gimplify TMR_INDEX2.
4312         * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
4313         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4314         (get_addr_base_and_unit_offset): Likewise.
4315         * tree-eh.c (tree_could_trap_p): Likewise.
4316         * tree-pretty-print.c (dump_generic_node): Likewise.
4317         * tree-ssa-address.c (tree_mem_ref_addr): Simplify.  Handle TMR_INDEX2.
4318         (create_mem_ref_raw): Merge symbol and base.  Move 2ndary
4319         base to index2.
4320         (get_address_description): Reconstruct addres description
4321         from merged TMR_BASE and TMR_INDEX2.
4322         (maybe_fold_tmr): Fold propagated addresses.
4323         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
4324         MEM_REF and TARGET_MEM_REF paths.
4325         (indirect_refs_may_alias_p): Likewise.
4326         * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
4327         instead of TMR_SYMBOL.
4328         * tree-ssa-operands.c (get_tmr_operands): Simplify.
4329         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
4330         according to changes ...
4331         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
4332         Split TARGET_MEM_REF into two fields plus the base.
4333         * tree.c (mem_ref_offset): Simplify.
4334         * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
4335         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
4336         Strip NOPs when folding MEM_REF addresses.
4337         * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
4338         * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
4339         (fold_gimple_assign): ... not here.
4341 2010-09-03  Mingjie Xing  <mingjie.xing@gmail.com>
4343         * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
4344         * config/mips/mips.c (mips_shift_truncation_mask): New function.
4345         (TARGET_SHIFT_TRUNCATION_MASK): Define.
4347 2010-09-02  Richard Henderson  <rth@redhat.com>
4349         * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
4350         instead of readelf in the test.
4351         (gcc_cv_as_cfi_sections_directive): Check for correct relocation
4352         in the .debug_frame section for coff targets.
4353         * configure: Rebuild.
4355 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4357         * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
4358         * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
4359         * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4360         (m32c_class_likely_spilled_p): Make static. Change argument type to
4361         reg_class_t. Change result type to bool.
4363 2010-09-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
4365         * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
4366         to convert (double)(long) into a single FRIZ instruction or not
4367         when -ffast-math is used.
4369         * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
4370         (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
4371         or FRIZ instruction if -ffast-math.
4372         * config/rs6000/rs6000.md (friz): Ditto.
4374         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
4376 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4378         * opth-gen.awk (quote, comma): Remove unused variables.
4380 2010-09-02  Ryan Mansfield  <rmansfield@qnx.com>
4382         * arm.c (arm_override_options): Correct fall-back code to use
4383         SUBTARGET_CPU_DEFAULT.
4385 2010-09-02  Julian Brown  <julian@codesourcery.com>
4387         * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
4388         unspecs.
4389         (vcond<mode>, vcondu<mode>): New expanders.
4390         (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
4391         comparisons with zero.
4392         (neon_vcle<mode>, neon_vclt<mode>): New patterns.
4393         * config/arm/constraints.md (Dz): New constraint.
4395 2010-09-02  Anatoly Sokolov  <aesok@post.ru>
4397         * target.def (class_likely_spilled_p): New hook.
4398         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
4399         * doc/tm.texi: Regenerate.
4400         * targhooks.c (default_class_likely_spilled_p): New function.
4401         * targhooks.h (default_class_likely_spilled_p): Declare.
4402         * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
4403         * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
4404         TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
4405         Use fixed_reg_set instead of fixed_regs.
4406         * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4407         * calls.c (avoid_likely_spilled_reg): Ditto.
4408         * ira-conflicts.c (ira_build_conflicts): Ditto.
4409         * ira.c (update_equiv_regs): Ditto.
4410         * mode-switching.c (create_pre_exit): Ditto.
4411         * regmove.c (find_matches): Ditto.
4412         (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
4413         * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
4414         (small_register_class_p): New inline function.
4415         (push_secondary_reload, find_reusable_reload, find_reloads): Use
4416         small_register_class_p instead of SMALL_REGISTER_CLASS_P.
4418         * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
4419         * config/i386/i386.c (ix86_class_likely_spilled_p): New.
4420         (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4422 2010-09-02  Richard Guenther  <rguenther@suse.de>
4424         PR tree-optimization/44937
4425         PR tree-optimization/45412
4426         * ipa-split.c (split_function): Properly remove PHI nodes.
4428 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4430         * opts.h (struct cl_option): Add warn_message field.
4431         (struct cl_decoded_option): Add warn_message field.
4432         * doc/options.texi (Ignore, Warn): Document.
4433         * opt-functions.awk (needs_state_p): Don't consider aliases or
4434         ignored options to need state saved.
4435         * optc-gen.awk: Handle Warn and Ignore.
4436         * opth-gen.awk: Output OPT_SPECIAL_ignore.
4437         * opts-common.c (decode_cmdline_option): Set warn_message field.
4438         Handle ignored options.
4439         (decode_cmdline_options_to_array, generate_option,
4440         generate_option_input_file): Set warn_message field.
4441         (read_cmdline_option): Generate warnings from warn_message field.
4442         Handle ignored options.
4443         * common.opt (Wunreachable-code, fargument-alias,
4444         fargument-noalias, fargument-noalias-global,
4445         fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
4446         floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
4447         fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
4448         ftree-salias): Mark Ignore.
4449         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
4450         -mintel-syntax and -mno-intel-syntax here.
4451         * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
4452         using Warn.
4453         * opts.c (common_handle_option): Don't handle options marked as
4454         ignored.
4455         (enable_warning_as_error): Handle ignored options.
4457 2010-09-02  Joseph Myers  <joseph@codesourcery.com>
4459         PR driver/44076
4460         * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
4461         alias_target fields.
4462         * opt-functions.awk (opt_sanitized_name): Don't handle
4463         finline-limit=, Wlarger-than= and ftemplate-depth= specially.
4464         * optc-gen.awk: Generate alias fields.
4465         * opth-gen.awk: Explicitly give values for OPT_* enum constants.
4466         Don't generate such constants for aliases.
4467         * opts-common.c (generate_canonical_option): New.
4468         (decode_cmdline_option): Handle aliases.  Use
4469         generate_canonical_option for known options instead of copying the
4470         input option text.
4471         * doc/options.texi (Alias): Document.
4472         * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
4473         fstack-check, specs): Mark as aliases.
4474         * gcc.c (driver_handle_option): Canonicalize -L options to joined
4475         arguments.
4476         (driver_handle_option): Don't handle OPT_specs.
4477         * opts.c (common_handle_option): Don't handle options marked as
4478         aliases.
4479         (enable_warning_as_error): Handle aliases.
4480         * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
4481         OPT_Wlarger_than_eq.
4482         * tree-optimize.c (tree_rest_of_compilation): Use
4483         OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
4485 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4487         * config/i386/i386.md (nonmemory_operand): New mode attribute.
4488         (push memory peephole2): Macroize peepholes using SWI mode iterator.
4489         (move immediate to memory peephole2): Macroize peepholes using
4490         SWI124 mode iterator.
4491         (non-pairable NOT peephole2): Macroize peepholes using SWI124
4492         mode iterator.
4493         (simple lea add peephole2): Macroize peepholes using SWI48
4494         mode iterator.
4495         (simple lea mult peephole2): Ditto.
4496         (imul by 3,5,9 to lea peephole2): Ditto.
4497         (mov $-1, reg peephole2): Macroize peepholes using SWI248
4498         mode iterator.
4499         (imul $32bit_imm,mem,reg peephole2): Ditto.
4500         (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
4502 2010-09-02  Ian Bolton  <ian.bolton@arm.com>
4504         * tree-ssa-loop-prefetch.c: Fix comment at head of file.
4506 2010-09-02  Olivier Hainque  <hainque@adacore.com>
4508         PR middle-end/44763
4509         * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
4510         (allocno_priority_compare_func): Use it instead of a straight
4511         difference computation over priorities.
4513 2010-09-02  Andi Kleen  <ak@linux.intel.com>
4515         * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
4517 2010-09-02  Ira Rosen  <irar@il.ibm.com>
4519         * tree-vectorizer.h (get_later_stmt): New function.
4520         (vect_analyze_data_ref_dependences): Add argument.
4521         * tree-vect-loop.c (vect_analyze_loop): Update call to
4522         vect_analyze_data_ref_dependences.
4523         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
4524         New function.
4525         (vect_analyze_data_ref_dependence): Add argument for basic block
4526         dependencies. Check dependencies in basic block vectorization.
4527         (vect_analyze_data_ref_dependences): Add argument and update call to
4528         vect_analyze_data_ref_dependences.
4529         * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
4530         (vect_bb_vectorizable_with_dependencies): New.
4531         (vect_slp_analyze_bb): Check dependencies in basic block.
4532         (vect_schedule_slp_instance): Insert stores before the last store in
4533         SLP instance.
4535 2010-09-02  Uros Bizjak  <ubizjak@gmail.com>
4537         PR target/45476
4538         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
4539         LIBGCC2_TF_CEXT, TF_SIZE): New defines.
4541 2010-09-01  Jakub Jelinek  <jakub@redhat.com>
4543         PR middle-end/45458
4544         * bb-reorder.c (add_labels_and_missing_jumps): Treat
4545         bbs ending with throwing insns like blocks ending with a call.
4546         (fix_up_fall_thru_edges): Likewise.
4548 2010-09-01  Nathan Froyd  <froydnj@codesourcery.com>
4550         * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
4551         (m32c_function_arg_advance): Delete.
4552         * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4553         * config/m32c/m32c.c (m32c_function_arg): Make static.  Adjust
4554         comments.  Take a const_tree and a bool.  Declare.
4555         (m32c_function_arg_advance): Likewise.
4556         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4558 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4560         PR target/45476
4561         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
4562         LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
4563         * config/i386/mingw32.h: ... here.
4565 2010-09-01  Andi Kleen  <ak@linux.intel.com>
4567         PR lto/45475
4568         * lto-streamer-in.c (lto_input_ts_target_option): Add.
4569         (lto_input_tree_pointers): Call lto_input_ts_target_option.
4570         * lto-streamer-out (lto_output_ts_target_option): Add.
4571         (lto_output_tree_pointers): Call lto_output_ts_target_option.
4573 2010-09-01  Kai Tietz  <kai.tietz@onevision.com>
4575         PR/target 45452
4576         * config/i386/cygwin.h: Change order of specified import libraries.
4577         * config/i386/mingw32.h: Likewise.
4578         * config/i386/t-cygwin: Likewise.
4579         * config/i386/t-mingw32: Likewise.
4580         * config/i386/t-mingw-w32: Likewise.
4581         * config/i386/t-mingw-w64: Likewise.
4583 2010-09-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4585         * config/arm/neon-schedgen.ml (core): New type.
4586         (allCores): List of supported cores.
4587         (availability_table): Add supported cores.
4588         (collate_bypasses): Accept core as a parameter.
4589         (worst_case_latencies_and_bypasses): Accept core as a parameter.
4590         (emit_insn_reservations): Accept core as a parameter.  Use tuneStr
4591         and coreStr to get tune attribute and prefix for functional units.
4592         (emit_bypasses): Accept core name and use it.
4593         (calculate_per_core_availability_table): New.
4594         (filter_core): New.
4595         (calculate_core_availability_table): New.
4596         (main): Use calculate_core_availablity_table.
4597         * config/arm/cortex-a8-neon.md: Update copyright year.
4598         Regenerated from ml file and merged in.
4599         (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
4600         cortex_a8_neon_mrc.
4602 2010-09-01  Ian Bolton  <ian.bolton@arm.com>
4604         * Makefile.in (tree-switch-conversion.o): Update dependencies.
4606 2010-09-01  Richard Guenther  <rguenther@suse.de>
4608         * alias.c (ao_ref_from_mem): Adjust.
4609         * builtins.c (get_object_alignment): Likewise.
4610         * cfgexpand.c (expand_debug_expr): Likewise.
4611         * gimple.c (get_base_address): Likewise.
4612         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4613         (get_addr_base_and_unit_offset): Likewise.  Fix for
4614         both TMR_SYMBOL and TMR_BASE being set.
4615         * tree-eh.c (tree_could_trap_p): Likewise.
4616         * gimplify.c (gimplify_expr): Do not attempt to gimplify
4617         TMR_SYMBOL.  Always gimplify TMR_BASE.
4618         * tree-cfg.c (verify_types_in_gimple_reference): Verify
4619         TMR_BASE if there is a TMR_SYMBOL.
4620         * tree-pretty-print.c (dump_generic_node): Adjust.
4621         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
4622         (tree_mem_ref_addr): Likewise.
4623         (create_mem_ref_raw): Likewise.
4624         (move_fixed_address_to_symbol): Likewise.
4625         (create_mem_ref): Likewise.
4626         (dump_mem_address): Likewise.
4627         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
4628         Fix for both TMR_SYMBOL and TMR_BASE being set.
4629         (indirect_refs_may_alias_p): Likewise.
4630         * tree-ssa-operands.c (get_tmr_operands): Adjust.
4631         * tree.def (TARGET_MEM_REF): Adjust documentation.
4633 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4635         * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
4636         Rename from X86_TUNE_ADD_ESP_4.
4637         <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
4638         <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
4639         <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
4640         (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
4641         (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
4642         (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
4643         (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
4644         * config/i386/i386.c (initial_ix86_tune_features)
4645         <X86_TUNE_SINGLE_POP>: Invert members.
4646         <X86_TUNE_DOUBLE_POP>: Ditto.
4647         <X86_TUNE_SINGLE_PUSH>: Ditto.
4648         <X86_TUNE_DOUBLE_PUSH>: Ditto.
4649         * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
4650         No longer exported.
4651         (push peephole2 patterns): Macroize peepholes using P mode iterator.
4652         Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
4653         (pop peephole2 patterns): Macroize peepholes using P mode iterator.
4654         Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
4656 2010-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4658         * gimplify.c (gimplify_init_constructor): Do not create a temporary for
4659         a volatile LHS if the constructor has only one element.
4661 2010-09-01  Mikael Pettersson  <mikpe@it.uu.se>
4663         PR bootstrap/45321
4664         * tree.c (stdarg_p): Make fntype parameter const.
4665         * tree.h (stdarg_p): Likewise.
4666         (function_args_iterator): Remove unused fntype field.
4667         (function_args_iter_init): Do not initialize fntype
4668         field.  Make fntype parameter const.
4670 2010-09-01  Richard Guenther  <rguenther@suse.de>
4672         * tree-vrp.c (adjust_range_with_scev): Use number of iteration
4673         estimate.
4674         (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
4675         (execute_vrp): Compute number of iteration estimates.
4676         * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
4677         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
4678         * tree-data-ref.c (estimated_loop_iterations): Adjust.
4679         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
4680         Infer loop bounds from undefined behavior based on a new parameter.
4681         (estimate_numbers_of_iterations): Likewise.
4682         (scev_probably_wraps_p): Adjust.
4683         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
4685 2010-09-01  Nick Clifton  <nickc@redhat.com>
4687         * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
4688         where appropriate.
4689         (xstormy16_legitimate_address_p): Use true and false instead of 1
4690         and 0.
4691         (xstormy16_expand_prologue): Delete unused local variable 'insn'.
4692         (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
4693         magic constant 2.
4694         (xstormy16_expand_call): Fix comment at start of function.
4696 2010-09-01  Nick Clifton  <nickc@redhat.com>
4698         * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
4699         when pushing accumulator register.
4700         (rx_get_stack_layout): Always save call clobbered registers inside
4701         interrupt handlers.
4702         * config/rx/rx-modes.def: Fix descriptive comment at start of file.
4704 2010-09-01  Uros Bizjak  <ubizjak@gmail.com>
4706         * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
4707         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
4709         * libgcc-std.ver (GCC_4.6.0): Define version.
4711 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4713         * tree-nested.c (convert_all_function_calls): Iterate until after the
4714         sum of static chains in the nest doesn't change.
4716 2010-08-31  Anatoly Sokolov  <aesok@post.ru>
4718         * config/m32c/m32c.c (classes_intersect): Remove.
4719         (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
4720         reg_classes_intersect_p instead of classes_intersect.
4721         (class_can_hold_mode): Change arguments type from enum reg_class to
4722         reg_class_t.  Use reg_class_contents instead of class_contents.
4723         (m32c_register_move_cost): Make static. Change arguments type from
4724         enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
4725         classes_intersect. Use reg_class_contents instead of class_contents.
4726         (m32c_memory_move_cost): Make static. Change arguments type from
4727         enum reg_class to reg_class_t.
4728         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4729         * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4730         * config/m32c/m32c-protos.h (m32c_register_move_cost,
4731         m32c_memory_move_cost): Remove.
4733 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4735         * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
4736         (arm_function_arg): Delete.
4737         (arm_needs_doubleword_align): Take a const_tree.
4738         * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4739         * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
4740         (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
4741         (arm_function_arg): Make static.  Take a const_tree and a bool.
4742         (arm_function_arg_advance): Likewise.
4743         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4745 2010-08-31  Andi Kleen  <ak@linux.intel.com>
4747         * common.opt (fwhopr=): Update for -fwhopr=jobserver
4748         * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
4749         * lto-wrapper.c (run_gcc): Add jobserver mode.
4750         * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
4751         argument.
4753 2010-08-31  Uros Bizjak  <ubizjak@gmail.com>
4755         * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
4756         (popsi1): Ditto.
4757         (*popdi1_epilogue): Ditto.
4758         (*popsi1_epilogue): Ditto.
4759         (popsi, popdi peephole2 patterns): Update peepholes for changed
4760         pop{si,di}1 and *pop{si,di}1_epilogue patterns.
4762         (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
4763         (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
4765         * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
4766         (override_options): Do not initialize removed ix86_gen_pop1.
4767         (gen_pop): New static function.
4768         (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
4769         (release_scratch_register_on_entry): Ditto.
4770         (ix86_restore_reg_using_pop): Ditto.
4771         (ix86_expand_epilogue): Ditto.
4773 2010-08-31  Jakub Jelinek  <jakub@redhat.com>
4775         PR middle-end/45461
4776         * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
4778 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4780         * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
4781         semicolons.
4783 2010-08-31  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
4785         * doc/extend.texi: Fix documentation of the return value of
4786         __builtin_choose_expr.
4788 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4790         * config/v850/v850-protos.h (function_arg): Delete.
4791         * config/v850/v850.h (FUNCTION_ARG): Delete.
4792         (FUNCTION_ARG_ADVANCE): Move code to...
4793         * config/v850/v850.c (v850_function_arg_advance): ...here.
4794         (v850_function_arg): Make static.  Take a const_tree and a bool.
4795         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4797 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4799         * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
4800         these...
4801         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4802         ...and these...
4803         * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
4804         ..to here..
4805         (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
4806         ...and here.
4807         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4809 2010-08-31  Nathan Froyd  <froydnj@codesourcery.com>
4811         * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
4812         Delete.
4813         * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4814         * config/rx/rx.c (rx_function_arg_size): Make static.
4815         (rx_function_arg): Likewise.
4816         (rx_function_arg_advance): New function.
4817         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4819 2010-08-31  John Tytgat  <John.Tytgat@aaug.net>
4821         * config/arm/arm.c (arm_override_options): Remove superfluous test.
4822         Fix indentation.
4824 2010-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4826         * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
4827         (dwarf2out_decl) <CONST_DECL>: Likewise.
4829 2010-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4831         Stack usage support
4832         * common.opt (-fstack-usage): New option.
4833         * doc/invoke.texi (Debugging options): Document it.
4834         * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
4835         allocate_dynamic_stack_space.
4836         (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
4837         and propagate it to allocate_dynamic_stack_space.
4838         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
4839         * calls.c (initialize_argument_information): Pass TRUE as 4th
4840         argument to allocate_dynamic_stack_space.
4841         (expand_call): Set current_function_has_unbounded_dynamic_stack_size
4842         to 1 when pushing a variable-sized argument onto the stack.  Pass
4843         TRUE as 4th argument to allocate_dynamic_stack_space.
4844         Update current_function_pushed_stack_size.
4845         (emit_library_call_value_1): Likewise.
4846         * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
4847         CANNOT_ACCUMULATE.  If flag_stack_usage, look into the size and
4848         attempt to find an upper bound.  Remove redundant code for the
4849         SETJMP_VIA_SAVE_AREA case.
4850         * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
4851         * function.h (struct stack_usage): New structure.
4852         (current_function_static_stack_size): New macro.
4853         (current_function_dynamic_stack_size): Likewise.
4854         (current_function_pushed_stack_size): Likewise.
4855         (current_function_dynamic_alloc_count): Likewise.
4856         (current_function_has_unbounded_dynamic_stack_size): Likewise.
4857         (current_function_allocates_dynamic_stack_space): Likewise.
4858         (struct function): Add new field 'su'.
4859         * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
4860         add the value of the dynamic offset to the dynamic stack usage.
4861         (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
4862         for variable-sized objects.
4863         (prepare_function_start): Allocate cfun->su if flag_stack_usage.
4864         (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
4865         * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
4866         BUILT_IN_ALLOCA for variable-sized objects.
4867         * output.h (output_stack_usage): Declare.
4868         * toplev.c (stack_usage_file): New file pointer.
4869         (output_stack_usage): New function.
4870         (open_auxiliary_file): Likewise.
4871         (lang_dependent_init): Open file if flag_stack_usage is set.
4872         (finalize): Close file if stack_usage_file is not null.
4873         * tree.h (ALLOCA_FOR_VAR_P): New macro.
4874         * config/alpha/alpha.c (compute_frame_size): New function.
4875         (alpha_expand_prologue): Use it.
4876         (alpha_start_function): Likewise.
4877         (alpha_expand_epilogue): Likewise.  Set stack usage info.
4878         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4879         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4880         * config/mips/mips.c (mips_expand_prologue): Likewise.
4881         * config/pa/pa.c (hppa_expand_prologue): Likewise.
4882         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4883         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4885 2010-08-30  Zdenek Dvorak  <ook@ucw.cz>
4887         PR tree-optimization/45427
4888         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
4889         Handle the case that the exit is never taken correctly.
4890         (number_of_iterations_ne): Pass exit_must_be_taken to
4891         number_of_iterations_ne_max.
4893 2010-08-30  Catherine Moore  <clm@codesourcery.com>
4895         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
4896         Infer -mdspr2 for the the 74K.
4898 2010-08-30  Jakub Jelinek  <jakub@redhat.com>
4900         PR debug/45419
4901         * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
4903         PR middle-end/45423
4904         * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
4905         and TRUTH_{AND,OR,XOR}_EXPR.
4906         * c-parser.c (c_parser_omp_atomic): Handle boolean
4907         {PRE,POST}_{INC,DEC}REMENT.
4909 2010-08-30  Nathan Froyd  <froydnj@codesourcery.com>
4911         * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
4912         (function_arg): Delete.
4913         * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4914         (FUNCTION_INCOMING_ARG): Delete.
4915         * config/xtensa/xtensa.c (function_arg_advance): Rename to...
4916         (xtensa_function_arg_advance): ...this.  Make static. Take a const_tree
4917         and a bool.
4918         (function_arg): Rename to...
4919         (xtensa_function_arg_1): ...this.  Make static.  Take a const_tree and
4920         a bool.
4921         (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
4922         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4923         (TARGET_FUNCTION_INCOMING_ARG): Define.
4925 2010-08-30  Richard Guenther  <rguenther@suse.de>
4927         PR tree-optimization/21602
4928         * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
4929         using points-to information.
4931 2010-08-30  H.J. Lu  <hongjiu.lu@intel.com>
4933         * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
4935 2010-08-30  Richard Guenther  <rguenther@suse.de>
4937         PR tree-optimization/45449
4938         * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
4939         variables.
4941 2010-08-30  Joseph Myers  <joseph@codesourcery.com>
4943         * opts.h (CL_ERR_NEGATIVE): Define.
4944         * opts.c (unknown_option_callback): Don't postpone warnings for
4945         options marked with CL_ERR_NEGATIVE.
4946         * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
4947         for negative versions of CL_REJECT_NEGATIVE options.
4949 2010-08-30  Uros Bizjak  <ubizjak@gmail.com>
4951         * config/i386/i386.md (zero_extendsidi2_1): Rename from
4952         zero_extendsidi2_32.
4953         (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
4954         using SWI12 mode iterator.
4955         (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
4956         to define_insn_and_split pattern.
4957         (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
4958         using SWI24 mode iterator.
4959         (*zero_extendqi<mode>2_and): Macroize insn from
4960         *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
4961         (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
4962         *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
4963         SWI24 mode iterator.
4964         (*zero_extendqi<mode>2_movzbl): Ditto from
4965         *zero_extendqi{hi,si}2_movzbl.
4966         (extendsidi2_1): Rename from extendsidi2_32.
4967         (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
4968         SWI12 mode iterator.
4970 2010-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4972         * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
4973         general purpose registers.
4974         (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
4975         * config/ia64/ia64.md (*movcci): Change to named pattern.  Deal
4976         with general purpose registers and memory operands.  Add associated
4977         CCImode post-reload splitter.
4978         * config/ia64/div.md: Change BImode to CCImode throughout.
4980 2010-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4982         * config/ia64/ia64.md (cstorebi4): Fix thinko.
4984 2010-08-28  Hariharan Sandanagobalane  <hariharan@picochip.com>
4986         * config/picochip/picochip.c (reorder_var_tracking_notes): This
4987         function was dropping debug insns which caused PR45299.
4989 2010-08-28  Uros Bizjak  <ubizjak@gmail.com>
4991         * config/i386/sse.md (extsuffix): New code attribute.
4992         (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
4993         and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
4994         (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
4995         and sse4_1_zero_extendv4qiv4si2.
4996         (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
4997         and sse4_1_zero_extendv2qiv2di2.
4998         (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
4999         and sse4_1_zero_extendv4hiv4si2.
5000         (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
5001         and sse4_1_zero_extendv2hiv2di2.
5002         (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
5003         and sse4_1_zero_extendv2siv2di2
5005         (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
5006         using any_extend code iterator.
5007         (*avx_<s>mulv8hi3_highpart): Macroize insn from
5008         *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
5009         (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
5011         * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
5012         gen_sse4_1_sign_extend* functions.
5013         (struct builtin_description bdesc_args): Ditto.
5015 2010-08-27  Xinliang David Li  <davidxl@google.com>
5017         PR/45422
5018         * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
5019         (iv_ca_set_no_cp): Update used inv expr count.
5020         (iv_ca_set_cp): Ditto.
5021         (iv_ca_new): Initialize new member.
5022         (iv_ca_free): Free memory.
5024 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5026         * config/sh/sh-protos.h (sh_function_arg): Delete.
5027         (sh_function_arg_advance): Delete.
5028         * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5029         (PASS_IN_REG_P): Eliminate cast.
5030         * config/sh/sh.c (sh_function_arg_advance): Make static.  Take a
5031         const_tree and a bool.
5032         (sh_function_arg): Likewise.
5033         (sh_output_mi_thunk): Call sh_function_arg_advance) and
5034         sh_function_arg.
5035         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5037 2010-08-27  Naveen H.S  <naveen.S@kpitcummins.com>
5038             Kaz Kojima  <kkojima@gcc.gnu.org>
5040         * config/sh/sh.c (push_regs): Emit movml for interrupt handler
5041         when possible.
5042         (sh_expand_epilogue): Likewise.
5043         * config/sh/sh.md (movml_push_banked): New insn.
5044         (movml_pop_banked): Likewise.
5046 2010-08-28  Bernd Schmidt  <bernds@codesourcery.com>
5048         * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
5049         gen_regexp_oneof, gen_regexp_sequence): Use the string found
5050         in vector element 0 rather than the original string when there's
5051         only one element.
5052         (gen_regexp): Remove extra semicolon.
5054         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
5055         thumb2_movsf_vfp): Set attribute "insn".
5056         * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
5057         not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
5058         thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
5059         arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
5060         arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
5061         thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
5062         thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
5063         movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
5064         if_not_move, if_shift_move, if_move_shift, if_shift_shift,
5065         if_not_arith, if_arith_not, cond_move_not): Likewise.
5067 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5069         * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
5070         New declaration.
5071         (rs6000_allocate_stack_temp): Ditto.
5072         (rs6000_expand_convert_si_to_sfdf): Ditto.
5074         * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
5075         line.  Update the options set if power6 or power7 server/embedded
5076         type options are used.  If we give a warning for no vsx under
5077         -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
5078         (rs6000_allocate_stack_temp): New function to allocate a stack
5079         tempoary and adjust the address so it meets either REG+OFFSET or
5080         REG+REG addressing requirements.
5081         (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
5082         that they can be used with the LFIWAX/LFIWZX instrucitons.
5083         (rs6000_expand_convert_si_to_sfdf): New helper funciton for
5084         converting signed/unsigned SImode to either SFmode/DFmode.
5086         * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
5087         whether certain instructions can be generated.
5088         (TARGET_FCTIDZ): Ditto.
5089         (TARGET_STFIWX): Ditto.
5090         (TARGET_LFIWAX): Ditto.
5091         (TARGET_LFIWZX): Ditto.
5092         (TARGET_FCFIDS): Ditto.
5093         (TARGET_FCFIDU): Ditto.
5094         (TARGET_FCFIDUS): Ditto.
5095         (TARGET_FCTIDUZ): Ditto.
5096         (TARGET_FCTIWUZ): Ditto.
5098         * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
5099         (UNSPEC_FCTID): Ditto.
5100         (UNSPEC_LFIWAX): Ditto.
5101         (UNSPEC_LFIWZX): Ditto.
5102         (UNSPEC_FCTIWUZ): Ditto.
5103         (rreg): Use correct constraints.
5104         (SI_CONVERT_FP): New mode attribute for floating point conversion
5105         tests.
5106         (E500_CONVERT): Ditto.
5107         (lfiwax): New insns for converting from integer to floating point
5108         utilizing newer instructions.  Attempt to optimize conversions
5109         that come from memory so that we don't load the value into a GPR,
5110         spill it to the stack and reload it into a FPR.
5111         (floatsi<mode>2_lfiwax): Ditto.
5112         (floatsi<mode>2_lfiwax_mem): Ditto.
5113         (floatsi<mode>2_lfiwax_mem2): Ditto.
5114         (lfiwzx): Ditto.
5115         (floatunssi<mode>2_lfiwzx): Ditto.
5116         (floatunssi<mode>2_lfiwzx_mem): Ditto.
5117         (floatunssi<mode>2_lfiwzx_mem2): Ditto.
5118         (floatdidf2_mem): Ditto.
5119         (floatunsdidf2_fcfidu): Ditto.
5120         (floatunsdidf2_mem): Ditto.
5121         (floatunsdisf2): Ditto.
5122         (floatunsdisf2_fcfidus): Ditto.
5123         (floatunsdisf2_mem): Ditto.
5124         (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
5125         Use FCFID on 32-bit hosts that support it.
5126         (floatsidf2_internal): Ditto.
5127         (floatunssisf2): Ditto.
5128         (floatunssidf2): Ditto.
5129         (floatunssidf2_internal): Ditto.
5130         (floatsisf2): Ditto.
5131         (floatdidf2): Ditto.
5132         (floatdidf2_fpr): Ditto.
5133         (floatunsdidf2): Ditto.
5134         (floatdisf2): Ditto.
5135         (floatdisf2_fcfids): Ditto.
5136         (floatdisf2_internal1): Ditto.
5137         (fixuns_truncsfsi2): Delete, merge into common pattern for both
5138         SF/DF.  Add power7 support.
5139         (fix_truncsfsi2): Ditto.
5140         (fixuns_truncdfsi2): Ditto.
5141         (fixuns_truncdfdi2): Ditto.
5142         (fix_truncdfsi2): Ditto.
5143         (fix_truncdfsi2_internal): Ditto.
5144         (fix_truncdfsi2_internal_gfxopt): Ditto.
5145         (fix_truncdfsi2_mfpgpr): Ditto.
5146         (fctiwz): Ditto.
5147         (btruncdf2): Ditto.
5148         (btruncdf2_fpr): Ditto.
5149         (btructsf2): Ditto.
5150         (ceildf2): Ditto.
5151         (ceildf2_fpr): Ditto.
5152         (ceilsf2): Ditto.
5153         (floordf2): Ditto.
5154         (floordf2_fpr): Ditto.
5155         (floorsf2): Ditto.
5156         (rounddf2): Ditto.
5157         (rounddf2_fpr): Ditto.
5158         (roundsf2): Ditto.
5159         (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
5160         (fix_trunc<mode>di2): Ditto.
5161         (fixuns_trunc<mode>si2): Ditto.
5162         (fixuns_trunc<mode>di2): Ditto.
5163         (fctiwz_<mode>): Ditto.
5164         (btrunc<mode>2): Ditto.
5165         (btrunc<mode>2_fpr): Ditto.
5166         (ceil<mode>2): Ditto.
5167         (ceil<mode>2_fpr): Ditto.
5168         (floor<mode>2): Ditto.
5169         (float<mode>2_fpr): Ditto.
5170         (round<mode>2): Ditto.
5171         (round<mode>2_fpr): Ditto.
5172         (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
5173         (fixuns_trunc<mode>si2_stfiwx): Ditto.
5174         (fix_truncdfsi2_internal): Ditto.
5175         (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
5176         converted value on stack, loaded into GPR, and then stored into
5177         the final destination.
5178         (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
5179         FCTIDZ.
5180         (lrint<mode>di2): New insn, provide the lrint builtin functions.
5181         (ftruncdf2): Delete, unused.
5182         (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
5184         * config/rs6000/vsx.md (toplevel): Update copyright year.
5185         (VSr2): Use "ws" contraint for DFmode, not "!r#r".
5186         (VSr3): Ditto.
5188 2010-08-27  Basile Starynkevitch  <basile@starynkevitch.net>
5189             Jeremie Salvucci  <jeremie.salvucci@free.fr>
5191         * gengtype.c (output_type_enum): Test the right union member.
5193 2010-08-27  Uros Bizjak  <ubizjak@gmail.com>
5195         PR target/41484
5196         * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
5197         operands for operand 1.
5198         (sse4_1_extendv4qiv4si2): Ditto.
5199         (sse4_1_extendv2qiv2di2): Ditto.
5200         (sse4_1_extendv4hiv4si2): Ditto.
5201         (sse4_1_extendv2hiv2di2): Ditto.
5202         (sse4_1_extendv2siv2di2): Ditto.
5203         (sse4_1_zero_extendv8qiv8hi2): Ditto.
5204         (sse4_1_zero_extendv4qiv4si2): Ditto.
5205         (sse4_1_zero_extendv2qiv2di2): Ditto.
5206         (sse4_1_zero_extendv4hiv4si2): Ditto.
5207         (sse4_1_zero_extendv2hiv2di2): Ditto.
5208         (sse4_1_zero_extendv2siv2di2): Ditto.
5209         (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
5210         (*sse4_1_extendv4qiv4si2): Ditto.
5211         (*sse4_1_extendv2qiv2di2): Ditto.
5212         (*sse4_1_extendv4hiv4si2): Ditto.
5213         (*sse4_1_extendv2hiv2di2): Ditto.
5214         (*sse4_1_extendv2siv2di2): Ditto.
5215         (*sse4_1_zero_extendv8qiv8hi2): Ditto.
5216         (*sse4_1_zero_extendv4qiv4si2): Ditto.
5217         (*sse4_1_zero_extendv2qiv2di2): Ditto.
5218         (*sse4_1_zero_extendv4hiv4si2): Ditto.
5219         (*sse4_1_zero_extendv2hiv2di2): Ditto.
5220         (*sse4_1_zero_extendv2siv2di2): Ditto.
5222 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5224         * config/mips/mips-protos.h (mips_function_arg_advance): Delete
5225         (mips_function_arg): Delete.
5226         (mips_function_arg_boundary): Take a const_tree.
5227         * config/mips/mips.c (mips_function_arg_boundary): Likewise.
5228         (mips_arg_info): Likewise.
5229         (mips_setup_incoming_varargs): Call mips_function_arg_advance
5230         instead of FUNCTION_ARG_ADVANCE.
5231         (mips_function_arg_advance): Adjust prototype.  Make static.
5232         (mips_function_arg): Likewise.
5233         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5234         * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
5236 2010-08-27  Nathan Froyd  <froydnj@codesourcery.com>
5238         * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
5239         * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
5240         (function_arg): Delete.
5241         (function_arg_boundary): Take a const_tree.
5242         * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
5243         (rs6000_spe_function_arg): Likewise.
5244         (rs6000_parm_start): Likewise.
5245         (rs6000_arg_size): Likewise.
5246         (rs6000_darwin64_record_arg_advance_recurse): Likewise.
5247         (rs6000_darwin64_record_arg): Likewise.  Take a bool instead of an int.
5248         (rs6000_mixed_function_arg): Likewise.
5249         (function_arg): Rename to...
5250         (rs6000_function_arg): ...this.
5251         (function_arg_advance): Rename to...
5252         (rs6000_function_arg_advance_1): ...this
5253         (rs6000_function_arg_advance): New function.  Call it.
5254         (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
5255         (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
5256         (rs6000_function_value): Likewise.
5257         (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
5259 2010-08-27  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5261         * config/arm/arm.md (enabled): Test the value of arch_enabled
5262         rather than just using it.
5264 2010-08-27  Olivier Hainque  <hainque@adacore.com>
5265             Eric Botcazou  <ebotcazou@adacore.com>
5267         * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
5268         cover all the possible offsets from this base.
5269         (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
5271 2010-08-26  Jakub Jelinek  <jakub@redhat.com>
5273         PR tree-optimization/44485
5274         * calls.c (flags_from_decl_or_type): For const or pure
5275         noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
5276         together with ECF_CONST resp. ECF_PURE.
5277         * builtins.c (expand_builtin): Use flags_from_decl_or_type
5278         instead of querying flags directly.
5279         * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
5280         * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
5282 2010-08-26  Richard Guenther  <rguenther@suse.de>
5284         PR tree-optimization/45255
5285         * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
5286         and externals are also invariant.
5288 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5290         PR rtl-optimization/44858
5291         * combine.c (try_combine): If recog_for_combine added CLOBBERs to
5292         newi2pat, make sure they don't affect newpat.
5294         PR rtl-optimization/45400
5295         * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
5296         SUBREG_REG if both modes are of MODE_INT class.
5298 2010-08-25  Julian Brown  <julian@codesourcery.com>
5300         * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
5301         * config/arm/arm.md (generic_sched): No for Cortex-A5.
5302         (generic_vfp): Likewise.
5303         (cortex-a5.md): Include.
5304         * config/arm/cortex-a5.md: New.
5306 2010-08-25  Richard Guenther  <rguenther@suse.de>
5308         * alias.c (get_alias_set): Assign a single alias-set to all pointers.
5309         * gimple.c (gimple_get_alias_set): Remove special handling
5310         for pointers.
5312 2010-08-25  Bernd Schmidt  <bernds@codesourcery.com>
5314         PR middle-end/45355
5315         * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
5316         dead_or_set_p when computing i0_feeds_i2_n.
5318         * combine.c (find_split_point): Undo canonicalization of multiply-add
5319         to (minus x (mult)) when it seems likely that this will increase the
5320         chances of a split.
5322 2010-08-25  Richard Guenther  <rguenther@suse.de>
5324         PR lto/44562
5325         * lto-streamer.c (lto_record_common_node): Do not mess with
5326         TYPE_CANONICAL when not in lto.
5327         * gimple.c (gimple_register_type): Likewise.
5329 2010-08-25  Richard Guenther  <rguenther@suse.de>
5331         PR tree-optimization/45316
5332         * tree-ssa-pre.c (eliminate): Properly clean EH info.
5334 2010-08-25  Richard Guenther  <rguenther@suse.de>
5336         PR tree-optimization/45393
5337         * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
5338         and clean EH info.  Avoid SSA update.
5339         (execute_cse_sincos): Cleanup the CFG if it has changed.
5341 2010-08-25  Richard Guenther  <rguenther@suse.de>
5343         PR middle-end/45379
5344         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
5345         TARGET_MEM_REF in alignment computation.
5347 2010-08-25  Jakub Jelinek  <jakub@redhat.com>
5349         PR tree-optimization/45059
5350         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
5351         type conversions from newop{1,2}.  Assert t is a comparison and
5352         newop{1,2} after the stripping are gimple vals.
5354 2010-08-25  Tejas Belagod  <tejas.belagod@arm.com>
5356         * config/arm/iterators.md (VU, SE, V_widen_l): New.
5357         (V_unpack, US): New.
5358         * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
5359         (vec_unpack<US>_lo_<mode>): Likewise.
5360         (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
5361         (neon_vec_unpack<US>_lo_<mode>): Likewise.
5362         (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
5363         (vec_widen_<US>mult_hi_<mode>): Likewise.
5364         (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
5365         (neon_vec_<US>mult_hi_<mode>"): Likewise.
5366         (neon_unpack<US>_<mode>): Widening move intermediate step for
5367         vectorizing without -mvectorize-with-neon-quad.
5368         (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
5369         for vectorizing without -mvectorize-with-neon-quad.
5370         * config/arm/predicates.md (vect_par_constant_high): Check for
5371         high-half lanes of a vector.
5372         (vect_par_constant_low): Check for low-half lanes of a vector.
5374 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5376         * tree-if-conv.c (struct ifc_dr): New.
5377         (IFC_DR): New.
5378         (DR_WRITTEN_AT_LEAST_ONCE): New.
5379         (DR_RW_UNCONDITIONALLY): New.
5380         (memref_read_or_written_unconditionally): Use the cached values
5381         when possible.
5382         (write_memref_written_at_least_once): Same.
5383         (if_convertible_loop_p): Initialize and free DR->aux fields.
5385 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5387         * gimple.c (gimple_could_trap_p_1): Not static anymore.
5388         Pass an extra bool parameter include_mem.
5389         (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
5390         (gimple_assign_rhs_could_trap_p): Same.
5391         * gimple.h (gimple_could_trap_p_1): Declared.
5392         * tree-data-ref.h (same_data_refs_base_objects): New.
5393         (same_data_refs): New.
5394         * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
5395         (write_memrefs_written_at_least_once): New.
5396         (ifcvt_memrefs_wont_trap): New.
5397         (operations_could_trap): New.
5398         (ifcvt_could_trap_p): New.
5399         (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
5400         Gets a vector of data refs.
5401         (if_convertible_stmt_p): Same.
5402         (if_convertible_loop_p_1): New.
5403         (if_convertible_loop_p): Call if_convertible_loop_p_1.
5405 2010-08-24  Sebastian Pop  <sebastian.pop@amd.com>
5407         * common.opt (ftree-loop-if-convert-stores): New flag.
5408         * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
5409         * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI.  Insert
5410         the created statement before GSI.
5411         (if_convertible_phi_p): Allow virtual phi nodes when
5412         flag_loop_if_convert_stores is set.
5413         (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
5414         Do not handle types that do not match is_gimple_reg_type.
5415         Remove loop and bb parameters.  Call gimple_could_trap_p instead of
5416         when flag_loop_if_convert_stores is set, as LHS can contain
5417         memory refs.
5418         (if_convertible_stmt_p): Remove loop and bb parameters.  Update calls
5419         to if_convertible_gimple_assign_stmt_p.
5420         (if_convertible_loop_p): Update call to if_convertible_stmt_p.
5421         (replace_phi_with_cond_gimple_assign_stmt): Renamed
5422         predicate_scalar_phi.  Do not handle virtual phi nodes.
5423         (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
5424         Call predicate_scalar_phi.
5425         (insert_gimplified_predicates): Insert the gimplified predicate of a BB
5426         just after the labels for flag_loop_if_convert_stores, otherwise
5427         insert the predicate in the end of the BB.
5428         (predicate_mem_writes): New.
5429         (combine_blocks): Call predicate_all_scalar_phis.  When
5430         flag_loop_if_convert_stores is set, call predicate_mem_writes.
5431         (tree_if_conversion): Call mark_sym_for_renaming when
5432         flag_loop_if_convert_stores is set.
5433         (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
5434         flag_loop_if_convert_stores is set.
5436 2010-08-24  Anatoly Sokolov  <aesok@post.ru>
5438         * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
5439         pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
5440         (pa_function_value): Make static.
5441         (override_options): Rename to...
5442         (pa_option_override): ...this. Make static.
5443         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
5444         TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
5445         TARGET_OPTION_OVERRIDE): Define.
5446         * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
5447         LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
5448         Remove.
5449         * config/pa/pa-protos.h (override_options): Remove.
5451 2010-08-24  Richard Guenther  <rguenther@suse.de>
5453         PR middle-end/45379
5454         * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
5455         if addr->index is NULL or zero.
5456         * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
5457         TARGET_MEM_REF more properly.
5458         (indirect_ref_may_alias_decl_p): Likewise.
5459         * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
5460         * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
5462 2010-08-23  Anatoly Sokolov  <aesok@post.ru>
5464         * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
5465         (m32c_override_options): Rename to...
5466         (m32c_option_override): ...this. Make static.
5467         (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
5468         * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
5469         Remove.
5470         * config/m32c/m32c-protos.h (m32c_override_options,
5471         m32c_function_value_regno_p): Remove.
5473 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5475         * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
5476         Fix a typo in a previous commit.
5478 2010-08-23  Kai Tietz  <kai.tietz@onevision.com>
5480         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
5481         Pre-initialize innerloop_iters to one.
5483 2010-08-23  Changpeng Fang  <changpeng.fang@amd.com>
5485         * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
5486         existing static function global.
5488         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
5489         is changed to global.
5491         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
5492         may_be_nonaddressable_p on base, and don't collect this reference
5493         if the address of the base could not be taken.
5495 2010-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
5497         * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
5498         enable the compiler to autovectorize mathmetical functions for
5499         power7 using the Mathematical Acceleration Subsystem library.
5501         * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
5502         handle which vector math library we have.
5503         (rs6000_override_options): Add -mveclibabi=mass support.
5504         (rs6000_builtin_vectorized_libmass): New function to handle auto
5505         vectorizing math functions that are in the MASS library.
5506         (rs6000_builtin_vectorized_function): Call it.
5508         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
5509         -mveclibabi=mass.
5511 2010-08-22  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5513         PR boehm-gc/34544
5514         * gthr-posix.h (__gthread_active_init): Delete.
5515         (__gthread_active_p): Do activity check here.
5516         Don't include errno.h on hppa-hpux.  Update comment.
5517         * gthr-posix95.h (__gthread_active_init): Delete.
5518         (__gthread_active_p): Do activity check here.
5519         Don't include errno.h on hppa-hpux.  Update comment.
5520         * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
5521         * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
5522         add -lpthread when -mt or -pthread is specified.
5523         * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
5524         (LINK_GCC_C_SEQUENCE_SPEC): Define.
5525         * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
5526         (stublib.c, pthread_default_stacksize_np-stub.o,
5527         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
5528         $(T)libgcc_stub.a): Add methods.
5529         * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
5530         (stublib.c, pthread_default_stacksize_np-stub.o,
5531         pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
5532         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
5533         pthread_mutex_unlock): New stubs.
5535 2010-08-22  Joseph Myers  <joseph@codesourcery.com>
5537         * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
5538         * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
5539         options.
5540         * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
5541         * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
5542         * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
5543         * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
5544         * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
5545         "-l".
5546         * cppspec.c: Include opts.h.
5547         (lang_specific_driver): Use cl_decoded_option structures.
5548         * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
5549         * doc/tm.texi: Regenerate.
5550         * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
5551         (driver_handle_option): Allow driver options needing no special
5552         processing.
5553         (process_command): Decode options before call to
5554         lang_specific_driver.  Pass decoded options to
5555         lang_specific_driver.
5556         * gcc.h (lang_specific_driver): Update prototype.
5557         * gccspec.c: Include opts.h.
5558         (lang_specific_driver): Use cl_decoded_option structures.
5559         * opts-common.c (option_ok_for_language, generate_option,
5560         generate_option_input_file): New.
5561         (decode_cmdline_option): Use option_ok_for_language.
5562         (decode_cmdline_options_to_array): Use generate_option_input_file.
5563         (handle_generated_option): Use generate_option.
5564         * opts.h (generate_option, generate_option_input_file): Declare.
5566 2010-08-22  Anatoly Sokolov  <aesok@post.ru>
5568         * config/mips/mips.c (mips_override_options): Rename to...
5569         (mips_option_override): ...this. Make static.
5570         (TARGET_OPTION_OVERRIDE): Define.
5571         (mips_in_small_data_p): Update comment.
5572         * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
5573         (FIXED_REGISTERS): Update comment.
5574         * config/mips/mips-protos.h (mips_override_options): Remove.
5576 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5578         * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
5580 2010-08-21  Olivier Hainque  <hainque@adacore.com>
5582         * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
5583         ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
5585 2010-08-20  Jan Hubicka  <jh@suse.cz>
5587         * tree-pass.h (pass_ipa_cdtor_merge): New function.
5588         * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
5589         heap allocated.
5590         (record_cdtor_fn): Move to ipa.c; do not test for
5591         have_ctors_dtors.
5592         (build_cdtor): Move to ipa.c; add code avoiding construction
5593         when target have ctors/dtors and there is only one ctor/dtor at given
5594         priority.
5595         (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
5596         sort; reverse order of constructors.
5597         (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
5598         (cgraph_finalize_function): Do not call record_cdtor_fn.
5599         (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
5600         (cgraph_build_static_cdtor): Move to ipa.c.
5601         * ipa.c: Include target.h and tree-iterator.h.
5602         (cgraph_build_static_cdtor, static_ctors, static_dtors,
5603         record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
5604         build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
5605         pass_ipa_cdtor_merge): New.
5606         * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
5607         * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
5608         bounds access.
5610 2010-08-20  Jan Hubicka  <jh@suse.cz>
5612         PR c++/45307
5613         PR c++/17736
5614         * cgraph.h (cgraph_only_called_directly_p,
5615         cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
5616         static cdtors.
5617         * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
5618         are not needed.
5619         (cgraph_finalize_function): Static cdtors are reachable.
5620         (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
5622 2010-08-20  Jan Hubicka  <jh@suse.cz>
5624         * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
5625         flag_wpa.
5626         * lto-streamer-out.c (lto_output): Likewise.
5627         * passes.c (ipa_write_optimization_summaries): Initialize statement
5628         uids.
5630 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5632         * tree.h (alias_diag_flags): New enum.
5633         (alias_pair): Add an 'emitted_diags' field.
5634         * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
5635         (assemble_alias): Initialize emitted_diags of new pairs.
5637 2010-08-20  Eric Botcazou  <ebotcazou@adacore.com>
5639         * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
5640         * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5641         * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
5642         (STACK_CHECK_PROTECT): Define.
5643         * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
5644         (output_probe_stack_range): Likewise.
5645         (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
5646         builtin stack checking is enabled.
5647         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
5648         * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
5649         (probe_stack_range): New insn.
5651 2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
5653         PR target/45336
5654         * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
5655         short first.
5657         * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
5658         char first.
5660 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5662         PR target/45336
5663         * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
5664         to cover zero extension into 64-bit register.
5665         (*sse2_pextrw): Likewise.
5666         (*sse4_1_pextrd_zext): New insn.
5668 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5670         revert r163410, partially revert r163267.
5671         * config/rs6000/darwin.h (LIB_SPEC): Remove.
5672         * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
5673         Darwin versions.
5675 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5677         PR middle-end/44974
5678         * builtins.c (expand_builtin): Don't optimize away
5679         calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
5681 2010-08-20  Uros Bizjak  <ubizjak@gmail.com>
5683         * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
5684         (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
5685         alternative 1 of operand 2.
5687 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5688             Paolo Bonzini  <bonzini@gnu.org>
5690         * simplify-rtx.c (simplify_unary_operation_1): Optimize
5691         (sign_extend (zero_extend (...)) and
5692         ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
5694 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5696         PR rtl-optimization/45353
5697         * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
5698         after bb_note is a BARRIER.
5700 2010-08-20  Iain Sandoe  <iains@gcc.gnu.org>
5702         * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
5703         linking libgcc.a.
5705 2010-08-20  Jakub Jelinek  <jakub@redhat.com>
5706             Michael Matz  <matz@suse.de>
5708         * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
5710 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5712         * ggc-common.c (ggc_mark_root_tab): New function, split out from...
5713         (ggc_mark_roots): ...here.
5715 2010-08-20  Nathan Froyd  <froydnj@codesourcery.com>
5717         * vec.h (FOR_EACH_VEC_ELT): Define.
5718         * c-decl.c: Use it.
5719         * cfgloop.c: Likewise.
5720         * cfgloopmanip.c: Likewise.
5721         * cgraph.c: Likewise.
5722         * cgraphunit.c: Likewise.
5723         * combine.c: Likewise.
5724         * config/bfin/bfin.c: Likewise.
5725         * config/mips/mips.c: Likewise.
5726         * config/rs6000/rs6000.c: Likewise.
5727         * dbxout.c: Likewise.
5728         * df-scan.c: Likewise.
5729         * dominance.c: Likewise.
5730         * dse.c: Likewise.
5731         * dwarf2out.c: Likewise.
5732         * except.c: Likewise.
5733         * expr.c: Likewise.
5734         * function.c: Likewise.
5735         * gcse.c: Likewise.
5736         * genattr.c: Likewise.
5737         * ggc-common.c: Likewise.
5738         * gimplify.c: Likewise.
5739         * graphite-blocking.c: Likewise.
5740         * graphite-clast-to-gimple.c: Likewise.
5741         * graphite-dependences.c: Likewise.
5742         * graphite-interchange.c: Likewise.
5743         * graphite-poly.c: Likewise.
5744         * graphite-scop-detection.c: Likewise.
5745         * graphite-sese-to-poly.c: Likewise.
5746         * graphite.c: Likewise.
5747         * haifa-sched.c: Likewise.
5748         * ifcvt.c: Likewise.
5749         * implicit-zee.c: Likewise.
5750         * ipa-prop.c: Likewise.
5751         * ipa-struct-reorg.c: Likewise.
5752         * ipa.c: Likewise.
5753         * ira-build.c: Likewise.
5754         * ira-color.c: Likewise.
5755         * ira-emit.c: Likewise.
5756         * lambda-code.c: Likewise.
5757         * loop-invariant.c: Likewise.
5758         * loop-unroll.c: Likewise.
5759         * lower-subreg.c: Likewise.
5760         * lto-cgraph.c: Likewise.
5761         * lto-opts.c: Likewise.
5762         * lto-streamer-in.c: Likewise.
5763         * lto-streamer-out.c: Likewise.
5764         * lto-streamer.c: Likewise.
5765         * lto-symtab.c: Likewise.
5766         * matrix-reorg.c: Likewise.
5767         * opts.c: Likewise.
5768         * predict.c: Likewise.
5769         * print-tree.c: Likewise.
5770         * sdbout.c: Likewise.
5771         * sel-sched-dump.c: Likewise.
5772         * sel-sched-ir.c: Likewise.
5773         * sel-sched.c: Likewise.
5774         * sese.c: Likewise.
5775         * stor-layout.c: Likewise.
5776         * tree-cfg.c: Likewise.
5777         * tree-cfgcleanup.c: Likewise.
5778         * tree-chrec.c: Likewise.
5779         * tree-data-ref.c: Likewise.
5780         * tree-emutls.c: Likewise.
5781         * tree-inline.c: Likewise.
5782         * tree-into-ssa.c: Likewise.
5783         * tree-loop-distribution.c: Likewise.
5784         * tree-loop-linear.c: Likewise.
5785         * tree-mudflap.c: Likewise.
5786         * tree-outof-ssa.c: Likewise.
5787         * tree-parloops.c: Likewise.
5788         * tree-predcom.c: Likewise.
5789         * tree-pretty-print.c: Likewise.
5790         * tree-scalar-evolution.c: Likewise.
5791         * tree-ssa-live.c: Likewise.
5792         * tree-ssa-loop-im.c: Likewise.
5793         * tree-ssa-loop-ivcanon.c: Likewise.
5794         * tree-ssa-loop-ivopts.c: Likewise.
5795         * tree-ssa-loop-manip.c: Likewise.
5796         * tree-ssa-loop-niter.c: Likewise.
5797         * tree-ssa-loop-prefetch.c: Likewise.
5798         * tree-ssa-phiprop.c: Likewise.
5799         * tree-ssa-pre.c: Likewise.
5800         * tree-ssa-reassoc.c: Likewise.
5801         * tree-ssa-sccvn.c: Likewise.
5802         * tree-ssa-structalias.c: Likewise.
5803         * tree-ssa.c: Likewise.
5804         * tree-vect-data-refs.c: Likewise.
5805         * tree-vect-loop-manip.c: Likewise.
5806         * tree-vect-loop.c: Likewise.
5807         * tree-vect-patterns.c: Likewise.
5808         * tree-vect-slp.c: Likewise.
5809         * tree-vect-stmts.c: Likewise.
5810         * tree-vrp.c: Likewise.
5811         * tree.c: Likewise.
5812         * value-prof.c: Likewise.
5813         * var-tracking.c: Likewise.
5814         * varasm.c: Likewise.
5815         * vmsdbgout.c: Likewise.
5817 2010-08-19  Nathan Sidwell  <nathan@codesourcery.com>
5818             Richard Guenther  <richard.guenther@gmail.com>
5820         * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
5821         copy the src value and return a copy.
5822         * doc/extend.texi (Volatiles): Move from C++ to C and expand.
5823         (C++ Volatiles): Adjust to describe C++ semantics only.
5825 2010-08-20  Joseph Myers  <joseph@codesourcery.com>
5827         * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
5828         be zero or nonzero.
5829         * doc/tm.texi: Regenerate.
5830         * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
5831         * df-scan.c (df_get_exit_block_use_set), reginfo.c
5832         (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
5833         Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
5834         * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
5835         to 1.
5837 2010-08-20  Olivier Hainque  <hainque@adacore.com>
5839         * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
5840         an extra nop past a sibling call at the very end.
5842 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5844         PR bootstrap/45350
5845         * combine.c (try_combine): Initialize i1_is_used and i2_is_used.  Fix
5846         a comment.
5848 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5850         * target.def (function_arg, function_incoming_arg): Remove const
5851         qualifier on CUMULATIVE_ARGS parameter.
5852         * targhooks.h (default_function_arg, default_function_incoming_arg):
5853         Likewise.
5854         * targhooks.c (default_function_arg, default_function_incoming_arg):
5855         Likewise.
5856         * config/i386/i386.c (ix86_function_arg): Likewise.
5858 2010-08-19  Jakub Jelinek  <jakub@redhat.com>
5860         PR target/45336
5861         * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
5862         SIGN_EXTENDs or ZERO_EXTENDs.
5864 2010-08-19  Bernd Schmidt  <bernds@codesourcery.com>
5866         PR target/42172
5867         * combine.c (combine_validate_cost): New arg I0.  All callers changed.
5868         Take its cost into account if nonnull.
5869         (insn_a_feeds_b): New static function.
5870         (combine_instructions): Look for four-insn combinations.
5871         (can_combine_p): New args PRED2, SUCC2.  All callers changed.  Take
5872         them into account when computing all_adjacent and looking for other
5873         uses.
5874         (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC.  All callers
5875         changed.  Treat them like I1DEST and I1_NOT_IN_SRC.
5876         (try_combine): New arg I0.  Handle four-insn combinations.
5877         (distribute_notes): New arg ELIM_I0.  All callers changed.  Treat it
5878         like ELIM_I1.
5880 2010-08-19  Jason Merrill  <jason@redhat.com>
5882         PR c++/45307
5883         * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
5884         if ctor is empty.
5885         (gimplify_modify_expr_rhs): Adjust.
5887 2010-08-19  Nathan Froyd  <froydnj@codesourcery.com>
5889         * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
5890         bitmap_bit_p.
5891         * config/bfin/bifn.c (bfin_discover_loop): Likewise.
5892         * dominance.c (iterate_fix_dominators): Likewise.
5893         * dse.c (set_usage_bits): Likewise.
5894         (set_position_unneeded, record_store): Likewise.
5895         * gimple-fold.c (get_maxval_strlen): Likewise.
5896         * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
5897         * ipa-inline.c (update_caller_keys): Likewise.
5898         * ipa-split.c (verify_non_ssa_vars): Likewise.
5899         * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
5900         (close_type_exposed_parameter, close_type_full_escape): Likewise.
5901         (close_addressof_down): Likewise.
5902         * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
5903         (setup_allocno_left_conflicts_size): Likewise.
5904         (ira_reassign_conflict_allocnos): Likewise.
5905         (ira_reassign_pseudos): Likewise.
5906         * ira-emit.c (change_loop): Likewise.
5907         * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
5908         * lto-streamer-out.c (write_symbol): Likewise.
5909         * predict.c (expr_expected_value_1): Likewise.
5910         * regstat.c (regstat_bb_compute_ri): Likewise.
5911         * sel-sched.c (create_block_for_bookkeeping): Likewise.
5912         (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
5913         * stmt.c (expand_case): Likewise.
5914         * tree-eh.c (emit_eh_dispatch): Likewise.
5915         * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
5916         * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
5917         Likewise.
5918         (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
5919         (rdg_build_components): Likewise.
5920         * tree-object-size.c (collect_object_sizes_for): Likewise.
5921         * tree-sra.c (convert_callers): Likewise.
5922         * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
5923         * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
5924         * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
5926 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5928         * config/i386/i386.md (*lea_1): Use P mode iterator.
5929         (lea add splitter): Also handle DImode operands.
5930         (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
5931         predicate.  Do not use ix86_lea_for_add_ok.
5932         (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
5933         (lea ashift splitter): Also handle DImode operands.
5934         (DImode lea ashift splitter): Remove splitter.
5936 2010-08-19  Uros Bizjak  <ubizjak@gmail.com>
5938         * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
5939         ix86_binary_operator_ok.
5941 2010-08-19  Andrey Belevantsev  <abel@ispras.ru>
5943         PR rtl-optimization/44691
5944         * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
5945         is not a register.
5947 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5949         PR target/45070
5950         * config/arm/arm.c (arm_output_epilogue): Ensure that return
5951          value of size 1-3 is handled correctly.
5953 2010-08-19  Ian Bolton  <ian.bolton@arm.com>
5955         * tree-switch-conversion.c (gen_inbound_check): Ensure that the
5956         type for the conditional has wide enough range.
5958 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5960         PR target/45327
5961         * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
5962         ix86_binary_operator_ok.
5964 2010-08-18  Uros Bizjak  <ubizjak@gmail.com>
5966         * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
5967         <default>:  Swap operands 1 and 2 for alternative 2 to use existing
5968         code to output insn mnemonic.  Fix comment.
5969         (*addsi_1_zext): Add r-r-0 alternative 1.
5970         <TYPE_LEA>: Split insn to lea.
5971         <default>: Handle alternative 1.
5972         (*addhi_1_lea): Add r-r-0 alternative 2.  Use cond RTX instead of
5973         multi-level if_then_else RTX to set "type" attribute.
5974         <default>: Handle alternative 2.
5975         (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
5976         Use cond RTX instead of multi-level if_then_else RTX to set
5977         "type" attribute.
5978         <default>: Handle alternatives 2 and 4.
5979         (lea splitters): Update calls to ix86_lea_for_add_ok.
5981         * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
5982         argument.
5983         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
5985 2010-08-18  Richard Guenther  <rguenther@suse.de>
5987         * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
5988         use operand helpers.
5990 2010-08-18  Paolo Bonzini  <bonzini@gnu.org>
5992         PR middle-end/45292
5993         * optabs.c (expand_bool_compare_and_swap): Expand pending
5994         pops before trying the optab.
5996 2010-08-18  Yao Qi  <yao@codesourcery.com>
5998         PR target/45094
5999         * config/arm/arm.c (output_move_double): Fix typo generating
6000         instructions ('ldr'->'str').
6002 2010-08-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
6004         PR rtl-optimization/42575
6005         * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
6006         live ranges.
6008 2010-08-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6010         * config/arm/arm-protos.h (arm_expand_sync): New.
6011         (arm_output_memory_barrier, arm_output_sync_insn): New.
6012         (arm_sync_loop_insns): New.
6013         * config/arm/arm.c (FL_ARCH7): New.
6014         (FL_FOR_ARCH7): Include FL_ARCH7.
6015         (arm_arch7): New.
6016         (arm_print_operand): Support %C markup.
6017         (arm_legitimize_sync_memory): New.
6018         (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
6019         (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
6020         (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
6021         (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
6022         (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
6023         (arm_process_output_sync_insn, arm_output_sync_insn): New.
6024         (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
6025         * config/arm/arm.h (struct arm_sync_generator): New.
6026         (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
6027         (TARGET_HAVE_MEMORY_BARRIER): New.
6028         (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
6029         * config/arm/arm.md: Include sync.md.
6030         (UNSPEC_MEMORY_BARRIER): New.
6031         (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
6032         (VUNSPEC_SYNC_OP):New.
6033         (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
6034         (sync_result, sync_memory, sync_required_value): New attributes.
6035         (sync_new_value, sync_t1, sync_t2): Likewise.
6036         (sync_release_barrier, sync_op): Likewise.
6037         (length): Add logic to length attribute defintion to call
6038         arm_sync_loop_insns when appropriate.
6039         * config/arm/sync.md: New file.
6041 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6043         * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
6044         ENABLE_TREE_CHECKING.
6045         (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
6046         and GCC >= 4.3.
6048 2010-08-17  H.J. Lu  <hongjiu.lu@intel.com>
6050         * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
6051         or optimizing for size, always avoid lea if possible.
6053         * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
6055 2010-08-17  Iain Sandoe  <iains@gcc.gnu.org>
6057         * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
6058         Dunmmy function with NULL return unless the target is
6059         OSX >= 10.6 (Darwin10).
6061 2010-08-17  Jack Howarth  <howarth@bromo.med.uc.edu>
6063         * gcc.c (spec_function): Add remove-outfile.
6064         (remove_outfile_spec_function): New function.
6065         * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
6066         * invoke.texi (replace-outfile): Document.
6068 2010-08-17  Uros Bizjak  <ubizjak@gmail.com>
6070         PR target/45296
6071         * reginfo.c (globalize_reg): Reject stack registers.
6073 2010-08-17  Richard Guenther  <rguenther@suse.de>
6075         * tree-ssa-dom.c (struct edge_info): Use a VEC for the
6076         list of conditional equivalences.
6077         (free_all_edge_infos): Adjust.
6078         (record_equivalences_from_incoming_edge): Likewise.
6079         (record_cond): Likewise.
6080         (build_and_record_new_cond): Likewise.
6081         (record_conditions): Likewise.
6082         (dom_opt_leave_block): Likewise.
6084 2010-08-17  Kai Tietz  <kai.tietz@onevision.com>
6086         * doc/invoke.texi (ms-extension): Add documentation.
6088 2010-08-17  Richard Guenther  <rguenther@suse.de>
6090         * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
6092 2010-08-17  Shujing Zhao  <pearly.zhao@oracle.com>
6094         PR c/40563
6095         * c-decl.c (diagnose_uninitialized_cst_member): New function.
6096         (finish_decl): Use it to issue a -Wc++-compat warning about
6097         uninitialized const field in struct or union.
6099         (finish_struct): Use strip_array_types.
6101 2010-08-17  Jakub Jelinek  <jakub@redhat.com>
6103         * function.c (block_fragments_nreverse, blocks_nreverse_all): New
6104         functions.
6105         (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
6106         (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL.  Don't
6107         call block_nreverse here.
6108         (blocks_nreverse): Rename decl temporary to block.
6110 2010-08-16  Bernd Schmidt  <bernds@codesourcery.com>
6112         * config/arm/thumb2.md (thumb2_notsi_shiftsi,
6113         thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
6114         thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
6115         thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
6116         thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
6117         thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
6118         thumb2_iorsi3): Delete.
6119         (orsi_notsi_si): No longer a named pattern.
6120         (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
6121         * config/arm/predicates.md (shift_amount_operand): New.
6122         (mult_operator): New.
6123         * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
6124         attr enabled): New.
6125         (iorsi3_insn): Renamed from arm_iorsi3.  Handle a new alternative if
6126         arch matches t2.
6127         (not_shiftsi): Renamed from arm_notsi_shiftsi.  Handle Thumb2 variant.
6128         (not_shiftsi_compare0): Likewise, renamed from
6129         arm_notsi_shiftsi_compare0.
6130         (not_shiftsi_compare0_scratch): Likweise, renamed from
6131         arm_notsi_shiftsi_compare0_scratch.
6132         (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
6133         (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
6134         (arith_shiftsi): Handle Thumb2 variant.  Set insn_enabled attribute
6135         so that the register alternative is disabled when the shift_operator
6136         is MULT.  Use "M" as the constraint for constants.
6137         (arith_shiftsi splitter): Enable for TARGET_32BIT.
6138         (arith_shiftsi_compare0): Handle Thumb2 variant.  Use "M" as the
6139         constraint for constants.
6140         (arith_shiftsi_compare0_scratch): Likewise.
6141         (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
6142         Handle Thumb2 alternative.
6144 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
6146         * doc/options.texi (NoDriverArg): Document.
6147         * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
6148         -MDX and -MMDX.
6149         * opt-functions.awk (switch_flags): Handle NoDriverArg.
6150         * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
6151         marking for CL_NO_DRIVER_ARG options when in the driver.
6152         * opts.h (CL_NO_DRIVER_ARG): Define.
6153         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
6154         CL_COMMON): Update values.
6156 2010-08-16  Joseph Myers  <joseph@codesourcery.com>
6158         * common.opt: Add driver options.
6159         (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
6160         * doc/options.texi (Driver, RejectDriver): Document.
6161         * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
6162         print_prog_name, print_multi_directory, print_sysroot,
6163         print_multi_os_directory, print_multi_lib,
6164         print_sysroot_headers_suffix, report_times, combine_flag,
6165         use_pipes, wrapper_string): Remove.
6166         (save_switch, driver_unknown_option_callback,
6167         driver_wrong_lang_callback, driver_post_handling_callback,
6168         driver_handle_option): New.
6169         (spec_lang, last_language_n_infiles): Make file-scope static
6170         instead of local to process_command.
6171         (process_command): Use decode_cmdline_options_to_array and
6172         read_cmdline_option for option processing.  Compute have_c in
6173         prescan of decoded options.
6174         * opt-functions.awk (switch_flags): Handle Driver and
6175         RejectDriver.
6176         (var_type, var_type_struct): Handle Separate options as generating
6177         const char * variables.
6178         * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
6179         CL_TARGET to be passed by caller if required.
6180         (decode_cmdline_options_to_array): Update comment.
6181         * opts.c (complain_wrong_lang): Handle options only valid for the
6182         driver.
6183         (decode_options): Update call to decode_cmdline_options_to_array.
6184         (print_filtered_help): Ignore driver-only options.
6185         (print_specific_help): Ignore CL_DRIVER.
6186         (common_handle_option): Don't call print_specific_help for CL_DRIVER.
6187         * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
6188         (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
6189         Update values.
6191 2010-08-16  Richard Guenther  <rguenther@suse.de>
6193         * tree-cfg.c (verify_types_in_gimple_reference): Verify
6194         TARGET_MEM_REF a bit.
6195         * tree-ssa-address.c (addr_for_mem_ref): Adjust.
6196         (create_mem_ref_raw): Always create TMR_OFFSET, store the
6197         alias pointer type via it.
6198         (copy_mem_ref_info): Adjust.
6199         (maybe_fold_tmr): Likewise.
6200         * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
6201         (reference_alias_ptr_type): Likewise.
6202         * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
6203         adjust documentation of TMR_OFFSET operand.
6204         * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
6205         use the alias pointer type.
6206         * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
6207         initialize mem attrs but the TMR itself.
6208         * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
6209         similar to MEM_REF.
6210         * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
6211         * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
6212         (unshare_and_remove_ssa_names): Likewise.
6213         (copy_ref_info): Adjust.
6214         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
6215         TARGET_MEM_REF case.
6216         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
6217         at TMR_ORIGINAL.
6218         * tree.h (TMR_ORIGINAL): Remove.
6219         * gimple.c (get_base_address): For TARGET_MEM_REF with a
6220         symbol return that.
6221         * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
6222         with a symbol.
6223         (get_addr_base_and_unit_offset): Likewise.
6224         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
6225         TARGET_MEM_REFs.
6226         (indirect_ref_may_alias_decl_p): Likewise.
6227         (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
6229 2010-08-15  Uros Bizjak  <ubizjak@gmail.com>
6231         * doc/invoke.texi (-fomit-frame-pointer): Document that starting
6232         with GCC version 4.6, the default setting (when not optimizing
6233         for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
6234         been changed to -fomit-frame-pointer.
6236 2010-08-15  Iain Sandoe  <iains@gcc.gnu.org>
6238         * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
6239         Darwin10.  Do not link libgcc.a for Darwin >= 9.
6241 2010-08-15  Gerald Pfeifer  <gerald@pfeifer.com>
6243         * doc/invoke.texi (Warning Options): Fix terminology and markup
6244         in the description of how unknown warning options are handled.
6246 2010-08-15  Ira Rosen  <irar@il.ibm.com>
6248         * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
6249         in basic blocks.
6250         (vect_supportable_dr_alignment): Check alignment for basic blocks.
6251         * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
6252         data references.
6253         (vect_bb_vectorization_profitable_p): New function.
6254         (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
6255         check if it's worthwhile to vectorize the basic block.
6257 2010-08-14  Anatoly Sokolov  <aesok@post.ru>
6259         * reload.h (register_move_cost, memory_move_secondary_cost,
6260         secondary_reload_class): Adjust prototype.
6261         * rtl.h (reg_class_subset_p): Adjust prototype.
6262         * reload.c (secondary_reload_class): Change arguments type from
6263         enum reg_class to reg_class_t. Change result type to reg_class_t.
6264         * reginfo.c (register_move_cost, reg_class_subset_p): Change
6265         arguments type from enum reg_class to reg_class_t.
6266         (memory_move_secondary_cost): Change arguments type from
6267         enum reg_class to reg_class_t. Change type of saved_flags to
6268         reg_class_t.
6270         * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6271         Remove macros.
6272         (mips_cost): Remove.
6273         (struct mips_rtx_cost_data): Moved to mips.c.
6274         * config/mips/mips-protos.h (mips_register_move_cost): Remove.
6275         * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
6276         (mips_cost): Make static.
6277         (mips_canonicalize_move_class): Change argument type to reg_class_t.
6278         Change result type to reg_class_t.
6279         (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
6280         type from enum reg_class to reg_class_t.
6281         (mips_register_move_cost): Make static. Change arguments
6282         type from enum reg_class to reg_class_t.
6283         (mips_memory_move_cost): New function.
6284         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6286 2010-08-14  Richard Sandiford  <rdsandiford@googlemail.com>
6288         PR rtl-optimization/43358
6289         * ira-lives.c (process_single_reg_class_operands): Adjust the costs
6290         of a single hard register, using simplify_subreg_regno to decide
6291         what that register should be.
6293 2010-08-14  Mingjie Xing  <mingjie.xing@gmail.com>
6295         * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
6296         * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
6297         (loongson_pmull<V_suffix>): Rename to...
6298         (mul<mode>3): ...this and use MULT instead of an UNSPEC.
6300 2010-08-13  Jack Howarth  <howarth@bromo.med.uc.edu>
6302         * configure.ac: Enable -fomit-frame-pointer on darwin
6303         which support dwarf2.
6304         * config/i386/i386.c (override_options): Same.
6306 2010-08-13  Jie Zhang  <jie@codesourcery.com>
6308         * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
6310 2010-08-12  Joseph Myers  <joseph@codesourcery.com>
6312         * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
6313         -MMD.
6315 2010-08-12  Changpeng Fang  <changpeng.fang@amd.com>
6317         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
6318         up dot_prod pattern searching if a stmt is outside the loop.
6320 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
6321             Uros Bizjak  <ubizjak@gmail.com>
6323         * config.gcc: Handle --enable-frame-pointer.
6325         * configure.ac: Add --enable-frame-pointer.
6326         * configure: Regenerated.
6328         * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
6329         (override_options): If not configured with --enable-frame-pointer,
6330         enable -fomit-frame-pointer (but not for TARGET_MACHO or when
6331         optimizing for size), -fasynchronous-unwind-tables and
6332         -maccumulate-outgoing-args by default.
6334 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6336         * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
6338         PR middle-end/45262
6339         * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
6340         -a overflows.  Normalize the range.
6342 2010-08-12  Richard Guenther  <rguenther@suse.de>
6344         PR tree-optimization/45232
6345         * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
6346         for types with undefined overflow.
6347         (reassociate_bb): Allow re-associating of bit and min/max
6348         operations for types with undefined overflow.
6349         * tree-ssa-forwprop.c (associate_plusminus): New function.
6350         (tree_ssa_forward_propagate_single_use_vars): Call it.
6352 2010-08-12  Richard Guenther  <rguenther@suse.de>
6354         * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
6355         * tree-ssa-alias.c (get_ptr_info): Move ...
6356         * tree-ssanames.c (get_ptr_info): ... here.  Initialize
6357         align and misalign fields conservatively.
6358         * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
6359         derive alignment information.
6360         (evaluate_stmt): Derive alignment information from memory
6361         allocation functions.
6362         * tree.h (get_pointer_alignment): Make unsigned.
6363         * builtins.c (get_object_alignment): Use alignment information we
6364         have computed for pointers.
6365         (get_pointer_alignment): Likewise.  Make conservative, return
6366         and unsigned value.
6367         (expand_builtin_strlen): Adjust.
6368         (expand_builtin_memcmp): Likewise.
6369         (expand_builtin_strcmp): Likewise.
6370         (expand_builtin_strncmp): Likewise.
6371         (get_builtin_sync_mem): Use at least mode alignment.
6372         (fold_builtin_memset): Adjust.
6373         (fold_builtin_memory_op): Likewise.
6374         * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
6375         information also dump pointer alignment knowledge.
6376         (dump_gimple_stmt): Likewise.
6378 2010-08-12  Uros Bizjak  <ubizjak@gmail.com>
6380         * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
6381         (EMPTY_FIELD_BOUNDARY): Remove.
6382         * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
6384 2010-08-12  Jakub Jelinek  <jakub@redhat.com>
6386         PR debug/45259
6387         * caller-save.c (save_call_clobbered_regs): Only swap notes with
6388         DEBUG_INSNs if n_regs_saved.
6390 2010-08-12  Wei Guozhi  <carrot@google.com>
6392         PR target/44999
6393         * config/arm/arm.md (andsi3): Change to zero extension if possible.
6394         * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
6396 2010-08-11  Vladimir Makarov  <vmakarov@redhat.com>
6398         * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
6400         * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
6402 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6404         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
6405         the case removed in the previous patch, when the only phi argument
6406         is defined in the same loop as the phi node itself.  Handle it
6407         separately from the invariant case by both propagating it outside
6408         the region and replacing the phi node with an assign.
6410 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6412         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
6413         constant phi nodes with one argument are is_gimple_min_invariant
6414         and SSA_NAME_IS_DEFAULT_DEF.
6416 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6418         * graphite-cloog-util.c (oppose_constraint):
6419         Extend loop counter's value range (CLOOG_ORG).
6420         (cloog_matrix_to_ppl_constraint): Same.
6421         (new_Constraint_System_from_Cloog_matrix): Same.
6422         * graphite-cloog-compat.h (matrix_num_type): New.
6424 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6426         * graphite.c (graphite_initialize): Do not initialize
6427         CLooG and initialize the Parma Polyhedra Library
6428         manually when using CLOOG_ORG.
6429         (graphite_finalize): Do not finalize CLooG and finalize
6430         the Parma Polyhedra Library manually when using CLOOG_ORG.
6431         * graphite-cloog-compat.h (cloog_initialize): Hide function
6432         when using CLOOG_ORG.
6433         (cloog_finalize): Same.
6435 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6437         * graphite-clast-to-gimple.c (free_scattering): Change
6438         CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
6439         (CLOOG_ORG).
6440         (build_cloog_prog): Same.
6441         * graphite-cloog-compat.h (cloog_domain): Removed.
6442         (cloog_scattering): New.
6443         (cloog_set_domain): Removed.
6444         (cloog_set_scattering): New.
6445         (cloog_next_domain): Removed.
6446         (cloog_next_scattering): New.
6447         (cloog_set_next_domain): Removed.
6448         (cloog_set_next_scattering): New.
6449         (CloogScatteringList): New.
6450         (CloogScattering): New.
6451         (cloog_scattering_free): New.
6452         (new_Cloog_Scattering_from_ppl_Polyhedron): New.
6453         * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
6454         New.
6456 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6458         * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
6459         CloogState.
6460         (set_cloog_options): Same.
6461         (print_clast_stmt): Same.
6462         (scop_to_clast): Same.
6463         (print_generated_program): Same.
6464         (gloog): Same.
6465         * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
6466         (scop_to_clast): Extend with CloogState.
6467         * graphite-cloog-util.c: Include graphite-cloog-compat.h
6468         (new_Cloog_Domain_from_ppl_Polyhedron):
6469         Extend with CloogState.  Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
6470         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
6471         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6472         * graphite-cloog-util.h (build_cloog_prog): Same.
6473         * graphite-cloog-copat.h (build_cloog_prog): New.
6474         (CloogState): New.
6475         (cloog_state_malloc): New.
6476         (cloog_state_free): New.
6477         (cloog_loop_malloc): New.
6478         (cloog_options_malloc): New.
6479         (cloog_statement_alloc): New.
6480         (cloog_domain_from_cloog_matrix): New.
6481         (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
6482         (new_Cloog_Domain_from_ppl_Polyhedron): New.
6484 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6486         * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
6487         type of NAME now depends on used CLooG version.
6488         (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
6489         (gcc_type_for_clast_expr): Same.
6490         (print_clast_stmt): Replace pprint with clast_pprint.
6491         * graphite-cloog-compat.h: Provide compatibility macros for
6492         CLooG Legacy.
6493         (clast_name_p): New.
6494         (clast_expr_term): New.
6495         (clast_expr_red): New.
6496         (clast_expr_bin): New.
6497         (clast_pprint): New.
6499 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6501         * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
6502         compatible to newer CLooG releases (CLOOG_ORG).
6503         (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
6504         (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
6505         * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
6506         (build_cloog_prog) : New.
6507         (cloog_program_extract_scalars): New.
6508         (cloog_program_scatter): New.
6510 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6512         * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
6513         conditionally (CLOOG_ORG).
6514         * graphite-cloog-compat.h: New.  Include graphite-cloog-compat.h.
6515         (cloog_statement_usr): New.
6516         (cloog_domain): Same.
6517         (cloog_set_domain): Same.
6518         (cloog_next_domain): Same.
6519         (cloog_set_next_domain): Same.
6520         (cloog_program_nb_scattdims): Same.
6521         (cloog_program_set_nb_scattdims): Same.
6522         (cloog_program_names): Same.
6523         (cloog_program_set_names): Same.
6524         (cloog_program_set_context): Same.
6525         (cloog_program_set_loop): Same.
6526         (cloog_program_blocklist): Same.
6527         (cloog_program_set_blocklist): Same.
6528         (cloog_program_scaldims): Same.
6529         (cloog_program_set_scaldims): Same.
6530         (cloog_names_nb_parameters): Same.
6531         (cloog_names_set_nb_parameters): Same.
6532         (cloog_names_parameters): Same.
6533         (cloog_names_set_parameters): Same.
6534         (cloog_names_set_nb_iterators): Same.
6535         (cloog_names_set_iterators): Same.
6536         (cloog_names_set_nb_scattering): Same.
6537         (cloog_names_set_scattering): Same.
6538         (cloog_statement_set_usr): Same.
6539         (cloog_loop_set_next): Same.
6540         (cloog_loop_set_domain): Same.
6541         (cloog_loop_set_block): Same.
6542         (cloog_block_list_next): Same.
6543         (cloog_block_list_set_next):
6544         (cloog_block_list_set_block): Same.
6546 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6548         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
6549         a bool.
6550         (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
6551         (rewrite_commutative_reductions_out_of_ssa_loop): Same.
6552         (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
6553         when something has been changed.
6554         (rewrite_commutative_reductions_out_of_ssa): Same.
6556 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6558         * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
6559         handle the case when def is in the sese region.
6560         (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
6561         for invariant expressions.
6562         (rewrite_cross_bb_phi_deps): Removed.
6563         (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
6564         (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
6565         rewrite_cross_bb_phi_deps.
6567 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6569         * graphite-sese-to-poly.c
6570         (rewrite_commutative_reductions_out_of_ssa_loop): Call
6571         scev_analyzable_p only on is_gimple_reg
6573 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6575         * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
6576         (rewrite_close_phi_out_of_ssa): Propagate constant values or
6577         parametric expressions outside the scop region.
6578         (rewrite_cross_bb_scalar_deps): Same.
6579         * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
6581 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6583         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
6584         SSA_NAME_DEF_STMT only on SSA_NAMEs.
6586 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6588         * tree-scalar-evolution.c (instantiate_scev_name): Do not
6589         instantiate default definitions.
6591 2010-08-11  Vladimir Kargov  <kargov@gmail.com>
6592             Sebastian Pop  <sebastian.pop@amd.com>
6594         * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
6595         (loop_exits_from_bb_p): New.
6596         * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
6597         (loop_exits_from_bb_p): Declared.
6598         * graphite-scop-detection.c (scopdet_basic_block_info): Call
6599         loop_exits_to_bb_p.
6601 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6603         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
6604         extra parameter for the region.  Call scev_analyzable_p.
6605         (rewrite_reductions_out_of_ssa): Update call to
6606         rewrite_close_phi_out_of_ssa.
6607         (rewrite_cross_bb_phi_deps): Same.
6608         (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
6609         parameter for the region.  Call scev_analyzable_p.
6610         (rewrite_commutative_reductions_out_of_ssa): Update call to
6611         rewrite_commutative_reductions_out_of_ssa_loop.
6613 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6615         * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
6617 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6619         * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
6620         SSA scalar phi nodes that can be scev_analyzable_p.
6622 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6624         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
6625         handle SSA_NAME_IS_DEFAULT_DEF.
6627 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6629         * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
6631 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6633         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
6634         case non close-phi nodes with one argument.
6636 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6638         * sese.h (scev_analyzable_p): Scevs could be expressions without
6639         chrecs and still be scev_analyzable_p.
6641 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6643         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
6645 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6647         * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
6648         * cfgloop.h (struct loop): Remove single_iv field.
6649         * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
6650         (scop_canonicalize_loops): Removed.
6651         (scop_ivs_can_be_represented): Do not use loop->single_iv.  Iterate
6652         over all the loop phi nodes in loop->header.
6653         (build_poly_scop): Remove use of scop_canonicalize_loops.
6655 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6657         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
6658         handle GIMPLE_CALL.
6660 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6662         * tree-chrec.c (chrec_apply): Should only apply to the specified
6663         variable.  Also handle multivariate chains of recurrences that
6664         satisfy evolution_function_is_affine_p.  Also handle CASE_CONVERT.
6666 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6668         * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
6669         (debug_clast_name_indexes_1): Removed.
6670         (debug_clast_name_indexes): Removed.
6671         (pbb_to_depth_to_oldiv): Removed.
6672         (build_iv_mapping): Replace the use of rename_map with iv_map.
6673         (translate_clast_user): Remove uses of rename_map.  Allocate and
6674         free iv_map.
6675         (translate_clast_for_loop): Remove uses of rename_map.
6676         (translate_clast_for): Same.
6677         (translate_clast_guard): Same.
6678         (translate_clast): Same.
6679         (gloog): Same.
6680         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
6681         * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
6682         * sese.c (set_rename): Now static.
6683         (rename_variables_in_stmt): Removed.
6684         (rename_uses): New.
6685         (is_parameter): Removed.
6686         (is_iv): Removed.
6687         (expand_scalar_variables_call): Removed.
6688         (expand_scalar_variables_ssa_name): Removed.
6689         (expand_scalar_variables_expr): Removed.
6690         (expand_scalar_variables_stmt): Removed.
6691         (expand_scalar_variables): Removed.
6692         (rename_variables): Removed.
6693         (remove_condition): Removed.
6694         (get_true_edge_from_guard_bb): Removed.
6695         (get_false_edge_from_guard_bb): Removed.
6696         (struct igp): Removed.
6697         (default_before_guard): Removed.
6698         (convert_for_phi_arg): Removed.
6699         (add_guard_exit_phis): Removed.
6700         (insert_guard_phis): Removed.
6701         (graphite_copy_stmts_from_block): Now also uses iv_map and a
6702         region.  Do not copy conditions.  Do not copy induction variables.
6703         Call rename_uses.
6704         (copy_bb_and_scalar_dependences): Allocate a local rename_map for
6705         the translated statement.  Use the iv_map for the induction
6706         variable renaming.
6707         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
6708         (set_rename): Removed declaration.
6709         (scev_analyzable_p): ...here.
6710         * tree-chrec.c (chrec_apply_map): New.
6711         * tree-chrec.h (chrec_apply_map): Declared.
6713 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6715         * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
6716         insert_loop_close_phis.
6717         * sese.c (name_defined_in_loop_p): Removed.
6718         (expr_defined_in_loop_p): Removed.
6719         (alive_after_loop): Removed.
6720         (close_phi_not_yet_inserted_p): Removed.
6721         (struct alep): Removed.
6722         (add_loop_exit_phis): Removed.
6723         (insert_loop_close_phis): Removed.
6725 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6727         * graphite-cloog-util.c
6728         (cloog_matrix_to_ppl_constraint): Fix flipped condition.
6729         * graphite-poly.c
6730         (psct_scattering_dim_for_loop_depth): Same.
6732 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6734         * graphite-cloog-util.h: Added cloog.h.
6735         * graphite-blocking.c: Removed cloog.h.
6736         * graphite-dependences.c: Same.
6737         * graphite-interchange.c: Same.
6738         * graphite-poly.c: Same.
6739         * graphite-ppl.c: Same.
6740         * graphite-scop-detection.c: Same.
6741         * graphite-sese-to-poly.c:
6742         Removed cloog.h.
6743         Removed graphite-clast-to-gimple.h.
6744         (check_poly_representation): Removed (unused).
6745         * graphite-sese-to-poly.h
6746         (check_poly_representation): Removed (unused).
6748 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6750         * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
6751         (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
6752         (graphite-cloog-util.o): New.
6753         (graphite-ppl.o): Added graphite-cloog-util.h.
6754         * graphite-clast-to-gimple.c:
6755         Added graphite-cloog-util.h to include statements.
6756         * graphite-cloog-util.c: New.
6757         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
6758         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6759         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6760         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6761         (insert_constraint_into_matrix): Same.
6762         (ppl_Constrain_System_number_of_constraints): Same.
6763         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6764         (oppose_constraint): Same.
6765         (cloog_matrix_to_ppl_constraint): Same.
6766         (new_Constraint_System_from_Cloog_Matrix): Same.
6767         * graphite-cloog-util.h: New.
6768         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
6769         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6770         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6771         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6772         (insert_constraint_into_matrix): Same.
6773         * graphite-ppl.c:
6774         Added graphite-cloog-util.h to include statements.
6775         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
6776         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6777         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6778         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6779         (insert_constraint_into_matrix): Same.
6780         (ppl_Constrain_System_number_of_constraints): Same.
6781         (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
6782         (oppose_constraint): Same.
6783         (cloog_matrix_to_ppl_constraint): Same.
6784         (new_Constraint_System_from_Cloog_Matrix): Same.
6785         * graphite-ppl.h:
6786         (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
6787         graphite-cloog-util.h.
6788         (new_Cloog_Domain_from_ppl_Polyhedron): Same.
6789         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
6790         (new_C_Polyhedron_from_Cloog_Matrix): Same.
6791         (insert_constraint_into_matrix): Same.
6793 2010-08-11  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
6795         * graphite-clast-to-gimple.c
6796         (precision_for_value): Resolve value_* calls to matching mpz_* calls.
6797         (precision_for_interval): Same.
6798         (gcc_type_for_interval): Same.
6799         (compute_type_for_level): Same.
6800         * graphite-interchange.c
6801         (lst_interchange_profitable_p): Same.
6802         * graphite-poly.c
6803         (psct_scattering_dim_for_loop_depth): Same.
6804         * graphite-ppl.c
6805         (ppl_max_for_le_pointset): Same.
6806         (ppl_min_for_le_pointset): Same.
6808 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6810         * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
6811         (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
6813 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6815         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
6816         rewrite_close_phi_out_of_ssa.
6818 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6820         * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
6822 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6824         * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
6825         rename_map.
6826         * sese.c (debug_rename_map): Same.
6827         (get_rename): Same.
6828         (set_rename): Same.
6829         (rename_variables_in_stmt): Same.
6830         (expand_scalar_variables_call): Same.
6831         (expand_scalar_variables_ssa_name): Same.
6832         (expand_scalar_variables_expr): Same.
6833         (expand_scalar_variables_stmt): Same.
6834         (expand_scalar_variables): Same.
6835         (rename_variables): Same.
6836         (graphite_copy_stmts_from_block): Same.
6837         (copy_bb_and_scalar_dependences): Same.
6839 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6841         * graphite-clast-to-gimple.c (copy_renames): Removed.
6842         (translate_clast_for): Do not call copy_renames.
6843         (translate_clast_guard): Same.
6845 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6847         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
6848         (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
6849         (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
6850         before rewrite_cross_bb_scalar_deps.
6852 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6854         * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
6855         Early return in when flag_associative_math is not set.
6857 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6859         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
6860         of SSA copies on edges except for loop->latch.
6862 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6864         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
6865         Split out of rewrite_reductions_out_of_ssa.
6866         * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
6867         Declared.
6868         * graphite.c (graphite_transform_loops): Call it.
6870 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6872         * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
6874 2010-08-11  Alexander Monakov  <amonakov@ispras.ru>
6876         * dbgcnt.def (graphite_scop): New counter.
6877         * graphite.c: Include dbgcnt.h.
6878         (graphite_transform_loops): Use new counter to limit transformations.
6879         * Makefile.in (graphite.o): Depend on DBGCNT_H.
6881 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6883         * passes.c (init_optimization_passes): Add pass_graphite.
6884         Schedule a pass_copy_prop before pass_graphite_transforms.
6885         * timevar.def (TV_GRAPHITE): Declared.
6886         * tree-pass.h (pass_graphite): Declared.
6887         * tree-ssa-loop.c (pass_graphite): New.
6889 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6891         * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
6892         Remove calls to rename_nb_iterations and rename_sese_parameters.
6893         * graphite-clast-to-gimple.h (gloog): Update declaration.
6894         * graphite.c (graphite_transform_loops): Update call to gloog.
6895         * sese.c (rename_variables_in_expr): Removed.
6896         (rename_nb_iterations): Removed.
6897         (rename_sese_parameters): Removed.
6898         * sese.h (rename_nb_iterations): Removed.
6899         (rename_sese_parameters): Removed.
6901 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6903         * graphite-clast-to-gimple.c (gloog): Remove call to
6904         sese_adjust_liveout_phis.
6905         * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
6906         SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
6907         (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
6908         rewrite_phi_out_of_ssa.
6909         * sese.c (get_vdef_before_sese): Removed.
6910         (sese_adjust_vphi): Removed.
6911         (sese_adjust_liveout_phis): Removed.
6912         * sese.h (sese_adjust_liveout_phis): Removed.
6914 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6916         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
6917         argument for the place after which to insert the out of SSA copy.
6918         (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6919         (rewrite_phi_out_of_ssa): Same.
6920         (rewrite_cross_bb_scalar_deps): Same.
6921         (insert_copyout): Removed.
6922         (insert_copyin): Removed.
6923         (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
6924         insert_out_of_ssa_copy_on_edge instead of insert_copyout and
6925         insert_copyin.
6927 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6929         * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
6930         (rewrite_reductions_out_of_ssa): Same.
6931         (rewrite_commutative_reductions_out_of_ssa): Same.
6932         (build_poly_scop): Do not call these functions.
6933         * graphite-sese-to-poly.h (build_poly_scop): Declared.
6934         (rewrite_reductions_out_of_ssa): Declared.
6935         (rewrite_commutative_reductions_out_of_ssa): Declared.
6936         * graphite.c (graphite_transform_loops): Call on every scop
6937         rewrite_commutative_reductions_out_of_ssa before calling
6938         rewrite_reductions_out_of_ssa and build_scop_bbs.
6940 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6942         * graphite-dependences.c (dot_deps): Make system call to dotty run
6943         in background.
6944         (dot_deps_stmt): Same.
6945         * graphite-poly.c (dot_lst): Same.
6947 2010-08-11  Sebastian Pop  <sebastian.pop@amd.com>
6949         * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
6950         phi_arg_in_outermost_loop.
6951         (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
6952         (remove_invariant_phi): Same.
6954 2010-08-11  Anatoly Sokolov  <aesok@post.ru>
6956         * target.def (output_addr_const_extra): New hook.
6957         * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
6958         * doc/tm.texi: Regenerate.
6959         * targhooks.c (default_asm_output_addr_const_extra): New function.
6960         * targhooks.h (default_asm_output_addr_const_extra): Declare.
6961         * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
6962         target hook.
6964         * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6965         * config/i386/i386-protos.h (output_addr_const_extra): Remove.
6966         * config/i386/i386.h (output_addr_const_extra): Rename to...
6967         (i386_asm_output_addr_const_extra): ...this. Make static.
6968         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6970 2010-08-11  Richard Henderson  <rth@redhat.com>
6972         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
6974 2010-08-11  Nick Clifton  <nickc@redhat.com>
6976         * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
6977         * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
6978         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
6979         stormy16-lib2-cmpsi.c.
6981         * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
6982         -O2.
6984 2010-08-11  Joseph Myers  <joseph@codesourcery.com>
6986         * opts.h (struct cl_option_handler_func): Make handler take
6987         cl_decoded_option structure as parameter, not individual elements.
6988         (struct cl_option_handlers): Make callbacks take cl_decoded_option
6989         structure as parameter, not individual elements.
6990         (handle_option): Take cl_decoded_option structure as parameter,
6991         not individual elements.
6992         (handle_generated_option): Declare.
6993         * opts-common.c (handle_option): Take cl_decoded_option structure
6994         as parameter, not individual elements.  Update calls to callback
6995         and handler functions.
6996         (handle_generated_option): New.
6997         (read_cmdline_option): Update calls to callback functions and
6998         handle_option.
6999         * opts.c (common_handle_option, complain_wrong_lang,
7000         unknown_option_callback, post_handling_callback,
7001         lang_handle_option, target_handle_option): Take cl_decoded_option
7002         structure as parameter, not individual elements.
7003         (lang_handle_option, target_handle_option, common_handle_option):
7004         Assert option has at most one argument.
7005         (enable_warning_as_error): Call handle_generated_option instead of
7006         handle_option.  Do not pass -Werror argument as argument of
7007         generated option.
7009 2010-08-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7011         * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7012         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7013         (SUBWORD_BOOL_CAS): Likewise.
7014         (SUBWORD_SYNC_OP): Likewise.
7015         (SUBWORD_TEST_AND_SET): Likewise.
7016         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7017         (SUBWORD_SYNC_OP): Likewise.
7018         (OP_AND_FETCH_WORD): Likewise.
7020 2010-08-10  Xinliang David Li  <davidxl@google.com>
7022         * tree-ssa-loop-ivopts.c (get_address_cost): Properly
7023         compute max/min offset in address.
7025 2010-08-10  Vladimir Makarov  <vmakarov@redhat.com>
7027         * ira-live.c: Include sbitmap.h.
7028         (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
7029         Compress live ranges even more.
7031 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7033         * coverage.c (ctr_labels): Delete.
7035 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7037         PR bootstrap/45177
7038         * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
7039         test here from arm_gen_load_multiple_1.
7040         (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
7041         multiple_operation_profitable_p.
7043 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7045         * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
7046         (fini_pre): Call free_aux_for_blocks.  Delete unused bb variable.
7048 2010-08-10  Richard Henderson  <rth@redhat.com>
7050         * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
7051         after saving registers.  Assert that SSE registers are only saved
7052         with a sufficiently aligned frame.
7053         (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
7054         remove stack_realign_fp handling.
7055         (ix86_expand_prologue): Save int registers before stack_realign_fp,
7056         and do not mark the stack alignment as frame related.
7057         (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
7059         * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
7060         saves when re-aligning the stack.
7062 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7064         * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
7065         * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
7066         (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
7068 2010-08-10  Nathan Froyd  <froydnj@codesourcery.com>
7070         * dwarf2out.c (struct die_struct): Move die_tag to the end.
7072 2010-08-09  Sofiane Naci  <sofiane.naci@arm.com>
7074         * config/arm/iterators.md: New file.
7075         * config/arm/arm.md: Include iterators.md.
7076         (QHSI): Move to new file.
7077         (LTUGEU, cnb, optab, ior_xor): Likewise.
7078         * config/arm/iwmmxt.md (VMMX): Move to new file.
7079         (VSHFT, MMX_char): Likewise.
7080         * config/arm/neon.md (VD): Move to new file.
7081         (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
7082         (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
7083         (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
7084         (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
7085         (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
7086         (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
7087         (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
7088         (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
7089         (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
7090         (Is_d_reg, V_mode_nunits): Likewise.
7091         * config/arm/vec-common.md (VALL): Move to new file.
7092         (VALLW, VINT, VINTW): Likewise.
7094 2010-08-10  Bernd Schmidt  <bernds@codesourcery.com>
7096         PR middle-end/45182
7097         * combine.c (make_compound_operation): Don't try to convert
7098         shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
7100 2010-08-10  Richard Guenther  <rguenther@suse.de>
7102         * tree.h (get_object_alignment): Adjust prototype.
7103         * builtins.c (get_object_alignment): Return unsigned int,
7104         drop the align parameter.  Handle MEM_REF, MISALIGNED_INDIRECT_REF
7105         and TARGET_MEM_REF properly.
7106         (get_pointer_alignment): Adjust.
7107         * emit-rtl.c (get_mem_align_offset): Adjust comment.
7108         (set_mem_attributes_minus_bitpos): Adjust.
7109         * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
7111 2010-08-10  Richard Guenther  <rguenther@suse.de>
7113         * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
7114         (copy_prop_visit_assignment): Simplify.
7115         (copy_prop_visit_stmt): Also visit assignments from
7116         constants.
7117         (copy_prop_visit_phi_node): Use operand_equal_p.
7119 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7121         * ipa-split.c (find_split_points): Free stack.
7123 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7125         * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
7126         * tree.c (tree_node_kind): Delete corresponding entries.
7128 2010-08-09  H.J. Lu  <hongjiu.lu@intel.com>
7130         * alias.c (may_alias_p): Remove unused ret.
7132 2010-08-09  Bingfeng Mei  <bmei@broadcom.com>
7134         * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
7135         alias_sets_conflict_p.
7136         (walk_mems_1): Moved from alias.c.
7137         (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
7138         in alias.c.
7139         (add_inter_loop_mem_dep): Use insns_may_alias_p now.
7140         * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
7141         * alias.c (walk_mems_2): Moved to ddg.c.
7142         (walk_mems_1): Ditto.
7143         (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
7144         to ddg.c.
7145         (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
7146         disambiguation.
7147         *(may_alias_p): New function to check whether two memory expression
7148         may alias or not. Currently used in buidling inter-iteration memory
7149         dependence.
7150         *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
7151         (insn_alias_sets_conflict_p): Removed
7152         *rtl.h (may_alias_p): New function prototype.
7154 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7156         * tree.c (nreverse): Assert that we don't have a BLOCK.
7158 2010-08-09  Nathan Froyd  <froydnj@codesourcery.com>
7160         * builtins.c (fold_builtin_next_arg): Use stdarg_p.
7161         * config/arm/arm.c (arm_get_pcs_model): Likewise.
7162         * config/avr/avr.c (init_cumulative_args): Likewise.
7163         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7164         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7165         * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
7166         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
7167         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7168         * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
7169         * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
7170         * dwarf2out.c (gen_subprogram_die): Likewise.
7171         * function.c (allocate_struct_function): Likewise.
7172         * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
7173         (deserves_ellipsis): Delete.
7175 2010-08-09  Richard Guenther  <rguenther@suse.de>
7177         * tree-ssa-copy.c (cached_last_copy_of): Remove.
7178         (valueize_val): New function.
7179         (get_last_copy_of): Remove.
7180         (set_copy_of_val): Simplify.
7181         (dump_copy_of): Likewise.
7182         (copy_prop_visit_cond_stmt): Use valueize_val.
7183         (copy_prop_visit_phi_node): Properly handle unvisited names.
7184         Drop code managing copy-of chains.
7185         (init_copy_prop): Adjust.
7186         (fini_copy_prop): Likewise.
7187         (execute_copy_prop): Remove obsolete comment.
7189 2010-08-09  Richard Guenther  <rguenther@suse.de>
7191         PR middle-end/44632
7192         * function.c (gimplify_parameters): Do not clear addressable
7193         bit of the original parameter.
7195 2010-08-09  Richard Guenther  <rguenther@suse.de>
7197         PR middle-end/45212
7198         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
7199         alignment from MEM_REF offset only if we took it from the
7200         base object.
7202 2010-08-09  Eric Fisher  <joefoxreal@gmail.com>
7204         * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
7206 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7208         * c-tree.h (build_arg_info): Declare.
7209         * c-decl.c (build_arg_info): Define.
7210         (get_parm_info): Call it.  Delete initialization code.
7211         * c-parser.c (c_parser_parms_declarator): Likewise.
7212         (c_parser_parms_list_declaractor): Likewise.
7214 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7216         * c-tree.h (c_arg_tag): Define.  Define a VEC containing it.
7217         (struct c_arg_info): Change type of tags field.
7218         * c-decl.c (grokdeclarator): Update for changed type of tags field.
7219         (get_parm_info): Likewise.
7220         (store_parm_decls_newstyle): Likewise.
7222 2010-08-08  Nathan Froyd  <froydnj@codesourcery.com>
7224         * config/rs6000/rs6000.c (branch_island): Define.  Define a VEC of it.
7225         (branch_island_list): Delete.
7226         (branch_islands): Declare.
7227         (add_compiler_branch_island): Adjust for branch_islands instead of
7228         branch_island_list.
7229         (macho_branch_islands): Likewise.
7230         (no_previous_def): Likewise.
7231         (get_prev_label): Likewise.
7233 2010-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7235         PR boehm-gc/34544
7236         * gthr-posix.h (__gthread_start): Delete.
7237         (__gthread_active_init): Use pthread_default_stacksize_np instead of
7238         pthread_create to determine if hpux pthreads are active.
7239         * gthr-posix95.h (__gthread_start): Delete.
7240         (__gthread_active_init): Likewise use pthread_default_stacksize_np.
7242 2010-08-08  Kai Tietz  <kai.tietz@onevision.com>
7244         * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
7245         _WIN64 not expanded.
7247 2010-08-07  Uros Bizjak  <ubizjak@gmail.com>
7248             H.J. Lu  <hongjiu.lu@intel.com>
7250         PR target/45213
7251         * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
7252         to output 32bit SFmode immediate as 8 byte sign extended value.
7254 2010-08-07  Marcus Shawcroft  <marcus.shawcroft@arm.com>
7256         * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
7257         'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
7258         (SUBWORD_BOOL_CAS): Likewise.
7259         (SUBWORD_SYNC_OP): Likewise.
7260         (SUBWORD_TEST_AND_SET): Likewise.
7261         (FETCH_AND_OP_WORD): Parenthesise INF_OP
7262         (SUBWORD_SYNC_OP): Likewise.
7263         (OP_AND_FETCH_WORD): Likewise.
7265 2010-08-07  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7267         * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
7268         * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
7269         (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
7270         (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
7271         generic part.
7272         (cortex_a9_sched_adjust_cost): New function.
7273         (xscale_sched_adjust_cost): New function.
7274         * config/arm/arm-protos.h (struct tune_params): New field
7275         sched_adjust_cost.
7276         * config/arm/arm-cores.def: Adjust costs for cortex-a9.
7278 2010-08-06  Eric Botcazou  <ebotcazou@adacore.com>
7280         PR target/44942
7281         * config/sparc/sparc.c (function_arg_advance): Always take into account
7282         the padding, if any.
7284 2010-08-06  Richard Guenther  <rguenther@suse.de>
7286         * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
7287         (dump_lattice_value): Dump it.
7288         (get_default_value): Adjust.
7289         (get_constant_value): Likewise.
7290         (set_value_varying): Likewise.
7291         (set_lattice_value): Make sure to not go up the lattice
7292         with bitwise constant values.
7293         (get_value_for_expr): Handle ADDR_EXPRs.
7294         (value_to_double_int): New function.
7295         (get_value_from_alignment): Likewise.
7296         (do_dbg_cnt): Adjust.
7297         (ccp_lattice_meet): Handle partially constant values.
7298         (bit_value_unop_1): New function.
7299         (bit_value_binop_1): Likewise.
7300         (bit_value_unop): Likewise.
7301         (bit_value_binop): Likewise.
7302         (evaluate_stmt): Track partially constant values if
7303         flag_tree_bit_ccp is set.
7304         (ccp_fold_stmt): Dump if we folded a predicate.
7305         (ccp_visit_stmt): Adjust.
7306         * common.opt (ftree-bit-ccp): New flag.
7307         * doc/invoke.texi (ftree-bit-ccp): Document.
7308         * opts.c (decode_options): Enable bit-CCP at -O1.
7310 2010-08-06  Alan Modra  <amodra@gmail.com>
7312         * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
7313         and -mrelocatable-lib description.
7315 2010-08-05  Bernd Schmidt  <bernds@codesourcery.com>
7317         From Martin Thuresson  <martint@google.com>
7318         * postreload.c (reload_cse_simplify_operands): Use
7319         SET_REGNO_RAW instead of SET_REGNO.
7320         * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
7321         SET_REGNO.
7322         * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
7323         instead of SET_REGNO.
7324         * rtl.h (SET_REGNO_RAW): New macro.
7326 2010-08-05  Eric Botcazou  <ebotcazou@adacore.com>
7328         * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
7329         computations.  Fix formatting issues.
7330         (num_sign_bit_copies1): Likewise.
7331         (canonicalize_condition): Likewise.
7333 2010-08-05  Richard Henderson  <rth@redhat.com>
7335         * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
7336         (floor_log2): Use clz_hwi.
7337         (exact_log2): Use ctz_hwi.
7338         * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
7339         * builtins.c (fold_builtin_bitop): Use them.
7340         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7341         * combine.c (get_pos_from_mask): Use ctz_hwi.
7342         * double-int.c (double_int_ctz): Likewise.
7343         * explow.c (force_reg): Likewise.
7344         * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
7346 2010-08-05  Richard Henderson  <rth@redhat.com>
7348         PR target/45189
7349         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
7350         the alignment constant is properly sign-extended.
7352 2010-08-05  Richard Guenther  <rguenther@suse.de>
7354         * expr.c (store_expr): Use emit_block_move only if both
7355         source and target are MEMs.  Use store_bit_field if only
7356         the target is a MEM.
7358 2010-08-05  Richard Henderson  <rth@redhat.com>
7360         PR debug/45188
7361         * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
7362         (INCOMING_RETURN_ADDR_RTX): Likewise.
7363         (dwarf2out_do_frame): Remove conditional compilation.
7364         (dwarf2out_frame_init): Likewise.
7366 2010-08-05  Nicolas Setton  <setton@adacore.com>
7368         * gcov.c (flag_display_progress): New static variable.
7369         (main): Display progress info on standard output if requested.
7370         (options): Add -d/--display-progress.
7371         (print_usage): Print them.
7372         (process_args): Handle them.
7373         * doc/gcov.texi: Document them.
7375 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7377         * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
7378         (ipcp_insert_stage): Redirect only edges not flagged with
7379         indirect_inlining_edge.  Call ipcp_discover_new_direct_edges for all
7380         discovered constants.
7382 2010-08-05  Martin Jambor  <mjambor@suse.cz>
7384         * ipa-prop.h (enum ipa_lattice_type): Changed comments.
7385         (struct ipa_param_descriptor): New fields types and
7386         cannot_devirtualize.
7387         (ipa_param_cannot_devirtualize_p): New function.
7388         (ipa_param_types_vec_empty): Likewise.
7389         (ipa_make_edge_direct_to_target): Declare.
7390         * ipa-cp.c: Fixed first stage driver name in initial comment,
7391         described devirtualization there too.
7392         (ipcp_analyze_node): Call ipa_analyze_params_uses.
7393         (ipcp_print_all_lattices): Print devirtualization info.
7394         (ipa_set_param_cannot_devirtualize): New function.
7395         (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
7396         lattice to BOTTOM.
7397         (ipcp_init_stage): Merged into...
7398         (ipcp_generate_summary): ...its caller.
7399         (ipcp_change_tops_to_bottom): Also process type lists.
7400         (ipcp_add_param_type): New function.
7401         (ipcp_copy_types): Likewise.
7402         (ipcp_propagate_types): Likewise.
7403         (ipcp_propagate_stage): Also propagate types.
7404         (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
7405         Also return true if propagated types require it.
7406         (ipcp_update_callgraph): Dump redirection info.
7407         (ipcp_process_devirtualization_opportunities): New function.
7408         (ipcp_const_param_count): Include known type information.
7409         (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
7410         on new node.  Fixed formatting.
7411         * ipa-prop.c (make_edge_direct_to_target): Renamed to
7412         ipa_make_edge_direct_to_target and changed all callers.  Made
7413         externally visible.
7414         (ipa_node_duplication_hook): Duplicate types vector.
7415         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
7416         redirect outgoing calls for which we can't get a decl from the
7417         statement.  Check that we can get a decl from the call statement.
7418         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7419         ipa_analyze_params_uses only when ipa-cp is disabled.
7420         * tree-inline.c (get_indirect_callee_fndecl): Removed.
7421         (expand_call_inline): Do not call get_indirect_callee_fndecl.
7422         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
7423         * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
7425 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7427         * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
7428         temporary. Emit move from temporary to accum, so REG_EQUAL note will
7429         be attached to this insn in correct mode.
7431 2010-08-05  Uros Bizjak  <ubizjak@gmail.com>
7433         * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
7434         using REGNO of base_reg directly.
7436 2010-08-05  Jie Zhang  <jie@codesourcery.com>
7438         PR tree-optimization/45144
7439         * tree-sra.c (type_consists_of_records_p): Return false
7440         if the record contains bit-field.
7442 2010-08-04  Richard Henderson  <rth@redhat.com>
7444         * config/i386/i386.c (struct ix86_frame): Remove padding and
7445         to_allocate members.
7446         (ix86_compute_frame_layout): Don't store them.
7447         (ix86_can_use_return_insn_p): Use a more direct and more obviously
7448         correct condition for the position of the stack pointer.
7449         (ix86_expand_prologue): Compute remaining stack allocation based
7450         on the ultimate stack pointer offset.
7451         (ix86_expand_epilogue): Use more obvious expressions testing for
7452         the stack pointer already pointing to the saved registers.
7454         * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
7455         duplication deconstructing the frame pointer.  Simplify
7456         deallocation of the local stack frame.
7458         * reg-notes.def (CFA_EXPRESSION): New.
7459         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
7460         (dwarf2out_frame_debug_cfa_expression): New.
7461         (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
7463         * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
7464         * config/i386/i386.c (ix86_expand_prologue): Set it.
7465         (ix86_expand_epilogue): Clear it.
7466         (ix86_emit_save_reg_using_mov): For registers saved in a realigned
7467         context, add REG_CFA_EXPRESSION notes.
7469         * config/i386/i386.h (struct machine_frame_state): Rename from
7470         machine_cfa_state.  Add members tracking SP and FP regardless
7471         of the current CFA register.
7472         (ix86_cfa_state): Remove.
7473         * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
7474         and sse_reg_save_offset members.
7475         (ix86_compute_frame_layout): Set them.
7476         (gen_push): Increment sp_offset too.
7477         (choose_baseaddr_len, choose_baseaddr): New.
7478         (ix86_emit_save_reg_using_mov): New.
7479         (ix86_emit_save_regs_using_mov): Use it.
7480         (ix86_emit_save_sse_regs_using_mov): Likewise.
7481         (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
7482         compare vs the saved red_zone_offset.
7483         (pro_epilogue_adjust_stack): Adjust sp_offset.
7484         (ix86_adjust_stack_and_probe): Likewise.
7485         (ix86_expand_prologue): Set up, use, and validate the new
7486         frame_state_info members.  Use gen_frame_mem.
7487         (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
7488         (ix86_emit_restore_reg_using_pop): Likewise.  Use and update the
7489         new frame_state_info members.
7490         (ix86_emit_leave): Likewise.
7491         (ix86_emit_restore_regs_using_mov): Likewise.  Don't check for
7492         out-of-range stack pointer offsets here.
7493         (ix86_emit_restore_sse_regs_using_mov): Likewise.
7494         (ix86_expand_epilogue): Use and validate the new frame_state_info
7495         members.  Break up and simplify the logic selecting the
7496         restore_regs_via_mov code path.  Ensure that there will be no
7497         out-of-range stack pointer offsets.
7499         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
7501         * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
7502         argument name to reflect the expected tree; fix indentation.
7503         (ix86_asm_output_function_label): Output the entire 32-bit
7504         ms_hook here as bytes ...
7505         (ix86_expand_prologue): ... not here as insns.  Attach the
7506         unwind info for the ms_hook to a blockage insn.
7507         (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
7508         (ix86_ms_bitfield_layout_p): Fix indentation.
7509         * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
7511         * config/i386/i386.c (ix86_using_red_zone): New.
7512         (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
7513         ix86_expand_prologue, ix86_force_to_memory): Use it.
7515         * config/i386/i386.c (ix86_expand_prologue): Simplify logic
7516         saving the int registers.
7518         * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
7519         and DWARF2_UNWIND_INFO conditional compilation.
7521 2010-08-04  Richard Henderson  <rth@redhat.com>
7523         PR debug/45171
7524         * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
7525         an is_naming_typedef_decl.
7527 2010-08-04  Bernd Schmidt  <bernds@codesourcery.com>
7529         PR rtl-optimization/45162
7530         * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
7531         * dce.c (word_dce_process_block): Likewise.
7533 2010-08-04  Steve Ellcey  <sje@cup.hp.com>
7535         PR target/44583
7536         * config/ia64/constraints.md (Z): New.
7537         * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
7538         (xfreg_or_signed_fp01_operand): New.
7539         * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
7540         with fr_reg_or_signed_fp01_operand and constraint G with Z.
7541         (subsf3): Ditto.
7542         (*maddsf4): Ditto.
7543         (*msubsf4): Ditto.
7544         (adddf3): Ditto.
7545         (adddf3_trunc): Ditto.
7546         (subdf3): Ditto.
7547         (*subdf3_trunc): Ditto.
7548         (*madddf4): Ditto.
7549         (*madddf4_trunc): Ditto.
7550         (*msubdf4): Ditto.
7551         (*msubdf4_trunc): Ditto.
7552         (addxf3): Replace xfreg_or_fp01_operand with
7553         xfreg_or_signed_fp01_operand and constraint G with Z.
7554         (*addxf3_truncsf): Ditto.
7555         (*addxf3_truncdf): Ditto.
7556         (subxf3): Ditto.
7557         (*subxf3_truncsf): Ditto.
7558         (*subxf3_truncdf): Ditto.
7559         (*maddxf4): Ditto.
7560         (*maddxf4_truncsf): Ditto.
7561         (*maddxf4_truncdf): Ditto.
7562         (*msubxf4): Ditto.
7563         (*msubxf4_truncsf): Ditto.
7564         (*msubxf4_truncdf): Ditto.
7566 2010-08-04  Richard Guenther  <rguenther@suse.de>
7568         * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
7569         if either alias-set is zero.
7571 2010-08-04  Richard Guenther  <rguenther@suse.de>
7573         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
7574         * tree-ssa-ccp.c: ... here.
7575         * tree-ssa-copy.c: ... and here.
7576         * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
7577         value_range_t): Move ...
7578         * tree-vrp.c: ... here.
7579         * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
7580         (substitute_and_fold): Adjust prototype.
7581         * tree-ssa-propagate.c (replace_uses_in): Adjust.
7582         (replace_phi_args_in): Likewise.
7583         (substitute_and_fold): Take callback to query lattice instead
7584         of pointer to lattice.  Replace SSA name defs with lattice
7585         values first.
7586         * tree-ssa-ccp.c (ccp_finalize): Adjust.
7587         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
7588         (get_value): New function.
7589         (fini_copy_prop): Adjust.
7590         * tree-vrp.c (vrp_finalize): Adjust.
7592 2010-08-04  Richard Guenther  <rguenther@suse.de>
7594         PR middle-end/45176
7595         * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
7596         points-to set for original MEM_REF.
7598 2010-08-04  Richard Guenther  <rguenther@suse.de>
7600         * tree-ssa-ccp.c (get_constant_value): New function.
7601         (get_rhs_assign_op_for_ccp): Remove.
7602         (valueize_op): New function.
7603         (ccp_fold): Use get_constant_value and valueize_op.
7604         (fold_const_aggregate_ref): Likewise.
7605         (ccp_fold_stmt): Likewise.
7606         (visit_assignment): Simplify.
7608 2010-08-04  Richard Guenther  <rguenther@suse.de>
7610         * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
7611         * double-int.h (double_int_ctz): Declare.
7612         * double-int.c (double_int_ctz): New function.
7614 2010-08-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
7616         * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
7617         Define.
7618         picochip_expand_movmemhi : Expand movmem pattern.
7619         * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
7620         Declare.
7621         * config/picochip/picochip.md (movmemhi) : New pattern.
7623 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7625         * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
7627 2010-08-03  Bernd Schmidt  <bernds@codesourcery.com>
7629         * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
7630         NEG as operand of a MULT by merging it with the other operand.
7631         * combine.c (make_compound_operation): Use trunc_int_for_mode when
7632         generating a MULT with constant.  Canonicalize PLUS and MINUS involving
7633         MULT.
7634         * config/arm/constraints.md (M): Examine only 32 bits of a
7635         HOST_WIDE_INT.
7636         * config/arm/predicates.md (power_of_two_operand): Likewise.
7638 2010-08-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7640         * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
7641         non-NOTE insns.
7643 2010-08-03  Jan Hubicka  <jh@suse.cz>
7645         * ipa-split.c (struct split_point): Add split_part_set_retval.
7646         (find_retval): Forward declare.
7647         (test_nonssa_use, mark_nonssa_use): Special case return by reference.
7648         (consider_split): Compute current->split_part_set_retval.
7649         (visit_bb): Do not look into return value.
7650         (split_function): Handle !split_part_set_retval
7652 2010-08-03  Martin Jambor  <mjambor@suse.cz>
7654         * tree-sra.c (completely_scalarize_record): New parameter REF, create
7655         its own access->expr intead of using build_ref_for_offset.
7657 2010-08-03  Joseph Myers  <joseph@codesourcery.com>
7659         * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
7660         * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
7661         * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
7662         * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
7663         * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
7664         * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
7665         * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
7666         DEFAULT_SWITCH_TAKES_ARG.
7667         * config/rx/rx.opt (-patch=): Remove option.
7668         * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
7669         * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
7670         * doc/invoke.texi (RX Options): Remove -patch=.
7671         * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
7672         (option_map): Remove --profile-blocks, --quiet and --silent.
7674 2010-08-03  Uros Bizjak  <ubizjak@gmail.com>
7676         * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
7677         * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
7678         (ix86_expand_branch): Add op0 and op1 arguments.  Do not access
7679         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7680         Update calls to ix86_expand_compare and ix86_expand_branch.
7681         (ix86_expand_setcc): Add op0 and op1 arguments.  Update calls to
7682         ix86_expand_compare.
7683         (ix86_expand_compare): Add op0 and op1 arguments.  Do not access
7684         ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
7685         Make static.
7686         (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
7687         and ix86_compare_op1.  Update calls to ix86_expand_compare.
7688         (ix86_expand_int_movcc): Ditto.
7689         (ix86_expand_fp_movcc): Ditto.  Update calls to ix86_expand_setcc.
7690         * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
7691         (ix86_expand_setcc): Ditto.
7692         (ix86_expand_compare): Remove prototype.
7693         * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
7694         ix86_compare_op0 and ix86_compare_op1.  Update calls
7695         to ix86_expand_branch to directly pass operands[1] and operands[2].
7696         (cbranchxf4): Ditto.
7697         (cbranch<MODEF:mode>4): Ditto.
7698         (cbranchcc4): Ditto.
7699         (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
7700         Update calls to ix86_expand_setcc to directly pass operands[2] and
7701         operands[3].
7702         (cstorexf4): Ditto.
7703         (cstore<MODEF:mode>4): Ditto.
7704         (cstorecc4): Ditto.
7706 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7708         PR target/45063
7709         * caller-save.c (save_call_clobbered_regs): Remove regs from
7710         hard_regs_saved when they are set.
7712 2010-08-02  Uros Bizjak  <ubizjak@gmail.com>
7714         PR target/41089
7715         * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
7716         as volatile.
7718 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
7720         * common.opt (ftree-loop-distribute-patterns): New.
7721         * invoke.texi (-ftree-loop-distribute-patterns): Documented.
7722         * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
7723         at -O3.
7724         * tree-data-ref.c (stores_zero_from_loop): New.
7725         * tree-data-ref.h (stores_zero_from_loop): Declared.
7726         * tree-loop-distribution.c (tree_loop_distribution): Call
7727         stores_zero_from_loop.
7728         (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
7730 2010-08-02  Bernd Schmidt  <bernds@codesourcery.com>
7732         * postreload.c (reload_cse_simplify_operands): Take attribute enabled
7733         into account.
7735         * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
7736         * config/arm/arm.c (thumb1_code): New variable.
7737         (arm_override_options): Set it.
7738         (thumb1_final_prescan_insn): Keep track of condition code status.
7739         (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
7740         jumps that depend on them.
7741         * config/arm/arm.h (thumb1_code): Declare variable.
7742         (struct machine_function): Guard with #ifndef GENERATOR_FILE.  Add
7743         members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
7744         thumb1_cc_mode.
7745         (CC_STATUS_INIT): New macro.
7746         * config/arm/constraints.md (Pd): New constraint.
7747         * config/arm/predicates.md (noov_comparison_operator): New predicate.
7748         * config/arm/arm.md (is_thumb1): New define_attr.
7749         (conds): Set default to "clob" when generating Thumb1 code.
7750         (thumb1_bicsi3): Renamed from bicsi3.  All uses changed.  Condition
7751         code are set.  Use two-operand assembly syntax.
7752         (thumb1_subsi3_insn): Condition codes are set.  Now a properly named
7753         pattern.
7754         (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
7755         codes are set.  Use two-operand assembly syntax.
7756         (zero_extendhisi splitter): Remove constraints.
7757         (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
7758         thumb1_movsf_insn): Set conds attribute as appropriate.
7759         (cbranchsi4_insn): Use condition code status from struct
7760         machine_function to determine whether the comparison can be eliminated.
7761         Discourage the alternative using high registers.
7762         (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
7763         orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
7764         bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
7765         subsi3_cbranch): Delete.
7766         (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
7767         one subtract and one cbranch insn.
7769         * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
7770         thumb2_movdf_soft_insn): Delete patterns.
7771         * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
7772         arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
7773         (pool_range, neg_pool_range): Use them to define defaults.
7774         (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
7775         and allow for TARGET_32BIT.
7777         PR target/40457
7778         * config/arm/arm.h (arm_regs_in_sequence): Declare.
7779         * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
7780         load_multiple_sequence, store_multiple_sequence): Delete
7781         declarations.
7782         (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
7783         declarations.
7784         * config/arm/ldmstm.md: New file.
7785         * config/arm/arm.c (arm_regs_in_sequence): New array.
7786         (load_multiple_sequence): Now static.  New args SAVED_ORDER,
7787         CHECK_REGS.  All callers changed.
7788         If SAVED_ORDER is nonnull, copy the computed order into it.
7789         If CHECK_REGS is false, don't sort REGS.  Handle Thumb mode.
7790         (store_multiple_sequence): Now static.  New args NOPS_TOTAL,
7791         SAVED_ORDER, REG_RTXS and CHECK_REGS.  All callers changed.
7792         If SAVED_ORDER is nonnull, copy the computed order into it.
7793         If CHECK_REGS is false, don't sort REGS.  Set up REG_RTXS just
7794         like REGS.  Handle Thumb mode.
7795         (arm_gen_load_multiple_1): New function, broken out of
7796         arm_gen_load_multiple.
7797         (arm_gen_store_multiple_1): New function, broken out of
7798         arm_gen_store_multiple.
7799         (arm_gen_multiple_op): New function, with code from
7800         arm_gen_load_multiple and arm_gen_store_multiple moved here.
7801         (arm_gen_load_multiple, arm_gen_store_multiple): Now just
7802         wrappers around arm_gen_multiple_op.  Remove argument UP, all callers
7803         changed.
7804         (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
7805         * config/arm/predicates.md (commutative_binary_operator): New.
7806         (load_multiple_operation, store_multiple_operation): Handle more
7807         variants of these patterns with different starting offsets.  Handle
7808         Thumb-1.
7809         * config/arm/arm.md: Include "ldmstm.md".
7810         (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
7811         ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
7812         stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
7813         peepholes): Delete.
7814         * config/arm/ldmstm.md: New file.
7815         * config/arm/arm-ldmstm.ml: New file.
7817         * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
7818         if statement which adds extra costs to frame-related expressions.
7820 2010-08-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7822         * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
7824 2010-08-01  Uros Bizjak  <ubizjak@gmail.com>
7826         PR target/45142
7827         * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
7828         alternative 2.
7829         (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
7830         split V4SI operands.
7832 2010-08-01  Anatoly Sokolov  <aesok@post.ru>
7834         * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7835         * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
7836         * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
7837         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
7839 2010-07-31  Kai Tietz  <kai.tietz@onevision.com>
7841         * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
7842         LOCAL_INCLUDE_DIR.
7844 2010-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
7846         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
7847         used in the call to optab_for_tree_code.  Fix the second
7848         is_widening_mult_p call.  Check that both unwidened operands
7849         have the same sign.
7851 2010-07-31  John Tytgat  <John.Tytgat@aaug.net>
7853         * config/arm/arm.c (arm_function_arg): Remove superfluous test.
7855 2010-07-31  Anatoly Sokolov  <aesok@post.ru>
7857         * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
7859 2010-07-30  DJ Delorie  <dj@redhat.com>
7861         * config/rx/predicates.md (rx_constshift_operand): New.
7862         * config/rx/rx.md (zs_cond): New.
7863         (cbranchsi4): Remove mode.
7864         (*cbranchsi4_<code>): Likewise.
7865         (*tstbranchsi4_<code>): New.
7866         (*tstbranchsi4r_<code>): New.
7867         (*tstbranchsi4m_eq): New.
7868         (*tstbranchsi4m_ne): New.
7869         (cbranchsf4): Remove mode.
7870         (*cbranchsf4_<code>): Likewise.
7872 2010-07-30  Bernd Schmidt  <bernds@codesourcery.com>
7874         * rtlanal.c (simplify_subreg_regno): Don't treat
7875         HARD_FRAME_POINTER_REGNUM specially.
7877 2010-07-30  Joseph Myers  <joseph@codesourcery.com>
7879         * common.opt (-G): Don't define option here.
7880         * config/g.opt: New.
7881         * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
7882         rs6000/powerpc and score targets.
7883         * opts.c (common_handle_option): Don't handle -G here.
7884         * config/alpha/alpha.c (alpha_handle_option): Handle -G.
7885         * config/frv/frv.c (frv_handle_option): Handle -G.
7886         * config/ia64/ia64.c (ia64_handle_option): Handle -G.
7887         * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
7888         * config/m32r/m32r.c (m32r_handle_option): Handle -G.
7889         * config/mips/mips.c (mips_handle_option): Handle -G.
7890         * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
7891         * config/score/score.c (score_handle_option): Handle -G.
7893 2010-07-30  Anatoly Sokolov  <aesok@post.ru>
7895         * config/mmix/mmix.c: Include basic-block.h.
7897 2010-07-30  Jakub Jelinek  <jakub@redhat.com>
7899         PR debug/45055
7900         PR rtl-optimization/45137
7901         * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
7902         prototypes.
7903         * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
7904         New functions.
7905         * combine.c (next_nonnote_nondebug_insn): Removed.
7906         * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
7907         * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
7908         * sched-deps.c (sched_analyze_insn): Likewise.
7909         (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
7910         * rtlanal.c (canonicalize_condition): Likewise.
7911         * postreload.c (reload_combine_recognize_pattern): Likewise.
7912         (reload_cse_move2add): Use next_nonnote_nondebug_insn.
7914 2010-07-29  Uros Bizjak  <ubizjak@gmail.com>
7916         * config/i386/i386.md (int_cond): Remove code iterator.
7917         (fp_cond): Ditto.
7918         (cbranch<mode>4): Use ordered_comparison_operator predicate
7919         for operator0.
7920         (cstore<mode>4): Ditto for operator1.
7921         (mov<SWIM:mode>cc and corresponding splitter): Ditto.
7922         (add<mode>cc): ditto.
7924 2010-07-30  Richard Guenther  <rguenther@suse.de>
7926         PR middle-end/45141
7927         * expr.c (expand_expr_real_1): Check for not handled base address.
7929 2010-07-30  Richard Guenther  <rguenther@suse.de>
7931         * ipa-prop.c (ipa_modify_formal_parameters): Use
7932         build_distinct_type_copy.
7934 2010-07-30  Anthony Green  <green@moxielogic.com>
7936         * config/moxie/rtems.h: New file.
7937         * config.gcc: Add moxie-rtems support.
7939 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7941         * dce.c (run_word_dce): Take flag_dce into account.  Clear and restore
7942         df flags as in run_fast_df_dce.
7944 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7946         Revert:
7947         2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
7949         * rtl.def (NOTE): Swap operands 4 and 5.
7950         * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
7951         NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
7952         Adjust accordingly.
7953         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
7955 2010-07-29  Jakub Jelinek  <jakub@redhat.com>
7957         PR debug/45110
7958         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
7959         (gen_formal_types_die): Add DW_AT_object_pointer in methods.
7960         (gen_subprogram_die): Likewise.  Remove it when removing declaration's
7961         formal parameters.
7962         (gen_decl_die): Change return type to dw_die_ref, return what
7963         gen_formal_parameter_die returned.
7965 2010-07-29  Martin Jambor  <mjambor@suse.cz>
7967         * dbgcnt.def (eipa_sra): New counter.
7968         * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
7970 2010-07-29  Xinliang David Li  <davidxl@google.com>
7972         PR bootstrap/45119
7973         * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
7974         in revision 162652.
7976 2010-07-29  Richard Guenther  <rguenther@suse.de>
7978         * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
7979         (TV_TREE_STORE_CCP): Likewise.
7980         (TV_TREE_REDPHI): Likewise.
7982 2010-07-29  Richard Guenther  <rguenther@suse.de>
7984         * double-int.h (double_int_and_not): New function.
7985         * combine.c (try_combine): Use it.
7986         * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
7988 2010-07-29  Bernd Schmidt  <bernds@codesourcery.com>
7990         PR rtl-optimization/42575
7991         * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
7992         Argument AU removed.  All callers changed.  Ignore artificial refs.
7993         Use return value of df_word_lr_simulate_defs to decide whether an insn
7994         is necessary.
7995         (fast_dce): Rename arg to WORD_LEVEL.
7996         (run_word_dce): Renamed from rest_of_handle_fast_byte_dce.  No longer
7997         static.
7998         (pass_fast_rtl_byte_dce): Delete.
7999         * dce.h (run_word_dce): Declare.
8000         * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
8001         All callers changed.  Simplify code to only deal with two-word regs.
8002         * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
8003         (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
8004         (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
8005         (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
8006         (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
8007         (df_word_lr_mark_ref): Declare.
8008         (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
8009         df_word_lr_simulate_uses): Declare or rename from byte variants.
8010         (df_byte_lr_simulate_artificial_refs_at_top,
8011         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8012         df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
8013         declarations.
8014         (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
8015         (enum df_mm): Delete.
8016         * df-byte-scan.c: Delete file.
8017         * df-problems.c (df_word_lr_problem_data): Renamed from
8018         df_byte_lr_problem_data, all members deleted except for
8019         WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS.  Uses changed.
8020         (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
8021         df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
8022         df_byte_lr_get_regno_len, df_byte_lr_check_regs,
8023         df_byte_lr_confluence_0): Delete functions.
8024         (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
8025         callers changed.
8026         (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
8027         Don't initialize members that were deleted, don't try to discover data
8028         about registers.  Ignore hard regs.
8029         (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
8030         (df_word_lr_mark_ref): New function.
8031         (df_word_lr_bb_local_compute): Renamed from
8032         df_byte_bb_lr_local_compute; all callers changed.  Use
8033         df_word_lr_mark_ref.  Assert that artificial refs don't include
8034         pseudos.  Ignore hard registers.
8035         (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
8036         Assert that exit block uses don't contain pseudos.
8037         (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
8038         (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
8039         callers changed.  Ignore hard regs.
8040         (df_word_lr_transfer_function): Renamed from
8041         df_byte_lr_transfer_function; all callers changed.
8042         (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
8043         (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
8044         changed.
8045         (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
8046         callers changed.
8047         (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
8048         confluence operator 0 set to NULL.
8049         (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
8050         callers changed.
8051         (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
8052         Return bool, true if bitmap changed or insn otherwise necessary.
8053         All callers changed.  Simplify using df_word_lr_mark_ref.
8054         (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
8055         all callers changed.  Simplify using df_word_lr_mark_ref.
8056         * lower-subreg.c: Include "dce.h"
8057         (decompose_multiword_subregs): Call run_word_dce if df available.
8058         * Makefile.in (lower-subreg.o): Adjust dependencies.
8059         (df-byte-scan.o): Delete.
8060         * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
8062 2010-07-29  Richard Guenther  <rguenther@suse.de>
8064         * tree.c (build_vector): Assert that the vector constant
8065         has enough elements.
8066         (build_vector_from_ctor): Pad with trailing zeros.
8068 2010-07-29  Richard Guenther  <rguenther@suse.de>
8070         PR tree-optimization/45120
8071         * tree-ssa-structalias.c (get_constraint_for_component_ref):
8072         Handle offset in DEREFs properly.
8073         (get_constraint_for_1): Handle MEM_REF offset properly.
8075 2010-07-29  Richard Guenther  <rguenther@suse.de>
8077         PR middle-end/45034
8078         * convert.c (convert_to_integer): Always use an unsigned
8079         type for narrowed negate and bitwise not.
8081 2010-07-29  Ira Rosen  <irar@il.ibm.com>
8083         * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
8084         to outer loop when creating reduction epilogue for double reduction,
8085         and switch back to the inner loop when updating the phi nodes.
8086         Update uses of outer loop exit phi nodes in double reduction (instead
8087         of uses of reduction).
8089 2010-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
8091         * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
8092         popcount on power7 and parity on power6 systems.
8093         (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
8094         (rs6000_emit_parity): Add support for power6 prtyd/prtyw
8095         instructions.
8097         * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
8098         (UNSPEC_PARITY): Ditto.
8099         (SFDF): New iterator for SF/DF.
8100         (rreg2): New mode attribute for floating register constraint.
8101         (TARGET_FLOAT): New mode attribute for whether single/double float
8102         is supported.
8103         (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
8104         pattern.
8105         (parity<mode>2_cmpb): New insn for parity on power6 and newer
8106         machines.
8107         (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
8108         pattern.  Add support for fcpsgn instruction added in power6.
8109         (copysignsf3): Delete.
8110         (copysigndf3): Delete.
8111         (copysign<mode>3_fcpsgn): New insn to generate fcpsgn.  Use UNSPEC
8112         instead of if_then_else in RTL to avoid problems with -0.
8114         * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
8115         of if_then_else to mirror scalar code.
8116         (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
8117         rs6000.md.
8119         * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
8120         instead of if_then_else.
8122 2010-07-28  Xinliang David Li  <davidxl@google.com>
8124         * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
8125         (dump_cand): Dump var_before/after.
8126         (htab_inv_expr_eq): New function.
8127         (htab_inv_expr_hash): New function.
8128         (tree_ssa_iv_optimize_init): Support pseudo invariants.
8129         (add_candidate_1): consider base type precision.
8130         (set_use_iv_cost): New parameter.
8131         (adjust_setup_cost): Use profile information.
8132         (get_address_cost): Do not hard code width in computing address
8133         offset limits.
8134         (compare_aff_trees): New function.
8135         (get_loop_invariant_expr_id): New function.
8136         (get_computation_cost_at): New parameter and use profile information.
8137         (get_computation_cost): New parameter.
8138         (determine_use_iv_cost_generic): Pass new parameter.
8139         (determine_use_iv_cost_address): Ditto.
8140         (determine_use_iv_cost_condition): Ditto.
8141         (autoinc_possible_for_pair): Ditto.
8142         (determine_use_iv_costs): More dumps.
8143         (iv_ca_get_num_inv_exprs): New function.
8144         (iv_ca_recount_cost): Consider loop invariants in register pressure
8145         cost.
8146         (iv_ca_add_use): New parameter.
8147         (iv_ca_dump): Better dumping.
8148         (iv_ca_extend): New parameter.
8149         (try_add_cand_for): Attempt to get better partial solution.
8150         (try_improve_iv_set): Pass new parameter to iv_ca_extend.
8151         (create_new-ivs): More dumps.
8152         (rewrite_use_compare): Ditto.
8153         (free_loop_data): More cleanup.
8154         (treee_ssa_iv_optimize_finalize): Ditto.
8156 2010-07-28  Kai Tietz  <kai.tietz@onevision.com>
8158         * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
8159         * config/i386/i386.c (ix86_profile_before_prologue): New.
8160         (override_options): Add special handling for -mfentry.
8161         (ix86_function_regparm): Likewise.
8162         (ix86_function_sseregparm): Likewise.
8163         (ix86_frame_pointer_required): Likewise.
8164         (ix86_expand_prologue): Check for ms_hook_prologue.
8165         (x86_function_profiler): Adjust mcount output.
8166         (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
8167         * config/i386/i386.opt (mfentry): New.
8168         * doc/invoke.texi (mfentry): Add documentation.
8169         * doc/tm.texi: Regenerated..
8170         * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
8171         * final.c (final_start_function): Replace macro
8172         PROFILE_BEFORE_PROLOGUE by target hook.
8173         * function.c (thread_prologue_and_epilogue_insns): Likewise.
8174         * target.def (profile_before_prologue): New hook.
8175         * targhooks.c (default_profile_before_prologue): New.
8176         * targhooks.h (default_profile_before_prologue): New.
8178 2010-07-28  Jakub Jelinek  <jakub@redhat.com>
8180         PR debug/45105
8181         * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
8183         PR debug/45103
8184         * dwarf2out.c (dwarf2out_var_location): Always consider
8185         NOTE_DURING_CALL_P notes, even when not followed by real instructions.
8187 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8189         PR rtl-optimization/45107
8190         * gcse.c (hash_scan_set): Use max_distance for gcse-las.
8192 2010-07-28  Richard Guenther  <rguenther@suse.de>
8194         * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
8195         (set_lattice_value): Do not query an old default value.
8196         (get_value_for_expr): New function.  Properly canonicalize
8197         float values.
8198         (ccp_visit_phi_node): Use it.
8200 2010-07-28  Chung-Lin Tang  <cltang@codesourcery.com>
8202         * config/arm/arm.c (arm_pcs_default): Remove static.
8203         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
8204         __ARM_PCS_VFP to indicate soft/hard-float calling convention.
8205         (arm_pcs_default): Declare.
8207 2010-07-28  Iain Sandoe  <iains@gcc.gnu.org>
8209         * config/rs6000/rs6000.c (rs6000_override_options):
8210         Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
8211         ... to darwin_rs6000_override_options.
8212         (rs6000_return_in_memory): Update preceding comment for darwin
8213         64 bit ABI.  Use TARGET_MACHO inline.
8214         (rs6000_darwin64_struct_check_p): New.
8215         (function_arg_advance): Use rs6000_darwin64_struct_check_p.
8216         (function_arg): Likewise.
8217         (rs6000_arg_partial_bytes): Likewise.
8218         (rs6000_function_value): Likewise.
8220 2010-07-28  Andi Kleen  <ak@linux.intel.com>
8222         * lto-opts.c (lto_file_read_options): Add loop over all inputs.
8224 2010-07-28  Richard Guenther  <rguenther@suse.de>
8226         PR middle-end/44903
8227         * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
8228         targets try harder to not generate unaligned accesses.
8230 2010-07-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
8232         PR rtl-optimization/45101
8233         * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
8234         for gcse-las.
8236 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8238         PR tree-optimization/44885
8239         * tree-sra.c (find_param_candidates): Skip pointer types to arrays
8240         with non-aliased component.
8242 2010-07-28  Joseph Myers  <joseph@codesourcery.com>
8244         * config/darwin-driver.c (SWITCH_TAKES_ARG,
8245         WORD_SWITCH_TAKES_ARG): Remove.
8246         * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
8247         * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
8248         DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
8249         (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
8250         definitions from gcc.c.
8251         * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
8252         defaults.h.
8253         * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
8254         Move to defaults.h.
8255         * opts-common.c: Include tm.h.
8256         (decode_cmdline_option): Use SWITCH_TAKES_ARG and
8257         WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
8258         Handle more than one argument.  Set canonical_option_num_elements.
8259         (decode_cmdline_options_to_array): Set
8260         canonical_option_num_elements and trailing elements of
8261         canonical_option.
8262         * opts.h (struct cl_decoded_option): Allow four elements in
8263         canonical_option.  Add field canonical_option_num_elements.
8264         * Makefile.in (opts-common.o): Update dependencies.
8266 2010-07-28  Eric Botcazou  <ebotcazou@adacore.com>
8268         PR middle-end/44790
8269         PR middle-end/44993
8270         * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change.  Make
8271         sure the base has address_mode before adding the offset.
8273 2010-07-27  Xinliang David Li  <davidxl@google.com>
8275         * tree-flow.h (create_mem_ref): Add one new parameter.
8276         * tree-ssa-address.c (create_mem_ref): New parameter.
8277         (addr_to_parts): Ditto.
8278         (move_variant_to_index): New function.
8279         * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
8281 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8283         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
8284         4 and 5.
8285         * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
8286         NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
8287         NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
8288         * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
8289         CODE_LABELs and NOTEs.
8290         * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
8291         * combine.c (try_combine): Likewise.
8292         * ira.c (setup_prohibited_mode_move_regs): Likewise.
8293         * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
8295 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8297         * coretypes.h (struct cl_option_handlers): Declare.
8298         * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
8299         * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
8300         * langhooks-def.h (lhd_handle_option): Declare.
8301         (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
8302         * langhooks.c (lhd_handle_option): New.
8303         * langhooks.h (struct lang_hooks): Update prototype and return
8304         value type of handle_option hook.
8305         * optc-gen.awk: Generate target_flags_explicit definition for the
8306         driver.
8307         * opts-common.c: Include diagnostic.h.
8308         (handle_option): Move from opts.c.  Update prototype and return
8309         value type.  Use handlers structure.
8310         (read_cmdline_option): Move from opts.c.  Update prototype.  Use
8311         handlers structure.
8312         (set_option): Move from opts.c.
8313         * opts.c (common_handle_option): Update prototype and return value
8314         type.  Update calls to handle_option and enable_warning_as_error.
8315         (unknown_option_callback, post_handling_callback,
8316         lang_handle_option, target_handle_option): New.
8317         (handle_option, read_cmdline_option): Move to opts-common.c.
8318         (read_cmdline_options): Update prototype.  Update call to
8319         read_cmdline_option.
8320         (decode_options): Initialize and use handlers structure.
8321         (set_option): Move to opts-common.c.
8322         (enable_warning_as_error): Update prototype.  Update call to
8323         handle_option.
8324         * opts.h (struct cl_option_handler_func, struct
8325         cl_option_handlers): New.
8326         (handle_option, enable_warning_as_error): Update prototypes.
8327         (read_cmdline_option): Declare.
8328         * Makefile.in (opts-common.o): Update dependencies.
8330 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8332         * config/arm/arm.c (params.h): Include.
8333         (arm_override_options): Tune gcse-unrestricted-cost.
8334         * config/arm/t-arm (arm.o): Define dependencies.
8336 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8338         PR target/42495
8339         PR middle-end/42574
8340         * basic-block.h (get_dominated_to_depth): Declare.
8341         * dominance.c (get_dominated_to_depth): New function, use
8342         get_all_dominated_blocks as a base.
8343         (get_all_dominated_blocks): Use get_dominated_to_depth.
8345         * gcse.c (occr_t, VEC (occr_t, heap)): Define.
8346         (hoist_exprs): Remove.
8347         (alloc_code_hoist_mem, free_code_hoist_mem): Update.
8348         (compute_code_hoist_vbeinout): Add debug print outs.
8349         (hoist_code): Partially rewrite, simplify.  Use get_dominated_to_depth.
8351         * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
8352         quadratic behavior.
8353         * params.h (MAX_HOIST_DEPTH): New macro.
8354         * doc/invoke.texi (max-hoist-depth): Document.
8356 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8358         PR rtl-optimization/40956
8359         * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
8360         constants.
8362 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8364         PR target/42495
8365         PR middle-end/42574
8366         * config/arm/arm.c (legitimize_pic_address): Use
8367         gen_calculate_pic_address pattern to emit calculation of PIC address.
8368         (will_be_in_index_register): New function.
8369         (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
8370         (thumb1_legitimate_address_p): Use it provided !strict_p.
8371         * config/arm/arm.md (calculate_pic_address): New expand and split.
8373 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8375         PR target/42495
8376         PR middle-end/42574
8377         * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
8378         * config/arm/arm.md (define_split "J", define_split "K"): Make
8379         IRA/reload friendly.
8381 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8383         * gcse.c (insert_insn_end_basic_block): Update signature, remove
8384         unused checks.
8385         (pre_edge_insert, hoist_code): Update.
8387 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8389         PR target/42495
8390         PR middle-end/42574
8391         * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
8393 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8395         * gcse.c (hoist_code): Generate new pseudo for every new set insn.
8397 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8399         PR rtl-optimization/40956
8400         PR target/42495
8401         PR middle-end/42574
8402         * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
8403         for hoisting.
8404         (hoist_code): Count occurences in current block too.
8406 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8408         * gcse.c (struct expr:max_distance): New field.
8409         (doing_code_hoisting_p): New static variable.
8410         (want_to_gcse_p): Change signature.  Allow constrained hoisting of
8411         simple expressions, don't change behavior for PRE.  Set max_distance.
8412         (insert_expr_in_table): Set new max_distance field.
8413         (hash_scan_set): Update.
8414         (hoist_expr_reaches_here_p): Stop search after max_distance
8415         instructions.
8416         (find_occr_in_bb): New static function.  Use it in ...
8417         (hoist_code): Calculate sizes of basic block before any changes are
8418         done.  Pass max_distance to hoist_expr_reaches_here_p.
8419         (one_code_hoisting_pass): Set doing_code_hoisting_p.
8421         * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
8422         (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
8423         * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
8424         macros.
8425         * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
8426         Document.
8428 2010-07-27  Jeff Law  <law@redhat.com>
8429             Maxim Kuvyrkov  <maxim@codesourcery.com>
8431         * gcse.c (compute_transpout, transpout): Remove, move logic
8432         to prune_expressions.
8433         (compute_pre_data): Move pruning of trapping expressions ...
8434         (prune_expressions): ... here.  New static function.
8435         (compute_code_hoist_data): Use it.
8436         (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
8438 2010-07-27  Xinliang David Li  <davidxl@google.com>
8440         * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
8441         (rewrite_use_address): Adjust iv update position when needed.
8443 2010-07-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
8445         * dbgcnt.def (hoist_insn): New debug counter.
8446         * gcse.c (hoist_code): Use it.
8448 2010-07-27  Xinliang David Li  <davidxl@google.com>
8450         * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
8451         (niter_for_single_dom_exit): Passes additional parameter.
8452         (iv_period): Fix comments.
8453         (may_eliminate_iv): Handles multiple exit loops properly.
8454         (free_tree_niter_desc): New function.
8455         (free_loop_data): Frees up loop iteration descriptors.
8457 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8459         PR target/44542
8460         * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
8461         of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
8462         instead of MAX_SUPPORTED_STACK_ALIGNMENT.
8463         (expand_one_var): Don't consider DECL_ALIGN for variables for
8464         which expand_one_stack_var_at has been already called.
8466         PR testsuite/44701
8467         * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
8468         constraints on IA-64.
8470 2010-07-27  Jie Zhang  <jie@codesourcery.com>
8472         PR target/44290
8473         Revert:
8474         2010-07-23  Jie Zhang  <jie@codesourcery.com>
8476         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8477         false if ! tree_versionable_function_p.
8479 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8481         * dwarf2out.c (add_data_member_location_attribute): Use
8482         add_AT_unsigned instead of add_AT_int if offset is non-negative.
8484 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8486         * postreload.c (try_replace_in_use): New static function.
8487         (reload_combine_recognize_const_pattern): Use it here.  Allow
8488         substituting into a final add insn, and substituting into a memory
8489         reference in an insn that sets the reg.
8491 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8493         * common.opt (o): Add MissingArgError.
8494         * doc/options.texi (MissingArgError): Document.
8495         * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
8496         * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
8497         * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
8498         (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
8499         * langhooks.h (struct lang_hooks): Remove missing_argument.
8500         * optc-gen.awk: Handle MissingArgError and output new structure
8501         field initializers.
8502         * opts.c (read_cmdline_option): Use missing_argument_error field
8503         instead of missing_argument langhook.
8504         * opts.h (struct cl_option): Add missing_argument_error field.
8505         * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
8507 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8509         PR target/29090
8510         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
8511         Darwin64 ABI, for zero-sized objects.
8513 2010-07-27  Iain Sandoe  <iains@gcc.gnu.org>
8515         PR target/35491
8516         PR target/29090
8518         Merge from Apple local 4.2.1.
8519         2005-05-11  Stan Shebs  <shebs@apple.com>
8520         Fix 64-bit varargs for Darwin (Radar 4028089).
8521         * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
8522         * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
8523         Add argument, add case for 8-byte register half-filled with a float.
8524         (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
8525         single-precision floats specially.
8527 2010-07-27  Ira Rosen  <irar@il.ibm.com>
8529         PR tree-optimization/44152
8530         * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
8531         complex numbers for further check.
8532         (vect_supported_load_permutation_p): Check nodes with
8533         complex numbers.
8535 2010-07-27  Joseph Myers  <joseph@codesourcery.com>
8537         * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
8538         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
8539         (LANG_HOOKS_INIT_OPTIONS): Update default definition.
8540         (LANG_HOOKS_INITIALIZER): Add new hooks.
8541         * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
8542         * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
8543         and complain_wrong_lang_p.  Update init_options prototype.
8544         * c-objc-common.c (c_initialize_diagnostics): First call
8545         c_common_initialize_diagnostics.
8546         * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
8547         LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
8548         * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
8549         * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
8550         (hook_uint_void_0): New.
8551         * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
8552         (hook_uint_void_0): New.
8553         * opts-common.c (decode_cmdline_option,
8554         decode_cmdline_options_to_array): Also fill in canonical_option field.
8555         * opts.c (complain_wrong_lang): Use langhook to determine whether
8556         to complain instead of special-casing LTO.
8557         (decode_options): Separate lang_mask determination with
8558         option_lang_mask hook from call of init_options hook.
8559         * opts.h (struct cl_decoded_option): Add canonical_option.
8561 2010-07-27  Jakub Jelinek  <jakub@redhat.com>
8563         PR tree-optimization/45083
8564         * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
8566 2010-07-27  Bernd Schmidt  <bernds@codesourcery.com>
8568         * postreload.c (reload_combine_recognize_const_pattern): Move test
8569         for limiting the insn movement to the right scope.
8571         PR rtl-optimization/45051
8572         * reload1.c (delete_output_reload): Use refers_to_regno_p rather
8573         than reg_mentioned_p.
8575 2010-07-26  Richard Henderson  <rth@redhat.com>
8577         PR target/44132
8578         * tree-emutls.c: New file.
8579         * Makefile.in (OBJS-common): Add it.
8580         * tree-pass.h (pass_ipa_lower_emutls): Declare.
8581         * passes.c (init_optimization_passes): Add it.
8583         * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
8584         pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
8585         * expr.c (emutls_var_address): Delete.
8586         (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
8587         * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
8588         (emutls_finish): Delete.
8589         * toplev.c (compile_file): Don't call it.
8590         * tree.h (emutls_decl): Delete.
8591         * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
8592         (emutls_finish, emutls_finalize_control_var): Delete.
8593         (emutls_object_type): Move to tree-emutls.c.
8594         (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
8595         default_emutls_var_fields, get_emutls_object_type,
8596         get_emutls_init_templ_addr, emutls_decl, emutls_common_1
8597         default_emutls_var_init): Likewise.
8598         (get_variable_section): Don't special case emutls.
8599         (assemble_variable, do_assemble_alias, categorize_decl_for_section,
8600         default_elf_select_section, default_unique_section,
8601         default_encode_section_info): Likewise.
8602         * varpool.c (decide_is_variable_needed): Likewise.
8603         * gimple-iterator.c (update_call_edge_frequencies): New
8604         (gsi_insert_on_edge_immediate): Use it.
8605         (gsi_insert_seq_on_edge_immediate): Likewise.
8606         (gsi_commit_one_edge_insert): Likewise.
8608         * config/i386/i386.c (x86_64_elf_select_section): Don't handle
8609         SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
8610         (x86_64_elf_unique_section): Likewise.
8612 2010-07-26  Jan Hubicka  <jh@suse.cz>
8614         * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
8615         GTY((skip)).
8617 2010-07-26  Anatoly Sokolov  <aesok@post.ru>
8619         * target.def (output_source_filename): New hook.
8620         * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
8621         * doc/tm.texi: Regenerate.
8622         * toplev.c (output_file_directive) Remove function.
8623         * toplev.h (output_file_directive) Remove.
8624         * output.h (default_asm_output_source_filename,
8625         output_file_directive): Declare.
8626         * varasm.h (default_asm_output_source_filename,
8627         output_file_directive): New functions.
8629         * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
8630         * config/mips/mips-protos.h (mips_output_filename): Remove.
8631         * config/mips/mips.c (mips_output_filename): Make Static.
8632         (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
8634 2010-07-26  Richard Guenther  <rguenther@suse.de>
8636         PR tree-optimization/43784
8637         * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
8638         if the destination is used by the call.
8640 2010-07-26  Richard Guenther  <rguenther@suse.de>
8642         PR middle-end/45073
8643         * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
8644         SSA updating on being in SSA form.
8646 2010-07-26  Richard Guenther  <rguenther@suse.de>
8648         PR middle-end/45056
8649         * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
8651 2010-07-26  Richard Guenther  <rguenther@suse.de>
8653         PR tree-optimization/45071
8654         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
8655         adjust op->opcode.
8657 2010-07-26  Naveen.H.S  <naveen.S@kpitcummins.com>
8659         * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
8660         save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
8661         save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
8662         save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
8663         save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
8664         save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
8665         save_r31, return_r31, save_interrupt, return_interrupt,
8666         save_all_interrupt, return_all_interrupt, L_save_r2_r31,
8667         L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
8668         L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
8669         new ABI requirements.
8670         (save_r6_r9, L_callt_save_r6_r9): Remove.
8671         * config/v850/predicates.md (even_reg_operand, disp23_operand,
8672         const_float_1_operand const_float_0_operand): New Predicates.
8673         (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
8674         pattern_is_ok_for_epilogue): Update as per the ABI requirements.
8675         * config/v850/t-v850: Update multilibs for new target variants.
8676         (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
8677         * config/v850/t-v850e: Likewise.
8678         * config/v850/v850.c (v850_issue_rate): New.
8679         (v850_strict_argument_naming): New.
8680         (function_arg): Modify to generate a different ABI.
8681         (print_operand): Update case 'z' to support float modes.
8682         (output_move_single): Modify to generate appropriate and better
8683         assembly.
8684         (v850_float_z_comparison_operator, v850_select_cc_mode,
8685         v850_float_nz_comparison_operator,  v850_gen_float_compare,
8686         v850_gen_compare): New functions to support comparison of float values.
8687         (ep_memory_offset): Add support for V850E2 targets.
8688         (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
8689         (INTERRUPT_REGPARM_NUM): Remove.
8690         (compute_register_save_size): Add extra case to save/restore long call.
8691         (use_prolog_function): New function to support prologue.
8692         (expand_prologue): Add support for V850E2 targets and modified
8693         as per the current ABI requirements.
8694         (expand_epilogue): Likewise.
8695         (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
8696         (construct_save_jarl): Likewise.
8697         (construct_dispose_instruction): Update as per the current ABI
8698         requirements.
8699         (construct_prepare_instruction): Likewise.
8700         * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
8701         (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
8702         (CPP_SPEC): Updated to support v850e2 targets.
8703         (STRICT_ALIGNMENT): Modified.
8704         (FIRST_PSEUDO_REGISTER): Updated to add even registers.
8705         (FIXED_REGISTERS): Likewise.
8706         (CALL_USED_REGISTERS): Likewise.
8707         (CONDITIONAL_REGISTER_USAGE): Updated.
8708         (HARD_REGNO_MODE_OK): Updated.
8709         (reg_class): Updated to add even registers.
8710         (REG_CLASS_NAMES): Likewise.
8711         (REG_CLASS_CONTENTS): Likewise.
8712         (REGNO_REG_CLASS): Updated for CC registers.
8713         (REG_CLASS_FROM_LETTER): Added support for even registers.
8714         (REGNO_OK_FOR_BASE_P): Updated for CC registers.
8715         (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
8716         ARG_POINTER_REGNUM): Updated.
8717         (FUNCTION_ARG_ADVANCE): Define.
8718         (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
8719         (OUTGOING_REG_PARM_STACK_SPACE): Remove.
8720         (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
8721         (GO_IF_LEGITIMATE_ADDRESS): Updated.
8722         (SELECT_CC_MODE): Define.
8723         (REGISTER_NAMES): Updated to add psw and fcc registers.
8724         (ADDITIONAL_REGISTER_NAMES): Updated.
8725         (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
8726         (JUMP_TABLES_IN_TEXT_SECTION): Updated.
8727         * config/v850/v850.md (define_constants): Define new constants.
8728         (type): Update store,bit1,macc,div,fpu and single attributes.
8729         (cpu): New attribute.
8730         (cc): Add set_z attribute.
8731         (unsign23byte_load, sign23byte_load, unsign23hword_load,
8732         sign23hword_load, 23word_load, 23byte_store, 23hword_store,
8733         23word_store): New instructions for 23-bit displacement load and store.
8734         (movqi_internal, movhi_internal): Update the attributes.
8735         (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
8736         (movsi_internal_v850e, movsi_internal, movsf_internal): Update
8737         the attributes.
8738         (v850_tst1): Modified using CC_REGNUM.
8739         (tstsi): Remove.
8740         (cmpsi): Modified as define_expand from define_insn.
8741         (cmpsi_insn, cmpsf, cmpdf): New instructions.
8742         (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
8743         udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
8744         v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
8745         one_cmplsi2): Clobber the CC_REGNUM register.
8746         (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
8747         v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
8748         v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
8749         (setf_insn, set_z_insn, set_nz_insn): New instructions for
8750         v850e2v3 target.
8751         (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
8752         (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
8753         targets.
8754         (sasf_1, sasf_2): Remove.
8755         (sasf): New instruction.
8756         (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
8757         targets. CC_REGNUM register is clobbered and attributes are
8758         updated.
8759         (branch_z_normal, branch_z_invert, branch_nz_normal,
8760         branch_nz_invert): New branch related instructions.
8761         (jump): Updated the attributes.
8762         (switch): Update to support new targets. CC_REGNUM register is
8763         clobbered and attributes are updated.
8764         (call_internal_short, call_internal_long, call_value_internal_short,
8765         call_value_internal_long): Updated the attributes.
8766         (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
8767         clobbered and attributes are updated.
8768         (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
8769         Update to support new targets. CC_REGNUM register is clobbered.
8770         (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
8771         instructions.
8772         (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
8773         are updated.
8774         (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
8775         divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
8776         negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
8777         floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
8778         rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
8779         cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
8780         cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
8781         cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
8782         movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
8783         movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
8784         point instructions defined for V850e2v3 target.
8785         (callt_save_interrupt, callt_return_interrupt, return_interrupt):
8786         Add support for V850E2 targets and CC_REGNUM register is clobbered.
8787         (callt_save_all_interrupt, callt_restore_all_interrupt): Add
8788         support for new targets.
8789         * config/v850/v850-modes.def: New file.
8790         * config/v850/v850.opt(mstrict-align): Remove.
8791         (mno-strict-align, mjump-tables-in-data-section, mv850e2,
8792         mv850e2v3): New command line options for V850.
8793         * config.gcc: Update the newly added files.
8794         * doc/invoke.texi: Update the newly added command line options for
8795         V850 target.
8797 2010-07-26  Richard Guenther  <rguenther@suse.de>
8799         PR tree-optimization/45052
8800         * ipa-pure-const.c (check_stmt): Check volatileness.
8802 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8804         PR target/44707
8805         * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
8806         * config/sparc/sparc.c: Include reload.h.
8807         (legitimize_tls_address): Rename into...
8808         (sparc_legitimize_tls_address): ...this.
8809         (legitimize_pic_address): Rename into...
8810         (sparc_legitimize_pic_address): ...this.
8811         (sparc_expand_move): Adjust to above renaming.
8812         (sparc_tls_referenced_p): Likewise.
8813         (sparc_legitimize_tls_address): Likewise.
8814         (sparc_legitimize_pic_address): Likewise.
8815         (sparc_legitimize_address): Likewise.
8816         (sparc_output_mi_thunk): Likewise.
8817         (sparc_legitimize_reload_address): New global function.  Recognize
8818         (lo_sum (high ...) ...) patterns generated by earlier passes.
8819         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
8821 2010-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8823         PR target/44484
8824         * config/sparc/predicates.md (memory_reg_operand): Delete.
8825         * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
8826         (*sync_compare_and_swap): Encode the address form in the pattern.
8827         (*sync_compare_and_swapdi_v8plus): Likewise.
8829 2010-07-24  Gerald Pfeifer  <gerald@pfeifer.com>
8831         * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
8832         Streamline paragraph on compatibility with the system compiler.
8834 2010-07-24  Steven Bosscher  <steven@gcc.gnu.org>
8836         PR middle-end/45035
8837         * alias.c (true_dependence_1): Fix thinko in merge of old
8838         true_dependence and canon_true_dependence.
8840 2010-07-23  Jan Hubicka  <jh@suse.cz>
8842         * lto-streamer-out.c (write_symbol): Fix visibilities of external
8843         references.
8845 2010-07-23  Le-Chun Wu  <lcwu@google.com>
8847         * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
8848         * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
8849         and an unnecessary assignment.
8850         * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
8851         self-assign warning.
8852         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
8853         unnecessary self-init.
8855 2010-07-23  Richard Guenther  <rguenther@suse.de>
8857         PR lto/43071
8858         * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
8859         for -flto and -fwhopr.
8861 2010-07-23  Kai Tietz  <kai.tietz@onevision.com>
8863         PR target/41943
8864         * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
8865         (stmp-int-hdrs): Prefix/postfix headers by include_next.
8866         * config.gcc (user_headers_inc_next_pre): New.
8867         (user_headers_inc_next_post): Likewise.
8868         (*-w64-mingw*): Use for float.h post-fixing, and for
8869         stddef.h/stdarg.h pre-fixing by include_next.
8870         * configure.ac (user_headers_inc_next_post): New.
8871         (user_headers_inc_next_pre): New.
8872         * configure: Regenerated.
8874 2010-07-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8876         * configure.ac: Don't disable TLS on Solaris 8/9 by default
8877         Set tga_func for Solaris 2/x86 resp. SPARC.
8878         Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
8879         (LIB_THREAD_LDFLAGS_SPEC): Define.
8880         (LIB_TLS_SPEC): Define.  Check for required Sun ld version.
8881         * configure: Regenerate.
8882         * config.in: Regenerate.
8883         * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
8884         -pthread, -threads, LIB_TLS_SPEC with -pthread.
8885         * doc/install.texi (Specific, *-*-solaris2*): Document use of
8886         alternate thread libraries on Solaris 8.
8887         Document TLS patch requirements.
8888         * doc/sourcebuild.texi (Add Options): Sort alphabetically.
8889         Document tls.
8891         PR target/18788
8892         * config/sol2.h (LIB_SPEC): Link with thread libraries even with
8893         -shared.
8895 2010-07-23  Jakub Jelinek  <jakub@redhat.com>
8897         * tree.h (struct tree_base): Add nameless_flag bitfield.
8898         (TYPE_NAMELESS, DECL_NAMELESS): Define.
8899         * omp-low.c (create_omp_child_function, scan_omp_parallel,
8900         scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
8901         DECL_ARTIFICIAL where needed.
8902         * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
8903         (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
8904         has DECL_NAMELESS set.
8906 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8908         PR tree-optimization/44915
8909         * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
8910         * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
8911         (analyze_function): Likewise.
8913 2010-07-23  Martin Jambor  <mjambor@suse.cz>
8915         PR tree-optimization/44914
8916         * tree-sra.c (sra_modify_function_body): Return true if CFG was
8917         changed, add purging dead eh edges.
8918         (ipa_sra_modify_function_body): Return true if CFG was changed,
8919         simplify purging dead eh edges.
8920         (modify_function): Return true if CFG was changed.
8921         (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
8922         was changed.
8923         (ipa_early_sra): Likewise.
8925 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8927         PR target/44290
8928         * attribs.c (decl_attributes): Insert "noinline" and "noclone"
8929         if "naked".
8930         * tree-sra.c (ipa_sra_preliminary_function_checks): Return
8931         false if ! tree_versionable_function_p.
8933 2010-07-23  Nathan Froyd  <froydnj@codesourcery.com>
8935         * builtins.def (BUILT_IN_ARGS_INFO): Remove.
8936         * ipa-pure-const.c (special_builtlin_state): Remove
8937         BUILT_IN_ARGS_INFO case.
8938         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
8939         * builtins.c (expand_builtin): Likewise.
8940         (expand_builtin_args_info): Remove.
8941         * doc/tm.texi (__builtin_args_info): Remove.
8942         (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
8943         * doc/tm.text.in: Likewise.
8945 2010-07-23  Richard Guenther  <rguenther@suse.de>
8947         * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
8948         (lto_symtab_merge_decls_2): Likewise.
8949         * tree-ssa.c (useless_type_conversion_p): Likewise.
8950         * lto-streamer-in.c (input_gimple_stmt): Likewise.
8951         * gimple.c (gtc_visited2, gtc_ob2): Remove.
8952         (struct type_pair_d): Make same_p an array indexed by mode.
8953         Update comment.
8954         (lookup_type_pair): Update initialization.
8955         (struct sccs): Adjust same_p type.
8956         (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
8957         Adjust.
8958         (print_gimple_types_stats): Likewise.
8959         * gimple.h (enum gtc_mode): New.
8960         (gimple_types_compatible_p): Adjust prototype.
8962 2010-07-23  Daniel Jacobowitz  <dan@codesourcery.com>
8964         * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
8965         again after processing insn.
8967 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8969         * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
8970         proper words when !tree_versionable_function_p.
8972 2010-07-23  Richard Guenther  <rguenther@suse.de>
8974         PR tree-optimization/45037
8975         * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
8977 2010-07-23  Jie Zhang  <jie@codesourcery.com>
8979         * doc/extend.texi: Remove IP2K from the description of naked attribute.
8980         Add MCORE instead.
8982 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8984         PR lto/44992
8985         * lto-opts.c (lto_write_options): Add NULL file_data argument to
8986         lto_get_section_name.
8987         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
8988         * lto-streamer-out.c (produce_asm): Likewise.
8989         (copy_function): Likewise.
8990         (produce_symtab): Likewise.
8991         (produce_asm_for_decls): Likewise.
8992         * lto-streamer.c (lto_get_section_name): Add file_data argument.
8993         Rewrite to add random postfix to LTO sections.
8994         * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
8995         (lto_get_section_name): Add file_data argument to prototype.
8997 2010-07-10  Andi Kleen  <ak@linux.intel.com>
8999         * lto-section-in.c (lto_section_name): Synchronize names
9000         with lto_get_section_name.
9002 2010-07-10  Andi Kleen  <ak@linux.intel.com>
9004         * lto-opts.c (lto_read_file_options): Check for missing section.
9006 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9008         * ira.c (check_allocation): Correctly handle the case where an allocno
9009         with two objects was allocated to a single reg.
9011 2010-07-22  Richard Sandiford  <rdsandiford@googlemail.com>
9013         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
9014         (is_widening_mult_p): Likewise.
9015         (convert_to_widen): Use them.
9016         (convert_plusminus_to_widen): Likewise.  Handle fixed-point types as
9017         well as integer ones.
9019 2010-07-22  Steven Bosscher  <steven@gcc.gnu.org>
9021         * alias.c (true_dependence_1): New function, merged version of
9022         true_dependence and canon_true_dependence.
9023         (true_dependence): Simplify.
9024         (canon_true_dependence): Simplify.
9026 2010-07-22  Richard Henderson  <rth@redhat.com>
9028         PR target/45027
9029         * config/i386/i386.c (setup_incoming_varargs_64): Force the use
9030         of V4SFmode for the SSE saves; increase stack alignment if needed.
9031         (ix86_gimplify_va_arg): Don't increase stack alignment here.
9033 2010-07-22  Jakub Jelinek  <jakub@redhat.com>
9035         PR bootstrap/45028
9036         * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
9037         call cprop_find_used_regs again via note_uses.
9039 2010-07-22  Eric Botcazou  <ebotcazou@adacore.com>
9041         * alias.c (get_alias_set): Fix formatting issues.
9043 2010-07-22  Steve Ellcey  <sje@cup.hp.com>
9045         PR middle-end/44878
9046         * stmt.c (expand_value_return):  Call promote_function_mode with
9047         a for_return argument of 2 when returning by reference.
9049 2010-07-22  Dodji Seketeli  <dodji@redhat.com>
9051         PR debug/45024
9052         * dwarf2out.c (scope_die_for): Don't fall back to the compilation
9053         unit DIE if we can find the scope DIE.
9055 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9057         * ira-build.c (ira_create_object): New arg SUBWORD; all callers
9058         changed.  Initialize OBJECT_SUBWORD.
9059         (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
9060         (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
9061         all callers changed.
9062         (merge_hard_reg_conflicts): Iterate over allocno subobjects.
9063         (finish_allocno): Likewise.
9064         (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
9065         (remove_low_level_allocnos): Likewise.
9066         (update_bad_spill_attribute): Likewise.
9067         (setup_min_max_allocno_live_range_point): Likewise.
9068         (sort_conflict_id_map): Likewise.
9069         (ira_flattening): Likewise.  Use ior_hard_reg_conflicts.
9070         (ior_hard_reg_conflicts): New function.
9071         (ior_allocate_object_conflicts): Renamed first argument to OBJ.
9072         (compress_conflict_vecs): Iterate over objects, not allocnos.
9073         (ira_add_live_range_to_object): New function.
9074         (object_range_compare_func): Renamed from allocno_range_compare_func.
9075         All callers changed.
9076         (setup_min_max_conflict_allocno_ids): For allocnos with multiple
9077         subobjects, widen the min/max range of the lowest-order object to
9078         potentially include all other such low-order objects.
9079         * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
9080         (check_allocation): Likewise.  Use more fine-grained tests for register
9081         conflicts.
9082         * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
9083         allocno subobjects.
9084         (assign_hard_reg): Keep multiple sets of conflicts.  Make finer-grained
9085         choices about which bits to set in each set.  Don't use
9086         ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
9087         using the multiple sets we computed.
9088         (push_allocno_to_stack): Iterate over allocno subobjects.
9089         (all_conflicting_hard_regs_coalesced): New static function.
9090         (setup_allocno_available_regs_num): Use it.
9091         (setup_allocno_left_conflicts_size): Likewise.  Iterate over allocno
9092         subobjects.
9093         (coalesced_allocno_conflict): Test subobject 0 in each allocno.
9094         (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
9095         by ALLOCNO_NUM_OBJECTS.
9096         (calculate_spill_cost): Likewise.
9097         (color_pass): Express if statement in a more normal way.
9098         (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
9099         (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
9100         (setup_slot_coalesced_allocno_live_ranges): Likewise.
9101         (allocno_reload_assign): Likewise.
9102         (ira_reassign_pseudos): Likewise.
9103         (fast_allocation): Likewise.
9104         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9105         (print_allocno_conflicts): Likewise.
9106         (ira_build_conflicts): Likewise.
9107         (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p.  All
9108         callers changed.  Test subword 0 of each allocno for conflicts.
9109         (build_object_conflicts): Renamed from build_allocno_conflicts.  All
9110         callers changed.  Iterate over allocno subobjects.
9111         * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
9112         * ira-int.h (struct ira_allocno): New member: num_objects.
9113         Rename object to objects and change it into an array.
9114         (ALLOCNO_OBJECT): Add new argument N.
9115         (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
9116         (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
9117         (ior_hard_reg_conflicts): Declare.
9118         (ira_add_live_range_to_object): Declare.
9119         (ira_allocno_object_iterator): New.
9120         (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
9121         (FOR_EACH_ALLOCNO_OBJECT): New macro.
9122         * ira-lives.c (objects_live): Renamed from allocnos_live; all
9123         uses changed.
9124         (allocnos_processed): New sparseset.
9125         (make_object_born): Renamed from make_allocno_born; take an
9126         ira_object_t argument.  All callers changed.
9127         (make_object_dead): Renamed from make_allocno_dead; take an
9128         ira_object_t argument.  All callers changed.
9129         (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
9130         All callers changed.
9131         (mark_pseudo_regno_live): Iterate over allocno subobjects.
9132         (mark_pseudo_regno_dead): Likewise.
9133         (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
9134         functions.
9135         (mark_ref_live): Detect subword accesses and call
9136         mark_pseudo_regno_subword_live as appropriate.
9137         (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
9138         (process_bb_nodes_live): Deal with object-related updates first; set
9139         and test bits in allocnos_processed to avoid computing allocno
9140         statistics more than once.
9141         (create_start_finish_chains): Iterate over objects, not allocnos.
9142         (print_object_live_ranges): New function.
9143         (print_allocno_live_ranges): Use it.
9144         (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
9145         and objects_live.
9147 2010-07-22  Richard Guenther  <rguenther@suse.de>
9149         PR lto/42451
9150         * gimple.c (gtc_next_dfs_num): New global.
9151         (struct sccs): Make value a union, add integer same_p member.
9152         (gtc_visit): New function.
9153         (gimple_types_compatible_p_1): New function, split out from ...
9154         (gimple_types_compatible_p): ... here.  Start a DFS walk here.
9155         (iterative_hash_gimple_type): Adjust for sccs change.
9157 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9159         PR tree-optimization/44891
9160         * tree-sra.c: Include gimple-pretty-print.h.
9161         (replace_uses_with_default_def_ssa_name): Renamed to
9162         get_repl_default_def_ssa_name, return the new SSA name instead of
9163         replacing the old one.
9164         (sra_modify_assign): Dump a message when removing a load, if the LHS
9165         is an SSA_NAME, do not do any propagation, just set the RHS to a
9166         default definition SSA NAME, type convert if necessary.
9167         * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
9169 2010-07-22  Richard Guenther  <rguenther@suse.de>
9171         PR tree-optimization/45017
9172         * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
9173         TYPE_PRECISION of integral types in addition to size.
9175 2010-07-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9177         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
9178         when no C library is specified.
9180 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9182         * ipa-prop.h (struct ipa_node_params): Updated comment.
9183         (struct ipa_edge_args): Likewise.
9184         * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
9186 2010-07-22  Martin Jambor  <mjambor@suse.cz>
9188         * cgraphunit.c (verify_edge_count_and_frequency): New function.
9189         (verify_cgraph_node): Verify frequencies of indirect edges.
9190         * tree-inline.c (tree_function_versioning): Update frequencies of
9191         indirect edges.
9193 2010-07-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
9195         PR target/43698
9196         * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
9197         Set *arm_rev to be predicable.
9199 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
9201         * config/darwin.h (LINK_COMMAND_SPEC): Split into...
9202         (LINK_COMMAND_SPEC_A): New.
9203         (DSYMUTIL): New.
9204         (DSYMUTIL_SPEC): New.
9205         * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
9206         (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
9208 2010-07-22  Iain Sandoe  <iains@gcc.gnu.org>
9210         * calls.c (load_register_parameters): Move check for zero
9211         sized items so that only the call to
9212         mem_overlaps_already_clobbered_arg_p () is protected.
9214 2010-07-22  Jan Hubicka  <jh@suse.cz>
9216         * ipa-pure-const.c (varying_state): Break out from ...
9217         (get_function_state): ... here; always return varying_state
9218         when state would be NULL otherwise.
9219         (remove_node_data): Do not free varying state.
9221 2010-07-22  Bernd Schmidt  <bernds@codesourcery.com>
9223         PR bootstrap/44970
9224         PR middle-end/45009
9225         * postreload.c: Include "target.h".
9226         (reload_combine_closest_single_use): Don't take DEBUG_INSNs
9227         into account.
9228         (fixup_debug_insns): Don't copy the rtx.
9229         (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
9230         Don't copy when replacing.  Call fixup_debug_insns in the case where
9231         we merged one add with another.
9232         (reload_combine_recognize_pattern): Fail if there aren't any uses.
9233         Try harder to determine whether we're picking a valid index register.
9234         Don't set store_ruid for an insn we're going to scan in the
9235         next iteration.
9236         (reload_combine): Remove unused code.
9237         (reload_combine_note_use): When updating use information for
9238         an old insn, ignore a use that occurs after store_ruid.
9239         * Makefile.in (postreload.o): Update dependencies.
9241         * function.c (record_hard_reg_sets): Restrict the previous change
9242         to cases where the incoming nominal mode is the same as the
9243         incoming promoted mode and everything happens in MODE_INT.
9245 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9247         PR debug/45015
9248         * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
9249         ASM_OPERANDS_OUTPUT_IDX.
9250         (adjust_insn): For inline asm with multiple sets ensure first
9251         ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
9252         the insn.
9254 2010-07-21  Richard Henderson  <rth@redhat.com>
9256         * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
9257         comparison for avoiding xmm register saves.  Emit the xmm register
9258         saves explicitly.
9259         * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
9260         (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
9261         (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
9262         Remove patterns and the associated splitters.
9264 2010-07-21  Changpeng Fang  <changpeng.fang@amd.com>
9266         * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
9267         and imagine parts of a complex, so that they can have the same
9268         base and fall into the same group.
9270 2010-07-21  Richard Guenther  <rguenther@suse.de>
9272         PR lto/45018
9273         * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
9274         of TYPE_DECLs.  Do not follow TYPE_NEXT_VARIANT,
9275         TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
9277 2010-07-21  Martin Jambor  <mjambor@suse.cz>
9279         PR tree-optimization/44900
9280         * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
9281         (sra_modify_assign): Move gsi to the next statmenent unconditionally.
9283 2010-07-21  Bernd Schmidt  <bernds@codesourcery.com>
9285         PR middle-end/44738
9286         * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
9288 2010-07-21  Richard Guenther  <rguenther@suse.de>
9290         PR middle-end/45013
9291         * tree-ssa.c (useless_type_conversion_p): Dispatch to
9292         gimple_types_compatible_p only when in lto.
9293         * gimple.c (gimple_types_compatible_p): Use canonical types
9294         to speed up comparison.
9296 2010-07-21  Richard Guenther  <rguenther@suse.de>
9298         * tree-flow.h (referenced_var): Move define ...
9299         * tree-flow-inline.h (referenced_var): ... here as an inline
9300         function.  Assert here ...
9301         * tree-dfa.c (referenced_var_lookup): ... instead of here.
9302         * tree-ssa.c (maybe_optimize_var): Check if the variable
9303         is in referenced vars.
9304         (execute_update_addresses_taken): Remove old broken check.
9305         * gimple-pretty-print.c (pp_points_to_solution): Use
9306         referenced_var_lookup.
9307         * tree-into-ssa.c (dump_decl_set): Likewise.
9309 2010-07-21  Jakub Jelinek  <jakub@redhat.com>
9311         PR debug/45003
9312         * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
9313         * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
9314         ZERO_EXTEND here.
9316 2010-07-20  Richard Henderson  <rth@redhat.com>
9318         * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
9320 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9322         * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
9323         computing the sum of the stack pointer and a large constant.
9324         * config/arm/constraints.md (M): Remove superfluous parentheses.
9325         (Pc): New constraint.
9327 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9329         PR debug/45006
9330         * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
9331         operand's type if exp is tcc_unary class tree.
9333 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9335         * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
9336         Reverse sense of if_then_else condition.
9338 2010-07-20  Nathan Froyd  <froydnj@codesourcery.com>
9340         * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
9341         * config/rs6000/rs6000.c (rs6000_override_options): Set
9342         rs6000_block_move_inline_limit appropriately.
9343         (expand_block_move): Use rs6000_block_move_inline_limit.
9344         * doc/invoke.texi (mblock-move-inline-limit): Document.
9346 2010-07-20  Bernd Schmidt  <bernds@codesourcery.com>
9348         * postreload.c (fixup_debug_insns): Remove arg REGNO.  New args
9349         FROM and TO.  All callers changed.  Don't look for tracked uses,
9350         just scan the RTL for DEBUG_INSNs and substitute.
9351         (reload_combine_recognize_pattern): Call fixup_debug_insns.
9352         (reload_combine): Ignore DEBUG_INSNs.
9354 2010-07-20  Jakub Jelinek  <jakub@redhat.com>
9356         * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
9357         depth to 8 from 5.
9359         PR debug/45003
9360         * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
9361         or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
9362         instead of the result's type.
9364 2010-07-20  Richard Guenther  <rguenther@suse.de>
9366         PR tree-optimization/44977
9367         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
9368         SSA form.
9370 2010-07-20  Richard Guenther  <rguenther@suse.de>
9372         * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
9373         (lto_symtab_merge_decls_2): Likewise.
9374         * gimple.h (gimple_types_compatible_p): Declare.
9375         * gimple.c (gimple_queue_type_fixup): Remove.
9376         (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
9377         (gimple_compatible_complete_and_incomplete_type_p): New function.
9378         (gimple_types_compatible_p): Adjust.
9379         (gimple_register_type): Remove type fixup code.
9380         (print_gimple_types_stats): Adjust.
9381         (free_gimple_type_tables): Likewise.
9382         * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
9383         * tree-ssa.c (useless_type_conversion_p): Likewise.
9385 2010-07-20  Richard Guenther  <rguenther@suse.de>
9387         PR middle-end/44971
9388         PR middle-end/44988
9389         * tree-ssa.c (maybe_optimize_var): New function split out from ...
9390         (execute_update_addresses_taken): ... here.
9391         (non_rewritable_mem_ref_base): Likewise.
9392         (execute_update_addresses_taken): Do not iterate over all referenced
9393         vars but just all local decls and parms.
9394         Properly check call and asm arguments and rewrite call arguments.
9396 2010-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
9398         * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
9399         to top level.
9400         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
9401         definitions ...
9402         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
9403         New macro.
9404         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
9406 2010-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
9408         * gengtype.c (start_root_entry): New function, split out from
9409         write_root.  Check whether V is null and raise an error if so.
9410         (write_field_root): Check for V being null.  Don't raise an error here;
9411         set V to null instead.
9412         (write_root): Update comment above function.  Use start_root_entry.
9414 2010-07-19  Xinliang David Li  <davidxl@google.com>
9416         PR testsuite/44932
9417         * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
9418         def edges.
9419         (find_uninit_use): Add dump.
9420         (is_use_properly_guarded): Ditto.
9421         (warn_uninitialized_phi): Ditto.
9422         (execute_late_warn_uninitialized): Ditto.
9424 2010-07-19  Richard Guenther  <rguenther@suse.de>
9426         PR middle-end/44941
9427         * expr.c (emit_block_move_hints): Move zero size check first.
9428         Move asserts to more useful places.
9429         * calls.c (load_register_parameters): Check for zero size.
9431 2010-07-19  Richard Henderson  <rth@redhat.com>
9433         * tree-optimize.c (execute_all_early_local_passes): New.  Change
9434         cgraph_state here ...
9435         (execute_early_local_optimizations): ... not here.  Remove.
9436         (pass_early_local_passes, pass_all_early_optimizations): Update.
9438 2010-07-19  Bernd Schmidt  <bernds@codesourcery.com>
9440         * postreload.c (reload_combine_closest_single_use): Ignore the
9441         number of uses for DEBUG_INSNs.
9442         (fixup_debug_insns): New static function.
9443         (reload_combine_recognize_const_pattern): Use it.  Don't let the
9444         main loop be affected by DEBUG_INSNs.
9445         Really disallow moving adds past a jump insn.
9446         (reload_combine_recognize_pattern): Don't update use_ruid here.
9447         (reload_combine_note_use): Do it here.
9448         (reload_combine): Use control_flow_insn_p rather than JUMP_P.
9450 2010-07-19  Bingfeng Mei  <bmei@broadcom.com>
9452         * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
9453         of a loop.
9454         * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
9456 2010-07-19  Iain Sandoe  <iains@gcc.gnu.org>
9458         * config/i386/darwin.h: Define darwin_emit_branch_islands.
9459         (TARGET_MACHO_BRANCH_ISLANDS): New.
9460         (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
9461         * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
9462         default value.
9463         * config/i386/i386.c (output_pic_addr_const): Do not emit
9464         branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
9465         (x86_output_mi_thunk): Adjust symbol creation.
9466         * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
9467         Remove out of date comment.
9468         * config/rs6000/rs6000.c (print_operand): Adjust symbol.
9469         (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9470         (DARWIN_GENERATE_ISLANDS): Ditto.
9471         (output_call):  Do not emit branch islands unless
9472         darwin_emit_branch_islands is set.
9473         * config/darwin.c: Declare darwin_emit_branch_islands.
9474         (machopic_indirect_data_reference): Do not emit unless
9475         darwin_emit_branch_islands is set.
9476         (darwin_override_options): Set darwin_emit_branch_islands
9477         where it is needed.
9478         * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
9480 2010-07-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9482         * doc/sourcebuild.texi (Effective-Target Keywords): Document
9483         sse_runtime, sse2_runtime.
9485 2010-07-18  Richard Sandiford  <rdsandiford@googlemail.com>
9487         * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
9488         low half of a single-register SCmode return value before ORing
9489         it with the high half.
9490         * config/mips/mips16.S (MERGE_GPRf): Likewise.
9492 2010-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9494         PR target/44805
9495         * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
9496         on all targets.
9498 2010-07-17  Bernd Schmidt  <bernds@codesourcery.com>
9500         PR target/42235
9501         * postreload.c (reload_cse_move2add): Return bool, true if anything.
9502         changed.  All callers changed.
9503         (move2add_use_add2_insn): Likewise.
9504         (move2add_use_add3_insn): Likewise.
9505         (reload_cse_regs): If reload_cse_move2add changed anything, rerun
9506         reload_combine.
9507         (RELOAD_COMBINE_MAX_USES): Bump to 16.
9508         (last_jump_ruid): New static variable.
9509         (struct reg_use): New members CONTAINING_MEM and RUID.
9510         (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
9511         (reload_combine_split_one_ruid, reload_combine_split_ruids,
9512         reload_combine_purge_insn_uses, reload_combine_closest_single_use
9513         reload_combine_purge_reg_uses_after_ruid,
9514         reload_combine_recognize_const_pattern): New static functions.
9515         (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
9516         is true for our reg and that we have available index regs.
9517         (reload_combine_note_use): New args RUID and CONTAINING_MEM.  All
9518         callers changed.  Use them to initialize fields in struct reg_use.
9519         (reload_combine): Initialize last_jump_ruid.  Be careful when to
9520         take PREV_INSN of the scanned insn.  Update REAL_STORE_RUID fields.
9521         Call reload_combine_recognize_const_pattern.
9522         (reload_combine_note_store): Update REAL_STORE_RUID field.
9524 2010-07-16  Jason Merrill  <jason@redhat.com>
9526         * Makefile.in (opts-common.o): Depend on options.h.
9528 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9530         * tree.c (build_common_builtin_nodes): Use build_function_type_list
9531         instead of build_function_type.
9532         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
9533         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9535 2010-07-16  Nathan Froyd  <froydnj@codesourcery.com>
9537         * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
9538         do all the work.
9539         (rs6000_emit_int_cmove): Use function pointers for insn generation.
9540         Don't force values into registers unnecessarily.
9541         (output_isel): Assert that we're not given conditions we can't handle.
9542         Delete corresponding code.
9543         * config/rs6000/rs6000.md (isel_signed_<mode>): Use
9544         scc_comparison_operator constraint.  Permit 0 for the consequent
9545         operand.  Permit any GPR for the alternative operand.
9546         (isel_unsigned_<mode>): Likewise.
9548 2010-07-16  Jakub Jelinek  <jakub@redhat.com>
9550         PR target/44942
9551         * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
9552         argument to const_tree.
9553         * config/i386/i386.c (function_arg_advance): If padding needs to be
9554         inserted before argument, increment cum->words by number of padding
9555         words as well.
9556         (contains_aligned_value_p): Change argument to const_tree.
9557         (ix86_function_arg_boundary): Change second argument to const_tree.
9559 2010-07-16  Bernd Schmidt  <bernds@codesourcery.com>
9561         PR target/42235
9562         * function.c (record_hard_reg_sets): New static function.
9563         (assign_parm_setup_reg): If an optab for extending exists and the
9564         generated code clobbbers no hard regs, emit the insn directly and
9565         create a REG_EQUIV note.
9567 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9569         * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
9570         TREE_CHAIN.
9571         * c-typeck.c (push_init_level): Likewise.
9572         (process_init_element): Likewise.
9574 2010-07-15  Anatoly Sokolov  <aesok@post.ru>
9576         * tree.h (enum tree_index): Add TI_INTEGER_THREE.
9577         (integer_three_node): Add.
9578         * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
9579         NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
9580         * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
9581         of call build_int_cst.
9582         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
9583         * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
9584         (find_interesting_uses_address): Ditto.
9585         * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
9586         * tree-eh.c (lower_eh_constructs_2): Ditto.
9587         * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
9588         * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
9589         * expmed.c (expand_divmod): Ditto.
9590         * tree-mudflap.c (mx_register_decls): Ditto.
9591         * varasm.c (array_size_for_constructor): Ditto.
9592         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
9593         * c-parser.c (c_parser_postfix_expression): Ditto.
9595 2010-07-15  Bernd Schmidt  <bernds@codesourcery.com>
9597         * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
9598         New static variables.
9599         (reload_combine_recognize_pattern): New static function, broken out
9600         of reload_combine.
9601         (reload_combine): Use it.  Only initialize first_index_reg and
9602         last_index_reg once.
9604 2010-07-15  Richard Henderson  <rth@redhat.com>
9606         * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
9607         when done.
9609 2010-07-15  Jan Hubicka  <jh@suse.cz>
9611         * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
9612         comdats for broken gold.
9613         (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
9615 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9617         * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
9619 2010-07-15  Nathan Froyd  <froydnj@codesourcery.com>
9621         * tree.h (DECL_CHAIN): Define.
9622         * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
9623         * c-decl.c: Likewise.
9624         * c-parser.c: Likewise.
9625         * c-typeck.c: Likewise.
9626         * cfgexpand.c: Likewise.
9627         * cgraph.c: Likewise.
9628         * cgraphunit.c: Likewise.
9629         * combine.c: Likewise.
9630         * config/alpha/alpha.c: Likewise.
9631         * config/arm/arm.c: Likewise.
9632         * config/frv/frv.c: Likewise.
9633         * config/i386/i386.c: Likewise.
9634         * config/i386/winnt-cxx.c: Likewise.
9635         * config/ia64/ia64.c: Likewise.
9636         * config/iq2000/iq2000.c: Likewise.
9637         * config/mep/mep.c: Likewise.
9638         * config/mips/mips.c: Likewise.
9639         * config/pa/som.h: Likewise.
9640         * config/rs6000/rs6000.c: Likewise.
9641         * config/s390/s390.c: Likewise.
9642         * config/sh/sh.c: Likewise.
9643         * config/sh/symbian-cxx.c: Likewise.
9644         * config/sparc/sparc.c: Likewise.
9645         * config/spu/spu.c: Likewise.
9646         * config/stormy16/stormy16.c: Likewise.
9647         * config/vxworks.c: Likewise.
9648         * config/xtensa/xtensa.c: Likewise.
9649         * coverage.c: Likewise.
9650         * dbxout.c: Likewise.
9651         * dwarf2out.c: Likewise.
9652         * emit-rtl.c: Likewise.
9653         * expr.c: Likewise.
9654         * function.c: Likewise.
9655         * gimple-low.c: Likewise.
9656         * gimple-pretty-print.c: Likewise.
9657         * gimplify.c: Likewise.
9658         * integrate.c: Likewise.
9659         * ipa-inline.c: Likewise.
9660         * ipa-prop.c: Likewise.
9661         * ipa-split.c: Likewise.
9662         * ipa-struct-reorg.c: Likewise.
9663         * ipa-type-escape.c: Likewise.
9664         * langhooks.c: Likewise.
9665         * lto-cgraph.c: Likewise.
9666         * omp-low.c: Likewise.
9667         * stor-layout.c: Likewise.
9668         * tree-cfg.c: Likewise.
9669         * tree-complex.c: Likewise.
9670         * tree-dfa.c: Likewise.
9671         * tree-dump.c: Likewise.
9672         * tree-inline.c: Likewise.
9673         * tree-mudflap.c: Likewise.
9674         * tree-nested.c: Likewise.
9675         * tree-object-size.c: Likewise.
9676         * tree-pretty-print.c: Likewise.
9677         * tree-sra.c: Likewise.
9678         * tree-ssa-live.c: Likewise.
9679         * tree-ssa-loop-niter.c: Likewise.
9680         * tree-ssa-math-opts.c: Likewise.
9681         * tree-ssa-reassoc.c: Likewise.
9682         * tree-ssa-sccvn.c: Likewise.
9683         * tree-ssa-structalias.c: Likewise.
9684         * tree-tailcall.c: Likewise.
9685         * tree-vrp.c: Likewise.
9686         * tree.c: Likewise.
9687         * var-tracking.c: Likewise.
9688         * varasm.c: Likewise.
9690 2010-07-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9692         PR target/44877
9693         * config/spu/spu.c (spu_expand_builtin_1): Allow references
9694         (as well as pointers) as argument to mask_for_load builtins.
9696 2010-07-15  Richard Guenther  <rguenther@suse.de>
9698         PR tree-optimization/44946
9699         * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
9700         with accessing only padding properly.
9702 2010-07-15  Jan Hubicka  <jh@suse.cz>
9704         * ipa.c (function_and_variable_visibility): Variables marked as used
9705         should not be localized.
9707 2010-07-15  Jan Hubicka  <jh@suse.cz>
9709         * cgraph.c: Include lto-streamer.h
9710         (change_decl_assembler_name): Work when assembler name hash is at place.
9711         (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
9712         be sure to rename it to avoid name clash.
9713         * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
9714         Localize hidden symbols only when locally defined.
9716 2010-07-15  Uros Bizjak  <ubizjak@gmail.com>
9718         * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
9720 2010-07-15  Magnus Granberg  <zorry@gentoo.org>
9721             Kevin F. Quinn  <kevquinn@gentoo.org>
9723         * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
9724         * common.opt: Add -Wtrampolines.
9725         * doc/invoke.texi: Add -Wtrampolines.
9727 2010-07-15  Jie Zhang  <jie@codesourcery.com>
9729         * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
9730         cortex_a8_issue_ls.
9732 2010-07-15  Dave Korn  <dave.korn.cygwin@gmail.com>
9734         * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
9735         * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
9737 2010-07-14  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9739         * config/spu/spu.c (reg_names): Remove prototype.
9740         (call_used_regs): Likewise.
9742 2010-07-14  Dave Korn  <dave.korn.cygwin@gmail.com>
9744         * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
9745         "unused" with attribute "used".
9746         (__JCR_END__): Likewise.
9747         * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
9748         "used" attribute.
9749         (__JCR_LIST__): Replace attribute "unused" with attribute "used".
9751 2010-07-14  Richard Guenther  <rguenther@suse.de>
9753         * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
9754         (maybe_fixup_decls): Likewise.
9755         (input_gimple_stmt): Do not fixup anything.
9756         * lto-streamer-out.c (output_gimple_stmt): Make sure all
9757         non-automatic variable uses are wrapped inside a MEM_REF.
9759 2010-07-14  Richard Henderson  <rth@redhat.com>
9761         * passes.c (rest_of_decl_compilation): Do not call assemble_variable
9762         for functions.
9763         * varasm.c (assemble_variable): Remove early exit for functions;
9764         assert that we're given a variable.
9766 2010-07-14  Jie Zhang  <jie@codesourcery.com>
9768         * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
9769         cortex_a8_default when neon_type is not none.
9771 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9773         * lower-subreg.c (subreg_context): New static bitmap.
9774         (decompose_multiword_subregs): Allocate and free it.
9775         (find_decomposable_subregs): Set a bit in it for a register that
9776         occurs in a subreg that changes mode but not size.
9777         (can_decompose_p): Test it instead of non_decomposable_context.
9779 2010-07-14  Richard Guenther  <rguenther@suse.de>
9781         PR tree-optimization/44824
9782         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
9783         is_gimple_mem_ref_addr.
9784         (tree_ssa_forward_propagate_single_use_vars): Do not propagate
9785         non-decl_address_invariant_p addresses.
9787 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9789         * reload.c (find_reloads): Revert code to penalize small register
9790         classes that was brought in with the IRA merge.
9792 2010-07-14  Richard Guenther  <rguenther@suse.de>
9794         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
9795         as base of ARRAY_REFs.
9797 2010-07-14  Richard Guenther  <rguenther@suse.de>
9799         PR middle-end/44930
9800         * tree-pretty-print.c (do_niy): Do not print a newline.
9802 2010-07-14  Bernd Schmidt  <bernds@codesourcery.com>
9804         * ira-int.h (struct ira_object): New.
9805         (ira_object_t): New typedef.  Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
9806         (struct ira_allocno): Remove members min, max,
9807         conflict_allocno_array, conflict_id, conflict_allocno_array_size,
9808         conflict_allocnos_num and conflict_vec_p.  Add new member object.
9809         (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
9810         OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
9811         OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
9812         OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
9813         ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
9814         ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
9815         ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
9816         ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
9817         an ira_object_t rather than ira_allocno_t.  All uses changed.
9818         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9819         contains a vector of ira_object_t; all uses changed.
9820         (ira_objects_num): Declare variable.
9821         (ira_create_allocno_object): Declare function.
9822         (ira_conflict_vector_profitable_p): Adjust prototype.
9823         (ira_allocate_conflict_vec): Renamed from
9824         ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
9825         (ira_allocate_object_conflicts): Renamed from
9826         ira_allocate_allocno_conflicts; first arg now ira_object_t.
9827         (struct ira_object_iterator): New.
9828         (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
9829         (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
9830         to conflict_vec_p.  All uses changed.
9831         (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
9832         Changed to take into account that conflicts are now tracked for
9833         objects.
9834         * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
9835         Args changed to accept ira_object_t.  All uses changed.
9836         (allocnos_conflict_p): New static function.
9837         (collected_conflict_objects): Renamed from collected_allocno_objects;
9838         now a vector of ira_object_t.  All uses changed.
9839         (build_conflict_bit_table): Changed to take into account that
9840         conflicts are now tracked for objects.
9841         (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
9842         (print_allocno_conflicts, ira_build_conflicts): Likewise.
9843         * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
9844         setup_allocno_left_conflicts_size, allocno_reload_assign,
9845         fast_allocation): Likewise.
9846         * ira-lives.c (make_hard_regno_born, make_allocno_born)
9847         process_single_reg_class_operands, process_bb_node_lives): Likewise.
9848         * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
9849         Likewise.
9850         * ira-build.c (ira_objects_num): New variable.
9851         (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
9852         contains a vector of ira_object_t; all uses changed.
9853         (ira_object_id_map_vec): Corresponding change.
9854         (object_pool): New static variable.
9855         (initiate_allocnos): Initialize it.
9856         (finish_allocnos): Free it.
9857         (ira_create_object, ira_create_allocno_object, create_allocno_objects):
9858         New functions.
9859         (ira_create_allocno): Don't set members that were removed.
9860         (ira_set_allocno_cover_class): Don't change conflict hard regs.
9861         (merge_hard_reg_conflicts): Changed to take into account that
9862         conflicts are now tracked for objects.
9863         (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
9864         allocate_conflict_bit_vec, ira_allocate_object_conflicts,
9865         compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
9866         setup_min_max_allocno_live_range_point, allocno_range_compare_func,
9867         setup_min_max_conflict_allocno_ids, ):  Likewise.
9868         (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
9869         to ira_object_t; all callers changed.
9870         (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
9871         to ira_object_t, all callers changed.
9872         (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
9873         to ira_object_t, all callers changed.
9874         (conflict_check, curr_conflict_check_tick): Renamed from
9875         allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
9876         changed.
9877         (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
9878         arg changed to ira_object_t, all callers changed.
9879         (create_cap_allocno): Call ira_create_allocno_object.
9880         (finish_allocno): Free the corresponding object.
9881         (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
9882         callers changed.  Adjusted for dealing with objects.
9883         (ira_build): Call create_allocno_objects after ira_costs.  Adjusted for
9884         dealing with objects.
9885         * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
9887         * ira-int.h (struct live_range): Rename allocno member to object
9888         and change type to ira_object_t.
9889         (struct ira_object): New member live_ranges.
9890         (struct ira_allocno): Remove member live_ranges.
9891         (ALLOCNO_LIVE_RANGES): Remove.
9892         (OBJECT_LIVE_RANGES): New macro.
9893         (ira_create_live_range, ira_copy_live_range_list,
9894         ira_merge_live_range_list, ira_live_ranges_intersect_p,
9895         ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
9896         * ira-build.c (ira_create_object): Initialize live ranges here.
9897         (ira_create_allocno): Not here.
9898         (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
9899         changed to ira_object_t, all callers changed.
9900         (copy_live_range): Rename from copy_allocno_live_range, all callers
9901         changed.
9902         (ira_copy_live_range_list): Rename from
9903         ira_copy_allocno_live_range_list, all callers changed.
9904         (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
9905         all callers changed.
9906         (ira_live_ranges_intersect_p): Rename from
9907         ira_allocno_live_ranges_intersect_p, all callers changed.
9908         (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
9909         callers changed.
9910         (ira_finish_live_range_list): Rename from
9911         ira_finish_allocno_live_range_list, all callers changed.
9912         (change_object_in_range_list): Rename from change_allocno_in_range_list,
9913         last arg changed to ira_object_t, all callers changed.
9914         (finish_allocno): Changed to expect live ranges in the allocno's object.
9915         (move_allocno_live_ranges, copy_allocno_live_ranges,
9916         update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
9917         ira_flattening, ira_build): Likewise.
9918         * ira-color.c (allocnos_have_intersected_live_ranges_p,
9919         slot_coalesced_allocno_live_ranges_intersect,
9920         setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
9921         * ira-conflicts.c (build_conflict_bit_table): Likewise.
9922         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
9923         * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
9924         make_allocno_dead, create_start_finish_chains,
9925         remove_some_program_points_and_update_live_ranges,
9926         ira_debug_live_range_list): Likewise.
9928         * ira-int.h (ira_object_conflict_iterator): Rename from
9929         ira_allocno_conflict_iterator.
9930         (ira_object_conflict_iter_init): Rename from
9931         ira_allocno_conflict_iter_init, second arg changed to
9932         * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
9933         FOR_EACH_ALLOCNO_CONFLICT.
9934         * ira-color.c (assign_hard_reg, push_allocno_to_stack)
9935         setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
9936         ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
9937         * ira-conflicts.c (print_allocno_conflicts): Likewise.
9939 2010-07-13  Joern Rennecke  <joern.rennecke@embecosm.com>
9941         PR other/44874
9942         * tree-dump.c (dump_options): Add enumerate_locals entry.
9943         Add TDF_NOID exclusion to all entry.
9944         * tree-dump.h (dump_enumerated_decls): Declare.
9945         * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
9946         Don't display type uid.
9947         (print_declaration): Don't crash on TREE_TYPE (t) == 0.
9948         * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
9949         * tree-ssa-live.c: Include gimple.h.
9950         (numbered_tree_d): New struct.
9951         (numbered_tree): New typedef.
9952         (DEF_VEC_O (numbered_tree): New.
9953         (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
9954         (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
9955         (dump_enumerated_decls): Likewise.
9956         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
9957         debug info and flag_dump_final_insns, call dump_enumerated_decls.
9958         * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
9959         * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
9961 2010-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
9963         * expmed.h (MAX_BITS_PER_WORD): Move to...
9964         * defaults.h (MAX_BITS_PER_WORD): ...here.
9966 2010-07-13  DJ Delorie  <dj@redhat.com>
9968         * config/h8300/h8300.c (h8300_init_once): Default to
9969         -fstrict_volatile_bitfields.
9971         * config/sh/sh.c (sh_override_options): Default to
9972         -fstrict_volatile_bitfields.
9974         * config/rx/rx.c (rx_option_override): New.
9976         * config/m32c/m32c.c (m32c_override_options): Default to
9977         -fstrict_volatile_bitfields.
9979 2010-07-13  Nathan Froyd  <froydnj@codesourcery.com>
9981         * tree.h (build_function_call_expr): Delete.
9982         (build_call_expr_loc_array): New function.
9983         (build_call_expr_loc_vec): New function.
9984         * tree-flow.h (struct omp_region): Change type of ws_args field
9985         to a VEC.
9986         * builtins.c (build_function_call_expr): Delete.
9987         (build_call_expr_loc_array): New function.
9988         (build_call_expr_loc): Call it.  Use XALLOCAVEC.
9989         (build_call_expr): Likewise.
9990         (build_call_expr_loc_vec): New function.
9991         * cgraphunit.c (build_cdtor): Call build_call_expr instead of
9992         build_function_call_expr.
9993         * expr.c (emutls_var_address): Likewise.
9994         * varasm.c (emutls_common_1): Likewise.
9995         * omp-low.c (expand_omp_atomic_mutex): Likewise.
9996         (expand_omp_taskreg): Adjust for new type of region->ws_args.
9997         (get_ws_args_for): Return a VEC instead of a tree.
9998         (expand_parallel_call): Call build_call_expr_loc_vec instead of
9999         build_function_call_expr.
10000         * stor-layout.c (self_referential_size): Likewise.
10002 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10004         PR testsuite/44701
10005         * recog.c (constrain_operands): Allow side-effects in memory
10006         operands if either < or > constraint is used, rather than if
10007         both < and > is used.
10009 2010-07-13  Richard Guenther  <rguenther@suse.de>
10011         PR middle-end/44911
10012         * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
10013         MEM_REF pointer type dumping.  Avoid recursing for TYPE_DECLs
10014         without name.
10016 2010-07-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10018         PR target/44761
10019         * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
10020         to variable emited.
10021         * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
10022         * config/sh/sh.md (symGOT_load): Likewise.
10023         (symDTPOFF2reg): Likewise.
10024         (symTPOFF2reg): Likewise.
10026 2010-07-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10028         * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
10029         * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
10031 2010-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10033         * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
10034         explanation.
10035         Find ucontext_t * on Solaris 11.
10036         (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
10037         Handle new Solaris 11 __sighndlr patterns.
10039 2010-07-13  Jakub Jelinek  <jakub@redhat.com>
10041         PR debug/44901
10042         * vec.h (VEC_block_remove): Fix comment.
10043         * tree-ssa-live.c (remove_unused_locals): Don't use
10044         VEC_unordered_remove on local_decls, instead replace a single
10045         vector element in each iteration if at least one element had
10046         to be removed and VEC_truncate at the end.
10047         * omp-low.c (expand_omp_taskreg): Likewise.
10049 2010-07-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10051         * c-decl.c (finish_function): Fix typo in comment.
10053 2010-07-12  H.J. Lu  <hongjiu.lu@intel.com>
10055         PR bootstrap/44921
10056         * postreload.c (move2add_use_add3_insn): Silence gcc warning
10057         on min_regno.
10059 2010-07-12  Jakub Jelinek  <jakub@redhat.com>
10061         * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
10062         (simplify_stmt_using_ranges): Use it.
10064 2010-07-12  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10066         * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
10067         member.  Do not mark as GTY(()).
10068         * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
10069         (spu_builtin_decls): New static variable.
10070         (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
10071         (spu_init_builtins): Likewise.
10072         (spu_builtin_mul_widen_even): Likewise.
10073         (spu_builtin_mul_widen_odd): Likewise.
10074         (spu_builtin_mask_for_load): Likewise.
10075         (spu_builtin_vec_perm): Likewise.
10076         * config/spu/spu-c.c: Include "target.h".
10077         (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
10078         of using spu_builtins[].fndecl.
10080 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10082         * config/mips/mips.c (mips_override_options): Make -mflip-mips16
10083         imply -minterlink-mips16.
10085 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10087         * config/mips/mips.h (mips16_globals): Declare.
10088         (SWITCHABLE_TARGET): Define.
10089         * config/mips/mips.c: Include target-globals.h.
10090         (mips16_globals): New variable.
10091         (mips_set_mips16_mode): Use save_target_globals and
10092         restore_target_globals instead of target_reinit.
10094 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10096         * reginfo.c (init_reg_sets): Don't zero globals here.  Update comment
10097         to say that the function can be called more than once.
10098         * target-globals.c (save_target_globals): Call init_reg_sets.
10100 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10102         * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
10103         * bb-reorder.h: New file.
10104         * bb-reorder.c (default_target_bb_reorder): New variable.
10105         (this_target_bb_reorder): New conditional variable.
10106         (uncond_jump_length): Redefine as a macro.
10107         * target-globals.h (this_target_bb_reorder): Declare.
10108         (target_globals): Add a bb_reorder field.
10109         (restore_target_globals): Copy the bb_reorder field to
10110         this_target_bb-reorder.
10111         * target-globals.c: Include bb-reorder.h.
10112         (default_target_globals): Initialize the bb_reorder field.
10113         (save_target_globals): Likewise.
10115 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10117         * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
10118         * gcse.h: New file.
10119         * gcse.c: Include gcse.h.
10120         (default_target_gcse): New variable.
10121         (this_target_gcse): New conditional variable.
10122         (can_copy): Redefine as a macro.
10123         (can_copy_init_p): New macro.
10124         (can_copy_p): Remove can_copy_init_p.
10125         * target-globals.h (this_target_gcse): Declare.
10126         (target_globals): Add a gcse field.
10127         (restore_target_globals): Copy the gcse field to this_target_gcse.
10128         * target-globals.c: Include gcse.h.
10129         (default_target_globals): Initialize the gcse field.
10130         (save_target_globals): Likewise.
10132 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10134         * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
10135         and x_ira_prohibited_mode_move_regs_initialized_p.
10136         (ira_prohibited_mode_move_regs): Redefine as a macro.
10137         * ira.c (ira_prohibited_mode_move_regs): Delete.
10138         (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
10140 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10142         * reload.h (target_reload): Add x_cached_reg_save_code and
10143         x_cached_reg_restore_code.
10144         * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
10145         Redefine as macros.
10147 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10149         * Makefile.in (target-globals.o): Depend on builtins.h.
10150         * builtins.h: New file.
10151         * builtins.c: Include builtins.h.
10152         (default_target_builtins): New variable.
10153         (this_target_builtins): New conditional variable.
10154         (apply_args_mode, apply_result_mode): Redefine as macros.
10155         * target-globals.h (this_target_builtins): Declare.
10156         (target_globals): Add a builtins field.
10157         (restore_target_globals): Copy the builtins field to
10158         this_target_builtins.
10159         * target-globals.c: Include builtins.h.
10160         (default_target_globals): Initialize the builtins field.
10161         (save_target_globals): Likewise.
10163 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10165         * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
10166         (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
10167         from expmed.c.
10168         (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
10169         (alg_hash, alg_hash_used_p): New macros.
10170         * expmed.c (init_expmed): Clear alg_hash if reinitializing.
10171         (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
10172         (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
10174 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10176         * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
10177         x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
10178         * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
10179         (this_op_costs, costs_classes): Redefine as macros.
10180         (record_reg_classes): Don't take op_costs as a parameter.
10181         (record_operand_costs): Likewise.  Update calls to record_reg_classes.
10182         (scan_one_insn): Update call to record_operand_costs.
10184 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10186         * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
10187         * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
10188         (target_ira_int): New structure.
10189         (default_target_ira_int): Declare.
10190         (this_target_ira_int): Declare as a variable or define as a macro.
10191         (ira_reg_mode_hard_regset, ira_register_move_cost)
10192         (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
10193         (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
10194         (prohibited_class_mode_regs, ira_important_classes_num)
10195         (ira_important_classes, ira_reg_class_intersect)
10196         (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
10197         (ira_reg_class_union): Redefine as macros.
10198         * ira.h (target_ira): New structure.
10199         (default_target_ira): Declare.
10200         (this_target_ira): Declare as a variable or define as a macro.
10201         (ira_available_class_regs, ira_hard_regno_cover_class)
10202         (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
10203         (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
10204         (ira_class_hard_regs_num): Redefine as macros.
10205         * ira.c (default_target_ira, default_target_ira_int): New variables.
10206         (this_target_ira, this_target_ira_int): New conditional variables.
10207         (ira_reg_mode_hard_regset, ira_memory_move_cost)
10208         (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
10209         (ira_class_subset_p): Delete.
10210         (no_unit_alloc_regs): Redefine as a macro.
10211         (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
10212         (ira_class_hard_regs_num, ira_class_hard_reg_index)
10213         (ira_available_class_regs): Delete.
10214         (alloc_reg_class_subclasses): Redefine as a macro.
10215         (ira_reg_class_cover_size, ira_reg_class_cover)
10216         (ira_important_classes_num, ira_important_classes)
10217         (ira_important_class_nums, ira_class_translate): Delete.
10218         (cover_class_order): Document the variable's lifetime.
10219         (reorder_important_classes): Don't set ira_important_class_nums.
10220         (ira_reg_class_intersect, ira_reg_classes_intersect_p)
10221         (ira_reg_class_super_classes, ira_reg_class_union)
10222         (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
10223         Delete.
10224         (setup_reg_class_nregs): Don't set ira_max_regs.
10225         (prohibited_class_mode_regs): Delete.
10226         * target-globals.h (this_target_ira, this_target_ira_int): Declare.
10227         (target_globals): Add ira and ira_int fields.
10228         (restore_target_globals): Copy the ira field to this_target_ira
10229         and the ira_int field to this_target_ira_int.
10230         * target-globals.c: Include ira-int.h.
10231         (default_target_globals): Initialize the ira and ira_int fields.
10232         (save_target_globals): Likewise.
10234 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10236         * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
10237         * cfgloop.h (target_cfgloop): New structure.
10238         (default_target_cfgloop): Declare.
10239         (this_target_cfgloop): Declare as a variable or define as a macro.
10240         (target_avail_regs, target_clobbered_regs, target_res_regs)
10241         (target_reg_cost, target_spill_cost): Redefine as macros.
10242         * cfgloopanal.c (default_target_cfgloop): New variable.
10243         (this_target_cfgloop): New conditional variable.
10244         (target_avail_regs, target_clobbered_regs, target_res_regs)
10245         (target_reg_cost, target_spill_cost): Delete.
10246         * target-globals.h (this_target_cfgloop): Declare.
10247         (target_globals): Add a cfgloop field.
10248         (restore_target_globals): Copy the cfgloop field to
10249         this_target_cfgloop.
10250         * target-globals.c: Include cfgloop.h.
10251         (default_target_globals): Initialize the cfgloop field.
10252         (save_target_globals): Likewise.
10254 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10256         * regs.h (target_regs): Add x_direct_load, x_direct_store and
10257         x_float_extend_from_mem.
10258         (direct_load, direct_store, float_extend_from_mem): New macros.
10259         * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
10261 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10263         * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
10264         (target-globals.o): Depend on $(LIBFUNCS_H).
10265         * libfuncs.h: Include hashtab.h.
10266         (libfunc_entry): Moved from optabs.c.
10267         (target_libfuncs): New structure.
10268         (default_target_libfuncs): Declare.
10269         (this_target_libfuncs): Declare as a variable or define as a macro.
10270         (libfunc_table): Redefine as a macro.
10271         * optabs.c (default_target_libfuncs): New variable.
10272         (this_target_libfuncs): New conditional variable.
10273         (libfunc_table): Delete.
10274         (libfunc_entry): Moved to optabs.h.
10275         (libfunc_hash): Redefine as a macro.
10276         (hash_libfunc, eq_libfunc): Fix comments.
10277         (init_optabs): Use libfunc_hash to detect cases where the function
10278         has already been called.  Clear the hash table instead of
10279         recreating it.
10280         * target-globals.h (this_target_libfuncs): Declare.
10281         (target_globals): Add a libfuncs field.
10282         (restore_target_globals): Copy the libfuncs field to
10283         this_target_libfuncs.
10284         * target-globals.c: Include libfuncs.h.
10285         (default_target_globals): Initialize the libfuncs field.
10286         (save_target_globals): Likewise.
10288 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10290         * Makefile.in (LIBFUNCS_H): New variable.  Use instead of libfuncs.h
10291         in all dependency lists.
10293 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10295         * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
10296         * optabs.h (target_optabs): New structure.
10297         (default_target_optabs): Declare.
10298         (this_target_optabs): Declare as a variable or define as a macro.
10299         (optab_table, convert_optab_table, direct_optab_table): Redefine
10300         as macros.
10301         * optabs.c (default_target_optabs): New variable.
10302         (this_target_optabs): New conditional variable.
10303         (optab_table, convert_optab_table, direct_optab_table): Delete.
10304         * target-globals.h (this_target_optabs): Declare.
10305         (target_globals): Add a optabs field.
10306         (restore_target_globals): Copy the optabs field to
10307         this_target_optabs.
10308         * target-globals.c: Include expr.h and optabs.h.
10309         (default_target_globals): Initialize the optabs field.
10310         (save_target_globals): Likewise.
10312 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10314         * flags.h (target_flagstate): Add x_flag_excess_precision.
10315         (flag_excess_precision): Redefine as a macro.
10316         * toplev.c (flag_excess_precision): Delete.
10318 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10320         * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
10321         * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
10322         * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
10323         (no_caller_save_reg_set): Redefine as a macro.
10324         * reload.h (target_reload): Add x_caller_save_initialized_p and
10325         x_regno_save_mode.
10326         (caller_save_initialized_p): Redefine as a macro.
10327         * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
10328         (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
10329         (regno_save_mode): Redefine as a macro.
10331 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10333         * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
10334         * expmed.h: New file.
10335         * expmed.c (default_target_costs): New variable.
10336         (this_target_costs): New conditional variable.
10337         (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
10338         (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
10339         (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
10340         * target-globals.h (this_target_expmed): Declare.
10341         (target_globals): Add a expmed field.
10342         (restore_target_globals): Copy the expmed field to
10343         this_target_expmed.
10344         * target-globals.c: Include expmed.h.
10345         (default_target_globals): Initialize the expmed field.
10346         (save_target_globals): Likewise.
10348 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10350         * Makefile.in (target-globals.o): Depend on reload.h.
10351         * reload.h (target_reload): New structure.
10352         (default_target_reload): Declare.
10353         (this_target_reload): Declare as a variable or define as a macro.
10354         (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
10355         * reload1.c (default_target_reload): New variable
10356         (this_target_reload): New conditional variable.
10357         (indirect_symref_ok, double_reg_address_ok): Delete.
10358         (spill_indirect_levels): Redefine as a macro.
10359         * target-globals.h (this_target_reload): Declare.
10360         (target_globals): Add a reload field.
10361         (restore_target_globals): Copy the reload field to
10362         this_target_reload.
10363         * target-globals.c: Include hard-reg-set.h.
10364         (default_target_globals): Initialize the reload field.
10365         (save_target_globals): Likewise.
10367 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10369         * rtl.h (target_rtl): Add x_static_reg_base_value.
10370         * alias.c (static_reg_base_value): Redefine as a macro.
10372 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10374         * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
10375         (GTFILES): Remove reginfo.c.
10376         * rtl.h (target_rtl): Add x_top_of_stack.
10377         (top_of_stack): New macro.
10378         * reginfo.c: Don't include ggc.h or gt-reginfo.h.
10379         (top_of_stack): Delete.
10381 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10383         * regs.h (target_regs): Add x_hard_regs_of_mode,
10384         x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
10385         x_may_move_out_cost and x_last_mode_for_init_move_cost.
10386         (have_regs_of_mode, contains_reg_of_mode, move_cost)
10387         (may_move_in_cost, may_move_out_cost): Redefine as macros.
10388         * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
10389         (may_move_in_cost, may_move_out_cost): Delete.
10390         (last_mode_for_init_move_cost): Redefine as a macro.
10392 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10394         * hard-reg-set.h (target_hard_regs): New structure.
10395         (default_target_hard_regs): Declare.
10396         (this_target_hard_regs): Declare as a variable or define as a macro.
10397         (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
10398         (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
10399         (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
10400         (reg_class_size, reg_class_subclasses, reg_class_subunion)
10401         (reg_class_superunion, reg_names): Redefine as macros.
10402         * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
10403         (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
10404         (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
10405         (reg_class_contents, reg_class_size, reg_class_subclasses)
10406         (reg_class_subunion, reg_class_superunion, reg_names): Delete.
10407         (default_target_hard_regs): New variable
10408         (this_target_hard_regs, initial_call_really_used_regs)
10409         (initial_reg_alloc_order): New conditional variables.
10410         (initial_reg_names): New variable.
10411         (init_reg_sets): Assert that initial_call_really_used_regs,
10412         initial_reg_alloc_order and initial_reg_names
10413         are all the same size as their variable counterparts.  Use them to
10414         initialize those counterparts.
10415         * target-globals.h (this_target_hard_regs): Declare.
10416         (target_globals): Add a hard_regs field.
10417         (restore_target_globals): Copy the hard_regs field to
10418         this_target_hard_regs.
10419         * target-globals.c: Include hard-reg-set.h.
10420         (default_target_globals): Initialize the hard_regs field.
10421         (save_target_globals): Likewise.
10423 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10425         * Makefile.in (target-globals.o): Depend on $(RTL_H).
10426         * rtl.h (target_rtl): New structure.
10427         (default_target_rtl): Declare.
10428         (this_target_rtl): Declare as a variable or define as a macro.
10429         (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
10430         Redefine as macros.
10431         * emit-rtl.c (default_target_rtl): New variable.
10432         (this_target_rtl): New conditional variable.
10433         (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
10434         (return_address_pointer_rtx): Delete.
10435         (initial_regno_reg_rtx): New macro.
10436         (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
10437         (init_emit_regs): Likewise.
10438         * target-globals.h (this_target_rtl): Declare.
10439         (target_globals): Add a rtl field.
10440         (restore_target_globals): Copy the rtl field to this_target_rtl.
10441         * target-globals.c: Include rtl.h.
10442         (default_target_globals): Initialize the rtl field.
10443         (save_target_globals): Likewise.
10445 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10447         * Makefile.in (target-globals.o): Depend on $(REGS_H).
10448         * regs.h (target_reg_modes): New structure.
10449         (default_target_reg_modes): Declare.
10450         (this_target_reg_modes): Declare as a variable or define as a macro.
10451         (hard_regno_nregs, reg_raw_mode): Redefine as macros.
10452         * reginfo.c (default_target_reg_modes): New variable.
10453         (this_target_reg_modes): New conditional variable.
10454         (hard_regno_nregs, reg_raw_mode): Delete.
10455         * target-globals.h (this_target_regs): Declare.
10456         (target_globals): Add a regs field.
10457         (restore_target_globals): Copy the regs field to this_target_regs.
10458         * target-globals.c: Include regs.h.
10459         (default_target_globals): Initialize the regs field.
10460         (save_target_globals): Likewise.
10462 2010-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
10464         * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
10465         * doc/tm.texi: Regenerate.
10466         * Makefile.in (OBJS-common): Add target-globals.o.
10467         (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
10468         and target-globals.h.
10469         (target-globals.o): New rule.
10470         (GTFILES): Include $(srcdir)/target-globals.h.
10471         * defaults.h (SWITCHABLE_TARGET): Define.
10472         * gengtype.c (open_base_files): Add target-globals.h to the
10473         list of includes.
10474         * target-globals.h: New file.
10475         * target-globals.c: Likewise.
10477         * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
10478         * flags.h (target_flag_state): New structure.
10479         (default_target_flag_state): Declare.
10480         (this_target_flag_state): Declare as a variable or define as a macro.
10481         (align_loops_log): Redefine as a macro.
10482         (align_loops_max_skip, align_jumps_log): Likewise.
10483         (align_jumps_max_skip, align_labels_log): Likewise.
10484         (align_labels_max_skip, align_functions_log): Likewise.
10485         * toplev.c (default_target_flag_state): New variable.
10486         (this_target_flag_state): New conditional variable.
10487         (align_loops_log): Delete.
10488         (align_loops_max_skip, align_jumps_log): Likewise.
10489         (align_jumps_max_skip, align_labels_log): Likewise.
10490         (align_labels_max_skip, align_functions_log): Likewise.
10491         * target-globals.h (this_target_flag_state): Declare.
10492         (target_globals): Add a flag_state field.
10493         (restore_target_globals): Copy the flag_state field to
10494         this_target_flag_state.
10495         * target-globals.c: Include flags.h.
10496         (default_target_globals): Initialize the flag_state field.
10497         (save_target_globals): Likewise.
10499 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10501         * postreload.c (reg_symbol_ref[]): New.
10502         (move2add_use_add2_insn): New.
10503         (move2add_use_add3_insn): New.
10504         (reload_cse_move2add): Handle SYMBOL + OFFSET case.
10505         (move2add_note_store): Likewise.
10507 2010-07-12  Joern Rennecke  <joern.rennecke@embecosm.com>
10509         PR rtl-optimization/44752
10510         * genautomata.c (main): Don't emit an empty file even if there
10511         is no automaton.
10513 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10515         * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
10516         ix86_solaris_return_in_memory.
10517         * config/i386-protos.h: Reflect this.
10518         * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10519         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
10520         Move ...
10521         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
10523 2010-07-12  Jie Zhang  <jie@codesourcery.com>
10525         * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
10526         align the stack when it's going to be saved.
10528 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10530         PR pch/14940
10531         * config/host-solaris.c (mmap_fixed): New function.
10532         (sol_gt_pch_get_address): Use it.
10533         (sol_gt_pch_use_address): Likewise.
10535 2010-07-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10537         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
10538         pentiumpro on Solaris 8 and 9/x86.
10539         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
10540         Document SSE/SSE2 support.
10541         * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
10543 2010-07-12  Andi Kleen  <ak@linux.intel.com>
10545         * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
10546         instead of gcc_assert to print better error message for multiple
10547         prevailing defs.
10549 2010-07-12  Uros Bizjak  <ubizjak@gmail.com>
10551         * config/i386/i386.c (ix86_asm_output_function_label): Change format
10552         string placeholder from 0x%x to %#x.
10553         (ix86_code_end): Use putc to output '\n'.
10554         (ix86_print_operand) <case ';'>: Use putc to output ';'.
10556 2010-07-11  Kai Tietz  <kai.tietz@onevision.com>
10558         * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
10559         in directive -export.
10561 2010-07-10  Anatoly Sokolov  <aesok@post.ru>
10563         * reginfo.h (reg_classes_intersect_p): Change arguments type to
10564         reg_class_t.
10565         * rtl.h (reg_classes_intersect_p): Adjust prototype.
10567         * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10568         Remove macros.
10569         * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
10570         rs6000_memory_move_cost): Remove
10571         * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
10572         TARGET_MEMORY_MOVE_COST): Define.
10573         (rs6000_register_move_cost): Make static. Change arguments type from
10574         enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
10575         (rs6000_memory_move_cost): Make static. Change arguments type from
10576         'enum reg_class' to reg_class_t.
10578 2010-07-10  Sandra Loosemore  <sandra@codesourcery.com>
10580         PR middle-end/42505
10581         * tree-inline.c (estimate_num_insns): Refactor builtin complexity
10582         lookup code into....
10583         * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
10584         new functions.
10585         * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
10586         * cfgloopanal.c (target_clobbered_regs): Define.
10587         (init_set_costs): Initialize target_clobbered_regs.
10588         (estimate_reg_pressure_cost): Add call_p argument.  When true,
10589         adjust the number of available registers to exclude the
10590         call-clobbered registers.
10591         * cfgloop.h (target_clobbered_regs): Declare.
10592         (estimate_reg_pressure_cost): Adjust declaration.
10593         * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
10594         (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
10595         (determine_set_costs): Dump target_clobbered_regs.
10596         (loop_body_includes_call): New function.
10597         (tree_ssa_iv_optimize_loop): Use it to initialize new field.
10598         * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
10599         call_p flag through.
10600         (best_gain_for_invariant): Likewise.
10601         (find_invariants_to_move): Likewise.
10602         (move_single_loop_invariants): Likewise, using already-computed
10603         has_call field.
10605 2010-07-10  Richard Guenther  <rguenther@suse.de>
10606             Joern Rennecke  <joern.rennecke@embecosm.com>
10608         PR debug/44832
10609         * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
10610         (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
10611         unless they have DECL_IGNORED_P set.
10613 2010-07-10  Richard Guenther  <rguenther@suse.de>
10615         PR lto/44889
10616         * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
10617         helper function.
10618         (gimple_types_compatible_p): Similar to pointed-to
10619         types allow and merge a mix of complete and incomplete aggregate.
10620         Use gimple_fixup_complete_and_incomplete_subtype_p for that.
10621         (iterative_hash_gimple_type): Adjust for that.
10623 2010-07-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
10625         * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
10627 2010-07-10  Iain Sandoe  <iains@gcc.gnu.org>
10629         PR objc/44140
10630         * config/darwin.c (output_objc_section_asm_op): Save and restore
10631         section when outputting ObjC section list.
10633 2010-07-09  Jan Hubicka  <jh@suse.cz>
10635         * lto-streamer-out.c (produce_symtab): Do not write alias
10636         cgraph/varpool nodes.
10638 2010-07-09  Jan Hubicka  <jh@suse.cz>
10640         * tree-inline.c (declare_return_variable): Fix ICE while
10641         inlining DECL_BY_VALUE function not in SSA form
10643 2010-07-09  Changpeng Fang  <changpeng.fang@amd.com>
10645         PR tree-optimization/44576
10646         * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
10647         New.  Pull out from is_loop_prefetching_profitable to implement
10648         the trip count to ahead ratio heuristic.
10649         (mem_ref_count_reasonable_p): New.  Pull out from
10650         is_loop_prefetching_profitable to implement the instruction to
10651         memory reference ratio heuristic.  Also consider not reasonable if
10652         the memory reference count is above a threshold (to avoid
10653         explosive compilation time.
10654         (insn_to_prefetch_ratio_too_small_p): New.  Pull out from
10655         is_loop_prefetching_profitable to implement the instruction to
10656         prefetch ratio heuristic.
10657         (is_loop_prefetching_profitable): Removed.
10658         (loop_prefetch_arrays): Distribute the cost analysis across the
10659         function to allow early exit of the prefetch analysis.
10660         is_loop_prefetching_profitable is splitted into three functions,
10661         with each one called as early as possible.
10662         (PREFETCH_MAX_MEM_REFS_PER_LOOP): New.  Threshold above which the
10663         number of memory references in a loop is considered too many.
10665 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10667         * reload.c (find_reloads): Don't clear badop if we have a winreg
10668         alternative, but not win, and the class only has fixed regs.
10669         * hard-reg-set.h (class_only_fixed_regs): Declare.
10670         * reginfo.c (class_only_fixed_regs): New array.
10671         (init_reg_sets_1): Initialize it.
10672         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
10673         discourage alternatives using the stack pointer.
10675         * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
10677         * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
10679         * config/arm/arm.md (cbranchqi4): Fix array size.
10680         (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
10681         calculating length.
10683 2010-07-09  Richard Guenther  <rguenther@suse.de>
10685         * gimple.c (struct type_fixup_s): New struct and VEC type.
10686         (gimple_register_type_fixups): New static global.
10687         (gimple_queue_type_fixup): New function.
10688         (gimple_types_compatible_p): Queue type fixups instead of
10689         applying them here.
10690         (gimple_register_type): Apply queued fixups for the
10691         canonical type.  Empty the type fixup queue.
10693 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10695         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
10696         * configure: Regenerate.
10697         * config.in: Ditto.
10699 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10700             Denys Vlasenko  <dvlasenk@redhat.com>
10701             Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10703         PR tree-optimization/28632
10704         * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
10705         (extract_range_from_binary_expr): Further optimize
10706         BIT_AND_EXPR and BIT_IOR_EXPR.
10708 2010-07-09  Sebastian Pop  <sebastian.pop@amd.com>
10710         * tree-if-conv.c (fold_or_predicates): New.
10711         (add_to_predicate_list): Call it.
10713 2010-07-09  Richard Guenther  <rguenther@suse.de>
10715         PR middle-end/44890
10716         * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
10717         if base is a pointer.
10718         * tree-cfg.c (verify_expr): Update MEM_REF checking.
10720 2010-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
10722         PR target/44877
10723         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
10724         POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
10725         builtin mask for load/store builtins.
10727 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10729         * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
10730         for "lock addl".
10731         * configure: Regenerate.
10732         * config/i386/i386.c (ix86_print_operand) <case ';'>:
10733         Remove TARGET_MACHO.
10735 2010-07-09  Peter Bergner  <bergner@vnet.ibm.com>
10737         * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
10738         default ISA flags.
10739         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
10741 2010-07-09  Tom de Vries  <tjvries@xs4all.nl>
10743         * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
10745 2010-07-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
10747         * config/picochip/picochip.md (commsTestPort): Emit more
10748         efficient sequence for tstport instruction.
10750 2010-07-09  Uros Bizjak  <ubizjak@gmail.com>
10752         * config/i386/i386.c (ix86_veclib_handler): Make static.
10754 2010-07-09  Richard Guenther  <rguenther@suse.de>
10756         PR tree-optimization/44852
10757         * tree-ssa-alias.c: Include toplev.h for exact_log2.
10758         (indirect_ref_may_alias_decl_p): Properly handle negative offsets
10759         in MEM_REF.
10760         (indirect_refs_may_alias_p): Likewise.
10761         * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
10763 2010-07-09  Richard Guenther  <rguenther@suse.de>
10765         PR tree-optimization/44882
10766         * tree-vect-stmts.c (vectorizable_store): Do not assert alias
10767         sets do conflict.
10768         (vectorizable_load): Likewise.
10770 2010-07-09  Bernd Schmidt  <bernds@codesourcery.com>
10772         PR target/40657
10773         * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
10774         All callers changed.
10775         Handle the case when we're called for the epilogue.
10776         (thumb_unexpanded_epilogue): Use it.
10777         (thumb1_expand_epilogue): Likewise.
10779 2010-07-09  Jakub Jelinek  <jakub@redhat.com>
10781         * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
10782         both ranges are range_int_cst_p with non-negative minimum,
10783         try harder to derive smaller range.
10785 2010-07-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10787         * genrecog.c: Include diagnostic-core.h before toplev.h.
10788         * genoutput.c: Likewise.
10789         * genextract.c: Likewise.
10790         * genautomata.c: Likewise.
10791         * genemit.c: Likewise.
10792         * genpeep.c: Likewise.
10793         * genattrtab.c: Likewise.
10794         * genconditions.c: Likewise.
10795         * genpreds.c: Likewise.
10797 2010-07-08  Andi Kleen  <ak@linux.intel.com>
10799         * lto-section-in.c (lto_section_name): Add missing comma.
10801 2010-07-08  Anatoly Sokolov  <aesok@post.ru>
10803         * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
10804         * config/ia64/ia64-protos.h (ia64_override_options): Remove.
10805         * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
10806         (ia64_override_options): Rename to...
10807         (ia64_option_override): ... this one. Make static.
10809 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10811         PR middle-end/44843
10812         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
10813         pointed-to type of the offset in a MEM_REF to compute the alignment.
10815 2010-07-08  Kai Tietz  <kai.tietz@onevision.com>
10817         * final.c (final_scan_insn): Replace
10818         TARGET_UNWIND_INFO macro check by unwind_emit
10819         hook NULL check.
10820         * targhooks.c (default_unwind_emit): Removed.
10821         * targhooks.h (default_unwind_emit): Likewise.
10822         * target.def (unwind_emit): Set default value to NULL.
10824         * config/i386/i386-protos.h (ix86_asm_output_function_label):
10825         New prototype.
10826         * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
10827         for NULL fntype argument and allow 64-bit targets.
10828         (ix86_asm_output_function_label): New function.
10829         (ix86_expand_prologue): Handle 64-bit ms hook prologue.
10830         (ix86_handle_fndecl_attribute): Likewise.
10831         * doc/extend.texi (ms_hook_prologue): Adjust documentation.
10832         * doc/doc/tm.texi: Regenerated.
10833         * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
10834         (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
10835         * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
10836         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
10837         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10838         * config/elfos.h: Likewise.
10839         * config/i386/cygming.h: Likewise.
10840         * config/netbsd-aout.h: Likewise.
10841         * config/openbsd.h: Likewise.
10842         * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
10843         by ix86_asm_output_function_label function call.
10844         * varasm.c (assemble_start_function): Use
10845         ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
10847 2010-07-08  Jan Hubicka  <jh@suse.cz>
10849         * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
10850         New function.
10851         * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
10852         Declare.
10853         * ipa-cp.c (ipcp_estimate_growth): Use it.
10854         * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
10855         Likewise.
10857 2010-07-08  Jan Hubicka  <jh@suse.cz>
10859         * tree-inline.c (declare_return_variable): Allocate annotation for new
10860         temporary.
10862 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10864         PR tree-optimization/44710
10865         * tree-if-conv.c (parse_predicate): New.
10866         (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
10867         Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
10869 2010-07-08  Sebastian Pop  <sebastian.pop@amd.com>
10871         * common.opt (ftree-loop-if-convert): New flag.
10872         * doc/invoke.texi (ftree-loop-if-convert): Documented.
10873         * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
10874         when flag_tree_loop_if_convert is set.
10876 2010-07-08  Uros Bizjak  <ubizjak@gmail.com>
10878         * config/i386/i386.c: Use short syntax for function calls
10879         through function pointers.
10880         * config/i386/i386.md: Ditto.
10882 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10884         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
10886 2010-07-08  Richard Guenther  <rguenther@suse.de>
10888         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
10889         stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
10891 2010-07-08  Jakub Jelinek  <jakub@redhat.com>
10893         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
10894         instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
10895         (loc_list_from_tree): Likewise.
10896         (output_loc_operands): Handle outputting DW_OP_const[48]u
10897         with loc->dtprel set.
10898         (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
10900 2010-07-08  Jan Hubicka  <jh@suse.cz>
10902         * ipa.c: Include pointer-set.h
10903         (cgraph_externally_visible_p): New attribute ALIASED;
10904         when in LTO, hidden symbols are local unless they are aliased.
10905         (function_and_variable_visibility): Compute aliased nodes;
10906         handle LTO and hidden symbol on functions and vars.
10907         * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
10908         for COMDAT symbols; handle COMDAT_GROUPS also at vars.
10910 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10912         * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10913         * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10914         * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10915         * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10916         * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10917         * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
10918         (ix86_gen_probe_stack_range): Likewise.
10919         (override_options): Set them.
10920         (ix86_target_stack_probe): New function.
10921         (ix86_compute_frame_layout): Force use of push instructions to
10922         save registers if stack checking with probes is enabled.
10923         (get_scratch_register_on_entry): New function.
10924         (release_scratch_register_on_entry): Likewise.
10925         (ix86_adjust_stack_and_probe): Likewise.
10926         (output_adjust_stack_and_probe): Likewise.
10927         (ix86_emit_probe_stack_range): Likewise.
10928         (output_probe_stack_range): Likewise.
10929         (ix86_expand_prologue): Emit stack checking code if static built-in
10930         stack checking is enabled.
10931         Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
10932         * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
10933         (output_adjust_stack_and_probe): Likewise.
10934         (output_probe_stack_range): Likewise.
10935         * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10936         (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
10937         TARGET_STACK_PROBE.
10938         (allocate_stack_worker_64): Likewise.
10939         (allocate_stack): Likewise.
10940         (adjust_stack_and_probe): New insn.
10941         (probe_stack_range): Likewise.
10943 2010-07-08  Richard Guenther  <rguenther@suse.de>
10945         PR tree-optimization/44831
10946         * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
10947         a MEM_REF preserving TBAA info of the original dereference.
10948         Dereference the original pointer if the address is not invariant.
10949         (propagate_with_phi): Fixup type checks wrt MEM_REFs.  Require
10950         at least one invariant address that we are going to dereference.
10952 2010-07-08  Richard Guenther  <rguenther@suse.de>
10954         PR tree-optimization/44861
10955         * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
10956         information when building MEM_REFs.
10957         (vectorizable_load): Likewise.
10958         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
10960 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10962         * config/sol2-c.c: Do not include diagnostic-core.h.
10964 2010-07-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10966         PR bootstrap/44768
10967         * cfgexpand.c (estimated_stack_frame_size): Make self-contained
10968         with respect to current_function_decl. Pass decl of the function.
10969         * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
10970         * ipa-inline.c (compute_inline_parameters): Pass decl to
10971         estimated_stack_frame_size.
10973 2010-07-08  Richard Guenther  <rguenther@suse.de>
10975         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10976         New function.
10977         (valueize_refs): Call it.
10979 2010-07-08  Richard Guenther  <rguenther@suse.de>
10981         PR rtl-optimization/44838
10982         * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
10983         SSA form do not use pointer equivalence.
10985 2010-07-08  Eric Botcazou  <ebotcazou@adacore.com>
10987         * dwarf2out.c (AT_linkage_name): Delete.
10988         (add_linkage_attr): New function.
10989         (add_linkage_name): Call it to emit the linkage attribute.
10990         (dwarf2out_finish): Likewise.
10991         (move_linkage_attr): Explicitly accept both attribute variants.
10993 2010-07-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10995         * toplev.h: Do not include diagnostic-core.h.
10996         Include diagnostic-core.h in every file that includes toplev.h.
10997         * c-tree.h: Do not include toplev.h.
10998         * pretty-print.h: Update comment.
10999         * Makefile.in: Update dependencies.
11000         * alias.c: Include diagnostic-core.h in every file that includes
11001         toplev.h.
11002         * attribs.c: Likewise.
11003         * auto-inc-dec.c: Likewise.
11004         * bb-reorder.c: Likewise.
11005         * bt-load.c: Likewise.
11006         * caller-save.c: Likewise.
11007         * calls.c: Likewise.
11008         * cfg.c: Likewise.
11009         * cfganal.c: Likewise.
11010         * cfgbuild.c: Likewise.
11011         * cfgcleanup.c: Likewise.
11012         * cfghooks.c: Likewise.
11013         * cfgloop.c: Likewise.
11014         * combine.c: Likewise.
11015         * config/alpha/alpha.c: Likewise.
11016         * config/arc/arc.c: Likewise.
11017         * config/arm/arm.c: Likewise.
11018         * config/arm/pe.c: Likewise.
11019         * config/avr/avr.c: Likewise.
11020         * config/bfin/bfin.c: Likewise.
11021         * config/cris/cris.c: Likewise.
11022         * config/crx/crx.c: Likewise.
11023         * config/darwin-c.c: Likewise.
11024         * config/darwin.c: Likewise.
11025         * config/fr30/fr30.c: Likewise.
11026         * config/frv/frv.c: Likewise.
11027         * config/h8300/h8300.c: Likewise.
11028         * config/host-darwin.c: Likewise.
11029         * config/i386/i386.c: Likewise.
11030         * config/i386/netware.c: Likewise.
11031         * config/i386/nwld.c: Likewise.
11032         * config/i386/winnt-cxx.c: Likewise.
11033         * config/i386/winnt-stubs.c: Likewise.
11034         * config/i386/winnt.c: Likewise.
11035         * config/ia64/ia64-c.c: Likewise.
11036         * config/ia64/ia64.c: Likewise.
11037         * config/iq2000/iq2000.c: Likewise.
11038         * config/lm32/lm32.c: Likewise.
11039         * config/m32c/m32c-pragma.c: Likewise.
11040         * config/m32c/m32c.c: Likewise.
11041         * config/m32r/m32r.c: Likewise.
11042         * config/m68hc11/m68hc11.c: Likewise.
11043         * config/m68k/m68k.c: Likewise.
11044         * config/mcore/mcore.c: Likewise.
11045         * config/mep/mep-pragma.c: Likewise.
11046         * config/mep/mep.c: Likewise.
11047         * config/mmix/mmix.c: Likewise.
11048         * config/mn10300/mn10300.c: Likewise.
11049         * config/moxie/moxie.c: Likewise.
11050         * config/pa/pa.c: Likewise.
11051         * config/pdp11/pdp11.c: Likewise.
11052         * config/picochip/picochip.c: Likewise.
11053         * config/rs6000/rs6000-c.c: Likewise.
11054         * config/rs6000/rs6000.c: Likewise.
11055         * config/rx/rx.c: Likewise.
11056         * config/s390/s390.c: Likewise.
11057         * config/score/score.c: Likewise.
11058         * config/score/score3.c: Likewise.
11059         * config/score/score7.c: Likewise.
11060         * config/sh/sh.c: Likewise.
11061         * config/sh/symbian-base.c: Likewise.
11062         * config/sh/symbian-c.c: Likewise.
11063         * config/sh/symbian-cxx.c: Likewise.
11064         * config/sol2-c.c: Likewise.
11065         * config/sol2.c: Likewise.
11066         * config/sparc/sparc.c: Likewise.
11067         * config/spu/spu.c: Likewise.
11068         * config/stormy16/stormy16.c: Likewise.
11069         * config/v850/v850-c.c: Likewise.
11070         * config/v850/v850.c: Likewise.
11071         * config/vax/vax.c: Likewise.
11072         * config/vxworks.c: Likewise.
11073         * config/xtensa/xtensa.c: Likewise.
11074         * convert.c: Likewise.
11075         * cse.c: Likewise.
11076         * cselib.c: Likewise.
11077         * dbgcnt.c: Likewise.
11078         * dbxout.c: Likewise.
11079         * ddg.c: Likewise.
11080         * dominance.c: Likewise.
11081         * emit-rtl.c: Likewise.
11082         * explow.c: Likewise.
11083         * expmed.c: Likewise.
11084         * fixed-value.c: Likewise.
11085         * fold-const.c: Likewise.
11086         * fwprop.c: Likewise.
11087         * gcse.c: Likewise.
11088         * ggc-common.c: Likewise.
11089         * ggc-page.c: Likewise.
11090         * ggc-zone.c: Likewise.
11091         * gimple-low.c: Likewise.
11092         * gimplify.c: Likewise.
11093         * graph.c: Likewise.
11094         * haifa-sched.c: Likewise.
11095         * ifcvt.c: Likewise.
11096         * implicit-zee.c: Likewise.
11097         * integrate.c: Likewise.
11098         * ira-build.c: Likewise.
11099         * ira-color.c: Likewise.
11100         * ira-conflicts.c: Likewise.
11101         * ira-costs.c: Likewise.
11102         * ira-lives.c: Likewise.
11103         * ira.c: Likewise.
11104         * lists.c: Likewise.
11105         * loop-doloop.c: Likewise.
11106         * loop-iv.c: Likewise.
11107         * lto-opts.c: Likewise.
11108         * lto-symtab.c: Likewise.
11109         * main.c: Likewise.
11110         * modulo-sched.c: Likewise.
11111         * optabs.c: Likewise.
11112         * params.c: Likewise.
11113         * plugin.c: Likewise.
11114         * postreload-gcse.c: Likewise.
11115         * postreload.c: Likewise.
11116         * predict.c: Likewise.
11117         * profile.c: Likewise.
11118         * real.c: Likewise.
11119         * regcprop.c: Likewise.
11120         * reginfo.c: Likewise.
11121         * regmove.c: Likewise.
11122         * reorg.c: Likewise.
11123         * resource.c: Likewise.
11124         * rtl.c: Likewise.
11125         * rtlanal.c: Likewise.
11126         * sched-deps.c: Likewise.
11127         * sched-ebb.c: Likewise.
11128         * sched-rgn.c: Likewise.
11129         * sdbout.c: Likewise.
11130         * sel-sched-dump.c: Likewise.
11131         * sel-sched-ir.c: Likewise.
11132         * simplify-rtx.c: Likewise.
11133         * stmt.c: Likewise.
11134         * stor-layout.c: Likewise.
11135         * store-motion.c: Likewise.
11136         * targhooks.c: Likewise.
11137         * tree-cfg.c: Likewise.
11138         * tree-cfgcleanup.c: Likewise.
11139         * tree-dump.c: Likewise.
11140         * tree-eh.c: Likewise.
11141         * tree-inline.c: Likewise.
11142         * tree-nomudflap.c: Likewise.
11143         * tree-object-size.c: Likewise.
11144         * tree-optimize.c: Likewise.
11145         * tree-outof-ssa.c: Likewise.
11146         * tree-phinodes.c: Likewise.
11147         * tree-profile.c: Likewise.
11148         * tree-ssa-ccp.c: Likewise.
11149         * tree-ssa-coalesce.c: Likewise.
11150         * tree-ssa-live.c: Likewise.
11151         * tree-ssa-loop-niter.c: Likewise.
11152         * tree-ssa-loop-prefetch.c: Likewise.
11153         * tree-ssa-loop.c: Likewise.
11154         * tree-ssa-structalias.c: Likewise.
11155         * tree-ssa-uninit.c: Likewise.
11156         * tree-ssa.c: Likewise.
11157         * tree-vect-data-refs.c: Likewise.
11158         * tree-vect-loop-manip.c: Likewise.
11159         * tree-vect-loop.c: Likewise.
11160         * tree-vect-patterns.c: Likewise.
11161         * tree-vect-stmts.c: Likewise.
11162         * tree-vrp.c: Likewise.
11163         * varasm.c: Likewise.
11164         * vec.c: Likewise.
11165         * web.c: Likewise.
11166         * xcoffout.c: Likewise.
11168 2010-07-07  Richard Sandiford  <rdsandiford@googlemail.com>
11170         * gengtype.c (write_field_root): New function.
11171         (write_root): Use it.
11173 2010-07-07  Wei Guozhi  <carrot@google.com>
11175         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11176         of lowest bits to lshift/compare): Add a missing line.
11178 2010-07-07  Wei Guozhi  <carrot@google.com>
11180         * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
11181         of lowest bits to lshift/compare): New.
11183 2010-07-07  Tom Tromey  <tromey@redhat.com>
11185         * doc/tm.texi: Update.
11186         * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
11187         Add @hook.
11188         * target.def (want_debug_pub_sections): New hook.
11189         * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
11190         * dwarf2out.c (add_pubname_string): Check
11191         targetm.want_debug_pub_sections.
11192         (add_pubname): Likewise.
11193         (add_pubtype): Likewise.
11195 2010-07-07  Jie Zhang  <jie@codesourcery.com>
11197         * genautomata.c (output_automata_list_min_issue_delay_code):
11198         Correctly decompress min_issue_delay.
11200 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11202         PR rtl-optimization/44404
11203         * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
11204         possible, use reg_overlap_mentioned_p instead.
11206 2010-07-07  Duncan Sands  <baldrick@free.fr>
11208         PR middle-end/41355
11209         * tree.c (build_function_type_skip_args): Copy the original type using
11210         build_distinct_type_copy rather than copy_node.
11212 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11214         PR target/44850
11215         * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
11216         revision 161876.
11217         (ix86_expand_prologue): Likewise.
11218         (ix86_handle_fndecl_attribute): Likewise.
11219         (ix86_asm_declare_function_name): Likewise.
11220         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11221         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11222         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
11223         * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
11224         * doc/extend.texi: Likewise.
11226 2010-07-07  H.J. Lu  <hongjiu.lu@intel.com>
11228         PR target/44844
11229         * config/i386/i386.md (rdrand<mode>): Changed to expand to
11230         retry if the carry flag isn't valid.
11231         (rdrand<mode>_1): New.
11233 2010-07-07  Richard Guenther  <rguenther@suse.de>
11235         PR middle-end/44790
11236         * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
11237         for expanding the constant offset for MEM_REFs.
11239 2010-07-07  Richard Guenther  <rguenther@suse.de>
11241         * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
11242         * tree-ssa-propagate.c (valid_gimple_call_p): Make static.  Fix.
11243         * gimple.h (is_gimple_operand): Remove.
11244         * gimple.c (is_gimple_operand): Likewise.
11245         (walk_gimple_op): Fix wi->val_only setting for calls.
11246         * tree-cfg.c (verify_gimple_call): Fix argument validation.
11247         * tree-profile.c (tree_gen_ic_func_profiler): Do not create
11248         invalid gimple calls.
11250 2010-07-06  Jan Hubicka  <jh@suse.cz>
11252         * lto-cgraph.c (output_cgraph): Add missing declaration.
11254 2010-07-06  Jan Hubicka  <jh@suse.cz>
11256         * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
11257         partition.
11259 2010-07-06  Alexandre Oliva  <aoliva@redhat.com>
11261         * doc/gimple.texi (GIMPLE_DEBUG): Document.
11262         * doc/rtl.texi (Debug Information): New node.
11263         (NOTE_INSN_VAR_LOCATION): Document.
11264         (debug_insn): Likewise.
11265         * doc/generic.texi (DEBUG_EXPR_DECL): Document.
11267 2010-07-07  Jan Hubicka  <jh@suse.cz>
11269         With parts by Richard Guenther.
11271         PR middle-end/44813
11272         * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
11273         for functions passed by reference.
11274         * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
11275         in memory when passed by reference.
11276         * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
11277         beggining.
11278         * ipa-split.c (split_function): Cleanup way return value is passed;
11279         handle SSA DECL_BY_REFERENCE retvals.
11280         * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
11281         DECL_BY_REFERENCE is set.
11282         * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
11283         find_what_p_points_to): Handle RESULT_DECL.
11284         * tree-inline.c (declare_return_variable): Get new entry_block argument;
11285         when passing by reference ensure that RESULT_DECL is gimple_val.
11286         (remap_gimple_op_r): Remap RESULT_DECL ssa name.
11287         (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
11289 2010-07-07  Bernd Schmidt  <bernds@codesourcery.com>
11291         PR rtl-optimization/44787
11292         * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
11293         * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
11295 2010-07-06  Jan Hubicka  <jh@suse.cz>
11297         * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
11298         (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
11299         with body can prevail.
11300         (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
11301         (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
11302         * cgraph.c (cgraph_get_node_or_alias): New function.
11303         * cgraph.h (cgraph_get_node_or_alias): Declare.
11305 2010-07-06  Kai Tietz  <kai.tietz@onevision.com>
11307         * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
11308         support.
11309         (ix86_expand_prologue): Likewise.
11310         (ix86_handle_fndecl_attribute): Likewise.
11311         (ix86_asm_declare_function_name): New function for
11312         ASM_DECLARE_FUNCTION_NAME.
11313         * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
11314         * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
11315         (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
11316         * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
11317         * doc/extend.texi: Adjust documentation about ms_hook_prologue
11318         attribute.
11320 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11322         * config/i386/i386.md (immediate_operand): New mode attribute.
11324         (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
11325         pro_epilogue_adjust_stack  and pro_epilogue_adjust_stack_rex64
11326         using P mode iterator.
11327         (pro_epilogue_adjust_stack_di_2): Rename from
11328         pro_epilogue_adjust_stack_rex64_2.
11330         * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
11332 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11334         * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
11335         through gen_mov_insv_1 function pointer.
11336         (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
11337         gen_truncxf<mode>2 through gen_truncxf function pointer.
11338         (remainder<mode>3): Ditto.
11339         (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
11340         (allocate_stack): Call gen_allocate_stack_worker_64 or
11341         gen_allocate_stack_worker_32 through gen_allocate_stack_worker
11342         function pointer.
11343         (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
11344         function pointer.
11346 2010-07-06  Uros Bizjak  <ubizjak@gmail.com>
11348         * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
11349         operand constraint instead of <r><i>m.
11351 2010-07-06  Richard Guenther  <rguenther@suse.de>
11353         PR middle-end/44828
11354         * convert.c (convert_to_integer): Watch out for overflowing
11355         MULT_EXPR as well.
11357 2010-07-05  Jan Hubicka  <jh@suse.cz>
11359         * lto-streamer.c (write_symbol_vec): Rename to ...
11360         (write_symbol) ... this one; write only symbol given and when
11361         present in cache. Sanity check that what is defined is present
11362         in cgraph/varpool with body/finalized decl.
11363         (write_symbols_of_kind): Remove.
11364         (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
11365         pairs to produce symtab.
11366         (produce_asm_for_decls): Update call of produce_symtab; don't do so
11367         when doing WPA streaming.
11369 2010-07-05  Jan Hubicka  <jh@suse.cz>
11371         * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
11372         function is still available to fold into.
11374 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11376         * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
11377         * function.h (struct_function): Change type of local_decls field
11378         to a VEC.
11379         (add_local_decl): New function.
11380         (FOR_EACH_LOCAL_DECL): New macro.
11381         * cfgexpand.c (init_vars_expansion): Adjust for new type of
11382         cfun->local_decls.
11383         (estimated_stack_frame_size): Likewise.
11384         (expand_used_vars): Likewise.
11385         * cgraphbuild.c (build_cgraph_edges): Likewise.
11386         * function.c (instantiate_decls_1): Likewise.
11387         * ipa-struct-reorg.c (build_data_structure): Likewise.
11388         * ipa-type-escape.c (analyze_function): Likewise.
11389         * lto-streamer-in.c (input_function): Likewise.
11390         * lto-streamer-out.c (output_function): Likewise.
11391         * tree-ssa-live.c (remove_unused_locals): Likewise.
11392         * tree.c (free_lang_data_in_decl): Likewise.
11393         (find_decls_types_in_node): Likewise.
11394         * omp-low.c (remove_exit_barrier): Likewise.
11395         (expand_omp_taskreg): Likewise.
11396         (list2chain): Rename to...
11397         (vec2chain): ...this.  Adjust.
11398         * cgraphunit.c (assemble_thunk): Call add_local_decl.
11399         * tree-cfg.c (replace_by_duplicate_decl): Likewise.
11400         * gimple-low.c (record_vars_into): Likewise.
11401         * tree-inline.c (remap_decls): Likewise.
11402         (declare_return_variable): Likewise.
11403         (declare_inline_vars): Likewise.
11404         (copy_forbidden): Adjust for new type of cfun->local_decls.
11405         (add_local_variables): New function.
11406         (expand_call_inline): Call it.
11407         (tree_function_versioning): Likewise.
11409 2010-07-05  H.J. Lu  <hongjiu.lu@intel.com>
11411         AVX Programming Reference (June, 2010)
11412         * config/i386/cpuid.h (bit_F16C): New.
11413         (bit_RDRND): Likewise.
11414         (bit_FSGSBASE): Likewise.
11416         * config/i386/i386-builtin-types.def: Add
11417         "DEF_FUNCTION_TYPE (UINT16)", function types for
11418         float16 <-> float conversions and
11419         "DEF_FUNCTION_TYPE (VOID, UINT64)".
11421         * config/i386/i386-c.c (ix86_target_macros_internal): Support
11422         OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
11423         OPTION_MASK_ISA_F16C.
11425         * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
11426         (OPTION_MASK_ISA_RDRND_SET): Likewise.
11427         (OPTION_MASK_ISA_F16C_SET): Likewise.
11428         (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
11429         (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
11430         (OPTION_MASK_ISA_F16C_UNSET): Likewise.
11431         (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
11432         (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
11433         (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
11434         (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
11435         (override_options): Handle them.
11436         (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
11437         (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
11438         IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
11439         IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
11440         IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
11441         IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
11442         IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
11443         IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
11444         IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
11445         (bdesc_args): Likewise.
11446         (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
11447         V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
11448         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
11449         VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
11450         Handle non-memory store.
11452         * config/i386/i386.h (TARGET_FSGSBASE): New.
11453         (TARGET_RDRND): Likewise.
11454         (TARGET_F12C): Likewise.
11456         * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
11457         (UNSPEC_VCVTPS2PH): Likewise.
11458         (UNSPECV_RDFSBASE): Likewise.
11459         (UNSPECV_RDGSBASE): Likewise.
11460         (UNSPECV_WRFSBASE): Likewise.
11461         (UNSPECV_WRGSBASE): Likewise.
11462         (UNSPECV_RDRAND): Likewise.
11463         (rdfsbase<mode>): Likewise.
11464         (rdgsbase<mode>): Likewise.
11465         (wrfsbase<mode>): Likewise.
11466         (wrgsbase<mode>): Likewise.
11467         (rdrand<mode>): Likewise.
11469         * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
11471         * config/i386/immintrin.h (_rdrand_u16): New.
11472         (_rdrand_u32): Likewise.
11473         (_readfsbase_u32): Likewise.
11474         (_readfsbase_u64): Likewise.
11475         (_readgsbase_u32): Likewise.
11476         (_readgsbase_u64): Likewise.
11477         (_writefsbase_u32): Likewise.
11478         (_writefsbase_u64): Likewise.
11479         (_writegsbase_u32): Likewise.
11480         (_writegsbase_u64): Likewise.
11481         (_rdrand_u64): Likewise.
11482         (_cvtsh_ss): Likewise.
11483         (_mm_cvtph_ps): Likewise.
11484         (_mm256_cvtph_ps): Likewise.
11485         (_cvtss_sh): Likewise.
11486         (_mm_cvtps_ph): Likewise.
11487         (_mm256_cvtps_ph): Likewise.
11489         * config/i386/sse.md (vcvtph2ps): New.
11490         (*vcvtph2ps_load): Likewise.
11491         (vcvtph2ps256): Likewise.
11492         (vcvtps2ph): Likewise.
11493         (*vcvtps2ph): Likewise.
11494         (*vcvtps2ph_store): Likewise.
11495         (vcvtps2ph256): Likewise.
11497         * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
11499         * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
11501 2010-07-05  Joern Rennecke  <joern.rennecke@embecosm.com>
11503         PR bootstrap/44512
11504         * genenums.c (main): Output include of insn-constants.h
11505         * Makefile.in (insn-enums.o): Depend on insn-constants.h.
11507 2010-07-05  Uros Bizjak  <ubizjak@gmail.com>
11509         * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
11510         (override_options): Initialize it.
11511         (ix86_expand_prologue): Use it.
11513 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11515         * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
11517 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11519         * double-int.h (fit_double_type): Remove declaration.
11520         * double-int.c (fit_double_type): Remove function.
11521         * tree.h (int_fits_type_p): Adjust prototype.
11522         * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
11523         instead of fit_double_type.
11524         (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
11525         instead of fit_double_type and build_int_cst_wide.
11526         * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
11527         instead of fit_double_type and build_int_cst_wide.
11528         (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
11529         of fit_double_type.
11531 2010-07-05  Jan Hubicka  <jh@suse.cz>
11533         * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
11534         in_other_partition.
11535         * lto-cgraph.c (referenced_from_other_partition_p,
11536         reachable_from_other_partition_p): Use in_other_partition flags.
11537         (output_node, output_varpool_node): COMDAT nodes always have private
11538         copies and thus are never used from other partition.
11540 2010-07-05  Anatoly Sokolov  <aesok@post.ru>
11542         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
11543         * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
11544         * config/ia64/ia64.c Include reload.h.
11545         (ia64_memory_move_cost): New function.
11546         (TARGET_MEMORY_MOVE_COST): Define.
11547         (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
11548         memory_move_cost.
11550 2010-07-05  Sandra Loosemore  <sandra@codesourcery.com>
11552         PR middle-end/42505
11553         * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
11554         comments about cost model.
11555         (try_add_cand_for):  Add second strategy for choosing initial set
11556         based on original IVs, controlled by ORIGINALP argument.
11557         (get_initial_solution): Add ORIGINALP argument.
11558         (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
11559         (find_optimal_iv_set): Try two different strategies for choosing
11560         the IV set, and return the one with lower cost.
11562 2010-07-05  Richard Guenther  <rguenther@suse.de>
11564         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
11566 2010-07-05  Richard Guenther  <rguenther@suse.de>
11568         * tree.c (reference_alias_ptr_type): New function.
11569         * tree.h (reference_alias_ptr_type): Declare.
11570         * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
11571         allow non-TARGET_MEM_REF new refs.
11572         (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
11573         * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
11574         Build a MEM_REF instead of a TARGET_MEM_REF if possible.
11575         (create_mem_ref): Get alias pointer type.  Adjust calls to
11576         create_mem_ref_raw.
11577         (maybe_fold_tmr): Likewise.
11578         * tree-flow.h (create_mem_ref): Adjust prototype.
11580 2010-07-05  Jakub Jelinek  <jakub@redhat.com>
11582         PR c++/44808
11583         * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
11584         *from_p is VAR_DECL.
11586 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11588         * tree.h (build_call_list): Remove.
11589         * tree.c (build_call_list): Remove.
11591 2010-07-05  Richard Guenther  <rguenther@suse.de>
11593         * double-int.h (double_int_sub): Declare.
11594         * double-int.c (double_int_sub): New function.
11595         * dwarf2out.c (field_byte_offset): Use it.
11596         * fixed-value.c (do_fixed_add): Likewise.
11597         (do_fixed_multiply): Likewise.
11598         (do_fixed_divide): Likewise.
11599         * tree-predcom.c (add_ref_to_chain): Likewise.
11600         (determine_roots_comp): Likewise.
11601         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
11603 2010-07-05  Nathan Froyd  <froydnj@codesourcery.com>
11605         * vec.h (VEC_splice, VEC_safe_splice): New macros.  Add function
11606         implementations.
11608 2010-07-05  Bernd Schmidt  <bernds@codesourcery.com>
11610         * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
11611         * arm-modes.def (CC_NOTB): Don't define.
11612         * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
11613         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
11614         (LTUGEU): New code_iterator.
11615         (cnb, optab): New corresponding code_attrs.
11616         (addsi3_carryin_<optab>): Renamed from addsi3_carryin.  Change pattern
11617         to canonical form.  Operands 1 and 2 are commutative.  Parametrize
11618         using LTUGEU.
11619         (addsi3_carryin_shift_<optab>): Likewise.
11620         (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
11621         Operands 1 and 2 are commutative.  Parametrize using LTUGEU.
11622         (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
11623         (subsi3_compare): Renamed from subsi3_compare0_c.
11624         Change CC_NOTB to CC.
11625         (arm_subsi3_insn): Allow constants for operand 0.
11626         (compare_scc peephole for eq case): New.
11627         (compare_scc splitters): Change CC_NOTB to CC.
11629 2010-07-05  Richard Guenther  <rguenther@suse.de>
11631         * tree-ssa-loop-im.c (for_each_index): Do not handle
11632         ALIGN_INDIRECT_REF.
11633         (gen_lsm_tmp_name): Likewise.
11634         * tree-dump.c (dequeue_and_dump): Likewise.
11635         * tree-pretty-print.c (dump_generic_node): Likewise.
11636         (op_code_prio): Likewise.
11637         (op_symbol_code): Likewise.
11638         * tree.c (staticp): Likewise.
11639         (build1_stat): Likewise.
11640         * tree.h (INDIRECT_REF_P): Likewise.
11641         * fold-const.c (maybe_lvalue_p): Likewise.
11642         (operand_equal_p): Likewise.
11643         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11644         (ao_ref_init_from_vn_reference): Likewise.
11645         * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11646         (find_interesting_uses_address): Likewise.
11647         * dwarf2out.c (loc_list_from_tree): Likewise.
11648         * gimplify.c (gimplify_expr): Likewise.
11649         * tree-eh.c (tree_could_trap_p): Likewise.
11650         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
11651         * cfgexpand.c (expand_debug_expr): Likewise.
11652         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11653         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11654         * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11655         * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
11656         * tree-ssa-operands.c (get_expr_operands): Likewise.
11657         * expr.c (safe_from_p): Likewise.
11658         (expand_expr_real_1): Likewise.  TER BIT_AND_EXPRs into MEM_REFs.
11659         * tree-vect-data-refs.c (vect_setup_realignment): Build
11660         BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
11661         * tree-vect-stmts.c (vectorizable_load): Likewise.
11662         * tree.def (ALIGN_INDIRECT_REF): Remove.
11664 2010-07-05  Richard Guenther  <rguenther@suse.de>
11666         PR tree-optimization/44784
11667         * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
11668         for inserted stmts.
11669         (find_or_generate_expression): Fix SCCVN insertion check.
11671 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
11673         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
11674         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
11675         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
11676         directives.
11678 2010-07-05  Ira Rosen  <irar@il.ibm.com>
11680         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11681         statements that are not vectorized.
11682         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
11683         in INSIDE_COST.
11685 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
11687         PR bootstrap/44820
11688         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
11690 2010-07-05  Richard Guenther  <rguenther@suse.de>
11692         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
11693         RESULT_DECLs properly.
11695 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
11697         PR rtl-optimization/44695
11698         * config/i386/i386.md (extract_code): Removed.
11699         (<u>divmodqi4): Likewise.
11700         (divmodqi4): New.
11701         (udivmodqi4): Likewise.
11702         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
11703         (udivmodhiqi3): Likewise.
11705 2010-07-04  Jan Hubicka  <jh@suse.cz>
11707         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
11709 2010-07-04  Jan Hubicka  <jh@suse.cz>
11711         * cgraphunit.c (init_cgraph): Only initialize dump file if it
11712         is not already initialized.
11714 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11716         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
11717         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
11718         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
11719         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
11720         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
11721         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
11722         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
11723         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11724         (sync_new_nand_optab): Redefine as macros.
11725         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
11726         Delete.
11727         (direct_optab_index): New enum.
11728         (direct_optab_d): New structure.
11729         (direct_optab): New typedef.
11730         (direct_optab_table): Declare.
11731         (direct_optab_handler, set_direct_optab_handler): New functions.
11732         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
11733         (sync_lock_release_optab): New macros.
11734         * optabs.c (direct_optab_table): New variable.
11735         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
11736         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
11737         cmpstr_optab and cmpstrn_optab.
11738         (emit_conditional_move): Likewise for movcc_optab.
11739         (can_conditionally_move_p): Likewise for movcc_gen_code.
11740         (init_insn_codes): Clear direct_optab_table.
11741         (init_optabs): Don't initialize the new "direct optabs" here.
11742         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
11743         vcond_gen_code.
11744         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
11745         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
11746         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
11747         (expand_sync_operation): Likewise other sync_*_optabs.
11748         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
11749         to sync_compare_and_swap_optab.
11750         (expand_sync_lock_test_and_set): Use direct_optab_handler for
11751         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
11752         to the names of both.
11753         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
11754         cmpstr_optab and cmpstrn_optab.
11755         (expand_builtin_lock_release): Likewise sync_lock_release.
11756         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
11757         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
11758         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
11759         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
11760         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
11761         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
11762         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
11763         (sync_lock_test_and_set, sync_lock_release): Delete.
11764         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
11765         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
11766         * genopinit.c (optabs): Use set_direct_optab_handler for the new
11767         macro optabs.
11768         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
11769         the "optab" local variable.  Use direct_optab_handler for optab and
11770         sync_compare_and_swap_optab.
11771         * reload1.c (reload_in_optab, reload_out_optab): Delete.
11772         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
11773         reload_in_optab and reload_out_optab.
11774         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
11775         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
11776         * config/pa/pa.c (pa_secondary_reload): Likewise.
11777         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
11778         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
11779         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
11780         (VMSupportsCS8_builtin): Likewise.
11782 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11784         * optabs.h (optab_handlers): Change type of insn_code to int.
11785         (optab_handler, set_optab_handler, convert_optab_handler)
11786         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
11787         CODE_FOR_nothing".
11788         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
11789         (init_insn_codes): Zero both the above arrays.
11790         (init_optabs): Never call init_insn_codes first time around.
11792 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
11794         * optabs.h (optab_handler, convert_optab_handler): Turn into
11795         inline functions that return an insn code.
11796         (set_optab_handler, set_convert_optab_handler): New functions.
11797         * builtins.c: Replace optab_handler(X)->insn_code with
11798         optab_handler or set_optab_handler thoughout.  Likewise
11799         convert_optab_handler(X)->insn_code with convert_optab_handler
11800         and set_convert_optab_handler.
11801         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
11802         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
11803         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
11804         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
11805         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
11806         config/spu/spu.c: Likewise.
11808 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
11810         PR target/44531
11811         * config.gcc (sh*-*-*): Use regular expressions instead of
11812         the 'i' modifier for sed substitutions.
11814 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
11816         * gimple.c (gimple_body): Comments added.
11818 2010-07-04  Richard Guenther  <rguenther@suse.de>
11820         PR middle-end/44809
11821         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
11822         of an INDIRECT_REF.
11824 2010-07-04  Richard Guenther  <rguenther@suse.de>
11826         PR tree-optimization/44479
11827         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
11828         extra SSA name copy statements which preserves points-to
11829         information.
11830         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11831         Copy points-to information for all pointers.  Properly handle
11832         MEM_REFs.
11833         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
11834         copy statements.
11835         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
11836         dependency.
11838 2010-07-04  Richard Guenther  <rguenther@suse.de>
11840         PR middle-end/44785
11841         * tree-inline.c (initialize_inlined_parameters): Do not
11842         re-use pointer-map slot over remap_type call.
11844 2010-07-04  Richard Guenther  <rguenther@suse.de>
11846         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
11848 2010-07-04  Richard Guenther  <rguenther@suse.de>
11850         PR tree-optimization/44656
11851         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
11852         again after value-replacing in the defintions lhs.
11854 2010-07-04  Ira Rosen  <irar@il.ibm.com>
11855             Revital Eres  <eres@il.ibm.com>
11857         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
11858         Document new arguments.
11859         * doc/tm.texi: Regenerate.
11860         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
11861         Handle unaligned store.
11862         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
11863         * target.def (builtin_vectorization_cost): Add new arguments.
11864         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
11865         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
11866         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
11867         (vect_vfa_segment_size): Fix indentation.
11868         * tree-vectorizer.h (struct _vect_peel_info): New.
11869         (struct _vect_peel_extended_info): New.
11870         (struct _loop_vec_info): Add new field for peeling hash table and a
11871         macro for its access.
11872         (VECT_MAX_COST): Define.
11873         (vect_get_load_cost): Declare.
11874         (vect_get_store_cost, vect_get_known_peeling_cost,
11875         vect_get_single_scalar_iteraion_cost): Likewise.
11876         (vect_supportable_dr_alignment): Add new argument.
11877         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
11878         field.
11879         (destroy_loop_vec_info): Free peeling hash table.
11880         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
11881         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
11882         vect_analyze_slp. Fix indentation.
11883         (vect_get_single_scalar_iteraion_cost): New function.
11884         (vect_get_known_peeling_cost): Likewise.
11885         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
11886         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
11887         statement. Move outside cost calculation inside unknown peeling case.
11888         Call vect_get_known_peeling_cost for known amount of peeling.
11889         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
11890         reference to the print message of forced alignment.
11891         (vect_verify_datarefs_alignment): Update call to
11892         vect_supportable_dr_alignment.
11893         (vect_get_data_access_cost): New function.
11894         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
11895         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
11896         vect_peeling_hash_choose_best_peeling): Likewise.
11897         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
11898         to store all the accesses in the loop and find best possible access to
11899         align using peeling for known alignment case. For unknown alignment
11900         check if stores are preferred or if peeling is worthy.
11901         (vect_find_same_alignment_drs): Analyze pairs of loads too.
11902         (vect_supportable_dr_alignment): Add new argument and check aligned
11903         accesses according to it.
11904         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
11905         (cost_for_stmt): Call vect_get_stmt_cost.
11906         (vect_model_simple_cost): Likewise.
11907         (vect_model_store_cost): Call vect_get_stmt_cost. Call
11908         vect_get_store_cost to calculate the cost of the statement.
11909         (vect_get_store_cost): New function.
11910         (vect_model_load_cost): Call vect_get_stmt_cost. Call
11911         vect_get_load_cost to calculate the cost of the statement.
11912         (vect_get_load_cost): New function.
11913         (vectorizable_store): Update call to vect_supportable_dr_alignment.
11914         (vectorizable_load): Likewise.
11915         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
11916         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
11917         arguments. Handle unaligned store.
11918         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
11919         (rs6000_builtin_support_vector_misalignment): Return true for word and
11920         double word alignments for VSX.
11921         * tree-vect-slp.c (vect_build_slp_tree): Update calls to
11922         vect_supportable_dr_alignment and builtin_vectorization_cost.
11924 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11926         PR target/44597
11927         * config/pa/predicates.md (prefetch_cc_operand): Remove.
11928         (prefetch_nocc_operand): Likewise.
11929         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
11930         (prefetch_20): New insn.
11931         (prefetch_cc): Remove.
11932         (prefetch_nocc): Likewise.
11934 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11936         * expr.c (vector_mode_valid_p): Move to c-common.c.
11937         * expr.h (vector_mode_valid_p): Do not declare here.
11938         * system.h: Poison GCC_EXPR_H in front-ends.
11939         * Makefile.in: Update dependencies.
11941 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11943         PR target/44705
11944         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
11946 2010-07-03  Jan Hubicka  <jh@suse.cz>
11948         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
11949         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
11950         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
11951         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
11952         Likewise.
11954         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
11955         Update timevars.V
11956         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
11957         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
11958         TV_IPA_LTO_DECL_OUT): New.
11959         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
11961 2010-07-03  Jan Hubicka  <jh@suse.cz>
11963         * ipa-inline.c (update_edge_key): Break out from ...
11964         update_callers_keys): ... here;
11965         (update_callee_keys): Update only the edges from caller to callee.
11966         (update_all_calle_keys): Do what update_calle_keys did.
11967         (decide_inlining_of_small_functions): Avoid recomputing of all
11968         callees when badness increase.
11970 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11972         * config/arm/arm.c (arm_attr_length_move_neon): New.
11973         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
11974         * config/arm/neon.md (define_mode_attr V_slen): Remove.
11975         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
11976         to compute length attribute.
11978 2010-07-03  Jie Zhang  <jie@codesourcery.com>
11980         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
11981         as predicate for operand 1 and remove its constraint.
11982         * config/arm/predicates.md (vfp_register_operand): New.
11983         * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
11984         (*push_fp_multi): Likewise.
11986 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11988         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
11990 2010-07-03  Jan Hubicka  <jh@suse.cz>
11992         * config/i386/i386.c (override_options): Revert accidental commit.
11994 2010-07-02  Le-Chun Wu  <lcwu@google.com>
11996         PR c++/44128
11997         * doc/invoke.texi: Update documentation of -Wshadow.
11999 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
12000             Julian Brown  <julian@codesourcery.com>
12001             Sandra Loosemore  <sandra@codesourcery.com>
12003         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
12004         comparisons.  Adjust to take both operands.
12005         (arm_select_cc_mode): Handle DImode comparisons.
12006         (arm_gen_compare_reg): Generate a scratch register for DImode
12007         comparisons which require one.  Use xor for Thumb equality checks.
12008         (arm_const_double_by_immediates): New.
12009         (arm_print_operand): Allow 'Q' and 'R' for constants.
12010         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
12011         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
12012         arm_canonicalize_comparison.
12013         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
12014         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
12015         prototype.
12016         (arm_const_double_by_immediates): Declare.
12017         * config/arm/constraints.md (Di): New constraint.
12018         * config/arm/predicates.md (arm_immediate_di_operand)
12019         (arm_di_operand, cmpdi_operand): New.
12020         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
12021         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
12022         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
12023         (cstoredi4): Handle non-Cirrus also.
12025 2010-07-02  Julian Brown  <julian@codesourcery.com>
12026             Sandra Loosemore  <sandra@codesourcery.com>
12028         PR target/43703
12029         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
12030         (smax<mode>3): Disable for NEON float modes when
12031         flag_unsafe_math_optimizations is false.
12032         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
12033         (*mul<mode>3_neon)
12034         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
12035         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
12036         for NEON float modes when flag_unsafe_math_optimizations is false.
12037         (quad_halves_<code>v4sf): Only enable if
12038         flag_unsafe_math_optimizations is true.
12039         * doc/invoke.texi (ARM Options): Add note about floating point
12040         vectorization requiring -funsafe-math-optimizations.
12042 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12043             Julian Brown  <julian@codesourcery.com>
12045         * config/arm/neon.md (UNSPEC_VABA): Delete.
12046         (UNSPEC_VABAL): Delete.
12047         (UNSPEC_VABS): Delete.
12048         (UNSPEC_VMUL_N): Delete.
12049         (adddi3_neon): New.
12050         (subdi3_neon): New.
12051         (mul<mode>3add<mode>_neon): Make the pattern named.
12052         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
12053         (neon_vadd<mode>): Replace with define_expand, and move the remaining
12054         unspec parts...
12055         (neon_vadd<mode>_unspec): ...to this.
12056         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
12057         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
12058         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
12059         (neon_vaba<mode>): Rewrite in terms of vabd.
12060         (neon_vabal<mode>): Rewrite in terms of vabdl.
12061         (neon_vabs<mode>): Rewrite without unspec.
12062         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
12063         (*arm_subdi3): Likewise.
12064         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
12065         No_op attribute to disable assembly output checks.
12066         * config/arm/arm_neon.h: Regenerated.
12067         * doc/arm-neon-intrinsics.texi: Regenerated.
12069 2010-07-02  Jan Hubicka  <jh@suse.cz>
12071         * ipa-split.c (split_function): For aggregate values, set the return
12072         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
12073         *<retval> = fncall.part ().
12074         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
12076 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12078         * config/arm/neon.md (UNSPEC_VAND): Delete.
12079         (UNSPEC_VBIC): Delete.
12080         (UNSPEC_VCLZ): Delete.
12081         (UNSPEC_VCNT): Delete.
12082         (UNSPEC_VEOR): Delete.
12083         (UNSPEC_VORN): Delete.
12084         (UNSPEC_VORR): Delete.
12085         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
12086         core registers too.
12087         (anddi3_neon): Likewise.
12088         (orndi3_neon): Likewise.
12089         (bicdi3_neon): Likewise.
12090         (xordi3_neon): Likewise.
12091         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
12092         rid of unspec and handle unused operand.
12093         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
12094         * config/arm/predicates.md (imm_for_neon_logic_operand):
12095         Require TARGET_NEON.
12096         (imm_for_neon_inv_logic_operand): Likewise.
12097         * config/arm/arm.md (define_split for logical_binary_operator):
12098         Disable for NEON registers.
12099         (anddi3): Add new define_expand, and rename the insn.  Disable
12100         this insn for NEON, where anddi3_neon now applies.
12101         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
12102         (iordi3): As for anddi3.
12103         (xordi3): Likewise.
12104         * config/arm/neon.ml (Vand): Split DImode variants and mark them
12105         as No_op to disable testing for exact instruction match.
12106         (Vorr): Likewise.
12107         (Veor): Likewise.
12108         (Vbic): Likewise.
12109         (Vorn): Likewise.
12110         * config/arm/arm_neon.h: Regenerated.
12111         * doc/arm-neon-intrinsics.texi: Regenerated.
12113 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12115         * expr.h (emit_stack_probe): Declare.
12116         * explow.c (emit_stack_probe): Make global.
12117         (anti_adjust_stack_and_probe): Fix comments.
12118         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
12119         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12120         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
12121         * config/sparc/sparc.c: Include except.h.
12122         (sparc_emit_probe_stack_range): New function.
12123         (output_probe_stack_range): Likewise.
12124         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
12125         built-in stack checking is enabled.
12126         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
12127         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
12128         (probe_stack_range): New insn.
12130 2010-07-02  Richard Guenther  <rguenther@suse.de>
12132         PR target/43958
12133         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
12134         for argument alignment.
12136 2010-07-02  Jan Hubicka  <jh@suse.cz>
12138         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
12139         walk backwards from entry_bb to check only those basic block of header
12140         that might lead to execution of split part.
12141         (consider_split) ... here.
12142         (find_return_bb): Allow assignment in return BB.
12143         (find_retval): New.
12144         (split_function): Fix name of cloned function; take care of updating
12145         return value in return_bb containing move.
12147 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
12149         PR target/44771
12150         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
12151         used variable insn.
12153 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12155         * implicit-zee.c (combine_reaching_defs): Fix long lines.
12156         (is_set_with_extension_DI): Delete.
12157         (struct zero_extend_info): New structure.
12158         (add_removable_zero_extend): New function.
12159         (find_removable_zero_extends): Use note_stores to find SETs.
12160         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
12162 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
12164         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
12165         is_miss_rate_acceptable. Pull total_positions computation
12166         out of the loops.  Early return if miss_positions exceeds
12167         the acceptable threshold.
12168         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
12169         is_miss_rate_acceptable after renaming of compute_miss_rate.
12171 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
12173         PR middle-end/44576
12174         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
12175         of 1000) for miss rate if the address diference is greater than or
12176         equal to the cache line size (the two reference will never hit the
12177         same cache line).
12179 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
12181         PR target/42835
12182         * config/arm/arm-modes.def (CC_NOTB): New mode.
12183         * config/arm/arm.c (get_arm_condition_code): Handle it.
12184         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
12185         * config/arm/arm.md (subsi3_compare0_c): New pattern.
12186         (compare_scc): Now a define_and_split.  Add a number of extra
12187         splitters before it.
12189         PR target/42172
12190         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
12191         and ZERO_EXTEND.
12192         (arm_rtx_costs_1): Likewise.
12193         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
12194         * config/arm/arm.md (is_arch6): New attribute.
12195         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
12196         extendqisi2): Tighten the code somewhat, avoiding invalid
12197         RTL to occur in the expander patterns.
12198         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
12199         (thumb1_zero_extendhisi2_v6): Delete.
12200         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
12201         (thumb1_extendhisi2_v6): Delete.
12202         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
12203         (thumb1_extendqisi2_v6): Delete.
12204         (zero_extendhisi2 for register input splitter): New.
12205         (zero_extendqisi2 for register input splitter): New.
12206         (thumb1_extendhisi2 for register input splitter): New.
12207         (extendhisi2 for register input splitter): New.
12208         (extendqisi2 for register input splitter): New.
12209         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
12210         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
12211         and add support for a register alternative requiring a split.
12212         (thumb1_zero_extendqisi2): Likewise.
12213         (arm_zero_extendqisi2): Likewise.
12214         (arm_extendhisi2): Likewise.
12215         (arm_extendqisi2): Likewise.
12217 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12219         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
12220         instead of an unspec.
12221         (neon_expand_vector_init): Likewise.
12222         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
12223         (UNSPEC_VDUP_LANE): Delete.
12224         (UNSPEC VDUP_N): Delete.
12225         (UNSPEC_VGET_HIGH): Delete.
12226         (UNSPEC_VGET_LANE): Delete.
12227         (UNSPEC_VGET_LOW): Delete.
12228         (UNSPEC_VMVN): Delete.
12229         (UNSPEC_VSET_LANE): Delete.
12230         (V_double_vector_mode): New.
12231         (vec_set<mode>_internal): Make code emitted match that for the
12232         corresponding intrinsics.
12233         (vec_setv2di_internal): Likewise.
12234         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
12235         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
12236         (neon_vset_lane<mode>): Combine double and quad patterns and
12237         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
12238         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
12239         (neon_vdup_n<mode>): Rewrite RTL without unspec.
12240         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
12241         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
12242         with neon_vdup_lanev2di, adjusting the pattern from the latter
12243         to be predicable for consistency.
12244         (neon_vdup_lane<mode>_internal): New.
12245         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
12246         to avoid using an unspec.
12247         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
12248         (neon_vdup_lanev2di): Turn into a define_expand.
12249         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
12250         (neon_vget_high<mode>): Replace with....
12251         (neon_vget_highv16qi): New pattern using canonical RTL.
12252         (neon_vget_highv8hi): Likewise.
12253         (neon_vget_highv4si): Likewise.
12254         (neon_vget_highv4sf): Likewise.
12255         (neon_vget_highv2di): Likewise.
12256         (neon_vget_low<mode>): Replace with....
12257         (neon_vget_lowv16qi): New pattern using canonical RTL.
12258         (neon_vget_lowv8hi): Likewise.
12259         (neon_vget_lowv4si): Likewise.
12260         (neon_vget_lowv4sf): Likewise.
12261         (neon_vget_lowv2di): Likewise.
12263         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
12264         test for this emitting vmov.
12265         (Vset_lane): Likewise.
12266         (Vdup_n): Likewise.
12267         (Vmov_n): Likewise.
12269         * doc/arm-neon-intrinsics.texi: Regenerated.
12271 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
12273         * config/arm/neon.md (vec_extractv2di): Correct error in register
12274         numbering to reconcile with neon_vget_lanev2di.
12276 2010-07-02  Richard Guenther  <rguenther@suse.de>
12278         * tree-ssa-structalias.c (pt_solution_set_var): New function.
12279         * tree-ssa-alias.h (pt_solution_set_var): Declare.
12280         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
12281         points-to information.
12283 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
12285         * config/s390/s390.c (override_options): Adopt prefetching
12286         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
12288 2010-07-02  Jan Hubicka  <jh@suse.cz>
12290         * df-problems.c (df_kill_notes): Do not collect dead  notes.
12291         (df_set_note): Just call add_reg_note.
12292         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
12293         df_create_unused_note): Do not deal with lists of old notes.
12294         (df_note_bb_compute): Likewise.
12296 2010-07-02  Richard Guenther  <rguenther@suse.de>
12298         * tree-ssa-structalias.c (find_func_aliases): Handle
12299         pointer alignment via BIT_AND_EXPR.
12300         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
12302 2010-07-02  Richard Guenther  <rguenther@suse.de>
12304         * tree-data-ref.c (initialize_data_dependence_relation): Handle
12305         mismatching number of dimensions properly.
12307 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12309         PR target/44707
12310         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
12311         (lo_sum (high ...) ...) patterns generated by earlier passes.
12313 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12315         * doc/install.texi (Prerequisites): Document Perl requirement on
12316         Solaris 2.
12317         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
12319 2010-07-02  Richard Guenther  <rguenther@suse.de>
12321         PR middle-end/44777
12322         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
12324 2010-07-02  Jan Hubicka  <jh@suse.cz>
12326         PR middle-end/44706
12327         * predict.c (predict_paths_for_bb): Handle case when control dependence
12328         BB has only abnormal edges.
12330 2010-07-02  Richard Guenther  <rguenther@suse.de>
12332         PR tree-optimization/44748
12333         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
12334         the embedded conversion in MEM_REFs.
12336 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
12338         * reload.c: Include toplev.h.
12339         * recog.c:  Likewise.
12340         * Makefile.in: Adjust dependencies.
12342 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
12344         PR debug/44694
12345         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
12346         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
12348 2010-07-01  Richard Guenther  <rguenther@suse.de>
12350         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
12351         types for offsets.
12353 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
12355         PR target/44732
12356         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
12357         Fix argument types.
12359 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
12361         PR target/44727
12362         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12363         Make sure operand 0 dies.
12365 2010-07-01  Richard Guenther  <rguenther@suse.de>
12367         PR middle-end/42834
12368         PR middle-end/44468
12369         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
12370         * doc/generic.texi (References to storage): Document MEM_REF.
12371         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
12372         (print_call_name): Likewise.
12373         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
12374         (build_simple_mem_ref_loc): New function.
12375         (mem_ref_offset): Likewise.
12376         * tree.h (build_simple_mem_ref_loc): Declare.
12377         (build_simple_mem_ref): Define.
12378         (mem_ref_offset): Declare.
12379         * fold-const.c: Include tree-flow.h.
12380         (operand_equal_p): Handle MEM_REF.
12381         (build_fold_addr_expr_with_type_loc): Likewise.
12382         (fold_comparison): Likewise.
12383         (fold_unary_loc): Fold
12384         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
12385         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
12386         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
12387         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
12388         (ptr_deref_may_alias_ref_p_1): Likewise.
12389         (ao_ref_base_alias_set): Properly differentiate base object for
12390         offset and TBAA.
12391         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
12392         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
12393         (indirect_refs_may_alias_p): Likewise.
12394         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
12395         chasing code.
12396         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
12397         (call_may_clobber_ref_p_1): Likewise.
12398         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
12399         * expr.c (expand_assignment): Handle MEM_REF.
12400         (store_expr): Handle MEM_REFs from STRING_CSTs.
12401         (store_field): If expanding a MEM_REF of a non-addressable
12402         decl use bitfield operations.
12403         (get_inner_reference): Handle MEM_REF.
12404         (expand_expr_addr_expr_1): Likewise.
12405         (expand_expr_real_1): Likewise.
12406         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
12407         * alias.c (ao_ref_from_mem): Handle MEM_REF.
12408         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
12409         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
12410         (dr_analyze_indices): Likewise.
12411         (dr_analyze_alias): Likewise.
12412         (object_address_invariant_in_loop_p): Likewise.
12413         * gimplify.c (mark_addressable): Handle MEM_REF.
12414         (gimplify_cond_expr): Build MEM_REFs.
12415         (gimplify_modify_expr_to_memcpy): Likewise.
12416         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
12417         (gimple_fold_indirect_ref): Adjust.
12418         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
12419         * tree.def (MEM_REF): New tree code.
12420         * tree-dfa.c: Include toplev.h.
12421         (get_ref_base_and_extent): Handle MEM_REF.
12422         (get_addr_base_and_unit_offset): New function.
12423         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
12424         * gimple-fold.c (may_propagate_address_into_dereference): Handle
12425         MEM_REF.
12426         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
12427         accesses if the array has just one dimension.  Remove always true
12428         parameter.  Do not require type compatibility here.
12429         (maybe_fold_offset_to_component_ref): Remove.
12430         (maybe_fold_stmt_indirect): Remove.
12431         (maybe_fold_reference): Remove INDIRECT_REF handling.
12432         Fold back to non-MEM_REF.
12433         (maybe_fold_offset_to_address): Simplify.  Deal with type
12434         mismatches here.
12435         (maybe_fold_reference): Likewise.
12436         (maybe_fold_stmt_addition): Likewise.  Also handle
12437         &ARRAY + I in addition to &ARRAY[0] + I.
12438         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
12439         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
12440         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
12441         * tree-ssa.c (useless_type_conversion_p): Make most pointer
12442         conversions useless.
12443         (warn_uninitialized_var): Handle MEM_REF.
12444         (maybe_rewrite_mem_ref_base): New function.
12445         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
12446         to SSA form.
12447         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
12448         INDIRECT_REF handling.
12449         (copy_tree_body_r): Handle MEM_REF.
12450         * gimple.c (is_gimple_addressable): Adjust.
12451         (is_gimple_address): Likewise.
12452         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
12453         invariant base are invariant.
12454         (is_gimple_min_lval): Adjust.
12455         (is_gimple_mem_ref_addr): New function.
12456         (get_base_address): Handle MEM_REF.
12457         (count_ptr_derefs): Likewise.
12458         (get_base_loadstore): Likewise.
12459         * gimple.h (is_gimple_mem_ref_addr): Declare.
12460         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
12461         * tree-cfg.c (verify_address): New function, split out from ...
12462         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
12463         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
12464         INDIRECT_REFs.
12465         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
12466         INDIRECT_REF.  Allow conversions.
12467         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
12468         a register does not change its size.
12469         (verify_types_in_gimple_reference): Verify MEM_REF.
12470         (verify_gimple_assign_single): Disallow INDIRECT_REF.
12471         Handle MEM_REF.
12472         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
12473         New.
12474         (mark_address_taken): Handle MEM_REF.
12475         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
12476         (get_asm_expr_operands): Pass opf_not_non_addressable.
12477         (get_expr_operands): Handle opf_[not_]non_addressable.
12478         Handle MEM_REF.  Remove INDIRECT_REF handling.
12479         * tree-vrp.c (check_array_ref): Handle MEM_REF.
12480         (search_for_addr_array): Likewise.
12481         (check_array_bounds): Likewise.
12482         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
12483         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
12484         (ref_always_accessed_p): Likewise.
12485         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
12486         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
12487         Handle MEM_REF.
12488         * cgraphbuild.c (mark_load): Properly check for NULL result
12489         from get_base_address.
12490         (mark_store): Likewise.
12491         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
12492         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
12493         handling for MEM_REF.
12494         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
12495         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
12496         * builtins.c (stabilize_va_list_loc): Use the function ABI
12497         valist type if we couldn't canonicalize the argument type.
12498         Always dereference with the canonical va-list type.
12499         (maybe_emit_free_warning): Handle MEM_REF.
12500         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
12501         memmove to memcpy.
12502         * builtins.c (fold_builtin_memory_op): Use ref-all types
12503         for all memcpy foldings.
12504         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
12505         (build_outer_var_ref): Likewise.
12506         (scan_omp_1_op): Likewise.
12507         (lower_rec_input_clauses): Likewise.
12508         (lower_lastprivate_clauses): Likewise.
12509         (lower_reduction_clauses): Likewise.
12510         (lower_copyprivate_clauses): Likewise.
12511         (expand_omp_atomic_pipeline): Likewise.
12512         (expand_omp_atomic_mutex): Likewise.
12513         (create_task_copyfn): Likewise.
12514         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
12515         Remove old union trick.  Initialize constant offsets.
12516         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
12517         INDIRECT_REF.  Init base_alias_set properly.
12518         (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
12519         (vn_reference_fold_indirect): Adjust for MEM_REFs.
12520         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
12521         for ARRAY_REFs.
12522         (may_insert): Remove.
12523         (visit_reference_op_load): Do not test may_insert.
12524         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
12525         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
12526         a field to store the constant offset this op applies.
12527         (run_scc_vn): Adjust prototype.
12528         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
12529         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
12530         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
12531         bother about volatile qualifiers on pointers.
12532         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
12533         * tree-ssa-loop-ivopts.c
12534         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
12535         (strip_offset_1): Likewise.
12536         (find_interesting_uses_address): Replace INDIRECT_REF handling with
12537         MEM_REF handling.
12538         (get_computation_cost_at): Likewise.
12539         * ipa-pure-const.c (check_op): Handle MEM_REF.
12540         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
12541         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
12542         and constants.
12543         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
12544         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
12545         (eliminate_local_variables_1): Likewise.
12546         (create_call_for_reduction_1): Likewise.
12547         (create_loads_for_reductions): Likewise.
12548         (create_loads_and_stores_for_name): Likewise.
12549         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
12550         (ssa_accessed_in_tree): Handle MEM_REF.
12551         (ssa_accessed_in_assign_rhs): Likewise.
12552         (update_type_size): Likewise.
12553         (analyze_accesses_for_call_stmt): Likewise.
12554         (analyze_accesses_for_assign_stmt): Likewise.
12555         (transform_access_sites): Likewise.
12556         (transform_allocation_sites): Likewise.
12557         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
12558         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12559         not handle INDIRECT_REF.
12560         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
12561         (cond_store_replacement): Likewise.
12562         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
12563         MEM_REF, no not handle INDIRECT_REFs.
12564         (insert_into_preds_of_block): Properly initialize avail.
12565         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
12566         for ARRAY_REFs.  Properly handle reference lookups that
12567         require a bit re-interpretation.
12568         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
12569         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
12570         (build_ref_for_offset_1): Remove.
12571         (build_ref_for_offset): Build MEM_REFs.
12572         (gate_intra_sra): Disable for now.
12573         (sra_ipa_modify_expr): Handle MEM_REF.
12574         (ipa_early_sra_gate): Disable for now.
12575         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
12576         MEM_REF handling.
12577         (disqualify_base_of_expr): Likewise.
12578         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
12579         MEM_REF handling.
12580         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
12581         Use mem_ref_offset.  Remove bogus folding.
12582         (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
12583         (make_fancy_name_1): Add support for MEM_REF.
12584         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
12585         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
12586         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
12587         (compute_complex_ancestor_jump_func): Likewise.
12588         (ipa_analyze_virtual_call_uses): Likewise.
12589         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
12590         INDIRECT_REF folding with more generalized MEM_REF folding.
12591         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
12592         (forward_propagate_addr_into_variable_array_index): Also handle
12593         &ARRAY + I in addition to &ARRAY[0] + I.
12594         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
12595         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
12596         creates assignments with overlap.
12597         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
12598         (get_frame_field): Likewise.
12599         (get_nonlocal_debug_decl): Likewise.
12600         (convert_nonlocal_reference_op): Likewise.
12601         (struct nesting_info): Add mem_refs pointer-set.
12602         (create_nesting_tree): Allocate it.
12603         (convert_local_reference_op): Insert to be folded mem-refs.
12604         (fold_mem_refs): New function.
12605         (finalize_nesting_tree_1): Perform defered folding of mem-refs
12606         (free_nesting_tree): Free the pointer-set.
12607         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
12608         (vectorizable_load): Likewise.
12609         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
12610         (propagate_with_phi): Likewise.
12611         * tree-object-size.c (addr_object_size): Handle MEM_REFs
12612         instead of INDIRECT_REFs.
12613         (compute_object_offset): Handle MEM_REF.
12614         (plus_stmt_object_size): Handle MEM_REF.
12615         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
12616         for &MEM_REF.
12617         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
12618         (symbol_marked_for_renaming): Likewise.
12619         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
12620         (fold-const.o): Add $(TREE_FLOW_H).
12621         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
12622         (find_func_clobbers): Likewise.
12623         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
12624         (decompose_access): Likewise.
12625         (replace_field_acc): Likewise.
12626         (replace_field_access_stmt): Likewise.
12627         (insert_new_var_in_stmt): Likewise.
12628         (get_stmt_accesses): Likewise.
12629         (reorg_structs_drive): Disable.
12630         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
12631         (ix86_canonical_va_list_type): Likewise.
12633 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12635         PR other/44566
12636         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
12637         * target.def (struct gcc_target): Replace enum reg_class with
12638         reg_class_t in hook argument / return types.
12639         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
12640         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
12641         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12642         * targhooks.h (default_branch_target_register_class): Likewise.
12643         (default_ira_cover_classes, default_secondary_reload): Likewise.
12644         (default_memory_move_cost, default_register_move_cost): Likewise.
12645         * targhooks.c (default_branch_target_register_class): Likewise.
12646         (default_ira_cover_classes, default_secondary_reload): Likewise.
12647         (default_memory_move_cost, default_register_move_cost): Likewise.
12648         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
12649         * bt-load.c (branch_target_load_optimize): Likewise.
12650         * ira.c (setup_cover_and_important_classes): Likewise.
12651         * ira-costs.c (copy_cost): Likewise.
12652         * reload1.c (emit_input_reload_insns): Likewise.
12653         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
12654         * config/frv/frv.c (frv_secondary_reload): Likewise.
12655         * config/s390/s390.c (s390_secondary_reload): Likewise.
12656         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
12657         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
12658         (ix86_register_move_cost): Likewise.
12659         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
12660         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
12661         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
12662         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
12663         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
12664         (rs6000_ira_cover_classes): Likewise.
12665         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
12666         * config/picochip/picochip-protos.h (picochip_secondary_reload):
12667         Likewise.
12668         * config/pa/pa.c (pa_secondary_reload): Likewise.
12669         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
12670         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
12671         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
12672         * doc/tm.texi: Regenerate.
12674 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
12676         PR bootstrrap/44726
12677         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
12678         use.
12679         (build_alias_set_optimal_p): Likewise.
12680         (build_base_obj_set_for_drs): Likewise.
12682 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12684         * target.def: Remove comment about licensing problems of function
12685         declarations.
12687         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
12688         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
12689         * doc/tm.texi: Regenerate.
12691         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
12692         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
12694         * target.def (enum_va_list_p): Use DEFHOOK.
12695         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
12696         Rename ptype to ptree.
12697         * doc/tm.texi: Regenerate.
12699         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
12700         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
12701         * doc/tm.texi: Regenerate.
12703         * target.def (memory_move_cost): Use DEFHOOK.
12704         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
12705         Rename regclass AKA class to rclass.
12706         * doc/tm.texi: Regenerate.
12708         * target.def (pragma_parse): Use DEFHOOK.
12709         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
12710         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
12711         * doc/tm.texi: Regenerate.
12713         * target.def (pass_by_reference): Use DEFHOOK.
12714         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
12715         * doc/tm.texi: Regenerate.
12717         * target.def (resolve_overloaded_builtin): Rename params to arglist.
12718         Use DEFHOOK.
12719         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
12720         * doc/tm.texi: Regenerate.
12722         * target.def (return_pops_args): Use DEFHOOK.
12723         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
12724         Rename stack-size to size.
12725         * doc/tm.texi: Regenerate.
12727         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
12728         last-sched_cycle to last_clock, cur_cycle to clock.
12729         * doc/tm.texi.in: Use @hook.
12730         * doc/tm.texi: Regenerate.
12732         * target.def (print_operand, print_operand_address): Update comment.
12733         (print_operand_punct_valid_p): Likewise.
12735 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12737         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
12738         to rtl.h.
12739         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
12740         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
12741         * rtl-error.h: New.
12742         * regrename.c: Do not include toplev.h. Include rtl-error.h.
12743         * rtl-error.c: Likewise.
12744         * reload.c: Likewise.
12745         * recog.c:  Likewise.
12746         * sel-sched.c: Likewise.
12747         * function.c: Likewise.
12748         * reg-stack.c: Likewise.
12749         * cfgrtl.c: Likewise.
12750         * reload1.c: Likewise.
12751         * final.c: Include rtl-error.
12752         * Makefile.in: Adjust dependencies.
12754 2010-06-30  Jan Hubicka  <jh@suse.cz>
12756         PR middle-end/PR44706
12757         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
12758         to return the value.
12760 2010-06-30  Michael Matz  <matz@suse.de>
12762         PR bootstrap/44699
12763         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
12764         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
12765         a gimple reg, attach the original VDEF to the last store in the
12766         sequence.
12768 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
12770         PR other/44034
12771         * config/darwin.c (darwin_override_options): Use renamed
12772         targetm.asm_out.emit_unwind_label.
12774 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12776         PR tree-optimization/39799
12777         * tree-inline.c (remap_ssa_name): Initialize variable only if
12778         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
12780 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
12782         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
12784 2010-06-30  Richard Guenther  <rguenther@suse.de>
12786         PR target/44722
12787         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
12788         against oscillation with reverse peephole2.
12790 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
12792         PR target/44721
12793         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12794         Fix last commit.
12796 2010-06-30  Nick Clifton  <nickc@redhat.com>
12798         * config/rx/rx-modes.def: New file.
12799         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
12800         (CC_REGNUM): Define.
12801         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
12802         register.
12803         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
12804         (SELECT_CC_MODE): Define.
12805         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
12806         (reg:CC CC_REG) instead of (cc0).
12807         (attr "cc"): Delete.
12808         (cbranchsi4): Do not split compare and branch here. Instead move
12809         it to...
12810         (cbranchsi4_<code>): ... here.  New patterns.
12811         (cmpsi): Call rx-compare_redundant to find out if it is necessary
12812         to emit the compare instruction.
12813         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
12814         cc_status flags.
12815         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
12816         FIRST_PSEUDO_REGNUM.
12817         (rx_expand_prologue, rx_expand_epilogue): Likewise.
12818         (rx_notice_update_cc): Delete.
12819         (rx_cc_modes_compatible): New function.
12820         (flags_needed_for_conditional): New function.
12821         (flags_from_mode): New function.
12822         (rx_compare_redundant): New function - scans backwards through
12823         insn list to find out if condition flags are already set correctly.
12824         (TARGET_CC_MODES_COMPATIBLE): Define.
12825         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
12827         * config/rx/rx.h (BRANCH_COST): Define.
12828         (REGISTER_MOVE_COST): Define.
12829         * config/rx/predicates (rx_source_operand): Allow all constant types.
12830         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
12831         (tstsi4): New pattern.
12832         * config/rx/rx.c (rx_memory_move_cost): Define.
12833         (TARGET_MEMORY_MOVE_COST): Define.
12835 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12837         * tree.h (block_may_fallthru): Declare here.
12838         * tree-flow.h (block_may_fallthru): Do not declare here.
12839         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
12840         bitmap.h
12841         * Makefile.in (c-typeck.o): Update dependencies.
12843 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
12845         PR debug/44694
12846         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
12847         * cselib.c (cfa_base_preserved_regno): New static variable.
12848         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
12849         of REGNO (cfa_base_preserved_val->locs->loc).
12850         (cselib_preserve_cfa_base_value): Add regno argument, set
12851         cfa_base_preserved_regno to it.
12852         (cselib_invalidate_regno): Allow removal of registers other than
12853         cfa_base_preserved_regno from cfa_base_preserved_val.
12854         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
12855         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
12856         of MEM addresses, if not on LHS.
12857         (reverse_op): Don't add reverse ops for cfa_base_rtx.
12858         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
12860 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
12862         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
12863         static variables.
12864         (peep2_buf_position): New static function.
12865         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
12866         peephole2_optimize): Use it.
12867         (peep2_attempt, peep2_update_life): New static functions, broken out
12868         of peephole2_optimize.
12869         (peep2_fill_buffer): New static function.
12870         (peephole2_optimize): Change the main loop to try to fill the buffer
12871         with the maximum number of insns before matching them against
12872         peepholes.  Use a forward scan.  Remove special case for targets with
12873         conditional execution.
12874         * genrecog.c (change_state): Delete dead code.
12875         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
12876         Rewrite so as not to expect the second insn to have had a peephole
12877         applied yet.
12879 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12881         * genhooks.c (emit_findices): Cast field precision to int.
12882         (emit_documentation): Likewise.
12884 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
12886         PR tree-optimization/43801
12887         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
12888         if old_decl was DECL_ONE_ONLY.
12890         PR debug/44668
12891         * dwarf2out.c (add_accessibility_attribute): New function.
12892         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
12893         instead of adding DW_AT_accessibility manually.
12894         (gen_enumeration_type_die, gen_struct_or_union_type_die,
12895         gen_typedef_die): Use it.
12897 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12899         * vmsdbgout.c (full_name): Just output the file name if not native.
12901 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12903         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
12904         (funcnam_table): New static table.
12905         (funcnum_table): New static table.
12906         (write_rtnbeg): Write value saved in funcnum_table.
12907         (write_rtnend): Write value saved in funcnum_table.
12908         (vmsdbgout_begin_function): Save current function info in
12909         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
12910         (vmsdbgout_finish): Iterate over funcnum_table.
12912 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12914         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
12915         (vmsdbgout_type_decl): Declare
12916         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
12917         (FUNC_EPILOGUE_LABEL): New macro
12918         (vmsdbgout_begin_epilogue): New function.
12919         (vmsdbgout_type_decl): New function.
12921 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12923         * vmsdbg.h: Update copyright.
12925 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
12927         * vmsdbg.h (DST_K_TBG): New DST constant.
12928         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
12929         (write_modbeg): Cast module_language to avoid warning.
12930         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
12932 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12934         PR other/44034
12935         * target.def, doc/tm.texi.in, genhooks.c: New files.
12936         * target.h: Instead of defining individual hook members,
12937         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
12938         include target.def.
12939         * target-def.h: Instead of defining individual hook initializers,
12940         include target-hooks-def.h.
12941         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
12942         targetm.live_on_entry -> targetm.extra_live_on_entry
12943         targetm.sched.md_finish ->targetm.sched.finish
12944         targetm.sched.md_init -> targetm.sched.init
12945         targetm.sched.md_init_global -> targetm.sched.init_global
12946         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
12947         targetm.asm_out.except_table_label ->
12948           targetm.asm_out.emit_except_table_label
12949         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
12950         targetm.target_help -> targetm.help
12951         targetm.vectorize.builtin_support_vector_misalignment ->
12952           targetm.vectorize.support_vector_misalignment
12953         targetm.file_start_app_off -> targetm.asm_file_start_app_off
12954         targetm.file_start_file_directive ->
12955          targetm.asm_file_start_file_directive
12956         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
12957         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
12958         * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
12959         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
12960           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
12961         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
12962           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
12963         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
12964         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
12965         * Makefile.in (TARGET_H): Depend on target.def.
12966         (TARGET_DEF_H): Depend on target-hooks-def.h.
12967         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
12968         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
12969         * doc/tm.texi: Regenerate.
12971         * Makefile.in (s-tm-texi): Remove stray tab / rule.
12973         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
12974         (targetm.sched.init): Likewise.
12976 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
12978         PR bootstrap/44713
12979         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
12980         (function_arg_advance_32): Const-ify TYPE parameter.
12981         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
12982         (ix86_function_arg_advance): Change type of NAMED to bool.
12983         (function_arg_32): Const-ify CUM and TYPE parameters.
12984         (function_arg_64): Likewise.  Change type of NAMED to bool.
12985         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
12986         to bool.
12987         (ix86_function_arg): Change type of NAMED to bool.
12988         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
12989         last argument as a bool.
12991 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
12993         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
12994         (OVERRIDE_OPTIONS): Add note of obsolescence.
12995         Replace references with references to TARGET_OPTION_OVERRIDE.
12996         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
12997          the macro).
12998         * targhooks.c (default_target_option_override): New function.
12999         * targhooks.h (default_target_option_override): Declare.
13000         * target.h (struct gcc_target): Add override member to
13001         target_option member.
13002         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
13003         targetm.target_option.override call.
13004         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
13005         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
13007 2010-06-29  Jan Hubicka  <jh@suse.cz>
13009         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
13011 2010-06-29  Jan Hubicka  <jh@suse.cz>
13013         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
13014         unreachable.
13015         (rebuild_frequencies): New function.
13016         * predict.h (rebuild_frequencies): Declare.
13017         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
13018         entry block and edge reaching new_entry.
13019         (tree_function_versioning): When doing partial cloning, rebuild
13020         frequencies when done.
13021         * passes.c (execute_function_todo): Use rebild_frequencies.
13023 2010-06-29  Richard Guenther  <rguenther@suse.de>
13025         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
13026         * tree-flow.h (enum noalias_state): Remove.
13027         (struct var_ann_d): Remove noalias_state member.
13029 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
13031         PR target/43902
13032         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
13033         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
13034         (maddhidi4): Likewise.
13036         Revert parts of the change for PR25130.
13037         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
13038         MEM_ALIAS_SET.
13040 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13042         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
13043         targetm.calls.function_incoming_arg, and
13044         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
13045         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
13046         * target.h (struct gcc_target): Add function_arg_advance,
13047         function_arg, and function_incoming_arg fields.
13048         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
13049         (TARGET_FUNCTION_INCOMING_ARG): Define.
13050         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
13051         and TARGET_FUNCTION_INCOMING_ARG.
13052         * targhooks.h (default_function_arg_advance): Declare.
13053         (default_function_arg, default_function_incoming_arg): Declare.
13054         * targhooks.c (default_function_arg_advance): New function.
13055         (default_function_arg, default_function_incoming_arg): New function.
13056         * config/i386/i386.c (function_arg_advance): Rename to...
13057         (ix86_function_arg_advance): ...this.  Make static.
13058         (function_arg): Rename to...
13059         (ix86_function_arg): ...this.  Make static.
13060         (TARGET_FUNCTION_ARG_ADVANCE): Define.
13061         (TARGET_FUNCTION_ARG): Define.
13062         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
13063         (FUNCTION_ARG): Delete.
13064         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
13065         (function_arg): Delete prototype.
13067 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
13069         * reginfo.c (init_reg_sets_1): Adjust comments.
13070         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
13071         * calls.c (prepare_call_address): Likewise.
13072         (emit_call_1): Use targetm.calls.return_pops_args.
13073         (expand_call): Likewise.
13074         * function.c (assign_parms): Likewise.
13075         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
13076         * target.h (struct gcc_target) [struct calls]: Add
13077         return_pops_args field.
13078         * targhooks.h (default_return_pops_args): Declare.
13079         * targhooks.c (default_return_pops_args): Define.
13080         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
13081         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
13082         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
13083         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
13084         documentation.
13085         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
13086         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
13087         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
13088         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
13089         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
13090         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
13091         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
13092         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
13093         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
13094         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
13095         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
13096         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
13097         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
13098         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
13099         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
13100         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
13101         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
13102         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
13103         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
13104         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
13105         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
13106         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
13107         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
13108         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
13109         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
13110         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
13111         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
13112         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
13113         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
13114         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
13115         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
13116         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
13117         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
13118         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
13119         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
13120         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
13121         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
13122         * config/i386/i386.c (ix86_return_pops_args): Make static.
13123         Constify arguments.
13124         (TARGET_RETURN_POPS_ARGS): Define.
13125         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
13126         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
13127         (TARGET_RETURN_POPS_ARGS): Define.
13128         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
13129         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
13130         (TARGET_RETURN_POPS_ARGS): Define.
13132 2010-06-29  Richard Guenther  <rguenther@suse.de>
13134         PR middle-end/44667
13135         * tree-inline.c (initialize_inlined_parameters): Make sure
13136         to remap the inlined parameter variable substitutions types.
13138 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13140         PR rtl-optimization/44659
13141         * combine.c (make_compound_operation) <SUBREG>: Do not return the
13142         result of force_to_mode if it partially re-expanded the compound.
13144 2010-06-28  Jan Hubicka  <jh@suse.cz>
13146         PR middle-end/44671
13147         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
13148         RESULT_DECL.
13150 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
13152         * double-int.h (force_fit_type_double): Remove declaration.
13153         * double-int.c (force_fit_type_double): Move to tree.c.
13154         * tree.h (force_fit_type_double): Declare.
13155         * tree.h (force_fit_type_double): Moved from double-int.c. Use
13156         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
13157         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
13158         * convert.c (convert_to_pointer): Adjust call to
13159         force_fit_type_double.
13160         * tree-vrp.c (extract_range_from_assert,
13161         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
13162         * fold-const.c: Update comment.
13163         (int_const_binop, fold_convert_const_int_from_int,
13164         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
13165         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
13166         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
13167         round_up_loc): Adjust call to force_fit_type_double.
13169 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13171         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
13173 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13175         * tree-sra.c (convert_callers): New parameter, change fndecls of
13176         recursive calls.
13177         (modify_function): Pass the old decl to convert_callers.
13179 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13181         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
13182         ipa_check_create_node_params and ipa_initialize_node_params with
13183         checking asserts they are not necessary.
13185 2010-06-28  Jan Hubicka  <jh@suse.cz>
13187         PR tree-optimization/44687
13188         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
13190 2010-06-28  Martin Jambor  <mjambor@suse.cz>
13192         PR c++/44535
13193         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
13194         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
13195         instead of BINFO_BASE_BINFO.
13197 2010-06-28  Michael Matz  <matz@suse.de>
13199         PR middle-end/44592
13200         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
13201         proper VDEF chain for intermediate stores in the sequence.
13203 2010-06-28  Jan Hubicka  <jh@suse.cz>
13205         PR tree-optimization/44357
13206         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
13207         uninlinable functions.
13209 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
13211         * config.gcc (powerpc*-*-*): Handle titan.
13212         * config/rs6000/rs6000.c (titan_cost): New costs.
13213         (rs6000_override_options): Add "titan" to processor_target_table.
13214         Add Titan to branch alignment logic.
13215         Correctly set rs6000_cost for titan.
13216         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
13217         * config/rs6000/titan.md: New file.
13218         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
13220 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13222         * tree-browser.c (TB_history_stack): Convert to a VEC.
13223         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
13224         (TB_history_prev): Likewise.
13226 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
13228         * vec.h (vec_heap_free): Add parentheses around free.
13230 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
13232         * system.h: Poison GCC_EXCEPT_H for front-end files.
13234         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
13235         langhook.
13236         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
13237         Define to NULL by default.
13238         * except.h: Define GCC_EXCEPT_H.
13239         (doing_eh): Remove prototype.
13240         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
13241         (lang_protect_cleanup_actions): Remove.
13242         * except.c (lang_protect_cleanup_actions): Remove.
13243         (doing_eh): Remove.
13244         (gen_eh_region): Don't check doing_eh here.
13245         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
13246         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
13247         instead of lang_protect_cleanup_actions.
13248         * omp-low.c (maybe_catch_exception): Likewise.
13249         * Makefile.in: Update dependencies.
13251 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
13253         * cgraph.h (struct varpool_node): new used_from_object_file flag.
13254         (struct cgraph_local_info): new used_from_object_file flag.
13255         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
13256         (cgraph_clone_node): initialize used_from_object_file.
13257         (cgraph_create_virtual_clone): initialize used_from_object_file.
13258         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
13259         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
13260         when compiling with -fwhole-program.
13261         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
13262         internal resolver.
13263         * ipa.c (function_and_variable_visibility): Set externally_visible
13264         flag of varpool_node if used_from_object_file flag is set.
13265         (cgraph_externally_visible_p): check used_from_object_file flag.
13266         * doc/invoke.texi (-fwhole-program option): Change description of
13267         externally_visible attribute accordingly.
13268         * doc/extend.texi (externally_visible): Ditto.
13270 2010-06-27  Jan Hubicka  <jh@suse.cz>
13272         * params.def (max-inline-insns-auto): Default to 40.
13273         * doc/invoke.texi (max-inline-insns-auto): Document the change.
13275 2010-06-27  Jan Hubicka  <jh@suse.cz>
13277         PR middle-end/44671
13278         PR middle-end/44686
13279         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
13280         signature change.
13281         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
13282         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
13284 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
13286         * target.h (struct gcc_target): Add register_move_cost field.
13287         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
13288         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
13289         * targhooks.c (default_register_move_cost): New function.
13290         * targhooks.h (default_register_move_cost): Declare function.
13291         * defaults.h (REGISTER_MOVE_COST): Delete.
13292         * ira-int.h (ira_register_move_cost): Update comment.
13293         * ira.c (ira_register_move_cost): Update comment.
13294         * reload.h (register_move_cost): Declare.
13295         * reginfo.c (register_move_cost): New function.
13296         (move_cost): Update comment.
13297         (init_move_cost, memory_move_secondary_cost): Replace
13298         REGISTER_MOVE_COST with register_move_cost.
13299         * postreload.c (reload_cse_simplify_set): (Ditto.).
13300         * reload.c (find_valid_class, find_reloads): (Ditto.).
13301         * reload1.c (choose_reload_regs): (Ditto.).
13302         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
13303         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
13304         * doc/md.texi (can_create_pseudo_p): Update documentation.
13306         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
13307         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
13308         * config/i386/i386.h (ix86_memory_move_cost): Make static.
13309         (TARGET_MEMORY_MOVE_COST): Define.
13311         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
13312         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
13313         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
13314         (TARGET_MEMORY_MOVE_COST): Define.
13316 2010-06-27  Richard Guenther  <rguenther@suse.de>
13318         PR tree-optimization/44683
13319         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
13320         false edge from the inverted condition.
13322 2010-06-27  Richard Guenther  <rguenther@suse.de>
13324         PR middle-end/44684
13325         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
13326         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
13327         for register LHS.  Or non-store assignments.
13329 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
13331         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
13332         (sparc_emit_set_const64): Likewise.  Remove disabled code.
13333         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
13334         (sparc_emit_set_const64): Likewise.
13336 2010-06-26  Catherine Moore  <clm@codesourcery.com>
13338         * config/mips/mips.md (alu_type): New attribute.
13339         (type): Infer type from alu_type.
13340         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
13341         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
13342         *subsi3_extended, negsi2, negdi2, *low<mode>,
13343         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
13344         xor<mode>3, *nor<mode>3,
13345         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
13346         *zero_extendhi_truncqi):  Set alu_type instead of type.
13348 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
13350         * config/alpha/alpha.c (alpha_need_linkage): Adjust
13351         splay_tree_new_ggc call.
13352         (alpha_use_linkage): Likewise.
13354 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13356         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
13357         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
13358         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
13359         (static_specs): Remove switches_need_spaces.
13360         (process_command, do_self_spec): Hardcode handling "-o" instead of
13361         checking switches_need_spaces.
13362         * system.h (SWITCHES_NEED_SPACES): Poison.
13364 2010-06-26  Richard Guenther  <rguenther@suse.de>
13366         PR tree-optimization/44393
13367         * tree-loop-distribution.c (generate_loops_for_partition): Fix
13368         stmt removal and VOP renaming.
13369         (generate_memset_zero): Remove redundant stmt updating.
13370         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
13371         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
13373 2010-06-26  Jan Hubicka  <jh@suse.cz>
13375         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
13376         edges comming from header are equivalent.
13377         (visit_bb): Handle PHIs correctly.
13378         * tree-inline.c (copy_phis_for_bb): Be able to copy
13379         PHI from entry edge.
13380         (copy_cfg_body): Produce edge from entry BB before copying PHIs.
13382 2010-06-26  Richard Guenther  <rguenther@suse.de>
13384         PR middle-end/44674
13385         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
13386         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
13388 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
13390         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
13391         add_infile, alloc_switch): New.
13392         (process_command): Remove variable lang_n_infiles.  Process
13393         options in a single pass.  Use new functions for allocating
13394         infiles and switches arrays.  Properly skip operands of
13395         -Xpreprocessor and -Xassembler.
13397 2010-06-26  Jan Hubicka  <jh@suse.cz>
13399         PR middle-end/44671
13400         * cgraphunit.c (cgraph_function_versioning): Remove wrong
13401         cgraph_make_decl_local call; fix typo copying RTL data.
13403 2010-06-25  DJ Delorie  <dj@redhat.com>
13405         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
13406         (m32c_output_aligned_common): Likewise.
13407         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
13408         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
13409         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
13410         (m32c_register_pragmas): Register it.
13411         * config/m32c/m32c.c (m32c_get_pragma_address): New.
13412         (m32c_insert_attributes): Set #pragma address decls volatile.
13413         (pragma_entry_eq): New.
13414         (pragma_entry_hash): New.
13415         (m32c_note_pragma_address): New.
13416         (m32c_get_pragma_address): New.
13417         (m32c_output_aligned_common): New.
13418         * doc/extend.texi: Document the new pragma.
13420         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
13421         also.
13422         * config/m32c/predicates.md (m32c_any_operand): Check the code
13423         instead of memory_operand so as to allow matching volatile MEMs.
13424         (m32c_nonimmediate_operand): Likewise.
13425         (mra_operand): Allow volatiles.
13427 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
13429         PR debug/44610
13430         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
13431         address if the offset is unknown.
13433 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
13435         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
13436         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
13437         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
13438         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
13439         to ia64_start_function. Invoke it.
13440         * config/ia64/ia64.c (ia64_start_function): Call new function
13441         dwarf2out_vms_debug_main_pointer.
13443 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13445         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
13446         statements computing the true predicate.
13448 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13450         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
13451         to boolean_true_node.
13452         (reset_bb_predicate): New.
13453         (predicate_bbs): Call reset_bb_predicate.
13455 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13457         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
13458         (tree_if_conversion): Returns true when something has been changed.
13459         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
13460         changed something.
13462 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
13464         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
13465         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
13466         * tree-if-conv.c: Include dbgcnt.h.
13467         (tree_if_conversion): Use if_conversion_tree to count the number of
13468         if-convertible loops.
13470 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
13472         * common.opt (fprefetch-loop-arrays): Re-define
13473         -fprefetch-loop-arrays as a tri-state option with the initial
13474         value of -1.
13475         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
13476         pass only when flag_prefetch_loop_arrays > 0.
13477         * toplev.c (process_options): Note that, with tri-states,
13478         flag_prefetch_loop_arrays>0 means prefetching is enabled.
13479         * config/i386/i386.c (override_options): Enable prefetching at -O3
13480         for a set of CPUs that sw prefetching is helpful.
13481         (software_prefetching_beneficial_p): New.  Return TRUE if software
13482         prefetching is beneficial for the given CPU.
13484 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
13486         PR rtl-optimization/44326
13487         * implicit-zee.c (find_removable_zero_extends): Replace
13488         INSN_P with NONDEBUG_INSN_P.
13490 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13492         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
13493         (struct ipa_node_params): Removed the modification_analysis_done flag.
13494         (ipa_is_param_modified): Removed.
13495         (ipa_analyze_node): Declare.
13496         (ipa_compute_jump_functions): Remove declaration.
13497         (ipa_count_arguments): Likewise.
13498         (ipa_detect_param_modifications): Likewise.
13499         (ipa_analyze_params_uses): Likewise.
13500         * ipa-prop.c (struct param_analysis_info): New type.
13501         (visit_store_addr_for_mod_analysis): Removed.
13502         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
13503         moved down in the file.
13504         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
13505         (ipa_count_arguments): Made static.
13506         (mark_modified): New function.
13507         (is_parm_modified_before_call): New function.
13508         (compute_pass_through_member_ptrs): New parameter parms_info, call
13509         is_parm_modified_before_call instead of ipa_is_param_modified.
13510         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
13511         it to compute_pass_through_member_ptrs.
13512         (ipa_compute_jump_functions): New parameter parms_info, pass it to
13513         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
13514         on the callee if it is analyzed.  Made static.
13515         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
13516         is_parm_modified_before_call instead of ipa_is_param_modified.
13517         (ipa_analyze_call_uses): New parameter parms_info, pass it to
13518         ipa_analyze_indirect_call_uses.
13519         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
13520         ipa_analyze_call_uses.
13521         (ipa_analyze_params_uses): New parameter parms_info, pass it to
13522         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
13523         (ipa_analyze_node): New function.
13524         (ipa_print_node_params): Do not dump the modified flag.
13525         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
13526         it.  Do not stream the modified parameter flag.
13527         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
13528         it.  Do not stream the modified parameter flag.
13529         * ipa-cp.c (ipcp_analyze_node): Removed.
13530         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
13531         with only a call to ipa_analyze_node.
13532         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
13533         node with only a call to ipa_analyze_node.
13535 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13537         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
13539 2010-06-25  Jan Hubicka  <jh@suse.cz>
13541         * tree-pass.h (pass_split_functions): Declare.
13542         * opts.c (decode_options): Enable function splitting at -O2
13543         * timevar.def (TV_IPA_FNSPLIT): New macro.
13544         * ipa-split.c: New file.
13545         * common.opt (-fpartial-inlining): New flag.
13546         * Makefile.in (ipa-split.o): New object file.
13547         * passes.c (init_optimization_passes): Add ipa-split.
13548         * params.def (partial-inlining-entry-probability): New parameters.
13549         * doc/invoke.texi (-fpartial-inlining): New.
13551 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
13553         PR 44665
13554         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
13555         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
13556         (gimplify_expr): Likewise.
13558 2010-06-25  Martin Jambor  <mjambor@suse.cz>
13560         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
13561         statements instead of bailing out on them.
13562         (ipa_analyze_indirect_call_uses): Do not require that loads from the
13563         parameter are in the same BB as the condition.  Update comments.
13565 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
13567         PR middle-end/43866
13568         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
13569         true or always false, return NULL_TREE.
13570         (tree_unswitch_single_loop): Optimize conditions even when reaching
13571         max-unswitch-level parameter.  If num > 0, optimize first all conditions
13572         using entry checks, then do still reachable block discovery and consider
13573         only conditions in still reachable basic blocks in the loop.
13575         PR tree-optimization/44539
13576         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
13577         the call doesn't have LHS, but has VDEF.
13579 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13581         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
13582         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
13583         * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
13584         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
13585         * system.h (MODIFY_TARGET_NAME): Poison.
13587 2010-06-25  Alan Modra  <amodra@gmail.com>
13589         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
13590         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
13591         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
13592         CMODEL_LARGE as default.
13593         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
13594         (offsettable_ok_by_alignment): Delete.
13595         (rs6000_emit_move): Remove mcmodel=medium optimization.
13597 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13599         With large parts from Jim Wilson:
13600         PR target/43902
13601         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
13602         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13603         * optabs.c (optab_for_tree_code): Likewise.
13604         (expand_widen_pattern_expr): Likewise.
13605         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
13606         out of execute_optimize_widening_mul.
13607         (convert_plusminus_to_widen): New function.
13608         (execute_optimize_widening_mul): Use the two new functions.
13609         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
13610         Remove code to generate widening multiply-accumulate.  Add support
13611         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
13612         * gimple-pretty-print.c (dump_ternary_rhs): New function.
13613         (dump_gimple_assign): Call it when appropriate.
13614         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
13615         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
13616         (expand_gimple_stmt_1): Likewise.
13617         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
13618         WIDEN_MULT_MINUS_EXPR.
13619         * tree-ssa-operands.c (get_expr_operands): Likewise.
13620         * tree-inline.c (estimate_operator_cost): Likewise.
13621         * gimple.c (extract_ops_from_tree_1): Renamed from
13622         extract_ops_from_tree.  Add new arg for a third operand; fill it.
13623         (gimple_build_assign_stat): Support operations with three operands.
13624         (gimple_build_assign_with_ops_stat): Likewise.
13625         (gimple_assign_set_rhs_from_tree): Likewise.
13626         (gimple_assign_set_rhs_with_ops_1): Renamed from
13627         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
13628         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
13629         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
13630         WIDEN_MULT_MINUS_EXPR.
13631         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
13632         (extract_ops_from_tree_1): Adjust declaration.
13633         (gimple_assign_set_rhs_with_ops_1): Likewise.
13634         (gimple_build_assign_with_ops): Pass NULL for last operand.
13635         (gimple_build_assign_with_ops3): New macro.
13636         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
13637         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
13638         functions.
13639         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
13640         (verify_gimple_assign): Call it.
13641         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
13642         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
13643         functions for dealing with three-operand statements.
13644         * tree.c (commutative_ternary_tree_code): New function.
13645         * tree.h (commutative_ternary_tree_code): Declare it.
13646         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
13647         ternary statements.
13648         (gimple_assign_nonzero_warnv_p): Likewise.
13649         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
13650         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
13651         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
13652         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
13653         (struct hashtable_expr): New member ternary in the union.
13654         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
13655         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
13656         (iterative_hash_hashable_expr): Likewise.
13657         (print_expr_hash_elt): Handle EXPR_TERNARY.
13658         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
13659         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
13660         statements.  Handle GIMPLE_TERNARY_RHS.
13662 2010-06-25  Jan Hubicka  <jh@suse.cz>
13664         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
13666 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
13668         PR c/44517
13669         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
13670         parameters are not good.
13671         (c_parser_parameter_declaration): Error unknown type name if the type
13672         name can't start declaration specifiers.
13674 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
13676         * gcc.c (translate_options): Don't mention +e in comment.
13677         (process_command): Don't handle +e specially.
13679 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
13681         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
13683         * ira-build.c (merge_hard_reg_conflicts): New function.
13684         (create_cap_allocno, copy_info_to_removed_store_destinations,
13685         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
13686         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
13687         (remove_unnecessary_allocnos, remove_low_level_allocnos)
13688         copy_nifo_to_removed_store_destination): Use them.
13689         * ira-lives.c (make_hard_regno_born): New function, split out of
13690         make_regno_born.
13691         (make_allocno_born): Likewise.
13692         (make_hard_regno_dead): New function, split out of make_regno_dead.
13693         (make_allocno_dead): Likewise.
13694         (inc_register_pressure): New function, split out of set_allocno_live.
13695         (dec_register_pressure): New function, split out of clear_allocno_live.
13696         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
13697         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
13698         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
13699         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
13700         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
13701         mark_pseudo_regno_live.
13702         (process_bb_node_lives): Use mark_pseudo_regno_live,
13703         make_hard_regno_born and make_allocno_dead.
13704         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
13705         set_allocno_live, clear_allocno_live): Delete functions.
13707         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
13708         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
13709         functions.
13710         (ira_flattening): Use ira_parent_allocno.
13711         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
13712         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
13714         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
13715         statement.
13717         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
13718         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
13719         minmax_set_iter_cond, minmax_set_iter_next,
13720         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
13721         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
13722         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
13723         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
13724         uses changed.
13726         * ira-int.h (struct live_range, live_range_t): Renamed from struct
13727         ira_allocno_live_range and allocno_live_range_t; all uses changed.
13728         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
13729         All uses changed.
13731 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
13733         * thumb2.md (thumb2_tlobits_cbranch): Delete.
13734         (peephole2 to convert zero_extract/compare of single bit to
13735          lshift/compare): New.
13737 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
13739         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
13740         recursive call and call to 'int_const_binop'.
13741         (build_range_check, fold_cond_expr_with_comparison, unextend,
13742         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
13743         multiple_of_p): Adjust call to const_binop.
13745 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
13747         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
13748         determine size of XFmode operand.
13749         (XFmode extended DFmode push splitter): Ditto.
13750         (XFmode extended SFmode push splitter): Ditto.
13752 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
13754         PR target/44588
13755         * config/i386/i386.md (extract_code): New.
13756         (<u>divmodqi4): Likewise.
13757         (divmodhiqi3): Likewise.
13758         (udivmodhiqi3): Likewise.
13759         (<u>divqi3): Remvoved.
13761 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
13763         PR middle-end/44492
13764         * recog.h (struct recog_data): Add is_asm field.
13765         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
13766         present in constraints of inline-asm operand and memory operand
13767         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
13768         (extract_insn): Initialize recog_data.is_asm.
13769         * doc/md.texi (Constraints): Document operand side-effect rules.
13771 2010-06-24  Andi Kleen  <ak@linux.intel.com>
13773         * c-parser.c (c_parser_conditional_expression): Call
13774         warn_for_omitted_condop.
13775         * doc/invoke.texi: Document omitted condop warning.
13777 2010-06-24  Nick Clifton<nickc@redhat.com>
13779         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
13780         insn in the sequence is a jump insn before setting its label.
13782 2010-06-24  Alan Modra  <amodra@gmail.com>
13784         * collect2.c (main): Match exactly --version and --help.
13786 2010-06-24  DJ Delorie  <dj@redhat.com>
13788         * config/m32c/m32c-pragma.c: Don't include rtl.h.
13790 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
13792         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
13793         using X87MODEF mode iterator.
13794         (pushsf splitter): Macroize splitter using P mode iterator.
13795         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
13796         mode iterator.
13798         (*movxf_internal): Rename from *movxf_integer.
13799         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
13800         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
13801         (*movdf_internal): Rename from *movdf_integer.
13802         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
13803         (*movsf_internal): Rename from *movdf_1.
13805 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
13807         * coretypes.h (gimple_seq_node_d, gimple_seq_node)
13808         (const_gimple_seq_node): Removed typedefs.
13810         * gimple.h (gimple_seq_node_d, gimple_seq_node)
13811         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
13813 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
13815         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
13816         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
13817         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
13818         and CODE_FOR_vec_extract_lo_v4df.
13820         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
13821         Changed to define_insn_and_split.
13822         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
13823         (vec_extract_lo_v16hi): Likewise.
13824         (vec_extract_lo_v32qi): Likewise.
13825         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
13826         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
13828 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
13830         PR target/44640
13831         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
13832         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
13833         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
13834         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
13835         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
13837         PR target/44640
13838         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
13840         PR other/44644
13841         * df-core.c (struct df): Rename to df_d.
13842         * df.h (struct df): Likewise.
13843         * dse.h (struct df): Remove forward declaration.
13844         * recog.h (struct insn_data): Rename to:
13845         (struct_insn_data_d).  Adjusted all users.
13847 2010-06-23  Arnaud Charlet  <charlet@adacore.com
13849         PR ada/22220
13850         * doc/install.texi: Update requirements to build GNAT.
13852 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
13854         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
13855         enum type.
13856         (m68k_sched_attr_opx_type): Remove unreachable return.
13857         (m68k_sched_attr_opy_type): Likewise.
13858         (m68k_sched_attr_size): Likewise.
13859         (sched_get_opxy_mem_type): Likewise.
13860         (m68k_sched_attr_op_mem): Likewise.
13862 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
13864         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
13865         new statement and adjust VDEF only if necessary.  Remove superfluous
13866         call to maybe_clean_or_replace_eh_stmt.
13867         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
13868         copy the flags.
13869         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
13870         * tree-inline.c (copy_bb): ...and not there.
13872 2010-06-22  Cary Coutant  <ccoutant@google.com>
13874         * dwarf2out.c (is_nested_in_subprogram): New function.
13875         (should_move_die_to_comdat): Use it.
13876         (copy_ancestor_tree): Don't mark DIEs here.
13877         (copy_decls_walk): Start walk from root of newly-added tree;
13878         mark DIEs here instead.
13880 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
13882         * config/i386/i386.md (unit): Also check sseishft1.
13884 2010-06-22  Jan Hubicka  <jh@suse.cz>
13886         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
13887         enabled.
13889 2010-06-22  Jan Hubicka  <jh@suse.cz>
13891         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
13892         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
13893         Return true if something changed.
13894         * df.h (df_confluence_function_n): Return bool.
13895         * df-core.c (df_worklist_propagate_forward,
13896         df_worklist_propagate_backward): Track changes and ages.
13897         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
13898         track ages.
13899         * dse.c (dse_confluence_n): Return always true.
13901 2010-06-22  Jan Hubicka  <jh@suse.cz>
13903         * bitmap.c (bitmap_clear_bit): Micro optimize.
13905 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
13907         * config/i386/i386.md (SWI1248x): New mode iterator.
13908         (SWI48x): Ditto.
13909         (SWI12): Ditto.
13910         (SWI24): Ditto.
13912         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
13913         SWI1248x mode iterator.
13914         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
13915         using SWI124 mode iterator.
13916         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
13917         mode iterator.
13918         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
13919         *pushdi2_prologue_rex64 using P mode iterator.
13920         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
13921         using SWI48 mode iterator.
13922         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
13923         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
13924         using SWI1248x mode iterator.
13925         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
13926         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
13927         SWI48 mode iterator.
13928         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
13929         iterator.
13930         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
13931         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
13932         SWI12 mode iterator.
13933         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
13934         SWI12 mode iterator.
13935         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
13936         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
13937         SWI24 mode iterator.
13938         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
13939         SWI48 mode iterator.
13940         (mov<mode>_insn_1): New expander.
13941         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
13942         using SWI48x mode iterator.
13944         (*movoi_internal_avx): Rename from *movoi_internal.
13945         (*movti_internal_rex64): Rename from *movti_rex64.
13946         (*movti_internal_sse): Rename from *movti_sse.
13947         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
13948         (*movdi_internal): Rename from *movdi_2.
13949         (*movsi_internal): Rename from *movsi_1.
13950         (*movhi_internal): Rename from *movhi_1.
13951         (*movqi_internal): Rename from *movqi_1.
13953         (insv): Update the call to gen_movsi_insv_1 for rename.
13954         * config/i386/i386.c (promote_duplicated_reg): Ditto.
13956 2010-06-22  Jan Hubicka  <jh@suse.cz>
13958         * passes.c (execute_function_todo): Move call of statistics_fini_pass
13959         to ...
13960         (execute_todo) ... this one.
13962 2010-06-22  Alan Modra  <amodra@gmail.com>
13964         PR target/44364
13965         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
13966         * caller-save.c (insert_restore, insert_save): Use non-validate
13967         form of adjust_address.
13969 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13971         PR target/39690
13972         * config/pa/pa.c (override_options): Disable
13973         -freorder-blocks-and-partition.
13975 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
13977         PR target/44615
13978         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
13980         * config/i386/i386.md (type): Add sseishft1
13982         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
13983         (ppro_insn_load): Likewise.
13984         (ppro_insn_store): Likewise.
13985         (ppro_insn_both): Likewise.
13987         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
13988         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
13989         for type.
13990         (*vec_extractv2di_1_avx): Likewise.
13991         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
13992         type.  Remove atom_unit.
13993         (*vec_extractv2di_1_sse2): Likewise.
13995 2010-06-21  DJ Delorie  <dj@redhat.com>
13997         * diagnostic.h (diagnostic_classification_change_t): New.
13998         (diagnostic_context): Add history and push/pop list.
13999         (diagnostic_push_diagnostics): Declare.
14000         (diagnostic_pop_diagnostics): Declare.
14001         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
14002         from pragmas in a history chain instead of the global table.
14003         (diagnostic_push_diagnostics): New.
14004         (diagnostic_pop_diagnostics): New.
14005         (diagnostic_report_diagnostic): Scan history chain to find state
14006         of diagnostics as of the diagnostic location.
14007         * opts.c (set_option): Pass UNKNOWN_LOCATION to
14008         diagnostic_classify_diagnostic.
14009         (enable_warning_as_error): Likewise.
14010         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
14011         use in the history chain.
14012         * doc/extend.texi: Document pragma GCC diagnostic changes.
14014 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
14016         * dwarf2out.c (add_linkage_name): New function.  Don't add
14017         anything to DW_TAG_member DIEs.
14018         (add_name_and_src_coords_attributes): Use it.
14019         (gen_variable_die): Call it for C++ static data members if
14020         specification is DW_TAG_member.
14022         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
14023         C++ char16_t and char32_t.
14025         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
14026         * genattrtab.c: Include vecprim.h.
14027         (cached_attrs, cached_attr_count, attrs_seen_once,
14028         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
14029         attrs_cached_after): New variables.
14030         (find_attrs_to_cache): New function.
14031         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
14032         (write_test_expr): Add attrs_cached argument, return it too,
14033         attempt to cache non-const attributes used more than once in
14034         a single case handling.
14035         (write_attr_get): Use find_attrs_to_cache, for caching candidates
14036         emit cached_* variables.  Adjust write_attr_set callers.
14037         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
14038         to find attributes that should be cached in this block.  Adjust
14039         write_test_expr callers.
14040         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
14041         callers.
14042         (make_automaton_attrs): Adjust write_test_expr caller.
14044         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
14045         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
14046         (make_automaton_attrs): If find_tune_attr returns non-NULL,
14047         write separate internal_dfa_insn_code_* and insn_default_latency_*
14048         functions for each attribute's value and emit init_sched_attrs
14049         function and function pointers.
14050         * genattr.c (const_attrs, reservations): New variables.
14051         (gen_attr): Add const attributes to const_attrs vector.
14052         (check_tune_attr, find_tune_attr): New functions.
14053         (main): Add reservations to reservations vector.  If find_tune_attr
14054         returns true, add prototype for init_sched_attrs and make
14055         internal_dfa_insn_code and insn_default_latency function pointers,
14056         otherwise define init_sched_attrs as dummy macro.
14057         * cfgexpand.c: Include insn-attr.h.
14058         (gimple_expand_cfg): Call init_sched_attrs.
14060         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
14062         PR target/44575
14063         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
14064         va_arg from a set of register save slots into a temporary,
14065         if the container is bigger than type size, do the copying
14066         using smaller mode or using memcpy.
14068         PR bootstrap/44426
14069         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
14070         prototype.
14071         (sel_print_to_dot): Remove macro.
14072         (sel_print): Likewise.  New prototype.
14073         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
14074         (sel_print): New function.
14076 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14078         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
14079         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
14081 2010-06-21  Nick Clifton  <nickc@redhat.com>
14083         * config/rx/rx.h (PTRDIFF_TYPE): Define.
14084         (SMALL_REGISTER_CLASS): Define (to zero).
14085         (PRINT_OPERAND): Delete.
14086         (PRINT_OPERAND_ADDRESS): Delete.
14087         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
14088         (rx_print_operand_address): Delete prototype.
14089         * config/rx/rx.c (rx_print_operand): Make static.
14090         Allow %H and %L to handle CONST_DOUBLEs.
14091         (rx_print_operand_address): Make static.
14092         (rx_gen_move_template): Rename local variable 'template' to
14093         out_template.
14094         (rx_function_arg): Do not pass unknown sized objects in registers.
14095         (TARGET_PRINT_OPERAND): Define.
14096         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14098 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
14100         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
14102 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
14104         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
14105         stack-alignment for simple leaf-functions.
14107 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14109         * doc/install.texi: Document bootstrap-lto.
14111 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
14113         PR debug/44248
14114         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
14115         (input_function): Drop them here, if VTA is disabled.
14117 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
14119         PR target/44546
14120         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
14121         New predicate.
14122         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
14123         ix86_swapped_fp_comparsion_operator instead of
14124         ix86_fp_comparison_operator.
14126         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
14127         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
14128         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
14129         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
14130         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
14131         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
14133 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
14135         PR other/32998
14136         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
14137         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
14138         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
14139         (decode_cmdline_option): Update for this return value.  Set
14140         orig_option_with_args_text field.  Set arg field for unknown
14141         options.  Make static.
14142         (decode_cmdline_options_to_array): New.
14143         (prune_options): Update handling of find_opt return value.
14144         * opts.c (read_cmdline_option): Take decoded option.  Return void.
14145         (read_cmdline_options): Take decoded options.
14146         (decode_options): Add parameters for decoded options.  Use
14147         decode_cmdline_options_to_array.  Use decoded options for -O
14148         scan.  Use integral_argument for -O parameters.  Update call to
14149         read_cmdline_options.
14150         (enable_warning_as_error): Update handling of find_opt return value.
14151         * opts.h: Update comment on unknown options.
14152         (struct cl_decoded_option): Update comments on opt_index and arg.
14153         Add orig_option_with_args_text.
14154         (decode_cmdline_option): Remove.
14155         (decode_cmdline_options_to_array): Declare.
14156         (decode_options): Update prototype.
14157         * toplev.c (save_argv): Remove.
14158         (save_decoded_options, save_decoded_options_count): New.
14159         (read_integral_parameter): Remove.
14160         (print_switch_values): Use decoded options.
14161         (toplev_main): Don't set save_argv.  Update call to decode_options.
14162         * toplev.h (read_integral_parameter): Remove.
14163         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
14165 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
14167         PR target/44072
14168         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
14169         immediate.
14170         * constraints.md (Pw, Px): New constraints.
14171         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
14173 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
14175         * config/i386/sse.md (fma4modesuffixf4): Removed.
14176         (ssemodesuffixf2s): Likewise.
14177         (ssemodesuffixf4): Likewise.
14178         (ssemodesuffixf2c): Likewise.
14179         (ssescalarmodesuffix2s): Likewise.
14180         (avxmodesuffixf2c): Likewise.
14181         (ssemodesuffix): New.
14182         (ssescalarmodesuffix): Likewise.
14183         Update patterns with ssemodesuffix and ssescalarmodesuffix.
14185 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
14187         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
14189 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
14191         * stor-layout.c (debug_rli): Remove unused local variables.
14193 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
14195         PR rtl-optimization/40900
14196         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
14197         original expression for later reuse.
14198         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
14199         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
14201 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
14203         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
14204         double_int_fits_in_uhwi_p): Implement as static inline.
14205         (double_int_xor): New inline function.
14206         (double_int_lrotate, double_int_rrotate, double_int_max,
14207         double_int_umax, double_int_smax, double_int_min, double_int_umin,
14208         double_int_smin): Declare.
14209         (lrotate_double, rrotate_double): Remove declaration.
14210         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
14211         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
14212         (double_int_lrotate, double_int_rrotate, double_int_max,
14213         double_int_umax, double_int_smax, double_int_min, double_int_umin,
14214         double_int_smin): New function.
14215         * fold-const.c (int_const_binop): Clean up, use double_int_*
14216         functions.
14217         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
14218         double_int_* and immed_double_int_const functions.
14220 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14222         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
14223         * function.c (types_used_by_cur_var_decl): Likewise.
14224         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
14226 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
14228         * tree.h (record_layout_info): Change type of pending_statics field
14229         to a VEC.
14230         * stor-layout.c (start_record_layout): Store NULL into
14231         pending_statics.
14232         (debug_rli): Call debug_vec_tree instead of debug_tree.
14233         (place_field): Likewise.
14234         (finish_record_layout): Likewise.
14236 2010-06-18  Alan Modra  <amodra@gmail.com>
14238         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
14240 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14242         PR target/43740
14243         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
14244         for SET source operand from SET destination operand.
14246 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
14248         PR rtl-optimization/39871
14249         * reload1.c (init_eliminable_invariants): For flag_pic, disable
14250         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
14251         (function_invariant_p): Rule out a plus of frame or arg pointer with
14252         a SYMBOL_REF.
14253         * ira.c (find_reg_equiv_invariant_const): Likewise.
14255 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
14257         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
14258         print_operand_address and puts to output the operand for CONST.
14260 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
14262         PR debug/44572
14263         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
14264         hook.
14266 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14268         * v850-protos.h (print_operand): Delete.
14269         (print_operand_address): Delete.
14270         * v850.h (PRINT_OPERAND): Delete.
14271         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14272         (PRINT_OPERAND_ADDRESS): Delete.
14273         * v850.c (print_operand_address): Rename to...
14274         (v850_print_operand_address): ...this.  Make static. Call
14275         v850_print_operand.
14276         (print_operand): Rename to...
14277         (v850_print_operand): ...this.  Make static.  Call
14278         v850_print_operand_address.
14279         (v850_print_operand_punct_valid_p): New function.
14280         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14281         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14283 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14285         * config/sh/sh-protos.h (print_operand): Delete.
14286         (print_operand_address): Delete.
14287         * config/sh/sh.h (PRINT_OPERAND): Delete.
14288         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14289         (PRINT_OPERAND_ADDRESS): Delete.
14290         * config/sh/sh.c (sh_print_operand_address): Make static.
14291         (sh_print_operand): Make static.  Call sh_print_operand_address
14292         and sh_print_operand.
14293         (sh_print_operand_punct_valid_p): New function.
14294         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14295         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14297 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14299         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
14300         (mcore_print_operand_address): Delete.
14301         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
14302         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14303         (PRINT_OPERAND_ADDRESS): Delete.
14304         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
14305         (mcore_print_operand): Make static.
14306         (mcore_print_operand_punct_valid_p): New function.
14307         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
14308         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
14310 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14312         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
14313         (print_operand_address): Delete.
14314         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
14315         (PRINT_OPERAND_ADDRESS): Delete.
14316         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
14317         static.
14318         (m68hc11_print_operand): Make static.
14319         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
14321 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14323         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
14324         (m32r_print_operand_address): Delete.
14325         * config/m32r/m32r.h (m32r_punct_chars): Delete.
14326         (PRINT_OPERAND): Delete.
14327         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14328         (PRINT_OPERAND_ADDRESS): Delete.
14329         * config/m32r/m32r.c (m32r_punct_chars): Make static.
14330         (m32r_print_operand_address): Make static.
14331         (m32r_print_operand): Make static.
14332         (m32r_print_operand_punct_valid_p): New function.
14333         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14334         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14336 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14338         * config/iq2000/iq2000-protos.h (print_operand): Delete.
14339         (print_operand_address): Delete.
14340         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
14341         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14342         (PRINT_OPERAND_ADDRESS): Delete.
14343         (iq2000_print_operand_punct): Delete.
14344         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
14345         (iq2000_print_operand_address): Make static.
14346         (iq2000_print_operand): Make static.
14347         (iq2000_print_operand_punct_valid_p): New function.
14348         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14349         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14351 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14353         * config/frv/frv-protos.h (frv_print_operand): Delete.
14354         (frv_print_operand_address): Delete.
14355         * config/frv/frv.h (PRINT_OPERAND): Delete.
14356         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14357         (PRINT_OPERAND_ADDRESS): Delete.
14358         * config/frv/frv.c (frv_print_operand_address): Make static.
14359         (frv_print_operand): Make static.
14360         (frv_print_operand_punct_valid_p): New function.
14361         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14362         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14364 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
14366         * tree.h (vec_member): Declare.
14367         * tree.c (vec_member): Define.
14369 2010-06-17  Richard Guenther  <rguenther@suse.de>
14371         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
14372         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
14374 2010-06-17  Richard Guenther  <rguenther@suse.de>
14376         * tree-inline.c (declare_return_variable): Remove bogus code.
14378 2010-06-17  Richard Guenther  <rguenther@suse.de>
14380         * gimplify.c (gimplify_bind_expr): Always promote complex
14381         and vector variables to registers if possible.
14383 2010-06-17  Richard Guenther  <rguenther@suse.de>
14385         * expr.c (get_inner_reference): Use double_int for bit_offset
14386         calculation.
14388 2010-06-16  DJ Delorie  <dj@redhat.com>
14390         * common.opt (-fstrict-volatile-bitfields): new.
14391         * doc/invoke.texi: Document it.
14392         * fold-const.c (optimize_bit_field_compare): For volatile
14393         bitfields, use the field's type to determine the mode, not the
14394         field's size.
14395         * expr.c (expand_assignment): Likewise.
14396         (get_inner_reference): Likewise.
14397         (expand_expr_real_1): Likewise.
14398         * expmed.c (store_fixed_bit_field): Likewise.
14399         (extract_bit_field_1): Likewise.
14400         (extract_fixed_bit_field): Likewise.
14402 2010-06-16  Richard Guenther  <rguenther@suse.de>
14404         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
14406 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
14408         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
14409         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
14410         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
14411         * debug.c: Likewise.
14412         * sdbout.c: Likewise.
14413         * vmsdbgout.c: Likewise.
14414         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
14415         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
14416         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
14417         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
14418         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
14419         * dwarf2out.c (dw_fde_struct): New fields
14420         dw_fde_vms_{end,begin}_prologue.
14421         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
14422         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
14423         (dwarf2out_vms_end_prologue): New function.
14424         (dwarf2out_vms_begin_epilogue): New function.
14425         (dw_val_struct): New value dw_val_class_vms_delta.
14426         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
14427         begin_epilogue for VMS.
14428         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
14429         new static functions.
14430         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
14431         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
14432         static functions.
14433         (print_die): New case dw_val_class_vms_delta.
14434         (attr_checksum): Likewise.
14435         (same_dw_val_p: Likewise.
14436         (size_of_die): Likewise.
14437         (value_format): Likewise.
14438         (output_die): Likewise.
14439         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
14440         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
14441         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
14442         dwarf2out_cfi_begin_epilogue
14443         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
14445 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14447         * config/cris/cris-protos.h (cris_print_operand): Delete.
14448         (cris_print_operand_address): Delete.
14449         * config/cris/cris.h (PRINT_OPERAND): Delete.
14450         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14451         (PRINT_OPERAND_ADDRESS): Delete.
14452         * config/cris/cris.c (cris_print_operand_address): Make static.
14453         (cris_print_operand): Make static.
14454         (cris_print_operand_punct_valid_p): New function.
14455         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14456         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14458 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
14460         * config/arm/arm-protos.h (arm_print_operand): Delete.
14461         (arm_print_operand_address): Delete.
14462         * config/arm/arm.h (PRINT_OPERAND): Delete.
14463         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
14464         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
14465         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
14466         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
14467         (arm_print_operand): Make static.
14468         (arm_print_operand_punct_valid_p): New function.
14469         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
14470         (TARGET_PRINT_OPERAND_ADDRESS): Define.
14472 2010-06-16  Nick Clifton  <nickc@redhat.com>
14474         * config/rx/constraints.md (NEGint4): New constraint.
14475         * config/rx/rx.md (attr cc): Add set_zsc.
14476         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
14477         initialised.
14478         (cmpsf): Likewise.
14479         (call_internal): Clobber the cc0 register.
14480         (call_value_internal): Likewise.
14481         (cstoresi4): Likewise.
14482         (movsieq): Likewise.
14483         (movsine): Likewise.
14484         (addsi3): Add alternative to handle small negative constants.
14485         (sunsi3): Likewise.
14486         (addsi3): Do not set the O bit in the cc0 register.
14487         (adddi3): Likewise.
14488         (subsi3): Likewise.
14489         (subdi3): Likewise.
14490         (andsi3): Reorder alternatives to prefer shorter forms.
14491         (mulsi3): Likewise.
14492         (iorsi3): Likewise.
14493         (negsi2): Note that the cc0 flags are set.
14494         (rotlsi3): Note that only the Z and S bits are set in cc0.
14495         (lshrsi3): Likewise.
14496         (ashlsi3): Likewise.
14497         (subsf3): Use %Q for the MEM operand.
14498         (fix_truncsfsi2): Likewise.
14499         (floatsisf2): Likewise.
14500         (bitset): Remove early clobber from destination.
14501         (bitset_in_memory): Likewise.
14502         (lrintsf2): Clobber the cc0 register.
14503         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
14504         (rx_print_operand): Handle %N.
14506 2010-06-16  Jan Hubicka  <jh@suse.cz>
14508         * df-core.c (df_compact_blocks): Free problem_temps vector.
14510 2010-06-16  Martin Jambor  <mjambor@suse.cz>
14512         PR tree-optimization/43905
14513         * tree-sra.c: Include tree-inline.h.
14514         (create_abstract_origin): Removed.
14515         (modify_function): Version the call graph node instead of creating
14516         abstract origins and dealing with same_body aliases.
14517         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
14518         function is versionable.
14519         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
14521 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
14523         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
14524         (CHOOSE_DYNAMIC_LINKER): Update.
14526 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
14528         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
14529         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
14530         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
14531         *prefetch_3dnow_rex.
14533 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
14535         * target.h (struct asm_out):Add declare_constant_name field.
14536         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14537         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
14538         * output.h (default_asm_declare_constant_name): Declare.
14539         (assemble_label): Update prototype.
14540         * varasm.c (assemble_constant_contents): Use
14541         targetm.asm_out.declare_constant_name target hook.
14542         (assemble_label): Add 'file' argument.
14543         (default_asm_declare_constant_name): New function.
14544         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
14545         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
14546         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
14548         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
14549         * config/darwin.c (darwin_asm_declare_constant_name): New function.
14550         (machopic_output_indirection): Update assemble_label argument list.
14551         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
14552         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
14554 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
14556         PR middle-end/44391
14557         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
14558         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
14560 2010-06-15  Richard Guenther  <rguenther@suse.de>
14562         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
14564 2010-06-15  Paul Brook  <paul@codesourcery.com>
14566         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
14567         hard-float ABI.
14569 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
14571         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
14572         don't get a vector type for output.
14574 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
14576         PR fortran/44536
14577         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
14578         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
14579         (LANG_HOOKS_DECLS): Add it.
14580         * gimplify.c (omp_notice_variable): Call
14581         lang_hooks.decls.omp_report_decl.
14583 2010-06-15  Martin Jambor  <mjambor@suse.cz>
14585         PR lto/44464
14586         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
14587         on the newly dead SSA name.
14589 2010-06-15  Alan Modra  <amodra@gmail.com>
14591         * doc/invoke.texi: Add mcmodel to powerpc options.
14592         * configure.ac: Add HAVE_LD_LARGE_TOC test.
14593         * configure: Regenerate.
14594         * config.in: Regenerate.
14595         * config/rs6000/linux64.opt (mcmodel): New.
14596         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
14597         (TARGET_CMODEL, SET_CMODEL): Define.
14598         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
14599         select CMODEL_MEDIUM default.
14600         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
14601         (TARGET_CMODEL): Define default.
14602         * config/rs6000/rs6000.c (cmodel): New variable.
14603         (rs6000_explicit_options): Add cmodel field.
14604         (rs6000_handle_option): Handle -mcmodel.
14605         (create_TOC_reference): Add largetoc_reg param.  Generate high,
14606         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
14607         (rs6000_delegitimize_address): Recognise new toc reference rtl
14608         and minimal-toc rtl.
14609         (rs6000_legitimize_reload_address): Handle new toc references.
14610         (print_operand_address): Handle legitimate_constant_pool_address_p
14611         match before lo_sum.
14612         (rs6000_eliminate_indexed_memrefs): Tidy.
14613         (rs6000_emit_move): Tweak threshold for inlining constants.
14614         Keep rs6000_emit_allocate_stack large stack frame offsets
14615         loaded into r0 inline.
14616         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
14617         (tocrel_base, tocrel_offset): New variables.
14618         (toc_relative_expr_p): Set them here.
14619         (print_operand_address): Skip over any offset on constant pool address.
14620         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
14621         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
14622         (offsettable_ok_by_alignment): New function.
14623         (rs6000_emit_move): Address suitably aligned local symbol_refs
14624         relative to the toc pointer for -mcmodel=medium.
14625         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
14626         strict param.  Allow lo_sum version of addressing.  Verify reg
14627         used for -mminimal-toc and -mcmodel != small.  Update all callers.
14628         * config/rs6000/constraints.md: Update for above change.
14629         * config/rs6000/predicates.md: Likewise.
14630         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
14631         code.
14632         (tls_gd): Split for -mcmodel=medium/large.
14633         (tls_gd_high, tls_gd_low): New.
14634         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
14635         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
14636         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
14637         (largetoc_high, largetoc_low): New.
14638         (cmptf_internal2): Add clobber.
14639         * config/rs6000/rs6000-protos.h: Update.
14641 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
14643         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
14644         true if no prefetch is going to be generated for a given group.
14645         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
14646         estimate the prefetch_count.
14647         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
14648         prefetch count by considering the unroll_factor and prefetch_mod
14649         for is_loop_prefetching_profitable.
14651 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
14653         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
14654         anything if the argument is not a MEM.
14656 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14658         PR debug/43650
14659         PR debug/44181
14660         PR debug/44247
14661         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
14662         debug stmts.
14663         (canonicalize_loop_ivs): Likewise.
14665 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
14667         PR debug/43656
14668         * haifa-sched.c (setup_insn_reg_pressure_info,
14669         update_register_pressure): Reject debug insns.
14670         (ready_sort): Don't setup reg pressure for debug insns.
14671         (schedule_insn): Don't update reg pressure for debug insns.
14673 2010-06-14  Richard Guenther  <rguenther@suse.de>
14675         * lto-streamer.c (cached_bp): Remove.
14676         (bitpack_delete): Likewise.
14677         (bitpack_create): Likewise.
14678         (bp_get_next_word): Likewise.
14679         (bp_pack_value, bp_unpack_value): Move ...
14680         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
14681         Re-implement.
14682         (struct bitpack_d): Likewise.
14683         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
14684         New inline functions.
14685         * lto-streamer-out.c (lto_output_bitpack): Remove.
14686         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14687         (pack_value_fields): Adjust.
14688         (lto_write_tree): Likewise.
14689         (output_gimple_stmt): Likewise.
14690         (output_function): Likewise.
14691         * lto-streamer-in.c (input_gimple_stmt): Adjust.
14692         (input_function): Likewise.
14693         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
14694         (lto_input_bitpack): Remove.
14695         (lto_materialize_tree): Adjust.
14696         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
14697         * lto-cgraph.c (lto_output_edge): Adjust.
14698         (lto_output_node): Likewise.
14699         (lto_output_varpool_node): Likewise.
14700         (lto_output_ref): Likewise.
14701         (input_node): Likewise.
14702         (input_varpool_node): Likewise.
14703         (input_ref): Likewise.
14704         (input_edge): Likewise.
14705         (output_node_opt_summary): Likewise.
14706         (input_node_opt_summary): Likewise.
14707         * ipa-pure-const.c (pure_const_write_summary): Likewise.
14708         (pure_const_read_summary): Likewise.
14709         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
14710         (ipa_read_indirect_edge_info): Likewise.
14711         (ipa_write_node_info): Likewise.
14712         (ipa_read_node_info): Likewise.
14714 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
14716         PR target/44534
14717         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
14718         (vec_extract_lo_v16hi): Likewise.
14719         (vec_extract_lo_v32qi): Likewise.
14721 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14723         PR bootstrap/44426
14724         * tree.h (build_call_expr): Don't define as vararg macro, instead
14725         add a prototype.
14726         * builtins.c (build_call_nofold): Remove.
14727         (expand_builtin_int_roundingfn, expand_builtin_pow,
14728         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
14729         expand_builtin_memset_args, expand_builtin_strcmp,
14730         expand_builtin_strncmp, expand_builtin_memory_chk): Use
14731         build_call_nofold_loc instead of build_call_nofold.
14732         (build_call_expr): New function.
14734         PR tree-optimization/44508
14735         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
14736         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
14737         don't eliminate trivially dead stmts.
14738         * tree-vrp.c (vrp_finalize): Pass false as last argument
14739         to substitute_and_fold.
14740         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
14741         to substitute_and_fold.
14742         * tree-ssa-ccp.c (ccp_finalize): Likewise.
14744         PR bootstrap/44509
14745         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
14747 2010-06-14  Ira Rosen  <irar@il.ibm.com>
14749         PR tree-optimization/44507
14750         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
14751         to build initial vector for BIT_AND_EXPR.
14752         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
14754 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
14756         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
14757         adjust z10prop set_attr.
14759 2010-06-13  Jan Hubicka  <jh@suse.cz>
14761         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
14762         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
14763         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
14764         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
14765         datastructure checks into checking asserts.
14766         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
14767         * tree-ssa-sccvn.c (VN_INFO): Likewise.
14768         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
14769         df_ref_create_structure): Likewise.
14770         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
14771         pool_free): Use gcc_checking_assert.
14772         * alias.c (get_alias_set): Likewise.
14773         * var-tracking.c (variable_htab_free, shared_hash_copy,
14774         canonicalize_values_mark, variable_merge_over_cur): Likewise.
14775         * lto-streamer.c (bp_unpack_value): Likewise.
14777 2010-06-13  Richard Guenther  <rguenther@suse.de>
14779         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
14780         Do not stream but initialize TYPE_CANONICAL to NULL.
14781         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
14782         * gimple.c (gimple_types_compatible_p): Disregard
14783         TYPE_STRUCTURAL_EQUALITY_P.
14784         (gimple_register_type): Use TYPE_CANONICAL as cache.
14785         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
14786         before registering common types.
14787         * config/i386/i386.c (ix86_function_arg_boundary): Do not
14788         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
14789         * tree.h (TYPE_CANONICAL): Clarify documentation.
14791 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
14793         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
14794         LIBCALL_VALUE): Remove macros.
14795         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
14796         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
14797         TARGET_FUNCTION_VALUE_REGNO_P): Define.
14798         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
14799         (ia64_function_value): Make static. Handle receiving the function
14800         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
14802 2010-06-12  Jan Hubicka  <jh@suse.cz>
14804         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
14805         at correct place.
14807 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
14809         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
14811 2010-06-12  Jan Hubicka  <jh@suse.cz>
14813         * df-core.c (df_clear_bb_info): New function.
14814         (df_set_blocks): bb_info is always allocated.
14815         (df_get_bb_info): Use block_info_elt_size.
14816         (df_set_bb_info): Likewise.
14817         (df_compact_blocks): Update for new block_info.
14818         (grow_bb_info): New function.
14819         * df-problems.c (df_grow_bb_info): Move to df-core.c
14820         (df_rd_set_bb_info): Remove.
14821         (df_rd_free_bb_info): Do not free block pool.
14822         (df_rd_alloc): Do not create pool, use check for
14823         obstack presence instead of NULL pointer for new blocks.
14824         (df_rd_free): DO not free alloc pool; clear block_info.
14825         (problem_RD): Add size of block info structure.
14826         (df_lr_set_bb_info): Remove.
14827         (df_lr_free_bb_info): Do not free block pool.
14828         (df_lr_alloc): Do not create pool, use check for
14829         obstack presence instead of NULL pointer for new blocks.
14830         (df_lr_free): DO not free alloc pool; clear block_info.
14831         (problem_LR): Add size of block info structure.
14832         (df_live_set_bb_info): Remove.
14833         (df_live_free_bb_info): Do not free block pool.
14834         (df_live_alloc): Do not create pool, use check for
14835         obstack presence instead of NULL pointer for new blocks.
14836         (df_live_free): DO not free alloc pool; clear block_info.
14837         (problem_LIVE): Add size of block info structure.
14838         (problem_CHAIN): Add size of block info structure.
14839         (df_byte_lr_set_bb_info): Remove.
14840         (df_byte_lr_free_bb_info): Do not free block pool.
14841         (df_byte_lr_alloc): Do not create pool, use check for
14842         obstack presence instead of NULL pointer for new blocks.
14843         (df_byte_lr_free): DO not free alloc pool; clear block_info.
14844         (problem_BYTE_LR): Add size of block info structure.
14845         (problem_NOTE): Add size of block info structure.
14846         (df_byte_MD_set_bb_info): Remove.
14847         (df_byte_MD_free_bb_info): Do not free block pool.
14848         (df_byte_MD_alloc): Do not create pool, use check for
14849         obstack presence instead of NULL pointer for new blocks.
14850         (df_byte_MD_free): DO not free alloc pool; clear block_info.
14851         (problem_BD): Add size of block info structure.
14852         * df-scan.c (df_scan_free_internal): Free block pool.
14853         (df_scan_set_bb_info): Remove.
14854         (df_scan_free_bb_info): Check for artificial_defs instead
14855         of bb_info being non-NULL.
14856         (df_scan_alloc): DO not create df_scan_block pool.
14857         (problem_SCAN): Set size of block info.
14858         (df_bb_refs_record): Do not allocate bb_info.
14859         * df.h (df_problem): Add block_info_elt_size.
14860         (struct dataflow): Change block_info to void *.
14861         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
14862         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
14863         in-line structures.
14865 2010-06-12  Jan Hubicka  <jh@suse.cz>
14867         PR tree-optimize/44485
14868         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
14869         containing use of return value of noreturn function.
14871 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
14873         * targhooks.c (default_function_value): Don't use
14874         FUNCTION_OUTGOING_VALUE.
14875         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
14876         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
14878 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
14880         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
14881         Add crtfastmath.o to extra_parts.
14882         * config/mips/crtfastmath.c: New.
14883         * config/mips/linux.h (ENDFILE_SPEC): New.
14885 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
14887         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
14888         old_type in parameter.
14889         (gcc_type_for_value): Update call to gcc_type_for_interval.
14890         (compute_type_for_level_1): Renamed compute_type_for_level.
14891         Update call to gcc_type_for_interval.
14893 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14895         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
14896         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
14898 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
14900         * opts-common.c: Include options.h.
14901         (integral_argument): Move from opts.c.
14902         (decode_cmdline_option): New.  Based on read_cmdline_option.
14903         * opts.c (integral_argument): Move to opts-common.c.
14904         (read_cmdline_option): Move most contents to
14905         decode_cmdline_option.  Use %qs in diagnostics.
14906         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
14907         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
14908         decode_cmdline_option): New.
14910 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14912         PR target/44481
14913         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
14914         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
14915         (partiysi2_cmp): Ditto.
14916         (*partiyhi2_cmp): Ditto.
14917         (*parityqi2_cmp): Remove.
14919 2010-06-11  Jan Hubicka  <jh@suse.cz>
14921         * bitmap.h (bmp_iter_next_bit): New.
14922         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
14924 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
14925             Eric Botcazou  <ebotcazou@adacore.com>
14927         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
14928         computed cost.
14930 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
14932         * config/i386/i386.md (unspec): New define_c_enum.
14933         (unspecv): Ditto.
14935 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
14937         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
14939 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
14941         PR middle-end/44483
14942         * tree-if-conv.c (bb_predicate_s): New struct.
14943         (bb_predicate_p): New.
14944         (bb_has_predicate): New.
14945         (bb_predicate): New.
14946         (set_bb_predicate): New.
14947         (bb_predicate_gimplified_stmts): New.
14948         (set_bb_predicate_gimplified_stmts): New.
14949         (add_bb_predicate_gimplified_stmts): New.
14950         (init_bb_predicate): New.
14951         (free_bb_predicate): New.
14952         (is_predicated): Use bb_predicate.
14953         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
14954         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
14955         before processing their successors.
14956         (clean_predicate_lists): Removed.
14957         (find_phi_replacement_condition): Use bb_predicate.
14958         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
14959         computations.
14960         (insert_gimplified_predicates): New.
14961         (combine_blocks): Call insert_gimplified_predicates.
14962         (tree_if_conversion): Call free_bb_predicate instead of
14963         clean_predicate_lists.
14965 2010-10-11  Paul Brook  <paul@codesourcery.com>
14967         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
14968         * config/arm/arm.c (all_architectures): Change v7e-m default to
14969         cortexm4.
14970         * config/arm/arm-cores.def: Add cortex-m4.
14971         * config/arm/arm-tune.md: Regenerate.
14973 2010-06-11  Jan Hubicka  <jh@suse.cz>
14975         * ipa-pure-const.c (special_builtlin_state): New function.
14976         (check_call): Use it instead of special casign BUILT_IN_RETURN.
14977         (propagate_pure_const): Use it.
14979 2010-06-11  Jan Hubicka  <jh@suse.cz>
14981         * df-problems.c (df_live_scratch): Convert to bitmap_head.
14982         (df_live_alloc): Initialize df_live_scratch when initializing
14983         problem_data.
14984         (df_live_transfer_function): Update uses of df_live_scratch.
14985         (df_live_free): Free problem_data; clear df_live_scratch before
14986         releasing the obstack.
14987         (df_md_free): Free problem data.
14989 2010-06-11  Jan Hubicka  <jh@suse.cz>
14991         * doc/invoke.texi (Wsuggest-attribute): Document.
14992         (Wmissing-noreturn): Remove.
14993         * ipa-pure-const.c (warn_function_noreturn): New function.
14994         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
14995         warn_missing_noreturn.
14996         * common.opt (Wsuggest-attribute=noreturn): New.
14997         * tree-flow.h (warn_function_noreturn): Declare.
14998         * tree-cfg.c (execute_warn_function_noreturn): Use
14999         warn_function_noreturn.
15000         (gate_warn_function_noreturn): New.
15001         (pass_warn_function_noreturn): Update.
15003 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15005         * c-typeck.c (handle_warn_cast_qual): Add loc
15006         parameter. Improve warning message.
15007         (build_c_cast): Pass location to handle_warn_cast_qual.
15009 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
15011         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
15012         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
15013         insn mnemonic.
15014         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
15016 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
15018         Fix bootstap on mips
15019         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
15020         be naming typedefs.
15022 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
15024         * system.h (helper_const_non_const_cast): New inline for
15025         gcc version <= 4.0.
15026         (CONST_CAST2): For gcc version <= 4.0 use
15027         new helper to do const/non-const casting.
15029 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15031         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
15032         * Makefile.in (OBJS-common): Include insn-enums.o.
15033         (insn-enums.o): New rule.
15034         (simple_generated_c): Add insn-enums.c.
15035         (build/genenums.o): New rule.
15036         (genprogmd): Add "enums".
15037         * genconstants.c (print_enum_type): Declare a C string array
15038         for each enum.
15039         * genenums.c: New file.
15040         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
15041         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
15042         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
15044 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15046         * doc/md.texi (define_enum_attr): Document.
15047         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
15048         * read-md.h (lookup_enum_type): Declare.
15049         * read-md.c (lookup_enum_type): New function.
15050         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
15051         * genattrtab.c (attr_desc): Add an enum_name field.
15052         (evaluate_eq_attr): Take the associated attribute as argument.
15053         Get the enum prefix from the enum_name field, if defined.
15054         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
15055         (simplify_test_exp): Pass attr to evaluate_eq_attr.
15056         (add_attr_value): New function, split out from...
15057         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
15058         (write_test_expr): Pass attr to evaluate_eq_attr.
15059         (write_attr_get): Use the enum_name as the enum tag, if defined.
15060         (write_attr_valueq): Use the enum_name as a prefix, if defined.
15061         (find_attr): Initialize enum_name.
15062         (main): Handle DEFINE_ENUM_ATTR.
15063         * gensupport.c (process_rtx): Likewise.
15064         * config/mips/mips.h (mips_tune_attr): Delete.
15065         * config/mips/mips.md (cpu): Use define_attr_enum.
15067 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15069         * doc/md.texi (define_c_enum, define_enum): Document.
15070         * read-md.h (md_constant): Add a parent_enum field.
15071         (enum_value, enum_type): New structures.
15072         (upcase_string, traverse_enum_types): Declare.
15073         * read-md.c (enum_types): New variable.
15074         (upcase_string, add_constant): New functions.
15075         (handle_constants): Don't create the hash table here.
15076         Use add_constant.
15077         (traverse_md_constants): Don't check for a null md_constants.
15078         (decimal_string, handle_enum, traverse_enum_types): New functions.
15079         (read_md_files): Initialize md_constants and md_enums.
15080         * genconstants.c (print_md_constant): Ignore info argument.
15081         Only print constants that belong to no enum.
15082         (print_enum_type): New function.
15083         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
15084         for each defined enum type.
15085         * config/mips/mips.md (processor): New define_enum.
15086         (unspec): New define_c_enum.
15087         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
15088         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
15089         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
15090         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
15091         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
15092         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
15093         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
15094         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
15095         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
15096         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
15097         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
15098         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
15099         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
15100         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
15101         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
15102         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
15103         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
15104         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
15105         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
15106         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
15107         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
15108         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
15109         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15110         (UNSPEC_RDDSP): Move to mips-dsp.md.
15111         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
15112         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
15113         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
15114         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
15115         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
15116         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
15117         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
15118         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
15119         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
15120         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
15121         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
15122         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
15123         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
15124         Moved to mips-dspr2.md.
15125         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
15126         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
15127         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
15128         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
15129         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
15130         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
15131         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15132         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15133         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15134         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15135         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15136         UNSPEC_LOONGSON_PSADBH)
15137         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15138         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15139         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
15140         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15141         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15142         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15143         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
15144         (cpu): Update comment.
15145         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
15146         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
15147         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
15148         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
15149         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
15150         UNSPEC_LOONGSON_PCMPEQ)
15151         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
15152         UNSPEC_LOONGSON_PINSR_0)
15153         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
15154         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
15155         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
15156         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
15157         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
15158         UNSPEC_LOONGSON_PSADBH)
15159         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
15160         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
15161         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
15162         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
15163         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
15164         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
15165         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
15166         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
15167         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
15168         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
15169         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
15170         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
15171         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
15172         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
15173         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
15174         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
15175         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
15176         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
15177         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
15178         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
15179         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
15180         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
15181         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
15182         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
15183         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
15184         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
15185         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
15186         (UNSPEC_RDDSP): Moved from mips.md.
15187         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
15188         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
15189         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
15190         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
15191         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
15192         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
15193         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
15194         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
15195         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
15196         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
15197         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
15198         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
15199         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
15200         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
15201         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
15202         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
15203         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
15204         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
15205         (UNSPEC_SCC): Moved from mips.md.
15206         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
15207         "processor_type" to "processor".
15208         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
15209         * config/mips/mips.h (processor_type): Delete.
15210         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
15211         "processor_type" to "processor".
15213 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15215         * configure.ac (tm_include_list): Add insn-constants.h.
15216         * configure: Regenerate.
15217         * Makefile.in (GTM_H): Move insn-constants.h here from...
15218         (TM_H): ...here.
15219         * mkconfig.sh: Remove special handling for insn-constants.h.
15221 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15223         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
15224         (BUILD_MD): ...this new variable.
15225         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
15226         that include the old contents of simple_generated_h and
15227         simple_generated_c.
15228         (simple_generated_h, simple_generated_c): Include them.  Add
15229         insn-constants.h.
15230         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
15231         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
15232         Remove these dependencies from the main rule and include
15233         insn-conditions.md in the command line only if it appears
15234         in the dependency list.
15235         (insn-constants.h, s-constants): Delete.
15236         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
15237         or gensupport.h.
15238         (build/genmddeps.o): Likewise.
15239         (genprogrtl): New variable that contains everything from genprogmd
15240         except mddeps and constants.
15241         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
15242         depend on $(BUILD_MD)
15243         (genprog): New variable.  Make these programs depend on
15244         $(BUILD_ERRORS).
15245         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
15246         (main): Use read_md_files instead of init_rtx_reader_args.
15247         * genconstants.c: As for genmddeps.c.
15248         * read-md.h (read_skip_construct): Declare.
15249         * read-md.c (read_skip_construct): New function.
15250         (handle_file): Allow a null handle_directive, skipping the
15251         construct if so.
15252         (parse_include): Update the comment accordingly.
15254 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15256         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
15257         * genmddeps.c: Include read-md.h.
15258         (main): Call init_rtx_reader_args instead of init_md_reader_args.
15259         * genattr.c (main): Likewise.
15260         * genattrtab.c (main): Likewise.
15261         * genautomata.c (main): Likewise.
15262         * gencodes.c (main): Likewise.
15263         * genconditions.c (main): Likewise.
15264         * genconfig.c (main): Likewise.
15265         * genconstants.c (main): Likewise.
15266         * genemit.c (main): Likewise.
15267         * genextract.c (main): Likewise.
15268         * genflags.c (main): Likewise.
15269         * genopinit.c (main): Likewise.
15270         * genoutput.c (main): Likewise.
15271         * genpeep.c (main): Likewise.
15272         * genrecog.c (main): Likewise.
15273         * genpreds.c (main): Likewise.
15274         * gensupport.h (in_fname): Move to read-md.h.
15275         (init_md_reader_args_cb): Rename to...
15276         (init_rtx_reader_args_cb): ...this and return a bool.
15277         (init_md_reader_args): Rename to...
15278         (init_rtx_reader_args): ...this and return a bool.
15279         (include_callback): Move to read-md.h.
15280         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
15281         (file_name_list, first_dir_md_include): Move to read-md.c
15282         (first_bracket_include): Delete unused variable.
15283         (last_dir_md_include): Move to read-md.c.
15284         (process_include): Delete, moving code to read-md.c:handle_include.
15285         (process_rtx): Don't handle INCLUDE.
15286         (save_string): Delete.
15287         (rtx_handle_directive): New function.
15288         (init_md_reader_args_cb): Rename to...
15289         (init_rtx_reader_args_cb): ...this and return a boolean success value.
15290         Use read_md_args.
15291         (init_md_reader_args): Rename to...
15292         (init_rtx_reader_args): ...this and return a boolean success value.
15293         * rtl.def (INCLUDE): Delete.
15294         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
15295         argument.
15296         * read-rtl.c (read_conditions): Don't gobble ')' here.
15297         (read_mapping): Likewise.
15298         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
15299         Handle top-level non-rtx constructs here rather than in read_rtx_1.
15300         Store the whole queue in *X.  Remove call to init_md_reader.
15301         (read_rtx_1): Rename to...
15302         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
15303         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
15304         here.
15305         (read_nested_rtx): New function.  Handle (nil) here rather than
15306         in read_rtx_code.
15307         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
15308         gobble ')' here.
15309         * read-md.h (directive_handler_t): New type.
15310         (in_fname, include_callback): Moved from read-md.h.
15311         (read_constants, init_md_reader): Delete.
15312         (read_md_files): Declare.
15313         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
15314         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
15315         from gensupport.c.
15316         (read_constants): Rename to...
15317         (handle_constants): ...this.  Don't gobble ')' here.
15318         (handle_include, handle_file, handle_toplevel_file)
15319         (parse_include): New functions, mostly taken from gensupport.c.
15320         (init_md_reader): Subsume into...
15321         (read_md_files): ...this new function.
15323 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15325         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
15326         (unread_char): Decrement read_md_lineno after putting back '\n'.
15327         * read-md.c (fatal_with_file_and_line): Push back any characters
15328         that we decide not to add to the context.
15329         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
15330         fatal_expected_char in cases where '/' ends a line (for example).
15331         (read_name): Don't increment read_md_lineno here.
15332         (read_escape): Likewise.
15333         (read_quoted_string): Likewise.
15334         (read_braced_string): Likewise.
15336 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15338         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
15339         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
15340         * genconstants.c: Include read-md.h.
15341         * read-rtl.c (md_constants): Move to read-md.c.
15342         (md_name): Move to read-md.h.
15343         (initialize_iterators): Use leading_string_hash instead of def_hash
15344         and leading_string_eq_p instead of def_name_eq_p.
15345         (read_name): Move to read-md.c.
15346         (def_hash, def_name_eq_p): Delete.
15347         (read_constants, traverse_md_constants): Move to read-md.c.
15348         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
15349         * read-md.h: Include hashtab.h.
15350         (md_name): Moved from read-rtl.c.
15351         (md_constant): Moved from read-md.h.
15352         (leading_string_hash, leading_string_eq_p, read_name)
15353         (read_constants, traverse_md_constants): Declare.
15354         * read-md.c (md_constants): Moved from read-rtl.c.
15355         (leading_string_hash, leading_string_eq_p): New functions.
15356         (read_name, read_constants, traverse_md_constants): Moved from
15357         read-rtl.c.
15359 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15361         * read-rtl.c (md_name): New structure.
15362         (read_name): Take an md_name instead of a buffer pointer.
15363         Use the "string" field instead of strcpy when expanding constants.
15364         (read_constants): Remove the tmp_char argument.  Update the calls
15365         to read_name, using two local name buffers instead of the tmp_char
15366         argument.  Merge the constant-creation code.
15367         (read_conditions): Remove the tmp_char argument.  Update the calls
15368         to read_name, using a local name buffer instead of the tmp_char
15369         argument.
15370         (read_mapping): Replace tmp_char variable with a local name buffer.
15371         Update the calls to read_name.
15372         (read_rtx_1): Likewise.  Update the calls to read_constants and
15373         read_conditions.
15375 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15377         * Makefile.in (build/read-md.o): Depend on errors.h.
15378         * read-md.h (error_with_line): Declare.
15379         * read-md.c: Include errors.h.
15380         (message_with_line_1): New function, extracted from...
15381         (message_with_line): ...here.
15382         (error_with_line): New function.
15383         * genattrtab.c: If a call to message_with_line is followed by
15384         "have_error = 1;", replace both statements with a call to
15385         error_with_line.
15386         * genoutput.c: Likewise.
15387         * genpreds.c: Likewise.
15388         * genrecog.c: If a call to message_with_line is followed by
15389         "error_count++;", replace both statements with a call to
15390         error_with_line.
15391         (errorcount): Delete.
15392         (main): Don't check it.
15393         * gensupport.c: If a call to message_with_line is followed by
15394         "errors = 1;", replace both statements with a call to error_with_line.
15395         (errors): Delete.
15396         (process_define_cond_exec): Check have_error instead of errors.
15397         (init_md_reader_args_cb): Likewise.  Don't set errors.
15399 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15401         * read-md.h (read_md_file): Declare.
15402         (read_char, unread_char): New functions.
15403         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15404         (read_quoted_string, read_string): Remove FILE * argument.
15405         * read-md.c (read_md_file): New variable.
15406         (read_md_filename, read_md_lineno): Update comments and remove
15407         unnecessary initialization.
15408         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
15409         (read_escape, read_quoted_string, read_braced_string, read_string):
15410         Remove FILE * argument.  Update calls accordingly, using read_char
15411         and unread_char instead of getc and ungetc.
15412         * rtl.h (read_rtx): Remove FILE * argument.
15413         * read-rtl.c (iterator_group): Remove FILE * argument from
15414         "find_builtin".
15415         (iterator_traverse_data): Remove "infile" field.
15416         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
15417         (add_mapping, read_name, read_constants, read_conditions)
15418         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
15419         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
15420         Remove file arguments from all calls, using read_char and unread_char
15421         instead of getc and ungetc.
15422         * gensupport.c (process_include): Preserve read_md_file around
15423         the include.  Set read_md_file to the handle of the included file.
15424         Update call to read_rtx.
15425         (init_md_reader_args_cb): Set read_md_file to the handle of the file
15426         and remove local FILE *.  Update calls to read_rtx.
15428 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15430         * read-md.h (read_rtx_lineno): Rename to...
15431         (read_md_lineno): ...this.
15432         (read_rtx_filename): Rename to...
15433         (read_md_filename): ...this.
15434         (copy_rtx_ptr_loc): Rename to...
15435         (copy_md_ptr_loc): ...this.
15436         (print_rtx_ptr_loc): Rename to...
15437         (print_md_ptr_loc): ...this.
15438         * read-md.c: Likewise.  Update references after renaming.
15439         (string_obstack): Replace RTL with MD in comment.
15440         (set_rtx_ptr_loc): Rename to...
15441         (set_md_ptr_loc): ...this.
15442         (get_rtx_ptr_loc): Rename to...
15443         (get_md_ptr_loc): ...this.
15444         * genconditions.c: Update references after renaming.
15445         * genemit.c: Likewise.
15446         * genoutput.c: Likewise.
15447         * genpreds.c: Likewise.
15448         * gensupport.c: Likewise.
15449         * read-rtl.c: Likewise.
15451 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
15453         * Makefile.in (READ_MD_H): New variable.
15454         (BUILD_RTL): Add build/read-md.o.
15455         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
15456         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
15457         (build/genattrtab.o, build/genconditions.o build/genemit.o)
15458         (build/genextract.o, build/genflags.o, build/genoutput.o)
15459         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
15460         (build/read-md.o): New rule.
15461         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
15462         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
15463         * coretypes.h: ...here.
15464         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
15465         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
15466         * genattr.c: Include read-md.h.
15467         * genattrtab.c: Likewise.
15468         * genconditions.c: Likewise.
15469         * genemit.c: Likewise.
15470         * genextract.c: Likewise.
15471         * genflags.c: Likewise.
15472         * genoutput.c: Likewise.
15473         * genpreds.c: Likewise.
15474         * genrecog.c: Likewise.
15475         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
15476         (join_c_conditions, print_c_condition, read_rtx_filename)
15477         (read_rtx_lineno): Move to read-md.h.
15478         * read-rtl.c: Include read-md.h.
15479         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
15480         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
15481         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
15482         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
15483         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
15484         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
15485         (read_braced_string, read_string): Move to read-md.c.
15486         (read_rtx): Move some initialization to init_md_reader and call
15487         init_md_reader here.
15488         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
15489         Move to read-md.h.
15490         * gensupport.c: Include read-md.h.
15491         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
15492         * read-md.h, read-md.c: New files.
15494 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
15496         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15497         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15498         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
15499         * config/moxie/moxie.c (moxie_function_value): Make static.
15500         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
15501         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15503 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15505         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
15506         * dbgcnt.def (tree_sra): New counter.
15507         * tree-sra.c: Include dbgcnt.h.
15508         (gate_intra_sra): Check tree_sra debug counter.
15510 2010-06-10  Martin Jambor  <mjambor@suse.cz>
15512         PR tree-optimization/44258
15513         * tree-sra.c (build_access_subtree): Return false iff there is a
15514         partial overlap.
15515         (build_access_trees): Likewise.
15516         (analyze_all_variable_accesses): Disqualify candidates if
15517         build_access_trees returns true for them.
15519 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
15521         PR debug/41371
15522         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
15523         tail-recurse into canonical node.  Fast-forward over
15524         non-canonical VALUEs.
15526 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
15528         PR boostrap/44470
15529         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
15530         (*addsi_1_zext) <TYPE_LEA>: Likewise.
15531         (add lea splitter): Likewise.
15532         (add_zext lea splitter): Likewise.
15534 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
15536         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
15538 2010-06-10  Jan Hubicka  <jh@suse.cz>
15540         * df-problems.c (df_live_problem_data): Add live_bitmaps.
15541         (df_live_alloc): Initialize problem data and live_osbtacks.
15542         (df_live_finalize): Remove obstack, problem data; do not
15543         clear all bitmaps.
15544         (df_live_top_dump, df_live_bottom_dump): Do not dump old
15545         data when not allocated.
15546         (df_live_verify_solution_start): Do not allocate problem data.
15547         (df_live_verify_solution_end): Check if out is allocated.
15548         (struct df_md_problem_data): New structure.
15549         (df_md_alloc): Allocate problem data.
15550         (df_md_free): Free problem data; do not clear bitmaps.
15552 2010-06-10  Jan Beulich  <jbeulich@novell.com>
15554         PR bootstrap/37304
15555         * configure.ac: Replace $() with ${} when intending to expand
15556         variables rather than invoking commands.
15557         * configure: Re-generate.
15559 2010-06-10  Jan Hubicka  <jh@suse.cz>
15561         PR rtl-optimization/44460
15562         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
15563         TYPE_NEEDS_CONSTRUCTING sanity check.
15565 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
15567         * doc/include/fdl.texi: Move to GFDL version 1.3.
15569         * doc/cpp.texi: Move to GFDL version 1.3.
15570         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
15571         * doc/gccint.texi: Move to GFDL version 1.3.
15572         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
15573         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
15574         * doc/invoke.texi: Move to GFDL version 1.3.
15576 2010-06-09  Jan Hubicka  <jh@suse.cz>
15578         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
15579         Break out from ...
15580         (propagate) ... here; swap the order.
15582 2010-06-09  Jan Hubicka  <jh@suse.cz>
15584         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
15585         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
15586         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
15587         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
15589 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15591         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
15592         Do not the gather memory reference in the outer loop if the step
15593         is not a constant.
15595 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
15597         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
15598         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
15599         8 to 4.  Minor change of the related comments.
15601 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15603         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
15604         the scev analysis when the variable is not used outside the loop
15605         in a close phi node: call compute_overall_effect_of_inner_loop.
15607 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15609         * graphite-sese-to-poly.c (single_pred_cond): Renamed
15610         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
15611         (build_sese_conditions_before): Renamed call to single_pred_cond.
15612         (build_sese_conditions_after): Same.
15614 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
15616         * graphite-poly.h: Fix comments and indentation.
15617         * graphite-sese-to-poly.c: Same.
15618         (build_sese_conditions_before): Compute stmt and gbb only when needed.
15619         * tree-chrec.c: Fix comments and indentation.
15620         (tree-ssa-loop-niter.c): Same.
15622 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
15624         PR rtl-optimization/42461
15625         * dce.c (deletable_insn_p): Return true for const or pure calls again.
15626         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
15628 2010-06-09  Jan Hubicka  <jh@suse.cz>
15630         * bitmap.c (bitmap_and): Walk array forward.
15631         (bitmap_and_compl_into): Likewise.
15632         (bitmap_xor): Likewise.
15633         (bitmap_xor_into):  Likewise.
15634         (bitmap_equal_p): Likewise.
15635         (bitmap_intersect_p): Likewise.
15636         (bitmap_intersect_compl_p): Likewise.
15637         (bitmap_ior_and_into): Likewise.
15638         (bitmap_elt_copy): Likewise.
15639         (bitmap_and_compl): Likewise.
15640         (bitmap_elt_ior): Likewise.
15642 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
15644         * opts-common.c (prune_options): Ensure replacement argv array
15645         is correctly terminated by a NULL entry.
15647 2010-06-09  Jan Hubicka  <jh@suse.cz>
15649         * cgraph.h (varpool_first_static_initializer,
15650         varpool_next_static_initializer): Make checking only when
15651         checking enabled.
15652         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
15653         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
15654         gcc_assert to gcc_checking_assert.
15655         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
15656         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
15657         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
15658         op_iter_init_phiuse, op_iter_init_phidef,
15659         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
15660         gcc_checking_assert.
15661         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
15662         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
15663         partition_is_global, live_on_entry, live_on_exit,
15664         live_merge_and_clear): Likewise.
15665         * system.h (gcc_checking_assert): New macro.
15666         * gimple.h (set_bb_seq): Use gcc_checking_assert.
15668 2010-06-09  Jason Merrill  <jason@redhat.com>
15670         * Makefile.in (TAGS): Collect tags info from c-family.
15672 2010-06-09  Jan Hubicka  <jh@suse.cz>
15674         * gimple.h (gcc_gimple_checking_assert): New macro.
15675         (gimple_set_def_ops, gimple_set_use_ops,
15676         gimple_set_vuse, gimple_set_vdef,
15677         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
15678         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
15679         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
15680         gimple_asm_output_op, gimple_asm_output_op_ptr,
15681         gimple_asm_set_output_op, gimple_asm_clobber_op,
15682         gimple_asm_set_clobber_op, gimple_asm_label_op,
15683         gimple_asm_set_label_op, gimple_try_set_kind,
15684         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
15685         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
15686         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
15687         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
15688         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
15689         gimple_omp_for_set_initial, gimple_omp_for_final,
15690         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
15691         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
15692         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
15693         conditional with ENABLE_GIMPLE_CHECKING.
15694         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
15696 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
15698         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
15699         (get_computation_cost_at): Use it.
15700         (determine_use_iv_cost_condition): Likewise.
15701         (determine_iv_cost): Likewise.
15703 2010-06-09  Richard Guenther  <rguenther@suse.de>
15705         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
15706         replace constants.
15708 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
15710         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
15712 2010-06-09  Martin Jambor  <mjambor@suse.cz>
15714         PR tree-optimization/44423
15715         * tree-sra.c (dump_access): Dump also grp_assignment_read.
15716         (analyze_access_subtree): Pass negative allow_replacements to children
15717         if the current type is scalar.
15719 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15721         PR testsuite/42843
15722         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
15723         * doc/plugins.texi (Plugin license check): Update information
15724         on type of plugin_is_GPL_compatible.
15725         * Makefile.in (PLUGINCC): Define as $(COMPILER).
15726         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
15728 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
15730         * config/arm/arm.c (thumb2_reorg): New function.
15731         (arm_reorg): Call it.
15732         * config/arm/thumb2.md (define_peephole2 for flag clobbering
15733         arithmetic operations): Delete.
15735 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
15737         PR target/44067
15738         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
15739         e500v2 target.
15741 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
15743         PR plugins/44459
15744         * gcc-plugin.h: Encapsulate all declarations in extern "C".
15746 2010-06-08  Jan Hubicka  <jh@suse.cz>
15748         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
15749         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
15751 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
15753         PR tree-optimization/39874
15754         PR middle-end/28685
15755         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
15756         Declare.
15757         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
15758         same_bool_result_p): New.
15759         (and_var_with_comparison, and_var_with_comparison_1,
15760         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
15761         (or_var_with_comparison, or_var_with_comparison_1,
15762         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
15763         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
15764         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
15765         of combine_comparisons.
15766         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
15768 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
15770         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
15771         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15772         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
15773         pdp11_function_value_regno_p): New functions.
15774         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
15775         TARGET_FUNCTION_VALUE_REGNO_P): Define.
15777 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
15779         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
15780         Thumb-2 in the MINUS case.
15782 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15784         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
15786         * doc/gty.texi (GTY Options): Document typed GC allocation and
15787         variable_size GTY option.
15789         * ggc-internal.h: New.
15791         * ggc.h: Update copyright year.
15792         (digit_string): Move to stringpool.c.
15793         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
15794         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
15795         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
15796         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
15797         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
15798         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
15799         (ggc_force_collect, ggc_get_size, ggc_statistics)
15800         (ggc_print_common_statistics): Move to ggc-internal.h.
15801         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
15802         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
15803         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
15804         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
15805         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
15806         (ggc_alloc_zone_pass_stat): Remove.
15807         (ggc_internal_alloc_stat, ggc_internal_alloc)
15808         (ggc_internal_cleared_alloc_stat): New.
15809         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
15810         (ggc_internal_vec_alloc_stat)
15811         (ggc_internal_cleared_vec_alloc_stat)
15812         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
15813         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
15814         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
15815         (ggc_cleared_alloc_ptr_array_two_args): New.
15816         (htab_create_ggc, splay_tree_new_ggc): Redefine.
15817         (ggc_splay_alloc): Change the type of the first argument to
15818         enum gt_types_enum.
15819         (ggc_alloc_string): Make macro.
15820         (ggc_alloc_string_stat): New.
15821         (ggc_strdup): Redefine.
15822         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
15823         (ggc_alloc_rtvec_sized): New.
15824         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
15825         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
15826         (ggc_internal_cleared_alloc_zone_stat)
15827         (ggc_internal_zone_alloc_stat)
15828         (ggc_internal_zone_cleared_alloc_stat)
15829         (ggc_internal_zone_vec_alloc_stat)
15830         (ggc_alloc_zone_rtx_def_stat)
15831         (ggc_alloc_zone_tree_node_stat)
15832         (ggc_alloc_zone_cleared_tree_node_stat)
15833         (ggc_alloc_cleared_gimple_statement_d_stat): New.
15835         * ggc-common.c: Include ggc-internal.h.
15836         (ggc_internal_cleared_alloc_stat): Rename from
15837         ggc_alloc_cleared_stat.
15838         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
15839         (ggc_calloc): Remove.
15840         (ggc_cleared_alloc_htab_ignore_args): New.
15841         (ggc_cleared_alloc_ptr_array_two_args): New.
15842         (ggc_splay_alloc): Add obj_type parameter.
15843         (init_ggc_heuristics): Formatting fixes.
15845         * ggc-none.c: Update copyright year.
15846         (ggc_alloc_stat): Rename to ggc_alloc_stat.
15847         (ggc_alloc_cleared_stat): Rename to
15848         ggc_internal_cleared_alloc_stat.
15849         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15851         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
15852         Remove references to ggc_alloc in comments.
15853         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
15854         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
15855         (new_ggc_zone, destroy_ggc_zone): Remove.
15856         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
15858         * ggc-zone.c: Include ggc-internal.h.  Remove references to
15859         ggc_alloc in comments.
15860         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
15861         (ggc_internal_alloc_zone_pass_stat): New.
15862         (ggc_internal_cleared_alloc_zone_stat): New.
15863         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
15864         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
15865         (new_ggc_zone, destroy_ggc_zone): Remove.
15867         * stringpool.c: Update copyright year.  Include ggc-internal.h
15868         (digit_vector): Make static.
15869         (digit_string): Moved from ggc.h.
15870         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
15871         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
15873         * Makefile.in (GGC_INTERNAL_H): New.
15874         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
15875         $(GGC_INTERNAL_H) to dependencies.
15877         * gentype.c: Update copyright year.
15878         (walk_type): Accept variable_size GTY option.
15879         (USED_BY_TYPED_GC_P): New macro.
15880         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
15881         whitespace at the end of strings.
15882         (get_type_specifier, variable_size_p): New functions.
15883         (alloc_quantity, alloc_zone): New enums.
15884         (write_typed_alloc_def): New function.
15885         (write_typed_struct_alloc_def): Likewise.
15886         (write_typed_typed_typedef_alloc_def): Likewise.
15887         (write_typed_alloc_defns): Likewise.
15888         (output_typename, write_splay_tree_allocator_def): Likewise.
15889         (write_splay_tree_allocators): Likewise.
15890         (main): Call write_typed_alloc_defns and
15891         write_splay_tree_allocators.
15893         * lto-streamer.h (lto_file_decl_data_ptr): New.
15895         * passes.c (order): Define using cgraph_node_ptr.
15897         * strinpool.c (struct string_pool_data): Declare nested_ptr using
15898         ht_identifier_ptr.
15900         * gimple.h (union gimple_statement_d): Likewise.
15902         * rtl.h (struct rtx_def): Likewise.
15903         (struct rtvec_def): Likewise.
15905         * tree.h (union tree_node): Likewise.
15907         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
15909         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
15911         * tree-scalar-evolution.c (scev_initialize): Likewise.
15913         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
15915         * dwarf2asm.c (dw2_force_const_mem): Likewise.
15917         * omp-low.c (lower_omp_critical): Likewise.
15919         * bitmap.h (struct bitmap_head_def): Update comment to not
15920         reference ggc_alloc.
15922         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
15924         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
15926         * ipa-prop.c (duplicate_ggc_array): Rename to
15927         duplicate_ipa_jump_func_array.  Use typed GC allocation.
15928         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
15930         * gimple.c (gimple_alloc_stat): Use
15931         ggc_alloc_cleared_gimple_statement_d_stat.
15933         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
15935         * tree.c (make_node_stat): Use
15936         ggc_alloc_zone_cleared_tree_node_stat.
15937         (make_tree_vec_stat): Likewise.
15938         (build_vl_exp_stat): Likewise.
15939         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
15940         (make_tree_binfo_stat): Likewise.
15941         (tree_cons_stat): Likewise.
15943         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
15944         (shallow_copy_rtx_stat): Likewise.
15945         (make_node_stat): Likewise.
15947         * lto-symtab.c: Fix comment.
15949         * tree-cfg.c (create_bb): Update comment to not reference
15950         ggc_alloc_cleared.
15951         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
15953         * varpool.c (varpool_node): Use typed GC allocation.
15954         (varpool_extra_name_alias): Likewise.
15956         * varasm.c (emutls_decl): Likewise.
15957         (get_unnamed_section): Likewise.
15958         (get_noswitch_section): Likewise.
15959         (get_section): Likewise.
15960         (get_block_for_section): Likewise.
15961         (build_constant_desc): Likewise.
15962         (create_constant_pool): Likewise.
15963         (force_const_mem): Likewise.
15965         * tree.c (build_vl_exp_stat): Likewise.
15966         (build_real): Likewise.
15967         (build_string): Likewise.
15968         (decl_debug_expr_insert): Likewise.
15969         (decl_value_expr_insert): Likewise.
15970         (type_hash_add): Likewise.
15971         (build_omp_clause): Likewise.
15973         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
15975         * tree-ssa.c (init_tree_ssa): Likewise.
15977         * tree-ssa-structalias.c (heapvar_insert): Likewise.
15979         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
15981         * tree-ssa-loop-niter.c (record_estimate): Likewise.
15983         * tree-ssa-alias.c (get_ptr_info): Likewise.
15985         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
15987         * tree-phinodes.c (allocate_phi_node): Likewise.
15989         * tree-iterator.c (tsi_link_before): Likewise.
15990         (tsi_link_after): Likewise.
15992         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
15994         * tree-dfa.c (create_var_ann): Likewise.
15996         * tree-cfg.c (create_bb): Likewise.
15998         * toplev.c (alloc_for_identifier_to_locale): Likewise.
15999         (general_init): Likewise.
16001         * stringpool.c (stringpool_ggc_alloc): Likewise.
16002         (gt_pch_save_stringpool): Likewise.
16004         * sese.c (if_region_set_false_region): Likewise.
16006         * passes.c (do_per_function_toporder): Likewise.
16008         * optabs.c (set_optab_libfunc): Likewise.
16009         (set_conv_libfunc): Likewise.
16011         * lto-symtab.c (lto_symtab_register_decl): Likewise.
16013         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
16014         (input_eh_region): Likewise.
16015         (input_eh_lp): Likewise.
16016         (make_new_block): Likewise.
16017         (unpack_ts_real_cst_value_fields): Likewise.
16019         * lto-section-in.c (lto_new_in_decl_state): Likewise.
16021         * lto-cgraph.c (input_node_opt_summary): Likewise.
16023         * loop-init.c (loop_optimizer_init): Likewise.
16025         * lambda.h (lambda_vector_new): Likewise.
16027         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
16029         * ira.c (update_equiv_regs): Likewise.
16031         * ipa.c (cgraph_node_set_new): Likewise.
16032         (cgraph_node_set_add): Likewise.
16033         (varpool_node_set_new): Likewise.
16034         (varpool_node_set_add): Likewise.
16036         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
16037         (duplicate_ipa_jump_func_array): Likewise.
16038         (ipa_read_node_info): Likewise.
16040         * ipa-cp.c (ipcp_create_replace_map): Likewise.
16042         * integrate.c (get_hard_reg_initial_val): Likewise.
16044         * gimple.c (gimple_alloc_stat): Likewise.
16045         (gimple_build_omp_for): Likewise.
16046         (gimple_seq_alloc): Likewise.
16047         (gimple_copy): Likewise.
16049         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
16050         (gsi_insert_after_without_update): Likewise.
16052         * function.c (add_frame_space): Likewise.
16053         (insert_temp_slot_address): Likewise.
16054         (assign_stack_temp_for_type): Likewise.
16055         (allocate_struct_function): Likewise.
16056         (types_used_by_var_decl_insert): Likewise.
16058         * except.c (init_eh_for_function): Likewise.
16059         (gen_eh_region): Likewise.
16060         (gen_eh_region_catch): Likewise.
16061         (gen_eh_landing_pad): Likewise.
16062         (add_call_site): Likewise.
16064         * emit-rtl.c (get_mem_attrs): Likewise.
16065         (get_reg_attrs): Likewise.
16066         (start_sequence): Likewise.
16067         (init_emit): Likewise.
16069         * dwarf2out.c (new_cfi): Likewise.
16070         (queue_reg_save): Likewise.
16071         (dwarf2out_frame_init): Likewise.
16072         (new_loc_descr): Likewise.
16073         (find_AT_string): Likewise.
16074         (new_die): Likewise.
16075         (add_var_loc_to_decl): Likewise.
16076         (clone_die): Likewise.
16077         (clone_as_declaration): Likewise.
16078         (break_out_comdat_types): Likewise.
16079         (new_loc_list): Likewise.
16080         (loc_descriptor): Likewise.
16081         (add_loc_descr_to_each): Likewise.
16082         (add_const_value_attribute): Likewise.
16083         (tree_add_const_value_attribute): Likewise.
16084         (add_comp_dir_attribute): Likewise.
16085         (add_name_and_src_coords_attributes): Likewise.
16086         (lookup_filename): Likewise.
16087         (store_vcall_insn): Likewise.
16088         (dwarf2out_init): Likewise.
16090         * dbxout.c (dbxout_init): Likewise.
16092         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
16094         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
16096         * config/score/score7.c (score7_output_external): Likewise.
16098         * config/score/score3.c (score3_output_external): Likewise.
16100         * config/s390/s390.c (s390_init_machine_status): Likewise.
16102         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
16103         (rs6000_init_machine_status): Likewise.
16104         (output_toc): Likewise.
16106         * config/pa/pa.c (pa_init_machine_status): Likewise.
16107         (get_deferred_plabel): Likewise.
16109         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
16111         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
16113         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
16115         * config/mep/mep.c (mep_init_machine_status): Likewise.
16116         (mep_note_pragma_flag): Likewise.
16118         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
16120         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
16122         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
16124         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
16125         (i386_pe_maybe_record_exported_symbol): Likewise.
16127         * config/i386/i386.c (get_dllimport_decl): Likewise.
16128         (ix86_init_machine_status): Likewise.
16129         (assign_386_stack_local): Likewise.
16131         * config/frv/frv.c (frv_init_machine_status): Likewise.
16133         * config/darwin.c (machopic_indirection_name): Likewise.
16135         * config/cris/cris.c (cris_init_machine_status): Likewise.
16137         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
16139         * config/avr/avr.c (avr_init_machine_status): Likewise.
16141         * config/arm/arm.c (arm_init_machine_status): Likewise.
16143         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
16144         (alpha_need_linkage): Likewise.
16145         (alpha_use_linkage): Likewise.
16147         * cgraph.c (cgraph_allocate_node): Likewise.
16148         (cgraph_create_edge_1): Likewise.
16149         (cgraph_create_indirect_edge): Likewise.
16150         (cgraph_add_asm_node): Likewise.
16152         * cfgrtl.c (init_rtl_bb_info): Likewise.
16154         * cfgloop.c (alloc_loop): Likewise.
16155         (rescan_loop_exit): Likewise.
16157         * cfg.c (init_flow): Likewise.
16158         (alloc_block): Likewise.
16159         (unchecked_make_edge): Likewise.
16161         * c-parser.c (c_parse_init): Likewise.
16162         (c_parse_file): Likewise.
16164         * c-decl.c (bind): Likewise.
16165         (record_inline_static): Likewise.
16166         (push_scope): Likewise.
16167         (make_label): Likewise.
16168         (lookup_label_for_goto): Likewise.
16169         (finish_struct): Likewise.
16170         (finish_enum): Likewise.
16171         (c_push_function_context): Likewise.
16173         * bitmap.c (bitmap_element_allocate): Likewise.
16174         (bitmap_gc_alloc_stat): Likewise.
16176         * alias.c (record_alias_subset): Likewise.
16177         (init_alias_analysis): Likewise.
16179 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
16181         * fold-const.c (fold_comparison): Remove redundant parenthesis.
16182         * tree-inline.c (expand_call_inline): Pass translated return value of
16183         cgraph_inline_failed_string to diagnostic function.
16185 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
16186             Shujing Zhao  <pearly.zhao@oracle.com>
16188         PR c/37724
16189         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
16190         implicit bad conversions is initialization.
16191         (error_init): Use gmsgid instead of msgid for argument name and change
16192         the call for error.
16193         (pedwarn_init): Use gmsgid instead of msgid for argument name and
16194         change the call for pedwarn.
16195         (warning_init): Use gmsgid instead of msgid for argument name and
16196         change the call for warning.
16198 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
16200         * config/mips/mips-protos.h (mips_print_operand): Delete.
16201         (mips_print_operand_address): Delete.
16202         * config/mips/mips.h (mips_print_operand_punct): Delete.
16203         (PRINT_OPERAND): Delete.
16204         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16205         (PRINT_OPERAND_ADDRESS): Delete.
16206         * config/mips/mips.c (mips_print_operand_punct): Make static.
16207         (mips_print_operand_address): Make static.
16208         (mips_print_operand): Make static.  Call
16209         mips_print_operand_punct_valid_p.
16210         (mips_print_operand_punct_valid_p): New function.
16211         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
16212         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16214 2010-06-07  Jan Hubicka  <jh@suse.cz>
16216         PR middle-end/44454
16217         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
16218         are allocated.
16220 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
16222         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
16223         name of RECORD.
16225 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16227         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16228         attributes): Document gas.
16230 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
16232         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
16233         <TYPE_LEA>: Split instruction.
16234         <default>: Remove alternative 2 handling.
16235         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
16236         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
16237         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
16239         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
16240         (ashift_zext lea splitter): Use DImode for multiplication.
16242         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
16243         to generate addition.
16245 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
16247         * common.opt (fira-verbose): Use Var.
16248         (fpcc-struct-return): Use Init instead of VarExists.
16249         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
16250         toplev.c.
16251         * flags.h (flag_signed_char, flag_short_enums,
16252         flag_pcc_struct_return, flag_ira_verbose,
16253         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
16254         * toplev.c (flag_detailed_statistics, flag_signed_char,
16255         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
16256         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
16257         * toplev.h (flag_crossjumping, flag_if_conversion,
16258         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
16259         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
16260         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
16261         flag_cprop_registers, time_report, flag_ira_loop_pressure,
16262         flag_ira_coalesce, flag_ira_move_spills,
16263         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
16265 2010-06-07  Jan Hubicka  <jh@suse.cz>
16267         * df-core.c (df_analyze_problem): Do verification after allocation.
16269         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
16270         (df_lr_alloc): Initialize problem data; move bitmaps to
16271         lr_bitmaps obstack.
16272         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
16273         (df_lr_verify_solution_start): Do not initialize problem data;
16274         allocate bitmaps in lr_bitmaps.
16275         (df_lr_verify_solution_end): Do not free problem data.
16277 2010-06-07  Jan Hubicka  <jh@suse.cz>
16279         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
16280         if caller is noreturn.
16281         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
16282         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
16283         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
16284         * ipa-pure-const.c (check_decl): Add IPA parameter.
16285         (state_from_flags): New function.
16286         (better_state, worse_state): New functions.
16287         (check_call): When in IPA mode, do not care about callees.
16288         (check_load, check_store): Update.
16289         (check_ipa_load, check_ipa_store): New.
16290         (check_stmt): When in IPA mode, use IPA checkers.
16291         (analyze_function): Use state_from_flags.
16292         (propagate): Check indirect edges and references.
16294 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
16296         PR rtl-optimization/44404
16297         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
16298         of count_occurrences to see if it's safe to modify mem_insn.
16300 2010-06-07  Richard Guenther  <rguenther@suse.de>
16302         * gimplify.c (gimplify_cleanup_point_expr): For empty body
16303         and EH-only cleanup drop the cleanup instead of inserting it
16304         unconditionally.
16306 2010-06-07  Ira Rosen  <irar@il.ibm.com>
16308         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
16309         documentation.
16310         * targhooks.c (default_builtin_vectorization_cost): New function.
16311         * targhooks.h (default_builtin_vectorization_cost): Declare.
16312         * target.h (enum vect_cost_for_stmt): Define.
16313         (builtin_vectorization_cost): Change argument and comment.
16314         * tree-vectorizer.h: Remove cost model macros.
16315         * tree-vect-loop.c: Include target.h.
16316         (vect_get_cost): New function.
16317         (vect_estimate_min_profitable_iters): Replace cost model macros with
16318         calls to vect_get_cost.
16319         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
16320         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
16321         default implementation.
16322         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
16323         calls to target hook builtin_vectorization_cost.
16324         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
16325         Likewise.
16326         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
16327         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
16328         implementation to return costs.
16329         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
16330         * config/spu/spu.h: Remove vectorizer cost model macros.
16331         * config/i386/i386.h: Likewise.
16332         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
16333         a call to target hook builtin_vectorization_cost.
16335 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
16337         PR target/44319
16338         * config/i386/i386.c (override_options): Turn zee pass on for level 2
16339         and above and defer till target is known.
16340         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
16341         turn off otherwise.
16343 2010-05-25  Jan Hubicka  <jh@suse.cz>
16345         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
16346         (df_compact_blocks): Likewise.
16347         * df.h (struct df): Turn hardware_regs_used,
16348         regular_block_artificial_uses, eh_block_artificial_uses,
16349         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
16350         bitmap_head.
16351         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
16352         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
16353         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
16354         df_scan_blocks, df_insn_delete, df_insn_rescan,
16355         df_insn_rescan_debug_internal, df_insn_rescan_all,
16356         df_process_deferred_rescans, df_process_deferred_rescans,
16357         df_notes_rescan, df_get_call_refs, df_get_call_refs,
16358         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
16359         df_record_entry_block_defs, df_record_exit_block_uses,
16360         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
16361         df_scan_verify): Update.
16363 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
16365         PR c++/44188
16366         * c-common.c (is_typedef_decl): Move this definition ...
16367         * tree.c (is_typedef_decl): ... here.
16368         (typdef_variant_p): Move definition here from cp/tree.c.
16369         * c-common.h (is_typedef_decl): Move this declaration ...
16370         * tree.h (is_typedef_decl): ... here.
16371         (typedef_variant_p): Move declaration here from cp/cp-tree.h
16372         * dwarf2out.c (is_naming_typedef_decl): New function.
16373         (gen_tagged_type_die): Split out of ...
16374         (gen_type_die_with_usage): ... this function. When an anonymous
16375         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
16376         is emitted for the typedef.
16377         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
16378         anonymous tagged types.
16380 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16382         PR c/20000
16383         * c-decl.c (grokdeclarator): Delete warning.
16385 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
16387         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
16388         newly built CALL_EXPR.
16389         * tree-profile.c (tree_profiling): Don't profile functions produced
16390         for built-in stuff.
16392 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
16394         PR bootstrap/44427
16395         PR bootstrap/44428
16396         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
16397         endianness-independent.
16399 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
16401         * c-common.c: Move to c-family/.
16402         * c-common.def: Likewise.
16403         * c-common.h: Likewise.
16404         * c-cppbuiltin.c: Likewise.
16405         * c-dump.c: Likewise.
16406         * c-format.c: Likewise.
16407         * c-format.h : Likewise.
16408         * c-gimplify.c: Likewise.
16409         * c-lex.c: Likewise.
16410         * c-omp.c: Likewise.
16411         * c.opt: Likewise.
16412         * c-opts.c: Likewise.
16413         * c-pch.c: Likewise.
16414         * c-ppoutput.c: Likewise.
16415         * c-pragma.c: Likewise.
16416         * c-pragma.h: Likewise.
16417         * c-pretty-print.c: Likewise.
16418         * c-pretty-print.h: Likewise.
16419         * c-semantics.c: Likewise.
16420         * stub-objc.c: Likewise.
16422         * gengtype.c (get_file_langdir): Special-case files in c-family/.
16423         (get_output_file_with_visibility): Fix name for c-common.h.
16424         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
16426         * c-tree.h: Update include path for moved files.
16427         * c-lang.c: Likewise.
16428         * c-lang.h: Likewise.
16429         * c-parser.c: Likewise.
16430         * c-convert.c: Likewise.
16431         * c-decl.c: Likewise.
16432         * c-objc-common.c: Likewise.
16433         * configure.ac: Make sure c-family/ exists in the build directory.
16434         * configure: Regenerate.
16435         * Makefile.in: Update paths for moved files.  Regroup files per
16436         location and update dependencies.  Move generated_files down after
16437         ALL_GTFILES_H.
16439         * config/spu/spu-c.c: Update paths for moved files.
16440         * config/mep/mep-pragma.c: Likewise.
16441         * config/darwin-c.c: Likewise.
16442         * config/i386/msformat-c.c: Likewise.
16443         * config/i386/i386-c.c: Likewise.
16444         * config/avr/avr-c.c: Likewise.
16445         * config/sol2-c.c: Likewise.
16446         * config/ia64/ia64-c.c: Likewise.
16447         * config/rs6000/rs6000-c.c: Likewise.
16448         * config/arm/arm.c: Likewise.
16449         * config/arm/arm-c.c: Likewise.
16450         * config/h8300/h8300.c: Likewise.
16451         * config/v850/v850-c.c: Likewise.
16453         * config/t-darwin: Fix dependencies for moved files.
16454         * config/t-sol2: Fix dependencies for moved files.
16455         * config/mep/t-mep: Fix dependencies for moved files.
16456         * config/ia64/t-ia64: Fix dependencies for moved files.
16457         * config/rs6000/t-rs6000: Fix dependencies for moved files.
16458         * config/v850/t-v850: Fix dependencies for moved files.
16459         * config/v850/t-v850e: Fix dependencies for moved files.
16461         * config/m32c/m32c-pragma.c
16463         * po/exgettext: Look in c-family/ also.
16465 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
16467         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
16468         (mark_control_dependent_edges_necessary): Call it instead of marking
16469         the last statement manually.
16470         (propagate_necessity): Likewise.
16472 2010-06-05  Jan Hubicka  <jh@suse.cz>
16474         * basic-block.h (compute_dominance_frontiers): Updated.
16475         (compute_idf): Likewise.
16477         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
16478         for dominance frontiers.
16479         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
16480         (insert_updated_phi_nodes_for): Likewise.
16481         (update_ssa): Likewise.
16482         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16483         (compute_dominance_frontiers): Likewise.
16484         (compute_idf): Likewise.
16485         * df-problems.c (df_md_local_compute): Likewise.
16487 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
16489         * target.h (struct gcc_target): Add memory_move_cost field.
16490         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
16491         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
16492         * targhooks.c (default_memory_move_cost): New function.
16493         * targhooks.h (default_memory_move_cost): Declare function.
16494         * reload.h (memory_move_cost): Declare.
16495         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16496         * reginfo.c (memory_move_cost): New function.
16497         (memory_move_secondary_cost): Change type of 'in' argument to bool.
16498         * ira.h (ira_memory_move_cost): Update comment.
16499         * ira.c (ira_memory_move_cost): Update comment.
16500         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
16501         with memory_move_cost.
16502         * postreload.c (reload_cse_simplify_set): (Ditto.).
16503         * reload1.c (choose_reload_regs): (Ditto.).
16504         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
16505         (MEMORY_MOVE_COST):  Revise documentation.
16507         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
16508         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
16509         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
16510         type of 'in' argument to bool.
16511         (TARGET_MEMORY_MOVE_COST): Define.
16513 2010-06-05  Jan Hubicka  <jh@suse.cz>
16515         * ipa-pure-const.c (propagate): Fix typo in handling of functions
16516         that cannot return.  Be more careful when merging the results with
16517         previously known ones.
16519 2010-06-05  Matthias Klose  <doko@ubuntu.com>
16521         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
16522         function to add the -iplugindir option.
16523         (find_plugindir_spec_function): Add new declaration and function.
16524         (static_spec_func): Use it for "find-plugindir".
16526 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
16528         PR c++/44361
16529         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
16530         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
16531         statement expression.
16533 2010-06-05  Jan Hubicka  <jh@suse.cz>
16535         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
16536         (df_rd_problem_data): Convert sparse_invalidated_by_call,
16537         dense_invalidated_by_call to bitmap head.
16538         (df_rd_alloc, df_rd_bb_local_compute_process_def,
16539         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
16540         df_rd_start_dump, df_lr_verify_transfer_functions,
16541         df_live_verify_transfer_functions, df_chain_create_bb,
16542         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
16543         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
16544         df_simulate_one_insn_forwards, df_md_alloc,
16545         df_md_bb_local_compute_process_def,
16546         df_md_bb_local_compute_process_def, df_md_local_compute,
16547         df_md_transfer_function df_md_free): Update.
16549 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
16551         PR c/44322
16552         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
16553         target type for ADDR_EXPR; require no changes to qualifiers except
16554         for function types.
16555         * c-tree.h (c_build_type_variant): Remove.
16557 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16559         * genautomata.c (get_excl_set): Do work per element, not per char.
16560         (check_presence_pattern_sets): Similar.
16561         (check_absence_pattern_sets): Similar.
16563 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
16565         * genautomata.c (curr_state_pass_num): Delete.
16566         (min_issue_delay_pass_states): Delete.
16567         (min_issue_delay): Delete.
16568         (initiate_min_issue_delay_pass_states): Delete.
16569         (output_min_issue_delay_table): Compute min_issue_delay_vect
16570         using a breadth-first search variant.
16571         (output_tables): Don't call initiate_min_issue_delay_pass_states.
16573 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16575         PR boostrap/44421
16576         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
16577         (df_byte_lr_bb_local_compute): Likewise.
16579 2010-06-03  Jason Merrill  <jason@redhat.com>
16581         Implement noexcept operator (5.3.7)
16582         * c-common.c (c_common_reswords): Add noexcept.
16583         * c-common.h (enum rid): Add RID_NOEXCEPT.
16585 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
16587         * config/darwin-driver.c (darwin_default_min_version): Use
16588         GCC-specific formats in diagnostics.
16589         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
16590         diagnostics.
16591         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
16592         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
16593         eval_spec_function, handle_braces, process_brace_body, main,
16594         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
16595         getenv_spec_function, compare_version_strings,
16596         version_compare_spec_function): Use GCC-specific formats in
16597         diagnostics.
16599 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16601         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
16602         that operand 0 and operand 1 are equal.
16603         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
16604         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
16605         and operand 1 are equal.
16606         <default>: Ditto.  Remove ??? comment.
16607         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
16608         and operand 1 are equal.
16609         <default>: Ditto.  Remove ??? comment.
16610         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
16611         are equal.
16612         (*add<mode>_4) <default>: Ditto.
16613         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
16615 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
16617         * config/i386/i386-protos.h (ix86_print_operand): Declare.
16618         * config/i386/i386.c (ix86_print_operand): Make non-static.
16619         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
16620         * output.h (output_operand): Declare.
16621         * final.c (output_operand): Make non-static.
16623 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
16625         PR rtl-optimization/44013
16626         * sched-deps.c (add_dependence_list_and_free): Don't free lists
16627         when processing debug insns.
16629         PR debug/41371
16630         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
16631         recursing.  Check that recursion is bounded.  Rename inner var
16632         to avoid hiding incoming argument.
16634 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16636         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
16637         operands[2] == 255.
16638         (*addqi_3): Ditto.
16639         (*addqi_4): Ditto.
16640         (*addqi_5): Ditto.
16641         (*addqi_ext_1_rex64): Ditto.
16642         (*addqi_ext_1): Ditto.
16644         (*addqi_4): Check for incdec_operand in QImode.
16646         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
16647         using SWI mode iterator.
16648         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
16649         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
16650         mode iterator.
16651         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
16652         using SWI mode iterator.
16654 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16656         PR c/25880
16657         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
16658         * c-format.c (gcc_diag_flag_specs): Add hash.
16659         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
16660         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
16661         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
16662         pp_c_cv_qualifiers. Handle qualifiers spelling here.
16663         (pp_c_type_qualifier_list): Call the function above.
16664         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
16665         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
16666         (WARN_FOR_QUALIFIERS): New macro.
16667         (convert_for_assignment): Use it.
16669 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
16671         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
16673 2010-06-04  Jan Hubicka  <jh@suse.cz>
16675         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
16676         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
16677         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
16678         DF_BYTE_LR_OUT): Update for embedded bitmaps.
16679         * fwprop.c (single_def_use_enter_block): Likewise.
16680         * ddg.c (create_ddg_dep_from_intra_loop_link,
16681         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
16682         * loop-iv.c (latch_dominating_def): Likewise.
16683         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
16684         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
16685         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
16686         df_rd_transfer_function, df_rd_top_dump,
16687         df_rd_bottom_dump): Update.
16688         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
16689         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
16690         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
16691         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
16692         df_lr_verify_solution_start, df_lr_verify_solution_end,
16693         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
16694         df_live_free_bb_info, df_live_alloc, df_live_reset,
16695         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
16696         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
16697         df_live_verify_solution_start, df_live_verify_solution_end,
16698         df_live_verify_transfer_functions, df_chain_create_bb,
16699         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
16700         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16701         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
16702         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
16703         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
16704         df_byte_lr_transfer_function, df_byte_lr_top_dump,
16705         df_byte_lr_bottom_dump, df_create_unused_note,
16706         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
16707         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
16708         df_md_transfer_function, df_md_init, df_md_confluence_0,
16709         df_md_confluence_n,
16710         df_md_top_dump, df_md_bottom_dump): Update.
16711         (struct df_lr_problem_data): Embedd bitmap headers.
16713 2010-06-04  Jan Hubicka  <jh@suse.cz>
16715         * dce.c (dce_process_block): Do not re-scan already marked
16716         instructions.
16718 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
16720         PR rtl-optimization/39871
16721         PR rtl-optimization/40615
16722         PR rtl-optimization/42500
16723         PR rtl-optimization/42502
16724         * ira.c (init_reg_equiv_memory_loc: New function.
16725         (ira): Call it twice.
16726         * reload.h (calculate_elim_costs_all_insns): Declare.
16727         * ira-costs.c: Include "reload.h".
16728         (regno_equiv_gains): New static variable.
16729         (init_costs): Allocate it.
16730         (finish_costs): Free it.
16731         (ira_costs): Call calculate_elim_costs_all_insns.
16732         (find_costs_and_classes): Take estimated elimination costs
16733         into account.
16734         (ira_adjust_equiv_reg_cost): New function.
16735         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
16736         * reload1.c (init_eliminable_invariants, free_reg_equiv,
16737         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
16738         (elim_bb): New static variable.
16739         (reload): Move code out of here into init_eliminable_invariants and
16740         free_reg_equiv.  Call them.
16741         (calculate_elim_costs_all_insns): New function.
16742         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
16743         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
16744         but call note_reg_elim_costly if we turned a valid memory address
16745         into an invalid one.
16746         * Makefile.in (ira-costs.o): Depend on reload.h.
16748 2010-06-04  Julian Brown  <julian@codesourcery.com>
16750         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
16751         for pool ranges.
16753 2010-06-04  Richard Guenther  <rguenther@suse.de>
16755         PR lto/41584
16756         * cgraph.h (struct varpool_node): Add lto_file_data field.
16757         * lto-cgraph.c (input_varpool_node): Initialize it.
16759 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
16761         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
16762         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
16763         predicate in "type" attribute calculation.
16764         (*addsi_1_zext): Ditto.
16765         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
16766         (*addsi_2_zext): Ditto.
16767         (*add<mode>_3): Ditto.
16768         (*addsi_3_zext): Ditto.
16769         (*add<mode>_5): Ditto.
16771 2010-06-03  Jan Hubicka  <jh@suse.cz>
16773         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
16774         of bitmap_bit_p.
16775         * cfganal.c (compute_dominance_frontiers_1): Likewise.
16777 2010-06-03  Jan Hubicka  <jh@suse.cz>
16779         * df-problems.c (df_create_unused_note, df_note_bb_compute):
16780         micro-optimize the checks when to add new note.
16782 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
16784         * final.c (output_asm_insn): Call
16785         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
16786         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
16787         (output_address): Call targetm.asm_out.print_operand_address.
16788         Update comments.
16789         * target.h (struct gcc_target): Add print_operand,
16790         print_operand_address, and print_operand_punct_valid_p fields.
16791         * targhooks.h (default_print_operand): Declare.
16792         (default_print_operand_address): Declare.
16793         (default_print_operand_punct_valid_p): Declare.
16794         * targhooks.c (default_print_operand): Define.
16795         (default_print_operand_address): Define.
16796         (default_print_operand_punct_valid_p): Define.
16797         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
16798         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
16799         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
16800         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
16801         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
16802         * vmsdbgout.c (addr_const_to_string): Update comment.
16803         * config/i386/i386.c (print_operand): Rename to...
16804         (ix86_print_operand): ...this.  Make static.
16805         (print_operand_address): Rename to...
16806         (ix86_print_operand_address): ...this.  Make static.  Call
16807         ix86_print_operand instead of PRINT_OPERAND.
16808         (ix86_print_operand_punct_valid_p): New function.
16809         (TARGET_PRINT_OPERAND): Define.
16810         (TARGET_PRINT_OPERAND_ADDRESS): Define.
16811         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16812         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
16813         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
16814         (PRINT_OPERAND): Delete.
16815         (PRINT_OPERAND_ADDRESS): Delete.
16816         * config/i386/i386-protos.h (print_operand): Delete prototype.
16817         (print_operand_address): Delete prototype.
16819 2010-06-03  Richard Guenther  <rguenther@suse.de>
16821         PR tree-optimization/44403
16822         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16823         Preserve pointer qualifiers.
16824         (vect_create_data_ref_ptr): Likewise.
16826 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
16828         PR c++/44294
16829         * defaults.h (MAX_FIXED_MODE_SIZE): New.
16831         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
16833 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
16835         PR debug/44375
16836         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
16837         return false if merging the bbs would lead to goto_locus
16838         location being lost from the IL.
16840 2010-06-03  Jan Hubicka  <jh@suse.cz>
16841             Jakub Jelinek  <jakub@redhat.com>
16843         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
16844         set->regs[i] is NULL or has just one entry.
16846 2010-06-03  Jan Hubicka  <jh@suse.cz>
16848         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
16849         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
16851 2010-06-03  Paul Brook  <paul@codesourcery.com>
16853         * config/arm/arm.c (FL_TUNE): Define.
16854         (arm_default_cpu, arm_cpu_select): Remove.
16855         (all_cores): Populate core field.
16856         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
16857         (arm_find_cpu): New function.
16858         (arm_handle_option): Lookup cpu/architecture names.
16859         (arm_override_options): Cleanup mcpu/march/mtune handling.
16860         (arm_file_start): Ditto.
16862 2010-06-03  Alan Modra  <amodra@gmail.com>
16864         PR target/44169
16865         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
16866         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
16867         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
16868         (rs6000_emit_load_toc_table): Likewise.
16870 2010-06-02  Jan Hubicka  <jh@suse.cz>
16872         * passes.c (init_optimization_passes): Put ipa reference
16873         after ipa pure-const.
16875 2010-06-02  Jan Hubicka  <jh@suse.cz>
16877         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
16878         calls_read_all and calls_write_all.
16879         (get_reference_optimization_summary): Fix formatting.
16880         (is_proper_for_analysis): Check that decl is not readonly.
16881         (propagate_bits): Check CONST/PURE/noreturn flags.
16882         (ipa_init): Move all_module_statics to optimization_summary_obstack.
16883         (analyze_function): Ignore indirect edges.
16884         (copy_global_bitmap): For all module statics, do nothing.
16885         (generate_summary): Do not print calls_read_all/calls_write_all.
16886         (read_write_all_from_decl): Take node as argument; check
16887         cgraph_node_cannot_return.
16888         (propagate): Reorganize read_all/write_all computation;
16889         check indirect edges; check ecf flags; use all_module_statics
16890         in the results; do not free all_module_statics.
16891         (stream_out_bitmap): Handle all_module_statics.
16892         (ipa_reference_write_optimization_summary): Likewise; use
16893         varpool/cgraph encoders to get boundaries.
16894         (ipa_reference_read_optimization_summary): Read in all_module_statics;
16895         use it when possible.
16897 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16899         PR target/44218
16900         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
16901         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
16903         * doc/extend.texi (powerpc builtins): Document vec_recip,
16904         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
16906         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
16907         (rs6000_emit_swrsqrt): Ditto.
16908         (rs6000_emit_swdivsf): Delete.
16909         (rs6000_emit_swdivdf): Ditto.
16910         (rs6000_emit_swrsqrtsf): Ditto.
16912         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
16913         describe the reciprocal estimate support for each type.
16914         (recip_options): Map -mrecip=<opt> into option bits.
16915         (gen_2arg_fn_t): New typedef for binary rtx gen function.
16916         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
16917         reciprocal estimate instructions.
16918         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
16919         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
16920         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
16921         cost information if -mdebug=cost or -mdebug=reg.
16922         (rs6000_override_options): Set -mrecip-precision for power6, and
16923         power7 machines.  If -mvsx or -mdfp, enable various options that
16924         came in previous instruction set ISAs, unless the option was
16925         explicitly disabled by the command line option.  Parse
16926         -mrecip=<opt> options.
16927         (rs6000_builtin_vectorized_function): Add support for vectorizing
16928         the reciprocal estimate builtins and expansions.
16929         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
16930         (bdesc_2arg): Add reciprocal estimate builtins.
16931         (bdesc_1arg): Add reciprocal square root estimate builtins.
16932         (rs6000_expand_builtin): Rewrite to use a switch statement,
16933         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
16934         (rs6000_init_builtins): Create declarations for reciprocal
16935         estimate builtins.
16936         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
16937         sized, prefer traditional floating point registers, if integer
16938         vector types, prefer altivec registers.  Don't actually look at
16939         the memory address any more.
16940         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
16941         builtins.
16942         (rs6000_load_constant_and_splat): New helper function to load up
16943         the constant for reciprocal estimate instructions.
16944         (rs6000_emit_madd): New helper function for generating
16945         multiply/add type instructions, based on the current switches.
16946         (rs6000_emit_msub): Ditto.
16947         (rs6000_emit_mnsub): Ditto.
16948         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
16949         replace a divide with a reciprocal estimate and fixup, adding
16950         support for machines with high precision and vectors.
16951         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
16952         low precision machines.
16953         (rs6000_emit_swdiv): New common function to be called to replace a
16954         division with reciprocal estimate and fixup.
16955         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
16956         for double and vector types.  Add support for high precision machines.
16958         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
16959         the reciprocal estimate instructions can be generated.
16960         (TARGET_FRE): Ditto.
16961         (TARGET_FRSQRTES): Ditto.
16962         (TARGET_FRSQRTE): Ditto.
16963         (RS6000_RECIP_*): New macros for reciprocal estimate support.
16965         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
16966         square root estimate on vectors.
16967         (re<mode>2): New insn for reciprocal division estimate on vectors.
16969         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
16970         New builtin.
16971         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
16972         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
16973         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
16974         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
16975         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
16976         (RS6000_BUILTIN_RSQRT): Ditto.
16977         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
16978         floating point builtin.
16980         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16981         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
16982         __RECIP_PRECISION__ based on the command line switches.
16983         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
16985         * config/rs6000/rs6000.opt (-mrecip): Document add support for
16986         replacing division instructions with reciprocal estimate and fixup.
16987         (-mrecip=<opt>): New option.
16988         (-mrecip-precision): Ditto.
16990         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
16991         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
16992         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
16993         precision scalar.
16995         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
16996         (UNSPEC_VREFP): Ditto.
16997         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
16998         conterparts with regard to support of -mno-fused-madd and -ffast-math.
16999         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
17000         reciprocal estimate instructions to be generated.
17001         (altivec_vrefp): Ditto.
17003         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
17004         estimate support.
17005         (rreg): New mode attribute for reciprocal estimate support.
17006         (recip<mode>3): New insn for division using reciprocal estimate
17007         and fixup builtins.
17008         (divide define_split): New define_split to convert floating point
17009         division to use reciprocal estimate if the user used the
17010         appropriate options and the split is run when we can add new
17011         pseudo registers for the fixup.
17012         (rsqrt<mode>2): New insn for reciprocal square root support.
17013         (recipsf3): Move into recip<mode>3.
17014         (recipdf3): Ditto.
17015         (fres): Use TARGET_FRES.
17016         (rsqrtsf2): Move into rsqrt<mode>2.
17017         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
17018         (copysignsf3): Add support for VSX.
17019         (fred): Use TARGET_FRE.
17020         (fred_fpr): Ditto.
17021         (rsqrtdf_internal1): New function for frsqrte instruciton.
17023         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
17024         (vec_rsqrt): Ditto.
17026 2010-06-03  Richard Guenther  <rguenther@suse.de>
17028         PR middle-end/44291
17029         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
17030         (set_user_assembler_libfunc): Likewise.
17032 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17034         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
17035         defaults.h.
17036         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
17037         to defaults.h
17038         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
17039         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
17040         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
17041         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
17042         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
17043         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
17044         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
17045         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
17046         * defaults.h: Updated for above mentioned changes.
17048 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
17050         * c-common.c: Remove header include of tm_p.h.
17051         * Makefile.in (c-common.o): Remove TM_P_H dependency.
17053 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
17055         * tree.h (struct tree_decl_map): New type.
17056         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
17057         (tree_decl_map_hash): New prototype.
17058         (debug_expr_for_decl, value_expr_for_decl): Change into
17059         tree_decl_map hashtab from tree_map.
17060         (init_ttree): Adjust initialization.
17061         (tree_decl_map_hash): New function.
17062         (decl_debug_expr_lookup, decl_debug_expr_insert,
17063         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
17065 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17067         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
17068         linker emulations.
17069         * configure: Regenerate.
17070         * config.in: Regenerate.
17072         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
17073         (X86_64_EMULATION): Define.
17074         (TARGET_LD_EMULATION): Use them.
17076         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
17077         (SPARC64_EMULATION): Define.
17078         (LINK_ARCH_SPEC): Use them.
17080 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17082         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
17083         smallest_mode_for_size for computing the precision types of new
17084         graphite IVs.  Do not call lang_hooks.types.type_for_size.
17086 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17088         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
17089         information.
17090         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
17092 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
17094         PR middle-end/44363
17095         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
17096         return false instead.
17098 2010-06-02  Jan Hubicka  <jh@suse.cz>
17100         PR middle-end/44295
17101         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
17102         create new cgraph node to check callee.
17104 2010-06-02  Richard Guenther  <rguenther@suse.de>
17106         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
17108 2010-06-02  Richard Guenther  <rguenther@suse.de>
17110         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
17111         (lto_wrapper_cleanup): ... this.  Do not exit.
17112         (fatal): Adjust.  Exit here.
17113         (fatal_perror): Likewise.
17114         (fatal_signal): New function.
17115         (main): Set up signal handlers to cleanup temporary files.
17116         * Makefile.in (lto-wrapper.o): Adjust dependencies.
17118 2010-06-02  Richard Guenther  <rguenther@suse.de>
17120         PR tree-optimization/44377
17121         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
17123 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17125         * config/s390/2097.md (z10_fhex): Remove insn reservation.
17126         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
17127         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
17128         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
17129         instruction.
17130         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
17132 2010-06-02  Jan Hubicka  <jh@suse.cz>
17134         * bitmap.c (bitmap_descriptor): Add search_iter.
17135         (bitmap_find_bit): Increment it.
17136         (print_statistics): Print it.
17138 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
17140         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
17141         instead of gimple_build_call_vec.  Delete unnecessary local variable.
17143 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17145         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
17146         change from yesterday.
17148 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
17150         * c-ada-spec.c: Clean up redundant includes.
17152 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
17154         * gimplify.c: Do not include except.h and optabs.h.
17155         (gimplify_body): Do not initialize RTL profiling.
17156         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
17157         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
17158         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
17159         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
17160         langhooks.h.
17162         * tree-pretty-print.h: Include pretty-print.h.
17163         * gimple-pretty-print.h: Include pretty-print.h.
17165         * tree-pretty-print.c: Do not include diagnostic.h.
17166         * tree-vrp.c: Likewise.
17167         * tree-tailcall.c: Likewise
17168         * tree-scalar-evolution.c: Likewise
17169         * tree-ssa-dse.c: Likewise
17170         * tree-chrec.c: Likewise
17171         * tree-ssa-sccvn.c: Likewise
17172         * tree-ssa-copyrename.c: Likewise
17173         * tree-nomudflap.c: Likewise
17174         * tree-call-cdce.c: Likewise
17175         * tree-stdarg.c: Likewise
17176         * tree-ssa-math-opts.c: Likewise
17177         * tree-nrv.c: Likewise
17178         * tree-ssa-sink.c: Likewise
17179         * tree-browser.c: Likewise
17180         * tree-ssa-loop-ivcanon.c: Likewise
17181         * tree-ssa-loop.c: Likewise
17182         * tree-parloops.c: Likewise
17183         * tree-ssa-address.c: Likewise
17184         * tree-ssa-ifcombine.c: Likewise
17185         * tree-if-conv.c: Likewise
17186         * tree-data-ref.c: Likewise
17187         * tree-affine.c: Likewise
17188         * tree-ssa-phiopt.c: Likewise
17189         * tree-ssa-coalesce.c: Likewise
17190         * tree-ssa-pre.c: Likewise
17191         * tree-ssa-live.c: Likewise
17192         * tree-predcom.c: Likewise
17193         * tree-ssa-forwprop.c: Likewise
17194         * tree-ssa-dce.c: Likewise
17195         * tree-ssa-ter.c: Likewise
17196         * tree-ssa-loop-prefetch.c: Likewise
17197         * tree-optimize.c: Likewise
17198         * tree-ssa-phiprop.c: Likewise
17199         * tree-object-size.c: Likewise
17200         * tree-outof-ssa.c: Likewise
17201         * tree-ssa-structalias.c: Likewise
17202         * tree-switch-conversion.c: Likewise
17203         * tree-ssa-reassoc.c: Likewise
17204         * tree-ssa-operands.c: Likewise
17205         * tree-vectorizer.c: Likewise
17206         * tree-vect-data-refs.c: Likewise
17207         * tree-vect-generic.c: Likewise
17208         * tree-vect-stmts.c: Likewise
17209         * tree-vect-patterns.c: Likewise
17210         * tree-vect-slp.c: Likewise
17211         * tree-vect-loop.c: Likewise
17212         * tree-ssa-loop-ivopts.c: Likewise
17213         * tree-ssa-loop-im.c: Likewise
17214         * tree-ssa-loop-niter.c: Likewise
17215         * tree-ssa-loop-unswitch.c: Likewise
17216         * tree-ssa-loop-manip.c: Likewise
17217         * tree-ssa-loop-ch.c: Likewise
17218         * tree-dump.c: Likewise
17219         * tree-complex.c: Likewise
17221         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
17222         * tree-ssa-uninit.c: Likewise
17223         * tree-ssa-threadupdate.c: Likewise
17224         * tree-ssa-uncprop.c: Likewise
17225         * tree-ssa-ccp.c: Likewise
17226         * tree-ssa-dom.c: Likewise
17227         * tree-ssa-propagate.c: Likewise
17228         * tree-ssa-alias.c: Likewise
17229         * tree-dfa.c: Likewise
17230         * tree-cfgcleanup.c: Likewise
17231         * tree-sra.c: Likewise
17232         * tree-ssa-copy.c: Likewise
17233         * tree-ssa.c: Likewise
17234         * tree-profile.c: Likewise
17235         * tree-cfg.c: Likewise
17236         * tree-ssa-threadedge.c: Likewise
17237         * tree-vect-loop-manip.c: Likewise
17239         * tree-inline.c: Do not include diagnostic.h and expr.h.
17240         Include rtl.h.
17241         (copy_decl_for_dup_finish): Do not use NULL_RTX.
17243         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
17244         * tree-loop-distribution.c: Likewise.
17246 2010-06-01  Jan Hubicka  <jh@suse.cz>
17248         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
17250 2010-06-01  Jan Hubicka  <jh@suse.cz>
17252         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
17253         remove return value.
17254         (split_bbs_on_noreturn_calls) .... here.
17255         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
17256         * tree-flow.h (fixup_noreturn_call): New.
17258 2010-06-01  Jan Hubicka  <jh@suse.cz>
17260         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
17262 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
17264         * tree.h (build_nt_call_list): Delete.
17265         * tree.c (build_nt_call_list): Delete.
17267 2010-06-01  Jan Hubicka  <jh@suse.cz>
17269         * fwprop.c: Make emit-rtl.h include last.
17270         * rtlanal.c: Include emit-rtl.h.
17271         * genautomata.c: Output emit-rtl include into insn-automata.c
17272         * df-scan.c: Include emit-rtl.h.
17273         * haifa-sched.c: Indlude emit-rtl.h.
17274         * mode-switching.c: Indlude emit-rtl.h.
17275         * graph.c: Indlude emit-rtl.h.
17276         * sel-sched.c: Include emit-rtl.h.
17277         * sel-sched-ir.c: Include emit-rtl.h.
17278         * ira-build.c: Include emit-rtl.h.
17279         * emit-rtl.c (first_insn, last_insn): Remove defines.
17280         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
17281         Move to emit-rtl.h.
17282         (set_new_first_and_last_insn, get_last_insn_anywhere,
17283         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
17284         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
17285         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
17286         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
17287         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
17288         Use accessor functions.
17289         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17290          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17291         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17292         mem_expr_equal_p): Move here from rtl.h.
17293         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
17294         Move here from emit-rtl.c; make inline.
17295         * cfglayout.h: Include emit-rtl.h.
17296         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
17297          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
17298         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
17299         mem_expr_equal_p, get_insns, set_first-insn,
17300         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
17301         * reg-stack.c: Include emit-rtl.h.
17302         * dce.c: Likewise.
17304 2010-06-01  Jan Hubicka  <jh@suse.cz>
17306         * cgraph.h (tree_function_versioning): Update prototype.
17307         (cgraph_function_versioning): Update prototype.
17308         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
17309         bitmap.
17310         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
17311         (cgraph_materialize_clone, save_inline_function_body): Update use of
17312         tree_function_versioning.
17313         * tree-inline.c (copy_bb): Look for previous copied block to link
17314         after; fix debug output.
17315         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
17316         (copy_body): Likewise.
17317         (expand_call_inline): Update use of copy_body.
17318         (tree_function_versioning): Update use of copy body; accept
17319         blocks_to_copy and new_entry.
17321 2010-06-01  Jan Hubicka  <jh@suse.cz>
17323         * gegenrtl.c: Remove unnecesary prototypes.
17324         (gendecl): Remove.
17325         (gendef): Produce static inline.
17326         (gencode): Remove.
17327         (main): Do not decode parameters; generate header only.
17328         * Makefile.in (genrtl.c): Remove.
17330 2010-06-01  Jan Hubicka  <jh@suse.cz>
17332         * tree-switch-conversion.c (build_one_array): Make it readonly.
17334 2010-06-01  Richard Guenther  <rguenther@suse.de>
17336         * optabs.c (init_optabs): Guard all accesses to reinit.
17337         * ipa-pure-const.c (propagate): Fix another typo.
17338         * opts.c (common_handle_option): Split assignment to bool.
17339         * c-opts.c (c_common_handle_option): Likewise.
17341 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
17342             Matthew Gingell  <gingell@adacore.com>
17344         * doc/invoke.texi: Mention -fdump-ada-spec.
17345         * tree-dump.c (dump_files): Add ada-spec.
17346         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
17347         * tree-pass.h (tree_dump_index): Add TDI_ada.
17348         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
17349         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
17350         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
17351         * c-decl.c: Include c-ada-spec.h.
17352         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
17353         functions.
17354         (c_write_global_declarations): Add handling of -fdump-ada-spec.
17355         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
17356         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
17357         * c-ada-spec.h, c-ada-spec.c: New files.
17359 2010-06-01  Richard Guenther  <rguenther@suse.de>
17361         PR lto/43853
17362         * ipa-pure-const.c (get_function_state): Hand back varying state
17363         if we do not have one.
17364         (has_function_state): New function.
17365         (duplicate_node_data): Adjust.
17366         (remove_node_data): Likewise.
17367         (pure_const_write_summary): Likewise.
17368         (propagate): Likewise.  Fix typo.
17370 2010-06-01  Jan Hubicka  <jh@suse.cz>
17372         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
17373         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
17374         (execute_all_ipa_transforms): Do not play with the states.
17376 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
17378         * config/arm/t-linux-androideabi: New.
17379         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
17381 2010-06-01  Jan Hubicka  <jh@suse.cz>
17383         * tree-inline.c (estimate_num_insns): For stdarg functions look
17384         into call statement to count cost of argument passing.
17386 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
17388         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
17389         argument for fprintf.
17390         (ix86_output_addr_diff_elt): Likewise.
17391         (x86_function_profiler): Likewise.
17392         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
17393         (LPREFIX): Likewise.
17394         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
17396 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17398         PR target/44338
17399         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
17400         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
17401         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
17402         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
17403         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
17404         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
17405         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
17406         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
17407         TARGET_FUSED_MADD.
17409 2010-05-31  Jan Hubicka  <jh@suse.cz>
17411         * tree.h (tree_range_check_failed): Declare noreturn.
17413 2010-05-31  Jan Hubicka  <jh@suse.cz>
17415         * gimple.c (gimple_call_builtin_p): New function.
17416         * gimple.h (gimple_call_builtin_p): Declare.
17417         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
17418         to exit.
17419         (execute_warn_function_return): BUILT_IN_RETURN is return.
17420         (split_critical_edges): Return edges are not critical.
17421         (is_ctrl_altering_stmt): Builtin_in_return is altering.
17422         (gimple_verify_flow_info): Handle built_in_return.
17423         (execute_warn_function_return): Handle built_in_return.
17424         * ipa-pure-const.c (check_call): Ignore builtin_return.
17426 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
17428         PR middle-end/44337
17429         * expr.c (expand_assignment): Don't store anything for out-of-bounds
17430         array accesses with non-MEM.
17432         PR tree-optimization/44182
17433         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
17434         newly needs to end a bb is followed by debug stmts, instead return
17435         true from the function at the end.
17436         (maybe_move_debug_stmts_to_successors): New function.
17437         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
17439 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
17441         PR target/44161
17442         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
17444 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
17446         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
17447         for nested functions in non-optimized compilation.
17449 2010-05-31  Richard Guenther  <rguenther@suse.de>
17451         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
17453 2010-05-30  Jan Hubicka  <jh@suse.cz>
17455         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
17457 2010-05-30  Richard Guenther  <rguenther@suse.de>
17459         PR lto/42975
17460         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
17461         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
17462         no longer needed.
17464 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
17466         * config/darwin.c (output_objc_section_asm_op): Add comment.
17467         (name_needs_quotes): Add '_' to list of valid comment chars.
17468         (machopic_output_function_base_name): Remove unneeded quotes.
17469         (darwin_encode_section_info): Adjust asm whitespace.
17470         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
17471         (ASM_OUTPUT_LOCAL): Ditto.
17472         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
17473         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
17474         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
17476 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
17478         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
17479         RS6000_OUTPUT_BASENAME unconditionally.
17480         (rs6000_output_function_epilogue): Likewise.
17482 2010-05-30  Jan Hubicka  <jh@suse.cz>
17484         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
17485         nodes.
17487 2010-05-30  Richard Guenther  <rguenther@suse.de>
17489         * tree-cfg.c (verify_gimple_assign_single): Implement
17490         verification for COND_EXPR rhs.
17492 2010-05-30  Jan Hubicka  <jh@suse.cz>
17494         * cgraph.h (cgraph_dump_file): Declare.
17495         * cgraphunit.c (cgraph_dump_file): Export.
17496         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
17498 2010-05-30  Jan Hubicka  <jh@suse.cz>
17500         * dwarf2out.c (reference_to_unused,
17501         premark_types_used_by_global_vars_helper): Avoid creation of new
17502         varpool nodes.
17504 2010-05-30  Jan Hubicka  <jh@suse.cz>
17506         * cgraph.h (cgraph_node_cannot_return,
17507         cgraph_edge_cannot_lead_to_return): New functions.
17508         * cgraph.c (cgraph_node_cannot_return,
17509         cgraph_edge_cannot_lead_to_return): Use them.
17510         * ipa-pure-const.c (pure_const_names): New static var.
17511         (check_call): Handle calls not leading to return.
17512         (pure_const_read_summary): Dump info read.
17513         (propagate): Dump info about propagation process; ignore side effects
17514         of functions not leading to exit; fix handling of pure functions.
17516 2010-05-30  Jan Hubicka  <jh@suse.cz>
17518         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
17519         for tail call epilogues.
17521 2010-05-30  Jan Hubicka  <jh@suse.cz>
17523         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
17524         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
17525         dump files.
17527 2010-05-29  Jan Hubicka  <jh@suse.cz>
17529         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
17530         node; remove references in node we no longer keep in cgrpah but need
17531         body of.
17533 2010-05-29  Jan Hubicka  <jh@suse.cz>
17535         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
17537 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17539         PR target/44165
17540         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
17542 2010-05-29  Jan Hubicka  <jh@suse.cz>
17544         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
17545         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
17546         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
17547         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
17548         debug_names_replaced_by, debug_update_ssa): Likewise.
17549         * sbitmap.c (debug_sbitmap): Likewise.
17550         * genrecog.c (debug_decision, debug_decision_list): Likewise.
17551         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
17552         debug_tree_chain): Likewise.
17553         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
17554         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
17555         * optabs.c (debug_optab_libfuncs): Likewise.
17556         (verify_loop_closed_ssa): Likewise.
17557         * value-prof.c (verify_histograms): Likewise.
17558         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
17559         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
17560         * cfghooks.c (verify_flow_info): Likewise.
17561         * fold-const.c (debug_fold_checksum): Likewise.
17562         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
17563         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
17564         Likewise.
17565         * omega.c (debug_omega_problem): Likewise.
17566         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
17567         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
17568         * dominance.c (verify_dominators, debug_dominance_info,
17569         debug_dominance_tree): Likewise.
17570         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
17571         * df_regno_debug, df_ref_debug,
17572         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
17573         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
17574         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
17575         * sel-sched.c (debug_state): Likewise.
17576         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
17577         Likewise.
17578         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
17579         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
17580         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
17581         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
17582         Likewise.
17583         * c-pretty-print.c (debug_c_tree): Likewise.
17584         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
17585         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
17586         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
17587         * ebitmap.c (debug_ebitmap): Likewise.
17588         * function.c (debug_find_var_in_block_tree): Likewise.
17589         * print-rtl.c (debug_rtx): Likewise.
17590         (debug_rtx_count): Likewise.
17591         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
17592         * stor-layout.c (debug_rli): Likewise.
17593         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
17594         * tree-data-ref.c (debug_data_references,
17595         debug_data_dependence_relations, debug_data_reference,
17596         debug_data_dependence_relation, debug_rdg_vertex,
17597         debug_rdg_component, debug_rdg): Likewise.
17598         * tree-affine.c (debug_aff): Likewise.
17599         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
17600         Likewise.
17601         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
17602         * emit-rtl.c (verify_rtl_sharing): Likewise.
17603         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
17604         debug_value_expressions): Likewise.
17605         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
17606         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
17607         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
17608         * cfglayout.c (verify_insn_chain): Likewise.
17609         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
17610         debug_clast_stmt, debug_generated_program): Likewise.
17611         * ggc-page.c (debug_print_page_list): Likewise.
17612         * tree-ssa-ter.c (debug_ter): Likewise.
17613         * graphite-dependences.c (debug_pddr): Likewise.
17614         * sched-deps.c (debug_ds): Likewise.
17615         * tree-ssa.c (verify_ssa): Likewise.
17616         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
17617         debug_scattering_functions, debug_iteration_domains, debug_pdr,
17618         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
17619         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
17620         * tree-inline.c (debug_find_tree): Likewise.
17621         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
17622         debug_ppl_powerset_matrix): Likewise.
17623         * var-tracking.c (debug_dv): Likewise.
17624         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
17625         * cfgloop.c (verify_loop_structure): Likewise.
17626         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
17627         * c-common.c (verify_sequence_points): Likewise.
17628         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
17629         debug_candidates, debug_rgn_dependencies): Likewise.
17630         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
17631         * debug_constraint_graph, debug_solution_for_var,
17632         debug_sa_points_to_info): Likewise.
17633         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
17634         Likewie.
17635         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
17636         debug_loops, debug_loop, debug_loop_num): Likewise.
17637         * passes.c (debug_pass): Likewise.
17638         (dump_properties): Likewise; add cfglayout property.
17639         (debug_properties): Likewise.
17640         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
17641         * varpool.c (debug_varpool): Likewise.
17642         * regcprop.c (debug_value_data): Likewise.
17643         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
17644         debug_immediate_uses_for): Likewise.
17646 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17648         PR bootstrap/44315
17649         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
17650         Filter out insn-flags.h.
17652 2010-05-29  Jan Hubicka  <jh@suse.cz>
17654         * cgraph.h (struct varpool_node_set_def,
17655         struct cgraph_node_set_def): Remove unused AUX pointer.
17656         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
17657         VEC_empty macro.
17659 2010-05-29  Jan Hubicka  <jh@suse.cz>
17661         PR middle-end/44324
17662         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
17664 2010-05-29  Richard Guenther  <rguenther@suse.de>
17666         * lto-streamer.c (cached_bp): New global variable.
17667         (bitpack_create): Return the cached bitpack, if available.
17668         (bitpack_delete): Clear and cache the bitpack, if appropriate.
17669         (bp_pack_value): Remove redundant asserts.
17671 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17673         PR middle-end/44306
17674         * tree-if-conv.c (is_true_predicate): New.
17675         (is_predicated): Use is_true_predicate.
17676         (add_to_predicate_list): Same.  Do not use unshare_expr.
17677         (add_to_dst_predicate_list): Same.
17679 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
17681         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
17682         field on edges.
17683         (predicate_bbs): Same.
17684         (clean_predicate_lists): Same.
17685         (find_phi_replacement_condition): Do not AND the predicate from
17686         edge->aux.
17688 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
17690         PR bootstrap/44315
17691         * Makefile.in (build/gencondmd.o): Add a missing `\'.
17693 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17695         PR target/44261
17696         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
17697         (negdf2): Adjust expander pattern and use negdf2_slow.
17698         (negsf2): Likewise.
17700 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
17702         * basic-block.h (struct control_flow_graph): Move last_label_uid field
17703         up.
17704         * df.h (struct df_base_ref): Move regno field up.
17705         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
17706         * expr.h (struct separate_ops): Move location field up.
17707         * optabs.h (struct optab_d): Move libcall_basename field down.
17708         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
17709         * config/i386/i386.h (struct machine_function): Convert call_abi field
17710         into a bitfield.  Move cfa field to the end of the structure.
17712 2010-05-29  Jan Hubicka  <jh@suse.cz>
17714         * varpool.c (varpool_get_node): Fix lookup.
17716 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17718         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
17719         RTL specific prototypes with #ifdef RTX_CODE.
17720         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
17721         * config/spu/t-spu-elf: Fix dependencies.
17723         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
17725 2010-05-29  Mike Stump  <mikestump@comcast.net>
17727         PR bootstrap/44315
17728         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
17729         TM_H when building to avoid dependency loops.
17731 2010-05-29  Jan Hubicka  <jh@suse.cz>
17733         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
17734         refs and body; not the whole node for masters of materialized clones.
17736 2010-05-29  Mike Stump  <mikestump@comcast.net>
17738         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
17740 2010-05-29  Jan Hubicka  <jh@suse.cz>
17742         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
17743         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
17744         use of clone_function_name.
17745         * cgraph.h (cgraph_create_virtual_clone,
17746         cgraph_function_versioning): update prototypes.
17747         (clone_function_name): Declare.
17748         * ipa-cp.c (ipcp_insert_stage): Update call of
17749         cgraph_create_virtual_clone.
17750         * omp-low.c (create_omp_child_function_name): Use
17751         cgraph_create_virtual_clone.
17752         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
17753         (cgraph_function_versioning): Take SUFFIX argument; produce new name
17754         and make decl local.
17756 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17758         * vec.h: Include statistics.h
17759         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
17760         with VEC_H.
17762 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17764         * c-lex.c: Do not include c-tree.h.
17765         * c-pretty-print.c: Likewise.
17766         * c-opts.c: Likewise.
17767         * c-gimplify.c: Likewise.
17768         * c-common.c: Likewise.
17769         * c-dump.c: Likewise.  Include c-common.h.
17771 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17773         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
17774         before including diagnostic-core.h.
17775         (c_cpp_error): New prototype moved from c-tree.h.
17776         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
17777         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
17778         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
17779         (c_cpp_error): Prototype moved to c-common.h.
17780         * Makefile.in: Update dependency for C_COMMON_H.
17782 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
17784         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
17785         * c-common.c (c_register_addr_space): Remove here.
17786         * c-decl.c (c_register_addr_space): Re-add here.
17788 2010-05-28  Mike Stump  <mikestump@comcast.net>
17790         * config/darwin-c.c: Remove c-tree.h include.
17792 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17794         * gcc.c: Include diagnostic.h.
17795         (error_count): Remove.  All users changed to use errorcount.
17796         (programname): Remove.  All users changed to use progname.
17797         (fancy_abort, internal_error, fatal_error, error, warning, inform,
17798         fnotice): Remove.
17799         (execute): Don't include "Internal error" and bug reporting
17800         information in argument of internal_error call.
17801         (process_command): Don't increment error_count after calling
17802         perror_with_name.
17803         (input_filename): Rename to gcc_input_filename.  All users
17804         changed.
17805         (main): Call diagnostic_initialize.  Register delete_temp_files
17806         with atexit.  Use seen_error to test for errors.
17807         * gcc.h: Include diagnostic-core.h.
17808         (fatal_error, error, warning): Remove.
17809         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
17810         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
17811         (gcc.o): Update dependencies.
17813 2010-05-28  Jeff Law  <law@redhat.com>
17815         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
17816         functions.
17817         * ira.h (ira_bad_reload_regno): Declare
17818         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
17820         * ira-color.c (update_curr_costs): Free updated hard reg costs.
17821         (ira_reassign_conflict_allocnos): Remove bogus asserts.
17822         (allocno_reload_assign): Likewise.
17824 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
17826         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
17827         build1_stat.
17829 2010-05-28  Richard Guenther  <rguenther@suse.de>
17831         PR lto/44312
17832         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
17833         Stream fixed-point constants mode.
17834         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
17835         and TYPE_PRECISION.
17836         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
17837         Stream fixed-point constants mode.
17838         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
17839         and TYPE_PRECISION.
17841 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17843         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
17844         only place it was called from.
17845         (number_of_latch_executions): Do not return chrec_dont_know when the
17846         may_be_zero is a runtime condition: instead, return a COND_EXPR
17847         including the may_be_zero condition.
17848         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
17849         of nb_iterations.
17850         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
17851         COND_EXPRs.
17853 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17855         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
17856         generate COND_EXPRs for degenerate_phi_result.
17858 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
17860         PR middle-end/44293
17861         * tree-if-conv.c (if_convertible_loop_p): Check the
17862         if-convertibility of phi nodes in non predicated BBs.
17864 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17866         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
17868 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17870         PR driver/15303
17871         * gcc.c (inform, warning, inform): New functions.
17872         (fatal_ice): Rename to internal_error; change cmsgid parameter to
17873         gmsgid.  All callers changed.
17874         (notice): Rename to fnotice; add parameter fp.  All callers changed.
17875         (fatal_error): Rename to fatal_signal.  All users changed.
17876         (fatal): Rename to fatal_error; change cmsgid parameter to
17877         gmsgid.  All callers changed.
17878         (process_command): Use warning instead of error for warnings.
17879         (end_going_arg): Don't use _() around argument of error.
17880         (do_spec_1): Use inform for message from %n specs.  Use warning
17881         instead of error for warnings.
17882         (main): Use inform for comparison messages.  Use warning for
17883         message about unused linker input.
17884         (error): Increment error_count.  Print "error: ".
17885         * gcc.h (fatal): Change to fatal_error.
17886         (warning): Declare.
17887         * config/darwin-driver.c (darwin_default_min_version): Use warning
17888         instead of fprintf for warnings.
17889         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
17891 2010-05-28  Julian Brown  <julian@codesourcery.com>
17893         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
17894         (*thumb2_addsi3_compare0_scratch): New.
17895         * config/arm/constraints.md (Pv): New.
17896         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
17897         for ARM mode only.
17898         (*addsi3_compare0_scratch): Likewise.
17900 2010-05-28  Jan Hubicka  <jh@suse.cz>
17902         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
17903         check.
17904         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
17905         only on local statics.
17907 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
17909         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
17911 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
17913         PR bootstrap/44314
17914         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
17915         (OPTION_GLIBC): Define.
17917 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
17919         PR debug/41048
17920         * dwarf2out.c (double_int_type_size_in_bits): New function.
17921         (round_up_to_align): Change first argument and return value to
17922         double_int.
17923         (field_byte_offset): Work internally on double_ints.
17925         PR target/43636
17926         * builtins.c (expand_movstr): Use a temporary pseudo instead
17927         of target even when target is not NULL and not const0_rtx, but
17928         fails movstr predicate.
17929         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
17931 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
17933         * final.c (rest_of_clean_state): Use %m in errors instead of
17934         strerror (errno).
17935         * gengtype.c (read_input_list, close_output_files): Use xstrerror
17936         instead of strerror.
17937         * toplev.c (process_options): Use %m in errors instead of strerror
17938         (errno).
17939         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
17940         (errno).
17942 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
17944         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
17945         (ix86_canonical_va_list_type): Make static.  Add declaration.
17946         (ix86_enum_va_list): Make static.  Reindent.
17947         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
17948         (ix86_canonical_va_list_type): Ditto.
17949         (ix86_enum_va_list): Ditto.
17951 2010-05-28  Richard Guenther  <rguenther@suse.de>
17953         * lto-wrapper.c (run_gcc): With -save-temps generate a
17954         user-visible ltrans filename.  Fixup ltrans unit numbering.
17956 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
17958         * c-common.c (c_common_nodes_and_builtins): Replace use
17959         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
17960         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
17961         to ix86_enum_va_list.
17962         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
17963         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
17964         (TARGET_ENUM_VA_LIST_P): Add hook description.
17965         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
17966         * target.h (gcc_target): Add enum_va_list hook.
17968         PR bootstrap/44299
17969         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
17970         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
17971         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
17973 2010-05-28  Alan Modra  <amodra@gmail.com>
17975         PR target/44266
17976         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
17977         emit_library_call machinery to set up __tls_get_addr calls.
17979 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17981         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
17983 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
17985         Revert fix for PR c++/44188
17986         * c-common.c (is_typedef_decl): Revert the moving of  this
17987         definition ...
17988         * tree.c (is_typedef_decl): ... here.
17989         (typdef_variant_p): Revert the moving of this  definition
17990         here from cp/tree.c.
17991         * c-common.h (is_typedef_decl): Revert the moving of this
17992         declaration ...
17993         * tree.h (is_typedef_decl): ... here.
17994         (typedef_variant_p): Revert the moving of this  declaration here
17995         from cp/cp-tree.h
17996         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
17997         (gen_tagged_type_die): Revert the splitting out of ...
17998         (gen_type_die_with_usage): ... this function. Revert the anonymous
17999         tagged type handling.
18000         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
18001         typedefs naming anonymous tagged types.
18003 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18005         * config/rs6000/rs6000-modes.def (PSImode): Delete.
18007 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
18009         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
18010         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
18011         throughout.
18012         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
18013         "xer" to "ca".
18014         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
18015         XER_REGS to CA_REGS throughout.
18016         * config/rs6000/rs6000.h: Same.
18017         (ADDITIONAL_REGISTER_NAMES): Add "xer".
18018         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
18019         that mode_iterator "P" is the size for arithmetic carries as well.
18020         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
18022 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
18024         PR bootstrap/44255
18025         * combine.c (struct rtx_subst_pair): Define unconditionally.
18026         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
18027         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
18028         Call make_compound_operation on pair->to.
18029         (propagate_for_debug): Don't call make_compound_operation here.
18030         Always use simplify_replace_fn_rtx.
18032 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
18034         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
18035         * config/xtensa/xtensa.c (override_options): Check
18036           TARGET_FORCE_NO_PIC and set flag_pic.
18037         * config/xtensa/xtensa.opt: Document -mforce-no-pic
18039 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18041         PR bootstrap/44299
18042         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
18043         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
18045 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18047         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
18048         toplev.h.
18049         * diagnostic.c: Don't include toplev.h.
18050         (progname): Define.  Moved from toplev.c.
18051         (seen_error): New function.
18052         * diagnostic.h: Include diagnostic-core.h.
18053         (diagnostic_t, emit_diagnostic): Don't declare here.
18054         * toplev.c (progname): Move to toplev.c.
18055         (emit_debug_global_declarations, compile_file, finalize,
18056         do_compile, toplev_main): Use seen_error.
18057         * toplev.h: Include diagnostic-core.h.
18058         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
18059         internal_error, warning, warning_at, error, error_n, error_at,
18060         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
18061         verbatim, fnotice, progname): Move to diagnostic-core.h.
18062         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
18063         (expand_builtin_expect): Use seen_error.
18064         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
18065         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
18066         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
18067         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
18068         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
18069         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
18070         errorcount for errors.
18071         * c-opts.c (c_common_finish): Use seen_error.
18072         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18073         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
18074         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
18075         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
18076         (get_coverage_counts): Use seen_error.
18077         * dwarf2out.c (dwarf2out_finish): Use seen_error.
18078         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
18079         gimplify_body): Use seen_error.
18080         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
18081         * ipa-pure-const.c (gate_pure_const): Use seen_error.
18082         * ipa-reference.c (gate_reference): Use seen_error.
18083         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
18084         * lambda-code.c: Include diagnostic-core.h instead of
18085         diagnostic.h.
18086         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
18087         * lto-compress.c: Include diagnostic-core.h instead of
18088         diagnostic.h.
18089         * lto-section-in.c: Include diagnostic-core.h instead of
18090         diagnostic.h.
18091         * lto-streamer-out.c: Include diagnostic-core.h instead of
18092         diagnostic.h.
18093         * lto-streamer.c: Include diagnostic-core.h instead of
18094         diagnostic.h.
18095         (gate_lto_out): Use seen_error.
18096         * matrix-reorg.c: Include diagnostic-core.h instead of
18097         diagnostic.h.
18098         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
18099         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
18100         (gate_expand_omp, lower_omp_1): Use seen_error.
18101         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
18102         (rest_of_decl_compilation, rest_of_type_compilation,
18103         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
18104         * tree-cfg.c (label_to_block_fn): Use seen_error.
18105         * tree-inline.c (optimize_inline_calls): Use seen_error.
18106         * tree-mudflap.c (mudflap_finish_file): Use
18107         seen_error.
18108         * tree-optimize.c (gate_all_optimizations,
18109         gate_all_early_local_passes, gate_all_early_optimizations): Use
18110         seen_error.
18111         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
18112         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
18113         (varpool_remove_unreferenced_decls,
18114         varpool_assemble_pending_decls): Use seen_error.
18115         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
18116         (TOPLEV_H, DIAGNOSTIC_H): Update.
18117         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
18118         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
18119         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
18120         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
18121         coverage.o, lambda-code.o): Update dependencies.
18123 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
18125         PR c++/44188
18126         * c-common.c (is_typedef_decl): Move this definition ...
18127         * tree.c (is_typedef_decl): ... here.
18128         (typdef_variant_p): Move definition here from cp/tree.c.
18129         * c-common.h (is_typedef_decl): Move this declaration ...
18130         * tree.h (is_typedef_decl): ... here.
18131         (typedef_variant_p): Move declaration here from cp/cp-tree.h
18132         * dwarf2out.c (is_naming_typedef_decl): New function.
18133         (gen_tagged_type_die): Split out of ...
18134         (gen_type_die_with_usage): ... this function. When an anonymous
18135         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
18136         is emitted for the typedef.
18137         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
18138         anonymous tagged types.
18140 2010-05-27  Jason Merrill  <jason@redhat.com>
18142         * print-tree.c (debug_vec_tree): New fn.
18143         (print_vec_tree): New fn.
18144         * tree.h: Declare them.
18145         * gdbinit.in (pvt): New command.
18147         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
18149         * gdbinit.in (pdd): New command.
18151 2010-05-27  Jan Hubicka  <jh@suse.cz>
18153         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
18154         (update_caller_keys): Return early if there are no callers;
18155         only update fibheap when decresing the key.
18156         (update_callee_keys): Avoid recursion.
18157         (decide_inlining_of_small_functions): When badness does not match;
18158         re-insert into fibheap.
18160 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
18162         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
18163         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
18164         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
18165         (ALL_HOST_OBJS): Now a union of the above two.
18166         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
18167         all files in ALL_HOST_FRONTEND_OBJS.
18168         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
18170         * c-common.c: Pretend to be a backend file by undefining
18171         IN_GCC_FRONTEND (still need rtl.h here).
18173 2010-05-27  Jan Hubicka  <jh@suse.cz>
18175         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
18176         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
18178 2010-05-27  Jan Hubicka  <jh@suse.cz>
18180         * sched-ebb.c: Rename struct deps to struct deps_desc.
18181         * ddg.c: Likewise.
18182         * sel-sched-ir.c: Likewise.
18183         * sched-deps.c: Likewise.
18184         * sched-int.h: Likewise.
18185         * sched-rgn.c: Likewise.
18187 2010-05-27  Jon Beniston  <jon@beniston.com>
18189         PR 43726
18190         * config/lm32/lm32.h: Remove definition of
18191         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
18193 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
18195         PR lto/44230
18196         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
18198 2010-05-27  Richard Guenther  <rguenther@suse.de>
18200         PR tree-optimization/44284
18201         * tree-vect-stmts.c (vectorizable_assignment): Handle
18202         sign-changing conversions as simple copy.
18204 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18206         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
18207         Bionic C library.
18208         (__gthread_active_p): Check for pthread_create if compiling against
18209         Bionic C library.
18211 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18213         Support compilation for Android platform.  Reimplement -mandroid.
18215         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
18216         (*android*): Set ANDROID_DEFAULT.
18217         (arm*-*-linux*): Include linux-android.h.
18218         (arm*-*-eabi*): Don't include previous -mandroid implementation.
18219         * config/arm/eabi.h: Remove, move Android-specific parts ...
18220         * config/linux-android.h: ... here.  New file.
18221         * config/arm/eabi.opt: Rename to ...
18222         * config/linux-android.opt: ... this.
18223         (mandroid): Allow -mno-android option.  Initialize based on
18224         ANDROID_DEFAULT.
18225         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
18226         Move logic to corresponding LINUX_TARGET_* macros.
18227         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
18228         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
18229         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
18230         Android definitions.
18231         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
18232         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
18233         Document.
18235 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
18237         Add support for Bionic C library
18239         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
18240         macro.
18241         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
18242         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
18244         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
18245         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
18246         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
18247         to support multiple C libraries.  Handle Bionic.
18248         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
18249         (BIONIC_DYNAMIC_LINKER64): Define.
18250         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
18251         Update.
18252         (TARGET_HAS_SINCOS): Enable for Bionic.
18254         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
18255         the last option specified on command line take effect.
18256         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
18257         (mbionic): New.
18258         (mglibc, muclibc): Update.
18260         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
18261         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
18262         DEFAULT_LIBC.
18264         * doc/invoke.texi (-mglibc, -muclibc): Update.
18265         (-mbionic): Document.
18267 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
18269         * c-common.h (c_register_addr_space): Add prototype.
18270         (ADDR_SPACE_KEYWORD): Remove.
18271         * c-common.c (c_register_addr_space): New function.
18272         (c_addr_space_name): Reimplement.
18273         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
18275         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
18276         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
18278         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
18279         Remove TARGET_ADDR_SPACE_KEYWORDS.
18281 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
18283         * input.c: New file.
18284         * input.h (main_input_filename): Move declaration to toplev.h.
18285         * toplev.c (input_location, line_table): Move to input.c
18286         * toplev.h (main_input_filename): Move declaration from input.h.
18287         * tree.c (expand_location): Move to input.c.
18288         * Makefile.in (OBJS-common): Add input.o.
18289         (input.o): Add dependencies.
18291 2010-05-27  Richard Guenther  <rguenther@suse.de>
18293         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
18294         for non-existant files.
18295         (fork_execute): Mark args_name file as deleted.
18297 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
18299         PR bootstrp/44287
18300         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
18301         (narrow_signed_type): Likewise.
18303 2010-05-26  Jan Hubicka  <jh@suse.cz>
18305         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
18306         edge only when checking is enabled; check using former_clone_of;
18307         check inline clones too.
18308         (cgraph_materialize_clone): Record former_clone_of pointer.
18309         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
18310         combining redirections; dump args_to_skip bitmap
18311         (cgraph_materialize_all_clones): Do no redirection here.
18312         * ipa-inline.c (inline_transform): Do redirection here.
18313         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
18314         cheking only).
18316 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18318         * config/avr/avr-c.c: Do not include regs.h.
18319         Include cpplib.h for cpp_define and tree.h for c-common.h.
18320         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
18321         * config/avr/t-avr: Fix dependencies for avr-c.o.
18323 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18325         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
18326         string instead of SYMBOL_REF rtx.
18327         * rtl.h (set_stack_check_libfunc): Move prototype from here...
18328         * libfuncs.h: ...to here.  Adjust for explow.c change.
18330 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18332         * pretty-print.c: Don't include ggc.h.
18333         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
18334         (identifier_to_locale): Use them for allocation.
18335         * pretty-print.h (identifier_to_locale_alloc,
18336         identifier_to_locale_free): Declare.
18337         * toplev.c (alloc_for_identifier_to_locale): New.
18338         (general_init): Set identifier_to_locale_alloc and
18339         identifier_to_locale_free.
18340         * Makefile.in (pretty-print.o): Update dependencies.
18342 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18344         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
18345         pointer types if they have different alignment or mode.
18347 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
18349         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
18350         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
18351         * config/sparc/sparc-protos.h (function_value): Remove declaration.
18352         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
18353         sparc_function_value_regno_p): New functions.
18354         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18355         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18356         (function_value): Rename to...
18357         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
18358         argument to 'outgoing'.
18359         (function_arg_record_value, function_arg_union_value,
18360         function_arg_vector_value): Update comment.
18362 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
18364         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
18365         (fde_needed_for_eh_p): New predicate.
18366         (output_call_frame_info): Use it throughout to decide whether FDEs
18367         are needed for EH purpose.
18368         (dwarf2out_begin_prologue): Reorder assignments.
18370 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18372         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
18373         special case loop->header.
18374         (is_predicated): New.
18375         (if_convertible_loop_p): Call it.
18377 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18379         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
18380         iterator in parameter.  Do not generate code during the analysis.
18381         (tree_if_convert_cond_stmt): Removed.
18382         (tree_if_convert_stmt): Removed.
18383         (predicate_bbs): New.
18384         (if_convertible_loop_p): Call predicate_bbs.
18385         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
18386         now contains all the analysis part.
18388 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18390         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
18391         statements in the analysis part.
18392         (tree_if_convert_stmt): Update comment.
18393         (remove_conditions_and_labels): New.
18394         (combine_blocks): Call remove_conditions_and_labels.
18395         (tree_if_conversion): Update comment.
18397 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18399         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
18400         than 2 predecessors or more than 2 successors.
18402 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18404         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
18405         of loops in which the data dependence analysis fails.
18407 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18409         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
18410         CDI_POST_DOMINATORS.
18411         (tree_if_conversion): Same.
18413 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18415         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
18417 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
18419         * tree-if-conv.c: Update copyright years.  Fix comments.
18420         Fix indentation.
18422 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
18424         * builtin-types.def (BT_INT128): New primitive type.
18425         (BT_UINT128): Likewise.
18426         * c-common.c (c_common_r): Add __int128 keyword.
18427         (c_common_type_for_size): Handle __int128.
18428         (c_common_type_for_mode): Likewise.
18429         (c_common_signed_or_unsigned_type): Likewise.
18430         (c_common_nodes_and_builtins): Add builtin type
18431         if target supports 128-bit integer scalar.
18432         * c-common.h (enum rid): Add RID_INT128.
18433         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
18434         if target supports 128-bit integer scalar.
18435         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
18436         (finish_declspecs): Likewise.
18437         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
18438         (c_token_starts_declspecs): Likewise.
18439         (c_parser_declspecs): Likewise.
18440         (c_parser_attributes): Likewise.
18441         (c_parser_objc_selector): Likewise.
18442         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
18443         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
18444         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
18445         * tree.c (make_or_reuse_type): Likewise.
18446         (make_unsigned_type): Likewise.
18447         (build_common_tree_nodes_2): Likewise.
18448         * tree.h (enum integer_type_kind): Add itk_int128 and
18449         itk_unsigned_int128.
18450         (int128_integer_type_node): New define.
18451         (int128_unsigned_type_node): New define.
18452         * doc/extend.texi: Add documentation about __int128 type.
18454 2010-05-26  Richard Guenther  <rguenther@suse.de>
18456         * tree-ssa-sccvn.c (copy_nary): Adjust.
18457         (copy_phis): Rename to ...
18458         (copy_phi): ... this.  Adjust.
18459         (copy_references): Rename to ...
18460         (copy_reference): ... this.  Adjust.
18461         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
18462         result into the valid table.
18464 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18466         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
18467         insn-config.h, insn-codes.h, recog.h, and optabs.h.
18469 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18471         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
18473 2010-05-26  Richard Guenther  <rguenther@suse.de>
18475         * opts.c (common_handle_option): Handle OPT_Ofast.
18477 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
18479         * diagnostic.c: Don't include opts.h.
18480         (permissive_error_option): Define.
18481         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
18482         for classify_diagnostic.  Don't use memset for
18483         classify_diagnostic.  Initialize new and recently added fields.
18484         (diagnostic_classify_diagnostic): Use context->n_opts instead of
18485         N_OPTS.
18486         (diagnostic_report_diagnostic): Pass context parameter to
18487         diagnostic_report_warnings_p.  Use option_enabled and option_name
18488         hooks from context.
18489         (emit_diagnostic): Use permissive_error_option.
18490         (permerror): Likewise.
18491         * diagnostic.h: Don't include options.h.
18492         (struct diagnostic_context): Add n_opts, opt_permissive,
18493         inhibit_warnings, warn_system_headers, option_enabled and
18494         option_name fields.  Change classify_diagnostic to a pointer.
18495         * opts-diagnostic.h: New file.
18496         * opts.c: Include opts-diagnostic.h.
18497         (common_handle_option): Set global_dc fields for -Wfatal-errors,
18498         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
18499         (option_name): New function.
18500         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
18501         (c_common_handle_option): Set global_dc->permissive for
18502         -fpermissive.
18503         * c-common.c (c_cpp_error): Save and restore
18504         global_dc->warn_system_headers, not variable warn_system_headers.
18505         * toplev.c: Include opts-diagnostic.h.
18506         (general_init): Update call to diagnostic_initialize.  Set
18507         global_dc->show_column, global_dc->option_enabled and
18508         global_dc->option_name.
18509         (process_options): Don't set global_dc fields here.
18510         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
18511         (diagnostic.o, opts.o, toplev.o): Update dependencies.
18513 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
18515         * config/picochip/picochip.md (movsi): Split a movsi from a
18516         const after reload.
18518 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18520         * ggc-zone.c: Update copyright year.
18521         (poison_region): Mark memory for Valgrind as undefined before
18522         memset () call and inaccessible afterwards.
18523         (ggc_pch_total_size): Change type of i to int.
18525 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18527         * ggc-common.c (ggc_free_overhead): Allow empty slot.
18529 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
18531         * ggc-common.c: Update copyright year.
18532         (ggc_rlimit_bound): Remove prototype.  Compile only if
18533         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
18534         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
18535         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
18536         (ggc_min_heapsize_heuristic): Likewise.
18538 2010-05-26  Richard Guenther  <rguenther@suse.de>
18540         PR rtl-optimization/44164
18541         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
18542         no-common access-path disambiguation.
18543         (indirect_ref_may_alias_decl_p): Adjust.
18544         (indirect_refs_may_alias_p): Likewise.
18545         (refs_may_alias_p_1): Likewise.
18547 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18549         * c-typeck.c: Do not include expr.h.
18551 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
18553         * rtl.h (decl_default_tls_model): Move prototype from here...
18554         * output.h: ...to here.
18555         * c-decl.c: Do not include rtl.h.
18556         * c-pragma.c: Likewise.
18557         * c-parser.c: Likewise.
18558         * c-gimplify.c: Likewise.  And also not hard-reg-set.
18559         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
18560         FIXME note for it.  Add a FIXME note for expr.h.
18561         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
18562         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
18563         defined.
18565 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
18567         PR target/44199
18568         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
18569         or total_size is larger than red zone size for non-V4 ABI, emit a
18570         stack_tie resp. frame_tie insn before stack pointer restore.
18571         * config/rs6000/rs6000.md (frame_tie): New insn.
18573 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
18575         * function.h (struct function): Add can_throw_non_call_exceptions bit.
18576         * lto-streamer-in.c (input_function): Stream it in.
18577         * lto-streamer-out.c (output_function): Stream it out.
18578         * function.c (allocate_struct_function): Set it.
18579         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
18580         for flag_non_call_exceptions.
18581         * cfgbuild.c (control_flow_insn_p): Likewise.
18582         (make_edges): Likewise.
18583         * cfgexpand.c (expand_stack_alignment): Likewise.
18584         * combine.c (distribute_notes): Likewise.
18585         * cse.c (cse_extended_basic_block): Likewise.
18586         * except.c (insn_could_throw_p): Likewise.
18587         * gcse.c (simple_mem): Likewise.
18588         * ipa-pure-const.c (check_call): Likewise.
18589         (check_stmt ): Likewise.
18590         * lower-subreg.c (lower-subreg.c): Likewise.
18591         * optabs.c (emit_libcall_block): Likewise.
18592         (prepare_cmp_insn): Likewise.
18593         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
18594         * postreload.c (rest_of_handle_postreload): Likewise.
18595         * reload1.c (reload_as_needed): Likewise.
18596         (emit_input_reload_insns): Likewise.
18597         (emit_output_reload_insns): Likewise.
18598         (fixup_abnormal_edges): Likewise.
18599         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
18600         * store-motion.c (find_moveable_store): Likewise.
18601         * tree-eh.c (stmt_could_throw_p): Likewise.
18602         (tree_could_throw_p): Likewise.
18603         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
18604         * config/arm/arm.c (arm_expand_prologue): Likewise.
18605         (thumb1_expand_prologue): Likewise.
18606         * config/rx/rx.md (cbranchsf4): Likewise.
18607         (cmpsf): Likewise.
18608         * config/s390/s390.c (s390_emit_prologue): Likewise.
18609         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
18610         (inline_forbidden_into_p): New predicate.
18611         (expand_call_inline): Use it to forbid inlining.
18612         (tree_can_inline_p): Likewise.
18614 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18616         * config/i386/i386-c.c: Do not include rtl.h.
18617         * config/i386/t-i386: Update dependencies.
18619 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18621         * attribs.c: Do not include rtl.h.
18622         * Makefile.in: Update dependencies.
18624 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
18626         * double-int.h (double_int_and): New.
18627         * combine.c (try_combine): Clean up, use double_int_* and
18628         immed_double_int_const functions.
18630 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18632         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
18633         stderr to /dev/null instead of grep -q.
18634         * configure: Regenerate.
18636 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
18638         * Makefile.in (EXCEPT_H): Fix typo.
18640 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
18642         * ira-build.c (update_conflict_hard_reg_costs): New.
18643         (ira_build): Call update_conflict_hard_reg_costs.
18645 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18647         PR debug/41371
18648         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
18649         ENABLE_CHECKING.
18650         (intersect_loc_chains): Walk the s2var's loc_chain together
18651         with s1node chain as long as the locations are equal, don't
18652         call find_loc_in_1pdv in that case.
18654         PR debug/42801
18655         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
18656         (copy_bind_expr): ... instead of here.
18657         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
18658         if the block hasn't been remapped.
18659         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
18660         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
18662 2010-05-25  Richard Guenther  <rguenther@suse.de>
18664         PR middle-end/44069
18665         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
18666         out-of-bounds array accesses.
18668 2010-05-25  Richard Guenther  <rguenther@suse.de>
18670         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
18671         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
18672         (run_gcc): Re-organize to make cleanup easier.
18674 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18676         * config/s390/s390.c (optimization_options): Fix and move the
18677         flag_prefetch_loop_arrays override ...
18678         (override_options): ... here.
18680 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
18682         * diagnostic.c: Don't include plugin.h.
18683         (diagnostic_report_diagnostic): Don't handle plugins specially
18684         here.  Pass context to internal_error callback.
18685         * diagnostic.h (struct diagnostic_context): Add context parameter
18686         to internal_error callback.
18687         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
18688         * plugin.h (struct diagnostic_context): Declare.
18689         (warn_if_plugins, plugins_internal_error_function): Declare.
18690         * toplev.c (general_init): Set global_dc->internal_error.
18691         * Makefile.in (diagnostic.o): Update dependencies.
18693 2010-05-25  Iain Sandoe  <iains@gcc.gnu.org>
18695         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
18696         * config/rs6000/t-darwin64: New.
18697         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
18698         build crt2.
18700 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
18702         PR 44203
18703         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
18704         match the original (and intended) behaviour before r159557.  This
18705         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
18706         in two ways.
18708 2010-05-25  Richard Guenther  <rguenther@suse.de>
18710         * doc/invoke.texi: Document -Ofast.
18711         * target.h (struct gcc_target): Add handle_ofast.
18712         * target-def.h (TARGET_HANDLE_OFAST): Add.
18713         (TARGET_INITIALIZER): Adjust.
18714         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
18715         * common.opt (Ofast): Add.
18717 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18719         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
18720         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
18722 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
18724         PR target/43610
18725         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
18726         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
18727         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
18728         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
18730 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
18732         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
18733         DW_OP_minus with negated offset instead of DW_OP_plus.
18734         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
18736 2010-05-25  Wei Guozhi  <carrot@google.com>
18738         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
18739         tst instruction and a new alternative.
18740         * config/arm/constraints.md (Pu): New constraint.
18742 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
18744         * function.c (assign_stack_local_1): Initialize variable
18745         to avoid warning when bootstrapping at -O3.
18747 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
18749         * configure.ac (all_lang_makefiles): Remove everything related to it.
18750         * configure: Regenerate.
18751         * Makefile.in: Fix reference to ada Make-lang.in.
18752         Remove support for LANG_MAKEFILES.
18754 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
18755             Sandra Loosemore  <sandra@codesourcery.com>
18757         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
18758         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
18759         description.  Add arm_neon_fp16_ok.
18760         (Add Options): Add arm_neon and arm_neon_fp16.
18762 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
18764         * diagnostic.c: Don't include flags.h.
18765         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
18766         context parameters.  Check flags in the context passed as a parameter.
18767         (diagnostic_build_prefix): Add context parameter.  Check
18768         show_column flag in context.
18769         (diagnostic_action_after_output): Check fatal_errors flag in context.
18770         (diagnostic_report_current_module): Check show_column flag in context.
18771         (default_diagnostic_starter): Update call to
18772         diagnostic_build_prefix.
18773         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
18774         (emit_diagnostic): Pass context to permissive_error_kind.
18775         (permerror): Pass context to permissive_error_kind.
18776         * diagnostic.h (struct diagnostic_context): Add show_column,
18777         pedantic_errors, permissive and fatal_errors fields.
18778         (diagnostic_build_prefix): Update prototype.
18779         * langhooks.c
18780         * toplev.c (process_options): Set flags in global_dc from
18781         flag_show_column, flag_pedantic_errors, flag_permissive,
18782         flag_fatal_errors.
18783         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
18784         to diagnostic_build_prefix.
18785         * Makefile.in (diagnostic.o): Update dependencies.
18787 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
18789         * config/i386/ia32intrin.h (__crc32q): Define only if
18790         __SSE4_2__ is defined.
18792 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
18794         PR target/44132
18795         PR middle-end/43602
18796         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
18797         DECL_VISIBILITY_SPECIFIED.
18798         (emutls_decl): Set DECL_PRESERVE_P and copy
18799         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
18800         (emutls_finalize_control_var): New callback.
18801         (emutls_finish): Finalize emutls control variables.
18802         * toplev.c (compile_file): Move the call to emutls_finish ()
18803         before varpool_assemble_pending_decls ().
18805 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
18807         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
18808         added to the preprocessor condition.
18810 2010-05-24  Paul Brook  <paul@codesourcery.com>
18812         * gengtype-lex.l: Add HARD_REG_SET.
18813         * expr.c (expand_expr_real_1): Record writes to hard registers.
18814         * function.c (rtl_data): Add asm_clobbers.
18815         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
18816         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
18817         Use crtl->asm_clobbers.
18819 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18821         * doc/makefile.texi (Makefile): Mention stages 'profile'
18822         and 'feedback' for profiledbootstrap.
18824 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18826         PR target/44245
18827         * config/i386/i386.c (def_builtin): Properly check
18828         OPTION_MASK_ISA_64BIT.
18830 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
18832         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
18833         typedefs with different but compatible types.  Allow duplicate
18834         typedefs with the same type except for pedantic non-C1X, but give
18835         warning for variably modified types.
18836         * c-typeck.c (tagged_types_tu_compatible_p,
18837         function_types_compatible_p, type_lists_compatible_p,
18838         comptypes_internal): Add parameter different_types_p; set
18839         *different_types_p for different but compatible types.  All
18840         callers changed.
18841         (comptypes_check_different_types): New.
18842         * c-tree.h (comptypes_check_different_types): Declare.
18844 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18846         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
18847         * jump.c: Include basic-block.h.
18848         * profile.c: Likewise.
18849         * tree-profile.c: Likewise.
18850         * coverage.c: Likewise.
18851         * basic-block.h (optimize_function_for_size_p): Move to function.h.
18852         (optimize_function_for_speed_p): Likewise.
18853         * function.h (optimize_function_for_size_p,
18854         optimize_function_for_speed_p): Moved here from basic-block.h.
18855         * Makefile.in: Update dependencies.
18857 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18859         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
18860         before calling make; allow override through $MAKE.
18861         * doc/invoke.texi (Optimize Options): Document override.
18863 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
18865         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
18866         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18867         (rs6000_mode_dependent_address_ptr): Make static.
18868         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18869         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
18870         Remove.
18872 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
18874         PR target/43869
18875         * config/i386/i386.c: Make sure that the correct regparm is passed.
18877 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
18879         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
18880         * sbitmap.c: ...to here to internalize sbitmap element access.
18881         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
18882         Explain why basic-block.h is included.
18883         * function.h: Include tm.h for CUMULATIVE_ARGS.
18884         * Makefile.in: Update dependencies.
18886 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18888         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
18889         New core types.
18890         * sbitmap.h (struct sbitmap_def): Do not typedef here.
18891         * sbitmap.c: Include sbitmap.h.
18892         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
18893         hard-reg-set.h.  Split everything related to regsets out from here...
18894         * regset.h: ...to here.  New file.
18895         * df.h: Include regset.h and sbitmap.h.
18896         * tree-flow.h: Likewise.
18897         * cfgloop.h: Likewise.
18898         * except.h: Do not include sbitmap.h.  Include hashtab.h.
18899         * cgraph.h: Include vec.h and function.h.
18900         * reload.h (struct insn_chain): Change types of live_throughout
18901         and dead_or_set from regset_head to bitmap_head.
18902         (compute_use_by_pseudos): Be defined also if regset.h is not included.
18903         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
18904         spilled_regs from regset_head to bitmap_head to avoid dependency
18905         in regset.h.
18906         * sel-sched-ir.h: Include regset.h.
18907         * reload.c: Include df.h before reload.h.
18908         * caller-save.c: Likewise.
18909         * reload1.c: Likewise.
18910         * ira.c: Likewise.
18911         (mark_elimination): Update type of r to bitmap, consistent with
18912         DF_LR_IN.
18913         * dominance.c: Include bitmap.h.
18914         * modulo-sched.c: Include df.h.
18915         * cfganal.c: Include bitmap.h and sbitmap.h.
18916         * cfgbuild.c: Include sbitmap.h.
18917         * lcm.c: Include sbitmap.h.
18918         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
18919         * domwalk.c: Include sbitmap.h, exclude ggc.h.
18920         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
18921         * cselib.c: Include bitmap.h.
18922         * tree-optimize.c: Include regset.h.
18923         * stmt.c: Include bitmap.h.
18924         * Makefile.in: Update dependencies.
18926 2010-05-22  Jan Hubicka  <jh@suse.cz>
18928         * cgraph.h (struct varpool_node): Add same_comdat_group.
18929         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
18930         pointer.
18931         (output_varpool): Update call of lto_output_varpool_node.
18932         (input_varpool): Read same_comdat_group pointer.
18933         (input_varpool_1): Fixup same_comdat_group pointer.
18934         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
18935         group is needed, all are.
18936         * varpool.c (varpool_remove_node): Remove node from same comdat group
18937         linklist too.
18938         (varpool_analyze_pending_decls): Walk same comdat groups.
18940 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
18942         * rtl.h (union rtunion_def): Remove rt_bit member.
18943         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
18944         * print-rtl (print_rtx): Do not print the member.
18945         * gengtype.c (adjust_field_rtx_def): Do not handle it.
18946         * gengenrtl.c (type_from_format): Likewise.
18947         (accessor_from_format): Likewise.
18949 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
18951         * dbgcnt.c: Include toplev.h instead of errors.h.
18952         * ira-emit.c: Don't include errors.h.
18953         * ira.c: Include toplev.h instead of errors.h.
18954         * lto-compress.c: Include toplev.h instead of errors.h.
18955         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
18956         ira.o, dbgcnt.o): Update dependencies.
18958 2010-05-22  Richard Guenther  <rguenther@suse.de>
18960         * gimple.c (gimple_types_compatible_p): Check type qualifications
18961         before merging pointer to complete and pointer to incomplete type.
18962         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
18963         we use our own resolution algorithm.  The gold linker plugin
18964         doesn't do the job we want it to do here.
18966 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
18968         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
18969         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18970         (sparc_mode_dependent_address_p): New function.
18972 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
18974         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
18976         * timevar.c: Do not include any core headers.
18977         (timevar_print): De-i18n-ize.
18978         (print_time): Likewise.
18979         * timevar.h (timevar_push, timevar_pop): Make inline functions.
18981 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
18983         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
18984         langhooks-def.h.
18985         (diagnostic_initialize): Initialize x_data not last_function.
18986         (diagnostic_report_current_function): Move to tree-diagnostic.c.
18987         (default_diagnostic_starter): Call
18988         diagnostic_report_current_module not
18989         diagnostic_report_current_function.
18990         (diagnostic_report_diagnostic): Initialize x_data not
18991         abstract_origin.
18992         (verbatim): Likewise.
18993         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
18994         x_data.
18995         (struct diagnostic_context): Change last_function to x_data.
18996         (diagnostic_auxiliary_data): Replace with
18997         diagnostic_context_auxiliary_data and
18998         diagnostic_info_auxiliary_data.
18999         (diagnostic_last_function_changed, diagnostic_set_last_function,
19000         diagnostic_report_current_function): Move to tree-diagnostic.h.
19001         (print_declaration, dump_generic_node, print_generic_stmt,
19002         print_generic_stmt_indented, print_generic_expr,
19003         print_generic_decl, debug_c_tree, dump_omp_clauses,
19004         print_call_name, debug_generic_expr, debug_generic_stmt,
19005         debug_tree_chain, default_tree_printer): Move to
19006         tree-pretty-print.h.
19007         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
19008         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
19009         gimple-pretty-print.h.
19010         * pretty-print.c: Don't include tree.h
19011         (pp_base_format): Don't handle %K here.
19012         (pp_base_tree_identifier): Move to tree-pretty-print.c.
19013         * pretty-print.h (text_info): Change abstract_origin to x_data.
19014         (pp_tree_identifier, pp_unsupported_tree,
19015         pp_base_tree_identifier): Move to tree-pretty-print.h.
19016         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
19017         tree-pretty-print.h: New files.
19018         * tree-pretty-print.c: Include tree-pretty-print.h.
19019         (percent_K_format): New.  Moved from pretty-print.c.
19020         (pp_base_tree_identifier): Move from pretty-print.c.
19021         * c-objc-common.c: Include tree-pretty-print.h.
19022         (c_tree_printer): Handle %K here.
19023         * langhooks.c: Include tree-diagnostic.h.
19024         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
19025         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
19026         (default_tree_printer): Handle %K using percent_K_format.
19027         (general_init): Use default_tree_diagnostic_starter.
19028         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
19029         (free_lang_data): Use default_tree_diagnostic_starter.
19030         * c-pretty-print.c: Include tree-pretty-print.h.
19031         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19032         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19033         * dwarf2out.c: Include tree-pretty-print.h.
19034         * except.c: Include tree-pretty-print.h.
19035         * gimple-pretty-print.c: Include tree-pretty-print.h and
19036         gimple-pretty-print.h.
19037         * gimplify.c: Include tree-pretty-print.h.
19038         * graphite-poly.c: Include tree-pretty-print.h and
19039         gimple-pretty-print.h.
19040         * ipa-cp.c: Include tree-pretty-print.h.
19041         * ipa-inline.c: Include gimple-pretty-print.h.
19042         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19043         * ipa-pure-const.c: Include gimple-pretty-print.h.
19044         * ipa-struct-reorg.c: Include tree-pretty-print.h and
19045         gimple-pretty-print.h.
19046         * ipa-type-escape.c: Include tree-pretty-print.h.
19047         * print-rtl.c: Include tree-pretty-print.h.
19048         * print-tree.c: Include gimple-pretty-print.h.
19049         * sese.c: Include tree-pretty-print.h.
19050         * tree-affine.c: Include tree-pretty-print.h.
19051         * tree-browser.c: Include tree-pretty-print.h.
19052         * tree-call-cdce.c: Include gimple-pretty-print.h.
19053         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
19054         * tree-chrec.c: Include tree-pretty-print.h.
19055         * tree-data-ref.c: Include tree-pretty-print.h and
19056         gimple-pretty-print.h.
19057         * tree-dfa.c: Include tree-pretty-print.h.
19058         * tree-if-conv.c: Include tree-pretty-print.h and
19059         gimple-pretty-print.h.
19060         * tree-inline.c: Include tree-pretty-print.h.
19061         * tree-into-ssa.c: Include tree-pretty-print.h and
19062         gimple-pretty-print.h.
19063         * tree-nrv.c: Include tree-pretty-print.h.
19064         * tree-object-size.c: Include tree-pretty-print.h and
19065         gimple-pretty-print.h.
19066         * tree-outof-ssa.c: Include tree-pretty-print.h and
19067         gimple-pretty-print.h.
19068         * tree-parloops.c: Include tree-pretty-print.h and
19069         gimple-pretty-print.h.
19070         * tree-predcom.c: Include tree-pretty-print.h and
19071         gimple-pretty-print.h.
19072         * tree-scalar-evolution.c: Include tree-pretty-print.h and
19073         gimple-pretty-print.h.
19074         * tree-sra.c: Include tree-pretty-print.h.
19075         * tree-ssa-address.c: Include tree-pretty-print.h.
19076         * tree-ssa-alias.c: Include tree-pretty-print.h.
19077         * tree-ssa-ccp.c: Include tree-pretty-print.h and
19078         gimple-pretty-print.h.
19079         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
19080         * tree-ssa-copy.c: Include tree-pretty-print.h and
19081         gimple-pretty-print.h.
19082         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
19083         * tree-ssa-dce.c: Include tree-pretty-print.h and
19084         gimple-pretty-print.h.
19085         * tree-ssa-dom.c: Include tree-pretty-print.h and
19086         gimple-pretty-print.h.
19087         * tree-ssa-dse.c: Include gimple-pretty-print.h.
19088         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
19089         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
19090         * tree-ssa-live.c: Include tree-pretty-print.h and
19091         gimple-pretty-print.h.
19092         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
19093         gimple-pretty-print.h.
19094         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
19095         gimple-pretty-print.h.
19096         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
19097         gimple-pretty-print.h.
19098         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
19099         gimple-pretty-print.h.
19100         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
19101         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
19102         * tree-ssa-operands.c: Include tree-pretty-print.h and
19103         gimple-pretty-print.h.
19104         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
19105         gimple-pretty-print.h.
19106         * tree-ssa-pre.c: Include tree-pretty-print.h and
19107         gimple-pretty-print.h.
19108         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
19109         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
19110         gimple-pretty-print.h.
19111         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
19112         gimple-pretty-print.h.
19113         * tree-ssa-sink.c: Include gimple-pretty-print.h.
19114         * tree-ssa-ter.c: Include tree-pretty-print.h and
19115         gimple-pretty-print.h.
19116         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
19117         * tree-ssa.c: Include tree-pretty-print.h and
19118         gimple-pretty-print.h.
19119         * tree-stdarg.c: Include gimple-pretty-print.h.
19120         * tree-switch-conversion.c: Include gimple-pretty-print.h.
19121         * tree-tailcall.c: Include tree-pretty-print.h and
19122         gimple-pretty-print.h.
19123         * tree-vect-data-refs.c: Include tree-pretty-print.h and
19124         gimple-pretty-print.h.
19125         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
19126         gimple-pretty-print.h.
19127         * tree-vect-loop.c: Include tree-pretty-print.h and
19128         gimple-pretty-print.h.
19129         * tree-vect-patterns.c: Include gimple-pretty-print.h.
19130         * tree-vect-slp.c: Include tree-pretty-print.h and
19131         gimple-pretty-print.h.
19132         * tree-vect-stmts.c: Include tree-pretty-print.h and
19133         gimple-pretty-print.h.
19134         * tree-vectorizer.c: Include tree-pretty-print.h.
19135         * tree-vrp.c: Include tree-pretty-print.h and
19136         gimple-pretty-print.h.
19137         * value-prof.c: Include tree-pretty-print.h and
19138         gimple-pretty-print.h.
19139         * var-tracking.c: Include tree-pretty-print.h.
19140         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
19141         (tree-diagnostic.o): New dependencies.
19142         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
19143         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
19144         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
19145         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
19146         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
19147         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
19148         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
19149         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
19150         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
19151         tree-ssa-address.o, tree-ssa-loop-niter.o,
19152         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
19153         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
19154         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
19155         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
19156         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
19157         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
19158         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
19159         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
19160         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
19161         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
19162         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
19163         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
19164         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
19165         tree-switch-conversion.o, var-tracking.o, value-prof.o,
19166         cfgexpand.o, pretty-print.o): Update dependencies.
19168 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
19170         * tree-ssa-structalias.c: Remove tm_p.h from include.
19172 2010-05-21  Jeff Law  <law@redhat.com>
19174         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
19176 2010-05-21  Jason Merrill  <jason@redhat.com>
19178         * tree-eh.c (cleanup_is_dead_in): New.
19179         (lower_try_finally): Don't generate a dead cleanup region.
19180         (lower_cleanup): Likewise.
19182 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19184         PR debug/44223
19185         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
19186         unchain each use from the cyclic next_regno_use chain first.
19188 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19190         * real: Do not include gmp.h, mpfr.h, and mpc.h.
19191         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
19192         (real_value_negate, real_value_abs): New prototypes.
19193         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
19194         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
19195         new include file for interface between MPFR and REAL_VALUE_TYPE.
19196         * real.c: Include realmpfr.h.
19197         (real_arithmetic2): Remove legacy function.
19198         (real_value_negate): New.
19199         (real_value_abs): New.
19200         (mfpr_from_real, real_from_mpfr): Move from here...
19201         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
19202         * builtins.c: Include realmpfr.h.
19203         * fold-const.c: Include realmpfr.h.
19204         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
19205         (fold_negate_const): Likewise.
19206         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
19207         * toplev.c: Include realmpfr.h.
19208         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
19209         and real_value_negate.
19210         * fixed-value.c (check_real_for_fixed_mode): Likewise.
19211         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
19212         (vfp3_const_double_index): Likewise.
19213         (arm_print_operand): Likewise.
19214         * Makefile.in: Update dependencies.
19216 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19218         * config/s390/s390.c (override_options): Increase the default
19219         of max-completely-peel-times.
19221 2010-05-21  Julian Brown  <julian@codesourcery.com>
19222             Mark Mitchell  <mark@codesourcery.com>
19224         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
19225         sibling calls for Thumb-1.
19226         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
19227         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
19228         Thumb-2.
19229         (*call_insn, *call_value_insn): Don't use for Thumb-2.
19230         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
19231         for Thumb-2.
19232         (return): New expander.
19233         (*arm_return): New name for ARM return insn.
19234         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
19236 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
19238         * config.gcc (sparc64-*-rtems*): New target.
19240 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
19242         * tree.c (build_function_decl_skip_args): Fix grammar.
19243         (build_function_type_list_1): Fix typos, adjust formatting.
19245 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
19247         * tree.h: Include real.h and fixed-value.h as basic datatypes.
19248         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
19249         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
19250         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
19251         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
19252         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
19253         tree-pretty-print.c, tree-loop-distribution.c,
19254         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
19255         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
19256         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
19257         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
19258         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
19259         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
19260         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
19261         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
19262         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
19263         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
19264         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
19265         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
19266         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
19267         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
19268         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
19269         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
19270         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
19271         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
19272         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
19273         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
19274         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
19275         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
19276         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
19277         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
19278         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
19279         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
19280         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
19281         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
19282         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
19283         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
19284         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
19285         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
19286         config/score/score7.c, config/score/score.c, config/arm/arm.c,
19287         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
19288         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
19289         config/bfin/bfin.c: Clean up redundant includes.
19290         * Makefile.in: Update accordingly.
19292 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
19294         PR middle-end/44204
19295         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
19296         statement has no arguments.
19298 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
19300         PR/44139
19301         * varasm.c (emutls_decl): Merge attributes to new decl.
19303 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
19305         PR middle-end/44101
19306         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
19307         around the uniquized constructor if its type requires a conversion.
19309 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
19311         PR debug/44205
19312         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
19313         at -O0 goto_locus of any of the incoming edges differs from
19314         goto_locus of outgoing edge, or gimple_location of any of the
19315         labels differs.
19317 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
19319         * ira.c (ira_non_ordered_class_hard_regs): Define.
19320         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
19321         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
19322         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
19323         cost of unaligned hard regs when allocating multi-reg pseudos.
19325 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
19327         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
19328         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
19329         for TARGET_NO_FLOAT.
19330         * config/mips/mips.c (mips_file_start): Expand conditional expression
19331         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
19332         (mips_override_options): Move -mno-float override -msoft-float and
19333         -mhard-float.
19334         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
19335         Condition(TARGET_SUPPORTS_NO_FLOAT).
19336         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
19337         __mips_no_float here.
19338         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
19339         (TARGET_SUPPORTS_NO_FLOAT): Define.
19340         * config/mips/sdemtk.opt: Delete.
19342 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
19344         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
19346 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
19348         PR target/43733
19349         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
19350         * configure: Regenerate.
19351         * config.in: Regenerate.
19352         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
19353         instead of sahf only for 64bit targets.
19355 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19357         PR debug/44178
19358         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
19359         setup_ref_regs for DEBUG_INSNs.
19361 2010-05-20  Jan Hubicka  <jh@suse.cz>
19363         PR middle-end/44197
19364         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
19366 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
19368         PR bootstrap/43870
19369         * df-scan.c (df_ref_compare): Stabilize sort.
19371 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
19373         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
19374         argument.  Don't use DW_OP_piece if offset is non-zero,
19375         put offset into second DW_OP_bit_piece argument.
19376         (dw_sra_loc_expr): Adjust callers.  For memory expressions
19377         compute offset.
19379 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
19381         PR target/44202
19382         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
19383         settings for 16-bit-constant "addo" alternative.
19385 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
19387         * config/mips/mips-dsp.md (add<DSPV:mode>3,
19388         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
19390         PR target/43764
19391         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
19392         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
19393         Use it.
19395 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
19397         * diagnostic.c (FLOAT, FFS): Don't undefine.
19398         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
19399         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
19400         include ordering.
19402 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
19404         * combine.c (propagate_for_debug): Call make_compound_operation
19405         on the source value.
19406         (try_combine): When implementing a split chosen by find_split_point,
19407         either copy i2src or set it to null.  Assert that i2src is not null
19408         before substituting into CALL_INSN_FUNCTION_USAGE.
19410 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
19412         * double-int.h (double_int_ior): New function.
19413         * tree.h (build_int_cst_wide_type): Remove.
19414         * tree.c (build_int_cst_wide_type): Remove.
19415         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
19416         of build_int_cst_wide_type.
19417         * stor-layout.c (set_sizetype): (Ditto.).
19418         * dojump.c (do_jump): Use build_int_cstu instead of
19419         build_int_cst_wide_type.
19421 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
19423         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
19424         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
19425         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
19426         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
19427         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
19428         propagate the 'data' argument to copy_tree_r.
19429         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
19430         Propagate 'data' argument to walk_tree.
19431         (copy_if_shared): New function.
19432         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
19433         (unmark_visited): New function.
19434         (unshare_body): Call copy_if_shared instead of doing it manually.
19435         (unvisit_body): Call unmark_visited instead of doing it manually.
19437 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
19439         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
19440         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
19441         * hooks.c: Likewise.
19442         * target-def.h (TARGET_FOLD_BUILTIN): Define to
19443         hook_tree_tree_int_treep_bool_null.
19444         * target.h (struct gcc_target): Update signature of fold_builtin
19445         field.
19446         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
19447         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
19448         instead of the call expression.
19449         (fold_builtin_call_array): Pass n and argarray directly.
19450         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
19451         consing a list.
19452         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
19453         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
19454         `i' and use it in place of `arity'.
19455         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
19456         Dereference `args' directly.
19457         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
19459 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19461         * doc/sourcebuild.texi (Effective-Target Keywords): Document
19462         3dnow, sse3, sse2.
19463         (Directives): Document optional dg-require-effective-target
19464         selector.
19466 2010-05-19  Richard Guenther  <rguenther@suse.de>
19468         PR lto/44196
19469         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
19471 2010-05-19  Richard Guenther  <rguenther@suse.de>
19473         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
19474         * common.opt (fwhopr=): New.
19475         * opts.c (common_handle_option): Handle OPT_fwhopr.
19476         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
19477         * collect2.c (main): Match -fwhopr*.
19478         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
19479         Execute ltrans stage in parallel when jobs is bigger than 1.
19481 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19483         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
19484         pentiumpro on Solaris 8/x86 with Sun as.
19485         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
19486         hidden alias bug.
19487         (gcc_cv_as_ix86_quad): Check for .quad directive.
19488         * configure: Regenerate.
19489         * config.in: Regenerate.
19490         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
19492 2010-05-19  Martin Jambor  <mjambor@suse.cz>
19494         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
19495         also for indirect edges.  Actual printing moved...
19496         (ipa_print_node_jump_functions_for_edge): ...here.
19497         (ipa_compute_jump_functions): Renamed to
19498         ipa_compute_jump_functions_for_edge and made static.
19499         (ipa_compute_jump_functions): New function.
19500         (make_edge_direct_to_target): Check if the number of arguments on
19501         the newly direct edge is the same as the number of parametrs of
19502         the callee.
19503         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
19504         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
19505         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
19506         analysis functions unconditionally, call the new
19507         ipa_analyze_params_uses on the node instead of every edge.
19509 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
19511         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
19512         to tree.
19513         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
19514         also checks for a constant int vs.  non-constant but
19515         loop-invariant steps.
19516         (find_or_create_group): Change the sort algorithm to only consider
19517         steps that are constant ints.
19518         (idx_analyze_ref): Adopt code to handle a tree instead of a
19519         HOST_WIDE_INT for step.
19520         (gather_memory_references_ref): Handle tree instead of int and be
19521         prepared to see a NULL_TREE.
19522         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
19523         prefetches if the step cannot be calculated at compile time.
19524         (issue_prefetch_ref): Issue prefetches for non-constant but
19525         loop-invariant steps.
19527 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19529         Revert:
19530         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19532         * tree.h (build_call_list): Remove.
19533         * tree.c (build_call_list): Remove.
19535 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
19537         * tree.h (build_call_list): Remove.
19538         * tree.c (build_call_list): Remove.
19540 2010-05-18  Jan Hubicka  <jh@suse.cz>
19542         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
19544 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
19546         PR rtl-optimization/43332
19547         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
19549 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
19551         * tree.h (build_int_cstu): Implement as static inline.
19552         * tree.c (build_int_cstu): Remove function.
19553         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
19554         sign extended.
19556 2010-05-18  Richard Guenther  <rguenther@suse.de>
19558         PR lto/44143
19559         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
19560         (debug): Initialize from -save-temps.
19561         (collect_execute): Print command-line when verbose.
19562         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
19563         for ltrans invocation.  Produce -dumpbase flag again.
19564         (process_args): Remove.
19565         (main): Simplify.
19566         * collect2.c (maybe_run_lto_and_relink): Only pass object
19567         files to lto-wrapper.
19568         * gcc.c (LINK_COMMAND_SPEC): Likewise.
19570 2010-05-18  Jan Hubicka  <jh@suse.cz>
19572         * opts.c (decode_options): Do not disable whopr at ipa_cp.
19573         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
19575 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19577         PR lto/44184
19578         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
19579         in a GIMPLE_ASM.
19580         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
19581         in a GIMPLE_ASM.
19583 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
19585         PR debug/41371
19586         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
19587         rtx_equal_p inline.
19589 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
19591         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
19592         lto-macho as lto_binary_reader.
19594         * darwin.c (darwin_asm_named_section): Do not add assembler comment
19595         after .section directive; just print it before the directive instead.
19597 2010-05-17  Jan Hubicka  <jh@suse.cz>
19599         * cgraph.c (cgraph_create_virtual_clone): Only check
19600         versionable_function_p when not in wpa and checking is enabled.
19601         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
19602         there are no more functions to materialize.
19604 2010-05-17  Jan Hubicka  <jh@suse.cz>
19606         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
19607         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
19608         New functions.
19609         (output_cgraph): Call output_cgraph_opt_summary.
19610         (input_cgrpah): Call input_cgraph_opt_summary.
19611         (output_cgraph_opt_summary_p, output_node_opt_summary,
19612         input_node_opt_summary, input_cgraph_opt_section): New functions.
19613         * lto-section-in.c (lto_section_name): Add cgraphopt.
19614         * tree-inline.c (tree_function_versioning): Handle parm_num.
19615         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
19616         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
19618 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19620         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
19621         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
19622         the insn to prefetch ratio heuristic to loops with known trip count.
19624 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
19626         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
19627         (schedule_prefetches): Do not generate a prefetch if the unroll factor
19628         is far from what is required by the prefetch.
19630 2010-05-17  Jan Hubicka  <jh@suse.cz>
19632         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
19633         (ipcp_estimate_growth): Likewise.
19634         (ipcp_const_param_count): Likewise.
19635         (ipcp_insert_stage): Likewise.
19636         * ipa-prop.c (visit_load_for_mod_analysis): New function.
19637         (visit_store_addr_for_mod_analysis): Set used flag.
19638         (ipa_detect_param_modifications): Set used flag for SSE params;
19639         update use of walk_stmt_load_store_addr_ops.
19640         (ipa_print_node_params): Print used flag.
19641         (ipa_write_node_info): Stream used flag.
19642         (ipa_read_node_info): Likewise.
19643         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
19644         (ipa_is_param_used): New function.
19645         (lto_ipa_fixup_call_notes): Remove unused declaration.
19647 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19649         PR target/44074
19650         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
19651         * configure: Regenerate.
19652         * config.in: Regenerate.
19653         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
19654         !HAVE_AS_IX86_REP_LOCK_PREFIX.
19655         Don't emit whitespace.
19656         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
19657         (*rep_movsi): Likewise.
19658         (*rep_movsi_rex64): Likewise.
19659         (*rep_movqi): Likewise.
19660         (*rep_movqi_rex64): Likewise.
19661         (*rep_stosdi_rex64): Likewise.
19662         (*rep_stossi): Likewise.
19663         (*rep_stossi_rex64): Likewise.
19664         (*rep_stosqi): Likewise.
19665         (*rep_stosqi_rex64): Likewise.
19666         (*cmpstrnqi_nz_1): Use {%;} after repz.
19667         (*cmpstrnqi_nz_rex_1): Likewise.
19668         (*cmpstrnqi_1): Likewise.
19669         (*cmpstrnqi_rex_1): Likewise.
19670         (*strlenqi_1): Use {%;} after repnz.
19671         (*strlenqi_rex_1): Likewise.
19672         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
19673         (*sync_compare_and_swap<mode>): Likewise.
19674         (sync_double_compare_and_swap<mode>): Likewise.
19675         (*sync_double_compare_and_swapdi_pic): Likewise.
19676         (sync_old_add<mode>): Likewise.
19677         (sync_add<mode>): Likewise.
19678         (sync_sub<mode>): Likewise.
19679         (sync_<code><mode>): Likewise.
19681 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19683         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
19684         otr_token and polymorphic.
19685         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
19686         (cgraph_clone_edge): Copy the above fields.
19687         * tree.c (get_binfo_at_offset): New function.
19688         * tree.h (get_binfo_at_offset): Declare.
19689         * ipa-prop.h (enum jump_func_type): Added known_type jump function
19690         type, reordered items, updated comments.
19691         (union jump_func_value): Added base_type field, reordered fields.
19692         (enum ipa_lattice_type): Moved down in the file.
19693         (struct ipa_param_descriptor): New field polymorphic.
19694         (ipa_is_param_polymorphic): New function.
19695         * ipa-prop.c: Include gimple.h and gimple-fold.h.
19696         (ipa_print_node_jump_functions): Print known type jump functions.
19697         (compute_complex_pass_through): Renamed to...
19698         (compute_complex_assign_jump_func): this.
19699         (compute_complex_ancestor_jump_func): New function.
19700         (compute_known_type_jump_func): Likewise.
19701         (compute_scalar_jump_functions): Create known type and complex ancestor
19702         jump functions.
19703         (ipa_note_param_call): New parameter polymorphic, set the corresponding
19704         flag in the call note accordingly.
19705         (ipa_analyze_call_uses): Renamed to...
19706         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
19707         variable var only in the block where it is used.
19708         (ipa_analyze_virtual_call_uses): New function.
19709         (ipa_analyze_call_uses): Likewise.
19710         (combine_known_type_and_ancestor_jfs): Likewise.
19711         (update_jump_functions_after_inlining): Implemented handling of a
19712         number of new jump function types combination.
19713         (print_edge_addition_message): Removed.
19714         (make_edge_direct_to_target): New function.
19715         (try_make_edge_direct_simple_call): Likewise.
19716         (try_make_edge_direct_virtual_call): Likewise.
19717         (update_call_notes_after_inlining): Renamed to...
19718         (update_indirect_edges_after_inlining): this.  Moved edge creation for
19719         indirect calls to try_make_edge_direct_simple_call, also calls
19720         try_make_edge_direct_virtual_call for virtual calls.
19721         (ipa_print_node_params): Changed the header message.
19722         (ipa_write_jump_function): Stream also known type jump functions.
19723         (ipa_read_jump_function): Likewise.
19724         (ipa_write_indirect_edge_info): Stream new fields in
19725         cgraph_indirect_call_info.
19726         (ipa_read_indirect_edge_info): Likewise.
19727         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
19728         GIMPLE_FOLD_H.
19730 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19732         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
19734 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19736         * tree.h (CALL_EXPR_ARGS): Delete.
19737         (call_expr_arglist): Delete.
19738         * tree.c (call_expr_arglist): Delete.
19739         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
19740         targetm.fold_builtin.
19741         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
19742         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
19743         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
19744         arglist parameter.  Use CALL_EXPR_ARG.
19745         (picochip_expand_builtin_3op): Likewise.
19746         (picochip_expand_builtin_2opvoid): Likewise.
19747         (picochip_expand_array_get): Likewise.
19748         (picochip_expand_array_put): Likewise.
19749         (picochip_expand_array_testport): Likewise.
19750         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
19751         rather than arglist.
19752         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
19753         CALL_EXPR_ARGS.
19754         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
19755         than TREE_VALUE and TREE_CHAIN.
19756         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
19757         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
19758         the arglist.
19760 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19762         PR bootstrap/42347
19763         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
19764         to have no fallthru edge.
19766         PR middle-end/44102
19767         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
19768         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
19769         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
19770         add BARRIER after previous bb if needed.
19772 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
19774         * tree.c (build_function_type_list_1): Remove bogus assert condition.
19776 2010-05-17  Alan Modra  <amodra@gmail.com>
19778         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
19779         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
19780         with copy_reg rtx param.
19781         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
19782         Correct cases where code for ABI_V4 did not initialise the reg
19783         used to access frame.  Also leave frame_reg_rtx as sp for large
19784         frames that save no regs.
19786 2010-05-17  Martin Jambor  <mjambor@suse.cz>
19788         PR middle-end/44133
19789         * tree-sra.c (create_access_replacement): New parameter rename, mark
19790         the replaement for renaming only when it is true.
19791         (get_access_replacement): Pass true in the rename parameter of
19792         create_access_replacement.
19793         (get_unrenamed_access_replacement): New function.
19794         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
19795         replacement declaration from it.
19797 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
19799         * function.c (try_fit_stack_local, add_frame_space): New static
19800         functions.
19801         (assign_stack_local_1): Use them.  Look for opportunities to use
19802         space previously wasted on alignment.
19803         * function.h (struct frame_space): New.
19804         (struct rtl_data): Add FRAME_SPACE_LIST member.
19805         * reload1.c (something_was_spilled): New static variable.
19806         (alter_reg): Set it.
19807         (reload): Test it in addition to testing if the frame size changed.
19809 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
19811         * config/s390/s390.c: Define sane prefetch settings and activate
19812         flag_prefetch_loop_arrays on -O3.
19813         * config/s390/s390.h: Declare that read can use write prefetch.
19815 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
19817         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
19818         build.
19820 2010-05-16  Jan Hubicka  <jh@suse.cz>
19822         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
19823         function body; do not check stdarg field of struct function.
19825 2010-05-16  Jan Hubicka  <jh@suse.cz>
19827         * cgraph.c (dump_cgraph_node): Dump versionable flag.
19828         * cgraph.h (cgraph_local_info): Add versionable flag.
19829         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
19830         (ipcp_versionable_function_p): Use it.
19831         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
19832         versionable flag.
19834 2010-05-16  Jan Hubicka  <jh@suse.cz>
19836         * cgraph.c (cgraph_clone_node): Take decl argument and insert
19837         clone into hash when it is different from orig.
19838         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
19839         * cgraph.h (cgraph_clone_node): Update prototype.
19840         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
19841         (lto_cgraph_encoder_delete): Delete body map.
19842         (lto_cgraph_encoder_size): Move to header.
19843         (lto_cgraph_encoder_encode_body_p,
19844         lto_set_cgraph_encoder_encode_body): New.
19845         (lto_output_node): Do not take written_decls argument; output clone_of
19846         pointer.
19847         (add_node_to): Add include_body_argument; call
19848         lto_set_cgraph_encoder_encode_body on master of the clone.
19849         (add_references): Update use of add_node_to.
19850         (compute_ltrans_boundary): Likewise.
19851         (output_cgraph): Do not create written_decls bitmap.
19852         (input_node): Take nodes argument; stream in clone_of correctly.
19853         (input_cgraph_1): Update use of input_node.
19854         * lto-streamer-out.c (lto_output): Use encoder info to decide
19855         what bodies to output.
19856         * ipa-inline.c (cgraph_clone_inlined_nodes,
19857         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
19858         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
19859         (lto_cgraph_encoder_size): Define here.
19860         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
19861         Declare.
19863 2010-05-16  Richard Guenther  <rguenther@suse.de>
19865         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
19866         -fipa-type-escape.
19867         * ipa-type-escape.c (gate_type_escape_vars): Run when
19868         -fipa-struct-reorg runs.
19869         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
19870         * common.opt (fipa-type-escape): Remove.
19872 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19874         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
19875         (decode_options): Likewise.
19876         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
19878 2010-05-16  Jan Hubicka  <jh@suse.cz>
19880         * ipa.c (function_and_variable_visibility): Also bring local all
19881         aliases.
19883 2010-05-16  Richard Guenther  <rguenther@suse.de>
19885         * alias.c (nonoverlapping_memrefs_p): Remove use of
19886         IPA type-escape information.
19888 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
19890         * c-common.c (c_common_reswords): Add _Static_assert for C.
19891         * c-parser.c (c_token_starts_declaration,
19892         c_parser_next_token_starts_declaration,
19893         c_parser_static_assert_declaration_no_semi,
19894         c_parser_static_assert_declaration): New.
19895         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
19896         Handle static assertions if static_assert_ok.
19897         (c_parser_external_declaration, c_parser_declaration_or_fndef,
19898         c_parser_compound_statement_nostart, c_parser_label,
19899         c_parser_for_statement, c_parser_objc_methodprotolist,
19900         c_parser_omp_for_loop): All callers of
19901         c_parser_declaration_or_fndef changed.
19902         (c_parser_struct_declaration): Handle static assertions.
19903         (c_parser_compound_statement_nostart): Use
19904         c_parser_next_token_starts_declaration and
19905         c_token_starts_declaration to detect start of declarations.
19906         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
19907         Likewise.
19909 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
19911         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19912         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19913         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19914         TARGET_FUNCTION_VALUE_REGNO_P): Define.
19915         (mmix_function_outgoing_value): Rename to...
19916         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
19917         (mmix_function_value_regno_p): Make static.
19918         (mmix_libcall_value): New function.
19919         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
19920         mmix_function_value_regno_p): Remove declaration.
19922 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
19924         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
19925         BUILT_IN_ALLOCA if stack checking is enabled.
19927 2010-05-16  Richard Guenther  <rguenther@suse.de>
19929         * var-tracking.c (vars_copy_1): Inline ...
19930         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19931         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
19932         (variable_merge_over_cur): Adjust.  Merge asserts.
19933         (variable_merge_over_src): Likewise.
19934         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
19935         (variable_post_merge_new_vals): Merge asserts.
19936         (variable_post_merge_perm_vals): Likewise.
19937         (find_mem_expr_in_1pdv): Likewise.
19938         (dataflow_set_different_value): Remove.
19939         (onepart_variable_different_p): Merge asserts.
19940         (variable_different_p): Likewise.
19941         (dataflow_set_different_1): Inline ...
19942         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
19943         (emit_notes_for_differences_1): Merge asserts.
19945 2010-05-16  Richard Guenther  <rguenther@suse.de>
19947         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
19948         * optabs.c (libfunc_decl_hash): Likewise.
19949         * varasm.c (emutls_decl): Likewise.
19951 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
19953         * c-decl.c: Don't include gimple.h.
19954         (merge_decls): Do not copy gimple_body.
19956 2010-05-15  Jason Merrill  <jason@redhat.com>
19958         * c.opt: Add -fnothrow-opt.
19960 2010-05-15  Jan Hubicka  <jh@suse.cz>
19962         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
19963         analyzed.
19964         * passes.c (ipa_write_summaries): Write all analyzed nodes.
19966 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
19968         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
19969         * Makefile.in: Add it.
19970         Fix all other Makefile dependencies for changes below.
19971         * tree.h: Include it instead of defining VEC primitives here.
19972         * gimple.h: Likewise.
19973         * rtl.h: Likewise.
19974         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
19975         * except.h: Include vecir.h, break dependence on tree.h.
19977         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
19978         Move from here...
19979         * tree-iterator.c: ...to here.
19980         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
19982         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
19983         tm_p.h.
19984         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
19985         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
19986         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
19987         tree-mudflap.h, and target.h.
19988         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
19989         predict.h, tree-inline.h, gimple.h, and langhooks.h.
19990         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
19991         Add FIXME for why gimple.h is still included (should be unnecessary
19992         since GCC 4.5 gimplification unit-at-a-time).
19993         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
19994         * c-pragma.c: Add FIXME for why function.h needs to be included just
19995         for cfun, at front-end level.
19996         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
19997         Do not include ggc.h, but include vecprim.h for VEC(char).
19998         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
19999         Explain why target.h is included.
20000         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
20001         Explain why gimple.h is included.
20002         * c-ppoutput.c: Do not include tm.h.
20003         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
20004         * c-parses.c: Explain why rtl.h is included, and that this (and only
20005         this) is also why tm.h must be included.
20006         Do not include except.h.
20007         * c-lang.c: Do not include ggc.h.
20009 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
20011         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
20013 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
20015         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
20016         unions by default if those structs and unions have no tags.  Do
20017         not condition anonymous struct and unions handling on flag_iso.
20018         Allow anonymous structs and unions for C1X.
20019         (finish_struct): Do not diagnose lack of named fields when
20020         anonymous structs and unions present for C1X.  Accept flexible
20021         array members in structure with anonymous structs or unions but no
20022         directly named fields.
20023         * doc/extend.texi (Unnamed Fields): Update.
20025 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
20027         * gimple.h (compare_field_offset): Rename into...
20028         (gimple_compare_field_offset): ...this.
20029         * gimple.c (compare_field_offset): Rename into...
20030         (gimple_compare_field_offset): ...this.  Compare the full access if
20031         the offset is self-referential.
20032         (gimple_types_compatible_p): Adjust for above renaming.
20033         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
20034         DECL_NONADDRESSABLE_P flag of fields before merging them.
20036 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
20038         * tree.h (ctor_to_list): Delete.
20039         * tree.c (ctor_to_list): Delete.
20041 2010-05-15  Jan Hubicka  <jh@suse.cz>
20043         * ipa-reference.c: Include toplev.h
20044         (is_proper_for_analysis): Only add to all_module_statics
20045         if it is allocated.
20046         (write_node_summary_p, stream_out_bitmap,
20047         ipa_reference_write_optimization_summary,
20048         ipa_reference_read_optimization_summary): New.
20049         (struct ipa_opt_pass_d pass_ipa_reference): Add
20050         optimization summary streaming.
20051         * lto-cgraph.c (referenced_from_this_partition_p,
20052         reachable_from_this_partition_p): New functions.
20053         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
20054         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
20055         * opts.c (decode_options): Enable ipa_reference.
20056         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
20057         * lto-streamer.h (referenced_from_this_partition_p,
20058         reachable_from_this_partition_p): Declare.
20060 2010-05-15  Richard Guenther  <rguenther@suse.de>
20062         PR tree-optimization/44038
20063         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
20064         taking the address of a V_C_E of a constant.
20066 2010-05-14  Jan Hubicka  <jh@suse.cz>
20068         * tree.h (memory_identifier_string): Remove.
20069         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
20070         (ipa_reference_global_vars_info_d): Remove statics_not_read and
20071         statics_not_written.
20072         (ipa_reference_optimization_summary_d): New structure.
20073         (ipa_reference_optimization_summary_t): New type and vector.
20074         (ipa_reference_vars_info_d): Embedd structures instead of using
20075         pointers.
20076         (reference_vars_to_consider): Remove out of GGC space.
20077         (module_statics_escape): Remove.
20078         (global_info_obstack): Rename to ...
20079         (optimization_summary_obstack): ... this one.
20080         (initialization_status_t): Remove.
20081         (memory_identifier_string): Remove.
20082         (get_reference_vars_info): Fix indenting.
20083         (set_reference_vars_info): Likewise.
20084         (get_reference_optimization_summary): New.
20085         (set_reference_optimization_summary): New.
20086         (get_global_reference_vars_info): Remove.
20087         (ipa_reference_get_read_global): Remove.
20088         (ipa_reference_get_written_global): Remove.
20089         (ipa_reference_get_not_read_global): Update.
20090         (ipa_reference_get_not_written_global): Update.
20091         (is_proper_for_analysis): Outlaw addressable.
20092         (propagate_bits): Update for new datastructures.
20093         (analyze_variable): Remove.
20094         (init_function_info): Update for new datastructures.
20095         (clean_function_local_data): Remove.
20096         (clean_function): Remove.
20097         (copy_global_bitmap): Use optimizations_summary_obstack.
20098         (duplicate_node_data): Duplicate optimization summary only.
20099         (remove_node_data): Remove optimization summary only.
20100         (generate_summary): Do not analyze variables; do not compute
20101         module_statics_escape; do not prune solutions by it.
20102         (read_write_all_from_decl): Fix typos in comments.
20103         (propagate): Doscover readonly and nonaddressable first;
20104         update for new datastructures; share global bitmaps.
20105         * ipa-reference.h (ipa_reference_get_read_global,
20106         ipa_reference_get_written_global): Remove.
20107         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
20108         * Makefile.in: Remove ipa-refereference from GT files.
20110 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20112         PR debug/44112
20113         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
20114         for all SYMBOL_REF_DECLs.
20116 2010-05-14  Jan Hubicka  <jh@suse.cz>
20118         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
20119         (varpool_all_refs_explicit_p): New inline function.
20120         * ipa-reference.c: Update comment.
20121         (module_statics_written): Remove.
20122         (get_static_decl): Remove.
20123         (ipa_init): Do not initialize module_statics_written.
20124         (analyze_function): Likewise.
20125         (generate_summary): Likewise; do not compute module_statics_readonly
20126         and do not update variable flags.
20127         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
20128         * ipa.c: Inlucde flags.h
20129         (cgraph_local_node_p): New.
20130         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
20131         promote functions to local.
20132         (ipa_discover_readonly_nonaddressable_vars): New function.
20133         (function_and_variable_visibility): Use cgraph_local_node_p.
20134         * varpool.c (varpool_finalize_decl): Set force_output for
20135         DECL_PRESERVE_P vars.
20137 2010-05-14  Jan Hubicka  <jh@suse.cz>
20139         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
20141 2010-05-14  Richard Guenther  <rguenther@suse.de>
20143         PR tree-optimization/44119
20144         * tree-ssa-pre.c (eliminate): Properly mark replacement of
20145         a PHI node necessary.
20147 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
20149         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
20151 2010-05-14  Jason Merrill  <jason@redhat.com>
20153         PR c++/44127
20154         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
20155         (gimple_call_set_nothrow): New.
20156         * gimple.c (gimple_build_call_from_tree): Call it.
20157         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
20159         PR c++/44127
20160         * gimplify.c (gimplify_seq_add_stmt): No longer static.
20161         * gimple.h: Declare it.
20162         * gimple.c (gimple_build_eh_filter): No ops.
20164 2010-05-14  Jan Hubicka  <jh@suse.cz>
20166         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
20167         nodes already in queue.
20168         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
20169         re-enqueueing node.
20171 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
20173         PR debug/44136
20174         * cfgexpand.c (expand_debug_expr): If non-memory op0
20175         has BLKmode, return NULL.
20177 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
20179         * config.gcc: Add support for --with-cpu option for bdver1.
20180         * config/i386/i386.h (TARGET_BDVER1): New macro.
20181         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
20182         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20183         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
20184         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
20185         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
20186         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
20187         (processor_type): Add PROCESSOR_BDVER1.
20188         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
20189         processor_type in config/i386/i386.h.
20190         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
20191         movaps <reg, reg> instead of movapd <reg, reg> when replacing
20192         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
20193         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
20194         to emit packed xor instead of packed double/packed integer
20195         xor for SSE and AVX when moving a zero value.
20196         * config/i386/sse.md: Add check for
20197         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
20198         movapd/movdqa for SSE and AVX.
20199         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
20200         single logical operations i.e and, or and xor instead of packed double
20201         logical operations for SSE and AVX.
20202         * config/i386/i386-c.c (ix86_target_macros_internal):
20203         Add PROCESSOR_BDVER1.
20204         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
20205         (has_fma4, has_xop): New.
20206         * config/i386/i386.c (bdver1_cost): New variable.
20207         (m_BDVER1): New macro.
20208         (m_AMD_MULTIPLE): Add m_BDVER1.
20209         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
20210         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
20211         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
20212         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
20213         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
20214         x86_tune_sse_partial_reg_dependency,
20215         x86_tune_sse_unaligned_load_optimal,
20216         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
20217         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
20218         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
20219         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
20220         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
20221         Enable/disable for bdver1.
20222         (processor_target_table): Add bdver1_cost.
20223         (cpu_names): Add bdver1.
20224         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
20225          processor_alias_table.
20226         (ix86_expand_vector_move_misalign): Change.
20227         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
20228         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
20229         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
20230         of movupd/movdqu for SSE and AVX.
20231         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
20232         (ix86_tune_adjust_cost): Add code for bdver1.
20233         (standard_sse_constant_opcode): Add check for
20234         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
20235         of packed double xor for SSE and AVX.
20237 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
20239         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
20240         result to unsigned.
20242 2010-05-14  Tristan Gingold  <gingold@adacore.com>
20244         * toplev.c (default_debug_hooks): Remove this variable.
20245         (process_options): Remove assignments to default_debug_hooks.
20247 2010-05-14  Martin Jambor  <mjambor@suse.cz>
20249         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
20250         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
20251         * langhooks.h (struct lang_hooks_for_decls): Removed field
20252         fold_obj_type_ref.
20253         * tree.c (free_lang_data): Remove assignment to
20254         lang_hooks.fold_obj_type_ref.
20255         * tree.def (OBJ_TYPE_REF): Update comment.
20257 2010-05-14  Richard Guenther  <rguenther@suse.de>
20259         PR tree-optimization/44124
20260         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
20262 2010-05-14  Alan Modra  <amodra@gmail.com>
20264         PR target/44075
20265         * config/rs6000/rs6000.c (struct machine_function): Reorder
20266         fields for better packing.  Add lr_save_state.
20267         (rs6000_ra_ever_killed): Return lr_save_state if set.
20268         (rs6000_emit_eh_reg_restore): Set lr_save_state.
20270 2010-05-13  Jan Hubicka  <jh@suse.cz>
20272         * varpool.c (decide_is_variable_needed): Drop code checking
20273         TREE_SYMBOL_REFERENCED.
20275 2010-05-13  Jan Hubicka  <jh@suse.cz>
20277         * final.c (output_addr_const): Do not call mark_decl_referenced.
20278         * cgraphunit.c (process_function_and_variable_attributes): Use
20279         mark_needed_node dirrectly.
20280         (assemble_thunk): Do not call mark_decl_referenced.
20282 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
20284         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
20286 2010-05-13  Jeff Law  <law@redhat.com>
20288         * ira-conflicts.c (print_allocno_conflicts): New function broken out
20289         from...
20290         (print_conflicts): Call print_allocno_conflicts.
20292 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20294         PR debug/44104
20295         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
20296         if it is NULL.
20298 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
20300         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
20301         t-mingw-w64 or t-mingw-w32 for multilib configuration.
20302         * config/i386/t-mingw-w32: New.
20303         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
20305 2010-05-13  Martin Jambor  <mjambor@suse.cz>
20307         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
20308         gimple-fold.c).
20309         * gimple-fold.c (get_base_binfo_for_type): New function.
20310         (gimple_get_relevant_ref_binfo): Likewise.
20311         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20312         (gimple_fold_obj_type_ref): Likewise.
20313         (fold_gimple_call): Simplify condition for folding virtual calls
20314         and call gimple_fold_obj_type_ref.
20315         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
20316         (gimple_fold_obj_type_ref_known_binfo): Likewise.
20318 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
20320         * config/rs6000/rs6000-protos.h
20321         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
20322         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
20323         (rs6000_debug_mode_dependent_address)
20324         (rs6000_mode_dependent_address_ptr): Likewise.
20326 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
20328         PR debug/43983
20329         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
20330         by SRA.
20331         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
20332         * tree-sra.c (create_access_replacement): Call unshare_expr before
20333         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
20334         * dwarf2out.c: Include tree-flow.h.
20335         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
20336         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
20337         Handle DW_OP_bit_piece.
20338         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
20339         construct_piece_list, adjust_piece_list): New functions.
20340         (add_var_loc_to_decl): Handle SRA optimized variables.
20341         Adjust for var_loc_note to loc field renaming.
20342         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
20343         in VAR_LOCATION note.
20344         (new_loc_descr_op_bit_piece): New function.
20345         (dw_sra_loc_expr): New function.
20346         (dw_loc_list): Use it.  Don't handle the last range after the
20347         loop, handle it inside of the loop.  Adjust for var_loc_note
20348         to loc field renaming.
20349         (add_location_or_const_value_attribute): Only special case
20350         single entry loc lists if loc is NOTE_P.  Adjust for
20351         var_loc_note to loc field renaming.
20352         (dwarf2out_var_location): Don't set newloc->var_loc_note
20353         and newloc->next here.
20355 2010-05-12  Jan Hubicka  <jh@suse.cz>
20357         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
20358         flag.
20359         * cgraph.h (cgraph_only_called_directly_p,
20360         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
20361         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
20362         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
20363         (assemble
20364         * ipa.c (cgraph_remove_unreachable_nodes): Use
20365         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
20366         flags.
20367         * tree-inline.c (copy_bb): Check address_taken flag.
20368         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
20369         externally_visible flag.
20371 2010-05-12  Jason Merrill  <jason@redhat.com>
20373         PR bootstrap/44048
20374         PR target/44099
20375         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
20376         * sdbout.c (plain_type_1): Likewise.
20377         * dwarf2out.c (is_base_type): Likewise.
20378         (gen_type_die_with_usage): Likewise.  Generate
20379         DW_TAG_unspecified_type for any LANG_TYPE.
20381 2010-05-12  Jan Hubicka  <jh@suse.cz>
20383         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
20384         indrect edges too.
20385         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
20386         (cgraph_clone_edge): Update.
20387         (cgraph_node_remove_callees): Remove indirect calls too.
20388         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
20389         (cgraph_create_indirect_edge): Update prototype.
20390         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
20391         is_proper_for_analysis.
20392         (add_new_function, visited_nodes, function_insertion_hook_holder,
20393         get_local_reference_vars_info, mark_address_taken, mark_address,
20394         mark_load, mark_store, check_asm_memory_clobber, check_call,
20395         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
20396         (ipa_init): Do not initialize visited_nodes;
20397         function_insertion_hook_holder.
20398         (analyze_variable): Rewrite.
20399         (analyze_function): Rewrite.
20400         (copy_local_bitmap): Remove.
20401         (duplicate_node_dat): Do not duplicate local info.
20402         (generate_summary): Simplify to only walk cgraph.
20403         (write_node_summary_p, ipa_reference_write_summary,
20404         ipa_reference_read_summary): Remove.
20405         (propagate): Do not remove function insertion;
20406         generate summary.
20407         (pass_ipa_reference): NULLify summary handling fields.
20408         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
20409         (input_edge): Input ecf_flags.
20410         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
20411         (update_indirect_edges_after_inlining): Ignore edges with unknown
20412         param.
20414 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
20416         * implicit-zee.c: New file.
20417         * tree-pass.h (pass_implicit_zee): Declare.
20418         * passes.c (init_optimization_passes): Add zee pass.
20419         * common.opt (fzee): New flag.
20420         * timevar.def (TV_ZEE): Define.
20421         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
20422         and beyond.
20423         * Makefile.in (implicit-zee.o): Add new build file.
20425 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20426             Nathan Froyd  <froydnj@codesourcery.com>
20428         * c-common.c (sync_resolve_params): Remove write-only variable.
20430 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
20432         * target.h (struct gcc_target): Add mode_dependent_address_p field.
20433         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20434         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
20435         * targhooks.c (default_mode_dependent_address_p): New function.
20436         * targhooks.h (default_mode_dependent_address_p): Declare function.
20437         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
20438         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
20439         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
20440         target hook. Change return type to bool.
20441         * recog.h (mode_dependent_address_p): Change return type to bool.
20443 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20444             Nathan Froyd  <froydnj@codesourcery.com>
20446         * tree-mudflap.c (build_function_type_0, build_function_type_1,
20447         build_function_type_2, build_function_type_3): Remove.
20448         (mudflap_init): Use build_function_type_list.
20450 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
20451             Nathan Froyd  <froydnj@codesourcery.com>
20453         * coverage.c (build_fn_info_value): Call build_constructor instead of
20454         build_constructor_from_list.
20455         (build_ctr_info_value): Likewise.
20456         (build_gcov_info): Likewise.
20458 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
20460         * tree.c (build_constructor): Compute TREE_CONSTANT for the
20461         resultant constructor.
20462         (build_constructor_single): Don't set TREE_CONSTANT.
20463         (build_constructor_from_list): Don't compute TREE_CONSTANT.
20465 2010-05-12  Jan Hubicka  <jh@suse.cz>
20467         * cgraph.h (struct varpool_node): Add aux.
20468         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
20469         * varpool.c (varpool_remove_node): Do not remove initializer.
20470         (varpool_reset_queue): Export.
20471         (varpool_finalize_decl): Volatile vars are forced to be output.
20472         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
20473         replaced decl.
20474         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
20475         process_references, varpool_can_remove_if_no_refs): New functions.
20476         (cgraph_remove_unreachable_nodes): Handle variables too.
20478 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
20480         PR target/44088
20481         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
20483 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
20485         PR middle-end/44085
20486         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
20487         change value of ORT_TASK.
20488         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
20489         (omp_notice_threadprivate_variable): New function.
20490         (omp_notice_variable): Call it for threadprivate variables.
20491         If enclosing ctx is a task, print enclosing task rather than
20492         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
20493         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
20494         if task has untied clause.
20496         PR debug/42278
20497         * dwarf2out.c (base_type_die): Don't add name attribute here.
20498         (modified_type_die): Instead of sizetype use
20499         its underlying original type.  If a DW_TAG_base_type doesn't
20500         have name added, add __unknown__.
20501         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
20502         always call force_type_die instead.
20504 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
20506         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
20507         for __stack_chk_guard.
20509 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20511         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
20512         don't call start_source_file debug hook here...
20513         (finish_options): ... but here, after outputting predefined and
20514         command line defines and undefs.
20516         PR middle-end/44071
20517         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
20518         no fallthru edge.
20519         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
20520         optimizing away empty bb with no successors, move over its
20521         footer chain to fallthru predecessor.
20522         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
20523         (rtl_split_edge): For asm goto call patch_jump_insn even if
20524         splitting fallthru edge.
20526         PR c++/44059
20527         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
20528         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
20529         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
20530         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
20531         on DW.ref.* decls.
20533         PR c++/44062
20534         * c-parser.c (c_parser_expression): Mark LHS of a comma
20535         expression as read if it is a decl, handled component or
20536         COMPOUND_EXPR with that on the RHS.
20537         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
20538         if it is a decl or handled component.
20540 2010-05-11  Jan Hubicka  <jh@suse.cz>
20542         * lto-symtab.c (lto_symtab_free): New function.
20543         * lto-streamer.h (lto_symtab_free): Declare.
20545 2010-05-11  Jan Hubicka  <jh@suse.cz>
20547         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
20548         that if function is needed it is reachable.
20549         (lto_output_node): See if it the function is reachable or referenced.
20550         (output_cgraph): Update call of lto_output_node.
20551         * lto-streamer.h (reachable_from_other_partition_p): Declare.
20553 2010-05-11  Jan Hubicka  <jh@suse.cz>
20555         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
20556         Mark as used.
20558 2010-05-11  Jan Hubicka  <jh@suse.cz>
20560         PR tree-optimize/44063
20561         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
20562         queue.
20563         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
20564         limits.
20565         (estimate_function_body_sizes): Compute sizes even when disregarding.
20567 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
20569         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
20571 2010-05-11  Jan Hubicka  <jh@suse.cz>
20573         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
20574         into every boundary.
20576 2010-05-11  Jan Hubicka  <jh@suse.cz>
20578         * matrix-reorg.c (matrix_reorg): Rebuild edges.
20580 2010-05-11  Jan Hubicka  <jh@suse.cz>
20582         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
20583         lto_streamer_cache_delete): Put nodes into heap.
20584         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
20585         heap.
20587 2010-05-11  Jan Hubicka  <jh@suse.cz>
20589         * cgraphbuild.c (cgraph_rebuild_references): New.
20590         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
20591         out extern inlines.
20592         * cgraph.h (cgraph_rebuild_references): Declare.
20593         * tree-inline.c (tree_function_versioning): Use it.
20594         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
20596 2010-05-11  Jan Hubicka  <jh@suse.cz>
20598         * cgraph.c: Include ipa-utils.h
20599         (cgraph_create_virtual_clone): Update references.
20600         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
20602 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20604         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
20605         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
20606         cache size.
20608 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
20610         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
20612 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
20614         * gcc.c (execute): For -### don't quote arguments that
20615         contain just alphanumerics and _/-. characters.
20616         * doc/invoke.texi: Document that change for -###.
20618         PR debug/44023
20619         * df-problems.c (struct dead_debug): Add to_rescan field.
20620         (dead_debug_init): Clear to_rescan field.
20621         (dead_debug_finish): Rescan all debug insns in to_rescan
20622         bitmap and free the bitmap.
20623         (dead_debug_insert_before): Instead of rescanning debug insns
20624         immediately queue their rescanning until dead_debug_finish.
20625         (df_note_bb_compute): After dead_debug_add do continue instead
20626         of break.
20628 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
20630         PR debug/44028
20631         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
20632         clear also INSN_REG_USE_LIST.
20634 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20636         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
20638 2010-05-10  Jan Hubicka  <jh@suse.cz>
20640         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
20641         commited change.
20643 2010-05-10  Jan Hubicka  <jh@suse.cz>
20645         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
20646         Allocate encoders.
20647         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
20648         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
20649         (lto_streamer_cache_create): Init alloc pool.
20650         (lto_streamer_cache_delete): Free alloc pool.
20651         * lto-streamer.h: Include alloc pool.
20652         (lto_streamer_cache_d): Use alloc pool.
20653         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
20655 2010-05-10  Jan Hubicka  <jh@suse.cz>
20657         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
20658         * cgraphbuild.c: Include except.h
20659         (record_type_list, record_eh_tables): New function.
20660         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
20662 2010-05-10  Jan Hubicka  <jh@suse.cz>
20664         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
20665         __frame_dummy_init_array_entry, force_to_data): Attribute as used
20666         rather than unused.
20668 2010-05-10  Michael Matz  <matz@suse.de>
20670         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
20671         (can_reassociate_p): Use FLOAT_TYPE_P.
20672         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
20673         (vect_force_simple_reduction): ... this.
20674         * tree-parloops.c (gather_scalar_reductions): Use
20675         vect_force_simple_reduction.
20676         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
20677         vect_is_simple_reduction, add modify argument, if true rewrite
20678         "a-b" into "a+(-b)".
20679         (vect_is_simple_reduction, vect_force_simple_reduction): New
20680         functions.
20681         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
20683 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
20684             Vladimir Makarov  <vmakarov@redhat.com>
20686         PR rtl-optimization/44012
20687         * ira-build.c (remove_unnecessary_allocnos): Nullify
20688         regno_allocno_map of the removed allocno.
20690 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20692         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
20693         to /dev/null.
20694         * configure: Regenerate.
20696 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20698         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
20699         unused.
20700         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
20701         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
20702         support in Sun ld.
20703         * configure: Regenerate.
20705 2010-05-10  Richard Guenther  <rguenther@suse.de>
20707         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
20708         marked if the entry identifier is marked.
20710 2010-05-10  Richard Guenther  <rguenther@suse.de>
20712         * c-common.c (struct c_common_attributes): Add fnspec attribute.
20713         (handle_fnspec_attribute): New function.
20714         * gimple.h (gimple_call_return_flags): Declare.
20715         (gimple_call_arg_flags): Likewise.
20716         * gimple.c (gimple_call_arg_flags): New function.
20717         (gimple_call_return_flags): Likewise.
20718         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
20719         New argument flags.
20720         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
20721         return value flags.
20722         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
20723         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
20724         main work to ...
20725         (make_heapvar_for): ... this new function.
20726         (handle_rhs_call): Handle fnspec attribute argument specifiers.
20727         (handle_lhs_call): Likewise.
20728         (find_func_aliases): Adjust.
20730 2010-05-10  Richard Guenther  <rguenther@suse.de>
20732         PR tree-optimization/44050
20733         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
20735 2010-05-10  Wei Guozhi  <carrot@google.com>
20737         PR target/42879
20738         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
20740 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20742         PR c/10676
20743         * c-typeck.c (lookup_field): Take a type directly.  Update
20744         recursive calls.
20745         (build_component_ref): Update call to lookup_field.
20746         (set_init_label): Use lookup_field to find initialized field.
20747         Handle returned list of fields like a sequence of designators.
20749 2010-05-09  Richard Guenther  <rguenther@suse.de>
20751         PR middle-end/44024
20752         * fold-const.c (tree_single_nonzero_warnv_p): Properly
20753         handle &FUNCTION_DECL.
20755 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
20757         PR c/4784
20758         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
20759         structures and unions recursively.
20760         (detect_field_duplicates): Move duplicate detection with a hash to
20761         detect_field_duplicates_hash.  Always use a hash if anonymous
20762         structures or unions are present.
20763         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
20764         give errors.
20766 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
20768         PR target/44046
20769         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
20770         detect Atom, Core 2 and Core i7.
20772 2010-05-09  Richard Guenther  <rguenther@suse.de>
20774         * gcc.c (store_arg): Handle temporary file deletion for
20775         joined arguments.
20777 2010-05-09  Richard Guenther  <rguenther@suse.de>
20779         PR middle-end/44043
20780         * ipa-inline.c (estimate_function_body_sizes): Return after
20781         disregarding inline limits.
20783 2010-05-09  Richard Guenther  <rguenther@suse.de>
20785         * gcc.c (store_arg): Revert last change.
20787 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
20789         PR middle-end/28685
20790         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
20791         (optimize_ops_list): Call it.
20793 2010-05-08  Richard Guenther  <rguenther@suse.de>
20795         PR tree-optimization/44030
20796         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
20797         NECESSARY flag if we propagate from a inserted expression.
20799 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
20801         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
20802         domain types as equal if they are both PLACEHOLDER_EXPRs.
20804 2010-05-08  Richard Guenther  <rguenther@suse.de>
20806         * lto-wrapper.c (run_gcc): Remove linker output from
20807         command line for LTRANS invocation.
20809 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20811         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
20812         lto-macho as lto_binary_reader.
20813         * target.h (struct gcc_target): New hooks lto_start and lto_end.
20814         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
20815         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
20816         in lto_start and lto_end calls.
20817         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
20818         magic numbers.
20819         (scan_prog_file): Update is_elf_or_coff call.
20820         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
20822         * collect2.c (main): Fix enum comparison.
20824         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
20825         Add prototypes.
20826         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
20827         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
20828         and TARGET_ASM_LTO_END.
20829         * darwin.c: Include obstack.h and lto-streamer.h.
20830         (lto_section_names_offset, lto_section_names_obstack,
20831         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
20832         global variables.
20833         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
20834         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
20835         to a temporary file.
20836         (darwin_asm_lto_end): New function.  Restore asm_out_file.
20837         (darwin_asm_named_section): For LTO sections, replace the name with
20838         the offset of the section name in a string table, and build this
20839         table.
20840         (darwin_file_start): Initialize global vars for LTO support.
20841         (darwin_file_end): If output to asm_out_file was redirected, append it
20842         to the proper asm_out_file here.  Add the section names section.
20844 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
20846         * c-pragma.c (pending_weak_d, pending_weak): New.
20847         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
20848         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
20849         handle_pragma_weak): Update the uses of pending_weaks.
20851 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20853         PR documentation/44016
20854         * doc/standards.texi (Standards): Link to unversioned
20855         cxx0x_status.html page.
20857 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
20859         PR target/43708
20860         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
20861         in addition to TREE_USED, to avoid "set but unused" warnings.
20863 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20865         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
20866         (is_loop_prefetching_profitable): Do not insert prefetches
20867         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
20868         times the prefetch ahead distance.
20870 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20872         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
20873         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
20874         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
20875         the unroll_factor.
20877 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
20879         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
20880         a diagnostic info when the insn-to-mem ratio is too small.
20882 2010-05-07  Richard Guenther  <rguenther@suse.de>
20884         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
20885         the linker plugin.
20886         (store_arg): Queue temp_filename for deletion instead of
20887         the whole argument.
20889 2010-05-07  Richard Guenther  <rguenther@suse.de>
20891         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
20892         (run_gcc): Handle LTRANS phase invocation.
20893         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
20895 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
20897         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
20898         this is also meaningful on PARM_DECLs and RESULT_DECLs.
20900 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20902         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
20904 2010-05-07  Richard Guenther  <rguenther@suse.de>
20906         PR tree-optimization/44020
20907         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
20908         code when PRE is not yet initialized.
20910 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20912         * config/mips/dbxmdebug.h: Remove.
20913         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
20915 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
20917         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
20918         with null pointer and also warn about ordered comparison of zero with
20919         pointer if -Wextra.
20921 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20923         * graphite-blocking.c
20924         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
20925         * graphite-clast-to-gimple.c
20926         (clast_to_gcc_expression): Same.
20927         (precision_for_value): Same.
20928         (precision_for_interval): Same.
20929         (gcc_type_for_interval): Same.
20930         (graphite_create_new_guard): Same.
20931         (compute_bounds_for_level): Same.
20932         (graphite_create_new_loop_guard): Same.
20933         * graphite-interchange.c
20934         (build_linearized_memory_access): Same.
20935         (pdr_stride_in_loop): Same.
20936         (memory_strides_in_loop_1): Same.
20937         (memory_strides_in_loop): Same.
20938         (extend_scattering): Same.
20939         (psct_scattering_dim_for_loop_depth): Same.
20940         (pbb_number_of_iterations): Same.
20941         * graphite-poly.h
20942         (debug_iteration_domains): Same.
20943         * graphite-ppl.c
20944         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
20945         (ppl_set_inhomogeneous_gmp): Same.
20946         (ppl_strip_loop): Same.
20947         (ppl_lexico_compare_linear_expressions): Same.
20948         (ppl_read_polyhedron_matrix): Same.
20949         (ppl_max_for_le_pointset): Same.
20950         * graphite-ppl.h
20951         (ppl_read_polyhedron_matrix): Same.
20952         (tree_int_to_gmp): Same.
20953         (gmp_cst_to_tree): Same.
20954         (ppl_set_inhomogeneous): Same.
20955         (ppl_set_inhomogeneous_tree): Same.
20956         (ppl_set_coef): Same.
20957         (ppl_set_coef_tree): Same.
20958         * graphite-sese-to-poly.c
20959         (build_pbb_scattering_polyhedrons): Same.
20960         (build_scop_scattering): Same.
20961         (scan_tree_for_params_right_scev): Same.
20962         (scan_tree_for_params): Same.
20963         (find_params_in_bb): Same.
20964         (find_scop_parameters): Same.
20965         (add_upper_bounds_from_estimated_nit): Same.
20966         (build_loop_iteration_domains): Same.
20967         (add_condition_to_domain): Same.
20968         (pdr_add_memory_accesses): Same.
20970 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
20972         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
20973         CLooG's value_* macros to their respective mpz_* counterparts.
20974         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
20975         (graphite_create_new_loop_guard): Same.
20976         * graphite-interchange.c (build_linearized_memory_access): Same.
20977         (pdr_stride_in_loop): Same.
20978         (memory_strides_in_loop_1): Same.
20979         (1st_interchange_profitable_p): Same.
20980         * graphite-poly.c (extend_scattering): Same.
20981         (psct_scattering_dim_for_loop_depth): Same.
20982         (pbb_number_of_iterations): Same.
20983         (pbb_number_of_iterations_at_time): Same.
20984         * graphite-poly.h (new_1st_loop): Same.
20985         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
20986         (oppose_constraint): Same.
20987         (insert_constraint_into_matrix): Same.
20988         (ppl_set_inhomogeneous_gmp): Same.
20989         (ppl_set_coef_gmp): Same.
20990         (ppl_strip_loop): Same.
20991         (ppl_lexico_compare_linear_expressions): Same.
20992         (ppl_max_for_le_pointset): Same.
20993         (ppl_min_for_le_pointset): Same.
20994         (ppl_build_realtion): Same.
20995         * graphite-ppl.h (gmp_cst_to_tree): Same.
20996         (ppl_set_inhomogeneous): Same.
20997         (ppl_set_inhomogeneous_tree): Same.
20998         (ppl_set_coef): Same.
20999         (ppl_set_coef_tree): Same.
21000         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
21001         (build_scop_scattering): Same.
21002         (add_value_to_dim): Same.
21003         (scan_tree_for_params_right_scev): Same.
21004         (scan_tree_for_params_int): Same.
21005         (scan_tree_for_params): Same.
21006         (find_params_in_bb): Same.
21007         (find_scop_parameters): Same.
21008         (add_upper_bounds_from_estimated_nit): Same.
21009         (build_loop_iteration_domains): Same.
21010         (create_linear_expr_from_tree): Same.
21011         (add_condition_to_domain): Same.
21012         (pdr_add_memory_accesses): Same.
21014 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
21015             Jason Merrill  <jason@redhat.com>
21017         * c-common.c (c_common_reswords): Add nullptr.
21018         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
21019         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
21020         (gen_type_die_with_usage): Likewise.
21021         * dbxout.c (dbxout_type): Likewise.
21022         * sdbout.c (plain_type_1): Likewise.
21024 2010-05-06  Jason Merrill  <jason@redhat.com>
21026         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
21027         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
21028         ret appropriately.
21029         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
21031         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
21032         stripping WITH_SIZE_EXPR.
21033         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
21034         change.
21036 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21038         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
21039         list of obsolete configurations.
21040         Disabled check for obsolete configurations.
21041         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
21042         Removed support for previous versions.
21043         * config/mips/iris.h: Removed.
21044         * config/mips/iris5.h: Removed.
21045         * config/mips/iris6.h: Merged old iris.h contents.
21046         (TARGET_IRIX): Removed.
21047         (DRIVER_SELF_SPECS): Removed mabi=32.
21048         (IDENT_ASM_OP): Removed undef.
21049         (STARTFILE_SPEC): Removed mabi=32.
21050         (ENDFILE_SPEC): Likewise.
21051         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
21052         (MACHINE_TYPE): Update for IRIX 6.5.
21053         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
21054         TARGET_IRIX by TARGET_IRIX6.
21055         (mips_file_start): Likewise.
21056         (mips_output_external): Remove IRIX 5/6 O32 support.
21057         (mips_output_function_prologue): Likewise.
21058         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
21059         TARGET_IRIX6.
21060         (TARGET_CPU_CPP_BUILTINS): Likewise.
21061         (TARGET_IRIX): Removed.
21062         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
21063         (MULTILIB_DIRNAMES): Removed 32.
21064         (MULTILIB_OSDIRNAMES): Removed ../lib.
21065         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
21066         (Specific, mips-sgi-irix5): Document removal.
21067         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
21068         Remove references to older IRIX 6 releases and the O32 ABI.
21070 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
21072         PR bootstrap/43994
21073         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
21074         instead of DF_REF_REAL_REG.
21076 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
21078         PR target/43888
21079         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
21080         handling to still return true for x64 targets.
21082 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21084         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
21086 2010-05-06  Jan Hubicka  <jh@suse.cz>
21088         PR tree-optimization/43791
21089         * ipa-inline.c (update_caller_keys): Remove bogus
21090         disregard_inline_limits check.
21092 2010-05-06  Michael Matz  <matz@suse.de>
21094         PR tree-optimization/43984
21095         * tree-ssa-pre.c (inserted_phi_names): Remove.
21096         (inserted_exprs): Change to bitmap.
21097         (create_expression_by_pieces): Set bits, don't append to vector.
21098         (insert_into_preds_of_block): Don't handle inserted_phi_names.
21099         (eliminate): Don't look at inserted_phi_names, remove deleted
21100         insns from inserted_exprs.
21101         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
21102         (init_pre, fini_pre): Allocate and free bitmaps.
21103         (execute_pre): Insert insns on edges before elimination.
21105 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
21107         * tree.c (initializer_zerop): Handle STRING_CST.
21109 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21111         PR 40989
21112         * doc/invoke.texi (Wimplicit): Document as C only.
21113         * opts.c (common_handle_option): Add argument kind.
21114         (handle_option): Rename as read_cmdline_option. Factor out code to...
21115         (handle_option): ... here. New.
21116         (handle_options): Rename as read_cmdline_options.
21117         (decode_options): Update call.
21118         (set_option): Use option index instead of option pointer. Classify
21119         diagnostics correctly.
21120         (enable_warning_as_error): Call handle_option.
21121         * opts.h (set_option): Update declaration.
21122         (handle_option): Declare.
21123         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
21124         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
21125         * c-opts.c (set_Wimplicit): Delete.
21126         (c_family_lang_mask): New static constant.
21127         (c_common_handle_option): Add argument kind. Use handle_option
21128         instead of set_Wimplicit.
21129         (c_common_post_options): warn_implicit and warn_implicit_int
21130         are disabled by default.
21131         * c-common.c (warn_implicit): Do not define here.
21132         * c-common.h (warn_implicit): Do not declare here.
21133         (c_common_handle_option): Update declaration.
21134         * lto-opts.c (lto_reissue_options): Update call to set_option.
21136 2010-05-06  Richard Guenther  <rguenther@suse.de>
21138         PR tree-optimization/43571
21139         * domwalk.c (walk_dominator_tree): Walk the dominator
21140         sons in more optimal order.
21142 2010-05-06  Richard Guenther  <rguenther@suse.de>
21144         PR tree-optimization/43934
21145         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
21146         (stmt_cost): Likewise.
21147         (extract_true_false_args_from_phi): New helper.
21148         (determine_max_movement): For PHI nodes verify we can hoist them
21149         and compute their cost.
21150         (determine_invariantness_stmt): Handle PHI nodes.
21151         (move_computations_stmt): Likewise.  Hoist PHI nodes in
21152         if-converted form using COND_EXPRs.
21153         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
21154         (tree_ssa_lim): Likewise.
21155         * tree-flow.h (tree_ssa_lim): Adjust prototype.
21156         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
21158 2010-05-06  Richard Guenther  <rguenther@suse.de>
21160         PR tree-optimization/43987
21161         * tree-ssa-structalias.c (could_have_pointers): For possibly
21162         address-taken variables force pointers to be recorded.
21163         (create_variable_info_for_1): Likewise.
21164         (push_fields_onto_fieldstack): Pass in wheter all fields
21165         must have pointers.
21166         (find_func_aliases): Query types instead of vars whether
21167         they contain pointers where appropriate.
21169 2010-05-06  Jan Hubicka  <jh@suse.cz>
21171         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
21172         (record_reference, mark_address, mark_load, mark_store): Record
21173         references.
21174         (record_references_in_initializer): Update call of record_references.
21175         (rebuild_cgraph_edges): Remove all references before rebuiding.
21176         * cgraph.c (cgraph_create_node): Clear ref list.
21177         (cgraph_remove_node): Remove references.
21178         (dump_cgraph_node): Dump references.
21179         (cgraph_clone_node): Clone references.
21180         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
21181         (struct cgraph_node, varpool_node): Add ref_lst.
21182         * ipa-ref.c: New file.
21183         * ipa-ref.h: New file.
21184         * ipa-ref-inline.h: New file.
21185         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
21186         (referenced_from_other_partition_p): New function.
21187         (lto_output_varpool_node): Take set arugment; call
21188         referenced_from_other_partition.
21189         (lto_output_ref): New.
21190         (add_references): New.
21191         (output_refs): New.
21192         (output_cgraph): Compute boundary based on references; output refs.
21193         (output_varpool): Accept cgraph_node_set argument.
21194         (input_ref): New.
21195         (input_refs): New.
21196         (input_cgraph): Call input_refs.
21197         * lto-section-in.c (lto_section_name): Add refs.
21198         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
21199         (ipa-ref.o): New file.
21200         * varpool.c (varpool_node): Clear ipa ref list.
21201         (varpool_remove_node): Remove references.
21202         (dump_varpool_node): Dump references.
21203         (varpool_assemble_decl): Only compile finalized ones.
21204         (varpool_extra_name_alias): Initialize ref list.
21205         * lto-streamer.c (lto-get_section_name): Add .refs section.
21206         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
21207         (referenced_from_other_partition_p): Declared.
21209 2010-05-06  Ira Rosen  <irar@il.ibm.com>
21211         PR tree-optimization/43901
21212         * tree-vect-stmts.c (vectorizable_call): Assert that vector
21213         type is not NULL if it's transformation phase, and return
21214         FALSE if it's analysis.
21215         (vectorizable_conversion, vectorizable_operation,
21216         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
21218 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
21220         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21221         Delete.
21222         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
21223         New define.
21224         * config/mips/mips-protos.h
21225         (mips_small_register_classes_for_mode_p): Delete prototype.
21227 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
21229         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
21230         * config/arm/arm.c (multiple_operation_profitable_p,
21231         compute_offset_order): New static functions.
21232         (load_multiple_sequence, store_multiple_sequence): Use them.
21233         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
21234         memory offsets, not register numbers.
21235         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
21237 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
21239         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
21240         (get_pending_sizes, put_pending_size, put_pending_sizes):
21241         Update the uses of pending_sizes.
21242         * c-decl.c (store_parm_decls): Likewise.
21243         * c-tree.h (struct c_arg_info): Likewise.
21244         * tree.h: Update the prototype for get_pending_sizes and
21245         put_pending_sizes.
21247 2010-05-05  Jason Merrill  <jason@redhat.com>
21249         PR debug/43370
21250         * c-common.c (handle_aligned_attribute): Respect
21251         ATTR_FLAG_TYPE_IN_PLACE.
21253         PR testsuite/43758
21254         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
21255         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21256         (TARGET_INITIALIZER): Use it.
21257         * c-common.c (attribute_takes_identifier_p): Call it.
21258         * c-common.h: Update prototype.
21259         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
21260         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
21262 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21264         PR debug/43950
21265         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
21266         DW_ID_down_case for Fortran compilation units.
21268 2010-05-05  Jan Hubicka  <jh@suse.cz>
21270         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
21271         handle aliases.
21273 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
21275         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
21276         a variable-sized RESULT_DECL.
21278 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
21280         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
21282 2010-05-05  Jason Merrill  <jason@redhat.com>
21284         PR c++/43787
21285         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
21286         returns GS_OK.
21287         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
21289 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
21290             Jakub Jelinek  <jakub@redhat.com>
21292         PR debug/43478
21293         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
21294         (dead_debug_init, dead_debug_finish): New functions.
21295         (dead_debug_add, dead_debug_insert_before): Likewise.
21296         (df_note_bb_compute): Initialize a dead_debug object, add dead
21297         debug uses to it, insert debug bind insns before death insns,
21298         reset debug insns that refer to pending uses at the end.
21299         * rtl.h (make_debug_expr_from_rtl): New prototype.
21300         * varasm.c (make_debug_expr_from_rtl): New function.
21302 2010-05-05  Jan Hubicka  <jh@suse.cz>
21304         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
21305         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
21306         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
21307         lto_varpool_encoder_deref, lto_varpool_encoder_size,
21308         lto_varpool_encoder_encode_initializer_p,
21309         lto_set_varpool_encoder_encode_initializer): New functions.
21310         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
21311         call output_varpool.
21312         (input_varpool_node): Do not always set analyzed.
21313         (input_cgraph_1): Return vector of cgraph nodes.
21314         (input_varpool_1): Return vector of varpools.
21315         (input_cgraph): Free the vectors.
21316         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21317         output only initializers needed.
21318         (lto_output): Only call output_cgraph.
21319         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
21320         * lto-section-out.c (lto_new_out_decl_state): Initialize
21321         state->varpool_node_encoder.
21322         * lto-streamer.h (lto_varpool_encoder_d): New.
21323         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
21324         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
21325         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
21326         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
21327         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
21328         Declare.
21329         (output_varpool, input_varpool): Remove declarations.
21331 2010-05-05  Jan Hubicka  <jh@suse.cz>
21333         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
21334         with body can prevail.
21336 2010-05-05  Jan Hubicka  <jh@suse.cz>
21338         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
21339         size.
21341 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
21343         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
21345         * gengtype.h (erro_at_line): Constify pos argument.
21347         * gengtype.c: Include hashtab.h.
21348         (enum gc_used): Document GC_MAYBE_POINTED_TO.
21349         (error_at_line): Constify pos argument.
21350         (do_typedef): Initialize p->opt field.
21351         (get_file_gtfilename): Fix comment typo.
21352         (struct walk_type_data): Constify line field.
21353         (get_output_file_for_structure): New function.
21354         (write_local_func_for_structure): Constify orig_s argument.
21355         Use get_output_file_for_structure.
21356         (write_func_for_structure): Use get_output_file_for_structure.
21357         (INDENT): New define.
21358         (dump_pair, dump_type, dump_type_list, dump_typekind)
21359         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
21360         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
21361         functions.
21362         (seen_types): New variable.
21363         (main): New variable do_dump.  Process "-d" command line option.
21364         Call dump_everything if dump requested.
21366 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
21368         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
21369         in a temporary instead of invoking the macro multiple times.
21370         (track_expr_p): Likewise.
21372 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
21374         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
21375         per new semantics.
21376         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
21377         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
21378         conditions for printing notes.
21379         * common.opt (-Wcoverage-mismatch): Allow negative, default to
21380         true, update documentation.
21381         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
21383 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
21385         PR c/43981
21386         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
21387         on dimen.
21389 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21391         PR target/43799
21392         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
21393         (*sse_prologue_save_insn1): Likewise.
21394         (SSE prologue save splitter): Likewise.
21396 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
21398         * tree.c (free_lang_data_in_one_sizepos): New inline function.
21399         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
21400         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
21401         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
21402         all decls.  Call it on DECL_FIELD_OFFSET of fields.
21403         (find_decls_types_r): Follow DECL_VALUE_EXPR.
21404         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
21406 2010-05-04  Martin Jambor  <mjambor@suse.cz>
21408         * tree-sra.c (build_access_from_expr_1): The first parameter type
21409         changed to simple tree.
21410         (build_access_from_expr): Likewise, gsi parameter was eliminated.
21411         (scan_assign_result): Renamed to assignment_mod_result, enum elements
21412         renamed as well.
21413         (build_accesses_from_assign): Removed all parameters except for a
21414         simple gimple statement.  Now returns a simple bool.
21415         (scan_function): All non-analysis parts moved to separate functions
21416         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
21417         parameters and updated both callers.
21418         (sra_modify_expr): Removed parameter data.
21419         (sra_modify_function_body): New function.
21420         (perform_intra_sra): Call sra_modify_function_body to modify the
21421         function body.
21422         (replace_removed_params_ssa_names): Parameter data changed into
21423         adjustments vector.
21424         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
21425         changed the parameter dont_convert to convert with the opposite
21426         meaning.
21427         (sra_ipa_modify_assign): Parameter data changed into adjustments
21428         vector, return value changed to bool.
21429         (ipa_sra_modify_function_body): New function.
21430         (sra_ipa_reset_debug_stmts): Updated a comment.
21431         (modify_function): Use ipa_sra_modify_function_body to modify function
21432         body.
21434 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
21436         PR middle-end/43671
21437         * alias.c (true_dependence): Handle the same VALUE in x and mem.
21438         (canon_true_dependence): Likewise.
21439         (write_dependence_p): Likewise.
21441 2010-05-04  Jan Hubicka  <jh@suse.cz>
21443         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
21444         * cgraphbuild.c: Include ipa-utils.h
21445         (record_reference_ctx): New struct.
21446         (record_reference): Simplify to work on initializers; not statements.
21447         (mark_address, mark_load, mark_store): New.
21448         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21449         walk PHI nodes too.
21450         (record_references_in_initializer): Update use of record_reference.
21451         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
21452         walk PHI nodes too.
21454 2010-05-04  Jan Hubicka  <jh@suse.cz>
21456         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
21457         node will be removed anyway.
21458         (lto_varpool_replace_node): Allow also unanalyzed nodes;
21459         relink aliases of node into prevailing node.
21460         * varpool.c (varpool_remove_node): Remove aliases properly;
21461         when removing node, remove all its aliases too; remove DECL_INITIAL
21462         of removed node; ggc_free the varpool node.
21464 2010-05-04  Richard Guenther  <rguenther@suse.de>
21466         PR tree-optimization/43879
21467         * tree-ssa-structalias.c (alias_get_name): Use
21468         DECL_ASSEMBLER_NAME if available.
21469         (create_function_info_for): Return the varinfo node.
21470         (ipa_pta_execute): Associate same-body aliases and extra names
21471         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
21473 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
21475         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
21477 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
21479         PR bootstrap/43964
21480         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
21481         only if HONOR_REG_ALLOC_ORDER is not defined.
21483 2010-05-04  Richard Guenther  <rguenther@suse.de>
21485         PR tree-optimization/43949
21486         * tree-vrp.c (extract_range_from_binary_expr): Only handle
21487         TRUNC_MOD_EXPR.
21489 2010-04-26  Jason Merrill  <jason@redhat.com>
21491         * c.opt (-fstrict-enums): New.
21492         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
21494 2010-05-03  David Ung  <davidu@mips.com>
21495             James E. Wilson  <wilson@codesourcery.com>
21497         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
21498         emit the trap instruction before the divide for TUNE_74K.
21500 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
21502         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
21503         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
21504         based on the above, for new target hook.
21506         * hooks.c (hook_bool_mode_true): New generic hook.
21507         * hooks.h (hook_bool_mode_true): Add prototype.
21509         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
21510         target hook.
21511         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
21512         target hook, set to hook_bool_mode_false.
21513         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
21514         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
21515         with targetm.small_register_classes_for_mode_p.
21516         (find_reusable_reload): Likewise.
21517         (combine_reloads): Likewise.
21518         * reload1.c (reload_as_needed): Likewise.
21519         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
21520         * ifcvt.c (noce_process_if_block, check_cond_move_block,
21521         dead_or_predicable): Likewise.
21522         * regmove.c (optimize_reg_copy_1): Likewise.
21523         * calls.c (prepare_call_address): Likewise.
21524         (precompute_register_parameters): Likewise.
21526         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
21527         hook definition.
21528         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
21529         implementation of the hook that considers all register classes
21530         small except for SH64.
21531         (sh_override_options): Use the new hook.
21532         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
21533         Add prototype.
21535         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
21536         hook definition.
21537         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
21538         implementation of the hook that considers all register classes
21539         small for THUMB1.
21540         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
21541         Add prototype.
21543         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
21544         hook definition.
21545         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
21546         implementation of the hook that considers all register classes
21547         small for MIPS16.
21548         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
21549         Add prototype.
21551         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
21552         hook definition.
21553         * config/m32c/m32c.h: Likewise.
21554         * config/pdp11/pdp11.h: Likewise.
21555         * config/avr/avr.h: Likewise.
21556         * config/xtensa/xtensa.h: Likewise.
21557         * config/m68hc11/m68hc11.h: Likewise.
21558         * config/mn10300/mn10300.h: Likewise.
21559         * config/mcore/mcore.h: Likewise.
21560         * config/h8300/h8300.h: Likewise.
21561         * config/bfin/bfin.h: Likewise.
21563         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
21564         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
21566 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
21568         * double-int.h (tree_to_double_int): Remove macro.
21569         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
21570         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21571         (tree_to_double_int): New function.
21572         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
21573         Move ...
21574         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
21576 2010-05-03  Richard Guenther  <rguenther@suse.de>
21578         PR tree-optimization/43971
21579         * tree-ssa-structalias.c (get_constraint_for_1): Fix
21580         constraints in the !flag_delete_null_pointer_checks case.
21582 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
21584         PR debug/43972
21585         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
21586         result mode matches original rtl mode.
21588 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
21590         PR target/43888
21591         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
21593 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21595         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
21596         when processing flag options.
21598 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21600         * gcov-iov.c (main): Change format string placeholder
21601         from %#08x to 0x%08x.
21602         * genchecksum.c (dosum): Change format string placeholder
21603         from %#02x to 0x%02x.
21605 2010-05-02  Richard Guenther  <rguenther@suse.de>
21607         PR tree-optimization/43879
21608         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
21610 2010-05-02  Bruno Haible  <bruno@clisp.org>
21612         * doc/extend.texi (Function Attributes): Fix a typo.
21614 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21616         Revert:
21617         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
21618         placeholder from 0x%x to %#x.
21619         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21620         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
21621         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
21622         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
21623         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
21624         * config/i386/i386.c (ix86_target_string): Ditto.
21625         * config/i386/i386.c (output_pic_addr_const): Ditto.
21626         (print_operand): Ditto.
21628 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
21630         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
21631         placeholder from 0x%x to %#x.
21632         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
21633         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
21634         (ASM_OUTPUT_DEBUG_DATA): Ditto.
21635         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
21636         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
21637         * optc-gen.awk: Ditto.
21638         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
21639         (HOST_WIDE_INT_PRINT_HEX): Ditto.
21640         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
21641         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
21643 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21645         * target.h (struct calls): Add function_value_regno_p field.
21646         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
21647         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
21648         * targhooks.c (default_function_value_regno_p): New function.
21649         * targhooks.h (default_function_value_regno_p): Declare function.
21650         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
21651         * builtins.c. (apply_result_size): (Ditto.).
21652         * combine.c. (likely_spilled_retval_p): (Ditto.).
21653         * mode-switching.c. Include 'target.h'.
21654         (create_pre_exit): Use function_value_regno_p hook.
21655         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
21656         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
21657         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
21659         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
21660         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
21661         (ix86_function_value_regno_p): Declare as static, change argument
21662         type to const unsigned int.
21663         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
21665 2010-05-01  Richard Guenther  <rguenther@suse.de>
21667         PR tree-optimization/43949
21668         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
21669         types.
21670         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
21672 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
21674         * rtl.h (CONST_DOUBLE_P): Define.
21675         (rtx_to_double_int): Declare.
21676         * emit-rtl.c (rtx_to_double_int): New function.
21677         * dwarf2out.c (insert_double): New function.
21678         (loc_descriptor, add_const_value_attribute): Clean up, use
21679         rtx_to_double_int and insert_double functions.
21681 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
21683         * doc/extend.texi (Inline): Add missing return keyword to examples.
21684         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
21685         "command-line".
21687 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
21689         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
21690         the variable part of the offset as well.  Use highest_pow2_factor for
21691         all alignment checks.
21693 2010-04-30  Richard Guenther  <rguenther@suse.de>
21695         PR tree-optimization/43879
21696         * tree-ssa-structalias.c (type_could_have_pointers): Functions
21697         can have pointers.
21699 2010-04-30  Jan Hubicka  <jh@suse.cz>
21701         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
21702         varpool.
21703         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
21705 2010-04-30  Jan Hubicka  <jh@suse.cz>
21707         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
21708         New.
21709         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
21710         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
21711         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
21712         cgraph_node_set_needs_ltrans_p): Remove.
21714 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21716         * sdbout.c: Include vec.h, do not include varray.h.
21717         (deferred_global_decls, sdbout_global_decl,
21718         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
21719         * toplev.c: Do not include varray.h.
21720         (dump_memory_report): Do not dump VARRAY statistics.
21721         * gengtype.c (open_base_file): Ignore varray.h.
21722         * Makefile.in: Update for abovementioned changes.
21723         Remove all traces of varray.c and varray.h.
21724         * varray.c: Remove file.
21725         * varray.h: Remove file.
21727 2010-04-30  Jan Hubicka  <jh@suse.cz>
21729         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
21730         references.
21732 2010-04-30  Jan Hubicka  <jh@suse.cz>
21734         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
21735         needed.
21737 2010-04-30  Richard Guenther  <rguenther@suse.de>
21739         * tree-ssa-structalias.c (get_constraint_for_1): Generate
21740         constraints for CONSTRUCTOR.
21742 2010-04-30  Richard Guenther  <rguenther@suse.de>
21744         PR lto/43946
21745         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
21746         first after all lowering passes.
21748 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
21750         * toplev.c: Include varray.h for statistics dumping.
21751         * tree.h: Do not declare varray_head_tag.
21752         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
21753         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
21754         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
21755         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
21756         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
21757         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
21758         c-common.c, c-common.h, reg-stack.c, basic-block.h,
21759         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
21760         include varray.h.
21761         * Makefile.in: Update for abovementioned changes.
21763 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
21765         PR debug/43942
21766         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
21768 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
21770         * config/picochip/picochip.c (picochip_legitimize_address): Define.
21771         Use this function to do machine-specific conversion.
21772         (picochip_legitimize_reload_address): Likewise.
21773         (picochip_legitimate_address_p): Check valid base register only if
21774         strict.
21775         (picochip_check_conditional_copy): Check for modw only if opnd is
21776         register.
21777         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
21778         to call the function in c.
21779         * config/picochip/picochip-protos.h
21780         (picochip_legitimize_reload_address): Define.
21781         * config/picochip/picochip.md (supported_compare1): Define.
21783 2010-04-30  Jan Hubicka  <jh@suse.cz>
21785         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
21786         (cgraph_global_info): Remove inlined.
21787         (LTO_cgraph_tag_names): Remove.
21788         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
21789         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
21790         simplify cgraph tags and document.
21791         (lto_output_node): Use only LTO_cgraph_unavail_node and
21792         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
21793         for_functions_valid, global info, process and output flags.
21794         (input_overwrite_node): Initialize estimated stack size and
21795         estimated growth.  Do not read flags we no longer store.
21796         (input_node): Likewise do not read info no longer stored.
21797         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
21798         flag.
21800 2010-04-30  Richard Guenther  <rguenther@suse.de>
21802         PR tree-optimization/43879
21803         * tree-ssa-structalias.c (get_constraint_for_1): Properly
21804         handle non-zero initializers.
21806 2010-04-30  Richard Guenther  <rguenther@suse.de>
21808         * builtins.c (fold_builtin_1): Delete free (0).
21810 2010-04-29  Jan Hubicka  <jh@suse.cz>
21812         * gengtype.c (open_base_files): Add lto-streamer.h
21813         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
21814         (pass_ipa_cp): GGC collect.
21815         * toplev. (compile_file): Do not output symbols.
21816         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
21817         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
21818         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
21819         * lto-section-in.c: Include ggc.h
21820         (lto_new_in_decl_state): Alloc in GGC.
21821         (lto_delete_in_decl_state): Likewise.
21822         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
21823         Collect.
21825 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21827         PR target/42895
21828         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
21829         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
21830         (HONOR_REG_ALLOC_ORDER): Describe new macro.
21831         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
21832         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
21833         account only if HONOR_REG_ALLOC_ORDER is not defined.
21834         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
21835         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
21837 2010-04-29  Jon Grant  <04@jguk.org>
21839         * collect2.c (vflag): Change type from int to bool.
21840         (debug): Likewise.
21841         (helpflag): New global bool.
21842         (main): Set vflag and debug with boolean, not integer truth values.
21843         Accept new "--help" option and output usage text if found.
21844         * collect2.h (vflag): Update prototype.
21845         (debug): Likewise.
21847 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21849         PR bootstrap/43936
21850         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
21852 2010-04-29  Richard Guenther  <rguenther@suse.de>
21854         PR bootstrap/43935
21855         * plugin.h (invoke_plugin_callbacks): Annotate arguments
21856         with ATTRIBUTE_UNUSED.
21858 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
21860         PR target/43921
21861         * config/i386/i386.c (get_some_local_dynamic_name): Replace
21862         INSN_P with NONDEBUG_INSN_P.
21863         (distance_non_agu_define): Likewise.
21864         (distance_agu_use): Likewise.
21866 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
21868         From Dominique d'Humieres  <dominiq@lps.ens.fr>
21869         PR bootstrap/43858
21870         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
21871         test_set.
21873 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
21875         * plugin.h (invoke_plugin_callbacks): New inline function.
21876         * plugin.c (flag_plugin_added): New global flag.
21877         (add_new_plugin): Initialize above flag.
21878         (invoke_plugin_callbacks): Rename to ...
21879         (invoke_plugin_callbacks_full): ... this.
21881 2010-04-28  Jan Hubicka  <jh@suse.cz>
21883         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
21884         (lto_varpool_replace_node): New.
21885         (lto_symtab_resolve_symbols): Resolve varpool nodes.
21886         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
21887         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
21888         * cgraph.h (varpool_node_ptr): New type.
21889         (varpool_node_ptr): New vector.
21890         (varpool_node_set_def): New structure.
21891         (varpool_node_set): New type.
21892         (varpool_node_set): New vector.
21893         (varpool_node_set_element_def): New structure.
21894         (varpool_node_set_element, const_varpool_node_set_element): New types.
21895         (varpool_node_set_iterator): New type.
21896         (varpool_node): Add prev pointers, add used_from_other_partition,
21897         in_other_partition.
21898         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
21899         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
21900         varpool_get_node, varpool_remove_node): Declare.
21901         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
21902         varpool_node_set_size): New inlines.
21903         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
21904         * tree-pass.h (varpool_node_set_def): Forward declare.
21905         (ipa_opt_pass_d): Summary writting takes vnode sets too.
21906         (ipa_write_optimization_summaries): Update prototype.
21907         * ipa-cp.c (ipcp_write_summary): Update.
21908         * ipa-reference.c (ipa_reference_write_summary): Update.
21909         * lto-cgraph.c (lto_output_varpool_node): New static function.
21910         (output_varpool): New function.
21911         (input_varpool_node): New static function.
21912         (input_varpool_1): New function.
21913         (input_cgraph): Input varpool.
21914         * ipa-pure-const.c (pure_const_write_summary): Update.
21915         * lto-streamer-out.c (lto_output): Update, output varpool too.
21916         (write_global_stream): Kill WPA hack.
21917         (produce_asm_for_decls): Update.
21918         (output_alias_pair_p): Handle variables.
21919         (output_unreferenced_globals): Output only needed partition of varpool.
21920         * ipa-inline.c (inline_write_summary): Update.
21921         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
21922         cgraph.
21923         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
21924         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
21925         varpool_node_set_new, varpool_node_set_add,
21926         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
21927         debug_varpool_node_set): New functions.
21928         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
21929         (execute_one_pass): Process new decls too.
21930         (ipa_write_summaries_2): Pass around vsets.
21931         (ipa_write_summaries_1): Likewise.
21932         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
21933         to add.
21934         (ipa_write_optimization_summaries_1): Pass around vsets.
21935         (ipa_write_optimization_summaries): Likewise.
21936         * varpool.c (varpool_get_node): New.
21937         (varpool_node): Update doubly linked lists.
21938         (varpool_remove_node): New.
21939         (dump_varpool_node): More dumping.
21940         (varpool_enqueue_needed_node): Update doubly linked lists.
21941         (decide_is_variable_needed): Kill ltrans hack.
21942         (varpool_finalize_decl): Kill lto hack.
21943         (varpool_assemble_decl): Skip decls in other partitions.
21944         (varpool_assemble_pending_decls): Update doubly linkes lists.
21945         (varpool_empty_needed_queue): Likewise.
21946         (varpool_extra_name_alias): Likewise.
21947         * lto-streamer.c (lto_get_section_name): Add vars section.
21948         * lto-streamer.h (lto_section_type): Update.
21949         (output_varpool, input_varpool): Declare.
21951 2010-04-28  Mike Stump  <mikestump@comcast.net>
21953         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
21955 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21957         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
21958         record or union type with RECORD_OR_UNION_TYPE_P predicate.
21959         (lto_input_ts_type_tree_pointers): Likewise.
21960         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
21961         (lto_output_ts_type_tree_pointers): Likewise.
21963 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21965         Uniquization of constants at the Tree level
21966         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
21967         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
21968         bit to the end.
21969         (tree_output_constant_def): Declare.
21970         * gimplify.c (gimplify_init_constructor): When using block copy, first
21971         uniquize the constant constructor on the RHS.
21972         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
21973         DECL_IN_CONSTANT_POOL flag.
21974         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
21975         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
21976         constant pool.
21977         (assemble_variable): Deal with symbols belonging to the tree constant
21978         pool.
21979         (get_constant_section): Add ALIGN parameter and simplify.
21980         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
21981         (assemble_constant_contents): Use the expression of the VAR_DECL.
21982         (output_constant_def_contents): Use the alignment of the VAR_DECL.
21983         (tree_output_constant_def): New global function.
21984         (mark_constant): Use the expression of the VAR_DECL.
21985         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
21986         its expression.
21987         (output_object_block): Likewise and assemble the expression.
21989 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
21991         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
21992         hash_tree, eq_tree): New tree hash table.
21993         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
21994         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
21995         lto_orig_address_remove): Reimplement.
21997 2010-04-28  Xinliang David Li  <davidxl@google.com>
21999         PR c/42643
22000         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
22001         (compute_uninit_opnds_pos): New function.
22002         (is_non_loop_exit_postdominating): New function.
22003         (compute_control_dep_chain): New function.
22004         (find_pdom): New function.
22005         (convert_control_dep_chain_into_preds): New function.
22006         (find_predicates): New function.
22007         (find_control_equiv_block): New function.
22008         (collect_phi_def_edges): New function.
22009         (find_def_preds): New function.
22010         (find_dom): New function.
22011         (dump_predicates): New function.
22012         (get_cmp_code): New function.
22013         (is_value_included_in): New function.
22014         (find_matching_predicate_in_rest_chains): New function.
22015         (use_pred_not_overlap_with_undef_path_pred): New function.
22016         (is_use_properly_guarded): New function.
22017         (normalize_cond_1): New function.
22018         (is_and_or_or): New function.
22019         (normalize_cond): New function.
22020         (is_gcond_subset_of): New function.
22021         (is_subset_of_any): New function.
22022         (is_or_set_subset_of): New function.
22023         (is_and_set_subset_of): New function.
22024         (is_norm_cond_subset_of): New function.
22025         (is_pred_expr_subset_of): New function.
22026         (is_pred_chain_subset_of): New function.
22027         (is_included_in): New function.
22028         (is_superset_of): New function.
22029         (find_uninit_use): New function.
22030         (warn_uninitialized_phi): New function.
22031         (compute_possibly_undefined_names): New function.
22032         (ssa_undefined_value_p): New function.
22033         (execute_late_warn_uninitialized): New function.
22034         * tree-ssa.c (ssa_undefined_value_p): Removed.
22035         (warn_uninit): Changed to extern.
22036         (warn_uninitialized_phi): Removed.
22037         (warn_uninitialized_vars): Changed to extern.
22038         (execute_late_warn_uninitialized): Removed
22039         * tree-flow.h: Add new prototypes.
22040         * timevar.def: Add new time variable.
22041         * Makefile.in: Add new build file.
22043 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
22045         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
22046         type if available.
22048 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22050         PR target/22224
22051         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
22053 2010-04-28  Martin Jambor  <mjambor@suse.cz>
22055         * cgraph.h (struct cgraph_node): New field indirect_calls.
22056         (struct cgraph_indirect_call_info): New type.
22057         (struct cgraph_edge): Removed field indirect_call. New fields
22058         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
22059         (cgraph_create_indirect_edge): Declare.
22060         (cgraph_make_edge_direct): Likewise.
22061         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
22062         * ipa-prop.h (struct ipa_param_call_note): Removed.
22063         (struct ipa_node_params): Removed field param_calls.
22064         (ipa_create_all_structures_for_iinln): Declare.
22065         * cgraph.c: Described indirect edges and uids in initial comment.
22066         (cgraph_add_edge_to_call_site_hash): New function.
22067         (cgraph_edge): Search also among the indirect edges, use
22068         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
22069         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
22070         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
22071         site hash.
22072         (initialize_inline_failed): Assign a reason to indirect edges.
22073         (cgraph_create_edge_1): New function.
22074         (cgraph_create_edge): Moved some functionality to
22075         cgraph_create_edge_1.
22076         (cgraph_create_indirect_edge): New function.
22077         (cgraph_edge_remove_callee): Add an assert checking for
22078         non-indirectness.
22079         (cgraph_edge_remove_caller): Special-case indirect edges.
22080         (cgraph_remove_edge): Likewise.
22081         (cgraph_set_edge_callee): New function.
22082         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
22083         (cgraph_make_edge_direct): New function.
22084         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
22085         the declaration of the call statement matches.
22086         (cgraph_node_remove_callees): Special-case indirect edges.
22087         (cgraph_clone_edge): Likewise.
22088         (cgraph_clone_node): Clone also the indirect edges.
22089         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
22090         indirect_call, dump count of indirect_calls edges.
22091         * ipa-prop.c (iinlining_processed_edges): New variable.
22092         (ipa_note_param_call): Create indirect edges instead of
22093         creating notes.  New parameter node.
22094         (ipa_analyze_call_uses): New parameter node, pass it on to
22095         ipa_note_param_call.
22096         (ipa_analyze_stmt_uses): Likewise.
22097         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
22098         (print_edge_addition_message): Work on edges rather than on notes.
22099         (update_call_notes_after_inlining): Likewise, renamed to
22100         update_indirect_edges_after_inlining.
22101         (ipa_create_all_structures_for_iinln): New function.
22102         (ipa_free_node_params_substructures): Do not free notes.
22103         (ipa_edge_duplication_hook): Propagate bits within
22104         iinlining_processed_edges bitmap.
22105         (ipa_node_duplication_hook): Do not duplicate notes.
22106         (free_all_ipa_structures_after_ipa_cp): Renamed to
22107         ipa_free_all_structures_after_ipa_cp.
22108         (free_all_ipa_structures_after_iinln): Renamed to
22109         ipa_free_all_structures_after_iinln.
22110         (ipa_write_param_call_note): Removed.
22111         (ipa_read_param_call_note): Removed.
22112         (ipa_write_indirect_edge_info): New function.
22113         (ipa_read_indirect_edge_info): Likewise.
22114         (ipa_write_node_info): Do not stream notes, do stream information
22115         in indirect edges.
22116         (ipa_read_node_info): Likewise.
22117         (lto_ipa_fixup_call_notes): Removed.
22118         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
22119         * ipa-inline.c (pass_ipa_inline): Likewise.
22120         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
22121         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
22122         * tree-inline.c (copy_bb): Removed an unnecessary double check for
22123         is_gimple_call.
22124         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
22125         edges.
22126         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
22127         (output_cgraph): Stream also indirect edges.
22128         (lto_output_edge): Added capability to stream indirect edges.
22129         (input_edge): Likewise.
22130         (input_cgraph_1): Likewise.
22131         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
22132         of indirect edges.
22134 2010-04-28  Richard Guenther  <rguenther@suse.de>
22136         PR tree-optimization/43879
22137         PR tree-optimization/43909
22138         * tree-ssa-structalias.c (struct variable_info): Add
22139         only_restrict_pointers flag.
22140         (new_var_info): Initialize it.  Increment stats.total_vars here.
22141         (create_function_info_for): Do not increment stats.total_vars here.
22142         (get_function_part_constraint): Fix build with C++.
22143         (insert_into_field_list): Remove.
22144         (push_fields_onto_fieldstack): Properly merge fields.
22145         (create_variable_info_for): Split and simplify.
22146         (create_variable_info_for_1): New piece.
22147         (intra_create_variable_infos): Properly make restrict constraints
22148         from parameters.
22150 2010-04-28  Richard Guenther  <rguenther@suse.de>
22152         PR c++/43880
22153         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
22155 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22156             Jan Hubicka  <hubicka@ucw.cz>
22158         * doc/invoke.texi (-Wsuggest-attribute=const,
22159         -Wsuggest-attribute=pure): Document.
22160         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
22161         (function_always_visible_to_compiler_p,
22162         suggest_attribute, warn_function_pure, warn_function_const):
22163         New functions.
22164         (check_call): Improve debug info.
22165         (analyze_function): Do not check availability.
22166         (add_new_function): Check availability.
22167         (propagate): Output warnings.
22168         (skip_function_for_local_pure_const): New function.
22169         (local_pure_const): Use it; output warnings.
22170         * common.opt (Wsuggest-attribute=const,
22171         Wsuggest-attribute=pure): New.
22173 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
22175         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
22176         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
22177         or DW_CFA_def_cfa_offset{,_sf}.
22179 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22181         * tree.h: Fix truncated long macros.
22183 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
22185         * collect2.c (TARGET_64BIT): Redefine to target's default.
22186         * tlink.c: Likewise.
22187         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
22188         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
22189         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
22190         for underscoring __USER_LABEL_PREFIX__.
22191         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
22192         (SUB_LINK_ENTRY32): New.
22193         (SUB_LINK_ENTRY64): New.
22194         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
22195         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
22196         (SUB_LINK_ENTRY64): New.
22197         (SUB_LINK_ENTRY): New.
22198         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
22199         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
22200         x64 target is choosen.
22201         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
22202         * configure: Regenerated.
22203         * configure.ac (leading-mingw64-underscores): Option added.
22205 2010-04-27  Jan Hubicka  <jh@suse.cz>
22207         * doc/invoke.texi (-fipa-profile): Document.
22208         * opts.c (decode_options): Enable ipa-profile at -O1.
22209         * timevar.def (TV_IPA_PROFILE): Define.
22210         * common.opt (fipa-profile): Add.
22211         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
22212         flag for clones.
22213         (cgraph_propagate_frequency): Handle only local ones.
22214         * tree-pass.h (pass_ipa_profile): Declare.
22215         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
22216         (pass_ipa_profile): Use TV_IPA_PROFILE.
22217         * ipa.c (ipa_profile): New function.
22218         (gate_ipa_profile): Likewise.
22219         (pass_ipa_profile): New global variable.
22220         * passes.c (pass_ipa_profile): New.
22222 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
22224         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
22226 2010-04-27  Martin Jambor  <mjambor@suse.cz>
22228         PR middle-end/43812
22229         * ipa.c (dissolve_same_comdat_group_list): New function.
22230         (function_and_variable_visibility): Call
22231         dissolve_same_comdat_group_list when comdat group contains external or
22232         newly local nodes.
22233         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
22234         lists are circular and that they contain only DECL_ONE_ONLY nodes.
22236 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
22238         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
22239         (const_hash_1) <VECTOR_CST>: New case.
22240         (compare_constant) <VECTOR_CST>: Likewise.
22241         <ADDR_EXPR>: Deal with LABEL_REFs.
22242         (copy_constant) <VECTOR_CST>: New case.
22244 2010-04-27  Jan Hubicka  <jh@suse.cz>
22246         * cgraph.c (cgraph_propagate_frequency): New function.
22247         * cgraph.h (cgraph_propagate_frequency): Declare.
22248         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
22249         cgraph_propagate_frequency.
22251 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
22253         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
22255 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
22257         PR target/40657
22258         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
22259         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
22260         here to determine which regs to push and how much stack to reserve.
22262 2010-04-27  Jie Zhang  <jie@codesourcery.com>
22264         * doc/gimple.texi (gimple_statement_with_ops): Remove
22265         addresses_taken field.
22266         (gimple_statement_with_memory_ops): Likewise.
22268 2010-04-27  Jan Hubicka  <jh@suse.cz>
22270         * tree-inline.c (eni_inlining_weights): Remove.
22271         (estimate_num_insns): Special case more builtins.
22273 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
22275         PR c/32207
22276         * c-typeck.c (build_binary_op): Move forward check for comparison
22277         pointer with null pointer constant and adjust the diagnostic message.
22279 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
22281         PR lto/42776
22282         * configure.ac (gcc_cv_as_section_has_align): Set if installed
22283         binutils supports extended .section directive needed by LTO, or
22284         warn if older binutils found.
22285         (LTO_BINARY_READER): New AC_SUBST'd variable.
22286         (LTO_USE_LIBELF): Likewise.
22287         * config.gcc (lto_binary_reader): New target-specific configure
22288         variable.
22289         * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
22290         (LTO_USE_LIBELF): Likewise.
22291         * configure: Regenerate.
22293         * collect2.c (is_elf): Rename from this ...
22294         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
22295          object files in addition to ELF-formatted ones.
22296         (scan_prog_file): Caller updated.  Also allow for LTO info marker
22297         symbol to be prefixed or not by an extra underscore.
22299         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
22300         * config/i386/winnt.c: Also #include lto-streamer.h
22301         (i386_pe_asm_named_section): Specify 1-byte section alignment for
22302         LTO named sections.
22303         (i386_pe_asm_output_aligned_decl_common): Add comment.
22304         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
22306 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
22308         PR target/43889
22309         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
22310         Add missing earlyclobber for second alternative.
22312 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
22314         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
22315         bits for artificial defs at the top of the block.
22316         * fwprop.c (single_def_use_enter_block): Don't call it.
22318 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
22320         PR 43715
22321         * configure.ac: Use "$gcc_cv_nm -g" on darwin
22322         instead of "$gcc_cv_objdump -T".
22323         Use "-undefined dynamic_lookup" on darwin.
22324         * configure: Regenerate.
22326 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
22328         PR c/43893
22329         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
22331 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22333         * c-parser.c (struct c_token): Move location field up.
22334         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
22335         (struct c_declspecs): Convert typespec_word, storage_class, and
22336         default_int_p into bitfields.
22337         (struct c_declarator): Move loc field up.
22339 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
22341         * cfgloop.h (struct loop): Move can_be_parallel field up.
22342         * ipa-prop.h (struct ip_node_params): Move bitfields up.
22343         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
22344         down.
22345         (struct iv_cand): Convert pos field into a bitfield.
22346         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
22347         field up.
22348         (struct _stmt_vec_info): Shuffle fields for better packing.
22350 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22352         * varasm.c (IN_NAMED_SECTION): Remove guard.
22353         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
22354         (IN_NAMED_SECTION_P): ...this.
22355         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
22356         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
22358 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
22360         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
22361         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
22362         of shadowing it.  Fix comments.
22364 2010-04-26  Jan Hubicka  <jh@suse.cz>
22366         * cgraph.c (cgraph_create_node): Set node frequency to normal.
22367         (cgraph_clone_node): Copy function frequency.
22368         * cgraph.h (node_frequency): New enum
22369         (struct cgraph_node): Add.
22370         * final.c (rest_of_clean_state): Update.
22371         * lto-cgraph.c (lto_output_node): Output node frequency.
22372         (input_overwrite_node): Input node frequency.
22373         * tre-ssa-loop-ivopts (computation_cost): Update.
22374         * lto-streamer-out.c (output_function): Do not output function
22375         frequency.
22376         * predict.c (maybe_hot_frequency_p): Update and handle functions
22377         executed once.
22378         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
22379         attribute lookup.
22380         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
22381         (compute_function_frequency): Set noreturn functions to be executed
22382         once.
22383         (choose_function_section): Update.
22384         * lto-streamer-in.c (input_function): Do not input function frequency.
22385         * function.c (allocate_struct_function): Do not initialize function
22386         frequency.
22387         * function.h (function_frequency): Remove.
22388         (struct function): Remove function frequency.
22389         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
22390         (try_update): Update.
22391         * tree-inline.c (initialize_cfun): Do not update function frequency.
22392         * passes.c (pass_init_dump_file): Update.
22393         * i386.c (ix86_compute_frame_layout): Update.
22394         (ix86_pad_returns): Update.
22396 2010-04-26  Jie Zhang  <jie@codesourcery.com>
22398         PR tree-optimization/43833
22399         * tree-vrp.c (range_int_cst_p): New.
22400         (range_int_cst_singleton_p): New.
22401         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
22402         when both operands are constants.  Use range_int_cst_p in
22403         BIT_IOR_EXPR case.
22405 2010-04-26  Jan Hubicka  <jh@suse.cz>
22407         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
22409 2010-04-26  Richard Guenther  <rguenther@suse.de>
22411         PR lto/43080
22412         * gimple.c (gimple_decl_printable_name): Deal gracefully
22413         with a NULL DECL_NAME.
22415 2010-04-26  Richard Guenther  <rguenther@suse.de>
22417         PR lto/42425
22418         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
22419         if emitting debug information and it is either a function
22420         or a namespace decl.
22422 2010-04-26  Ira Rosen  <irar@il.ibm.com>
22424         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
22425         determine if the statement is vectorizable, and a macro to access it.
22426         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
22427         Skip statements that can't be vectorized. If the analysis fails,
22428         mark the statement as unvectorizable if vectorizing basic block.
22429         (vect_compute_data_refs_alignment): Likewise.
22430         (vect_verify_datarefs_alignment): Skip statements marked as
22431         unvectorizable. Add print.
22432         (vect_analyze_group_access): Skip statements that can't be
22433         vectorized. If the analysis fails, mark the statement as
22434         unvectorizable if vectorizing basic block.
22435         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
22436         * tree-vect-stmts.c (vectorizable_store): Fix the number of
22437         generated stmts for SLP.
22438         (new_stmt_vec_info): Initialize the new field.
22439         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
22440         statements marked as unvectorizable.
22442 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
22444         * c-common.c (flag_isoc1x): New.
22445         (flag_isoc99): Update comment.
22446         * c-common.h (flag_isoc1x): New.
22447         (flag_isoc99): Update comment.
22448         * c-cppbuiltin.c (builtin_define_float_constants): Also define
22449         __<type>_DECIMAL_DIG__.
22450         * c-opts.c (set_std_c1x): New.
22451         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
22452         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
22453         * c.opt (-std=c1x, -std=gnu1x): New options.
22454         * doc/cpp.texi: Mention -std=c1x.
22455         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
22456         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
22457         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
22458         * doc/standards.texi: Mention C1X.
22459         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
22460         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
22461         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
22462         Define for C1X.
22464 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
22466         * config/i386/gmon-sol2.c (_mcleanup): Change format string
22467         placeholder from 0x%x to %#x.
22468         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
22469         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
22470         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
22471         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
22472         * config/i386/i386.c (ix86_target_string): Ditto.
22473         (output_pic_addr_const): Ditto.
22474         (print_operand): Ditto.
22476 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
22478         * combine.c (find_split_point): Add third argument.  Use it
22479         to find nested multiply-accumulate instructions.  Adjust calls.
22480         (try_combine): Adjust call to find_split_point.
22482 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
22484         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
22486 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
22488         PR tree-optimization/41442
22489         * fold-const.c (merge_truthop_with_opposite_arm): New function.
22490         (fold_binary_loc): Call it.
22492 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
22494         * toplev.c (general_init): Set default for fdiagnostics-show-option.
22495         * opts.c (common_handle_option): Allow disabling it.
22496         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
22498 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
22500         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
22501         between modes if both types are integral.
22503 2010-04-23  Richard Guenther  <rguenther@suse.de>
22505         PR tree-optimization/43572
22506         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
22508 2010-04-23  Richard Guenther  <rguenther@suse.de>
22510         PR lto/43455
22511         * tree-inline.c (tree_can_inline_p): Also check compatibility
22512         of return types.
22514 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22516         PR tree-optimization/43846
22517         * tree-sra.c (struct access): New flag grp_assignment_read.
22518         (build_accesses_from_assign): Set grp_assignment_read.
22519         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
22520         (enum mark_read_status): New type.
22521         (analyze_access_subtree): Propagate grp_assignment_read, create
22522         accesses also if both direct_read and root->grp_assignment_read.
22524 2010-04-23  Martin Jambor  <mjambor@suse.cz>
22526         PR middle-end/43835
22527         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
22528         function does not have type attributes.
22530 2010-04-23  Richard Guenther  <rguenther@suse.de>
22532         PR lto/42653
22533         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
22534         of FUNCTION_DECLs.
22536 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22538         * sese.h (create_if_region_on_edge): Remove.
22540         * sese.c (create_if_region_on_edge): Make static.
22542         * tree-inline.c: Do not include ggc.h.
22544         * expr.c: Do not include ggc.h.
22546         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
22547         dependencies.
22549 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
22551         PR target/43744
22552         * config/sh/sh.c (find_barrier): Don't emit a constant pool
22553         in the middle of insns for casesi_worker_2.
22555 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
22557         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
22559 2010-04-22  Ira Rosen  <irar@il.ibm.com>
22561         PR tree-optimization/43842
22562         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
22563         loop unrolling in update of exit phis. Fix comment.
22564         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
22565         least two reduction statements in the loop before starting SLP
22566         analysis.
22568 2010-04-22  Nick Clifton  <nickc@redhat.com>
22570         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
22572 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
22574         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
22575         to simplify a + ~a.
22577 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22579         * tree-parloops.c (loop_parallel_p): New argument
22580         parloop_obstack.  Pass it down.
22581         (parallelize_loops): New variable parloop_obstack.  Initialize it,
22582         pass it down, free it.
22584         * tree-loop-linear.c (linear_transform_loops): Pass down
22585         lambda_obstack.
22587         * tree-data-ref.h (lambda_compute_access_matrices): New argument
22588         of type struct obstack *.
22590         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
22591         scratch_obstack.  Initialize it, pass down, free it.
22593         * lambda.h (lambda_loop_new): Remove.
22594         (lambda_matrix_new, lambda_matrix_inverse)
22595         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
22596         argument of type struct obstack *.
22598         * lambda-trans.c (lambda_trans_matrix_new): New argument
22599         lambda_obstack.  Pass it down, use obstack allocation for ret.
22600         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
22601         it down.
22603         * lambda-mat.c (lambda_matrix_get_column)
22604         (lambda_matrix_project_to_null): Remove.
22605         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
22606         allocation for mat.
22607         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
22608         lambda_obstack.
22610         * lambda-code.c (lambda_loop_new): New function.
22611         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
22612         (lambda_compute_auxillary_space, lambda_compute_target_space)
22613         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
22614         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
22615         (build_access_matrix): New argument lambda_obstack.  Use obstack
22616         allocation for am.
22617         (lambda_compute_step_signs, lambda_compute_access_matrices): New
22618         argument lambda_obstack.  Pass it down.
22620 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22622         * optabs.h (expand_widening_mult): Declare.
22624 2010-04-22  Richard Guenther  <rguenther@suse.de>
22626         PR tree-optimization/43845
22627         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
22628         lookup the CALL_EXPR function and arguments.
22630 2010-04-22  Nick Clifton  <nickc@redhat.com>
22632         * config/stormy16/stormy16.c
22633         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
22634         * config/stormy16/stormy16.h: Tidy up formatting.
22635         (DONT_USE_BUILTIN_SETJMP): Remove definition.
22636         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
22637         (ineqbranchsi): Delete pattern.
22638         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
22639         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
22640         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
22641         stormy16-lib2-ucmpsi2.c.
22643 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22645         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
22646         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
22647         extra set merge_set_noclobber, and use it to relax the final test
22648         slightly.
22649         * df.h (df_simulate_find_noclobber_defs): Declare.
22650         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
22651         conditional defs.
22652         (df_simulate_find_noclobber_defs): New function.
22654 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
22656         * config/i386/i386.md: Use {} around multi-line preparation statements.
22658 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
22660         * c-tree.h (push_init_level, pop_init_level, set_init_index)
22661         (process_init_element): New argument of type struct obstack *.
22663         * c-typeck.c (push_init_level, pop_init_level, set_designator)
22664         (set_init_index, set_init_label, set_nonincremental_init)
22665         (set_nonincremental_init_from_string, find_init_member)
22666         (output_init_element, output_pending_init_elements)
22667         (process_init_element): New argument braced_init_obstack.  Pass it
22668         down.
22669         (push_range_stack, add_pending_init): New argument
22670         braced_init_obstack.  Use obstack allocation.
22672         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
22673         braced_init_obstack.  Pass it down.
22674         (c_parser_braced_init): New variables ret, braced_init_obstack.
22675         Initialize obstack, pass it down and finally free it.
22677 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
22679         PR middle-end/29274
22680         * tree-pass.h (pass_optimize_widening_mul): Declare.
22681         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
22682         gate_optimize_widening_mul): New static functions.
22683         (pass_optimize_widening_mul): New.
22684         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
22685         <case MULT_EXPR>: Remove support for widening multiplies.
22686         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
22687         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
22688         simplify_gen_unary rather than directly building extensions.
22689         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
22690         WIDEN_MULT_EXPR.
22691         * expmed.c (expand_widening_mult): New function.
22692         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
22694 2010-04-21  Jan Hubicka  <jh@suse.cz>
22696         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
22697         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
22698         * lto-wpa-fixup.c: Remove.
22699         * Makefile.in (lto-wpa-fixup.o): Remove.
22700         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
22701         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
22702         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
22704 2010-04-21  Jan Hubicka  <jh@suse.cz>
22706         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
22707         add write_optimization_summary, read_optimization_summary.
22708         (ipa_write_summaries_of_cgraph_node_set): Remove.
22709         (ipa_write_optimization_summaries): Declare.
22710         (ipa_read_optimization_summaries): Declare.
22711         * ipa-cp.c (pass_ipa_cp): Update.
22712         * ipa-reference.c (pass_ipa_reference): Update.
22713         * ipa-pure-const.c (pass_ipa_pure_const): Update.
22714         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
22715         Update.
22716         * ipa-inline.c (pass_ipa_inline): Update.
22717         * ipa.c (pass_ipa_whole_program): Update.
22718         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
22719         * passes.c (ipa_write_summaries_1): Do not test wpa.
22720         (ipa_write_optimization_summaries_1): New.
22721         (ipa_write_optimization_summaries): New.
22722         (ipa_read_summaries): Do not test ltrans.
22723         (ipa_read_optimization_summaries_1): New.
22724         (ipa_read_optimization_summaries): New.
22726 2010-04-21  Jan Hubicka  <jh@suse.cz>
22728         * lto-cgraph.c (lto_output_node): Do not output comdat groups
22729         for boundary nodes.
22730         (output_cgraph): Do not arrange comdat groups for boundary nodes.
22732 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22734         PR debug/40040
22735         * dwarf2out.c (add_name_and_src_coords_attributes): Add
22736         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
22738 2010-04-21  Jan Hubicka  <jh@suse.cz>
22740         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
22742 2010-04-21  Jan Hubicka  <jh@suse.cz>
22744         * varpool.c (decide_is_variable_needed): Variable is always needed
22745         during ltrans.
22747 2010-04-21  Jan Hubicka  <jh@suse.cz>
22749         * opts.c (decode_options): Enable pure-const pass for whopr.
22751 2010-04-21  Jan Hubicka  <jh@suse.cz>
22753         * cgraph.c (dump_cgraph_node): Dump also assembler name.
22754         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
22755         at WPA dumping.
22756         (cgraph_decide_inlining): Do not expect callee to be removed in all
22757         cases.
22759 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
22761         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
22763 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22765         * config/i386/i386.md (x86_shrd): Add athlon_decode and
22766         amdfam10_decode attributes.
22768 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22770         PR middle-end/43570
22771         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
22772         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
22773         (lower_copyprivate_clauses): Use private var in outer
22774         context instead of original var.  Make sure the types
22775         are correct for VLAs.
22777 2010-04-21  Richard Guenther  <rguenther@suse.de>
22779         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
22780         to non-pointer objects.
22782 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
22784         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
22785         last chain entry if it starts with the still current label.
22786         (add_location_or_const_value_attribute): Check that
22787         loc_list->first->next is NULL instead of comparing ->first with ->last.
22788         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
22789         to add_var_loc_to_decl.
22791         * dwarf2out.c (output_call_frame_info): For dw_cie_version
22792         >= 4 add also address size and segment size fields into CIE header.
22794         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
22795         long as address size is the same as sizeof (void *) and
22796         segment size is 0.
22797         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
22798         address size or segment size is unexpected, return DW_EH_PE_omit.
22799         (classify_object_over_fdes): If get_cie_encoding returned
22800         DW_EH_PE_omit, return -1.
22801         (init_object): If classify_object_over_fdes returned -1,
22802         pretend there were no FDEs at all.
22804 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
22806         * config/i386/i386.md (bswap<mode>2): Macroize expander from
22807         bswap{si,di}2 using SWI48 mode iterator.
22808         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
22809         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
22810         set modrm attribute of bswap insn to 0 and remove length attribute.
22811         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
22812         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
22813         set mode attribute to <MODE> and remove length attribute.
22815 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
22817         PR rtl-optimization/43520
22818         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
22819         zero available registers.
22821 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22823         * builtins.c (fold_builtin_cproj): Fold more cases.
22825 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
22827         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
22828         (fold_builtin_1): Fold builtin cproj.
22829         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
22830         Use ATTR_CONST_NOTHROW_LIST.
22832 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
22834         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
22835         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
22836         ffsi2_no_cmove for !TARGET_CMOVE.
22837         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
22838         (ffssi2): Remove expander.
22839         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
22840         mode iterator.
22841         (ctz<mode>2): Ditto from ctz{si,di}2.
22842         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
22843         mode iterator.
22844         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
22845         mode iterator.
22847 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22849         * dwarf2out.c (AT_linkage_name): Define.
22850         (clone_as_declaration): Handle DW_AT_linkage_name.
22851         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
22852         of DW_AT_MIPS_linkage_name.
22853         (move_linkage_attr): Likewise.
22854         (dwarf2out_finish): Likewise.
22856 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
22858         PR middle-end/41952
22859         * fold-const.c (fold_comparison): New folding rule.
22861 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
22863         * double-int.h (double_int_setbit): Declare.
22864         * double-int.c (double_int_setbit): New function.
22865         * rtl.h (immed_double_int_const): Declare.
22866         * emit-rtl.c (immed_double_int_const): New function.
22867         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
22868         and immed_double_int_const functions.
22869         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
22870         expand_copysign_bit): (Ditto.).
22871         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
22872         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
22873         * dojump.c (prefer_and_bit_test): (Ditto.).
22874         * expr.c (convert_modes, reduce_to_bit_field_precision,
22875         const_vector_from_tree): (Ditto.).
22876         * expmed.c (mask_rtx, lshift_value): (Ditto.).
22878 2010-04-20  Jan Hubicka  <jh@suse.cz>
22880         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
22881         (dump_cgraph_node): Dump new flags.
22882         * cgraph.h (struct cgraph_node): Add flags
22883         reachable_from_other_partition and in_other_partition.
22884         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
22885         other partition can not be removed.
22886         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
22887         the other partition must be output; silence sanity checking on
22888         leaking functions bodies from other paritition.
22889         * lto-cgraph.c (reachable_from_other_partition_p): New function.
22890         (lto_output_node): Output new flags; do not sanity check that inline
22891         clones are output; drop lto_forced_extern_inline_p code; do not mock
22892         visibility flags at partition boundaries.
22893         (add_node_to): New function.
22894         (output_cgraph): Use it to sort functions so masters appear before
22895         clones.
22896         (input_overwrite_node): Input new flags.
22897         * passes.c (ipa_write_summaries): Do not call
22898         lto_new_extern_inline_states.
22899         * lto-section-out.c (forced_extern_inline,
22900         lto_new_extern_inline_states lto_delete_extern_inline_states,
22901         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
22902         * lto-streamer.h (lto_new_extern_inline_states,
22903         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
22904         lto_forced_extern_inline_p): Kill.
22906 2010-04-20  Richard Guenther  <rguenther@suse.de>
22908         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
22909         from vars that can have pointers.
22910         (process_constraint): Dump useless constraints.
22912 2010-04-20  Richard Guenther  <rguenther@suse.de>
22914         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
22915         (dump_sa_points_to_info): Remove asserts.
22916         (init_base_vars): nothing_id isn't an escape point nor does it
22917         have pointers.
22919 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
22921         * tree.h (TYPE_REF_IS_RVALUE): Define.
22922         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
22923         should_move_die_to_comdat, prune_unused_types_walk): Handle
22924         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
22925         (modified_type_die, gen_reference_type_die): Emit
22926         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
22927         if TYPE_REF_IS_RVALUE and -gdwarf-4.
22929 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22931         PR target/43635
22932         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
22933         calls for -fpic -m31 if they have been sibcall optimized.
22935 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
22937         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
22938         ar.lc fixed and call-used.
22940         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
22942 2010-04-19  Jan Hubicka  <jh@suse.cz>
22944         * opts.c (decode_options): Disable whpr incompatible passes.
22945         * lto/lto.c (lto_1_to_1_map): Skip clones.
22946         (read_cgraph_and_symbols): Do not mark everything as needed.
22947         (do_whole_program_analysis): Do map only after optimizing;
22948         set proper cgraph_state; use passmanager.
22950 2010-04-19  DJ Delorie  <dj@redhat.com>
22952         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
22953         POINTER_PLUS_EXPR and fix them.
22955 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
22957         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
22958         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
22959         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
22960         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
22961         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
22962         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
22963         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
22964         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
22965         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
22966         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
22967         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
22969 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
22971         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
22972         (check_cond_move_block): Likewise.
22973         (cond_move_process_if_block): Likewise.
22974         (noce_find_if_block): Improve formatting.
22975         (find_if_header): Pass 0 to memset and tweak conditions.
22976         (cond_exec_find_if_block): Fix long lines and tweak conditions.
22978 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
22980         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
22981         for -gdwarf-4.
22983         PR middle-end/43337
22984         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
22985         with non-local decl doesn't need chain.
22987 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
22989         * ira-color.c (allocno_reload_assign): Avoid accumulating
22990         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
22992 2010-04-19  Martin Jambor  <mjambor@suse.cz>
22994         * gimple.h (create_tmp_reg): Declare.
22995         * gimplify.c (create_tmp_reg): New function.
22996         (gimplify_return_expr): Use create_tmp_reg.
22997         (gimplify_omp_atomic): Likewise.
22998         (gimple_regimplify_operands): Likewise.
22999         * tree-dfa.c (make_rename_temp): Likewise.
23000         * tree-predcom.c (predcom_tmp_var): Likewise.
23001         (reassociate_to_the_same_stmt): Likewise.
23002         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
23003         (get_replaced_param_substitute): Likewise.
23004         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
23005         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
23006         * tree-ssa-pre.c (get_representative_for): Likewise.
23007         (create_expression_by_pieces): Likewise.
23008         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
23009         (create_tailcall_accumulator): Likewise.
23011 2010-04-19  Martin Jambor  <mjambor@suse.cz>
23013         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
23014         new_stmt.
23015         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
23017 2010-04-19  Richard Guenther  <rguenther@suse.de>
23019         PR tree-optimization/43796
23020         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
23021         from SCEV in the lattice.
23022         (vrp_visit_phi_node): Dump change.
23024 2010-04-19  Richard Guenther  <rguenther@suse.de>
23026         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
23027         * configure: Re-generated.
23029 2010-04-19  Richard Guenther  <rguenther@suse.de>
23031         PR tree-optimization/43783
23032         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
23033         constant ARRAY_REF operands two and three if possible.
23035 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
23037         PR target/43766
23038         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
23040 2010-04-19  Jie Zhang  <jie@codesourcery.com>
23042         PR target/43662
23043         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
23045 2010-04-19  Ira Rosen  <irar@il.ibm.com>
23047         PR tree-optimization/37027
23048         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
23049         and macro to access it.
23050         (vectorizable_reduction): Add argument.
23051         (vect_get_slp_defs): Likewise.
23052         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
23053         statements for possible use in SLP.
23054         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
23055         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
23056         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
23057         add new argument.
23058         (vectorizable_reduction): Likewise.
23059         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
23060         vect_get_slp_defs.
23061         (vectorizable_type_demotion, vectorizable_type_promotion,
23062         vectorizable_store): Likewise.
23063         (vect_analyze_stmt): Update call to vectorizable_reduction.
23064         (vect_transform_stmt): Likewise.
23065         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
23066         (vect_build_slp_tree): Fix indentation. Check that there are no loads
23067         from different interleaving chains in same node.
23068         (vect_slp_rearrange_stmts): New function.
23069         (vect_supported_load_permutation_p): Allow load permutations for
23070         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
23071         inside SLP nodes if necessary.
23072         (vect_analyze_slp_instance): Handle reductions.
23073         (vect_analyze_slp): Try to build SLP instances originating from groups
23074         of reductions.
23075         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
23076         (vect_get_constant_vectors): Create initial vectors for reductions
23077         according to reduction code. Add new argument.
23078         (vect_get_slp_defs): Add new argument, pass it to
23079         vect_get_constant_vectors.
23080         (vect_schedule_slp_instance): Remove SLP tree root statements.
23082 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
23084         * tree.h (ENUM_IS_SCOPED): Define.
23085         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
23086         for ENUM_IS_SCOPED enums.
23088 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
23090         * fold-const.c (fold_comparison): Use ssizetype.
23091         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
23092         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
23093         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
23094         * tree-object-size.c (compute_object_sizes): Use size_type_node.
23096         * tree.h (initialize_sizetypes): Remove parameter.
23097         (build_common_tree_nodes): Remove second parameter.
23098         * stor-layout.c (initialize_sizetypes): Remove parameter.
23099         Always create an unsigned type.
23100         (set_sizetype): Assert that the passed type is unsigned and simplify.
23101         * tree.c (build_common_tree_nodes): Remove second parameter.
23102         Adjust call to initialize_sizetypes.
23103         * c-decl.c (c_init_decl_processing): Remove second argument in call to
23104         build_common_tree_nodes.
23106 2010-04-18  Matthias Klose  <doko@ubuntu.com>
23108         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
23110 2010-04-18  Ira Rosen  <irar@il.ibm.com>
23112         PR tree-optimization/43771
23113         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
23114         load permutation doesn't have gaps.
23116 2010-04-18  Jan Hubicka  <jh@suse.cz>
23118         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
23119         (sse_prologue_save_insn expander): Use new pattern.
23120         (sse_prologue_save_insn1): New pattern and splitter.
23121         (sse_prologue_save_insn): Update to deal also with 64bit aligned
23122         blocks.
23123         * i386.c (setup_incoming_varargs_64): Do not compute jump
23124         destination here.
23125         (ix86_gimplify_va_arg): Update alignment needed.
23126         (ix86_local_alignment): Do not align all local arrays to 128bit.
23128 2010-04-17  Jan Hubicka  <jh@suse.cz>
23130         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
23132 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23134         * arm.md (negdi2): Remove redundant code to force values into a
23135         register.
23137 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23139         * arm/bpabi.S: Add EABI alignment attributes to objects.
23140         * arm/bpabi-v6m.S: Likewise.
23141         * arm/crti.asm: Likewise.
23142         * arm/crtn.asm: Likewise.
23143         * arm/lib1funcs.asm: Likewise.
23144         * arm/libunwind.S: Likewise.
23146 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
23148         * arm-protos.h (tune_params): New structure.
23149         * arm.c (current_tune): New variable.
23150         (arm_constant_limit): Delete.
23151         (struct processors): Add pointer to the tune parameters.
23152         (arm_slowmul_tune): New tuning option.
23153         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
23154         (all_cores): Adjust to pick up the tuning model.
23155         (arm_constant_limit): New function.
23156         (arm_override_options): Select the appropriate tuning model.  Delete
23157         initialization of arm_const_limit.
23158         (arm_split_constant): Use the new constant-limit model.
23159         (arm_rtx_costs): Pick up the current tuning model.
23160         * arm.md (is_strongarm, is_xscale): Delete.
23161         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
23162         for Xscale variant architectures.
23163         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
23165 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23167         * config/arm/arm.c (arm_gen_constant): Remove unused variable
23168         can_shift.
23169         (arm_rtx_costs_1): Remove unused variable extra_cost.
23170         (arm_unwind_emit_set): Use variable offset.
23171         (thumb1_output_casesi): Remove unused variable flags.
23173 2010-04-16  Jeff Law  <law@redhat.com>
23175         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
23176         needing assignment rather than doing a two-phase assignment.  Remove
23177         unused variable 'm'.
23179 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23181         PR bootstrap/43767
23182         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
23184 2010-04-16  Doug Kwan  <dougkwan@google.com>
23186         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
23187         (next_operand_entry_id): New static variable.
23188         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
23189         (add_to_ops_vec): Assigned unique ID to operand entry.
23190         (struct oecount_s): New field ID.
23191         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
23192         (undistribute_ops_list): Assign unique IDs to oecounts.
23193         (init_reassoc): reset next_operand_entry_id.
23195 2010-04-16  Doug Kwan  <dougkwan@google.com>
23197         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
23198         missing left parenthesis.
23200 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
23202         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
23203         *btdi_rex64 using SWI48 mode iterator.
23204         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
23205         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
23206         *jcc_btdi_mask_rex64.
23208 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
23210         * double-int.h (tree_to_double_int): Convert to macro.
23211         * double-int.c (tree_to_double_int): Remove.
23213 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23215         PR debug/43762
23216         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
23217         with want_address 2 and in case a single element list might be
23218         possible, call it again with want_address 0.
23220 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23222         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
23223         case 'W' print operands for HI mode.
23224         * config/h8300/h8300.h (Y0, Y2) : New constraints.
23225         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
23226         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
23227         * config/h8300/predicate.md (bit_register_indirect_operand): New.
23229         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
23231         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
23232         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
23233         #xx:3 and #xx:4 mode.
23235         * config/h8300/h8300.md (inverted load with HImode dest): Add
23236         support for H8300SX.
23238         * config/h8300/predicate.md (bit_operand): Allow immediate values that
23239         satisfy 'U' constraint.
23241 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23243         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
23244         * configure: Regenerate.
23245         * config.in: Regenerate.
23246         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
23247         works.
23249 2010-04-16  Richard Guenther  <rguenther@suse.de>
23251         * tree.h (struct tree_decl_minimal): Move pt_uid ...
23252         (struct tree_decl_common): ... here.
23253         (DECL_PT_UID): Adjust.
23254         (SET_DECL_PT_UID): Likewise.
23255         (DECL_PT_UID_SET_P): Likewise.
23257 2010-04-16  Richard Guenther  <rguenther@suse.de>
23259         PR tree-optimization/43572
23260         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
23261         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
23262         * tree-flow.h (is_call_clobbered): Remove.
23263         * tree-flow-inline.h (is_call_clobbered): Likewise.
23264         * tree-dfa.c (dump_variable): Do not dump call clobber state.
23265         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
23266         (execute_return_slot_opt): Adjust.
23267         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
23268         check for call clobbered vars here.
23269         (find_tail_calls): Move tailcall verification to the
23270         proper place.
23272 2010-04-16  Diego Novillo  <dnovillo@google.com>
23274         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
23276 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
23278         PR target/40603
23279         * config/arm/arm.md (cbranchqi4): New pattern.
23280         * config/arm/predicates.md (const0_operand,
23281         cbranchqi4_comparison_operator): New predicates.
23283 2010-04-16  Richard Guenther  <rguenther@suse.de>
23285         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
23286         (dump_gimple_stmt): Likewise.
23288 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
23290         * recog.h (struct recog_data): New field is_operator.
23291         (struct insn_operand_data): New field is_operator.
23292         * recog.c (extract_insn): Set recog_data.is_operator.
23293         * genoutput.c (output_operand_data): Emit code to set the
23294         is_operator field.
23295         * reload.c (find_reloads): Use it rather than testing for an
23296         empty constraint string.
23298         PR target/41514
23299         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
23300         If the previous insn is a cbranchsi4_insn with the same arguments,
23301         omit the compare instruction.
23303         * config/arm/arm.md (addsi3_cbranch): If destination is a high
23304         register, inputs must be low registers and we need a low register
23305         scratch.  Handle alternative 2 like alternative 3.
23307 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
23309         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
23310         don't call get_addr on both.  If one expression is a VALUE and
23311         the other a REG, check VALUE's locs if the REG isn't among them.
23313 2010-04-16  Christian Bruel  <christian.bruel@st.com>
23315         * config/sh/sh.h (sh_frame_pointer_required): New function.
23316         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
23317         (flag_omit_frame_pointer) Set.
23318         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
23319         (rounded_frame_size): Adjust size with outgoing_args_size.
23320         (sh_set_return_address): Must return from stack pointer.
23321         * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
23322         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
23323         (ACCUMULATE_OUTGOING_ARGS): Define.
23324         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
23325         * config/sh/sh.opt (maccumulate-outgoing-args): New option.
23327 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23329         PR target/43471
23330         * config/sh/sh.c (sh_legitimize_reload_address): Use
23331         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
23332         Remove a unneeded check for offset_base.
23334 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
23336         * configure: Regenerated.
23338 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23340         * config/s390/s390.c (s390_call_save_register_used): Switch back
23341         to HARD_REGNO_NREGS.
23343 2010-04-15  Richard Guenther  <rguenther@suse.de>
23345         * alias.c (alias_set_subset_of): Handle alias-set zero
23346         child properly.
23348 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
23349             Julian Brown  <julian@codesourcery.com>
23351         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
23352         alternatives according to use of high and low regs.
23353         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
23354         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
23355         optimizing for size on Thumb-2.
23357 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
23359         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
23361 2010-04-15  Richard Guenther  <rguenther@suse.de>
23363         * tree-ssa-structalias.c (struct variable_info): Add
23364         is_fn_info flag.
23365         (new_var_info): Initialize it.
23366         (dump_constraints): Support printing last added constraints.
23367         (debug_constraints): Adjust.
23368         (dump_constraint_graph): Likewise.
23369         (make_heapvar_for): Check for NULL cfun.
23370         (get_function_part_constraint): New function.
23371         (get_fi_for_callee): Likewise.
23372         (find_func_aliases): Properly implement IPA PTA constraints.
23373         (process_ipa_clobber): New function.
23374         (find_func_clobbers): Likewise.
23375         (insert_into_field_list_sorted): Remove.
23376         (create_function_info_for): Properly allocate vars for IPA mode.
23377         Do not use insert_into_field_list_sorted.
23378         (create_variable_info_for): Properly generate constraints for
23379         global vars in IPA mode.
23380         (dump_solution_for_var): Always dump the solution.
23381         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
23382         (find_what_var_points_to): Adjust.
23383         (pt_solution_set): Change.
23384         (pt_solution_ior_into): New function.
23385         (pt_solution_empty_p): Export.
23386         (pt_solution_includes_global): Adjust.
23387         (pt_solution_includes_1): Likewise.
23388         (pt_solutions_intersect_1): Likewise.
23389         (dump_sa_points_to_info): Check some invariants.
23390         (solve_constraints): Move constraint dumping ...
23391         (compute_points_to_sets): ... here.
23392         (ipa_pta_execute): ... and here.
23393         (compute_may_aliases): Do not re-compute points-to info
23394         locally if IPA info is available.
23395         (ipa_escaped_pt): New global var.
23396         (ipa_pta_execute): Properly implement IPA PTA.
23397         * tree-into-ssa.c (dump_decl_set): Support dumping
23398         decls not in referenced-vars.
23399         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
23400         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
23401         (dump_points_to_solution): Likewise.
23402         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
23403         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
23404         (remap_gimple_stmt): Reset call clobber/use information if necessary.
23405         (copy_decl_to_var): Copy DECL_PT_UID.
23406         (copy_result_decl_to_var): Likewise.
23407         * tree.c (make_node_stat): Initialize DECL_PT_UID.
23408         (copy_node_stat): Copy it.
23409         * tree.h (DECL_PT_UID): New macro.
23410         (SET_DECL_PT_UID): Likewise.
23411         (DECL_PT_UID_SET_P): Likewise.
23412         (struct tree_decl_minimal): Add pt_uid member.
23413         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
23414         (pt_solution_empty_p): Declare.
23415         (pt_solution_set): Adjust.
23416         (ipa_escaped_pt): Declare.
23417         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
23418         * gimple-pretty-print.c (pp_points_to_solution): New function.
23419         (dump_gimple_call): Dump call clobber/use information.
23420         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
23421         * tree-pass.h (TDF_ALIAS): New dump option.
23422         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
23423         * doc/invoke.texi (-fipa-pta): Update documentation.
23425 2010-04-15  Richard Guenther  <rguenther@suse.de>
23427         * Makefile.in (OBJS-common): Add gimple-fold.o.
23428         (gimple-fold.o): New rule.
23429         * tree.h (maybe_fold_offset_to_reference,
23430         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
23431         prototypes ...
23432         * gimple.h: ... here.
23433         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
23434         may_propagate_address_into_dereference): Move prototypes ...
23435         * gimple.h: ... here.
23436         * tree-ssa-ccp.c (get_symbol_constant_value,
23437         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
23438         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
23439         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
23440         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
23441         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
23442         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
23443         gimplify_and_update_call_from_tree): Move ...
23444         * gimple-fold.c: ... here.  New file.
23445         (ccp_fold_builtin): Rename to ...
23446         (gimple_fold_builtin): ... this.
23447         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
23449 2010-04-15  Richard Guenther  <rguenther@suse.de>
23451         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
23452         fit_double_type, force_fit_type_double, add_double_with_sign,
23453         neg_double, mul_double_with_sign, lshift_double, rshift_double,
23454         lrotate_double, rrotate_double, div_and_round_double): Move ...
23455         * double-int.c: ... here.
23456         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
23457         add_double, neg_double, mul_double_with_sign, mul_double,
23458         lshift_double, rshift_double, lrotate_double, rrotate_double,
23459         div_and_round_double): Move prototypes ...
23460         * double-int.h: ... here.
23462 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
23464         PR target/43742
23465         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
23466         matching constraints to ensure inputs match the output.
23468 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
23470         PR target/43742
23471         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
23472         in an input-only operand.
23474 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
23476         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
23477         (double_int_not, double_int_lshift, double_int_rshift): Declare.
23478         (double_int_negative_p): Convert to static inline function.
23479         * double-int.c (double_int_lshift, double_int_lshift): New functions.
23480         (double_int_negative_p): Remove.
23481         * tree.h (lshift_double, rshift_double):
23482         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
23483         * fold-const.c (fold_convert_const_int_from_real,
23484         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
23485         (lshift_double): Change type of arith argument to bool.
23486         (rshift_double): Change type of arith argument to bool. Correct
23487         comment.
23488         * expmed.c (mask_rtx, lshift_value): (Ditto.).
23490 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
23492         PR target/21803
23493         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
23494         at the start and end of the then/else blocks, and omit them from the
23495         conversion.
23496         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
23497         argument; all callers changed.  Pass zero to old_insns_match_p instead.
23498         (flow_find_head_matching_sequence): New function.
23499         (old_insns_match_p): Check REG_EH_REGION notes for calls.
23500         * basic-block.h (flow_find_cross_jump,
23501         flow_find_head_matching_sequence): Declare functions.
23503 2010-04-14  Jason Merrill  <jason@redhat.com>
23505         PR c++/36625
23506         * c-common.c (attribute_takes_identifier_p): New fn.
23507         * c-common.h: Declare it.
23509 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23511         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
23512         splitter condition.
23513         (*udivmod<mode>4): Ditto.
23515 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23517         * config/i386/i386.md (maxmin_int): Rename code attribute from
23518         maxminiprefix and update all users.
23519         (maxmin_float): Ditto from maxminfprefix.
23520         (logic): Ditto from logicprefix.
23521         (absneg_mnemonic): Ditto from absnegprefix.
23522         * config/i386/mmx.md: Update all users of maxminiprefix,
23523         maxminfprefix and logicprefix for rename.
23524         * config/i386/sse.md: Ditto.
23525         * config/i386/sync.md (sync_<code><mode>): Update for
23526         logicprefix rename.
23528 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23530         PR 42966
23531         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
23532         warnings converted to errors.
23534 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23536         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
23537         used insn_type variable.
23538         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
23539         to avoid set-but-not-used warning.
23541 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23543         * df-core.c (df_ref_debug): Change format string placeholder
23544         from 0x%x to %#x.
23545         * dwarf2asm.c (dw2_asm_output_data_raw,
23546         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
23547         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
23548         * dwarf2out.c (output_cfi, output_cfi_directive,
23549         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
23550         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
23551         Ditto.
23552         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
23553         * print-rtl.c (print_rtx): Ditto.
23555 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
23557         PR middle-end/42694
23558         * builtins.c (expand_builtin_pow_root): New function to expand pow
23559         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
23560         series of sqrt and cbrt calls under -ffast-math.
23561         (expand_builtin_pow): Call it.
23563 2010-04-14  Michael Matz  <matz@suse.de>
23565         PR tree-optimization/42963
23566         * tree-cfg.c (touched_switch_bbs): New static variable.
23567         (group_case_labels_stmt): New function broken out from ...
23568         (group_case_labels): ... here, use the above.
23569         (start_recording_case_labels): Allocate touched_switch_bbs.
23570         (end_recording_case_labels): Deallocate it, call
23571         group_case_labels_stmt.
23572         (gimple_redirect_edge_and_branch): Remember index of affected BB.
23574 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23576         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
23577         from insn template.
23579 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
23581         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
23583 2010-04-13  Jan Hubicka  <jh@suse.cz>
23585         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
23586         of optimized out static functions.
23587         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
23588         cost computation.  Also sanity check for overflows.
23589         (update_caller_keys): Update cgraph_edge_badness call; properly
23590         update fibheap and sanity check that it is up to date.
23591         (add_new_edges_to_heap): Update cgraph_edge_badness.
23592         (cgraph_decide_inlining_of_small_function): Likewise;
23593         add sanity checking that badness in heap is up to date;
23594         improve dumping of reason; Update badness of calls to the
23595         offline copy of function currently inlined; dump badness
23596         of functions not inlined because of unit growth limits.
23598 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23600         PR middle-end/32628
23601         * c-common.c (pointer_int_sum): Disregard overflow that occured only
23602         because of sign-extension change when converting to sizetype here...
23603         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
23605         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
23606         the folding to constants.  Remove redundant final conversion.
23607         (fold_binary) <associate>: Do not associate if the re-association of
23608         constants alone overflows.
23609         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
23610         to the end of the list.
23611         (multiple_of_p) <COND_EXPR>: New case.
23613 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23615         * opt-functions.awk (opt_sanitized_name): New.
23616         (opt_enum): New.
23617         * optc-gen.awk: Use it
23618         * opth-gen.awk: Use it.
23620 2010-04-13  Martin Jambor  <mjambor@suse.cz>
23622         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
23623         (sra_modify_assign): Delete stmts loading dead data even if racc has no
23624         children.  Call replace_uses_with_default_def_ssa_name to handle
23625         SSA_NAES on lhs.
23627 2010-04-13  Michael Matz  <matz@suse.de>
23629         PR middle-end/43730
23630         * builtins.c (expand_builtin_interclass_mathfn): Also create
23631         a register if the predicate doesn't match.
23633 2010-04-13  Diego Novillo  <dnovillo@google.com>
23635         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
23636         * c-pch.c: Include timevar.h.
23637         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
23638         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
23639         * ggc-common.c: Include timevar.h.
23640         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
23641         * timevar.def (TV_PCH_SAVE): Define.
23642         (TV_PCH_CPP_SAVE): Define.
23643         (TV_PCH_PTR_REALLOC): Define.
23644         (TV_PCH_PTR_SORT): Define.
23645         (TV_PCH_RESTORE): Define.
23646         (TV_PCH_CPP_RESTORE): Define.
23648 2010-04-13  Michael Matz  <matz@suse.de>
23650         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
23651         into MINUS_EXPRs.
23652         (can_reassociate_p): New function.
23653         (break_up_subtract_bb, reassociate_bb): Use it.
23655 2010-04-13  Richard Guenther  <rguenther@suse.de>
23657         PR bootstrap/43737
23658         * builtins.c (c_readstr): Fix assert.
23660 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
23662         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
23663         when generating cltd insn.
23665         (*ashl<mode>3_1): Remove special handling for register operand 2.
23666         (*ashlsi3_1_zext): Ditto.
23667         (*ashlhi3_1): Ditto.
23668         (*ashlhi3_1_lea): Ditto.
23669         (*ashlqi3_1): Ditto.
23670         (*ashlqi3_1_lea): Ditto.
23671         (*<shiftrt_insn><mode>3_1): Ditto.
23672         (*<shiftrt_insn>si3_1_zext): Ditto.
23673         (*<shiftrt_insn>qi3_1_slp): Ditto.
23674         (*<rotate_insn><mode>3_1): Ditto.
23675         (*<rotate_insn>si3_1_zext): Ditto.
23676         (*<rotate_insn>qi3_1_slp): Ditto.
23678 2010-04-13  Richard Guenther  <rguenther@suse.de>
23680         * tree-ssa-structalias.c (callused_id): Remove.
23681         (call_stmt_vars): New.
23682         (get_call_vi): Likewise.
23683         (lookup_call_use_vi): Likewise.
23684         (lookup_call_clobber_vi): Likewise.
23685         (get_call_use_vi): Likewise.
23686         (get_call_clobber_vi): Likewise.
23687         (make_transitive_closure_constraints): Likewise.
23688         (handle_const_call): Adjust to do per-call call-used handling.
23689         (handle_pure_call): Likewise.
23690         (find_what_var_points_to): Remove general callused handling.
23691         (init_base_vars): Likewise.
23692         (init_alias_vars): Initialize call_stmt_vars.
23693         (compute_points_to_sets): Process call-used and call-clobbered
23694         vars for call statements.
23695         (delete_points_to_sets): Free call_stmt_vars.
23697 2010-04-13  Richard Guenther  <rguenther@suse.de>
23699         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
23700         Only add RW dependence for dependence distance zero.
23701         Adjust maximal vectorization factor according to dependences.
23702         Move alignment handling ...
23703         (vect_find_same_alignment_drs): ... here.  New function.
23704         (vect_analyze_data_ref_dependences): Adjust.
23705         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
23706         (vect_analyze_data_refs): Adjust minimal vectorization factor
23707         according to data references.
23708         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
23709         dependences before determining the vectorization factor.
23710         Analyze alignment after determining the vectorization factor.
23711         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
23712         dependences before alignment.
23713         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
23714         Adjust prototype.
23715         (vect_analyze_data_refs): Likewise.
23716         (MAX_VECTORIZATION_FACTOR): New define.
23718 2010-04-13  Duncan Sands  <baldrick@free.fr>
23720         * except.h (lang_eh_type_covers): Remove.
23721         * except.c (lang_eh_type_covers): Likewise.
23723 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23724             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23726         * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
23727         * config/s390/s390.c: Replace UNTIS_PER_WORD with
23728         UNITS_PER_LONG where it is ABI relevant.
23729         (s390_return_addr_rtx): Likewise.
23730         (s390_back_chain_rtx): Likewise.
23731         (s390_frame_area): Likewise.
23732         (s390_frame_info): Likewise.
23733         (s390_initial_elimination_offset): Likewise.
23734         (save_gprs): Likewise.
23735         (s390_emit_prologue): Likewise.
23736         (s390_emit_epilogue): Likewise.
23737         (s390_function_arg_advance): Likewise.
23738         (s390_function_arg): Likewise.
23739         (s390_va_start): Likewise.
23740         (s390_gimplify_va_arg): Likewise.
23741         (s390_function_profiler): Likewise.
23742         (s390_optimize_prologue): Likewise.
23743         (s390_rtx_costs): Likewise.
23744         (s390_secondary_reload): Likewise.
23745         (s390_promote_function_mode): Likewise.
23746         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
23747         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
23748         registers available.
23749         (s390_unwind_word_mode): New function.
23750         (s390_function_value): Split 64 bit values into register pair if
23751         used as return value.
23752         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
23753         function call parameters.  Handle parallels.
23754         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
23755         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
23756         (DWARF_CIE_DATA_ALIGNMENT): New macro.
23757         (s390_expand_setmem): Remove unused variable src_addr.
23758         * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
23759         deal with 64 bit registers.
23760         * config/s390/s390.h: Define __zarch__ predefined macro.
23761         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
23762         (UNITS_PER_LONG): New macro.
23763         * libjava/include/s390-signal.h: Define extended ucontext
23764         structure containing the upper halfs of the 64 bit registers.
23766 2010-04-13  Simon Baldwin  <simonb@google.com>
23768         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
23770 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
23772         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
23773         rvalue on the RHS if the LHS is of a non-renamable type.
23774         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
23776 2010-04-13  Matthias Klose  <doko@ubuntu.com>
23778         * gcc.c (cc1_options): Handle -iplugindir before processing
23779         the cc1 spec. Only add -iplugindir once.
23780         (cpp_unique_options): Add -iplugindir option if -fplugin* options
23781         found.
23782         * common.opt (iplugindir): Remove `Separate' property, initialize.
23783         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
23784         option.
23785         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
23786         (distclean): Remove plugin dir.
23787         * doc/invoke.texi: Document -iplugindir.
23789 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
23791         * doc/plugins.texi (Loading Plugins): Document short
23792         -fplugin=foo option.
23793         (Plugin API): Mention default_plugin_dir_name function.
23795         * gcc.c (find_file_spec_function): Add new declaration.
23796         (static_spec_func): Use it for "find-file".
23797         (find_file_spec_function): Add new function.
23798         (cc1_options): Add -iplugindir option if -fplugin* options found.
23800         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
23802         * plugin.c (add_new_plugin): Updated comment, and handle short
23803         plugin name.
23804         (default_plugin_dir_name): Added new function.
23806         * common.opt (iplugindir): New option to set the plugin directory.
23808 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
23810         * config/i386/i386.md (any_rotate): New code iterator.
23811         (rotate_insn): New code attribute.
23812         (rotate): Ditto.
23813         (SWIM124): New mode iterator.
23814         (<rotate_insn>ti3): New expander.
23815         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
23816         any_rotate code iterator.
23817         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
23818         using any_rotate code iterator and SWIM124 mode iterator.
23819         (ix86_rotlti3): New insn_and_split pattern.
23820         (ix86_rotrti3): Ditto.
23821         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
23822         ix86_rotl{di,ti}3 patterns.
23823         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
23824         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
23825         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
23826         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
23827         code iterator and SWI mode iterator.
23828         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
23829         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
23830         code iterator.
23831         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
23832         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
23833         (bswap rotatert splitter): Add splitter.
23834         (bswap splitter): Macroize splitter using any_rotate code iterator.
23835         Add insn predicate to split only for TARGET_USE_XCHGB or when
23836         optimizing function for size.
23838 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23840         * config/pa/pa.c (emit_move_sequence): Remove use of
23841         deleted variable flag_argument_noalias.
23843 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23845         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
23846         configurations.
23847         Add to unsupported targets list.
23848         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
23849         sparc*-sun-solaris2.[567]* from target lists.
23850         * configure: Regenerate.
23851         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
23852         removal.
23853         Remove Solaris 7 patch references.
23854         (Specific, sparc-sun-solaris2.7): Removed.
23855         (sparc-sun-solaris2*): Update Solaris 7 example.
23856         (sparc64-*-solaris2*): Likewise.
23858 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23860         * config.build (alpha*-dec-osf4*): Remove.
23861         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
23862         of obsolete configurations.
23863         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
23864         support.
23865         * config/alpha/t-osf4: Renamed to ...
23866         * config/alpha/t-osf5: ... this.
23867         * config/alpha/osf.h: Renamed to ...
23868         * config/alpha/osf5.h: ... this.
23869         Merged old osf5.h contents.
23870         Update comments.
23871         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
23872         (EXTRA_SPECS): Removed.
23873         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
23874         reflect removal of Tru64 UNIX V4.0/V5.0 support.
23875         Document that.
23877 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23879         * doc/contrib.texi (Contributors, Rainer Orth): Update.
23881 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
23883         PR/43702
23884         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
23885         __thiscall convention.
23887 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23889         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
23890         orig_base.
23891         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
23893 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
23895         * function.c (assign_parms_initialize_all): Add unused attribute
23896         to fntype.
23898 2010-04-12  Richard Guenther  <rguenther@suse.de>
23900         * gsstruct.def (GSS_CALL): New.
23901         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
23902         * gimple.h: Include tree-ssa-alias.h.
23903         (struct gimple_statement_call): New.
23904         (union gimple_statement_struct_d): Add gimple_call member.
23905         (gimple_call_reset_alias_info): Declare.
23906         (gimple_call_use_set): New function.
23907         (gimple_call_clobber_set): Likewise.
23908         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
23909         * gimple.c (gimple_call_reset_alias_info): New function.
23910         (gimple_build_call_1): Call it.
23911         * lto-streamer-in.c (input_gimple_stmt): Likewise.
23912         * tree-inline.c (remap_gimple_stmt): Likewise.
23913         (expand_call_inline): Remove callused handling.
23914         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
23915         * tree-dfa.c (dump_variable): Likewise.
23916         * tree-parloops.c (parallelize_loops): Likewise.
23917         * tree-ssa.c (init_tree_ssa): Likewise.
23918         (delete_tree_ssa): Likewise.
23919         * tree-flow-inline.h (is_call_used): Remove.
23920         * tree-flow.h (struct gimple_df): Remove callused member.
23921         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
23922         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
23923         (ref_maybe_used_by_call_p_1): Simplify.
23924         (call_may_clobber_ref_p_1): Likewise.
23925         * tree-ssa-structalias.c (compute_points_to_sets): Set
23926         the call stmt used and clobbered sets.
23927         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
23928         (find_tail_calls): Verify the tail call.
23930 2010-04-12  Richard Guenther  <rguenther@suse.de>
23932         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
23933         single-iteration always-inline inlining.
23934         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
23935         (cgraph_decide_inlining): Do not handle always-inline specially.
23936         (try_inline): Remove always-inline cycle detection special case.
23937         Do not recurse on always-inlines.
23938         (cgraph_early_inlining): Do not iterate if not optimizing.
23939         (cgraph_gate_early_inlining): remove.
23940         (pass_early_inline): Run unconditionally.
23941         (gate_cgraph_decide_inlining): New function.
23942         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
23943         not inlining or optimizing.
23944         (cgraph_decide_inlining_of_small_functions): Also consider
23945         always-inline functions.
23946         (cgraph_default_inline_p): Return true for nodes which should
23947         disregard inline limits.
23948         (estimate_function_body_sizes): Assume zero size and time for
23949         nodes which are marked as disregarding inline limits.
23950         (cgraph_decide_recursive_inlining): Do not perform recursive
23951         inlining on always-inline nodes.
23953 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
23955         PR bootstrap/43699
23956         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
23957         for exprs satisfying handled_component_p.
23959 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
23961         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
23962         non-constant aggregate elements.
23964         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
23965         is a real initialization.
23967 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
23969         PR c/36774
23970         * c-decl.c (start_function): Move forward check for nested function.
23972 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
23974         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
23975         * config/sh/sh.c: Include reload.h.
23976         (sh_legitimize_reload_address): New.
23977         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
23978         sh_legitimize_reload_address.
23980 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
23982         * config/sh/sh.md (*movqi_pop): New insn pattern.
23983         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
23985 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
23987         * config/i386/i386.md (any_shiftrt): New code iterator.
23988         (shiftrt_insn): New code attribute.
23989         (shiftrt): Ditto.
23990         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
23991         using any_shiftrt code iterator.
23992         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
23993         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
23994         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
23995         pattern from corresponding peephole2 patterns.
23996         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
23997         using any_shiftrt code iterator.
23998         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
23999         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
24000         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
24001         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
24002         *{ashr,lshr}<mode>3_cmp_zext.
24003         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
24005 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24007         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
24008         scratch register.
24009         (*lshr<mode>3_cconly): Ditto.
24011 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
24013         * config/i386/i386.md (lshr<mode>3): Macroize expander from
24014         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24015         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24016         pattern from *lshr{di,ti}3_1 and corresponding splitters using
24017         DWI mode iterator.
24018         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24019         from corresponding peephole2 patterns.
24020         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
24021         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
24022         and *lshrdi3_1_rex64 using SWI mode iterator.
24023         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
24024         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
24025         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
24026         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
24027         and *lshrdi3_cmp_rex64 using SWI mode iterator.
24028         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
24029         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
24030         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
24031         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
24032         SWI mode iterator.
24034 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
24036         * config/i386/i386.md (ashr<mode>3): Macroize expander from
24037         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
24038         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24039         pattern from *ashr{di,ti}3_1 and corresponding splitters using
24040         DWI mode iterator.
24041         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
24042         from corresponding peephole2 patterns.
24043         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
24044         (ashrsi3_cvt): Rename from ashrsi3_31.
24045         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
24046         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
24047         and x86_64_shift_adj_3 using SWI48 mode iterator.
24048         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
24049         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
24050         and *ashrdi3_1_rex64 using SWI mode iterator.
24051         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
24052         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
24053         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
24054         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
24055         and *ashrdi3_cmp_rex64 using SWI mode iterator.
24056         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
24057         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
24058         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
24059         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
24060         SWI mode iterator.
24061         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
24062         * config/i386/i386.c (ix86_split_ashr): Update for renamed
24063         x86_shift<mode>_adj_3 expanders.
24065 2010-04-10  Wei Guozhi  <carrot@google.com>
24067         PR target/42601
24068         * config/arm/arm.c (arm_pic_static_addr): New function.
24069         (legitimize_pic_address): Call arm_pic_static_addr when it detects
24070         a static symbol.
24071         (arm_output_addr_const_extra): Output expression for new pattern.
24072         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
24074 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
24076         * ira-costs.c (record_reg_classes): Ignore alternatives that are
24077         not enabled.
24079         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
24080         * web.c: Include "insn-config.h" and "recog.h".
24081         (union_match_dups): New function.
24082         (web_main): Call it.
24083         (union_defs): Don't try to recognize match_dups.
24085         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
24086         if doing so would replace the entire pattern.
24088 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24090         PR target/43707
24091         PR target/43709
24092         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
24093         and splitter pattern.  Change splitter operand 1 predicate to
24094         nonmemory_operand.
24096 2010-04-09  Martin Jambor  <mjambor@suse.cz>
24098         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
24099         lattices are addresses of CONST_DECLs with the same initial value.
24100         (ipcp_print_all_lattices): Print values of CONST_DECLs.
24101         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
24103 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
24104             Bernd Schmidt  <bernds@codesourcery.com>
24106         * loop-invariant.c (replace_uses): New static function.
24107         (move_invariant_reg): Use it to ensure we can replace the uses.
24109 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
24111         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
24112         function template.
24113         (picochip_override_options): Enable section anchors only above -O1.
24114         (picochip_reorg): Fixed a couple of build warnings.
24116 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24118         * configure.ac (plugin -rdynamic test): Log result.
24119         * configure: Regenerate.
24120         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
24121         (RDYNAMIC_SPEC): Define.
24122         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
24124 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24126         * configure.ac: Determine Sun ld version numbers.
24127         (comdat_group): Restrict GNU ld version checks to gld.
24128         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
24129         (enable_comdat): Support --enable-comdat.
24130         * configure: Regenerate.
24131         * doc/install.texi (Configuration): Document --enable-comdat.
24133 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24135         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
24136         * config/sol2-gld.h: ... here.
24137         * config.gcc (sparc*-*-solaris2*): Reflect this.
24138         (i[34567]86-*-solaris2*): Use it.
24140 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
24142         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
24143         setup_clocks_p.
24144         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
24146 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24148         PR 42965
24149         * diagnostic.c (diagnostic_initialize): Initialize
24150         some_warnings_are_errors.
24151         (diagnostic_finish): New.
24152         (diagnostic_action_after_output): Call it before exiting.
24153         (diagnostic_report_diagnostic): Do not print message here. Set
24154         some_warnings_are_errors.
24155         * diagnostic.h (diagnostic_context): Delete
24156         issue_warnings_are_errors_message. Add some_warnings_are_errors.
24157         (diagnostic_finish): Declare.
24158         * toplev.c (toplev_main): Call it before exit.
24160 2010-04-09  Jason Merrill  <jason@redhat.com>
24162         PR c++/42623
24163         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
24164         for incomplete type.
24166         PR c++/41788
24167         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
24168         based on a warning flag.
24170 2010-04-09  Richard Guenther  <rguenther@suse.de>
24172         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
24174 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
24176         PR bootstrap/43684
24177         * varasm.c (default_assemble_visibility): Wrap vars that are
24178         set, but unused, by targets without GAS.
24179         * config/rs6000/rs6000.c (paired_emit_vector_compare):
24180         Remove set, but unused, vars.
24181         (rs6000_legitimize_tls_address): Likewise.
24182         (altivec_expand_dst_builtin): Likewise.
24183         * config/darwin.c (machopic_classify_symbol): Likewise.
24184         (machopic_indirection_name): Likewise.
24186 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
24188         * config/i386/i386.md (DWI): New mode iterator.
24189         (S): New mode attribute.
24190         (shift_operand): Ditto.
24191         (shift_immediate_operand): Ditto.
24192         (ashl_input_operand): Ditto.
24193         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
24194         using SDWIM mode iterator.
24195         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
24196         pattern from *ashl{di,ti}3_1 and corresponding splitters using
24197         DWI mode iterator.
24198         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
24199         from corresponding peephole2 patterns.
24200         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
24201         and x86_64_shift_adj_1 using SWI48 mode iterator.
24202         (x86_shift<mode>_adj_2): Ditto.
24203         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
24204         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
24205         using SWI48 mode iterator.
24206         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
24207         *ashldi3_cmp_rex64 using SWI mode iterator.
24208         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
24209         *ashldi3_cconly_rex64 using SWI mode iterator.
24210         * config/i386/i386.c (ix86_split_ashl): Update for renamed
24211         x86_shift<mode>_adj_{1,2}.
24212         (ix86_split_ashr): Ditto.
24213         (ix86_split_lshr): Ditto.
24215 2010-04-09  Richard Guenther  <rguenther@suse.de>
24217         * target.h (builtin_conversion): Pass in input and output types.
24218         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
24219         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
24220         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
24221         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
24223         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
24224         Handle AVX modes.
24225         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
24227 2010-04-09  Richard Guenther  <rguenther@suse.de>
24229         PR target/43152
24230         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
24232 2010-04-09  Richard Guenther  <rguenther@suse.de>
24234         * tree-vectorizer.h (struct _stmt_vec_info): Document
24235         that vectype is the type of the LHS.
24236         (supportable_widening_operation, supportable_narrowing_operation):
24237         Get both input and output vector types as arguments.
24238         (vect_is_simple_use_1): Declare.
24239         (get_same_sized_vectype): Likewise.
24240         * tree-vect-loop.c (vect_determine_vectorization_factor):
24241         Set STMT_VINFO_VECTYPE to the vector type of the def.
24242         (vectorizable_reduction): Adjust.
24243         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
24244         Adjust.  Specify the output vector type.
24245         (vect_pattern_recog_1): Adjust.
24246         * tree-vect-stmts.c (get_same_sized_vectype): New function.
24247         (vectorizable_call): Adjust.
24248         (vectorizable_conversion): Likewise.
24249         (vectorizable_operation): Likewise.
24250         (vectorizable_type_demotion): Likewise.
24251         (vectorizable_type_promotion): Likewise.
24252         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
24253         the def.
24254         (vect_is_simple_use_1): New function.
24255         (supportable_widening_operation): Get both input and output
24256         vector types.
24257         (supportable_narrowing_operation): Likewise.
24258         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
24260 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
24262         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
24263         __thiscall and _thiscall as predefined macros.
24264         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
24265         thiscall attribute handling.
24266         (ix86_comp_type_attributes): Likewise.
24267         (ix86_function_regparm): Likewise.
24268         (ix86_return_pops_args): Likewise.
24269         (init_cumulative_args): Likewise.
24270         (find_drap_reg): Likewise.
24271         (ix86_static_chain): Likewise.
24272         (x86_this_parameter): Likewise.
24273         (x86_output_mi_thunk): Likewise.
24274         (ix86_attribute_table): Add description for thiscall attribute.
24275         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
24276         * doc/extend.texi: Add documentation for thiscall.
24278 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24280         PR c++/28584
24281         * c.opt (Wint-to-pointer-cast): Available in C++.
24282         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
24284 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
24286         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
24287         * calls.c (expand_call): Pass the function type to aggregate_value_p.
24288         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
24289         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
24290         function type instead.  Reorder and simplify checks.
24292         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
24294 2010-04-08  Jing Yu  <jingyu@google.com>
24295             Zdenek Dvorak  <ook@ucw.cz>
24297         PR tree-optimization/42720
24298         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
24299         loop unswitch conditions here from ...
24300         (tree_unswitch_single_loop): ... here.
24302 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24304         * tree-if-conv.c: Fix comments and simplify logic.
24306 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
24308         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
24309         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
24310         (main_tree_if_conversion): Update call to tree_if_conversion.
24312 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24314         PR 42485
24315         * doc/invoke.texi (-b,-V): Delete.
24316         * doc/tm.texi: Do not mention -b.
24317         * gcc.c (display_help): Delete -b and -V.
24318         (process_command): Delete -b and -V.
24319         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
24321 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
24322             Wolfgang Gellerich  <gellerich@de.ibm.com>
24324         Implement target hook for loop unrolling
24325         * target.h (loop_unroll_adjust): Add a new target hook function.
24326         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
24327         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
24328         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
24329         (s390_loop_unroll_adjust): Implement the new target hook for s390.
24330         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
24331         target hook.
24332         (decide_unroll_stupid): Likewise.
24334 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24336         PR target/43643
24337         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
24339 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24341         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
24342         (Specific, *-*-solaris2*): Likewise.
24343         Don't prefer Sun as over GNU as.
24345 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
24347         * config/s390/s390.c (override_options): Adjust the z10 defaults
24348         for max-unroll-times, max-completely-peeled-insns
24349         and max-completely-peel-times.
24351 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24353         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
24354         instructions for z10.
24355         (s390_expand_setmem): Likewise.
24356         (s390_expand_cmpmem): Likewise.
24358 2010-04-08  Richard Guenther  <rguenther@suse.de>
24360         PR tree-optimization/43679
24361         * tree-ssa-pre.c (eliminate): Only propagate copies.
24363 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24365         PR bootstrap/43681
24366         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
24367         set but not used variable warning.
24369 2010-04-08  Wei Guozhi  <carrot@google.com>
24371         PR target/41653
24372         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
24373         (arm_size_rtx_costs): Call the new function when optimized for size.
24375 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
24377         PR debug/43670
24378         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
24379         op0 is not a MEM, just return NULL instead of assertion
24380         failure.
24381         (discover_nonconstant_array_refs): Don't walk debug stmts.
24383 2010-04-08  Doug Kwan  <dougkwan@google.com>
24385         * configure.ac: Recognize gold and do not use its version number
24386         to test ld features.
24387         * configure: Regenerate.
24389 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
24391         PR middle-end/40815
24392         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
24393         (negate_value): Move code to push elements to broken_up_substracts ...
24394         (eliminate_plus_minus_pair): ... here.  Push operands that have no
24395         negative pair to plus_negates.
24396         (repropagate_negates, init_reassoc, fini_reassoc): Update.
24398 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24400         * doc/install.texi (Configuration): Move description of
24401         --enable-lto, --with-libelf*, --enable-gold from Java section to
24402         general section.
24404         * doc/generic.texi (Working with declarations)
24405         (Function Properties, C and C++ Trees): Fix typos.
24406         * doc/sourcebuild.texi (Top Level): Likewise.
24408 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24410         PR c/18624
24411         * tree.h (DECL_READ_P): Define.
24412         (struct tree_decl_common): Add decl_read_flag.
24413         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
24414         a set but not used warning.
24415         (merge_decls): Merge DECL_READ_P flag.
24416         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
24417         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
24418         * c-common.c (handle_used_attribute, handle_unused_attribute):
24419         Likewise.
24420         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
24421         New prototypes.
24422         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
24423         New functions.
24424         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
24425         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
24426         c_parser_binary_expression, c_parser_cast_expression,
24427         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
24428         Call default_function_array_read_conversion instead of
24429         default_function_array_conversion where needed.
24430         (c_parser_unary_expression, c_parser_conditional_expression,
24431         c_parser_postfix_expression_after_primary, c_parser_initelt):
24432         Likewise.  Call mark_exp_read where needed.
24433         (c_parser_statement_after_labels, c_parser_asm_operands,
24434         c_parser_typeof_specifier, c_parser_sizeof_expression,
24435         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
24436         where needed.
24437         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
24438         New.
24439         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
24440         (warn_unused_but_set_parameter): Default to warn_unused
24441         && extra_warnings.
24442         * doc/invoke.texi: Document -Wunused-but-set-variable and
24443         -Wunused-but-set-parameter.
24445         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
24446         used count variable.
24447         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
24448         when operandN variables aren't used in the body of the expander
24449         or splitter.
24450         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
24451         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
24452         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
24453         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
24454         FOR_EACH_IMM_USE_ON_STMT): Likewise.
24455         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
24456         * tree.c (PROCESS_ARG): Likewise.
24458 2010-04-07  Simon Baldwin  <simonb@google.com>
24460         * diagnostic.h (diagnostic_override_option_index): New macro to
24461         set a diagnostic's option_index.
24462         * c-tree.h (c_cpp_error): Add warning reason argument.
24463         * opts.c (_warning_as_error_callback): New.
24464         (register_warning_as_error_callback): Store callback for
24465         warnings enabled via enable_warning_as_error.
24466         (enable_warning_as_error): Call callback, minor code tidy.
24467         * opts.h (register_warning_as_error_callback): Declare.
24468         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
24469         response to -Werror=.
24470         (c_common_init_options): Register warning_as_error_callback in opts.c.
24471         * common.opt: Add -Wno-cpp option.
24472         * c-common.c (struct reason_option_codes_t): Map cpp warning
24473         reason codes to gcc option indexes.
24474         * (c_option_controlling_cpp_error): New function, lookup the gcc
24475         option index for a cpp warning reason code.
24476         * (c_cpp_error): Add warning reason argument, call
24477         c_option_controlling_cpp_error for diagnostic_override_option_index.
24478         * doc/invoke.texi: Document -Wno-cpp.
24480 2010-04-07  Richard Guenther  <rguenther@suse.de>
24482         * ipa-reference.c (mark_load): Use get_base_address.
24483         (mark_store): Likewise.
24485         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
24486         inserting GIMPLE_NOPs into the IL.
24487         * tree-ssa-structalias.c (get_constraint_for_component_ref):
24488         Explicitly strip handled components and indirect references.
24490         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
24491         folding address expressions.
24492         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
24493         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
24494         operand_equal_p to compare decls.
24495         (ptr_deref_may_alias_decl_p): Likewise.
24496         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
24497         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
24498         Handle reversed comparison ops.
24499         * tree-sra.c (asm_visit_addr): Use get_base_address.
24500         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
24501         * ipa-reference.c (mark_address): Use get_base_address.
24503 2010-04-07  Richard Guenther  <rguenther@suse.de>
24505         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
24506         Propagate constants everywhere.
24508 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
24510         PR debug/43516
24511         * tree.c (MAX_INT_CACHED_PREC): Define.
24512         (nonstandard_integer_type_cache): New array.
24513         (build_nonstandard_integer_type): Cache results for precision
24514         <= MAX_INT_CACHED_PREC.
24516 2010-04-07  Richard Guenther  <rguenther@suse.de>
24518         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
24519         -fargument-noalias-global, -fargument-noalias-anything): Remove.
24520         * common.opt: Likewise.
24521         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
24522         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
24523         (nonoverlapping_memrefs_p): Likewise.
24524         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
24525         * opts.c (common_handle_option): Handle OPT_fargument_alias,
24526         OPT_fargument_noalias, OPT_fargument_noalias_anything and
24527         OPT_fargument_noalias_global for backward compatibility.
24529 2010-04-07  Richard Guenther  <rguenther@suse.de>
24531         PR tree-optimization/43270
24532         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
24533         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
24534         * tree-ssa-pre.c (phi_translate_1): Adjust.
24535         (fully_constant_expression): Split out vn_reference handling to ...
24536         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
24537         Fold reads from constant strings.
24538         (vn_reference_lookup): Handle fully constant references.
24539         (vn_reference_lookup_pieces): Likewise.
24540         * Makefile.in (expmed.o-warn): Add -Wno-error.
24542 2010-04-07  Martin Jambor  <mjambor@suse.cz>
24544         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
24546 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
24548         PR driver/41594
24549         * gcc.c: Add -static-libstdc++ to list of recognized options.
24551 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24553         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
24555 2010-04-07  Richard Guenther  <rguenther@suse.de>
24557         PR middle-end/42617
24558         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
24559         bases build simple mem attributes to retain points-to information.
24561 2010-04-07  Richard Guenther  <rguenther@suse.de>
24563         PR middle-end/42617
24564         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
24565         preserve points-to related information.
24567 2010-04-07  Richard Guenther  <rguenther@suse.de>
24569         PR middle-end/42617
24570         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
24571         discard plain indirect references.
24572         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
24573         * tree.c (tree_nop_conversion): Likewise.
24575 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
24577         PR debug/43628
24578         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
24580 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
24582         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
24583         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
24585 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24587         * tree-if-conv.c: Fix indentation and comments.
24589 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24591         * tree-if-conv.c: Sort static functions in topological order.
24593 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
24595         * tree-if-conv.c: Fix indentation and comments.
24597 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24599         PR middle-end/43519
24600         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
24601         lang_hooks.types.type_for_size instead of
24602         build_nonstandard_integer_type.
24603         When converting an unsigned type to signed, double its precision.
24604         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
24605         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
24606         (graphite_create_new_loop_guard): When ub + 1 wraps around,
24607         use lb <= ub.
24609 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24611         PR middle-end/43519
24612         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
24613         POINTER_PLUS_EXPR for pointer types.
24615 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24617         PR middle-end/43519
24618         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
24619         * graphite-clast-to-gimple.c: Include langhooks.h.
24620         (max_signed_precision_type): New.
24621         (max_precision_type): Takes two types as arguments.
24622         (precision_for_value): New.
24623         (precision_for_interval): New.
24624         (gcc_type_for_interval): New.
24625         (gcc_type_for_value): New.
24626         (gcc_type_for_clast_term): New.
24627         (gcc_type_for_clast_red): New.
24628         (gcc_type_for_clast_bin): New.
24629         (gcc_type_for_clast_expr): Split up into several functions.
24630         (gcc_type_for_clast_eq): Rewritten.
24631         (compute_bounds_for_level): New.
24632         (compute_type_for_level_1): New.
24633         (compute_type_for_level): New.
24634         (gcc_type_for_cloog_iv): Removed.
24635         (gcc_type_for_iv_of_clast_loop): Rewritten.
24636         (graphite_create_new_loop): Compute the lower and upper bound types
24637         with gcc_type_for_clast_expr.
24638         (graphite_create_new_loop_guard): Same.
24639         (find_cloog_iv_in_expr): Removed.
24640         (compute_cloog_iv_types_1): Removed.
24641         (compute_cloog_iv_types): Removed.
24642         (gloog): Do not call compute_cloog_iv_types.
24643         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
24644         GBB_CLOOG_IV_TYPES.
24645         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
24646         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
24647         (GBB_CLOOG_IV_TYPES): Removed.
24649 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24651         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
24652         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
24653         (detect_commutative_reduction): Same.
24655 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24657         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
24658         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
24659         argument.
24660         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
24661         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
24662         (rewrite_commutative_reductions_out_of_ssa): Same.
24663         * passes.c (execute_function_todo): Call verify_ssa for every pass
24664         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
24665         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
24666         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
24667         with an extra argument.
24668         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
24669         verify_ssa only when the extra argument is true.
24670         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
24671         with an extra argument.
24672         (tree_transform_and_unroll_loop): Same.
24674 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
24676         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
24677         for all the passes of the LNO having LOOP_CLOSED_SSA.
24678         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
24679         * tree-loop-distribution.c (pass_loop_distribution): Same.
24680         * tree-pass.h (TODO_verify_loops): Removed.
24681         * tree-ssa-loop.c (pass_tree_loop_init): Same.
24682         (pass_lim): Same.
24683         (pass_tree_unswitch): Same.
24684         (pass_predcom): Same.
24685         (pass_vectorize): Same.
24686         (pass_linear_transform): Same.
24687         (pass_graphite_transforms): Same.
24688         (pass_iv_canon): Same.
24689         (pass_complete_unroll): Same.
24690         (pass_complete_unrolli): Same.
24691         (pass_parallelize_loops): Same.
24692         (pass_loop_prefetch): Same.
24693         (pass_iv_optimize): Same.
24695 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
24697         PR middle-end/32824
24698         * passes.c (init_optimization_passes): Move pass_lim before
24699         pass_copy_prop and pass_dce_loop.
24701 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24703         PR target/43667
24704         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
24705         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
24706         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
24707         MULTI_* defines for 4 argument vpermil2p* builtins.
24709 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24711         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
24712         * config/i386/i386.c (x86_maybe_negate_const_int): New.
24713         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
24714         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
24715         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
24716         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
24717         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
24718         Use x86_maybe_negate_const_int to output insn mnemonic.
24719         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
24720         check from instruction predicate.  Update comments.
24721         * config/i386/sync.md (sync_add<mode>): Use
24722         x86_maybe_negate_const_int to output insn mnemonic.
24724 2010-04-06  Jan Hubicka  <jh@suse.cz>
24726         PR tree-optimization/42906
24727         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
24728         IGNORE_SELF argument.  Set visited_control_parents for fully
24729         processed BBs.
24730         (find_obviously_necessary_stmts): Update call of
24731         mark_control_dependent_edges_necessary.
24732         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
24734 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
24736         * config/i386/i386.md: Remove comment about 'e' and 'E'
24737         operand modifier.
24739 2010-04-06  Richard Guenther  <rguenther@suse.de>
24741         PR tree-optimization/43627
24742         * tree-vrp.c (extract_range_from_unary_expr): Widenings
24743         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
24744         not varying.
24746 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
24748         * BASE-VER: Change to 4.6.0.
24750         PR target/43638
24751         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
24752         handling.
24754 2010-04-06  Richard Guenther  <rguenther@suse.de>
24756         PR middle-end/43661
24757         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
24759 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24761         * doc/invoke.texi (Optimize Options): Document that LTO
24762         won't remove object access purely due to incompatible
24763         declarations.
24765 2010-04-04  Matthias Klose  <doko@ubuntu.com>
24767         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
24768         Initialize variable.
24770 2010-04-03  Richard Guenther  <rguenther@suse.de>
24772         PR middle-end/42509
24773         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
24774         require a non-NULL MEM_OFFSET.
24776 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
24778         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
24779         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
24780         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
24781         config/alpha/predicates.md, config/arm/arm.md,
24782         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
24783         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
24784         config/darwin9.h, config/darwin.c, config/darwin.h,
24785         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
24786         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
24787         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
24788         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
24789         config/mips/mips.md, config/mn10300/mn10300.c,
24790         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
24791         config/rs6000/aix.h, config/rs6000/dfp.md,
24792         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
24793         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
24794         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
24795         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
24796         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
24797         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
24798         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
24799         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
24800         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
24801         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
24802         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
24803         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
24804         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
24805         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
24806         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
24807         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
24808         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
24809         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
24810         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
24811         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
24812         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
24813         opt-functions.awk, opth-gen.awk, params.def, passes.c,
24814         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
24815         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
24816         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
24817         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
24818         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
24819         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
24820         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
24821         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
24822         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
24823         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
24824         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
24825         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
24826         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
24827         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
24829 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24831         PR other/43620
24832         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
24833         * aclocal.m4: Regenerate.
24835 2010-04-02  Richard Guenther  <rguenther@suse.de>
24837         PR tree-optimization/43629
24838         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
24839         if we have seen a constant value.
24841 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
24843         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
24845 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
24847         PR target/43469
24848         * arm.c (legitimize_tls_address): Adjust call to
24849         gen_tls_load_dot_plus_four.
24850         (arm_note_pic_base): New function.
24851         (arm_cannot_copy_insn_p): Use it.
24852         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
24853         constraint.
24855 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24857         PR bootstrap/43531
24859         Revert:
24860         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24862         * Makefile.in ($(out_object_file)): Depend on
24863         gt-$(basename $(notdir $(out_file))).h.
24865 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
24867         * config.gcc (lm32-*-rtems*): Add t-lm32.
24869 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
24871         * config.gcc: Add lm32-*-rtems*.
24872         * config/lm32/rtems.h: New file.
24874 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
24876         PR target/42609
24877         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
24879 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
24881         * dwarf2out.c (output_compilation_unit_header): For
24882         -gdwarf-4 use version 4 instead of version 3.
24883         (output_line_info): For version 4 and above emit additional
24884         maximum ops per insn header field.
24885         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
24887         * dwarf2out.c (is_c_family, is_java): Remove.
24888         (lower_bound_default): New function.
24889         (add_bound_info, gen_descr_array_type_die): Use it.
24891 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
24893         PR debug/43325
24894         * dwarf2out.c (gen_variable_die): Allow debug info for variable
24895         re-declaration when it happens in a function.
24897 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
24899         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
24900         (cgraph_remove_function_insertion_hook): Same.
24901         (cgraph_call_function_insertion_hooks): Same.
24903 2010-04-01  Richard Guenther  <rguenther@suse.de>
24905         PR middle-end/43614
24906         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
24907         and TREE_THIS_VOLATILE.
24908         (copy_ref_info): Likewise.
24909         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
24910         * tree.c (build6_stat): Ignore side-effects of all but arg5
24911         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
24912         TARGET_MEM_REF.
24914 2010-04-01  Richard Guenther  <rguenther@suse.de>
24916         PR tree-optimization/43607
24917         * ipa-type-escape.c (check_call): Do not access non-existing
24918         arguments.
24920 2010-04-01  Richard Guenther  <rguenther@suse.de>
24922         PR middle-end/43602
24923         Revert
24924         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
24925                     Jack Howarth  <howarth@bromo.med.uc.edu>
24927         * tree-profile.c (tree_init_ic_make_global_vars): Make static
24928         variables TLS.
24930 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24932         * doc/install.texi (Prerequisites): Document libelf usability on
24933         IRIX 5/6 and Solaris 2.
24934         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
24935         Update GNU as, GNU ld requirements.
24936         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
24937         Document Sun Studio compiler download.
24938         Update and simplify as, ld recommendations.
24939         (Specific, *-*-solaris2.7): Note obsoletion, removal.
24941 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24943         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
24944         with_tune_32 to pentium4.
24946 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
24948         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
24950 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24952         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
24953         obsoletion, removal.
24954         Update IDO URL.
24955         Document GNU as requirement.
24956         Update configure requirements.
24957         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
24958         Recomment IRIX 6.5.18+.
24959         Document IDF/IDL requirement.
24960         Document GNU as requirement.
24961         Document GNU ld bootstrap failure.
24962         Remove freeware.sgi.com reference.
24964 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24966         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
24967         UNIX V4.0, V5.0 obsoletion, removal.
24968         Remove --with-gc=simple reference.
24969         Update VM requirements during bootstrap.
24970         Remove -oldas bootstrap description.
24971         Update binutils reference.
24972         Remove comparison failure note.
24974 2010-03-31  Richard Guenther  <rguenther@suse.de>
24975             Zdenek Dvorak  <ook@ucw.cz>
24976             Sebastian Pop  <sebastian.pop@amd.com>
24978         PR middle-end/43464
24979         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
24980         with multiple arguments.
24981         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
24983 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
24985         * graphite-dependences.c (print_pddr): Call print_pdr with an
24986         extra argument.
24987         * graphite-poly.c (debug_pdr): Add an extra argument for the
24988         verbosity level.
24989         (print_pdr): Same.
24990         (print_pbb_domain): Same.
24991         (print_pbb): Same.
24992         (print_scop_context): Same.
24993         (print_scop): Same.
24994         (print_cloog): Same.
24995         (debug_pbb_domain): Same.
24996         (debug_pbb): Same.
24997         (print_pdrs): Same.
24998         (debug_pdrs): Same.
24999         (debug_scop_context): Same.
25000         (debug_scop): Same.
25001         (debug_cloog): Same.
25002         (print_scop_params): Same.
25003         (debug_scop_params): Same.
25004         (print_iteration_domain): Same.
25005         (print_iteration_domains): Same.
25006         (debug_iteration_domain): Same.
25007         (debug_iteration_domains): Same.
25008         (print_scattering_function): Same.
25009         (print_scattering_functions): Same.
25010         (debug_scattering_function): Same.
25011         (debug_scattering_functions): Same.
25012         * graphite-poly.h (debug_pdr): Update declaration.
25013         (print_pdr): Same.
25014         (print_pbb_domain): Same.
25015         (print_pbb): Same.
25016         (print_scop_context): Same.
25017         (print_scop): Same.
25018         (print_cloog): Same.
25019         (debug_pbb_domain): Same.
25020         (debug_pbb): Same.
25021         (print_pdrs): Same.
25022         (debug_pdrs): Same.
25023         (debug_scop_context): Same.
25024         (debug_scop): Same.
25025         (debug_cloog): Same.
25026         (print_scop_params): Same.
25027         (debug_scop_params): Same.
25028         (print_iteration_domain): Same.
25029         (print_iteration_domains): Same.
25030         (debug_iteration_domain): Same.
25031         (debug_iteration_domains): Same.
25032         (print_scattering_function): Same.
25033         (print_scattering_functions): Same.
25034         (debug_scattering_function): Same.
25035         (debug_scattering_functions): Same.
25037 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25039         * graphite-poly.c (print_scattering_function_1): New.
25040         (print_scattering_function): Call it.
25041         (print_scop_params): Remove spaces at the end of lines.
25042         (print_cloog): New.
25043         (debug_cloog): New.
25044         * graphite-poly.h (print_cloog): Declared.
25045         (debug_cloog): Declared.
25047 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25049         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
25050         in loop->header.
25051         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
25052         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
25053         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
25054         to switch between adding the IV bump in loop->latch or in loop->header.
25056 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
25058         * graphite-poly.c (print_scattering_function): Pretty print following
25059         the scoplib format.
25060         (print_pdr): Same.
25061         (print_pbb_domain): Same.
25062         (dump_gbb_cases): Same.
25063         (dump_gbb_conditions): Same.
25064         (print_pdrs): Same.
25065         (print_pbb): Same.
25066         (print_scop_params): Same.
25067         (print_scop_context): Same.
25068         (print_scop): Same.
25069         (print_pbb_body): New.
25070         (lst_indent_to): New.
25071         (print_lst): Start new lines with a #.
25072         * graphite-poly.h (pbb_bb): New.
25073         (pbb_index): Use pbb_bb.
25074         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
25075         disjuncts.
25076         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
25078 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25080         * dwarf2out.c (size_of_die): For -gdwarf-4 use
25081         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
25082         and 0 instead of 1 for dw_val_class_flag.
25083         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
25084         dw_val_class_range_list, dw_val_class_loc_list,
25085         dw_val_class_lineptr and dw_val_class_macptr, use
25086         DW_FORM_flag_present for dw_val_class_flag and
25087         DW_FORM_exprloc for dw_val_class_loc.
25088         (output_die): For -gdwarf-4 print dw_val_class_loc
25089         size as uleb128 instead of 1 or 2 bytes and don't print
25090         anything for dw_val_class_flag.
25092         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
25093         instead of cselib_lookup following by tweaking locs->setting_insn.
25095         PR bootstrap/43596
25096         * cselib.c (cselib_process_insn): Clear cselib_current_insn
25097         even before returning from label, setjmp call or volatile asm
25098         handling.
25100 2010-03-31  Richard Guenther  <rguenther@suse.de>
25102         PR middle-end/43600
25103         * cgraphunit.c (cgraph_output_in_order): Do not allocate
25104         temporary data on stack.
25106 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25108         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
25109         (PUSHSECTION_ASM_OP): Remove.
25110         (POPSECTION_ASM_OP): Remove.
25111         (PUSHSECTION_FORMAT): Remove.
25112         * config/sol2.h (PUSHSECTION_FORMAT): Define.
25113         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
25114         * config/sol2.c (solaris_output_init_fini): Use it.
25116 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25118         PR 43574
25119         * opt-functions.awk (var_type_struct): Use signed char type
25120         for simple variables.
25122 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25124         * config/sol2.c: Include output.h.
25125         (solaris_assemble_visibility): New function.
25126         * config/t-sol2 (sol2.o): Add output.h dependency.
25127         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
25128         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
25129         Redefine.
25131 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
25133         PR target/43580
25134         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
25135         V2SImode or XFmode on PRE_DEC.
25137         PR debug/43557
25138         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
25139         BLKmode.
25141 2010-03-31  Jie Zhang  <jie@codesourcery.com>
25143         PR 43562
25144         * reload.h (caller_save_initialized_p): Declare.
25145         * toplev.c (backend_init_target): Don't call
25146         init_caller_save but set caller_save_initialized_p to false.
25147         * caller-save.c (caller_save_initialized_p): Define.
25148         (init_caller_save): Check caller_save_initialized_p.
25149         * ira.c (ira): Call init_caller_save if flag_caller_saves.
25151 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25153         PR target/39048
25154         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
25155         and soft-fp/t-softfp to tmake_file.
25156         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
25157         (LIBGCC2_TF_CEXT): Define.
25158         (TF_SIZE): Define.
25160 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
25162         PR debug/42977
25163         * cselib.c (n_useless_values): Document handling of debug locs.
25164         (n_useless_debug_values, n_debug_values): New variables.
25165         (new_elt_loc_list): Don't add to debug values, keep count.
25166         (promote_debug_loc): New.
25167         (cselib_reset_table): Zero new variables.
25168         (entry_and_rtx_equal_p): Promote debug locs.
25169         (discard_useless_locs): Increment n_useless_debug_values for
25170         debug values.
25171         (remove_useless_values): Adjust n_useless_values and n_debug_values
25172         with n_useless_debug_values.
25173         (add_mem_for_addr): Promote debug locs.
25174         (cselib_lookup_mem): Likewise.
25175         (cselib_lookup_addr): Renamed to...
25176         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
25177         (cselib_log_lookup): ... this.  Turn into...
25178         (cselib_lookup_addr): ... new wrapper.
25179         (cselib_lookup_from_insn): New.
25180         (cselib_invalidate_regno): Increment n_useless_debug_values for
25181         debug values.
25182         (cselib_invalidate_mem): Likewise.
25183         (cselib_process_insn): Take n_deleted and n_debug_values into
25184         account to guard remove_useless_value call.
25185         (cselib_finish): Zero n_useless_debug_values.
25186         * cselib.h (cselib_lookup_from_insn): Declare.
25187         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
25188         (sched_analyze_2): Likewise.
25190 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
25192         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
25193         functions.
25194         (adjust_mems): Replace narrowing SUBREG of expression containing
25195         just PLUS, MINUS, MULT and ASHIFT of registers and constants
25196         with operations in the narrower mode.
25198         PR debug/43593
25199         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
25200         regs_invalidated_by_call instead all call_used_reg_set registers.
25202 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
25204         PR middle-end/43430
25205         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
25206         pointer comparisons with types_compatible_p.
25207         * tree-vect-stmts.c (vectorizable_call): Same.
25208         (vectorizable_condition): Same.
25210 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25212         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
25213         stack check if the mask would be zero.
25215 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
25216             Jack Howarth  <howarth@bromo.med.uc.edu>
25218         * tree-profile.c (tree_init_ic_make_global_vars): Make static
25219         variables TLS.
25221 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
25223         PR other/25232
25224         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
25225         and __unordtf2.
25226         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
25227         Include ___unordxf2 and ___unordtf2.
25228         * config/i386/libgcc-glibc.ver: Do not define inheritance from
25229         GCC_4.4.0 here.
25231 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
25233         * config/lm32/t-lm32: New file.
25234         * config.gcc: Use the above file when targetting lm32.
25236 2010-03-28  Duncan Sands  <baldrick@free.fr>
25238         * Makefile.in (PLUGIN_HEADERS): Add except.h.
25240 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
25242         PR middle-end/43431
25243         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
25244         Improve vectorization cost model diagnostic.
25246 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
25248         PR middle-end/43436
25249         * tree-vect-data-refs.c (vect_analyze_data_refs): When
25250         compute_data_dependences_for_loop returns false, early exit
25251         and output an extra diagnostic for the failed data reference
25252         analysis.
25254 2010-03-29  Richard Guenther  <rguenther@suse.de>
25256         PR tree-optimization/43560
25257         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
25258         (can_sm_ref_p): Treat stores to readonly locations as trapping.
25260 2010-03-29  Jie Zhang  <jie@codesourcery.com>
25262         PR 43564
25263         * toplev.c (process_options): Set optimization_default_node
25264         and optimization_current_node.
25265         * opts.c (decode_options): Don't set optimization_default_node
25266         and optimization_current_node.
25268 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
25270         * config/rtems.h: Abandon -qrtems_debug.
25272 2010-03-28  Jan Hubicka  <jh@suse.cz>
25274         PR tree-optimization/43505
25275         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
25276         map should not be copied.
25278 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25280         PR middle-end/41674
25281         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
25282         cdtors, set DECL_PRESERVE_P.
25283         * ipa.c (cgraph_externally_visible_p): Return true if declaration
25284         should be preseved.
25286 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
25288         PR tree-optimization/43528
25289         * stor-layout.c (place_field): Check that constant fits into
25290         unsigned HWI when skipping calculation of MS bitfield layout.
25292 2010-03-27  Jan Hubicka  <jh@suse.cz>
25294         PR middle-end/43391
25295         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
25296         notice_global_symbol work.
25298 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
25300         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
25301         instead of dwarf2out_decl.
25302         (struct var_loc_node): Remove section_label field.
25303         (dwarf2out_function_decl): New function.
25304         (dwarf2out_var_location): Don't set section_label field.
25305         (dwarf2out_begin_function): Don't empty decl_loc_table here.
25307 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
25309         PR tree-optimization/43544
25310         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
25311         First argument for builtin vectorized function hook is now a
25312         tree to be able to distinguish between machine specific and
25313         standard builtins.
25314         * targhooks.c (default_builtin_vectorized_function): Ditto.
25315         * targhooks.h (default_builtin_vectorized_function): Ditto.
25316         * target.h (struct gcc_target): Ditto.
25317         * tree-vect-stmts.c (vectorizable_function): Ditto.
25318         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
25319         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
25320         Ditto.
25322 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
25324         PR c/43381
25325         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
25326         nested binding iff it is a FUNCTION_DECL.
25327         (store_parm_decls_newstyle): Pass nested=true to bind for
25328         FUNCTION_DECLs amongst parameters.
25330 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25332         * var-tracking.c (vt_expand_loc_callback): Don't run
25333         cselib_expand_value_rtx_cb in dummy mode if
25334         cselib_dummy_expand_value_rtx_cb returned false.
25336         * var-tracking.c (emit_note_insn_var_location): For one part
25337         notes with offset 0, don't add EXPR_LIST around the location.
25338         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
25339         add_location_or_const_value_attribute): Adjust for that change.
25341         PR debug/43540
25342         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
25343         into first operand and location into second.
25344         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
25345         dw_cfi_oprnd_loc for DW_CFA_expression.
25346         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
25347         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
25348         assume first argument is regnum and second argument is location.
25350 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25352         PR target/42113
25353         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
25354         of scratch register to DImode.  Split to DImode comparison operator.
25355         Use SImode subreg of scratch register in the multiplication.
25356         (*cmp_sadd_sidi): Ditto.
25357         (*cmp_ssub_si): Ditto.
25358         (*cmp_ssub_sidi): Ditto.
25360 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
25362         PR target/43524
25363         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
25364         Remove invalid assert and wrong comment.
25366 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
25368         PR debug/43516
25369         * flags.h (final_insns_dump_p): New extern.
25370         * final.c (final_insns_dump_p): New variable.
25371         (rest_of_clean_state): Set it before -fdump-final-insns=
25372         dumping, clear afterwards.
25373         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
25374         MEM_ALIAS_SET on MEMs.
25376 2010-03-26  David S. Miller  <davem@davemloft.net>
25378         * configure.ac: Fix sparc GOTDATA_OP bug check.
25379         * configure: Rebuild.
25381 2010-03-26  Alan Modra  <amodra@gmail.com>
25383         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
25385 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25387         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
25388         TLS_SECTION_ASM_FLAG.
25390 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
25392         PR bootstrap/43511
25393         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
25394         Clear first_function_block_is_cold.
25396         PR c/43385
25397         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
25398         argument if the argument is truth_value_p.
25400 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
25402         * config/rs6000/constraints.md: Update copyright year for my changes.
25404         PR target/43484
25405         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
25406         used in reg+reg addressing, swap registers.
25408 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25410         PR debug/43293
25411         * target.h (struct gcc_target): Add code_end hook.
25412         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
25413         if not yet defined.
25414         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
25415         * toplev.c (compile_file): Call targetm.asm_out.code_end
25416         hook before unwind info/debug info output.
25417         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
25418         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
25419         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25420         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
25421         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
25422         * config/i386/i386.c (ix86_file_end): Renamed to...
25423         (ix86_code_end): ... this.  Make static.  Don't call
25424         file_end_indicate_exec_stack.  Emit unwind info using
25425         final_start_function/final_end_function.
25426         (darwin_x86_file_end): Remove.
25427         (TARGET_ASM_CODE_END): Define.
25428         * config/i386/i386.h (TARGET_ASM_FILE_END,
25429         NEED_INDICATE_EXEC_STACK): Don't define.
25430         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
25431         (TARGET_ASM_FILE_END): Define to darwin_file_end.
25432         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
25433         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
25435         PR target/43498
25436         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
25437         at the beginning and final_end_function at the end.
25438         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25440 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25442         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
25443         and Sun as TLS syntax.
25444         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
25445         * configure: Regenerate.
25446         * config.in: Regenerate.
25447         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
25448         (default_elf_asm_named_section): Use it.
25449         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
25450         (i386_output_dwarf_dtprel): Likewise.
25451         (output_addr_const_extra): Likewise.
25452         (output_pic_addr_const): Lowercase @GOTTPOFF.
25453         (output_addr_const_extra): Likewise.
25454         (output_pic_addr_const): Lowercase @GOTNTPOFF.
25455         (output_addr_const_extra): Likewise.
25456         (output_pic_addr_const): Lowercase @INDNTPOFF.
25457         (output_addr_const_extra): Likewise.
25458         (output_pic_addr_const): Lowercase @NTPOFF.
25459         (output_addr_const_extra): Likewise.
25460         (output_pic_addr_const): Lowercase @TPOFF.
25461         (output_addr_const_extra): Likewise.
25462         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
25463         (*tls_global_dynamic_64): Likewise.
25464         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
25465         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
25467         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
25468         (ASM_OUTPUT_TLS_COMMON): Use it.
25469         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
25471         PR target/38118
25472         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
25473         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
25474         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
25475         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
25476         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25477         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
25479 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25481         * config/i386/i386.c (override_options): Don't accept
25482         -mtls-dialect=sun any longer.
25483         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
25484         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
25485         (*tls_local_dynamic_base_32_sun): Likewise.
25486         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
25488 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
25490         PR debug/43508
25491         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
25492         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
25494         PR debug/43479
25495         * ira.c (adjust_cleared_regs): New function.
25496         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
25498         PR debug/19192
25499         PR debug/43479
25500         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
25501         from gimple_block.
25502         * expr.c (expand_expr_real): Restore previous
25503         curr_insn_source_location and curr_insn_block after
25504         expand_expr_real_1 call.
25505         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
25506         instead of expand_expr_real_1.
25508 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
25510         PR rtl-optimization/43413
25511         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
25512         hard regs too.
25514 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
25516         PR target/43348
25517         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
25518         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
25520 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
25522         * config/i386/i386.c (ix86_target_string): Add -mfma.
25523         Fix a typo in comment.
25525 2010-03-22  Mike Stump  <mikestump@comcast.net>
25527         PR target/23071
25528         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
25529         Don't overly align based upon packed packed fields.
25531 2010-03-22  Jason Merrill  <jason@redhat.com>
25533         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
25534         Use () rather than [], and move before the element type.
25536 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25538         * doc/configfiles.texi (Configuration Files): Removed
25539         fixinc/Makefile*, intl/Makefile.*.
25540         * doc/makefile.texi: Fixed markup. Abstract from version
25541         control system used.
25542         (Makefile): Removed obsolete java/parse.y example.
25543         * doc/sourcebuild.texi: Likewise.
25544         (Top Level): Added config, gnattools, libdecnumber, libgcc,
25545         libgomp, libssp.  Removed fastjar.
25546         (Miscellaneous Docs): Clarify location.
25547         Added COPYING3, COPYING3.LIB.
25548         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
25550 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25552         PR target/38085
25553         * config/i386/i386.c (x86_function_profiler)
25554         [!NO_PROFILE_COUNTERS]: Fix typo.
25555         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
25556         instead of callq.
25558 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
25559             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25561         * doc/sourcebuild.texi (Test Directives): Split into six
25562         subsections, with most of the current text in new subsections
25563         Directives, Selectors, and Final Actions.
25564         (Directives): Split list of test directives into multiple
25565         subsubsections.
25566         (Selectors): Describe use and syntax of selectors.
25567         (Effective-Target Keywords): Describe all existing keywords.
25568         (Add Options): Describe features for dg-add-options.
25569         (Require Support): Describe variants of dg-require-support.
25570         (Final Actions): Describe commands to use in dg-final.
25572 2010-03-22  Michael Matz  <matz@suse.de>
25574         PR middle-end/43475
25575         * recog.c (validate_replace_rtx_group): Replace also in
25576         REG_EQUAL and REG_EQUIV notes.
25578 2010-03-22  Richard Guenther  <rguenther@suse.de>
25580         PR tree-optimization/43390
25581         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
25582         sure vector extracts are type correct.
25584 2010-03-22  Richard Guenther  <rguenther@suse.de>
25586         PR middle-end/40106
25587         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
25588         x * sqrt (x) even when optimizing for size if the target
25589         has native support for sqrt.
25591 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
25593         * varasm.c (make_decl_rtl_for_debug): Also clear
25594         flag_mudflap for the duration of make_decl_rtl call.
25596         PR debug/43443
25597         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
25598         locs from preserved VALUEs.
25600 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25602         PR middle-end/42718
25603         * pa.md (movmemsi): Set align to one if zero.
25604         (movmemdi): Likewise.
25606 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
25608         PR target/42321
25609         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
25610         with their corresponding prologue pushes.
25612 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
25614         PR target/43156
25615         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
25616         at the begining or end.
25617         (spu_expand_epilogue): Likewise.
25619 2010-03-20  Richard Guenther  <rguenther@suse.de>
25621         PR rtl-optimization/43438
25622         * combine.c (make_extraction): Properly zero-/sign-extend an
25623         extraction of the low part of a CONST_INT.  Also handle
25624         CONST_DOUBLE.
25626 2010-03-19  Mike Stump  <mikestump@comcast.net>
25628         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
25629         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
25630         (override_options): Use SUBTARGET32_DEFAULT_CPU.
25632 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
25634         PR c/43211
25635         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
25636         an error.
25638 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
25640         PR rtl-optimization/42258
25641         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
25642         use that may match DEF.
25644         PR target/40697
25645         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
25646         the cost of loading the constant rather than assuming
25647         COSTS_N_INSNS (1).
25648         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
25649         outer code is AND, do the same tests as the andsi3 expander and
25650         return COSTS_N_INSNS (1) if and is cheap.
25652         * optabs.c (avoid_expensive_constant): Fix formatting.
25654 2010-03-19  Michael Matz  <matz@suse.de>
25656         PR c++/43116
25657         * attribs.c (decl_attributes): When rebuilding a function pointer
25658         type use the same qualifiers as the original pointer type.
25660 2010-03-19  Martin Jambor  <mjambor@suse.cz>
25662         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
25663         and is_gimple_ip_invariant_address.
25665 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25667         Revert
25668         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25670         * config/arm/arm.c (arm_override_options): Turn off
25671         flag_dwarf2_cfi_asm for AAPCS variants.
25673 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
25675         PR target/43399
25676         * config/arm/arm.c (emit_multi_reg_push): Update comments.
25677         Use PRE_MODIFY instead of PRE_DEC.
25678         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
25679         (vfp_emit_fstmd): Likewise.
25681 2010-03-19  Michael Matz  <matz@suse.de>
25683         PR target/43305
25684         * builtins.c (expand_builtin_interclass_mathfn,
25685         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
25686         if that fails.
25688 2010-03-19  Richard Guenther  <rguenther@suse.de>
25690         PR tree-optimization/43415
25691         * tree-ssa-pre.c (phi_translate): Split out worker to ...
25692         (phi_translate_1): ... this.
25693         (phi_translate): Move all caching here.  Cache all NARY
25694         and REFERENCE translations.
25696 2010-03-19  David S. Miller  <davem@davemloft.net>
25698         With help from Eric Botcazou.
25699         * config/sparc/sparc.c: Include dwarf2out.h.
25700         (emit_pic_helper): Delete.
25701         (pic_helper_symbol_name): Delete.
25702         (pic_helper_emitted_p): Delete.
25703         (pic_helper_needed): New.
25704         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
25705         (get_pc_thunk_name): New.
25706         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
25707         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
25708         Set pic_helper_needed to true.  Don't call emit_pic_helper.
25709         (sparc_expand_prologue): Update load_pic_register call.
25710         (sparc_output_mi_thunk): Likewise.
25711         (sparc_file_end): Emit a hidden comdat symbol for the PIC
25712         thunk if possible.  Output CFI information as needed.
25714 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
25715             Jack Howarth  <howarth@bromo.med.uc.edu>
25717         PR target/36399
25718         * config/i386/i386.h: Fix ABI on darwin x86-32.
25720 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
25722         * tree.h: Declare make_decl_rtl_for_debug.
25723         * varasm.c (make_decl_rtl_for_debug): New.
25724         * dwarf2out.c (rtl_for_decl_location): Call it.
25725         * cfgexpand.c (expand_debug_expr): Call it.
25727 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25729         PR bootstrap/43399
25730         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
25731         mem_mode.
25733         PR bootstrap/43403
25734         * var-tracking.c (vt_init_cfa_base): Do nothing if
25735         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
25737 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
25739         PR debug/42873
25740         * var-tracking.c (canonicalize_vars_star): New.
25741         (dataflow_post_merge_adjust): Use it.
25743 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
25745         PR debug/43058
25746         * var-tracking.c (non_suitable_const): New function.
25747         (add_uses): For DEBUG_INSNs with constants, don't record any
25748         value, instead just the constant value itself.
25749         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
25750         is not VAR_LOC_UNKNOWN_P, set var to the constant.
25751         (emit_notes_in_bb): Likewise.
25752         (emit_note_insn_var_location): For onepart variables if
25753         cur_loc is a VOIDmode constant, use DECL_MODE.
25755 2010-03-18  Martin Jambor  <mjambor@suse.cz>
25757         PR middle-end/42450
25758         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
25759         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
25760         all non-clones.  Moved call redirection...
25761         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
25762         (cgraph_materialize_all_clones): Dispose of all
25763         combined_args_to_skip bitmaps.
25764         (verify_cgraph_node): Do not check for edges pointing to wrong
25765         nodes in inline clones.
25766         * tree-inline.c (copy_bb): Call
25767         cgraph_redirect_edge_call_stmt_to_callee.
25768         * ipa.c (cgraph_remove_unreachable_nodes): Call
25769         cgraph_node_remove_callees even when there are used clones.
25771 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25773         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
25775 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
25777         PR target/43383
25778         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
25779         for 32bit.
25781 2010-03-18  Michael Matz  <matz@suse.de>
25783         PR middle-end/43419
25784         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
25785         into sqrt(x) if we need to preserve signed zeros.
25787 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
25788             Eric Botcazou  <ebotcazou@adacore.com>
25790         PR rtl-optimization/43360
25791         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
25792         note if we don't know its invariant status.
25794 2010-03-18  Michael Matz  <matz@suse.de>
25796         PR tree-optimization/43402
25797         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
25798         PHI chains of ssa names registered for update.
25800 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
25802         PR target/42427
25803         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
25804         non-offsettable and pre_modify update addressing.
25805         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
25806         and "2" alternatives "#".
25807         (*movdd_softfloat32): Make all alternatives "#";
25808         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
25809         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
25810         (*movdf_softfloat32): Make all alternatives "#";
25811         (movdi): Use the new DIFD mode iterator to create a common splitter
25812         for movdi, movdf and movdd patterns.
25814 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
25816         * common.opt (dumpdir): Remove redundant tab.
25818 2010-03-17  Martin Jambor  <mjambor@suse.cz>
25820         PR tree-optimization/43347
25821         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
25822         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
25824 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
25826         PR rtl-optimization/42216
25827         * regrename.c (create_new_chain): New function, broken out from...
25828         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
25829         appending a use to an empty chain.
25830         (build_def_use): Remove previous changes that convert OP_INOUT to
25831         OP_OUT operands; instead detect the case where an OP_INOUT operand
25832         uses a previously untracked register and create an empty chain for it.
25834 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25836         * doc/extend.texi (Function Attributes): Rewrite unfinished
25837         sentence in ms_abi documentation.
25839 2010-03-17  Alan Modra  <amodra@gmail.com>
25841         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
25842         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
25843         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
25844         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
25846 2010-03-16  Richard Henderson  <rth@redhat.com>
25848         PR middle-end/43365
25849         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
25850         (lower_try_finally): Save and restore eh_seq around the expansion
25851         of the try-finally.
25853 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25855         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
25856         statements before splitting block.
25858 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25860         * doc/sourcebuild.texi (Testsuites): Fix markup.
25861         Use pathnames relative to gcc/testsuite.
25862         (Test Directives): Move description of how timeout is determined.
25863         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
25864         (C Tests): Correct gcc.misc-tests directory.
25865         Framework tests now live in gcc.test-framework.
25867 2010-03-16  Richard Guenther  <rguenther@suse.de>
25869         PR middle-end/43379
25870         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
25871         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
25873 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
25874             Alexandre Oliva  <aoliva@redhat.com>
25876         PR tree-optimization/42917
25877         * lambda-code.c (remove_iv): Skip debug statements.
25878         (lambda_loopnest_to_gcc_loopnest): Likewise.
25879         (not_interesting_stmt): Debug statements are not interesting.
25881 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
25883         PR debug/43051
25884         PR debug/43092
25885         * cselib.c (cselib_preserve_constants,
25886         cfa_base_preserved_val): New static variables.
25887         (preserve_only_constants): New function.
25888         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
25889         clear its REG_VALUES.  If cselib_preserve_constants, don't
25890         empty the whole hash table, but preserve there VALUEs with constants,
25891         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
25892         (cselib_preserve_cfa_base_value): New function.
25893         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
25894         (cselib_init): Change argument to int bitfield.  Set
25895         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
25896         is in it.
25897         (cselib_finish): Clear cselib_preserve_constants and
25898         cfa_base_preserved_val.
25899         * cselib.h (enum cselib_record_what): New enum.
25900         (cselib_init): Change argument to int.
25901         (cselib_preserve_cfa_base_value): New prototype.
25902         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
25903         * dse.c (dse_step1): Likewise.
25904         * cfgcleanup.c (thread_jump): Likewise.
25905         * sched-deps.c (sched_analyze): Likewise.
25906         * gcse.c (local_cprop_pass): Likewise.
25907         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
25908         If FN is non-NULL, call the callback always and whenever it returns
25909         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
25910         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
25911         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
25912         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
25913         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
25914         * var-tracking.c: Include recog.h.
25915         (bb_stack_adjust_offset): Remove.
25916         (vt_stack_adjustments): Don't call it, instead just gather the
25917         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
25918         (adjust_stack_reference): Remove.
25919         (compute_cfa_pointer): New function.
25920         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
25921         (struct adjust_mem_data): New type.
25922         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
25923         functions.
25924         (get_address_mode): New function.
25925         (replace_expr_with_values): Use it.
25926         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
25927         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
25928         (adjust_sets): Remove.
25929         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
25930         Use get_address_mode.
25931         (get_adjusted_src): Remove.
25932         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
25933         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
25934         (add_with_sets): Don't call adjust_sets.
25935         (fp_setter, vt_init_cfa_base): New functions.
25936         (vt_initialize): Change return type to bool.  Move most of pool etc.
25937         initialization to the beginning of the function from end.  Pass
25938         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
25939         If !frame_pointer_needed, call vt_stack_adjustment before mos
25940         vector is filled, call vt_init_cfa_base if argp/framep has been
25941         eliminated to sp.  If frame_pointer_needed and argp/framep has
25942         been eliminated to hard frame pointer, set
25943         hard_frame_pointer_adjustment and call vt_init_cfa_base after
25944         encountering fp setter in the prologue.  For MO_ADJUST, call
25945         log_op_type before pusing the op into mos vector, not afterwards.
25946         Call adjust_insn before cselib_process_insn/add_with_sets,
25947         call cancel_changes (0) afterwards.
25948         (variable_tracking_main_1): Adjust for vt_initialize calling
25949         vt_stack_adjustments and returning whether it succeeded or not.
25951 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
25953         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
25954         debug statements.
25956 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
25958         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
25959         has been set.
25960         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
25961         drap_reg has not been set.
25963 2010-03-15  Michael Matz  <matz@suse.de>
25965         PR middle-end/43300
25966         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
25967         use it to expand block copies.
25968         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
25969         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
25970         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
25972 2010-03-15  Richard Guenther  <rguenther@suse.de>
25974         PR tree-optimization/43367
25975         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
25976         elimination check.
25978 2010-03-15  Richard Guenther  <rguenther@suse.de>
25980         PR tree-optimization/43317
25981         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
25983 2010-03-15  Martin Jambor  <mjambor@suse.cz>
25985         PR tree-optimization/43141
25986         * tree-sra.c (create_abstract_origin): New function.
25987         (modify_function): Call create_abstract_origin.
25989 2010-03-15  Chris Demetriou  <cgd@google.com>
25991         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
25992         wasn't copied.
25994 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
25996         PR middle-end/43354
25997         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
25998         call insert_out_of_ssa_copy for default definitions.
26000 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26002         * graphite-clast-to-gimple.c (my_long_long): Defined.
26003         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
26004         * graphite-sese-to-poly.c (my_long_long): Defined.
26005         (scop_ivs_can_be_represented): Use it.
26007 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26009         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
26010         graphite-max-bbs-per-function, and loop-block-tile-size.
26011         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
26012         with "maximum".
26013         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
26015 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26017         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
26018         forward declaration.
26019         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
26020         (add_upper_bounds_from_estimated_nit): New.
26021         (build_loop_iteration_domains): Use it.
26023 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26025         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
26027 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26029         PR middle-end/43306
26030         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
26031         should be an INTEGER_CST.  Also handle CASE_CONVERT.
26033 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26035         * graphite.c (graphite_initialize): To bound the number of bbs per
26036         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
26037         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
26038         * doc/invoke.texi: Document it.
26040 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26042         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
26043         * graphite-sese-to-poly.h (build_poly_scop): Same.
26045 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
26047         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
26048         the number of parameters in the scop.  Use as an upper bound
26049         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
26050         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
26051         * doc/invoke.texi: Document it.
26053 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
26055         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
26056         * doc/c-tree.texi: Remove.
26057         * doc/generic.texi: Merge c-tree.texi here.
26058         * doc/gccint.texi (Trees): Remove menu entry.
26059         (c-tree.texi): Remove @include.
26060         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
26061         * doc/languages.texi (Reading RTL): Ditto.
26063 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
26065         PR target/42869
26066         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
26068 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
26070         PR middle-end/42431
26071         * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
26072         code added to work around reload clobbering CONST insns.
26074 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
26076         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
26077         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
26078         (cselib_preserve_only_values): Remove retain argument, don't
26079         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
26080         * cselib.h (cselib_preserve_only_values): Remove retain argument.
26081         * var-tracking.c (micro_operation): Move insn field before union.
26082         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
26083         (struct variable_tracking_info_def): Remove n_mos field, change
26084         mos into a vector of micro_operations.
26085         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
26086         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
26087         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
26088         changing into a vector.
26089         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
26090         come before all other uops generated by add_stores.
26091         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
26092         argument removal.
26093         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
26094         a vector.  Run just one pass over the bbs instead of separate counting
26095         and computation phase.
26096         (vt_finalize): Free VTI (bb)->mos vector instead of array.
26098         PR debug/43329
26099         * tree-inline.c (remap_decls): Put old_var rather than origin_var
26100         into *nonlocalized_list vector.
26101         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
26102         even if origin is non-NULL.
26103         (gen_variable_die): Likewise.
26104         (process_scope_var): Don't change origin.
26105         (gen_decl_die): Likewise.
26106         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
26107         before adding new edges instead of after it, fix moving over
26108         debug stmts.
26110 2010-03-11  David S. Miller  <davem@davemloft.net>
26112         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
26113         of four.
26114         * configure: Rebuild.
26116 2010-03-11  Martin Jambor  <mjambor@suse.cz>
26118         PR tree-optimization/43257
26119         * tree.c (assign_assembler_name_if_neeeded): New function.
26120         (free_lang_data_in_cgraph): Assembler name assignment moved to the
26121         above new function.
26122         * tree.h (assign_assembler_name_if_neeeded): Declare.
26123         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
26124         the function if needed.
26126 2010-03-11  Chris Demetriou  <cgd@google.com>
26128         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
26129         include/stdint-gcc.h, and include/stdint.h world-readable.
26131 2010-03-11  Richard Guenther  <rguenther@suse.de>
26133         PR tree-optimization/43255
26134         * tree-vrp.c (process_assert_insertions_for): Do not insert
26135         asserts for trivial conditions.
26137 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26139         PR tree-optimization/43280
26140         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
26141         generation.  Move calculation of size out of the if branch.
26142         (find_bswap): Modify compare number generation.
26144 2010-03-11  Richard Guenther  <rguenther@suse.de>
26146         PR lto/43200
26147         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
26148         (input_gimple_stmt): Fixup handled component types during
26149         operand read.  Also fix up decls in ADDR_EXPRs.
26151 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
26153         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
26154         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
26156 2010-03-10  Jan Hubicka  <jh@suse.cz>
26158         PR c/43288
26159         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
26160         * varasm.c (get_variable_section): Don't do that here...
26161         (make_decl_rtl): ... and here.
26162         (do_assemble_alias): Produce decl RTL.
26163         (assemble_alias): Likewise.
26165 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
26167         PR debug/43290
26168         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
26169         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
26170         of fde->vdrap_reg.
26171         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
26172         (based_loc_descr): Only express drap or vdrap regno based expressions
26173         using DW_OP_fbreg when not optimizing.
26174         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
26175         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
26176         REG_CFA_SET_VDRAP note.
26178 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
26180         PR tree-optimization/43236
26181         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
26182         error in calculation of base address in reverse iteration case.
26183         (generate_builtin): Take number of latch executions if the statement
26184         is in the latch.
26186 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
26188         PR middle-end/42859
26189         * tree-eh.c: Include pointer-set.h.
26190         (lower_eh_dispatch): Filter out duplicate case labels and
26191         remove the unneeded edge when the label is unused.  Return
26192         true when some edges are removed.
26193         (execute_lower_eh_dispatch): When any lowering resulted in
26194         removing an edge, also delete unreachable blocks.
26196 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
26198         PR bootstrap/43287
26199         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
26200         UNSPEC_MACHOPIC_OFFSET.
26202 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
26204         PR target/43294
26205         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
26206         (m68k_delegitimize_address): New function.
26208 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
26210         PR debug/43299
26211         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
26213         PR debug/43299
26214         * var-tracking.c (adjust_sets): New function.
26215         (count_with_sets, add_with_sets): Use it.
26216         (get_adjusted_src): New inline function.
26217         (add_stores): Use it.
26219         PR debug/43304
26220         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
26221         call cselib_dummy_expand_value_rtx_cb instead of
26222         cselib_expand_value_rtx_cb.
26224         PR debug/43293
26225         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
26226         * config/i386/i386.c: Include debug.h and dwarf2out.h.
26227         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
26228         and .cfi_endproc around the pic thunks.
26229         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
26230         all queued unwind info register saves are saved before the call.
26231         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
26232         considered as sp-=4 for unwind info and the pop as sp+=4 which
26233         also clobbers dest, but doesn't actually restore it.
26235         PR debug/43290
26236         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
26237         RTX_FRAME_RELATED_P.
26239 2010-03-09  Jie Zhang  <jie@codesourcery.com>
26241         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
26242         whitespaces in output template.
26244 2010-03-09  Jie Zhang  <jie@codesourcery.com>
26246         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
26247         out array boundary.
26249 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26251         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
26252         builtins.exp in a separate job.
26254 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26256         * graphite-sese-to-poly.c (add_param_constraints): Use
26257         lower_bound_in_type and upper_bound_in_type.
26259 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26261         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
26262         instead of unsigned_type_node.
26264 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26265             Reza Yazdani  <reza.yazdani@amd.com>
26267         PR middle-end/43065
26268         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
26269         on pointer type parameters.
26271 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
26273         PR middle-end/42644
26274         PR middle-end/42130
26275         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
26276         handle conversions from pointer to integers.
26277         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
26278         induction variable, to be able to work with code generated by CLooG.
26279         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
26280         (build_poly_scop): Bail out if we cannot codegen a loop.
26282 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
26284         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
26285         code generation with gloog_error.
26287 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26289         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
26290         Call fold_convert on all the returned values.
26291         (expand_scalar_variables_expr): Pass to
26292         expand_scalar_variables_ssa_name the type of the resulting expression.
26294 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26296         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
26297         ppl_min_for_le_pointset.
26298         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
26299         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
26301 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26303         * graphite-dependences.c (map_into_dep_poly): Removed.
26304         (dependence_polyhedron_1): Use combine_context_id_scat.
26306 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26308         * graphite-poly.h (struct poly_scattering): Add layout documentation.
26309         (struct poly_bb): Same.
26310         (combine_context_id_scat): New.
26312 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26314         PR middle-end/42326
26315         * sese.c (name_defined_in_loop_p): Return false for default
26316         definitions.
26318 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26320         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
26321         and clean up the logic.
26323 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
26325         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
26326         early return.
26328 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
26330         * var-tracking.c (remove_cselib_value_chains): Define only for
26331         ENABLE_CHECKING.
26332         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
26333         delete_slot_part, emit_notes_for_differences_1): Don't call
26334         remove_cselib_value_chains here.
26335         (set_slot_part, emit_notes_for_differences_2): Don't call
26336         add_cselib_value_chains here.
26337         (preserved_values): New vector.
26338         (preserve_value): New function.
26339         (add_uses, add_stores, vt_add_function_parameters): Use it
26340         instead of cselib_preserve_value.
26341         (changed_values_stack): New vector.
26342         (check_changed_vars_0): New function.
26343         (check_changed_vars_1, check_changed_vars_2): Use it.
26344         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
26345         changed_values_stack VALUEs.
26346         (vt_emit_notes): For all preserved_values call
26347         add_cselib_value_chains.  If ENABLE_CHECKING call
26348         remove_cselib_value_chains before verifying value_chains is empty.
26349         Initialize and free changed_values_stack.
26350         (vt_initialize): Initialize preserved_values.
26351         (vt_finalize): Free preserved_values.
26353 2010-03-08  Richard Guenther  <rguenther@suse.de>
26355         PR tree-optimization/43269
26356         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
26357         region detection.
26359 2010-03-08  Martin Jambor  <mjambor@suse.cz>
26361         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
26362         (ipa_is_param_called): Removed.
26363         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
26364         (ipa_print_node_params): Do not print the called flag.
26365         (ipa_write_node_info): Do not stream the called flag.
26366         (ipa_read_node_info): Likewise.
26368 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
26370         PR debug/43176
26371         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
26372         * cselib.c (struct expand_value_data): Add dummy field.
26373         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
26374         dummy to false.
26375         (cselib_dummy_expand_value_rtx_cb): New function.
26376         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
26377         any rtl.
26378         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
26379         * var-tracking.c: Include pointer-set.h.
26380         (variable): Change n_var_parts to char from int.  Add
26381         cur_loc_changed and in_changed_variables fields.
26382         (variable_canonicalize): Remove.
26383         (shared_var_p): New inline function.
26384         (unshare_variable): Maintain cur_loc_changed and
26385         in_changed_variables fields.  If var was in changed_variables,
26386         replace it there with new_var.  Just copy cur_loc instead of
26387         resetting it to something else.
26388         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
26389         (dataflow_set_union): Don't call variable_canonicalize.
26390         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
26391         of their DEBUG_EXPR_TREE_DECLs.
26392         (canonicalize_loc_order_check): Verify that cur_loc is NULL
26393         and in_changed_variables and cur_loc_changed is false.
26394         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
26395         and cur_loc_changed.  Don't update cur_loc here.
26396         (variable_merge_over_src): Don't call variable_canonicalize.
26397         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
26398         removing loc that is equal to cur_loc, clear cur_loc,
26399         set cur_loc_changed and ensure variable_was_changed is called.
26400         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
26401         compare pointers in cur_loc check, if it is equal to loc,
26402         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
26403         (variable_different_p): Remove compare_current_location argument,
26404         don't compare cur_loc.
26405         (dataflow_set_different_1): Adjust variable_different_p caller.
26406         (variable_was_changed): If dv had some var in changed_variables
26407         already, reset in_changed_variables flag for it and propagate
26408         cur_loc_changed over to the new variable.  On empty var
26409         always set cur_loc_changed.  Set in_changed_variables on whatever
26410         var is added to changed_variables.
26411         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
26412         Use shared_var_p.  When removing loc that is equal to cur_loc,
26413         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
26414         end, don't set it to something else, just call variable_was_changed.
26415         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
26416         loc being removed, clear cur_loc and set cur_loc_changed.
26417         Set cur_loc_changed if all locations have been removed.
26418         (struct expand_loc_callback_data): New type.
26419         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
26420         allocated.  Always create SUBREGs if simplify_subreg failed.
26421         Prefer to use cur_loc, when that fails and still in
26422         changed_variables (and seen first time) recompute it.  Set
26423         cur_loc_changed of variables which had to change cur_loc and
26424         compute elcd->cur_loc_changed if any of the subexpressions used
26425         had to change cur_loc.
26426         (vt_expand_loc): Adjust to pass arguments in
26427         expand_loc_callback_data structure.
26428         (vt_expand_loc_dummy): New function.
26429         (emitted_notes): New variable.
26430         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
26431         that weren't used for any other decl in current
26432         emit_notes_for_changes call call vt_expand_loc_dummy to update
26433         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
26434         first loc_chain location if NULL before.  Always use just
26435         cur_loc instead of first loc_chain location.  When cur_loc_changed
26436         is false, when not --enable-checking=rtl just don't emit any note.
26437         When rtl checking, compute the note and assert it is the same
26438         as previous note.  Clear cur_loc_changed and in_changed_variables
26439         at the end before removing from changed_variables.
26440         (check_changed_vars_3): New function.
26441         (emit_notes_for_changes): Traverse changed_vars to call
26442         check_changed_vars_3 on each changed var.
26443         (emit_notes_for_differences_1): Clear cur_loc_changed and
26444         in_changed_variables.  Recompute cur_loc of new_var.
26445         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
26446         (vt_emit_notes): Initialize and destroy emitted_notes.
26448 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
26450         PR rtl-optimization/42220
26451         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
26452         Use verify_reg_tracked to determine if we should use OP_OUT rather
26453         than OP_INOUT.
26454         (build_def_use): If we see an in-out operand for a register that we
26455         know nothing about, treat is an output if possible, fail the block if
26456         not.
26458 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26460         PR debug/42897
26461         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
26462         permanently.
26464 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26466         PR debug/42897
26467         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
26468         uses of relevant DEFs that are dead outside the loop too.
26470 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
26472         * var-tracking.c (dataflow_set_merge): Swap src and src2.
26473         Reverted:
26474         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
26475         PR debug/41371
26476         * var-tracking.c (values_to_unmark): New variable.
26477         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
26478         values_to_unmark vector.  Moved body to...
26479         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
26480         instead queue it into values_to_unmark vector.
26481         (vt_find_locations): Free values_to_unmark vector.
26483 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
26485         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
26486         (site.exp): Export them when plugins are enabled.
26488 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
26490         PR middle-end/42326
26491         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
26492         that contain scevs.
26493         (chrec_fold_multiply): Same.
26495 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
26497         PR c/43248
26498         * c-decl.c (build_compound_literal): Return early if init is
26499         an error_mark_node.
26501 2010-03-04  Martin Jambor  <mjambor@suse.cz>
26503         PR tree-optimization/43164
26504         PR tree-optimization/43191
26505         * tree-sra.c (type_consists_of_records_p): Reject records with
26506         zero-size bit-fields at the end.
26508 2010-03-04  Mike Stump  <mikestump@comcast.net>
26510         * Makefile.in (TAGS): Remove *.y.
26512 2010-03-04  Richard Guenther  <rguenther@suse.de>
26514         PR tree-optimization/40761
26515         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
26516         in reverse order.
26517         (my_rev_post_order_compute): New function.
26518         (init_pre): Call it.
26520 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
26522         PR middle-end/43209
26523         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
26524         decrease the cost of an IV candidate when the cost is infinite.
26526 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26528         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
26529         Use '3DNow!' for the extension of that name, ensure normal space
26530         after the string.
26531         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
26533 2010-03-03  Jeff Law  <law@redhat.com>
26535         * PR middle-end/32693
26536         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
26537         than gen_rtx_SUBREG.
26538         (extract_bit_field_1): Likewise.
26540 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
26542         * doc/sourcebuild.texi (Test directives): Document that arguments
26543         include-opts and exclude-opts are now optional for dg-skip-if,
26544         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
26546 2010-03-03  Jason Merrill  <jason@redhat.com>
26548         PR c++/12909
26549         * cgraph.h (varpool_node): Add extra_name field.
26550         * varpool.c (varpool_extra_name_alias): New.
26551         (varpool_assemble_decl): Emit extra name aliases.
26552         (varpool_mark_needed_node): Look past an extra name alias.
26553         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
26554         * lto-streamer-in.c (lto_input_tree): Read it.
26555         * lto-streamer-out.c (output_unreferenced_globals): Write it.
26557 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
26559         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
26560         (sparc*-*-solaris2*): ...this.
26562 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
26564         PR debug/43229
26565         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
26566         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
26567         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
26568         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
26570         PR debug/43237
26571         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
26572         fallthrough to default handling, just with want_address 0 instead of 2.
26573         For single element lists, add_AT_loc directly, otherwise create an
26574         artificial variable DIE and stick location list to it.
26576         PR debug/43177
26577         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
26578         (VAL_EXPR_HAS_REVERSE): Define.
26579         (reverse_op): New function.
26580         (add_stores): For reversible operations add an extra MO_VAL_USE.
26582 2010-03-02  Jason Merrill  <jason@redhat.com>
26584         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
26586 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
26588         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
26589         (sparc64-*-linux*): Likewise.
26590         (sparc64-*-solaris2*): Include assembler files before linker ones.
26591         (sparc-*-solaris2*): Simplify and reorder to match previous case.
26592         * config/sparc/gas.h: Delete.
26593         * config/sparc/sol2-64.h: Add copyright notice.
26594         * config/sparc/sol2-gas-bi.h: Likewise.
26595         * config/sparc/sol2-gld.h: Likewise.
26596         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
26597         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
26598         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
26599         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
26600         (sparc_elf_asm_named_section): Rename into...
26601         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
26603 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
26605         * config/alpha/alpha.c (override_options): Fix -mtune error message.
26607 2010-03-02  Jeff Law  <law@redhat.com>
26609         PR middle-end/42431
26610         * reload1.c (rtx_p, substitute_stack): Declare.
26611         (substitute): Record addresses of changed rtxs.
26612         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
26613         Restore the original rtx when complete.
26614         (reload): Free subsitute_stack when complete.
26616 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
26618         * doc/gccint.texi (menu): Add Testsuites as a chapter.
26619         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
26620         new chapter.
26621         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
26622         LTO Testing, gcov Testing, profopt Testing, compat Testing,
26623         Torture Tests): Change from subsection to section.
26625 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
26626             Steven Bosscher  <steven@gcc.gnu.org>
26628         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
26629         instead of bb.
26631 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
26633         PR middle-end/42640
26634         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
26635         the assignment from the new induction variable to the assignment
26636         of the value from the original loop PHI function.
26638 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
26639             Daniel Jacobowitz  <dan@codesourcery.com>
26641         * doc/sourcebuild.texi (Test directives): Clarify options to
26642         dg-skip-if.
26644 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26646         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
26647         Disable cfi directives unless GCC and gas agree on using read-only
26648         .eh_frame sections for 64-bit.
26649         * configure: Regenerate.
26651 2010-03-01  Richard Guenther  <rguenther@suse.de>
26653         PR tree-optimization/43220
26654         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
26655         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
26657 2010-03-01  Richard Guenther  <rguenther@suse.de>
26658             Martin Jambor  <mjambor@suse.cz>
26660         PR middle-end/41250
26661         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
26662         gimplified parameters.
26664 2010-03-01  Christian Bruel  <christian.bruel@st.com>
26666         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
26668 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
26670         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
26672 2010-03-01  Richard Guenther  <rguenther@suse.de>
26674         PR middle-end/43213
26675         * expr.c (expand_assignment): Use the alias-oracle to tell
26676         if the rhs aliases the result decl.
26678 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26680         PR pch/14940
26681         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
26682         to sol_gt_pch_get_address.
26683         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
26684         64-bit, SPARC and x86.
26685         (sol_gt_pch_get_address): New function.
26687 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
26689         * toplev.h (inform_n, error_n): Declare.
26690         * diagnostic.c (inform_n, error_n): New function.
26692 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
26694         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
26695         has no rtl yet when processing local_decls, queue it and recheck
26696         if deferred stack allocation hasn't assigned it rtl.
26698 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
26700         * config/sh/sh.c (unspec_bbr_uid): New.
26701         (gen_block_redirect): Use it instead of INSN_UID.
26702         (gen_far_branch): Likewise.
26704 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
26706         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
26707         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
26709 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26711         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
26712         (Warning Options): -Wno-conversion-null is valid for
26713         Objective-C++ as well.
26714         * doc/tm.texi (Named Address Spaces): Likewise.
26715         * doc/plugins.texi (Plugins): Replace TABs with spaces.
26716         * doc/tree-ssa.texi (Tree SSA): Likewise.
26718 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26720         PR bootstrap/43202
26721         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
26722         by default.  Don't set the default arch for
26723         i[34567]86-*-darwin*|x86_64-*-darwin*.
26725 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26727         PR bootstrap/43202
26728         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
26729         default.  Set the default 32bit/64bit archs with $with_arch
26730         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
26732 2010-02-27  Richard Guenther  <rguenther@suse.de>
26734         PR tree-optimization/43186
26735         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
26736         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
26737         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
26738         unroller iterations.
26740 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
26742         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
26743         required and i[34567]86-*-* targets don't support 64bit ISA.
26745 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
26747         PR ada/43096
26748         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
26749         the same alias set.
26751 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26753         * config.gcc: Set the default arch at least to Prescott for
26754         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
26755         if SSE math is enabled.
26757 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26759         * diagnostic.c (diagnostic_initialize): Update.
26760         (diagnostic_report_diagnostic): Test inhibit_notes_p for
26761         informative notes.
26762         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
26763         (diagnostic_inhibit_notes): New.
26764         * toplev.c (process_options): inhibit notes with -fcompare-debug.
26766 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26768         PR c/20631
26769         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
26770         * doc/standards.texi: Likewise.
26771         * doc/extend.texi: Likewise.
26772         * doc/trouble.texi: Likewise.
26773         * doc/cppopts.texi: Likewise.
26774         * doc/install.texi: Likewise.
26775         * c.opt (std=c90,std=gnu90): New options.
26776         * c-opts.c (c_common_handle_option): Handle them.
26778 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26780         PR c/24577
26781         * c-decl.c (undeclared_variable): Use an informative note.
26783 2010-02-26  Richard Guenther  <rguenther@suse.de>
26785         PR tree-optimization/43186
26786         * gimple.h (gimple_fold): Remove.
26787         * gimple.c (gimple_fold): Remove.  Inline into single user ...
26788         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
26789         Try harder for conditions.
26791 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26793         PR debug/43190
26794         * function.c (used_types_insert): Don't skip through named pointer
26795         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
26796         and it is different from the main variant's type.
26798 2010-02-26  Nick Clifton  <nickc@redhat.com>
26800         * config/rx/rx.md (sminsi3): Remove bogus alternative.
26802 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
26804         * config.gcc: Support --with-fpmath=sse for x86.
26806         * config/i386/ssemath.h: New.
26808         * doc/install.texi (--with-fpmath=sse): Documented.
26810 2010-02-26  Richard Guenther  <rguenther@suse.de>
26812         PR tree-optimization/43188
26813         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
26814         vector types of over-aligned element type.
26816 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
26818         PR target/43175
26819         * config/i386/i386.c (expand_vec_perm_blend): Use correct
26820         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
26822 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
26824         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
26826 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
26828         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
26829         * var-tracking.c: Include diagnostic.h.
26830         (debug_dv): New function.
26831         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
26833         PR debug/43160
26834         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
26835         (add_value_chain, add_value_chains, remove_value_chain,
26836         remove_value_chains): Handle DEBUG_EXPRs.
26837         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
26839         PR debug/43161
26840         * regcprop.c (struct queued_debug_insn_change): New type.
26841         (struct value_data_entry): Add debug_insn_changes field.
26842         (struct value_data): Add n_debug_insn_changes field.
26843         (debug_insn_changes_pool): New variable.
26844         (free_debug_insn_changes, apply_debug_insn_changes,
26845         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
26846         (kill_value_one_regno): Call free_debug_insn_changes if needed.
26847         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
26848         fields.
26849         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
26850         changes for them.
26851         (copyprop_hardreg_forward_1): Don't call apply_change_group for
26852         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
26853         changes, call cprop_find_used_regs via note_stores.
26854         (copyprop_hardreg_forward): When copying vd from predecessor
26855         which has any queued DEBUG_INSN changes, make sure the pointers are
26856         cleared.  At the end call df_analyze and then if there are any
26857         DEBUG_INSN changes queued at the end of some basic block for still
26858         live registers, apply them.
26859         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
26861 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
26863         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
26864         (arm*-*-*): Ditto.
26866 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
26868         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
26869         targets.  Set the default with_cpu/with_arch from arch/cpu.
26870         Allow x86-64 and native for with_cpu/with_arch.
26872 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
26874         * ebitmap.c: Change calls to verify_popcount with calls to
26875         sbitmap_verify_popcount.
26876         (ebitmap_clear_bit): Fixed map->cacheindex test and
26877         map>cache update when bit clearing results in an empty
26878         element.
26880 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
26882         PR target/43154
26883         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
26884         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
26885         and support both V2DF and V2DI modes.
26886         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
26887         support both V2DF and V2DI modes.
26888         (general): Delete trailing whitespace from a few patterns.
26890         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
26891         V2DF/V2DI interleave high/low builtins.
26893         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
26894         new VSX builtins.
26896         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
26897         interleave high/low functions.
26899 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
26901         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
26902         #pragma extern_prefix.
26904 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
26906         PR debug/43166
26907         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
26908         BLKmode, assert op0 is a MEM and just adjust its mode.
26910         PR debug/43165
26911         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
26912         if bitpos isn't multiple of mode's bitsize.
26914 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26916         * c.opt (-ftemplate-depth=): New.
26917         (-ftemplate-depth-): Deprecate.
26918         * optc-gen.awk: Handle -ftemplate-depth=.
26919         * opth-gen.awk: Likewise.
26920         * c-opts.c (c_common_handle_option): Likewise.
26921         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
26923 2010-02-24  Jason Merrill  <jason@redhat.com>
26925         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
26927 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26929         * cfg.c (alloc_aux_for_block): Remove inline.
26930         (alloc_aux_for_edge): Likewise.
26932 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26934         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
26936 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
26938         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
26939         * config/i386/sol2-gas.h: New file.
26940         * config.gcc (i[34567]86-*-solaris2*): Use it.
26942 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26944         PR c/43128
26945         * c-typeck.c (ep_convert_and_check): New.
26946         (build_conditional_expr): Use it.
26947         (build_binary_op): Likewise.
26949 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
26951         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
26953         PR debug/43150
26954         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
26955         bounds even for -O+.
26956         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
26957         expr needs to have DECL_NAME set.
26959 2010-02-24  Nick Clifton  <nickc@redhat.com>
26961         * config/mep/mep.c: Include gimple.h.
26962         (mep_function_uses_sp): Delete unused function.
26963         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
26964         parameters.  Use unsigned integers to count args.  Return a
26965         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
26967 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26969         PR target/43107
26970         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
26971         greater or equal to nelt instead of 2 * nelt.
26972         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
26973         with nelt - 1.
26975 2010-02-23  Jason Merrill  <jason@redhat.com>
26977         PR debug/42800
26978         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
26979         in cfun->local_decls even if they have register types.
26981         PR c++/42837
26982         * stor-layout.c (place_field): Don't warn about unnecessary
26983         DECL_PACKED if the type is packed.
26985 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
26987         PR target/43139
26988         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
26989         GOTOFF relocs, even when the base reg isn't pic pointer.
26991 2010-02-23  Michael Matz  <matz@suse.de>
26993         PR debug/43077
26994         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
26995         (expand_gimple_basic_block): Generate and use debug temps if there
26996         are debug uses left after the last real use of TERed ssa names.
26997         Unlink debug immediate uses when they are expanded.
26999 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27001         PR 43123
27002         * config/i386/i386.c (override_options): Reorganise to provide
27003         better error messages.
27005 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27007         PR middle-end/43083
27008         * graphite-scop-detection.c (create_single_exit_edge): Move
27009         the call to find_single_exit_edge to....
27010         (create_sese_edges): ...here.  Don't handle multiple edges
27011         exiting the function.
27012         (build_graphite_scops): Don't handle multiple edges
27013         exiting the function.
27015 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27017         PR middle-end/43097
27018         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
27019         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
27021 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
27023         PR middle-end/43026
27024         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
27026 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27028         PR c++/43126
27029         * c-typeck.c (convert_arguments): Print declaration location.
27030         * c-common.c (validate_nargs): Rename as
27031         builtin_function_validate_nargs.
27032         (check_builtin_function_arguments): Update.
27034 2010-02-22  Richard Guenther  <rguenther@suse.de>
27036         PR lto/43045
27037         * tree-inline.c (declare_return_variable): Use the type of
27038         the call stmt lhs if available.
27040 2010-02-22  Duncan Sands  <baldrick@free.fr>
27042         * passes.c (register_pass): Always consider all pass lists when
27043         ref_pass_instance_number is zero.
27045 2010-02-22  Richard Guenther  <rguenther@suse.de>
27047         PR tree-optimization/42749
27048         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
27049         parameter.  Do arithmetic in the original type.
27050         (update_accumulator_with_ops): Likewise.
27051         (adjust_accumulator_values): Adjust.
27053 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27055         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
27056         (QI to BLKmode splitter): New splitter.
27058 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
27060         * config/i386/i386.c (initial_ix86_tune_features): Turn on
27061         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
27063 2010-02-22  Richard Guenther  <rguenther@suse.de>
27065         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
27067 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
27069         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
27070         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
27071         ($(T)crti.o, $(T)crtn.o): Remove rules.
27073 2010-02-21  Tobias Burnus  <burnus@net-b.de>
27075         PR fortran/35259
27076         * doc/invoke.texi (-fassociative-math): Document that this
27077         option is automatically enabled for Fortran.
27079 2010-02-20  David S. Miller  <davem@davemloft.net>
27081         * configure.ac: Test if linker and assembler properly support
27082         GOTDATA_OP relocations.
27083         * configure: Rebuild.
27084         * config.in: Likewise.
27085         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
27086         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
27087         (movsi_high_pic): Likewise.
27088         (movdi_lo_sum_pic): Likewise.
27089         (movdi_high_pic): Likewise.
27090         (movsi_pic_gotdata_op): New pattern.
27091         (movdi_pic_gotdata_op): Likewise.
27092         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
27093         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
27095 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
27097         PR target/43067
27098         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
27099         attribute to ssemul.
27100         (xop_mulv2div2di3_high): Ditto.
27102 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27104         PR c++/35669
27105         * c.opt (Wconversion-null): New option.
27106         * doc/invoke.texi (Wconversion-null): Document.
27108 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27110         * common.opt (Wlarger-than-): Add Undocumented.
27112 2010-02-19  Mike Stump  <mikestump@comcast.net>
27114         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
27116 2010-02-19  Jason Merrill  <jason@redhat.com>
27118         PR target/40332
27119         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
27120         * configure: Likewise.
27122 2010-02-20  Alan Modra  <amodra@gmail.com>
27124         PR middle-end/42344
27125         * cgraph.h (cgraph_make_decl_local): Declare.
27126         * cgraph.c (cgraph_make_decl_local): New function.
27127         (cgraph_make_node_local): Use it.
27128         * cgraphunit.c (cgraph_function_versioning): Likewise.
27129         * ipa.c (function_and_variable_visibility): Likewise.
27131 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27133         PR bootstrap/43121
27134         * except.c (sjlj_emit_function_enter): Don't call
27135         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
27136         directly.
27137         * rtl.h (add_reg_br_prob_note): Remove prototype.
27139 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27141         PR 41779
27142         * c-common.c (conversion_warning): Remove widening conversions
27143         before checking the conversion of integers to reals.
27145 2010-02-19  Mike Stump  <mikestump@comcast.net>
27147         PR middle-end/43125
27148         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
27150         PR objc/43061
27151         * cgraphunit.c (process_function_and_variable_attributes): Check
27152         DECL_PRESERVE_P instead of looking up attribute "used".
27153         * ipa-pure-const.c (check_decl): Likewise.
27154         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
27155         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
27156         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
27157         instead of attribute "used".
27158         * config/sol2-c.c (solaris_pragma_init): Likewise.
27159         (solaris_pragma_fini): Likewise.
27161 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27163         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
27164         Use XCNEW instead of xcalloc.
27165         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
27166         XNEW instead of xmalloc.
27167         (get_fields): Use XNEWVEC instead of xmalloc.
27169         PR debug/43084
27170         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
27171         populate vars array.
27172         (create_new_general_access): For debug stmts just reset value.
27173         (get_stmt_accesses): For accesses within debug stmts just record them
27174         using add_access_to_acc_sites instead of preventing the peeling or
27175         counting them as accesses.
27177         PR middle-end/42233
27178         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
27180 2010-02-19  Richard Guenther  <rguenther@suse.de>
27182         PR tree-optimization/42916
27183         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
27184         instructions.
27186 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
27188         * configure.ac: Replace all uses of changequote in macro arguments
27189         with proper quoting.
27191 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27193         PR middle-end/42233
27194         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
27196 2010-02-19  Richard Guenther  <rguenther@suse.de>
27198         PR tree-optimization/42944
27199         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
27200         test for aliasing with errno.
27202 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
27204         PR middle-end/42233
27205         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
27206         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
27207         * dojump.c: Include output.h.
27208         (inv): New inline function.
27209         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
27210         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
27211         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
27212         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
27213         argument, pass it down to other calls.
27214         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
27215         add REG_BR_PROB note to the conditional jump.
27216         * cfgexpand.c (add_reg_br_prob_note): Removed.
27217         (expand_gimple_cond): Don't call it, add the probability
27218         as last argument to jumpif_1/jumpifnot_1.
27219         * Makefile.in (dojump.o): Depend on output.h.
27220         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
27221         callers.
27222         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
27223         * stmt.c (do_jump_if_equal): Likewise.
27224         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
27225         * loop-unswitch.c (compare_and_jump_seq): Likewise.
27226         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
27227         Likewise.
27228         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
27229         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
27230         jumpifnot_1 callers.
27231         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
27232         callers.
27233         (store_expr): Adjust jumpifnot caller.
27234         (store_constructor): Adjust jumpif caller.
27236         PR middle-end/42233
27237         * gimplify.c (gimple_boolify): For __builtin_expect call
27238         gimple_boolify also on its first argument.
27240 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
27242         * configure.ac (gnu-unique-object): Wrap regexps using [] in
27243         changequote block.
27244         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
27245         * configure: Regenerated.
27247 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
27249         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
27250         lang_hooks.types_compatible_p instead of comptypes.
27252 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
27254         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
27255         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
27256         if __prefer_thumb__ is defined.
27258 2010-02-18  Martin Jambor  <mjambor@suse.cz>
27260         PR tree-optimization/43066
27261         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
27262         array with zero-sized element type.
27264 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
27266         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
27267         rtx, allocate struct var_loc_node here and return it to the
27268         caller, and only if it is actually needed.
27269         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
27270         move it earlier and return immediately if it returns NULL.
27272 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
27274         * config/sparc/gas.h: New file.  Restore
27275         TARGET_ASM_NAMED_SECTION to its ELF default.
27276         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
27277         check !HAVE_GNU_AS.
27278         * config/sparc/sparc.c (sparc_elf_asm_named_section):
27279         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
27280         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
27281         after sparc/sysv4.h.
27283 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
27285         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
27287 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
27289         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
27290         patterns from predicated pattern.
27292 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
27294         PR target/43103
27295         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
27296         for insn mnemonic suffix.
27298 2010-02-17  Richard Guenther  <rguenther@suse.de>
27300         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
27301         to loop PHI nodes.
27303 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
27305         PR debug/42918
27306         * caller-save.c (save_call_clobbered_regs): If BB ends with
27307         a DEBUG_INSN, move any notes in between last real insn and the last
27308         DEBUG_INSN after the last DEBUG_INSN.
27310 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
27312         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
27313         Fix return type.  Fix argument type.  Explain meaning of return value.
27315 2010-02-16  Richard Guenther  <rguenther@suse.de>
27317         PR tree-optimization/41043
27318         * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
27319         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
27320         statements ...
27321         (vrp_visit_phi_node): ... but only for loop PHI nodes.
27323 2010-02-16  Ira Rosen  <irar@il.ibm.com>
27325         PR tree-optimization/43074
27326         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
27327         * tree-vect-loop.c (vect_analyze_loop_operations): Add
27328         vectorizable cycles in hybrid SLP check.
27329         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
27331 2010-02-16  Richard Guenther  <rguenther@suse.de>
27333         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
27334         (true_dependence): If memrefs_conflict_p computes must-alias
27335         trust it.  Move TBAA check after offset-based disambiguation.
27336         (canon_true_dependence): Likewise.
27338 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
27340         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
27341         * doc/invoke.texi: Document it.
27342         * var-tracking.c: Include toplev.h and params.h.
27343         (vt_find_locations): Return bool indicating success.  Compute
27344         hash sizes unconditionally.  Check new parameter, report.
27345         (variable_tracking_main_1): Check vt_find_locations results and
27346         retry.  Renamed from...
27347         (variable_tracking_main): ... this.  New wrapper to preserve
27348         flag_var_tracking_assignments.
27349         * Makefile.in (var-tracking.o): Adjust dependencies.
27351 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
27352             Jakub Jelinek  <jakub@redhat.com>
27354         PR target/42854
27355         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
27356         if weak_import attribute is present.
27357         * config/darwin.c (machopic_select_section): Likewise.
27359 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
27361         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
27362         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
27363         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
27364         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
27366         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
27367         types.
27369         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
27370         Fix argument types.
27372         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
27373         Rewrite text to refer to the names.
27375 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
27377         * config/i386/i386-builtin-types.def
27378         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
27379         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
27380         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
27381         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
27382         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
27383         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
27384         IX86_BUILTIN_VPERMIL2PS256.
27385         (MULTI_ARG_4_DF2_DI_I): Defined.
27386         (MULTI_ARG_4_DF2_DI_I1): Defined.
27387         (MULTI_ARG_4_SF2_SI_I): Defined.
27388         (MULTI_ARG_4_SF2_SI_I1): Defined.
27389         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
27390         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
27391         __builtin_ia32_vpermil2ps256.
27392         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27393         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27394         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
27395         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
27396         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
27397         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
27398         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
27399         CODE_FOR_xop_vpermil2v8sf3.
27400         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
27401         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
27402         * config/i386/xopintrin.h (_mm_permute2_pd): New.
27403         (_mm256_permute2_pd): New.
27404         (_mm_permute2_ps): New.
27405         (_mm256_permute2_ps): New.
27407 2010-02-15  Nick Clifton  <nickc@redhat.com>
27409         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
27410         boolean parameters.  Use emit_jump_insn when emitting a pop
27411         instruction containing a return insn.
27412         (push): Use 'true' rather than '1' as second parameter to F.
27413         (h8300_expand_prologue): Likewise.
27414         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
27415         (h8300_expand_epilogue): Likewise.
27417 2010-02-15  Richard Guenther  <rguenther@suse.de>
27419         PR middle-end/43068
27420         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
27421         if that is zero.
27423 2010-02-15  Nick Clifton  <nickc@redhat.com>
27425         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
27426         delta.
27428 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
27430         * intl.c (fake_ngettext): New function.
27431         * intl.h (fake_ngettext): Declare.
27432         (ngettext): Define macro.
27433         * collect2.c (notice_translated): New function.
27434         (main): Use notice_translated and ngettext.
27435         * collect2.h (notice_translated): Declare.
27437 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
27439         * reorg.c (delete_computation): Comment fixes.
27440         * caller-save.c (setup_save_areas): Idem.
27441         * sel-sched-dump.c (dump_lv_set): Idem.
27442         * rtl.def: Idem.
27444 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27446         * config/s390/s390.c (s390_sched_init): New function.
27447         (TARGET_SCHED_INIT): Target hook defined.
27449 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
27450             Jack Howarth  <howarth@bromo.med.uc.edu>
27451             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
27453         PR target/42982
27454         Partial revert of unintended change in fix for PR41605.
27455         * config/darwin.h: Fix typo.
27456         * config/darwin9.h: Same.
27458 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27460         * c-pch.c (pch_init): Clear v.
27462 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27464         PR middle-end/42930
27465         * graphite-scop-detection.c (graphite_can_represent_scev): Call
27466         graphite_can_represent_init for MULT_EXPR.
27468 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27470         PR middle-end/42914
27471         PR middle-end/42530
27472         * graphite-sese-to-poly.c (remove_phi): New.
27473         (translate_scalar_reduction_to_array): Call remove_phi.
27475 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27477         PR middle-end/42771
27478         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
27479         * graphite-clast-to-gimple.h (gloog): Update declaration.
27480         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
27481         * graphite-poly.h (struct poly_bb): Add missing comments.
27482         (struct scop): Add poly_scop_p field.
27483         (POLY_SCOP_P): New.
27484         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
27485         * graphite.c (graphite_transform_loops): Build the polyhedral
27486         representation for each scop before code generation.
27487         * sese.c (rename_variables_in_operand): Removed.
27488         (rename_variables_in_expr): Return the renamed expression.
27489         (rename_sese_parameters): New.
27490         * sese.h (rename_sese_parameters): Declared.
27492 2010-02-11  Richard Guenther  <rguenther@suse.de>
27494         PR tree-optimization/42998
27495         * tree-ssa-pre.c (create_expression_by_pieces): Treat
27496         POINTER_PLUS_EXPR properly.
27498 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
27499             Changpeng Fang  <changpeng.fang@amd.com>
27501         PR middle-end/40886
27502         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
27503         the cost of an IV candidate when the IV is used in a test against zero.
27505         * gcc.dg/tree-ssa/ivopts-3.c: New.
27507 2010-02-11  Richard Guenther  <rguenther@suse.de>
27509         PR lto/41664
27510         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
27511         pointer-vs-decl case by swapping refs.  Handle some cases
27512         of pointer-vs-decl disambiguations more conservatively.
27513         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
27514         to false after expanding.
27516 2010-02-11  Richard Guenther  <rguenther@suse.de>
27518         PR driver/43021
27519         * gcc.c (process_command): Handle LTO file@offset case more
27520         appropriately.
27522 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
27524         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
27525         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
27526         of DEBUG_INSNs.
27527         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
27529         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
27530         if MEM's mode size isn't DWARF2_ADDR_SIZE.
27531         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
27532         Optimize eq/ne comparisons when both arguments are known to be
27533         zero-extended.
27534         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
27535         Don't mask operands unnecessarily if they are known to be already
27536         zero-extended.
27538 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
27540         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
27541         instead of loop.
27543 2010-02-10  Richard Guenther  <rguenther@suse.de>
27545         PR tree-optimization/43017
27546         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
27547         for wrapping signed arithmetic.
27549 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27551         PR debug/43010
27552         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
27553         if no debug info should be emitted for it.
27555 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
27557         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
27558         note when flag_exceptions is set.
27560 2010-02-10  Duncan Sands  <baldrick@free.fr>
27562         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
27564 2010-02-10  Richard Guenther  <rguenther@suse.de>
27566         PR c/43007
27567         * tree.c (get_unwidened): Handle constants.
27568         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
27570 2010-02-10  Martin Jambor  <mjambor@suse.cz>
27572         PR lto/42985
27573         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
27574         check for variable argument counts independently.
27576 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27578         PR target/42841
27579         * config/sh/sh.c (find_barrier): Increase length for non delayed
27580         conditional branches.
27582 2010-02-10  Christian Bruel  <christian.bruel@st.com>
27584         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
27586 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
27588         * builtins.c (set_builtin_user_assembler_name): Also handle
27589         ffs if int is smaller than word.
27591 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
27593         PR middle-end/42973
27594         * ira-conflicts.c (get_dup): Remove.
27595         (process_reg_shuffles): Add new parameter.  Use it as an
27596         additional guard for copy generation.
27597         (add_insn_allocno_copies): Rewrite.
27599 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
27601         * common.opt (fsched2-use-traces): Preserved for backward
27602         compatibility.
27603         * doc/invoke.texi: Remove the documentation about option
27604         -fsched2-use-traces.
27605         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
27606         flag_sched2_use_traces.
27607         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
27608         the backward compatibility flag section.
27610 2010-02-09  Richard Guenther  <rguenther@suse.de>
27612         PR tree-optimization/43008
27613         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
27614         make HEAP variables initialized from global memory if they
27615         are not known builtin functions.
27616         (find_func_aliases): Adjust.
27618 2010-02-09  Richard Guenther  <rguenther@suse.de>
27620         PR tree-optimization/43000
27621         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
27622         arithmetic manually.
27624 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
27626         PR tree-optimization/42931
27627         * tree-loop-linear.c (try_interchange_loops): Don't call
27628         double_int_mul if estimated_loop_iterations failed.
27630 2010-02-08  Martin Jambor  <mjambor@suse.cz>
27632         PR middle-end/42898
27633         * tree-sra.c (build_accesses_from_assign): Do not mark in
27634         should_scalarize_away_bitmap if stmt has volatile ops.
27635         (sra_modify_assign): Do not process assigns piecemeal if if stmt
27636         has volatile ops.
27638 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
27640         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
27642 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
27644         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
27645         before the pattern.
27647 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
27649         PR middle-end/42946
27650         * df-core.c (df_finish_pass): Change type of saved_flags to int.
27652 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27654         PR middle-end/42988
27655         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
27656         to unknown_dependence.
27657         (graphite_legal_transform_dr): Handle the unknown_dependence.
27658         (graphite_carried_dependence_level_k): Same.
27660 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27662         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
27664 2010-02-07  Richard Guenther  <rguenther@suse.de>
27666         PR middle-end/42991
27667         * expr.c (get_inner_reference): Always initialize *pbitsize.
27669 2010-02-07  Richard Guenther  <rguenther@suse.de>
27671         PR middle-end/42956
27672         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
27673         new ARRAY_REFs on variable size element or minimal index arrays.
27674         Complete.
27675         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
27676         gimple_fold_indirect_ref.
27678 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
27680         PR target/42957
27681         * arm.c (arm_override_options): Just return if the user has specified
27682         an invalid fpu name.
27684 2010-02-03  Jason Merrill  <jason@redhat.com>
27686         PR c++/42870
27687         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
27688         i386_pe_maybe_record_exported_symbol.
27690 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
27692         PR target/42924
27693         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
27694         (pa_delegitimize_address): New function.
27696 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
27698         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
27699         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
27701 2010-02-05  Richard Guenther  <rguenther@suse.de>
27703         PR lto/42762
27704         * lto-streamer-in.c (get_resolution): Deal with references
27705         to undefined functions.
27707 2010-02-05  Richard Guenther  <rguenther@suse.de>
27709         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
27710         (fold_const_aggregate_ref): Likewise.
27711         (ccp_fold_stmt): Substitute loads.
27712         (maybe_fold_reference): Verify types before substituting.
27713         Unshare properly.
27714         (fold_gimple_assign): Unshare properly.
27715         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
27717 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
27719         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
27720         for rs6000_gen_cell_microcode.
27722 2010-02-04  Richard Guenther  <rguenther@suse.de>
27724         PR rtl-optimization/42952
27725         * dse.c (const_or_frame_p): Remove MEM handling.
27727 2010-02-04  Nick Clifton  <nickc@redhat.com>
27729         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
27730         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
27731         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
27732         (mn10300_asm_output_mi_thunk): New function.
27733         (mn10300_can_output_mu_thunk): New function.
27734         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
27735         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
27736         (FUNCTION_ARG): Delete incorrect comment.
27738 2010-02-03  Jason Merrill  <jason@redhat.com>
27740         PR c++/40138
27741         * fold-const.c (operand_equal_p): Handle erroneous types.
27743 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
27745         * config/h8300/h8300.md (can_delay): Fix attibute condition.
27747 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
27749         PR rtl-optimization/42941
27750         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
27751         of xmalloc.
27753 2010-02-03  Jason Merrill  <jason@redhat.com>
27755         PR c++/35652
27756         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
27758 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
27760         PR debug/42896
27761         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
27762         (cselib_reset_table): Renamed from...
27763         (cselib_reset_table_with_next_value): ... this.
27764         (cselib_get_next_uid): Renamed from...
27765         (cselib_get_next_unknown_value): ... this.
27766         * cselib.c (next_uid): Renamed from...
27767         (next_unknown_value): ... this.
27768         (cselib_clear_table): Adjust.
27769         (cselib_reset_table): Adjust.  Renamed from...
27770         (cselib_reset_table_with_next_value): ... this.
27771         (cselib_get_next_uid): Adjust.  Renamed from...
27772         (cselib_get_next_unknown_value): ... this.
27773         (get_value_hash): Use hash.
27774         (cselib_hash_rtx): Likewise.
27775         (new_cselib_val): Adjust.  Set and dump uid.
27776         (cselib_lookup_mem): Pass next_uid as hash.
27777         (cselib_subst_to_values): Likewise.
27778         (cselib_log_lookup): Dump uid.
27779         (cselib_lookup): Pass next_uid as hash.  Adjust.
27780         (cselib_process_insn): Adjust.
27781         (cselib_init): Initialize next_uid.
27782         (cselib_finish): Adjust.
27783         (dump_cselib_table): Likewise.
27784         * dse.c (canon_address): Dump value uid.
27785         * print-rtl.c (print_rtx): Print value uid.
27786         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
27787         (dvuid): New type.
27788         (dv_uid): New function, sort of renamed from...
27789         (dv_htab_hash): ... this, reimplemented in terms of it and...
27790         (dv_uid2hash): ... this.  New.
27791         (variable_htab_eq): Drop excess assertions.
27792         (tie_break_pointers): Removed.
27793         (canon_value_cmp): Compare uids.
27794         (variable_post_merge_New_vals): Print uids.
27795         (vt_add_function_parameters): Adjust.
27796         (vt_initialize): Reset table.  Adjust.
27798 2010-02-03  Richard Guenther  <rguenther@suse.de>
27800         PR tree-optimization/42944
27801         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
27802         (call_may_clobber_ref_p_1): Likewise.  Properly handle
27803         malloc and calloc clobbering errno.
27805 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
27807         * doc/invoke.texi: Fix name of sched1 dump.
27809         * opts.c (decode_options): Set flag_tree_switch_conversion
27810         only conditionally on optimize >= 2.
27812         * gcse.c: Assorted comment fixes in pass description.
27814 2010-02-03  Anthony Green  <green@moxielogic.com>
27816         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
27817         nop padding in order to maintain alignment of storage location of
27818         target function address.
27819         (moxie_trampoline_init): Store target function address at newly
27820         aligned location.
27821         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
27822         to 32.
27823         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
27825 2010-02-03  Richard Guenther  <rguenther@suse.de>
27827         PR middle-end/42927
27828         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
27830 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27832         * config.gcc: Reenable check for obsolete targets.
27833         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
27834         mips-sgi-irix6.[0-4]*.
27836 2010-02-02  Nick Clifton  <nickc@redhat.com>
27838         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
27839         constant size of 4 as being the same as 0.
27840         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
27841         can take values in the range 0..4.
27843 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
27845         PR java/41991
27846         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
27847         as _darwin10_Unwind_FindEnclosingFunction().
27848         * libgcc-libsystem.ver: New.
27850 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
27852         PR target/41399
27853         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
27854         implicitly set registers.
27856 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
27858         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
27859         (arm_override_options): Allow automatic selection of the thread
27860         pointer register if thumb2.
27861         (legitimize_pic_address): Improve code sequences for Thumb2.
27862         (arm_call_tls_get_addr): Likewise.
27863         (legitimize_tls_address): Likewise.
27864         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
27865         (pic_load_addr_32bit): ... this.  New named pattern.
27866         * thumb2.md (pic_load_addr_thumb2): Delete.
27867         (pic_load_dot_plus_four): Delete.
27868         (tls_load_dot_plus_four): New named pattern.
27870 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27872         PR libgomp/29986
27873         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
27874         Document fix for TLS bug.
27876 2010-01-31  Richard Guenther  <rguenther@suse.de>
27878         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
27879         conservatively correct.
27881 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27883         PR target/42850
27884         Revert:
27885         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
27887         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
27889 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27891         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
27893 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
27895         * config.gcc: Adjust order of makefile fragments for mingw targets.
27897 2010-01-31  Richard Guenther  <rguenther@suse.de>
27899         PR middle-end/42898
27900         * gimplify.c (gimplify_init_constructor): For volatile LHS
27901         initialize a temporary.
27903 2010-01-31  Matthias Klose  <doko@ubuntu.com>
27905         * configure.ac: Fix __stack_chk_fail check for cross builds configured
27906         --with-headers
27907         * configure: Regenerate.
27909 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
27911         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
27912         the same alias set and their sizes different constantness.
27913         (aliasing_component_refs_p): Revert 2009-10-24 change.
27915 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27917         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
27918         unused.
27920 2010-01-29  Richard Guenther  <rguenther@suse.de>
27922         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
27923         Assert we successfully updated the call.
27925 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
27927         PR rtl-optimization/42889
27928         * df.h (df_set_bb_dirty_nonlr): New prototype.
27929         * df-core.c (df_set_bb_dirty_nonlr): New function.
27930         * df-scan.c (df_insn_rescan): Call it instead of
27931         df_set_bb_dirty for DEBUG_INSNs.
27933 2010-01-29  Richard Guenther  <rguenther@suse.de>
27935         PR middle-end/37448
27936         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
27937         quadratic behavior in most cases.
27939 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
27941         PR target/42891
27942         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
27943         in the call to gen_x86_movsicc_0_m1.
27945 2010-01-28  Richard Guenther  <rguenther@suse.de>
27947         PR tree-optimization/42871
27948         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
27950 2010-01-28  Richard Guenther  <rguenther@suse.de>
27952         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
27953         into call arguments.
27955 2010-01-28  Richard Guenther  <rguenther@suse.de>
27957         PR middle-end/42883
27958         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
27959         the forwarder if the destination is an EH landing pad.
27961 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
27963         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
27964         block list passed to gimple_duplicate_sese_tail.
27965         (parallelize_loops): Avoid parallelization when the function
27966         has_nonlocal_label.
27967         Avoid parallelization when the preheader is IRREDUCIBLE.
27968         Try to optimize when estimated_loop_iterations_int is unresolved.
27969         Add the loop's location to the dump file.
27970         * tree-cfg.c (add_phi_args_after_redirect): Remove.
27971         (gimple_duplicate_sese_tail): Remove the check for the latch.
27972         Redirect nexits to the exit block.
27973         Remove handling of the incoming edges to the latch.
27974         Redirect the backedge from the copied latch to the exit bb.
27976 2010-01-28  Michael Matz  <matz@suse.de>
27978         PR target/42881
27979         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
27980         Wrap force_reg into a sequence, emit it before user.
27982 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
27984         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
27985         (arm_rev): New.
27986         (arm_legacy_rev): Likewise.
27987         (thumb_legacy_rev): Likewise.
27989 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
27991         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
27992         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
27993         on MEM's address failed, try avoid_constant_pool_reference and
27994         recurse if it returned something different.
27995         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
27996         address, try avoid_constant_pool_reference and recurse if it
27997         returned something different.
27998         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
27999         address and avoid_constant_pool_reference returned something
28000         different, don't set have_address.
28002 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
28004         PR debug/42861
28005         * var-tracking.c (val_store): Add modified argument, obey it.
28006         Adjust callers.
28007         (count_uses): Move down logging of main.
28008         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
28009         don't need resolution.
28010         (emit_notes_in_bb): Likewise.
28012 2010-01-27  Richard Guenther  <rguenther@suse.de>
28014         PR middle-end/42878
28015         * tree-inline.c (remap_decl): Delay remapping of SSA name
28016         default definitions until we need them.
28018 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
28020         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
28021         (rs6000_delegitimize_address): New function.
28023         * config/s390/s390.c (s390_delegitimize_address): Call
28024         delegitimize_mem_from_attrs.
28026         PR middle-end/42874
28027         * tree-inline.c (cannot_copy_type_1): Removed.
28028         (copy_forbidden): Don't forbid copying of functions containing
28029         records/unions with variable length fields.
28031 2010-01-27  Christian Bruel  <christian.bruel@st.com>
28033         Revert:
28034         PR target/42841
28035         * config/sh/sh.c (find_barrier): Increase length for non delayed
28036         conditional branches.
28038 2010-01-27  Matthias Klose  <doko@ubuntu.com>
28040         * configure.ac (gnu-unique-object): Fix ldd version check.
28041         * configure: Regenerate.
28043 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28045         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
28046         HAVE_GNU_AS value.
28047         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
28048         Test for HAVE_GNU_AS value.
28050 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28052         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
28053         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
28054         INT64_TYPE): Define.
28055         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
28056         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
28057         INT_LEAST64_TYPE): Define.
28058         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
28059         UINT_LEAST64_TYPE): Define.
28060         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
28061         INT_FAST64_TYPE): Define.
28062         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
28063         UINT_FAST64_TYPE): Define.
28064         (INTMAX_TYPE, UINTMAX_TYPE): Define.
28065         (INTPTR_TYPE, UINTPTR_TYPE): Define.
28066         (SIG_ATOMIC_TYPE): Define.
28068 2010-01-26  Richard Guenther  <rguenther@suse.de>
28070         * df-scan.c (df_scan_set_bb_info): Remove assert.
28071         (df_insn_rescan_debug_internal): Merge asserts.
28072         (df_install_ref): Likewise.
28073         (df_mark_reg): Use bitmap_set_range.
28074         (df_hard_reg_used_p): Remove assert.
28075         (df_hard_reg_used_count): Likewise.
28077 2010-01-26  Richard Guenther  <rguenther@suse.de>
28079         PR rtl-optimization/42685
28080         * web.c (web_main): Ignore DEBUG_INSNs.
28082 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
28084         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
28086         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
28087         Fix types of fndecl and arglist parameters.
28089 2010-01-26  Richard Guenther  <rguenther@suse.de>
28091         PR middle-end/42806
28092         * tree-eh.c (unsplit_eh): Skip debug insns.
28094 2010-01-26  Richard Guenther  <rguenther@suse.de>
28096         PR tree-optimization/42250
28097         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
28099 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
28101         PR fortran/42866
28102         * omp-low.c (expand_omp_sections): Only use single_pred if
28103         l2_bb is single_pred_p.
28105 2010-01-25  Christian Bruel  <christian.bruel@st.com>
28107         PR target/42841
28108         * config/sh/sh.c (find_barrier): Increase length for non delayed
28109         conditional branches.
28110         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
28112 2010-01-24  David S. Miller  <davem@davemloft.net>
28114         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
28115         define if not using GAS.
28116         * config/sparc/sparc.c (sparc_elf_asm_named_section):
28117         Likewise.  Delete SECTION_MERGE code, which is only applicable
28118         when using GAS.
28120 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
28122         PR c++/42748
28123         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
28124         mangling of va_list in system headers.
28126 2010-01-23  Toon Moene  <toon@moene.org>
28128         * tree-predcom.c (combine_chains): Return NULL, not false.
28130 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
28132         * tree-loop-distribution.c (distribute_loop): Fix declaration and
28133         initialization of variable res to agree with return type.
28135 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
28137         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
28138         * tree-sra.c: Add include of expr.h.
28140 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
28142         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
28143         insert the debug stmt on the single non-EH edge from the stmt.
28145 2010-01-22  Richard Henderson  <rth@redhat.com>
28147         PR tree-opt/42833
28148         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
28149         the RHS until after generate_subtree_copies has insertted its
28150         code before the current statement.
28152 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
28154         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
28156         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
28158 2010-01-21  Martin Jambor  <mjambor@suse.cz>
28160         PR tree-optimization/42585
28161         * tree-sra.c (struct access): New field grp_total_scalarization.
28162         (dump_access): Dump the new field.
28163         (should_scalarize_away_bitmap): New variable.
28164         (cannot_scalarize_away_bitmap): Likewise.
28165         (sra_initialize): Allocate new bitmaps.
28166         (sra_deinitialize): Free new bitmaps.
28167         (create_access_1): New function.
28168         (create_access): Parts moved to create_access_1.
28169         (type_consists_of_records_p): New function.
28170         (completely_scalarize_record): Likewise.
28171         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
28172         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
28173         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
28174         access.
28175         (analyze_all_variable_accesses): Completely scalarize small eligible
28176         records.
28178 2010-01-21  Martin Jambor  <mjambor@suse.cz>
28180         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
28182 2010-01-21  Andrew Haley  <aph@redhat.com>
28184         * gcc.c (process_command): Move lang_specific_driver before
28185         setting cc_libexec_prefix.
28187 2010-01-21  Richard Guenther  <rguenther@suse.de>
28189         PR middle-end/19988
28190         * fold-const.c (negate_expr_p): Pretend only negative
28191         real constants are easily negatable.
28193 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
28194             Jason Merrill  <jason@redhat.com>
28196         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
28197         (TYPE_TRANSPARENT_AGGR): this, for union and record.
28198         * calls.c (initialize argument_information): Handle it.
28199         * c-common.c (handle_transparent_union_attribute): Use new name.
28200         * c-decl.c (finish_struct): Ditto.
28201         * c-typeck.c (type_lists_compatible_p): Ditto.
28202         (convert_for_assignment): Use new name and also handle record.
28203         * function.c (aggregate_value_p): Handle it.
28204         (pass_by_reference): Ditto.
28205         (assign_parm_data_types): Ditto.
28206         * print-tree.c (print_node): Ditto.
28207         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
28208         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
28209         * tree.c (first_field): New fn.
28211 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
28213         PR target/42818
28214         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
28215         even when linking statically, for now.
28217 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
28219         PR debug/42715
28220         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
28221         without a cselib val.
28222         (count_uses): Accept MO_VAL_SET with no val on stores.
28223         (add_stores): Likewise.
28225 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28227         * var-tracking.c (check_value_val): Add a compile time assertion.
28228         (dv_is_decl_p): Simplify.
28229         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
28230         gcc_assert if ENABLE_CHECKING.
28232 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
28234         PR debug/42782
28235         * var-tracking.c: Include tree-flow.h.
28236         (mem_dies_at_call): New.
28237         (dataflow_set_preserve_mem_locs): Use it.
28238         (dataflow_set_remove_mem_locs): Likewise.
28239         (dump_var): Renamed from dump_variable.  Adjust all callers.
28240         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
28241         * Makefile.in (var-tracking.o): Adjust deps.
28243 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
28245         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
28247 2010-01-20  Richard Guenther  <rguenther@suse.de>
28249         PR tree-optimization/42717
28250         * tree-ssa-dce.c (get_live_post_dom): Remove.
28251         (forward_edge_to_pdom): Take an arbitrary edge to copy
28252         degenerate PHI args from.
28253         (remove_dead_stmt): Use the first post-dominator even if it
28254         does not contain live statements as redirection destination.
28256 2010-01-20  Richard Guenther  <rguenther@suse.de>
28258         * tree-inline.c (estimate_num_insns): Handle EH builtins.
28260 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28262         * sel-sched.c (create_speculation_check): Remove set but not used
28263         variable twin.
28264         (try_transformation_cache): Remove set but not used variable ds.
28265         (calculate_privileged_insns): Remove set but not used variables
28266         cur_insn and min_spec_insn.
28267         (find_best_expr): Remove set but not used variable avail_n.
28268         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
28269         variable e.
28270         * cgraphunit.c (assemble_thunk): Remove set but not used variable
28271         false_label.
28272         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
28273         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
28274         new_scop_exit_edge.
28276 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
28278         PR bootstrap/42786
28279         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
28280         cpu types.  Add support for *-sse3 cpu types.
28281         (x86_64-*-*): Ditto.
28283 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28285         PR middle-end/42803
28286         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
28287         argument, call initializer_constant_valid_p_1 instead of
28288         initializer_constant_valid_p, pass CACHE to it, return NULL
28289         immediately if first call returns NULL.
28290         (initializer_constant_valid_p_1): New function.
28291         (initializer_constant_valid_p): Use it.
28293 2010-01-20  Thomas Quinot  <quinot@adacore.com>
28295         * tree.def (PLACEHOLDER_EXPR): Fix comment.
28297 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
28299         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
28300         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
28301         (loc_list_from_tree): Don't handle unsigned division.  Handle
28302         signed modulo using DW_OP_{over,over,div,mul,minus}.
28303         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
28304         modulo instead of signed.
28306 2010-01-20  DJ Delorie  <dj@redhat.com>
28308         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
28309         (Fpa): Pass it
28310         (h8300_emit_stack_adjustment): Propogate it.
28311         (push): Pass it.
28312         (h8300_expand_prologue): Likewise.
28313         (h8300_expand_epilogue): Likewise.
28315 2010-01-19  Michael Matz  <matz@suse.de>
28317         PR tree-optimization/41783
28318         * tree-data-ref.c (toplevel): Include flags.h.
28319         (dump_data_dependence_relation):  Also dump the inputs if the
28320         result will be unknown.
28321         (split_constant_offset_1): Look through some conversions.
28322         * tree-predcom.c (determine_roots_comp): Restart a new chain if
28323         the offset from last element is too large.
28324         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
28325         (reassociate_to_the_same_stmt): Handle vector registers.
28326         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
28327         (e.g. conversions).
28328         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
28329         wide_prolog_niters argument, emit widening instructions.
28330         (vect_do_peeling_for_alignment): Adjust caller, use widened
28331         variant of the iteration cound.
28332         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
28334 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
28336         PR target/38697
28337         * config/arm/neon-testgen.m (emit_automatics): New parameter
28338         features. Adjust for Fixed_return_reg feature.
28339         (test_intrinsic): Call emit_automatics with new feature.
28340         * config/arm/neon.ml: Update copyright years.
28341         (features): New Fixed_return_reg feature.
28342         (ops): Update feature for Vget_low.
28344 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
28346         PR tree-optimization/42719
28347         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
28348         stmt uses.
28350         PR debug/42728
28351         * fwprop.c (all_uses_available_at): Return false if def_set dest
28352         is a REG that is used in def_insn.
28354 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
28356         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
28358         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
28359         Add argument names.
28361         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
28363         * target.h (struct gcc_target) <secondary_reload>: Change type
28364         of last argument to secondary_reload_info *.
28366 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
28368         PR target/42774
28369         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
28370         memory references with unaligned offsets.  Remove CQImode handling.
28371         (unaligned_memory_operand): Return 1 for memory references with
28372         unaligned offsets.  Remove CQImode handling.
28374 2010-01-18  Richard Guenther  <rguenther@suse.de>
28376         PR middle-end/39954
28377         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
28378         builtin calls.
28380 2010-01-18  Richard Guenther  <rguenther@suse.de>
28382         PR tree-optimization/42781
28383         * tree-ssa-structalias.c (find_what_var_points_to): Skip
28384         restrict processing only if the original variable was artificial.
28386 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
28388         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
28389         find number of popped argument bytes.
28391         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
28392         Fix the text that describes the return value for invalid insns.
28394         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
28396         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
28397         Clarify what 'cost of the -dependence' is.  Fix quoting.
28399         * toplev.c (default_get_pch_validity): Rename argument to "sz".
28400         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
28402 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
28404         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
28405         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
28407 2010-01-17  Richard Guenther  <rguenther@suse.de>
28409         PR middle-end/42248
28410         * function.c (split_complex_args): Take a VEC to modify.
28411         (assign_parms_augmented_arg_list): Build a VEC instead of
28412         a chain of PARM_DECLs.
28413         (assign_parms_unsplit_complex): Take a VEC of arguments.
28414         Do not fixup unmodified parms.
28415         (assign_parms): Deal with the VEC.
28416         (gimplify_parameters): Likewise.
28418 2010-01-17  Richard Guenther  <rguenther@suse.de>
28420         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
28421         node existence check.
28422         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
28423         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
28424         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
28425         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
28426         (gimple_execute_on_growing_pred): Likewise.
28428 2010-01-17  Richard Guenther  <rguenther@suse.de>
28430         PR tree-optimization/42773
28431         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
28432         (compute_antic_aux): Likewise.
28433         (compute_partial_antic_aux): Likewise.
28435 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
28437         PR debug/42767
28438         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
28439         and US_TRUNCATE.
28441 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
28443         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
28444         appearance.
28446         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
28447         Fix markup for strict argument.
28449         (TARGET_SCHED_REORDER2): Fix argument types.
28451         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
28452         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
28454         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
28455         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
28457         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
28458         Add argument name.
28460         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
28461         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
28462         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
28463         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
28464         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
28466         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
28468         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
28470         (TARGET_ASM_RELOC_RW_MASK): Add return type.
28471         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
28473         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
28475         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
28476         Use prototype.
28478         (TARGET_ASM_NAMED_SECTION): Fix argument list.
28480         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
28481         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
28483         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
28485         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
28487         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
28488         referring to it.  Fix language.
28490         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
28492         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
28494         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
28496         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
28498         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
28499         '@var{stream}.  Remove stray 'and'.
28501         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
28503         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
28505         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
28507         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
28508         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
28510         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
28511         Fix description of return value.
28512         Rename argument "sz" to "len."
28514         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
28515         Clarify meaning of 'true' return value.
28517         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
28519         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
28520         rep_mode versus mode_rep.
28522         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
28524         (TARGET_BUILTIN_DECL): Fix name.
28526         (TARGET_COMMUTATIVE_P): Fix type of first argument.
28528         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
28530         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
28532         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
28534         (TARGET_RELAXED_ORDERING): Use @deftypevr.
28536         (TARGET_GET_DRAP_RTX): Note that this is a hook.
28537         Clarify language.
28539         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
28540         Rename argument tm_fn to md_fn.
28542         (TARGET_OPTION_PRINT): Fix argument list.
28544 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
28546         PR target/42664
28547         * config/i386/i386.c (ix86_fixup_binary_operands):
28548         Revert FMA4 fixup of operands.
28550 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28552         PR gcc/42525
28553         * Makefile.in (write_entries_to_file, install-plugin):
28554         Use \012 instead of \n with tr.
28556 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
28558         * configure.ac (HAVE_AS_REF): New C macro.
28559         * configure: Regenerate.
28560         * config.in: Likewise.
28561         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
28562         if HAVE_AS_REF.
28563         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
28564         if HAVE_AS_REF.
28566 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
28568         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
28570         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
28572         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
28574         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
28576         (TARGET_IN_SMALL_DATA_P): Fix argument type.
28578         (TARGET_BINDS_LOCAL_P): Fix argument type.
28580         (TARGET_ASM_FILE_END): Use prototype.
28582         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
28584         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
28586         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
28588         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
28590         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
28591         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
28593         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
28594         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
28596         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
28597         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
28598         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
28599         (TARGET_ADDR_SPACE_CONVERT): Likewise.
28601         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
28603         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
28605         (TARGET_INIT_BUILTINS): Use prototype.
28607         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
28608         Put 'const char *' in braces.  Fix parameter types.
28609         (TARGET_INVALID_CONVERSION): Fix parameter types.
28610         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
28611         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
28613         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
28614         Fix argument type.
28616         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
28618         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
28620 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
28622         * doc/tm.texi (TARGET_HELP): Fix return type.
28624         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
28625         in braces.  Fix argument types.
28627         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
28629         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
28631         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
28633         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
28634         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
28636         (TARGET_MANGLE_TYPE): Fix argument types.
28638         (TARGET_IRA_COVER_CLASSES): Use prototype.
28640         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
28642         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
28644         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
28646         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
28648         (TARGET_CALLEE_COPIES): Fix argument types.
28650         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
28652         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
28654         (TARGET_FUNCTION_VALUE): Fix argument types.
28656         (TARGET_RETURN_IN_MSB): Fix argument type.
28658         (TARGET_RETURN_IN_MEMORY): Fix argument types.
28660         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
28662         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
28664         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
28665         agree with return type.
28667         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
28669 2010-01-15  Jing Yu  <jingyu@google.com>
28671         PR rtl-optimization/42691
28672         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
28673         a pseudo to a constant and are merged, and adjust comments.
28675 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
28677         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
28679 2010-01-15  Richard Guenther  <rguenther@suse.de>
28681         PR middle-end/42739
28682         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
28683         labels of computed or non-local gotos to the destination.
28684         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
28685         landing pad label is the first label.
28687 2010-01-15  Richard Guenther  <rguenther@suse.de>
28689         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
28691 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
28693         PR target/42747
28694         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
28695         to allow generation of the xssqrtdp instruction on power7.
28696         (sqrtdf2_fpr): Ditto.
28698 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28700         PR middle-end/42674
28701         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
28702         functions with noreturn attribute.
28704         PR c++/42608
28705         * varasm.c (declare_weak): Add weak attribute to decl if it
28706         doesn't have one already.
28707         (assemble_external): Only add decls to weak_decls if they also
28708         have weak attribute.
28710 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
28712         * var-tracking.c (var_reg_delete): Don't delete the association
28713         between REGs and values or one-part variables if the register
28714         isn't clobbered.
28716 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28718         PR debug/42657
28719         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
28720         because its first operand is a non-localized variable.
28722 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28724         PR tree-optimization/42706
28725         * tree-sra.c (encountered_recursive_call): New variable.
28726         (encountered_unchangable_recursive_call): Likewise.
28727         (sra_initialize): Initialize both new variables.
28728         (callsite_has_enough_arguments_p): New function.
28729         (scan_function): Call decl and flags check only for IPA-SRA, check
28730         whether there is a recursive call and whether it has enough arguments.
28731         (all_callers_have_enough_arguments_p): New function.
28732         (convert_callers): Look for recursive calls only when
28733         encountered_recursive_call is set.
28734         (ipa_early_sra): Bail out either if
28735         !all_callers_have_enough_arguments_p or
28736         encountered_unchangable_recursive_call.
28738 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28740         * sel-sched.c: Add 2010 to copyright years.
28741         * sel-sched-ir.c: Likewise.
28742         * sel-sched-ir.h: Likewise.
28744 2010-01-14  Martin Jambor  <mjambor@suse.cz>
28746         PR tree-optimization/42714
28747         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
28748         constructors specially.
28750 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28752         * config/i386/drivers-i386.c (detect_caches_intel):
28753         Add l2sizekb parameter and fill in.
28754         (host_detect_local_cpu): Add l2sizekb, fill in.
28755         Add Atom small cache heuristic.
28757 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28759         * config/i386/drivers-i386.c (detect_caches_cpuid4):
28760         Add level3 parameter and fill in.
28761         (detect_caches_intel): Handle level3 cache.
28763 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28765         * config/i386/drivers-i386.c (host_detect_local_cpu):
28766         Fix core duo detection.
28768 2010-01-14  Andi Kleen  <ak@linux.intel.com>
28770         * config/i386/drivers-i386.c (host_detect_local_cpu):
28771         Fix Atom detection.
28773 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28775         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
28776         (rs6000_variable_issue_1): this.  Use...
28777         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
28779 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28781         * sel-sched-ir.c (sel_restore_other_notes): Rename to
28782         sel_restore_notes.  Update all callers.  Call reemit_notes
28783         for all insns.
28785 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28787         PR rtl-optimization/42246
28788         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
28789         loops.
28791 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28793         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
28794         all successors is the same as number of successors in current region.
28796 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28798         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
28799         to rename is not separable.  Otherwise check that its LHS is not NULL.
28801 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28803         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
28805 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28807         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
28808         available registers when failed to discover LHS register class.
28809         Fix indentation.  Update comment.
28811 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28812             Alexander Monakov  <amonakov@ispras.ru>
28814         PR rtl-optimization/42389
28815         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
28816         to can_issue_more.
28817         (advance_state_on_fence): Likewise.
28818         (sel_target_adjust_priority): Print debug output only when
28819         sched_verbose >= 4, not 2.
28820         (get_expr_cost): Do not issue all unique insns on the next cycle.
28821         (fill_insns): Initialize can_issue_more from the value saved
28822         with the fence.
28823         * sel-sched-ir.c (flist_add): New parameter issue_more.
28824         Init FENCE_ISSUE_MORE with it.
28825         (merge_fences): Likewise.
28826         (init_fences): Update call to flist_add.
28827         (add_to_fences, add_clean_fence_to_fences)
28828         (add_dirty_fence_to_fences): Likewise.
28829         (move_fence_to_fences): Update call to merge_fences.
28830         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
28831         sched groups.
28832         * sel-sched-ir.h (struct _fence): New field issue_more.
28833         (FENCE_ISSUE_MORE): New accessor macro.
28835 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28837         PR rtl-optimization/42388
28838         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
28839         that have no predecessors nor successors.  Do not call move_bb_info
28840         for empty blocks outside of current region.
28842 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28844         PR rtl-optimization/42294
28845         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
28846         * sel-sched.c (move_exprs_to_boundary): Transitively add all
28847         originators' originators.
28849 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
28851         PR rtl-optimization/39453
28852         PR rtl-optimization/42246
28853         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
28854         for pipelining_p.
28855         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
28857 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28858             Alexander Monakov  <amonakov@ispras.ru>
28860         PR middle-end/42245
28861         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
28862         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
28863         argument.  Update all callers.
28864         (tidy_control_flow): ... and here.  Recompute topological order
28865         of basic blocks in region if necessary.
28866         (sel_redirect_edge_and_branch): Change return type.  Return true
28867         if topological order might have been invalidated.
28868         (purge_empty_blocks): Export and move from...
28869         * sel-sched.c (purge_empty_blocks): ... here.
28870         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
28871         (maybe_tidy_empty_bb): Delete prototype.
28872         (purge_empty_blocks): Declare.
28874 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
28876         PR rtl-optimization/42249
28877         * sel-sched.c (try_replace_dest_reg): When chosen register
28878         and original register is the same, do not bail out early, but
28879         still check all original insns for validity of replacing destination
28880         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
28881         in this case.
28883 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
28885         PR c/42721
28886         Port from no-undefined-overflow branch:
28887         2009-03-09  Richard Guenther  <rguenther@suse.de>
28889         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
28891 2010-01-14  Richard Guenther  <rguenther@suse.de>
28893         PR lto/42665
28894         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
28896 2010-01-14  Ira Rosen  <irar@il.ibm.com>
28898         PR tree-optimization/42709
28899         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
28900         as scalar type in creation of constant vector operand.
28902 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28904         PR testsuite/42414
28905         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
28906         (check-parallel-%): Match `testsuite' directory component only
28907         at the end.
28909 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
28911         PR translation/39521
28912         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
28913         strings with _().
28915 2010-01-13  Richard Guenther  <rguenther@suse.de>
28917         PR tree-optimization/42730
28918         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
28919         offset zero.
28921 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
28923         PR target/pr42542
28924         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
28925         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
28926         them signed.
28928 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
28930         * config/bfin/libgcc-bfin.ver: Regenerate based on current
28931         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
28932         ___umulsi3_highpart.
28934         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
28935         rather than schedule_insns if the pass is enabled.
28937 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28939         PR tree-optimization/42704
28940         * tree-sra.c (sra_modify_assign): Do not delete assignments to
28941         SSA_NAMEs.
28943 2010-01-13  Martin Jambor  <mjambor@suse.cz>
28945         PR tree-optimization/42703
28946         * tree-sra.c (analyze_access_subtree): Check that we can build a
28947         reference to the original data within the aggregate.
28949 2010-01-13  Richard Guenther  <rguenther@suse.de>
28951         PR tree-optimization/42705
28952         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
28954 2010-01-13  Richard Guenther  <rguenther@suse.de>
28956         PR middle-end/42716
28957         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
28959 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
28961         PR debug/41371
28962         * var-tracking.c (values_to_unmark): New variable.
28963         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
28964         values_to_unmark vector.  Moved body to...
28965         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
28966         instead queue it into values_to_unmark vector.
28967         (vt_find_locations): Free values_to_unmark vector.
28969 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
28971         * config/s390/s390.c (override_options): Set
28972         default of max-pending-list-length to 256
28974 2010-01-13  Richard Guenther  <rguenther@suse.de>
28976         PR lto/42678
28977         * tree-pass.h (PROP_gimple_lcx): New.
28978         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
28979         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
28980         before the final cleanup_eh.
28981         (dump_properties): Dump PROP_gimple_lcx.
28982         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
28983         (tree_lower_complex_O0): Remove.
28984         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
28985         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
28986         tree_lower_complex, schedule TODO_update_ssa.
28987         * lto-streamer-out.c (output_function): Stream the functions
28988         properties.
28989         * lto-streamer-in.c (input_function): Likewise.
28990         (lto_read_body): Do not override them here.
28992 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
28994         PR c/42708
28995         * c-typeck.c (build_c_cast): Fold value cast to union type before
28996         wrapping it in a CONSTRUCTOR.
28998 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29000         PR rtl-optimization/42699
29001         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
29002         involved.
29004 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29006         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29007         SUBTARGET_WARN_UNUSED_SPEC): Move ...
29008         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
29009         SUBTARGET_WARN_UNUSED_SPEC): ... here
29010         * config/mips/iris5.h (LIBGCC_SPEC): Define.
29012 2010-01-12  Julian Brown  <julian@codesourcery.com>
29014         * config/arm/neon-schedgen.ml (Utils): Don't try to
29015         open missing module.
29016         (find_with_result): New.
29018 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
29020         PR debug/42662
29021         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
29022         sharing when canonicalizing ({lt,ge}u (plus a b) b).
29024         PR tree-optimization/42645
29025         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
29026         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
29027         decl_map, set processing_debug_stmt to -1 and return name without
29028         any remapping.
29030 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
29032         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
29033         binutils version, and reword target configuration description.
29035 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29037         * config/avr/avr.h (LINKER_NAME): Remove.
29039 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
29041         PR target/42416
29042         * config/rs6000/rs6000.c (rs6000_override_options): On targets
29043         that support VSX, warn for -mno-altivec if vsx is not disabled,
29044         and disable vsx.
29046 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
29047             Shujing Zhao  <pearly.zhao@oracle.com>
29049         PR translation/42469
29050         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
29051         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
29052         character between option name and help text.
29053         * c.opt (imultilib): Likewise.
29055 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
29057         * lto-streamer-out.c (output_unreferenced_globals): Output static
29058         variables.
29060 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
29062         PR rtl-optimization/42621
29063         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
29064         optimizing for size.
29065         (duplicate_computed_gotos): Remove now-redundant check.
29067 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
29069         PR target/37454
29070         * configure.ac: Save and restore LDFLAGS and LIBS
29071         * configure: Regenerate.
29073 2010-01-10  Richard Guenther  <rguenther@suse.de>
29075         PR middle-end/42667
29076         * builtins.c (fold_builtin_strlen): Add type argument and
29077         convert the resulting length to it.
29078         (fold_builtin_1): Adjust.
29080 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29082         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
29083         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
29084         1 insn.
29085         (num_insns_constant_wide): Adjust for that change.
29087 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29089         PR debug/42631
29090         * web.c (union_defs): Add used argument, to combine uses of
29091         uninitialized regs.
29092         (entry_register): Adjust type and tests of used argument.
29093         (web_main): Widen used for new use.  Pass it to union_defs.
29094         * df.h (union_defs): Adjust prototype.
29096 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29098         PR debug/42630
29099         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
29100         uses in new incoming argument.  Free body.
29101         (reset_debug_uses_in_loop): New.
29102         (analyze_insn_to_expand_var): Call the latter if the former found
29103         anything.  Fix whitespace.  Reject invalid dest overlaps before
29104         going through all insns in the loop.
29106 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29108         PR debug/42629
29109         * haifa-sched.c (dying_use_p): Debug insns don't count.
29111 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29113         PR middle-end/42363
29114         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
29115         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
29116         (verify_gimple_call): Reject LHS in noreturn calls.
29118 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29120         PR debug/42604
29121         PR debug/42395
29122         * tree-vect-loop-manip.c (adjust_info): New type.
29123         (adjust_vec): New pointer to vector.
29124         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
29125         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
29126         (slpeel_update_phis_for_duplicate_loop): Use them.
29127         (slpeel_update_phi_nodes_for_guard1): Likewise.
29128         (slpeel_update_phi_nodes_for_guard2): Likewise.
29129         (slpeel_tree_peel_loop_to_edge): Likewise.
29130         (vect_update_ivs_after_vectorizer): Likewise.
29132 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29134         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
29135         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
29137 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
29139         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
29140         bogus uninitialized warning.
29142 2010-01-09  Richard Guenther  <rguenther@suse.de>
29144         PR middle-end/42512
29145         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
29146         the evolution is compatible with the initial condition.
29148 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
29150         * gcc.c (process_command): Update copyright notice dates.
29151         * gcov.c (print_version): Likewise.
29152         * gcov-dump.c (print_version): Likewise.
29153         * mips-tfile.c (main): Likewise.
29154         * mips-tdump.c (main): Likewise.
29156 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
29158         PR target/41885
29159         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
29160         (rotlhi3): Delete.
29161         (rotlhi3_8): Delete.
29162         (rotlsi3): Delete.
29163         (rotlsi3_8): Delete.
29164         (rotlsi3_16): Delete.
29165         (rotlsi3_24): Delete.
29166         (rotl<mode>3): New.
29167         (*rotw<mode>3): New.
29168         (*rotb<mode>3): New.
29169         * config/avr/avr.c (avr_rotate_bytes): New function.
29170         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
29172 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
29174         PR target/37454
29175         * configure.ac: Modify -rdynamic check.
29176         * configure: Regenerate.
29178 2010-01-08  DJ Delorie  <dj@redhat.com>
29180         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
29181         register popping order.
29183 2010-01-08  Richard Guenther  <rguenther@suse.de>
29185         PR lto/42528
29186         * c.opt (fsigned-char): Also let LTO handle this option.
29187         (funsigned-char): Likewise.
29189 2010-01-07  Richard Guenther  <rguenther@suse.de>
29191         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
29192         (gimple_op): Likewise.
29193         (gimple_op_ptr): Likewise.
29194         (gimple_assign_set_lhs): Remove gcc_assert.
29195         (gimple_assign_set_rhs1): Likewise.
29196         (gimple_assign_set_rhs2): Likewise.
29197         (gimple_call_set_lhs): Likewise.
29198         (gimple_call_set_fn): Likewise.
29199         (gimple_call_set_fndecl): Likewise.
29200         (gimple_call_fndecl): Likewise.
29201         (gimple_call_return_type): Likewise.
29202         (gimple_call_set_chain): Likewise.
29203         (gimple_call_num_args): Likewise.
29204         (gimple_call_set_arg): Likewise.
29205         (gimple_cond_set_code): Likewise.
29206         (gimple_cond_set_lhs): Likewise.
29207         (gimple_cond_set_rhs): Likewise.
29208         (gimple_cond_set_true_label): Likewise.
29209         (gimple_cond_set_false_label): Likewise.
29210         (gimple_label_set_label): Likewise.
29211         (gimple_goto_set_dest): Likewise.
29212         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
29213         (gimple_debug_bind_get_value): Likewise.
29214         (gimple_debug_bind_get_value_ptr): Likewise.
29215         (gimple_debug_bind_set_var): Likewise.
29216         (gimple_debug_bind_set_value): Likewise.
29217         (gimple_debug_bind_reset_value): Likewise.
29218         (gimple_debug_bind_has_value_p): Likewise.
29219         (gimple_return_retval_ptr): Remove gcc_assert.
29220         (gimple_return_retval): Likewise.
29221         (gimple_return_set_retval): Likewise.
29222         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
29223         (safe_referenced_var_iterator): Remove.
29224         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
29225         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
29226         (fill_referenced_var_vec): Remove.
29227         (first_readonly_imm_use): Remove redundant gcc_assert.
29228         (phi_arg_index_from_use): Combine gcc_asserts.
29229         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
29230         (first_imm_use_stmt): Remove redundant gcc_assert.
29231         * tree-cfg.c (verify_gimple_call): Verify function and chain
29232         operands.  Verify arguments.
29233         (verify_types_in_gimple_stmt): Verify condition code and labels.
29235 2010-01-07  Richard Guenther  <rguenther@suse.de>
29237         PR tree-optimization/42641
29238         * sese.c (rename_map_elt_info): Use the SSA name version, do
29239         not hash pointers.
29241 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
29243         PR tree-optimization/42625
29244         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
29245         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
29247 2010-01-07  Duncan Sands  <baldrick@free.fr>
29249         * Makefile.in (PLUGIN_HEADERS): Add version.h.
29251 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
29253         PR target/42511
29254         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
29255         note itself is not function_invariant_p.
29257 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
29259         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
29260         Do not add the DF_NOTE problem.
29261         * store-motion.c (execute_rtl_store_motion): Likewise.
29263 2010-01-07  Martin Jambor  <mjambor@suse.cz>
29265         PR tree-optimization/42157
29266         * tree-sra.c (compare_access_positions): Stabilize sort if both
29267         accesses have integer types, return zero immediately if they are the
29268         same.
29270 2010-01-06  Richard Henderson  <rth@redhat.com>
29272         PR middle-end/41883
29273         * haifa-sched.c (add_to_note_list): Merge into ...
29274         (concat_note_lists): ... here, and ...
29275         (unlink_other_notes, rm_other_notes): Merge into...
29276         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
29277         NOTE_INSN_EPILOGUE_BEG.
29279 2010-01-06  Richard Guenther  <rguenther@suse.de>
29281         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
29282         not inline regular functions into always-inline functions.
29284 2010-01-06  Nick Clifton  <nickc@redhat.com>
29286         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
29287         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
29288         used together.
29289         (OVERRIDE_OPTIONS): Delete.
29290         (OPTIMIZATION_OPTIONS): Define.
29291         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
29292         * config/rx/rx.c (rx_handle_option): Issue an error message if
29293         -mcpu=rx200 and -fpu are used together.
29294         (rx_set_optimization_options): New function.  Issue an error
29295         message if an optimization attribute attempts to reset the FPU/
29296         math optimization pairing.
29297         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
29298         * config/rx/rx.opt: Set the default to 32-bit doubles.
29299         * config/rx/t-rx: Add multilibs for -nofpu option.
29300         * doc/invoke.texi: Update documentation of RX options.
29302 2010-01-06  Richard Guenther  <rguenther@suse.de>
29304         * tree-ssa-pre.c (name_to_id): New global.
29305         (alloc_expression_id): Simplify SSA name handling.
29306         (lookup_expression_id): Likewise.
29307         (init_pre): Zero name_to_id.
29308         (fini_pre): Free it.
29310 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
29312         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
29314 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
29316         PR target/42542
29317         * config/i386/sse.md (smaxv2di3): New.
29318         (umaxv2di3): Likewise.
29319         (sminv2di3): Likewise.
29320         (uminv2di3): Likewise.
29322 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
29324         PR target/42564
29325         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
29326         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
29327         (legitimize_tls_address): Likewise.
29328         (sparc_tls_referenced_p): Likewise.
29329         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
29330         and adjust calls to legitimize_pic_address.
29331         (legitimate_constant_p) Use sparc_tls_referenced_p.
29332         (legitimate_pic_operand_p): Likewise.
29333         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
29334         (sparc_tls_symbol_ref_1): Delete.
29335         (sparc_tls_referenced_p): Make static, recognize specific patterns.
29336         (legitimize_tls_address): Make static, handle CONST patterns.
29337         (legitimize_pic_address): Make static, remove unused parameter and
29338         adjust recursive calls.
29339         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
29340         and adjust call to legitimize_pic_address.
29341         (sparc_output_mi_thunk): Likewise.
29343 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
29344             H.J. Lu  <hongjiu.lu@intel.com>
29346         PR target/42542
29347         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
29348         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
29349         operands to make them signed.
29351         Revert:
29352         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29354         PR target/42542
29355         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29356         GTU to GT for V4SI and V2DI.
29358         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29359         (umin<mode>3): Removed.
29360         (uminv8hi3): New.
29361         (uminv4si3): Likewise.
29363 2010-01-05  Martin Jambor  <mjambor@suse.cz>
29365         PR tree-optimization/42462
29366         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
29367         current_function_decl to helper functions and macros.
29369 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29371         PR bootstrap/41771
29372         * flags.h: Don't include real.h.
29373         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
29374         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
29375         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
29376         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
29377         * dominance.c: Update copyright.
29378         * gimple.c (walk_gimple_op): Remove inline.
29379         * tree-ssa-reassoc.c: Include real.h.
29380         * Makefile.in (FLAGS_H): Remove $(REAL_H).
29381         (tree-ssa-reassoc.o): Depend on $(REAL_H).
29383 2010-01-05  Nick Clifton  <nickc@redhat.com>
29385         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
29386         register to push into the stack frame when the accumulator has to
29387         be saved during interrupts.
29389 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
29391         * doc/invoke.texi: Remove the documentation about option
29392         -Wunreachable-code.
29393         * common.opt (Wunreachable-code):  Preserved for backward
29394         compatibility.
29395         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
29396         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
29397         the backward compatibility flag section.
29399 2010-01-05  Richard Guenther  <rguenther@suse.de>
29401         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
29403 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
29405         PR other/42611
29406         * cfgexpand.c (expand_one_var): Diagnose too large variables.
29408         PR tree-optimization/42508
29409         * tree-sra.c (convert_callers): Check for recursive call
29410         by comparing cgraph nodes instead of decls.
29411         (modify_function): Call ipa_modify_formal_parameters also
29412         on all same_body aliases.
29414         * cgraphunit.c (cgraph_materialize_all_clones): Compare
29415         cgraph nodes when checking for same_body aliases.
29417 2010-01-05  Richard Guenther  <rguenther@suse.de>
29419         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
29420         allocation and lookup.
29421         (get_or_alloc_expr_for_constant): Likewise.
29422         (phi_translate): Sink allocation.
29424 2010-01-04  Richard Guenther  <rguenther@suse.de>
29426         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
29427         a new entry only if needed.
29428         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
29429         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
29430         hashtable lookup.
29431         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
29432         the result array.
29433         (phi_translate): Handle CONSTANTs early.
29435 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29437         PR tree-optimization/42398
29438         * tree-sra.c (struct access): Removed flag grp_different_types.
29439         (dump_access): Do not dump the removed flag.
29440         (sort_and_splice_var_accesses): Do not set the removed flag.
29441         (sra_modify_expr): Check for type compatibility directly.
29443 2010-01-04  Martin Jambor  <mjambor@suse.cz>
29445         PR tree-optimization/42366
29446         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
29447         edges with variable number of parameters.
29448         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
29449         flag instead of asserting it.
29450         (ipa_read_node_info): Read uses_analysis_done flag.
29452 2010-01-04  Richard Guenther  <rguenther@suse.de>
29454         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
29455         iterative_hash_* as intended.
29456         (vn_reference_compute_hash): Likewise.  Simplify hashing
29457         SSA names.
29458         (vn_reference_lookup_2): Likewise.
29459         (vn_nary_op_compute_hash): Likewise.
29460         (vn_phi_compute_hash): Likewise.
29461         (expressions_equal_p): Remove strange code.
29462         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
29463         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
29464         (bitmap_insert_into_set_1): Take value-id as parameter.
29465         (add_to_value): Pass it.
29466         (bitmap_insert_into_set): Likewise.
29467         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
29469 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
29471         PR driver/42442
29472         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
29473         (do_self_spec): For switches with SWITCH_IGNORE set set also
29474         SWITCH_IGNORE_PERMANENTLY.
29475         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
29476         of SWITCH_IGNORE.
29478 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
29480         * lto-streamer-out.c (output_unreferenced_globals): Output the full
29481         tree of an unreferenced global var.
29483 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29485         PR target/42542
29486         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
29487         GTU to GT for V4SI and V2DI.
29489         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
29490         (umin<mode>3): Removed.
29491         (uminv8hi3): New.
29492         (uminv4si3): Likewise.
29494 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
29496         PR lto/42581
29497         * collect2.c (main): Turn on trace in collect2 if -v is passed
29498         to gcc with LTO.
29500 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
29502         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
29503         description of expression operand.
29505 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
29507         * configure.ac: Add install-html to target_list for Make-hooks.
29508         * configure: Regenerate.
29509         * fortran/Make-lang.in (F95_HTMLFILES): New.
29510         (fortran.html): Use it.
29511         (fortran.install-html): New.
29512         * Makefile.in (install-html): Add lang.install-html.
29513         * java/Make-lang.in (JAVA_HTMLFILES): New.
29514         (java.html): Use it.
29515         (java.install-html): New.
29516         * objc/Make-lang.in (objc.install-html): New.
29517         * objcp/Make-lang.in (obj-c++.install-html): New.
29518         * cp/Make-lang.in (c++.install-html): New.
29519         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
29520         * lto/Make-lang.in (lto.install-html): New.
29522 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29524         PR lto/42520
29525         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
29527 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29529         PR rtl-optimization/41862
29530         * store-motion.c (store_killed_in_insn, compute_store_table,
29531         remove_reachable_equiv_notes, replace_store_insn,
29532         build_store_vectors): Ignore all DEBUG_INSNs.
29534 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
29536         PR lto/41564
29537         * common.opt: Add dumpdir.
29539         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
29540         isn't specified.
29541         (option_map): Add --dumpdir.
29543         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
29545         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
29547         * opts.c (decode_options): Try dump_dir_name first if
29548         dump_base_name isn't an absolute path.
29549         (common_handle_option): Handle OPT_dumpdir.
29551         * toplev.c (dump_dir_name): New.
29552         (print_switch_values): Also ignore -dumpdir.
29554         * toplev.h (dump_dir_name): New.
29556 2010-01-03  Richard Guenther  <rguenther@suse.de>
29558         PR tree-optimization/42589
29559         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
29560         double-word expansion of bswap32.
29562 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
29564         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
29565         with BLOCK_FOR_INSN.
29566         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
29567         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
29568         noce_process_if_block): Likewise.
29569         * gcse.c (compute_local_properties, insert_expr_in_table,
29570         insert_set_in_table, canon_list_insert, find_avail_set,
29571         pre_insert_copy_insn): Likewise.
29573         * basic-block.h (BLOCK_NUM): Move from here...
29574         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
29576 2010-01-03  Richard Guenther  <rguenther@suse.de>
29578         PR tree-optimization/42438
29579         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
29580         contains_may_not_return_call flag.
29581         (BB_MAY_NOTRETURN): New.
29582         (valid_in_sets): Trapping nary operations are not valid
29583         in blocks that may not return.
29584         (insert_into_preds_of_block): Remove check for trapping expressions.
29585         (compute_avail): Compute also BB_MAY_NOTRETURN.
29587 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
29589         * doc/invoke.texi: Add 2010 to copyright years.
29591 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
29593         * config/sparc/sparc.c: Fix formatting nits.
29595 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
29596             Alexander Monakov  <amonakov@ispras.ru>
29598         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
29600 2010-01-02  Richard Guenther  <rguenther@suse.de>
29602         PR middle-end/42577
29603         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
29604         (simplify_switch_using_ranges): Mark to be removed edges
29605         as non-executable.
29607 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
29609         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
29611         * collect2.c (scan_libraries): Add missing argument in call to
29612         scan_prog_file.
29614 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
29616         PR target/42448
29617         * config/alpha/predicates.md (aligned_memory_operand): Return false
29618         for CQImode.
29619         (unaligned_memory_operand): Return true for CQImode.
29620         * config/alpha/alpha.c (get_aligned_mem): Assert that location
29621         doesn not cross aligned SImode word boundary.
29623 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
29625         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
29626         Remove.
29627         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
29628         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
29630 2010-01-02  Richard Guenther  <rguenther@suse.de>
29632         PR lto/41597
29633         * toplev.c (compile_file): Emit LTO marker properly.  Change
29634         it to __gnu_lto_v1.
29635         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
29637 2010-01-01  Richard Guenther  <rguenther@suse.de>
29639         PR debug/42455
29640         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
29642 2010-01-01  Richard Guenther  <rguenther@suse.de>
29644         PR c/42570
29645         * c-decl.c (grokdeclarator): For zero-size arrays force
29646         structural equality checks as layout_type does.
29648 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29650         * builtins.c: Update copyright to 2010.
29652 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
29654         PR lto/42531
29655         * lto-streamer-out.c (produce_asm): Revert the last change.
29656         (copy_function): Likewise.
29658         * lto-streamer.c (lto_get_section_name): Skip any leading
29659         asterisk in name.
29661 2010-01-01  Richard Guenther  <rguenther@suse.de>
29663         PR middle-end/42559
29664         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
29665         for LABEL_DECLs.
29668 Copyright (C) 2010 Free Software Foundation, Inc.
29670 Copying and distribution of this file, with or without modification,
29671 are permitted in any medium without royalty provided the copyright
29672 notice and this notice are preserved.