* config.gcc (mipsisa64*-*-linux*): New configuration. Set ISA
[official-gcc.git] / gcc / ChangeLog
blob8d21c791d38a7d039a159dd7b30abc67f5fb09f3
1 2008-07-31  Adam Nemet  <anemet@caviumnetworks.com>
3         * config.gcc (mipsisa64r2*-*-linux*): New configuration.  Set ISA
4         to MIPS64r2.
5         * config/mips/mips.h (GENERATE_MIPS16E): Update comment.
6         (ISA_MIPS64R2): New macro.
7         (TARGET_CPU_CPP_BUILTINS, MULTILIB_ISA_DEFAULT): Handle it.
8         (ISA_HAS_64BIT_REGS, ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE,
9         ISA_HAS_8CC, ISA_HAS_FP4, ISA_HAS_PAIRED_SINGLE,
10         ISA_HAS_MADD_MSUB, ISA_HAS_NMADD4_NMSUB4, ISA_HAS_CLZ_CLO,
11         ISA_HAS_ROR, ISA_HAS_PREFETCH, ISA_HAS_PREFETCHX, ISA_HAS_SEB_SEH,
12         ISA_HAS_EXT_INS, ISA_HAS_MXHC1, ISA_HAS_HILO_INTERLOCKS,
13         ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Return true for ISA_MIPS64R2.
14         (MIPS_ISA_LEVEL_SPEC, ASM_SPEC, LINK_SPEC): Handle -mips64r2.
15         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF):
16         Move up to keep list alphabetically sorted.
17         (TUNE_20KC, TUNE_24K, TUNE_74K, TUNE_LOONGSON_2EF): Likewise.
18         * config/mips/mips.c (mips_cpu_info_table): Add default MIPS64r2
19         processor.
20         * doc/invoke.texi (MIPS Options): Add -mips64r2.
21         (-march=@var{arch}): Add mips64r2.
23 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
25         * config/i386/darwin.h (MAIN_STACK_BOUNDARY): Define to 128.
27 2008-07-31  Steve Ellcey  <sje@cup.hp.com>
29         * expr.c (expand_assignment): Check for complete type.
31 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
33         PR debug/36977
34         * cfgexpand.c (expand_stack_alignment): Set stack_realign_tried.
36         * dwarf2out.c (based_loc_descr): Check crtl->stack_realign_tried
37         for stack alignment.
39         * function.h (rtl_data): Add stack_realign_tried.  Update
40         comments.
42 2008-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
44         * config/sh/sh.c (sh_canonical_va_list_type): Remove.
45         (TARGET_CANONICAL_VA_LIST_TYPE): Remove.            
47 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
49         PR rtl-optimization/36419
50         * dwarf2out.c (barrier_args_size): New variable.
51         (compute_barrier_args_size, compute_barrier_args_size_1): New
52         functions.
53         (dwarf2out_stack_adjust): For BARRIERs call compute_barrier_args_size
54         if not called yet in the current function, use barrier_args_size
55         array to find the new args_size value.
56         (dwarf2out_frame_debug): Free and clear barrier_args_size.
58 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
60         PR debug/36980
61         * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before
62         rule 19.
64 2008-07-31  H.J. Lu  <hongjiu.lu@intel.com>
66         PR debug/36976
67         * dwarf2out.c (dwarf2out_args_size_adjust): New.
68         (dwarf2out_stack_adjust): Use it.
69         (dwarf2out_frame_debug_expr): Likewise.
71 2008-07-31  Richard Guenther  <rguenther@suse.de>
73         PR tree-optimization/36978
74         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Do not fold
75         the generated condition.
77 2008-07-31  Richard Guenther  <rguenther@suse.de>
79         * passes.c (init_optimization_passes): Always call
80         pass_early_warn_uninitialized.
81         * opts.c (decode_options): Do not warn about -Wuninitialized
82         at -O0.
83         * doc/invoke.texi (-Wuninitialized): Correct for enabling at -O0.
84         * doc/passes.texi (Warn for uninitialized variables): Adjust.
86 2008-07-31  Jakub Jelinek  <jakub@redhat.com>
88         PR c/36970
89         * builtins.c (maybe_emit_free_warning): New function.
90         (expand_builtin): Process BUILT_IN_FREE even at -O0.  Call
91         maybe_emit_free_warning for BUILT_IN_FREE.
93         PR debug/36278
94         * dwarf2out.c (get_context_die): New function.
95         (force_decl_die, force_type_die): Use it.
96         (dwarf2out_imported_module_or_decl): Likewise.  If base_type_die
97         returns NULL, force generation of DW_TAG_typedef and put that into
98         DW_AT_import.
100         PR preprocessor/36649
101         * c-pch.c (c_common_read_pch): Save and restore
102         line_table->trace_includes across PCH restore.
104 2008-07-30  Eric Botcazou  <ebotcazou@adacore.com>
106         PR ada/36554
107         * dwarf2out.c (is_subrange_type): Deal with BOOLEAN_TYPE.
109 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
111         PR 36974
112         * final.c (call_from_call_insn): Handle COND_EXEC.
114 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
116         * builtins.c (std_gimplify_va_arg_expr): Replace
117         PREFERRED_STACK_BOUNDARY with MAX_SUPPORTED_STACK_ALIGNMENT.
118         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
120 2008-07-30  Joey Ye  <joey.ye@intel.com>
121             H.J. Lu  <hongjiu.lu@intel.com>
123         * builtins.c (expand_builtin_setjmp_receiver): Replace
124         virtual_incoming_args_rtx with crtl->args.internal_arg_pointer.
125         (expand_builtin_apply_args_1): Likewise.
126         (expand_builtin_longjmp): Need DRAP for stack alignment.
127         (expand_builtin_apply): Likewise.
129         * caller-save.c (setup_save_areas): Call assign_stack_local_1
130         instead of assign_stack_local to allow alignment reduction.
132         * calls.c (emit_call_1): Need DRAP for stack alignment if
133         return pops.
134         (expand_call): Replace virtual_incoming_args_rtx with
135         crtl->args.internal_arg_pointer.
136         * stmt.c (expand_nl_goto_receiver): Likewise.
138         * cfgexpand.c (get_decl_align_unit): Estimate stack variable
139         alignment and store to stack_alignment_estimated and
140         max_used_stack_slot_alignment.
141         (expand_one_var): Likewise.
142         (expand_stack_alignment): New function.
143         (tree_expand_cfg): Initialize max_used_stack_slot_alignment
144         and stack_alignment_estimated fields in rtl_data.  Call
145         expand_stack_alignment at end.
147         * defaults.h (INCOMING_STACK_BOUNDARY): New.
148         (MAX_STACK_ALIGNMENT): Likewise.
149         (MAX_SUPPORTED_STACK_ALIGNMENT): Likewise.
150         (SUPPORTS_STACK_ALIGNMENT): Likewise.
152         * emit-rtl.c (gen_reg_rtx): Estimate stack alignment for
153         stack alignment when generating virtual registers.
155         * function.c (assign_stack_local): Renamed to ...
156         (assign_stack_local_1): This.  Add a parameter to indicate
157         if it is OK to reduce alignment.
158         (assign_stack_local): Use it.
159         (instantiate_new_reg): Instantiate virtual incoming args rtx
160         to vDRAP if stack realignment and DRAP is needed.
161         (assign_parms): Collect parameter/return type alignment and
162         contribute to stack_alignment_estimated.
163         (locate_and_pad_parm): Likewise.
164         (get_arg_pointer_save_area): Replace virtual_incoming_args_rtx
165         with crtl->args.internal_arg_pointer.
167         * function.h (rtl_data): Add new field drap_reg,
168         max_used_stack_slot_alignment, stack_alignment_estimated,
169         stack_realign_needed, need_drap, stack_realign_processed and
170         stack_realign_finalized.
171         (stack_realign_fp): New macro.
172         (stack_realign_drap): Likewise.
174         * global.c (compute_regsets): Frame pointer is needed when
175         stack is realigned.  Can eliminate frame pointer when stack is
176         realigned and dynamic realigned argument pointer isn't used.
178         * reload1.c (update_eliminables):  Frame pointer is needed
179         when stack is realigned.
180         (init_elim_table): Can eliminate frame pointer when stack is
181         realigned and dynamic realigned argument pointer isn't used.
183         * rtl.h (assign_stack_local_1): Declare new funtion.
185         * target-def.h (TARGET_UPDATE_STACK_BOUNDARY): New.
186         (TARGET_GET_DRAP_RTX): Likewise.
187         (TARGET_CALLS): Add TARGET_UPDATE_STACK_BOUNDARY and
188         TARGET_GET_DRAP_RTX.
190         * target.h (gcc_target): Add update_stack_boundary and
191         get_drap_rtx.
193         * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
194         STACK_BOUNDARY with MAX_STACK_ALIGNMENT.
196 2008-07-30  Xuepeng Guo  <xuepeng.guo@intel.com>
197             H.J. Lu  <hongjiu.lu@intel.com>
199         * dwarf2out.c (dw_fde_struct): Add stack_realignment, drap_reg,
200         vdrap_reg, stack_realign and drap_reg_saved.
201         (add_cfi): Don't allow redefining CFA when DRAP is used.
202         (reg_save): Handle stack alignment.
203         (dwarf2out_frame_debug_expr): Add rules 16-20 to handle stack
204         alignment.  Don't generate DWARF information for (set fp sp)
205         when DRAP is used.
206         (dwarf2out_begin_prologue): Initialize drap_reg and vdrap_reg
207         to INVALID_REGNUM.
208         (int_loc_descriptor): Move prototype forward.  Also define if
209         DWARF2_UNWIND_INFO is true.
210         (output_cfa_loc): Handle DW_CFA_expression.
211         (build_cfa_aligned_loc): New.
212         (based_loc_descr): Update assert for stack realign.  For local
213         variables, use sp+offset when stack is aligned without drap and
214         fp+offset when stack is aligned with drap.  For arguments, use
215         cfa+offset when drap is used to align stack.
217 2008-07-30  Joey Ye  <joey.ye@intel.com>
218             H.J. Lu  <hongjiu.lu@intel.com>
220         * config/i386/i386.c (ix86_force_align_arg_pointer_string):
221         Break long line.
222         (ix86_gen_andsp): New.
223         (ix86_user_incoming_stack_boundary): Likewise.
224         (ix86_default_incoming_stack_boundary): Likewise.
225         (ix86_incoming_stack_boundary): Likewise.
226         (ix86_can_eliminate): Likewise.
227         (find_drap_reg): Likewise.
228         (ix86_update_stack_boundary): Likewise.
229         (ix86_get_drap_rtx): Likewise.
230         (ix86_finalize_stack_realign_flags): Likewise.
231         (TARGET_UPDATE_STACK_BOUNDARY): Likewise.
232         (TARGET_GET_DRAP_RTX): Likewise.
233         (override_options): Overide option value for new options.
234         (ix86_function_ok_for_sibcall): Remove check for
235         force_align_arg_pointer.
236         (ix86_handle_cconv_attribute): Likewise.
237         (ix86_function_regparm): Likewise.
238         (setup_incoming_varargs_64): Don't set stack_alignment_needed
239         here.
240         (ix86_va_start): Replace virtual_incoming_args_rtx with
241         crtl->args.internal_arg_pointer.
242         (ix86_select_alt_pic_regnum): Check DRAP register.
243         (ix86_save_reg): Replace force_align_arg_pointer with drap_reg.
244         (ix86_compute_frame_layout): Compute frame layout wrt stack
245         realignment.
246         (ix86_internal_arg_pointer): Just return
247         virtual_incoming_args_rtx.
248         (ix86_expand_prologue): Decide if stack realignment is needed
249         and generate prologue code accordingly.
250         (ix86_expand_epilogue): Generate epilogue code wrt stack
251         realignment is really needed or not.
252         
253         * config/i386/i386.h (MAIN_STACK_BOUNDARY): New.
254         (ABI_STACK_BOUNDARY): Likewise.
255         (PREFERRED_STACK_BOUNDARY_DEFAULT): Likewise.
256         (STACK_REALIGN_DEFAULT): Likewise.
257         (INCOMING_STACK_BOUNDARY): Likewise.
258         (MAX_STACK_ALIGNMENT): Likewise.
259         (ix86_incoming_stack_boundary): Likewise.
260         (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Removed.
261         (REAL_PIC_OFFSET_TABLE_REGNUM): Updated to use BX_REG.
262         (CAN_ELIMINATE): Defined with ix86_can_eliminate.
263         (machine_function): Remove force_align_arg_pointer.
265         * config/i386/i386.md (BX_REG): New.
266         (R13_REG): Likewise.
268         * config/i386/i386.opt (mforce_drap): New.
269         (mincoming-stack-boundary): Likewise.
270         (mstackrealign): Add Init(-1).
272         * config/i386/i386-protos.h (ix86_can_eliminate): New
274 2008-07-30  H.J. Lu  <hongjiu.lu@intel.com>
276         * doc/extend.texi: Update force_align_arg_pointer.
278         * doc/invoke.texi: Document -mincoming-stack-boundary.  Update
279         -mstackrealign.
281         * doc/tm.texi (MAX_STACK_ALIGNMENT): Add macro.
282         (INCOMING_STACK_BOUNDARY): Likewise.
283         (TARGET_UPDATE_STACK_BOUNDARY): New target hook.
284         (TARGET_GET_DRAP_RTX): Likewise.
286 2008-07-30  Andreas Schwab  <schwab@suse.de>
288         PR rtl-optimization/36929
289         * dse.c (replace_inc_dec): Use emit_insn_before instead of
290         add_insn_before and fix argument order.
291         (replace_inc_dec_mem): Handle NULL rtx.
293 2008-07-30  Andrew Jenner  <andrew@codesourcery.com>
295         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): New
296         function.
297         (arm_compute_initial_elimination_offset): Use it.
298         (arm_compute_save_reg_mask): Include static chain save slot when
299         calculating alignment.
300         (arm_get_frame_offsets): Ditto.
301         (thumb1_compute_save_reg_mask): Ensure we have a low register saved
302         that we can use to decrement the stack when the stack decrement
303         could be too big for an immediate value in a single insn.
304         (thumb1_expand_prologue): Avoid using r12 for stack decrement.
306 2008-07-30  Richard Guenther  <rguenther@suse.de>
308         PR tree-optimization/36967
309         * tree-predcom.c (remove_stmt): Use gimple_assign_ssa_name_copy_p.
310         Release defs of statements we remove.
312 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
314         * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec
315         instead of NULL_RTVEC.
317 2008-07-30  Nathan Froyd  <froydnj@codesourcery.com>
319         PR target/35866
321         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Add clause for
322         vector modes.
324 2008-07-30  Rafael Avila de Espindola  <espindola@google.com>
326        * final.c (call_from_call_insn): New.
327        (final_scan_insn): Call assemble_external on FUNCTION_DECLs.
329 2008-07-30  Paolo Bonzini  <bonzini@gnu.org>
331         * configure.ac: Substitute ADA_CFLAGS.
332         * configure: Regenerate.
333         * config.host: Remove mention of pa/x-ada and pa/x-ada-hpux10 files.
334         * Makefile.in: Remove mention of X_* variables.
335         * config/pa/x-ada-hpux10: Remove.
336         * config/pa/x-ada: Remove.
338         * doc/fragments.texi: Update.
340 2008-07-30  Olivier Hainque  <hainque@adacore.com>
342         * config/mips/irix-crti.asm: .hide __gcc_init and __gcc_fini.
343         * config/mips/iris6.h (IRIX_SUBTARGET_LINK_SPEC, irix ld): Hide
344         __dso_handle explicitly here.
346 2008-07-30  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
348         PR 34389
349         * c-typeck.c (build_binary_op): Encapsulate code into...
350         * c-common.c (shorten_binary_op): ...this new function.
351         (conversion_warning): Use the new function. Handle non-negative
352         constant in bitwise-and.
353         * c-common.h (shorten_binary_op): Declare.
355 2008-07-30  Olivier Hainque  <hainque@adacore.com>
357         * scan.c (make_sstring_space): Add explicit conversions of
358         allocator's return value.
359         * fix-header.c (recognized_function): Likewise.
361 2008-07-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
363         * doc/cpp.texi: Update to GFDL 1.2.
364         * doc/gcc.texi: Do not list GPL as Invariant Section.
365         * doc/gccint.texi: Likewise.  Update copyright years.
366         * doc/install.texi: Update copyright years.
368 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
370         PR target/36955
371         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add
372         a use of pic_offset_table_rtx for -msecure-plt __tls_get_addr calls.
374 2008-07-29  Jan Hubicka  <jh@suse.cz>
376         * c-decl.c (merge_decls): Do not handle DECL_INLINE.
377         (grokdeclarator): Likewise.
378         * langhooks.c (lhd_warn_unused_global_decl): Use
379         DECL_DECLARED_INLINE_P.
380         * print-tree.c (print_node): Remove DECL_INLINE check.
382 2008-07-29  Richard Guenther  <rguenther@suse.de>
384         PR tree-optimization/36945
385         * tree-ssa-sccvn.h (copy_reference_ops_from_ref): Declare.
386         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Export.
387         Record invariant addresses un-decomposed.
388         (copy_reference_ops_from_call): Record reference call
389         arguments properly.  Simplify.
390         * tree-ssa-pre.c (create_component_ref_by_pieces_1): New
391         helper split out from ...
392         (create_component_ref_by_pieces): ... here.  Simplify.
393         Prepare for recursive invocation for call arguments.
394         (create_expression_by_pieces): Adjust call to
395         create_component_ref_by_pieces.
396         (compute_avail): Process operand 2 of reference ops.
398 2008-07-29  Richard Guenther  <rguenther@suse.de>
400         * gimplify.c (gimplify_expr): Clear TREE_SIDE_EFFECTS for
401         OBJ_TYPE_REF.
403 2008-07-29  Jakub Jelinek  <jakub@redhat.com>
405         * c-format.c (check_format_types): Revert unwanted checkin.
407 2008-07-29  Jan Hubicka  <jh@suse.cz>
409         * flags.h (flag_really_no_inline): Remove.
410         * cgraph.c (cgraph_function_possibly_inlined_p): Simplify.
411         * toplev.c (flag_really_no_inline): Remove.
412         * c-cppbuiltin.c (c_cpp_builtins): Use flag_no_inline.
413         * ipa-inline.c (cgraph_decide_inlining): Do not check flag_no_inline.
414         (cgraph_decide_inlining_incrementally): Likewise.
415         (compute_inline_parameters): Likewise.
416         * opts.c (decode_options): Simplify.
417         * c-opts.c (c_common_post_options): Do not set flag_no_inline.
418         * common.opt (finline): Initialize to 1.
419         * tree-inline.c (inlinable_function_p): Check flag_no_inline.
421 2008-07-29  Jan Hubicka  <jh@suse.cz>
423         * predict.c (always_optimize_for_size_p): New function.
424         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
425         optimize_edge_for_size_p, optimize_edge_for_speed_p,
426         optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
427         functions.
428         (rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
429         * function.c (prepare_function_start): Set default profile.
430         * function.h (rtl_data): Add maybe_hot_insn_p.
431         * cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
432         (construct_exit_block): Likewise.
433         (tree_expand_cfg): Likewise.
434         * basic-block.h
435         (optimize_bb_for_size_p, optimize_bb_for_speed_p,
436         optimize_edge_for_size_p, optimize_edge_for_speed_p,
437         optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
438         (rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
439         Declare.
441 2008-07-29  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
443         PR 34985
444         * c-decl.c (merge_decls): Merge USED flags.
446 2008-07-29  Kaz Kojima  <kkojima@gcc.gnu.org>
448         * config/sh/sh.c (sh_gimplify_va_arg_expr): Unshare the addr,
449         valist, next_fp, next_fp_tmp, next_fp_limit, next_o, next_o_limit,
450         next_stack, lab_false and lab_over trees.
452 2008-07-28  Richard Guenther  <rguenther@suse.de>
454         PR tree-optimization/36957
455         * tree-flow.h (tree_ssa_useless_type_conversion): Remove.
456         (useless_type_conversion_p): Remove.
457         (types_compatible_p): Remove.
458         * gimple.h (tree_ssa_useless_type_conversion): Declare.
459         (useless_type_conversion_p): Declare.
460         (types_compatible_p): Declare.
461         (gimple_expr_type): Return the base type only if it is
462         trivially convertible to the subtype.
464 2008-07-28  Andreas Tobler  <a.tobler@schweiz.org>
466         * configure.ac: Use the m4_do macro to concatenate the warnings into
467         one string in ACX_PROG_CC_WARNING_OPTS,
468         ACX_PROG_CC_WARNING_ALMOST_PEDANTIC and ACX_PROG_CC_WARNINGS_ARE_ERRORS.
469         * configure: Regenerate.
471 2008-07-28  Richard Guenther  <rguenther@suse.de>
473         * tree-ssa-pre.c (insert_into_preds_of_block): Remove dead code.
474         (insert_fake_stores): Remove.
475         (realify_fake_stores): Likewise.
476         (execute_pre): Remove dead code.
477         * tree-ssa-structalias.c (get_constraint_for_1): Remove tcc_unary
478         case.
479         (find_func_aliases): Deal with it here instead.
480         Re-enable gcc_unreachable call.
482 2008-07-28  Richard Guenther  <rguenther@suse.de>
484         Merge from gimple-tuples-branch.
486         * ChangeLog.tuples: ChangeLog from gimple-tuples-branch.
487         * gimple.def: New file.
488         * gsstruct.def: Likewise.
489         * gimple-iterator.c: Likewise.
490         * gimple-pretty-print.c: Likewise.
491         * tree-gimple.c: Removed.  Merged into ...
492         * gimple.c: ... here.  New file.
493         * tree-gimple.h: Removed.  Merged into ...
494         * gimple.h: ... here.  New file.
496         * Makefile.in: Add dependencies on GIMPLE_H and tree-iterator.h.
497         * configure.ac: Added support for ENABLE_GIMPLE_CHECKING and the
498         --enable-checking=gimple flag.
499         * config.in: Likewise.
500         * configure: Regenerated.
502         * tree-ssa-operands.h: Tuplified.
503         * tree-vrp.c: Likewise.
504         * tree-loop-linear.c: Likewise.
505         * tree-into-ssa.c: Likewise.
506         * tree-ssa-loop-im.c: Likewise.
507         * tree-dump.c: Likewise.
508         * tree-complex.c: Likewise.
509         * cgraphbuild.c: Likewise.
510         * tree-ssa-threadupdate.c: Likewise.
511         * tree-ssa-loop-niter.c: Likewise.
512         * tree-pretty-print.c: Likewise.
513         * tracer.c: Likewise.
514         * gengtype.c: Likewise.
515         * tree-loop-distribution.c: Likewise.
516         * tree-ssa-loop-unswitch.c: Likewise.
517         * cgraph.c: Likewise.
518         * cgraph.h: Likewise.
519         * tree-ssa-loop-manip.c: Likewise.
520         * value-prof.c: Likewise.
521         * tree-ssa-loop-ch.c: Likewise.
522         * tree-tailcall.c: Likewise.
523         * value-prof.h: Likewise.
524         * tree.c: Likewise.
525         * tree.h: Likewise.
526         * tree-pass.h: Likewise.
527         * ipa-cp.c: Likewise.
528         * tree-scalar-evolution.c: Likewise.
529         * tree-scalar-evolution.h: Likewise.
530         * target.h: Likewise.
531         * lambda-mat.c: Likewise.
532         * tree-phinodes.c: Likewise.
533         * diagnostic.h: Likewise.
534         * builtins.c: Likewise.
535         * tree-ssa-alias-warnings.c: Likewise.
536         * cfghooks.c: Likewise.
537         * fold-const.c: Likewise.
538         * cfghooks.h: Likewise.
539         * omp-low.c: Likewise.
540         * tree-ssa-dse.c: Likewise.
541         * ipa-reference.c: Likewise.
542         * tree-ssa-uncprop.c: Likewise.
543         * toplev.c: Likewise.
544         * tree-gimple.c: Likewise.
545         * tree-gimple.h: Likewise.
546         * tree-chrec.c: Likewise.
547         * tree-chrec.h: Likewise.
548         * tree-ssa-sccvn.c: Likewise.
549         * tree-ssa-sccvn.h: Likewise.
550         * cgraphunit.c: Likewise.
551         * tree-ssa-copyrename.c: Likewise.
552         * tree-ssa-ccp.c: Likewise.
553         * tree-ssa-loop-ivopts.c: Likewise.
554         * tree-nomudflap.c: Likewise.
555         * tree-call-cdce.c: Likewise.
556         * ipa-pure-const.c: Likewise.
557         * c-format.c: Likewise.
558         * tree-stdarg.c: Likewise.
559         * tree-ssa-math-opts.c: Likewise.
560         * tree-ssa-dom.c: Likewise.
561         * tree-nrv.c: Likewise.
562         * tree-ssa-propagate.c: Likewise.
563         * ipa-utils.c: Likewise.
564         * tree-ssa-propagate.h: Likewise.
565         * tree-ssa-alias.c: Likewise.
566         * gimple-low.c: Likewise.
567         * tree-ssa-sink.c: Likewise.
568         * ipa-inline.c: Likewise.
569         * c-semantics.c: Likewise.
570         * dwarf2out.c: Likewise.
571         * expr.c: Likewise.
572         * tree-ssa-loop-ivcanon.c: Likewise.
573         * predict.c: Likewise.
574         * tree-ssa-loop.c: Likewise.
575         * tree-parloops.c: Likewise.
576         * tree-ssa-address.c: Likewise.
577         * tree-ssa-ifcombine.c: Likewise.
578         * matrix-reorg.c: Likewise.
579         * c-decl.c: Likewise.
580         * tree-eh.c: Likewise.
581         * c-pretty-print.c: Likewise.
582         * lambda-trans.c: Likewise.
583         * function.c: Likewise.
584         * langhooks.c: Likewise.
585         * ebitmap.h: Likewise.
586         * tree-vectorizer.c: Likewise.
587         * function.h: Likewise.
588         * langhooks.h: Likewise.
589         * tree-vectorizer.h: Likewise.
590         * ipa-type-escape.c: Likewise.
591         * ipa-type-escape.h: Likewise.
592         * domwalk.c: Likewise.
593         * tree-if-conv.c: Likewise.
594         * profile.c: Likewise.
595         * domwalk.h: Likewise.
596         * tree-data-ref.c: Likewise.
597         * tree-data-ref.h: Likewise.
598         * tree-flow-inline.h: Likewise.
599         * tree-affine.c: Likewise.
600         * tree-vect-analyze.c: Likewise.
601         * c-typeck.c: Likewise.
602         * gimplify.c: Likewise.
603         * coretypes.h: Likewise.
604         * tree-ssa-phiopt.c: Likewise.
605         * calls.c: Likewise.
606         * tree-ssa-coalesce.c: Likewise.
607         * tree.def: Likewise.
608         * tree-dfa.c: Likewise.
609         * except.c: Likewise.
610         * except.h: Likewise.
611         * cfgexpand.c: Likewise.
612         * tree-cfgcleanup.c: Likewise.
613         * tree-ssa-pre.c: Likewise.
614         * tree-ssa-live.c: Likewise.
615         * tree-sra.c: Likewise.
616         * tree-ssa-live.h: Likewise.
617         * tree-predcom.c: Likewise.
618         * lambda.h: Likewise.
619         * tree-mudflap.c: Likewise.
620         * ipa-prop.c: Likewise.
621         * print-tree.c: Likewise.
622         * tree-ssa-copy.c: Likewise.
623         * ipa-prop.h: Likewise.
624         * tree-ssa-forwprop.c: Likewise.
625         * ggc-page.c: Likewise.
626         * c-omp.c: Likewise.
627         * tree-ssa-dce.c: Likewise.
628         * tree-vect-patterns.c: Likewise.
629         * tree-ssa-ter.c: Likewise.
630         * tree-nested.c: Likewise.
631         * tree-ssa.c: Likewise.
632         * lambda-code.c: Likewise.
633         * tree-ssa-loop-prefetch.c: Likewise.
634         * tree-inline.c: Likewise.
635         * tree-inline.h: Likewise.
636         * tree-iterator.c: Likewise.
637         * tree-optimize.c: Likewise.
638         * tree-ssa-phiprop.c: Likewise.
639         * tree-vect-transform.c: Likewise.
640         * tree-object-size.c: Likewise.
641         * tree-outof-ssa.c: Likewise.
642         * cfgloop.c: Likewise.
643         * system.h: Likewise.
644         * tree-profile.c: Likewise.
645         * cfgloop.h: Likewise.
646         * c-gimplify.c: Likewise.
647         * c-common.c: Likewise.
648         * tree-vect-generic.c: Likewise.
649         * tree-flow.h: Likewise.
650         * c-common.h: Likewise.
651         * basic-block.h: Likewise.
652         * tree-ssa-structalias.c: Likewise.
653         * tree-switch-conversion.c: Likewise.
654         * tree-ssa-structalias.h: Likewise.
655         * tree-cfg.c: Likewise.
656         * passes.c: Likewise.
657         * ipa-struct-reorg.c: Likewise.
658         * ipa-struct-reorg.h: Likewise.
659         * tree-ssa-reassoc.c: Likewise.
660         * cfgrtl.c: Likewise.
661         * varpool.c: Likewise.
662         * stmt.c: Likewise.
663         * tree-ssanames.c: Likewise.
664         * tree-ssa-threadedge.c: Likewise.
665         * langhooks-def.h: Likewise.
666         * tree-ssa-operands.c: Likewise.
667         * config/alpha/alpha.c: Likewise.
668         * config/frv/frv.c: Likewise.
669         * config/s390/s390.c: Likewise.
670         * config/m32c/m32c.c: Likewise.
671         * config/m32c/m32c-protos.h: Likewise.
672         * config/spu/spu.c: Likewise.
673         * config/sparc/sparc.c: Likewise.
674         * config/i386/i386.c: Likewise.
675         * config/sh/sh.c: Likewise.
676         * config/xtensa/xtensa.c: Likewise.
677         * config/stormy16/stormy16.c: Likewise.
678         * config/ia64/ia64.c: Likewise.
679         * config/rs6000/rs6000.c: Likewise.
680         * config/pa/pa.c: Likewise.
681         * config/mips/mips.c: Likewise.
683 2008-07-28  Simon Baldwin  <simonb@google.com>
685         * c-pragma.c (handle_pragma_message): New function.
686         (init_pragma): Register handle_pragma_message.
687         * doc/extend.texi (Diagnostic Pragmas): Added #pragma message
688         documentation.
690 2008-07-27  Victor Kaplansky  <victork@il.ibm.com>
692         PR tree-optimization/35252
693         * tree-vect-analyze.c (vect_build_slp_tree): Make IMAGPART_EXPR and
694         REALPART_EXPR to be considered as same load operation.
696 2008-07-27  Eric Botcazou  <ebotcazou@adacore.com>
698         PR tree-optimization/36830
699         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Hash operand #2.
700         (expressions_equal_p): Return false if only one operand is null.
702 2008-07-26  Gerald Pfeifer  <gerald@pfeifer.com>
704         * doc/install.texi (powerpc-*-netbsd*): Remove redundant texinfo
705         version requirements.
707 2008-07-26  Olivier Hainque  <hainque@adacore.com>
709         * collect2.c (symkind): New enum.  Symbol kinds we care about.
710         (is_ctor_dtor): Return symkind instead of int.  Adjust prototype,
711         code and head comment accordingly.
712         (scan_prog_file): Use symkind names instead of bare integers.
714 2008-07-25  Jan Hubicka  <jh@suse.cz>
716         * cgraph.c (cgraph_function_possibly_inlined_p): Do not rely on DECL_INLINE.
717         * cgraphunit.c (record_cdtor_fn): Do not initialize DECL_INLINE
718         (cgraph_preserve_function_body_p): Do not rely on DECL_INLINE.
719         * dojump.c (clear_pending_stack_adjust): Likewise.
720         * print-tree.c (print_node): Ignore DECL_INLINE.
721         * tree-inline.c (inlinable_function_p): Likewise.
723 2008-07-25  Michael Meissner  <gnu@the-meissners.org>
725         * doc/extend.texi (hot attribute): Document that the hot attribute
726         turns on -O3 for some ports.
727         (cold attribute): Document that the cold attribute turns on -Os
728         for some ports
730         * doc/tm.texi (OPTIMIZATION_OPTIONS): Update documentation to
731         reflect function specific option support.
733         * target.h (struct target_option_hooks): Add fields to say whether
734         the cold attribute implies -Os and the hot attribute implies -O3.
736         * target-def.h (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION):
737         By default, do not turn on -Os for cold functions.
738         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): By default, do
739         not turn on -O3 for hot functions.
741         * c-common.c (handle_hot_attribute): Use target hook to determine
742         if hot functions should enable -O3.
743         (handle_cold_attribute): Use target hook to determine if cold
744         functions should enable -Os.
746         * config/i386/i386.c (ix86_target_string): Add -m3dnowa support.
747         (override_options): Move disable scheduling to
748         optimization_options.
749         (optimization_options): Disable scheduling here, not
750         override_options.
751         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
752         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
754         * config/ia64/ia64.c (ia64_override_options): Move setting
755         scheduling flags to ia64_optimization_options.
756         (ia64_optimization_options): Disable scheduling options here, and
757         not in ia64_override_options.
758         (TARGET_OPTION_COLD_ATTRIBUTE_SETS_OPTIMIZATION): Define.
759         (TARGET_OPTION_HOT_ATTRIBUTE_SETS_OPTIMIZATION): Define.
761 2008-07-25  H.J. Lu  <hongjiu.lu@intel.com>
763         PR target/36936
764         * config/i386/i386.c (override_options): Don't clear TARGET_CMOVE.
766 2008-07-25  Martin Jambor  <mjambor@suse.cz>
768         PR tree-optimization/36926
769         * ipa-prop.c (ipa_analyze_call_uses): Call
770         ipa_is_ssa_with_stmt_def instead of SSA_NAME_IS_DEFAULT_DEF.
772 2008-07-25  Joseph Myers  <joseph@codesourcery.com>
774         * config/arm/iwmmxt.md (movv8qi_internal, movv4hi_internal,
775         movv2si_internal): Add mem = reg alternative.
777 2008-07-25  Andreas Tobler  <a.tobler@schweiz.org>
779         PR bootstrap/36918
780         * config/sparc/sparc.h (DEFAULT_PCC_STRUCT_RETURN): Define
781         DEFAULT_PCC_STRUCT_RETURN to 127.
783 2008-07-24  Jan Hubicka  <jh@suse.cz>
785         * cgraphbuild.c (record_reference): Drop non-unit-at-a-time code.
786         (build_cgraph_edges): Likewise.
787         * cgraph.c (cgraph_node): Do not update assembler hash.
788         (cgraph_remove_node): Drop non-unit-at-a-time code.
789         * tree-pass.h (pass_O0_always_inline): Remove.
790         * ipa-reference.c (gate_reference): Remove unit-at-a-time check.
791         * toplev.c (process_options): Flag unit-at-a-time does not imply
792         no section anchors.
793         * cgraphunit.c: Update comments.
794         (decide_is_function_needed): Drop non-unit-at-a-time mode.
795         (cgraph_assemble_pending_functions): Remove.
796         (cgraph_reset_node): Drop non-unit-at-a-time code.
797         (cgraph_finalize_function): Likewise.
798         (cgraph_analyze_function): Likewise.
799         (cgraph_finalize_compilation_unit): Likewise.
800         (cgraph_expand_function): Likewise.
801         (cgraph_optimize): Likesise.
802         (save_inline_function_body): Likewise.
803         * ipa-pure-const.c (gate_pure_const): Drop flag_unit_at_a_time check.
804         * tree-ssa-alias.c (maybe_be_aliased): Likewise.
805         * ipa-inline.c: Update comments.
806         (enum inlining_mode): remove INLINE_SPEED.
807         (cgraph_clone_inlined_nodes): Drop unit-at-a-time check.
808         (cgraph_mark_inline_edge): Likewise.
809         (try_inline): Likewise.
810         (cgraph_decide_inlining_incrementally): Likewise.
811         (cgraph_gate_inlining): Remove.
812         (cgraph_early_inlining): Remove flag_unit_at_a_time checks.
813         (cgraph_gate_early_inlining): Likewise.
814         (gate_inline_passes): Remove.
815         (pass_inline_parameters, pass_ipa_inline): Remove gates.
816         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
817         pass_O0_always_inline): Remove.
818         * c-pch.c (c_pch_matching): Remove -funit-at-a-time.
819         * dwarf2out.c (reference_to_unused): Remove flag_unit_at_a_time check.
820         * opts.c (no_unit_at_a_time_default): Remove.
821         (decode_options): Remove flag_unit_at_a_time reset and warning.
822         * opts.h (no_unit_at_a_time_default): Remove.
823         * c-decl.c (diagnose_mismatched_decls): Do not require inline keyword
824         early in GNU dialect.
825         (merge_decls): Update comment; drop unit-at-a-time check.
826         (finish_decl): Likewise.
827         (grok_declaration): Remove flag_inline_trees code.
828         (finish_functions): Return on function returning non-void on all
829         statics.
830         * ipa-tye-escape.c (gate_type_escape_vars): Remove.
831         * cfgexpand.c (expand_one_static_var): Remove.
832         (expand_one_var): Remove expand_one_static_var call.
833         (expand_used_vars_for_block): Remove flag_unit_a_time check.
834         * c-opts.c (c_common_post_options): Remove flag_inline_trees code
835         and flag_unit_at_a-time compatibility checks.
836         * varasm.c (assemble_alias): Remove flag_unit_at_a_time check.
837         * tree-inline.c (flag_inline_trees): Remove.
838         (inlinable_function_p): Don't check it.
839         (expand_call_inline): Remove non-unit-at-a-time code.
840         * tree-inline.h (flag_inline_trees): Remove.
841         * tree-optimize.c (execute_early_local_optimizations): Remove
842         unit-at-a-time checks.
843         (tree_rest_of_compilation): Likewise.
844         * combine.c (setup_incoming_promotions): Likewise.
845         * tree-profile.c (tree_gen_ic_func_profiler): Likewise.
846         * tree-ssa-structalias.c (delete_points_to_sets): Likewise.
847         * passes.c (pass_inline_parameters): Update comments; remove
848         O0_alwaysinline pass.
849         (execute_one_ipa_transform_pass): Do not reset in_gimple_form.
850         (execute_one_pass): Likewise.
851         * i386.c (ix86_function_regparm): Remove unit-at-a-time check.
852         (ix86_function_sseregparm): Likewise.
853         * arm.c (arm_function_in_section_p): Likewise.
854         * bfin.c (bfin_load_pic_reg, bfin_function_ok_for_sibcall): Likewise.
855         * varpool.c: Update comments.
856         (decide_is_variable_needed): Remove unit-at-a-time checks.
857         (varpool_finalize_decl): Likewise.
859 2008-07-24  Kaz Kojima  <kkojima@gcc.gnu.org>
861         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_omit_frame_pointer
862         to 2 instead of -1.
863         (OVERRIDE_OPTIONS): Check if flag_omit_frame_pointer is equal
864         to 2.
866 2008-07-24  Kai Tietz  <kai.tietz@onevision.com>
868         * config/i386/i386.c (get_dllimport_decl): Treat user_label_prefix for
869         imp symbol extension.
871         2008-07-23  Ian Lance Taylor  <iant@google.com>
873         * tree-vrp.c (infer_value_range): Ignore asm statements when
874         looking for memory accesses for -fdelete-null-pointer-checks.
876 2008-07-24  Ben Elliston  <bje@au.ibm.com>
878         * config/spu/spu-c.c (__vector_keyword): New variable.
879         (vector_keyword): Likewise.
880         (spu_categorize_keyword): New function.
881         (spu_macro_to_expand): Likewise.
882         (spu_cpu_cpp_builtins): Enable context-sensitive macros if not
883         compiling an ISO C dialect.
885 2008-07-24  Ben Elliston  <bje@au.ibm.com>
887         * config/rs6000/rs6000-c.c: Move GTY(()) markers to match
888         conventional usage.
890 2008-07-23  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
892         * configure: Regenerate.
893         * configure.ac: Require texinfo 4.7.
894         * doc/install.texi: Document texinfo 4.7 requirement.
896 2008-07-23  Martin Jambor  <mjambor@suse.cz>
898         * ipa-cp.c (ipcp_print_edge_profiles): Test for node->analyzed
899         rather than for DECL_SAVED_TREE.
900         * ipa-prop.c: Include diagnostic.h.
901         (ipa_check_stmt_modifications): Check LHS of GIMPLE_MODIFY_EXPRs
902         thoroughly.
903         (ipa_detect_param_modifications): Function rewritten from scratch.
904         (ipa_compute_jump_functions): Changed accesses to modification flags.
905         (ipa_free_node_params_substructures): Update flags destruction.
906         (ipa_node_duplication_hook): Update flags duplication.
907         (ipa_print_all_params_modified): Updated flag access.
908         * ipa-prop.h (struct ipa_param_flags): New structure.
909         (struct ipa_node_params): New field modification_analysis_done,
910         modified_flags changed into param_flags.
911         (ipa_is_ith_param_modified): Changed to use new flags.
912         * Makefile.in (ipa-prop.o): Add $(DIAGNOSTIC_H) to dependencies.
914         * ipa-prop.c (ipa_print_all_jump_functions): Moved here from
915         ipa-cp.c and split into two functions.
916         (ipa_print_node_jump_functions): New function.
917         (compute_scalar_jump_functions): New function.
918         (type_like_member_ptr_p): New function.
919         (compute_pass_through_member_ptrs): New function.
920         (fill_member_ptr_cst_jump_function): New function.
921         (determine_cst_member_ptr): New function.
922         (compute_cst_member_ptr_arguments): New function.
923         (ipa_compute_jump_functions): Complete rewrite.
924         * ipa-prop.h (enum jump_func_type): Make explicit that we depend
925         on IPA_UNKNOWN being zero. Added value IPA_CONST_MEMBER_PTR.
926         (struct ipa_member_ptr_cst): New structure.
927         (union jump_func_value): New field member_cst.
928         * ipa-cp.c (ipcp_lat_is_insertable): New function.
929         (ipcp_lattice_from_jfunc): Produces bottom lattices for unhandled
930         jump function types.
931         (ipcp_print_all_lattices): Slight fprintf rearrangement.
932         (ipcp_print_all_structures): Call ipa_print_all_jump_functions
933         instead of ipcp_print_all_jump_functions.
934         (ipcp_insert_stage): Use ipcp_lat_is_insertable, create replace maps
935         only for replacable scalars.
937         * doc/invoke.texi (Optimize options): Add description of
938         -findirect-inlining.
939         * common.opt (flag_indirect_inlining): New flag.
940         * opts.c (decode_options): Set flag_indirect_inlining when
941         optimize >= 3.
943         * ipa-inline.c: Include ipa-prop.h.
944         (inline_indirect_intraprocedural_analysis): New function.
945         (inline_generate_summary): Allocate parameter and argument info
946         structures, call inline_indirect_intraprocedural_analysis on each
947         node when doing indirect inlining and deallocate indirect inlining
948         data structures in the end.
949         * ipa-prop.c (ipa_create_param_decls_array): Return if already done.
950         (free_all_ipa_structures_after_iinln): New function.
951         (free_all_ipa_structures_after_ipa_cp): Checks whether iinln will be
952         done.
953         * Makefile.in (ipa-inline.o): Added $(IPA_PROP_H) to dependencies.
955         * cgraphbuild.c (compute_call_stmt_bb_frequency): New function.
956         (build_cgraph_edges): Call compute_call_stmt_bb_frequency instead
957         of computing the frequency separately.
958         (rebuild_cgraph_edges): Call compute_call_stmt_bb_frequency instead
959         of computing the frequency separately.
960         * ipa-cp.c (ipcp_print_all_structures): Replace a call to
961         ipa_print_all_param_modified with a call to ipa_print_all_param_flags.
962         * ipa-prop.c (ipa_get_member_ptr_load_param): New function.
963         (ipa_get_stmt_member_ptr_load_param): New function.
964         (ipa_is_ssa_with_stmt_def): New function.
965         (ipa_note_param_call): New function.
966         (ipa_analyze_call_uses): New function.
967         (ipa_analyze_stmt_uses): New function.
968         (ipa_analyze_params_uses): New function.
969         (ipa_free_node_params_substructures): Also free the param_calls linked
970         list.
971         (ipa_node_duplication_hook): Also duplicate the param_calls linked list.
972         (ipa_print_node_param_flags): New function.
973         (ipa_print_all_params_modified): Renamed to ipa_print_all_param_flags.
974         (ipa_print_all_param_flags): Calls ipa_print_node_param_flags.
975         * ipa-prop.h (struct ipa_param_flags): New field called.
976         (struct ipa_param_call_note): New structure.
977         (struct ipa_node_params): New fields param_calls and
978         uses_analysis_done.
979         (ipa_is_ith_param_called): New function.
980         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
981         ipa_analyze_params_uses and dump parameter flags.
983         * ipa-inline.c (cgraph_decide_recursive_inlining): Call
984         ipa_propagate_indirect_call_infos if performing indirect inlining,
985         pass a new parameter new_edges to it.
986         (add_new_edges_to_heap): New fucntion.
987         (cgraph_decide_inlining_of_small_functions): New vector
988         new_indirect_edges for newly found indirect edges , call
989         ipa_propagate_indirect_call_infos after inlining.
990         (cgraph_decide_inlining): Call ipa_propagate_indirect_call_infos after
991         inlining if performing indirect inlining.  Call
992         free_all_ipa_structures_after_iinln when doing so too.
993         (inline_generate_summary): Do not call
994         free_all_ipa_structures_after_iinln here.
995         * ipa-prop.c (update_jump_functions_after_inlining): New function.
996         (print_edge_addition_message): New function.
997         (update_call_notes_after_inlining): New function.
998         (propagate_info_to_inlined_callees): New function.
999         (ipa_propagate_indirect_call_infos): New function.
1000         * ipa-prop.h: Include cgraph.h
1001         (struct ipa_param_call_note): Fields reordered, new field processed.
1002         * cgraph.h (cgraph_edge): Shrink loop_nest field to 31 bits, add a new
1003         flag indirect_call.
1004         * cgraphunit.c (verify_cgraph_node): Allow indirect edges not to have
1005         rediscovered call statements.
1006         * cgraph.c (cgraph_create_edge): Initialize indirect_call to zero.
1007         (dump_cgraph_node): Dump also the indirect_call flag.
1008         (cgraph_clone_edge): Copy also the indirect_call flag.
1009         * tree-inline.c (copy_bb): Do not check for fndecls from call
1010         expressions, check for edge availability when moving clones.
1011         (get_indirect_callee_fndecl): New function.
1012         (expand_call_inline): If callee declaration is not apprent from
1013         the statement, try calling get_indirect_callee_fndecl.  Do not
1014         issue warnings or call sorry when not inlinings an indirect edge.
1015         * Makefile.in (IPA_PROP_H): Added $(CGRAPH_H) to dependencies.
1017         * ipa-prop.c (ipa_print_node_param_flags): Make the dump format a
1018         bit more frandly to matching.
1019         * testsuite/g++.dg/ipa/iinline-1.C: New testcase.
1020         * testsuite/gcc.dg/ipa/iinline-1.c: New testcase.
1021         * testsuite/gcc.dg/ipa/modif-1.c: New testcase.
1023 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1025         PR 36907
1026         * opth-gen.awk: Suppress function specific features when building
1027         target libraries.
1028         * optc-gen.awk: Ditto.
1030 2008-07-23  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
1032         PR 35058
1033         * diagnostic.c (pedwarn): Add opt parameter.
1034         (pedwarn0): New.
1035         * c-tree.h (pedwarn_init): Add opt parameter.
1036         (pedwarn_c90): Likewise.
1037         (pedwarn_c99): Likewise.
1038         * c-errors.c (pedwarn_c99): Likewise.
1039         (pedwarn_c90): Likewise.
1040         * toplev.h (pedwarn): Update declaration.
1041         (pedwarn0): Declare.
1042         * c-lex.c: All calls to pedwarn changed.
1043         * builtins.c: All calls to pedwarn changed.
1044         * toplev.c: All calls to pedwarn changed.
1045         * c-decl.c: All calls to pedwarn changed.
1046         * c-typeck.c: All calls to pedwarn changed.
1047         * c-common.c: All calls to pedwarn changed.
1048         * c-parser.c: All calls to pedwarn changed.
1050 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1051             Karthik Kumar  <karthikkumar@gmail.com>
1053         * attribs.c (file scope): Include c-common.h.
1054         (decl_attributes): Add support for #pragma GCC optimize and
1055         #pragma GCC option.
1057         * targhooks.c (default_can_inline_p): New function that is the
1058         default for the TARGET_CAN_INLINE_P target hook.
1060         * targhooks.h (default_can_inline_p): Add declaration.
1062         * tree.c (cl_optimization_node): New static tree for building
1063         OPTIMIZATION_NODE tree.
1064         (cl_target_option_node): New static tree for building
1065         TARGET_OPTION_NODE tree.
1066         (cl_option_hash_table): New hash table for hashing
1067         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1068         (cl_option_hash_hash): New function to provide the hash value for
1069         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1070         (cl_option_hash_eq): New function to provide an equality test for
1071         OPTIMIZATION_NODE and TARGET_OPTION_NODE trees.
1072         (tree_code_size): Add support for OPTIMIZATION_NODE and
1073         TARGET_OPTION_NODE trees.
1074         (tree_code_structure): Add support for OPTIMIZATION_NODE and
1075         TARGET_OPTION_NODE trees.
1076         (build_optimization_node): Build a tree that has all of the
1077         current optimization options.
1078         (build_target_option_node): Build a tree that has the target
1079         options that might be changed on a per function basis.
1081         * tree.h (file scope): Include options.h.
1082         (DECL_FUNCTION_SPECIFIC_TARGET): New accessor macro.
1083         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1084         (TREE_OPTIMIZATION): Ditto.
1085         (TREE_TARGET_SPECIFIC): Ditto.
1086         (struct tree_function_decl): Add fields for remembering the
1087         current optimization options and target specific options.
1088         (struct tree_optimization_option): New tree variant that remembers
1089         the optimization options.
1090         (struct tree_target_option): New tree variant that remembers the
1091         target specific flags that might change for compiling a particular
1092         function.
1093         (union tree_node): Include tree_optimization_option and
1094         tree_target_option fields.
1095         (enum tree_index): Add TI_OPTIMIZATION_DEFAULT,
1096         TI_OPTIMIZATION_CURRENT, TI_OPTIMIZATION_COLD,
1097         TI_OPTIMIZATION_HOT, TI_TARGET_OPTION_DEFAULT,
1098         TI_TARGET_OPTION_CURRENT, TI_CURRENT_OPTION_PRAGMA,
1099         TI_CURRENT_OPTIMIZE_PRAGMA entries for saving function specific
1100         optimization and target options.
1101         (optimization_default_node): New macro to refer to global_trees
1102         field.
1103         (optimization_current_node): Ditto.
1104         (optimization_cold_node): Ditto.
1105         (optimization_hot_node): Ditto.
1106         (target_option_default_node): Ditto.
1107         (target_option_current_node): Ditto.
1108         (current_option_pragma): Ditto.
1109         (current_optimize_pragma): Ditto.
1111         * target.h (struct gcc_target): Add valid_option_attribute_p,
1112         target_option_save, target_option_restore, target_option_print,
1113         target_option_pragma_parse, and can_inline_p hooks.
1115         * toplev.h (parse_optimize_options): Add declaration.
1116         (fast_math_flags_struct_set_p): Ditto.
1118         * c-cppbuiltin.c (c_cpp_builtins_optimize_pragma): New function to
1119         adjust the current __OPTIMIZE__, etc. macros when #pragma GCC
1120         optimize is used.
1122         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Call
1123         tree_can_inline_p hook to see if one function can inline another.
1124         (cgraph_decide_inlining): Ditto.
1125         (cgraph_decide_inlining_incrementally): Ditto.
1127         * opts.c (decode_options): Add support for running multiple times
1128         to allow functions with different target or optimization options
1129         than was specified on the command line.
1130         (fast_math_flags_struct_set_p): New function that is similar to
1131         fast_math_flags_set_p, except it uses the values in the
1132         cl_optimization structure instead of global variables.
1134         * optc-gen.awk: Add support for TargetSave to allow a back end to
1135         declare new fields that need to be saved when using function
1136         specific options.  Include flags.h and target.h in the options.c
1137         source.  Add support for Save to indicate which options can be set
1138         for individual functions.  Generate cl_optimize_save,
1139         cl_optimize_restore, cl_optimize_print, cl_target_option_save,
1140         cl_target_option_restore, cl_target_option_print functions to
1141         allow functions to use different optimization or target options.
1143         * opt-functions.awk (var_type_struct): Return the type used for
1144         storing the field in a structure.
1146         * opth-gen.awk: Add support for TargetSave to allow a back end to
1147         declare new fields that need to be saved when using function
1148         specific options.  Add support for Save to indicate which options
1149         can be set for individual functions.  Only generate one extern for
1150         Mask fields.  Generate cl_optimization and cl_target_option
1151         structures to remember optimization and target options.
1153         * treestruct.def (TS_OPTIMIZATION): Add support for garbage
1154         collecting new tree nodes.
1155         (TS_TARGET_OPTION): Ditto.
1157         * c-decl.c (merge_decls): Merge function specific target and
1158         optimization options.
1160         * function.c (invoke_set_current_function_hook): If the function
1161         uses different optimization options, change the global variables
1162         to reflect this.
1164         * coretypes.h (struct cl_optimization): Add forward reference.
1165         (struct cl_target_option): Ditto.
1167         * c-pragma.c (option_stack): New static vector to remember the
1168         current #pragma GCC option stack.
1169         (handle_pragma_option): New function to support #pragma GCC option
1170         to change target options.
1171         (optimize_stack): New static vector to remember the current
1172         #pragma GCC optimize stack.
1173         (handle_pragma_optimize): New function to support #pragma GCC
1174         optimize to change optimization options.
1175         (init_pragma): Add support for #pragma GCC optimize and #pragma
1176         GCC option.
1178         * tree.def (OPTIMIZATION_NODE): New tree code for remembering
1179         optimization options.
1180         (TARGET_OPTION_NODE): New tree code for remembering certain target
1181         options.
1183         * print-tree.c (print_node): Add support for OPTIMIZATION_NODE and
1184         TARGET_OPTION_NODE trees.
1186         * common.opt (-O): Add Optimization flag.
1187         (-Os): Ditto.
1188         (-fmath-errno): Ditto.
1189         (-falign-functions): Add UInteger flag to make sure flag gets full
1190         int in cl_optimization structure.
1191         (-falign-jumps): Ditto.
1192         (-falign-labels): Ditto.
1193         (-falign-loops): Ditto.
1194         (-fsched-stalled-insns): Ditto.
1195         (-fsched-stalled-insns-dep): Ditto.
1197         * target-def.h (TARGET_VALID_OPTION_ATTRIBUTE_P): Add default
1198         definition.
1199         (TARGET_OPTION_SAVE): Ditto.
1200         (TARGET_OPTION_RESTORE): Ditto.
1201         (TARGET_OPTION_PRINT): Ditto.
1202         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1203         (TARGET_CAN_INLINE_P): Ditto.
1204         (TARGET_INITIALIZER): Add new hooks.
1206         * tree-inline.c (tree_can_inline_p): New function to determine
1207         whether one function can inline another.  Check if the functions
1208         use compatible optimization options, and also call the backend
1209         can_inline_p hook.
1211         * tree-inline.h (tree_can_inline_p): Add declaration.
1213         * c-common.c (c_common_attribute): Add support for option and
1214         optimize attributes.
1215         (handle_option_attribute): Add support for the option attribute to
1216         allow the user to specify different target options for compiling a
1217         specific function.
1218         (handle_optimize_attribute): Add support for the optimize
1219         attribute to allow the user to specify different optimization
1220         options for compiling a specific function.
1221         (handle_hot_attribute): Turn on -O3 optimization for this one
1222         function if it isn't the default optimization level.
1223         (handle_cold_attribute): Turn on -Os optimization for this one
1224         function if it insn't the default optimization.
1225         (const_char_p): New const char * typedef.
1226         (optimize_args): New static vector to remember the optimization
1227         arguments.
1228         (parse_optimize_options): New function to set up the optimization
1229         arguments from either the optimize attribute or #pragma GCC
1230         optimize.
1232         * c-common.h (c_cpp_builtins_optimize_pragma): Add declaration.
1233         (builtin_define_std): Ditto.
1235         * config.gcc (i[3467]86-*-*): Add i386-c.o to C/C++ languages.
1236         Add t-i386 Makefile fragment to add i386-c.o and i386.o
1237         dependencies.
1238         (x86_64-*-*): Ditto.
1240         * Makefile.in (TREE_H): Add options.h.
1241         (options.o): Add $(TARGET_H) $(FLAGS_H) dependencies.
1243         * doc/extend.texi (option attribute): Document new attribute.
1244         (optimize attribute): Ditto.
1245         (hot attribute): Document hot attribute sets -O3.
1246         (cold attribute): Document cold attribute sets -Os.
1247         (#pragma GCC option): Document new pragma.
1248         (#pragma GCC optimize): Ditto.
1250         * doc/options.texi (TargetSave): Document TargetSave syntax.
1251         (UInteger): Document UInteger must be used for certain flags.
1252         (Save): Document Save option to create target specific options
1253         that can be saved/restored on a function specific context.
1255         * doc/c-tree.texi (DECL_FUNCTION_SPECIFIC_TARGET): Document new
1256         macro.
1257         (DECL_FUNCTION_SPECIFIC_OPTIMIZATION): Ditto.
1259         * doc/tm.texi (TARGET_VALID_OPTION_ATTRIBUTE_P): Document new
1260         hook.
1261         (TARGET_OPTION_SAVE): Ditto.
1262         (TARGET_OPTION_RESTORE): Ditto.
1263         (TARGET_OPTION_PRINT): Ditto.
1264         (TARGET_OPTION_PRAGMA_PARSE): Ditto.
1265         (TARGET_CAN_INLINE_P): Ditto.
1267         * doc/invoke.texi (-mfpmath=sse+387): Document as an alias for
1268         -mfpmath=sse,387.
1269         (-mfpmath=both): Ditto.
1271 2008-07-23  Michael Meissner  <gnu@the-meissners.org>
1272             Karthik Kumar  <karthikkumar@gmail.com>
1274         * config/i386/i386.h (TARGET_ABM): Move switch into
1275         ix86_isa_flags.
1276         (TARGET_POPCNT): Ditto.
1277         (TARGET_SAHF): Ditto.
1278         (TARGET_AES): Ditto.
1279         (TARGET_PCLMUL): Ditto.
1280         (TARGET_CMPXCHG16B): Ditto.
1281         (TARGET_RECIP): Move switch into target_flags.
1282         (TARGET_FUSED_MADD): Ditto.
1283         (ix86_arch_features): Make an unsigned char type.
1284         (ix86_tune_features): Ditto.
1285         (OVERRIDE_OPTIONS): Add bool argument to override_options call.
1286         (TARGET_CPU_CPP_BUILTINS): Move into ix86_target_macros.
1287         (REGISTER_TARGET_PRAGMAS): Define, call ix86_register_pragmas.
1289         * config/i386/i386.opt (arch): New TargetSave field to define
1290         fields that need to be saved for function specific option
1291         support.
1292         (tune): Ditto.
1293         (fpmath): Ditto.
1294         (branch_cost): Ditto.
1295         (ix86_isa_flags_explicit): Ditto.
1296         (tune_defaulted): Ditto.
1297         (arch_specified): Ditto.
1298         (-m128-long-double): Add Save flag to save option for target
1299         specific option support.
1300         (-m80387): Ditto.
1301         (-maccumulate-outgoing-args): Ditto.
1302         (-malign-double): Ditto.
1303         (-malign-stringops): Ditto.
1304         (-mfancy-math-387): Ditto.
1305         (-mhard-float): Ditto.
1306         (-mieee-fp): Ditto.
1307         (-minline-all-stringops): Ditto.
1308         (-minline-stringops-dynamically): Ditto.
1309         (-mms-bitfields): Ditto.
1310         (-mno-align-stringops): Ditto.
1311         (-mno-fancy-math-387): Ditto.
1312         (-mno-push-args): Ditto.
1313         (-mno-red-zone): Ditto.
1314         (-mpush-args): Ditto.
1315         (-mred-zone): Ditto.
1316         (-mrtd): Ditto.
1317         (-msseregparm): Ditto.
1318         (-mstack-arg-probe): Ditto.
1319         (-m32): Ditto.
1320         (-m64): Ditto.
1321         (-mmmx): Ditto.
1322         (-m3dnow): Ditto.
1323         (-m3dnowa): Ditto.
1324         (-msse): Ditto.
1325         (-msse2): Ditto.
1326         (-msse3): Ditto.
1327         (-msse4.1): Ditto.
1328         (-msse4.2): Ditto.
1329         (-msse4): Ditto.
1330         (-mno-sse4): Ditto.
1331         (-msse4a): Ditto.
1332         (-msse5): Ditto.
1333         (-mrecip): Move flag into target_flags.
1334         (-mcld): Ditto.
1335         (-mno-fused-madd): Ditto.
1336         (-mfused-madd): Ditto.
1337         (-mabm): Move flag into ix86_isa_flags.
1338         (-mcx16): Ditto.
1339         (-mpopcnt): Ditto.
1340         (-msahf): Ditto.
1341         (-maes): Ditto.
1342         (-mpclmul): Ditto.
1344         * config/i386/i386-c.c: New file for #pragma support.
1345         (ix86_target_macros_internal): New function to #define or #undef
1346         target macros based when the user uses the #pragma GCC option to
1347         change target options.
1348         (ix86_pragma_option_parse): New function to add #pragma GCC option
1349         support.
1350         (ix86_target_macros): Move defining the target macros here from
1351         TARGET_CPU_CPP_BUILTINS in i386.h.
1352         (ix86_register_pragmas): Register the #pragma GCC option hook.  If
1353         defined, initialize any subtarget #pragmas.
1355         * config/i386/darwin.h (REGISTER_SUBTARGET_PRAGMAS): Rename from
1356         REGISTER_TARGET_PRAGMAS.
1358         * config/i386/t-i386: New file for x86 dependencies.
1359         (i386.o): Make dependencies mirror the include files used.
1360         (i386-c.o): New file, add dependencies.
1362         * config/i386/i386-protos.h (override_options): Add bool
1363         argument.
1364         (ix86_valid_option_attribute_tree): Add declaration.
1365         (ix86_target_macros): Ditto.
1366         (ix86_register_macros): Ditto.
1368         * config/i386/i386.c (ix86_tune_features): Move initialization of
1369         the target masks to initial_ix86_tune_features to allow functions
1370         to have different target options.  Make type unsigned char,
1371         instead of unsigned int.
1372         (initial_ix86_tune_features): New static vector to hold processor
1373         masks for the tune variables.
1374         (ix86_arch_features): Move initialization of the target masks to
1375         initial_ix86_arch_features to allow functions to have different
1376         target options.  Make type unsigned char, instead of unsigned
1377         int.
1378         (initial_ix86_arch_features): New static vector to hold processor
1379         masks for the arch variables.
1380         (enum ix86_function_specific_strings): New enum to describe the
1381         string options used for attribute((option(...))).
1382         (ix86_target_string): New function to return a string that
1383         describes the target options.
1384         (ix86_debug_options): New function to print the current options in
1385         the debugger.
1386         (ix86_function_specific_save): New function hook to save the
1387         function specific global variables in the cl_target_option
1388         structure.
1389         (ix86_function_specific_restore): New function hook to restore the
1390         function specific variables from the cl_target_option structure to
1391         the global variables.
1392         (ix86_function_specific_print): New function hook to print the
1393         target specific options in the cl_target_option structure.
1394         (ix86_valid_option_attribute_p): New function hook to validate
1395         attribute((option(...))) arguments.
1396         (ix86_valid_option_attribute_tree): New function that is common
1397         code between attribute((option(...))) and #pragma GCC option
1398         support that parses the options and returns a tree holding the
1399         options.
1400         (ix86_valid_option_attribute_inner_p): New helper function for
1401         ix86_valid_option_attribute_tree.
1402         (ix86_can_inline_p): New function hook to decide if one function
1403         can inline another on a target specific basis.
1404         (ix86_set_current_function); New function hook to switch target
1405         options if the user used attribute((option(...))) or #pragma GCC
1406         option.
1407         (ix86_tune_defaulted): Move to static file scope from
1408         override_options.
1409         (ix86_arch_specified): Ditto.
1410         (OPTION_MASK_ISA_AES_SET): New macro for moving switches into
1411         ix86_isa_flags.
1412         (OPTION_MASK_ISA_PCLMUL_SET): Ditto.
1413         (OPTION_MASK_ISA_ABM_SET): Ditto.
1414         (OPTION_MASK_ISA_POPCNT_SET): Ditto.
1415         (OPTION_MASK_ISA_CX16_SET): Ditto.
1416         (OPTION_MASK_ISA_SAHF_SET): Ditto.
1417         (OPTION_MASK_ISA_AES_UNSET): Ditto.
1418         (OPTION_MASK_ISA_PCLMUL_UNSET): Ditto.
1419         (OPTION_MASK_ISA_ABM_UNSET): Ditto.
1420         (OPTION_MASK_ISA_POPCNT_UNSET): Ditto.
1421         (OPTION_MASK_ISA_CX16_UNSET): Ditto.
1422         (OPTION_MASK_ISA_SAHF_UNSET): Ditto.
1423         (struct ptt): Move to static file scope from override_options.
1424         (processor_target_table): Ditto.
1425         (cpu_names): Ditto.
1426         (ix86_handle_option): Add support for options that are now isa
1427         options.
1428         (override_options): Add support for declaring functions that
1429         support different target options than were specified on the
1430         command line.  Move struct ptt, processor_target_table, cpu_names,
1431         ix86_tune_defaulted, ix86_arch_specified to static file scope.
1432         Add bool argument.  Fix up error messages so the appropriate error
1433         is given for either command line or attribute.
1434         (ix86_previous_fndecl): New static to remember previous function
1435         declaration to see if we need to change target options.
1436         (ix86_builtins_isa): New array to record the ISA of each builtin
1437         function.
1438         (def_builtin): Always create the builtin function, even if the
1439         current ISA doesn't support it.
1440         (ix86_init_mmx_sse_builtins): Remove TARGET_AES and TARGET_PCLMUL
1441         tests for those builtins.
1442         (ix86_init_builtins): Remove TARGET_MMX test for calling
1443         ix86_init_mmx_sse_builtins.
1444         (ix86_expand_builtin): If the current ISA doesn't support a given
1445         builtin, signal an error.
1446         (TARGET_VALID_OPTION_ATTRIBUTE_P): Set target hook.
1447         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1448         (TARGET_OPTION_SAVE): Ditto.
1449         (TARGET_OPTION_RESTORE): Ditto.
1450         (TARGET_OPTION_PRINT): Ditto.
1451         (TARGET_CAN_INLINE_P): Ditto.
1453 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
1455        * c-typeck.c (build_external_ref): Don't call assemble_external.
1456        * final.c (output_operand): Call assemble_external.
1458 2008-07-21  DJ Delorie  <dj@redhat.com>
1460         * config/h8300/h8300.c (h8300_hard_regno_scratch_ok): New.
1461         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
1463 2008-07-21  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1465         * config/spu/spu.md ("div<mode>3"): Convert into expander, move
1466         original insn and splitter contents into ...
1467         ("*div<mode>3_fast"): ... this new pattern.  Enable only if
1468         flag_unsafe_math_optimizations.  Add dummy scratch register.
1469         ("*div<mode>3_adjusted"): New insn and splitter.  Enable only if
1470         !flag_unsafe_math_optimizations.  Returns number with next
1471         highest magnitude if this is still less or equal to the true
1472         quotient in magnitude.
1474 2008-07-21  Rafael Avila de Espindola  <espindola@google.com>
1476         * Makefile.in: Replace toplev.h with TOPLEV_H.
1477         * c-decl.c (merge_decls): Don't set DECL_IN_SYSTEM_HEADER.
1478         * c-lex.c (fe_file_change): Don't set in_system_header.
1479         * c-parser.c (c_token): Remove in_system_header.
1480         (c_lex_one_token): Don't set in_system_header.
1481         (c_parser_set_source_position_from_token): Don't set in_system_header.
1482         * diagnostic.c (diagnostic_report_diagnostic): Use location from
1483         diagnostic_info.
1484         (warning_at): New.
1485         * diagnostic.h (diagnostic_report_warnings_p): Add LOC argument.
1486         * flags.h (in_system_header): Remove.
1487         * function.c (saved_in_system_header): Remove.
1488         (push_cfun): Don't set in_system_header.
1489         (pop_cfun): Don't set in_system_header.
1490         (push_struct_function): Don't set in_system_header.
1491         * input.h (expanded_location): Add sysp.
1492         (in_system_header_at): New.
1493         (in_system_header): New.
1494         * toplev.c (in_system_header): Remove.
1495         * toplev.h: Include input.h
1496         (warning_at): New.
1497         * tree-cfg.c (execute_warn_function_return): Call warning_at.
1498         * tree-ssa.c (warn_uninit): Call warning_at.
1499         (warn_uninitialized_var): Update calls to warn_uninit.
1500         (warn_uninitialized_phi): Update calls to warn_uninit.
1501         * tree.c (make_node_stat): Don't set DECL_IN_SYSTEM_HEADER.
1502         (expand_location): Initialize xloc.sysp.
1503         * tree.h (DECL_IN_SYSTEM_HEADER): Use in_system_header_at.
1504         (tree_decl_with_vis): Remove in_system_header_flag.
1506 2008-07-21  Andreas Krebbel  <krebbel1@de.ibm.com>
1508         PR target/36822
1509         * recog.c (asm_operand_ok): Change the order of the extra
1510         memory constraint checks.
1512 2008-07-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1514         PR tree-opt/36879
1515         * tree-switch-conversion.c (build_one_array): Call
1516         varpool_mark_needed_node and varpool_finalize_decl
1517         instead of assemble_variable.
1519 2008-07-19  Jan Hubicka  <jh@suse.cz>
1521         * cgraph.c (cgraph_add_new_function): Do early local passes.
1522         * tree-nrv.c (gate_pass_return_slot): New gate.
1523         (pass_nrv): Add the gate.
1524         * tree-ssa-coalese.c (hash_ssa_name_by_var, eq_ssa_name_by_var): New
1525         functions.
1526         (coalesce_ssa_name): Coalesce SSA names.
1527         * tree-ssa-live.c (remove_unused_locals): Be more conservative when
1528         not optimizing so unused user vars remains visible.
1529         * common.opt (flag_tree_ter): Always enable by default.
1530         * tree-ssa-ter.c: Include flags.h
1531         (is_replaceable_p): Check that locations match; when aliasing is missing
1532         be conservative about loads.
1533         * tree-optimize.c (gate_init_datastructures): Remove.
1534         (pass_init_datastructures): New.
1535         * passes.c: Reorder passes so we always go into SSA.
1537 2008-07-19  Jan Hubicka  <jh@suse.cz>
1539         * doc/extend.texi (flatten attribute): Remove note about unit-at-a-time
1540         * doc/invoke.texi (--combine): Likewise.
1541         (-finline-functions-called-once): Update levels when enabled.
1542         (-funit-at-a-time): Document new behaviour.
1543         (-ftoplevel-reorder): Document that it is enabled -O0 and imply
1544         -fno-section-anchors when disabled explicitly.
1545         (inline params): They are not ignored now.
1546         (precompiled headers): Remove unit-at-a-time as being incompatible.
1547         * opts.c (decode_options): Handle unit-at-a-time as alias;
1548         imply -fno-section-anchors when toplevel reorder is disabled
1549         explicitly.
1550         * common.opt (ftoplevel-reorder): Set default value to 2.
1551         (funit-at-a-time): Set default value to 1.
1552         * config/rs6000/rs6000.c (optimization_options): Set section anchors
1553         to 2.
1555 2008-07-19  Jan Hubicka  <jh@suse.cz>
1557         * builtins.c (expand_builtin_int_roundingfn,
1558         expand_builtin_int_roundingfn_2): Do not take subtarget argument;
1559         it is not useful.
1561 2008-07-19  Richard Guenther  <rguenther@suse.de>
1563         PR bootstrap/36864
1564         * tree-ssa-sccvn.h (get_constant_value_id): Declare.
1565         * tree-ssa-sccvn.c (get_constant_value_id): New function.
1566         * tree-ssa-pre.c (get_expr_value_id): For newly created
1567         constant value-ids make sure to add the expression to its
1568         expression-set.
1570 2008-07-19  Jakub Jelinek  <jakub@redhat.com>
1572         PR middle-end/36877
1573         * omp-low.c (expand_omp_atomic_fetch_op): Make sure the
1574         return value of the builtin is ignored.
1576 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1578         * doc/tm.texi (MALLOC_ABI_ALIGNMENT): New macro. Alignment, in
1579         bits, a C conformant malloc implementation has to provide.
1580         * defaults.h (MALLOC_ABI_ALIGNMENT): Default to BITS_PER_WORD.
1582 2008-07-19  Joseph Myers  <joseph@codesourcery.com>
1584         PR target/36780
1585         PR target/36827
1586         * reload.c (find_reloads_subreg_address): Only reload address if
1587         reloaded == 0, not for reloaded != 1.
1589         Revert:
1590         2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1591         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1592         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1593         m32c_legitimize_reload_address.
1595         2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1596         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1597         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1599 2008-07-19  Olivier Hainque  <hainque@adacore.com>
1601         * dwarf2out.c (add_subscript_info): New explicit COLLAPSE_P
1602         argument, saying whether nested array are to be collapsed
1603         into a single array type DIE with multiple subscripts.
1604         (gen_array_type_die): Factorize comments about the MIPS_DEBUG_INFO
1605         issues, centralize the nested array types collapsing control and
1606         disable the transformation for Ada.
1608 2008-07-18  Uros Bizjak  <ubizjak@gmail.com>
1610         PR target/36786
1611         * config/i386/i386.md (x86_64_shift_adj_1): Rename from
1612         x86_64_shift_adj.
1613         (x86_64_shift_adj_2): New expander.
1614         (x86_64_shift_adj_3): Ditto.
1615         * config/i386/i386.c (ix86_split_ashr): Use gen_x86_64_shift_adj_3
1616         to split TImode operands.
1617         (ix86_split_ashl): Use gen_x86_64_shift_adj_2 to split TImode operands.
1618         (ix86_split_lshr): Ditto.
1620 2008-07-18  Kris Van Hees  <kris.van.hees@oracle.com>
1622         * c-common.c (c_stddef_cpp_builtins): Define __CHAR16_TYPE__
1623         and __CHAR32_TYPE__.
1624         * c-typeck.c (digest_init): Support char16_t and char32_t.
1625         (set_nonincremental_init_from_string): Idem.
1627 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1629         PR middle-end/36859
1630         * builtins.c (std_gimplify_va_arg_expr): Limit alignment to
1631         PREFERRED_STACK_BOUNDARY.
1632         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1634 2008-07-18  H.J. Lu  <hongjiu.lu@intel.com>
1636         PR middle-end/36858
1637         * function.c (locate_and_pad_parm): Cap boundary earlier.
1639 2008-07-17  Julian Brown  <julian@codesourcery.com>
1641         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Make
1642         no-op for targets which don't use DLLs.
1644 2008-07-17  Martin Jambor  <mjambor@suse.cz>
1646         * ipa-cp.c (ipcp_print_all_lattices): New variable info, check
1647         that nodes are relevant by examining the node->analyzed flag.
1648         (ipcp_init_stage): Check which nodes are relevant, assert that the
1649         relevant ones are also required.
1650         (ipcp_propagate_stage): Check on the side arrays are properly
1651         allocated.
1652         (ipcp_print_all_jump_functions): Make sure not to touch any node
1653         that is not analyzed or an edge that does not have a corresponding
1654         entry in the on-the-side vectors.
1655         (ipcp_function_scale_print): Likewise.
1656         (ipcp_update_callgraph): Check that the node is relevant.
1657         (ipcp_insert_stage): Check that the node is relevant.  Check there is
1658         an info for every node and edge.
1659         * ipa-prop.c (ipa_init_func_list): Check the nodes are relevant.
1660         (ipa_print_all_tree_maps): Likewise and a new variable info.
1661         (ipa_print_all_params_modified): Likewise.
1662         * ipa-prop.h (ipa_edge_args_info_available_for_edge_p): New function.
1664 2008-07-17  Roman Zippel <zippel@linux-m68k.org>
1666         PR target/25343
1667         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__.
1669 2008-07-17  Paolo Bonzini  <bonzini@gnu.org>
1671         PR rtl-optimization/36753
1672         * fwprop.c (use_killed_between): Don't shortcut
1673         single-definition global registers.
1675 2008-07-16  Jan Hubicka  <jh@suse.cz>
1677         * cgraph.h (varpool_empty_needed_queue): Declare.
1678         * cgraphunit.c (output_in_order): Mark all variables as needed;
1679         empty the queue.
1680         * varpool.c (varpool_assemble_node): Update debug queue.
1681         (varpool_assemble_pending_decls): Don't do it here.
1682         (varpool_empty_needed_queue):  New function.
1684 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1686         * recog.c (peephole2_optimize): Fix formatting.
1688 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1690         * c-pch.c (get_ident): Avoid C++ keywords.
1691         * combine-stack-adj.c (single_set_for_csa): Likewise.
1692         * final.c (asm_insn_count, final_scan_insn, alter_subreg,
1693         output_asm_insn): Likewise.
1694         * reload.c (push_secondary_reload, find_reusable_reload,
1695         push_reload, combine_reloads, find_reloads,
1696         debug_reload_to_stream): Likewise.
1697         * reload.h (struct reload): Likewise.
1698         * reload1.c (reload_reg_class_lower, find_reg, find_reload_regs,
1699         allocate_reload_reg, choose_reload_regs, emit_input_reload_insns,
1700         emit_output_reload_insns): Likewise.
1701         * targhooks.c (default_secondary_reload): Likewise.
1702         * varasm.c (section_entry_eq, object_block_entry_eq): Likewise.
1704 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1706         * recog.c (validate_change_1, validate_change,
1707         validate_unshare_change, validate_replace_rtx_1, struct
1708         funny_match, constrain_operands, peephole2_optimize): Avoid C++
1709         keywords.
1710         * reload.c (push_secondary_reload, secondary_reload_class,
1711         scratch_reload_class, find_valid_class, find_reusable_reload,
1712         push_reload, find_dummy_reload, find_reloads_address_1,
1713         find_reloads_address_part, find_equiv_reg): Likewise.
1714         * reload1.c (spill_failure, eliminate_regs_1, allocate_reload_reg,
1715         choose_reload_regs): Likewise.
1716         * rtlanal.c (replace_rtx, nonzero_bits1, num_sign_bit_copies1):
1717         Likewise.
1718         * rtlhooks.c (gen_lowpart_if_possible): Likewise.
1719         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
1720         * sched-rgn.c (concat_INSN_LIST): Likewise.
1721         * stor-layout.c (mode_for_size, mode_for_size_tree,
1722         smallest_mode_for_size): Likewise.
1724 2008-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1726         * cfg.c (dump_reg_info): Avoid C++ keywords.
1727         * dwarf2asm.c (dw2_force_const_mem,
1728         dw2_asm_output_encoded_addr_rtx): Likewise.
1729         * except.c (gen_eh_region, add_action_record, output_ttype): Likewise.
1730         * expmed.c (expand_shift): Likewise.
1731         * global.c (find_reg): Likewise.
1732         * graph.c (draw_edge): Likewise.
1733         * local-alloc.c (reg_meets_class_p, find_free_reg): Likewise.
1734         * optabs.c (expand_binop, expand_twoval_unop, expand_twoval_binop,
1735         widen_clz, widen_bswap, expand_parity, expand_unop,
1736         emit_cmp_and_jump_insn_1): Likewise.
1737         * postreload.c (reload_cse_simplify_operands): Likewise.
1738         * ra.h (add_neighbor): Likewise.
1739         * reg-stack.c (remove_regno_note, change_stack): Likewise.
1740         * regclass.c (memory_move_secondary_cost, dump_regclass, regclass,
1741         record_reg_classes, copy_cost, record_address_regs,
1742         invalid_mode_change_p): Likewise.
1743         * regrename.c (regrename_optimize, scan_rtx_reg,
1744         dump_def_use_chain, find_oldest_value_reg,
1745         replace_oldest_value_reg, copyprop_hardreg_forward_1): Likewise.
1747 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1749         * config/rs6000/rs6000.c (processor_target_table): Remove duplicate
1750         MASK_POWERPC64 for power4 in previous commit.
1752 2008-07-16  Olivier Hainque  <hainque@adacore.com>
1754         * collect2.c (scan_prog_file, COFF version): Use CONST_CAST
1755         instead of bare conversion to cast const-ness away.
1757 2008-07-16  Anatoly Sokolov  <aesok@post.ru>
1759         * config/xtensa/xtensa.h (FUNCTION_OUTGOING_VALUE,
1760         XTENSA_FUNCTION_VALUE, XTENSA_FUNCTION_VALUE): Remove.
1761         * config/xtensa/xtensa.c (xtensa_function_value): New function.
1762         (TARGET_FUNCTION_VALUE): Define.
1764 2008-07-16  David Edelsohn  <edelsohn@gnu.org>
1766         * config/rs6000/rs6000.c (processor_target_table): Add
1767         MASK_PPC_GPOPT for power4, power5, power5+, power6, and power6x.
1769 2008-07-16  Joseph Myers  <joseph@codesourcery.com>
1771         PR target/36827
1772         * config/m32c/m32c.c (BIG_FB_ADJ): Move definition earlier.
1773         (m32c_legitimate_address_p): Handle "++rii" addresses created by
1774         m32c_legitimize_reload_address.
1776 2007-07-16  Rafael Avila de Espindola  <espindola@google.com>
1778        * c-decl.c (merge_decls): Keep DECL_SOURCE_LOCATION and
1779        DECL_IN_SYSTEM_HEADER in sync.
1781 2008-07-15  Daniel Berlin  <dberlin@dberlin.org>
1783         * tree-ssa-sccvn.c (expressions_equal_p): Check type equality.
1784         * tree-ssa-pre.c (pre_expr_eq): Ditto
1785         (get_constant_for_value_id): Take a type as an argument.
1786         (fully_constant_expression): Pass in type.
1787         (find_or_generate_expression): Short circuit constant case.
1788         (create_expression_by_pieces): Remove special casing of
1789         pointer_plus.
1790         (do_regular_insertion): Short circuit constant case.
1791         (do_partial_partial_insertion): Ditto.
1793 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1795         PR target/36782
1796         * config/sh/sh.md (symGOT_load): Don't add REG_EQUAL note.
1798 2008-07-15  Bob Wilson  <bob.wilson@acm.org>
1800         * config/xtensa/libgcc-xtensa.ver: New file.
1801         * config/xtensa/t-linux (SHLIB_MAPFILES): Append libgcc-xtensa.ver.
1803 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1805         * df-problems.c (df_set_note): Avoid C++ keywords.
1806         * df-scan.c (df_ref_change_reg_with_loc_1): Likewise.
1807         * dse.c (record_store, remove_useless_values): Likewise.
1808         * emit-rtl.c (gen_reg_rtx, update_reg_offset, gen_rtx_REG_offset,
1809         gen_reg_rtx_offset, operand_subword, change_address_1,
1810         change_address, adjust_address_1, offset_address,
1811         widen_memory_access, emit_copy_of_insn_after): Likewise.
1812         * explow.c (round_push, allocate_dynamic_stack_space): Likewise.
1813         * fwprop.c (should_replace_address, propagate_rtx_1,
1814         propagate_rtx, try_fwprop_subst, forward_propagate_and_simplify):
1815         Likewise.
1816         * gcse.c (cprop_jump, find_implicit_sets, bypass_block,
1817         gcse_emit_move_after, update_ld_motion_stores): Likewise.
1818         * lcm.c (compute_insert_delete, pre_edge_lcm,
1819         compute_rev_insert_delete, pre_edge_rev_lcm): Likewise.
1820         * lower-subreg.c (resolve_reg_notes): Likewise.
1821         * mode-switching.c (optimize_mode_switching): Likewise.
1823 2008-07-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1825         * bt-load.c (add_btr_def, migrate_btr_def,
1826         branch_target_load_optimize): Avoid C++ keywords.
1827         * caller-save.c (insert_restore, insert_save, insert_one_insn):
1828         Likewise.
1829         * combine.c (subst, simplify_set, make_extraction,
1830         make_compound_operation, known_cond, simplify_shift_const_1): Likewise.
1831         * cse.c (make_regs_eqv, merge_equiv_classes, validate_canon_reg,
1832         fold_rtx, equiv_constant, cse_insn, cse_process_notes_1): Likewise.
1834 2008-07-15  Richard Guenther  <rguenther@suse.de>
1836         PR middle-end/36369
1837         * c-common.c (strict_aliasing_warning): Do not warn for
1838         TYPE_REF_CAN_ALIAS_ALL pointers.
1839         (c_common_get_alias_set): may_alias types are not special.
1840         * tree.c (build_pointer_type_for_mode): Look up the may_alias
1841         attribute and set can_ref_all accordingly.
1842         (build_reference_type_for_mode): Likewise.
1843         * doc/extend.texi (may_alias): Clarify.
1845 2008-07-15  Kaz Kojima  <kkojima@gcc.gnu.org>
1847         PR target/36780
1848         * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Allow
1849         (plus (plus (reg) (const_int)) (const_int)) when reload_in_progress.
1851 2008-07-15  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1853         PR target/31568
1854         * config/rs6000/rs6000.c (print_operand <case 'y'>): Don't use
1855         gcc_assert, instead call output_operand_lossage.
1857 2008-07-15  Kai Tietz  <kai.tietz@onevision.com>
1859         * builtins.c (std_canonical_va_list): Treat structure based
1860         va_list types.
1862 2008-07-15  Ben Elliston  <bje@au.ibm.com>
1864         * emit-rtl.c (set_mem_attributes_minus_bitpos): Improve comment.
1866 2007-07-14  Rafael Avila de Espindola  <espindola@google.com>
1868         * c-decl.c (diagnose_mismatched_decls): Don't warn if TREE_NO_WARNING
1869         is set.
1871 2008-07-14  Jan Hubicka  <jh@suse.cz>
1873         * i386.md (sse5 cmov pattern): Update call of ix86_sse5_valid_op_p
1874         * sse.md (sse5 patterns): Update call of ix86_sse5_valid_op_p;
1875         fix predicates and constraints.
1876         * i386.c (ix86_sse5_valid_op_p): Add commutative parameter.
1877         * i386-protos.h (ix86_sse5_valid_op_p): Update declaration.
1879 2008-07-14  Doug Kwan  <dougkwan@google.com>
1881         * config.gcc (arm*-*-eabi*): Include arm/eabi.h and use
1882         additional option file arm/eabi.opt.
1883         * config/arm/eabi.h (File): New configuration file for EABI targets.
1884         * config/arm/elf.h (SUBTARGET_EXTRA_SPECS): Add
1885         SUBSUBTARGET_EXTRA_SPECS.
1886         (SUBSUBTARGET_EXTRA_SPECS): Provide empty default.
1887         * config/arm/unknown-elf.h (UNKNOWN_ELF_STARTFILE_SPEC): Renamed
1888         from STARTFILE_SPEC so that it can be referenced in an override.
1889         (STARTFILE_SPEC): Use UNKNOWN_ELF_STARTFILE_SPEC.
1890         (UNKNOWN_ELF_ENDFILE_SPEC): Renamed from ENDFILE_SPEC so that it
1891         can be referenced in an override.
1892         (ENDFILE_SPEC): Use UNKNOWN_ELF_ENDFILE_SPEC.
1893         * config/arm/bpabi.h (BPABI_LINK_SPEC): Renamed from LINK_SPEC
1894         so that it can be referenced in an override.
1895         (LINK_SPEC): Use BPABI_LINK_SPEC.
1896         * config/arm/eabi.opt (File): New.
1898 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1900         * Makefile.in (TARGET_DEF_H): Add targhooks.h.
1901         (FIXED_VALUE_H): New variable.
1902         (RTL_BASE_H): Use $(INPUT_H) and $(FIXED_VALUE_H) instead of
1903         input.h, fixed-value.h.
1904         (TREE_H): Use $(INPUT_H), add $(SYMTAB_H).
1905         (BASIC_BLOCK_H): Use $(BITMAP_H).
1906         (FUNCTION_H): Add varray.h.
1907         (IPA_REFERENCE_H): Use $(BITMAP_H).
1908         (CGRAPH_H): Add $(BASIC_BLOCK_H).
1909         (DF_H): Use $(BITMAP_H).
1910         (GGC_H): Add statistics.h.
1911         (INSN_ADDR_H): New.
1912         (INSN_ATTR_H): Use it.
1913         (SYSTEM_H): Add safe-ctype.h, filenames.h.
1914         (INPUT_H): New.
1915         (SYMTAB_H): Add $(OBSTACK_H).
1916         (CPP_INTERNAL_H): New.
1917         (TREE_DUMP_H): Add tree-pass.h.
1918         (TREE_FLOW_H): Use $(BITMAP_H)
1919         (PRETTY_PRINT_H): Use $(INPUT_H).
1920         (EBITMAP_H): Rename from typo-ed EBIMAP_H.
1921         (GSTAB_H): New.
1922         (BITMAP_H): New.
1923         (many object files): Fix lots of header dependencies throughout.
1925 2008-07-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1927         * Makefile.in (write_entries_to_file, write_entries_to_file_split):
1928         New macros.
1929         (s-gtyp-input): Use them to write tmp-gi.list.
1930         (echo_to_gi.list): Remove.
1932 2008-07-14  Richard Guenther  <rguenther@suse.de>
1934         * tree-ssa-sccvn.c (pre_info): Remove.
1935         (switch_to_PRE_table): Likewise.
1936         (free_scc_vn): Do not clear SSA_NAME_VALUE.  Do not free pre_info.
1937         (set_hashtable_value_ids): Do not create value-ids for the
1938         optimistic tables.
1939         (run_scc_vn): Remove double test.  Remove bogus special-case
1940         in value-number printing.
1941         * tree-ssa-sccvn.h (switch_to_PRE_table): Remove.
1942         * tree-ssa-ccp.c (get_symbol_constant_value): Do not look at
1943         SSA_NAME_VALUE.
1944         * tree-flow-inline.h (get_value_handle): Remove.
1945         * tree-flow.h (get_value_handle): Remove.
1947 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1949         * tree-switch-conversion.c (gen_inbound_check): Make sure the type
1950         in which we generate arithmetics is not a subrange.
1952 2008-07-14  Martin Jambor  <mjambor@suse.cz>
1954         * Makefile.in (IPA_PROP_H): Added ipa-prop.h to IPA_PROP_H variable.
1956 2008-07-14  Richard Guenther  <rguenther@suse.de>
1958         * tree-ssa-pre.c (insert_into_preds_of_block): Do not call convert.
1960 2008-07-14  Andreas Krebbel  <krebbel1@de.ibm.com>
1962         PR target/36745
1963         * config/s390/s390.c: (s390_secondary_reload): Add a secondary
1964         reload for symbol refs moved to r0 with -fPIC.
1965         (legitimize_pic_address): Use the target register as temporary
1966         reg if possible.
1967         (emit_symbolic_move): Adjust comment.
1968         * config/s390/s390.md (reloadsi_PIC_addr, reloaddi_PIC_addr):
1969         New expanders.
1971 2008-07-14  Ben Elliston  <bje@au.ibm.com>
1973         * c-common.h (C_CPP_HASHNODE): New macro.
1974         * coretypes.h (struct cpp_token): Forward declare.
1975         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
1976         the context-sensitive keyword method.
1977         * config/rs6000/rs6000-c.c (__vector_keyword, vector_keyword,
1978         __pixel_keyword, pixel_keyword, __bool_keyword, bool_keyword,
1979         expand_bool_pixel): New.
1980         (altivec_categorize_keyword): New function.
1981         (init_vector_keywords): New function.
1982         (rs6000_macro_to_expand): Likewise.
1983         (rs6000_cpu_cpp_builtins): Enable context-sensitive macros if not
1984         compiling an ISO C dialect.
1986 2008-07-13  Daniel Berlin  <dberlin@dberlin.org>
1988         * tree-ssa-pre.c (fully_constant_expression): Add fold_convert calls.
1989         (create_expression_by_pieces): Fix typo.
1990         (do_regular_insertion): Use debug counter here too.
1992 2008-07-14  Hans-Peter Nilsson  <hp@axis.com>
1994         PR target/35492.
1995         * config/cris/cris.h (CRIS_CONST_OK_FOR_LETTER_P): Renamed from
1996         CONST_OK_FOR_LETTER_P.  All port-local users changed.
1997         (CONST_OK_FOR_CONSTRAINT_P): Define; implement Kc as old K,
1998         implement Kp matching power-of-two.
1999         (CONSTRAINT_LEN): Define to match.
2000         * config/cris/cris.md: Replace all use of constraint K with Kc.
2001         ("*btst*): Use Kp for operand 0 of last alternative.
2003 2008-07-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2005         PR testsuite/36440
2006         * tree-call-cdce.c (check_target_format): Accept MIPS single, double
2007         and quad formats.
2009 2008-07-13  Jan Hubicka  <jh@suse.cz>
2011         * tree.c (decl_assembler_name_equal): Expect assembler name of decl
2012         to be mangled too.
2014 2008-07-13  Richard Guenther  <rguenther@suse.de>
2016         PR middle-end/36811
2017         * langhooks.c (lhd_print_error_function): Deal with recursive
2018         BLOCK trees.
2020 2008-07-12  Jan Hubicka  <jh@suse.cz>
2022         * cgraph.c (assembler_name_hash): New static var.
2023         (hash_node_by_assembler_name, eq_assembler_name): New.
2024         (cgraph_node_for_asm): Use hashtable.
2025         (cgraph_remove_node): Maintain hashtable.
2026         (change_decl_assembler_name): Sanity check that names are not changing
2027         after aliasing was processed.
2028         * cgraph.h (varpoon_node): Add next GGC marker.
2029         * tree.c (decl_assembler_name_equal): Constify.
2030         (decl_assembler_name_hash): New.
2031         * tree.h (decl_assembler_name_equal): Constify.
2032         (decl_assembler_name_hash): Update.
2034 2008-07-12  David Daney  <ddaney@avtrex.com>
2036         * config/mips/driver-native.c (host_detect_local_cpu): Handle
2037         sb1 and r5000 cpus.
2039 2008-07-12  Richard Sandiford  <rdsandiford@googlemail.com>
2041         * doc/md.texi: Document the MIPS "v" constraint.
2042         * config/mips/mips.h (reg_class): Revert last change.
2043         (REG_CLASS_NAMES): Likewise.
2044         (REG_CLASS_CONTENTS): Likewise.
2045         * config/mips/mips.c (mips_regno_to_class): Likewise.
2046         * config/mips/constraints.md (v): Likewise, but add documentation.
2047         Add a comment to say that this constraint should not be used in
2048         gcc code.
2050 2008-07-11  DJ Delorie  <dj@redhat.com>
2052         * config/h8300/h8300.md (length): Fix branch offset limit.
2054 2008-07-11  Anatoly Sokolov  <aesok@post.ru>
2056         * config/avr/avr-protos.h (avr_peep2_scratch_safe): Remove prototype.
2057         * config/avr/avr.c (avr_peep2_scratch_safe): Remove.
2058         (avr_hard_regno_scratch_ok): New function.
2059         (TARGET_HARD_REGNO_SCRATCH_OK): Define.
2060         * config/avr/avr.md (all peepholes that request a scratch register):
2061         Remove avr_peep2_scratch_safe use.
2063 2008-07-11  Tom Tromey  <tromey@redhat.com>
2064             Ian Lance Taylor  <iant@google.com>
2066         * c-common.h (enum rid): Add RID_CXX_COMPAT_WARN.
2067         (struct c_common_resword): Define.
2068         (D_CONLY, D_CXXONLY, D_C99, D_CXX0X, D_EXT, D_EXT89): Define.
2069         (D_ASM, D_OBJC, D_CXX_OBJC, D_CXXWARN): Define.
2070         (c_common_reswords, num_c_common_reswords): Declare.
2071         * c-common.c (c_common_reswords): New global const array.
2072         (num_c_common_reswords): New const int.
2073         * c-parser.c (struct resword, reswords): Don't define.
2074         (D_C89, D_EXT, D_EXT89, D_OBJC): Don't define.
2075         (c_parse_init): Clarify mask code.  Use c_common_reswords rather
2076         than reswords.  If warning about C++ keywords, give them a special
2077         RID code.
2078         (c_lex_one_token): Warn about C++ keywords.  Call
2079         objc_is_reserved_word rather than OBJC_IS_AT_KEYWORD.
2080         (c_parser_external_declaration): Look for RID_xxx rather than
2081         RID_AT_xxx, for ObjC++ keywords which are also C++ keywords.
2082         (c_parser_statement_after_labels): Likewise.
2083         (c_parser_objc_class_instance_variables): Likewise.
2084         (c_parser_objc_class_declaration): Likewise.
2085         (c_parser_objc_try_catch_statement): Likewise.
2086         * c-decl.c (c_print_identifier): Ignore RID_CXX_COMPAT_WARN.
2087         (declspecs_add_type): Likewise.
2089 2008-07-11  Angelo Graziosi  <angelo.graziosi@alice.it>
2091         * ggc-page.c (alloc_page):
2092         Substituting xmalloc, xcalloc with
2093         XNEWVEC and XCNEWVAR macros which add the
2094         needed casts.
2096 2008-07-11  Richard Guenther  <rguenther@suse.de>
2098         PR tree-optimization/36765
2099         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add
2100         aliases from HEAP vars to SMTs.
2102 2008-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2104         * Makefile.in (LOOSE_WARN, STRICT_WARN): Update comments.
2105         * configure.ac (loose_warn): Move -Wc++-compat from here...
2106         (strict_warn): ...to here.
2107         * configure: Regenerate.
2109 2008-07-10  Joseph Myers  <joseph@codesourcery.com>
2111         * config.gcc (arm-*-coff*, armel-*-coff*, h8300-*-*,
2112         i[34567]86-*-aout*, i[34567]86-*-coff*, m68k-*-aout*,
2113         m68k-*-coff*, sh-*-*, mips-sgi-irix[56]*, pdp11-*-bsd,
2114         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*): Deprecate targets,
2115         excluding more specific h8300-*-* and sh-*-* targets.
2117 2008-07-10  Daniel Berlin  <dberlin@dberlin.org>
2119         * tree-ssa-pre.c (create_expression_by_pieces): Add fold_convert calls.
2120         (eliminate): Ditto.
2121         (execute_pre): Call loop_optimizer_finalize in early exit.
2123 2008-07-10  Jakub Jelinek  <jakub@redhat.com>
2125         PR middle-end/36790
2126         * omp-low.c (lower_omp_2): If task_shared_vars, test all DECL_P
2127         uids in the bitmap, not just VAR_DECL uids.
2129         PR rtl-optimization/36419
2130         * combine-stack-adj.c (adjust_frame_related_expr): New function.
2131         (combine_stack_adjustments_for_block): Call it if needed.  Delete
2132         correct insn.
2133         * dwarf2out.c (dwarf2out_frame_debug_expr): Adjust
2134         DW_CFA_GNU_args_size if CSA pass merged some adjustments into
2135         prologue sp adjustment.
2137 2008-07-10  Peter Maydell  <pmaydell@chiark.greenend.org.uk>
2139         PR other/28322
2140         * opts.c (print_ignored_options): Report postponed diagnostics for
2141         unknown -Wno-* options as warnings, not errors.
2142         (postpone_unknown_option_error): Renamed to...
2143         (postpone_unknown_option_warning): ... this.
2145 2008-07-09  Doug Kwan  <dougkwan@google.com>
2147         Revert:
2148         2008-07-08  Doug Kwan  <dougkwan@google.com>
2150         * config/arm/arm.opt (mandroid): New option.
2151         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2152         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2153         (CC1_SPEC): Same.
2154         (CC1PLUS_SPEC): Same.
2155         (LIB_SPEC): Same.
2156         (STARTFILE_SPEC): Same.
2157         (ENDFILE_SPEC): Same.
2158         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2159         used.
2161 2008-07-09  Richard Sandiford  <rdsandiford@googlemail.com>
2163         PR target/35802
2164         * config/mips/mips.h (reg_class): Remove V1_REG.
2165         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
2166         * config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
2167         instead of V1_REGS.
2168         (mips_get_tp): New function.
2169         (mips_legitimize_tls_address): Use it.
2170         * config/mips/constraints.md (v): Delete.
2171         * config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
2172         (tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
2173         After reload, split into a move and ...
2174         (*tls_get_tp_<mode>_split): ...this new instruction.
2176 2008-07-09  David Daney  <ddaney@avtrex.com>
2178         * config/mips/driver-native.c: Include coretypes.h and tm.h.
2180 2008-07-09  Jakub Jelinek  <jakub@redhat.com>
2182         * gimplify.c (struct gimplify_ctx): Move to tree-gimple.h.
2183         (push_gimplify_context): Don't allocate temp_htab nor c itself here.
2184         Add c argument.
2185         (pop_gimplify_context): Check c->temp_htab instead of optimize whether
2186         htab_delete should be called.  Don't free c.
2187         (lookup_tmp_var): Create temp_htab lazily.
2188         (gimplify_scan_omp_clauses, gimplify_omp_parallel, gimplify_omp_task,
2189         gimplify_body, force_gimple_operand): Adjust push_gimplify_context
2190         callers.
2191         * omp-low.c (lower_omp_sections, lower_omp_single, lower_omp_master,
2192         lower_omp_ordered, lower_omp_critical, lower_omp_for,
2193         create_task_copyfn, lower_omp_taskreg, execute_lower_omp):
2194         * tree-ssa-ccp.c (convert_to_gimple_builtin): Likewise.
2195         * tree-sra.c (generate_element_init): Likewise.
2196         * tree-mudflap.c (execute_mudflap_function_ops,
2197         execute_mudflap_function_decls): Likewise.
2198         * tree-inline.c (setup_one_parameter, optimize_inline_calls): Likewise.
2199         * tree-gimple.h (struct gimplify_ctx): New type.
2200         (push_gimplify_context): Adjust prototype.
2202 2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
2204         * tree-ssa-pre.c (phi_translate_1): Update placement of
2205         add_to_value calls.
2207 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
2209         * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
2210         * target-def.h (TARGET_HARD_REGNO_SCRATCH_OK): New.
2211         (TARGET_INITIALIZER): Use TARGET_HARD_REGNO_SCRATCH_OK.
2212         * targhooks.c (default_hard_regno_scratch_ok): New function.
2213         * targhooks.h (default_hard_regno_scratch_ok): Declare function.
2214         * doc/tm.texi: Document TARGET_HARD_REGNO_SCRATCH_OK hook.
2215         * recog.c:  Include "target.h".
2216         (peep2_find_free_register): Add check for global regs. Add target
2217         specific check.
2218         * Makefile.in (recog.o): Depend on target.h.
2220 2008-07-09  Kaz Kojima  <kkojima@gcc.gnu.org>
2222         * config/sh/sh.c (sh_canonical_va_list_type): New.
2223         (TARGET_CANONICAL_VA_LIST_TYPE): Define.
2225 2008-07-09  Raksit Ashok <raksit@google.com>
2227         * doc/invoke.texi (Option Summary): Mention new option
2228         -Wdisallowed-function-list=...
2229         (Warning Options): Document -Wdisallowed-function-list=...
2230         * common.opt (Wdisallowed-function-list=): New flag.
2231         * flags.h (warn_disallowed_functions): External definition of new
2232         boolean warning flag.
2233         (warn_if_disallowed_function_p): Declare new function.
2234         * opts.c (warning_disallowed_functions): New static variable.
2235         (warn_disallowed_functions): New boolean warning flag.
2236         (warn_if_disallowed_function_p): New function.
2237         (add_comma_separated_to_vector): Rename
2238         add_instrument_functions_exclude_list to this.
2239         (common_handle_option): Handle new option. Rename calls to
2240         add_instrument_functions_exclude_list into calls to
2241         add_comma_separated_to_vector.
2242         * c-parser.c (c_parser_postfix_expression_after_primary): New warning
2243         based on flag warn_disallowed_functions.
2245 2008-07-09  Christian Bruel  <christian.bruel@st.com>
2247         * final.c (get_attr_length_1): Call get_attr_length_1 with fallback_fn
2248          instead of get_attr_length.
2250 2008-07-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2252         * genattrtab.c (insert_right_side, evaluate_eq_attr): Avoid C++
2253         keywords.
2254         * genemit.c (gen_insn): Likewise.
2255         * gengtype.c (note_def_vec): Likewise.
2256         * gengtype.h (note_def_vec): Likewise.
2257         * genoutput.c (struct data, output_insn_data, process_template,
2258         gen_expand, gen_split, note_constraint): Likewise.
2259         * genrecog.c (new_decision, add_to_sequence, factor_tests,
2260         make_insn_sequence): Likewise.
2261         * gensupport.c (record_insn_name): Likewise.
2263 2008-07-08  Doug Kwan  <dougkwan@google.com>
2265         * config/arm/arm.opt (mandroid): New option.
2266         * config/arm/bpabi.h (ANDROID_LINK_SPEC): New macro.
2267         (LINK_SPEC): Enable Android specific behaviour when -mandroid is used.
2268         (CC1_SPEC): Same.
2269         (CC1PLUS_SPEC): Same.
2270         (LIB_SPEC): Same.
2271         (STARTFILE_SPEC): Same.
2272         (ENDFILE_SPEC): Same.
2273         (TARGET_BPABI_CPP_BUILTINS): Define __ANDROID__ when -mandroid is
2274         used.
2276 2008-07-08  Raksit Ashok  <raksit@google.com>
2278         * expr.c (emit_block_move_via_movmem): Fix expected_align parameter.
2279         (set_storage_via_setmem): Fix expected_align parameter.
2280         * doc/invoke.texi (i386 and x86-64 Options): Add a couple of options
2281         missing from the list.
2282         * doc/md.texi (movmem): Explicitly state that expected alignment is
2283         to be expressed in bytes.
2284         (setmem): Explicitly state that expected alignment is to be expressed
2285         in bytes.
2287 2008-07-08  Joseph Myers  <joseph@codesourcery.com>
2289         * reload.c (find_reloads_subreg_address): Do not require validity
2290         of address in original mode before reloading address.
2292 2008-07-07  Tianwei Sheng  <tianweis@google.com>
2294         * df-core.c (df_remove_problem): Adjust the access to avoid out of
2295         bounds array access.
2297 2008-07-08  Jakub Jelinek  <jakub@redhat.com>
2299         * tree-sra.c (sra_build_assignment): Handle CONVERT_EXPR_P dst.
2301 2008-07-05  Daniel Berlin  <dberlin@dberlin.org>
2303         Fix PR tree-optimization/23455
2304         Fix PR tree-optimization/35286
2305         Fix PR tree-optimization/35287
2306         * Makefile.in (OBJS-common): Remove tree-vn.o.
2307         (tree-vn.o): Remove.
2308         * dbgcnt.def: Add treepre_insert debug counter.
2309         * gcc/tree-flow.h (add_to_value): Updated for other changes.
2310         (debug_value_expressions): Ditto.
2311         (print_value_expressions): Ditto.
2312         * tree-pretty-print.c (dump_generic_node): Updated for
2313         VALUE_HANDLE removal.
2314         * tree-ssa-dom.c (record_equality): Ditto.
2315         (cprop_operand): Ditto.
2316         (lookup_avail_expr): Ditto.
2317         * tree-ssa-threadedge.c
2318         (record_temporary_equivalences_from_stmts_at_dest): Ditto.
2319         (simplify_control_stmt_condition): Ditto.
2320         * tree.c (tree_code_size): Ditto.
2321         (tree_node_structure): Ditto.
2322         (iterative_hash_expr): Ditto.
2323         * tree.def: Ditto.
2324         * tree.h (VALUE_HANDLE_ID): Ditto.
2325         (VALUE_HANDLE_EXPR_SET): Ditto.
2326         (struct tree_value_handle): Ditto.
2327         (union tree_node): Ditto.
2328         * treestruct.def: Ditto.
2329         * tree-vn.c: Removed.
2330         * tree-ssa-pre.c: Rewritten entirely.
2331         * tree-ssa-sccvn.c (constant_to_value_id): New hashtable.
2332         (constant_value_ids): Ditto.
2333         (vn_nary_op_t): Moved to header.
2334         (vn_phi_t): Ditto.
2335         (vn_reference_op_t): Ditto
2336         (vn_reference_t): Ditto.
2337         (next_value_id): New variable.
2338         (VN_INFO): Add an assert.
2339         (vn_constant_eq): New function.
2340         (vn_constant_hash): Ditto.
2341         (get_or_alloc_constant_value_id): Ditto.
2342         (value_id_constant_p): Ditto.
2343         (vn_reference_compute_hash): De-staticify.
2344         (copy_reference_ops_from_ref): Don't use get_callee_fndecl.
2345         Disable some code with a FIXME.  Remove VALUE_HANDLE use.
2346         (valueize_refs): Update opcode if it changes from ssa name to constant.
2347         (vn_reference_lookup_1): Add new argument.
2348         (vn_reference_lookup):  Ditto.
2349         (vn_reference_lookup_pieces): New function.
2350         (vn_reference_insert): Add return type. Modify to deal with value ids.
2351         (vn_reference_insert_pieces):  New function.
2352         (vn_nary_op_compute_hash): De-staticify.
2353         (vn_nary_op_eq): Ditto.
2354         (vn_nary_op_lookup_pieces): New function.
2355         (vn_nary_op_lookup): Add new argument.
2356         (vn_nary_op_insert_pieces): New function.
2357         (vn_nary_op_insert): Add return type. Modify to deal with value ids.
2358         (vn_phi_insert): Ditto.
2359         (visit_unary_op): Update for callee changes.
2360         (visit_binary_op): Ditto.
2361         (visit_reference_op_load): Ditto.
2362         (visit_reference_op_store): Ditto.
2363         (init_scc_vn): Init next_value_id, constant_to_value_id and
2364         constant_value_ids.
2365         (free_scc_vn): Free them.
2366         (set_hashtable_value_ids): New function.
2367         (run_scc_vn): Use it.
2368         (get_max_value_id): New function.
2369         (get_next_value_id): Ditto.
2370         (expressions_equal_p): Moved from tree-vn.c
2371         (sort_vuses): Ditto.
2372         (sort_vuses_heap): Ditto.
2373         * tree-ssa-sccvn.h: Structures moved from tree-ssa-sccvn.c (noted
2374         above).
2375         * tree.c (iterative_hash_hashval_t): Made non-static
2376         * tree.h (iterative_hash_hashval_t): Declare it.
2378 2008-07-08  Martin Jambor  <mjambor@suse.cz>
2380         * ipa-cp.c (ipcp_init_cloned_node): Call ipa_check_create_node_params
2381         instead of ipa_create_node_params.
2382         (ipcp_driver): Allocate infos with ipa_check_create_node_params and
2383         ipa_check_create_edge_args, free them with
2384         free_all_ipa_structures_after_ipa_cp, call ipa_register_cgraph_hooks.
2386         * ipa-prop.c: Include flags.h and tree-inline.h.
2387         (ipa_node_params_vector): New variable.
2388         (ipa_edge_args_vector): New variable.
2389         (edge_removal_hook_holder): New variable.
2390         (node_removal_hook_holder): New variable.
2391         (edge_duplication_hook_holder): New variable.
2392         (node_duplication_hook_holder): New variable.
2393         (ipa_detect_param_modifications): Check for presence of modified flags.
2394         (ipa_compute_jump_functions): Check for presence of jump functions.
2395         (ipa_free_edge_args_substructures): New function.
2396         (ipa_create_node_params): Removed.
2397         (ipa_free_all_edge_args): Changed to deallocate the on-the-side vector.
2398         (ipa_free_node_params_substructures): New function.
2399         (ipa_free_all_node_params): Changed to deallocate the on-the-side
2400         vector.
2401         (ipa_edge_removal_hook): New function.
2402         (ipa_node_removal_hook): New function.
2403         (duplicate_array): New function.
2404         (ipa_edge_duplication_hook): New function.
2405         (ipa_node_duplication_hook): New function.
2406         (ipa_register_cgraph_hooks): New function.
2407         (ipa_unregister_cgraph_hooks): New function.
2408         (free_all_ipa_structures_after_ipa_cp): New function.
2410         * ipa-prop.h: Include vec.h.
2411         (ipa_node_params_t): New typedef with vector types for it.
2412         (ipa_edge_args_t):  New typedef with vector types for it.
2413         (IPA_NODE_REF): Changed to access an on-the-side vector.
2414         (IPA_EDGE_REF): Changed to access an on-the-side vector.
2415         (ipa_check_create_node_params): New function.
2416         (ipa_check_create_edge_args): New function.
2418         * Makefile.in (IPA_PROP_H): New variable for ipa-prop.h.  Converted
2419         all users.
2421 2008-07-07  Tom Tromey  <tromey@redhat.com>
2423         * configure, config.in: Rebuilt.
2424         * configure.ac: Don't check for scandir or alphasort.
2426 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2428         * config/arm/arm.c (arm_init_neon_builtins): Register built-in
2429         types immediately after creating them.
2431 2008-07-07  Joseph Myers  <joseph@codesourcery.com>
2433         * config/arm/aout.h (DOLLARS_IN_IDENTIFIERS): Remove.
2435 2008-07-07  Fernando Pereira <fernando@cs.ucla.edu>
2437         * tree-ssa-structalias.c (compute_points_to_sets): Add call to
2438         dump_constraint_graph.
2439         (dump_constraint_edge): New function.
2440         (dump_constraint_graph): New function.
2441         (debug_constraint_graph): New function.
2442         (dump_constraint): Removed useless comparison.
2443         * tree-ssa-structalias.h (dump_constraint_edge): Declare.
2444         (dump_constraint_graph): Declare.
2445         (debug_constraint_graph): Declare.
2446         * tree-dump.c (struct dump_option_value_info): Declare TDF_GRAPH.
2448 2008-07-07  Kai Tietz  <kai.tietz@onevision.com>
2450         * config/i386/i386.c (is_va_list_char_pointer): New.
2451         (ix86_va_start): Replace compare with ms_va_list_type_node
2452         by is_va_list_char_pointer.
2453         (ix86_gimplify_va_arg): Likewise.
2455 2008-07-07  Martin Jambor  <mjambor@suse.cz>
2457         * cgraph.c (cgraph_edge_max_uid): New variable.
2458         (struct cgraph_edge_hook_list): New type.
2459         (struct cgraph_node_hook_list): New type.
2460         (struct cgraph_2edge_hook_list): New type.
2461         (struct cgraph_2node_hook_list): New type.
2462         (first_cgraph_edge_removal_hook): New variable.
2463         (first_cgraph_node_removal_hook): New variable.
2464         (first_cgraph_edge_duplicated_hook): New variable.
2465         (first_cgraph_node_duplicated_hook): New variable.
2466         (cgraph_add_edge_removal_hook): New function.
2467         (cgraph_remove_edge_removal_hook): New function.
2468         (cgraph_call_edge_removal_hooks):  New function.
2469         (cgraph_add_node_removal_hook):  New function.
2470         (cgraph_remove_node_removal_hook):  New function.
2471         (cgraph_call_node_removal_hooks):  New function.
2472         (cgraph_add_edge_duplication_hook):  New function.
2473         (cgraph_remove_edge_duplication_hook):  New function.
2474         (cgraph_call_edge_duplication_hooks):  New function.
2475         (cgraph_add_node_duplication_hook):  New function.
2476         (cgraph_remove_node_duplication_hook):  New function.
2477         (cgraph_call_node_duplication_hooks):  New function.
2478         (cgraph_create_edge): Assign to edge uid.
2479         (cgraph_remove_edge): Call edge removal hooks.
2480         (cgraph_node_remove_callees): Call edge removal hooks.
2481         (cgraph_node_remove_callers): Call edge removal hooks.
2482         (cgraph_remove_node): Call node removal hooks.
2483         (cgraph_clone_edge): Call edge duplication hooks.
2484         (cgraph_clone_node): Call node duplication hooks.
2486         * cgraph.h (cgraph_edge): New field uid.
2487         (cgraph_edge_hook): New type.
2488         (cgraph_node_hook): New type.
2489         (cgraph_2edge_hook): New type.
2490         (cgraph_2node_hook): New type.
2492 2008-07-07  Andreas Tobler  <a.tobler@schweiz.org>
2494         * config.in: Regenerate.
2496 2008-07-07  Vladimir Prus  <vladimir@codesourcery.com>
2498         * gcc.c (print_sysroot): New.
2499         (option_map, display_help, process_command): Handle the
2500         -print-sysroot option.
2501         (main): Print the sysroot if requested.
2502         * doc/invoke.texi (Debugging Options): Document -print-sysroot.
2504 2008-07-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2506         PR target/34780
2507         * unwind-pe.h (size_of_encoded_value): add attribute unused.
2509 2008-07-07  Daniel Jacobowitz  <dan@codesourcery.com>
2511         * function.c (assign_parm_remove_parallels): Check mode of entry_parm.
2512         (assign_parm_setup_block_p): Also check mode of entry_parm.
2514 2008-07-07  Richard Guenther  <rguenther@suse.de>
2516         * tree-ssa-structalias.h (set_used_smts): Remove.
2517         * tree-ssa-structalias.c (used_smts): Likewise.
2518         (set_used_smts): Likewise.
2519         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Remove
2520         call to set_used_smts.
2522 2008-07-07  Richard Guenther  <rguenther@suse.de>
2524         * tree-ssa-structalias.c (struct variable_info): Add is_full_var flag.
2525         (new_var_info): Set it to false.
2526         (solution_set_add): Correctly handle pointers outside a var and
2527         inside a field.
2528         (type_safe): Treat variables with is_full_var properly.
2529         (do_sd_constraint): Likewise.
2530         (do_ds_constraint): Likewise.
2531         (process_constraint): Remove zeroing offset for !use_field_sensitive.
2532         (get_constraint_for_ptr_offset): New function.
2533         (get_constraint_for_component_ref): For addresses at least include
2534         the last field of the variable.  Handle is_full_vars properly.
2535         (get_constraint_for_1): Factor common code, handle POINTER_PLUS_EXPR.
2536         (handle_ptr_arith): Remove.
2537         (find_func_aliases): Simplify assignment handling.
2538         (create_function_info_for): For parameter and result varinfos set
2539         is_full_var flag.
2540         (create_variable_info_for): Set is_full_var flag whenever we
2541         just created a single varinfo for a decl.
2542         (init_alias_vars): Initialize use_field_sensitive from
2543         max-fields-for-field-sensitive parameter.
2545 2008-07-07  Richard Guenther  <rguenther@suse.de>
2547         PR tree-optimization/36713
2548         * tree-flow-inline.h (is_call_used): New function.
2549         * tree-nrv.c (dest_safe_for_nrv_p): Use it.
2550         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2551         * tree-outof-ssa.c (create_temp): Set call-used flag if required.
2553 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2555         * config/m68k/m68k.c (m68k_return_in_memory): Fix arguments types.
2557 2008-07-07  Mark Shinwell  <shinwell@codesourcery.com>
2559         * config/m68k/lb1sf68.asm: Add PIC macros for Linux targets.
2561 2008-07-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
2562             Nathan Sidwell  <nathan@codesourcery.com>
2564         * config.gcc (m68k-*-linux*): Add with_arch.  Add sysroot-suffix.h
2565         to tm_file.  Add m68k/t-floatlib, m68k/t-linux & m68k/t-mlibs to
2566         tmake_file.
2567         * config/m68k/t-linux: New.
2568         * doc/install.texi: Document m68k-*-linux is now multilibbed by
2569         default.
2571 2008-07-07  Nathan Sidwell  <nathan@codesourcery.com>
2573         * config/m68k/t-cf (MULTILIB_EXTRA_OPTS): Add no-mac.
2574         * config/m68k/m68k-devices.def: Remove multilibs that only differ
2575         by MAC/EMAC.
2577 2008-07-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2579         * gcc.c (execute): Fix -Wc++-compat warning.
2581 2008-07-06  H.J. Lu  <hongjiu.lu@intel.com>
2583         PR target/36720
2584         * config/ia64/ia64.c (ia64_split_tmode): Fix typo in TImode
2585         constant for little endian.
2587 2008-07-06  Richard Sandiford  <rdsandiford@googlemail.com>
2589         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Check
2590         mips_base_mips16 instead of TARGET_MIPS16.
2591         (mips_base_mips16): Declare.
2592         * config/mips/mips.c (mips_base_mips16): Make global.
2593         (was_mips16_p): Remove GTY marker.
2594         (was_mips16_pch_p): New variable.
2595         (mips_set_mips16_mode): Check both was_mips16_p and was_mips16_pch_p.
2596         (mips_override_options): Force to non-MIPS16 mode initially.
2597         Do not complain about MIPS16 PIC incompatibilities here.
2598         Only allow -mgpopt if -mexplicit-relocs is in force for
2599         non-MIPS16 code.
2601 2008-07-06  Andreas Tobler  <a.tobler@schweiz.org>
2603         * configure.ac: Check for caddr_t, define to char * if not defined.
2604         * configure: Regenerate.
2605         * ggc-common.c (mmap_gt_pch_get_address): Fix -Wc++-compat warnings.
2606         (mmap_gt_pch_use_address): Likewise.
2607         * config/host-solaris.c (sol_gt_pch_use_address): Likewise.
2609 2008-07-06  Richard Guenther  <rguenther@suse.de>
2611         * tree-ssa-structalias.c (struct variable_info): Remove has_union.
2612         (new_var_info): Deal with it.
2613         (solution_set_add): Likewise.
2614         (bitpos_of_field): Make signed, fix.
2615         (struct fieldoff): Remove type and decl fields.  Make size field
2616         unsigned HOST_WIDE_INT.  Add has_unknown_size and may_have_pointers
2617         flags.
2618         (fieldoff_compare): Deal with it.
2619         (push_fields_onto_fieldstack): Remove has_union argument, glob
2620         adjacent non-pointer fields together.
2621         (create_function_info_for): Do not set has_union.
2622         (create_variable_info_for): Simplify.
2624 2008-07-06  Kai Tietz  <kai.tietz@onevision.com>
2626         * config.gcc (extra_headers): Add cross-stdarg.h for target
2627         x86_64-*-* and i?86-*-*.
2628         * config/i386/cross-stdarg.h: New.
2629         * builtins.c (std_fn_abi_va_list): New.
2630         (std_canonical_va_list_type): New.
2631         (stabilize_va_list): Replace va_list_type_node use by
2632         mtarget.canonical_va_list_type.
2633         (gimplify_va_arg_expr): Likewise.
2634         (expand_builtin_va_copy): Replace va_list_type_node use by
2635         mtarget.fn_abi_va_list.
2636         * tree-sra.c (is_va_list_type): New helper.
2637         (decl_can_be_decomposed_p): Replace
2638         va_list_type_node use by is_va_list_type.
2639         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
2640         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2641         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
2642         * config/i386/i386-protos.h (ix86_get_valist_type): New.
2643         (ix86_enum_va_list): New.
2644         * config/i386/i386.c (sysv_va_list_type_node): New.
2645         (ms_va_list_type_node): New.
2646         (ix86_function_type_abi): Remove sorry.
2647         (ix86_build_builtin_va_list_abi): New.
2648         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
2649         for 64-bit targets.
2650         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
2651         (ix86_init_builtins_va_builtins_abi): New.
2652         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
2653         for 64-bit targets.
2654         (ix86_handle_abi_attribute): New.
2655         (attribute_spec): Add sysv_abi and ms_abi.
2656         (ix86_fn_abi_va_list): New.
2657         (ix86_canonical_va_list_type): New.
2658         (ix86_enum_va_list): New.
2659         (TARGET_FN_ABI_VA_LIST): New.
2660         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2661         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
2662         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
2663         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2664         (TARGET_ENUM_VA_LIST): New.
2665         * expr.h (std_fn_abi_va_list): New.
2666         (std_canonical_va_list_type): New.
2667         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
2668         (TARGET_CANONICAL_VA_LIST_TYPE): New.
2669         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
2670         TARGET_CANONICAL_VA_LIST_TYPE.
2671         * target.h (struct gcc_target): Add fn_abi_va_list hook
2672         and canonical_va_list_type hook.
2674 2008-07-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
2676         * fold-const.c (fold_convert_const): Treat OFFSET_TYPE the same as
2677         integral and pointer types.
2679 2008-07-04  Roger Sayle  <roger@eyesopen.com>
2681         * config/rs6000/host-darwin.c (darwin_rs6000_extra_signals): Cast
2682         the "void*" result of xmalloc to "char*" to fix bootstrap breakage.
2684 2008-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
2686         PR target/36684
2687         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable -fschedule-insns for PIC.
2689 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2691         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
2692         build_gimple_modify_stmt.
2693         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
2694         gimple operand.  Use fold_build* instead of build*.
2696 2008-07-04  Richard Guenther  <rguenther@suse.de>
2698         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
2699         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
2700         properly to compute the reachability set if we do field-sensitive PTA.
2701         * invoke.texi (max-fields-for-field-sensitive): Document default.
2702         * opts.c (decode_options): Set max-fields-for-field-sensitive to
2703         100 for optimize >= 2.
2705 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2707         * ggc-zone.c (lookup_page_table_if_allocated,
2708         set_page_table_entry, zone_find_object_size, alloc_small_page,
2709         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
2710         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
2711         -Wc++-compat and/or -Wcast-qual warnings.
2713 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
2715         PR target/36634
2716         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
2717         pic_offset_table_rtx to be marked as used here.
2718         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
2719         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
2720         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
2721         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
2722         !TARGET_SECURE_PLT.
2724 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2726         * alloc-pool.c (hash_descriptor, eq_descriptor,
2727         alloc_pool_descriptor): Fix -Wc++-compat warnings.
2728         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
2729         Likewise.
2730         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
2731         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
2732         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics): Likewise.
2733         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
2734         Likewise.
2736 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
2738         * tree-flow.h (loop_only_exit_p): Declare.
2739         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
2740         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
2741         the number of iterations if it is constant.  Otherwise, if this is the
2742         only possible exit of the loop, use the conservative estimate on the
2743         number of iterations of the entire loop if available.
2745 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
2747         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
2748         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
2749         Add synchronization functions.
2750         * config/sync.c: New file.
2751         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
2752         (LIBGCC_SYNC_CFLAGS): Likewise.
2754 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
2756         PR target/36710
2757         * config/i386/i386.md (mode): Add TF to "mode" attribute.
2758         (*pushtf_sse): New insn pattern.
2759         (pushtf splitters): New splitters.
2761 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
2763         PR middle-end/35736
2764         * predict.c (build_predict_expr): Use void_type_node for the tree
2765         type, instead of NULL_TREE.
2767 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
2769         * config/i386/i386.c (contains_aligned_value_p): Return true
2770         for TCmode.
2771         (ix86_data_alignment): Align TCmode to 128bits.
2772         (ix86_local_alignment): Likewise.
2774 2008-07-03  Andrew Haley  <aph@redhat.com>
2776         PR bootstrap/33304
2777         * vec.h (VEC_TA): New.
2778         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
2779         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
2780         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
2781         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
2782         (C_COMMON_FIXED_TYPES): Remove first arg.
2783         (C_COMMON_FIXED_MODE_TYPES): Likewise.
2784         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
2785         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
2786         not to use empty macro arguments.
2788 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
2790         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
2791         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
2792         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
2793         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
2794         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
2795         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
2796         config/ia64/crtn.asm, config/m68hc11/larith.asm,
2797         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
2798         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
2799         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
2800         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
2801         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
2802         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
2803         config/rs6000/e500crtres64gpr.asm,
2804         config/rs6000/e500crtres64gprctr.asm,
2805         config/rs6000/e500crtrest32gpr.asm,
2806         config/rs6000/e500crtrest64gpr.asm,
2807         config/rs6000/e500crtresx32gpr.asm,
2808         config/rs6000/e500crtresx64gpr.asm,
2809         config/rs6000/e500crtsav32gpr.asm,
2810         config/rs6000/e500crtsav64gpr.asm,
2811         config/rs6000/e500crtsav64gprctr.asm,
2812         config/rs6000/e500crtsavg32gpr.asm,
2813         config/rs6000/e500crtsavg64gpr.asm,
2814         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
2815         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
2816         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
2817         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
2818         config/sparc/sol2-cn.asm: Remove .file directives.
2820 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
2822         * resource.c (mark_referenced_resources): Look inside
2823         UNSPEC_VOLATILEs and ASM_INPUTs.
2825 2008-07-02  Ian Lance Taylor  <iant@google.com>
2827         * rtlanal.c (add_reg_note): New function.
2828         * rtl.h (add_reg_note): Declare.
2829         * auto-inc-dec.c (attempt_change): Use add_reg_note.
2830         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
2831         * builtins.c (expand_builtin_longjmp): Likewise.
2832         (expand_builtin_nonlocal_goto): Likewise.
2833         * calls.c (emit_call_1, expand_call): Likewise.
2834         * cfgexpand.c (add_reg_br_prob_note): Likewise.
2835         * cfglayout.c (fixup_reorder_chain): Likewise.
2836         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
2837         (commit_one_edge_insertion): Likewise.
2838         * combine.c (move_deaths, distribute_notes): Likewise.
2839         * df-problems.c (df_set_note): Likewise.
2840         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
2841         (set_unique_reg_note): Likewise.
2842         (emit_copy_of_insn_after): Likewise.
2843         * expr.c (expand_expr_real): Likewise.
2844         * gcse.c (add_label_notes): Likewise.
2845         * haifa-sched.c (create_check_block_twin): Likewise.
2846         * jump.c (mark_jump_label_1): Likewise.
2847         * loop-doloop.c (add_test, doloop_modify): Likewise.
2848         * loop-unswitch.c (compare_and_jump_seq): Likewise.
2849         * lower-subreg.c (move_eh_region_note): Likewise.
2850         * optabs.c (emit_libcall_block): Likewise.
2851         * predict.c (predict_insn): Likewise.
2852         (combine_predictions_for_insn): Likewise.
2853         * recog.c (peephole2_optimize): Likewise.
2854         * regmove.c (try_auto_increment): Likewise.
2855         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
2856         * reload.c (find_reloads): Likewise.
2857         * reload1.c (fixup_eh_region_note): Likewise.
2858         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
2859         * reorg.c (delete_prior_computation): Likewise.
2860         (delete_computation, dbr_schedule): Likewise.
2861         * config/pa/pa.c (legitimize_pic_address): Likewise.
2862         * config/sh/sh.c (sh_reorg): Likewise.
2864 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2866         PR target/36669
2867         * config/libgcc-glibc.ver: Add %exclude.
2868         * config/m32r/libgcc-glibc.ver: Likwise.
2869         * config/s390/libgcc-glibc.ver: Likwise.
2870         * config/sh/libgcc-glibc.ver: Likwise.
2871         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
2873         * config/i386/libgcc-glibc.ver: New.
2875         * config/i386/libgcc-x86_64-glibc.ver: Removed.
2877 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
2879         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
2880         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
2881         i[34567]86-*-linux*, x86_64-*-linux*.  Add
2882         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
2883         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
2884         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
2885         i[34567]86-*-linux*, x86_64-*-linux*.
2887         * libgcc-std.ver: Add empty GCC_4.4.0.
2889         * mkmap-symver.awk: Support multiple versions per symbol.
2891         * config/i386/i386.c (ix86_init_builtins): Always define
2892         __builtin_fabsq and __builtin_copysignq with fallbacks.
2893         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
2894         and __builtin_copysignq if SSE2 isn't available.
2896         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
2897         (LIBGCC2_TF_CEXT): Likwise.
2898         (TF_SIZE): Likwise.
2900         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
2902         * config/i386/sfp-machine.h: Moved to libgcc.
2904         * config/i386/sfp-machine.h: New.
2905         * config/i386/t-linux: Likwise.
2907         * config/i386/t-darwin: Remove softfp_wrap_start and
2908         softfp_wrap_end.
2909         * config/i386/t-darwin64: Likewise.
2911         * config/i386/t-fprules-softfp64: Renamed to ...
2912         * config/i386/t-fprules-softfp: This.
2914         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
2915         and softfp_wrap_end.
2917 2008-07-02  Jason Merrill  <jason@redhat.com>
2919         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
2921         * tree.c (ctor_to_list): New fn.
2922         * tree.h: Declare it.
2923         (CONSTRUCTOR_ELT): New macro.
2924         (CONSTRUCTOR_NELTS): New macro.
2926 2008-07-02  Richard Guenther  <rguenther@suse.de>
2928         * tree-ssa-structalias.c (struct variable_info): Reorder
2929         to fill padding on 64bit hosts.  Make collapsed_to an int.
2930         (get_varinfo_fc): Deal with that.
2931         (new_var_info): Likewise.
2932         (collapse_rest_of_var): Likewise.
2934 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
2936         * doc/install.texi (--enable-java-home): Document.
2937         (--enable-aot-compile-rpm): Likewise.
2938         (--with-arch-directory): Likewise.
2939         (--with-os-directory): Likewise.
2940         (--with-origin-name): Likewise.
2941         (--with-arch-suffix): Likewise.
2942         (--with-jvm-root-dir): Likewise.
2943         (--with-jvm-jar-dir): Likewise.
2944         (--with-python-dir): Likewise.
2946 2008-07-02  Richard Guenther  <rguenther@suse.de>
2948         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
2949         from decls explicitly.  Merge operand checking from tuples.
2951 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2953         * tree-switch-conversion.c: Included timevar.h which I forgot before.
2955 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2957         * tree-switch-conversion.c: Included timevar.h
2958         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
2960         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
2962 2008-07-02  Martin Jambor  <mjambor@suse.cz>
2964         * tree-switch-conversion.c: Corrected various comments and
2965         whitespace issues
2966         (build_constructors): Fixed minor formatting mistakes.
2968         * invoke.texi (Optimize Options): Corrected the
2969         switch-conversion-max-branch-ratio parameter.
2971 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
2973         * final.c (asm_insn_count): Return zero for an empty asm body.
2975 2008-07-02  Richard Guenther  <rguenther@suse.de>
2977         * bitmap.h (bitmap_set_bit): Return bool.
2978         (bitmap_clear_bit): Likewise.
2979         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
2980         write to the bitmap if it would.
2981         (bitmap_clear_bit): Likewise.
2982         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
2983         bitmap_set_bit return value.
2984         (add_pred_graph_edge): Likewise.
2985         (add_graph_edge): Likewise.
2986         (do_sd_constraint): Likewise.
2987         (do_ds_constraint): Likewise.
2989 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2991         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
2992         Fix -Wc++-compat and/or -Wcast-qual warnings.
2993         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
2994         gen_regparm_prefix): Likewise.
2995         * vmsdbgout.c (write_modbeg, lookup_filename,
2996         vmsdbgout_source_line, vmsdbgout_init): Likewise.
2998 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
3000         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
3001         defaults.h definition apply.
3003 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3005         * function.c (assign_parm_remove_parallels): New.
3006         (assign_parm_setup_block_p): Do not return true for non-BLKmode
3007         PARALLELs.
3008         (assign_parm_setup_block): Do not handle them.
3009         (assign_parm_setup_reg, assign_parm_setup_stack): Call
3010         assign_parm_remove_parallels.
3012 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
3014         * c-typeck.c (convert_for_assignment): Use
3015         vector_targets_convertible_p.
3016         * c-common.c (vector_targets_convertible_p): New.
3017         * c-common.h (vector_targets_convertible_p): New prototype.
3018         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
3019         opaque_p_V2SI_type_node.
3021 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
3023         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
3024         RFmode constants.
3026 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
3028         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
3029         TFmode constants via two element DImode vector for hosts with
3030         HOST_BITS_PER_WIDE_INT < 64.
3031         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
3032         also for HOST_BITS_PER_WIDE_INT < 64.
3034 2008-07-01  Richard Guenther  <rguenther@suse.de>
3036         PR tree-optimization/36666
3037         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
3038         (get_constraint_exp_from_ssa_var): Split into ...
3039         (get_constraint_exp_for_temp): ... this ...
3040         (get_constraint_for_ssa_var): ... and that.
3041         Return constraint expressions for all touched sub-fields
3042         if the results address is not taken.
3043         (process_constraint): Remove assertion that aggregate
3044         assignments do not happen at this place.
3045         (get_constraint_for_component_ref): Add address_p argument.
3046         Return constraint expressions for all touched sub-fields
3047         if the results address is not taken.
3048         (do_deref): Use get_constraint_exp_for_temp.
3049         (get_constraint_for_1): Rename from ...
3050         (get_constraint_for): ... this.  Add the old function as wrapper.
3051         (do_structure_copy): Use get_constraint_for_1.
3053 2008-07-01  Martin Jambor  <mjambor@suse.cz>
3055         * Makefile.in (tree-switch-conversion.o): Add.
3056         (OBJS-common): Add tree-swtch-conversion.o.
3057         * passes.c (init_optimization_passes): Add pass_convert_switch.
3058         * tree-pass.h: (pass_convert_switch): Add.
3059         * tree-switch-conversion.c: New file.
3060         * gcc.dg/tree-ssa/cswtch.c: New testcase.
3061         * common.opt (ftree-cswtch): New option.
3062         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3063         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
3064         * opts.c (decode_options): Set flag_tree_switch_conversion when
3065         optimization level is >= 2.
3066         * doc/invoke.texi (Optimize Options): Added description of
3067         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
3069 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3071         * config/darwin-driver.c (darwin_default_min_version): Fix
3072         -Wc++-compat warnings.
3074 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
3076         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
3077         of operand 0.
3079 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
3081         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
3083 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
3085         PR rtl-optimization/34744
3086         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
3087         (df_scan_free_internal): Free data structures not
3088         allocated in storage pools.
3089         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
3090         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
3091         df_scan_free_mws_vec.
3092         * dse.c (dse_step6): Free offset_map_p and offset_map_n
3093         unconditionally.
3095 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
3097         * config/i386/i386.c (contains_aligned_value_p): Return true
3098         for __float128.
3099         (ix86_function_arg_boundary): Return its natural boundary
3100         for __float128.
3101         (return_in_memory_32): Don't check TDmode.
3102         (ix86_split_to_parts): Support splitting into 4 parts and
3103         support TFmode for 32bit target.
3104         (ix86_split_long_move): Support splitting into 4 parts.
3105         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
3106         for SSE2.
3107         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
3108         (ix86_init_builtins): Here.
3109         (ix86_scalar_mode_supported_p): Always return true for TFmode.
3110         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
3111         'q' and 'w', respectively.
3113         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
3114         TARGET_64BIT.
3115         (movtf_internal): Likewise.
3116         (<code>tf2): Likewise.
3117         (*absnegtf2_sse): Likewise.
3118         (copysign<mode>3): Likewise.
3119         (copysign<mode>3_const): Likewise.
3120         (copysign<mode>3_var): Likewise.
3121         (define_split UNSPEC_COPYSIGN): Likewise.
3122         * config/i386/sse.md (*nandtf3): Likewise.
3123         (<code>tf3): Likewise.
3124         (*<code>tf3): Likewise.
3126 2008-06-30  Joey Ye  <joey.ye@intel.com>
3127             H.J. Lu  <hongjiu.lu@intel.com>
3129         * global.c (compute_regsets): Set frame_pointer_needed here.
3130         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
3132 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
3134         * doc/install.texi (specific): Expand Windows build notes.
3136 2008-06-30  Ira Rosen  <irar@il.ibm.com>
3138         PR tree-optimization/36648
3139         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
3140         number of prolog iterations by step. Fix the comment.
3142 2008-06-30  Richard Guenther  <rguenther@suse.de>
3144         PR middle-end/36671
3145         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
3146         handle calls from ECF_MALLOC functions.
3147         (handle_pure_call): ECF_MALLOC functions do not return
3148         call-used memory.
3149         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
3151 2008-06-29  Andreas Schwab  <schwab@suse.de>
3153         * config/m68k/m68k.c (print_operand): Always print a float
3154         constant in hex.
3155         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
3156         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
3157         Remove macros.
3159         * config/rs6000/x-linux64: Remove never used file.
3161 2008-06-29  Richard Guenther  <rguenther@suse.de>
3163         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
3164         prototype.
3165         (struct alias_info): Move ...
3166         * tree-ssa-alias.c: ... here.
3167         (update_alias_info): Declare.
3168         (compute_may_aliases): Call it.
3169         (update_alias_info): New function.
3170         * tree-ssa-structalias.c (update_alias_info): Move ...
3171         * tree-ssa-alias.c (update_alias_info_1): ... here.
3172         * tree-ssa-structalias.c (process_constraint_1): Remove
3173         unused from_call argument.  Rename to ...
3174         (process_constraint): ... this.  Delete old wrapper.
3175         (make_constraint_to): Adjust callers.
3176         (handle_const_call): Likewise.
3177         (handle_pure_call): Likewise.
3178         (init_base_vars): Likewise.
3179         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
3180         (find_func_aliases): We don't need structure copies for
3181         complex types.
3182         (make_constraint_from_anything): Remove.
3183         (create_variable_info_for): For globals make constraints
3184         from escaped, not from anything.
3185         (compute_points_to_sets): Do not call update_alias_info.
3186         (ipa_pta_execute): Use make_constraint_from.
3188 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3190         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
3191         (bitmap.o-warn, dominance.o-warn): New.
3192         * configure.ac (cxx_compat_warn): Delete.
3193         (loose_warn): Add -Wcast-qual and -Wc++-compat.
3194         * system.h: Remove #pragma diagnostic for -Wcast-qual and
3195         -Wc++-compat.
3196         * configure: Regenerate.
3198         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
3199         warnings.
3201 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3203         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
3204         * df-scan.c (df_notes_rescan): Likewise.
3205         * ggc-page.c (set_page_table_entry): Likewise.
3206         * intl.c (gcc_gettext_width): Likewise.
3207         * varasm.c (get_unnamed_section, get_noswitch_section,
3208         get_section): Likewise.
3210 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
3212         * regrename.c (build_def_use): Don't copy RTX.
3214 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
3216         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
3217         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
3218         punctuation.  Use @ref instead of @xref.
3219         (Function Names): Remove stray @display/@end display.
3220         (C++ Attributes): Use @ref instead of @xref.
3221         (Deprecated Features): Fix punctuation around @xref.
3222         (Backwards Compatibility): Likewise.
3223         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
3225 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
3227         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
3228         constants for E500 double.
3230 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3232         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
3233         element type of const_vector.
3235 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
3237         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
3238         Remove FLAGS_REG clobber from expander pattern.
3239         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
3240         (anddi3, andsi3, andhi3, andqi3): Ditto.
3241         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
3242         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
3243         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
3244         (ashlsi3, ashlhi3, ashlqi3): Ditto.
3245         (ashrsi3, ashrhi3, ashrqi3): Ditto.
3246         (lshrsi3, lshrhi3, lshrqi3): Ditto.
3247         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
3248         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
3250 2008-06-28  Richard Guenther  <rguenther@suse.de>
3252         * tree-ssa-structalias.c (callused_id, var_callused,
3253         callused_tree): Add.
3254         (handle_pure_call): New function.
3255         (find_func_aliases): Call it.
3256         (find_what_p_points_to): Handle the call-used set.
3257         (clobber_what_escaped): Likewise.
3258         (compute_call_used_vars): New function.
3259         (init_base_vars): Init the call-used variable.
3260         (do_sd_constraint): Do not propagate the solution from CALLUSED
3261         but use CALLUSED as a placeholder.
3262         (solve_graph): Likewise.
3263         * tree-flow-inline.h (gimple_call_used_vars): New function.
3264         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
3265         (compute_call_used_vars): Declare.
3266         * tree-ssa-alias.c (set_initial_properties): Call
3267         compute_call_used_vars.
3268         (reset_alias_info): Clear call-used variables.
3269         (add_call_clobber_ops): Assert we are not called for const/pure
3270         functions.  Remove handling of them.
3271         (add_call_read_ops): Handle pure functions by adding the
3272         call-used set of variables as VUSEs.
3273         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
3274         (delete_tree_ssa): Free it.
3275         * tree-dfa.c (remove_referenced_var): Clear the var from the
3276         call-used bitmap.
3278 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
3280         * tree.c (build_varargs_function_type_list): New.
3281         (build_function_type_list_1): New.
3282         (build_function_type_list): Use build_function_type_list_1.
3283         * tree.h (build_varargs_function_type_list): New.
3285 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3287         PR target/34856
3288         * config/spu/spu.c (spu_builtin_splats): Do not generate
3289         invalid CONST_VECTOR expressions.
3290         (spu_expand_vector_init): Likewise.
3292 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
3294         * optabs.c (libfunc_decls): New variable.
3295         (libfunc_decl_hash, libfunc_decl_eq): New functions.
3296         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
3297         for the same function twice.
3299 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
3301         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
3302         ix86_expand_binary_operator directly.
3303         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
3304         for operand 2.
3305         (*ashrti3_1): Ditto.
3306         (*lshrti3_1): Ditto.
3307         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
3308         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
3309         using only one splitter.  Conditionaly execute splitter before or
3310         after peephole2 pass.
3311         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
3312         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
3313         Use only one alternative in asm template.
3314         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
3315         in asm template.
3316         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
3317         "J" operand constraint for operand 2.
3318         (*ashldi3_cconly_rex64): Ditto.
3319         (*ashrdi3_cmp_rex64): Ditto.
3320         (*ashrdi3_cconly_rex64): Ditto.
3321         (*lshrdi3_cmp_rex64): Ditto.
3322         (*lshrdi3_cconly_rex64): Ditto.
3323         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
3324         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
3325         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
3326         gen_x86_shrd_1.
3328 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
3330         * gimplify.c (omp_is_private): Don't return true if decl is not
3331         already private on #pragma omp for or #pragma omp parallel for.
3333         PR debug/36617
3334         * tree-cfg.c (struct move_stmt_d): Replace block field with
3335         orig_block and new_block fields.
3336         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
3337         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
3338         (move_block_to_fn): Replace vars_map and new_label_map arguments
3339         with struct move_stmt_d pointer.
3340         (replace_block_vars_by_duplicates): New function.
3341         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
3342         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
3343         all subblocks of ORIG_BLOCK to the new function.  Call
3344         replace_block_vars_by_duplicates.
3345         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
3346         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
3347         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
3348         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
3349         (expand_omp): Temporarily set input_location to the location of
3350         region's controlling stmt.
3351         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
3352         BIND_EXPR, push ctx->block_vars and gimplification vars into
3353         the BIND_EXPR and its block's BLOCK_VARS instead of directly
3354         into dest function.
3355         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
3356         there are any BLOCK_VARS.
3357         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
3358         OMP_PARALLEL or OMP_TASK stmt.
3359         (lower_omp): Save and restore input_location around the lower_omp_1
3360         call.
3362 2008-06-27  Richard Guenther  <rguenther@suse.de>
3364         PR tree-optimization/36400
3365         PR tree-optimization/36373
3366         PR tree-optimization/36344
3367         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
3368         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
3369         (update_alias_info): Remove call clobbering code.
3370         (make_constraint_to): New helper function.
3371         (make_escape_constraint): Likewise.
3372         (handle_rhs_call): Use it on all pointer containing arguments.
3373         Also mark the static chain escaped.
3374         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
3375         instead of ANYTHING.
3376         (make_constraint_from): New helper split out from ...
3377         (make_constraint_from_anything): ... here.
3378         (find_func_aliases): Add constraints for escape sites.
3379         (intra_create_variable_infos): Make constraints from NONLOCAL
3380         for parameters.
3381         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
3382         as ANYTHING.
3383         (clobber_what_p_points_to): Remove.
3384         (clobber_what_escaped): New function.
3385         (init_base_vars): Init NONLOCAL and ESCAPED.
3386         (do_sd_constraint): Do not propagate the solution from ESCAPED
3387         but use ESCAPED as a placeholder.
3388         (solve_graph): Likewise.
3389         * tree-flow.h (clobber_what_p_points_to): Remove.
3390         (clobber_what_escaped): Declare.
3391         * tree-ssa-alias.c (set_initial_properties): Call it.
3392         Remove code clobbering escaped pointers.
3394 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3396         * function.c (allocate_struct_function): Only allocate a unique
3397         funcdef_no if the decl is nonzero.
3399 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
3401         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
3402         * config/mips/mips.c (mips_split_const_insns): New function.
3403         * config/mips/mips.md (move_type): New attribute.
3404         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
3405         (dword_mode): New attribute.
3406         (type): Avoid long line.  Map "move_type"s to "type"s,
3407         choosing "multi" for doubleword moves if appropriate.
3408         Swap MTC/MFC comments to match their declaration order.
3409         (extended_mips16): Default to "yes" if "move_type" is "sll0",
3410         "type" is "branch" or "jal" is "direct".
3411         (length): Handle "extended_mips16" first.  Make the default
3412         "0" for "ghost" instructions.  Set the length from "move_type".
3413         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
3414         of "type", with "sll0" for the register alternative.  Remove the
3415         "extended_mips16" attribute.
3416         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
3417         of "type", with "shift_shift" for the register alternative.
3418         Remove the "length" attribute.
3419         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
3420         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
3421         of "type", with "andi" for the register alternative.
3422         (*zero_extendqihi2): Likewise.
3423         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
3424         of "andi" instead of a "type" of "arith".
3425         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
3426         instead of "type".
3427         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
3428         (mov_<store>r, *mov<mode>_ra): Likewise.
3429         (extendsidi2): Use "move_type" instead of "type", with "move"
3430         for the register alternative.
3431         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
3432         of "type", with "signext" for the register alternative.
3433         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
3434         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
3435         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
3436         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
3437         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
3438         (unnamed branch insn): Likewise.
3439         (*movdi_gp32_fp64): Fold into...
3440         (*movdi_32bit): ...here.
3441         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
3442         (*movdf_hardfloat): ...this new pattern.
3443         (*movdf_softfloat): Remove redundant FPR alternatives.
3444         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
3445         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
3446         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
3447         the "move" attribute.
3448         (*movdi_32bit): Use "move_type" instead of "type" and remove the
3449         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
3450         and "store" for COP loads and stores.
3451         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
3452         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
3453         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
3454         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
3455         (*movtf_mips16, *movv2sf): Likewise.
3456         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
3457         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
3458         (mfhc1<mode>): Use "move_type" instead of "move".
3459         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
3460         (loadgp_blockage): Remove the "length" attribute.
3461         (blockage, set_got_version, update_got_version): Likewise.
3462         (call_internal): Remove the "extended_mips16" attribute.
3463         (call_value_internal, call_value_multiple_internal): Likewise.
3464         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
3465         instead of "move".
3466         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
3467         the "length" attribute.
3469 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3471         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
3472         -Wcast-qual warnings.
3473         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
3474         handle_pragma_pop_macro): Likewise.
3475         * collect2.c (resolve_lib_name): Likewise.
3476         * config/arc/arc.c (arc_init): Likewise.
3477         * config/arm/arm.c (neon_builtin_compare,
3478         locate_neon_builtin_icode): Likewise.
3479         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
3480         * config/bfin/bfin.c (bfin_init_machine_status,
3481         bfin_optimize_loop): Likewise.
3482         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
3483         * config/cris/cris.c (cris_init_expanders): Likewise.
3484         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
3485         * config/darwin.c (machopic_indirection_eq,
3486         machopic_indirection_name, machopic_output_indirection): Likewise.
3487         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
3488         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
3489         frv_optimize_membar): Likewise.
3490         * config/i386/cygwin.h (mingw_scan,
3491         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
3492         * config/i386/cygwin1.c (mingw_scan): Likewise.
3493         * config/i386/i386.c (machopic_output_stub): Likewise.
3494         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
3495         i386_pe_unique_section): Likewise.
3496         * config/ia64/ia64.c (ia64_init_machine_status,
3497         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
3498         Likewise.
3499         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
3500         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
3501         * config/m68k/m68k.c (m68k_handle_option,
3502         m68k_sched_md_init_global): Likewise.
3503         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
3504         mcore_unique_section): Likewise.
3505         * config/mips/mips.c (mips_block_move_straight,
3506         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
3507         Likewise.
3508         * config/mmix/mmix.c (mmix_init_machine_status,
3509         mmix_encode_section_info): Likewise.
3510         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
3511         * config/rs6000/rs6000.c (rs6000_init_machine_status,
3512         print_operand_address, output_toc, redefine_groups,
3513         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
3514         * config/s390/s390.c (s390_init_machine_status): Likewise.
3515         * config/score/score.c (score_block_move_straight,
3516         score_block_move_loop_body): Likewise.
3517         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
3518         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
3519         * emit-rtl.c (find_auto_inc): Likewise.
3520         * gcc.c (translate_options, process_command): Likewise.
3521         * reorg.c (dbr_schedule): Likewise.
3522         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
3523         * xcoffout.c (xcoffout_declare_function): Likewise.
3525 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
3527         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
3528         ipa-pta working again.
3530 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
3532         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
3533         genautomata.
3535 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
3537         * config.gcc (powerpc*-*-*): Add new core e500mc.
3538         * config/rs6000/e500mc.md: New file.
3539         * config/rs6000/rs6000.c (processor_costs): Add new costs for
3540         e500mc.
3541         (rs6000_override_options): Add e500mc case to
3542         processor_target_table. Altivec and Spe options not allowed
3543         with e500mc. Add isel instruction to e500mc by
3544         default. Initialize rs6000_cost for e500mc.
3545         (rs6000_issue_rate): Set issue rate for e500mc.
3546         * config/rs6000/rs6000.h (processor_type): Add
3547         PROCESSOR_PPCE500MC.
3548         (ASM_CPU_SPEC): Add e500mc.
3549         Set TARGET_ISEL to rs6000_isel.
3550         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
3551         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
3552         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
3553         Include e500mc.md.
3554         * doc/invoke.texi: Add e500mc to list of cpus.
3556 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3558         PR c/34867
3559         * c-lex.c (lex_charconst): Initialize unsignedp.
3561 2008-06-27  Olivier Hainque  <hainque@adacore.com>
3563         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
3564         documented assumptions.
3566 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
3568         * dwarf2out.c: Remove trailing white spaces.  Break long line
3569         in comments.
3571 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
3573         * libfuncs.h (LTI_synchronize): New libfunc_index.
3574         (synchronize_libfunc): Declare.
3575         * builtins.c (expand_builtin_synchronize): Consider using
3576         synchronize_libfunc before falling back on an asm blockage.
3577         * config/mips/mips.c: Include libfuncs.h
3578         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
3580 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
3582         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
3583         parameter.  Copy stack_reg to r11 where appropriate.
3584         (no_global_regs_above): Add gpr parameter.
3585         (rs6000_stack_info): Only add padding for SPE save area if we
3586         are saving SPE GPRs and CR.
3587         (saveres_routine_syms): New variable.
3588         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
3589         Define.
3590         (rs6000_savres_routine_sym): New function.
3591         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
3592         split out of...
3593         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
3594         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
3595         Tweak FPR out-of-line saving.
3596         (rs6000_make_savres_rtx): New function.
3597         (rs6000_use_multiple_p): New function.
3598         (rs6000_savres_strategy): New function.
3599         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
3600         out-of-line if appropriate.
3601         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
3602         if we are optimizing for size.
3603         (GP_SAVE_INLINE): Define.
3604         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
3605         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
3606         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
3607         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
3608         (*save_fpregs_<mode>): Add use of r11.
3609         (*restore_gpregs_<mode>): New insn.
3610         (*return_and_restore_gpregs_<mode>): New insn.
3611         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
3612         use r11.
3613         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
3614         (*restore_gpregs_spe): New insn.
3615         (*return_and_restore_gpregs_spe): New insn.
3616         * config/rs6000/predicates.md (save_world_operation): Fix check.
3618 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3620         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
3621         this point, so assert that.
3623 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
3625         * cfganal.c: Include vec.h and vecprim.h.
3626         (compute_idf): Import from...
3627         * tree-into-ssa (compute_idf): ...here.
3628         * basic-block.h (compute_idf): Export.
3630 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
3632         * c-decl.c (merge_decls): Use !current_function_decl to check for
3633         extern declaration of C99 inline function being at file scope.
3635 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
3637         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
3639 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3641         * alias.c (record_alias_subset, init_alias_analysis): Fix
3642         -Wc++-compat and/or -Wcast-qual warnings.
3643         * attribs.c (lookup_attribute_spec): Likewise.
3644         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
3645         copy_bb, connect_traces,
3646         find_rarely_executed_basic_blocks_and_cr): Likewise.
3647         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
3648         note_btr_set, migrate_btr_defs): Likewise.
3649         * builtins.c (result_vector, expand_builtin_memcpy,
3650         expand_builtin_mempcpy_args, expand_builtin_strncpy,
3651         builtin_memset_read_str, expand_builtin_printf,
3652         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
3653         Likewise.
3654         * caller-save.c (mark_set_regs): Likewise.
3655         * calls.c (expand_call, emit_library_call_value_1): Likewise.
3656         * cgraph.c (cgraph_edge): Likewise.
3657         * combine.c (likely_spilled_retval_1): Likewise.
3658         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
3659         htab_counts_entry_del, get_coverage_counts): Likewise.
3660         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
3661         new_cselib_val): Likewise.
3662         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
3663         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
3664         Likewise.
3665         * df-core.c (df_compact_blocks): Likewise.
3666         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
3667         * df-scan.c (df_grow_reg_info, df_ref_create,
3668         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
3669         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
3670         df_record_entry_block_defs, df_record_exit_block_uses,
3671         df_bb_verify): Likewise.
3672         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
3673         DF_REF_EXTRACT_MODE_CONST): New.
3674         * dominance.c (get_immediate_dominator, get_dominated_by,
3675         nearest_common_dominator, root_of_dom_tree,
3676         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
3677         -Wc++-compat and/or -Wcast-qual warnings.
3678         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
3679         record_store, replace_read, check_mem_read_rtx, scan_insn,
3680         dse_step1, dse_record_singleton_alias_set): Likewise.
3681         * dwarf2asm.c (dw2_force_const_mem): Likewise.
3683 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3685         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
3686         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
3687         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
3688         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
3689         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
3690         add_ranges_num, add_ranges_by_labels, file_info_cmp,
3691         file_name_acquire, output_file_names, add_const_value_attribute,
3692         premark_used_types_helper, file_table_eq, file_table_hash,
3693         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
3694         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
3695         -Wcast-qual warnings.
3696         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
3697         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
3698         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
3699         gen_reg_rtx, start_sequence, init_emit): Likewise.
3700         * et-forest.c (et_new_occ, et_new_tree): Likewise.
3701         * except.c (init_eh_for_function, gen_eh_region,
3702         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
3703         arh_to_landing_pad, arh_to_label, add_action_record,
3704         add_call_site, switch_to_exception_section): Likewise.
3705         * expmed.c (synth_mult): Likewise.
3706         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
3707         store_expr): Likewise.
3708         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
3709         Likewise.
3710         * function.c (assign_stack_temp_for_type,
3711         allocate_struct_function, match_asm_constraints_1): Likewise.
3712         * gcov-io.c (gcov_allocate): Likewise.
3713         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
3714         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
3715         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
3716         record_one_set, insert_expr_in_table, insert_set_in_table,
3717         dump_hash_table, compute_hash_table_work, alloc_hash_table,
3718         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
3719         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
3720         -Wcast-qual warnings.
3722 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3724         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
3725         -Wcast-qual warnings.
3726         * gcc.c (process_command): Likewise.
3727         * genattrtab.c (oballoc): Use XOBNEW.
3728         (oballocvec): Define.
3729         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
3730         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
3731         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
3732         -Wc++-compat and/or -Wcast-qual warnings.
3733         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
3734         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
3735         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
3736         gen_presence_absence_set, gen_automaton, gen_regexp_el,
3737         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
3738         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
3739         add_excls, process_presence_absence_names,
3740         process_presence_absence_patterns, add_presence_absence,
3741         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
3742         get_free_state, add_arc, get_free_automata_list_el,
3743         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
3744         transform_3, cache_presence, create_ainsns, create_automata,
3745         create_state_ainsn_table, dfa_insn_code_enlarge,
3746         output_trans_func, output_min_issue_delay_func,
3747         output_dead_lock_func, output_reset_func,
3748         output_get_cpu_unit_code_func, output_dfa_start_func,
3749         expand_automata): Likewise.
3750         * genextract.c (gen_insn): Likewise.
3751         * gengtype-lex.l: Likewise.
3752         * gengtype.c (read_input_list, adjust_field_type,
3753         process_gc_options): Likewise.
3754         * genoutput.c (note_constraint): Likewise.
3755         * genpreds.c (mangle, add_constraint): Likewise.
3756         * genrecog.c (process_define_predicate, new_decision,
3757         add_to_sequence): Likewise.
3758         * gensupport.c (record_insn_name): Likewise.
3760 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3762         * config/i386/driver-i386.c (detect_caches_amd,
3763         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
3764         and/or -Wcast-qual warnings.
3765         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
3766         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
3767         gt_pch_save): Likewise.
3768         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
3769         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
3770         * global.c (compute_regsets): Likewise.
3771         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
3772         finish_graph_dump_file): Likewise.
3773         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
3774         unlink_bb_notes): Likewise.
3775         * integrate.c (get_hard_reg_initial_val): Likewise.
3776         * ipa-prop.c (ipa_push_func_to_list): Likewise.
3777         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
3778         * local-alloc.c (update_equiv_regs): Likewise.
3779         * loop-invariant.c (check_invariant_table_size,
3780         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
3781         Likewise.
3782         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
3783         altered_reg_used, mark_altered): Likewise.
3784         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
3785         insert_var_expansion_initialization,
3786         combine_var_copies_in_loop_exit, apply_opt_in_copies,
3787         release_var_copies): Likewise.
3788         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
3789         analyze_matrix_decl, add_allocation_site, analyze_transpose,
3790         analyze_accesses_for_phi_node, check_var_notmodified_p,
3791         check_allocation_function, find_sites_in_func,
3792         record_all_accesses_in_func, transform_access_sites,
3793         transform_allocation_sites): Likewise.
3794         * omp-low.c (new_omp_region, create_omp_child_function_name,
3795         check_omp_nesting_restrictions, check_combined_parallel,
3796         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
3797         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
3798         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
3799         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
3800         Likewise.
3801         * opts-common.c (prune_options): Likewise.
3802         * opts.c (add_input_filename, print_filtered_help,
3803         get_option_state): Likewise.
3804         * params.c (add_params): Likewise.
3805         * passes.c (set_pass_for_id, next_pass_1,
3806         do_per_function_toporder, pass_fini_dump_file): Likewise.
3807         * postreload.c (reload_cse_simplify_operands): Likewise.
3808         * predict.c (tree_predicted_by_p, tree_predict_edge,
3809         clear_bb_predictions, combine_predictions_for_bb): Likewise.
3811 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3813         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
3814         warnings.
3815         * recog.c (check_asm_operands, validate_change_1): Likewise.
3816         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
3817         subst_asm_stack_regs): Likewise.
3818         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
3819         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
3820         * regmove.c (reg_is_remote_constant_p): Likewise.
3821         * regrename.c (regrename_optimize, scan_rtx_reg,
3822         kill_clobbered_value, kill_set_value, kill_autoinc_value):
3823         Likewise.
3824         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
3825         regstat_compute_calls_crossed): Likewise.
3826         * reload1.c (init_reload, new_insn_chain,
3827         has_nonexceptional_receiver, reload, copy_reloads,
3828         calculate_needs_all_insns, init_elim_table): Likewise.
3829         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
3830         * rtl.c (shallow_copy_rtx_stat): Likewise.
3831         * rtlanal.c (parms_set): Likewise.
3832         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
3833         sbitmap_resize, sbitmap_vector_alloc): Likewise.
3834         * sched-ebb.c (earliest_block_with_similiar_load,
3835         add_deps_for_risky_insns): Likewise.
3836         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
3837         schedule_region): Likewise.
3838         * see.c (eq_descriptor_pre_extension,
3839         hash_descriptor_pre_extension, hash_del_pre_extension,
3840         eq_descriptor_properties, hash_descriptor_properties,
3841         hash_del_properties, see_seek_pre_extension_expr,
3842         see_initialize_data_structures, see_print_register_properties,
3843         see_print_pre_extension_expr, see_delete_merged_def_extension,
3844         see_delete_unmerged_def_extension, see_emit_use_extension,
3845         see_pre_delete_extension, see_map_extension, see_commit_changes,
3846         see_analyze_merged_def_local_prop,
3847         see_analyze_merged_def_local_prop,
3848         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
3849         see_set_prop_merged_def, see_set_prop_unmerged_def,
3850         see_set_prop_unmerged_use, see_print_one_extension,
3851         see_merge_one_use_extension, see_merge_one_def_extension,
3852         see_store_reference_and_extension, see_update_uses_relevancy,
3853         see_update_defs_relevancy): Likewise.
3854         * statistics.c (hash_statistics_hash, hash_statistics_eq,
3855         hash_statistics_free, curr_statistics_hash): Likewise.
3856         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
3857         expand_asm_operands, expand_return, case_bit_test_cmp,
3858         expand_case): Likewise.
3859         * stor-layout.c (start_record_layout): Likewise.
3860         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
3861         gt_pch_save_stringpool): Likewise.
3862         * tree-data-ref.c (hash_stmt_vertex_info,
3863         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
3864         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
3866 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
3868         PR target/36627
3869         * config/i386/i386.md : Change constraints of HImode and QImode
3870         immediate operands from "i" to "n".  Change SImode "ni" constraint to
3871         "i" and SImode "rmi" constraint to "g".  Remove all constraints
3872         from const0_operand and const1_operand predicated operands.
3873         (i): Change QImode and HImode attribute from "i" to "n".
3874         (*subqi_2): Change HImode operands to QImode.
3875         (*subqi_3): Ditto.
3877 2008-06-25  Olivier Hainque  <hainque@adacore.com>
3879         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
3880         sed substitutions.
3882 2008-06-25  Richard Guenther  <rguenther@suse.de>
3884         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
3885         not overflow the result type.
3887 2008-06-25  Richard Guenther  <rguenther@suse.de>
3889         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
3890         (vn_lookup): Likewise.
3892 2008-06-25  Richard Guenther  <rguenther@suse.de>
3894         PR tree-optimization/35518
3895         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
3896         * tree-sra.c (instantiate_element): Use fold_build3 to build
3897         BIT_FIELD_REFs.
3898         (try_instantiate_multiple_fields): Likewise.
3900 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3902         * config/rs6000/rs6000.md: Change all string instruction's clobber to
3903         be early clobbers.
3905 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3907         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
3908         use_backchain_to_restore_sp to true
3909         if the offset of the link register save area would go over the 32k - 1
3910         offset limit of the load
3911         instructions.
3913 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
3915         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
3916         anchor for the type-punning blurb.  Cross-reference "Structures
3917         unions enumerations and bit-fields implementation".  Provide a
3918         cast-through-pointer example.  Make final sentence self-contained.
3919         * doc/implement-c.texi (Structures unions enumerations and
3920         bit-fields implementation): Cross-reference the type-punning blurb
3921         in the -fstrict-aliasing documentation.
3923 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3925         PR middle-end/36594
3926         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
3927         the memory instead of the memory itself for the save area.
3929 2008-06-24  Olivier Hainque  <hainque@adacore.com>
3930             Nicolas Roche  <roche@adacore.com>
3932         * gengtype.c (srcdir_len): size_t instead of int.
3933         (get_file_realbasename): New function.  For F a filename, the real
3934         basename of F, with all the path components stripped.
3935         (get_file_srcdir_relative_path): New function.  For F a filename, the
3936         relative path to F from $(srcdir).
3937         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
3938         get_file_realbasename.  Adjust the head comment.
3939         (get_prefix_langdir_index): New function. For F a filename, return the
3940         lang_dir_names[] relative index of the language directory that is
3941         a prefix in F.
3942         (get_file_langdir): For F a filename, return the name of the language
3943         directory where F is located.
3944         (get_file_gtfilename): New function. The gt- output file name for an
3945         input filename F.
3946         (get_output_file_with_visibility): Replace in-line computations with
3947         uses of get_file_gtfilename and get_prefix_langdir_index.
3948         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
3950 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
3952         PR tree-optimization/36504
3953         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
3954         references without base address.
3956 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3958         PR middle-end/36584
3959         * calls.c (expand_call): Increase alignment for recursive functions.
3961 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
3963         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
3964         (TARGET_FUNCTION_VALUE): New define.
3965         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
3966         * config/avr/avr.h (FUNCTION_VALUE): Remove.
3968 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3970         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
3971         (fmod<mode>3): Ditto.
3972         (remainderxf3): Ditto.
3973         (remainder<mode>3): Ditto.
3975 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
3977         PR target/36533
3978         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
3979         REG is a hard register.
3981         PR tree-optimization/36508
3982         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
3983         499, don't check it at all in release compilers.
3985 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
3987         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
3988         together with SSE_TARGET_MATH to disable insn pattern.
3989         (*fop_<MODEF:mode>_2_i387): Ditto.
3990         (*fop_<MODEF:mode>_3_i387): Ditto.
3992 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
3994         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
3996 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3998         PR middle-end/34906
3999         * gimplify.c (gimplify_asm_expr): Check the return code of
4000         parse_output_constraint call, set function return and is_inout
4001         value if it failed.
4003 2008-06-22  Ian Lance Taylor  <iant@google.com>
4005         * c-lex.c (narrowest_unsigned_type): Change itk to int.
4006         (narrowest_signed_type): Likewise.
4007         * c-typeck.c (c_common_type): Change local variable mclass to enum
4008         mode_class, twice.
4009         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
4010         tcc_comparison, not the tree code itself.
4011         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
4012         (c_expand_expr): Cast modifier to enum expand_modifier.
4013         * c-common.h (C_RID_CODE): Add casts.
4014         (C_SET_RID_CODE): Define.
4015         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
4016         (c_lex_one_token): Add cast to avoid warning.
4017         (c_parser_objc_type_name): Rename local typename to type_name.
4018         (check_no_duplicate_clause): Change code parameter to enum
4019         omp_clause_code.
4020         (c_parser_omp_var_list_parens): Change kind parameter to enum
4021         omp_clause_code.
4022         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
4023         c_parser_omp_list_var_parens.
4024         (c_parser_omp_threadprivate): Likewise.
4025         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
4026         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
4027         * c-format.c (NO_FMT): Define.
4028         (printf_length_specs): Use NO_FMT.
4029         (asm_fprintf_length_specs): Likewise.
4030         (gcc_diag_length_specs): Likewise.
4031         (scanf_length_specs): Likewise.
4032         (strfmon_length_specs): Likewise.
4033         (gcc_gfc_length_specs): Likewise.
4034         (printf_flag_specs): Change 0 to STD_C89.
4035         (asm_fprintf_flag_specs): Likewise.
4036         (gcc_diag_flag_specs): Likewise.
4037         (gcc_cxxdiag_flag_specs): Likewise.
4038         (scanf_flag_specs): Likewise.
4039         (strftime_flag_specs): Likewise.
4040         (strfmon_flag_specs): Likewise.
4041         (print_char_table): Likewise.
4042         (asm_fprintf_char_table): Likewise.
4043         (gcc_diag_char_table): Likewise.
4044         (gcc_tdiag_char_table): Likewise.
4045         (gcc_cdiag_char_table): Likewise.
4046         (gcc_cxxdiag_char_table): Likewise.
4047         (gcc_gfc_char_table): Likewise.
4048         (scan_char_table): Likewise.
4049         (time_char_table): Likewis.
4050         (monetary_char_table): Likewise.
4051         * c-format.h (BADLEN): Likewise.
4053 2008-06-21  Ian Lance Taylor  <iant@google.com>
4055         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
4056         Define END_OF_BASE_TREE_CODES around inclusion.
4057         * tree.c (tree_code_type): New global array.
4058         (tree_code_length, tree_code_name): Likewise.
4059         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
4060         $(lang_tree_files).
4061         (all-tree.def, s-alltree): New targets.
4062         (gencheck.h, s-gencheck): Remove.
4063         (tree.o): Depend upon all-tree.def.
4064         (build/gencheck.o): Remove gencheck.h dependency.
4065         (mostlyclean): Don't remove gencheck.h.
4066         * c-common.h (enum c_tree_code): Remove.
4067         * c-lang.c (tree_code_type): Remove.
4068         (tree_code_length, tree_code_name): Remove.
4069         * gencheck.c (tree_codes): Include all-tree.def, rather than
4070         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
4071         after it is used.
4072         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
4073         than tree.def.
4074         * cp/cp-tree.h (enum cplus_tree_code): Remove.
4075         (operator_name_info): Size to MAX_TREE_CODES.
4076         (assignment_operator_name_info): Likewise.
4077         * cp/cp-lang.c (tree_code_type): Remove.
4078         (tree_code_length, tree_code_name): Remove.
4079         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
4080         (assignment_operator_name_info): Likewise.
4081         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
4082         MAX_TREE_CODES.
4083         * cp/mangle.c (write_expression): Likewise.
4084         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
4085         * fortran/f95-lang.c (tree_code_type): Remove.
4086         (tree_code_length, tree_code_name): Remove.
4087         * java/java-tree.h (enum java_tree_code): Remove.
4088         * java/lang.c (tree_code_type): Remove.
4089         (tree_code_length, tree_code_name): Remove.
4090         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
4091         * objc/objc-act.h (enum objc_tree_code): Remove.
4092         * objc/objc-lang.c (tree_code_type): Remove.
4093         (tree_code_length, tree_code_name): Remove.
4094         * objcp/objcp-lang.c (tree_code_type): Remove.
4095         (tree_code_length, tree_code_name): Remove.
4096         * ada/ada-tree.h (enum gnat_tree_code): Remove.
4097         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
4098         * ada/misc.c (tree_code_type): Remove.
4099         (tree_code_length, tree_code_name): Remove.
4101 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
4103         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
4104         the grand_bitmap_obstack.
4106 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4108         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
4109         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
4110         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
4111         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
4112         move_stmt_r, new_label_mapper): Likewise.
4113         * tree-complex.c (cvc_lookup): Likewise.
4114         * tree-dfa.c (create_function_ann): Likewise.
4115         * tree-dump.c (dump_register): Likewise.
4116         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
4117         find_phi_replacement_condition): Likewise.
4118         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
4119         tree_function_versioning): Likewise.
4120         * tree-into-ssa.c (cmp_dfsnum): Likewise.
4121         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
4122         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
4123         get_nonlocal_debug_decl, convert_nonlocal_reference,
4124         convert_nonlocal_omp_clauses, get_local_debug_decl,
4125         convert_local_reference, convert_local_omp_clauses,
4126         convert_nl_goto_reference, convert_nl_goto_receiver,
4127         convert_tramp_reference, convert_call_expr): Likewise.
4128         * tree-outof-ssa.c (contains_tree_r): Likewise.
4129         * tree-parloops.c (reduction_phi, initialize_reductions,
4130         eliminate_local_variables_1, add_field_for_reduction,
4131         add_field_for_name, create_phi_for_local_result,
4132         create_call_for_reduction_1, create_loads_for_reductions,
4133         create_stores_for_reduction, create_loads_and_stores_for_name):
4134         Likewise.
4135         * tree-phinodes.c (allocate_phi_node): Likewise.
4136         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
4137         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
4138         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
4139         * tree-ssa-coalesce.c (compare_pairs): Likewise.
4140         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
4141         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
4142         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
4143         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
4144         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
4145         vn_nary_op_insert): Likewise.
4146         * tree-ssa.c (redirect_edge_var_map_add,
4147         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
4148         * tree-vectorizer.c (vectorize_loops): Likewise.
4149         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
4150         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
4151         tree_cons_stat, build1_stat, build_variant_type_copy,
4152         decl_init_priority_lookup, decl_fini_priority_lookup,
4153         decl_priority_info, decl_restrict_base_lookup,
4154         decl_restrict_base_insert, decl_debug_expr_lookup,
4155         decl_debug_expr_insert, decl_value_expr_lookup,
4156         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
4157         type_hash_add, get_file_function_name, tree_check_failed,
4158         tree_not_check_failed, tree_range_check_failed,
4159         omp_clause_range_check_failed, build_omp_clause,
4160         build_vl_exp_stat): Likewise.
4161         * value-prof.c (gimple_histogram_value,
4162         gimple_duplicate_stmt_histograms): Likewise.
4163         * var-tracking.c (attrs_list_insert, attrs_list_copy,
4164         unshare_variable, variable_union_info_cmp_pos, variable_union,
4165         dataflow_set_different_1, dataflow_set_different_2,
4166         vt_find_locations, variable_was_changed, set_variable_part,
4167         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
4168         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
4169         section_entry_hash, object_block_entry_eq,
4170         object_block_entry_hash, create_block_symbol,
4171         initialize_cold_section_name, default_function_rodata_section,
4172         strip_reg_name, set_user_assembler_name, const_desc_eq,
4173         build_constant_desc, output_constant_def, lookup_constant_def,
4174         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
4175         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
4176         default_internal_label): Likewise.
4177         * varray.c (varray_init, varray_grow): Likewise.
4178         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
4180 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
4182         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
4183         operators for "test" insn.  Macroize insn using SWI mode macro.
4184         (*jcc_fused_2): Ditto.
4185         (*jcc_fused_3): Macroize insn using SWI mode macro.
4186         (*jcc_fused_4): Ditto.
4188 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
4190         * tree-ssa-pre.c: Fix typo in comment.
4191         (init_antic, fini_antic): Add explicit funtions for
4192         initializing and deinitializing ANTIC and AVAIL sets.
4193         (create_expression_by_pieces): Fix typo in comment.
4194         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
4195         (execute_pre): Eventually dump details about ANTIC_IN.
4197 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4199         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
4200         * gcc.c (translate_options, init_spec, store_arg, read_specs,
4201         add_to_obstack, file_at_path, find_a_file, execute,
4202         add_preprocessor_option, add_assembler_option, add_linker_option,
4203         process_command, insert_wrapper, do_option_spec, do_self_spec,
4204         spec_path, do_spec_1, is_directory, main, used_arg,
4205         getenv_spec_function): Likewise.
4206         * tlink.c (symbol_hash_lookup, file_hash_lookup,
4207         demangled_hash_lookup, symbol_push, file_push, frob_extension):
4208         Likewise.
4210 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
4212         * doc/rtl.texi: Updated subreg section.
4214 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
4216         PR c++/36523
4217         * cgraphunit.c (cgraph_process_new_functions): Don't clear
4218         node->needed and node->reachable.
4219         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
4220         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
4221         (expand_task_call): Don't call expand_task_copyfn.
4222         (expand_task_copyfn): Renamed to...
4223         (finalize_task_copyfn): ... this.
4225 2008-06-19  Jan Hubicka  <jh@suse.cz>
4227         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
4228         clobbering framepointer.
4230 2008-06-19  Jan Hubicka  <jh@suse.cz>
4232         * tree-optimize.c (execute_early_local_optimizations): Set
4233         cgraph_state only at first invocation.
4235 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4237         * system.h (-Wc++-compat): Activate as a warning, no an error.
4239 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4241         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
4242         instead of "#" in insn asm template.
4243         (*jcc_fused_2): Ditto.
4245 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
4247         * config/i386/i386.h (ix86_tune_indices)
4248         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
4249         (TARGET_FUSE_CMP_AND_BRANCH): New define.
4250         * config/i386/i386.md (*jcc_fused_1): New insn pattern
4251         (*jcc_fused_2): Ditto.
4252         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
4253         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
4254         (print operand): Handle 'E' and 'e' code.
4256 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
4258         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
4259         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
4260         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
4262 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
4264         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
4265         node->decl.
4266         (cgraph_expand_function): Use local copy of decl.
4267         (cgraph_expand_all_functions): Remove redundant initialization of
4268         order_pos.
4269         (cgraph_optimize): Reword internal_error message.
4271 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
4273         * arm-protos.h (arm_return_in_memory): Remove public
4274         arm_return_in_memory() prototype.
4275         * arm.c (arm_return_in_memory): Add static prototype, add target
4276         hook macro, change definition and comments.
4277         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
4279 2008-06-19  Ben Elliston  <bje@au.ibm.com>
4281         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
4282         real.c: Remove references to IEEE 754R.
4283         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
4284         * doc/libgcc.texi (Decimal float library routines): Likewise.
4286 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4288         * targhooks.h (struct gcc_target): New member unwind_word_mode.
4289         (default_unwind_word_mode): Add prototype.
4290         * targhooks.c (default_unwind_word_mode): New function.
4291         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
4292         instead of word_mode.
4293         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
4294         (TARGET_INITIALIZER): Use it.
4296         * c-common.c (handle_mode_attribute): Support "unwind_word"
4297         mode attribute.
4298         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
4300         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
4301         word_mode to access SjLj_Function_Context member "data".
4302         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
4303         conversion from targetm.eh_return_filter_mode () to
4304         targetm.unwind_word_mode () if they differ.
4306         * builtin-types.def (BT_UNWINDWORD): New primitive type.
4307         (BT_FN_UNWINDWORD_PTR): New function type.
4308         (BT_FN_WORD_PTR): Remove.
4309         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
4310         * except.c (expand_builtin_extend_pointer): Convert pointer to
4311         targetm.unwind_word_mode () instead of word_mode.
4313         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
4314         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
4315         (spu_unwind_word_mode): New function.
4316         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
4317         (TARGET_UNWIND_WORD_MODE): Define.
4318         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
4320 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4322         * config/spu/spu.c (reg_align): Remove.
4323         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
4324         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
4325         (spu_split_store): Likewise.
4327 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
4329         * gcc/tree-vn.c: Fix typo in comment.
4331 2008-06-18  Jan Hubicka  <jh@suse.cz>
4333         * cgraphunit.c (cgraph_optimize): Output debug info when doing
4334         toplevel reorder too.
4336 2008-06-18  Jan Hubicka  <jh@suse.cz>
4338         * c-opts.c (c_common_post_options): PCH is not compatible with
4339         no-unit-at-a-time.
4340         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
4341         -fno-toplevel-reorder by default now.
4343 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4345         PR documentation/30739
4346         * doc/install.texi (Prerequisites): Document dependency on awk.
4348 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
4349             Ian Lance Taylor  <iant@google.com>
4351         PR rtl-optimization/35604
4352         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
4353         only want to change jump destinations, not eventual label comparisons.
4355 2008-06-16  Jan Hubicka  <jh@suse.cz>
4357         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
4358         syntax errors.
4359         (cgraph_analyze_function): Likewise.
4361 2008-06-16  Jan Hubicka  <jh@suse.cz>
4363         * cgraph.h (cgraph_mark_if_needed): New function.
4364         * cgraphunit.c (cgraph_mark_if_needed): New function.
4365         * c-decl.c (duplicate_decl): Use it.
4367 2008-06-16  Jan Hubicka  <jh@suse.cz>
4369         * cgraph.c (cgraph_add_new_function): When in expansion state, do
4370         lowering.
4372 2008-06-16  Jan Hubicka  <jh@suse.cz>
4374         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
4376 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
4377             Kazu Hirata  <kazu@codesourcery.com>
4378             Maxim Kuvyrkov  <maxim@codesourcery.com
4380         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
4381         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
4382         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
4383         EXTRA_SPEC_FUNCTIONS.
4384         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
4385         (DRIVER_SELF_SPECS): Adjust.
4386         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
4387         * config/mips/st.h, config/mips/t-st: New.
4388         * config/mips/driver-native.c, config/mips/x-native: New.
4389         * doc/invoke.texi (MIPS): Document 'native' value for -march and
4390         -mtune options.
4392 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4394         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
4395         from it.
4396         (ISA_HAS_FP_CONDMOVE): New macro.
4397         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
4398         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
4399         (ISA_HAS_NMADD3_NMSUB3): New macro.
4400         * config/mips/mips.c (mips_rtx_costs): Update.
4401         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
4402         compiling for ST Loongson 2E/2F.
4403         (madd<mode>): Rename to madd4<mode>.  Update.
4404         (madd3<mode>): New pattern.
4405         (msub<mode>): Rename to msub4<mode>.  Update.
4406         (msub3<mode>): New pattern.
4407         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
4408         (nmadd3<mode>): New pattern.
4409         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
4410         (nmadd3<mode>_fastmath): New pattern.
4411         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
4412         (nmsub3<mode>): New pattern.
4413         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
4414         (nmsub3<mode>_fastmath): New pattern.
4415         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
4417 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
4419         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
4420         (DF_REF_INSN_INFO): New.
4421         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
4422         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
4423         with a NULL DF_REF_INSN_INFO.
4424         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
4425         DF_INSN_SET.
4426         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
4427         DF_INSN_INFO_EQ_USES): New.
4428         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
4429         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
4430         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
4431         * df-core.c: Update comment for above changes.
4432         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
4433         DF_INSN_UID_* macros.
4434         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
4435         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
4436         insn rtx.  Update all callers.
4437         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
4438         df_ref_create_structure, df_insn_refs_collect): Likewise.
4439         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
4440         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
4441         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
4442         macros to access the insn refs.
4443         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
4444         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
4445         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
4446         for accessing the refs.
4447         (try_fwprop_subst): Likewise.
4448         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
4449         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
4450         for accessing the refs.
4451         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
4452         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
4453         to look at the insn refs.
4454         (record_uses): Likewise.
4455         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
4456         function anymore.
4457         (mark_artificial_uses): Don't mark_insn for artificial refs.
4458         (mark_reg_rependencies): Likewise.
4460         * doc/rtl.texi: Remove documentation of ADDRESSOF.
4462 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4464         * configure: Regenerate.
4466 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4468         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
4469         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4470         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4472 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4474         * config/avr/avr.c (avr_mcu_t): Add attiny167.
4475         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4476         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4478 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
4480         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
4481         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4482         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4484 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4486         * tree-ssa-sccvn.c: Fix format of comments.
4488 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
4490         * cgraph.c: Remove unneeded forward declarations of eq_node()
4491         and hash_node().
4493 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
4495         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
4496         REG_RETVAL notes.
4497         (see_update_relevancy): Likewise.
4498         * fwprop.c (try_fwprop_subst): Likewise.
4499         * rtlanal.c (noop_move_p): Likewise.
4500         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
4501         notes to non-existing libcall blocks.
4502         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
4503         Remove orig_set.
4504         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
4505         (dead_libcall_p): Remove.
4506         (delete_trivially_dead_insns): Don't use it.
4507         * web.c (union_defs): Remove comment about keeping nops.
4508         * gcse.c (hash_scan_insn): Don't take libcall pointers.
4509         (compute_hash_table_work): Don't track libcall notes.
4510         (do_local_cprop): Don't take libcall pointers.  Don't update
4511         libcall notes.
4512         (adjust_libcall_notes): Deleted.
4513         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
4514         ever have existed in the first place).
4515         (replace_store_insn): Don't try to remove libcall notes.
4516         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
4517         (resolve_reg_notes): Don't call them.
4518         (resolve_simple_move): Likewise.
4519         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
4520         Don't remove REG_RETVAL notes.
4521         * emit-rtl.c (try_split): Don't update libcall notes.
4522         (emit_copy_of_insn_after): Dito.
4523         * cselib.c (cselib_current_insn_in_libcall): Remove.
4524         (cselib_process_insn): Don't set/clear it.
4525         (new_elt_loc_list): Don't record it.
4526         (cselib_init): Don't initialize it.
4527         * cselib.c (struct elt_loc_list): Remove in_libcall field.
4528         * loop-invariant.c (find_invariant_insn): Don't look for libcall
4529         notes.
4530         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
4531         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
4532         (init_deps): Don't initialize it.
4533         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
4534         * combine.c (delete_noop_moves): Don't update libcall notes.
4535         (can_combine_p): Remove now pointless #if 0 block.
4536         (try_combine): Remove another obsolete #if 0 block.
4537         (distribute_notes): Don't distribute libcall notes.
4538         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
4539         * dce.c (libcall_dead_p): Remove.
4540         (delete_unmarked_insns): Don't handle libcall blocks.
4541         (preserve_libcall_for_dce): Remove.
4542         (prescan_insns_for_dce): Don't special-case libcall block insns.
4543         * reload1 (reload): Don't handle libcall notes.
4544         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
4545         documentation.
4547 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4549         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
4550         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4551         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4553 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
4555         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
4556         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
4557         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
4559 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4561         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
4563 2008-06-16  Ira Rosen  <irar@il.ibm.com>
4565         PR tree-optimization/36493
4566         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
4567         the arguments list. Use VECTYPE to create vector pointer.
4568         (vectorizable_store): Fail if accesses through a pointer to vectype
4569         do not alias the original memory reference operands.
4570         Call vect_create_data_ref_ptr without the removed argument.
4571         (vectorizable_load): Likewise.
4572         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
4573         removed argument.
4575 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
4577         PR target/36336
4578         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for
4579         reg_equiv_constant.
4581 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
4583         * config/mips/loongson2ef.md: New file.
4584         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
4585         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
4586         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
4587         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
4588         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
4589         and loongson_2f.
4590         (loongson2ef.md): New include.
4591         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
4592         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
4593         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
4594         (loongson_gt_<mode>, loongson_extract_halfword)
4595         (loongson_insert_halfword_0, loongson_insert_halfword_2)
4596         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
4597         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
4598         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
4599         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
4600         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
4601         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
4602         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
4603         (vec_interleave_low<mode>): Define type attribute.
4604         * config/mips/mips.c (mips_ls2): New static variable.
4605         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
4606         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
4607         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
4608         Implement target scheduling hooks.
4609         (mips_multipass_dfa_lookahead): Update to handle tuning for
4610         Loongson 2E/2F.
4611         (mips_sched_init): Initialize data for Loongson scheduling.
4612         (mips_ls2_variable_issue): New static function.
4613         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
4614         Add sanity check.
4615         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
4616         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
4617         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
4618         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
4619         Handle ST Loongson 2E/2F cores.
4620         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
4622 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4624         * omp-low.c (extract_omp_for_data): Fix comment typo.
4625         * c.opt: Fix typo.
4627 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4629         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
4630         FIXME note about gcc/config.guess.
4631         * doc/options.texi (Option file format): Remove non-ASCII bytes.
4632         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
4633         * doc/cppopts.texi: Likewise.
4634         * doc/extend.texi: Likewise.
4635         * doc/gcc.texi: Likewise.
4636         * doc/gccint.texi: Likewise.
4637         * doc/gcov.texi: Likewise.
4638         * doc/gty.texi: Likewise.
4639         * doc/hostconfig.texi: Likewise.
4640         * doc/install.texi: Likewise.
4641         * doc/invoke.texi: Likewise.
4642         * doc/loop.texi: Likewise.
4643         * doc/makefile.texi: Likewise.
4644         * doc/md.texi: Likewise.
4645         * doc/passes.texi: Likewise.
4646         * doc/tm.texi: Likewise.
4647         * doc/tree-ssa.texi: Likewise.
4648         * doc/trouble.texi: Likewise.
4650 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
4651             Nathan Sidwell  <nathan@codesourcery.com>
4652             Maxim Kuvyrkov  <maxim@codesourcery.com>
4653             Richard Sandiford  <rdsandiford@googlemail.com>
4655         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
4656         * config/mips/mips-protos.h (mips_expand_vector_init): New.
4657         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
4658         builtins.
4659         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
4660         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
4661         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
4662         V8QImode cases.
4663         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
4664         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
4665         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
4666         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
4667         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
4668         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
4669         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
4670         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
4671         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
4672         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
4673         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
4674         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
4675         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
4676         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
4677         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
4678         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
4679         (mips_builtins): Add Loongson builtins.
4680         (mips_loongson_2ef_bdesc): New.
4681         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
4682         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
4683         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
4684         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
4685         New.
4686         (mips_expand_vector_init): New.
4687         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
4688         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
4689         if appropriate.
4690         * config/mips/mips.md: Add unspec numbers for Loongson
4691         builtins.  Include loongson.md.
4692         (MOVE64): Include Loongson vector modes.
4693         (SPLITF): Include Loongson vector modes.
4694         (HALFMODE): Handle Loongson vector modes.
4695         * config/mips/loongson.md: New.
4696         * config/mips/loongson.h: New.
4697         * config.gcc: Add loongson.h header for mips*-*-* targets.
4698         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
4700 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
4702         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
4703         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
4704         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
4705         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
4706         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
4707         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
4708         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
4709         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
4710         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
4711         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
4712         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
4713         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
4714         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
4715         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
4716         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
4717         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
4718         Remove use_fixproto=yes.
4719         (ia64*-*-hpux*): Remove comment about using fixproto.
4720         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
4722 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4724         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
4725         library rebuilds.
4726         * configure: Regenerate.
4728 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
4730         PR middle-end/36520
4731         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
4732         before evaluating it.
4734 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
4736         PR c/36507
4737         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
4738         nested inline functions.
4739         (start_decl, start_function): Don't invert DECL_EXTERNAL
4740         for nested inline functions.
4742 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4744         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
4745         splits that must be made for correctness.
4747 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
4749         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
4750         (AVAIL_NON_MIPS16): Likewise.
4751         (mips_builtin_description): Replace target_flags with a predicate.
4752         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
4753         (dspr2_32): New availability predicates.
4754         (MIPS_BUILTIN): New macro.
4755         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
4756         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
4757         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
4758         Replace the TARGET_FLAGS parameters with AVAIL parameters.
4759         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
4760         (mips_dsp_32only_bdesc): Merge into...
4761         (mips_builtins): ...this new array.
4762         (mips_bdesc_map, mips_bdesc_arrays): Delete.
4763         (mips_init_builtins): Update after above changes.
4764         (mips_expand_builtin_1): Merge into...
4765         (mips_expand_builtin): ...here and update after above changes.
4767 2008-06-12  Paul Brook  <paul@codesourcery.com>
4769         * longlong.h (__arm__): Define count_leading_zeros.
4770         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
4771         (clzsi2, clzdi2): New functions.
4772         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
4773         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
4774         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
4775         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
4776         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
4777         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
4778         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
4779         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
4780         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
4781         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
4783 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
4785         * config/m68k/m68k.c (m68k_tune_flags): New.
4786         (override_options): Compute m68k_tune_flags.
4787         (MULL_COST, MULW_COST): Update for various variants of CFV2.
4788         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
4790 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4792         PR middle-end/36506
4793         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
4795 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4797         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
4798         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
4800 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
4802         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
4803         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
4805 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
4807         PR middle-end/36506
4808         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
4809         reductions.
4811 2008-06-12  Richard Guenther  <rguenther@suse.de>
4813         PR tree-optimization/36345
4814         * tree-flow.h (struct ptr_info_def): Align escape_mask,
4815         add memory_tag_needed flag.
4816         (may_alias_p): Declare.
4817         * tree-ssa-alias.c (may_alias_p): Export.
4818         (set_initial_properties): Use memory_tag_needed flag.
4819         (update_reference_counts): Likewise.
4820         (reset_alias_info): Reset memory_tag_needed flag.
4821         (create_name_tags): Check memory_tag_needed flag.
4822         (dump_points_to_info_for): Dump it.
4823         * tree-ssa-structalias.c (struct variable_info): Remove
4824         directly_dereferenced flag.
4825         (new_var_info): Do not initialize it.
4826         (process_constraint_1): Do not set it.
4827         (update_alias_info): Set is_dereferenced flag.
4828         (set_uids_in_ptset): Use may_alias_p.
4829         (set_used_smts): Check memory_tag_needed flag.
4830         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
4831         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
4832         memory_tag_needed flag.
4833         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
4834         from broken design.
4836 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
4838         * config/i386/i386.c (ix86_compute_frame_layout): Disable
4839         red zone for w64 abi.
4840         (ix86_expand_prologue): Likewise.
4841         (ix86_force_to_memory): Likewise.
4842         (ix86_free_from_memory): Likewise.
4844 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
4846         PR target/36425
4847         * config/rs6000/rs6000.c (rs6000_override_options): Set
4848         rs6000_isel conditionally to the absence of comand line override.
4849         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
4850         Remove duplicate rs6000_isel setting.
4851         * config/rs6000/eabispe.h: Ditto.
4853 2008-06-11  Richard Guenther  <rguenther@suse.de>
4855         * alias.c (get_alias_set): Use the element alias-set for arrays.
4856         (record_component_aliases): For arrays and vectors do nothing.
4857         * c-common.c (strict_aliasing_warning): Handle the cases
4858         of alias set zero explicitly.
4859         * Makefile.in (dfp.o-warn): Add -Wno-error.
4861 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4863         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
4864         tune_32 tune_64.
4865         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
4866         tune_32 tune_64 to supported_defaults.  Allow values not
4867         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
4868         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
4869         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
4870         with_cpu_64 to generic for 64-bit-supporting configurations, not
4871         with_cpu.  Remove FIXMEs.
4872         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
4873         --with-arch-64, --with-tune-32, --with-tune-64): Document.
4874         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
4875         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
4876         arch_32 and arch_64.
4878 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
4879             Olivier Hainque  <hainque@adacore.com>
4881         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
4882         Use DECL_SIZE_UNIT to retrieve the size of the field.
4884 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
4886         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
4887         with function calls after declarations.  Lay out
4888         neon_float_type_node before further use.
4890 2008-06-11  Richard Guenther  <rguenther@suse.de>
4892         * tree-flow.h (may_point_to_global_var): Declare.
4893         * tree-ssa-alias.c (may_point_to_global_var): New function.
4894         * tree-ssa-sink.c (is_hidden_global_store): Use it.
4896 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
4898         * configure.ac: Teach that fido supports .debug_line.
4899         * configure: Regenerate.
4901 2008-06-10  Tom Tromey  <tromey@redhat.com>
4903         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
4904         debug hook.
4906 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4908         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
4909         (encode_decimal64, decode_decimal64, encode_decimal128,
4910         decode_decimal128): Reverse order of 32-bit parts of value if host
4911         and target endianness differ.
4913 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
4915         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
4916         Avoid division by 0.
4917         (tree_mod_pow2_value_transform): Likewise.
4918         (tree_ic_transform): Likewise.
4919         (tree_stringops_transform): Likewise.
4920         (tree_mod_subtract_transform): Likewise.
4921         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
4922         (copy_edges_for_bb): Likewise.
4923         (initialize_cfun): Likewise.
4925 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4927         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
4928         nonmemory_operand. Add "N" operand constraint.
4929         (*btsi): Ditto.
4930         (*jcc_btdi_mask_rex64): New instruction and split pattern.
4931         (*jcc_btsi_mask): Ditto.
4932         (*jcc_btsi_mask_1): Ditto.
4934 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
4936         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
4937         TYPE_CANONICAL for copied element type.
4939 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
4941         PR target/36473
4942         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
4943         Add m_CORE2 and m_GENERIC.
4944         * config/i386/predicates.md (bt_comparison_operator): New predicate.
4945         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
4946         (*btsi): Ditto.
4947         (*jcc_btdi_rex64): New instruction and split pattern.
4948         (*jcc_btsi): Ditto.
4949         (*jcc_btsi_1): Ditto.
4950         (*btsq): Fix Intel asm dialect operand order.
4951         (*btrq): Ditto.
4952         (*btcq): Ditto.
4954 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
4956         PR middle-end/36447
4957         * simplify-rtx.c (simplify_subreg): Add check for shift count
4958         greater than size.
4960 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
4962         * doc/md.texi: Synchronize with later constraints.md change.
4963         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
4964         with a C implementation.
4965         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
4966         MFLO handling.
4967         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
4968         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
4969         when moving to and from MD_REGNUM.
4970         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
4971         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
4972         Handle byte and halfword moves.
4973         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
4974         separately.
4975         * config/mips/constraints.md (h): Turn into NO_REGS.
4976         (l, x): Update documentation.
4977         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
4978         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
4979         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
4980         (HILO): New mode iterator.
4981         (MOVE128): Add TI.
4982         (any_div): New code iterator.
4983         (u): Extend code attribute to div and udiv.
4984         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
4985         d_operand in the splitters.  Remove redundant CONST_INT checks.
4986         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
4987         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
4988         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
4989         accordingly, using normal moves instead of unspecs to move LO into
4990         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
4991         (<u>mulsidi3): Handle expansion in C code.
4992         (<u>mulsidi3_32bit_internal): Rename to...
4993         (<u>mulsidi3_32bit): ...this.
4994         (<u>mulsidi3_32bit_r4000): Fix insn separator.
4995         (*<u>mulsidi3_64bit): Rename to...
4996         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
4997         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
4998         to set LO and HI to the multiplication result.  Use a normal move
4999         for MFLO and an unspec for MFHI.
5000         (*<u>mulsidi3_64bit_parts): Replace with...
5001         (<u>mulsidi3_64bit_hilo): ...this new instruction.
5002         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
5003         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
5004         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
5005         instead of HI.  Split the instruction into a separate multiplication
5006         and MFHI if !TARGET_FIX_R4000.
5007         (<su>muldi3_highpart): Likewise.
5008         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
5009         and the "=h" clobber.
5010         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
5011         (<u>mulditi3): New expander.
5012         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
5013         (madsi): Remove "=h" clobber.
5014         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
5015         Force the modulus result to be a GPR and split the instruction into
5016         a division followed by an MFHI after reload.
5017         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
5018         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
5019         the MIPS16 HIGH define_split.
5020         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
5021         of acc<->gpr moves to "multi".
5022         (*movdi_64bit): Replace the single "x" alternative with
5023         alternatives for moving into and out of "a".
5024         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
5025         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
5026         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
5027         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
5028         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
5029         (movti): New expander.
5030         (*movti, *movti_mips16): New insns.
5031         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
5032         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
5033         (mthi<GPR:mode>_<HILO:mode>): Likewise.
5034         * config/mips/predicates.md (fpr_operand): Delete.
5035         (d_operand): New predicate.
5037 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
5039         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
5040         failure on some Bourne shells.
5041         (x86_64-*-*): Ditto.
5043 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
5045         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
5047 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
5049         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
5050         (sparc-sun-solaris2*): Likewise.
5052 2008-06-09  Arnaud Charlet  <charlet@adacore.com
5054         * doc/install.texi: Update requirements to build the Ada compiler.
5056 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
5058         * df-scan.c (struct df_scan_problem_data): Remove the
5059         mw_link_pool alloc pool.
5060         (df_scan_free_internal): Don't free it.
5061         (df_scan_alloc): Don't allocate it.
5062         * df.h (struct df_link): Update comment.
5064 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
5066         * except.h: Correct checks for when SJLJ exceptions must be used.
5068 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
5070         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
5071         default.
5073 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
5075         PR tree-optimization/36218
5076         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
5077         configure for the build system.
5078         (BUILD_LDFLAGS): Define.
5079         * configure: Regenerate.
5080         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
5082 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
5084         PR target/36424
5085         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
5086         * config/avr/avr.c (avr_hard_regno_rename_ok): New function.
5087         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype.
5089 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
5091         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
5093 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
5095         * config.gcc (Obsolete configurations): Remove list of
5096         configurations.
5097         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
5098         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
5099         targets matched by those patterns.
5100         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
5101         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
5102         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
5103         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
5104         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
5105         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5106         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
5107         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
5108         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
5109         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
5110         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
5111         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
5112         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
5113         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
5114         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
5115         Make code for Solaris 7 and greater unconditional for Solaris.
5116         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
5117         Remove --with-* handling.
5118         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
5119         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
5120         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
5121         LINK_OS_WINDISS_SPEC): Remove.
5122         * config/rs6000/sysv4.opt (mwindiss): Remove.
5123         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
5124         * configure: Regenerate.
5125         * doc/cpp.texi: Don't mention BeOS.
5126         * doc/extend.texi (interrupt): Don't mention MS1.
5127         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
5128         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
5129         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
5130         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
5131         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
5132         Remove.
5133         * doc/invoke.texi (MT Options): Remove.
5134         (-mwindiss): Remove.
5135         (CRIS Options): Remove cris-axis-aout references.
5136         (HPPA Options): Don't mention hppa1.1-*-pro.
5137         * doc/md.texi: (MorphoTech family): Remove.
5138         * libgcc2.c: Don't handle UWIN.
5139         * config/alpha/t-unicosmk: Remove.
5140         * config/alpha/unicosmk.h: Remove.
5141         * config/arm/kaos-arm.h: Remove.
5142         * config/arm/kaos-strongarm.h: Remove.
5143         * config/arm/strongarm-coff.h: Remove.
5144         * config/arm/strongarm-elf.h: Remove.
5145         * config/arm/strongarm-pe.h: Remove.
5146         * config/arm/t-strongarm-pe: Remove.
5147         * config/arm/t-xscale-coff: Remove.
5148         * config/arm/t-xscale-elf: Remove.
5149         * config/arm/xscale-coff.h: Remove.
5150         * config/arm/xscale-elf.h: Remove.
5151         * config/chorus.h: Remove.
5152         * config/cris/aout.h: Remove.
5153         * config/cris/aout.opt: Remove.
5154         * config/cris/t-aout: Remove.
5155         * config/i386/beos-elf.h: Remove.
5156         * config/i386/kaos-i386.h: Remove.
5157         * config/i386/ptx4-i.h: Remove.
5158         * config/i386/sco5.h: Remove.
5159         * config/i386/sco5.opt: Remove.
5160         * config/i386/sysv4-cpp.h: Remove.
5161         * config/i386/sysv5.h: Remove.
5162         * config/i386/t-beos: Remove.
5163         * config/i386/t-sco5: Remove.
5164         * config/i386/t-uwin: Remove.
5165         * config/i386/uwin.asm: Remove.
5166         * config/i386/uwin.h: Remove.
5167         * config/kaos.h: Remove.
5168         * config/mips/windiss.h: Remove.
5169         * config/mt: Remove directory.
5170         * config/pa/pa-osf.h: Remove.
5171         * config/pa/pa-pro-end.h: Remove.
5172         * config/pa/t-pro: Remove.
5173         * config/ptx4.h: Remove.
5174         * config/rs6000/beos.h: Remove.
5175         * config/rs6000/kaos-ppc.h: Remove.
5176         * config/rs6000/t-beos: Remove.
5177         * config/rs6000/windiss.h: Remove.
5178         * config/sh/kaos-sh.h: Remove.
5179         * config/sol2-6.h: Remove.
5180         * config/sparc/sol26-sld.h: Remove.
5181         * config/sparc/sysv4-only.h: Remove.
5182         * config/vax/bsd.h: Remove.
5183         * config/vax/t-memfuncs: Remove.
5184         * config/vax/ultrix.h: Remove.
5185         * config/vax/vaxv.h: Remove.
5186         * config/windiss.h: Remove.
5188 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
5190         PR rtl-optimization/36438
5191         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
5192         for vector shifts with constant scalar shift operands.
5194 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
5196         * doc/invoke.texi: Document -march=xlr.
5197         * config/mips/xlr.md: New file.
5198         * config/mips/mips.md: Include it.
5199         (cpu): Add "xlr".
5200         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
5201         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
5202         (mips_rtx_cost_data): Likewise.
5204 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
5206         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
5207         PRE_INC and PRE_DEC cases.
5209 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5211         PR rtl-optimization/36419
5212         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
5213         the emitting jump insn.
5215         PR target/36362
5216         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
5217         is not bool, boolify the whole *expr_p and convert to the desired type.
5219 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
5221         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
5222         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
5223         Add omp_private_outer_ref hook, add another argument to
5224         omp_clause_default_ctor hook.
5225         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
5226         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
5227         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
5228         hook_tree_tree_tree_tree_null.
5229         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
5230         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
5231         * hooks.c (hook_tree_tree_tree_tree_null): New function.
5232         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
5233         * tree.def (OMP_TASK): New tree code.
5234         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
5235         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
5236         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
5237         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
5238         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
5239         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
5240         OMP_CLAUSE_COLLAPSE_EXPR): Define.
5241         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5242         (OMP_DIRECTIVE_P): Add OMP_TASK.
5243         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
5244         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
5245         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
5246         and OMP_CLAUSE_UNTIED entries.
5247         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
5248         num_ops to 2.
5249         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5250         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
5251         * tree-pretty-print.c (dump_omp_clause): Handle
5252         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
5253         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
5254         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
5255         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
5256         warning about unsigned iterators.  Change decl/init/cond/incr
5257         arguments to TREE_VECs, check arguments for all collapsed loops.
5258         (c_finish_omp_taskwait): New function.
5259         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
5260         ws_clauses.
5261         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
5262         default_function_array_conversion on init.  Add par_clauses argument.
5263         If decl is present in parallel's lastprivate clause, change it to
5264         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
5265         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
5266         collapse count in clauses.
5267         (c_parser_omp_for, c_parser_omp_parallel): Adjust
5268         c_parser_omp_for_loop callers.
5269         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
5270         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
5271         (c_parser_omp_clause_name): Handle collapse and untied clauses.
5272         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
5273         functions.
5274         (c_parser_omp_clause_schedule): Handle schedule(auto).
5275         Include correct location in the error message.
5276         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
5277         and PRAGMA_OMP_CLAUSE_UNTIED.
5278         (OMP_TASK_CLAUSE_MASK): Define.
5279         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
5280         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
5281         * tree-nested.c (convert_nonlocal_omp_clauses,
5282         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
5283         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
5284         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5285         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
5286         OMP_CLAUSE_DECL.
5287         (conver_nonlocal_reference, convert_local_reference,
5288         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
5289         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
5290         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
5291         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
5292         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
5293         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
5294         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
5295         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
5296         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5297         OMP_CLAUSE_UNTIED.
5298         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
5299         * c-common.h (c_finish_omp_taskwait): New prototype.
5300         * gimple-low.c (lower_stmt): Handle OMP_TASK.
5301         * tree-parloops.c (create_parallel_loop): Create 1 entry
5302         vectors for OMP_FOR_{INIT,COND,INCR}.
5303         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
5304         (make_edges): Handle OMP_TASK.
5305         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
5306         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5307         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
5308         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
5309         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
5310         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5311         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
5312         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
5313         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
5314         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
5315         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
5316         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
5317         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
5318         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
5319         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
5320         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
5321         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
5322         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
5323         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
5324         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
5325         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
5326         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
5327         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
5328         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
5329         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
5330         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
5331         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
5332         original iterator is present in lastprivate clause or if
5333         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
5334         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5335         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
5336         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
5337         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
5338         if it is set, lookup var in outer contexts too.  Handle
5339         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
5340         to be implicitly determined firstprivate for task regions.
5341         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
5342         if it is set, lookup var in outer contexts too.  Set
5343         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
5344         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
5345         OMP_CLAUSE_UNTIED.  Take region_type as last argument
5346         instead of in_parallel and in_combined_parallel.
5347         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
5348         Adjust callers.
5349         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
5350         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
5351         (new_omp_context): Set default_kind to
5352         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
5353         (omp_region_type): New enum.
5354         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
5355         fields, add region_type.
5356         (new_omp_context): Take region_type as argument instead of is_parallel
5357         and is_combined_parallel.
5358         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
5359         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
5360         ctx->is_combined_parallel checks.
5361         (gimplify_omp_task): New function.
5362         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
5363         OMP_CLAUSE_UNTIED.
5364         * omp-low.c (extract_omp_for_data): Use schedule(static)
5365         for schedule(auto).  Handle pointer and unsigned iterators.
5366         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
5367         Add loops argument.  Extract data for collapsed OMP_FOR loops.
5368         (expand_parallel_call): Assert sched_kind isn't auto,
5369         map runtime schedule to index 3.
5370         (struct omp_for_data_loop): New type.
5371         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
5372         Add loop, loops, collapse and iter_type fields.
5373         (workshare_safe_to_combine_p): Disallow combined for if
5374         iter_type is unsigned long long.  Don't combine collapse > 1 loops
5375         unless all bounds and steps are constant.  Adjust extract_omp_for_data
5376         caller.
5377         (expand_omp_for_generic): Handle pointer, unsigned and long long
5378         iterators.  Handle collapsed OMP_FOR loops.  Adjust
5379         for struct omp_for_data changes.  If libgomp function doesn't return
5380         boolean_type_node, add comparison of the return value with 0.
5381         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
5382         pointer, unsigned and long long iterators.  Adjust for struct
5383         omp_for_data changes.
5384         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
5385         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
5386         unsigned long long.  Allocate loops array, pass it to
5387         extract_omp_for_data.  For collapse > 1 loops use always
5388         expand_omp_for_generic.
5389         (omp_context): Add sfield_map and srecord_type fields.
5390         (is_task_ctx, lookup_sfield): New functions.
5391         (use_pointer_for_field): Use is_task_ctx helper.  Change first
5392         argument's type from const_tree to tree.  Clarify comment.
5393         In OMP_TASK disallow copy-in/out sharing.
5394         (build_sender_ref): Call lookup_sfield instead of lookup_field.
5395         (install_var_field): Add mask argument.  Populate both record_type
5396         and srecord_type if needed.
5397         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
5398         in srecord_type.
5399         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
5400         and DECL_FIELD_OFFSET.
5401         (scan_sharing_clauses): Adjust install_var_field callers.  For
5402         firstprivate clauses on explicit tasks allocate the var by value in
5403         record_type unconditionally, rather than by reference.
5404         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
5405         Use is_taskreg_ctx instead of is_parallel_ctx.
5406         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
5407         (create_omp_child_function_name): Add task_copy argument, use
5408         *_omp_cpyfn* names if it is true.
5409         (create_omp_child_function): Add task_copy argument, if true create
5410         *_omp_cpyfn* helper function.
5411         (scan_omp_parallel): Adjust create_omp_child_function callers.
5412         Rename parallel_nesting_level to taskreg_nesting_level.
5413         (scan_omp_task): New function.
5414         (lower_rec_input_clauses): Don't run constructors for firstprivate
5415         explicit task vars which are initialized by *_omp_cpyfn*.
5416         Pass outer var ref to omp_clause_default_ctor hook if
5417         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
5418         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
5419         OMP_CLAUSE_REDUCTION_INIT.
5420         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
5421         avoid duplicate setting of fields.  Handle
5422         OMP_CLAUSE_PRIVATE_OUTER_REF.
5423         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
5424         copy-out if TREE_READONLY, only copy-in.
5425         (expand_task_copyfn): New function.
5426         (expand_task_call): New function.
5427         (struct omp_taskcopy_context): New type.
5428         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
5429         New functions.
5430         (lower_omp_parallel): Rename to...
5431         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5432         Call create_task_copyfn if srecord_type is needed.  Adjust
5433         sender_decl type.
5434         (task_shared_vars): New variable.
5435         (check_omp_nesting_restrictions): Warn if work-sharing,
5436         barrier, master or ordered region is closely nested inside OMP_TASK.
5437         Add warnings for barrier if closely nested inside of work-sharing,
5438         ordered, or master region.
5439         (scan_omp_1): Call check_omp_nesting_restrictions even for
5440         GOMP_barrier calls.  Rename parallel_nesting_level to
5441         taskreg_nesting_level.  Handle OMP_TASK.
5442         (lower_lastprivate_clauses): Even if some lastprivate is found on a
5443         work-sharing construct, continue looking for them on parent parallel
5444         construct.
5445         (lower_omp_for_lastprivate): Add lastprivate clauses
5446         to the beginning of dlist rather than end.  Adjust for struct
5447         omp_for_data changes.
5448         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
5449         not after it.  Handle collapsed OMP_FOR loops, adjust for
5450         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
5451         (get_ws_args_for): Adjust extract_omp_for_data caller.
5452         (scan_omp_for): Handle collapsed OMP_FOR
5453         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
5454         (lower_omp_single_simple): If libgomp function doesn't return
5455         boolean_type_node, add comparison of the return value with 0.
5456         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
5457         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
5458         (parallel_nesting_level): Rename to...
5459         (taskreg_nesting_level): ... this.
5460         (is_taskreg_ctx): New function.
5461         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
5462         of is_parallel_ctx.
5463         (execute_lower_omp): Rename parallel_nesting_level to
5464         taskreg_nesting_level.
5465         (expand_omp_parallel): Rename to...
5466         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
5467         Call omp_task_call for OMP_TASK regions.
5468         (expand_omp): Adjust caller, handle OMP_TASK.
5469         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
5471         * bitmap.c (bitmap_default_obstack_depth): New variable.
5472         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
5473         if argument is NULL and bitmap_default_obstack is already initialized.
5474         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
5475         at the end.
5476         * matrix-reorg.c (matrix_reorg): Likewise.
5478 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
5480         * config/i386/i386.md (*indirect_jump): Macroize using P
5481         mode iterator.  Remove !TARGET_64BIT from insn constraints.
5482         (*tablejump_1): Ditto.
5483         (*indirect_jump_rex64): Remove insn pattern.
5484         (*tablejump_1_rex64): Ditto.
5485         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
5486         and eh_return_si insn patterns.
5488 2008-06-06  Richard Guenther  <rguenther@suse.de>
5490         * tree-ssa-structalias.c (merge_smts_into): Remove.
5491         (find_what_p_points_to): Do not bother to compute the
5492         points-to set for pt_anything pointers.
5493         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
5494         for pt_anything pointers is ok.
5496 2008-06-06  Jan Hubicka  <jh@suse.cz>
5498         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
5500 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5502         * cgraph.c: Fix typos in comments.
5503         (cgraph_availability_names): Fix string typo.
5504         * fold-const.c: Fix typos in comments.
5505         (fold_binary): Fix typo in warning.
5506         * genautomata.c: Fix typos in comments.
5507         (check_presence_pattern_sets): Fix typo in local variable.
5508         (output_description): Fix typo in output.
5509         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
5510         * hwint.h: Likewise.
5511         * matrix-reorg.c (check_allocation_function): Likewise.
5512         * omega.c (smooth_weird_equations): Likewise.
5513         * auto-inc-dec.c: Fix typos in comments.
5514         * bb-reorder.c: Likewise.
5515         * builtins.c: Likewise.
5516         * c-common.c: Likewise.
5517         * c-cppbuiltin.c: Likewise.
5518         * c-parser.c: Likewise.
5519         * c-pretty-print.c: Likewise.
5520         * cfgcleanup.c: Likewise.
5521         * cfgexpand.c: Likewise.
5522         * cfghooks.c: Likewise.
5523         * cfglayout.c: Likewise.
5524         * cfgloopmanip.c: Likewise.
5525         * cgraphunit.c: Likewise.
5526         * coverage.c: Likewise.
5527         * dbxout.c: Likewise.
5528         * df-byte-scan.c: Likewise.
5529         * df-core.c: Likewise.
5530         * df-problems.c: Likewise.
5531         * df-scan.c: Likewise.
5532         * dfp.c: Likewise.
5533         * dominance.c: Likewise.
5534         * domwalk.c: Likewise.
5535         * dse.c: Likewise.
5536         * dwarf2out.c: Likewise.
5537         * emit-rtl.c: Likewise.
5538         * et-forest.c: Likewise.
5539         * function.c: Likewise.
5540         * function.h: Likewise.
5541         * gcc.c: Likewise.
5542         * gcov-io.c: Likewise.
5543         * gcov.c: Likewise.
5544         * gcse.c: Likewise.
5545         * genattrtab.c: Likewise.
5546         * ggc-page.c: Likewise.
5547         * gimplify.c: Likewise.
5548         * gthr-lynx.h: Likewise.
5549         * haifa-sched.c: Likewise.
5550         * ipa-cp.c: Likewise.
5551         * ipa-inline.c: Likewise.
5552         * ipa-prop.h: Likewise.
5553         * ipa-pure-const.c: Likewise.
5554         * ipa-struct-reorg.c: Likewise.
5555         * ipa-struct-reorg.h: Likewise.
5556         * ipa-type-escape.c: Likewise.
5557         * ipa.c: Likewise.
5558         * loop-doloop.c: Likewise.
5559         * mips-tfile.c: Likewise.
5560         * mkmap-flat.awk: Likewise.
5561         * mkmap-symver.awk: Likewise.
5562         * modulo-sched.c: Likewise.
5563         * omp-low.c: Likewise.
5564         * optabs.c: Likewise.
5565         * optabs.h: Likewise.
5566         * opts.c: Likewise.
5567         * passes.c: Likewise.
5568         * postreload-gcse.c: Likewise.
5569         * postreload.c: Likewise.
5570         * predict.c: Likewise.
5571         * pretty-print.h: Likewise.
5572         * profile.c: Likewise.
5573         * protoize.c: Likewise.
5574         * ra-conflict.c: Likewise.
5575         * real.c: Likewise.
5576         * recog.c: Likewise.
5577         * regclass.c: Likewise.
5578         * regs.h: Likewise.
5579         * reload.c: Likewise.
5580         * rtl-error.c: Likewise.
5581         * rtlanal.c: Likewise.
5582         * scan.h: Likewise.
5583         * sched-rgn.c: Likewise.
5584         * see.c: Likewise.
5585         * stmt.c: Likewise.
5586         * target.h: Likewise.
5587         * tree-dfa.c: Likewise.
5588         * tree-eh.c: Likewise.
5589         * tree-flow-inline.h: Likewise.
5590         * tree-inline.c: Likewise.
5591         * tree-into-ssa.c: Likewise.
5592         * tree-loop-distribution.c: Likewise.
5593         * tree-nested.c: Likewise.
5594         * tree-parloops.c: Likewise.
5595         * tree-pass.h: Likewise.
5596         * tree-pretty-print.c: Likewise.
5597         * tree-profile.c: Likewise.
5598         * tree-scalar-evolution.c: Likewise.
5599         * tree-sra.c: Likewise.
5600         * tree-ssa-alias-warnings.c: Likewise.
5601         * tree-ssa-ccp.c: Likewise.
5602         * tree-ssa-coalesce.c: Likewise.
5603         * tree-ssa-dom.c: Likewise.
5604         * tree-ssa-dse.c: Likewise.
5605         * tree-ssa-forwprop.c: Likewise.
5606         * tree-ssa-live.c: Likewise.
5607         * tree-ssa-live.h: Likewise.
5608         * tree-ssa-loop-im.c: Likewise.
5609         * tree-ssa-loop-ivopts.c: Likewise.
5610         * tree-ssa-loop-niter.c: Likewise.
5611         * tree-ssa-loop-prefetch.c: Likewise.
5612         * tree-ssa-phiopt.c: Likewise.
5613         * tree-ssa-phiprop.c: Likewise.
5614         * tree-ssa-sccvn.c: Likewise.
5615         * tree-ssa-ter.c: Likewise.
5616         * tree-ssa-threadupdate.c: Likewise.
5617         * tree-ssa.c: Likewise.
5618         * tree-vect-analyze.c: Likewise.
5619         * tree-vect-transform.c: Likewise.
5620         * tree-vectorizer.c: Likewise.
5621         * tree-vn.c: Likewise.
5622         * tree-vrp.c: Likewise.
5623         * tree.c: Likewise.
5624         * tree.def: Likewise.
5625         * tree.h: Likewise.
5626         * unwind-dw2-fde.c: Likewise.
5627         * unwind.inc: Likewise.
5628         * value-prof.c: Likewise.
5629         * vmsdbgout.c: Likewise.
5631 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
5633         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
5634         always place FP constants in the TOC for TARGET_POWERPC64.
5635         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
5637 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
5639         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
5640         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
5641         enable for TARGET_E500_DOUBLE.
5642         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
5643         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
5644         floating-point modes like integer modes for E500 double.
5645         (rs6000_legitimate_offset_address_p): Likewise.
5646         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
5647         addressing for DDmode for E500 double.
5648         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
5649         modes as using 64-bits of registers for E500 double.
5650         (spe_build_register_parallel): Do not handle DDmode or TDmode.
5651         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
5652         specially for E500 double.
5653         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
5654         TDmode for E500 double.
5655         (rs6000_gimplify_va_arg): Only handle SDmode in registers
5656         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
5657         (rs6000_split_multireg_move): Do not handle TDmode specially for
5658         E500 double.
5659         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
5660         using 64-bit registers for E500 double.
5661         (emit_frame_save): Do not handle DDmode specially for E500 double.
5662         (gen_frame_mem_offset): Likewise.
5663         (rs6000_function_value): Do not call spe_build_register_parallel
5664         for DDmode or TDmode.
5665         (rs6000_libcall_value): Likewise.
5666         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
5667         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
5668         for E500 double.
5670 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
5672         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
5673         in comments.
5675 2008-06-04  Junjie Gu <jgu@tensilica.com>
5677         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
5678         comparison for frame pointers.
5680 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5682         PR target/27386
5683         * config/avr/avr.h (PUSH_ROUNDING): Remove.
5685 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
5687         PR target/30243
5688         * builtins.c (expand_builtin_signbit): Don't take lowpart when
5689         register is already smaller or equal to required mode.
5691 2008-06-04  Xinliang David Li  <davidxl@google.com>
5693         * tree-call-cdce.c: New file.
5694         (cond_dead_built_in_calls): New static variable.
5695         (input_domain): New struct.
5696         (check_pow): New function.
5697         (check_builtin_call): Ditto.
5698         (check_target_format): Ditto.
5699         (is_call_dce_candidate): Ditto.
5700         (gen_one_condition): Ditto.
5701         (gen_conditions_for_domain): Ditto.
5702         (get_domain): Ditto.
5703         (gen_conditions_for_pow_cst_base): Ditto.
5704         (gen_conditions_for_pow_int_base): Ditto.
5705         (gen_conditions_for_pow): Ditto.
5706         (get_no_error_domain): Ditto.
5707         (gen_shrink_wrap_conditions): Ditto.
5708         (shrink_wrap_one_built_in_call): Ditto.
5709         (shink_wrap_conditional_dead_built_in_calls): Ditto.
5710         (tree_call_cdce): Ditto.
5711         (gate_call_cdce): Ditto.
5712         (pass_call_cdce): New gimple pass.
5713         * passes.c: (init_optimization_passes): New pass.
5714         * tree-pass.h: New pass declaration.
5715         * opts.c (decode_options): New flag setting.
5716         * common.opt: Add -ftree-builtin-call-dce flag.
5717         * Makefile.in: Add new source file.
5718         * tempvar.def: New tv_id.
5719         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
5721 2008-06-04  Richard Guenther  <rguenther@suse.de>
5723         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
5724         (is_call_clobbered): Always check var_ann->call_clobbered.
5725         (mark_call_clobbered): Always set var_ann->call_clobbered.
5726         (clear_call_clobbered): Always clear var_ann->call_clobbered.
5727         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
5728         (reset_alias_info): Clear call clobbering info on MTAGs and
5729         globals as well.
5730         (set_pt_anything): Set pt_global_mem.
5731         (create_tag_raw): Adjust comment.
5732         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
5734 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
5735             Maxim Kuvyrkov  <maxim@codesourcery.com>
5737         * config/m68k/m68k.opt (mxgot): New option.
5738         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
5739         (m68k_output_addr_const_extra): New.
5740         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
5741         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
5742         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
5743         * doc/invoke.texi (M680x0 Options): Document -mxgot.
5745 2008-06-04  Richard Guenther  <rguenther@suse.de>
5747         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
5748         negative or non-representable offsets.
5750 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5752         * config/i386/i386.c (ix86_gen_leave): New.
5753         (ix86_gen_pop1): Likewise.
5754         (ix86_gen_add3): Likewise.
5755         (ix86_gen_sub3): Likewise.
5756         (ix86_gen_sub3_carry): Likewise.
5757         (ix86_gen_one_cmpl2): Likewise.
5758         (ix86_gen_monitor): Likewise.
5759         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
5760         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
5761         ix86_gen_one_cmpl2 and ix86_gen_monitor.
5762         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
5763         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
5764         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
5765         (ix86_expand_epilogue): Updated.
5766         (print_operand): Handle integer register operand for 'z'.
5767         (ix86_expand_strlensi_unroll_1): Likewise.
5768         (ix86_expand_strlen): Likewise.
5769         (ix86_expand_builtin): Likewise.
5770         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
5771         mov{q}/mov{l} and add{q}/add{l}.
5773 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5775         * config/i386/i386.md (P): New mode iterator.
5776         (SFmode push_operand splitter): Macroize DImode and SImode pushes
5777         using P mode iterator.
5778         (DFmode push_operand splitter): Ditto.
5779         (XFmode push_operand splitter): Ditto.
5780         (DFmode float_extend SFmode push_operand splitter): Ditto.
5781         (XFmode float_extend SFmode push_operand splitter): Do not generate
5782         SImode pushes for 64bit target.  Macroize Dimode and SImode
5783         pushes using P mode iterator.
5784         (XFmode float_extend DFmode push_operand splitter): Ditto.
5786 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5788         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
5789         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
5790         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
5791         return type to int.
5792         (ix86_call_abi_override): Remove check for call_used_regs.
5794 2008-06-03  Richard Guenther  <rguenther@suse.de>
5796         * tree-ssa-structalias.c (find_func_aliases): Add constraints
5797         for the lhs of calls if the return type contains pointers.
5799 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
5801         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
5802         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
5803         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
5804         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
5805         of cfun and DEFAULT_ABI to deceide abi mode.
5806         (DEFAULT_ABI): New.
5807         (REG_PARM_STACK_SPACE): Removed.
5808         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
5809         (STACK_BOUNDARY): Use default target to deceide stack boundary.
5810         * config/i386/i386-protos.h (ix86_cfun_abi): New.
5811         (ix86_function_abi): Likewise.
5812         (ix86_function_type_abi): Likewise.
5813         (ix86_call_abi_override): Likewise.
5814         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
5815         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
5816         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
5817         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
5818         specific defines.
5819         (X86_64_REGPARM_MAX): New.
5820         (X86_64_SSE_REGPARM_MAX): New.
5821         (X64_REGPARM_MAX): New.
5822         (X64_SSE_REGPARM_MAX): New.
5823         (X86_32_REGPARM_MAX): New.
5824         (X86_32_SSE_REGPARM_MAX): New.
5825         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
5826         (ix86_function_regparm): Handle user calling abi.
5827         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
5828         by DEFAULT_ABI versus SYSV_ABI check.
5829         (ix86_reg_parm_stack_space): New.
5830         (ix86_function_type_abi): New.
5831         (ix86_call_abi_override): New.
5832         (ix86_function_abi): New.
5833         (ix86_cfun_abi): New.
5834         (init_cumulative_args): Call abi specific initialization.
5835         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
5836         (function_arg_64): Extend SSE_REGPARM_MAX check.
5837         (function_arg (): Remove TARGET_64BIT_MS_ABI.
5838         (ix86_pass_by_reference): Likewise.
5839         (ix86_function_value_regno_p): Likewise.
5840         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
5841         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
5842         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
5843         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
5844         (setup_incoming_varargs_64): Adjust regparm for call abi.
5845         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
5846         (ix86_va_start): Likewise.
5847         (ix86_gimplify_va_arg): Likewise.
5848         (ix86_expand_prologue): Likewise.
5849         (output_pic_addr_const): Likewise.
5850         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
5851         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
5852         (x86_output_mi_thunk): Likewise.
5853         (x86_function_profiler): Likewise.
5854         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
5855         (SYSV_ABI, MS_ABI): New constants.
5856         (DEFAULT_ABI): New.
5857         (init_regs): Add prototype of function in regclass.c file.
5858         (OVERRIDE_ABI_FORMAT): New.
5859         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
5860         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
5861         (OUTGOING_REG_PARM_STACK_SPACE): New.
5862         (ix86_reg_parm_stack_space): New prototype.
5863         (CUMULATIVE_ARGS): Add call_abi member.
5864         (machine_function): Add call_abi member.
5865         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
5866         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
5868 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com>
5870         PR target/34879
5871         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
5872         (avr_builtin_setjmp_frame_value): New function.
5873         * config/avr/avr.md (nonlocal_goto_receiver): Define.
5874         (nonlocal_goto): Define.
5876 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
5878         * config/mips/mips.c (mips_emit_loadgp): Return early if
5879         there is nothing do to, otherwise emit a blockage if
5880         !TARGET_EXPLICIT_RELOCS || crtl->profile.
5881         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
5883 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5885         * configure.ac: Drop unneeded backslash ending up in config.in.
5886         * acinclude.m4: Likewise.
5887         * config.in: Regenerate.
5889 2008-05-26  Jan Hubicka  <jh@suse.cz>
5891         * predict.c (maybe_hot_frequency_p): Break out of...
5892         (maybe_hot_bb_p): ... here.
5893         (maybe_hot_edge_p): New.
5894         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
5895         * basic-block.h (maybe_hot_edge_p): Declare.
5897 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
5899         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
5900         (*cmpfp_<mode>_cc): Ditto.
5901         (*fp_jcc_8<mode>_387): Ditto.
5902         (*fop_<MODEF:mode>_2_i387): Ditto.
5903         (*fop_<MODEF:mode>_3_i387): Ditto.
5904         (*fop_xf_2_i387): Ditto.
5905         (*fop_xf_3_i387): Ditto.
5907 2008-06-02  Tomas Bily  <tbily@suse.cz>
5909         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
5911 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5913         * config/mips/mips.c (mips_valid_offset_p): New function.
5914         (mips_valid_lo_sum_p): Likewise.
5915         (mips_classify_address): Use them.
5916         (mips_force_address): New function.
5917         (mips_legitimize_address): Use it.
5918         * config/mips/mips.md (MOVE128): New mode iterator.
5919         (movtf): Require TARGET_64BIT.  Remove empty strings.
5920         (*movtf_internal): Rename to...
5921         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
5922         of "R" and use {,fp}{load,store} attributes instead of "multi".
5923         Use a separate define_split.
5924         (*movtf_mips16): New pattern.
5926 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5928         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
5929         * config/mips/mips.c (mips_expand_before_return): New function.
5930         (mips_expand_epilogue): Call it.
5931         * config/mips/mips.md (return): Turn into a define_expand.
5932         (*return): New insn.
5934 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
5936         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
5937         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
5938         functions.  Do not emit uses and clobbers of CONCATs; individually
5939         use and clobber their operands.
5940         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
5941         gen_clobber, emit_use and gen_use.
5942         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
5943         (expand_builtin_return): Likewise.
5944         * cfgbuild.c (count_basic_blocks): Likewise.
5945         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
5946         * explow.c (emit_stack_restore): Likewise.
5947         * expmed.c (extract_bit_field_1): Likewise.
5948         * expr.c (convert_move, emit_move_complex_parts): Likewise.
5949         (emit_move_multi_word, store_constructor): Likewise.
5950         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
5951         (thread_prologue_and_epilogue_insns): Likewise.
5952         * lower-subreg.c (resolve_simple_move): Likewise.
5953         * optabs.c (widen_operand, expand_binop): Likewise.
5954         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
5955         * reload.c (find_reloads): Likewise.
5956         * reload1.c (eliminate_regs_in_insn): Likewise.
5957         * stmt.c (expand_nl_goto_receiver): Likewise.
5958         * config/alpha/alpha.md (builtin_longjmp): Likewise.
5959         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
5960         * config/arm/arm.c (arm_load_pic_register): Likewise.
5961         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
5962         * config/arm/arm.md (untyped_return): Likewise.
5963         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
5964         * config/avr/avr.c (expand_prologue): Likewise.
5965         * config/bfin/bfin.c (do_unlink): Likewise.
5966         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
5967         * config/cris/cris.c (cris_expand_prologue): Likewise.
5968         * config/darwin.c (machopic_indirect_data_reference): Likewise.
5969         (machopic_legitimize_pic_address): Likewise.
5970         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
5971         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
5972         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
5973         (ix86_expand_convert_uns_didf_sse): Likewise.
5974         (ix86_expand_vector_init_general): Likewise.
5975         * config/ia64/ia64.md (eh_epilogue): Likewise.
5976         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
5977         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
5978         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
5979         (config/iq2000/iq2000.c): Likewise.
5980         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
5981         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
5982         (builtin_longjmp): Likewise.
5983         * config/mn10300/mn10300.md (call, call_value): Likewise.
5984         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
5985         * config/pdp11/pdp11.md (abshi2): Likewise.
5986         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
5987         * config/s390/s390.c (s390_emit_prologue): Likewise.
5988         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
5989         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
5990         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
5991         * config/sh/sh.c (prepare_move_operands): Likewise.
5992         (output_stack_adjust, sh_expand_epilogue): Likewise.
5993         (sh_set_return_address, sh_expand_t_scc): Likewise.
5994         * config/sparc/sparc.c (load_pic_register): Likewise.
5995         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
5996         * config/spu/spu.c (spu_expand_epilogue): Likewise.
5997         * config/v850/v850.c (expand_epilogue): Likewise.
5999 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
6001         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
6002         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
6003         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
6004         * config/avr/avr.c (expand_prologue, expand_epilogue): Use
6005         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the
6006         stack pointer register.
6007         (output_movhi): Remove code for interrupt specific writing to the
6008         stack pointer register.
6010 2008-05-31  Richard Guenther  <rguenther@suse.de>
6012         PR tree-optimization/34244
6013         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
6014         (tree_expr_nonzero_warnv_p): Likewise.
6015         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
6016         ssa_name_nonnegative_p.
6017         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
6018         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
6019         not tree_expr_nonzero_warnv_p.
6021         PR tree-optimization/36262
6022         Revert
6023         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
6025         PR tree-optimization/34244
6026         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
6027         (record_numbers_of_iterations): New function.
6028         (execute_vrp): Cache the numbers of iterations of loops.
6029         * tree-scalar-evolution.c (scev_reset_except_niters):
6030         New function.
6031         (scev_reset): Use scev_reset_except_niters.
6032         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
6034 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
6036         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
6037         __WORKAROUND_RETS when appropriate.
6039 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
6041         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
6042         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
6043         mode iterator.
6044         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
6045         *fop_df_comm_sse insn patterns using MODEF mode iterator.
6046         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
6047         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
6048         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
6049         *fop_df_1_mixed insn patterns using MODEF mode iterator.
6050         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
6051         *fop_df_1_sse insn patterns using MODEF mode iterator.
6052         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
6053         *fop_df_1_i387 insn patterns using MODEF mode iterator.
6054         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
6055         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
6056         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
6057         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
6058         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
6059         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
6060         (*fop_xf_4_i387): Use <MODE> for mode attribute.
6061         (*fop_xf_5_i387): Ditto.
6062         (*fop_xf_6_i387): Ditto.
6064 2008-05-30  Richard Guenther  <rguenther@suse.de>
6066         * builtins.c (build_string_literal): Avoid generating
6067         a non-gimple_val result.
6069 2008-05-30  DJ Delorie  <dj@redhat.com>
6071         * exec-tool.in: Use an environment variable (private) instead of a
6072         file (shared) as a semaphore, so as to not break parallel builds.
6074 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
6076         * optabs.c (maybe_encapsulate_block): Remove.
6077         (emit_libcall_block): Adjust accordingly.
6078         * optabs.h (maybe_encapsulate_block): Remove prototype.
6080         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
6081         Don't use maybe_encapsulate_block.
6083 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
6085         * config/rs6000/rs6000.c (rs6000_legitimize_address,
6086         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
6087         rtx is a SYMBOL_REF before calling get_pool_constant.
6089 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
6091         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
6093 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
6095         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
6096         rather than OS names to choose INO_T_EQ definition.
6097         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
6098         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
6100 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
6102         PR target/36348
6103         * config/darwin-f.c: New.
6104         * config/t-darwin: Added rule to build darwin-f.o.
6105         * config.gcc: Defined new variable, fortran_target_objs.
6106         (*-*-darwin*): Set fortran_target_objs.
6107         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
6108         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
6109         * configure: Regenerated.
6111 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6113         PR target/35771
6114         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
6115         canonical type if needed.
6117 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
6119         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
6121 2008-05-29  Richard Guenther  <rguenther@suse.de>
6123         PR tree-optimization/36343
6124         PR tree-optimization/36346
6125         PR tree-optimization/36347
6126         * tree-flow.h (clobber_what_p_points_to): Declare.
6127         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
6128         pointed-to variable is dereferenced is irrelevant to whether
6129         the pointer can access the pointed-to variable.
6130         (clobber_what_p_points_to): New function.
6131         * tree-ssa-alias.c (set_initial_properties): Use it.
6132         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
6133         call clobber check for NMTs.
6135 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6137         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
6138         for printing gcov_type.
6140 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
6142         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
6143         and the eh region information.
6144         * value-prof.c (gimple_move_stmt_histograms): New function.
6145         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
6147 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
6149         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
6151 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
6153         * value-prof.c (tree_ic_transform): Print counts.
6154         * tree-profile.c (tree_gen_ic_func_profiler):
6155         Clear __gcov_indreict_call_callee variable to avoid misattribution
6156         of the profile.
6158 2008-05-28  Rafael Espindola  <espindola@google.com>
6160         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
6161         invalid sharing.
6163 2008-05-28  Richard Guenther  <rguenther@suse.de>
6165         PR tree-optimization/36339
6166         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
6167         and clobbering code out of the loop.
6169 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6171         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
6172         letters defined.
6174         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
6175         s390_contiguous_bitmask_p, s390_symref_operand_p,
6176         s390_check_symref_alignment, s390_reload_larl_operand,
6177         s390_reload_symref_address): New functions.
6178         (s390_branch_condition_mnemonic): Support compare and branch
6179         instructions.
6180         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
6181         and 'W' constraints.
6182         (s390_secondary_reload): Add secondary reloads for unaligned
6183         symbol refs or symbol refs to floating point or QI/TI mode
6184         integer values.
6185         (legitimate_address_p): Accept symbol references as addresses.
6186         (s390_expand_insv): Use rotate and insert selected bits
6187         instruction for insv when building for z10.
6188         (print_operand_address): Handle symbol ref addresses.
6189         (print_operand): Output modifier 'c' added for signed byte values.
6190         (s390_encode_section_info): Mark symbol refs with
6191         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
6193         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
6194         (length attribute): RRF, RRR have 4 byte length.
6195         (FPALL, INTALL): New mode iterators added.
6196         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
6197         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
6198         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
6199         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
6200         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
6201         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
6202         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
6203         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
6204         instructions.
6205         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
6206         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
6207         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
6208         reload<INTALL:mode><P:mode>_toreg_z10,
6209         reload<FPALL:mode><P:mode>_tomem_z10,
6210         reload<FPALL:mode><P:mode>_toreg_z10,
6211         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
6212         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
6213         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
6214         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
6215         definition.
6216         (movmem, clrmem, cmpmem): New splitters added.
6218         * config/s390/predicates.md (larl_operand): Use
6219         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
6220         SYMBOL_REF_ALIGN1_P.
6221         (s390_signed_integer_comparison,
6222         s390_unsigned_integer_comparison): New predicates.
6224         * config/s390/s390-protos.h (s390_check_symref_alignment,
6225         s390_contiguous_bitmask_p, s390_reload_larl_operand,
6226         s390_reload_symref_address,
6227         s390_compare_and_branch_condition_mask): Prototypes added.
6229         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
6230         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
6231         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
6233 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
6235         * config/s390/s390.c (z10_cost): New cost function for z10.
6236         (s390_handle_arch_option, override_options): Support -march=z10 switch.
6237         (s390_issue_rate): Adjust issue rate for z10.
6238         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
6239         (processor_flags): Add PF_Z10.
6240         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
6241         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
6242         * gcc/config.gcc: Add z10.
6244 2008-05-28  Richard Guenther  <rguenther@suse.de>
6246         PR tree-optimization/36291
6247         * tree-flow. h (struct gimple_df): Remove var_anns member.
6248         * tree-flow-inline.h (gimple_var_anns): Remove.
6249         (var_ann): Simplify.
6250         * tree-dfa.c (create_var_ann): Simplify.
6251         (remove_referenced_var): Clear alias info from var_anns of globals.
6252         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
6253         (delete_tree_ssa): Clear alias info from var_anns of globals.
6254         Do not free var_anns.
6255         (var_ann_eq): Remove.
6256         (var_ann_hash): Likewise.
6258 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
6260         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
6261         and loongson2f entries.
6262         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
6263         * config/mips/mips.h (processor_type): Add Loongson-2E
6264         and Loongson-2F entries.
6265         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
6266         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
6267         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
6268         * doc/invoke.texi (MIPS Options): Document loongson2e
6269         and loongson2f processor names.
6271 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6273         PR target/35767
6274         PR target/35771
6275         * config/i386/i386.c (ix86_function_arg_boundary): Use
6276         alignment of canonical type.
6277         (ix86_expand_vector_move): Check unaligned memory access for
6278         all SSE modes.
6280 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
6282         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
6283         Moved to the front of file.
6285 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
6286             H.J. Lu  <hongjiu.lu@intel.com>
6288         * dwarf2out.c (current_fde): New.
6289         (add_cfi): Use it.
6290         (lookup_cfa:): Likewise.
6291         (dwarf2out_end_epilogue): Likewise.
6292         (dwarf2out_note_section_used): Likewise.
6294 2008-05-27  Michael Matz  <matz@suse.de>
6296         PR c++/27975
6297         * c.opt (Wenum-compare): New warning option.
6298         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
6300 2008-05-27  Michael Matz  <matz@suse.de>
6302         PR middle-end/36326
6303         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
6304         non-BLKmode types.
6305         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
6306         into memory as tail calls.
6308 2008-05-27  Richard Guenther  <rguenther@suse.de>
6310         PR tree-optimization/36339
6311         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
6312         pointers cause all addressable variables to be call clobbered.
6314 2008-05-27  Richard Guenther  <rguenther@suse.de>
6316         PR tree-optimization/36245
6317         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
6319 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6321         * config/s390/s390.md: Replace all occurences of the 'm'
6322         constraint with 'RT'.
6324 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6326         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
6327         definitions added.
6328         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
6329         "*movdi_64".
6330         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
6331         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
6332         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
6334 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6336         * reload.c: (find_reloads): Skip alternatives according to the
6337         "enabled" attribute. Constify the constraint variable.
6338         * recog.c (get_attr_enabled): Add default implementation.
6339         (extract_insn): Set the alternative_enabled_p array
6340         in the recog_data struct.
6341         (preprocess_constraints, constrain_operands): Skip
6342         alternatives according to the "enabled" attribute
6343         * recog.h (struct recog_data): New field alternative_enabled_p.
6344         (skip_alternative): New inline function.
6345         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
6346         (record_reg_classes): Skip alternative according to the
6347         "enabled" attribute.
6349         * doc/md.texi: Add documention for the "enabled" attribute.
6351 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
6353         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
6354         * postreload.c (reload_cse_simplify_operands): Replace 'm'
6355         constraint with TARGET_MEM_CONSTRAINT.
6356         * recog.c (asm_operand_ok, preprocess_constraints,
6357         constrain_operands): Likewise.
6358         * regclass.c (record_reg_classes): Likewise.
6359         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
6360         * reload1.c (maybe_fix_stack_asms): Likewise.
6361         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
6362         * recog.h: Adjust comment.
6363         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
6364         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
6365         * doc/md.texi: Add a note to description of 'm' constraint.
6366         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
6368 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6370         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
6371         that the bitfield is of integral type before testing its precision.
6373 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
6374             Sa Liu  <saliu@de.ibm.com>
6376         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3,
6377         __modti3, __udivti3, __umodti3 and __udivmodti4.
6378         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
6379         that implement TImode mul and div functions.
6380         * config/spu/multi3.c: New. Implement __multi3.
6381         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
6382         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
6383         functions on SPU.
6385 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
6387         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
6388         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
6389         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
6390         tls_sysv_suffix): New mode and mode attribute iterators.
6391         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
6392         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
6393         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
6394         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
6395         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
6396         iterators.
6398 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6400         PR tree-optimization/36329
6401         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
6402         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
6403         * cgraphbuild.c (initialize_inline_failed): Use the latter
6404         macro in lieu of the former.
6405         * ipa-inline.c (cgraph_mark_inline): Likewise.
6406         (cgraph_decide_inlining_of_small_function): Likewise.
6407         (cgraph_decide_inlining): Likewise.
6408         (cgraph_decide_inlining_incrementally): Likewise.
6410 2008-05-26  Tristan Gingold  <gingold@adacore.com>
6411             Anatoly Sokolov  <aesok@post.ru>
6413         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
6414         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
6415         * config/avr/avr.c (expand_prologue): Tune "call_prologue"
6416         optimization for 'avr6' architecture.
6418 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
6420         PR target/34932
6421         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
6423 2008-05-26  Richard Guenther  <rguenther@suse.de>
6425         * tree-ssa-sccvn.c (expr_has_constants): Declare.
6426         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
6428 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
6430         PR middle-end/36253
6431         * caller-save.c (insert_restore): Verify alignment of spill space.
6432         (insert_save): Likewise.
6433         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
6434         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
6435         (STACK_SLOT_ALIGNMENT): Likewise.
6436         * function.c (LOCAL_ALIGNMENT): Removed.
6437         (get_stack_local_alignment): New.
6438         (assign_stack_local): Use it.  Set alignment on stack slot.
6439         (assign_stack_temp_for_type): Use get_stack_local_alignment.
6440         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
6441         (STACK_SLOT_ALIGNMENT): New.
6442         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
6443         stack slot in XFmode.
6445         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
6447 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
6449         PR/36321
6450         * config/i386/i386.md (allocate_stack_worker_64): Make sure
6451         argument operand in rax isn't removed.
6453 2008-05-26  Richard Guenther  <rguenther@suse.de>
6455         PR middle-end/36300
6456         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
6457         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
6459 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6461         PR bootstrap/36331
6462         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
6464 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
6466         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
6467         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
6469 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6471         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
6472         build a trampoline if we don't want one.
6473         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
6474         return zero for nested functions if we don't want a trampoline.
6476 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6478         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
6480 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
6482         PR fortran/18428
6483         * c.opt: Removed undocumented option '-lang-fortran'.
6484         * c-common.h: Removed global variable 'lang_fortran'.
6485         * c-opts.c (c_common_handle_option): Removed code to handle
6486         option '-lang-fortran'. Updated includes.
6487         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
6488         definition of '__GFORTRAN__'.
6489         (define__GNUC__): Reimplemented to use BASEVER and
6490         cpp_define_formatted.
6491         (builtin_define_with_value_n): Removed.
6492         * c-incpath.h: Renamed to ...
6493         * incpath.h: ... this.
6494         * c-incpath.c: Renamed to ...
6495         * incpath.c: ... this. Updated includes.
6496         * fix-header.c: Updated includes.
6497         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
6498         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
6499         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
6501 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6503         * tree.h: Update the table of flags used on tree nodes.
6504         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
6505         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
6506         (FORCED_LABEL): Add access check.
6507         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
6508         (ASM_INPUT_P): Likewise.
6509         (ASM_VOLATILE_P): Likewise.
6510         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
6511         (OMP_SECTION_LAST): Access private_flag directly.
6512         (OMP_RETURN_NOWAIT): Likewise.
6513         (OMP_PARALLEL_COMBINED): Likewise.
6514         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
6515         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
6516         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
6517         deprecated_flag directly.
6519 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
6521         * final.c (frame_pointer_needed): Removed.
6522         * flags.h (frame_pointer_needed): Likewise.
6524         * function.h (rtl_data): Add frame_pointer_needed.
6525         (frame_pointer_needed): New.
6527 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
6529         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
6531 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
6533         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
6534         SRC is a REG.
6536 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
6538         * c-common.c (strip_array_types): Move function to..
6539         * tree.c: ..here.
6540         (get_inner_array_type): Delete.
6541         * c-common.h (strip_array_types): Move declaration to..
6542         * tree.h: ..here.
6543         (get_inner_array_type): Delete.
6544         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
6545         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
6546         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
6547         * config/pa/pa.c (emit_move_sequence): Likewise.
6549 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
6551         * config/i386/i386.md (*sse_prologue_save_insn): Set length
6552         attribute to 34.
6554 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
6556         * function.c: Include target hook for nonlocal_goto frame value.
6558 2008-05-24  Richard Guenther  <rguenther@suse.de>
6560         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
6561         variable can be only accessed through a pointer or a union.
6563 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6565         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
6566         * doc/extend.texi: Likewise.
6568 2008-05-23  DJ Delorie  <dj@redhat.com>
6570         * config/m32c/jump.md (untyped_call): Add.
6572         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
6573         for A24 to PSImode.
6574         (m32c_address_cost): Detail costs for indirect offsets.
6576 2008-05-23  Rafael Espindola  <espindola@google.com>
6578         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
6579         if a node is a SUBREG.
6580         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
6581         is a SUBREG.
6583 2008-05-23  Paul Brook  <paul@codesourcery.com>
6584             Carlos O'Donell  <carlos@codesourcery.com>
6586         * doc/extend.texi: Clarify use of __attribute__((naked)).
6587         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6588         * target.h (gcc_target): Add allocate_stack_slots_for_args.
6589         * function.c (use_register_for_decl): Use
6590         targetm.calls.allocate_stack_slots_for_args.
6591         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
6592         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
6593         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
6595 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
6597         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
6599 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
6601         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
6602         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
6603         is only rounded once.
6605 2008-05-23  Richard Guenther  <rguenther@suse.de>
6607         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
6609 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
6610             Jakub Jelinek  <jakub@redhat.com>
6612         PR target/36079
6613         * configure.ac: Handle --enable-cld.
6614         * configure: Regenerated.
6615         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
6616         * config/i386/i386.h (struct machine_function): Add needs_cld field.
6617         (ix86_current_function_needs_cld): New define.
6618         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
6619         (cld): New isns pattern.
6620         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
6621         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
6622         * config/i386/i386.opt (mcld): New option.
6623         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
6624         TARGET_CLD and ix86_current_function_needs_cld.
6625         (override_options): Use -mcld by default for 32-bit code if
6626         USE_IX86_CLD.
6628         * doc/install.texi (Options specification): Document --enable-cld.
6629         * doc/invoke.texi (Machine Dependent Options)
6630         [i386 and x86-64 Options]: Add -mcld option.
6631         (Intel 386 and AMD x86-64 Options): Document -mcld option.
6633 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
6634         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
6635         (return_in_memory_64): Likewise.
6636         (return_in_memory_ms_64): Likewise.
6638 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6640         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
6641         * builtins.c (fold_builtin_fpclassify): New.
6642         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
6643         * builtins.def (BUILT_IN_FPCLASSIFY): New.
6644         * c-common.c (handle_type_generic_attribute): Adjust to accept
6645         fixed arguments before an elipsis.
6646         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
6647         * doc/extend.texi: Document __builtin_fpclassify.
6649 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
6651         * omp-low.c (gate_expand_omp_ssa): Remove.
6652         (pass_expand_omp_ssa): Remove.
6653         (gate_expand_omp): Do not check for flag_openmp_ssa.
6654         * common.opt (-fopenmp-ssa): Remove.
6655         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
6657 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
6659         * config/sh/sh.opt (mfixed-range): New option.
6660         * config/sh/sh-protos.h (sh_fix_range): Declare.
6661         * config/sh/sh.c (sh_fix_range): New function.
6662         * config/sh/sh.h (sh_fixed_range_str): Declare.
6663         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
6664         is not empty.
6665         * doc/invoke.texi (SH Options): Document -mfixed-range.
6667 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
6669         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
6670         it before the redeclaration.
6672 2008-05-22  Anatoly Sokolov <aesok@post.ru>
6674         * config/avr/avr.c (get_sequence_length): Add new function.
6675         (expand_prologue, expand_epilogue): Remove duplicate code.
6677 2008-05-22  Rafael Espindola  <espindola@google.com>
6679         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
6680         sharing.
6682 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
6684         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
6685         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
6687         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
6688         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
6689         (vect_update_misalignment_for_peel): Likewise.
6690         (vector_alignment_reachable_p): Likewise.
6691         * tree-vect-transform.c (vectorizable_load): Likewise.
6692         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
6693         (get_vectype_for_scalar_type): Pass mode of scalar_type
6694         to UNITS_PER_SIMD_WORD.
6696         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
6697         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
6698         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
6699         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
6700         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
6702 2008-05-22  Ira Rosen  <irar@il.ibm.com>
6704         PR tree-optimization/36293
6705         * tree-vect-transform.c (vect_transform_strided_load): Don't check
6706         if the first load must be skipped because of a gap.
6708 2008-05-22  Richard Guenther  <rguenther@suse.de>
6710         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
6711         more cases of offset disambiguation that is possible if
6712         strict-aliasing rules apply.
6713         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
6714         for basic offset and type-based disambiguation.
6716 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6718         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
6719         ix86_expand_vector_set on V16QImode for SSE4.1.
6721 2008-05-21  Tom Tromey  <tromey@redhat.com>
6723         * c.opt (Wimport): Mark as undocumented.
6724         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
6725         -Wno-import.
6726         (Warning Options): Likewise.
6727         * doc/cppopts.texi: Don't mention -Wimport.
6729 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
6731         PR tree-optimization/36287
6732         PR tree-optimization/36286
6733         * lambda-code.c (build_access_matrix): Do not use the loop->num
6734         for computing the number of induction variables: use the loop depth
6735         instead.
6737 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
6739         PR/36280
6740         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
6741         option -f(no-)leading-underscore.
6743 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6745         * config/i386/i386.c (ix86_expand_vector_init_general): Use
6746         GET_MODE_NUNITS (mode).
6748 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
6750         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
6751         (-mmulhw): Add 464 to description.
6752         (-mdlmzb): Likewise.
6753         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
6754         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
6755         464fp entries.
6756         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
6757         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
6758         * config/rs6000/rs6000.md: Update comments for 464.
6760 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
6762         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
6764 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6766         * config/i386/sse.md (vec_extractv4sf): Removed.
6767         (vec_extractv2df): Likewise.
6768         (vec_extractv2di): Likewise.
6769         (vec_extractv4si): Likewise.
6770         (vec_extractv8hi): Likewise.
6771         (vec_extractv16qi): Likewise.
6772         (vec_extract<mode>): New.
6774 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6776         * config/i386/sse.md (vec_setv4sf): Removed.
6777         (vec_setv2df): Likewise.
6778         (vec_setv2di): Likewise.
6779         (vec_setv4si): Likewise.
6780         (vec_setv8hi): Likewise.
6781         (vec_setv16qi): Likewise.
6782         (vec_set<mode>): New.
6784 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6786         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
6787         goto for vec_concat and vec_interleave.
6789 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
6791         * config/i386/sse.md (vec_initv4sf): Removed.
6792         (vec_initv2df): Likewise.
6793         (vec_initv2di): Likewise.
6794         (vec_initv4si): Likewise.
6795         (vec_initv8hi): Likewise.
6796         (vec_initv16qi): Likewise.
6797         (vec_init<mode>): New.
6799 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
6801         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
6803 2008-05-21  Tom Tromey  <tromey@redhat.com>
6805         * ggc-zone.c (lookup_page_table_if_allocated): New function.
6806         (zone_find_object_offset): Likewise.
6807         (gt_ggc_m_S): Likewise.
6808         (highest_bit): Likewise.
6809         * ggc-page.c (gt_ggc_m_S): New function.
6810         * stringpool.c (string_stack): Remove.
6811         (init_stringpool): Update.
6812         (ggc_alloc_string): Use ggc_alloc.
6813         (maybe_delete_ident): New function.
6814         (ggc_purge_stringpool): Likewise.
6815         (gt_ggc_m_S): Remove.
6816         * ggc-common.c (ggc_protect_identifiers): New global.
6817         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
6818         ggc_protect_identifiers.
6819         * ggc.h (ggc_protect_identifiers): Declare.
6820         (gt_ggc_m_S): Update.
6821         (ggc_purge_stringpool): Declare.
6822         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
6823         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
6824         special case.
6825         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
6827 2008-05-21  David S. Miller  <davem@davemloft.net>
6829         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
6830         tmake_file.
6832 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
6834         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
6835         once finished.
6837 2008-05-20  David Daney  <ddaney@avtrex.com>
6839         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
6840         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
6841         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6842         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6843         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
6844         (atomic_hiqi_op): New define_code_iterator.
6845         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
6846         mips_expand_compare_and_swap_12.
6847         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
6848         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
6849         (sync_<optab><mode>, sync_old_<optab><mode>,
6850         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
6851         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
6852         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
6853         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
6854         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
6855         (test_and_set_12): New insn.
6856         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
6857         sync_new_<optab><mode>, sync_old_nand<mode>,
6858         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
6859         clobber to operand 0 for SI and DI mode insns.
6860         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
6861         mips_gen_fn_4): New typedefs.
6862         (mips_gen_fn_ptrs): Define new union type.
6863         (mips_expand_compare_and_swap_12): Remove declaration.
6864         (mips_expand_atomic_qihi): Declare function.
6865         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
6866         (mips_expand_atomic_qihi): ... this.  Use new generator function
6867         parameter.
6868         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
6869         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
6870         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
6871         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
6872         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
6873         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
6874         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
6875         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
6876         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
6877         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
6878         New macros.
6880 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
6882         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
6883         the missing break.
6885 2008-05-20  Anatoly Sokolov <aesok@post.ru>
6887         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
6888         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
6889         (avr_attribute_table): Add 'OS_main' function attribute.
6890         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
6891         functions with 'OS_main' attribute.
6893 2008-05-20  Richard Guenther  <rguenther@suse.de>
6895         PR tree-optimization/35204
6896         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
6897         helper, split out from ...
6898         (DFS): ... here.  Make the DFS walk non-recursive.
6900 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
6901             Jan Sjodin  <jan.sjodin@amd.com>
6903         PR tree-optimization/36181
6904         * tree-parloops.c (loop_has_vector_phi_nodes): New.
6905         (parallelize_loops): Don't parallelize when the loop has vector
6906         phi nodes.
6908 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6909             Sebastian Pop  <sebastian.pop@amd.com>
6911         * tree-loop-linear.c (gather_interchange_stats): Look in the access
6912         matrix, and never look at the tree representation of the memory
6913         accesses.
6914         (linear_transform_loops): Computes parameters and access matrices.
6915         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
6916         when fails.
6917         (access_matrix_get_index_for_parameter): New.
6918         * tree-data-ref.h (struct access_matrix): New.
6919         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
6920         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
6921         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
6922         am_vector_index_for_loop): New.
6923         (struct data_reference): Add field access_matrix.
6924         (DR_ACCESS_MATRIX): New.
6925         (compute_data_dependences_for_loop): Update declaration.
6926         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
6927         * lambda.h (lambda_vector_vec_p): Declared.
6928         * lambda-code.c: Depend on pointer-set.h.
6929         (lambda_collect_parameters_from_af, lambda_collect_parameters,
6930         av_for_af_base, av_for_af, build_access_matrix,
6931         lambda_compute_access_matrices): New.
6932         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
6934 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
6936         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
6937         $SOURCEDIR/include.
6939 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6940             Sebastian Pop  <sebastian.pop@amd.com>
6942         PR tree-optimization/36206
6943         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
6944         FOLD_CONVERSIONS.
6945         (instantiate_scev_1): Rename flags to fold_conversions.
6946         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
6947         outeside instantiation_loop.
6948         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
6949         (evolution_function_is_affine_or_constant_p): Removed.
6950         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
6951         instantiate_scev.
6952         (analyze_siv_subscript): Pass in the loop nest number.
6953         Call evolution_function_is_affine_in_loop instead of
6954         evolution_function_is_affine_p.
6955         (analyze_overlapping_iterations): Pass in the loop nest number.
6957 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
6958             Sebastian Pop  <sebastian.pop@amd.com>
6960         PR tree-optimization/36206
6961         * tree-chrec.h (chrec_fold_op): New.
6962         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
6963         and other trees.
6965 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
6967         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
6968         (DIRS_EQ): New.
6969         (remove_duplicates): Do not set inode on non-inode systems.
6970         Use DIRS_EQ.
6972 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
6974         * config.gcc (tm_file): Update comments about relative pathnames.
6976 2008-05-20  Richard Guenther  <rguenther@suse.de>
6978         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
6979         * tree-ssa-sccvn.c (process_scc): Likewise.
6980         * tree-ssa-sink.c (execute_sink_code): Likewise.
6981         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
6982         * tree-vrp.c (process_assert_insertions): Likewise.
6983         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
6984         (perform_tree_ssa_dce): Likewise.
6985         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
6986         (dump_dominator_optimization_stats): Likewise.
6987         * tree-vectorizer.c (vectorize_loops): Likewise.
6989 2008-05-20  Richard Guenther  <rguenther@suse.de>
6991         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
6993 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
6995         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
6996         (ix86_i386elf_return_in_memory): Likewise.
6997         (ix86_i386interix_return_in_memory): Likewise.
6998         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
6999         (SUBTARGET_RETURN_IN_MEMORY): New.
7000         * config/i386/i386elf.h: Likewise.
7001         * config/i386/ptx4-i.h: Likewise.
7002         * config/i386/sol2-10.h: Likewise.
7003         * config/i386/sysv4.h: Likewise.
7004         * config/i386/vx-common.h: Likewise.
7005         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
7006         * config/i386/i386.c (ix86_return_in_memory): Made static and
7007         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
7008         (ix86_i386elf_return_in_memory): Removed.
7009         (ix86_i386interix_return_in_memory): Removed.
7010         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
7011         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
7013 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
7015         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
7017 2008-05-19  Xinliang David Li  <davidxl@google.com>
7019         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18.
7020         * opts.c: Ditto.
7021         * common.opt: Ditto.
7022         * doc/invoke.texi: Ditto.
7024 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7026         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
7027         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
7029 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7031         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
7032         sizes of operand array from 8/4 to 4/2.
7033         (ix86_expand_vector_init_general): Change size of operand array
7034         from 32 to 16.  Remove op0, op1 and half_mode.
7036 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
7038         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
7039         (ix86_expand_vector_init_interleave): Likewise.
7040         (ix86_expand_vector_init_general): Use them.  Assert
7041         word_mode == SImode when n_words == 4.
7043 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
7045         * config/i386/i386.c (ix86_secondary_reload): New static function.
7046         (TARGET_SECONDARY_RELOAD): New define.
7047         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
7048         * config/i386/i386.md (reload_outqi): Remove.
7050 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7052         PR middle-end/35509
7053         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
7054         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
7055         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
7056         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
7057         (fold_builtin_1): Likewise.
7058         * builtins.def (BUILT_IN_ISINF_SIGN): New.
7059         c-common.c (check_builtin_function_arguments): Handle
7060         BUILT_IN_ISINF_SIGN.
7061         * doc/extend.texi: Document __builtin_isinf_sign.
7062         * fold-const.c (operand_equal_p): Handle COND_EXPR.
7064 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
7066         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
7067         EH cleanup at the end of the pass, search for those that have been
7068         turned into forwarder blocks and do the cleanup on their successor.
7070 2008-05-18  Richard Guenther  <rguenther@suse.de>
7072         * tree-cfg.c (verify_gimple_expr): Allow conversions from
7073         pointers to sizetype and vice versa.
7075 2008-05-18 Xinliang David Li   <davidxl@google.com>
7077         * gcc/tree-ssa-dce.c: Coding style fix.
7078         (check_pow): Documentation comment.
7079         (check_log): Documenation comment. Coding style fix.
7080         (is_unnecessary_except_errno_call): Ditto.
7081         (gen_conditions_for_pow): Ditto.
7082         (gen_conditions_for_log): Ditto.
7083         (gen_shrink_wrap_conditions): Ditto.
7084         (shrink_wrap_one_built_in_calls): Ditto.
7085         * gcc/doc/invoke.texi: Better documentation string.
7086         * ChangeLog: Fix wrong change log entries from
7087         May 17 checkin on function call DCE.
7089 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
7091         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
7093 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
7095         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
7096         * df-problems.c (simulation routines): Fixed block comment to
7097         properly say how to add forwards scanning functions.
7099 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7101         * tree-inline.c (setup_one_parameter): Remove dead code.
7103 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
7105         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
7106         a BIT_AND_EXPR only for an INTEGER_TYPE.
7108 2008-05-17 Xinliang David Li   <davidxl@google.com>
7110         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
7111         (check_pow, check_log, is_unnecessary_except_errno_call): New
7112         functions to check for eliminating math functions that are pure
7113         except for setting errno.
7114         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
7115         general condition expressions for shrink-wrapping pow/log calls.
7116         (gen_shrink_wrap_conditions): Ditto.
7117         (shrink_wrap_one_built_in_call): Ditto.
7118         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
7119         (mark_operand_necessary): If debugging, output if OP is necessary.
7120         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
7121         unnecessary.
7122         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
7123         opt level >= 2.
7124         * gcc/common.opt: New user flag -ftree-builtin-dce.
7125         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
7127 2008-05-16  David S. Miller  <davem@davemloft.net>
7129         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
7130         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7132 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
7134         PR target/36246
7135         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
7137 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7139         * ifcvt.c (dead_or_predicable): Rename
7140         df_simulate_one_insn_backwards to df_simulate_one_insn.
7141         * recog.c (peephole2_optimize): Ditto.
7142         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
7143         Ditto.
7144         * df.h: Rename df_simulate_one_insn_backwards to
7145         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
7146         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
7147         scanning of defs and uses.
7148         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
7149         (df_simulate_one_insn_forwards): Removed.
7151 2008-05-16  Doug Kwan  <dougkwan@google.com>
7153         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
7154         QNaN & SNaN.
7155         (real_from_string): Handle NaNs and Inf as approriate.
7157 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7159         * doc/gty.texi (Source Files Containing Type Information): Note
7160         that headers should appear first in the gtfiles list.
7162 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7164         * tree.def (COND_EXEC): Properly documented this code.
7166 2008-05-16  Diego Novillo  <dnovillo@google.com>
7168         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
7169         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
7170         the new field.
7172 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7174         * tree-ssa-dse (max_stmt_uid): Removed.
7175         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt,
7176         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
7177         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
7178         * function.h (cfun.last_stmt_uid): New field.
7179         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
7180         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
7181         New functions.
7182         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
7183         (create_stmt_ann): Initialize the ann->uid field.
7184         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
7185         with new calls.
7186         * tree-flow.h (renumber_gimple_stmt_uids): New function.
7188 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
7190         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
7191         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
7192         (init_empty_tree_cfg): Call it.
7194 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7196         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
7197         Update all users.
7199 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
7201         * doc/invoke.text (-fdump-tree-*-verbose): New option.
7202         * tree-dump.c (dump_options): New verbose option.
7203         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
7204         Add verbose dump.
7205         * tree-pass.h (TDF_VERBOSE): New dump flag.
7206         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
7207         (tree-flow.h): Added include.
7208         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
7210 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
7212         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
7214         From Jie Zhang  <jie.zhang@analog.com>
7215         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7216         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
7217         mcpu=bf561-none and mcpu=bf561-0.2.
7218         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7219         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7220         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
7221         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
7222         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
7223         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
7224         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
7225         option.
7226         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
7227         (cputype_selected): Remove.
7228         (bfin_handle_option): Don't use cputype_selected.
7229         (override_options): When no mcpu option, enable all workarounds.
7230         Don't use bfin_workarounds.
7231         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
7232         processor type.
7233         (DEFAULT_CPU_TYPE): Don't define.
7235 2008-05-16  Richard Guenther  <rguenther@suse.de>
7237         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
7238         on deletion of the last stmt.
7240 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7242         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
7243         V8HImode for SSE2 and V16QImode for SSE4.1.
7245 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
7247         * cgraph.h (compute_inline_parameters): Made public.
7248         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
7249         variable_generate_summary, function_write_summary,
7250         variable_write_summary, variable_read_summary.  Added generate_summary,
7251         write_summary, read_summary.
7252         * cgraphunit.c (cgraph_process_new_functions): Changed call from
7253         pass_ipa_inline.function_generate_summary, to
7254         compute_inline_parameters.
7255         * ipa-inline.c (compute_inline_parameters): Made public and added
7256         node parameter.
7257         (compute_inline_parameters_for_current): New function.
7258         (pass_inline_param): Now calls compute_inline_parameters_for_current.
7259         (inline_generate_summary): Removed parameter and made to loop over
7260         all cgraph nodes.
7261         (pass_ipa_inline): Updated for new IPA_PASS structure.
7262         * passes.c (execute_ipa_summary_passes): Now is called once per
7263         pass rather than once per node*pass.
7265 2008-05-15  Anatoly Sokolov <aesok@post.ru>
7267         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p,
7268         avr_have_mul_p, avr_asm_only_p): Remove variables.
7269         (avr_override_options): Remove initialization of removed variables.
7270         (avr_file_start):  Convert removed variables to fields of
7271         'struct base_arch_s *avr_current_arch'.
7272         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
7273         (AVR_HAVE_MUL): (Ditto.).
7274         (AVR_HAVE_MOVW): (Ditto.).
7275         (AVR_HAVE_LPMX): (Ditto.).
7276         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p,
7277         avr_asm_only_p): Remove declaration.
7279 2008-05-15  Diego Novillo  <dnovillo@google.com>
7281         * config/arm/arm.c (arm_return_in_memory): Fix return type.
7282         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
7284 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
7286         PR middle-end/36194
7287         * combine.c (check_conversion): Rename back to check_promoted_subreg.
7288         Don't call record_truncated_value from here.
7289         (record_truncated_value): Turn it into a for_each_rtx callback.
7290         (record_truncated_values): New function.
7291         (combine_instructions): Call note_uses with record_truncated_values.
7292         Change name of check_conversion to check_promoted_subreg.
7294 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
7296         * doc/sourcebuild.texi: Document support for torture tests.
7298 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7300         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
7301         to alternative 4 of operand 2.
7303 2008-05-15  Richard Guenther  <rguenther@suse.de>
7305         * tree-pass.h (current_pass): Declare.
7306         (get_pass_for_id): Likewise.
7307         * passes.c (passes_by_id, passes_by_id_size): New globals.
7308         (set_pass_for_id): New function.
7309         (get_pass_for_id): Likewise.
7310         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
7311         (execute_function_todo): Flush per function statistics.
7312         * toplev.c (compile_file): Init statistics.
7313         (general_init): Do early statistics initialization.
7314         (finalize): Finish statistics.
7315         * statistics.h (statistics_early_init): Declare.
7316         (statistics_init): Likewise.
7317         (statistics_fini): Likewise.
7318         (statistics_fini_pass): Likewise.
7319         (statistics_counter_event): Likewise.
7320         (statistics_histogram_event): Likewise.
7321         * statistics.c: New file.
7322         * Makefile.in (OBJS-common): Add statistics.o.
7323         (statistics.o): Add dependencies.
7324         * doc/invoke.texi (-fdump-statistics): Document.
7326         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
7327         (insert): Likewise.
7328         (execute_pre): Use statistics_counter_event.
7329         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
7330         (substitute_and_fold): Increment it.  Use statistics_counter_event.
7332 2008-05-15  Diego Novillo  <dnovillo@google.com>
7334         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
7336         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
7337         * tree-ssa-alias.c (new_type_alias): Remove references to
7338         sub-variables from comment.
7339         * tree-ssa-operands.c (swap_tree_operands): Likewise.
7341 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
7343         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
7344         attribute to 1 only for insertps alternative.
7346 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7348         * config/bfin/bfin.md (loadbytes): New pattern.
7349         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
7350         (bfin_init_builtins): Initialize it.
7351         (bdesc_1arg): Add it.
7353 2008-05-15  Sa Liu  <saliu@de.ibm.com>
7355         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
7356         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
7357         * testsuite/lib/target-supports.exp: Add
7358         check_effective_target_fortran_integer_16.
7360 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
7362         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
7363         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
7364         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
7365         (TARGET_RETURN_IN_MEMORY): Define.
7367 2008-05-15  Richard Guenther  <rguenther@suse.de>
7369         PR middle-end/36244
7370         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
7371         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
7372         represent unmodifiable vars.
7374 2008-05-15  Richard Guenther  <rguenther@suse.de>
7376         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
7377         INDIRECT_REF and TARGET_MEM_REF.
7378         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7379         TARGET_MEM_REF.
7381 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
7382             H.J. Lu  <hongjiu.lu@intel.com>
7384         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
7385         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
7386         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
7387         insn alternatives.  Add missing alternatives.
7388         (*vec_concatv2di_rex64_sse4_1): Likewise.
7389         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
7390         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
7391         Require TARGET_SSE.
7393 2008-05-15  Richard Guenther  <rguenther@suse.de>
7395         PR tree-optimization/36009
7396         PR tree-optimization/36204
7397         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
7398         (determine_invariantness_stmt): Record the loop a store is
7399         always executed in.
7400         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
7401         dependency.
7403 2008-05-15  Richard Guenther  <rguenther@suse.de>
7405         PR tree-optimization/34330
7406         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
7407         through the pointer will alias the SMT.
7409 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
7411         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
7413 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
7415         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
7417 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7418             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
7420         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
7421         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
7422         (vashl_optab): New optab for vector/vector shifts.
7423         (vashr_optab): Ditto.
7424         (vlshr_optab): Ditto.
7425         (vrotl_optab): Ditto.
7426         (vrotr_optab): Ditto.
7427         (optab_subtype): New enum for optab_for_tree_code call.
7428         (optab_for_tree_code): Add enum optab_subtype argument.
7430         * optabs.c (optab_for_tree_code): Take an additional argument to
7431         distinguish between a vector shift by a scalar and vector shift by
7432         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
7433         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
7434         vector shift by a vector.
7435         (expand_widen_pattern_expr): Pass additional argument to
7436         optab_for_tree_code.
7438         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
7439         vrotl_optab, vrotr_optab.
7441         * expr.c (expand_expr_real_1): Update calls to
7442         optab_for_tree_code to distinguish between vector shifted by a
7443         scalar and vector shifted by a vector.
7444         * tree-vectorizer.c (supportable_widening_operation): Ditto.
7445         (supportable_narrowing_operation): Ditto.
7446         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
7447         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
7448         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
7449         (vect_create_epilog_for_reduction): Ditto.
7450         (vectorizable_reduction): Ditto.
7451         (vectorizable_operation): Ditto.
7452         (vect_strided_store_supported): Ditto.
7453         (vect_strided_load_supported): Ditto.
7454         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
7455         * expmed.c (expand_shift): Ditto.
7457         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
7458         scalar type.
7459         (ashr@var{m}3): Ditto.
7460         (vashl@var{m}3): Document new vector/vector shift standard name.
7461         (vashr@var{m}3): Ditto.
7462         (vlshr@var{m}3): Ditto.
7463         (vrotl@var{m}3): Ditto.
7464         (vrotr@var{m}3): Ditto.
7466         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
7467         (PPERM_INVERT): Ditto.
7468         (PPERM_REVERSE): Ditto.
7469         (PPERM_REV_INV): Ditto.
7470         (PPERM_ZERO): Ditto.
7471         (PPERM_ONES): Ditto.
7472         (PPERM_SIGN): Ditto.
7473         (PPERM_INV_SIGN): Ditto.
7474         (PPERM_SRC1): Ditto.
7475         (PPERM_SRC2): Ditto.
7477         * config/i386/sse.md (mulv2di3): Add SSE5 support.
7478         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
7479         allows a memory operand to be the value being added, and split it
7480         to improve vectorization.
7481         (sse5_pmacsdqh_mem): Ditto.
7482         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
7483         (sse5_mulv2div2di3_high): Ditto.
7484         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
7485         (vec_pack_trunc_v4si): Ditto.
7486         (vec_pack_trunc_v2di): Ditto.
7487         (sse5_pcmov_<mode>): Remove code that tried to use use
7488         andps/andnps instead of pcmov.
7489         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
7490         pmacsdqh instructions.
7491         (vec_widen_smult_lo_v4si): Ditto.
7493         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
7494         (PPERM_INVERT): Ditto.
7495         (PPERM_REVERSE): Ditto.
7496         (PPERM_REV_INV): Ditto.
7497         (PPERM_ZERO): Ditto.
7498         (PPERM_ONES): Ditto.
7499         (PPERM_SIGN): Ditto.
7500         (PPERM_INV_SIGN): Ditto.
7501         (PPERM_SRC1): Ditto.
7502         (PPERM_SRC2): Ditto.
7503         (ix86_expand_sse_movcc): Move the SSE5 test after the if
7504         true/false tests.
7505         (ix86_expand_int_vcond): If SSE5 generate all possible integer
7506         comparisons.
7507         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
7508         says ignore whether the last reference is a memory operand.
7510 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7511             Paolo Bonzini <bonzini at gnu dot org>
7513         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
7514         shift patterns.
7516         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
7517         (vlshr<mode>3): Rename from vlshr<mode>3.
7518         (vashr<mode>3): Rename from vashr<mode>3.
7519         (mulv4sf3): Change the names of vector shift patterns.
7520         (mulv4si3): Ditto.
7521         (negv4sf2): Ditt.
7523         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
7524         shift insns.
7526         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
7527         (SI_SHLHI): Ditto.
7528         (SI_SHL): Ditto.
7529         (SI_SHLI): Ditto.
7530         (SI_ROTH): Ditto.
7531         (SI_ROTHI): Ditto.
7532         (SI_ROT): Ditto.
7533         (SI_ROTI): Ditto.
7534         (SPU_RL_0): Ditto.
7535         (SPU_RL_1): Ditto.
7536         (SPU_RL_2): Ditto.
7537         (SPU_RL_3): Ditto.
7538         (SPU_RL_4): Ditto.
7539         (SPU_RL_5): Ditto.
7540         (SPU_RL_6): Ditto.
7541         (SPU_RL_7): Ditto.
7542         (SPU_SL_0): Ditto.
7543         (SPU_SL_1): Ditto.
7544         (SPU_SL_2): Ditto.
7545         (SPU_SL_3): Ditto.
7546         (SPU_SL_4): Ditto.
7547         (SPU_SL_5): Ditto.
7548         (SPU_SL_6): Ditto.
7549         (SPU_SL_7): Ditto.
7551         * config/spu/spu.md (v): New iterator macro to add v for vector types.
7552         (floatunssidf2_internal): Change vector/vector shift names.
7553         (floatunsdidf2_internal): Ditto.
7554         (mulv8hi3): Ditto.
7555         (ashrdi3): Ditto.
7556         (ashrti3): Ditto.
7557         (cgt_df): Ditto.
7558         (cgt_v2df): Ditto.
7559         (dftsv): Ditto.
7560         (vashl<mode>3): Rename from ashl<mode>3.
7561         (vashr<mode>3): Rename from ashr<mode>3.
7562         (vlshr<mode>3): Rename from lshr<mode>3.
7563         (vrotl<mode>3): Rename from rotl<mode>3.
7565 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
7567         PR target/36224
7568         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
7569         multiply gives the wrong value when doing widening multiplies.
7570         (vec_widen_smult_lo_v4si): Ditto.
7572 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7574         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
7575         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
7576         emit_library_call_value.
7577         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
7578         * tree.h (ECF_LIBCALL_BLOCK): Removed.
7579         * calls.c (initialize_argument_information, precompute_arguments,
7580         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
7581         (precompute_arguments): Removed flags parameter.
7582         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
7584 2008-05-14  Richard Guenther  <rguenther@suse.de>
7586         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
7587         Make sure to register the store if the use is a PHI_NODE.
7589 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7591         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
7592         memory if the component is to be referenced in BLKmode according
7593         to get_inner_reference.
7595 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
7597         * calls.c (emit_library_call_value_1): Restore code clearing
7598         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
7600 2008-05-14  Olivier Hainque  <hainque@adacore.com>
7601             Nicolas Roche  <roche@adacore.com>
7603         * configure.ac: Add support for a "gcc_subdir" variable in
7604         config-lang.in, to denote a subdirectory where the language/GCC
7605         integration files are to be found.
7606         * configure: Regenerate.
7608 2008-05-14  Ira Rosen  <irar@il.ibm.com>
7610         PR tree-optimization/36098
7611         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
7612         value for the first load in the group in case of a gap.
7613         (vect_build_slp_tree): Check that there are no gaps in loads.
7615 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
7617         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
7618         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
7619         expand_copysign_bit, ): Change call to emit_no_conflict_block to
7620         emit_insn and remove unneeded code to construct extra args.
7621         (emit_no_conflict_block): Removed.
7622         * optabls.h: (emit_no_conflict_block): Removed.
7623         * cse.c (cse_extended_basic_block): Remove search for
7624         REG_NO_CONFLICT note.
7625         * global.c: Removed incorrect comment added in revision 117.
7626         * expr.c (convert_move): Change call to emit_no_conflict_block to
7627         emit_insn.
7628         * recog.c: Change comments so that they do not mention
7629         REG_NO_CONFLICT.
7630         * local_alloc.c (combine_regs): Removed last parameter.
7631         (no_conflict_p): Removed.
7632         (block_alloc): Removed note, no_conflict_combined_regno and set
7633         local vars. Removed all code to process REG_NO_CONFLICT blocks.
7634         (combine_regs): Removed already_dead and code to look for
7635         REG_NO_CONFLICT notes.
7636         * lower_subreg (remove_retval_note): Removed code to look for
7637         REG_NO_CONFLICT block.
7638         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
7639         (resolve_clobber): Remove code to process libcalls that have
7640         REG_NO_CONFLICT notes.
7641         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
7642         case.
7643         * combine.c (can_combine_p, distribute_notes):  Removed
7644         REG_NO_CONFLICT case.
7645         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
7646         to emit_insns.
7647         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
7648         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
7649         Ditto.
7650         * reg-notes.def (NO_CONFLICT): Removed.
7652 2008-05-14  David S. Miller  <davem@davemloft.net>
7654         * config/sparc/sparc.c (sparc_profile_hook): If
7655         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
7656         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
7657         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
7659 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
7661         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
7663 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
7665         PR target/36222
7666         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
7667         and op1 expansion before vector concat to have less live pseudos.
7669 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
7671         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
7672         ix86_expand_vector_set if supported.
7674 2008-05-13  Diego Novillo  <dnovillo@google.com>
7675             Kenneth Zadeck  <zadeck@naturalbridge.com>
7677         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
7679         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
7680         phinodes_print_statistics, init_ssanames, fini_ssanames,
7681         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
7682         release_ssa_name, release_defs, replace_ssa_name_symbol,
7683         ssanames_print_statistics): Move ...
7684         * tree-flow.h: ... here.
7685         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
7686         Use FN instead of cfun.
7687         (make_ssa_name_fn): Rename from make_ssa_name.
7688         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
7689         * tree-flow-inline.h (make_ssa_name): Move from
7690         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
7691         * omp-low.c (expand_omp_parallel):
7692         * tree-flow-inline.h (redirect_edge_var_map_result):
7693         * tree-ssa.c (init_tree_ssa): Add argument FN.
7694         Use it instead of cfun.  Update all users.
7696 2008-05-13  Tom Tromey  <tromey@redhat.com>
7698         PR preprocessor/22168:
7699         * doc/cpp.texi (Top): Update menu.
7700         (Alternatives to Wrapper #ifndef): New node.
7701         (Other Directives): Document deprecation.
7702         (Obsolete Features): Remove menu.
7703         (Assertions): Merge node into Obsolete Features.
7704         (Obsolete once-only headers): Move earlier; rename to Alternatives
7705         to Wrapper #ifndef.
7706         * doc/cppopts.texi: Update.
7707         * c.opt (Wdeprecated): Enable for C and ObjC.
7708         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
7709         (C++ Dialect Options): Move -Wno-deprecated from here to...
7710         (Warning Options): ... here.
7712 2008-05-13  Richard Guenther  <rguenther@suse.de>
7714         PR middle-end/36227
7715         * fold-const.c (fold_sign_changed_comparison): Do not allow
7716         changes in pointer-ness.
7718 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7720         PR target/24713
7721         * config/sh/sh.c (sh_expand_prologue): Don't clear
7722         RTX_FRAME_RELATED_P for push insns.
7724 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
7726         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
7728 2008-05-12  Anatoly Sokolov <aesok@post.ru>
7730         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
7731         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
7732         Use 'machine->is_leaf' instead of 'leaf_func_p'.
7734 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
7736         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
7737         (*vec_concatv4sf_sse): This.
7738         (*sse2_concatv2si): Renamed to ...
7739         (*vec_concatv2si_sse2): This.
7740         (*sse1_concatv2si): Renamed to ...
7741         (*vec_concatv2si_sse): This.
7742         (*vec_concatv2di_rex): Renamed to ...
7743         (*vec_concatv2di_rex64): This.
7744         (*vec_concatv2si_sse4_1): New.
7745         (*vec_concatv2di_rex64_sse4_1): Likewise.
7747 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
7749         PR rtl-optimization/36111
7750         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
7751         that was created for swappable operands.
7753 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
7755         PR ada/36001
7756         * Makefile.in: Substitute GNATMAKE and GNATBIND.
7757         * configure.ac: Add call to ACX_PROG_GNAT.
7759 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
7761         * optc-gen.awk: Fix comment typo.
7763 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
7765         * pretty-print.c (pp_integer_with_precision): Use
7766         HOST_LONG_LONG_FORMAT.
7768 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
7770         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
7772 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
7774         * config/i386/i386.c (bdesc_ptest): Removed.
7775         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
7776         (bdesc_args): Add __builtin_ia32_ptestz128,
7777         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
7778         (ix86_init_mmx_sse_builtins): Updated.
7779         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
7780         (ix86_expand_builtin): Updated.
7782 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
7784         * tree-cfg.c (valid_fixed_convert_types_p): New function.
7785         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
7787 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
7789         * value-prof.c (interesting_stringop_to_profile): Do not
7790         return early for BUILT_IN_MEMPCPY.
7792 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
7794         * calls.c (expand_call): Don't use callgraph to increase
7795         preferred_stack_boundary.
7797         * cgraph.h (cgraph_rtl_info): Use unsigned on
7798         preferred_incoming_stack_boundary.
7800         * final.c (rest_of_clean_state): Use unsigned on
7801         preferred_stack_boundary.
7803 2008-05-09  Tom Tromey  <tromey@redhat.com>
7805         PR preprocessor/22231:
7806         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
7807         proceeding.
7809 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
7811         PR tree-optimization/36129
7812         * tree-ssa-ccp.c: Include value-prof.h.
7813         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
7814         built-in function was folded to a constant.
7815         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
7817 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
7818             Sebastian Pop  <sebastian.pop@amd.com>
7820         * tree-scalar-evolution.c: Document instantiate_scev.
7821         (instantiate_parameters_1): Renamed instantiate_scev_1.
7822         Don't use the same loop for instantiation_loop and evolution_loop.
7823         (instantiate_scev): New.
7824         (instantiate_parameters): Moved...
7825         (resolve_mixers): Update call to instantiate_scev_1 to pass the
7826         same loop twice.  Maintains the semantics for this function.
7827         * tree-scalar-evolution.h (instantiate_scev): Declare.
7828         (instantiate_parameters): ...here.  Now static inline.
7829         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
7830         instead of resolve_mixers.
7832 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
7834         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
7836 2008-05-09  Tomas Bily  <tbily@suse.cz>
7838         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
7839         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
7840         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7841         * c-common.c (c_common_truthvalue_conversion): Likewise.
7842         * tree-object-size.c (compute_object_offset): Likewise.
7843         * tree-inline.c (estimate_num_insns_1): Likewise.
7844         * varasm.c (const_hash_1, compare_constant, copy_constant)
7845         (compute_reloc_for_constant, output_addressed_constants)
7846         (initializer_constant_valid_p): Likewise.
7847         * c-omp.c (check_omp_for_incr_expr): Likewise.
7848         * gimplify.c (gimplify_expr): Likewise.
7849         * c-typeck.c (c_finish_return): Likewise.
7850         * tree-vectorizer.c (supportable_widening_operation)
7851         (supportable_narrowing_operation): Likewise.
7852         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
7853         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
7854         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
7855         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
7856         (descr_info_loc): Likewise.
7857         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7858         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
7859         (fold_unary): Likewise.
7860         * builtins.c (get_pointer_alignment): Likewise.
7861         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
7862         (instantiate_parameters_1): Likewise.
7863         * tree.c (expr_align, stabilize_reference): Likewise.
7864         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
7865         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
7866         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
7867         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7868         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
7869         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
7870         Likewise.
7871         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
7872         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
7873         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
7874         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
7875         (forward_propagate_comparison)
7876         (tree_ssa_forward_propagate_single_use_vars): Likewise.
7877         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
7878         * emit-rtl.c (component_ref_for_mem_expr)
7879         (set_mem_attributes_minus_bitpos): Likewise.
7880         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
7881         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
7882         Likewise.
7883         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
7884         (build_function_call, pointer_diff, build_compound_expr)
7885         (c_finish_return): Likewise.
7886         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
7887         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
7888         Likewise.
7889         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
7890         * expr.c (is_aligning_offset): Likewise.
7891         * tree-ssa-alias.c (is_escape_site): Likewise.
7892         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
7893         (check_all_va_list_escapes): Likewise.
7894         * tree-ssa-loop-ivopts.c (determine_base_object)
7895         (determine_common_wider_type): Likewise.
7896         * dojump.c (do_jump): Likewise.
7897         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
7898         * tree-gimple.c (is_gimple_cast): Likewise.
7899         * fold-const.c (decode_field_reference, )
7900         (fold_sign_changed_comparison, fold_unary, fold_comparison)
7901         (fold_binary): Likewise.
7902         * tree-ssa-alias-warnings.c (find_alias_site_helper)
7903         (already_warned_in_frontend_p): Likewise.
7904         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
7905         * tree.c (really_constant_p, get_unwidened): Likewise.
7906         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
7907         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
7908         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
7909         Likewise.
7910         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
7911         CONVERT_EXPR_P.
7912         (CONVERT_EXPR_P): Define.
7913         (CASE_CONVERT): Define.
7915 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
7917         PR middle-end/36117
7918         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
7919         (delete_unmarked_insns): When deleting a call, call
7920         delete_unreachable_blocks.
7921         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
7922         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
7924 2008-05-08  Richard Guenther  <rguenther@suse.de>
7926         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
7927         (-ftree-salias): Likewise.
7928         (salias-max-implicit-fields): Remove param documentation.
7929         (salias-max-array-elements): Likewise.
7930         * tree-pass.h (pass_create_structure_vars): Remove.
7931         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7932         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7933         * tree-ssa-alias.c (create_structure_vars): Remove.
7934         (gate_structure_vars): Likewise.
7935         (pass_create_structure_vars): Likewise.
7936         (gate_build_alias): Likewise.
7937         (pass_build_alias): Adjust to run always and dump the function.
7938         * common.opt (ftree-salias): Hide.
7939         * passes.c (init_optimization_passes): Remove
7940         pass_create_structure_vars, adjust comment.
7941         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
7942         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
7943         * opts.c (decode_options): Do not set flag_tree_salias.
7944         (common_handle_option): Add OPT_ftree_salias to the backward
7945         compatibility section.
7947 2008-05-08  Richard Guenther  <rguenther@suse.de>
7949         * tree-flow-inline.h (var_can_have_subvars): Move ...
7950         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
7951         * tree-flow.h (var_can_have_subvars): Remove.
7952         (push_fields_onto_fieldstack): Remove.
7953         (sort_fieldstack): Likewise.
7954         (struct fieldoff): Move ...
7955         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
7956         alias_set and base_for_components fields.
7957         (sort_fieldstack): Make static.
7958         (push_fields_onto_fieldstack): Likewise.  Remove code that
7959         handles anything but RECORD_TYPEs.  Remove alias_set and
7960         base_for_components handling.
7961         (create_variable_info_for): Adjust.
7963 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
7965         * common.opt (Wframe-larger-than=): Shorten the help message
7966         to one line.
7967         * doc/invoke.texi (Wframe-larger-than=): Add more description.
7969 2008-05-08  Rafael Espindola  <espindola@google.com>
7971         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
7972         trap.
7973         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
7974         trap and that both operands are gimple values.
7975         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
7976         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
7977         is a fp operation.
7979 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7981         * read-rtl.c (join_c_conditions): Return the first string if the
7982         two strings are equal.
7984 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
7986         * gensupport.h (pred_data): Add a "num_codes" field.
7987         (add_predicate_code): Declare.
7988         * gensupport.c (add_predicate_code): New function.
7989         (std_pred_table): Add an "allows_const_p" field.
7990         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
7991         Remove the (incomplete) list of such codes from the codes field.
7992         (init_predicate_table): Use add_predicate_code.  Add all
7993         RTX_CONST_OBJs if allows_const_p is true.
7994         * genrecog.c (process_define_predicate): Use add_predicate_code.
7996 2008-05-08  David Daney  <ddaney@avtrex.com>
7997             Richard Sandiford  <rsandifo@nildram.co.uk>
7999         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
8000         special case of constant zero operands.
8001         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
8002         old and new values.  Special case constant zero values.
8003         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
8004         fails.
8005         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
8006         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
8008 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
8010         PR target/36090
8011         * simplify-rtx.c (simplify_plus_minus): Create CONST of
8012         similar RTX_CONST_OBJ before CONST_INT.
8014 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
8016         * stmt.c (expand_stack_restore): Change sa mode if needed.
8018 2008-05-08  Richard Guenther  <rguenther@suse.de>
8020         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
8021         return type to bool.
8022         (ix86_sol10_return_in_memory): Likewise.
8023         (ix86_i386elf_return_in_memory): Likewise.
8024         (ix86_i386interix_return_in_memory): Likewise.
8025         * config/i386/i386.c (ix86_return_in_memory): Likewise.
8026         (ix86_sol10_return_in_memory): Likewise.
8027         (ix86_i386elf_return_in_memory): Likewise.
8028         (ix86_i386interix_return_in_memory): Likewise.
8030 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8032         PR bootstrap/36180
8033         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
8034         fndecl argument.
8035         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
8036         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
8037         declared in front.
8039 2008-05-08  Richard Guenther  <rguenther@suse.de>
8041         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
8042         * tree-data-ref.h (struct dr_alias): Remove subvars field.
8043         (DR_SUBVARS): Remove.
8044         * tree-dfa.c (dump_subvars_for): Remove.
8045         (debug_subvars_for): Likewise.
8046         (dump_variable): Do not dump subvars.
8047         (remove_referenced_var): Do not remove subvars.
8048         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
8049         (lookup_subvars_for_var): Remove.
8050         (get_subvars_for_var): Likewise.
8051         (get_subvars_at): Likewise.
8052         (get_first_overlapping_subvar): Likewise.
8053         (overlap_subvar): Likewise.
8054         * tree-flow.h (subvar_t): Remove.
8055         (struct var_ann_d): Remove subvars field.
8056         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
8057         argument.  Remove special handling of SFTs.
8058         (compute_tag_properties): Likewise.
8059         (set_initial_properties): Likewise.
8060         (compute_call_clobbered): Likewise.
8061         (count_mem_refs): Likewise.
8062         (compute_memory_partitions): Likewise.
8063         (compute_flow_insensitive_aliasing): Likewise.
8064         (setup_pointers_and_addressables): Likewise.
8065         (new_type_alias): Likewise.
8066         (struct used_part): Remove.
8067         (used_portions): Likewise.
8068         (struct used_part_map): Likewise.
8069         (used_part_map_eq): Likewise.
8070         (used_part_map_hash): Likewise.
8071         (free_used_part_map): Likewise.
8072         (up_lookup): Likewise.
8073         (up_insert): Likewise.
8074         (get_or_create_used_part_for): Likewise.
8075         (create_sft): Likewise.
8076         (create_overlap_variables_for): Likewise.
8077         (find_used_portions): Likewise.
8078         (create_structure_vars): Likewise.
8079         * tree.def (STRUCT_FIELD_TAG): Remove.
8080         * tree.h (MTAG_P): Adjust.
8081         (struct tree_memory_tag): Remove base_for_components and
8082         unpartitionable flags.
8083         (struct tree_struct_field_tag): Remove.
8084         (SFT_PARENT_VAR): Likewise.
8085         (SFT_OFFSET): Likewise.
8086         (SFT_SIZE): Likewise.
8087         (SFT_NONADDRESSABLE_P): Likewise.
8088         (SFT_ALIAS_SET): Likewise.
8089         (SFT_UNPARTITIONABLE_P): Likewise.
8090         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
8091         (union tree_node): Remove sft field.
8092         * alias.c (get_alias_set): Remove special handling of SFTs.
8093         * print-tree.c (print_node): Remove handling of SFTs.
8094         * tree-dump.c (dequeue_and_dump): Likewise.
8095         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
8096         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
8097         * tree-predcom.c (set_alias_info): Do not set subvars.
8098         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
8099         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
8100         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
8101         (add_vars_for_offset): Remove.
8102         (add_virtual_operand): Remove special handling of SFTs.
8103         (add_call_clobber_ops): Likewise.
8104         (add_call_read_ops): Likewise.
8105         (get_asm_expr_operands): Likewise.
8106         (get_modify_stmt_operands): Likewise.
8107         (get_expr_operands): Likewise.
8108         (add_to_addressable_set): Likewise.
8109         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
8110         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
8111         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
8112         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
8113         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
8114         (tree_node_structure): Likewise.
8115         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
8116         handling of SFTs.
8117         (find_what_p_points_to): Likewise.
8119 2008-05-08  Sa Liu  <saliu@de.ibm.com>
8121         * config/spu/spu.md: Fixed subti3 pattern.
8123 2008-05-08  Richard Guenther  <rguenther@suse.de>
8125         PR middle-end/36154
8126         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
8127         sure to create a representative for trailing arrays for PTA.
8129 2008-05-08  Richard Guenther  <rguenther@suse.de>
8131         PR middle-end/36172
8132         * fold-const.c (operand_equal_p): Two objects which types
8133         differ in pointerness are not equal.
8135 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
8137         * calls.c (compute_argument_block_size): Add argument tree fndecl.
8138         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
8139         (emit_library_call_value_1): Add new variable fndecl initialized by
8140         NULL_TREE. It should be the decl type of orgfun, but this information
8141         seems not to be available here, so it uses the default calling abi.
8142         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
8143         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
8144         by TARGET_RETURN_IN_MEMORY.
8145         * config/i386/i386-interix.h: Likewise.
8146         * config/i386/i386.h: Likewise.
8147         * config/i386/i386elf.h: Likewise.
8148         * config/i386/ptx4-i.h: Likewise.
8149         * config/i386/sol2-10.h: Likewise.
8150         * config/i386/sysv4.h: Likewise.
8151         * config/i386/vx-common.h: Likewise.
8152         * config/cris/cris.h: Removed #if 0 clause.
8153         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
8154         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
8155         argument.
8156         (ix86_sol10_return_in_memory): Likewise.
8157         (ix86_i386elf_return_in_memory): New.
8158         (ix86_i386interix_return_in_memory): New.
8159         * config/mt/mt-protos.h (mt_return_in_memory): New.
8160         * config/mt/mt.c: Likewise.
8161         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8162         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
8163         * config/bfin/bfin.h: Likewise.
8164         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
8165         argument.
8166         * config/bfin/bfin.c: Likewise.
8167         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
8168         * config/alpha/unicosmk.h: Likewise.
8169         * config/i386/cygming.h: Likewise.
8170         * config/iq2000/iq2000.h: Likewise.
8171         * config/mips/mips.h: Likewise.
8172         * config/mn10300/mn10300.h: Likewise.
8173         * config/rs6000/rs6000.h: Likewise.
8174         * config/score/score.h: Likewise.
8175         * config/spu/spu.h: Likewise.
8176         * config/v850/v850.h: Likewise.
8177         * defaults.h: Likewise.
8178         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
8179         * expr.c (emit_block_move): Adjust use of
8180         OUTGOING_REG_PARM_STACK_SPACE.
8181         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
8182         OUTGOING_REG_PARM_STACK_SPACE.
8183         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
8185 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
8187         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
8188         on OMP_RETURN for OMP_FOR.
8190         PR debug/35896
8191         * dwarf2out.c (dw_expand_expr, common_check): Removed.
8192         (fortran_common): New function.
8193         (gen_variable_die): Call fortran_common instead of common_check,
8194         adjust for it returning tree instead of rtx.  Formatting.
8196 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8198         PR rtl/7335
8199         PR rtl/33826
8200         * see.c (see_copy_insn): Copy new pure const attributes for new call.
8201         * c-decl.c (merge_decls): Ditto.
8202         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
8203         to RTL_CONST_OR_PURE_CALL_P.
8204         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
8205         Initialized DECL_LOOPING_CONST_PURE.
8206         (process_call_operands): Set tree_side_effects properly.
8207         * tree.h (TREE_READONLY_DECL_P): Removed.
8208         (DECL_IS_PURE): Renamed to DECL_PURE_P.
8209         (DECL_LOOPING_OR_CONST_P): New macro.
8210         (struct tree_function_decl): Added looping_const_or_pure_p.
8211         (ECF_*) Renumbered.
8212         (ECF_LOOPING_OR_CONST_P): New macro.
8213         * rtlanal.c (pure_const_p): Removed.
8214         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
8215         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
8216         to RTL_CONST_CALL_P.
8217         * ipa-pure-const.c (pure_const_state_e): Added looping field.
8218         (check_decl, check_tree, check_call, scan_function): Initialize
8219         looping.
8220         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
8221         (static_execute): Set looping true for recursive functions.
8222         Undo setting state to IPA_NEITHER for recursive functions.
8223         * cse.c (cse_insn):
8224         * ifcvt.c (noce_can_store_speculate_p): Changed
8225         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or
8226         RTL_CONST_OR_PURE_CALL_P.
8227         * dse.c (scan_insn): Ditto.
8228         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
8229         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
8230         RTL_CONST_OR_PURE_CALL_P.
8231         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
8232         pure_call_p to RTL_CONST_CALL_P.
8233         * gimplify.c (gimplify_call_expr): Clear side effects for
8234         non-looping pure and constant calls.
8235         * calls.c (emit_call_1): Set rtl flags from ecf flags.
8236         (flags_from_decl_or_type): Set ecf flags from decl flags.
8237         (initialize_argument_information): Turn off
8238         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
8239         Change const to pure if callee_copies is true rather than just
8240         turning off const.
8241         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
8242         way of marking pure calls.
8243         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
8244         Remove hack that was supposed to fix pr7335 and remove old
8245         way of marking pure calls.
8246         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
8247         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
8248         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
8249         RTL_CONST_OR_PURE_CALL_P.
8250         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
8251         * loop-invariant.c (find_exits, find_invariant_bb): Changed
8252         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
8253         * sched-deps.c (schedule_analyze): Ditto.
8254         * rtl.h (struct rtx_def): Use call field, unchanging field, and
8255         return_val field of calls to represent pure and const function info.
8256         (CONST_OR_PURE_CALL_P): Deleted macro.
8257         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
8258         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
8259         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
8260         TREE_READONLY.
8261         * tree-optimize.c (execute_fixup_cfg): Added test for
8262         ECF_LOOPING_CONST_OR_PURE.
8263         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
8264         DECL_PURE_P.
8265         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
8266         effects for looping pure or const calls.
8267         (verify_gimple_expr): Added verification code.
8268         * config/alpha/alpha.c (alpha_legitimize_address,
8269         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
8270         RTL_CONST_CALL_P.
8271         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
8272         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
8273         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
8274         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
8275         RTL_CONST_OR_PURE_CALL_P.
8276         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
8277         and const calls to be deleted.
8279 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8281         PR target/35714
8282         * config/i386/mmx.md (mmx_subv2sf3): New expander.
8283         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
8284         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
8285         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8286         to handle nonimmediate operands.
8287         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
8288         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
8289         to handle nonimmediate operands.
8290         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
8291         (mmx_pmulhrwv4hi3): New expander.  Use
8292         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8293         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
8294         (sse2_umulv1siv1di3): New expander.  Use
8295         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8296         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
8297         (mmx_eq<mode>3): New expander.  Use
8298         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8299         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
8300         (mmx_uavgv8qi3): New expander.  Use
8301         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8302         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
8303         (mmx_uavgv4hi3): New expander.  Use
8304         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8306         * config/i386/sse.md
8307         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
8308         to handle nonimmediate operands.
8309         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
8310         to handle nonimmediate operands.
8311         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
8312         to handle nonimmediate operands.
8313         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
8314         to handle nonimmediate operands.
8315         (sse2_unpckhpd_exp): New expander.  Use
8316         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8317         (sse2_unpcklpd_exp): New expander.  Use
8318         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8319         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
8320         to handle nonimmediate operands.
8321         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
8322         to handle nonimmediate operands.
8323         (*sse2_<plusminus_insn><mode>3): Rename from
8324         sse2_<plusminus_insn><mode>3 insn pattern.
8325         (sse2_<plusminus_insn><mode>3): New expander.  Use
8326         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8327         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
8328         (sse2_umulv2siv2di3): New expander.  Use
8329         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8330         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
8331         (sse4_1_mulv2siv2di3): New expander.  Use
8332         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8333         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
8334         (sse2_pmaddwd): New expander.  Use
8335         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8336         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
8337         (sse2_eq<mode>3): New expander.  Use
8338         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8339         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
8340         (sse4_1_eqv2di3): New expander.  Use
8341         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8342         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8343         (sse2_uavgv16qi3): New expander.  Use
8344         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8345         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
8346         (sse2_uavgv16qi3): New expander.  Use
8347         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8348         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
8349         (sse2_uavgv8hi3): New expander.  Use
8350         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8351         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
8352         (ssse3_pmulhrswv8hi3): New expander.  Use
8353         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8354         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
8355         (ssse3_pmulhrswv4hi3): New expander.  Use
8356         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8358         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
8359         (<sse>_vmmul<mode>3): Ditto.
8360         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
8361         (divv2df3): Ditto.
8362         (ssse3_pmaddubsw128): Use register_operand for operand 1.
8363         (ssse3_pmaddubsw): Ditto.
8365         * config/i386/i386.c (struct_builtin_description)
8366         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
8367         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
8368         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
8369         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
8370         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
8371         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
8372         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
8373         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
8374         (ix86_fixup_binary_operands): Assert that src1
8375         and src2 must have the same mode when swapped.
8376         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
8377         and ix86_binary_operator_ok.  Do not force operands in registers
8378         when optimizing.
8380 2008-05-07  Jan Hubicka  <jh@suse.cz>
8382         * cgraph.c (dump_cgraph_node): Update.
8383         * cgraph.h (cgraph_local_info): Break out inline summary.
8384         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
8385         hook.
8386         * ipa-inline (inline_summary): New accestor function.
8387         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
8388         cgraph_decide_inlining, compute_inline_parameters): Update.
8389         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
8391 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
8393         Cleanup ColdFire scheduling support and add V4 pipeline model.
8395         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
8396         (define_attr cpu): Add cfv4 value.
8397         (define_attr type, define_attr type1): Merge into a single 'type'
8398         attribute.  Update all uses.
8399         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
8400         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
8401         Update all uses.
8402         (define_attr opx_mem, define_attr opy_mem): Remove.
8403         (define_attr op_mem): Clean up, update comment.
8404         (define_attr size): Use specific values instead of general int.
8405         (define_attr guess, define_attr split): Remove.  Update all uses.
8406         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
8407         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
8408         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
8409         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
8410         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
8411         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
8412         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
8413         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
8414         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
8415         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
8416         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
8417         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
8418         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
8419         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
8420         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
8421         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
8422         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
8423         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
8424         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
8425         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
8426         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
8427         Update or set attributes.
8428         (stack_tie): New fake instruction.
8430         * config/m68k/m68k.h (TUNE_CFV4): New macro.
8431         (m68k_sched_attr_size): Update declaration.
8432         (m68k_sched_attr_type2): Remove.
8433         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
8434         Declare new bypass predicates.
8436         * config/m68k/m68k.c (m68k_sched_issue_rate,
8437         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
8438         implementations.
8439         (TARGET_SCHED_ISSUE_RATE,
8440         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
8441         (override_options): Handle scheduling for ColdFire V4 core.
8442         (m68k_expand_prologue): Emit stack_tie.
8443         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
8444         'OP_TYPE_FPN'.  Update all uses.
8445         (sched_guess_p): Remove.
8446         (sched_address_type): Handle symbolic addresses.
8447         (sched_get_operand): New static function.
8448         (sched_operand_type): Merge into sched_attr_op_type.
8449         (sched_attr_op_type): Handle FP registers, handle quick constants,
8450         update.
8451         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
8452         (m68k_sched_attr_size): Update.  Move logic to ...
8453         (sched_get_attr_size_int): New static function.
8454         (sched_get_opxy_mem_type): New static function.
8455         (m68k_sched_attr_op_mem): Update.
8456         (m68k_sched_attr_type2): Remove.
8457         (sched_cfv4_bypass_data): New static variable.
8458         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
8459         (m68k_sched_issue_rate): Implement scheduler hook.
8460         (struct _sched_ib: enabled_p): New field.
8461         (m68k_sched_variable_issue): Update.  Handle V4.
8462         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
8463         sched_dump_class_func_t, sched_dump_split_class,
8464         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
8465         sched_dump_dfa_class, m68k_sched_dump): Remove.
8466         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
8467         hook.
8468         (m68k_sched_init_global): Remove statisctics dumping, introduce
8469         sanity check that all instructions have pipeline reservations.  Handle
8470         ColdFire V4 core.
8471         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
8472         Handle ColdFire V4 core.
8473         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
8474         New static functions.
8475         (m68k_sched_address_bypass_p): New bypass predicate.
8476         (sched_get_indexed_address_scale): New static function.
8477         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
8479         * cf.md: Update comments.
8480         (define_attr type2): Remove.  Use 'type' attribute instead.
8481         Update all uses.
8482         (cf_ib): Rename to cfv123_ib.  Update all uses.
8483         (cf_oep): Rename to cfv123_oep.  Update all uses.
8484         (cf_chr): Rename to cfv123_chr.  Update all uses.
8485         (cf_mem): Rename to cfv123_mem.  Update all uses.
8486         (cf_mac): Move to more appropriate place.
8487         (cfv123_guess): New automaton and cpu_unit.
8488         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
8489         Update uses of 'size' attribute.  Handle before reload scheduling.
8490         (cfv123_guess): New dummy reservation for unhandled instructions.
8491         (cfv4_*): Pipeline description of ColdFire V4 core.
8492         (ignore): New reservation to handle 'ignore' type.
8494 2008-05-07  Ian Lance Taylor  <iant@google.com>
8496         PR middle-end/36013
8497         * gimplify.c (find_single_pointer_decl_1): Don't look through
8498         indirections.
8499         (find_single_pointer_decl): Adjust comments.
8501 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
8503         PR middle-end/36137
8504         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
8505         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
8507         PR middle-end/36106
8508         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
8509         integral type rather than floating point, then VIEW_CONVERT_EXPR
8510         to the floating point type.
8512 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
8514         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
8515         TFmode op0 to register.
8517 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
8519         * c-decl.c (grokdeclarator): Comment typo.
8521 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
8523         * tree-flow.h: Remove prototype for computed_goto_p.
8524         * tree-cfg.c (computed_goto_p): Make static.
8526 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
8528         PR target/35657
8529         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
8530         (contains_aligned_value_p): This.  Handle _Decimal128.
8531         (ix86_function_arg_boundary): Only align _Decimal128 to its
8532         natural boundary and handle it properly.
8534 2008-05-06  Martin Jambor  <mjambor@suse.cz>
8536         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
8537         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
8538         (ipcp_method_set_orig_node): Removed.
8539         (ipcp_cval_get_cvalue_type): Removed.
8540         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
8541         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
8542         (ipcp_cval_set_cvalue_type): Removed.
8543         (ipcp_cval_get_cvalue): Removed.
8544         (ipcp_cval_set_cvalue): Removed.
8545         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
8546         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
8547         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
8548         (ipcp_cval_meet): Renamed to ipa_lattice_meet
8549         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
8550         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
8551         (ipcp_get_ith_lattice): Changed parameters.
8552         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
8553         (ipcp_lattice_from_jfunc): Changed parameters.
8554         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
8555         (ipcp_method_cval_print): Added temporary variable info.
8556         (ipcp_redirect): Removed already unused local variable caller.
8557         (ipcp_redirect): New temporary variable orig_callee_info
8558         (ipcp_redirect): Removed newly unused local variable callee.
8559         (ipcp_redirect): Removed (a bit confusing) local variable type.
8560         (ipcp_insert_stage): Added local variable info.
8561         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters
8562         renamed too
8563         (ipcp_formal_create): Removed.
8564         (ipcp_method_cval_set): Removed.
8565         (ipcp_propagate_stage): Renamed lattice variables.
8566         (ipcp_method_cval_set_cvalue_type): Removed.
8567         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
8568         (ipcp_print_all_lattices): Changed printed strings to refer to
8569         lattices rather than cvals.
8570         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
8571         (ipcp_propagate_const): Changed formal parameters.
8572         (build_const_val): Changed formal parameters.
8573         (ipcp_insert_stage): Removed useless variable cvalue
8574         (build_const_val): Changed formal parameters.
8575         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
8576         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
8577         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
8578         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
8579         (ipcp_print_func_profile_counts): Changed string from "method" to
8580         "function"
8581         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
8582         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
8583         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
8584         (ipcp_structures_print): Renamed to ipcp_print_all_structures
8585         (ipcp_profile_print): Renamed to ipcp_print_profile_data
8586         (ipcp_lat_is_const): Changed parameters and made inline.
8587         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
8588         (ipcp_redirect): Renamed to ipcp_need_redirect_p
8589         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using
8590         the predicate condition directly
8591         (ipcp_propagate_stage): Added local variable args. Removed local
8592         variable callee.  (Both are mere code simplifications.)
8593         (ipcp_method_dont_insert_const): Renamed to
8594         ipcp_node_not_modifiable_p.
8595         (ipcp_node_not_modifiable_p): Made inline.
8596         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
8597         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
8598         (ipcp_print_all_lattices): Removed variable cvalue
8599         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
8600         Updated comments.
8602 2008-05-06  Olivier Hainque  <hainque@adacore.com>
8604         * tree-sra.c (try_instantiate_multiple_fields): Early return
8605         if field has POINTER_TYPE.
8607 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
8609         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
8610         by using 'q' specifier for instruction.
8611         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
8613 2008-05-06  Anatoly Sokolov <aesok@post.ru>
8615         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
8616         Change mode of zero_extract from QImode to HImode.
8617         (sign bit tests peepholes): (Ditto.).
8619 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
8621         * config/i386/mmx.md: Remove double backslashes from asm templates.
8622         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
8623         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8624         to handle nonimmediate operands.
8625         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
8626         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
8627         to handle nonimmediate operands.
8628         (*mmx_<code>v2sf3_finite): New insn pattern.
8629         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
8630         (mmx_<code>v2sf3): New expander.  Use
8631         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8632         (mmx_<plusminus_insn><mode>3): New expander.  Use
8633         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8634         (*mmx_<plusminus_insn><mode>3): New insn pattern.
8635         (mmx_add<mode>3): Removed.
8636         (mmx_ssadd<mode>3): Ditto.
8637         (mmx_usadd<mode>3): Ditto.
8638         (mmx_sub<mode>3): Ditto.
8639         (mmx_sssub<mode>3): Ditto.
8640         (mmx_ussub<mode>3): Ditto.
8641         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
8642         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
8643         to handle nonimmediate operands.
8644         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
8645         insn pattern.
8646         (mmx_smulv4hi3_highpart): New expander.  Use
8647         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8648         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
8649         insn pattern.
8650         (mmx_umulv4hi3_highpart): New expander.  Use
8651         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8652         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
8653         (mmx_<code>v4hi3): New expander.  Use
8654         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8655         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
8656         (mmx_<code>v8qi3): New expander.  Use
8657         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8658         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
8659         (mmx_<code><mode>3): New expander.  Use
8660         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
8662 2008-05-05  Jan Hubicka  <jh@suse.cz>
8664         PR tree-optimization/36118
8665         * passes.c (pass_init_dump_file): Fix dump header.
8667 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8669         PR middle-end/36141
8670         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
8671         VCE for function decls.
8673 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8675         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
8677 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
8679         * config/i386/i386.md (sat_plusminus): New.
8680         (plusminus_insn): Likewise.
8681         (plusminus_mnemonic): Likewise.
8682         (addsub): Removed.
8683         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
8684         (*<addsub><mode>3_cc_overflow): Renamed to ...
8685         (*<plusminus_insn><mode>3_cc_overflow): This.
8686         (*<addsub>si3_zext_cc_overflow): Renamed to ...
8687         (*<plusminus_insn>si3_zext_cc_overflow): This.
8689         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
8690         (<plusminus_insn><mode>3): This.
8691         (*<addsub><mode>3): Renamed to ...
8692         (*<plusminus_insn><mode>3): This.
8693         (<sse>_vm<addsub><mode>3): Renamed to ...
8694         (<sse>_vm<plusminus_insn><mode>3): This.
8695         (sse3_h<addsub>v4sf3): Renamed to ...
8696         (sse3_h<plusminus_insn>v4sf3): This.
8697         (sse3_h<addsub>v2df3): Renamed to ...
8698         (sse3_h<plusminus_insn>v2df3): This.
8699         (<plusminus_insn><mode>3): New.
8700         (*<plusminus_insn><mode>3): Likewise.
8701         (sse2_<plusminus_insn><mode>3): Likewise.
8702         (add<mode>): Removed.
8703         (*add<mode>3): Likewise.
8704         (sse2_ssadd<mode>3): Likewise.
8705         (sse2_usadd<mode>3): Likewise.
8706         (sub<mode>3): Likewise.
8707         (*sub<mode>3): Likewise.
8708         (sse2_sssub<mode>3): Likewise.
8709         (sse2_ussub<mode>3): Likewise.
8711 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
8713         * gthr-single.h: Add in required interface elements as per gthr.h.
8714         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
8715         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
8716         Generalize UNUSED macro.
8717         (__gthread_once): Add.
8718         (__gthread_key_create): Add.
8719         (__gthread_key_delete): Add.
8720         (__gthread_getspecific): Add.
8721         (__gthread_setspecific): Add.
8723 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
8725         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
8726         the same size types for the indirect reference on the rhs, then
8727         create a VCE.
8729 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
8731         * config/i386/i386.md
8732         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
8733         one insn template instead of template series.
8734         (*xordi_1_rex64): Ditto.
8735         (*xordi_2_rex64): Ditto.
8737 2008-05-05  Ira Rosen  <irar@il.ibm.com>
8739         PR tree-optimization/36119
8740         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
8741         in case of SLP.
8743 2008-06-04  Jan Hubicka  <jh@suse.cz>
8745         tree-optimization/36100
8746         * tree-pass.h (pass_O0_always_inline): Declare.
8747         * ipa-inline.c (inline_transform): Remove dead code.
8748         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
8749         pass_O0_always_inline): New.
8750         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
8752 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
8754         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
8755         mnemonic in this_param move for TARGET_64BIT.
8757 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
8759         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
8760         (*strmovsi_rex_1): Ditto.
8761         (*strsetsi_1): Ditto.
8762         (*strsetsi_rex_1): Ditto.
8764         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
8765         adddicc expanders using SWI mode iterator.
8767 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
8769         PR target/36121
8770         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
8771         argument handling.
8773 2008-05-04  David S. Miller  <davem@davemloft.net>
8775         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
8776         (sparc*-*-linux*): Use linux.h in tm_file.
8777         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
8778         compiler defaulting to 32-bit.
8779         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
8780         no longer needed.
8781         * config/sparc/linux.h: Remove definitions now obtained
8782         properly from linux.h
8783         * config/sparc/linux64.h: Likewise.
8784         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
8785         don't want this setting for 32-bit builds in a biarch compiler.
8786         * doc/install.texi: Add sparc-linux to list of targets
8787         supporting --enable-targets=all.
8789 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
8791         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
8793 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
8795         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
8796         after V4SI_FTYPE_V8HI.
8797         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
8798         case V4SI_FTYPE_V2DF.
8800 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
8802         * doc/invoke.texi (max-flow-memory-locations): Removed.
8803         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
8805 2008-05-03  Richard Guenther  <rguenther@suse.de>
8807         PR middle-end/34973
8808         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
8810 2008-05-02  David S. Miller  <davem@davemloft.net>
8812         * config.gcc (need_64bit_hwint): Document libcpp dependency.
8814 2008-05-02  Simon Baldwin <simonb@google.com>
8816         PR bootstrap/36108
8817         * c-common.h (warn_array_subscript_range): Removed.
8818         * c-common.c (warn_array_subscript_range): Ditto.
8819         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
8820         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
8822 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8824         * config/i386/i386.c (ix86_special_builtin_type): New.
8825         (bdesc_special_args): Likewise.
8826         (ix86_expand_special_args_builtin): Likewise.
8827         (ix86_init_mmx_sse_builtins): Updated.
8828         (ix86_expand_builtin): Updated.
8829         (ix86_expand_store_builtin): Removed.
8830         (ix86_expand_unop_builtin): Likewise.
8832         * config/i386/mm3dnow.h (__v2sf): Moved to ...
8833         * config/i386/mmintrin.h (__v2sf): Here.
8835         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
8836         const __v2sf.
8837         (_mm_loadl_pi): Likewise.
8838         (_mm_storeh_pi): Replace __v2si with __v2sf.
8839         (_mm_storel_pi): Likewise.
8841         * doc/extend.texi: Correct __builtin_ia32_loadhps,
8842         __builtin_ia32_loadlps, __builtin_ia32_storehps,
8843         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
8844         __builtin_ia32_loadlpd.
8846 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
8848         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
8849         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
8850         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
8851         (ix86_init_mmx_sse_builtins): Updated.
8852         (ix86_expand_args_builtin): Likewise.
8853         (ix86_expand_builtin): Likewise.
8854         (ix86_expand_unop1_builtin): Renamed to ...
8855         (ix86_expand_unop_vec_merge_builtin): This.
8857 2008-05-01  Jan Hubicka  <jh@suse.cz>
8859         PR bootstrap/36100
8860         * ipa-inline.c (inline_generate_summary): Make static.
8861         (inline_transform): Do not call inlining at -O0; make static.
8862         * passes.c (execute_todo): Add sanity check.
8863         (execute_one_ipa_transform_pass): Execute proper flags.
8865 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
8867         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
8868         (DECL_NONADDRESSABLE_P): Likewise.
8869         * alias.c (record_component_aliases): Fix comment.
8871 2008-05-01  Simon Baldwin <simonb@google.com>
8873         * c-common.h (warn_array_subscript_range): New function.
8874         * c-common.c (warn_array_subscript_range): Ditto.
8875         * tree-vrp.c (check_array_ref): Corrected code to agree with
8876         comment, ignoring only arrays of size 0 or size 1.
8877         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
8879 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8881         * config/i386/i386.c (ix86_builtin_type): Replace
8882         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
8883         (bdesc_args): Updated.
8884         (ix86_init_mmx_sse_builtins): Likewise.
8885         (ix86_expand_args_builtin): Likewise.
8887         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
8888         with __v1di.
8890         * doc/extend.texi: Correct __builtin_ia32_palignr.
8892 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8894         PR target/36095
8895         * config/i386/i386.c (bdesc_crc32): Removed.
8896         (ix86_expand_crc32): Likewise.
8897         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
8898         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
8899         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
8900         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
8901         UINT_FTYPE_UINT_UCHAR.
8902         (bdesc_args): Updated. Add crc32 builtins.
8903         (ix86_init_mmx_sse_builtins): Updated.
8904         (ix86_expand_args_builtin): Updated to support subreg.
8906         * doc/extend.texi: Correct __builtin_ia32_crc32di.
8908 2008-05-01  Jan Hubicka  <jh@suse.cz>
8910         * tree-pass.h (opt_pass): Add IPA_PASS.
8911         (varpool_node, cgraph_node): Forward declare.
8912         (ipa_opt_pass): Define.
8913         (pass_ipa_inline): Turn into ipa_opt_pass.
8914         (pass_apply_inline): Remove.
8915         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
8916         (apply_inline): Turn into ....
8917         (inline_transform): ... this one.
8918         (inline_generate_summary): New function.
8919         (pass_apply_inline): Remove.
8920         * function.h (ipa_opt_pass): Forward declare structure; typedef;
8921         vector.
8922         (struct function): Add ipa_transforms_to_apply.
8923         * passes.c (register_one_dump_file): Work on IPA_PASS.
8924         (init_optimization_passes): Remove pass_inline_parameters and
8925         pass_apply_inline.
8926         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
8927         (execute_one_pass) ... here; apply transforms when possible.
8928         (add_ipa_transform_pass, execute_ipa_summary_asses,
8929         execute_one_ipa_transform_pass): New.
8930         (execute_ipa_pass_list): Update for IPA_PASS type.
8932 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8934         * config/i386/i386.c (ix86_builtin_type): Add
8935         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
8936         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
8937         (bdesc_args): Add SSE4a builtins.
8938         (ix86_init_mmx_sse_builtins): Updated.
8939         (ix86_expand_args_builtin): Likewise.
8940         (ix86_expand_builtin): Likewise.
8942 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
8944         * config/i386/i386.c (ix86_builtin_type): Add
8945         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
8946         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
8947         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
8948         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
8949         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
8950         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
8951         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
8952         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
8953         and DI_FTYPE_DI_DI_INT.
8954         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
8955         (ix86_init_mmx_sse_builtins): Updated.
8956         (ix86_expand_args_builtin): Likewise.
8957         (ix86_expand_builtin): Likewise.
8958         (ix86_expand_binop_imm_builtin): Removed.
8960         * doc/extend.texi: Correct __builtin_ia32_palignr128.
8962 2008-04-30  Richard Guenther  <rguenther@suse.de>
8964         PR tree-optimization/32921
8965         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
8967 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
8969         * config/arm/arm.c (arm_unwind_emit): Use
8970         crtl->all_throwers_are_sibcalls instead of
8971         cfun->all_throwers_are_sibcalls.
8972         (arm_output_fn_unwind): Likewise.
8973         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
8974         instead of cfun->uses_pic_offset_table.
8975         (frv_expand_prologue): Likewise.
8976         (frv_frame_pointer_required): Likewise.
8977         (frv_expand_fdpic_call): Likewise.
8978         (frv_emit_movsi): Likewise.
8979         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
8980         cfun->returns_pcc_struct instead of
8981         current_function_returns_pcc_struct.
8982         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
8983         instead of cfun->calls_eh_return.
8984         (m32c_pushm_popm): Likewise.
8985         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
8986         "extern" declaration.
8988 2008-04-30  Richard Guenther  <rguenther@suse.de>
8990         PR tree-optimization/21636
8991         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
8992         constant address.
8993         (evaluate_stmt): Print the likely value.
8994         (ccp_visit_stmt): Avoid excessive vertical spacing.
8996 2008-04-30  Rafael Espindola  <espindola@google.com>
8998         * builtins.c (fold_call_expr): Return realret.
8999         * tree-ssa-threadedge.c
9000         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
9001         __builtin_object_size.
9003 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
9005         * gcc.c (wrapper_string): New variable.
9006         (insert_wrapper): New function.
9007         (execute): New option -wrapper.
9008         * doc/invoke.texi (Overall Options): New driver option -wrapper.
9010 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
9012         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
9013         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
9014         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
9015         from...
9016         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
9017         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
9018         config/rs6000/e500crtres64gprctr.asm,
9019         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
9020         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
9021         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
9022         config/rs6000/e500crtsav64gprctr.asm,
9023         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
9024         config/rs6000/e500crtsavg64gprctr.asm: New files.
9025         * config/rs6000/t-ppccomm: Add build rules for new files.
9026         (LIB2FUNCS_STATIC_EXTRA): Add new files.
9027         * config/rs6000/t-netbsd: Add build rules for new files.
9028         (LIB2FUNCS_STATIC_EXTRA): New variable.
9029         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
9030         (CRTSAVRES_DEFAULT_SPEC): Likewise.
9031         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
9033 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
9035         * config/i386/i386.c (ix86_builtin_type): Add
9036         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
9037         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
9038         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
9039         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
9040         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
9041         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
9042         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
9043         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
9044         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
9045         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
9046         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
9047         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
9048         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
9049         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
9050         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
9051         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
9052         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
9053         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
9054         V1DI_FTYPE_V2SI_V2SI.
9055         (bdesc_2arg): Moved to ...
9056         (bdesc_args): Here.
9057         (ix86_init_mmx_sse_builtins): Updated.
9058         (ix86_expand_args_builtin): Updated.  Take a pointer
9059         to const struct builtin_description.  Handle comparison
9060         builtin functions.
9061         (ix86_expand_sse_compare): Take a new argument for swapping operands.
9062         (ix86_expand_builtin): Updated.
9064         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
9065         (ssse3_pmaddubsw128): This.
9066         (ssse3_pmaddubswv4hi3): Renamed to ...
9067         (ssse3_pmaddubsw): This.
9069         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
9070         (__builtin_ia32_packssdw128): Likewise.
9071         (__builtin_ia32_packuswb128): Likewise.
9072         (__builtin_ia32_pmaddubsw): Likewise.
9073         (__builtin_ia32_pmaddubsw128): Likewise.
9075 2008-04-30  Richard Guenther  <rguenther@suse.de>
9077         PR tree-optimization/14847
9078         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
9079         (recognize_bits_test): Use it.
9080         (recognize_single_bit_test): Likewise.
9082 2008-04-30  Martin Jambor  <mjambor@suse.cz>
9084         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
9085         instead of setting number of formal parameters to zero.
9086         (ipcp_init_stage): Do not set the number of actual parameters to zero
9087         either.
9088         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
9089         which are called with variable number of arguments.
9090         (ipcp_insert_stage): Explicitely skipping all nodes which are
9091         called with variable number of arguments.
9092         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible
9093         number of parameters.
9095         * ipa-prop.h (struct ipa_node_params): Added flag
9096         called_with_var_arguments
9097         (ipa_set_param_count): Added.  Changed sole setter to use it.
9098         (ipa_get_param_count): Added.  All readers of param_count
9099         converted to use it instead.
9100         (ipa_set_called_with_variable_arg): Added.
9101         (ipa_is_called_with_var_arguments): Added.
9102         (ipa_get_ith_param): Added.  All readers of param_decls converted
9103         to use it instead.
9104         (ipa_set_cs_argument_count): Added, sole writer to argument_count
9105         changed to use it.
9106         (ipa_get_cs_argument_count): Added, all readers of argument_count
9107         changed to cal it.
9108         (ipa_get_ith_jump_func): Added. Accessors of jump values changed
9109         to use it.
9111         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
9112         (struct ipcp_lattice): Renamed cval_type to type
9113         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
9115         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
9116         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
9117         (ipcp_insert_stage): Changed the type of variable cvalue to tree
9118         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
9119         (build_const_val): Changed the type of parameter cvalue to tree
9120         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
9121         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
9123         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called
9124         constant
9126         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
9127         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
9128         (ipa_add_method): Renamed to ipa_push_func_to_list
9129         (ipa_remove_method): Renamed to ipa_pop_func_from_list
9130         (ipa_callsite_param_count): Removed.
9131         (ipa_callsite_param_count_set): Removed.
9132         (ipa_callsite_param): Removed.
9133         (ipa_callsite_callee): Removed.
9134         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
9135         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
9136         (ipa_method_formal_count): Removed.
9137         (ipa_method_formal_count_set): Removed.
9138         (ipa_method_get_tree): Removed.
9139         (ipa_method_tree_map_create): Removed.
9140         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
9141         (ipa_create_param_decls_array): Creates the array itself
9142         (ipa_create_param_decls_array): Temporary variable info instead of
9143         a few dereferences.
9144         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
9145         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
9146         (get_type): Removed.
9147         (ipa_jf_get_info_type): Removed.
9148         (ipa_node_create): Renamed to ipa_create_node_params
9149         (ipa_free): Renamed to ipa_free_all_node_params
9150         (ipa_nodes_create): Renamed to ipa_create_all_node_params
9151         (ipa_edges_create): Renamed to ipa_create_all_edge_args
9152         (ipa_edges_free): Renamed to ipa_free_all_edge_args
9153         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
9154         (ipa_free_all_node_params): Deallocation to jump_functions moved to
9155         ipa_free_all_edge_args
9156         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
9157         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
9158         (ipa_create_methodlist_node): Removed.
9159         (ipa_methodlist_method): Removed.
9160         (ipa_methodlist_method_set): Removed.
9161         (ipa_methodlist_next_method): Removed.
9162         (ipa_methodlist_next_method_set): Removed.
9163         (ipa_method_is_modified): Removed.
9164         (ipa_method_modify_create): Removed.
9165         (ipa_method_modify_init): Temporary variable info instead of a few
9166         dereferences.
9167         (ipa_detect_param_modifications): Temporary variable info instead of
9168         a few dereferences.
9169         (ipa_compute_jump_functions): Temporary variable info instead of
9170         a few dereferences.
9171         (ipa_method_modify_set): Removed.
9172         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
9173         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather
9174         than craph_node as the first parameter.
9175         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
9176         (ipa_method_modify_init): Removed.
9177         (ipa_compute_jump_functions): Added a temp variable instead of
9178         repeatadly dereferencing the cgraph_edge.aux pointer
9179         (ipa_callsite_param_set_type): Removed.
9180         (ipa_compute_jump_functions): i renamed to index and moved to
9181         an inner block
9182         (ipa_callsite_param_set_info_type_formal): Removed.
9183         (ipa_callsite_param_set_info_type): Removed.
9184         (ipa_callsite_param_map_create): Removed.
9185         (ipa_callsite_tree): Removed.
9186         (ipa_callsite_caller): Removed.
9187         (ipa_pop_func_from_list): return_method removed to return_func
9189         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
9190         prefixed all values with IPA_. Changed all users.
9191         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN,
9192         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF
9193         and FORMAL_IPATYPE IPA_PASS_THROUGH.
9194         (union parameter_info): Renamed to jump_func_value.
9195         (union jump_func_value): Renamed value to constant
9196         (struct ipa_jump_func): Renamed info_type to value
9197         (struct ipa_node): Renamed to ipa_node_params
9198         (struct ipa_node_params): Renamed ipa_arg_num to param_count
9199         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
9200         (struct ipa_node_params): Renamed ipa_mod to modified_flags
9201         (struct ipa_edge): Renamed to ipa_edge_args
9202         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
9203         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
9204         (struct ipa_methodlist): Renamed to ipa_func_list
9205         (struct ipa_func_list): method_p renamed to node, next_method
9206         renamed to next
9207         (ipa_methodlist_p): Removed, switched all users to struct pointer
9208         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
9210 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
9212         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
9213         (rs6000_emit_epilogue): Use backchain to restore only when we
9214         have a large frame.  Make use of frame pointer to restore if we
9215         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
9217 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
9219         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
9220         Add mode to zero_extract.
9221         (sign bit tests peepholes): (Ditto.).
9223 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
9225         * config/i386/i386.c (ix86_builtins): Replace Prescott New
9226         Instructions in comments with SSE3.
9227         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
9228         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
9229         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
9230         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
9231         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
9232         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
9233         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
9234         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
9235         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
9236         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
9237         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
9238         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
9239         (bdesc_sse_args): Renamed to ...
9240         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
9241         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
9242         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
9243         IX86_BUILTIN_FABSQ.
9244         (bdesc_1arg): Moved to ...
9245         (bdesc_args): Here.
9246         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
9247         Instructions in comments with SSE3.
9248         (ix86_expand_sse_operands_builtin): Renamed to ...
9249         (ix86_expand_args_builtin): This.  Updated.
9250         (ix86_expand_unop1_builtin): Update comments.
9251         (ix86_expand_builtin): Updated.
9253 2008-04-29  Richard Guenther  <rguenther@suse.de>
9255         PR tree-optimization/36078
9256         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9257         Update virtual SSA form after cleaning up the CFG.
9259 2008-04-29  Richard Guenther  <rguenther@suse.de>
9261         PR middle-end/15255
9262         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
9264 2008-04-29  Richard Guenther  <rguenther@suse.de>
9266         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
9267         (compute_may_aliases): Do not call finalize_ref_all_pointers.
9268         (compute_flow_insensitive_aliasing): Do not treat
9269         PTR_IS_REF_ALL pointers special.
9270         (get_smt_for): Likewise.
9271         (may_alias_p): Re-structure.
9272         (is_escape_site): A ref-all pointer conversion is not an escape site.
9273         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
9274         PTR_IS_REF_ALL pointers special.
9275         * tree-ssa-structalias.h (struct alias_info): Remove
9276         ref_all_symbol_mem_tag field.
9277         (PTR_IS_REF_ALL): Remove.
9279 2008-04-29  Richard Guenther  <rguenther@suse.de>
9281         PR middle-end/36077
9282         * fold-const.c (extract_muldiv_1): In combining division constants
9283         make sure to never overflow.
9285 2008-04-29  Nick Clifton  <nickc@redhat.com>
9287         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
9289 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9291         PR bootstrap/35169
9292         * optc-gen.awk: Work around HP-UX/IA awk bug.
9294 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
9296         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
9297         2008-04-25 commit.
9299 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9301         PR target/36073
9302         * config/i386/i386.md
9303         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
9304         Change operand 1 predicate to nonimmediate_operand.
9306 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
9308         PR debug/36060
9309         * dwarf2out.c (struct die_struct): Mark as chain_circular through
9310         die_sub field.
9311         * gengtype.c (walk_type, write_func_for_structure): Handle
9312         chain_circular.
9313         * doc/gty.texi: Document chain_circular.
9315 2008-04-28  Richard Guenther  <rguenther@suse.de>
9317         PR tree-optimization/36066
9318         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
9319         SCEV and loop.
9321 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
9323         PR target/36064
9324         * config/i386/i386.md
9325         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
9326         Use match_scratch instead of match_operand for operands 3 and 4.
9328 2008-04-27  Richard Guenther  <rguenther@suse.de>
9330         PR tree-optimization/18754
9331         PR tree-optimization/34223
9332         * tree-pass.h (pass_complete_unrolli): Declare.
9333         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
9334         loop size before and after unconditionally of UL_NO_GROWTH in effect.
9335         Rewrite loop into loop closed SSA form if it is not already.
9336         (tree_unroll_loops_completely): Re-structure to iterate over
9337         innermost loops with intermediate CFG cleanups.
9338         Unroll outermost loops only if requested or the code does not grow
9339         doing so.
9340         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
9341         loops are available.
9342         (tree_vectorize): Instead do so here.
9343         (tree_complete_unroll): Also unroll outermost loops.
9344         (tree_complete_unroll_inner): New function.
9345         (gate_tree_complete_unroll_inner): Likewise.
9346         (pass_complete_unrolli): New pass.
9347         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
9348         uses outside of the loop.
9349         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
9350         form if it is available.
9351         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
9352         * passes.c (init_optimization_passes): Schedule complete inner
9353         loop unrolling pass before the first CCP pass after final inlining.
9355 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
9357         * targhooks.h (default_emutls_var_fields,
9358         default_emutls_var_init): Declare.
9359         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
9360         * target.h (struct gcc_target): Add struct emutls member.
9361         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
9362         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
9363         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
9364         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
9365         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
9366         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
9367         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
9368         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
9369         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
9370         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
9371         emit debug information.
9372         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
9373         * varasm.c: Include targhooks.h.
9374         (emutls_object_section, emutls_tmpl_section): New.
9375         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
9376         (EMUTLS_SEPARATOR): New.
9377         (prefix_name): New.
9378         (get_emutls_object_name): New.
9379         (default_emutls_var_fields): New, broken out of ...
9380         (get_emutls_object_type): ... here.  Adjust to use target hooks.
9381         (get_emutls_init_templ_addr): Adjust to use target hooks.
9382         (emutls_decl): Adjust to use target hooks.
9383         (emutls_finish): Likewise.
9384         (default_emutls_var_init): New, broken out of ...
9385         (assemble_variable): ... here.  Adjust to use target hooks.
9386         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
9387         SECCAT_EMUTLS_TMPL.
9388         * c-common.c (handle_section_attribute): Prevent overriding
9389         sections for emulated tls with special sections.
9390         * config/i386/i386.c (x86_64_elf_select_section): Add
9391         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
9392         (x86_64_elf_unique_section): Likewise.
9393         * config/vxworks.c: Include tree.h.
9394         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
9395         (vxworks_override_options): Set TLS scheme.
9396         * doc/tm.texi (Emulated TLS): New node.
9398 2008-04-26  Simon Baldwin <simonb@google.com>
9400         PR c/35652
9401         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
9402         with propagated string constants.
9404 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
9406         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
9407         constraint for operand 2 when operand 0 is memory operand.
9408         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
9409         operand 0 is memory operand.
9410         (fix_trunc<mode>_i387_with_temp): Ditto.
9411         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
9412         operand 2 when operand 1 is memory operand.
9413         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
9414         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
9415         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
9416         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
9417         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
9418         operands 2,3 and 4 when operand 1 is memory operand.
9419         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
9420         is memory operand.
9421         (fistdi2_floor_with_temp): Ditto.
9422         (fist<mode>2_floor_with_temp): Ditto.
9423         (fistdi2_ceil_with_temp): Ditto.
9424         (fist<mode>2_ceil_with_temp): Ditto.
9425         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
9427 2008-04-26  David Daney  <ddaney@avtrex.com>
9429         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
9430         unspec_volitile.
9431         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
9432         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
9433         UNSPEC_UPDATE_GOT_VERSION): Renumber.
9434         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
9435         (compare_and_swap_12): New insn.
9436         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
9437         * config/mips/mips.c (mips_force_binary): New function.
9438         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
9439         (mips_expand_compare_and_swap_12): New function.
9440         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
9442 2008-04-25  Jan Hubicka  <jh@suse.cz>
9444         PR testsuite/35843
9445         * cfgexpand.c (pass_expand): Turn into RTL pass.
9446         * passes.c (execute_one_pass): Do pass typechecking after execution.
9447         * tree-pass.h (pass_expand): Turn into RTL pass.
9449         * function.h (struct rtl_data): Move here fields
9450         accesses_prior_frames, calls_eh_return, saves_all_registers,
9451         has_nonlocal_goto, has_asm_statement, is_thunk,
9452         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
9453         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
9454         arg_pointer_save_area_init from struct function; turn into bool.
9455         (struct function): Move
9456         calls_eh_return, saves_all_registers, has_nonlocal_goto,
9457         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
9458         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
9459         tail_call_emit, arg_pointer_save_area_init
9460         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
9461         (current_function_returns_struct, current_function_returns_pcc_struct,
9462         current_function_calls_setjmp, current_function_calls_alloca,
9463         current_function_accesses_prior_frames,
9464         current_function_calls_eh_return, current_function_is_thunk,
9465         current_function_stdarg, current_function_profile,
9466         current_function_limit_stack, current_function_uses_pic_offset_table,
9467         current_function_uses_const_pool, current_function_has_nonlocal_label,
9468         current_function_saves_all_registers,
9469         current_function_has_nonlocal_goto,
9470         current_function_has_asm_statement): Remove accesor macros.
9471         * ra-conflict.c (global_conflicts): Update.
9472         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
9473         (suitable_for_tail_call_opt_p): Update.
9474         * builtins.c (expand_builtin_return_addr): Update.
9475         (expand_builtin_setjmp_setup): Update.
9476         (expand_builtin_nonlocal_goto): Update.
9477         * final.c (final_start_function): Update.
9478         (profile_function): Update.
9479         (leaf_function_p): Update.
9480         (only_leaf_regs_used): Update.
9481         * df-scan.c (df_get_exit_block_use_set): Update.
9482         * dojump.c (clear_pending_stack_adjust): Update.
9483         * tree-stdarg.c (gate_optimize_stdarg): Update.
9484         * gimple-low.c (lower_function_body): Update.
9485         * global.c (compute_regsets): Update.
9486         (global_alloc): Update.
9487         * dwarf2out.c (dwarf2out_begin_prologue): Update.
9488         * expr.c (expand_assignment): Update.
9489         * dse.c (dse_step0): Update.
9490         (dse_step1): Update.
9491         * c-decl.c (store_parm_decls): Update.
9492         * local-alloc.c (combine_regs): Update.
9493         (find_free_reg): Update.
9494         * function.c (assign_parms_augmented_arg_list): Update.
9495         (assign_parm_find_data_types): Update.
9496         (assign_parms): Update.
9497         (allocate_struct_function): Update.
9498         (expand_function_start): Update.
9499         (expand_function_end): Update.
9500         (get_arg_pointer_save_area): Update.
9501         (thread_prologue_and_epilogue_insns): Update.
9502         (rest_of_match_asm_constraints): Update.
9503         * stor-layout.c (variable_size): Update.
9504         * gcse.c (gcse_main): Update.
9505         (bypass_jumps): Update.
9506         * gimplify.c (gimplify_function_tree): Update.
9507         * calls.c (emit_call_1): Update.
9508         (expand_call): Update.
9509         * bt-load.c (compute_defs_uses_and_gen): Update.
9510         * except.c (sjlj_assign_call_site_values): Update.
9511         (sjlj_emit_function_enter): Update.
9512         (can_throw_external): Update.
9513         (set_nothrow_function_flags): Update.
9514         (expand_builtin_unwind_init): Update.
9515         (expand_eh_return): Update.
9516         (convert_to_eh_region_ranges): Update.
9517         (output_function_exception_table): Update.
9518         * emit-rtl.c (gen_tmp_stack_mem): Update.
9519         * cfgexpand.c (expand_used_vars): Update.
9520         (tree_expand_cfg): Update.
9521         * cfgcleanup.c (rest_of_handle_jump): Update.
9522         * explow.c (allocate_dynamic_stack_space): Update.
9523         * varasm.c (assemble_start_function): Update.
9524         (force_const_mem): Update.
9525         (mark_constant_pool): Update.
9526         * tree-optimize.c (tree_rest_of_compilation): Update.
9527         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
9528         * tree-cfg.c (notice_special_calls): Update.
9529         (is_ctrl_altering_stmt): Update.
9530         (tree_can_make_abnormal_goto): Update.
9531         (tree_purge_dead_abnormal_call_edges): Update.
9532         * config/alpha/predicates.md: Update.
9533         * config/alpha/alpha.c (alpha_sa_mask): Update.
9534         (alpha_sa_size): Update.
9535         (alpha_does_function_need_gp): Update.
9536         (alpha_expand_prologue): Update.
9537         (alpha_start_function): Update.
9538         (alpha_output_function_end_prologue): Update.
9539         (alpha_expand_epilogue): Update.
9540         * config/frv/frv.c (frv_stack_info): Update.
9541         (frv_expand_epilogue): Update.
9542         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
9543         (s390_register_info): Update.
9544         (s390_frame_info): Update.
9545         (s390_init_frame_layout): Update.
9546         (s390_can_eliminate): Update.
9547         (save_gprs): Update.
9548         * config/spu/spu.c (spu_split_immediate): Update.
9549         (need_to_save_reg): Update.
9550         (spu_expand_prologue): Update.
9551         (spu_expand_epilogue): Update.
9552         * config/sparc/sparc.md: Update.
9553         * config/sparc/sparc.c (eligible_for_return_delay): Update.
9554         (sparc_tls_got): Update.
9555         (legitimize_pic_address): Update.
9556         (sparc_emit_call_insn): Update.
9557         (sparc_expand_prologue): Update.
9558         (output_return): Update.
9559         (print_operand): Update.
9560         (sparc_function_ok_for_sibcall): Update.
9561         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
9562         * config/m32r/m32r.md: Update.
9563         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
9564         (m32r_compute_frame_size): Update.
9565         (m32r_expand_prologue): Update.
9566         (m32r_expand_epilogue): Update.
9567         (m32r_legitimize_pic_address): Update.
9568         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
9569         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9570         * config/i386/i386.c (ix86_frame_pointer_required): Update.
9571         (gen_push): Update.
9572         (ix86_save_reg): Update.
9573         (ix86_compute_frame_layout): Update.
9574         (ix86_expand_prologue): Update.
9575         (ix86_expand_epilogue): Update.
9576         * config/sh/sh.c (output_stack_adjust): Update.
9577         (calc_live_regs): Update.
9578         (sh5_schedule_saves): Update.
9579         (sh_expand_prologue): Update.
9580         (sh_expand_epilogue): Update.
9581         (sh_setup_incoming_varargs): Update.
9582         (sh_allocate_initial_value): Update.
9583         (sh_get_pr_initial_val): Update.
9584         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
9585         * config/sh/sh.md (label:): Update.
9586         * config/avr/avr.c (out_movhi_mr_r): Update.
9587         * config/crx/crx.h (enum): Update.
9588         * config/xtensa/xtensa.h (along): Update.
9589         * config/stormy16/stormy16.c Update.
9590         (xstormy16_compute_stack_layout): Update.
9591         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
9592         (fr30_expand_prologue): Update.
9593         * config/cris/cris.c (cris_conditional_register_usage): Update.
9594         (cris_reg_saved_in_regsave_area): Update.
9595         (cris_initial_frame_pointer_offset): Update.
9596         (cris_simple_epilogue): Update.
9597         (cris_expand_prologue): Update.
9598         (cris_expand_epilogue): Update.
9599         (cris_expand_pic_call_address): Update.
9600         (cris_asm_output_symbol_ref): Update.
9601         (cris_asm_output_label_ref): Update.
9602         * config/cris/cris.md Update.
9603         * config/iq2000/iq2000.c (compute_frame_size): Update.
9604         (iq2000_expand_epilogue): Update.
9605         * config/mt/mt.h (save_direction): Update.
9606         * config/mn10300/mn10300.c (mn10300_function_value): Update.
9607         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
9608         (ia64_secondary_reload_class): Update.
9609         * config/m68k/m68k.c (m68k_save_reg): Update.
9610         (m68k_expand_prologue): Update.
9611         (m68k_expand_epilogue): Update.
9612         (legitimize_pic_address): Update.
9613         * config/rs6000/rs6000.c (rs6000_got_register): Update.
9614         (first_reg_to_save): Update.
9615         (first_altivec_reg_to_save): Update.
9616         (compute_vrsave_mask): Update.
9617         (compute_save_world_info): Update.
9618         (rs6000_stack_info): Update.
9619         (spe_func_has_64bit_regs_p): Update.
9620         (rs6000_ra_ever_killed): Update.
9621         (rs6000_emit_eh_reg_restore): Update.
9622         (rs6000_emit_allocate_stack): Update.
9623         (rs6000_emit_prologue): Update.
9624         (rs6000_emit_epilogue): Update.
9625         (rs6000_output_function_epilogue): Update.
9626         (output_profile_hook): Update.
9627         (rs6000_elf_declare_function_name): Update.
9628         * config/rs6000/rs6000.h (rs6000_args): Update.
9629         * config/rs6000/rs6000.md: Update.
9630         * config/mcore/mcore.c (mcore_expand_prolog): Update.
9631         * config/arc/arc.c (arc_output_function_epilogue): Update.
9632         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
9633         * config/darwin.c (machopic_function_base_name): Update.
9634         * config/score/score3.c (score3_compute_frame_size): Update.
9635         (rpush): Update.
9636         (rpop): Update.
9637         (score3_epilogue): Update.
9638         * config/score/score7.c (score7_compute_frame_size): Update.
9639         (score7_prologue): Update.
9640         (score7_epilogue): Update.
9641         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
9642         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
9643         * config/arm/arm.c (use_return_insn): Update.
9644         (require_pic_register): Update.
9645         (arm_load_pic_register): Update.
9646         (arm_compute_save_reg0_reg12_mask): Update.
9647         (arm_compute_save_reg_mask): Update.
9648         (thumb1_compute_save_reg_mask): Update.
9649         (output_return_instruction): Update.
9650         (arm_output_function_prologue): Update.
9651         (arm_output_epilogue): Update.
9652         (arm_get_frame_offsets): Update.
9653         (arm_expand_prologue): Update.
9654         (thumb_pushpop): Update.
9655         (thumb_exit): Update.
9656         (thumb1_expand_prologue): Update.
9657         (thumb1_expand_epilogue): Update.
9658         (arm_unwind_emit): Update.
9659         (arm_output_fn_unwind): Update.
9660         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
9661         * config/arm/arm.md: Update.
9662         * config/pa/pa.md: Update.
9663         * config/pa/pa.c (legitimize_pic_address): Update.
9664         (compute_frame_size): Update.
9665         (hppa_expand_prologue): Update.
9666         (hppa_expand_epilogue): Update.
9667         (borx_reg_operand): Update.
9668         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
9669         (HARD_REGNO_RENAME_OK): Update.
9670         * config/mips/mips.c (mips_global_pointer): Update.
9671         (mips_save_reg_p): Update.
9672         (mips_compute_frame_info): Update.
9673         (mips_frame_pointer_required): Update.
9674         (mips_expand_prologue): Update.
9675         (mips_expand_epilogue): Update.
9676         (mips_can_use_return_insn): Update.
9677         (mips_reorg_process_insns): Update.
9678         * config/v850/v850.c (compute_register_save_size): Update.
9679         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
9680         * config/mmix/mmix.c (along): Update.
9681         (mmix_expand_epilogue): Update.
9682         * config/bfin/bfin.c (legitimize_pic_address): Update.
9683         (must_save_p): Update.
9684         (stack_frame_needed_p): Update.
9685         (add_to_reg): Update.
9686         (bfin_expand_prologue): Update.
9687         * stmt.c (expand_asm_operands): Update.
9688         * reload1.c (reload): Update.
9689         (init_elim_table): Update.
9691 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
9693         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
9695 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
9697         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
9698         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
9699         (mov<mode>): Removed.
9700         (*movv4sf_internal): Likewise.
9701         (*movv2df_internal): Likewise.
9703 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
9705         * config.gcc (crx-*-elf): Remove deprecation.
9707 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
9709         * config/i386/cygming-crtend.c (register_frame_ctor): Register
9710         __gcc_deregister_frame with atexit.
9711         (deregister_frame_dtor): Remove.
9713 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
9714             Nathan Sidwell  <nathan@codesourcery.com>
9716         * config/rs6000/rs6000.opt (mspe): Remove Var property.
9717         (misel): Likewise.
9718         * config/rs6000/rs6000.h (rs6000_spe): Declare.
9719         (rs6000_isel): Likewise.
9720         * config/rs6000/rs6000.c (rs6000_spe): New variable.
9721         (rs6000_isel): New variable.
9722         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
9724 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9726         PR c++/35758
9727         * c-common.c (handle_vector_size_attribute): Call
9728         lang_hooks.types.reconstruct_complex_type instead of
9729         reconstruct_complex_type.
9730         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
9731         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
9732         * langhooks.h (struct lang_hooks_for_types): Add
9733         reconstruct_complex_type hook.
9734         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
9735         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
9737 2008-04-24  Richard Guenther  <rguenther@suse.de>
9739         * c-common.h (check_builtin_function_arguments): Declare.
9740         * c-common.c (validate_nargs): New function.
9741         (check_builtin_function_arguments): Likewise.
9742         * c-typeck.c (build_function_call): Call
9743         check_builtin_function_arguments.
9744         * builtins.c (fold_builtin_classify): Remove error reporting code.
9745         (fold_builtin_unordered_cmp): Likewise.
9746         (fold_builtin_1): Likewise.
9747         (fold_builtin_n): Likewise.
9749 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9751         PR tree-optimization/36008
9752         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
9753         the original op1, rather than delta by step.
9755 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
9756             Sebastian Pop  <sebastian.pop@amd.com>
9758         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
9759         eliminate_local_variables_stmt, eliminate_local_variables,
9760         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
9761         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
9762         of code delimited by two edges in the CFG.
9763         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
9764         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
9765         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
9766         the case of parallelisation of reductions.
9767         (expr_invariant_in_region_p): New.
9769         * tree-flow.h (gather_blocks_in_sese_region): Declared.
9770         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
9772 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9773             Richard Guenther  <rguenther@suse.de>
9775         PR tree-optimization/36034
9776         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
9777         incapable of dealing with loads with gaps.
9779 2008-04-24  Rafael Espindola  <espindola@google.com>
9781         * tree-flow.h (vrp_evaluate_conditional): Change signature.
9782         * tree-ssa-propagate.c (fold_predicate_in): Update call to
9783         vrp_evaluate_conditional.
9784         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
9785         (vrp_evaluate_conditional): Split the cond argument.
9786         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
9787         (simplify_stmt_for_jump_threading): Update call to
9788         vrp_evaluate_conditional.
9790 2008-04-24  Ira Rosen  <irar@il.ibm.com>
9792         PR tree-optimization/35982
9793         * tree-vect-analyze.c (vect_check_interleaving): Check that the
9794         interleaved data-refs are of the same type.
9796 2008-04-24  Danny Smith  <dannysmith@users.net>
9798         * c-format.c (check_format_info_main): Use strncmp rather than a
9799         magic prefix to handle multichar length specs.
9800         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
9801         Don't prefix "I64" and "I32" with '\0'.
9803 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
9805         PR target/36015
9806         * config/i386/i386.c (init_cumulative_args): Don't pass anything
9807         in registers for -m32 only if stdarg_p (fntype).
9809 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
9811         PR rtl-optimization/36006
9812         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
9813         temp to op0 in order to avoid invalid rtx sharing.
9815 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
9817         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
9818         check TREE_INVARIANT.
9819         * tree-gimple.c (is_gimple_address): New.
9820         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
9821         * tree-gimple.h (is_gimple_address): New.
9822         * tree.h (decl_address_invariant_p): New.
9823         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
9824         (build_string): Likewise.
9825         (decl_address_invariant_p): New, from is_gimple_invariant_address.
9826         (tree_invariant_p_1): Likewise.
9827         (save_expr): Use it.
9828         (tree_invariant_p): New.
9829         (skip_simple_arithmetic): Use it.
9830         (stabilize_reference_1): Use it.
9831         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
9832         simplify.
9833         (build1_stat): Drop code to compute TREE_INVARIANT.
9834         (build2_stat): Drop code to compute TREE_INVARIANT.
9835         (build3_stat): Drop code to compute TREE_INVARIANT.
9836         (build4_stat): Drop code to compute TREE_INVARIANT.
9837         (build5_stat): Drop code to compute TREE_INVARIANT.
9838         (build7_stat): Drop code to compute TREE_INVARIANT.
9839         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
9840         * tree.h (struct tree_base): Remove invariant_flag.
9841         (TREE_INVARIANT): Remove.
9842         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
9843         (fold_builtin_expect): Check TREE_CONSTANT.
9844         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
9845         * c-tree.h (c_expr_to_decl): Drop third parameter.
9846         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
9847         (build_c_cast): Don't set TREE_INVARIANT.
9848         (pop_init_level): Don't set TREE_INVARIANT.
9849         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
9850         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
9851         TREE_CONSTANT.
9852         (gimplify_init_constructor): Don't set TREE_INVARIANT.
9853         (gimplify_addr_expr): Adjust comment.
9854         * tree-mudflap.c (mf_build_string):
9855         * print-tree.c (print_node): Don't print TREE_INVARIANT.
9856         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
9857         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
9858         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
9859         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
9860         * langhooks.h (struct lang_hooks): Drop third parameter from
9861         expr_to_decl.
9863 2008-04-23  Richard Guenther  <rguenther@suse.de>
9865         PR tree-optimization/27799
9866         PR tree-optimization/32921
9867         PR tree-optimization/32624
9868         * tree-ssa-structalias.c (merge_smts_into): Only merge the
9869         SMTs aliases and the tag itself into the solution.
9870         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
9871         merge the points-to solution back into the SMT aliases.
9872         (may_alias_p): Use alias_set_subset_of instead of
9873         aliases_conflict_p.  A pointer which points to
9874         memory with alias set zero may access any variable.
9876 2008-04-23  Richard Guenther  <rguenther@suse.de>
9878         * alias.c (alias_set_subset_of): Correctly handle asking
9879         if zero is a subset of an alias set with zero child.
9880         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
9881         (compute_flow_insensitive_aliasing): Correctly walk all
9882         pointers.  Do not unnecessarily union sets.
9884 2008-04-23  Richard Guenther  <rguenther@suse.de>
9886         PR middle-end/36021
9887         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
9889 2008-04-22  Tomas Bily  <tbily@suse.cz>
9891         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
9892         unreachable case.
9893         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
9894         NON_LVALUE_EXPR.
9895         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
9896         * tree-ssa-structalias.c (get_constraint_for): Likewise.
9897         * tree-inline.c (estimate_num_insns_1): Likewise.
9898         * varasm.c (const_hash_1, compare_constant, copy_constant)
9899         (compute_reloc_for_constant, output_addressed_constants): Likewise.
9900         * emit-rtl.c (component_ref_for_mem_expr)
9901         (set_mem_attributes_minus_bitpos): Likewise.
9902         * expr.c (highest_pow2_factor, expand_expr_real_1, )
9903         (is_aligning_offset): Likewise.
9904         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
9905         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
9906         * dojump.c (do_jump): Likewise.
9907         * builtins.c (get_pointer_alignment, get_memory_rtx)
9908         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
9909         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
9911 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
9913         PR rtl-optimization/36017
9914         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
9915         expanding the library call.
9917 2008-04-22  Ian Lance Taylor  <iant@google.com>
9919         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
9920         than size_in_bytes.
9922 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
9924         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
9925         of LR/CTR moves for Power6.
9927 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
9929         PR middle-end/36003
9930         * passes.c (init_optimization_passes): Remove
9931         pass_fast_rtl_byte_dce.
9933 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
9935         PR target/29096
9936         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
9937         builtin functions to generate faster code.
9938         (_mm_cvtpu16_ps): Ditto.
9939         (_mm_cvtpi32x2_ps): Ditto.
9941 2008-04-22  Nick Clifton  <nickc@redhat.com>
9943         * common.opt (ftree-loop-distribution): Add Optimization
9944         attribute.
9946         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
9947         (frv_expand_builtin_va_start): Likewise.
9949         * config/arm/arm.c (thumb_find_work_register): Fix location of
9950         argument register count.
9952 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
9954         Support scheduling for ColdFire V1 and V3 microarchitecture.
9955         Improve scheduling of multiplication instructions.
9957         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
9958         (mac): New instruction attribute.
9959         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
9960         (m68k_sched_mac): New variable.
9961         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
9962         Handle cfv1 and cfv3.
9963         (max_insn_size): New static variable.
9964         (struct _sched_ib): New type.
9965         (sched_ib): New static variable.
9966         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
9967         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
9968         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
9969         Update.
9970         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
9971         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
9972         new variables.  Update.
9973         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
9974         Add modeling of cfv3 instruction buffer.  Update.
9975         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
9976         * config/m68k/m68k.h (TUNE_CFV3): New macro.
9977         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
9978         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
9979         a particular reservation applies to.
9980         (type2): Reorganize attribute values.  Rename alu to alu_reg,
9981         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
9982         to mul_l and mul_w.
9983         (cf_ib_*): Simplify description of instruction buffer.
9984         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
9985         (cf_mem): Split into cf_mem1 and cf_mem2.
9986         (cf_v2_move_??): Rename to cfv12_alu_??.
9987         (cf_v2_move_l_??): Rename to cfv12_omove_??.
9988         (cf_v2_mul_??): Remove reservations.
9989         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
9990         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
9991         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
9992         appropriate place.
9993         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
9994         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
9995         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
9996         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
9997         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
9998         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
9999         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
10000         expansions of the above reservations for instructions of sizes
10001         1, 2 and 3 words.
10003 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
10005         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
10007 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
10009         * coverage.c: Include tree-pass.h.
10010         (coverage_counter_alloc): Print da_file_name to the dump file.
10012 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
10014         * sbitmap.c (sbitmap_range_empty_p): New function.
10015         * sbitmap.h (sbitmap_range_empty_p): New function.
10016         * bitmap.h: Now includes obstack.h.
10018 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
10019             Kenneth Zadeck  <zadeck@naturalbridge.com>
10021         * dbgcnt.def (ra_byte_scan): Added.
10022         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
10023         when the last hit happens for a counter.
10024         * timevar.def (TV_DF_BYTE_LR): New variable.
10025         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
10026         * passes.c (pass_fast_rtl_byte_dce): New pass.
10027         * fwprop.c (update_df): Added mode to call df_ref_create.
10028         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10029         DF_REF_EXTRACT_OFFSET.
10030         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN,
10031         DF_BYTE_LR_OUT, df_byte_lr): New macro.
10032         (df_mm): New enum.
10033         (df_ref_extract): Added mode field.
10034         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
10035         DF_REF_EXTRACT_OFFSET.
10036         (DF_REF_EXTRACT_MODE): New macro.
10037         (df_byte_lr_bb_info): New structure.
10038         (df_print_byte_regset, df_compute_accessed_bytes,
10039         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
10040         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
10041         df_byte_lr_simulate_uses,
10042         df_byte_lr_simulate_artificial_refs_at_top,
10043         df_byte_lr_simulate_artificial_refs_at_end,
10044         df_compute_accessed_bytes): New function.
10045         (df_ref_create): Add parameter.
10046         (df_byte_lr_get_bb_info): New inline function.
10047         * df-scan.c (df_ref_record, df_uses_record,
10048         df_ref_create_structure): Added mode parameter.
10049         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1,
10050         df_defs_record, df_uses_record, df_get_conditional_uses,
10051         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
10052         df_entry_block_defs_collect, df_exit_block_uses_collect):
10053         Added mode parameter to calls to df_ref_record, df_uses_record,
10054         df_ref_create_structure.
10055         (df_ref_equal_p, df_ref_compare): Added test for modes.
10056         (df_ref_create_structure): Added code to set mode.  Renamed
10057         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
10058         DF_REF_EXTRACT_OFFSET.
10059         * df-core.c (df_print_byte_regset): New function.
10060         * df-byte-scan.c: New file.
10061         * df-problems.c (df_rd_transfer_function): Removed unnecessary
10062         calls to BITMAP_FREE.
10063         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
10064         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
10065         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info,
10066         df_byte_lr_check_regs, df_byte_lr_expand_bitmap,
10067         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
10068         df_byte_lr_local_compute, df_byte_lr_init,
10069         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
10070         df_byte_lr_transfer_function, df_byte_lr_free,
10071         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
10072         df_byte_lr_add_problem, df_byte_lr_simulate_defs,
10073         df_byte_lr_simulate_uses,
10074         df_byte_lr_simulate_artificial_refs_at_top,
10075         df_byte_lr_simulate_artificial_refs_at_end): New function.
10076         * dce.c (byte_dce_process_block): New function.
10077         (dce_process_block): au is now passed in rather than computed
10078         locally.  Changed loops that look at artificial defs to not look
10079         for conditional or partial ones, because there never are any.
10080         (fast_dce): Now is able to drive byte_dce_process_block or
10081         dce_process_block depending on the kind of dce being done.
10082         (rest_of_handle_fast_dce): Add parameter to fast_dce.
10083         (rest_of_handle_fast_byte_dce): New function.
10084         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
10085         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
10087 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
10089         PR fortran/35019
10090         * gcc.h: Added fortran options that take arguments to
10091         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
10092         macros.
10094 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
10096         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
10097         scalarization if on the LHS and not a full access.
10099 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10101         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
10103 2008-04-18  Rafael Espindola  <espindola@google.com>
10105         * tree-vrp.c (find_case_label_index): Fix the binary search.
10106         (find_case_label_range): New.
10107         (vrp_visit_switch_stmt): Use find_case_label_range.
10108         (simplify_switch_using_ranges): Use find_case_label_range.
10110 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
10112         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
10113         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
10115 2008-04-18  Tom Tromey  <tromey@redhat.com>
10117         PR libcpp/15500:
10118         * doc/cpp.texi (Implementation-defined behavior): Mention
10119         -finput-charset.
10121 2008-04-18  Ian Lance Taylor  <iant@google.com>
10123         * fold-const.c (pointer_may_wrap_p): New static function.
10124         (fold_comparison): Add another test for pointer overflow.  Use
10125         pointer_may_wrap_p to disable some false positives.
10127 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
10129         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
10130         (fname_as_string): Match updated cpp_interpret_string prototype.
10131         (fix_string_type): Support char16_t* and char32_t*.
10132         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
10133         derivative) nodes.  Register as builtin if C++0x.
10134         (c_parse_error): Support CPP_CHAR{16,32}.
10135         * c-common.h (RID_CHAR16, RID_CHAR32): New elements.
10136         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
10137         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
10138         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
10139         CTI_CHAR32_ARRAY_TYPE>: New elements.
10140         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
10141         char32_type_node, signed_char32_type_node, char16_array_type_node,
10142         char32_array_type_node): New defines.
10143         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
10144         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
10145         (lex_string): Support CPP_STRING{16,32}, match updated
10146         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
10147         (lex_charconst): Support CPP_CHAR{16,32}.
10148         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
10149         and CPP_STRING{16,32}.
10151 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
10153         PR bootstrap/35457
10154         * aclocal.m4: Regenerate.
10155         * configure: Regenerate.
10157 2008-04-18  Jan Hubicka  <jh@suse.cz>
10159         * except.c (dw2_size_of_call_site_table,
10160         sjlj_size_of_call_site_table): Use vector API for call_site_record.
10162         * cgraphbuild.c (build_cgraph_edges): Update.
10163         * tree-pass.h: Update comment.
10164         * final.c (leaf_function_p): Update.
10165         (leaf_renumber_regs): Update.
10166         (rest_of_clean_state): Update.
10167         * omp-low.c (expand_omp_parallel): Update.
10168         * ipa-reference.c (analyze_function): Update.
10169         * reorg.c (find_end_label): Update.
10170         (optimize_skip): Update.
10171         (fill_simple_delay_slots): Update.
10172         (fill_simple_delay_slots): Update.
10173         (make_return_insns): Update.
10174         (dbr_schedule): Update.
10175         * gimple-low.c (record_vars_into): Update.
10176         * cfgbuild.c (make_edges): Update.
10177         * function.c (assign_stack_local): Update.
10178         (assign_parm_adjust_stack_rtl): Update.
10179         (locate_and_pad_parm): Update.
10180         (allocate_struct_function): Do not initialize stack_alignment_needed
10181         and preferred_stack_boundary here.
10182         (stack_protect_prologue): Update.
10183         (stack_protect_epilogue): Update.
10184         (expand_function_start): Initialize stack_alignment_needed,
10185         preferred_stack_boundary and max_jumptable_ents.
10186         (expand_function_end): Update.
10187         (free_after_compilation): Do not NULLify epilogue_delay_list.
10188         * function.h (struct rtl_data): Add stack_protect_guard,
10189         stack_alignment_needed,
10190         preferred_stack_boundary, epilogue_delay_list.
10191         (struct function): Remove value_histograms, stack_alignment_needed,
10192         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
10193         last_label_uid,
10194         unexpanded_var_list, stack_protect_guard.
10195         (current_function_epilogue_delay_list): Remove.
10196         * ipa-type-escape.c (analyze_function): Update.
10197         * gimplify.c (pop_gimplify_context): Update comment.
10198         * calls.c (expand_call): Update.
10199         (emit_library_call_value_1): Update.
10200         * except.c (set_nothrow_function_flags): Update.
10201         * cfgexpand.c (get_decl_align_unit): Update.
10202         (create_stack_guard): Update.
10203         (estimated_stack_frame_size): Update.
10204         (expand_used_vars): Update.
10205         (tree_expand_cfg): Free histogram earliers, init expansion variables.
10206         * explow.c (allocate_dynamic_stack_space): Update.
10207         * tree-ssa-live.c (remove_unused_locals): Update.
10208         * varasm.c (mark_constant_pool): Update.
10209         * tree-inline.c (remap_decls): Update.
10210         (initialize_cfun): Update.
10211         (declare_return_variable): Update.
10212         (inline_forbidden_p): Update.
10213         (expand_call_inline): Update.
10214         (declare_inline_vars): Update.
10215         (tree_function_versioning): Update.
10216         * tree-flow.h (value_histograms): New.
10217         (VALUE_HISTOGRAMS): New macro.
10218         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
10219         last_label_uid.
10220         * tree-cfg.c (set_bb_for_stmt): Update.
10221         (replace_by_duplicate_decl): Update.
10222         (move_block_to_fn): Update.
10223         (new_label_mapper): Update.
10224         (dump_function_to_file): Update.
10225         * ipa-struct-reorg.c (build_data_structure): Update.
10226         * cfgrtl.c (print_rtl_with_bb): Update.
10227         * reload1.c (reload): Update.
10228         (reload): Update.
10229         * config/i386/i386.c (setup_incoming_varargs_64,
10230         ix86_compute_frame_layout): Update.
10231         * config/arc/arc.c (arc_output_function_epilogue): Update.
10233 2008-04-18  Marius Strobl <marius@FreeBSD.org>
10235         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
10236         for FreeBSD as well.
10237         * gthr-posix95.h: Likewise.
10239 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
10241         PR rtl-optimization/35838
10242         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
10243         out the byte offset of the first subreg.
10245 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
10247         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
10248         to split_ti instead of three separate calls with single member arrays.
10249         (subti3 splitter): Ditto.
10250         (adddi3 splitter): Ditto with split_di.
10251         (subdi3 splitter): Ditto.
10252         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
10253         two separate calls with single member arrays.  Swap match_dup
10254         operands 1 and 2 to better fit into the array.
10255         (negdi2 splitter): Ditto with split_di.
10256         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
10257         two separate calls with single member arrays.  Swap match_dup operands
10258         6 and 7 to better fit into the array.
10260 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
10262         * config/i386/i386.c (sse_builtin_type): New.
10263         (bdesc_sse_args): Likewise.
10264         (bdesc_sse_3arg): Removed.
10265         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10266         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
10267         IX86_BUILTIN_ROUNDPS.
10268         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
10269         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
10270         IX86_BUILTIN_ROUNDPS.
10271         (ix86_expand_sse_4_operands_builtin): Removed.
10272         (ix86_expand_sse_operands_builtin): New.
10273         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
10274         and CODE_FOR_sse4_1_roundps.
10275         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
10276         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
10278 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
10280         PR target/35907
10281         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
10282         regs before frame pop when needed.  If use_backchain_to_restore_sp
10283         then load backchain into a temp reg to restore vr and vrsave.  Add
10284         code to restore vr after frame pop if possible.
10286 2008-04-17  Richard Guenther  <rguenther@suse.de>
10288         * tree-vn.c (expressions_equal_p): Do not check type
10289         equality or compatibility before calling operand_equal_p.
10290         * fold-const.c (operand_equal_p): Check equivalence of
10291         integer constants before bailing out due to signedness or
10292         precision differences.
10293         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
10294         spurious differences in type qualification.  Ignore types
10295         for COMPONENT_REFs at all.
10297 2008-04-17  Christian Bruel  <christian.bruel@st.com>
10299         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
10300         msw_skip comparison.
10302 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
10304         PR c/35739
10305         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
10306         reg type.
10308         PR tree-optimization/35899
10309         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
10310         rather than TREE_OPERAND.
10312 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
10314         PR target/35944
10315         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
10316         temporary registers.  Change operand predicate to general_operand.
10317         (remainderxf3): Ditto.
10319 2008-04-16  Richard Guenther  <rguenther@suse.de>
10321         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
10322         * tree-affine.c (aff_combination_expand): Look through some
10323         conversions.
10325 2008-04-15  Doug Kwan  <dougkwan@google.com>
10327         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
10328         for hex printing.
10329         * tree-pretty-print.c (dump_generic_node): Ditto.
10330         * final.c (output_addr_const): Ditto.
10331         * dwarf2out.c (output_cfi): Ditto.
10332         * c-pretty-print.c (pp_c_integer_constant): Ditto.
10333         * print-rtl.c (print_rtx): Ditto.
10334         * print-tree.c (print_node_brief, print_node): Ditto.
10335         * c-common.c (match_case_to_enum_1): Ditto.
10336         * sched-vis.c (print_value): Ditto.
10337         * config/i386/i386.c (print_operand): Cast to long unsigned int
10338         for hex printing.
10340 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
10341         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
10342         MS Windows VirtualProtect function.
10344 2008-04-15  Jan Hubicka  <jh@suse.cz>
10346         * gengtype.c (write_root): Param_is argument is OK.
10347         * expr.c (expand_expr_real_1): Update call of get_exception_*.
10348         * function.h: Include varray.h
10349         (rtl_eh): New stucture based on except.c one.
10350         (call_site_record): New forward declaration and vector type.
10351         * calls.c (emit_call_1): Do not call
10352         note_current_region_may_contain_throw.
10353         * except.c (eh_status): Remove cur_region, try_region since they are
10354         unused.
10355         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
10356         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
10357         sjlj_fc, sjlj_exit_after to rth_eh in function.h.
10358         Remove call_site_data_used, call_site_data_size.
10359         Turn call_site_record into vector in function.h.
10360         (note_current_region_may_contain_throw): Remove.
10361         (get_exception_pointer, get_exception_filter): Do not take struct
10362         function argument; update.
10363         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
10364         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
10365         build_post_landing_pads, dw2_build_landing_pads,
10366         sjlj_assign_call_site_values, sjlj_mark_call_sites,
10367         sjlj_emit_function_enter, sjlj_emit_function_enter,
10368         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
10369         sjlj_build_landing_pads, finish_eh_generation,
10370         remove_exception_handler_label, remove_eh_handler,
10371         maybe_remove_eh_handler, add_reachable_handler,
10372         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
10373         add_action_record, collect_one_action_chain, add_call_site,
10374         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
10375         sjlj_output_call_site_table, output_function_exception_table,
10376         * except.h (note_current_region_may_contain_throw): Remove
10377         (get_exception_pointer, get_exception_filter): Do not take struct
10378         function argument.
10379         * Makefile.in (GTFILES): Put varargs before struct function.
10381 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10383         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
10384         punt for STRING_CST.
10385         (get_constraint_for): Deal with STRING_CST here instead.
10387 2008-04-15  Richard Guenther  <rguenther@suse.de>
10389         * tree-ssa-propagate.c (substitute_and_fold): Substitute
10390         statements in a basic-block with a backward walk.  Do not
10391         substitute into dead statements but instead remove those.
10393 2008-04-15  Richard Guenther  <rguenther@suse.de>
10395         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
10396         to zero, thus disable creation of SFTs.
10398 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
10400         * tree-predcom.c (suitable_reference_p): Return false if the
10401         reference can throw.
10403 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
10405         PR c/35751
10406         * c-decl.c (finish_decl): If extern or static var has variable
10407         size, set TREE_TYPE (decl) to error_mark_node.
10409 2008-04-15  Rafael Espindola  <espindola@google.com>
10411         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
10412         variable arg1.
10414 2008-04-15  Richard Guenther  <rguenther@suse.de>
10416         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
10417         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
10418         (visit_reference_op_load): Do walk vuse-vdef chains on
10419         vn_reference_lookup.
10420         (visit_reference_op_store): But do not here.
10421         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
10422         vn_reference_lookup.
10423         (vn_lookup_with_vuses): But do so here.
10425 2008-04-14  Ian Lance Taylor  <iant@google.com>
10427         * fold-const.c (fold_overflow_warning): Remove assertion.
10429 2008-04-15  Ben Elliston  <bje@au.ibm.com>
10431         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
10432         temp1 local variables.
10434 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
10436         PR target/35661
10437         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
10438         ".text.unlikely" section as executable.
10440 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
10442         * config/ia64/ia64.c (rtx_needs_barrier): Handle
10443         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
10444         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
10445         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
10446         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
10447         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
10448         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
10450 2008-04-14  Ian Lance Taylor  <iant@google.com>
10452         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
10453         * fold-const.c (fold_comparison): If appropriate, test
10454         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
10455         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
10456         reassociating a pointer type.
10457         * doc/invoke.texi (Optimize Options): Document that
10458         -fstrict-overflow applies to pointer wraparound.
10460 2008-04-13  Jan Hubicka  <jh@suse.cz>
10462         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
10464 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
10466         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
10467         we are going to "save the world".
10469 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
10471         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
10472         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
10473         operand 0 constraint, not "=".
10475 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
10477         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
10479 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10481         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
10482         of size of positions_needed * CHAR_BIT.
10484 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
10486         PR middle-end/35897
10487         * dse.c (store_info): Change positions_needed to unsigned
10488         HOST_WIDE_INT.
10489         (lowpart_bitmask): New.
10490         (record_store): Cast to unsigned HOST_WIDE_INT for
10491         positions_needed.  Assert width <= size of positions_needed *
10492         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
10493         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
10494         lowpart_bitmask to set mask.
10496 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10498         * config/bfin/constraints.md: New file.
10499         * config/bfin/bfin.md: Include it.
10500         (adddi3): Use satisfies_constraint functions instead of the old macros.
10501         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
10502         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
10503         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
10504         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
10505         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
10506         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
10507         EXTRA_CONSTRAINT): Delete.
10508         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
10509         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
10510         of the old macros.
10511         * config/bfin/bfin.c: Include "tm-constrs.h".
10512         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
10513         Use satisfies_constraint functions instead of the old macros.
10514         * doc/md.texi (Blackfin Constraints): Update file name reference.
10516 2008-04-11  Richard Guenther  <rguenther@suse.de>
10518         PR tree-optimization/35869
10519         * tree-vrp.c (execute_vrp): Move switch statement update after
10520         jump threading.  Schedule another cfg cleanup run.
10522 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
10524         PR c/35744
10525         * attribs.c (decl_attributes): Return early on errorneous node.
10527 2008-04-10  Oleg Ryjkov  <olegr@google.com>
10529         * tree.h (struct tree_base): Added a new flag default_def_flag.
10530         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
10532 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10534         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
10536 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10538         PR target/35768
10539         * pa.md: Define mode iterator P.  Define mode attribute dwc.
10540         (dcacheflush): Update pattern to use iterator P and attribute dwc.
10541         (icacheflush): Likewise.
10542         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
10543         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
10545 2008-04-11  Ben Elliston  <bje@au.ibm.com>
10547         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
10549 2008-04-10  Rafael Espindola  <espindola@google.com>
10551         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
10552         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
10553         (extract_range_from_expr): The same.
10555 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10557         * config/mips/mips.md (GPR2): New mode iterator.
10558         (seq): Add comment.
10559         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
10560         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
10561         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
10562         Rewrite these to take two modes, the mode of comparison and the
10563         mode of the destination.
10564         * config/mips/mips.c (mips_expand_scc): Instead of having
10565         paradoxical subreg as destination, expand "narrowing" scc if mode
10566         of comparison is SI and target is requested in DI mode.
10567         (mips_emit_int_order_test): Update comment.  Make mode of
10568         comparison match CMP0 rather than TARGET.  When creating inverse
10569         target use mode of TARGET.
10571 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
10573         * gcov-dump.c (tag_summary): Only print summaries for the first
10574         GCOV_COUNTERS_SUMMABLE counters.
10576 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
10578         * config/i386/i386.md (absneg): New code iterator.
10579         (absnegprefix): New code attribute.
10580         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
10581         patterns using absneg code iterator.
10582         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
10583         using absneg code iterator.
10584         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
10585         *neg<mode>2 patterns using absneg code iterator.
10586         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10587         *negextendsfdf2 patterns using absneg code iterator.
10588         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
10589         *negextendsfxf2 patterns using absneg code iterator.
10590         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
10591         *negextendsfdf2 patterns using absneg code iterator.
10592         * config/i386/sse.md (<code><mode>2): Macroize expander from
10593         abs<mode>2 and neg<mode>2 patterns using absneg code iterator.
10595 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
10597         * config/s390/s390.h: Remove the remains of the recent search
10598         & replace action of current_function_outgoing_args_size.
10600 2008-04-10  Ira Rosen  <irar@il.ibm.com>
10602         PR tree-optimization/35821
10603         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
10604         NEW_STMT_LIST is not NULL.
10606 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
10608         PR libstdc++/35597
10609         * toplev.c (process_options): Remove -ffunction-sections debugging
10610         warning.
10612 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
10614         PR middle-end/PR28690
10615         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
10616         than gen_rtx_fmt_ee to perform more canonicalizations.
10618 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10620         PR driver/35665
10621         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
10623 2008-04-09  Richard Guenther  <rguenther@suse.de>
10625         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
10626         (dump_function_to_file): Dump function arguments with types.
10628 2008-04-08  Richard Guenther  <rguenther@suse.de>
10630         * fold-const.c (fold_widened_comparison): Do not allow
10631         sign-changes that change the result.
10633 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
10635         PR target/35839
10636         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
10637         kinds of indirect references.
10639 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
10641         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
10642         GNU Fortran language string.
10644 2008-04-08  Rafael Espindola  <espindola@google.com>
10646         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
10647         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
10648         * tree.h (tree_call_nonnegative_warnv_p): New.
10650 2008-04-08  Jan Hubicka  <jh@suse.cz>
10652         * function.c (free_after_compilation): Clear out regno_reg_rtx
10653         pointer.
10655 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
10657         Revert
10658         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10660         PR middle-end/PR28690
10661         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
10662         same precedence as REG_POINTER and MEM_POINTER operands.
10664 2008-04-08  Richard Guenther  <rguenther@suse.de>
10666         PR middle-end/35834
10667         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
10668         for adding index to base.
10670 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
10672         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
10673         (MINGW_ENABLE_EXECUTE_STACK): New.
10674         (IN_LIBGCC2): For libgcc include windows.h file for
10675         function declarations.
10677 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
10679         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
10680         and tem2 if tem1 is not a REG or MULT.
10682 2008-04-08  Jan Hubicka  <jh@suse.cz>
10684         * function.h (incomming_args): Break out of struct function.
10685         (function_subsections): Break out of struct function.
10686         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
10687         return_rtx and hard_reg_initial_vals from struct function.
10688         Kill inl_max_label_num.
10689         (current_function_pops_args, current_function_args_info,
10690         current_function_args_size, current_function_args_size,
10691         current_function_pretend_args_size,
10692         current_function_outgoing_args_size,
10693         current_function_internal_arg_pointer, current_function_return_rtx):
10694         Kill compatibility accestor macros.
10695         * builtins.c (expand_builtin_apply_args_1): Update.
10696         (expand_builtin_next_arg): Update.
10697         * df-scan.c (df_get_call_refs): Update.
10698         * dbxout.c (dbxout_function_end): Update.
10699         * dwarf2out.c (dwarf2out_switch_text_section): Update.
10700         (output_line_info): Update.
10701         (secname_for_decl): Update.
10702         (dwarf2out_var_location): Update.
10703         * function.c (free_after_compilation): Update.
10704         (assign_parm_find_stack_rtl): Update.
10705         (assign_parms): Update.
10706         (expand_dummy_function_end): Update.
10707         (expand_function_end): Update.
10708         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
10709         (expand_call): Update.
10710         (emit_library_call_value_1): Update.
10711         (store_one_arg): Update.
10712         * varasm.c (initialize_cold_section_name): Update.
10713         (unlikely_text_section): Update.
10714         (unlikely_text_section_p): Update.
10715         (assemble_start_function): Update.
10716         (assemble_end_function): Update.
10717         (default_section_type_flags): Update.
10718         (switch_to_section): Update.
10719         * integrate.c (set_decl_abstract_flags): Update.
10720         (get_hard_reg_initial_val): Update.
10721         (has_hard_reg_initial_val): Update.
10722         (allocate_initial_values): Update.
10723         * resource.c (init_resource_info): Update.
10724         * config/alpha/alpha.c (NUM_ARGS): Update.
10725         (direct_return): Update.
10726         (alpha_va_start): Update.
10727         (alpha_sa_size): Update.
10728         (alpha_initial_elimination_offset): Update.
10729         (alpha_expand_prologue): Update.
10730         (alpha_start_function): Update.
10731         (alpha_expand_epilogue): Update.
10732         (unicosmk_initial_elimination_offset):
10733         * config/alpha/alpha.md (call expander): Update.
10734         * config/s390/s390.c (s390_register_info): Update.
10735         (s390_register_info): Update.
10736         (s390_frame_info): Update.
10737         (s390_initial_elimination_offset): Update.
10738         (s390_build_builtin_va_list): Update.
10739         (s390_va_start): Update.
10740         * config/spu/spu.c (direct_return): Update.
10741         (spu_expand_prologue): Update.
10742         (spu_initial_elimination_offset): Update.
10743         (spu_build_builtin_va_list): Update.
10744         (spu_va_start): Update.
10745         * config/sparc/sparc.c (sparc_init_modes): Update.
10746         (sparc_compute_frame_size): Update.
10747         (function_value): Update.
10748         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
10749         * config/i386/i386.md (return expander): Update.
10750         * config/i386/i386.c (ix86_va_start): Update.
10751         (ix86_can_use_return_insn_p): Update.
10752         (ix86_compute_frame_layout): Update.
10753         (ix86_expand_epilogue): Update.
10754         * config/sh/sh.c (output_stack_adjust): Update.
10755         (calc_live_regs): Update.
10756         (sh_expand_prologue): Update.
10757         (sh_builtin_saveregs): Update.
10758         (sh_va_start): Update.
10759         (initial_elimination_offset): Update.
10760         (sh_allocate_initial_value): Update.
10761         (sh_function_ok_for_sibcall): Update.
10762         (sh_get_pr_initial_val): Update.
10763         * config/sh/sh.md (return expander): Update.
10764         * config/avr/avr.c (frame_pointer_required_p): UPdate.
10765         * config/crx/crx.c (crx_compute_frame): UPdate.
10766         (crx_initial_elimination_offset): UPdate.
10767         * config/xtensa/xtensa.c (compute_frame_size): Update
10768         (xtensa_builtin_saveregs): Update.
10769         (xtensa_va_start): Update.
10770         (order_regs_for_local_alloc): Update.
10771         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
10772         (xstormy16_expand_builtin_va_start): Update.
10773         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
10774         * config/m68hc11/m68hc11.md (return expanders): Update.
10775         * config/m68hc11/m68hc11.c (expand_prologue): Update.
10776         (expand_epilogue): Update.
10777         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
10778         (cris_simple_epilogue): Update.
10779         (cris_expand_prologue): Update.
10780         (cris_expand_epilogue): Update.
10781         * config/iq2000/iq2000.c (iq2000_va_start): Update.
10782         (compute_frame_size): Update.
10783         * config/mt/mt.c (mt_compute_frame_size): Update.
10784         * config/mn10300/mn10300.c (expand_prologue): Update.
10785         (expand_epilogue): Update.
10786         (initial_offset): Update.
10787         (mn10300_builtin_saveregs):
10788         * config/mn10300/mn10300.md (return expander): Update.
10789         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
10790         (ia64_initial_elimination_offset): Update.
10791         (ia64_initial_elimination_offset): Update.
10792         (ia64_expand_prologue): Update.
10793         * config/m68k/m68k.md (return expander): Update.
10794         * config/rs6000/rs6000.c (rs6000_va_start): Update.
10795         (rs6000_stack_info): Update.
10796         * config/mcore/mcore.c (layout_mcore_frame): Update.
10797         (mcore_expand_prolog): Update.
10798         * config/arc/arc.c (arc_compute_frame_size): Update.
10799         * config/score/score3.c (score3_compute_frame_size): Update.
10800         * config/score/score7.c (score7_compute_frame_size): Update.
10801         * config/arm/arm.c (use_return_insn): Update.
10802         (thumb_find_work_register): Update.
10803         (arm_compute_save_reg_mask): Update.
10804         (arm_output_function_prologue): Update.
10805         (arm_output_epilogue): Update.
10806         (arm_size_return_regs): Update.
10807         (arm_get_frame_offsets): Update.
10808         (arm_expand_prologue): Update.
10809         (thumb_exit): Update.
10810         (thumb_unexpanded_epilogue): Update.
10811         (thumb1_output_function_prologue): Update.
10812         * config/pa/pa.md (return expander): Update.
10813         * config/pa/pa.c (compute_frame_size): Update.
10814         (hppa_builtin_saveregs): Update.
10815         * config/mips/mips.c (mips_va_start): Update.
10816         (mips16_build_function_stub): Update.
10817         (mips_compute_frame_info): Update.
10818         (mips_restore_gp): Update.
10819         (mips_output_function_prologue): Update.
10820         (mips_expand_prologue): Update.
10821         * config/v850/v850.c (compute_frame_size): Update.
10822         (expand_prologue): * config/mmix/mmix.c (along): update.
10823         (mmix_initial_elimination_offset): update.
10824         (mmix_reorg): update.
10825         (mmix_use_simple_return): update.
10826         (mmix_expand_prologue): update.
10827         (mmix_expand_epilogue): Update.
10828         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
10829         (emit_link_insn): Update.
10831 2008-04-08  Anatoly Sokolov <aesok@post.ru>
10833         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define
10834         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL
10835         instructions.
10836         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for
10837         atmega103 device.
10839 2008-04-07  Jan Hubicka  <jh@suse.cz>
10841         * function.h (rtl): Rename to x_rtl.
10842         (crtl): New define.
10843         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
10844         frame_offset, stack_check_probe_note, arg_pointer_save_area,
10845         used_temp_slots avail_temp_slots, temp_slot_level,
10846         nonlocal_goto_handler_labels): Update accesstors.
10847         (rtl): New global variable.
10848         (struct function): Move some fileds to rtl_data.
10849         (get_arg_pointer_save_area): Update prototype.
10850         * builtins.c (expand_builtin_setjmp_receiver): Update call of
10851         get_arg_pointer_save_area.
10852         * expr.c (init_expr): Update
10853         * function.c (get_frame_size): Update
10854         (assign_stack_local): Update
10855         (expand_function_end): Update.
10856         (get_art_pointer_save_area): Update
10857         * function.h
10858         * emit-rtl.c (rtl): Declare.
10859         (regno_reg_rtx): Declare.
10860         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
10861         Update.
10862         (gen_reg_rtx): Update.
10863         * varasm.c (n_deferred_constatns): Update accestor.
10864         (init_varasm_status): Do not allocate varasm_status.
10865         (force_const_mem, get_pool_size, output_constant_pool): Update.
10866         * stmt.c (force_label_rtx): Do not use x_ prefixes.
10867         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
10868         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
10869         * sparc/sparc.h (INIT_EXPANDERS): Update.
10870         * ia64/ia64.h (INIT_EXPANDERS): Update.
10872 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
10874         * reload.c (push_secondary_reload): Add missing break to for loop.
10876 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
10878         PR middle-end/PR28690
10879         * rtlanal.c: Update copyright years.
10880         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
10881         as REG_POINTER and MEM_POINTER operands.
10882         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
10883         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
10884         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
10885         * gcse.c: Update copyright years.
10886         (pre_delete): Call gen_reg_rtx_and_attrs.
10887         (hoist_code): Likewise.
10888         (build_store_vectors): Likewise.
10889         (delete_store): Likewise.
10890         * loop-invariant.c (move_invariant_reg): Likewise.
10891         Update copyright years.
10893 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
10895         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
10896         control string instead of quoted.
10898 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
10900         * doc/rtl.texi: Rewrite of subreg section.
10902 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
10904         PR/35842
10905         * config/i386/i386.c (legitimize_pic_address): Add treating
10906         of dllimport SYM_REF's.
10907         (legitimize_dllimport_symbol): Add prototype.
10909 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10911         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
10912         reference in constructor with non self-referential type.
10914 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
10916         Removal of Return with Depressed Stack Pointer support
10917         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
10918         (ECF_SP_DEPRESSED): Likewise.
10919         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
10920         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
10921         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10922         (expand_call): Do not test ECF_SP_DEPRESSED.
10923         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10924         * function.c (keep_stack_depressed): Delete.
10925         (handle_epilogue_set): Likewise.
10926         (update_epilogue_consts): Likewise.
10927         (emit_equiv_load): Likewise.
10928         (thread_prologue_and_epilogue_insns): Remove support for Return with
10929         Depressed Stack Pointer.
10930         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
10932 2008-04-06  Richard Guenther  <rguenther@suse.de>
10934         PR tree-optimization/35400
10935         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
10936         information from SSA_NAMEs.
10938 2008-04-06  Anatoly Sokolov <aesok@post.ru>
10940         * config/avr/avr.h (avr_mega_p): Remove declaration.
10941         (AVR_MEGA): Remove macro.
10942         * config/avr/avr.c (avr_mega_p): Remove variable.
10943         (avr_override_options): Remove inicializion of avr_mega_p.
10944         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10945         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
10946         (avr_jump_mode): (Ditto.).
10947         (avr_output_progmem_section_asm_op): (Ditto.).
10948         (avr_asm_init_sections): (Ditto.).
10949         (avr_asm_init_sections): (Ditto.).
10950         (avr_rtx_costs): (Ditto.).
10951         * config/avr/avr.md: (Ditto.).
10952         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
10953         '__AVR_MEGA__'.
10955 2008-04-06  Richard Guenther  <rguenther@suse.de>
10957         PR tree-optimization/35842
10958         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
10959         is_gimple_invariant_address.
10961 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
10963         * gcc.c (default_compilers): Sync Fortran extensions list with
10964         that in fortran/lang-specs.h.
10965         * doc/invoke.texi: Likewise.
10966         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
10967         * dwarf2out.c (gen_compile_unit_die): Likewise.
10969 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
10971         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
10973 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
10975         PR target/12329
10976         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
10977         attribute is used for nested functions.
10979 2008-04-05  Jan Hubicka  <jh@suse.cz>
10981         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
10983         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
10984         letter argument.
10985         (dump_files): Update.
10986         (enable_rtl_dump_file): Do not accept letter argument.
10987         * tree-pass.h (dump_file_info): Remove letter argument.
10988         * toplev.c (decode_d_option): Update -da handling.
10989         * toplev.h (enable_rtl_dump_file): Update prototype.
10990         * passes.c (register_one_dump_file): Do not accept IPA argument; work
10991         it out based on pass type.
10992         (register_dump_files_1): Likewise.
10993         (init_optimization_passes): Update register_one_dump_file calls.
10994         (execute_one_pass): Sanity check that IPA passes are called at IPA
10995         level and RTL passes at RTL level.
10996         (execute_pass_list): IPA pass can not be after or subpass of
10997         GIMPLE/RTL pass.
10998         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
10999         disallov RTL subpasses of IPA subpasses.
11001 2008-04-05  Ben Elliston  <bje@au.ibm.com>
11003         * tree-cfg.c (need_fake_edge_p): Return false for calls to
11004         builtins that return exactly once and do not throw. Cache call to
11005         call_expr_flags.
11007 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
11009         PR rtl-optimization/34916
11010         PR middle-end/35519
11011         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
11012         between instruction pairs.
11014 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
11016         * doc/invoke.texi: Document -mbitops for SH.
11017         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
11018         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
11019         * config/sh/sh.c (print_operand): Add %t operand code.
11020         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
11021         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
11022         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
11023         (extendqihi2): Likewise.
11024         (movqi_i): Likewise.
11025         (insv): Use bset, bclr and bst instructions for SH2A if possible.
11026         (extv): Use bld instruction for SH2A if possible.
11027         (extzv): Likewise.
11028         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
11029         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
11030         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
11031         (bset.b, bclr.b): Define peepholes.
11032         * config/sh/sh.opt (mbitops): New option.
11034 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
11036         PR target/35620
11037         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
11038         and view convert expression.
11040 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11042         PR target/35364
11043         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
11045 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
11047         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
11049         * config/i386/cpuid.h (bit_AES): New.
11050         (bit_PCLMUL): Likewise.
11052         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
11053         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
11054         SSE2 if AES or PCLMUL is enabled.
11055         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
11056         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11057         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
11058         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
11059         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
11060         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
11061         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
11062         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
11063         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
11064         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
11065         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
11066         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
11067         __builtin_ia32_aeskeygenassist128 and
11068         __builtin_ia32_pclmulqdq128.
11069         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
11070         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
11071         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
11073         * config/i386/i386.h (TARGET_AES): New.
11074         (TARGET_PCLMUL): Likewise.
11075         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
11077         * config/i386/i386.md (UNSPEC_AESENC): New.
11078         (UNSPEC_AESENCLAST): Likewise.
11079         (UNSPEC_AESDEC): Likewise.
11080         (UNSPEC_AESDECLAST): Likewise.
11081         (UNSPEC_AESIMC): Likewise.
11082         (UNSPEC_AESKEYGENASSIST): Likewise.
11083         (UNSPEC_PCLMUL): Likewise.
11085         * config/i386/i386.opt (maes): New.
11086         (mpclmul): Likewise.
11088         * config/i386/sse.md (aesenc): New pattern.
11089         (aesenclast): Likewise.
11090         (aesdec): Likewise.
11091         (aesdeclast): Likewise.
11092         (aesimc): Likewise.
11093         (aeskeygenassist): Likewise.
11094         (pclmulqdq): Likewise.
11096         * config/i386/wmmintrin.h: New.
11098         * doc/extend.texi: Document AES and PCLMUL built-in function.
11100         * doc/invoke.texi: Document -maes and -mpclmul.
11102 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
11104         * function.c (free_after_parsing): Replace with
11105         cxx_push_function_context from C++ front-end.
11106         (allocate_struct_function): Don't call langhook.
11107         * langhooks.h (struct lang_hooks_for_functions): Delete.
11108         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
11109         member "function".
11110         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
11111         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
11112         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
11113         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
11114         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
11115         remove LANG_HOOKS_FUNCTION_INITIALIZER.
11116         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
11118         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
11119         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
11121 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
11123         PR c/35440
11124         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
11125         for all types.
11127 2008-04-04  Richard Guenther  <rguenther@suse.de>
11129         PR middle-end/35823
11130         * fold-const.c (optimize_minmax_comparison): Use the correct
11131         type for the constant in the simplified comparison.
11133 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
11135         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
11136         Pass L2 size as "--param l2-cache-size" to the compiler.
11137         (decode_l2_cache): New function to decode L2 cache parameters using
11138         0x8000006 extended cpuid function.
11139         (detect_caches_amd): Determine parameters of L2 cache using
11140         decode_l2_caches function.
11141         (decode_caches_intel): Decode L2 cache parameters.
11142         (detect_caches_intel): Determine L2 cache parameters using
11143         decode_caches_intel and decode_l2_caches functions.
11145 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
11147         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
11148         secondary input reload for subword loads from the constant pool.
11150 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
11152         PR target/35713
11153         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
11154           constants of the appropriate size for runtime calculations.
11156         PR c/35712
11157         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
11158           decimal-float literal constant zero.
11160 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
11162         PR c/35738
11163         * c-parser.c (c_parser_omp_atomic): Call
11164         default_function_array_conversion on the RHS.
11166         PR middle-end/35818
11167         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
11168         call is_variable_sized if decl has incomplete type.
11170 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
11172         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
11174 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
11176         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
11177         iterators.
11178         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
11179         (sgt<u>): Merge sgt and sgtu into new expander.
11180         (sgt, sgtu): Remove expanders.
11181         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
11182         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
11183         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
11184         *sgtu_<mode>_mips16 into new pattern.
11185         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
11186         (sge<u>): Merge sge and sgeu into new expander.
11187         (sge, sgeu): Remove expanders.
11188         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
11189         new pattern.
11190         (*sge_<mode>, second *sge_<mode>): Remove patterns.
11191         (slt<u>): Merge slt and sltu into new expander.
11192         (slt, sltu): Remove expanders.
11193         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
11194         (*slt_<mode>, *sltu_<mode>): Remove patterns.
11195         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
11196         *sltu_<mode>_mips16 into new pattern.
11197         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
11198         (sle<u>): Merge sle and sleu into new expander.
11199         (sle, sleu): Remove expanders.
11200         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
11201         (*sle_<mode>, *sleu_<mode>): Remove patterns.
11202         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
11203         *sleu_<mode>_mips16 into new pattern.
11204         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
11206 2008-04-03  Jan Hubicka  <jh@suse.cz>
11208         PR tree-optimization/35795
11209         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
11210         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11211         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11212         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
11213         * score/score3.c (score3_output_mi_thunk): Likewise.
11214         * score/score7.c (score7_output_mi_thunk): Likewise.
11215         * mips/mips.c (mips_output_mi_thunk): Likewise.
11217 2008-04-03  Richard Guenther  <rguenther@suse.de>
11219         * tree-vrp.c (extract_range_from_unary_expr): Handle all
11220         conversions.  Simplify code.
11222 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11224         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
11226 2008-04-03  Tom Tromey  <tromey@redhat.com>
11227             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11229         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
11230         * config/bfin/t-bfin-linux (generated_files): Add
11231         linux-sysroot-suffix.h.
11232         * doc/install.texi (Prerequisites): Require make 3.80.
11233         * doc/sourcebuild.texi (Front End Directory): Document new
11234         variable.
11235         * Makefile.in (generated_files): New variable.
11236         (ALL_HOST_OBJS): New variable.
11237         ($(ALL_HOST_OBJS)): New target.
11239 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11241         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
11242         (remap_block): Call id->transform_lang_insert_block instead
11243         of langhook.
11244         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
11245         Set id.transform_lang_insert_block to NULL.
11246         (clone_body): Move to cp/optimize.c
11247         * tree-inline.h (struct copy_body_data): Change
11248         transform_lang_insert_block to function pointer.
11249         (copy_generic_body, copy_decl_no_change): Export.
11250         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
11251         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
11252         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
11254         * c-tree.h (insert_block): Kill.
11255         * c-decl.c (insert_block): Kill.
11257 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
11259         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11260         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11261         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
11262         argument.
11263         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
11264         argument, call {push,pop}_function_context from here.
11265         * c-parser.c: Use c_{push,pop}_function_context.
11267         * function.c (push_function_context_to): Move meat ...
11268         (push_function_context): ... here.  Simplify.
11269         * function.c (pop_function_context_from): Move meat ...
11270         (pop_function_context): ... here.  Simplify.
11271         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
11272         leave_nested).
11273         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
11274         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
11275         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
11276         * tree.h (push_function_context_to, pop_function_context_from): Remove.
11278 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11280         * expmed.c (extract_force_align_mem_bit_field): Remove.
11282 2008-04-03  Richard Guenther  <rguenther@suse.de>
11284         PR middle-end/35800
11285         * expr.h (try_casesi): Adjust prototype.
11286         * expr.c (try_casesi): Take fallback label as extra parameter.
11287         Use that for gen_casesi if default_label is NULL.
11288         * stmt.c (expand_case): Pass fallback label to try_casesi,
11289         make sure to fill gaps with a fallback label if default_label
11290         is not present.
11292 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
11294         PR target/35801
11295         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
11297 2008-04-03  Ben Elliston  <bje@au.ibm.com>
11299         * expmed.c (extract_split_bit_field): Remove if (0) code.
11300         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
11301         (do_ds_constraint): Likewise.
11303 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
11305         * doc/cppopts.texi (-dU): Document.
11306         * c-common.h (flag_dump_macros): Update comment.
11307         * c-opts.c (handle_OPT_d): Handle -dU.
11308         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
11309         dump_queued_macros, cb_used_define, cb_used_undef): New.
11310         (init_pp_output): Handle -dU.
11311         (cb_line_change): Call dump_queued_macros.
11312         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
11314 2008-04-02  Anatoly Sokolov <aesok@post.ru>
11316         * config/avr/predicates.md (io_address_operand): New predicate.
11317         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
11318         * config/avr/avr.c (avr_io_address_p): Remove function.
11319         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
11320         'avr_io_address_p' function.
11321         (out_movhi_r_mr): (Ditto.).
11322         (out_movqi_mr_r): (Ditto.).
11323         (out_movhi_mr_r): (Ditto.).
11324         (avr_address_cost): (Ditto.).
11326 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
11328         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
11329         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
11330         in 32bit mode when XMM registers are available to avoid store
11331         forwarding stalls.
11332         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
11333         corresponding post-reload splitters.
11335 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11337         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
11338         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
11339         __builtin_ia32_roundss.
11340         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
11341         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
11342         __builtin_ia32_roundss.
11343         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
11344         IX86_BUILTIN_SHUFPD here.
11346 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
11348         * config/i386/i386.md (plogic): New.
11349         (plogicprefix): Likewise.
11351         * config/i386/mmx.md (mmx_<code><mode>3): New.
11352         (mmx_and<mode>3): Removed.
11353         (mmx_ior<mode>3): Likewise.
11354         (mmx_xor<mode>3): Likewise.
11356         * config/i386/sse.md (<code><mode>3): New.
11357         (*<code><mode>3): Likewise.
11358         (*<code><mode>3): Likewise.
11359         (<code><mode>3): Likewise.
11360         (*sse_<code><mode>3): Likewise.
11361         (*sse2_<code><mode>3): Likewise.
11362         (<code>tf3): Likewise.
11363         (*<code>tf3): Likewise.
11364         (and<mode>3): Likewise.
11365         (*and<mode>3): Likewise.
11366         (ior<mode>3): Removed.
11367         (*ior<mode>3): Likewise.
11368         (xor<mode>3): Likewise.
11369         (*xor<mode>3): Likewise.
11370         (*and<mode>3): Likewise.
11371         (*ior<mode>3): Likewise.
11372         (*xor<mode>3): Likewise.
11373         (and<mode>3): Likewise.
11374         (*sse_and<mode>3): Likewise.
11375         (*sse2_and<mode>3): Likewise.
11376         (andtf3): Likewise.
11377         (*andtf3): Likewise.
11378         (ior<mode>3): Likewise.
11379         (*sse_ior<mode>3): Likewise.
11380         (*sse2_ior<mode>3): Likewise.
11381         (iortf3): Likewise.
11382         (*iortf3): Likewise.
11383         (xor<mode>3): Likewise.
11384         (*sse_xor<mode>3): Likewise.
11385         (*sse2_xor<mode>3): Likewise.
11386         (xortf3): Likewise.
11387         (*xortf3): Likewise.
11389 2008-04-02  Richard Guenther  <rguenther@suse.de>
11391         PR tree-optimization/14495
11392         PR tree-optimization/34793
11393         * tree-vrp.c (struct switch_update): New structure.
11394         (to_remove_edges, to_update_switch_stmts): New VECs.
11395         (simplify_switch_using_ranges): New function.  Remove not taken
11396         case labels and edges.
11397         (simplify_stmt_using_ranges): Call it.
11398         (identify_jump_threads): Mark edges we have queued for removal
11399         so we don't thread them.
11400         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
11401         case label vector.
11402         * tree-cfg.c (group_case_labels): Deal with missing default label.
11403         (tree_verify_flow_info): Allow missing default label.
11404         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
11405         (emit_case_nodes): Likewise.
11406         (expand_case): Do not rely on the default label to be present.
11407         * expr.c (try_casesi): Deal with NULL default_label.
11408         (do_tablejump): Likewise.
11410 2008-04-02  Richard Guenther  <rguenther@suse.de>
11412         PR tree-optimization/14495
11413         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
11414         SWITCH_EXPR here ...
11415         (vrp_visit_switch_stmt): ... but here (new function).
11416         (find_case_label_index): New helper function.
11417         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
11419 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11421         * fwprop.c: Fix ISO-C99ism.
11423 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11425         PR bootstrap/35752
11426         * Makefile.in (objdir): Set it here.
11427         * configure.ac: Not here.  Find dynamic linker characteristics.
11428         * exec-tool.in: Use them.
11429         * aclocal.m4: Regenerate.
11430         * configure: Regenerate.
11432 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11434         * expr.c (expand_var): Delete it.
11435         * expr.h (expand_var): Delete prototype.
11436         * function.c (expand_function_start): Use expand_decl instead.
11437         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
11438         langhook.
11440 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
11442         PR rtl-optimization/35542
11443         * fwprop.c (forward_propagate_and_simplify): Replace
11444         loc_reg_mentioned_in_p with reg_mentioned_p.
11446 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
11448         PR rtl-optimization/35281
11449         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
11450         (propagate_rtx_1): Handle PR_HANDLE_MEM.
11451         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
11452         (varying_mem_p): Move above propagate_rtx.
11453         (all_uses_available_at): Do not check MEMs.
11455 2008-04-02  Rafael Espindola  <espindola@google.com>
11457         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
11458         (register_edge_assert_for_2): Split the cond argument.
11459         (register_edge_assert_for_1): Adjust for the change in
11460         register_edge_assert_for_2.
11461         (register_edge_assert_for): Split the cond argument.
11462         (find_switch_asserts): Adjust for the change in
11463         register_edge_assert_for.
11465 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
11467         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
11468         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
11469         offsets for 64-bit mingw.
11470         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
11471         abi for x86_64-pc-mingw.
11473 2008-04-02  Richard Guenther  <rguenther@suse.de>
11475         * tree-vrp.c (extract_range_from_assert): Make sure to not
11476         produce range min/max with TREE_OVERFOW set.
11477         If merging a anti-range and a range keep the anti-range if
11478         the range covers all values of the type.
11479         (register_edge_assert_for_2): Only allow sign-changing
11480         conversions in detecting canonical range checks.  Also
11481         register an assert for the unsigned name if useful.
11483         PR tree-optimization/35787
11484         * tree-vrp.c (vrp_val_max): New function.
11485         (vrp_val_min): Likewise.
11486         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
11487         (vrp_val_is_min): Likewise.
11488         (supports_overflow_infinity): Use vrp_val_{min,max}.
11489         (negative_overflow_infinity): Likewise.
11490         (positive_overflow_infinity): Likewise.
11491         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
11492         (is_positive_overflow_infinity): Likewise.
11493         (is_overflow_infinity): Likewise.
11494         (avoid_overflow_infinity): Use vrp_val_{min,max} and
11495         vrp_val_is_{min,max}.
11496         (set_and_canonicalize_value_range): Canonicalize anti-ranges
11497         to ranges if possible.  Avoid empty ranges.
11499 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11501         PR middle-end/35705
11502         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
11503         the expression is a function address.
11505 2008-04-01  George Helffrich  <george@gcc.gnu.org>
11507         PR fortran/35154, fortran/23057
11508         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
11509         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
11510         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
11511         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
11512         in common.
11513         (dbxout_syms): Check for COMMON-based symbol and wrap in
11514         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
11515         in bracket for efficiency.
11517         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
11518         using DW_TAG_common_block + member offset.
11519         (add_pubname_string): New function.
11520         (dw_expand_expr): New function to find block name and offset for
11521         COMMON var.
11522         (common_check): New function to check whether symbol in Fortran COMMON.
11523         (gen_variable_die): If COMMON, use DW_TAG_common_block.
11525 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
11527         PR c/35436
11528         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
11530 2008-04-02  Ben Elliston  <bje@au.ibm.com>
11532         * config/v850/v850.md (casesi): Remove if (0) code.
11533         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11534         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11536 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
11538         * config/i386/i386.md (rex64suffix): New mode attribute.
11539         (floathi<mode>2): Disable expander for SSE math.
11540         (*floathi<mode>2_1): New insn insn_and_split pattern.
11541         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
11542         corresponding post-reload splitters.
11543         (*floathi<mode>2_i387): New macroized insn pattern.
11544         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
11545         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
11546         insn_and_split pattern.
11547         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
11548         New macroized instruction patterns and corresponding post-reload
11549         splitters.
11550         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
11551         and corresponding post-reload splitters.
11552         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
11553         New macroized instruction patterns.
11554         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
11555         macroized instruction patterns and corresponding post-reload splitters.
11556         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
11557         corresponding post-reload splitters.
11558         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
11559         New macroized instruction patterns.
11560         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
11561         corresponding post-reload splitters.
11562         (*floatsi<mode>2_i387): New macroized instruction patterns.
11564 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
11566         * config/i386/i386.md (smaxmin): New.
11567         (umaxmin): Likewise.
11568         (maxminiprefix): Likewise.
11569         (maxminfprefix): Likewise.
11570         (<code><mode>3): Likewise.
11571         (smin<mode>3): Removed.
11572         (smax<mode>3): Likewise.
11574         * config/i386/mmx.md (mmx_<code>v2sf3): New.
11575         (mmx_<code>v4hi3): Likewise.
11576         (mmx_<code>v8qi3): Likewise.
11577         (mmx_smaxv2sf3): Removed.
11578         (mmx_sminv2sf3): Likewise.
11579         (mmx_umaxv8qi3): Likewise.
11580         (mmx_smaxv4hi3): Likewise.
11581         (mmx_uminv8qi3): Likewise.
11582         (mmx_sminv4hi3): Likewise.
11584         * config/i386/sse.md (<addsub><mode>3): New.
11585         (*<addsub><mode>3): Likewise.
11586         (<sse>_vm<addsub><mode>3): Likewise.
11587         (<maxmin><mode>3): Likewise.
11588         (*<maxmin><mode>3_finite): Likewise.
11589         (*<maxmin><mode>3): Likewise.
11590         (<sse>_vm<maxmin><mode>3): Likewise.
11591         (sse3_h<addsub>v4sf3): Likewise.
11592         (sse3_h<addsub>v2df3): Likewise.
11593         (<maxmin>v16qi3): Likewise.
11594         (*<maxmin>v16qi3): Likewise.
11595         (<maxmin>v8hi3): Likewise.
11596         (*<maxmin>v8hi3): Likewise.
11597         (*sse4_1_<maxmin><mode>3): Likewise.
11598         (*sse4_1_<maxmin><mode>3): Likewise.
11599         (add<mode>3): Removed.
11600         (*add<mode>3): Likewise.
11601         (<sse>_vmadd<mode>3): Likewise.
11602         (sub<mode>3): Likewise.
11603         (*sub<mode>3): Likewise.
11604         (<sse>_vmsub<mode>3): Likewise.
11605         (smin<mode>3): Likewise.
11606         (*smin<mode>3_finite): Likewise.
11607         (*smin<mode>3): Likewise.
11608         (<sse>_vmsmin<mode>3): Likewise.
11609         (smax<mode>3): Likewise.
11610         (*smax<mode>3_finite): Likewise.
11611         (*smax<mode>3): Likewise.
11612         (<sse>_vmsmax<mode>3): Likewise.
11613         (sse3_haddv4sf3): Likewise.
11614         (sse3_haddv2df3): Likewise.
11615         (sse3_hsubv4sf3): Likewise.
11616         (sse3_hsubv2df3): Likewise.
11617         (umaxv16qi3): Likewise.
11618         (*umaxv16qi3): Likewise.
11619         (smaxv8hi3): Likewise.
11620         (*smaxv8hi3): Likewise.
11621         (*sse4_1_smax<mode>3): Likewise.
11622         (*sse4_1_umax<mode>3): Likewise.
11623         (uminv16qi3): Likewise.
11624         (*uminv16qi3): Likewise.
11625         (sminv8hi3): Likewise.
11626         (*sminv8hi3): Likewise.
11627         (*sse4_1_smin<mode>3): Likewise.
11628         (*sse4_1_umin<mode>3): Likewise.
11630 2008-04-01  Rafael Espindola  <espindola@google.com>
11632         * tree-cfg.c (verify_expr): remove in_phi.
11633         (verify_stmt): Don't call walk_tree with verify_expr. Use
11634         is_gimple_min_invariant instead of is_gimple_val.
11636 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
11638         * doc/include/gpl_v3.texi: Update for manpage generation.
11639         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
11640         gpl.texi.
11641         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
11642         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
11643         gpl_v3.texi instead of gpl.texi.
11644         (gpl.pod): New.
11646 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
11648         PR pch/13675
11649         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
11651 2008-04-01  Rafael Espindola  <espindola@google.com>
11653         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
11654         (extract_code_and_val_from_cond): Use
11655         extract_code_and_val_from_cond_with_ops.
11657 2008-04-01  Jan Hubicka  <jh@suse.cz>
11659         * function.c (free_after_compilation): Free epilogue_delay_list.
11660         (prepare_function_start): Assert that previous compilation was freed.
11662 2008-04-01  Jan Hubicka  <jh@suse.cz>
11663             Jim Wilson  <wilson@tuliptree.org>
11664             Andreas Tobler <andreast@gcc.gnu.org>
11666         PR middle-end/35781
11667         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
11668         rtl.emit instead cfun->emit.
11669         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
11670         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
11672 2008-04-01  Ben Elliston  <bje@au.ibm.com>
11674         * doc/c-tree.texi (Function Basics): Fix grammatical error.
11676 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
11678         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
11679         New options
11680         (fprofile-use): Add var flag_profile_use
11681         * coverage.c (coverage_begin_output): Do not open a gcno file for
11682         output only if -ftest-coverage is set.
11683         Do not add getpwd() to gcda file path.
11684         (build_gcov_info): Check the new flag
11685         flag_profile_datafile_relative_path.
11686         (coverage_init): Use profile_data_prefix.
11687         Read profile counter only if flag_profile_use is set.
11688         * opts.c (common_handle_option): New option fprofile-use=,
11689         fprofile-dir=, fprofile-generate=.
11690         * toplev.c (profile_data_prefix): New variable definition.
11691         * toplev.h (profile_data_prefix): New declaration.
11692         * doc/invoke.tex (Option Summary, Optimization Options):
11693         Add new options.
11695 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
11697         * varasm.c (output_constant_pool_1): In LABEL_REF check,
11698         use tmp consistently.
11700         PR target/35695
11701         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
11702         * config/ia64/ia64.c (rtx_needs_barrier): Handle
11703         UNSPEC_FR_RECIP_APPROX_RES.
11704         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
11706 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
11708         PR c/35750
11709         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
11711 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11713         PR middle-end/30186
11714         * fold-const.c (fold_indirect_ref_1): Support accessing non first
11715         element of the vector via a pointer.
11717 2008-03-31  Ian Lance Taylor  <iant@google.com>
11719         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
11721 2008-03-31  Jan Hubicka  <jh@suse.cz>
11723         * builtins.c (expand_builtin_setjmp_receiver): Update call of
11724         get_arg_pointer_save_area.
11725         * expr.c (init_expr): Just clear out rtl.expr.
11726         * function.c (free_after_compilation): Clear out whole RTL structure.
11727         (get_func_frame_size): Merge into ...
11728         (get_frame_size): ... this one.
11729         (assign_stack_local_1): Merge into ...
11730         (assign_stack_local): ... this one.
11731         (expand_function_end): Update call of get_arg_pointer_save_area.
11732         (get_art_pointer_save_area): Remove cfun argument.
11733         * function.h (emit_status): regno_pointer_align does not need length
11734         attribute. Move x_regno_reg_rtx to ...
11735         (regno_reg_rtx): ... new global array.
11736         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
11737         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
11738         apply_args_value, forced_labels, stack_pointer_delta):
11739         Update accestors.
11740         (struct varasm_status): Move here from varasm.c
11741         (struct rtl_data): New. Move here some fields from struct function.
11742         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
11743         frame_offset, stack_check_probe_note, arg_pointer_save_area,
11744         used_temp_slots avail_temp_slots, temp_slot_level,
11745         nonlocal_goto_handler_labels): Update accesstors.
11746         (rtl): New global variable.
11747         (struct function): Move some fileds to rtl_data.
11748         (get_arg_pointer_save_area): Update prototype.
11749         * emit-rtl.c (rtl): Declare.
11750         (regno_reg_rtx): Declare.
11751         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
11752         Update.
11753         (gen_reg_rtx): Update.
11754         (init_virtual_regs): Do not tate emit_status argument.
11755         (init_emit): Do not allocate emit.
11756         * varasm.c (varasm_statuc): Move to function.h.
11757         (n_deferred_constatns): Update accestor.
11758         (init_varasm_status): Do not allocate varasm_status.
11759         (force_const_mem, get_pool_size, output_constant_pool): Update.
11760         * stmt.c (force_label_rtx): Do not use x_ prefixes.
11761         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
11763 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
11765         PR rtl-optimization/35729
11766         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
11767         references.
11769 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
11771         PR target/32000
11772         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
11773         load/store if memory is unaligned.
11774         (*movti_rex64): Likewise.
11776         * config/i386/predicates.md (misaligned_operand): New.
11778 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
11780         PR tree-opt/35431
11781         * tree-ssa-phiopt.c (conditional_replacement): Return early for
11782         complex types.
11784 2008-03-31  Jan Beulich  <jbeulich@novell.com>
11786         * config/ia64/constraints.md: Add 'j' constraint.
11787         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
11788         (movdi_internal): Likewise.
11790 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
11792         PR c/35748
11793         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
11795 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
11797         PR target/35757
11798         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
11799         proper error message for the third argument on blendpd and
11800         blendps.
11802         * config/i386/sse.md (blendbits): New.
11803         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
11805 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
11807         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
11809 2008-03-30  Richard Guenther  <rguenther@suse.de>
11811         PR middle-end/31023
11812         * fold-const.c (fold_sign_changed_comparison): Do leave
11813         conversions to base-types alone.
11815 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11817         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
11818         the link register if one altivec register is be saved.
11820 2008-03-30  Ben Elliston  <bje@au.ibm.com>
11822         * final.c (final_scan_insn): Remove if (0) code.
11824 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
11826         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
11828 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
11830         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
11831         of V4SFmode to ix86_binary_operator_ok.
11833 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
11835         * config/i386/i386.c (override_options): Initialize
11836         ix86_veclib_handler to ix86_veclibabi_svml when
11837         -mveclibabi=svml is used.
11838         (ix86_veclibabi_svml): New function for SVML ABI style
11839         vectorization support.
11840         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
11842 2008-03-28  Rafael Espindola  <espindola@google.com>
11844         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
11845         (tree_binary_nonnegative_warnv_p): Make it public.
11846         (tree_single_nonnegative_warnv_p): Make it public.
11847         (tree_invalid_nonnegative_warnv_p): Make it public.
11848         (tree_unary_nonzero_warnv_p): Make it public.
11849         (tree_binary_nonzero_warnv_p): Make it public
11850         (tree_single_nonzero_warnv_p): Make it public.
11851         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
11852         (extract_range_from_binary_expr): Split the expr argument.
11853         (extract_range_from_unary_expr): Split the expr argument.
11854         (extract_range_from_comparison): Split the expr argument.
11855         (extract_range_from_expr): Use the new aux functions.
11856         (vrp_evaluate_conditional_warnv): Use
11857         vrp_evaluate_conditional_warnv_with_ops.
11858         * tree.h (tree_unary_nonzero_warnv_p): Declare.
11859         (tree_binary_nonzero_warnv_p): Declare.
11860         (tree_single_nonzero_warnv_p): Declare.
11861         (tree_expr_nonzero_warnv_p): Declare.
11862         (tree_unary_nonnegative_warnv_p): Declare.
11863         (tree_binary_nonnegative_warnv_p): Declare.
11864         (tree_single_nonnegative_warnv_p): Declare.
11865         (tree_invalid_nonnegative_warnv_p): Declare.
11867 2008-03-28  Richard Guenther  <rguenther@suse.de>
11869         PR tree-optimization/30317
11870         PR tree-optimization/30911
11871         PR tree-optimization/34793
11872         * tree-vrp.c (set_and_canonicalize_value_range): New function.
11873         (struct assert_locus_d): New member EXPR.
11874         (register_new_assert_for): Add EXPR parameter to support
11875         ASSERT_EXPR <name, expr OP limit>.
11876         (register_edge_assert_for_1): Adjust callers.
11877         (find_assert_locations): Likewise.
11878         (process_assert_insertions_for): Build condition from expression.
11879         (extract_range_from_assert): Handle ASSERT_EXPRs
11880         of the form ASSERT_EXPR <name, expr OP limit>.
11881         (register_edge_assert_for_2): New helper registering
11882         asserts for comparisons.  Recognize range tests of the form
11883         (unsigned)i - CST1 OP CST2.
11884         (register_edge_assert_for_1): Use it.
11885         (register_edge_assert_for): Likewise.
11886         (needs_overflow_infinity): Integer sub-types
11887         do not need overflow infinities.
11888         (vrp_val_is_max): The extreme values of integer sub-types
11889         are those of the base type.
11890         (vrp_val_is_min): Likewise.
11891         * tree.def (ASSERT_EXPR): Document extra allowed conditional
11892         expressions.
11894 2008-03-28  Nick Clifton  <nickc@redhat.com>
11896         PR target/31110
11897         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
11898         Return GENERAL_REGS for stack adjustment reloads.
11900 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11902         PR target/31334
11903         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
11904         const_vector when all the vectors are constant.
11906 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
11908         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
11909         comparisons.
11910         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
11911         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
11912         (scc_sf): New.
11913         (s<code>_sf): Use new scc_sf attribute for opcode names.
11915 2008-03-27  Tom Tromey  <tromey@redhat.com>
11917         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
11918         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
11919         config/spu/t-spu-elf, config/i386/t-interix,
11920         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
11921         config/i386/x-darwin, config/i386/x-mingw32,
11922         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
11923         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
11924         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
11925         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
11926         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
11927         config/rs6000/x-darwin, config/rs6000/t-rs6000,
11928         config/score/t-score-elf, config/arm/t-strongarm-pe,
11929         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
11930         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
11931         Revert automatic dependency patch.
11933 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
11935         PR target/35657
11936         * config/i386/i386.c (ix86_function_arg_boundary): Align
11937         decimal floating point to its natural boundary.
11939 2008-03-27  Richard Guenther  <rguenther@suse.de>
11941         PR middle-end/35716
11942         * fold-const.c (fold_comparison): Restrict distinct decl
11943         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
11944         solely rely on operand_equal_p.
11946 2008-03-27  Richard Guenther  <rguenther@suse.de>
11948         PR c/32511
11949         * c-common.c (handle_weak_attribute): Reject combination of
11950         weak and inline.
11952 2008-03-27  Richard Guenther  <rguenther@suse.de>
11954         PR tree-optimization/32810
11955         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
11956         conversions from DECL_INITIAL.
11957         (fold_const_aggregate_ref): Likewise from constructor elements.
11959 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
11961         * tree-affine.h (aff_combination_expand): Declare.
11962         (get_inner_reference_aff): Likewise.
11963         * tree-affine.c (aff_combination_expand): Split out from
11964         tree_to_aff_combination_expand.
11965         (get_inner_reference_aff): New function.
11966         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
11967         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
11968         (struct lim_aux_data): sm_done field removed.
11969         (mem_ref_loc_p, mem_ref_locs_p): New types.
11970         (struct mem_ref): Added id, stored, accesses_in_loop,
11971         indep_loop, dep_loop, indep_ref, dep_ref fields.
11972         Removed is_stored, locs and next fields.
11973         (memory_accesses): New variable.
11974         (movement_possibility): Do not allow moving statements
11975         that store to memory.
11976         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
11977         New functions.
11978         (determine_max_movement): For statements with memory references,
11979         find the outermost loop in that the reference is independent.
11980         (move_computations_stmt): Mark the virtual operands for renaming.
11981         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
11982         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
11983         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
11984         add_vop_ref_mapping, create_vop_ref_mapping_loop,
11985         create_vop_ref_mapping, analyze_memory_references,
11986         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
11987         get_all_locs_in_loop, ref_always_accessed_p,
11988         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
11989         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
11990         store_motion_loop, store_motion): New functions.
11991         (struct vop_to_refs_elt): New type.
11992         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
11993         memref_hash, memref_eq, hoist_memory_references): Rewritten.
11994         (schedule_sm): Replaced by...
11995         (execute_sm): ... this.
11996         (determine_lsm_ref, hoist_memory_references,
11997         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
11998         find_more_ref_vops, free_mem_ref, free_mem_refs,
11999         determine_lsm_loop, determine_lsm): Removed.
12000         (tree_ssa_lim_finalize): Free data structures used by store motion.
12001         (tree_ssa_lim): Call analyze_memory_references.  Use
12002         store_motion instead of determine_lsm.
12004 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12006         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
12007         rename tmake_file to m68hc11/t-m68hc11.
12008         (mcore): Set inhibit_libc to true.
12009         * config.host (alpha*-dec-*vms*): Set extra_programs.
12010         (interix3*): Don't use host_xmake_file.
12011         * configure.ac: Let config.gcc override inhibit_libc.
12012         * configure: Regenerate.
12014         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
12015         * config/t-openbsd-thread: Remove commented out lines.
12017         * config/x-interix: Remove.
12019         * config/m68hc11/t-m68hc11-gas: Rename to...
12020         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
12022         * config/mcore/t-mcore: Remove T_CFLAGS.
12023         * config/mcore/t-mcore-pe: Likewise.
12025 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
12027         * configure.ac: Replace custom __GNU_SOURCE test with
12028         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
12029         * aclocal.m4: Regenerate.
12030         * configure: Regenerate.
12031         * config.in: Regenerate.
12033 2008-03-27  Richard Guenther  <rguenther@suse.de>
12035         * fold-const.c (target.h): Include.
12036         (fold_comparison): Fold comparison of addresses of decls
12037         that bind locally or of constants.  Consolidate address folding code.
12038         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
12039         results from fold_binary_to_constant.
12040         (compare_values_warnv): Likewise.
12042 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
12044         PR middle-end/35429
12045         * fold-const.c (fold_truthop): Check for integeral types when folding
12046         a == 0 && b == 0 and a != 0 || b != 0 .
12048 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
12050         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
12052 2008-03-26  Andreas Schwab  <schwab@suse.de>
12054         * doc/invoke.texi: Fix use of @item vs. @itemx.
12056 2008-03-26  Tom Tromey  <tromey@redhat.com>
12058         * Makefile.in (build/gensupport.o, build/print-rtl.o,
12059         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
12060         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
12061         build/gencodes.o, build/genconditions.o, build/genconfig.o,
12062         build/genconstants.o, build/genemit.o, build/genextract.o,
12063         build/genflags.o, build/genmddeps.o, build/genopinit.o,
12064         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
12065         options.h.
12067 2008-03-26  Richard Guenther  <rguenther@suse.de>
12069         Revert
12070         2008-03-26  Richard Guenther  <rguenther@suse.de>
12072         * fold-const.c (target.h): Include.
12073         (fold_comparison): Fold comparison of addresses of two decls
12074         that bind locally.  Consolidate address folding code.
12076 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12078         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
12079         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
12080         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
12081         dconstsqrt2, dconstthird, dconste and/or dconst10.
12082         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
12083         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
12084         dconstsqrt2, dconste): Delete.
12085         (init_emit_once): Likewise.  Simplify initializing dconstm1.
12086         Constify variable.
12087         * real.c (get_real_const): New.
12088         * real.h (dconst3, dconst10, dconstm2, dconstthird,
12089         dconstsqrt2, dconste): Delete.
12090         (real_value_const, get_real_const): New.
12092 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
12094         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
12096         * config/i386/i386.c (ix86_function_arg_boundary): Check
12097         BIGGEST_ALIGNMENT instead of 128.
12098         (setup_incoming_varargs_64): Likewise.
12100 2008-03-26  Tom Tromey  <tromey@redhat.com>
12102         * Makefile.in (DEPFILES): Add missing '/'.
12104 2008-03-26  Richard Guenther  <rguenther@suse.de>
12106         * fold-const.c (target.h): Include.
12107         (fold_comparison): Fold comparison of addresses of two decls
12108         that bind locally.  Consolidate address folding code.
12110 2008-03-26  Nick Clifton  <nickc@redhat.com>
12112         PR target/31232
12113         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
12114         not allow INT+INT as a legitimate addressing mode.
12116 2008-03-26  Richard Guenther  <rguenther@suse.de>
12118         * tree-flow.h (widen_bitfield): Remove declaration.
12119         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
12120         (widen_bitfield): Remove function.
12121         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
12122         code.
12124 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12126         PR target/31558
12127         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
12128         error_mark_node's.
12130 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
12132         PR rtl-optimization/35232
12133         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
12134         (forget_old_reloads_1, forget_marked_reloads): Don't clear
12135         reg_reloaded_call_part_clobbered here.
12136         (reload_regs_reach_end_p): New function.
12137         (reload_reg_rtx_for_input): New variable.
12138         (reload_reg_rtx_for_output): Likewise.
12139         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
12140         when reassigning a pseudo register.  Load reloadreg from
12141         reload_reg_rtx_for_input, moving the mode and register
12142         calculation to...
12143         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
12144         instead of the original when deciding whether an input reload
12145         would be a no-op or whether an output reload can be deleted.
12146         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
12147         when setting up new_spill_reg_store.  Load it from
12148         reload_reg_rtx_for_output, moving the mode and register
12149         calculation to...
12150         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
12151         instead of the original when deciding whether an output reload
12152         would be a no-op.  Do the same when modifying insn notes.
12153         Use rtx_equal_p instead of == to compare the registers.
12154         (inherit_piecemeal_p): Take a mode and two register numbers
12155         as argument.
12156         (emit_reload_insns): Clear new_spill_reg_store for every hard
12157         register in the reload register.  Remove spill registers
12158         from reg_reloaded_valid before considering whether to record
12159         inheritance information for them.  Use reload_reg_rtx_for_output
12160         instead of reg_rtx when recording output reloads.  Use
12161         reload_reg_rtx_for_input instead of reg_rtx when recording
12162         input reloads.  Set or clear reg_reloaded_call_part_clobbered
12163         at the same time as setting reg_reloaded_valid.
12164         (delete_output_reload): Add a new_reload_reg parameter and use it
12165         instead of rld[j].reg_rtx.
12166         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
12167         calls accordingly.
12169 2008-03-25  Tom Tromey  <tromey@redhat.com>
12171         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
12172         (build/genattr.o): Likewise.
12173         (build/genattrtab.o): Likewise.
12174         (build/gencodes.o): Likewise.
12175         (build/genconfig.o): Likewise.
12176         (build/genconstants.o): Likewise.
12177         (build/genemit.o): Likewise.
12178         (build/genextract.o): Likewise.
12179         (build/genflags.o): Likewise.
12181 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
12183         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
12184         instead of size_int for integer types.
12185         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
12186         to match type of MINUS_EXPR.
12188 2008-03-25  Tom Tromey  <tromey@redhat.com>
12190         * configure: Rebuilt.
12191         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
12192         Makefile.
12194 2008-03-25  Tom Tromey  <tromey@redhat.com>
12196         * config/x-solaris (host-solaris.o): Update.
12197         * config/x-linux (host-linux.o): Update.
12198         * config/x-hpux (host-hpux.o): Update.
12199         * config/x-darwin (host-darwin.o): Update.
12200         * config/v850/t-v850e (v850-c.o): Update.
12201         * config/v850/t-v850 (v850-c.o): Update.
12202         * config/t-vxworks (vxworks.o): Update.
12203         * config/t-sol2 (sol2-c.o, sol2.o): Update.
12204         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
12205         * config/spu/t-spu-elf (spu-c.o): Update.
12206         (spu.o): Remove.
12207         * config/sh/t-symbian (sh-c.o): Update.
12208         (symbian.o): Update.
12209         * config/sh/t-sh (sh-c.o): Update.
12210         * config/score/t-score-elf (score7.o, score3.o): Update.
12211         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
12212         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
12213         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
12214         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
12215         (rs6000.o): Remove.
12216         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
12217         * config/m32c/t-m32c (m32c-pragma.o): Update.
12218         * config/ia64/t-ia64 (ia64-c.o): Update.
12219         * config/i386/x-mingw32 (host-mingw32.o): Update.
12220         * config/i386/x-i386 (driver-i386.o): Update.
12221         * config/i386/x-darwin (host-i386-darwin.o): Update.
12222         * config/i386/x-cygwin (host-cygwin.o): Update.
12223         * config/i386/t-nwld (nwld.o): Update.
12224         * config/i386/t-netware (netware.o): Update.
12225         * config/i386/t-interix (winnt.o): Update.
12226         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
12227         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
12228         msformat-c.o): Update.
12229         * config/bfin/t-bfin-linux (generated_files): Add
12230         linux-sysroot-suffix.h.
12231         * config/arm/t-wince-pe (pe.o): Update.
12232         * config/arm/t-strongarm-pe (pe.o): Update.
12233         * config/arm/t-pe (pe.o): Update.
12234         * config/arm/t-arm (arm-c.o): Update.
12235         * doc/install.texi (Prerequisites): Require make 3.80.
12236         * Makefile.in: Remove .o targets.
12237         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
12238         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
12239         (simple_generated_h, simple_generated_c): Move earlier.
12240         (generated_files): New variable.
12241         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
12242         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
12243         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
12244         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
12245         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
12246         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
12247         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
12248         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
12249         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
12250         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
12251         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
12252         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
12253         (.c.o): Remove.
12254         (COMPILE.base, COMPILE): New variables.
12255         (%.o): New pattern rule.
12256         (ALL_HOST_OBJS): New variable.
12257         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
12258         (dummy-checksum.o, cc1-checksum.o): Remove.
12259         (DRIVER_SHLIB): New variable.
12260         (DRIVER_DEFINES): Use it.
12261         (gencondmd.c): Move out of build/.
12262         (s-conditions): Update.
12263         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
12264         (ALL_BUILD_OBJS): Likewise.
12265         (build/%.o): Use BUILDCOMPILE.
12266         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
12267         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
12268         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
12269         build/gencheck.o, build/gencodes.o, build/genconditions.o,
12270         build/genconfig.o, build/genconstants.o, build/genemit.o,
12271         build/genextract.o, build/genflags.o, build/genmddeps.o,
12272         build/genopinit.o, build/genoutput.o, build/genpeep.o,
12273         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
12274         build/gen-protos.o, build/scan.o, build/fix-header.o,
12275         build/scan-decls.o): Simplify.
12276         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
12277         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
12278         prefix.o, toplev.o): Reduce to variable setting.
12279         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
12280         ($(out_object_file), gcc-options.o): New targets.
12281         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
12282         * configure: Rebuilt.
12283         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
12284         * doc/sourcebuild.texi (Front End Directory): Document new variable.
12286 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
12288         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
12289         complain when we hit an error, return ERROR_MARK_NODE.
12291 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12293         * config/sh/constraints.md (Pso, Psz): New constraints.
12294         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
12295         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
12297 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12299         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
12300         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
12302 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
12304         * config/sh/sh.md (prefetch): Add condition for SH2A target.
12305         (prefetch_sh2a): New.
12307 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12308             Naveen.H.S  <naveen.hs@kpitcummins.com>
12310         * config/sh/constraints.md (I28): New constraint.
12311         * config/sh/sh.c (broken_move): Add support for movi20s.
12312         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
12314 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
12315             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
12316             Naveen.H.S  <naveen.hs@kpitcummins.com>
12318         * config/sh/sh.c (SH_ATTRIBUTES): Define.
12319         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
12320         (print_operand): Handle resbank in %@ operand code.
12321         (sh_encode_section_info): New.
12322         (push_regs): Add conditions for resbank.
12323         (sh_expand_epilogue): Likewise.
12324         (sh_insert_attributes): Likewise.
12325         (sh_attribute_table): Likewise.
12326         (sh_handle_resbank_handler_attribute): New.
12327         (sh2a_handle_function_vector_handler_attribute): New.
12328         (sh2a_is_function_vector_call): New.
12329         (sh2a_get_function_vector_number): New.
12330         (sh2a_function_vector_p): New.
12331         (sh_cfun_resbank_handler_p): New.
12332         * config/sh/sh.md (calli): Emit jsr/n if possible.
12333         (calli_tbr_rel): New.
12334         (calli_pcrel): Emit jsr/n if possible.
12335         (return_i): Emit rts/n if possible.
12336         (call_valuei_tbr_rel): New.
12337         (call_valuei_pcrel): Add condition for SH2A target.
12338         (call_value): Likewise.
12339         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
12340         (sh2a_get_function_vector_number): Likewise.
12341         (sh2a_is_function_vector_call): Likewise.
12342         * doc/extend.texi: Document TBR relative addressing of SH2A.
12343         (resbank): Add description for SH2A.
12345 2008-03-24  Richard Guenther  <rguenther@suse.de>
12347         PR c/22371
12348         * gimplify.c (gimplify_modify_expr): For frontend type-correct
12349         pointer assignments change conversions according to middle-end rules.
12350         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
12351         * configure.ac: Include type checking in yes.
12352         * configure: Regenerate.
12354 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12356         * diagnostic.c (diagnostic_count_diagnostic): Delete.
12357         (diagnostic_report_diagnostic): Update. Handle ICEs here.
12359 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
12361         * gthr-vxworks.h (UNUSED): Define.
12363 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
12365         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
12367 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
12369         * doc/extend.texi (Function Attributes): Add missing comma in the
12370         example of the "alloc_size" attribute.
12372 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
12374         Revert:
12375         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
12377         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12378         32bit host.
12380         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12382         PR target/35496
12383         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12384         of the underlying type of a MS bitfield layout to the natural
12385         alignment of the type.
12387         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12389         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12390         to their natural alignment to avoid store forwarding stalls.
12392 2008-03-22  Richard Guenther  <rguenther@suse.de>
12394         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
12395         For PHI nodes verify the address is invariant.
12396         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
12397         (get_symbol_constant_value): Use is_gimple_min_invariant.
12398         (maybe_fold_stmt_indirect): Likewise.
12400 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
12402         PR rtl-optimization/33927
12403         * Makefile.in (dse.o): Depend on $(TM_P_H).
12404         * expr.h (extract_low_bits): Declare.
12405         * expmed.c (extract_low_bits): New function.
12406         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
12407         * dse.c: Include tm_p.h.
12408         (find_shift_sequence): Remove the read_reg argument and return the
12409         read value.  Emit the instructions instead of returning them.
12410         Iterate on new_mode rather than calculating it each time.
12411         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
12412         source to NEW_MODE and extract_low_bits to convert the shifted
12413         value to READ_MODE.
12414         (replace_read): Allow the load and store to have different mode
12415         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
12416         or extraction instructions before trying the replacement.  Update
12417         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
12419 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
12421         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
12422         to their natural alignment to avoid store forwarding stalls.
12424 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
12426         PR target/27946
12427         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
12428         encouraging but not allowing gprs for input;
12429         change the input constraint to !f#r.
12430         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
12431         gprs for output;
12432         change the output constraint to !f#r.
12434 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
12436         PR target/13958
12437         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
12438         corresponding post-reload splitters.
12439         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
12440         when x87 FP math is selected.
12441         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
12442         New function prototype.
12443         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
12444         unreachable function to ease macroization of insn patterns.
12446 2008-03-21  Martin Jambor  <mjambor@suse.cz>
12448         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
12449         reference dumps if ddr is NULL or dependence is unknown.
12451 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12453         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
12454         unsigned extension into account.
12455         (ATOMIC_COMPARE_AND_SWAP): Likewise.
12456         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
12457         Do computations on a scratch register.
12459 2008-03-21  Richard Guenther  <rguenther@suse.de>
12461         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
12462         Use is_gimple_min_invariant instead of TREE_INVARIANT.
12463         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
12464         * tree-ssa-dom.c (record_equality): Likewise.
12465         * tree-inline.c (copy_body_r): Likewise.
12466         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
12467         TREE_INVARIANT.
12469 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12471         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
12472         as 'delete_unused' argument.
12474 2008-03-20  Richard Guenther  <rguenther@suse.de>
12476         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
12477         special casing of constant qualifiers.
12478         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
12479         care about them in general.
12480         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
12481         regardless of their type.
12482         (fold_stmt_r): Forcefully fold *& if we end up with that.
12484 2008-03-20  Paul Brook  <paul@codesourcery.com>
12486         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
12487         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
12488         linker flags.
12489         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
12490         definition.
12491         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
12492         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
12494 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
12496         * common.opt (Wmudflap): New option.
12497         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
12498         (mx_register_decls): Likewise.
12499         (mudflap_finish_file): Likewise.
12500         * doc/invoke.texi: Document -Wno-mudflap.
12502 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
12504         * c-format.c (replace_format_name_to_system_name): New.
12505         (cmp_attribs): New.
12506         (convert_format_name_to_system_name): New.
12507         (decode_format_attr): Add use of convert_format_name_to_system_name.
12508         (format_types_orig): Add gnu_ prefix to names.
12509         (check_format_info_main): Special treating of \0 escaped names for
12510         supporting multi-character format specifiers as I32, I64.
12511         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
12512         (gnu_target_overrides_format_attributes): New.
12513         * c-format.h: Add structure target_ovr_attr to hold
12514         system specific formatter names.
12515         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
12516         msformat-c.o file to c_target_objs and cxx_target_objs.
12517         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12518         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
12519         (TARGET_N_FORMAT_TYPES): New.
12520         * config/i386/msformat-c.c: New.
12521         * config/i386/t-cygming: Add build rule for msformat-c.o.
12522         * doc/extend.texi: Add new format names gnu_* and ms_* and
12523         further details.
12524         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
12526 2008-03-20  Ira Rosen  <irar@il.ibm.com>
12528         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
12529         optimizations turned on under -O3.
12530         (ftree-vectorize): Add that the flag is turned on with -O3.
12532 2008-03-20  Ben Elliston  <bje@au.ibm.com>
12534         * regmove.c (try_auto_increment): Fix spelling error in comment.
12535         * final.c (final_scan_insn): Likewise.
12537 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
12539         PR target/14552
12540         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
12541         allocator preferences for "y" and "r" class registers.
12542         ("*mov<mode>_internal"): Ditto.
12543         ("*movv2sf_internal_rex64"): Ditto.
12544         ("*movv2sf_internal"): Ditto.
12546 2008-03-19  Michael Matz  <matz@suse.de>
12548         PR middle-end/35616
12549         * calls.c (expand_call): Check overlap of arguments with call
12550         address for sibcalls.
12552 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
12554         PR target/35496
12555         * stor-layout.c (update_alignment_for_field): Set minimum alignment
12556         of the underlying type of a MS bitfield layout to the natural
12557         alignment of the type.
12559 2008-03-19  Jan Hubicka  <jh@suse.cz>
12561         PR other/35094
12562         * toplev.c (decode_d_option): Handle all CPP flags.
12563         * tree-vrp.c: Update tree_pass descriptors.
12564         * regrename.c: Update tree_pass descriptors.
12565         * fwprop.c: Update tree_pass descriptors.
12566         * doc/invoke.texi: Remove documentation of dropped -d? flags.
12567         * tree-into-ssa.c: Update tree_pass descriptors.
12568         * tree-dump.c: Update tree_pass descriptors.
12569         * tree-complex.c: Update tree_pass descriptors.
12570         * tree-dump.h: Update tree_pass descriptors.
12571         * see.c: Update tree_pass descriptors.
12572         * cgraphbuild.c: Update tree_pass descriptors.
12573         * tracer.c: Update tree_pass descriptors.
12574         * tree-loop-distribution.c: Update tree_pass descriptors.
12575         * cgraph.c: Update tree_pass descriptors.
12576         * postreload-gcse.c: Update tree_pass descriptors.
12577         * postreload.c: Update tree_pass descriptors.
12578         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
12579         * tree-tailcall.c: Update tree_pass descriptors.
12580         * tree-pass.h (tree_opt_pass): Rename to ...
12581         (opt_pass) ... this one; add "type" field and remove letter field.
12582         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
12583         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
12584         all_lowering_passes): Update declaration.
12585         * ipa-cp.c: Update tree_pass descriptors.
12586         * final.c: Update tree_pass descriptors.
12587         * omp-low.c: Update tree_pass descriptors.
12588         * tree-ssa-dse.c: Update tree_pass descriptors.
12589         * ipa-reference.c: Update tree_pass descriptors.
12590         * tree-ssa-uncprop.c: Update tree_pass descriptors.
12591         * auto-inc-dec.c: Update tree_pass descriptors.
12592         * reorg.c: Update tree_pass descriptors.
12593         * cgraphunit.c: Update tree_pass descriptors.
12594         * tree-ssa-copyrename.c: Update tree_pass descriptors.
12595         * tree-ssa-ccp.c: Update tree_pass descriptors.
12596         * df-core.c: Update tree_pass descriptors.
12597         * mode-switching.c: Update tree_pass descriptors.
12598         * tree-nomudflap.c: Update tree_pass descriptors.
12599         * modulo-sched.c: Update tree_pass descriptors.
12600         * ipa-pure-const.c: Update tree_pass descriptors.
12601         * cse.c: Update tree_pass descriptors.
12602         * web.c: Update tree_pass descriptors.
12603         * tree-stdarg.c: Update tree_pass descriptors.
12604         * tree-ssa-math-opts.c: Update tree_pass descriptors.
12605         * tree-ssa-dom.c: Update tree_pass descriptors.
12606         * tree-nrv.c: Update tree_pass descriptors.
12607         * tree-ssa-alias.c: Update tree_pass descriptors.
12608         * loop-init.c: Update tree_pass descriptors.
12609         * gimple-low.c: Update tree_pass descriptors.
12610         * ipa-inline.c: Update tree_pass descriptors.
12611         * tree-ssa-sink.c: Update tree_pass descriptors.
12612         * global.c: Update tree_pass descriptors.
12613         * ifcvt.c: Update tree_pass descriptors.
12614         * jump.c: Update tree_pass descriptors.
12615         * predict.c: Update tree_pass descriptors.
12616         * tree-ssa-loop.c: Update tree_pass descriptors.
12617         * recog.c: Update tree_pass descriptors.
12618         * dse.c: Update tree_pass descriptors.
12619         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
12620         * tree-eh.c: Update tree_pass descriptors.
12621         * regmove.c: Update tree_pass descriptors.
12622         * local-alloc.c
12623         * function.c: Update tree_pass descriptors.
12624         * tree-vectorizer.c: Update tree_pass descriptors.
12625         * gcse.c: Update tree_pass descriptors.
12626         * ipa-type-escape.c: Update tree_pass descriptors.
12627         * tree-if-conv.c: Update tree_pass descriptors.
12628         * init-regs.c: Update tree_pass descriptors.
12629         * ipa.c: Update tree_pass descriptors.
12630         * tree-ssa-phiopt.c: Update tree_pass descriptors.
12631         * rtl-factoring.c: Update tree_pass descriptors.
12632         * lower-subreg.c: Update tree_pass descriptors.
12633         * bt-load.c: Update tree_pass descriptors.
12634         * tree-dfa.c: Update tree_pass descriptors.
12635         * except.c: Update tree_pass descriptors.
12636         * emit-rtl.c: Update tree_pass descriptors.
12637         * cfgexpand.c: Update tree_pass descriptors.
12638         * tree-cfgcleanup.c: Update tree_pass descriptors.
12639         * cfgcleanup.c: Update tree_pass descriptors.
12640         * tree-ssa-pre.c: Update tree_pass descriptors.
12641         * tree-sra.c: Update tree_pass descriptors.
12642         * tree-mudflap.c: Update tree_pass descriptors.
12643         * tree-ssa-copy.c: Update tree_pass descriptors.
12644         * cfglayout.c: Update tree_pass descriptors.
12645         * tree-ssa-forwprop.c: Update tree_pass descriptors.
12646         * tree-ssa-dce.c: Update tree_pass descriptors.
12647         * tree-ssa.c: Update tree_pass descriptors.
12648         * regclass.c: Update tree_pass descriptors.
12649         * integrate.c: Update tree_pass descriptors.
12650         * tree-optimize.c: Update tree_pass descriptors.
12651         * tree-ssa-phiprop.c: Update tree_pass descriptors.
12652         * tree-object-size.c: Update tree_pass descriptors.
12653         * combine.c: Update tree_pass descriptors.
12654         * tree-outof-ssa.c: Update tree_pass descriptors.
12655         * bb-reorder.c: Update tree_pass descriptors.
12656         * stack-ptr-mod.c: Update tree_pass descriptors.
12657         * var-tracking.c: Update tree_pass descriptors.
12658         * tree-profile.c: Update tree_pass descriptors.
12659         * tree-vect-generic.c: Update tree_pass descriptors.
12660         * reg-stack.c: Update tree_pass descriptors.
12661         * sched-rgn.c: Update tree_pass descriptors.
12662         * tree-ssa-structalias.c: Update tree_pass descriptors.
12663         * tree-cfg.c: Update tree_pass descriptors.
12664         * passes.c (current_pass): Update declaration.
12665         (finish_optimization_passes): Update.
12666         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
12667         (register_one_dump_file, register_dump_files_1, next_pass_1):
12668         Update arguments.
12669         (init_optimization_passes): Update handling of new types.
12670         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
12671         * ipa-struct-reorg.c: Update tree_pass descriptors.
12672         * tree-ssa-reassoc.c: Update tree_pass descriptors.
12673         * combine-stack-adj.c: Update tree_pass descriptors.
12674         * cfgrtl.c: Update tree_pass descriptors.
12675         * dce.c: Update tree_pass descriptors.
12676         * tree-ssanames.c: Update tree_pass descriptors.
12678 2008-03-19  Richard Guenther  <rguenther@suse.de>
12680         PR middle-end/35609
12681         * tree-ssa.c (walk_data): New structure.
12682         (warn_uninitialized_var): If not always_executed warn with "maybe"
12683         instead of "is".
12684         (execute_early_warn_uninitialized): Compute post-dominators.
12685         Initialize always_executed before processing each basic block.
12687 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
12689         PR target/35504
12690         * config/i386/i386.c (x86_this_parameter): Calculate correct location
12691         of "this" pointer when "regparm = N" or "fastcall" is in effect.
12693 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12695         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
12697 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
12699         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
12700         is true.
12701         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
12702         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
12703         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
12704         target after ignore has been set, and move there also the commputation
12705         of subtarget and original_target.
12706         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
12707         (LANG_HOOKS_INITIALIZER): Remove it.
12708         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
12710 2008-03-18  Richard Guenther  <rguenther@suse.de>
12712         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
12713         found an expression with constants, note that in the VN for the lhs.
12714         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
12715         fold them to constants if possible.  Run cleanup_cfg if done so.
12716         (execute_pre): Return todo.
12717         (do_pre): Likewise.
12718         (execute_fre): Likewise.
12719         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
12720         of constants.
12721         (get_prop_source_stmt): Look through pointer conversions.
12723 2008-03-18  Jan Hubicka  <jh@suse.cz>
12725         * tree-pretty-print.c: Include predict.h.
12726         (dump_generic_node): Dump predictor.
12727         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
12728         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
12729         * gimple-low.c (lower_stmt): Likewise.
12730         * expr.c (expand_expr_real): Likewise.
12731         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
12732         them.
12733         (build_predict_expr, build_predict_expr): New.
12734         * predict.h (predictor_name, build_predict_expr): Update.
12735         * c-typeck.c (c_finish_bc_stmt): Add prediction.
12736         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
12737         * predict.def (PRED_CONTINUE): Update hitrate.
12738         * tree.def (PREDICT_EXPR): Define.
12739         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
12740         do not handle BIND_EXPR.
12741         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
12742         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
12743         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
12744         operands.
12746 2008-03-18  Michael Matz  <matz@suse.de>
12748         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
12750 2008-03-18  Richard Guenther  <rguenther@suse.de>
12752         * tree-gimple.h (is_gimple_invariant_address): Declare.
12753         (is_gimple_constant): Likewise.
12754         * tree-gimple.c (is_gimple_constant): New function.
12755         (is_gimple_invariant_address): Likewise.
12756         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
12757         and is_gimple_invariant_address.
12758         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
12759         previous change.
12760         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
12761         an addressable base.
12763 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
12765         PR middle-end/35611
12766         * gimplify.c (gimplify_expr): Gimplify second operand of
12767         OMP_ATOMIC_LOAD.
12769 2008-03-17  Richard Guenther  <rguenther@suse.de>
12771         PR tree-optimization/19637
12772         * fold-const.c (fold_unary): Remove restrictions of removing
12773         intermediate pointer-conversions (P2)(P1)P0.
12774         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
12775         conversion to void pointer.
12776         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
12778 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
12780         PR debug/31510
12781         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
12782         emulated thread local variables.
12784 2008-03-16  Richard Guenther  <rguenther@suse.de>
12786         PR middle-end/35607
12787         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
12788         expand TREE_INVARIANT operations that are not gimple invariant.
12790 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
12792         * doc/extend.texi (Alignment): Say that the ABI controls
12793         the __alignof__ for non-strict-alignment targets rather
12794         than being a recommendation.
12796 2008-03-15  Paul Brook  <paul@codesourcery.com>
12798         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
12799         annotations.
12800         (arm_output_fn_unwind): Mark functions that can not be unwound.
12802 2008-03-15  Paul Brook  <paul@codesourcery.com>
12804         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
12805         extension instructions.
12807 2008-03-15  Richard Guenther  <rguenther@suse.de>
12809         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
12810         and fold constant aggregate refs.
12811         (fold_const_aggregate_ref): Handle string constants
12812         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
12813         (evaluate_stmt): Simplify now that ccp_fold folds constant
12814         aggregate refs.
12816 2008-03-15  Paul Brook  <paul@codesourcery.com>
12818         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
12819         (extzv): Use gen_extzv_t2.
12820         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
12822 2008-03-15  Richard Guenther  <rguenther@suse.de>
12824         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
12825         (fold_const_aggregate_ref): Likewise.
12826         (get_value): Return NULL if we don't have any values.
12827         (ccp_finalize): Set const_val to NULL after freeing it.
12828         * tree-flow.h (get_symbol_constant_value): Declare.
12829         (fold_const_aggregate_ref): Likewise.
12830         * tree-ssa-sccvn.c (try_to_simplify): Use them.
12832 2008-03-15  Richard Guenther  <rguenther@suse.de>
12834         PR middle-end/35593
12835         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
12836         to not produce negative array indices if not allowed.  Add
12837         parameter to indicate that.
12838         (maybe_fold_offset_to_component_ref): Allow negative array
12839         indices only for the first member of a structure.
12840         (maybe_fold_offset_to_reference): Allow negative array indices.
12841         (maybe_fold_stmt_addition): Likewise.
12843 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
12844             Anatoly Sokolov <aesok@post.ru>
12846         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
12847         (avr_arch): Add ARCH_AVR6.
12848         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
12849         (initial_elimination_offset): Initialize and use 'avr_pc_size'
12850         instead of fixed value 2.
12851         (print_operand_address): Use gs() asm specifier instead of pm().
12852         (avr_assemble_integer): (Ditto.).
12853         (avr_output_addr_vec_elt): (Ditto.).
12854         (print_operand): Handle "!" code.
12855         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
12856         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
12857         (AVR_HAVE_EIJMP_EICALL): Define.
12858         (AVR_3_BYTE_PC): Redefine.
12859         (AVR_2_BYTE_PC): (Ditto.).
12860         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
12861         (LINK_SPEC): Add atmega2560 and atmega2561.
12862         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
12863         (crtm2561.o).
12864         * config/avr/avr.md (call_insn): Use eicall instead of icall
12865         for 3 byte PC devices.
12866         (call_value_insn): (Ditto.).
12867         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
12868         (indirect_jump): Use only for for 2 byte PC devices.
12869         (*tablejump): (Ditto.).
12870         (*indirect_jump_avr6): Add insn.
12871         (*tablejump_rjmp): Don't use for 3 byte PC devices.
12872         * config/avr/libgcc.S (__prologue_saves__): Use eijmp
12873         instead of ijmp for 3 byte PC devices.
12874         (__tablejump2__): (Ditto.).
12875         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
12876         (MULITLIB_DIRNAMES): (Ditto.).
12877         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
12879 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
12881         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
12882         "sse2_umulsidi3".  Use V1DI mode for operand 0.
12883         ("mmx_psadbw"): Use V1DI mode for operand 0.
12884         * config/i386/i386-modes.def (V1SI): New vector mode.
12885         * config/i386/i386.c (struct builtin_description)
12886         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
12887         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
12888         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
12889         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
12890         v1di_ftype_v8qi_v8qi type.
12891         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
12893         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
12894         __builtin_ia32_pmuludq]: Fix the mode of return value.
12896 2008-03-15  Richard Guenther  <rguenther@suse.de>
12898         PR middle-end/35595
12899         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
12900         being a PHI_NODE.
12902 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
12904         * doc/invoke.texi (Option Summary, Xtensa Options): Document
12905         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
12906         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
12907         unless TARGET_SERIALIZE_VOLATILE is enabled.
12908         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
12909         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
12910         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
12912 2008-03-14  Richard Guenther  <rguenther@suse.de>
12914         PR tree-optimization/34172
12915         * tree-flow.h (refs_may_alias_p): Declare.
12916         (get_single_def_stmt): Likewise.
12917         (get_single_def_stmt_from_phi): Likewise.
12918         (get_single_def_stmt_with_phi): Likewise.
12919         * tree-dfa.c (refs_may_alias_p): New function.
12920         (get_single_def_stmt): Likewise.
12921         (get_single_def_stmt_from_phi): Likewise.
12922         (get_single_def_stmt_with_phi): Likewise.
12923         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
12924         (vn_reference_lookup_1): New helper function.
12925         (vn_reference_lookup): Walk the virtual use-def chain to
12926         continue searching for a match if the def does not alias the
12927         reference we are looking for.
12929 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
12931         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
12932         archive and Perzl.  Update The Written Word listing.
12934 2008-03-14  Richard Guenther  <rguenther@suse.de>
12936         PR tree-optimization/34043
12937         PR tree-optimization/33989
12938         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
12939         when doing FRE.
12940         (bitmap_find_leader): Use extra argument to verify dominance
12941         relationship inside a basic-block.
12942         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
12943         (find_leader_in_sets): Adjust.
12944         (create_component_ref_by_pieces): Take extra argument for
12945         dominance check, handle lookup failures.
12946         (find_or_generate_expression): Likewise.
12947         (create_expression_by_pieces): Likewise.
12948         (insert_into_preds_of_block): Adjust.
12949         (create_value_expr_from): If asked for, verify all operands
12950         are in the blocks AVAIL_OUT set.
12951         (make_values_for_stmt): Check for SSA_NAMEs that are life
12952         over an abnormal edge.
12953         (compute_avail): Remove such check.
12954         (do_SCCVN_insertion): New function.
12955         (eliminate): If we do not find a leader suitable for replacement
12956         insert a replacement expression from SCCVN if available.
12957         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
12958         (struct vn_ssa_aux): Add needs_insertion flag.
12959         * tree-ssa-sccvn.c (may_insert): New global flag.
12960         (copy_reference_ops_from_ref): Value-number union member access
12961         based on its size, not type and member if insertion is allowed.
12962         (visit_reference_op_load): For a weak match from union type
12963         punning lookup a view-converted value and insert a SSA_NAME
12964         for that value if that is not found.
12965         (visit_use): Make dumps shorter.  Do not disallow value numbering
12966         SSA_NAMEs that are life over an abnormal edge to constants.
12967         (free_scc_vn): Release inserted SSA_NAMEs.
12968         (run_scc_vn): New flag to specify whether insertion is allowed.
12969         Process SSA_NAMEs in forward order.
12970         * tree-ssa-loop-im.c (for_each_index): Handle invariant
12971         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
12972         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
12973         pointer type to/from integral types that do not change the
12974         precision to regular conversions.
12976 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12978         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
12979         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
12980         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
12981         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
12982         input arguments and the mode of return value.  Built-in functions
12983         that operate on whole 64-bit MMX register now use V1DI mode.
12985 2008-03-13  Alon Dayan  <alond@il.ibm.com>
12986             Olga Golovanevsky  <olga@il.ibm.com>
12988         PR tree-optimization/35041
12989         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
12990         to locate the right position in a statement.
12992 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
12994         PR target/34000
12995         PR target/35553
12996         * config/i386/xmmintrin.h:  Change all static inline functions to
12997         extern inline and add __gnu_inline__ attribute.
12998         * config/i386/bmintrin.h: Ditto.
12999         * config/i386/smmintrin.h: Ditto.
13000         * config/i386/tmmintrin.h: Ditto.
13001         * config/i386/mmintrin-common.h: Ditto.
13002         * config/i386/ammintrin.h: Ditto.
13003         * config/i386/emmintrin.h: Ditto.
13004         * config/i386/pmmintrin.h: Ditto.
13005         * config/i386/mmintrin.h: Ditto.
13006         * config/i386/mm3dnow.h: Ditto.
13008 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
13010         PR middle-end/35185
13011         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
13012         (lower_omp_2): New function.
13013         (lower_omp_1, lower_omp): Rewritten.
13015 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
13017         PR 35054
13018         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
13019         with the phrase "Microsoft Windows compilers".
13020         (Push/Pop Macro Pragmas): New subsection. Document
13021         #pragma push_macro and pragma pop_macro.
13023 2008-03-12  Paul Brook  <paul@codesourcery.com>
13025         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
13027 2008-03-12  Paul Brook  <paul@codesourcery.com>
13029         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
13030         (thumb2_alusi3_short): Exclude PLUS and MINUS.
13031         (thumb2_addsi_shortim): Rename ...
13032         (thumb2_addsi_short): ... to this.  Allow register operands.
13033         (thumb2_subsi_short): New pattern.
13034         (thumb2_one_cmplsi2_short,
13035         thumb2_negsi2_short): New patterns and peepholes.
13037 2008-03-12  Paul Brook  <paul@codesourcery.com>
13039         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
13041 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
13043         * config/i386/i386.md (int_cond): New code iterator.
13044         (fp_cond): Ditto.
13045         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
13046         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
13047         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
13048         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
13049         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
13050         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
13051         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
13052         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
13054 2008-03-12  Paul Brook  <paul@codesourcery.com>
13056         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
13057         instead of {arm,thumb}_compute_save_reg_mask.
13058         (output_return_instruction): Ditto.
13059         (thumb_unexpanded_epilogue): Ditto.
13060         (thumb1_expand_prologue): Ditto.
13061         (thumb1_output_function_prologue): Ditto.
13062         (arm_set_return_address): Ditto.
13063         (thumb_set_return_address): Ditto.
13064         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
13065         regs to achieve stack alignment.
13066         (thumb1_compute_save_reg_mask): Fix compiler warning.
13067         (arm_output_epilogue): Use offsets->saved_regs_mask.
13068         Adjust stack pointer by poping call clobered registers.
13069         (arm_expand_prologue): Use offsets->saved_regs_mask.
13070         Adjust stack pointer by pushing extra registers.
13071         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
13073 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
13075         PR tree-opt/35422
13076         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
13077         conversion to the operands of a multiplication.
13079 2008-03-12  Richard Guenther  <rguenther@suse.de>
13081         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
13082         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
13083         * timevar.def (TV_TREE_PHIPROP): Add.
13084         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
13085         pass description.  Use TV_TREE_PHIPROP.
13086         * tree-ssa-forwprop.c: Remove phiprop code.
13088 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
13090         PR middle-end/35549
13091         * omp-low.c (maybe_lookup_decl): Constify first argument.
13092         (use_pointer_for_field): Change last argument from bool to
13093         omp_context *.  Disallow shared copy-in/out in nested
13094         parallel if decl is shared in outer parallel too.
13095         (build_outer_var_ref, scan_sharing_clauses,
13096         lower_rec_input_clauses, lower_copyprivate_clauses,
13097         lower_send_clauses, lower_send_shared_vars): Adjust callers.
13099 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
13100             Ira Rosen  <irar@il.ibm.com>
13102         * tree-vectorizer.c (free_stmt_vec_info): New function.
13103         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
13104         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
13105         * tree-vectorizer.h (free_stmt_vec_info): Declare.
13106         * tree-vect-transform.c (vectorizable_conversion): Free
13107         vec_oprnds0 if it was allocated.
13108         (vect_permute_store_chain): Remove unused VECs.
13109         (vectorizable_store): Free VECs that are allocated in the..
13110         function.
13111         (vect_transform_strided_load, vectorizable_load): Likewise.
13112         (vect_remove_stores): Simplify the code.
13113         (vect_transform_loop): Move code to vect_remove_stores().
13114         Call vect_remove_stores() and free_stmt_vec_info().
13116 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13118         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
13119         TARGET_HPUX.  Revise comment.
13120         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
13121         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
13122         Use sr4 variant of `be' instruction when not generating PIC code.
13123         (attr_length_call): Adjust for above change.
13125 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13127         * ipa-reference.c (static_execute): Remove module_statics_const and
13128         associated setting code.
13130 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13132         PR target/35540
13133         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
13134         predicate for operand 1.
13135         (paritysi2_cmp): Use register_operand predicate for operand 2.
13136         Use earlyclobber modifier for operand 1.  Remove support for
13137         memory operands.
13138         (paritydi2_cmp): Use register_operand predicate for operand 3.
13139         Use earlyclobber modifier for operand 1.  Remove support for
13140         memory operands.
13142 2008-03-11  Paul Brook  <paul@codesourcery.com>
13143             Vladimir Prus  <vladimir@codesourcery.com>
13145         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
13146         (arm_compute_save_reg0_reg12_mask): Always
13147         check if register 11 must be saved.  Always safe hard frame pointer
13148         when frame_pointer_needeed.
13149         (arm_compute_save_reg_mask): Save IP and PC
13150         only with apcs frames.
13151         (arm_output_epilogue): Adjust Thumb2 codepath to
13152         be also invoked and work for ARM non-apcs frames.
13153         (arm_expand_prologue): Don't bother saving IP
13154         for non-apcs frame, since it's not clobbered by
13155         prologue code.  Implement non-apcs frame
13156         layout.
13158 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13160         PR rtl-optimization/35281
13161         * expr.c (convert_move): Use a new pseudo for the intermediate
13162         from_mode->word_mode result.
13164 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
13166         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
13167         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
13168         * toplev.c (compile_file): Don't call it.
13170 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
13172         PR middle-end/35526
13173         * expr.c (store_expr): Call emit_block_move if the mode
13174         of "temp" RTX is BLKmode.
13176 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13177             Richard Guenther  <rguenther@suse.de>
13179         PR tree-optimization/31358
13180         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
13181         the step with a NULL_TREE.
13182         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
13183         to sizetype if type is a pointer type.
13184         (add_candidate_1): Don't convert the base and step to
13185         the generic type if the orginal type is a pointer type.
13186         (add_iv_value_candidates): Use sizetype for the step
13187         if type is a pointer type.
13188         (cand_value_at): Likewise.
13189         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
13190         for pointer types.
13191         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
13192         Don't convert the tem affine to the type.
13193         (add_elt_to_tree): Use sizetype for the step if a pointer.
13194         Use POINTER_PLUS_EXPR for pointers.
13195         (aff_combination_to_tree): Use sizetype for the step if a
13196         pointer.
13198 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
13200         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
13201         Remove commutativity hint.
13203 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
13205         PR c/35438
13206         PR c/35439
13207         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
13208         errorneous type.  Check that v is a VAR_DECL.
13210         PR middle-end/35099
13211         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
13213 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
13215         PR tree-optimization/35494
13216         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
13217         may be overriden at link and run time.
13219 2008-03-10  Richard Guenther  <rguenther@suse.de>
13221         PR tree-optimization/34677
13222         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
13223         (poolify_tree): Likewise.
13224         (modify_expr_template): Likewise.
13225         (poolify_modify_stmt): Likewise.
13226         (insert_fake_stores): Handle all component-ref style stores
13227         in addition to INDIRECT_REF.  Also handle complex types.
13228         Do not poolify the inserted load.
13229         (realify_fake_stores): Do not rebuild the tree but only
13230         make it a SSA_NAME copy.
13231         (init_pre): Remove initialzation of modify_expr_template.
13232         Do not allocate modify_expr_node_pool.
13233         (fini_pre): Do not free modify_expr_node_pool.
13235 2008-03-10  Paul Brook  <paul@codesourcery.com>
13237         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
13238         to avoid conflicts.
13240 2008-03-10  Paul Brook  <paul@codesourcery.com>
13241             Mark Shinwell  <shinwell@codesourcery.com>
13243         * config/arm/cortex-r4.md: New.
13244         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
13245         insn attributes.
13246         * config/arm/arm.md: Include cortex-r4.md.
13247         (insn): Add smmls, sdiv and udiv values.
13248         (generic_sched): Don't use generic scheduling for Cortex-R4.
13249         (arm_issue_rate): New function.
13250         (TARGET_SCHED_ISSUE_RATE): Define.
13252 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
13254         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
13256 2008-03-10  Richard Guenther  <rguenther@suse.de>
13258         * tree-ssa-pre.c (get_sccvn_value): Simplify.
13259         (compute_avail): Do not add stmt uses to AVAIL_OUT.
13261 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
13263         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
13264         Set default to true.
13266 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13268         * c.opt (Wsynth): Deprecate.
13269         * doc/invoke.texi (Option Summary, Warning Options): Document
13270         -Wno-format-contains-nul.
13272 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
13274         PR target/35496
13275         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
13276         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
13278 2008-03-09  Ira Rosen  <irar@il.ibm.com>
13280         * config/rs6000/rs6000.c (builtin_description): Rename vector
13281         left shift operations.
13282         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
13283         (altivec_vsl<VI_char>): Rename to ...
13284         (ashl<mode>3): ... new name.
13285         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
13286         gen_ashlv4si3.
13287         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
13289 2008-03-08  Richard Guenther  <rguenther@suse.de>
13291         * coverage.h (tree_coverage_counter_addr): Declare.
13292         * coverage.c (tree_coverage_counter_addr): New function.
13293         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
13294         before using again.
13295         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
13296         (tree_gen_one_value_profiler): Likewise.
13297         (tree_gen_ic_profiler): Likewise.
13298         (tree_gen_average_profiler): Likewise.
13299         (tree_gen_ior_profiler): Likewise.
13301 2008-03-08  Richard Guenther  <rguenther@suse.de>
13303         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
13304         (vn_binary_op_insert): Likewise.
13305         (vn_unary_op_lookup): Likewise.
13306         (vn_unary_op_insert): Likewise.
13307         (vn_nary_op_lookup): Declare.
13308         (vn_nary_op_insert): Likewise.
13309         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
13310         and binary hashes, use a single obstack for unary_op_pool
13311         and binary_op_pool.
13312         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
13313         a single struct vn_nary_op_s.  Store tree code length and
13314         a variable number of operands.
13315         (struct vn_reference_op_struct): Remove unused op2.
13316         (vn_reference_op_eq): Do not compare op2.
13317         (vn_reference_op_compute_hash): Do not compute hash of op2.
13318         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
13319         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
13320         with vn_nary_op_compute_hash.
13321         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
13322         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
13323         vn_nary_op_lookup.
13324         (vn_unary_op_insert, vn_binary_op_insert): Replace with
13325         vn_nary_op_insert.
13326         (visit_unary_op): Call nary functions.
13327         (visit_binary_op): Likewise.
13328         (process_scc): Adjust for struct vn_tables_s changes.
13329         (allocate_vn_table): Likewise.
13330         (free_vn_table): Likewise.
13331         * tree-vn.c (vn_add): Call nary functions.
13332         (vn_lookup): Likewise.
13334 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
13336         PR target/35498
13337         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
13338         wdst back after sync_compare_and_swapqhi_internal.
13340 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
13342         PR target/22152
13343         * config/i386/i386-modes.def (V1DI): New vector mode.
13344         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
13345         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
13346         (MMXMODE248): Ditto.
13347         (MMXMODE): Add V1DI mode.
13348         (mmxvecsize): Change DI mode to V1DI mode.
13349         ("mov<mode>): Use MMXMODEI8 mode iterator.
13350         ("*mov<mode>_internal_rex64"): Ditto.
13351         ("*mov<mode>_internal"): Ditto.
13352         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
13353         ("mmx_sub<mode>3"): Ditto.
13354         ("mmx_adddi3"): Remove insn pattern.
13355         ("mmx_subdi3"): Ditto.
13356         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
13357         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
13358         ("mmx_ashl<mode>3"): Ditto.
13359         ("mmx_lshrdi3"): Remove insn pattern.
13360         ("mmx_ashldi3"): Ditto.
13361         * config/i386/i386.c (classify_argument): Handle V1DImode.
13362         (function_arg_advance_32): Ditto.
13363         (function_arg_32): Ditto.
13364         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
13365         mmx_addv1di3 insn pattern.
13366         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
13367         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
13368         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
13369         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
13370         Remove definitions of built-in functions.
13371         (V1DI_type_node): New node.
13372         (v1di_ftype_v1di_int): Ditto.
13373         (v1di_ftype_v1di_v1di): Ditto.
13374         (v2si_ftype_v2si_si): Ditto.
13375         (v4hi_ftype_v4hi_di): Remove node.
13376         (v2si_ftype_v2si_di): Ditto.
13377         (ix86_init_mmx_sse_builtins): Handle V1DImode.
13378         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
13379         Redefine builtins using def_builtin_const with *_ftype_*_int node.
13380         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
13381         Add new builtins using def_builtin_const.
13382         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
13383         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
13384         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
13385         * config/i386/mmintrin.h (__v1di): New typedef.
13386         (_mm_add_si64): Cast arguments to __v1di type.
13387         (_mm_sub_si64): Ditto.
13388         (_mm_sll_pi16): Cast __count to __v4hi type.
13389         (_mm_sll_pi32): Cast __count to __v2si type.
13390         (_mm_sll_si64): Cast arguments to __v1di type.
13391         (_mm_srl_pi16): Cast __count to __v4hi type.
13392         (_mm_srl_pi32): Cast __count to __v2si type.
13393         (_mm_srl_si64): Cast arguments to __v1di type.
13394         (_mm_sra_pi16): Cast __count to __v4hi type.
13395         (_mm_sra_pi32): Cast __count to __v2si type.
13396         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
13397         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
13398         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
13399         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
13400         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
13401         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
13402         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
13403         (_mm_srai_pi32): Use __builtin_ia32_psradi.
13404         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
13405         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
13406         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
13407         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
13409 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
13411         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
13413 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
13415         PR target/35373
13416         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
13417         reg+const addressing for Altivec modes.  Don't generate reg+reg
13418         addressing for TFmode or TDmode quantities.
13420 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
13422         * c-common.c (vector_types_convertible_p): Call langhook
13423         instead of comptypes.
13425 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
13427         PR tree-opt/35402
13428         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
13429         integral and scalar float variables which have a
13430         NULL DECL_INITIAL.
13432 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
13434         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
13435         dwarf_register_span hook when emitting unwind information for
13436         register-to-memory saves.
13437         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
13438         (rs6000_frame_related): Remove call to spe_synthesize_frame.
13440 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
13442         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
13443         for the same VAR_DECL.
13445 2008-03-06  Tom Tromey  <tromey@redhat.com>
13447         * treelang: Delete.
13448         * doc/standards.texi (Standards): Don't mention treelang.
13449         * doc/invoke.texi (Overall Options): Don't mention treelang.
13450         * doc/install.texi (Prerequisites): Don't mention bison or
13451         treelang.
13452         (Configuration): Don't mention treelang.
13453         (Building): Likewise.
13454         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
13456 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
13458         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
13459         word-extractions out of a multi-word object.
13461 2008-03-06  Richard Guenther  <rguenther@suse.de>
13463         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
13464         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
13465         result type and precision.
13466         * expr.c (get_inner_reference): Set unsignedp based on the result
13467         type of BIT_FIELD_REF.
13468         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
13469         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
13470         (try_instantiate_multiple_fields): Likewise.  Use the correct type
13471         for BIT_FIELD_REF.
13472         (sra_build_assignment): Likewise.
13473         (sra_build_elt_assignment): Likewise.
13474         (sra_explode_bitfield_assignment): Likewise.
13475         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
13476         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
13477         set BIT_FIELD_REF_UNSIGNED.
13478         (vectorizable_load): Likewise.
13480 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
13482         * cse.c (cse_extended_basic_block): Invalidate artificial defs
13483         at bb start.
13485 2008-03-06  Richard Guenther  <rguenther@suse.de>
13487         * alias.c (struct alias_set_entry): Move has_zero_child field
13488         to pack with alias_set.
13490 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
13492         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
13493         32bit host.
13495 2008-03-05  Ian Lance Taylor  <iant@google.com>
13497         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
13499 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
13501         * fwprop.c (update_df): Support width and offset parameters of
13502         df_ref_create.
13503         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
13504         global_conflicts): Change DF_REF_EXTRACT to either
13505         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13506         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13507         * df-scan.c (df_ref_record, df_defs_record,
13508         df_ref_create_structure, df_def_record_1, df_uses_record,
13509         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
13510         df_bb_refs_collect, df_entry_block_defs_collect,
13511         df_exit_block_uses_collect): Support new width and offset fields.
13512         (ref_extract_pool): New storage pool.
13513         (df_free_ref): New function.
13514         (df_reg_chain_unlink, df_free_collection_rec,
13515         df_sort_and_compress_refs): Call df_free_ref.
13516         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
13517         of df_ref_extract.
13518         (df_ref_create_structure): Allocate df_ref_extract if offset and
13519         width fields are used.
13520         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
13521         (df_uses_record): Get offset and width from ZERO_EXTRACT
13522         and SIGN_EXTRACT.
13523         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
13524         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13525         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13526         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
13527         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
13528         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
13529         (df_ref_extract): New structure.
13530         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
13531         (df_ref_create): Add width and offset parameters.
13533 2008-03-05  Richard Guenther  <rguenther@suse.de>
13535         * tree-ssa-structalias.c (get_constraint_for_component_ref):
13536         Use ranges_overlap_p.
13537         (offset_overlaps_with_access): Rename
13538         to ranges_overlap_p and move ...
13539         * tree-flow-inline.h (ranges_overlap_p): ... here.
13541         * tree.h (get_inner_reference, handled_component_p): Update
13542         comments.
13544         * tree.h (record_component_aliases, get_alias_set,
13545         alias_sets_conflict_p, alias_sets_must_conflict_p,
13546         objects_must_conflict_p): Move declarations ...
13547         * alias.h (record_component_aliases, get_alias_set,
13548         alias_sets_conflict_p, alias_sets_must_conflict_p,
13549         objects_must_conflict_p): ... here.
13550         Include coretypes.h.
13551         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
13553 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
13555         * cfg.c: Include tree-flow.h.
13556         (remove_edge_raw): Call redirect_edge_var_map_clear.
13557         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
13558         * tree-flow-inline.h (redirect_edge_var_map_def): New.
13559         (redirect_edge_var_map_result): New.
13560         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
13561         PENDING_STMT use with redirect_edge_var_map_*.
13562         * tree-ssa.c (edge_var_maps): New definition.
13563         (redirect_edge_var_map_add): New.
13564         (redirect_edge_var_map_clear): New.
13565         (redirect_edge_var_map_dup): New.
13566         (redirect_edge_var_map_vector): New.
13567         (redirect_edge_var_map_destroy): New.
13568         (ssa_redirect_edge): Replace PENDING_STMT use with
13569         redirect_edge_var_map_*.
13570         (flush_pending_stmts): Same.
13571         (delete_tree_ssa): Destroy edge var map.
13572         * tree-flow.h (struct _edge_var_map): New.
13573         Define edge_var_map vector type.
13574         Declare redirect_edge_var_map_* prototypes.
13575         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
13576         * tree-cfg.c (reinstall_phi_args): Replace
13577         PENDING_STMT use with redirect_edge_var_map_*.
13579 2008-03-05  Richard Guenther  <rguenther@suse.de>
13581         PR tree-optimization/35472
13582         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
13583         whose single use_stmt has a overlapping set of loaded and
13584         stored symbols as that use_stmt might be a noop assignment then.
13586 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
13588         * gthr-rtems.h: Implement __gthread_mutex_destroy.
13590 2008-03-05  Richard Guenther  <rguenther@suse.de>
13592         PR c++/35336
13593         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
13594         should be constants.
13595         * tree-cfg.c (verify_expr): Verify it.
13596         * fold-const.c (fold_truthop): Remove code generating
13597         BIT_FIELD_REFs of structure bases.
13598         (fold_binary): Likewise.
13599         (fold_ternary): Position and size of BIT_FIELD_REFs are
13600         always host integers.
13601         (make_bit_field_ref): Remove.
13602         (optimize_bit_field_compare): Remove.
13603         (all_ones_mask_p): Remove.
13605 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
13607         PR gcc/33009
13608         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
13609         (split_block_and_df_analyze): New. Split basic block and rebuild
13610         dataflow.
13611         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
13612         SPLIT_BLOCK.
13613         (split_pattern_seq): Likewise.
13614         (erase_matching_seqs): Likewise.
13615         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
13617 2008-03-04  Geoff Keating  <geoffk@apple.com>
13619         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
13620         declaration and code.
13621         (tree_invalid_nonnegative_warnv_p): Likewise.
13623 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
13625         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
13626         examples.  Truncate option-names then causing overfull hbox.
13628 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13630         PR target/35222
13631         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
13632         on hpux10.
13633         * configure: Rebuilt.
13635 2008-03-04  Rafael Espindola  <espindola@google.com>
13637         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
13638         (tree_unary_nonnegative_warnv_p): New.
13639         (tree_binary_nonnegative_warnv_p): New.
13640         (tree_single_nonnegative_warnv_p): New.
13641         (tree_invalid_nonnegative_warnv_p): New.
13642         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
13644 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13646         PR 28322
13647         * opts.c (handle_option): Postpone 'unknown option' errors only for
13648         warning options.
13650 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
13652         PR target/35453
13653         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
13654         (_SIDD_XXX): This.
13656 2008-03-04  Rafael Espindola  <espindola@google.com>
13658         * fold-const.c (tree_unary_nonzero_warnv_p): New.
13659         (tree_binary_nonzero_warnv_p): New.
13660         (tree_single_nonzero_warnv_p): New.
13661         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
13663 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
13665         PR middle-end/35456
13666         * fold-const.c (fold_cond_expr_with_comparison): Prevent
13667         transformations for modes that have signed zeros.
13668         * ifcvt.c (noce_try_abs): Ditto.
13670 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
13672         * config/i386/i386.c (override_options): Force
13673         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
13675 2008-03-04  Jan Hubicka  <jh@suse.cz>
13677         PR c++/35262
13678         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
13679         in last commit.
13681 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13683         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
13684         label to probe the stack.
13686 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
13688         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
13689         (__gthr_win32_mutex_destroy): Declare.
13690         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
13691         __gthr_win32_mutex_destroy.
13692         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
13694 2008-03-03  Jan Hubicka  <jh@suse.cz>
13696         PR c++/35262
13697         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
13698         aggressive on inlining cold calls.
13700 2008-03-03  Richard Guenther  <rguenther@suse.de>
13702         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
13703         struct copies into the expression table.
13704         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
13705         (try_to_simplify): Likewise.
13706         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
13707         integral and pointer arguments which do not change the
13708         precision to NOP_EXPRs.
13709         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
13710         VIEW_CONVERT_EXPR case.
13712 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
13714         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
13715         defined in a loop at depth 0 is invariant.
13716         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
13717         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
13718         be called at loop depth 0.
13720 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
13722         PR driver/35420
13723         * gcc.c (process_command): Update copyright notice dates.
13724         * gcov.c (print_version): Likewise.
13725         * gcov-dump.c (print_version): Likewise.
13726         * mips-tfile.c (main): Likewise.
13727         * mips-tdump.c (main): Likewise.
13729 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13731         PR 24924
13732         * c-common.c (flag_permissive): Delete.
13733         (constant_expression_warnings): Check flags first.
13734         (constant_expression_error): New.
13735         * c-common.h (flag_permissive): Delete.
13736         (constant_expression_error): Declare.
13737         * flags.h (flag_permissive): Declare. Update description.
13738         * diagnostic.c (pedwarn): Update.
13739         (permerror): New.
13740         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
13741         (permissive_error_kind): New.
13742         * toplev.c (flag_permissive): Define. Update description.
13743         * toplev.h (permissive_error_kind): Declare.
13744         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
13745         (pedwarn_c90): Use pedantic_warning_kind.
13746         * c-opts.c (c_common_post_options): flag_permissive does not affect
13747         flag_pedantic_errors.
13749 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
13751         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
13752         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
13753         __absvsi2, __absvDI2): Use unsigned arithmetic.
13755 2008-03-02  Andi Kleen  <ak@suse.de>
13756             Richard Guenther  <rguenther@suse.de>
13758         * struct-equiv.c: Remove file.
13759         * cfg_cleanup.c (condjump_equiv_p): Remove.
13760         * Makefile.in (OBJS-common): Remove struct-equiv.o.
13761         (struct-equiv.o): Remove rule.
13762         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
13763         insns_match_p, struct_equiv_block_eq, struct_equiv_init,
13764         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
13766 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13768         * ifcvt.c (noce_process_if_block): Try to handle only the then
13769         block if the else block exists but isn't suitable.
13771 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13773         PR gcc/35063
13774         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
13775         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
13776         regression from previous patch.
13778 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
13780         PR gcc/35063
13781         * gthr.h: Add __gthread_mutex_destroy as a function that must be
13782         implemented.
13783         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
13784         * gthr-single.h (__gthread_mutex_destroy): Likewise.
13785         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
13786         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
13787         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
13788         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
13789         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
13790         (__gthread_mutex_destroy_function): Rename to
13791         __gthread_mutex_destroy.
13792         * gthr-dce.h (__gthread_mutex_destroy): Call
13793         pthread_mutex_destroy.
13794         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
13795         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
13796         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
13798 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13800         * df-scan.c (df_ref_chain_change_bb): Simplify.
13801         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
13802         set_block_for_insn if there's any change.
13803         * df.h ((df_insn_change_bb): Fix prototype.
13804         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
13805         df_insn_change_bb, don't call set_block_for_insn.
13806         * emit-rtl.c (reorder_insns): Likewise.
13807         * haifa-sched.c (move_insn): Likewise.
13809 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13811         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
13813 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
13815         * tree-flow-inline.h (next_readonly_imm_use): Return
13816         NULL_USE_OPERAND_P after the end.
13818 2008-03-01  Richard Guenther  <rguenther@suse.de>
13820         PR tree-optimization/35411
13821         * tree-sra.c (sra_build_assignment): Split conversion to
13822         final type to a separate statement if we are not assigning
13823         to a register.
13825 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
13827         * fold-const.c (fold_convertible_p): Correct the logic to follow
13828         that in fold_convert().
13830 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
13832         PR c++/35315
13833         * tree-inline.c (build_duplicate_type): When we make a
13834         duplicate type, make it unique in the canonical types system.
13836 2008-02-29  Tom Tromey  <tromey@redhat.com>
13838         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
13839         input_file_stack_history, input_file_stack_restored): Remove.
13840         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13841         * input.h (struct file_stack): Remove.
13842         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
13843         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
13844         Likewise.
13845         * diagnostic.h (struct diagnostic_context) <last_module>: Change
13846         type.
13847         (diagnostic_last_module_changed): Add 'map' argument.
13848         (diagnostic_set_last_function): Likewise.
13849         * diagnostic.c (undiagnostic_report_current_module): Iterate using
13850         line map, not input_file_stack.
13851         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
13853 2008-02-29  Paul Brook  <paul@codesourcery.com>
13855         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
13857 2008-02-29  Paul Brook  <paul@codesourcery.com>
13859         * config/arm/ieee754-df.S (muldf3): Use RET macros.
13861 2008-02-29  Richard Guenther  <rguenther@suse.de>
13863         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
13864         vn_lookup_or_add.
13865         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
13866         value for comparing for a store match.
13867         (simplify_unary_expression): Do nothing for SSA_NAMEs.
13868         (try_to_simplify): Do not do a full-blown reference lookup.
13870 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13872         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
13873         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
13875         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
13877 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
13879         * tree-loop-linear.c (try_interchange_loops): Compare memory access
13880         strides against cache sizes.
13882 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
13884         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
13885         constant to fpul.
13887 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
13889         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
13890         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
13891         is smaller than the original promoted value.
13892         (simplify_subreg): If OP is a SUBREG, try to preserve its
13893         SUBREG_PROMOTED_VAR_P information.
13895 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
13897         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
13898         (VN_INFO_GET): Allocate new objects on the obstack.
13899         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
13900         for rpo_numbers_temp, for consistency.
13901         (free_scc_vn): Free the obstack.
13903 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
13905         * doc/invoke.texi: Document -ftree-loop-distribution.
13906         * tree-loop-distribution.c: New.
13907         * tree-pass.h (pass_loop_distribution): New.
13908         * graphds.h (struct graph): Add htab_t indices.
13909         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
13910         * tree-vectorizer.c (rename_variables_in_loop): Extern.
13911         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
13912         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
13913         * tree-data-ref.c (debug_data_dependence_relations): New.
13914         (dump_data_dependence_relation): Also print data references.
13915         (free_data_ref): Extern.
13916         (same_access_functions): Moved...
13917         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
13918         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13919         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
13920         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
13921         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
13922         (stmts_from_loop): Skip LABEL_EXPR.
13923         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
13924         New.
13925         (build_rdg): Initialize rdg->indices htab.
13926         (free_rdg, stores_from_loop, ref_base_address,
13927         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
13928         have_similar_memory_accesses_1, ref_base_address_1,
13929         remove_similar_memory_refs): New.
13930         * tree-data-ref.h: Depend on tree-chrec.h.
13931         (debug_data_dependence_relations, free_data_ref): Declared.
13932         (same_access_functions): ... here.
13933         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
13934         New.
13935         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
13936         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
13937         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
13938         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
13939         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
13940         rdg_vertex_for_stmt): Declared.
13941         (struct rdg_edge): Add level.
13942         (RDGE_LEVEL): New.
13943         (free_rdg, stores_from_loop, remove_similar_memory_refs,
13944         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
13945         Declared.
13946         (rdg_has_similar_memory_accesses): New.
13947         * tree-vect-analyze.c: Remove unused static decls.
13948         * lambda.h (dependence_level): New.
13949         * common.opt (ftree-loop-distribution): New.
13950         * tree-flow.h (mark_virtual_ops_in_bb,
13951         slpeel_tree_duplicate_loop_to_edge_cfg,
13952         rename_variables_in_loop): Declared.
13953         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
13954         (OBJS-common): Add tree-loop-distribution.o.
13955         (tree-loop-distribution.o): New rule.
13956         * tree-cfg.c (mark_virtual_ops_in_bb): New.
13957         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
13958         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
13960 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
13962         PR target/33963
13963         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
13964         other than structures and unions.
13966 2008-02-28  Richard Guenther  <rguenther@suse.de>
13968         Revert:
13969         2008-02-26  Richard Guenther  <rguenther@suse.de>
13971         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
13972         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
13973         (lookup_decl_from_uid): Declare.
13974         (remove_decl_from_map): Likewise.
13975         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
13976         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
13977         (decl_for_uid_map): New global hashtable mapping DECL_UID
13978         to the decl tree.
13979         (init_ttree): Allocate it.
13980         (insert_decl_to_uid_decl_map): New helper function.
13981         (make_node_stat): Insert new decls into the map.
13982         (copy_node_stat): Likewise.
13983         (lookup_decl_from_uid): New function.
13984         (remove_decl_from_map): Likewise.
13985         (print_decl_for_uid_map_statistics): New helper.
13986         (dump_tree_statistics): Call it.
13988         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
13989         (referenced_var_iterator): Adjust.
13990         (FOR_EACH_REFERENCED_VAR): Adjust.
13991         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
13992         (num_referenced_vars): Adjust.
13993         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
13994         (first_referenced_var): Remove.
13995         (end_referenced_vars_p): Likewise.
13996         (next_referenced_var): Likewise.
13997         (referenced_var_iterator_set): New helper function.
13998         * tree-dfa.c (referenced_var_lookup): Adjust.
13999         (referenced_var_check_and_insert): Likewise.
14000         (remove_referenced_var): Likewise.
14001         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14002         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14003         (verify_call_clobbering): Likewise.
14004         (verify_memory_partitions): Likewise.
14005         (init_tree_ssa): Allocate bitmap instead of hashtable for
14006         referenced_vars.
14007         (delete_tree_ssa): Adjust.
14008         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14009         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14010         (compute_tag_properties): Likewise.
14011         (set_initial_properties): Likewise.
14012         (find_partition_for): Likewise.
14013         (update_reference_counts): Likewise.
14014         (dump_may_aliases_for): Likewise.
14015         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14016         (add_call_clobber_ops): Likewise.
14017         (add_call_read_ops): Likewise.
14018         (get_asm_expr_operands): Likewise.
14019         * tree-into-ssa.c (dump_decl_set): Likewise.
14020         (update_ssa): Likewise.
14021         * tree-sra.c (scan_function): Likewise.
14022         (decide_instantiations): Likewise.
14023         (scalarize_parms): Likewise.
14024         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14025         (dsa_named_for): Likewise.
14026         * tree-ssa-structalias.c (update_alias_info): Likewise.
14027         (merge_smts_into): Likewise.
14029 2008-02-27  David Daney  <ddaney@avtrex.com>
14031         PR target/34409
14032         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
14033         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
14034         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
14035         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
14036         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
14038 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
14040         PR target/25477
14041         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
14042         (BUILT_IN_NEXTTOWARD): Remove.
14043         (BUILT_IN_NEXTTOWARDF): Ditto.
14044         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
14045         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
14047 2008-02-27  Tom Tromey  <tromey@redhat.com>
14049         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
14050         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
14052 2008-02-27  Jan Beulich  <jbeulich@novell.com>
14054         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
14055         update the respective field on newdecl.
14057 2008-02-27  Revital Eres  <eres@il.ibm.com>
14059         PR rtl-optimization/34999
14060         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
14061         crossing edges that ends with a call insn.
14062         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
14063         call insn and clear the EDGE_CROSSING flag of the crossing edge
14064         when fixing fallthru edges.
14066 2008-02-27  Richard Guenther  <rguenther@suse.de>
14068         PR middle-end/35390
14069         * fold-const.c (fold_unary): Return the correct argument,
14070         converted to the result type.
14072 2008-02-27  Richard Guenther  <rguenther@suse.de>
14074         PR middle-end/34971
14075         * expr.c (expand_expr_real_1): Assert on rotates that operate
14076         on partial modes.
14077         * fold-const.c (fold_binary): Use the types precision, not the
14078         bitsize of the mode if folding rotate expressions.  Build rotates
14079         only for full modes.
14081 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
14083         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
14084         and CPP_PRAGMA_EOL.
14085         * c-pragma.c (pragma_ns_name): New typedef.
14086         (registered_pp_pragmas): New variable.
14087         (c_pp_lookup_pragma): New function.
14088         (c_register_pragma_1): If flag_preprocess_only, do nothing
14089         for non-expanded pragmas, for expanded ones push pragma's
14090         namespace and name into registered_pp_pragmas vector.
14091         (c_invoke_pragma_handler): Register OpenMP pragmas even when
14092         flag_preprocess_only, don't register GCC pch_preprocess
14093         pragma if flag_preprocess_only.
14094         * c-opts.c (c_common_init): Call init_pragma even if
14095         flag_preprocess_only.
14096         * c-pragma.c (c_pp_lookup_pragma): New prototype.
14097         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
14098         cpp_register_pragma if flag_preprocess_only.
14100 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14102         PR c/28800
14103         * c-parser.c (c_parser_translation_unit): Warn for empty
14104         translation unit, not empty source file.
14106 2008-02-26  Paul Brook  <paul@codesourcery.com>
14108         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
14109         operand for Thumb-2.
14110         * config/arm/arm.h (reg_class): Add CORE_REGS.
14111         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
14112         (BASE_REG_CLASS): Use CORE_REGS.
14113         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
14114         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
14115         (REGNO_OK_FOR_INDEX_P): Exclude SP.
14116         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
14117         ARM_REGNO_OK_FOR_INDEX_P.
14118         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
14119         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
14120         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
14121         (ldm/stm peepholes): Ditto.
14122         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
14123         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
14124         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
14125         * config/arm/constraints.md: Enable "k" constraint on ARM.
14127 2008-02-27  Ben Elliston  <bje@au.ibm.com>
14129         * config/rs6000/rs6000.c: Annotate cache line size field in all
14130         instances of struct processor_costs.
14132 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
14134         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
14135         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
14136         jump_bypass): New counters.
14137         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
14138         * dce.c (gate_ud_dce): Same.
14139         (gate_fast_dce): Same.
14140         * dse.c (gate_dse1): New function.
14141         (gate_dse2): New function.
14142         (gate_dse): Merge results of new gate functions.
14143         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
14144         (gate_handle_jump_bypass): Add dbg_cnt.
14145         (gate_handle_gcse): Add dbg_cnt.
14146         * ifcvt.c (gate_handle_if_conversion): Same.
14147         (gate_handle_if_after_combine): Same.
14148         (gate_handle_if_after_reload): Same.
14149         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
14151 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
14153         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
14154         line sizes.
14155         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
14157 2008-02-26  Jason Merrill  <jason@redhat.com>
14159         PR c++/35315
14160         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
14161         alone if it's the naming decl for the type's main variant.
14163 2008-02-26  Tom Tromey  <tromey@redhat.com>
14165         * system.h (USE_MAPPED_LOCATION): Poison.
14166         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
14167         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
14168         (make_goto_expr_edges): Likewise.
14169         (remove_bb): Likewise.
14170         (execute_warn_function_return): Likewise.
14171         * basic-block.h (struct edge_def) <goto_locus>: Change type to
14172         location_t.
14173         * c-common.c (fname_decl): Remove old location code.
14174         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
14175         location code.
14176         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
14177         variant.
14178         (ASM_INPUT_SOURCE_LOCATION): Likewise.
14179         (gen_rtx_ASM_INPUT): Likewise.
14180         (gen_rtx_ASM_INPUT_loc): Likewise.
14181         (get_rtx_asm_OPERANDS): Remove.
14182         * cfglayout.c (insn_locators_alloc): Remove old location code.
14183         (set_curr_insn_source_location): Likewise.
14184         (curr_insn_locator): Likewise.
14185         * print-tree.c (print_node): Remove old location code.
14186         * tree-mudflap.c (mf_varname_tree): Remove old location code.
14187         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
14188         * cfgexpand.c (expand_gimple_cond_expr): Don't use
14189         location_from_locus.
14190         (construct_exit_block): Remove old location code.
14191         * emit-rtl.c (force_next_line_note): Remove old location code.
14192         * profile.c (branch_prob): Remove old location code.
14193         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
14194         LOC_LINE): Remove old-location variants.
14195         * langhooks.c (lhd_print_error_function): Remove old location
14196         code.
14197         * configure, config.in: Rebuilt.
14198         * configure.ac (--enable-mapped-location): Remove.
14199         * c-decl.c (c_init_decl_processing): Remove old location code.
14200         (finish_function): Likewise.
14201         * recog.c (decode_asm_operands): Remove old location code.
14202         * c-pch.c (c_common_read_pch): Remove old location code.
14203         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
14204         variants.
14205         * gimple-low.c (lower_function_body): Remove old location code.
14206         * toplev.c (unknown_location): Remove.
14207         (push_srcloc): Remove old-location variant.
14208         (process_options): Remove old location code.
14209         (lang_dependent_init): Likewise.
14210         * input.h (UNKNOWN_LOCATION): Move definition.
14211         (location_t): Undeprecate.
14212         (source_locus): Remove.
14213         (location_from_locus): Remove.
14214         (struct location_s): Remove.
14215         Remove all old-location code.
14216         (input_line, input_filename): Remove.
14217         * final.c (final_scan_insn): Remove old location code.
14218         * diagnostic.c (diagnostic_build_prefix): Remove
14219         USE_MAPPED_LOCATION test.
14220         * tree.h (gimple_stmt) <locus>: Now a location_t.
14221         (tree_exp) <locus>: Likewise.
14222         (DECL_IS_BUILTIN): Remove old-location variant.
14223         (annotate_with_file_line, annotate_with_locus): Likewise.
14224         (expr_locus, set_expr_locus): Update.
14225         * tree.c (build1_stat): Remove old location code.
14226         (last_annotated_node): Remove.
14227         (annotate_with_file_line): Remove old-location variant.
14228         (annotate_with_locus): Likewise.
14229         (expr_location): Remove old location code.
14230         (set_expr_location): Likewise.
14231         (expr_has_location): Likewise.
14232         (expr_locus): Likewise.
14233         (set_expr_locus): Likewise.
14234         (expr_filename): Don't use location_from_locus.
14235         (expr_lineno): Likewise.
14236         * rtl-error.c (location_for_asm): Remove old location code.
14237         * c-lex.c (cb_line_change): Remove old location code.
14238         (fe_file_change): Likewise.
14239         (cb_def_pragma): Likewise.
14240         (c_lex_with_flags): Likewise.
14241         * gengtype.c (do_typedef): Don't special-case location types.
14242         (define_location_structures): Remove.
14243         (main): Don't call define_location_structures.
14244         * tree-pretty-print.c (dump_implicit_edges): Remove old location
14245         code.
14247 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14249         PR 26264
14250         * builtins.def (BUILT_IN_STDARG_START): Remove.
14251         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
14252         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
14253         * tree-inline.c (inline_forbidden_p_1): Likewise.
14255 2008-02-26  Richard Guenther  <rguenther@suse.de>
14257         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14258         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14259         (lookup_decl_from_uid): Declare.
14260         (remove_decl_from_map): Likewise.
14261         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14262         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14263         (decl_for_uid_map): New global hashtable mapping DECL_UID
14264         to the decl tree.
14265         (init_ttree): Allocate it.
14266         (insert_decl_to_uid_decl_map): New helper function.
14267         (make_node_stat): Insert new decls into the map.
14268         (copy_node_stat): Likewise.
14269         (lookup_decl_from_uid): New function.
14270         (remove_decl_from_map): Likewise.
14271         (print_decl_for_uid_map_statistics): New helper.
14272         (dump_tree_statistics): Call it.
14274         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14275         (referenced_var_iterator): Adjust.
14276         (FOR_EACH_REFERENCED_VAR): Adjust.
14277         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14278         (num_referenced_vars): Adjust.
14279         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14280         (first_referenced_var): Remove.
14281         (end_referenced_vars_p): Likewise.
14282         (next_referenced_var): Likewise.
14283         (referenced_var_iterator_set): New helper function.
14284         * tree-dfa.c (referenced_var_lookup): Adjust.
14285         (referenced_var_check_and_insert): Likewise.
14286         (remove_referenced_var): Likewise.
14287         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14288         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14289         (verify_call_clobbering): Likewise.
14290         (verify_memory_partitions): Likewise.
14291         (init_tree_ssa): Allocate bitmap instead of hashtable for
14292         referenced_vars.
14293         (delete_tree_ssa): Adjust.
14294         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14295         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14296         (compute_tag_properties): Likewise.
14297         (set_initial_properties): Likewise.
14298         (find_partition_for): Likewise.
14299         (update_reference_counts): Likewise.
14300         (dump_may_aliases_for): Likewise.
14301         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14302         (add_call_clobber_ops): Likewise.
14303         (add_call_read_ops): Likewise.
14304         (get_asm_expr_operands): Likewise.
14305         * tree-into-ssa.c (dump_decl_set): Likewise.
14306         (update_ssa): Likewise.
14307         * tree-sra.c (scan_function): Likewise.
14308         (decide_instantiations): Likewise.
14309         (scalarize_parms): Likewise.
14310         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14311         (dsa_named_for): Likewise.
14312         * tree-ssa-structalias.c (update_alias_info): Likewise.
14313         (merge_smts_into): Likewise.
14315 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14317         PR 34351
14318         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
14319         * c-opts.c (c_common_handle_option): Wall enables
14320         Wvolatile-register-var.
14321         * common.opt: Move Wvolatile-register-var to...
14322         * c.opt: ...here.
14324 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14326         * common.opt (Wlarger-than=): New.
14327         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
14328         -Wlarger-than=.
14329         * opts.c (common_handle_option): Handle -Wlarger-than=.
14330         * optc-gen.awk: Likewise.
14331         * opth-gen.awk: Likewise.
14332         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
14333         * tree-optimize.c (tree_rest_of_compilation): Likewise.
14335 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
14337         * c-common.c (match_case_to_enum_1): Add appropriate
14338         OPT_W* parameter to warning.
14339         (c_do_switch_warnings): Likewise.
14340         * c-typeck.c (warning_init): Add one more parameter following
14341         'warning' function.
14342         (push_init_level): Update call to warning_init.
14343         (pop_init_level): Likewise.
14344         (add_pending_init): Likewise.
14345         (output_init_element: Likewise.
14347 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14349         PR 28322
14350         * toplev.c (toplev_main): If there are warnings or error, print
14351         errors for ignored options.
14352         * opts.c (ignored_options): New static variable.
14353         (postpone_unknown_option_error): New.
14354         (print_ignored_options): New.
14355         (handle_option): Postpone errors for unknown -Wno-* options.
14356         * opts.h (print_ignored_options): Declare.
14358 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
14360         * config/mips/mips.md (loadgp_blockage, blockage): Change type
14361         to "ghost".
14363 2008-02-25  Richard Guenther  <rguenther@suse.de>
14365         Revert:
14366         2008-02-25  Richard Guenther  <rguenther@suse.de>
14368         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14369         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14370         (lookup_decl_from_uid): Declare.
14371         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14372         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14373         (decl_for_uid_map): New global hashtable mapping DECL_UID
14374         to the decl tree.
14375         (init_ttree): Allocate it.
14376         (insert_decl_to_uid_decl_map): New helper function.
14377         (make_node_stat): Insert new decls into the map.
14378         (copy_node_stat): Likewise.
14379         (lookup_decl_from_uid): New function.
14380         (print_decl_for_uid_map_statistics): New helper.
14381         (dump_tree_statistics): Call it.
14383         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14384         (referenced_var_iterator): Adjust.
14385         (FOR_EACH_REFERENCED_VAR): Adjust.
14386         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14387         (num_referenced_vars): Adjust.
14388         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14389         (first_referenced_var): Remove.
14390         (end_referenced_vars_p): Likewise.
14391         (next_referenced_var): Likewise.
14392         (referenced_var_iterator_set): New helper function.
14393         * tree-dfa.c (referenced_var_lookup): Adjust.
14394         (referenced_var_check_and_insert): Likewise.
14395         (remove_referenced_var): Likewise.
14396         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14397         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14398         (verify_call_clobbering): Likewise.
14399         (verify_memory_partitions): Likewise.
14400         (init_tree_ssa): Allocate bitmap instead of hashtable for
14401         referenced_vars.
14402         (delete_tree_ssa): Adjust.
14403         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14404         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14405         (compute_tag_properties): Likewise.
14406         (set_initial_properties): Likewise.
14407         (find_partition_for): Likewise.
14408         (update_reference_counts): Likewise.
14409         (dump_may_aliases_for): Likewise.
14410         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14411         (add_call_clobber_ops): Likewise.
14412         (add_call_read_ops): Likewise.
14413         (get_asm_expr_operands): Likewise.
14414         * tree-into-ssa.c (dump_decl_set): Likewise.
14415         (update_ssa): Likewise.
14416         * tree-sra.c (scan_function): Likewise.
14417         (decide_instantiations): Likewise.
14418         (scalarize_parms): Likewise.
14419         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14420         (dsa_named_for): Likewise.
14421         * tree-ssa-structalias.c (update_alias_info): Likewise.
14422         (merge_smts_into): Likewise.
14424 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14426         PR fortran/29549
14427         * doc/invoke.texi (-fcx-limited-range): Document new option.
14428         * toplev.c (process_options): Handle -fcx-fortran-rules.
14429         * common.opt: Add documentation for -fcx-fortran-rules.
14431 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
14433         PR c/35162
14434         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
14435         actual behaviour and C99.
14437 2008-02-26  Ben Elliston  <bje@au.ibm.com>
14439         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
14440         (ASM_CPU_POWER6_SPEC): Likewise.
14441         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
14442         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
14443         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
14445 2008-02-25  Richard Guenther  <rguenther@suse.de>
14447         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
14448         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
14449         (lookup_decl_from_uid): Declare.
14450         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
14451         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
14452         (decl_for_uid_map): New global hashtable mapping DECL_UID
14453         to the decl tree.
14454         (init_ttree): Allocate it.
14455         (insert_decl_to_uid_decl_map): New helper function.
14456         (make_node_stat): Insert new decls into the map.
14457         (copy_node_stat): Likewise.
14458         (lookup_decl_from_uid): New function.
14459         (print_decl_for_uid_map_statistics): New helper.
14460         (dump_tree_statistics): Call it.
14462         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
14463         (referenced_var_iterator): Adjust.
14464         (FOR_EACH_REFERENCED_VAR): Adjust.
14465         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
14466         (num_referenced_vars): Adjust.
14467         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
14468         (first_referenced_var): Remove.
14469         (end_referenced_vars_p): Likewise.
14470         (next_referenced_var): Likewise.
14471         (referenced_var_iterator_set): New helper function.
14472         * tree-dfa.c (referenced_var_lookup): Adjust.
14473         (referenced_var_check_and_insert): Likewise.
14474         (remove_referenced_var): Likewise.
14475         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
14476         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14477         (verify_call_clobbering): Likewise.
14478         (verify_memory_partitions): Likewise.
14479         (init_tree_ssa): Allocate bitmap instead of hashtable for
14480         referenced_vars.
14481         (delete_tree_ssa): Adjust.
14482         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
14483         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
14484         (compute_tag_properties): Likewise.
14485         (set_initial_properties): Likewise.
14486         (find_partition_for): Likewise.
14487         (update_reference_counts): Likewise.
14488         (dump_may_aliases_for): Likewise.
14489         * tree-ssa-operands.c (add_virtual_operand): Likewise.
14490         (add_call_clobber_ops): Likewise.
14491         (add_call_read_ops): Likewise.
14492         (get_asm_expr_operands): Likewise.
14493         * tree-into-ssa.c (dump_decl_set): Likewise.
14494         (update_ssa): Likewise.
14495         * tree-sra.c (scan_function): Likewise.
14496         (decide_instantiations): Likewise.
14497         (scalarize_parms): Likewise.
14498         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
14499         (dsa_named_for): Likewise.
14500         * tree-ssa-structalias.c (update_alias_info): Likewise.
14501         (merge_smts_into): Likewise.
14503 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
14505         PR target/35258
14506         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
14507         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
14508         * alias.h (nonoverlapping_memrefs_p): Likewise.
14510 2008-02-25  Jan Beulich  <jbeulich@novell.com>
14512         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
14513         * config/i386/netware-libgcc.exp: Add __bswap?i2,
14514         __emultls_get_address, __emultls_register_common,
14515         __floatundi?f, and _Unwind_GetIPInfo.
14516         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
14517         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
14518         (gen_regparm_prefix): Likewise.
14519         (i386_nlm_encode_section_info): Sync with
14520         config/i386/winnt.c:i386_pe_encode_section_info().
14521         (i386_nlm_maybe_mangle_decl_assembler_name): New.
14522         i386_nlm_mangle_decl_assembler_name): New.
14523         (netware_override_options): New.
14524         * config/i386/netware.h (netware_override_options): Declare.
14525         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
14526         (i386_nlm_mangle_decl_assembler_name): Declare.
14527         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
14529 2008-02-25  Ben Elliston  <bje@au.ibm.com>
14531         PR other/32948
14532         * c-decl.c (grokdeclarator): Remove unused local variables
14533         `typedef_type' and `type_as_written'.
14534         * bb-reorder.c
14535         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
14536         unused local variable `has_hot_blocks'.
14537         (fix_crossing_conditional_branches): Remove unused local variable
14538         `prev_bb'.
14540 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
14542         PR middle-end/19984
14543         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
14544         using DEF_C99_BUILTIN.
14545         (BUILT_IN_NANF): Ditto.
14546         (BUILT_IN_NANL): Ditto.
14548 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
14549             Revital Eres  <eres@il.ibm.com>
14551         * modulo-sched.c (calculate_must_precede_follow): Address TODO
14552         regarding the order of two dependent insns in the same row.
14554 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
14556         * stor-layout.c (layout_decl): Do not bump the alignment of a
14557         bit-field to more than byte alignment if it is packed.
14559 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
14561         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
14562         e300c2 and e300c3.
14564 2008-02-24  Diego Novillo  <dnovillo@google.com>
14566         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
14568         PR 33738
14569         * tree-vrp.c (vrp_evaluate_conditional): With
14570         -Wtype-limits, emit a warning when comparing against a
14571         constant outside the natural range of OP0's type.
14572         * c.opt (Wtype-limits): Move ...
14573         * common.opt (Wtype-limits): ... here.
14575 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
14577         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
14578         * config/rs6000/e300c2c3.md: New file.
14579         * config/rs6000/rs6000.c (processor_costs): Add new costs for
14580         e300c2 and e300c3.
14581         (rs6000_override_options): Add e300c2 and e300c3 cases to
14582         processor_target_table. Do not allow usage of Altivec or Spe
14583         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
14584         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
14585         * config/rs6000/rs6000.h (processor_type): Add
14586         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
14587         (ASM_CPU_SPEC): Add e300c2 and e300c3.
14588         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
14589         and ppce300c3. Include e300c2c3.md.
14591 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
14593         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
14594         instead of TARGET_STRICT_ALIGN.
14596 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
14598         * explow.c (memory_address): Assert that the generated address is
14599         valid.
14601 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
14603         PR target/25477
14604         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
14605         * config/darwin-ppc-ldouble-patch.def: New file.
14606         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
14607         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
14608         SUBTARGET_INIT_BUILTINS if defined.
14609         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
14610         New functions.
14612 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14614         PR rtl-opt/33512
14615         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
14616         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
14618 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14620         PR pch/35027
14621         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
14622         file" warning condtional on -Winvalid-PCH.
14624 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
14626         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
14628 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
14630         PR target/22076
14631         PR target/34256
14632         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
14633         prevent reload from using MMX registers.
14634         (*mov<mode>_internal): Ditto.
14635         (*movv2sf_internal_rex64): Ditto.
14636         (*movv2sf_internal): Ditto.
14638 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14640         PR documentation/31569
14641         * doc/install.texi2html: Use makeinfo --no-number-sections.
14643 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14645         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
14646         ensure that we can address an entire entity > 8 bytes.  Don't
14647         generate reg+reg addressing for such data.
14649 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14651         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
14652         strings when optimizing for size, unless the target cares about
14653         alignment.
14655 2008-02-22  Tom Tromey  <tromey@redhat.com>
14657         * regclass.c (current_pass): Remove declaration.
14659 2008-02-22  Anatoly Sokolov <aesok@post.ru>
14661         * config/avr/libgcc.S (__RAMPZ__): Define.
14662         (__do_copy_data): Add for devices with 128KB code memory.
14664 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
14666         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
14667         Use spe_abi.
14668         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
14670 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
14672         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
14673         GENNONACR_REGS.
14675 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14677         PR c/19999
14678         * c-typeck.c (build_binary_op): Warn about floating point
14679         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
14681 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
14683         PR target/34526
14684         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
14685         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
14686         add vrsave.
14687         (rs6000_override_options): Set altivec_abi as default, not override,
14688         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
14689         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
14690         is used; use new member spe_abi.
14691         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
14692         spe_abi and altivec_abi.
14694 2008-02-22  Tomas Bily  <tbily@suse.cz>
14696         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
14698 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14700         PR bootstrap/35273
14701         * config.build (build_file_translate): Set to `CMD //c' only if
14702         it works.
14703         * Makefile.in (build_file_translate): Improve comment.
14705 2008-02-21  Jan Hubicka  <jh@suse.cz>
14707         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
14708         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
14709         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
14711 2008-02-21  Michael Matz  <matz@suse.de>
14713         PR target/35264
14714         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
14716 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
14718         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
14719         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
14720         as insn constraint.
14721         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
14722         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
14723         SSE_VEC_FLOAT_MODE_P as insn constraint.
14724         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
14725         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
14726         sse4a_movntdf using MODEF mode iterator.
14727         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
14728         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
14729         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
14730         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
14731         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
14732         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
14733         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
14735 2008-02-21  Richard Guenther  <rguenther@suse.de>
14737         * tree.def (PAREN_EXPR): New tree code.
14738         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
14739         and PAREN_EXPR.
14740         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
14741         * expr.c (expand_expr_real_1): Likewise.
14742         * tree-inline.c (estimate_num_insns_1): Likewise.
14743         * tree-complex.c (expand_complex_move): Likewise.
14744         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
14745         as plain x.
14747 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14749         PR target/35225
14750         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
14752 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
14754         PR target/35190
14755         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
14757         * config/sh/sh.c (find_barrier): Don't go past
14758         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
14760 2008-02-20  DJ Delorie  <dj@redhat.com>
14762         * config/h8300/h8300.md (insv): Force source operand to be a register.
14764         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
14765         as a jump, not as a plain insn.
14767 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
14769         * doc/invoke.texi (Warning Options): Add new option
14770         -Wframe-larger-than=.
14771         (-Wframe-larger-than): Document.
14773         * flags.h (warn_frame_larger_than, frame_larger_than_size):
14774         Add declarations for new option variables.
14776         * final.c (final_start_function): Check the frame size
14777         before emission and issue a Wframe-larger-than warning.
14779         * opts.c (warn_frame_larger_than, frame_larger_than_size):
14780         Add definitions for new option variables.
14781         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
14783         * common.opt (Wframe-larger-than=): New option.
14785 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14787         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
14788         (<sse>_div<mode>3): Ditto.
14789         (<sse>_vmdiv<mode>3): Ditto.
14790         (<sse>_vmsqrt<mode>2): Ditto.
14791         (*smax<mode>3): Ditto.
14792         (sse5_frcz<mode>2): Ditto.
14793         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
14794         as insn constraint.
14796 2008-02-20  Richard Guenther  <rguenther@suse.de>
14798         PR middle-end/35265
14799         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
14800         be happy with INTEGRAL_TYPE_P.
14802 2008-02-20  Richard Guenther  <rguenther@suse.de>
14804         * fold-const.c (split_tree): Associate floatig-point expressions
14805         if flag_associative_math is set.
14807 2008-02-20  Richard Guenther  <rguenther@suse.de>
14809         * tree.h (fold_real_zero_addition_p): Declare.
14810         * fold-const.c (fold_real_zero_addition_p): Export.
14811         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
14812         floating-point operations with zero and one.
14814 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
14816         * doc/install.texi: Correct references to CFLAGS, replacing them
14817         with BOOT_CFLAGS.  Document flags used during bootstrap for
14818         target libraries.
14820 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
14822         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
14823         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
14824         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
14825         insn constraint.
14826         (smin<mode>3): Ditto from similar patterns.
14827         (smax<mode>3): Ditto.
14828         (*ieee_smin<mode>3): Ditto.
14829         (*ieee_smax<mode>3): Ditto.
14830         * config/i386/sse.md (sse): New mode attribute.
14831         (mov<mode>): Macroize expander from movv4sf and movv2df using
14832         SSEMODEF2P mode iterator.
14833         (<sse>_movnt<mode>): Ditto from similar patterns. Use
14834         SSE_VEC_FLOAT_MODE_P as insn constraint.
14835         (storent<mode>): Ditto.
14836         (storent<mode>): Macroize expander from storentsf and storentdf using
14837         MODEF mode iterator.
14838         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
14839         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
14840         (abs<mode>2): Ditto from similar patterns.
14841         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
14842         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
14843         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
14844         (<sse>_vmsqrt<mode>2): Ditto.
14845         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
14846         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
14847         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
14848         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
14849         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
14850         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
14851         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
14852         insn constraint.
14853         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
14854         iterator and SSE_FLOAT_MODE_P as insn constraint.
14855         (<sse>_ucomi): Ditto from similar patterns.
14856         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
14857         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
14858         SSE_VEC_FLOAT_MODE_P as insn constraint.
14859         (vcond<mode>): Ditto from similar patterns.
14860         (and<mode>3, *and<mode>3): Ditto.
14861         (<sse>_nand<mode>3): Ditto.
14862         (ior<mode>3, *ior<mode>3): Ditto.
14863         (xor<mode>3, *xor<mode>3): Ditto.
14864         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
14865         iterator and SSE_FLOAT_MODE_P as insn constraint.
14866         (*nand<mode>3): Ditto from similar patterns.
14867         (*ior<mode>3): Ditto.
14868         (*xor<mode>3): Ditto.
14870 2008-02-20  Ira Rosen  <irar@il.ibm.com>
14872         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
14873         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
14874         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
14876 2008-02-19  Jan Hubicka  <jh@suse.cz>
14878         * predict.c (tree_bb_level_predictions): Remove variable next
14879         mistakely introduced by previous commit.
14881 2008-02-19  Jan Hubicka  <jh@suse.cz>
14883         * predict.c (predict_paths_leading_to): Rewrite.
14884         (predict_paths_for_bb): New.
14885         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
14887 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14889         PR bootstrap/35218
14890         * Makefile.in (build_file_translate): New.
14891         (gcc-vers.texi): Use it for translating $(abs_srcdir).
14892         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
14893         * configure.ac (build_file_translate): Substitute it.
14894         * configure: Regenerate.
14896 2008-02-19  Jan Hubicka  <jh@suse.cz>
14898         PR rtl-optimization/34408
14899         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
14900         invalid sharing.
14902 2008-02-19  Jan Hubicka  <jh@suse.cz>
14904         PR middle-end/28779
14905         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
14906         call_expr.
14908 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
14910         PR Ada/35186
14911         * config/i386/i386-modes.def: Revert the last DI alignment
14912         change until Ada people can look into it.
14914 2008-02-19  Nick Clifton  <nickc@redhat.com>
14916         * opts.c (print_specific_help): Fix typo in --help text.
14918 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
14920         PR target/35239
14921         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
14922         32-bit inline asm without asm alternatives for host GCC < 3.0.
14924 2008-02-19  Richard Guenther  <rguenther@suse.de>
14926         PR tree-optimization/34989
14927         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
14928         Allow propagation to INDIRECT_REF if we can simplify only.
14930 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
14932         * c-common.c (warn_for_collisions_1): Use appropriate option when
14933         warning.
14935 2008-02-19  Nick Clifton  <nickc@redhat.com>
14937         PR other/31349
14938         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
14939         (handle_options): Fix indentation.
14940         (print_filtered_help): If no language-specific options were
14941         displayed tell the user how to list all the options supported by
14942         the language's front-end.
14943         (print_specific_help): Fix indentation and remove duplicate line.
14944         (common_handle_option): Handle the -v option.
14945         For --help enable the display of undocumented options if the -v
14946         switch has been included on the command line.
14947         For --help= check for overlaps in the arguments between the option
14948         classes and the language names and issue a warning when they
14949         cannot be disambiguated.
14950         * c.opt (v): Pass on to the common option handler.
14952 2008-02-19  Revital Eres  <eres@il.ibm.com>
14954         * modulo-sched.c (sms_schedule): Change dump message when
14955         create_ddg function fails.
14956         (try_scheduling_node_in_cycle): Rename row to cycle.
14957         (print_partial_schedule): Rename CYCLE to ROW.
14959 2008-02-19  Christian Bruel  <christian.bruel@st.com>
14960             Zdenek Dvorak  <ook@ucw.cz>
14962         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
14964 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14966         PR target/33555
14967         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
14968         (*x86_movdicc_0_m1_se): Ditto.
14970 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
14972         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
14973         (CMPtype): Define as __gcc_CMPtype.
14974         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
14975         (CMPtype): Define as __gcc_CMPtype.
14977 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
14979         Support valgrind 3.3 for --enable-checking=valgrind.
14980         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
14981         here.
14982         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
14983         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
14984         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
14985         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
14986         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
14987         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
14988         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
14989         respectively.
14990         * ggc-zone.c: Similar.
14991         * ggc-page.c: Similar.
14993 2008-02-19  Paul Brook  <paul@codesourcery.com>
14995         PR target/35071
14996         * config/arm/ieee754-df.S: Fix do_it typo.
14997         * config/arm/ieee754-sf.S: Fix do_it typo.
14999 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15001         PR target/35189
15002         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
15003         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
15004         (OPTION_MASK_ISA_SSE_SET): Likewise.
15005         (OPTION_MASK_ISA_SSE2_SET): Likewise.
15006         (OPTION_MASK_ISA_SSE3_SET): Likewise.
15007         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
15008         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
15009         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
15010         (OPTION_MASK_ISA_SSE4_SET): Likewise.
15011         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
15012         (OPTION_MASK_ISA_SSE5_SET): Likewise.
15013         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
15014         (OPTION_MASK_ISA_MMX_UNSET): Updated.
15015         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
15016         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
15017         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
15018         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
15019         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
15020         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
15021         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
15022         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
15023         (OPTION_MASK_ISA_SSE4): Removed.
15024         (ix86_handle_option): Turn on bits in ix86_isa_flags and
15025         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
15026         (override_options): Don't turn on implied SSE/MMX bits in
15027         ix86_isa_flags.
15029 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
15031         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
15032         32bit host.
15034 2008-02-18  Joey Ye  <joey.ye@intel.com>
15036         PR middle-end/34921
15037         * tree-nested.c (insert_field_into_struct): Set type alignment
15038         to field alignment if the former is less than the latter.
15040 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
15042         * BASE-VER: Set to 4.4.0.
15044 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15046         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
15047         * doc/cfg.texi: Likewise.
15048         * doc/extend.texi: Likewise.
15049         * doc/gty.texi: Likewise.
15050         * doc/invoke.texi: Likewise.
15051         * doc/loop.texi: Likewise.
15052         * doc/md.texi: Likewise.
15053         * doc/passes.texi: Likewise.
15054         * doc/rtl.texi: Likewise.
15055         * doc/sourcebuild.texi: Likewise.
15056         * doc/tm.texi: Likewise.
15057         * doc/tree-ssa.texi: Likewise.
15059 2008-02-17  Richard Guenther  <rguenther@suse.de>
15061         PR middle-end/35227
15062         * tree-complex.c (init_parameter_lattice_values): Handle parameters
15063         without default definition.
15065 2008-02-17  Richard Guenther  <rguenther@suse.de>
15067         PR tree-optimization/35231
15068         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
15069         if A | B != 1.
15071 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
15073         Revert:
15074         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15075         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15076         libgcc_cmp_return mode.
15078 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15080         PR c/28368
15081         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
15083 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
15085         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
15086         multilibs.
15088 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15090         * doc/c-tree.texi: Use `@.' where appropriate.
15091         * doc/extend.texi: Likewise.
15092         * doc/install.texi: Likewise.
15093         * doc/invoke.texi: Likewise.
15094         * doc/loop.texi: Likewise.
15095         * doc/makefile.texi: Likewise.
15096         * doc/md.texi: Likewise.
15097         * doc/passes.texi: Likewise.
15098         * doc/standards.texi: Likewise.
15099         * doc/tm.texi: Likewise.
15101 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15103         PR middle-end/35196
15104         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
15105         in entry_bb.
15106         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
15107         rather than in entry_bb.
15109 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15111         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
15112         libgcc_cmp_return mode.
15114 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
15116         PR middle-end/35130
15117         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
15118         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
15120 2008-02-15  Richard Guenther  <rguenther@suse.de>
15121             Zdenek Dvorak  <ook@ucw.cz>
15123         PR tree-optimization/35164
15124         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
15125         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
15126         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
15127         Only propagate addresses which do not have abnormal SSA_NAMEs
15128         in their operands.
15130 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
15132         PR target/35088
15133         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
15135 2008-02-15  Jan Hubicka  <jh@suse.cz>
15137         PR middle-end/35149
15138         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
15140 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15142         PR middle-end/34621
15143         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
15144         when calculating alignment_pad.
15146 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
15148         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
15149         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
15150         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
15151         and STACK_BOUNDARY define.
15153 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
15155         PR preprocessor/35061
15156         * c-pragma.c (handle_pragma_pop_macro): Check that
15157         pushed_macro_table has been allocated.
15159 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
15161         PR middle-end/35136
15162         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
15163         (force_gimple_operand): Likewise.
15164         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
15165         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
15166         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
15167         (find_interesting_uses_address): Check addressability and alignment
15168         of the base expression only after substituting bases of IVs into it.
15170 2008-02-14  Michael Matz  <matz@suse.de>
15172         PR target/34930
15173         * function.c (instantiate_virtual_regs_in_insn): Reload address
15174         before falling back to reloading the whole operand.
15176 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
15178         * config/s390/s390.c (s390_mainpool_start): Emit the pool
15179         before the first section switch note.
15181 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15183         * doc/bugreport.texi: Update copyright years.
15184         * doc/c-tree.texi: Likewise.
15185         * doc/cfg.texi: Likewise.
15186         * doc/cpp.texi: Likewise.
15187         * doc/cppinternals.texi: Likewise.
15188         * doc/fragments.texi: Likewise.
15189         * doc/frontends.texi: Likewise.
15190         * doc/gcc.texi: Likewise.
15191         * doc/gty.texi: Likewise.
15192         * doc/hostconfig.texi: Likewise.
15193         * doc/implement-c.texi: Likewise.
15194         * doc/libgcc.texi: Likewise.
15195         * doc/loop.texi: Likewise.
15196         * doc/makefile.texi: Likewise.
15197         * doc/options.texi: Likewise.
15198         * doc/passes.texi: Likewise.
15199         * doc/rtl.texi: Likewise.
15200         * doc/sourcebuild.texi: Likewise.
15201         * doc/standards.texi: Likewise.
15202         * doc/tree-ssa.texi: Likewise.
15203         * doc/trouble.texi: Likewise.
15205         * doc/extend.texi: Use @: or add comma where appropriate.
15206         * doc/invoke.texi: Likewise.
15207         * doc/tm.texi: Likewise.
15209 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
15211         PR target/34393
15212         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
15213         to a reg.
15215 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
15217         * doc/md.texi (clz, ctz): Add reference.
15218         * doc/rtl.texi (clz, ctz): Likewise.
15220 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15222         PR other/35148
15223         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
15224         srcdir.
15226 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
15228         * config/s390/s390.c (struct constant_pool): New field
15229         emit_pool_after added.
15230         (s390_mainpool_start): Set the emit_pool_after flag according
15231         to the section switch notes.
15232         (s390_mainpool_finish): Consider emit_pool_after when emitting
15233         the literal pool at the end of the function.
15234         (s390_chunkify_start): Force literal pool splits at section
15235         switch notes.
15237 2008-02-13  Michael Matz  <matz@suse.de>
15239         PR debug/35065
15240         * var-tracking.c (clobber_variable_part): Correctly traverse the
15241         list.
15243 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15245         PR 29673
15246         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
15247         Add -fdump-ipa-inline.
15248         * tree-dump.c (dump_files): Remove tree-inlined dump.
15249         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
15251 2008-02-12  Richard Guenther  <rguenther@suse.de>
15253         PR tree-optimization/35171
15254         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
15255         default defs.
15257 2008-02-12  Richard Guenther  <rguenther@suse.de>
15259         PR middle-end/35163
15260         * fold-const.c (fold_widened_comparison): Use get_unwidened in
15261         value-preserving mode.  Disallow final truncation.
15263 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
15265         PR middle-end/35136
15266         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
15267         code from here to...
15268         (force_gimple_operand): ...here.
15270 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
15272         PR c++/35144
15273         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
15274         non-compatible pointers.
15275         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
15276         different FIELD_DECLs, try harder by comparing field offsets, sizes
15277         and types.
15279         PR inline-asm/35160
15280         * function.c (match_asm_constraints_1): Don't replace the same input
15281         multiple times.
15283 2008-02-12  Anatoly Sokolov <aesok@post.ru>
15285         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
15286         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
15287         (expand_epilogue): Restore RAMPZ register.
15288         * config/avr/avr.md (RAMPZ_ADDR): New constant.
15290 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
15292         * config/i386/cygwin.asm: (__alloca): Correct calling
15293         convention and alignment.
15294         (__chkstk): Force 8 byte stack alignment.
15296 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
15297             Richard Guenther  <rguenther@suse.de>
15299         PR tree-optimization/33992
15300         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
15301         the zero we compare against.
15303 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
15305         PR libfortran/35063
15306         * gthr-win32.h (__gthread_mutex_destroy_function): New function
15307         to CloseHandle after unlocking to prevent accumulation of handle
15308         count.
15310 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15312         PR middle_end/34150
15313         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
15314         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
15315         and update LABEL_NUSES during and after reload.
15317 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
15319         PR middle-end/34627
15320         * combine.c (simplify_if_then_else): Make sure the comparison is
15321         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
15323 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
15325         PR bootstrap/35051
15326         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
15327         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
15328         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
15329         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
15330         * tree.h (get_type_static_bounds): Likewise.
15332 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15334         * doc/invoke.texi (Option Summary, C++ Dialect Options)
15335         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15336         Make -Wfoo language annotations match what the compiler outputs.
15338 2008-02-08  Sa Liu  <saliu@de.ibm.com>
15340         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
15341         intrinsics spu_convts, spu_convtu, spu_convtf.
15343 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
15345         * doc/extend.texi (Function Attributes) <noinline>: Mention
15346         asm ("") as method to keep calls.
15348 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15350         PR other/32754
15351         * doc/options.texi (Options): Replace references to opts.sh with
15352         optc-gen.awk.
15353         * opts-common.c: Likewise.
15354         * optc-gen.awk: Likewise.
15356 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
15358         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
15360 2008-02-07  Richard Henderson  <rth@redhat.com>
15362         PR rtl-opt/33410
15363         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
15364         EXPR_LIST for the REG_EQUAL instead of a comparison with a
15365         funny mode.
15367 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
15369         PR tree-optimization/35085
15370         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
15371         for operand entry oe2 in addition to operand entry oe3 in order to
15372         expose more opportunities for vectorizer sum reduction.
15374 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15376         PR other/35107
15377         * Makefile.in (LIBS): Remove $(GMPLIBS).
15378         (cc1-dummy, cc1): Add $(GMPLIBS).
15380 2008-02-06  Jan Hubicka  <jh@suse.cz>
15382         PR target/23322
15383         * i386.md (moddf_integer): Do not produce partial memory stalls for
15384         targets where it hurts.
15386 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
15388         PR target/35083
15389         * optabs.c (expand_float): Do not check for decimal modes when
15390         expanding unsigned integer through signed conversion.
15392 2008-02-06  Nick Clifton  <nickc@redhat.com>
15394         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
15395         inside the clobber with a match_operand and duplicated operand
15396         number in the constraint.
15397         (ineqbranchsi): Delete redundant comment.
15399 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
15401         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
15402         builtin_define ("__USE_INIT_FINI__").
15403         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
15404         -msx multilibs.
15405         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
15407 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15409         PR documentation/30330
15410         * doc/invoke.texi (C++ Dialect Options)
15411         (Objective-C and Objective-C++ Dialect Options, Warning Options):
15412         For each warning option -Wfoo that allows -Wno-foo, ensure both
15413         -Wfoo and -Wno-foo are listed in the option index.  Fix index
15414         entry of -Wswitch-default, index -Wnormalized= including the
15415         `=', and -Wlarger-than-@var{len} including @var{len}.
15417 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15419         * config/i386/i386.md (floatunssisf2): Use
15420         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
15421         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
15422         Macroize expander using MODEF mode iterator.
15424 2008-02-05  Diego Novillo  <dnovillo@google.com>
15426         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
15428         PR 33738
15429         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
15431 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15433         PR other/35070
15434         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
15436 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
15438         PR target/35084
15439         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
15440         to indicate if a message should be generated.
15441         (init_cumulative_args): Updated.
15442         (function_value_32): Likewise.
15444 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
15446         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
15448 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
15450         PR target/35083
15451         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
15452         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
15454 2008-02-04  Diego Novillo  <dnovillo@google.com>
15456         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
15458         PR 33738
15459         * tree-vrp.c (vrp_evaluate_conditional): With
15460         -Wtype-limits, emit a warning when comparing against a
15461         constant outside the natural range of OP0's type.
15463 2008-02-04  Richard Guenther  <rguenther@suse.de>
15465         PR middle-end/33631
15466         * expr.c (count_type_elements): Give for unions instead of
15467         guessing.
15469 2008-02-04  Richard Guenther  <rguenther@suse.de>
15471         PR middle-end/35043
15472         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
15473         to TYPE_DOMAINs base type instead of using bitsizetype here.
15475 2008-02-03  Jason Merrill  <jason@redhat.com>
15477         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
15479 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15481         PR other/29972
15482         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
15483         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
15484         (RS/6000 and PowerPC Options): Fix typos and markup.
15485         * doc/passes.texi (Tree-SSA passes): Likewise.
15487 2008-02-02  Michael Matz  <matz@suse.de>
15489         PR target/35045
15490         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
15491         from record_last_reg_set_info.
15492         (record_last_reg_set_info): Take an RTX argument, iterate over all
15493         constituent hardregs.
15494         (record_last_set_info, record_opr_changes): Change calls to
15495         new signature or to record_last_reg_set_info_regno.
15497 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
15499         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
15501 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
15503         PR rtl-optimization/34773
15504         * reg-notes.def (EQUAL): Mention significance of combination of
15505         REG_EQUAL and REG_RETVAL.
15506         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
15507         insn that has a REG_RETVAL.
15509 2008-02-01  Roger Sayle  <roger@eyesopen.com>
15511         PR bootstrap/33781
15512         * configure.ac (--enable-fixed-point): Disable unless explicitly
15513         requested on IRIX.
15514         * configure: Regenerate.
15516 2008-02-01  Richard Guenther  <rguenther@suse.de>
15518         PR other/35042
15519         * invoke.texi (-finline-limit): Remove no longer true parts
15520         of the documentation.  Note that there is no default value.
15522 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
15523             Mark Mitchell  <mark@codesourcery.com>
15524             Ben Elliston  <bje@au.ibm.com>
15526         PR c/29326
15527         * doc/extend.texi (Other Builtins): Document.
15529 2008-01-31  Tom Browder <tom.browder@gmail.com>
15531         * doc/c-tree.texi (Types): Fix grammar.
15532         (Expression trees): Ditto.
15533         * doc/passes.texi (Tree-SSA passes): Ditto.
15535         * doc/configterms.texi (Configure Terms): Fix typo.
15536         * doc/cpp.texi (Common Predefined Macros): Ditto.
15537         * doc/md.texi (Machine Constraints): Ditto.
15539         * doc/makefile.texi (Makefile): Add comma.
15541 2008-01-31  Tom Browder  <tom.browder@gmail.com>
15542             Gerald Pfeifer  <gerald@pfeifer.com>
15544         * doc/sourcebuild.texi (Front End): Remove references to CVS
15545         and CVSROOT/modules.
15546         (Texinfo Manuals): Replace reference to CVS by one to SVN.
15547         (Back End): Remove reference to CVS.
15549 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15551         PR target/34900
15552         * config/mips/mips.c (gen_load_const_gp): New function, taking a
15553         comment from...
15554         (mips16_gp_pseudo_reg): ...here.
15555         * config/mips/mips.md (load_const_gp): Replace with...
15556         (load_const_gp_<mode>): ...this :P-based insn.
15558 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
15560         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
15561         options. Minor fixes.
15562         (-std): Move reference to standards closer to where language
15563         standards are first mentioned.
15565 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
15567         PR rtl-optimization/34995
15568         * reload.c (alternative_allows_const_pool_ref): Take an rtx
15569         parameter and return a bool.  If the rtx parameter is nonnull,
15570         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
15571         (find_reloads): Update call accordingly.  Pass the new operand
15572         if it needed no address reloads, otherwise pass null.
15574 2008-01-30  Richard Henderson  <rth@redhat.com>
15576         PR c/34993
15577         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
15578         for unbounded arrays.
15580 2008-01-30  Silvius Rus  <rus@google.com>
15582         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
15584 2008-01-30  Jan Hubicka  <jh@suse.cz>
15586         PR target/34982
15587         * i386.c (init_cumulative_args): Use real function declaration when
15588         calling locally.
15590 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
15592         PR rtl-optimization/34998
15593         * global.c (build_insn_chain): Treat non-subreg_lowpart
15594         SUBREGs of pseudos as clobbering all the words covered by the
15595         SUBREG, not just all the bytes.
15596         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
15597         original df_ref rather than an extract parameter.
15598         (global_conflicts): Update call accordingly.
15600 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
15602         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
15603         the overflow check to make it easier to read.
15604         (__fixtfdi): Change the type of the ll member in union
15605         long_double to UDItype_x.
15607 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
15609         PR middle-end/34969
15610         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
15611         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
15612         * tree-inline.c (fold_marked_statements): Call
15613         cgraph_update_edges_for_call_stmt if folding a call statement.
15614         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
15615         debug_generic_stmt calls, reset it back afterwards.
15617         PR c/35017
15618         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
15619         static decls.
15620         * c-typeck.c (build_external_ref): Don't pedwarn about
15621         static vars in current function's scope.
15623 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
15625         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
15627 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
15629         PR c/35002
15630         * ipa-struct-reorg.c: Fix spelling.
15631         * params.def: Ditto.
15633 2008-01-29  Richard Guenther  <rguenther@suse.de>
15635         PR middle-end/35006
15636         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
15637         field.
15638         * tree-inline.c (remap_type): Increment remapping_type_depth
15639         around remapping types.
15640         (copy_body_r): Only add referenced variables if they are referenced
15641         from code, not types.
15643 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
15645         PR c++/34055
15646         PR c++/34103
15647         PR c++/34219
15648         PR c++/34606
15649         PR c++/34753
15650         PR c++/34754
15651         PR c++/34755
15652         PR c++/34919
15653         PR c++/34961
15654         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
15655         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
15657 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
15659         PR target/34412
15660         * config/avr/avr.c (expand_prologue): Use correct QI mode frame
15661         pointer for tiny stack.
15663 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15665         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
15667 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
15669         * config/vx-common.h: Fix typo in comment.
15671 2008-01-28  Ian Lance Taylor  <iant@google.com>
15673         PR c++/34862
15674         PR c++/33407
15675         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15676         coalesce pointers if they have different DECL_NO_TBAA_P values.
15677         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
15678         between variables with different DECL_NO_TBAA_P values.
15680 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
15682         PR 31535
15683         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
15684         are not legitimate small data references on SPE targets.
15686 2008-01-28  David Daney  <ddaney@avtrex.com>
15688         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
15690 2008-01-28  David Daney  <ddaney@avtrex.com>
15692         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
15694 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
15696         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
15697         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
15698         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
15699         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
15700         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
15701         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
15702         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
15703         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
15705 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15707         * basic-block.h (condjump_equiv_p): Fix comment.
15709 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15711         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
15712         print_generic_stmt_indented): Fix comment.
15714 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
15716         * configure.ac (__stack_chk_fail): Add detecion for availability
15717         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
15718         * configure: Regenerate.
15720 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
15722         PR middle-end/34688
15723         * final.c (output_addr_const): Handle TRUNCATE.
15725 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
15727         PR target/34711
15728         * tree-ssa-loop-ivopts.c (comp_cost): New type.
15729         (zero_cost, infinite_cost): New constants.
15730         (struct cost_pair): Change type of cost to comp_cost.
15731         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
15732         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
15733         New functions.
15734         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
15735         split_address_cost, ptr_difference_cost, difference_cost,
15736         get_computation_cost_at, get_computation_cost,
15737         determine_use_iv_cost_generic, determine_use_iv_cost_address,
15738         determine_use_iv_cost_condition, determine_use_iv_costs,
15739         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
15740         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
15741         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
15742         Change type of cost to comp_cost.
15743         (determine_iv_cost): Increase cost of non-original ivs, instead
15744         of decreasing the cost of original ones.
15745         (get_address_cost): Indicate the complexity of the addressing mode
15746         in comp_cost.
15747         (try_add_cand_for): Prefer using ivs not specific to some object.
15748         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
15750 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
15751             Janis Johnson  <janis187@us.ibm.com>
15753         PR target/34814
15754         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
15755         (TARGET_INSTANTIATE_DECLS): Likewise.
15756         * target.h (expand_to_rtl_hook): New target hook.
15757         (instantiate_decls): Likewise.
15758         * function.c (instantiate_decl): Make non-static.  Rename to...
15759         (instantiate_decl_rtl): ... this.
15760         (instantiate_expr): Use instantiate_decl_rtl.
15761         (instantiate_decls_1): Likewise.
15762         (instantiate_decls): Likewise.
15763         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
15764         * function.h (instantiate_decl_rtl): Add prototype.
15765         * cfgexpand.c (target.h): New include.
15766         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
15767         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
15768         (TARGET_INSTANTIATE_DECLS): Likewise.
15769         (TARGET_INITIALIZER): New target hooks added.
15770         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
15771         New prototype.
15772         * config/rs6000/rs6000.c (tree-flow.h): New include.
15773         (machine_function): Add sdmode_stack_slot field.
15774         (rs6000_alloc_sdmode_stack_slot): New function.
15775         (rs6000_instantiate_decls): Likewise.
15776         (rs6000_secondary_memory_needed_rtx): Likewise.
15777         (rs6000_check_sdmode): Likewise.
15778         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
15779         (TARGET_INSTANTIATE_DECLS): Likewise.
15780         (rs6000_hard_regno_mode_ok): Allow SDmode.
15781         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
15782         (rs6000_emit_move): Handle SDmode.
15783         (function_arg_advance): Likewise.
15784         (function_arg): Likewise.
15785         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
15786         SDmode var args for 32-bit compiles.
15787         (rs6000_secondary_reload_class): Handle SDmode.
15788         (rs6000_output_function_epilogue): Likewise.
15789         (rs6000_function_value): Simplify if statement.
15790         (rs6000_libcall_value): Likewise.
15791         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
15792         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
15793         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
15794         (movsd_hardfloat): New define_insn.
15795         (movsd_softfloat): Likewise.
15796         (movsd_store): Likewise.
15797         (movsd_load): Likewise.
15798         (extendsddd2): Likewise.
15799         (extendsdtd2): Likewise.
15800         (truncddsd2): Likewise.
15801         (movdd_hardfloat64): Fixup comment.
15802         (UNSPEC_MOVSD_LOAD): New constant.
15803         (UNSPEC_MOVSD_STORE): Likewise.
15805 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
15807         PR c++/34965
15808         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
15809         TRUTH_XOR_EXPR.
15810         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
15811         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
15812         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
15813         and TRUTH_XOR_EXPR.
15815 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
15817         PR target/34794
15818         * config.gcc: Separate AIX 5.3 from AIX 6.1.
15819         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
15820         __LONGDOUBLE128 too.
15821         * config/rs6000/aix61.h: New file.
15823 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15825         PR rtl-optimization/34959
15826         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
15827         popcount and parity rtxes the same mode as their operand.
15828         Truncate or extend the result to the return value's mode
15829         if necessary.
15831 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
15833         PR target/34981
15834         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
15835         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
15836         to GOT_VERSION_REGNUM.
15837         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
15838         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
15839         * config/mips/mips.c (mips_emit_call_insn): New function.
15840         (mips_call_tls_get_addr): Call mips_expand_call directly.
15841         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
15842         emit_call_insn.
15843         (mips16_build_call_stub): Likewise.  Return the call insn or null.
15844         (mips_expand_call): Update the call to mips16_build_call_stub
15845         accordingly and a remove redundant condition.  Assert that MIPS16
15846         stubs do not use lazy binding.  Use mips_emit_call_insn and return
15847         the call insn.
15848         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
15849         TARGET_USE_GOT.
15850         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
15851         (mips_avoid_hazard): Remove hazard_set handling.
15852         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
15853         (UNSPEC_RESTORE_GP): ...this.
15854         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
15855         (FAKE_CALL_REGNO): Rename to...
15856         (GOT_VERSION_REGNUM): ...this.
15857         (type): Add "ghost" value.  Add an associated insn reservation.
15858         (hazard_set): Remove.
15859         (exception_receiver): Rename to...
15860         (restore_gp): ...this and update the unspec identifier accordingly.
15861         (exception_receiver, nonlocal_got_receiver): New expanders.
15862         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
15863         FAKE_CALL_REGNO.  Remove hazard_set attribute.
15864         (set_got_version, update_got_version): New patterns.
15866 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
15868         PR target/34970
15869         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
15871 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15873         PR other/31955
15874         * doc/install.texi2html: Generate gcc-vers.texi.
15876 2008-01-25  DJ Delorie  <dj@redhat.com>
15878         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15880 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
15882         * config/c4x: Remove directory.
15883         * config.gcc (crx-*, mt-*): Mark obsolete.
15884         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
15885         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
15886         sh-*-rtemscoff*): Remove cases.
15887         * defaults.h (C4X_FLOAT_FORMAT): Remove.
15888         * real.c (encode_c4x_single, decode_c4x_single,
15889         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
15890         c4x_extended_format): Remove.
15891         * real.h (c4x_single_format, c4x_extended_format): Remove.
15892         * doc/extend.texi (interrupt, naked): Remove mention of attributes
15893         on C4x.
15894         (Pragmas): Remove comment about c4x pragmas.
15895         * doc/install.texi (c4x): Remove target-specific instructions.
15896         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
15897         * doc/md.texi (Machine Constraints): Remove C4x documentation.
15898         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
15899         refer to C4x source files as examples.
15900         (C4X_FLOAT_FORMAT): Remove documentation.
15902 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
15904         * config/bfin/bfin.c (override_options): Reorder tests so that
15905         flag_pic gets enabled for -msep-data.
15907 2008-01-25  Richard Guenther  <rguenther@suse.de>
15909         PR middle-end/32244
15910         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
15911         to its bitfield precision if required.
15913 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15915         PR middle-end/33880
15916         * tree-nested.c (walk_omp_for): New function.
15917         (convert_nonlocal_reference, convert_local_reference): Call
15918         walk_omp_for on OMP_FOR.
15919         (convert_call_expr): Call walk_body on OMP_FOR's
15920         OMP_FOR_PRE_INIT_BODY.
15922 2008-01-25  Richard Guenther  <rguenther@suse.de>
15924         PR tree-optimization/34966
15925         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
15926         default defs and PHI_NODEs we have to insert after the
15927         defining statement.
15929 2008-01-24  Nick Clifton  <nickc@redhat.com>
15931         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
15932         Provide a default definition.
15933         (LIBGCC2_UNITS_PER_WORD): Likewise.
15935         * config/stormy16/stormy16.c: Include df.h for the prototype
15936         for df_regs_ever_live_p.
15937         (xstormy16_expand_builtin_va_start): Convert the stack offset
15938         into a component_ref and then use POINTER_PLUS_EXPR to add it
15939         to the incoming_virtual_args_rtx.
15940         (xstormy16_gimplify_va_arg_expr): Rename to
15941         xstormy16_gimplify_va_arg_expr.
15942         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
15943         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
15944         xstormy16_gimplify_va_arg_expr.
15945         Fix up some formatting issues.
15947         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
15948         Move to predicates.md.
15949         (xs_hi_general_operand): Likewise.
15950         (xs_hi_nonmemory_operand): Likewise.
15951         * config/stormy16/predicates.md:
15952         (xstormy16_carry_plus_operand): New predicate.
15953         (xs_hi_general_operand): New predicate.
15954         (xs_hi_nonmemory_operand): New predicate.
15955         * config/stormy16/stormy16-protos.h:
15956         (xstormy16_carry_plus_operand): Delete prototype.
15957         (xs_hi_general_operand): Likewise.
15958         (xs_hi_nonmemory_operand): Likewise.
15960         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
15961         modifiers as they are no longer needed and they can trigger
15962         reload spill failures.
15964         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
15965         with a match_operand in order to help reload.
15967         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
15968         constraint with 'e' for the 8th alternative as this version of
15969         the mov.w instruction only accepts the lower 8 registers.
15971 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
15973         PR target/34856
15974         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
15975         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
15976         vector elements.
15978 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
15980         PR middle-end/33333
15981         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
15983 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15985         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
15986         New functions.
15987         (remove_structure): Update allocations list before removing structure.
15989 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
15991         * ipa-struct-reorg.c (is_safe_cond_expr,
15992         create_new_stmts_for_cond_expr): Use integer_zerop function,
15993         that recognize not only zero-pointer, but zero-integer too.
15995 2008-01-25  Ben Elliston  <bje@au.ibm.com>
15997         PR other/22232
15998         * fixproto: Escape "." in sed expression that strips leading "./".
16000 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
16002         PR driver/34904
16003         * gcc.c (SWITCH_OK): Removed.
16004         (SWITCH_LIVE): Changed to bit.
16005         (SWITCH_FALSE): Likewise.
16006         (SWITCH_IGNORE): Likewise.
16007         (switchstr): Change live_cond to unsigned int.
16008         (process_command): Replace SWITCH_OK with 0.
16009         (do_self_spec): Likewise.
16010         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
16011         (give_switch): Likewise.
16012         (used_arg): Likewise.
16013         (do_spec_1): Set the SWITCH_IGNORE bit.
16014         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
16015         bits.  Set the SWITCH_LIVE bit.
16017 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
16019         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
16021 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
16023         PR tree-optimization/34472
16024         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
16025         parameter to a "bool *" and set *DATA to false if there is
16026         an unsafe access.  Do not delete the structure here.
16027         (check_cond_exprs): Delete it here instead.
16028         (check_cond_exprs, exclude_cold_structs): Do not increase
16029         I when removing a structure.
16031 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
16033         PR target/34856
16034         * config/i386/i386.c (ix86_expand_vector_init): Consider only
16035         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
16037 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
16039         PR middle-end/34934
16040         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
16041         a fixed vector for stack.
16043 2008-01-24  Ben Elliston  <bje@au.ibm.com>
16045         PR c++/25701
16046         * doc/gcc.texi (Software development): Add a direntry for g++.
16048 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
16050         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
16051         stale and straggling -fforce-addr comments above.
16053         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
16054         define.
16055         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
16056         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
16058 2008-01-23  Michael Matz  <matz@suse.de>
16060         PR debug/34895
16061         * dwarf2out.c (force_type_die): Use modified_type_die instead of
16062         gen_type_die.
16064 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
16066         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
16067         malloc result type.
16069 2008-01-23 Anatoly Sokolov <aesok@post.ru>
16071         * config/avr/avr.c (avr_current_arch): New variable.
16072         (avr_arch_types): Add 'avr31' and 'avr51' entries.
16073         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
16074         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
16075         (avr_override_options): Init 'avr_current_arch'.
16076         (base_arch_s): Move from here...
16077         * config/avr/avr.h (base_arch_s): ... here. Add new members
16078         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
16079         'mega' to 'have_jmp_call'.
16080         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
16081         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
16082         macros.
16083         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
16084         architectures.
16085         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16086         MULTILIB_MATCHES): (Ditto.).
16088 2008-01-23  Richard Guenther  <rguenther@suse.de>
16090         PR middle-end/31529
16091         * cgraphunit.c (cgraph_reset_node): Always mark the node
16092         not reachable if it is not queued already.
16094 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
16096         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
16097         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
16098         (cputype_selected): New static variable.
16099         (bfin_handle_option): Set it if -mcpu is used.
16100         (override_option): Select default set of workarounds if no cpu type
16101         selected on the command line.
16102         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
16104         From  Michael Frysinger  <michael.frysinger@analog.com>
16105         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
16106         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
16108         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
16109         for bf547, bf523, bf524, and bf526.
16110         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
16111         bf526.
16112         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
16113         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
16114         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
16115         __ADSPBF547__ and __ADSPBF54x__ for bf547.
16116         * doc/invoke.texi (Blackfin Options): Document that
16117         -mcpu now accept bf547, bf523, bf524, and bf526.
16119 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
16121         PR rtl-optimization/34628
16122         * combine.c (try_combine): Stop and undo after the first combination
16123         if an autoincrement side-effect on the first insn has effectively
16124         been lost.
16126 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
16128         PR target/34529
16129         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
16130         Offset addresses are not valid for Altivec or paired float modes.
16132 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
16134         PR c++/34607
16135         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
16136         if DECL_INITIAL (decl) is error_mark_node.
16138         PR c++/34914
16139         * c-common.c (handle_vector_size_attribute): Only allow
16140         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
16141         the same way as pointer, array etc. types.
16142         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
16144         PR c++/34917
16145         * tree.c (build_type_attribute_qual_variant): Call
16146         build_qualified_type if attributes are equal, but quals are not.
16148 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16150         PR 32102
16151         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
16152         * flags.h (warn_strict_aliasing): Remove.
16153         (warn_strict_overflow): Remove.
16154         * opts.c (warn_strict_aliasing): Remove.
16155         (warn_strict_overflow): Remove.
16156         * c-opts.c (c_common_handle_option): -Wall only sets
16157         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
16158         (c_common_post_options): Give default values to -Wstrict-aliasing
16159         and -Wstrict-overflow if they are uninitialized.
16160         * common.opt (Wstrict-aliasing): Specify Var and Init.
16161         (Wstrict-overflow): Likewise.
16163 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
16165         PR rtl-optimization/26854
16166         PR rtl-optimization/34400
16167         PR rtl-optimization/34884
16168         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
16169         DF_RD->gen.
16170         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
16171         (df_rd_bb_info.expanded_lr_out): Deleted
16172         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
16173         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
16174         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16175         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16176         Removed code to allocate, initialize or free expanded_lr_out.
16177         (df_rd_bb_local_compute_process_def): Restructured to make more
16178         understandable.
16179         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
16180         sets if the sets are being trimmed.
16182 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
16184         PR bootstrap/32287
16185         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
16186         (as_vers): Likewise.
16187         * configure: Regenerated.
16189 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16191         PR middle-end/33092
16192         * tree-pass.h (pass_build_alias): New pass.
16193         * tree-ssa-alias.c (gate_build_alias): New.
16194         (pass_build_alias): New.
16195         * passes.c (init_optimization_passes): Add pass_build_alias after
16196         pass_create_structure_vars.
16198 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
16200         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
16201         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
16202         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
16203         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
16204         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
16205         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
16206         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
16207         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
16208         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
16209         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
16210         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
16211         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
16212         * config/s390/s390.md (FP_ALL): New mode iterator.
16213         (_d): New mode attribute.
16214         ("*signbit<mode>2>"): Changed mode of first operand.
16215         ("isinf<mode>2"): Changed mode of first operand.
16216         ("*TDC_insn"): Adaptation for DFP modes.
16218 2008-01-22  Ben Elliston  <bje@au.ibm.com>
16220         * tree.c (check_qualified_type): Improve function description.
16222 2008-01-21  Jason Merrill  <jason@redhat.com>
16224         PR c++/34196
16225         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
16226         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
16227         if it is set.
16229 2008-01-21  DJ Delorie  <dj@redhat.com>
16231         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
16232         return zero.
16234 2008-01-21  Richard Guenther  <rguenther@suse.de>
16236         PR middle-end/34856
16237         * tree-cfg.c (verify_expr): Allow all invariant expressions
16238         instead of just constant class ones as reference argument.
16239         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
16240         like any other constant.
16241         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16243 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
16245         * regmove.c (fixup_match_1): Update call crossed frequencies.
16247 2008-01-21  Richard Guenther  <rguenther@suse.de>
16249         PR c/34885
16250         * tree-inline.c (setup_one_parameter): Deal with mismatched
16251         types using a VIEW_CONVERT_EXPR.
16253 2008-01-21  Alon Dayan  <alond@il.ibm.com>
16254             Olga Golovanevsky  <olga@il.ibm.com>
16256         PR tree-optimization/34701
16257         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
16258         when the structure size is not a power of 2.
16260 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
16262         * doc/install.texi: Add doc for --enable-checking=df.
16264 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
16266         PR rtl-optimization/34808
16267         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
16269 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16271         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
16272         input.
16274 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
16276         PR rtl-optimization/26854
16277         PR rtl-optimization/34400
16278         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
16279         DF_RD->gen.
16280         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
16281         (df_rd_bb_info.expanded_lr_out): New.
16282         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
16283         * loop_iv.c (iv_analysis_loop_init): Ditto.
16284         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
16285         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
16286         Added code to allocate, initialize or free expanded_lr_out.
16287         (df_rd_bb_local_compute_process_def): Restructured to make
16288         more understandable.
16289         (df_rd_confluence_n): Add code to do nothing with fake edges and
16290         code to no apply invalidate_by_call sets if the sets are being trimmed.
16291         (df_lr_local_finalize): Renamed to df_lr_finalize.
16292         (df_live_local_finalize): Renamed to df_live_finalize.
16294 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
16296         PR target/34831
16297         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
16298         deciding whether to use reciprocal instructions.
16300 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
16302         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
16303         dwarf2out_note_section_used if cold_text_section is NULL.
16305 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
16307         PR gcov-profile/34610
16308         * tree-cfg.c (make_edges): Mark both outgoing edges from
16309         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
16310         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
16311         from OMP_FOR and OMP_CONTINUE outgoing edges.
16313         * tree-profile.c (tree_profiling): Return early if
16314         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
16315         at the end.
16316         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
16317         from cfun to child_cfun.
16318         * function.h (struct function): Add after_tree_profile bit.
16320 2008-01-19 Anatoly Sokolov <aesok@post.ru>
16322         * config/avr/avr.S (_exit): Disable interrupt.
16324 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
16325             Steven Bosscher  <stevenb.gcc@gmail.com>
16327         PR rtl-optimization/26854
16328         PR rtl-optimization/34400
16329         * df-problems.c (df_live_scratch): New scratch bitmap.
16330         (df_live_alloc): Allocate df_live_scratch when doing df_live.
16331         (df_live_reset): Clear the proper bitmaps.
16332         (df_live_bb_local_compute): Only process the artificial defs once
16333         since the order is not important.
16334         (df_live_init): Init the df_live sets only with the variables
16335         found live by df_lr.
16336         (df_live_transfer_function): Use the df_lr sets to prune the
16337         df_live sets as they are being computed.
16338         (df_live_free): Free df_live_scratch.
16340 2008-01-18  Ian Lance Taylor  <iant@google.com>
16342         * common.opt: Add fmerge-debug-strings.
16343         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
16344         flag_merge_debug_strings rather than flag_merge_constants.
16345         * doc/invoke.texi (Option Summary): Mention
16346         -fmerge-debug-strings.
16347         (Debugging Options): Document -fmerge-debug-strings.
16349 2008-01-18  Ian Lance Taylor  <iant@google.com>
16351         PR c++/33407
16352         * tree.h (DECL_IS_OPERATOR_NEW): Define.
16353         (struct tree_function_decl): Add new field operator_new_flag.
16354         * tree-inline.c (expand_call_inline): When inlining a call to
16355         operator new, force the return value to go into a variable, and
16356         set DECL_NO_TBAA_P on that variable.
16357         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
16359 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
16361         PR debug/34484
16362         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
16363         DWARF2_DEBUGGING_INFO.
16364         (dwarf2out_note_section_used): Ditto.  Add prototype.
16365         (have_multiple_function_sections, text_section_used,
16366         cold_text_section_used, *cold_text_sections): Move declarations
16367         before their uses.
16369 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
16371         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
16372         field and add signal_ra.
16373         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
16374         assignments to frame state pc.  Move end of stack check after
16375         MD_FALLBACK_FRAME_STATE_FOR.
16376         (uw_update_context_1): Use frame state signal_regs if set, instead
16377         of checking signal_frame flag.
16378         (uw_update_context): Use frame state signal_ra if set.
16379         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
16380         * config/xtensa/linux-unwind.h: New file.
16382 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
16384         * modulo-sched.c (get_sched_window): Fix comment typo.
16386 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
16388         PR tree-optimization/34648
16389         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
16391 2008-01-17  Anatoly Sokolov <aesok@post.ru>
16393         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
16394         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
16396 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
16398         PR rtl-optimization/34400
16399         * df-core.c (df_worklist_dataflow_overeager,
16400         df_worklist_dataflow_doublequeue): New functions.
16401         (df_worklist_dataflow): Two different worklist solvers.
16402         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
16403         New param.
16405 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16407         PR testsuite/34821
16408         * doc/invoke.texi: Document the dependence on pthread for fopenmp
16409         and ftree-parallelize-loops.
16411 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
16413         PR rtl-optimization/34826
16414         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
16416 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
16418         * global.c (find_reg): Mark the eh regs as used if necessary.
16419         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
16420         * ra.h (struct allocno): no_eh_reg field added.  Changed
16421         no_stack_reg type to bitfield.
16423 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
16425         * tree.c (substitute_in_expr): Add missing 'break'.
16427 2008-01-17  Richard Guenther  <rguenther@suse.de>
16429         PR tree-optimization/34825
16430         * tree-ssa-math-opts.c (is_division_by): Do not recognize
16431         x / x as division to handle.
16433 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16435         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
16436         "-pthread" is specified.
16437         * pa-hpux11.h (LIB_SPEC): Likewise.
16439 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
16440             Peter Bergner  <bergner@vnet.ibm.com>
16442         PR rtl-optimization/33796
16443         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
16445 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16447         PR libgfortran/34699
16448         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
16449         static links.
16450         * pa-hpux10.h (LINK_SPEC): Likewise.
16451         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
16453 2008-01-16  Richard Guenther  <rguenther@suse.de>
16455         PR middle-end/32628
16456         * fold-const.c (fold_convert_const_int_from_int): Do not
16457         set overflow if that occured only because of a sign extension
16458         change when converting from/to a sizetype with the same
16459         precision and signedness.
16461 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16463         PR debug/34249
16464         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
16465         location address to the correct place.  Update copyright year.
16467 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16469         * lambda-code.c (lambda_transform_legal_p): Handle the case of
16470         no dependences in the dependence_relations vector.
16472 2008-01-16  Jan Hubicka  <jh@suse.cz>
16474         PR rtl-optimization/31396
16475         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
16476         * cfg.c (dump_reg_info): Print it.
16477         * regs.h (struct reg_info_t): add freq_calls_crossed.
16478         (REG_FREQ_CALLS_CROSSED): New macro.
16479         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
16480         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
16481         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
16482         regmove_optimize): Update call crossed frequencies.
16483         * local-alloc.c (struct qty): Add freq_calls_crossed.
16484         (alloc_qty): Copute freq_calls_crossed.
16485         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
16486         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
16487         * ra.h (struct allocno): Add freq_calls_crossed.
16489 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16491         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
16492         libgomp when compiling with ftree-parallelize-loops.
16493         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
16495 2008-01-16  Richard Guenther  <rguenther@suse.de>
16497         PR tree-optimization/34769
16498         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
16499         * tree.c (int_cst_value): Instead make this function more
16500         permissive in what it accepts as valid input.  Document this
16501         function always sign-extends the value.
16503 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
16504             Richard Guenther  <rguenther@suse.de>
16506         PR c/34668
16507         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
16508         (gimple_fold_indirect_ref_rhs): ... this.
16509         (gimple_fold_indirect_ref): New function with foldings
16510         that preserve lvalueness.
16511         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
16512         * tree-flow.h (gimple_fold_indirect_ref): Declare.
16513         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
16514         to fold an INDIRECT_REF, fall back to the old use of
16515         fold_indirect_ref_1.
16517 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
16519         * tree-data-ref.c (subscript_dependence_tester_1): Call
16520         free_conflict_function.
16521         (compute_self_dependence): Same.
16523 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
16525         PR debug/34249
16526         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
16527         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
16528         function global.
16529         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
16530         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
16531         for DWARF2_UNWIND_INFO targets.
16533 2008-01-16  Richard Guenther  <rguenther@suse.de>
16535         PR c/34768
16536         * c-typeck.c (common_pointer_type): Do not merge inconsistent
16537         type qualifiers for function types.
16539 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
16541         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
16542         loop_iterator li from previous commit.
16544 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
16546         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
16548 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16550         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
16551         (parallelize_loops): Don't parallelize irreducible components.
16553 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
16555         PR c++/24924
16556         * c-opts (c_common_post_options): Do not enable CPP
16557         flag_pedantic_errors by default.
16559 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
16561         PR rtl-optimization/31944
16562         * cse.c (remove_pseudo_from_table): New function.
16563         (merge_equiv_classes): Use above function to remove pseudo-registers.
16564         (invalidate): Likewise.
16566 2008-01-13  Richard Guenther  <rguenther@suse.de>
16568         PR middle-end/34601
16569         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
16570         instead of TYPE_MODE to deal with calls from expand_one_error_var.
16572 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
16574         * gcse.c (cprop_jump): Call validate_unshare_change instead of
16575         validate_change to unshare the source of the PC set.
16577 2008-01-12  Jan Hubicka  <jh@suse.cz>
16579         PR middle-end/32135
16580         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
16581         references above array bounds.  This might trigger bounds checks for
16582         pointers to arrays.
16584 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
16586         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
16587         new_replaceable_dependencies.
16589 2008-01-12  Doug Kwan  <dougkwan@google.com>
16591         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
16592         instead of OPT_Wreturn_type in warning due to ignored return type
16593         qualifiers.
16594         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
16595         options included in -Wextra.
16596         * c.opt: New option -Wignored_qualifiers.
16597         * doc/invoke.texi (Warning Options, -Wextra): Add new option
16598         -Wignore_qualifiers.
16599         (-Wignored-qualifiers): Document.
16600         (-Wreturn-type): Remove description of functionality now handled
16601         by -Wignored-qualifiers.
16603 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
16605         PR ada/33788
16606         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
16607         NOP_EXPR if it is between integral types with the same precision.
16609 2008-01-12  Jan Hubicka  <jh@suse.cz>
16611         PR other/28023
16612         * invoke.texi (max-inline-recursive-depth): Fix default value.
16614 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
16616         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
16617         correct type.
16619 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
16621         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
16623 2008-01-11  James E. Wilson  <wilson@specifix.com>
16625         PR target/26015
16626         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
16628 2008-01-11  Anatoly Sokolov <aesok@post.ru>
16630         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
16631         save/restore frame pointer register and don't use 'call-prologues'
16632         optimization in function with "OS_task" attribute.
16634 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
16636         PR middle-end/31309
16637         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
16638         when copying to memory.
16640 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
16642         PR rtl-optimization/30905
16643         * cfgcleanup.c: Include dce.h
16644         (crossjumps_occured): New global variable.
16645         (try_crossjump_bb): Exit loop after finding a fallthru edge.
16646         If something changed, set crossjumps_occured to true.
16647         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
16648         Don't add/remove fake edges to exit here...
16649         (cleanup_cfg): ...but do it here, when crossjumping.
16650         Run a fast DCE when successful crossjumps occured in the latest
16651         iteration of try_optimize_cfg.
16653 2008-01-11  Richard Guenther  <rguenther@suse.de>
16655         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
16656         (struct vn_unary_op_s): Likewise.
16657         (vn_reference_insert): Free old reference on hash collision.
16659 2008-01-10  Raksit Ashok  <raksit@google.com>
16661         PR rtl-optimization/27971
16662         * combine.c (find_split_point): Split PLUS expressions which are
16663         inside a MEM rtx, and whose first operand is complex.
16665 2008-01-10  DJ Delorie  <dj@redhat.com>
16667         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
16668         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
16669         (m32c_hard_regno_ok): Call the underlying function.
16671 2008-01-10  Richard Guenther  <rguenther@suse.de>
16673         PR middle-end/34683
16674         * tree-cfg.c (tree_merge_blocks): Do not go through the
16675         full-blown folding and stmt updating path if we just deal
16676         with virtual operands.
16677         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
16678         test for abnormal SSA_NAMEs.
16680 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
16682         PR middle-end/34641
16683         * reload.c (push_reload): Add assertions.  All constants from
16684         reg_equiv_constant should have been used for replacing the respective
16685         pseudo earlier.
16686         (find_reloads_address): Invoke find_reloads_address_part for
16687         constant taken from the reg_equiv_constant array.
16689 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
16691         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
16692         field (valnum) the first in the struct.  Replace bools with
16693         unit bit fields.
16695 2008-01-10  Richard Guenther  <rguenther@suse.de>
16697         PR tree-optimization/34651
16698         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
16699         types and ordering for masking and converting.
16701 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
16703         PR tree-optimization/34017
16704         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
16705         also for PHI_NODE expressions.
16707 2008-01-09  Jan Hubicka  <jh@suse.cz>
16709         PR tree-optimization/34708
16710         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
16711         based on number of case labels.
16712         (init_inline_once): Remove switch_cost.
16713         * tree-inline.h (eni_weights_d): Remove switch_cost.
16715 2008-01-09  Richard Guenther  <rguenther@suse.de>
16716         Andrew Pinski  <andrew_pinski@playstation.sony.com>
16718         PR middle-end/30132
16719         * gimplify.c (gimplify_cond_expr): Do not create an addressable
16720         temporary if an rvalue is ok or an lvalue is not required.
16722 2008-01-09  Richard Guenther  <rguenther@suse.de>
16724         PR middle-end/34458
16725         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
16726         adjust return type.
16728 2008-01-09  Richard Guenther  <rguenther@suse.de>
16730         PR middle-end/34679
16731         * tree.c (host_integerp): Check for sizetype only if the
16732         type is an integer type.
16734 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
16736         PR debug/26364
16737         * opts.c (decode_options): Disable inlining of functions called
16738         once if not in unit-at-a-time mode.
16740 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
16742         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
16744 2008-01-08  Richard Guenther  <rguenther@suse.de>
16746         PR middle-end/31863
16747         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
16748         out early if the result will be unused.
16750 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16752         PR target/34709
16753         Revert:
16755         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16756         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16757         for TARGET_RECIP.
16759 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
16761         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
16762         for vectorization tuned.
16764 2008-01-08  Richard Guenther  <rguenther@suse.de>
16766         PR tree-optimization/34683
16767         * tree-ssa-operands.c (operand_build_cmp): Export.
16768         * tree-ssa-operands.h (operand_build_cmp): Declare.
16769         * tree-vn.c (vuses_compare): Remove.
16770         (sort_vuses): Use operand_build_cmp.
16771         (sort_vuses_heap): Likewise.
16772         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
16773         to re-use old VEC if available.  Do not sort already sorted VUSEs.
16774         (vdefs_to_vec): Do not sort already sorted VDEFs.
16776 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
16778         PR middle-end/34694
16779         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
16781 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
16783         PR target/34702
16784         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
16785         limitations of reciprocal sequences on x86 targets.
16787 2008-01-08  Richard Guenther  <rguenther@suse.de>
16789         PR tree-optimization/34683
16790         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
16792 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
16794         PR target/34622
16795         * config/darwin.c (darwin_mergeable_string_section): Don't use
16796         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
16798 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
16800         PR target/34682
16801         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
16802         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
16803         predicates of op0 and op1 to register_operand.
16804         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
16805         expander using X87MODEF mode iterator.  Change predicates of
16806         op0 and op1 to register_operand.
16807         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
16808         corresponding patterns and macroize using MODEF macro.  Change
16809         predicates of op0 and op1 to register_operand and remove
16810         "m" constraint. Disparage "r" alternative with "!".
16811         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
16812         macroize using X87MODEF macro.  Change predicates of op0 and op1
16813         to register_operand and remove "m" constraint.  Disparage "r"
16814         alternative with "!".
16815         (absneg splitter with memory operands): Remove.
16816         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
16817         patterns and macroize using X87MODEF mode iterator.
16818         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
16819         Change predicate of op1 to register_operand.
16820         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
16821         for memory operands.
16823 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
16825         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
16827 2008-01-07  Richard Guenther  <rguenther@suse.de>
16829         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
16830         fields.
16832 2008-01-07  Richard Guenther  <rguenther@suse.de>
16834         PR tree-optimization/34683
16835         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
16836         VOPs of the needed size to save memory.  Use VEC_quick_push
16837         to save compile-time.
16838         (vdefs_to_vec): Likewise.
16840 2008-01-07  Sa Liu  <saliu@de.ibm.com>
16842         * config/spu/spu.md (divdf3): Genetate inline code for double
16843         division.  The implementation doesn't handle INF or NAN, therefore it
16844         only applies when -ffinite-math-only is given.
16846 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
16848         PR libstdc++/34680
16849         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
16850         * doc/cpp.texi ([Common Predefined Macros]): Document.
16852 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
16854         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
16855         order to use commutative addition instead of subtraction.
16857 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
16858             Mircea Namolaru  <namolaru@il.ibm.com>
16859             Vladimir Yanovsky  <yanov@il.ibm.com>
16860             Revital Eres  <eres@il.ibm.com>
16862         PR tree-optimization/34263
16863         * tree-outof-ssa.c (process_single_block_loop_latch,
16864         contains_tree_r): New functions.
16865         (analyze_edges_for_bb): Call process_single_block_loop_latch
16866         function to empty single-basic-block latch block if possible.
16868 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16870         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
16871         for TARGET_RECIP.
16872         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
16874 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16876         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
16878 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
16880         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
16882 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
16884         PR tree-optimization/34618
16885         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
16886         flag from T.
16888 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
16890         PR target/34673
16891         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
16892         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
16893         Update copyright year.
16895         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
16896         Update copyright year.
16897         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
16898         using NR fixup.
16900 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
16902         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
16903         edge does not point to current bb before changing need_assert.
16905 2008-01-04  Richard Guenther  <rguenther@suse.de>
16907         PR middle-end/34029
16908         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
16909         for verifying purposes if they are is_gimple_min_invariant.
16911 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
16913         PR tree-optimization/34448
16914         PR tree-optimization/34465
16915         * gimplify.c (gimplify_init_constructor): Add new parameter
16916         notify_temp_creation.  Use it.
16917         (gimplify_modify_expr_rhs): Take volatiles into account when
16918         optimizing constructors.
16919         Do not optimize constructors if gimplify_init_constructor will dump to
16920         memory.
16921         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
16922         * gcc.c-torture/compile/pr34448.c: New.
16924 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
16926         PR gcov-profile/34609
16927         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
16928         return_slot if result is TREE_ADDRESSABLE.
16930 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
16932         * config/mips/mips.md (sqrt_condition): Tweak comment.
16933         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
16935 2008-01-03  Tom Tromey  <tromey@redhat.com>
16937         PR c/34457
16938         * c-common.c (c_type_hash): Handle VLAs.
16940 2008-01-03  Jan Hubicka  <jh@suse.cz>
16942         PR tree-optimization/31081
16943         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
16944         0 when inlining and not inlining to first basic block.
16945         (remap_decl): When var is initialized to 0, don't set default_def.
16946         (expand_call_inline): Set entry_bb.
16947         * tree-inline.h (copy_body_data): Add entry_bb.
16949 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16951         PR c++/34619
16952         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
16953         before returning.
16955         PR tree-optimization/29484
16956         * tree-inline.c (inline_forbidden_p_2): New function.
16957         (inline_forbidden_p): Disallow inlining if some static var
16958         has an address of a local LABEL_DECL in its initializer.
16959         * doc/extend.texi (Labels as Values): Document &&foo behaviour
16960         vs. inlining.
16962 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
16964         PR tree-optimization/34635
16965         * tree-data-ref.c (add_other_self_distances): Make sure that the
16966         evolution step is constant.
16968 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
16970         PR middle-end/34608
16971         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
16973 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
16975         * tree-sra.c (scalarize_init): Insert the generate_element_init
16976         statements after the generate_element_zero statements.
16978 2008-01-02  Richard Guenther  <rguenther@suse.de>
16980         PR middle-end/34093
16981         PR middle-end/31976
16982         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
16983         for very large number of operands instead of ICEing.
16985 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
16987         PR target/34013
16988         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
16989         while stack probing.
16991 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
16993         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
16994         in C++0x mode.
16996 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
16998         PR libmudflap/26442
16999         * tree-mudflap.c (mx_register_decls): Guard warning by
17000         !DECL_ARTIFICIAL check.
17002 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
17004         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
17005         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
17006         sse5_perm<mode>): Fix constraints.