Revert 137452.
[official-gcc.git] / gcc / ChangeLog
blobdf56c9ecd62f4ef8e61678ca35faeafc8c8f59be
1 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
3         * tree-switch-conversion.c (build_one_array, gen_def_assigns): Use
4         build_gimple_modify_stmt.
5         (build_arrays, gen_inbound_check): Likewise.  Force RHS to be
6         gimple operand.  Use fold_build* instead of build*.
8 2008-07-04  Richard Guenther  <rguenther@suse.de>
10         * tree-ssa-structalias.c (lookup_vi_for_tree): Declare.
11         (do_sd_constraint): Handle a dereference of ESCAPED and CALLUSED
12         properly to compute the reachability set if we do field-sensitive PTA.
13         * invoke.texi (max-fields-for-field-sensitive): Document default.
14         * opts.c (decode_options): Set max-fields-for-field-sensitive to
15         100 for optimize >= 2.
17 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19         * ggc-zone.c (lookup_page_table_if_allocated,
20         set_page_table_entry, zone_find_object_size, alloc_small_page,
21         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
22         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
23         -Wc++-compat and/or -Wcast-qual warnings.
25 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
27         PR target/36634
28         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
29         pic_offset_table_rtx to be marked as used here.
30         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
31         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
32         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
33         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
34         !TARGET_SECURE_PLT.
36 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
38         * alloc-pool.c (hash_descriptor, eq_descriptor,
39         alloc_pool_descriptor): Fix -Wc++-compat warnings.
40         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
41         Likewise.
42         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
43         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
44         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
45         Likewise.
46         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
47         Likewise.
49 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
51         * tree-flow.h (loop_only_exit_p): Declare.
52         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
53         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
54         the number of iterations if it is constant.  Otherwise, if this is the
55         only possible exit of the loop, use the conservative estimate on the
56         number of iterations of the entire loop if available.
58 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
60         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
61         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
62         Add synchronization functions.
63         * config/sync.c: New file.
64         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
65         (LIBGCC_SYNC_CFLAGS): Likewise.
67 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
69         PR target/36710
70         * config/i386/i386.md (mode): Add TF to "mode" attribute.
71         (*pushtf_sse): New insn pattern.
72         (pushtf splitters): New splitters.
74 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
76         PR middle-end/35736
77         * predict.c (build_predict_expr): Use void_type_node for the tree
78         type, instead of NULL_TREE.
80 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
82         * config/i386/i386.c (contains_aligned_value_p): Return true
83         for TCmode.
84         (ix86_data_alignment): Align TCmode to 128bits.
85         (ix86_local_alignment): Likewise.
87 2008-07-03  Andrew Haley  <aph@redhat.com>
89         PR bootstrap/33304
90         * vec.h (VEC_TA): New.
91         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
92         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
93         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
94         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
95         (C_COMMON_FIXED_TYPES): Remove first arg.
96         (C_COMMON_FIXED_MODE_TYPES): Likewise.
97         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
98         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
99         not to use empty macro arguments.
101 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
103         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
104         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
105         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
106         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
107         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
108         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
109         config/ia64/crtn.asm, config/m68hc11/larith.asm,
110         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
111         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
112         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
113         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
114         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
115         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
116         config/rs6000/e500crtres64gpr.asm,
117         config/rs6000/e500crtres64gprctr.asm,
118         config/rs6000/e500crtrest32gpr.asm,
119         config/rs6000/e500crtrest64gpr.asm,
120         config/rs6000/e500crtresx32gpr.asm,
121         config/rs6000/e500crtresx64gpr.asm,
122         config/rs6000/e500crtsav32gpr.asm,
123         config/rs6000/e500crtsav64gpr.asm,
124         config/rs6000/e500crtsav64gprctr.asm,
125         config/rs6000/e500crtsavg32gpr.asm,
126         config/rs6000/e500crtsavg64gpr.asm,
127         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
128         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
129         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
130         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
131         config/sparc/sol2-cn.asm: Remove .file directives.
133 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
135         * resource.c (mark_referenced_resources): Look inside
136         UNSPEC_VOLATILEs and ASM_INPUTs.
138 2008-07-02  Ian Lance Taylor  <iant@google.com>
140         * rtlanal.c (add_reg_note): New function.
141         * rtl.h (add_reg_note): Declare.
142         * auto-inc-dec.c (attempt_change): Use add_reg_note.
143         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
144         * builtins.c (expand_builtin_longjmp): Likewise.
145         (expand_builtin_nonlocal_goto): Likewise.
146         * calls.c (emit_call_1, expand_call): Likewise.
147         * cfgexpand.c (add_reg_br_prob_note): Likewise.
148         * cfglayout.c (fixup_reorder_chain): Likewise.
149         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
150         (commit_one_edge_insertion): Likewise.
151         * combine.c (move_deaths, distribute_notes): Likewise.
152         * df-problems.c (df_set_note): Likewise.
153         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
154         (set_unique_reg_note): Likewise.
155         (emit_copy_of_insn_after): Likewise.
156         * expr.c (expand_expr_real): Likewise.
157         * gcse.c (add_label_notes): Likewise.
158         * haifa-sched.c (create_check_block_twin): Likewise.
159         * jump.c (mark_jump_label_1): Likewise.
160         * loop-doloop.c (add_test, doloop_modify): Likewise.
161         * loop-unswitch.c (compare_and_jump_seq): Likewise.
162         * lower-subreg.c (move_eh_region_note): Likewise.
163         * optabs.c (emit_libcall_block): Likewise.
164         * predict.c (predict_insn): Likewise.
165         (combine_predictions_for_insn): Likewise.
166         * recog.c (peephole2_optimize): Likewise.
167         * regmove.c (try_auto_increment): Likewise.
168         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
169         * reload.c (find_reloads): Likewise.
170         * reload1.c (fixup_eh_region_note): Likewise.
171         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
172         * reorg.c (delete_prior_computation): Likewise.
173         (delete_computation, dbr_schedule): Likewise.
174         * config/pa/pa.c (legitimize_pic_address): Likewise.
175         * config/sh/sh.c (sh_reorg): Likewise.
177 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
179         PR target/36669
180         * config/libgcc-glibc.ver: Add %exclude.
181         * config/m32r/libgcc-glibc.ver: Likwise.
182         * config/s390/libgcc-glibc.ver: Likwise.
183         * config/sh/libgcc-glibc.ver: Likwise.
184         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
186         * config/i386/libgcc-glibc.ver: New.
188         * config/i386/libgcc-x86_64-glibc.ver: Removed.
190 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
192         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
193         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
194         i[34567]86-*-linux*, x86_64-*-linux*.  Add
195         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
196         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
197         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
198         i[34567]86-*-linux*, x86_64-*-linux*.
200         * libgcc-std.ver: Add empty GCC_4.4.0.
202         * mkmap-symver.awk: Support multiple versions per symbol.
204         * config/i386/i386.c (ix86_init_builtins): Always define
205         __builtin_fabsq and __builtin_copysignq with fallbacks.
206         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
207         and __builtin_copysignq if SSE2 isn't available.
209         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
210         (LIBGCC2_TF_CEXT): Likwise.
211         (TF_SIZE): Likwise.
213         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
215         * config/i386/sfp-machine.h: Moved to libgcc.
217         * config/i386/sfp-machine.h: New.
218         * config/i386/t-linux: Likwise.
220         * config/i386/t-darwin: Remove softfp_wrap_start and
221         softfp_wrap_end.
222         * config/i386/t-darwin64: Likewise.
224         * config/i386/t-fprules-softfp64: Renamed to ...
225         * config/i386/t-fprules-softfp: This.
227         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
228         and softfp_wrap_end.
230 2008-07-02  Jason Merrill  <jason@redhat.com>
232         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
234         * tree.c (ctor_to_list): New fn.
235         * tree.h: Declare it.
236         (CONSTRUCTOR_ELT): New macro.
237         (CONSTRUCTOR_NELTS): New macro.
239 2008-07-02  Richard Guenther  <rguenther@suse.de>
241         * tree-ssa-structalias.c (struct variable_info): Reorder
242         to fill padding on 64bit hosts.  Make collapsed_to an int.
243         (get_varinfo_fc): Deal with that.
244         (new_var_info): Likewise.
245         (collapse_rest_of_var): Likewise.
247 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
249         * doc/install.texi (--enable-java-home): Document.
250         (--enable-aot-compile-rpm): Likewise.
251         (--with-arch-directory): Likewise.
252         (--with-os-directory): Likewise.
253         (--with-origin-name): Likewise.
254         (--with-arch-suffix): Likewise.
255         (--with-jvm-root-dir): Likewise.
256         (--with-jvm-jar-dir): Likewise.
257         (--with-python-dir): Likewise.
259 2008-07-02  Richard Guenther  <rguenther@suse.de>
261         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
262         from decls explicitly.  Merge operand checking from tuples.
264 2008-07-02  Martin Jambor  <mjambor@suse.cz>
266         * tree-switch-conversion.c: Included timevar.h which I forgot before.
267         
268 2008-07-02  Martin Jambor  <mjambor@suse.cz>
270         * tree-switch-conversion.c: Included timevar.h
271         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
273         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
275 2008-07-02  Martin Jambor  <mjambor@suse.cz>
277         * tree-switch-conversion.c: Corrected various comments and
278         whitespace issues
279         (build_constructors): Fixed minor formatting mistakes.
281         * invoke.texi (Optimize Options): Corrected the
282         switch-conversion-max-branch-ratio parameter.
284 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
286         * final.c (asm_insn_count): Return zero for an empty asm body.
288 2008-07-02  Richard Guenther  <rguenther@suse.de>
290         * bitmap.h (bitmap_set_bit): Return bool.
291         (bitmap_clear_bit): Likewise.
292         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
293         write to the bitmap if it would.
294         (bitmap_clear_bit): Likewise.
295         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
296         bitmap_set_bit return value.
297         (add_pred_graph_edge): Likewise.
298         (add_graph_edge): Likewise.
299         (do_sd_constraint): Likewise.
300         (do_ds_constraint): Likewise.
302 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
304         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
305         Fix -Wc++-compat and/or -Wcast-qual warnings.
306         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
307         gen_regparm_prefix): Likewise.
308         * vmsdbgout.c (write_modbeg, lookup_filename,
309         vmsdbgout_source_line, vmsdbgout_init): Likewise.
311 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
313         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
314         defaults.h definition apply.
316 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
318         * function.c (assign_parm_remove_parallels): New.
319         (assign_parm_setup_block_p): Do not return true for non-BLKmode
320         PARALLELs.
321         (assign_parm_setup_block): Do not handle them.
322         (assign_parm_setup_reg, assign_parm_setup_stack): Call
323         assign_parm_remove_parallels.
325 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
327         * c-typeck.c (convert_for_assignment): Use
328         vector_targets_convertible_p.
329         * c-common.c (vector_targets_convertible_p): New.
330         * c-common.h (vector_targets_convertible_p): New prototype.
331         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
332         opaque_p_V2SI_type_node.
334 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
336         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
337         RFmode constants.
339 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
341         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
342         TFmode constants via two element DImode vector for hosts with
343         HOST_BITS_PER_WIDE_INT < 64.
344         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
345         also for HOST_BITS_PER_WIDE_INT < 64.
347 2008-07-01  Richard Guenther  <rguenther@suse.de>
349         PR tree-optimization/36666
350         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
351         (get_constraint_exp_from_ssa_var): Split into ...
352         (get_constraint_exp_for_temp): ... this ...
353         (get_constraint_for_ssa_var): ... and that.
354         Return constraint expressions for all touched sub-fields
355         if the results address is not taken.
356         (process_constraint): Remove assertion that aggregate
357         assignments do not happen at this place.
358         (get_constraint_for_component_ref): Add address_p argument.
359         Return constraint expressions for all touched sub-fields
360         if the results address is not taken.
361         (do_deref): Use get_constraint_exp_for_temp.
362         (get_constraint_for_1): Rename from ...
363         (get_constraint_for): ... this.  Add the old function as wrapper.
364         (do_structure_copy): Use get_constraint_for_1.
366 2008-07-01  Martin Jambor  <mjambor@suse.cz>
368         * Makefile.in (tree-switch-conversion.o): Add.
369         (OBJS-common): Add tree-swtch-conversion.o.
370         * passes.c (init_optimization_passes): Add pass_convert_switch.
371         * tree-pass.h: (pass_convert_switch): Add.
372         * tree-switch-conversion.c: New file.
373         * gcc.dg/tree-ssa/cswtch.c: New testcase.
374         * common.opt (ftree-cswtch): New option.
375         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
376         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
377         * opts.c (decode_options): Set flag_tree_switch_conversion when
378         optimization level is >= 2.
379         * doc/invoke.texi (Optimize Options): Added description of
380         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
382 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
384         * config/darwin-driver.c (darwin_default_min_version): Fix
385         -Wc++-compat warnings.
387 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
389         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
390         of operand 0.
392 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
394         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
395         
396 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
398         PR rtl-optimization/34744
399         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
400         (df_scan_free_internal): Free data structures not
401         allocated in storage pools.
402         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
403         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
404         df_scan_free_mws_vec.
405         * dse.c (dse_step6): Free offset_map_p and offset_map_n
406         unconditionally.
408 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
410         * config/i386/i386.c (contains_aligned_value_p): Return true
411         for __float128.
412         (ix86_function_arg_boundary): Return its natural boundary
413         for __float128.
414         (return_in_memory_32): Don't check TDmode.
415         (ix86_split_to_parts): Support splitting into 4 parts and
416         support TFmode for 32bit target.
417         (ix86_split_long_move): Support splitting into 4 parts.
418         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
419         for SSE2.
420         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
421         (ix86_init_builtins): Here.
422         (ix86_scalar_mode_supported_p): Always return true for TFmode.
423         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
424         'q' and 'w', respectively. 
426         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
427         TARGET_64BIT.
428         (movtf_internal): Likewise.
429         (<code>tf2): Likewise.
430         (*absnegtf2_sse): Likewise.
431         (copysign<mode>3): Likewise.
432         (copysign<mode>3_const): Likewise.
433         (copysign<mode>3_var): Likewise.
434         (define_split UNSPEC_COPYSIGN): Likewise.
435         * config/i386/sse.md (*nandtf3): Likewise.
436         (<code>tf3): Likewise.
437         (*<code>tf3): Likewise.
439 2008-06-30  Joey Ye  <joey.ye@intel.com>
440             H.J. Lu  <hongjiu.lu@intel.com>
442         * global.c (compute_regsets): Set frame_pointer_needed here.
443         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
445 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
447         * doc/install.texi (specific): Expand Windows build notes.
449 2008-06-30  Ira Rosen  <irar@il.ibm.com>
451         PR tree-optimization/36648
452         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
453         number of prolog iterations by step. Fix the comment.
455 2008-06-30  Richard Guenther  <rguenther@suse.de>
457         PR middle-end/36671
458         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
459         handle calls from ECF_MALLOC functions.
460         (handle_pure_call): ECF_MALLOC functions do not return
461         call-used memory.
462         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
464 2008-06-29  Andreas Schwab  <schwab@suse.de>
466         * config/m68k/m68k.c (print_operand): Always print a float
467         constant in hex.
468         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
469         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
470         Remove macros.
472         * config/rs6000/x-linux64: Remove never used file.
474 2008-06-29  Richard Guenther  <rguenther@suse.de>
476         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
477         prototype.
478         (struct alias_info): Move ...
479         * tree-ssa-alias.c: ... here.
480         (update_alias_info): Declare.
481         (compute_may_aliases): Call it.
482         (update_alias_info): New function.
483         * tree-ssa-structalias.c (update_alias_info): Move ...
484         * tree-ssa-alias.c (update_alias_info_1): ... here.
485         * tree-ssa-structalias.c (process_constraint_1): Remove
486         unused from_call argument.  Rename to ...
487         (process_constraint): ... this.  Delete old wrapper.
488         (make_constraint_to): Adjust callers.
489         (handle_const_call): Likewise.
490         (handle_pure_call): Likewise.
491         (init_base_vars): Likewise.
492         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
493         (find_func_aliases): We don't need structure copies for
494         complex types.
495         (make_constraint_from_anything): Remove.
496         (create_variable_info_for): For globals make constraints
497         from escaped, not from anything.
498         (compute_points_to_sets): Do not call update_alias_info.
499         (ipa_pta_execute): Use make_constraint_from.
501 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
503         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
504         (bitmap.o-warn, dominance.o-warn): New.
505         * configure.ac (cxx_compat_warn): Delete.
506         (loose_warn): Add -Wcast-qual and -Wc++-compat.
507         * system.h: Remove #pragma diagnostic for -Wcast-qual and
508         -Wc++-compat.
509         * configure: Regenerate.
511         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
512         warnings.
514 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
516         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
517         * df-scan.c (df_notes_rescan): Likewise.
518         * ggc-page.c (set_page_table_entry): Likewise.
519         * intl.c (gcc_gettext_width): Likewise.
520         * varasm.c (get_unnamed_section, get_noswitch_section,
521         get_section): Likewise.
523 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
525         * regrename.c (build_def_use): Don't copy RTX.
527 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
529         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
530         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
531         punctuation.  Use @ref instead of @xref.
532         (Function Names): Remove stray @display/@end display.
533         (C++ Attributes): Use @ref instead of @xref.
534         (Deprecated Features): Fix punctuation around @xref.
535         (Backwards Compatibility): Likewise.
536         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
538 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
540         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
541         constants for E500 double.
543 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
545         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
546         element type of const_vector.
548 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
550         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
551         Remove FLAGS_REG clobber from expander pattern.
552         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
553         (anddi3, andsi3, andhi3, andqi3): Ditto.
554         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
555         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
556         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
557         (ashlsi3, ashlhi3, ashlqi3): Ditto.
558         (ashrsi3, ashrhi3, ashrqi3): Ditto.
559         (lshrsi3, lshrhi3, lshrqi3): Ditto.
560         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
561         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
563 2008-06-28  Richard Guenther  <rguenther@suse.de>
565         * tree-ssa-structalias.c (callused_id, var_callused,
566         callused_tree): Add.
567         (handle_pure_call): New function.
568         (find_func_aliases): Call it.
569         (find_what_p_points_to): Handle the call-used set.
570         (clobber_what_escaped): Likewise.
571         (compute_call_used_vars): New function.
572         (init_base_vars): Init the call-used variable.
573         (do_sd_constraint): Do not propagate the solution from CALLUSED
574         but use CALLUSED as a placeholder.
575         (solve_graph): Likewise.
576         * tree-flow-inline.h (gimple_call_used_vars): New function.
577         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
578         (compute_call_used_vars): Declare.
579         * tree-ssa-alias.c (set_initial_properties): Call
580         compute_call_used_vars.
581         (reset_alias_info): Clear call-used variables.
582         (add_call_clobber_ops): Assert we are not called for const/pure
583         functions.  Remove handling of them.
584         (add_call_read_ops): Handle pure functions by adding the
585         call-used set of variables as VUSEs.
586         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
587         (delete_tree_ssa): Free it.
588         * tree-dfa.c (remove_referenced_var): Clear the var from the
589         call-used bitmap.
591 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
593         * tree.c (build_varargs_function_type_list): New.
594         (build_function_type_list_1): New.
595         (build_function_type_list): Use build_function_type_list_1.
596         * tree.h (build_varargs_function_type_list): New.
598 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
600         PR target/34856
601         * config/spu/spu.c (spu_builtin_splats): Do not generate
602         invalid CONST_VECTOR expressions.
603         (spu_expand_vector_init): Likewise.
605 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
607         * optabs.c (libfunc_decls): New variable.
608         (libfunc_decl_hash, libfunc_decl_eq): New functions.
609         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
610         for the same function twice.
612 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
614         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
615         ix86_expand_binary_operator directly.
616         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
617         for operand 2.
618         (*ashrti3_1): Ditto.
619         (*lshrti3_1): Ditto.
620         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
621         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
622         using only one splitter.  Conditionaly execute splitter before or
623         after peephole2 pass.
624         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
625         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
626         Use only one alternative in asm template.
627         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
628         in asm template.
629         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
630         "J" operand constraint for operand 2.
631         (*ashldi3_cconly_rex64): Ditto.
632         (*ashrdi3_cmp_rex64): Ditto.
633         (*ashrdi3_cconly_rex64): Ditto.
634         (*lshrdi3_cmp_rex64): Ditto.
635         (*lshrdi3_cconly_rex64): Ditto.
636         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
637         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
638         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
639         gen_x86_shrd_1.
641 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
643         * gimplify.c (omp_is_private): Don't return true if decl is not
644         already private on #pragma omp for or #pragma omp parallel for.
646         PR debug/36617
647         * tree-cfg.c (struct move_stmt_d): Replace block field with
648         orig_block and new_block fields.
649         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
650         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
651         (move_block_to_fn): Replace vars_map and new_label_map arguments
652         with struct move_stmt_d pointer.
653         (replace_block_vars_by_duplicates): New function.
654         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
655         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
656         all subblocks of ORIG_BLOCK to the new function.  Call
657         replace_block_vars_by_duplicates.
658         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
659         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
660         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
661         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
662         (expand_omp): Temporarily set input_location to the location of
663         region's controlling stmt.
664         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
665         BIND_EXPR, push ctx->block_vars and gimplification vars into
666         the BIND_EXPR and its block's BLOCK_VARS instead of directly
667         into dest function.
668         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
669         there are any BLOCK_VARS.
670         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
671         OMP_PARALLEL or OMP_TASK stmt.
672         (lower_omp): Save and restore input_location around the lower_omp_1
673         call.
675 2008-06-27  Richard Guenther  <rguenther@suse.de>
677         PR tree-optimization/36400
678         PR tree-optimization/36373
679         PR tree-optimization/36344
680         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
681         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
682         (update_alias_info): Remove call clobbering code.
683         (make_constraint_to): New helper function.
684         (make_escape_constraint): Likewise.
685         (handle_rhs_call): Use it on all pointer containing arguments.
686         Also mark the static chain escaped.
687         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
688         instead of ANYTHING.
689         (make_constraint_from): New helper split out from ...
690         (make_constraint_from_anything): ... here.
691         (find_func_aliases): Add constraints for escape sites.
692         (intra_create_variable_infos): Make constraints from NONLOCAL
693         for parameters.
694         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
695         as ANYTHING.
696         (clobber_what_p_points_to): Remove.
697         (clobber_what_escaped): New function.
698         (init_base_vars): Init NONLOCAL and ESCAPED.
699         (do_sd_constraint): Do not propagate the solution from ESCAPED
700         but use ESCAPED as a placeholder.
701         (solve_graph): Likewise.
702         * tree-flow.h (clobber_what_p_points_to): Remove.
703         (clobber_what_escaped): Declare.
704         * tree-ssa-alias.c (set_initial_properties): Call it.
705         Remove code clobbering escaped pointers.
707 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
709         * function.c (allocate_struct_function): Only allocate a unique
710         funcdef_no if the decl is nonzero.
712 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
714         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
715         * config/mips/mips.c (mips_split_const_insns): New function.
716         * config/mips/mips.md (move_type): New attribute.
717         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
718         (dword_mode): New attribute.
719         (type): Avoid long line.  Map "move_type"s to "type"s,
720         choosing "multi" for doubleword moves if appropriate.
721         Swap MTC/MFC comments to match their declaration order.
722         (extended_mips16): Default to "yes" if "move_type" is "sll0",
723         "type" is "branch" or "jal" is "direct".
724         (length): Handle "extended_mips16" first.  Make the default
725         "0" for "ghost" instructions.  Set the length from "move_type".
726         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
727         of "type", with "sll0" for the register alternative.  Remove the
728         "extended_mips16" attribute.
729         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
730         of "type", with "shift_shift" for the register alternative.
731         Remove the "length" attribute.
732         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
733         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
734         of "type", with "andi" for the register alternative.
735         (*zero_extendqihi2): Likewise.
736         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
737         of "andi" instead of a "type" of "arith".
738         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
739         instead of "type".
740         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
741         (mov_<store>r, *mov<mode>_ra): Likewise.
742         (extendsidi2): Use "move_type" instead of "type", with "move"
743         for the register alternative.
744         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
745         of "type", with "signext" for the register alternative.
746         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
747         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
748         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
749         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
750         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
751         (unnamed branch insn): Likewise.
752         (*movdi_gp32_fp64): Fold into...
753         (*movdi_32bit): ...here.
754         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
755         (*movdf_hardfloat): ...this new pattern.
756         (*movdf_softfloat): Remove redundant FPR alternatives.
757         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
758         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
759         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
760         the "move" attribute.
761         (*movdi_32bit): Use "move_type" instead of "type" and remove the
762         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
763         and "store" for COP loads and stores.
764         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
765         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
766         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
767         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
768         (*movtf_mips16, *movv2sf): Likewise.
769         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
770         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
771         (mfhc1<mode>): Use "move_type" instead of "move".
772         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
773         (loadgp_blockage): Remove the "length" attribute.
774         (blockage, set_got_version, update_got_version): Likewise.
775         (call_internal): Remove the "extended_mips16" attribute.
776         (call_value_internal, call_value_multiple_internal): Likewise.
777         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
778         instead of "move".
779         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
780         the "length" attribute.
782 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
784         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
785         -Wcast-qual warnings.
786         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
787         handle_pragma_pop_macro): Likewise.
788         * collect2.c (resolve_lib_name): Likewise.
789         * config/arc/arc.c (arc_init): Likewise.
790         * config/arm/arm.c (neon_builtin_compare,
791         locate_neon_builtin_icode): Likewise.
792         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
793         * config/bfin/bfin.c (bfin_init_machine_status,
794         bfin_optimize_loop): Likewise.
795         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
796         * config/cris/cris.c (cris_init_expanders): Likewise.
797         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
798         * config/darwin.c (machopic_indirection_eq,
799         machopic_indirection_name, machopic_output_indirection): Likewise.
800         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
801         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
802         frv_optimize_membar): Likewise.
803         * config/i386/cygwin.h (mingw_scan,
804         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
805         * config/i386/cygwin1.c (mingw_scan): Likewise.
806         * config/i386/i386.c (machopic_output_stub): Likewise.
807         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
808         i386_pe_unique_section): Likewise.
809         * config/ia64/ia64.c (ia64_init_machine_status,
810         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
811         Likewise.
812         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
813         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
814         * config/m68k/m68k.c (m68k_handle_option,
815         m68k_sched_md_init_global): Likewise.
816         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
817         mcore_unique_section): Likewise.
818         * config/mips/mips.c (mips_block_move_straight,
819         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
820         Likewise.
821         * config/mmix/mmix.c (mmix_init_machine_status,
822         mmix_encode_section_info): Likewise.
823         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
824         * config/rs6000/rs6000.c (rs6000_init_machine_status,
825         print_operand_address, output_toc, redefine_groups,
826         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
827         * config/s390/s390.c (s390_init_machine_status): Likewise.
828         * config/score/score.c (score_block_move_straight,
829         score_block_move_loop_body): Likewise.
830         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
831         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
832         * emit-rtl.c (find_auto_inc): Likewise.
833         * gcc.c (translate_options, process_command): Likewise.
834         * reorg.c (dbr_schedule): Likewise.
835         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
836         * xcoffout.c (xcoffout_declare_function): Likewise.
838 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
840         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
841         ipa-pta working again.
843 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
845         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
846         genautomata.
848 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
850         * config.gcc (powerpc*-*-*): Add new core e500mc.
851         * config/rs6000/e500mc.md: New file.
852         * config/rs6000/rs6000.c (processor_costs): Add new costs for
853         e500mc.
854         (rs6000_override_options): Add e500mc case to
855         processor_target_table. Altivec and Spe options not allowed
856         with e500mc. Add isel instruction to e500mc by
857         default. Initialize rs6000_cost for e500mc.
858         (rs6000_issue_rate): Set issue rate for e500mc.
859         * config/rs6000/rs6000.h (processor_type): Add
860         PROCESSOR_PPCE500MC.
861         (ASM_CPU_SPEC): Add e500mc.
862         Set TARGET_ISEL to rs6000_isel.
863         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
864         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
865         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
866         Include e500mc.md.
867         * doc/invoke.texi: Add e500mc to list of cpus.
869 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
871         PR c/34867
872         * c-lex.c (lex_charconst): Initialize unsignedp.
874 2008-06-27  Olivier Hainque  <hainque@adacore.com>
876         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
877         documented assumptions.
879 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
881         * dwarf2out.c: Remove trailing white spaces.  Break long line
882         in comments.
884 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
886         * libfuncs.h (LTI_synchronize): New libfunc_index.
887         (synchronize_libfunc): Declare.
888         * builtins.c (expand_builtin_synchronize): Consider using
889         synchronize_libfunc before falling back on an asm blockage.
890         * config/mips/mips.c: Include libfuncs.h
891         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
893 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
895         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
896         parameter.  Copy stack_reg to r11 where appropriate.
897         (no_global_regs_above): Add gpr parameter.
898         (rs6000_stack_info): Only add padding for SPE save area if we
899         are saving SPE GPRs and CR.
900         (saveres_routine_syms): New variable.
901         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
902         Define.
903         (rs6000_savres_routine_sym): New function.
904         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
905         split out of...
906         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
907         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
908         Tweak FPR out-of-line saving.
909         (rs6000_make_savres_rtx): New function.
910         (rs6000_use_multiple_p): New function.
911         (rs6000_savres_strategy): New function.
912         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
913         out-of-line if appropriate.
914         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
915         if we are optimizing for size.
916         (GP_SAVE_INLINE): Define.
917         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
918         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
919         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
920         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
921         (*save_fpregs_<mode>): Add use of r11.
922         (*restore_gpregs_<mode>): New insn.
923         (*return_and_restore_gpregs_<mode>): New insn.
924         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
925         use r11.
926         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
927         (*restore_gpregs_spe): New insn.
928         (*return_and_restore_gpregs_spe): New insn.
929         * config/rs6000/predicates.md (save_world_operation): Fix check.
931 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
933         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
934         this point, so assert that.
936 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
938         * cfganal.c: Include vec.h and vecprim.h.
939         (compute_idf): Import from...
940         * tree-into-ssa (compute_idf): ...here.
941         * basic-block.h (compute_idf): Export.
943 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
945         * c-decl.c (merge_decls): Use !current_function_decl to check for
946         extern declaration of C99 inline function being at file scope.
948 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
950         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
952 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
954         * alias.c (record_alias_subset, init_alias_analysis): Fix
955         -Wc++-compat and/or -Wcast-qual warnings.
956         * attribs.c (lookup_attribute_spec): Likewise.
957         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
958         copy_bb, connect_traces,
959         find_rarely_executed_basic_blocks_and_cr): Likewise.
960         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
961         note_btr_set, migrate_btr_defs): Likewise.
962         * builtins.c (result_vector, expand_builtin_memcpy,
963         expand_builtin_mempcpy_args, expand_builtin_strncpy,
964         builtin_memset_read_str, expand_builtin_printf,
965         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
966         Likewise.
967         * caller-save.c (mark_set_regs): Likewise.
968         * calls.c (expand_call, emit_library_call_value_1): Likewise.
969         * cgraph.c (cgraph_edge): Likewise.
970         * combine.c (likely_spilled_retval_1): Likewise.
971         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
972         htab_counts_entry_del, get_coverage_counts): Likewise.
973         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
974         new_cselib_val): Likewise.
975         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
976         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
977         Likewise.
978         * df-core.c (df_compact_blocks): Likewise.
979         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
980         * df-scan.c (df_grow_reg_info, df_ref_create,
981         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
982         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
983         df_record_entry_block_defs, df_record_exit_block_uses,
984         df_bb_verify): Likewise.
985         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
986         DF_REF_EXTRACT_MODE_CONST): New.
987         * dominance.c (get_immediate_dominator, get_dominated_by,
988         nearest_common_dominator, root_of_dom_tree,
989         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
990         -Wc++-compat and/or -Wcast-qual warnings.
991         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
992         record_store, replace_read, check_mem_read_rtx, scan_insn,
993         dse_step1, dse_record_singleton_alias_set): Likewise.
994         * dwarf2asm.c (dw2_force_const_mem): Likewise.
996 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
998         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
999         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1000         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1001         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1002         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1003         add_ranges_num, add_ranges_by_labels, file_info_cmp,
1004         file_name_acquire, output_file_names, add_const_value_attribute,
1005         premark_used_types_helper, file_table_eq, file_table_hash,
1006         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1007         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1008         -Wcast-qual warnings.
1009         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1010         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1011         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1012         gen_reg_rtx, start_sequence, init_emit): Likewise.
1013         * et-forest.c (et_new_occ, et_new_tree): Likewise.
1014         * except.c (init_eh_for_function, gen_eh_region,
1015         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1016         arh_to_landing_pad, arh_to_label, add_action_record,
1017         add_call_site, switch_to_exception_section): Likewise.
1018         * expmed.c (synth_mult): Likewise.
1019         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
1020         store_expr): Likewise.
1021         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
1022         Likewise.
1023         * function.c (assign_stack_temp_for_type,
1024         allocate_struct_function, match_asm_constraints_1): Likewise.
1025         * gcov-io.c (gcov_allocate): Likewise.
1026         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
1027         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
1028         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
1029         record_one_set, insert_expr_in_table, insert_set_in_table,
1030         dump_hash_table, compute_hash_table_work, alloc_hash_table,
1031         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
1032         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
1033         -Wcast-qual warnings.
1035 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1037         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
1038         -Wcast-qual warnings.
1039         * gcc.c (process_command): Likewise.
1040         * genattrtab.c (oballoc): Use XOBNEW.
1041         (oballocvec): Define.
1042         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
1043         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
1044         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
1045         -Wc++-compat and/or -Wcast-qual warnings.
1046         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
1047         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
1048         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1049         gen_presence_absence_set, gen_automaton, gen_regexp_el,
1050         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1051         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
1052         add_excls, process_presence_absence_names,
1053         process_presence_absence_patterns, add_presence_absence,
1054         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
1055         get_free_state, add_arc, get_free_automata_list_el,
1056         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
1057         transform_3, cache_presence, create_ainsns, create_automata,
1058         create_state_ainsn_table, dfa_insn_code_enlarge,
1059         output_trans_func, output_min_issue_delay_func,
1060         output_dead_lock_func, output_reset_func,
1061         output_get_cpu_unit_code_func, output_dfa_start_func,
1062         expand_automata): Likewise.
1063         * genextract.c (gen_insn): Likewise.
1064         * gengtype-lex.l: Likewise.
1065         * gengtype.c (read_input_list, adjust_field_type,
1066         process_gc_options): Likewise.
1067         * genoutput.c (note_constraint): Likewise.
1068         * genpreds.c (mangle, add_constraint): Likewise.
1069         * genrecog.c (process_define_predicate, new_decision,
1070         add_to_sequence): Likewise.
1071         * gensupport.c (record_insn_name): Likewise.
1073 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1075         * config/i386/driver-i386.c (detect_caches_amd,
1076         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
1077         and/or -Wcast-qual warnings.
1078         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
1079         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
1080         gt_pch_save): Likewise.
1081         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
1082         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
1083         * global.c (compute_regsets): Likewise.
1084         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
1085         finish_graph_dump_file): Likewise.
1086         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
1087         unlink_bb_notes): Likewise.
1088         * integrate.c (get_hard_reg_initial_val): Likewise.
1089         * ipa-prop.c (ipa_push_func_to_list): Likewise.
1090         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
1091         * local-alloc.c (update_equiv_regs): Likewise.
1092         * loop-invariant.c (check_invariant_table_size,
1093         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
1094         Likewise.
1095         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
1096         altered_reg_used, mark_altered): Likewise.
1097         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
1098         insert_var_expansion_initialization,
1099         combine_var_copies_in_loop_exit, apply_opt_in_copies,
1100         release_var_copies): Likewise.
1101         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
1102         analyze_matrix_decl, add_allocation_site, analyze_transpose,
1103         analyze_accesses_for_phi_node, check_var_notmodified_p,
1104         check_allocation_function, find_sites_in_func,
1105         record_all_accesses_in_func, transform_access_sites,
1106         transform_allocation_sites): Likewise.
1107         * omp-low.c (new_omp_region, create_omp_child_function_name,
1108         check_omp_nesting_restrictions, check_combined_parallel,
1109         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
1110         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
1111         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
1112         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
1113         Likewise.
1114         * opts-common.c (prune_options): Likewise.
1115         * opts.c (add_input_filename, print_filtered_help,
1116         get_option_state): Likewise.
1117         * params.c (add_params): Likewise.
1118         * passes.c (set_pass_for_id, next_pass_1,
1119         do_per_function_toporder, pass_fini_dump_file): Likewise.
1120         * postreload.c (reload_cse_simplify_operands): Likewise.
1121         * predict.c (tree_predicted_by_p, tree_predict_edge,
1122         clear_bb_predictions, combine_predictions_for_bb): Likewise.
1124 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1126         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
1127         warnings.
1128         * recog.c (check_asm_operands, validate_change_1): Likewise.
1129         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
1130         subst_asm_stack_regs): Likewise.
1131         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
1132         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
1133         * regmove.c (reg_is_remote_constant_p): Likewise.
1134         * regrename.c (regrename_optimize, scan_rtx_reg,
1135         kill_clobbered_value, kill_set_value, kill_autoinc_value):
1136         Likewise.
1137         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
1138         regstat_compute_calls_crossed): Likewise.
1139         * reload1.c (init_reload, new_insn_chain,
1140         has_nonexceptional_receiver, reload, copy_reloads,
1141         calculate_needs_all_insns, init_elim_table): Likewise.
1142         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
1143         * rtl.c (shallow_copy_rtx_stat): Likewise.
1144         * rtlanal.c (parms_set): Likewise.
1145         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
1146         sbitmap_resize, sbitmap_vector_alloc): Likewise.
1147         * sched-ebb.c (earliest_block_with_similiar_load,
1148         add_deps_for_risky_insns): Likewise.
1149         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
1150         schedule_region): Likewise.
1151         * see.c (eq_descriptor_pre_extension,
1152         hash_descriptor_pre_extension, hash_del_pre_extension,
1153         eq_descriptor_properties, hash_descriptor_properties,
1154         hash_del_properties, see_seek_pre_extension_expr,
1155         see_initialize_data_structures, see_print_register_properties,
1156         see_print_pre_extension_expr, see_delete_merged_def_extension,
1157         see_delete_unmerged_def_extension, see_emit_use_extension,
1158         see_pre_delete_extension, see_map_extension, see_commit_changes,
1159         see_analyze_merged_def_local_prop,
1160         see_analyze_merged_def_local_prop,
1161         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
1162         see_set_prop_merged_def, see_set_prop_unmerged_def,
1163         see_set_prop_unmerged_use, see_print_one_extension,
1164         see_merge_one_use_extension, see_merge_one_def_extension,
1165         see_store_reference_and_extension, see_update_uses_relevancy,
1166         see_update_defs_relevancy): Likewise.
1167         * statistics.c (hash_statistics_hash, hash_statistics_eq,
1168         hash_statistics_free, curr_statistics_hash): Likewise.
1169         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
1170         expand_asm_operands, expand_return, case_bit_test_cmp,
1171         expand_case): Likewise.
1172         * stor-layout.c (start_record_layout): Likewise.
1173         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
1174         gt_pch_save_stringpool): Likewise.
1175         * tree-data-ref.c (hash_stmt_vertex_info,
1176         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
1177         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
1179 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
1181         PR target/36627
1182         * config/i386/i386.md : Change constraints of HImode and QImode
1183         immediate operands from "i" to "n".  Change SImode "ni" constraint to
1184         "i" and SImode "rmi" constraint to "g".  Remove all constraints
1185         from const0_operand and const1_operand predicated operands.
1186         (i): Change QImode and HImode attribute from "i" to "n".
1187         (*subqi_2): Change HImode operands to QImode.
1188         (*subqi_3): Ditto.
1190 2008-06-25  Olivier Hainque  <hainque@adacore.com>
1192         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
1193         sed substitutions.
1195 2008-06-25  Richard Guenther  <rguenther@suse.de>
1197         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
1198         not overflow the result type.
1200 2008-06-25  Richard Guenther  <rguenther@suse.de>
1202         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
1203         (vn_lookup): Likewise.
1205 2008-06-25  Richard Guenther  <rguenther@suse.de>
1207         PR tree-optimization/35518
1208         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
1209         * tree-sra.c (instantiate_element): Use fold_build3 to build
1210         BIT_FIELD_REFs.
1211         (try_instantiate_multiple_fields): Likewise.
1213 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1215         * config/rs6000/rs6000.md: Change all string instruction's clobber to
1216         be early clobbers.
1218 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1220         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
1221         use_backchain_to_restore_sp to true
1222         if the offset of the link register save area would go over the 32k - 1
1223         offset limit of the load
1224         instructions.
1226 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
1228         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
1229         anchor for the type-punning blurb.  Cross-reference "Structures
1230         unions enumerations and bit-fields implementation".  Provide a
1231         cast-through-pointer example.  Make final sentence self-contained.
1232         * doc/implement-c.texi (Structures unions enumerations and
1233         bit-fields implementation): Cross-reference the type-punning blurb
1234         in the -fstrict-aliasing documentation.
1236 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1238         PR middle-end/36594
1239         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
1240         the memory instead of the memory itself for the save area.
1242 2008-06-24  Olivier Hainque  <hainque@adacore.com>
1243             Nicolas Roche  <roche@adacore.com>
1245         * gengtype.c (srcdir_len): size_t instead of int.
1246         (get_file_realbasename): New function.  For F a filename, the real
1247         basename of F, with all the path components stripped.
1248         (get_file_srcdir_relative_path): New function.  For F a filename, the
1249         relative path to F from $(srcdir).
1250         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
1251         get_file_realbasename.  Adjust the head comment.
1252         (get_prefix_langdir_index): New function. For F a filename, return the
1253         lang_dir_names[] relative index of the language directory that is
1254         a prefix in F.
1255         (get_file_langdir): For F a filename, return the name of the language
1256         directory where F is located.
1257         (get_file_gtfilename): New function. The gt- output file name for an
1258         input filename F.
1259         (get_output_file_with_visibility): Replace in-line computations with
1260         uses of get_file_gtfilename and get_prefix_langdir_index.
1261         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
1263 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
1265         PR tree-optimization/36504
1266         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
1267         references without base address.
1269 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1271         PR middle-end/36584
1272         * calls.c (expand_call): Increase alignment for recursive functions.
1274 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
1276         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
1277         (TARGET_FUNCTION_VALUE): New define.
1278         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
1279         * config/avr/avr.h (FUNCTION_VALUE): Remove.
1281 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1283         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
1284         (fmod<mode>3): Ditto.
1285         (remainderxf3): Ditto.
1286         (remainder<mode>3): Ditto.
1288 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
1290         PR target/36533
1291         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
1292         REG is a hard register.
1294         PR tree-optimization/36508
1295         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
1296         499, don't check it at all in release compilers.
1298 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1300         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
1301         together with SSE_TARGET_MATH to disable insn pattern.
1302         (*fop_<MODEF:mode>_2_i387): Ditto.
1303         (*fop_<MODEF:mode>_3_i387): Ditto.
1305 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
1307         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
1308         
1309 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1311         PR middle-end/34906
1312         * gimplify.c (gimplify_asm_expr): Check the return code of
1313         parse_output_constraint call, set function return and is_inout
1314         value if it failed.
1316 2008-06-22  Ian Lance Taylor  <iant@google.com>
1318         * c-lex.c (narrowest_unsigned_type): Change itk to int.
1319         (narrowest_signed_type): Likewise.
1320         * c-typeck.c (c_common_type): Change local variable mclass to enum
1321         mode_class, twice.
1322         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
1323         tcc_comparison, not the tree code itself.
1324         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
1325         (c_expand_expr): Cast modifier to enum expand_modifier.
1326         * c-common.h (C_RID_CODE): Add casts.
1327         (C_SET_RID_CODE): Define.
1328         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
1329         (c_lex_one_token): Add cast to avoid warning.
1330         (c_parser_objc_type_name): Rename local typename to type_name.
1331         (check_no_duplicate_clause): Change code parameter to enum
1332         omp_clause_code.
1333         (c_parser_omp_var_list_parens): Change kind parameter to enum
1334         omp_clause_code.
1335         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
1336         c_parser_omp_list_var_parens.
1337         (c_parser_omp_threadprivate): Likewise.
1338         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
1339         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
1340         * c-format.c (NO_FMT): Define.
1341         (printf_length_specs): Use NO_FMT.
1342         (asm_fprintf_length_specs): Likewise.
1343         (gcc_diag_length_specs): Likewise.
1344         (scanf_length_specs): Likewise.
1345         (strfmon_length_specs): Likewise.
1346         (gcc_gfc_length_specs): Likewise.
1347         (printf_flag_specs): Change 0 to STD_C89.
1348         (asm_fprintf_flag_specs): Likewise.
1349         (gcc_diag_flag_specs): Likewise.
1350         (gcc_cxxdiag_flag_specs): Likewise.
1351         (scanf_flag_specs): Likewise.
1352         (strftime_flag_specs): Likewise.
1353         (strfmon_flag_specs): Likewise.
1354         (print_char_table): Likewise.
1355         (asm_fprintf_char_table): Likewise.
1356         (gcc_diag_char_table): Likewise.
1357         (gcc_tdiag_char_table): Likewise.
1358         (gcc_cdiag_char_table): Likewise.
1359         (gcc_cxxdiag_char_table): Likewise.
1360         (gcc_gfc_char_table): Likewise.
1361         (scan_char_table): Likewise.
1362         (time_char_table): Likewis.
1363         (monetary_char_table): Likewise.
1364         * c-format.h (BADLEN): Likewise.
1366 2008-06-21  Ian Lance Taylor  <iant@google.com>
1368         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
1369         Define END_OF_BASE_TREE_CODES around inclusion.
1370         * tree.c (tree_code_type): New global array.
1371         (tree_code_length, tree_code_name): Likewise.
1372         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
1373         $(lang_tree_files).
1374         (all-tree.def, s-alltree): New targets.
1375         (gencheck.h, s-gencheck): Remove.
1376         (tree.o): Depend upon all-tree.def.
1377         (build/gencheck.o): Remove gencheck.h dependency.
1378         (mostlyclean): Don't remove gencheck.h.
1379         * c-common.h (enum c_tree_code): Remove.
1380         * c-lang.c (tree_code_type): Remove.
1381         (tree_code_length, tree_code_name): Remove.
1382         * gencheck.c (tree_codes): Include all-tree.def, rather than
1383         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
1384         after it is used.
1385         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
1386         than tree.def.
1387         * cp/cp-tree.h (enum cplus_tree_code): Remove.
1388         (operator_name_info): Size to MAX_TREE_CODES.
1389         (assignment_operator_name_info): Likewise.
1390         * cp/cp-lang.c (tree_code_type): Remove.
1391         (tree_code_length, tree_code_name): Remove.
1392         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
1393         (assignment_operator_name_info): Likewise.
1394         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
1395         MAX_TREE_CODES.
1396         * cp/mangle.c (write_expression): Likewise.
1397         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
1398         * fortran/f95-lang.c (tree_code_type): Remove.
1399         (tree_code_length, tree_code_name): Remove.
1400         * java/java-tree.h (enum java_tree_code): Remove.
1401         * java/lang.c (tree_code_type): Remove.
1402         (tree_code_length, tree_code_name): Remove.
1403         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
1404         * objc/objc-act.h (enum objc_tree_code): Remove.
1405         * objc/objc-lang.c (tree_code_type): Remove.
1406         (tree_code_length, tree_code_name): Remove.
1407         * objcp/objcp-lang.c (tree_code_type): Remove.
1408         (tree_code_length, tree_code_name): Remove.
1409         * ada/ada-tree.h (enum gnat_tree_code): Remove.
1410         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
1411         * ada/misc.c (tree_code_type): Remove.
1412         (tree_code_length, tree_code_name): Remove.
1414 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
1416         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
1417         the grand_bitmap_obstack.
1419 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1421         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
1422         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
1423         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
1424         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
1425         move_stmt_r, new_label_mapper): Likewise.
1426         * tree-complex.c (cvc_lookup): Likewise.
1427         * tree-dfa.c (create_function_ann): Likewise.
1428         * tree-dump.c (dump_register): Likewise.
1429         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
1430         find_phi_replacement_condition): Likewise.
1431         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
1432         tree_function_versioning): Likewise.
1433         * tree-into-ssa.c (cmp_dfsnum): Likewise.
1434         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
1435         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
1436         get_nonlocal_debug_decl, convert_nonlocal_reference,
1437         convert_nonlocal_omp_clauses, get_local_debug_decl,
1438         convert_local_reference, convert_local_omp_clauses,
1439         convert_nl_goto_reference, convert_nl_goto_receiver,
1440         convert_tramp_reference, convert_call_expr): Likewise.
1441         * tree-outof-ssa.c (contains_tree_r): Likewise.
1442         * tree-parloops.c (reduction_phi, initialize_reductions,
1443         eliminate_local_variables_1, add_field_for_reduction,
1444         add_field_for_name, create_phi_for_local_result,
1445         create_call_for_reduction_1, create_loads_for_reductions,
1446         create_stores_for_reduction, create_loads_and_stores_for_name):
1447         Likewise.
1448         * tree-phinodes.c (allocate_phi_node): Likewise.
1449         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
1450         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
1451         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
1452         * tree-ssa-coalesce.c (compare_pairs): Likewise.
1453         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
1454         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
1455         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
1456         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
1457         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
1458         vn_nary_op_insert): Likewise.
1459         * tree-ssa.c (redirect_edge_var_map_add,
1460         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
1461         * tree-vectorizer.c (vectorize_loops): Likewise.
1462         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
1463         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
1464         tree_cons_stat, build1_stat, build_variant_type_copy,
1465         decl_init_priority_lookup, decl_fini_priority_lookup,
1466         decl_priority_info, decl_restrict_base_lookup,
1467         decl_restrict_base_insert, decl_debug_expr_lookup,
1468         decl_debug_expr_insert, decl_value_expr_lookup,
1469         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
1470         type_hash_add, get_file_function_name, tree_check_failed,
1471         tree_not_check_failed, tree_range_check_failed,
1472         omp_clause_range_check_failed, build_omp_clause,
1473         build_vl_exp_stat): Likewise.
1474         * value-prof.c (gimple_histogram_value,
1475         gimple_duplicate_stmt_histograms): Likewise.
1476         * var-tracking.c (attrs_list_insert, attrs_list_copy,
1477         unshare_variable, variable_union_info_cmp_pos, variable_union,
1478         dataflow_set_different_1, dataflow_set_different_2,
1479         vt_find_locations, variable_was_changed, set_variable_part,
1480         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
1481         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
1482         section_entry_hash, object_block_entry_eq,
1483         object_block_entry_hash, create_block_symbol,
1484         initialize_cold_section_name, default_function_rodata_section,
1485         strip_reg_name, set_user_assembler_name, const_desc_eq,
1486         build_constant_desc, output_constant_def, lookup_constant_def,
1487         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
1488         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
1489         default_internal_label): Likewise.
1490         * varray.c (varray_init, varray_grow): Likewise.
1491         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
1493 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
1495         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
1496         operators for "test" insn.  Macroize insn using SWI mode macro.
1497         (*jcc_fused_2): Ditto.
1498         (*jcc_fused_3): Macroize insn using SWI mode macro.
1499         (*jcc_fused_4): Ditto.
1501 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
1503         * tree-ssa-pre.c: Fix typo in comment.
1504         (init_antic, fini_antic): Add explicit funtions for
1505         initializing and deinitializing ANTIC and AVAIL sets.
1506         (create_expression_by_pieces): Fix typo in comment.
1507         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
1508         (execute_pre): Eventually dump details about ANTIC_IN.
1510 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1512         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
1513         * gcc.c (translate_options, init_spec, store_arg, read_specs,
1514         add_to_obstack, file_at_path, find_a_file, execute,
1515         add_preprocessor_option, add_assembler_option, add_linker_option,
1516         process_command, insert_wrapper, do_option_spec, do_self_spec,
1517         spec_path, do_spec_1, is_directory, main, used_arg,
1518         getenv_spec_function): Likewise.
1519         * tlink.c (symbol_hash_lookup, file_hash_lookup,
1520         demangled_hash_lookup, symbol_push, file_push, frob_extension):
1521         Likewise.
1523 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
1525         * doc/rtl.texi: Updated subreg section.
1527 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1529         PR c++/36523
1530         * cgraphunit.c (cgraph_process_new_functions): Don't clear
1531         node->needed and node->reachable.
1532         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
1533         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
1534         (expand_task_call): Don't call expand_task_copyfn.
1535         (expand_task_copyfn): Renamed to...
1536         (finalize_task_copyfn): ... this.
1538 2008-06-19  Jan Hubicka  <jh@suse.cz>
1540         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
1541         clobbering framepointer.
1543 2008-06-19  Jan Hubicka  <jh@suse.cz>
1545         * tree-optimize.c (execute_early_local_optimizations): Set
1546         cgraph_state only at first invocation.
1548 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1550         * system.h (-Wc++-compat): Activate as a warning, no an error.
1552 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
1554         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
1555         instead of "#" in insn asm template.
1556         (*jcc_fused_2): Ditto.
1558 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
1560         * config/i386/i386.h (ix86_tune_indices)
1561         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
1562         (TARGET_FUSE_CMP_AND_BRANCH): New define.
1563         * config/i386/i386.md (*jcc_fused_1): New insn pattern
1564         (*jcc_fused_2): Ditto.
1565         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
1566         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
1567         (print operand): Handle 'E' and 'e' code.
1569 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
1571         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
1572         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1573         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1575 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
1577         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
1578         node->decl.
1579         (cgraph_expand_function): Use local copy of decl.
1580         (cgraph_expand_all_functions): Remove redundant initialization of
1581         order_pos.
1582         (cgraph_optimize): Reword internal_error message.
1584 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
1586         * arm-protos.h (arm_return_in_memory): Remove public
1587         arm_return_in_memory() prototype.
1588         * arm.c (arm_return_in_memory): Add static prototype, add target
1589         hook macro, change definition and comments.
1590         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
1592 2008-06-19  Ben Elliston  <bje@au.ibm.com>
1594         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
1595         real.c: Remove references to IEEE 754R.
1596         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
1597         * doc/libgcc.texi (Decimal float library routines): Likewise.
1599 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1601         * targhooks.h (struct gcc_target): New member unwind_word_mode.
1602         (default_unwind_word_mode): Add prototype.
1603         * targhooks.c (default_unwind_word_mode): New function.
1604         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
1605         instead of word_mode.
1606         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
1607         (TARGET_INITIALIZER): Use it.
1609         * c-common.c (handle_mode_attribute): Support "unwind_word"
1610         mode attribute.
1611         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
1613         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
1614         word_mode to access SjLj_Function_Context member "data".
1615         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
1616         conversion from targetm.eh_return_filter_mode () to
1617         targetm.unwind_word_mode () if they differ.
1619         * builtin-types.def (BT_UNWINDWORD): New primitive type.
1620         (BT_FN_UNWINDWORD_PTR): New function type.
1621         (BT_FN_WORD_PTR): Remove.
1622         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
1623         * except.c (expand_builtin_extend_pointer): Convert pointer to
1624         targetm.unwind_word_mode () instead of word_mode.
1626         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
1627         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
1628         (spu_unwind_word_mode): New function.
1629         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
1630         (TARGET_UNWIND_WORD_MODE): Define.
1631         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
1633 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1635         * config/spu/spu.c (reg_align): Remove.
1636         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
1637         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
1638         (spu_split_store): Likewise.
1640 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
1642         * gcc/tree-vn.c: Fix typo in comment.
1644 2008-06-18  Jan Hubicka  <jh@suse.cz>
1646         * cgraphunit.c (cgraph_optimize): Output debug info when doing
1647         toplevel reorder too.
1649 2008-06-18  Jan Hubicka  <jh@suse.cz>
1651         * c-opts.c (c_common_post_options): PCH is not compatible with
1652         no-unit-at-a-time.
1653         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
1654         -fno-toplevel-reorder by default now.
1656 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1658         PR documentation/30739
1659         * doc/install.texi (Prerequisites): Document dependency on awk.
1661 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
1662             Ian Lance Taylor  <iant@google.com>
1664         PR rtl-optimization/35604
1665         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
1666         only want to change jump destinations, not eventual label comparisons.
1668 2008-06-16  Jan Hubicka  <jh@suse.cz>
1670         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
1671         syntax errors.
1672         (cgraph_analyze_function): Likewise.
1674 2008-06-16  Jan Hubicka  <jh@suse.cz>
1676         * cgraph.h (cgraph_mark_if_needed): New function.
1677         * cgraphunit.c (cgraph_mark_if_needed): New function.
1678         * c-decl.c (duplicate_decl): Use it.
1680 2008-06-16  Jan Hubicka  <jh@suse.cz>
1682         * cgraph.c (cgraph_add_new_function): When in expansion state, do
1683         lowering.
1685 2008-06-16  Jan Hubicka  <jh@suse.cz>
1687         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
1689 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
1690             Kazu Hirata  <kazu@codesourcery.com>
1691             Maxim Kuvyrkov  <maxim@codesourcery.com
1693         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
1694         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
1695         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
1696         EXTRA_SPEC_FUNCTIONS.
1697         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
1698         (DRIVER_SELF_SPECS): Adjust.
1699         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
1700         * config/mips/st.h, config/mips/t-st: New.
1701         * config/mips/driver-native.c, config/mips/x-native: New.
1702         * doc/invoke.texi (MIPS): Document 'native' value for -march and
1703         -mtune options.
1705 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
1707         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
1708         from it.
1709         (ISA_HAS_FP_CONDMOVE): New macro.
1710         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
1711         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
1712         (ISA_HAS_NMADD3_NMSUB3): New macro.
1713         * config/mips/mips.c (mips_rtx_costs): Update.
1714         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
1715         compiling for ST Loongson 2E/2F.
1716         (madd<mode>): Rename to madd4<mode>.  Update.
1717         (madd3<mode>): New pattern.
1718         (msub<mode>): Rename to msub4<mode>.  Update.
1719         (msub3<mode>): New pattern.
1720         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
1721         (nmadd3<mode>): New pattern.
1722         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
1723         (nmadd3<mode>_fastmath): New pattern.
1724         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
1725         (nmsub3<mode>): New pattern.
1726         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
1727         (nmsub3<mode>_fastmath): New pattern.
1728         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
1730 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
1732         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
1733         (DF_REF_INSN_INFO): New.
1734         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
1735         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
1736         with a NULL DF_REF_INSN_INFO.
1737         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
1738         DF_INSN_SET.
1739         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
1740         DF_INSN_INFO_EQ_USES): New.
1741         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
1742         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
1743         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
1744         * df-core.c: Update comment for above changes.
1745         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
1746         DF_INSN_UID_* macros.
1747         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
1748         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
1749         insn rtx.  Update all callers.
1750         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
1751         df_ref_create_structure, df_insn_refs_collect): Likewise.
1752         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
1753         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
1754         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
1755         macros to access the insn refs.
1756         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
1757         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
1758         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
1759         for accessing the refs.
1760         (try_fwprop_subst): Likewise.
1761         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
1762         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
1763         for accessing the refs.
1764         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
1765         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
1766         to look at the insn refs.
1767         (record_uses): Likewise.
1768         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
1769         function anymore.
1770         (mark_artificial_uses): Don't mark_insn for artificial refs.
1771         (mark_reg_rependencies): Likewise.
1773         * doc/rtl.texi: Remove documentation of ADDRESSOF.
1775 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1777         * configure: Regenerate.
1779 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1781         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
1782         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1783         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1785 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1787         * config/avr/avr.c (avr_mcu_t): Add attiny167.
1788         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1789         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1791 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1793         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
1794         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1795         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1797 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
1799         * tree-ssa-sccvn.c: Fix format of comments.
1801 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
1803         * cgraph.c: Remove unneeded forward declarations of eq_node()
1804         and hash_node().
1806 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
1808         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
1809         REG_RETVAL notes.
1810         (see_update_relevancy): Likewise.
1811         * fwprop.c (try_fwprop_subst): Likewise.
1812         * rtlanal.c (noop_move_p): Likewise.
1813         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
1814         notes to non-existing libcall blocks.
1815         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
1816         Remove orig_set.
1817         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
1818         (dead_libcall_p): Remove.
1819         (delete_trivially_dead_insns): Don't use it.
1820         * web.c (union_defs): Remove comment about keeping nops.
1821         * gcse.c (hash_scan_insn): Don't take libcall pointers.
1822         (compute_hash_table_work): Don't track libcall notes.
1823         (do_local_cprop): Don't take libcall pointers.  Don't update
1824         libcall notes.
1825         (adjust_libcall_notes): Deleted.
1826         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
1827         ever have existed in the first place).
1828         (replace_store_insn): Don't try to remove libcall notes.
1829         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
1830         (resolve_reg_notes): Don't call them.
1831         (resolve_simple_move): Likewise.
1832         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
1833         Don't remove REG_RETVAL notes.
1834         * emit-rtl.c (try_split): Don't update libcall notes.
1835         (emit_copy_of_insn_after): Dito.
1836         * cselib.c (cselib_current_insn_in_libcall): Remove.
1837         (cselib_process_insn): Don't set/clear it.
1838         (new_elt_loc_list): Don't record it.
1839         (cselib_init): Don't initialize it.
1840         * cselib.c (struct elt_loc_list): Remove in_libcall field.
1841         * loop-invariant.c (find_invariant_insn): Don't look for libcall
1842         notes.
1843         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
1844         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
1845         (init_deps): Don't initialize it.
1846         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
1847         * combine.c (delete_noop_moves): Don't update libcall notes.
1848         (can_combine_p): Remove now pointless #if 0 block.
1849         (try_combine): Remove another obsolete #if 0 block.
1850         (distribute_notes): Don't distribute libcall notes.
1851         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
1852         * dce.c (libcall_dead_p): Remove.
1853         (delete_unmarked_insns): Don't handle libcall blocks.
1854         (preserve_libcall_for_dce): Remove.
1855         (prescan_insns_for_dce): Don't special-case libcall block insns.
1856         * reload1 (reload): Don't handle libcall notes. 
1857         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
1858         documentation.
1860 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
1862         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
1863         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1864         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1866 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
1868         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
1869         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1870         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1872 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1874         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
1876 2008-06-16  Ira Rosen  <irar@il.ibm.com>
1878         PR tree-optimization/36493
1879         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
1880         the arguments list. Use VECTYPE to create vector pointer.
1881         (vectorizable_store): Fail if accesses through a pointer to vectype
1882         do not alias the original memory reference operands.
1883         Call vect_create_data_ref_ptr without the removed argument.
1884         (vectorizable_load): Likewise.
1885         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
1886         removed argument.
1888 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
1890         PR target/36336
1891         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
1892         reg_equiv_constant.
1894 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1896         * config/mips/loongson2ef.md: New file.
1897         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1898         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1899         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1900         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
1901         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
1902         and loongson_2f.
1903         (loongson2ef.md): New include.
1904         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
1905         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
1906         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
1907         (loongson_gt_<mode>, loongson_extract_halfword)
1908         (loongson_insert_halfword_0, loongson_insert_halfword_2)
1909         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
1910         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
1911         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
1912         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
1913         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
1914         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
1915         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
1916         (vec_interleave_low<mode>): Define type attribute.
1917         * config/mips/mips.c (mips_ls2): New static variable.
1918         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
1919         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
1920         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
1921         Implement target scheduling hooks.
1922         (mips_multipass_dfa_lookahead): Update to handle tuning for
1923         Loongson 2E/2F.
1924         (mips_sched_init): Initialize data for Loongson scheduling.
1925         (mips_ls2_variable_issue): New static function.
1926         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
1927         Add sanity check.
1928         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
1929         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
1930         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
1931         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
1932         Handle ST Loongson 2E/2F cores.
1933         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
1935 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1937         * omp-low.c (extract_omp_for_data): Fix comment typo.
1938         * c.opt: Fix typo.
1940 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1942         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
1943         FIXME note about gcc/config.guess.
1944         * doc/options.texi (Option file format): Remove non-ASCII bytes.
1945         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
1946         * doc/cppopts.texi: Likewise.
1947         * doc/extend.texi: Likewise.
1948         * doc/gcc.texi: Likewise.
1949         * doc/gccint.texi: Likewise.
1950         * doc/gcov.texi: Likewise.
1951         * doc/gty.texi: Likewise.
1952         * doc/hostconfig.texi: Likewise.
1953         * doc/install.texi: Likewise.
1954         * doc/invoke.texi: Likewise.
1955         * doc/loop.texi: Likewise.
1956         * doc/makefile.texi: Likewise.
1957         * doc/md.texi: Likewise.
1958         * doc/passes.texi: Likewise.
1959         * doc/tm.texi: Likewise.
1960         * doc/tree-ssa.texi: Likewise.
1961         * doc/trouble.texi: Likewise.
1963 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
1964             Nathan Sidwell  <nathan@codesourcery.com>
1965             Maxim Kuvyrkov  <maxim@codesourcery.com>
1966             Richard Sandiford  <rdsandiford@googlemail.com>
1967         
1968         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
1969         * config/mips/mips-protos.h (mips_expand_vector_init): New.
1970         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
1971         builtins.
1972         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
1973         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
1974         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
1975         V8QImode cases.
1976         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
1977         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
1978         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
1979         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
1980         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
1981         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
1982         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
1983         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
1984         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
1985         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
1986         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
1987         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
1988         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
1989         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
1990         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
1991         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
1992         (mips_builtins): Add Loongson builtins.
1993         (mips_loongson_2ef_bdesc): New.
1994         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
1995         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
1996         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
1997         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
1998         New.
1999         (mips_expand_vector_init): New.
2000         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2001         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2002         if appropriate.
2003         * config/mips/mips.md: Add unspec numbers for Loongson
2004         builtins.  Include loongson.md.
2005         (MOVE64): Include Loongson vector modes.
2006         (SPLITF): Include Loongson vector modes.
2007         (HALFMODE): Handle Loongson vector modes.
2008         * config/mips/loongson.md: New.
2009         * config/mips/loongson.h: New.
2010         * config.gcc: Add loongson.h header for mips*-*-* targets.
2011         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2013 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
2015         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2016         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2017         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2018         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2019         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
2020         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
2021         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
2022         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
2023         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
2024         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
2025         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
2026         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
2027         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
2028         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
2029         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
2030         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
2031         Remove use_fixproto=yes.
2032         (ia64*-*-hpux*): Remove comment about using fixproto.
2033         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
2035 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2037         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
2038         library rebuilds.
2039         * configure: Regenerate.
2041 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2043         PR middle-end/36520
2044         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
2045         before evaluating it.
2047 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
2049         PR c/36507
2050         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
2051         nested inline functions.
2052         (start_decl, start_function): Don't invert DECL_EXTERNAL
2053         for nested inline functions.
2055 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2057         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
2058         splits that must be made for correctness.
2060 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2062         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
2063         (AVAIL_NON_MIPS16): Likewise.
2064         (mips_builtin_description): Replace target_flags with a predicate.
2065         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
2066         (dspr2_32): New availability predicates.
2067         (MIPS_BUILTIN): New macro.
2068         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
2069         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
2070         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
2071         Replace the TARGET_FLAGS parameters with AVAIL parameters.
2072         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
2073         (mips_dsp_32only_bdesc): Merge into...
2074         (mips_builtins): ...this new array.
2075         (mips_bdesc_map, mips_bdesc_arrays): Delete.
2076         (mips_init_builtins): Update after above changes.
2077         (mips_expand_builtin_1): Merge into...
2078         (mips_expand_builtin): ...here and update after above changes.
2080 2008-06-12  Paul Brook  <paul@codesourcery.com>
2082         * longlong.h (__arm__): Define count_leading_zeros.
2083         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
2084         (clzsi2, clzdi2): New functions.
2085         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
2086         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
2087         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
2088         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
2089         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
2090         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
2091         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
2092         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2093         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
2094         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
2096 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
2098         * config/m68k/m68k.c (m68k_tune_flags): New.
2099         (override_options): Compute m68k_tune_flags.
2100         (MULL_COST, MULW_COST): Update for various variants of CFV2.
2101         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
2103 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2105         PR middle-end/36506
2106         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
2108 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2110         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
2111         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
2113 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2115         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
2116         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
2118 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2120         PR middle-end/36506
2121         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
2122         reductions.
2124 2008-06-12  Richard Guenther  <rguenther@suse.de>
2126         PR tree-optimization/36345
2127         * tree-flow.h (struct ptr_info_def): Align escape_mask,
2128         add memory_tag_needed flag.
2129         (may_alias_p): Declare.
2130         * tree-ssa-alias.c (may_alias_p): Export.
2131         (set_initial_properties): Use memory_tag_needed flag.
2132         (update_reference_counts): Likewise.
2133         (reset_alias_info): Reset memory_tag_needed flag.
2134         (create_name_tags): Check memory_tag_needed flag.
2135         (dump_points_to_info_for): Dump it.
2136         * tree-ssa-structalias.c (struct variable_info): Remove
2137         directly_dereferenced flag.
2138         (new_var_info): Do not initialize it.
2139         (process_constraint_1): Do not set it.
2140         (update_alias_info): Set is_dereferenced flag.
2141         (set_uids_in_ptset): Use may_alias_p.
2142         (set_used_smts): Check memory_tag_needed flag.
2143         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
2144         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
2145         memory_tag_needed flag.
2146         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
2147         from broken design.
2149 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
2151         * config/i386/i386.c (ix86_compute_frame_layout): Disable
2152         red zone for w64 abi.
2153         (ix86_expand_prologue): Likewise.
2154         (ix86_force_to_memory): Likewise.
2155         (ix86_free_from_memory): Likewise.
2157 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
2159         PR target/36425
2160         * config/rs6000/rs6000.c (rs6000_override_options): Set
2161         rs6000_isel conditionally to the absence of comand line override.
2162         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2163         Remove duplicate rs6000_isel setting.
2164         * config/rs6000/eabispe.h: Ditto.
2166 2008-06-11  Richard Guenther  <rguenther@suse.de>
2168         * alias.c (get_alias_set): Use the element alias-set for arrays.
2169         (record_component_aliases): For arrays and vectors do nothing.
2170         * c-common.c (strict_aliasing_warning): Handle the cases
2171         of alias set zero explicitly.
2172         * Makefile.in (dfp.o-warn): Add -Wno-error.
2174 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
2176         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
2177         tune_32 tune_64.
2178         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
2179         tune_32 tune_64 to supported_defaults.  Allow values not
2180         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
2181         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
2182         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
2183         with_cpu_64 to generic for 64-bit-supporting configurations, not
2184         with_cpu.  Remove FIXMEs.
2185         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
2186         --with-arch-64, --with-tune-32, --with-tune-64): Document.
2187         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
2188         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
2189         arch_32 and arch_64.
2191 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2192             Olivier Hainque  <hainque@adacore.com>
2194         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
2195         Use DECL_SIZE_UNIT to retrieve the size of the field.
2197 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
2199         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
2200         with function calls after declarations.  Lay out
2201         neon_float_type_node before further use.
2203 2008-06-11  Richard Guenther  <rguenther@suse.de>
2205         * tree-flow.h (may_point_to_global_var): Declare.
2206         * tree-ssa-alias.c (may_point_to_global_var): New function.
2207         * tree-ssa-sink.c (is_hidden_global_store): Use it.
2209 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
2211         * configure.ac: Teach that fido supports .debug_line.
2212         * configure: Regenerate.
2214 2008-06-10  Tom Tromey  <tromey@redhat.com>
2216         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
2217         debug hook.
2219 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
2221         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
2222         (encode_decimal64, decode_decimal64, encode_decimal128,
2223         decode_decimal128): Reverse order of 32-bit parts of value if host
2224         and target endianness differ.
2226 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
2228         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
2229         Avoid division by 0.
2230         (tree_mod_pow2_value_transform): Likewise.
2231         (tree_ic_transform): Likewise.
2232         (tree_stringops_transform): Likewise.
2233         (tree_mod_subtract_transform): Likewise.
2234         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
2235         (copy_edges_for_bb): Likewise.
2236         (initialize_cfun): Likewise.
2238 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
2240         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
2241         nonmemory_operand. Add "N" operand constraint.
2242         (*btsi): Ditto.
2243         (*jcc_btdi_mask_rex64): New instruction and split pattern.
2244         (*jcc_btsi_mask): Ditto.
2245         (*jcc_btsi_mask_1): Ditto.
2247 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
2249         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
2250         TYPE_CANONICAL for copied element type.
2252 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
2254         PR target/36473
2255         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
2256         Add m_CORE2 and m_GENERIC.
2257         * config/i386/predicates.md (bt_comparison_operator): New predicate.
2258         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
2259         (*btsi): Ditto.
2260         (*jcc_btdi_rex64): New instruction and split pattern.
2261         (*jcc_btsi): Ditto.
2262         (*jcc_btsi_1): Ditto.
2263         (*btsq): Fix Intel asm dialect operand order.
2264         (*btrq): Ditto.
2265         (*btcq): Ditto.
2267 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
2269         PR middle-end/36447
2270         * simplify-rtx.c (simplify_subreg): Add check for shift count 
2271         greater than size.
2273 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
2275         * doc/md.texi: Synchronize with later constraints.md change.
2276         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
2277         with a C implementation.
2278         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
2279         MFLO handling.
2280         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
2281         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
2282         when moving to and from MD_REGNUM.
2283         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
2284         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
2285         Handle byte and halfword moves.
2286         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
2287         separately.
2288         * config/mips/constraints.md (h): Turn into NO_REGS.
2289         (l, x): Update documentation.
2290         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
2291         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
2292         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
2293         (HILO): New mode iterator.
2294         (MOVE128): Add TI.
2295         (any_div): New code iterator.
2296         (u): Extend code attribute to div and udiv.
2297         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
2298         d_operand in the splitters.  Remove redundant CONST_INT checks.
2299         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
2300         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
2301         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
2302         accordingly, using normal moves instead of unspecs to move LO into
2303         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
2304         (<u>mulsidi3): Handle expansion in C code.
2305         (<u>mulsidi3_32bit_internal): Rename to...
2306         (<u>mulsidi3_32bit): ...this.
2307         (<u>mulsidi3_32bit_r4000): Fix insn separator.
2308         (*<u>mulsidi3_64bit): Rename to...
2309         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
2310         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
2311         to set LO and HI to the multiplication result.  Use a normal move
2312         for MFLO and an unspec for MFHI.
2313         (*<u>mulsidi3_64bit_parts): Replace with...
2314         (<u>mulsidi3_64bit_hilo): ...this new instruction.
2315         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
2316         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
2317         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
2318         instead of HI.  Split the instruction into a separate multiplication
2319         and MFHI if !TARGET_FIX_R4000.
2320         (<su>muldi3_highpart): Likewise.
2321         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
2322         and the "=h" clobber.
2323         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
2324         (<u>mulditi3): New expander.
2325         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
2326         (madsi): Remove "=h" clobber.
2327         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
2328         Force the modulus result to be a GPR and split the instruction into
2329         a division followed by an MFHI after reload.
2330         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
2331         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
2332         the MIPS16 HIGH define_split.
2333         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
2334         of acc<->gpr moves to "multi".
2335         (*movdi_64bit): Replace the single "x" alternative with
2336         alternatives for moving into and out of "a".
2337         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
2338         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
2339         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
2340         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
2341         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
2342         (movti): New expander.
2343         (*movti, *movti_mips16): New insns.
2344         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
2345         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
2346         (mthi<GPR:mode>_<HILO:mode>): Likewise.
2347         * config/mips/predicates.md (fpr_operand): Delete.
2348         (d_operand): New predicate.
2350 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
2352         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
2353         failure on some Bourne shells.
2354         (x86_64-*-*): Ditto.
2356 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
2358         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
2360 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
2362         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
2363         (sparc-sun-solaris2*): Likewise.
2365 2008-06-09  Arnaud Charlet  <charlet@adacore.com
2367         * doc/install.texi: Update requirements to build the Ada compiler.
2369 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
2371         * df-scan.c (struct df_scan_problem_data): Remove the
2372         mw_link_pool alloc pool.
2373         (df_scan_free_internal): Don't free it.
2374         (df_scan_alloc): Don't allocate it.
2375         * df.h (struct df_link): Update comment.
2377 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
2379         * except.h: Correct checks for when SJLJ exceptions must be used.
2381 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2383         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
2384         default.
2385         
2386 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
2388         PR tree-optimization/36218
2389         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
2390         configure for the build system.
2391         (BUILD_LDFLAGS): Define.
2392         * configure: Regenerate.
2393         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
2395 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
2397         PR target/36424
2398         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
2399         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
2400         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
2402 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
2404         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
2406 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
2408         * config.gcc (Obsolete configurations): Remove list of
2409         configurations.
2410         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
2411         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
2412         targets matched by those patterns.
2413         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
2414         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
2415         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
2416         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
2417         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
2418         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
2419         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
2420         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
2421         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
2422         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
2423         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
2424         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
2425         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
2426         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
2427         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
2428         Make code for Solaris 7 and greater unconditional for Solaris.
2429         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
2430         Remove --with-* handling.
2431         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
2432         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
2433         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
2434         LINK_OS_WINDISS_SPEC): Remove.
2435         * config/rs6000/sysv4.opt (mwindiss): Remove.
2436         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
2437         * configure: Regenerate.
2438         * doc/cpp.texi: Don't mention BeOS.
2439         * doc/extend.texi (interrupt): Don't mention MS1.
2440         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
2441         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
2442         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
2443         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
2444         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
2445         Remove.
2446         * doc/invoke.texi (MT Options): Remove.
2447         (-mwindiss): Remove.
2448         (CRIS Options): Remove cris-axis-aout references.
2449         (HPPA Options): Don't mention hppa1.1-*-pro.
2450         * doc/md.texi: (MorphoTech family): Remove.
2451         * libgcc2.c: Don't handle UWIN.
2452         * config/alpha/t-unicosmk: Remove.
2453         * config/alpha/unicosmk.h: Remove.
2454         * config/arm/kaos-arm.h: Remove.
2455         * config/arm/kaos-strongarm.h: Remove.
2456         * config/arm/strongarm-coff.h: Remove.
2457         * config/arm/strongarm-elf.h: Remove.
2458         * config/arm/strongarm-pe.h: Remove.
2459         * config/arm/t-strongarm-pe: Remove.
2460         * config/arm/t-xscale-coff: Remove.
2461         * config/arm/t-xscale-elf: Remove.
2462         * config/arm/xscale-coff.h: Remove.
2463         * config/arm/xscale-elf.h: Remove.
2464         * config/chorus.h: Remove.
2465         * config/cris/aout.h: Remove.
2466         * config/cris/aout.opt: Remove.
2467         * config/cris/t-aout: Remove.
2468         * config/i386/beos-elf.h: Remove.
2469         * config/i386/kaos-i386.h: Remove.
2470         * config/i386/ptx4-i.h: Remove.
2471         * config/i386/sco5.h: Remove.
2472         * config/i386/sco5.opt: Remove.
2473         * config/i386/sysv4-cpp.h: Remove.
2474         * config/i386/sysv5.h: Remove.
2475         * config/i386/t-beos: Remove.
2476         * config/i386/t-sco5: Remove.
2477         * config/i386/t-uwin: Remove.
2478         * config/i386/uwin.asm: Remove.
2479         * config/i386/uwin.h: Remove.
2480         * config/kaos.h: Remove.
2481         * config/mips/windiss.h: Remove.
2482         * config/mt: Remove directory.
2483         * config/pa/pa-osf.h: Remove.
2484         * config/pa/pa-pro-end.h: Remove.
2485         * config/pa/t-pro: Remove.
2486         * config/ptx4.h: Remove.
2487         * config/rs6000/beos.h: Remove.
2488         * config/rs6000/kaos-ppc.h: Remove.
2489         * config/rs6000/t-beos: Remove.
2490         * config/rs6000/windiss.h: Remove.
2491         * config/sh/kaos-sh.h: Remove.
2492         * config/sol2-6.h: Remove.
2493         * config/sparc/sol26-sld.h: Remove.
2494         * config/sparc/sysv4-only.h: Remove.
2495         * config/vax/bsd.h: Remove.
2496         * config/vax/t-memfuncs: Remove.
2497         * config/vax/ultrix.h: Remove.
2498         * config/vax/vaxv.h: Remove.
2499         * config/windiss.h: Remove.
2501 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
2503         PR rtl-optimization/36438
2504         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
2505         for vector shifts with constant scalar shift operands.
2507 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
2509         * doc/invoke.texi: Document -march=xlr.
2510         * config/mips/xlr.md: New file.
2511         * config/mips/mips.md: Include it.
2512         (cpu): Add "xlr".
2513         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
2514         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
2515         (mips_rtx_cost_data): Likewise.
2517 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
2519         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
2520         PRE_INC and PRE_DEC cases.
2522 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2524         PR rtl-optimization/36419
2525         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
2526         the emitting jump insn.
2528         PR target/36362
2529         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
2530         is not bool, boolify the whole *expr_p and convert to the desired type.
2532 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2534         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
2535         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
2536         Add omp_private_outer_ref hook, add another argument to
2537         omp_clause_default_ctor hook.
2538         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
2539         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
2540         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
2541         hook_tree_tree_tree_tree_null.
2542         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
2543         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
2544         * hooks.c (hook_tree_tree_tree_tree_null): New function.
2545         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
2546         * tree.def (OMP_TASK): New tree code.
2547         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
2548         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
2549         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
2550         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
2551         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
2552         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
2553         OMP_CLAUSE_COLLAPSE_EXPR): Define.
2554         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
2555         (OMP_DIRECTIVE_P): Add OMP_TASK.
2556         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
2557         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
2558         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
2559         and OMP_CLAUSE_UNTIED entries.
2560         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
2561         num_ops to 2.
2562         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2563         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
2564         * tree-pretty-print.c (dump_omp_clause): Handle
2565         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
2566         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
2567         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
2568         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
2569         warning about unsigned iterators.  Change decl/init/cond/incr
2570         arguments to TREE_VECs, check arguments for all collapsed loops.
2571         (c_finish_omp_taskwait): New function.
2572         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
2573         ws_clauses.
2574         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
2575         default_function_array_conversion on init.  Add par_clauses argument.
2576         If decl is present in parallel's lastprivate clause, change it to
2577         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
2578         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
2579         collapse count in clauses.
2580         (c_parser_omp_for, c_parser_omp_parallel): Adjust
2581         c_parser_omp_for_loop callers.
2582         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
2583         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
2584         (c_parser_omp_clause_name): Handle collapse and untied clauses.
2585         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
2586         functions.
2587         (c_parser_omp_clause_schedule): Handle schedule(auto).
2588         Include correct location in the error message.
2589         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
2590         and PRAGMA_OMP_CLAUSE_UNTIED.
2591         (OMP_TASK_CLAUSE_MASK): Define.
2592         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
2593         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
2594         * tree-nested.c (convert_nonlocal_omp_clauses,
2595         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
2596         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
2597         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2598         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
2599         OMP_CLAUSE_DECL.
2600         (conver_nonlocal_reference, convert_local_reference,
2601         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
2602         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
2603         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
2604         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
2605         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
2606         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
2607         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
2608         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
2609         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
2610         OMP_CLAUSE_UNTIED.
2611         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
2612         * c-common.h (c_finish_omp_taskwait): New prototype.
2613         * gimple-low.c (lower_stmt): Handle OMP_TASK.
2614         * tree-parloops.c (create_parallel_loop): Create 1 entry
2615         vectors for OMP_FOR_{INIT,COND,INCR}.
2616         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
2617         (make_edges): Handle OMP_TASK.
2618         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
2619         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2620         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
2621         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
2622         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
2623         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
2624         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
2625         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
2626         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
2627         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
2628         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
2629         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
2630         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
2631         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
2632         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
2633         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
2634         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
2635         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
2636         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
2637         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
2638         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
2639         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
2640         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
2641         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
2642         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
2643         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
2644         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
2645         original iterator is present in lastprivate clause or if
2646         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
2647         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2648         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
2649         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
2650         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
2651         if it is set, lookup var in outer contexts too.  Handle
2652         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
2653         to be implicitly determined firstprivate for task regions.
2654         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
2655         if it is set, lookup var in outer contexts too.  Set
2656         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
2657         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
2658         OMP_CLAUSE_UNTIED.  Take region_type as last argument
2659         instead of in_parallel and in_combined_parallel.
2660         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2661         Adjust callers.
2662         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
2663         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
2664         (new_omp_context): Set default_kind to
2665         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
2666         (omp_region_type): New enum.
2667         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
2668         fields, add region_type.
2669         (new_omp_context): Take region_type as argument instead of is_parallel
2670         and is_combined_parallel.
2671         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
2672         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
2673         ctx->is_combined_parallel checks.
2674         (gimplify_omp_task): New function.
2675         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
2676         OMP_CLAUSE_UNTIED.
2677         * omp-low.c (extract_omp_for_data): Use schedule(static)
2678         for schedule(auto).  Handle pointer and unsigned iterators.
2679         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
2680         Add loops argument.  Extract data for collapsed OMP_FOR loops.
2681         (expand_parallel_call): Assert sched_kind isn't auto,
2682         map runtime schedule to index 3.
2683         (struct omp_for_data_loop): New type.
2684         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
2685         Add loop, loops, collapse and iter_type fields.
2686         (workshare_safe_to_combine_p): Disallow combined for if
2687         iter_type is unsigned long long.  Don't combine collapse > 1 loops
2688         unless all bounds and steps are constant.  Adjust extract_omp_for_data
2689         caller.
2690         (expand_omp_for_generic): Handle pointer, unsigned and long long
2691         iterators.  Handle collapsed OMP_FOR loops.  Adjust
2692         for struct omp_for_data changes.  If libgomp function doesn't return
2693         boolean_type_node, add comparison of the return value with 0.
2694         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
2695         pointer, unsigned and long long iterators.  Adjust for struct
2696         omp_for_data changes.
2697         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
2698         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
2699         unsigned long long.  Allocate loops array, pass it to
2700         extract_omp_for_data.  For collapse > 1 loops use always
2701         expand_omp_for_generic.
2702         (omp_context): Add sfield_map and srecord_type fields.
2703         (is_task_ctx, lookup_sfield): New functions.
2704         (use_pointer_for_field): Use is_task_ctx helper.  Change first
2705         argument's type from const_tree to tree.  Clarify comment.
2706         In OMP_TASK disallow copy-in/out sharing.
2707         (build_sender_ref): Call lookup_sfield instead of lookup_field.
2708         (install_var_field): Add mask argument.  Populate both record_type
2709         and srecord_type if needed.
2710         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
2711         in srecord_type.
2712         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
2713         and DECL_FIELD_OFFSET.
2714         (scan_sharing_clauses): Adjust install_var_field callers.  For
2715         firstprivate clauses on explicit tasks allocate the var by value in
2716         record_type unconditionally, rather than by reference.
2717         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
2718         Use is_taskreg_ctx instead of is_parallel_ctx.
2719         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2720         (create_omp_child_function_name): Add task_copy argument, use
2721         *_omp_cpyfn* names if it is true.
2722         (create_omp_child_function): Add task_copy argument, if true create
2723         *_omp_cpyfn* helper function.
2724         (scan_omp_parallel): Adjust create_omp_child_function callers.
2725         Rename parallel_nesting_level to taskreg_nesting_level.
2726         (scan_omp_task): New function.
2727         (lower_rec_input_clauses): Don't run constructors for firstprivate
2728         explicit task vars which are initialized by *_omp_cpyfn*.  
2729         Pass outer var ref to omp_clause_default_ctor hook if
2730         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
2731         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
2732         OMP_CLAUSE_REDUCTION_INIT.
2733         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
2734         avoid duplicate setting of fields.  Handle
2735         OMP_CLAUSE_PRIVATE_OUTER_REF.
2736         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
2737         copy-out if TREE_READONLY, only copy-in.
2738         (expand_task_copyfn): New function.
2739         (expand_task_call): New function.
2740         (struct omp_taskcopy_context): New type.
2741         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
2742         New functions.
2743         (lower_omp_parallel): Rename to...
2744         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
2745         Call create_task_copyfn if srecord_type is needed.  Adjust
2746         sender_decl type.
2747         (task_shared_vars): New variable.
2748         (check_omp_nesting_restrictions): Warn if work-sharing,
2749         barrier, master or ordered region is closely nested inside OMP_TASK.
2750         Add warnings for barrier if closely nested inside of work-sharing,
2751         ordered, or master region.
2752         (scan_omp_1): Call check_omp_nesting_restrictions even for
2753         GOMP_barrier calls.  Rename parallel_nesting_level to
2754         taskreg_nesting_level.  Handle OMP_TASK.
2755         (lower_lastprivate_clauses): Even if some lastprivate is found on a
2756         work-sharing construct, continue looking for them on parent parallel
2757         construct.
2758         (lower_omp_for_lastprivate): Add lastprivate clauses
2759         to the beginning of dlist rather than end.  Adjust for struct
2760         omp_for_data changes.
2761         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
2762         not after it.  Handle collapsed OMP_FOR loops, adjust for
2763         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
2764         (get_ws_args_for): Adjust extract_omp_for_data caller.
2765         (scan_omp_for): Handle collapsed OMP_FOR
2766         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2767         (lower_omp_single_simple): If libgomp function doesn't return
2768         boolean_type_node, add comparison of the return value with 0.
2769         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
2770         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
2771         (parallel_nesting_level): Rename to...
2772         (taskreg_nesting_level): ... this.
2773         (is_taskreg_ctx): New function.
2774         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
2775         of is_parallel_ctx.
2776         (execute_lower_omp): Rename parallel_nesting_level to
2777         taskreg_nesting_level.
2778         (expand_omp_parallel): Rename to...
2779         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
2780         Call omp_task_call for OMP_TASK regions.
2781         (expand_omp): Adjust caller, handle OMP_TASK.
2782         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
2784         * bitmap.c (bitmap_default_obstack_depth): New variable.
2785         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
2786         if argument is NULL and bitmap_default_obstack is already initialized.
2787         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
2788         at the end.
2789         * matrix-reorg.c (matrix_reorg): Likewise.
2791 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
2793         * config/i386/i386.md (*indirect_jump): Macroize using P
2794         mode iterator.  Remove !TARGET_64BIT from insn constraints.
2795         (*tablejump_1): Ditto.
2796         (*indirect_jump_rex64): Remove insn pattern.
2797         (*tablejump_1_rex64): Ditto.
2798         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
2799         and eh_return_si insn patterns.
2801 2008-06-06  Richard Guenther  <rguenther@suse.de>
2803         * tree-ssa-structalias.c (merge_smts_into): Remove.
2804         (find_what_p_points_to): Do not bother to compute the
2805         points-to set for pt_anything pointers.
2806         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
2807         for pt_anything pointers is ok.
2809 2008-06-06  Jan Hubicka  <jh@suse.cz>
2811         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
2813 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2815         * cgraph.c: Fix typos in comments.
2816         (cgraph_availability_names): Fix string typo.
2817         * fold-const.c: Fix typos in comments.
2818         (fold_binary): Fix typo in warning.
2819         * genautomata.c: Fix typos in comments.
2820         (check_presence_pattern_sets): Fix typo in local variable.
2821         (output_description): Fix typo in output.
2822         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
2823         * hwint.h: Likewise.
2824         * matrix-reorg.c (check_allocation_function): Likewise.
2825         * omega.c (smooth_weird_equations): Likewise.
2826         * auto-inc-dec.c: Fix typos in comments.
2827         * bb-reorder.c: Likewise.
2828         * builtins.c: Likewise.
2829         * c-common.c: Likewise.
2830         * c-cppbuiltin.c: Likewise.
2831         * c-parser.c: Likewise.
2832         * c-pretty-print.c: Likewise.
2833         * cfgcleanup.c: Likewise.
2834         * cfgexpand.c: Likewise.
2835         * cfghooks.c: Likewise.
2836         * cfglayout.c: Likewise.
2837         * cfgloopmanip.c: Likewise.
2838         * cgraphunit.c: Likewise.
2839         * coverage.c: Likewise.
2840         * dbxout.c: Likewise.
2841         * df-byte-scan.c: Likewise.
2842         * df-core.c: Likewise.
2843         * df-problems.c: Likewise.
2844         * df-scan.c: Likewise.
2845         * dfp.c: Likewise.
2846         * dominance.c: Likewise.
2847         * domwalk.c: Likewise.
2848         * dse.c: Likewise.
2849         * dwarf2out.c: Likewise.
2850         * emit-rtl.c: Likewise.
2851         * et-forest.c: Likewise.
2852         * function.c: Likewise.
2853         * function.h: Likewise.
2854         * gcc.c: Likewise.
2855         * gcov-io.c: Likewise.
2856         * gcov.c: Likewise.
2857         * gcse.c: Likewise.
2858         * genattrtab.c: Likewise.
2859         * ggc-page.c: Likewise.
2860         * gimplify.c: Likewise.
2861         * gthr-lynx.h: Likewise.
2862         * haifa-sched.c: Likewise.
2863         * ipa-cp.c: Likewise.
2864         * ipa-inline.c: Likewise.
2865         * ipa-prop.h: Likewise.
2866         * ipa-pure-const.c: Likewise.
2867         * ipa-struct-reorg.c: Likewise.
2868         * ipa-struct-reorg.h: Likewise.
2869         * ipa-type-escape.c: Likewise.
2870         * ipa.c: Likewise.
2871         * loop-doloop.c: Likewise.
2872         * mips-tfile.c: Likewise.
2873         * mkmap-flat.awk: Likewise.
2874         * mkmap-symver.awk: Likewise.
2875         * modulo-sched.c: Likewise.
2876         * omp-low.c: Likewise.
2877         * optabs.c: Likewise.
2878         * optabs.h: Likewise.
2879         * opts.c: Likewise.
2880         * passes.c: Likewise.
2881         * postreload-gcse.c: Likewise.
2882         * postreload.c: Likewise.
2883         * predict.c: Likewise.
2884         * pretty-print.h: Likewise.
2885         * profile.c: Likewise.
2886         * protoize.c: Likewise.
2887         * ra-conflict.c: Likewise.
2888         * real.c: Likewise.
2889         * recog.c: Likewise.
2890         * regclass.c: Likewise.
2891         * regs.h: Likewise.
2892         * reload.c: Likewise.
2893         * rtl-error.c: Likewise.
2894         * rtlanal.c: Likewise.
2895         * scan.h: Likewise.
2896         * sched-rgn.c: Likewise.
2897         * see.c: Likewise.
2898         * stmt.c: Likewise.
2899         * target.h: Likewise.
2900         * tree-dfa.c: Likewise.
2901         * tree-eh.c: Likewise.
2902         * tree-flow-inline.h: Likewise.
2903         * tree-inline.c: Likewise.
2904         * tree-into-ssa.c: Likewise.
2905         * tree-loop-distribution.c: Likewise.
2906         * tree-nested.c: Likewise.
2907         * tree-parloops.c: Likewise.
2908         * tree-pass.h: Likewise.
2909         * tree-pretty-print.c: Likewise.
2910         * tree-profile.c: Likewise.
2911         * tree-scalar-evolution.c: Likewise.
2912         * tree-sra.c: Likewise.
2913         * tree-ssa-alias-warnings.c: Likewise.
2914         * tree-ssa-ccp.c: Likewise.
2915         * tree-ssa-coalesce.c: Likewise.
2916         * tree-ssa-dom.c: Likewise.
2917         * tree-ssa-dse.c: Likewise.
2918         * tree-ssa-forwprop.c: Likewise.
2919         * tree-ssa-live.c: Likewise.
2920         * tree-ssa-live.h: Likewise.
2921         * tree-ssa-loop-im.c: Likewise.
2922         * tree-ssa-loop-ivopts.c: Likewise.
2923         * tree-ssa-loop-niter.c: Likewise.
2924         * tree-ssa-loop-prefetch.c: Likewise.
2925         * tree-ssa-phiopt.c: Likewise.
2926         * tree-ssa-phiprop.c: Likewise.
2927         * tree-ssa-sccvn.c: Likewise.
2928         * tree-ssa-ter.c: Likewise.
2929         * tree-ssa-threadupdate.c: Likewise.
2930         * tree-ssa.c: Likewise.
2931         * tree-vect-analyze.c: Likewise.
2932         * tree-vect-transform.c: Likewise.
2933         * tree-vectorizer.c: Likewise.
2934         * tree-vn.c: Likewise.
2935         * tree-vrp.c: Likewise.
2936         * tree.c: Likewise.
2937         * tree.def: Likewise.
2938         * tree.h: Likewise.
2939         * unwind-dw2-fde.c: Likewise.
2940         * unwind.inc: Likewise.
2941         * value-prof.c: Likewise.
2942         * vmsdbgout.c: Likewise.
2944 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
2946         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
2947         always place FP constants in the TOC for TARGET_POWERPC64.
2948         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
2950 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
2952         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
2953         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
2954         enable for TARGET_E500_DOUBLE.
2955         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
2956         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
2957         floating-point modes like integer modes for E500 double.
2958         (rs6000_legitimate_offset_address_p): Likewise.
2959         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
2960         addressing for DDmode for E500 double.
2961         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
2962         modes as using 64-bits of registers for E500 double.
2963         (spe_build_register_parallel): Do not handle DDmode or TDmode.
2964         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
2965         specially for E500 double.
2966         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
2967         TDmode for E500 double.
2968         (rs6000_gimplify_va_arg): Only handle SDmode in registers
2969         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
2970         (rs6000_split_multireg_move): Do not handle TDmode specially for
2971         E500 double.
2972         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
2973         using 64-bit registers for E500 double.
2974         (emit_frame_save): Do not handle DDmode specially for E500 double.
2975         (gen_frame_mem_offset): Likewise.
2976         (rs6000_function_value): Do not call spe_build_register_parallel
2977         for DDmode or TDmode.
2978         (rs6000_libcall_value): Likewise.
2979         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
2980         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
2981         for E500 double.
2983 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2985         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
2986         in comments.
2988 2008-06-04  Junjie Gu <jgu@tensilica.com>
2990         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
2991         comparison for frame pointers.
2993 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
2995         PR target/27386
2996         * config/avr/avr.h (PUSH_ROUNDING): Remove.
2998 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3000         PR target/30243
3001         * builtins.c (expand_builtin_signbit): Don't take lowpart when
3002         register is already smaller or equal to required mode. 
3004 2008-06-04  Xinliang David Li  <davidxl@google.com>
3006         * tree-call-cdce.c: New file. 
3007         (cond_dead_built_in_calls): New static variable.
3008         (input_domain): New struct.
3009         (check_pow): New function.
3010         (check_builtin_call): Ditto.
3011         (check_target_format): Ditto.
3012         (is_call_dce_candidate): Ditto.
3013         (gen_one_condition): Ditto.
3014         (gen_conditions_for_domain): Ditto.
3015         (get_domain): Ditto.
3016         (gen_conditions_for_pow_cst_base): Ditto.
3017         (gen_conditions_for_pow_int_base): Ditto.
3018         (gen_conditions_for_pow): Ditto.
3019         (get_no_error_domain): Ditto.
3020         (gen_shrink_wrap_conditions): Ditto.
3021         (shrink_wrap_one_built_in_call): Ditto.
3022         (shink_wrap_conditional_dead_built_in_calls): Ditto.
3023         (tree_call_cdce): Ditto.
3024         (gate_call_cdce): Ditto.
3025         (pass_call_cdce): New gimple pass.
3026         * passes.c: (init_optimization_passes): New pass.
3027         * tree-pass.h: New pass declaration.
3028         * opts.c (decode_options): New flag setting.
3029         * common.opt: Add -ftree-builtin-call-dce flag.
3030         * Makefile.in: Add new source file.
3031         * tempvar.def: New tv_id.
3032         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
3034 2008-06-04  Richard Guenther  <rguenther@suse.de>
3036         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
3037         (is_call_clobbered): Always check var_ann->call_clobbered.
3038         (mark_call_clobbered): Always set var_ann->call_clobbered.
3039         (clear_call_clobbered): Always clear var_ann->call_clobbered.
3040         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
3041         (reset_alias_info): Clear call clobbering info on MTAGs and
3042         globals as well.
3043         (set_pt_anything): Set pt_global_mem.
3044         (create_tag_raw): Adjust comment.
3045         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
3047 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
3048             Maxim Kuvyrkov  <maxim@codesourcery.com>
3050         * config/m68k/m68k.opt (mxgot): New option.
3051         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
3052         (m68k_output_addr_const_extra): New.
3053         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
3054         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
3055         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
3056         * doc/invoke.texi (M680x0 Options): Document -mxgot.
3058 2008-06-04  Richard Guenther  <rguenther@suse.de>
3060         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
3061         negative or non-representable offsets.
3063 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3065         * config/i386/i386.c (ix86_gen_leave): New.
3066         (ix86_gen_pop1): Likewise.
3067         (ix86_gen_add3): Likewise.
3068         (ix86_gen_sub3): Likewise.
3069         (ix86_gen_sub3_carry): Likewise.
3070         (ix86_gen_one_cmpl2): Likewise.
3071         (ix86_gen_monitor): Likewise.
3072         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
3073         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3074         ix86_gen_one_cmpl2 and ix86_gen_monitor.
3075         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
3076         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
3077         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
3078         (ix86_expand_epilogue): Updated.
3079         (print_operand): Handle integer register operand for 'z'.
3080         (ix86_expand_strlensi_unroll_1): Likewise.
3081         (ix86_expand_strlen): Likewise.
3082         (ix86_expand_builtin): Likewise.
3083         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
3084         mov{q}/mov{l} and add{q}/add{l}.
3086 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3088         * config/i386/i386.md (P): New mode iterator.
3089         (SFmode push_operand splitter): Macroize DImode and SImode pushes
3090         using P mode iterator.
3091         (DFmode push_operand splitter): Ditto.
3092         (XFmode push_operand splitter): Ditto.
3093         (DFmode float_extend SFmode push_operand splitter): Ditto.
3094         (XFmode float_extend SFmode push_operand splitter): Do not generate
3095         SImode pushes for 64bit target.  Macroize Dimode and SImode
3096         pushes using P mode iterator.
3097         (XFmode float_extend DFmode push_operand splitter): Ditto.
3099 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3101         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
3102         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
3103         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
3104         return type to int.
3105         (ix86_call_abi_override): Remove check for call_used_regs.
3107 2008-06-03  Richard Guenther  <rguenther@suse.de>
3109         * tree-ssa-structalias.c (find_func_aliases): Add constraints
3110         for the lhs of calls if the return type contains pointers.
3112 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3114         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
3115         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
3116         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
3117         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
3118         of cfun and DEFAULT_ABI to deceide abi mode.
3119         (DEFAULT_ABI): New.
3120         (REG_PARM_STACK_SPACE): Removed.
3121         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
3122         (STACK_BOUNDARY): Use default target to deceide stack boundary.
3123         * config/i386/i386-protos.h (ix86_cfun_abi): New.
3124         (ix86_function_abi): Likewise.
3125         (ix86_function_type_abi): Likewise.
3126         (ix86_call_abi_override): Likewise.
3127         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
3128         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
3129         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
3130         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
3131         specific defines.
3132         (X86_64_REGPARM_MAX): New.
3133         (X86_64_SSE_REGPARM_MAX): New.
3134         (X64_REGPARM_MAX): New.
3135         (X64_SSE_REGPARM_MAX): New.
3136         (X86_32_REGPARM_MAX): New.
3137         (X86_32_SSE_REGPARM_MAX): New.
3138         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
3139         (ix86_function_regparm): Handle user calling abi.
3140         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
3141         by DEFAULT_ABI versus SYSV_ABI check.
3142         (ix86_reg_parm_stack_space): New.
3143         (ix86_function_type_abi): New.
3144         (ix86_call_abi_override): New.
3145         (ix86_function_abi): New.
3146         (ix86_cfun_abi): New.
3147         (init_cumulative_args): Call abi specific initialization.
3148         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
3149         (function_arg_64): Extend SSE_REGPARM_MAX check.
3150         (function_arg (): Remove TARGET_64BIT_MS_ABI.
3151         (ix86_pass_by_reference): Likewise.
3152         (ix86_function_value_regno_p): Likewise.
3153         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
3154         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
3155         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
3156         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
3157         (setup_incoming_varargs_64): Adjust regparm for call abi.
3158         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
3159         (ix86_va_start): Likewise.
3160         (ix86_gimplify_va_arg): Likewise.
3161         (ix86_expand_prologue): Likewise.
3162         (output_pic_addr_const): Likewise.
3163         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
3164         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
3165         (x86_output_mi_thunk): Likewise.
3166         (x86_function_profiler): Likewise.
3167         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
3168         (SYSV_ABI, MS_ABI): New constants.
3169         (DEFAULT_ABI): New.
3170         (init_regs): Add prototype of function in regclass.c file.
3171         (OVERRIDE_ABI_FORMAT): New.
3172         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
3173         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
3174         (OUTGOING_REG_PARM_STACK_SPACE): New.
3175         (ix86_reg_parm_stack_space): New prototype.
3176         (CUMULATIVE_ARGS): Add call_abi member.
3177         (machine_function): Add call_abi member.
3178         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
3179         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
3181 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
3183         PR target/34879
3184         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
3185         (avr_builtin_setjmp_frame_value): New function.
3186         * config/avr/avr.md (nonlocal_goto_receiver): Define.
3187         (nonlocal_goto): Define.
3189 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
3191         * config/mips/mips.c (mips_emit_loadgp): Return early if
3192         there is nothing do to, otherwise emit a blockage if
3193         !TARGET_EXPLICIT_RELOCS || crtl->profile.
3194         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
3196 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3198         * configure.ac: Drop unneeded backslash ending up in config.in.
3199         * acinclude.m4: Likewise.
3200         * config.in: Regenerate.
3202 2008-05-26  Jan Hubicka  <jh@suse.cz>
3204         * predict.c (maybe_hot_frequency_p): Break out of...
3205         (maybe_hot_bb_p): ... here.
3206         (maybe_hot_edge_p): New.
3207         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
3208         * basic-block.h (maybe_hot_edge_p): Declare.
3210 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
3212         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
3213         (*cmpfp_<mode>_cc): Ditto.
3214         (*fp_jcc_8<mode>_387): Ditto.
3215         (*fop_<MODEF:mode>_2_i387): Ditto.
3216         (*fop_<MODEF:mode>_3_i387): Ditto.
3217         (*fop_xf_2_i387): Ditto.
3218         (*fop_xf_3_i387): Ditto.
3220 2008-06-02  Tomas Bily  <tbily@suse.cz>
3222         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
3224 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3226         * config/mips/mips.c (mips_valid_offset_p): New function.
3227         (mips_valid_lo_sum_p): Likewise.
3228         (mips_classify_address): Use them.
3229         (mips_force_address): New function.
3230         (mips_legitimize_address): Use it.
3231         * config/mips/mips.md (MOVE128): New mode iterator.
3232         (movtf): Require TARGET_64BIT.  Remove empty strings.
3233         (*movtf_internal): Rename to...
3234         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
3235         of "R" and use {,fp}{load,store} attributes instead of "multi".
3236         Use a separate define_split.
3237         (*movtf_mips16): New pattern.
3239 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3241         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
3242         * config/mips/mips.c (mips_expand_before_return): New function.
3243         (mips_expand_epilogue): Call it.
3244         * config/mips/mips.md (return): Turn into a define_expand.
3245         (*return): New insn.
3247 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3249         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
3250         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
3251         functions.  Do not emit uses and clobbers of CONCATs; individually
3252         use and clobber their operands.
3253         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
3254         gen_clobber, emit_use and gen_use.
3255         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3256         (expand_builtin_return): Likewise.
3257         * cfgbuild.c (count_basic_blocks): Likewise.
3258         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3259         * explow.c (emit_stack_restore): Likewise.
3260         * expmed.c (extract_bit_field_1): Likewise.
3261         * expr.c (convert_move, emit_move_complex_parts): Likewise.
3262         (emit_move_multi_word, store_constructor): Likewise.
3263         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
3264         (thread_prologue_and_epilogue_insns): Likewise.
3265         * lower-subreg.c (resolve_simple_move): Likewise.
3266         * optabs.c (widen_operand, expand_binop): Likewise.
3267         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
3268         * reload.c (find_reloads): Likewise.
3269         * reload1.c (eliminate_regs_in_insn): Likewise.
3270         * stmt.c (expand_nl_goto_receiver): Likewise.
3271         * config/alpha/alpha.md (builtin_longjmp): Likewise.
3272         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
3273         * config/arm/arm.c (arm_load_pic_register): Likewise.
3274         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
3275         * config/arm/arm.md (untyped_return): Likewise.
3276         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
3277         * config/avr/avr.c (expand_prologue): Likewise.
3278         * config/bfin/bfin.c (do_unlink): Likewise.
3279         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
3280         * config/cris/cris.c (cris_expand_prologue): Likewise.
3281         * config/darwin.c (machopic_indirect_data_reference): Likewise.
3282         (machopic_legitimize_pic_address): Likewise.
3283         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
3284         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
3285         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
3286         (ix86_expand_convert_uns_didf_sse): Likewise.
3287         (ix86_expand_vector_init_general): Likewise.
3288         * config/ia64/ia64.md (eh_epilogue): Likewise.
3289         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
3290         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
3291         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
3292         (config/iq2000/iq2000.c): Likewise.
3293         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
3294         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3295         (builtin_longjmp): Likewise.
3296         * config/mn10300/mn10300.md (call, call_value): Likewise.
3297         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
3298         * config/pdp11/pdp11.md (abshi2): Likewise.
3299         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3300         * config/s390/s390.c (s390_emit_prologue): Likewise.
3301         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
3302         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
3303         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
3304         * config/sh/sh.c (prepare_move_operands): Likewise.
3305         (output_stack_adjust, sh_expand_epilogue): Likewise.
3306         (sh_set_return_address, sh_expand_t_scc): Likewise.
3307         * config/sparc/sparc.c (load_pic_register): Likewise.
3308         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
3309         * config/spu/spu.c (spu_expand_epilogue): Likewise.
3310         * config/v850/v850.c (expand_epilogue): Likewise.
3312 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
3314         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
3315         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
3316         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
3317         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
3318         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
3319         stack pointer register.
3320         (output_movhi): Remove code for interrupt specific writing to the 
3321         stack pointer register.
3323 2008-05-31  Richard Guenther  <rguenther@suse.de>
3325         PR tree-optimization/34244
3326         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
3327         (tree_expr_nonzero_warnv_p): Likewise.
3328         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3329         ssa_name_nonnegative_p.
3330         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
3331         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
3332         not tree_expr_nonzero_warnv_p.
3334         PR tree-optimization/36262
3335         Revert
3336         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
3338         PR tree-optimization/34244
3339         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
3340         (record_numbers_of_iterations): New function.
3341         (execute_vrp): Cache the numbers of iterations of loops.
3342         * tree-scalar-evolution.c (scev_reset_except_niters):
3343         New function.
3344         (scev_reset): Use scev_reset_except_niters.
3345         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
3347 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
3349         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3350         __WORKAROUND_RETS when appropriate.
3352 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
3354         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
3355         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
3356         mode iterator.
3357         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
3358         *fop_df_comm_sse insn patterns using MODEF mode iterator.
3359         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
3360         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
3361         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
3362         *fop_df_1_mixed insn patterns using MODEF mode iterator.
3363         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
3364         *fop_df_1_sse insn patterns using MODEF mode iterator.
3365         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
3366         *fop_df_1_i387 insn patterns using MODEF mode iterator.
3367         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
3368         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
3369         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
3370         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
3371         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
3372         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
3373         (*fop_xf_4_i387): Use <MODE> for mode attribute.
3374         (*fop_xf_5_i387): Ditto.
3375         (*fop_xf_6_i387): Ditto.
3377 2008-05-30  Richard Guenther  <rguenther@suse.de>
3379         * builtins.c (build_string_literal): Avoid generating
3380         a non-gimple_val result.
3382 2008-05-30  DJ Delorie  <dj@redhat.com>
3384         * exec-tool.in: Use an environment variable (private) instead of a
3385         file (shared) as a semaphore, so as to not break parallel builds.
3387 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
3389         * optabs.c (maybe_encapsulate_block): Remove.
3390         (emit_libcall_block): Adjust accordingly.
3391         * optabs.h (maybe_encapsulate_block): Remove prototype.
3393         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
3394         Don't use maybe_encapsulate_block.
3396 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
3398         * config/rs6000/rs6000.c (rs6000_legitimize_address,
3399         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
3400         rtx is a SYMBOL_REF before calling get_pool_constant.
3402 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3404         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
3406 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
3408         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
3409         rather than OS names to choose INO_T_EQ definition.
3410         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
3411         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
3413 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
3415         PR target/36348
3416         * config/darwin-f.c: New.
3417         * config/t-darwin: Added rule to build darwin-f.o.
3418         * config.gcc: Defined new variable, fortran_target_objs.
3419         (*-*-darwin*): Set fortran_target_objs.
3420         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
3421         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
3422         * configure: Regenerated.
3424 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3426         PR target/35771
3427         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
3428         canonical type if needed.
3430 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3432         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
3434 2008-05-29  Richard Guenther  <rguenther@suse.de>
3436         PR tree-optimization/36343
3437         PR tree-optimization/36346
3438         PR tree-optimization/36347
3439         * tree-flow.h (clobber_what_p_points_to): Declare.
3440         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
3441         pointed-to variable is dereferenced is irrelevant to whether
3442         the pointer can access the pointed-to variable.
3443         (clobber_what_p_points_to): New function.
3444         * tree-ssa-alias.c (set_initial_properties): Use it.
3445         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
3446         call clobber check for NMTs.
3448 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
3449         
3450         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
3451         for printing gcov_type.
3453 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
3455         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
3456         and the eh region information.
3457         * value-prof.c (gimple_move_stmt_histograms): New function.
3458         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
3460 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
3462         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
3464 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
3466         * value-prof.c (tree_ic_transform): Print counts.
3467         * tree-profile.c (tree_gen_ic_func_profiler):
3468         Clear __gcov_indreict_call_callee variable to avoid misattribution
3469         of the profile.
3471 2008-05-28  Rafael Espindola  <espindola@google.com>
3473         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
3474         invalid sharing.
3476 2008-05-28  Richard Guenther  <rguenther@suse.de>
3478         PR tree-optimization/36339
3479         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
3480         and clobbering code out of the loop.
3482 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
3484         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
3485         letters defined.
3487         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
3488         s390_contiguous_bitmask_p, s390_symref_operand_p,
3489         s390_check_symref_alignment, s390_reload_larl_operand,
3490         s390_reload_symref_address): New functions.
3491         (s390_branch_condition_mnemonic): Support compare and branch
3492         instructions.
3493         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
3494         and 'W' constraints.
3495         (s390_secondary_reload): Add secondary reloads for unaligned
3496         symbol refs or symbol refs to floating point or QI/TI mode
3497         integer values.
3498         (legitimate_address_p): Accept symbol references as addresses.
3499         (s390_expand_insv): Use rotate and insert selected bits
3500         instruction for insv when building for z10.
3501         (print_operand_address): Handle symbol ref addresses.
3502         (print_operand): Output modifier 'c' added for signed byte values.
3503         (s390_encode_section_info): Mark symbol refs with
3504         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
3506         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
3507         (length attribute): RRF, RRR have 4 byte length.
3508         (FPALL, INTALL): New mode iterators added.
3509         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
3510         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
3511         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
3512         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
3513         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
3514         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
3515         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
3516         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
3517         instructions.
3518         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
3519         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
3520         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
3521         reload<INTALL:mode><P:mode>_toreg_z10,
3522         reload<FPALL:mode><P:mode>_tomem_z10,
3523         reload<FPALL:mode><P:mode>_toreg_z10,
3524         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
3525         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
3526         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
3527         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
3528         definition.
3529         (movmem, clrmem, cmpmem): New splitters added.
3531         * config/s390/predicates.md (larl_operand): Use
3532         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
3533         SYMBOL_REF_ALIGN1_P.
3534         (s390_signed_integer_comparison,
3535         s390_unsigned_integer_comparison): New predicates.
3537         * config/s390/s390-protos.h (s390_check_symref_alignment,
3538         s390_contiguous_bitmask_p, s390_reload_larl_operand,
3539         s390_reload_symref_address,
3540         s390_compare_and_branch_condition_mask): Prototypes added.
3542         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
3543         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
3544         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
3546 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
3548         * config/s390/s390.c (z10_cost): New cost function for z10.
3549         (s390_handle_arch_option, override_options): Support -march=z10 switch.
3550         (s390_issue_rate): Adjust issue rate for z10.
3551         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
3552         (processor_flags): Add PF_Z10.
3553         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
3554         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
3555         * gcc/config.gcc: Add z10.
3557 2008-05-28  Richard Guenther  <rguenther@suse.de>
3559         PR tree-optimization/36291
3560         * tree-flow. h (struct gimple_df): Remove var_anns member.
3561         * tree-flow-inline.h (gimple_var_anns): Remove.
3562         (var_ann): Simplify.
3563         * tree-dfa.c (create_var_ann): Simplify.
3564         (remove_referenced_var): Clear alias info from var_anns of globals.
3565         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
3566         (delete_tree_ssa): Clear alias info from var_anns of globals.
3567         Do not free var_anns.
3568         (var_ann_eq): Remove.
3569         (var_ann_hash): Likewise.
3571 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
3573         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
3574         and loongson2f entries.
3575         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
3576         * config/mips/mips.h (processor_type): Add Loongson-2E
3577         and Loongson-2F entries.
3578         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
3579         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
3580         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
3581         * doc/invoke.texi (MIPS Options): Document loongson2e
3582         and loongson2f processor names.
3584 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3586         PR target/35767
3587         PR target/35771
3588         * config/i386/i386.c (ix86_function_arg_boundary): Use
3589         alignment of canonical type.
3590         (ix86_expand_vector_move): Check unaligned memory access for
3591         all SSE modes.
3593 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3595         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
3596         Moved to the front of file.
3598 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
3599             H.J. Lu  <hongjiu.lu@intel.com>
3601         * dwarf2out.c (current_fde): New.
3602         (add_cfi): Use it.
3603         (lookup_cfa:): Likewise.
3604         (dwarf2out_end_epilogue): Likewise.
3605         (dwarf2out_note_section_used): Likewise.
3607 2008-05-27  Michael Matz  <matz@suse.de>
3609         PR c++/27975
3610         * c.opt (Wenum-compare): New warning option.
3611         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
3613 2008-05-27  Michael Matz  <matz@suse.de>
3615         PR middle-end/36326
3616         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
3617         non-BLKmode types.
3618         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
3619         into memory as tail calls.
3621 2008-05-27  Richard Guenther  <rguenther@suse.de>
3623         PR tree-optimization/36339
3624         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
3625         pointers cause all addressable variables to be call clobbered.
3627 2008-05-27  Richard Guenther  <rguenther@suse.de>
3629         PR tree-optimization/36245
3630         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
3632 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3634         * config/s390/s390.md: Replace all occurences of the 'm'
3635         constraint with 'RT'.
3637 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3639         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
3640         definitions added.
3641         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
3642         "*movdi_64".
3643         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
3644         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
3645         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
3647 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3649         * reload.c: (find_reloads): Skip alternatives according to the
3650         "enabled" attribute. Constify the constraint variable.
3651         * recog.c (get_attr_enabled): Add default implementation.
3652         (extract_insn): Set the alternative_enabled_p array
3653         in the recog_data struct.
3654         (preprocess_constraints, constrain_operands): Skip
3655         alternatives according to the "enabled" attribute
3656         * recog.h (struct recog_data): New field alternative_enabled_p.
3657         (skip_alternative): New inline function.
3658         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
3659         (record_reg_classes): Skip alternative according to the
3660         "enabled" attribute.
3662         * doc/md.texi: Add documention for the "enabled" attribute.
3664 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3666         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
3667         * postreload.c (reload_cse_simplify_operands): Replace 'm'
3668         constraint with TARGET_MEM_CONSTRAINT.
3669         * recog.c (asm_operand_ok, preprocess_constraints,
3670         constrain_operands): Likewise.
3671         * regclass.c (record_reg_classes): Likewise.
3672         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
3673         * reload1.c (maybe_fix_stack_asms): Likewise.
3674         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3675         * recog.h: Adjust comment.
3676         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
3677         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
3678         * doc/md.texi: Add a note to description of 'm' constraint.
3679         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
3681 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3683         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
3684         that the bitfield is of integral type before testing its precision.
3686 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3687             Sa Liu  <saliu@de.ibm.com> 
3689         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
3690         __modti3, __udivti3, __umodti3 and __udivmodti4.
3691         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
3692         that implement TImode mul and div functions.
3693         * config/spu/multi3.c: New. Implement __multi3.
3694         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
3695         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
3696         functions on SPU.
3698 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
3700         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
3701         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
3702         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
3703         tls_sysv_suffix): New mode and mode attribute iterators.
3704         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
3705         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
3706         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
3707         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
3708         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
3709         iterators.
3711 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3713         PR tree-optimization/36329
3714         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
3715         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
3716         * cgraphbuild.c (initialize_inline_failed): Use the latter
3717         macro in lieu of the former.
3718         * ipa-inline.c (cgraph_mark_inline): Likewise.
3719         (cgraph_decide_inlining_of_small_function): Likewise.
3720         (cgraph_decide_inlining): Likewise.
3721         (cgraph_decide_inlining_incrementally): Likewise.
3723 2008-05-26  Tristan Gingold  <gingold@adacore.com>
3724             Anatoly Sokolov  <aesok@post.ru>
3726         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
3727         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
3728         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
3729         optimization for 'avr6' architecture.
3731 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
3733         PR target/34932
3734         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
3736 2008-05-26  Richard Guenther  <rguenther@suse.de>
3738         * tree-ssa-sccvn.c (expr_has_constants): Declare.
3739         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
3741 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
3743         PR middle-end/36253
3744         * caller-save.c (insert_restore): Verify alignment of spill space.
3745         (insert_save): Likewise.
3746         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
3747         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
3748         (STACK_SLOT_ALIGNMENT): Likewise.
3749         * function.c (LOCAL_ALIGNMENT): Removed.
3750         (get_stack_local_alignment): New.
3751         (assign_stack_local): Use it.  Set alignment on stack slot.
3752         (assign_stack_temp_for_type): Use get_stack_local_alignment.
3753         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
3754         (STACK_SLOT_ALIGNMENT): New.
3755         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
3756         stack slot in XFmode.
3758         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
3760 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3762         PR/36321
3763         * config/i386/i386.md (allocate_stack_worker_64): Make sure
3764         argument operand in rax isn't removed.
3766 2008-05-26  Richard Guenther  <rguenther@suse.de>
3768         PR middle-end/36300
3769         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
3770         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
3772 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3774         PR bootstrap/36331
3775         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
3777 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
3779         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
3780         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
3782 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3784         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
3785         build a trampoline if we don't want one.
3786         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
3787         return zero for nested functions if we don't want a trampoline.
3789 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3791         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
3793 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3795         PR fortran/18428
3796         * c.opt: Removed undocumented option '-lang-fortran'.
3797         * c-common.h: Removed global variable 'lang_fortran'.
3798         * c-opts.c (c_common_handle_option): Removed code to handle
3799         option '-lang-fortran'. Updated includes.
3800         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
3801         definition of '__GFORTRAN__'.
3802         (define__GNUC__): Reimplemented to use BASEVER and
3803         cpp_define_formatted.
3804         (builtin_define_with_value_n): Removed.
3805         * c-incpath.h: Renamed to ...
3806         * incpath.h: ... this.
3807         * c-incpath.c: Renamed to ...
3808         * incpath.c: ... this. Updated includes.
3809         * fix-header.c: Updated includes.
3810         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
3811         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
3812         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
3814 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3816         * tree.h: Update the table of flags used on tree nodes.
3817         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
3818         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
3819         (FORCED_LABEL): Add access check.
3820         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
3821         (ASM_INPUT_P): Likewise.
3822         (ASM_VOLATILE_P): Likewise.
3823         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
3824         (OMP_SECTION_LAST): Access private_flag directly.
3825         (OMP_RETURN_NOWAIT): Likewise.
3826         (OMP_PARALLEL_COMBINED): Likewise.
3827         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
3828         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
3829         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
3830         deprecated_flag directly.
3832 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3834         * final.c (frame_pointer_needed): Removed.
3835         * flags.h (frame_pointer_needed): Likewise.
3837         * function.h (rtl_data): Add frame_pointer_needed.
3838         (frame_pointer_needed): New.
3840 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
3842         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
3844 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
3846         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
3847         SRC is a REG.
3849 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
3851         * c-common.c (strip_array_types): Move function to..
3852         * tree.c: ..here.
3853         (get_inner_array_type): Delete.
3854         * c-common.h (strip_array_types): Move declaration to..
3855         * tree.h: ..here.
3856         (get_inner_array_type): Delete.
3857         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
3858         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
3859         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3860         * config/pa/pa.c (emit_move_sequence): Likewise.
3862 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3864         * config/i386/i386.md (*sse_prologue_save_insn): Set length
3865         attribute to 34.
3867 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
3869         * function.c: Include target hook for nonlocal_goto frame value.
3871 2008-05-24  Richard Guenther  <rguenther@suse.de>
3873         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
3874         variable can be only accessed through a pointer or a union.
3876 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3878         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
3879         * doc/extend.texi: Likewise.
3881 2008-05-23  DJ Delorie  <dj@redhat.com>
3883         * config/m32c/jump.md (untyped_call): Add.
3885         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
3886         for A24 to PSImode.
3887         (m32c_address_cost): Detail costs for indirect offsets.
3889 2008-05-23  Rafael Espindola  <espindola@google.com>
3891         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
3892         if a node is a SUBREG.
3893         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
3894         is a SUBREG.
3896 2008-05-23  Paul Brook  <paul@codesourcery.com>
3897             Carlos O'Donell  <carlos@codesourcery.com>
3899         * doc/extend.texi: Clarify use of __attribute__((naked)).
3900         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3901         * target.h (gcc_target): Add allocate_stack_slots_for_args.
3902         * function.c (use_register_for_decl): Use
3903         targetm.calls.allocate_stack_slots_for_args.
3904         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3905         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
3906         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
3908 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3910         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
3912 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
3914         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
3915         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
3916         is only rounded once.
3918 2008-05-23  Richard Guenther  <rguenther@suse.de>
3920         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
3922 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
3923             Jakub Jelinek  <jakub@redhat.com>
3925         PR target/36079
3926         * configure.ac: Handle --enable-cld.
3927         * configure: Regenerated.
3928         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
3929         * config/i386/i386.h (struct machine_function): Add needs_cld field.
3930         (ix86_current_function_needs_cld): New define.
3931         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
3932         (cld): New isns pattern.
3933         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
3934         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
3935         * config/i386/i386.opt (mcld): New option.
3936         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
3937         TARGET_CLD and ix86_current_function_needs_cld.
3938         (override_options): Use -mcld by default for 32-bit code if
3939         USE_IX86_CLD.
3941         * doc/install.texi (Options specification): Document --enable-cld.
3942         * doc/invoke.texi (Machine Dependent Options)
3943         [i386 and x86-64 Options]: Add -mcld option.
3944         (Intel 386 and AMD x86-64 Options): Document -mcld option.
3946 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
3947         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
3948         (return_in_memory_64): Likewise.
3949         (return_in_memory_ms_64): Likewise.
3951 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3953         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
3954         * builtins.c (fold_builtin_fpclassify): New.
3955         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
3956         * builtins.def (BUILT_IN_FPCLASSIFY): New.
3957         * c-common.c (handle_type_generic_attribute): Adjust to accept
3958         fixed arguments before an elipsis.
3959         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
3960         * doc/extend.texi: Document __builtin_fpclassify.
3962 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
3964         * omp-low.c (gate_expand_omp_ssa): Remove.
3965         (pass_expand_omp_ssa): Remove.
3966         (gate_expand_omp): Do not check for flag_openmp_ssa.
3967         * common.opt (-fopenmp-ssa): Remove.
3968         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
3970 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3972         * config/sh/sh.opt (mfixed-range): New option.
3973         * config/sh/sh-protos.h (sh_fix_range): Declare.
3974         * config/sh/sh.c (sh_fix_range): New function.
3975         * config/sh/sh.h (sh_fixed_range_str): Declare.
3976         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
3977         is not empty.
3978         * doc/invoke.texi (SH Options): Document -mfixed-range.
3980 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
3982         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
3983         it before the redeclaration.
3985 2008-05-22  Anatoly Sokolov <aesok@post.ru>
3987         * config/avr/avr.c (get_sequence_length): Add new function.
3988         (expand_prologue, expand_epilogue): Remove duplicate code.
3990 2008-05-22  Rafael Espindola  <espindola@google.com>
3992         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
3993         sharing.
3995 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
3997         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
3998         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4000         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4001         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4002         (vect_update_misalignment_for_peel): Likewise.
4003         (vector_alignment_reachable_p): Likewise.
4004         * tree-vect-transform.c (vectorizable_load): Likewise.
4005         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4006         (get_vectype_for_scalar_type): Pass mode of scalar_type
4007         to UNITS_PER_SIMD_WORD.
4009         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4010         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4011         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4012         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4013         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4015 2008-05-22  Ira Rosen  <irar@il.ibm.com>
4017         PR tree-optimization/36293
4018         * tree-vect-transform.c (vect_transform_strided_load): Don't check
4019         if the first load must be skipped because of a gap.
4021 2008-05-22  Richard Guenther  <rguenther@suse.de>
4023         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
4024         more cases of offset disambiguation that is possible if
4025         strict-aliasing rules apply.
4026         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
4027         for basic offset and type-based disambiguation.
4029 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4031         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
4032         ix86_expand_vector_set on V16QImode for SSE4.1.
4034 2008-05-21  Tom Tromey  <tromey@redhat.com>
4036         * c.opt (Wimport): Mark as undocumented.
4037         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
4038         -Wno-import.
4039         (Warning Options): Likewise.
4040         * doc/cppopts.texi: Don't mention -Wimport.
4042 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
4044         PR tree-optimization/36287
4045         PR tree-optimization/36286
4046         * lambda-code.c (build_access_matrix): Do not use the loop->num
4047         for computing the number of induction variables: use the loop depth
4048         instead.
4050 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
4052         PR/36280
4053         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
4054         option -f(no-)leading-underscore.
4056 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4058         * config/i386/i386.c (ix86_expand_vector_init_general): Use
4059         GET_MODE_NUNITS (mode).
4061 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
4063         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
4064         (-mmulhw): Add 464 to description.
4065         (-mdlmzb): Likewise.
4066         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
4067         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
4068         464fp entries.
4069         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
4070         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
4071         * config/rs6000/rs6000.md: Update comments for 464.
4073 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
4075         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
4077 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4079         * config/i386/sse.md (vec_extractv4sf): Removed.
4080         (vec_extractv2df): Likewise.
4081         (vec_extractv2di): Likewise.
4082         (vec_extractv4si): Likewise.
4083         (vec_extractv8hi): Likewise.
4084         (vec_extractv16qi): Likewise.
4085         (vec_extract<mode>): New.
4087 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4089         * config/i386/sse.md (vec_setv4sf): Removed.
4090         (vec_setv2df): Likewise.
4091         (vec_setv2di): Likewise.
4092         (vec_setv4si): Likewise.
4093         (vec_setv8hi): Likewise.
4094         (vec_setv16qi): Likewise.
4095         (vec_set<mode>): New.
4097 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4099         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
4100         goto for vec_concat and vec_interleave.
4102 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4104         * config/i386/sse.md (vec_initv4sf): Removed.
4105         (vec_initv2df): Likewise.
4106         (vec_initv2di): Likewise.
4107         (vec_initv4si): Likewise.
4108         (vec_initv8hi): Likewise.
4109         (vec_initv16qi): Likewise.
4110         (vec_init<mode>): New.
4112 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
4114         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
4116 2008-05-21  Tom Tromey  <tromey@redhat.com>
4118         * ggc-zone.c (lookup_page_table_if_allocated): New function.
4119         (zone_find_object_offset): Likewise.
4120         (gt_ggc_m_S): Likewise.
4121         (highest_bit): Likewise.
4122         * ggc-page.c (gt_ggc_m_S): New function.
4123         * stringpool.c (string_stack): Remove.
4124         (init_stringpool): Update.
4125         (ggc_alloc_string): Use ggc_alloc.
4126         (maybe_delete_ident): New function.
4127         (ggc_purge_stringpool): Likewise.
4128         (gt_ggc_m_S): Remove.
4129         * ggc-common.c (ggc_protect_identifiers): New global.
4130         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
4131         ggc_protect_identifiers.
4132         * ggc.h (ggc_protect_identifiers): Declare.
4133         (gt_ggc_m_S): Update.
4134         (ggc_purge_stringpool): Declare.
4135         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
4136         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
4137         special case.
4138         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
4140 2008-05-21  David S. Miller  <davem@davemloft.net>
4142         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
4143         tmake_file.
4145 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4147         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
4148         once finished.
4150 2008-05-20  David Daney  <ddaney@avtrex.com>
4152         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
4153         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
4154         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4155         UNSPEC_UPDATE_GOT_VERSION): Renumber.
4156         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
4157         (atomic_hiqi_op): New define_code_iterator.
4158         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
4159         mips_expand_compare_and_swap_12.
4160         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
4161         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
4162         (sync_<optab><mode>, sync_old_<optab><mode>,
4163         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
4164         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
4165         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
4166         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
4167         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
4168         (test_and_set_12): New insn.
4169         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
4170         sync_new_<optab><mode>, sync_old_nand<mode>,
4171         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
4172         clobber to operand 0 for SI and DI mode insns.
4173         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
4174         mips_gen_fn_4): New typedefs.
4175         (mips_gen_fn_ptrs): Define new union type.
4176         (mips_expand_compare_and_swap_12): Remove declaration.
4177         (mips_expand_atomic_qihi): Declare function.
4178         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
4179         (mips_expand_atomic_qihi): ... this.  Use new generator function
4180         parameter.
4181         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
4182         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
4183         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
4184         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
4185         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
4186         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
4187         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
4188         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
4189         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
4190         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
4191         New macros.
4193 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
4195         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
4196         the missing break.
4198 2008-05-20  Anatoly Sokolov <aesok@post.ru>
4200         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
4201         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
4202         (avr_attribute_table): Add 'OS_main' function attribute.
4203         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
4204         functions with 'OS_main' attribute.
4206 2008-05-20  Richard Guenther  <rguenther@suse.de>
4208         PR tree-optimization/35204
4209         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
4210         helper, split out from ...
4211         (DFS): ... here.  Make the DFS walk non-recursive.
4213 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
4214             Jan Sjodin  <jan.sjodin@amd.com>
4216         PR tree-optimization/36181
4217         * tree-parloops.c (loop_has_vector_phi_nodes): New.
4218         (parallelize_loops): Don't parallelize when the loop has vector
4219         phi nodes.
4221 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4222             Sebastian Pop  <sebastian.pop@amd.com>
4224         * tree-loop-linear.c (gather_interchange_stats): Look in the access
4225         matrix, and never look at the tree representation of the memory
4226         accesses.
4227         (linear_transform_loops): Computes parameters and access matrices.
4228         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
4229         when fails.
4230         (access_matrix_get_index_for_parameter): New.
4231         * tree-data-ref.h (struct access_matrix): New.
4232         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
4233         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
4234         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
4235         am_vector_index_for_loop): New.
4236         (struct data_reference): Add field access_matrix.
4237         (DR_ACCESS_MATRIX): New.
4238         (compute_data_dependences_for_loop): Update declaration.
4239         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
4240         * lambda.h (lambda_vector_vec_p): Declared.
4241         * lambda-code.c: Depend on pointer-set.h.
4242         (lambda_collect_parameters_from_af, lambda_collect_parameters,
4243         av_for_af_base, av_for_af, build_access_matrix,
4244         lambda_compute_access_matrices): New.
4245         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
4247 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
4249         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
4250         $SOURCEDIR/include.
4252 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4253             Sebastian Pop  <sebastian.pop@amd.com>
4255         PR tree-optimization/36206
4256         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
4257         FOLD_CONVERSIONS.
4258         (instantiate_scev_1): Rename flags to fold_conversions.
4259         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
4260         outeside instantiation_loop.
4261         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
4262         (evolution_function_is_affine_or_constant_p): Removed.
4263         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
4264         instantiate_scev.
4265         (analyze_siv_subscript): Pass in the loop nest number.
4266         Call evolution_function_is_affine_in_loop instead of 
4267         evolution_function_is_affine_p.
4268         (analyze_overlapping_iterations): Pass in the loop nest number.
4270 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4271             Sebastian Pop  <sebastian.pop@amd.com>
4273         PR tree-optimization/36206
4274         * tree-chrec.h (chrec_fold_op): New.
4275         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
4276         and other trees.
4278 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
4280         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
4281         (DIRS_EQ): New.
4282         (remove_duplicates): Do not set inode on non-inode systems.
4283         Use DIRS_EQ.
4285 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
4287         * config.gcc (tm_file): Update comments about relative pathnames.
4289 2008-05-20  Richard Guenther  <rguenther@suse.de>
4291         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
4292         * tree-ssa-sccvn.c (process_scc): Likewise.
4293         * tree-ssa-sink.c (execute_sink_code): Likewise.
4294         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
4295         * tree-vrp.c (process_assert_insertions): Likewise.
4296         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
4297         (perform_tree_ssa_dce): Likewise.
4298         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
4299         (dump_dominator_optimization_stats): Likewise.
4300         * tree-vectorizer.c (vectorize_loops): Likewise.
4302 2008-05-20  Richard Guenther  <rguenther@suse.de>
4304         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
4306 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
4308         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
4309         (ix86_i386elf_return_in_memory): Likewise.
4310         (ix86_i386interix_return_in_memory): Likewise.
4311         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
4312         (SUBTARGET_RETURN_IN_MEMORY): New.
4313         * config/i386/i386elf.h: Likewise.
4314         * config/i386/ptx4-i.h: Likewise.
4315         * config/i386/sol2-10.h: Likewise.
4316         * config/i386/sysv4.h: Likewise.
4317         * config/i386/vx-common.h: Likewise.
4318         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
4319         * config/i386/i386.c (ix86_return_in_memory): Made static and
4320         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
4321         (ix86_i386elf_return_in_memory): Removed.
4322         (ix86_i386interix_return_in_memory): Removed.
4323         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
4324         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
4326 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
4328         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
4330 2008-05-19  Xinliang David Li  <davidxl@google.com>
4332         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
4333         * opts.c: Ditto.
4334         * common.opt: Ditto.
4335         * doc/invoke.texi: Ditto.
4337 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
4339         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
4340         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
4342 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4344         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
4345         sizes of operand array from 8/4 to 4/2.
4346         (ix86_expand_vector_init_general): Change size of operand array
4347         from 32 to 16.  Remove op0, op1 and half_mode.
4349 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4351         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
4352         (ix86_expand_vector_init_interleave): Likewise.
4353         (ix86_expand_vector_init_general): Use them.  Assert
4354         word_mode == SImode when n_words == 4.
4356 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
4358         * config/i386/i386.c (ix86_secondary_reload): New static function.
4359         (TARGET_SECONDARY_RELOAD): New define.
4360         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
4361         * config/i386/i386.md (reload_outqi): Remove.
4363 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4365         PR middle-end/35509
4366         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
4367         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
4368         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
4369         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
4370         (fold_builtin_1): Likewise.
4371         * builtins.def (BUILT_IN_ISINF_SIGN): New.
4372         c-common.c (check_builtin_function_arguments): Handle
4373         BUILT_IN_ISINF_SIGN.
4374         * doc/extend.texi: Document __builtin_isinf_sign.
4375         * fold-const.c (operand_equal_p): Handle COND_EXPR.
4377 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
4379         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
4380         EH cleanup at the end of the pass, search for those that have been
4381         turned into forwarder blocks and do the cleanup on their successor.
4383 2008-05-18  Richard Guenther  <rguenther@suse.de>
4385         * tree-cfg.c (verify_gimple_expr): Allow conversions from
4386         pointers to sizetype and vice versa.
4388 2008-05-18 Xinliang David Li   <davidxl@google.com>
4390         * gcc/tree-ssa-dce.c: Coding style fix.
4391         (check_pow): Documentation comment. 
4392         (check_log): Documenation comment. Coding style fix.
4393         (is_unnecessary_except_errno_call): Ditto.
4394         (gen_conditions_for_pow): Ditto.
4395         (gen_conditions_for_log): Ditto.
4396         (gen_shrink_wrap_conditions): Ditto.
4397         (shrink_wrap_one_built_in_calls): Ditto.
4398         * gcc/doc/invoke.texi: Better documentation string.
4399         * ChangeLog: Fix wrong change log entries from 
4400         May 17 checkin on function call DCE.
4402 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4404         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
4406 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
4408         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
4409         * df-problems.c (simulation routines): Fixed block comment to
4410         properly say how to add forwards scanning functions.
4411         
4412 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4414         * tree-inline.c (setup_one_parameter): Remove dead code.
4416 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4418         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
4419         a BIT_AND_EXPR only for an INTEGER_TYPE.
4421 2008-05-17 Xinliang David Li   <davidxl@google.com>
4423         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
4424         (check_pow, check_log, is_unnecessary_except_errno_call): New 
4425         functions to check for eliminating math functions that are pure 
4426         except for setting errno.
4427         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
4428         general condition expressions for shrink-wrapping pow/log calls.
4429         (gen_shrink_wrap_conditions): Ditto.
4430         (shrink_wrap_one_built_in_call): Ditto.
4431         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
4432         (mark_operand_necessary): If debugging, output if OP is necessary.
4433         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
4434         unnecessary.
4435         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
4436         opt level >= 2.
4437         * gcc/common.opt: New user flag -ftree-builtin-dce.
4438         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
4440 2008-05-16  David S. Miller  <davem@davemloft.net>
4442         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
4443         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
4445 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
4447         PR target/36246
4448         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
4450 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4452         * ifcvt.c (dead_or_predicable): Rename
4453         df_simulate_one_insn_backwards to df_simulate_one_insn.
4454         * recog.c (peephole2_optimize): Ditto.
4455         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
4456         Ditto.
4457         * df.h: Rename df_simulate_one_insn_backwards to
4458         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
4459         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
4460         scanning of defs and uses.
4461         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
4462         (df_simulate_one_insn_forwards): Removed.
4464 2008-05-16  Doug Kwan  <dougkwan@google.com>
4466         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
4467         QNaN & SNaN.
4468         (real_from_string): Handle NaNs and Inf as approriate.
4470 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
4472         * doc/gty.texi (Source Files Containing Type Information): Note
4473         that headers should appear first in the gtfiles list.
4475 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4477         * tree.def (COND_EXEC): Properly documented this code.
4479 2008-05-16  Diego Novillo  <dnovillo@google.com>
4481         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
4482         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
4483         the new field.
4485 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4487         * tree-ssa-dse (max_stmt_uid): Removed.
4488         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
4489         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
4490         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
4491         * function.h (cfun.last_stmt_uid): New field.
4492         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
4493         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
4494         New functions.
4495         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
4496         (create_stmt_ann): Initialize the ann->uid field.
4497         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
4498         with new calls.
4499         * tree-flow.h (renumber_gimple_stmt_uids): New function.
4501 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
4503         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
4504         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
4505         (init_empty_tree_cfg): Call it.
4507 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4509         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
4510         Update all users.
4512 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4514         * doc/invoke.text (-fdump-tree-*-verbose): New option.
4515         * tree-dump.c (dump_options): New verbose option.
4516         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
4517         Add verbose dump.
4518         * tree-pass.h (TDF_VERBOSE): New dump flag.
4519         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
4520         (tree-flow.h): Added include.
4521         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
4523 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
4525         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
4527         From Jie Zhang  <jie.zhang@analog.com>
4528         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4529         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
4530         mcpu=bf561-none and mcpu=bf561-0.2.
4531         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4532         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
4533         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4534         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
4535         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
4536         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
4537         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
4538         option.
4539         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
4540         (cputype_selected): Remove.
4541         (bfin_handle_option): Don't use cputype_selected.
4542         (override_options): When no mcpu option, enable all workarounds.
4543         Don't use bfin_workarounds.
4544         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
4545         processor type.
4546         (DEFAULT_CPU_TYPE): Don't define.
4548 2008-05-16  Richard Guenther  <rguenther@suse.de>
4550         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
4551         on deletion of the last stmt.
4553 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4555         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
4556         V8HImode for SSE2 and V16QImode for SSE4.1.
4558 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
4560         * cgraph.h (compute_inline_parameters): Made public.
4561         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
4562         variable_generate_summary, function_write_summary,
4563         variable_write_summary, variable_read_summary.  Added generate_summary,
4564         write_summary, read_summary.
4565         * cgraphunit.c (cgraph_process_new_functions): Changed call from
4566         pass_ipa_inline.function_generate_summary, to
4567         compute_inline_parameters. 
4568         * ipa-inline.c (compute_inline_parameters): Made public and added
4569         node parameter.
4570         (compute_inline_parameters_for_current): New function.
4571         (pass_inline_param): Now calls compute_inline_parameters_for_current.
4572         (inline_generate_summary): Removed parameter and made to loop over
4573         all cgraph nodes.
4574         (pass_ipa_inline): Updated for new IPA_PASS structure.
4575         * passes.c (execute_ipa_summary_passes): Now is called once per
4576         pass rather than once per node*pass.
4577         
4578 2008-05-15  Anatoly Sokolov <aesok@post.ru>
4580         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
4581         avr_have_mul_p, avr_asm_only_p): Remove variables.
4582         (avr_override_options): Remove initialization of removed variables.
4583         (avr_file_start):  Convert removed variables to fields of 
4584         'struct base_arch_s *avr_current_arch'. 
4585         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
4586         (AVR_HAVE_MUL): (Ditto.).
4587         (AVR_HAVE_MOVW): (Ditto.).
4588         (AVR_HAVE_LPMX): (Ditto.). 
4589         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
4590         avr_asm_only_p): Remove declaration.
4592 2008-05-15  Diego Novillo  <dnovillo@google.com>
4594         * config/arm/arm.c (arm_return_in_memory): Fix return type.
4595         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
4597 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
4599         PR middle-end/36194
4600         * combine.c (check_conversion): Rename back to check_promoted_subreg.
4601         Don't call record_truncated_value from here.
4602         (record_truncated_value): Turn it into a for_each_rtx callback.
4603         (record_truncated_values): New function.
4604         (combine_instructions): Call note_uses with record_truncated_values.
4605         Change name of check_conversion to check_promoted_subreg. 
4607 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
4609         * doc/sourcebuild.texi: Document support for torture tests.
4611 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
4613         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
4614         to alternative 4 of operand 2.
4616 2008-05-15  Richard Guenther  <rguenther@suse.de>
4618         * tree-pass.h (current_pass): Declare.
4619         (get_pass_for_id): Likewise.
4620         * passes.c (passes_by_id, passes_by_id_size): New globals.
4621         (set_pass_for_id): New function.
4622         (get_pass_for_id): Likewise.
4623         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
4624         (execute_function_todo): Flush per function statistics.
4625         * toplev.c (compile_file): Init statistics.
4626         (general_init): Do early statistics initialization.
4627         (finalize): Finish statistics.
4628         * statistics.h (statistics_early_init): Declare.
4629         (statistics_init): Likewise.
4630         (statistics_fini): Likewise.
4631         (statistics_fini_pass): Likewise.
4632         (statistics_counter_event): Likewise.
4633         (statistics_histogram_event): Likewise.
4634         * statistics.c: New file.
4635         * Makefile.in (OBJS-common): Add statistics.o.
4636         (statistics.o): Add dependencies.
4637         * doc/invoke.texi (-fdump-statistics): Document.
4639         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
4640         (insert): Likewise.
4641         (execute_pre): Use statistics_counter_event.
4642         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
4643         (substitute_and_fold): Increment it.  Use statistics_counter_event.
4645 2008-05-15  Diego Novillo  <dnovillo@google.com>
4647         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
4649         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
4650         * tree-ssa-alias.c (new_type_alias): Remove references to
4651         sub-variables from comment.
4652         * tree-ssa-operands.c (swap_tree_operands): Likewise.
4654 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4656         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
4657         attribute to 1 only for insertps alternative.
4659 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4661         * config/bfin/bfin.md (loadbytes): New pattern.
4662         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
4663         (bfin_init_builtins): Initialize it.
4664         (bdesc_1arg): Add it.
4666 2008-05-15  Sa Liu  <saliu@de.ibm.com>
4668         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
4669         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
4670         * testsuite/lib/target-supports.exp: Add
4671         check_effective_target_fortran_integer_16.
4673 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4675         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
4676         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
4677         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
4678         (TARGET_RETURN_IN_MEMORY): Define.
4680 2008-05-15  Richard Guenther  <rguenther@suse.de>
4682         PR middle-end/36244
4683         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
4684         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
4685         represent unmodifiable vars.
4687 2008-05-15  Richard Guenther  <rguenther@suse.de>
4689         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
4690         INDIRECT_REF and TARGET_MEM_REF.
4691         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4692         TARGET_MEM_REF.
4694 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
4695             H.J. Lu  <hongjiu.lu@intel.com>
4697         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
4698         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
4699         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
4700         insn alternatives.  Add missing alternatives.
4701         (*vec_concatv2di_rex64_sse4_1): Likewise.
4702         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
4703         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
4704         Require TARGET_SSE.
4706 2008-05-15  Richard Guenther  <rguenther@suse.de>
4708         PR tree-optimization/36009
4709         PR tree-optimization/36204
4710         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
4711         (determine_invariantness_stmt): Record the loop a store is
4712         always executed in.
4713         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
4714         dependency.
4716 2008-05-15  Richard Guenther  <rguenther@suse.de>
4718         PR tree-optimization/34330
4719         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
4720         through the pointer will alias the SMT.
4722 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
4724         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
4726 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4728         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
4730 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4731             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4733         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
4734         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
4735         (vashl_optab): New optab for vector/vector shifts.
4736         (vashr_optab): Ditto.
4737         (vlshr_optab): Ditto.
4738         (vrotl_optab): Ditto.
4739         (vrotr_optab): Ditto.
4740         (optab_subtype): New enum for optab_for_tree_code call.
4741         (optab_for_tree_code): Add enum optab_subtype argument.
4743         * optabs.c (optab_for_tree_code): Take an additional argument to
4744         distinguish between a vector shift by a scalar and vector shift by
4745         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
4746         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
4747         vector shift by a vector.
4748         (expand_widen_pattern_expr): Pass additional argument to
4749         optab_for_tree_code.
4751         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
4752         vrotl_optab, vrotr_optab.
4754         * expr.c (expand_expr_real_1): Update calls to
4755         optab_for_tree_code to distinguish between vector shifted by a
4756         scalar and vector shifted by a vector.
4757         * tree-vectorizer.c (supportable_widening_operation): Ditto.
4758         (supportable_narrowing_operation): Ditto.
4759         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
4760         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
4761         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
4762         (vect_create_epilog_for_reduction): Ditto.
4763         (vectorizable_reduction): Ditto.
4764         (vectorizable_operation): Ditto.
4765         (vect_strided_store_supported): Ditto.
4766         (vect_strided_load_supported): Ditto.
4767         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4768         * expmed.c (expand_shift): Ditto.
4770         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
4771         scalar type.
4772         (ashr@var{m}3): Ditto.
4773         (vashl@var{m}3): Document new vector/vector shift standard name.
4774         (vashr@var{m}3): Ditto.
4775         (vlshr@var{m}3): Ditto.
4776         (vrotl@var{m}3): Ditto.
4777         (vrotr@var{m}3): Ditto.
4779         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
4780         (PPERM_INVERT): Ditto.
4781         (PPERM_REVERSE): Ditto.
4782         (PPERM_REV_INV): Ditto.
4783         (PPERM_ZERO): Ditto.
4784         (PPERM_ONES): Ditto.
4785         (PPERM_SIGN): Ditto.
4786         (PPERM_INV_SIGN): Ditto.
4787         (PPERM_SRC1): Ditto.
4788         (PPERM_SRC2): Ditto.
4790         * config/i386/sse.md (mulv2di3): Add SSE5 support.
4791         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
4792         allows a memory operand to be the value being added, and split it
4793         to improve vectorization.
4794         (sse5_pmacsdqh_mem): Ditto.
4795         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
4796         (sse5_mulv2div2di3_high): Ditto.
4797         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
4798         (vec_pack_trunc_v4si): Ditto.
4799         (vec_pack_trunc_v2di): Ditto.
4800         (sse5_pcmov_<mode>): Remove code that tried to use use
4801         andps/andnps instead of pcmov.
4802         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
4803         pmacsdqh instructions.
4804         (vec_widen_smult_lo_v4si): Ditto.
4806         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
4807         (PPERM_INVERT): Ditto.
4808         (PPERM_REVERSE): Ditto.
4809         (PPERM_REV_INV): Ditto.
4810         (PPERM_ZERO): Ditto.
4811         (PPERM_ONES): Ditto.
4812         (PPERM_SIGN): Ditto.
4813         (PPERM_INV_SIGN): Ditto.
4814         (PPERM_SRC1): Ditto.
4815         (PPERM_SRC2): Ditto.
4816         (ix86_expand_sse_movcc): Move the SSE5 test after the if
4817         true/false tests.
4818         (ix86_expand_int_vcond): If SSE5 generate all possible integer
4819         comparisons.
4820         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
4821         says ignore whether the last reference is a memory operand.
4823 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4824             Paolo Bonzini <bonzini at gnu dot org>
4826         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
4827         shift patterns.
4829         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
4830         (vlshr<mode>3): Rename from vlshr<mode>3.
4831         (vashr<mode>3): Rename from vashr<mode>3.
4832         (mulv4sf3): Change the names of vector shift patterns.
4833         (mulv4si3): Ditto.
4834         (negv4sf2): Ditt.
4836         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
4837         shift insns.
4839         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
4840         (SI_SHLHI): Ditto.
4841         (SI_SHL): Ditto.
4842         (SI_SHLI): Ditto.
4843         (SI_ROTH): Ditto.
4844         (SI_ROTHI): Ditto.
4845         (SI_ROT): Ditto.
4846         (SI_ROTI): Ditto.
4847         (SPU_RL_0): Ditto.
4848         (SPU_RL_1): Ditto.
4849         (SPU_RL_2): Ditto.
4850         (SPU_RL_3): Ditto.
4851         (SPU_RL_4): Ditto.
4852         (SPU_RL_5): Ditto.
4853         (SPU_RL_6): Ditto.
4854         (SPU_RL_7): Ditto.
4855         (SPU_SL_0): Ditto.
4856         (SPU_SL_1): Ditto.
4857         (SPU_SL_2): Ditto.
4858         (SPU_SL_3): Ditto.
4859         (SPU_SL_4): Ditto.
4860         (SPU_SL_5): Ditto.
4861         (SPU_SL_6): Ditto.
4862         (SPU_SL_7): Ditto.
4864         * config/spu/spu.md (v): New iterator macro to add v for vector types.
4865         (floatunssidf2_internal): Change vector/vector shift names.
4866         (floatunsdidf2_internal): Ditto.
4867         (mulv8hi3): Ditto.
4868         (ashrdi3): Ditto.
4869         (ashrti3): Ditto.
4870         (cgt_df): Ditto.
4871         (cgt_v2df): Ditto.
4872         (dftsv): Ditto.
4873         (vashl<mode>3): Rename from ashl<mode>3.
4874         (vashr<mode>3): Rename from ashr<mode>3.
4875         (vlshr<mode>3): Rename from lshr<mode>3.
4876         (vrotl<mode>3): Rename from rotl<mode>3.
4878 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4880         PR target/36224
4881         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
4882         multiply gives the wrong value when doing widening multiplies.
4883         (vec_widen_smult_lo_v4si): Ditto.
4885 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
4887         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
4888         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
4889         emit_library_call_value. 
4890         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
4891         * tree.h (ECF_LIBCALL_BLOCK): Removed.
4892         * calls.c (initialize_argument_information, precompute_arguments, 
4893         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
4894         (precompute_arguments): Removed flags parameter.
4895         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
4896         
4897 2008-05-14  Richard Guenther  <rguenther@suse.de>
4899         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
4900         Make sure to register the store if the use is a PHI_NODE.
4902 2008-05-14  Olivier Hainque  <hainque@adacore.com>
4904         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
4905         memory if the component is to be referenced in BLKmode according
4906         to get_inner_reference.
4908 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
4910         * calls.c (emit_library_call_value_1): Restore code clearing
4911         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
4913 2008-05-14  Olivier Hainque  <hainque@adacore.com>
4914             Nicolas Roche  <roche@adacore.com>
4916         * configure.ac: Add support for a "gcc_subdir" variable in
4917         config-lang.in, to denote a subdirectory where the language/GCC
4918         integration files are to be found.
4919         * configure: Regenerate.
4921 2008-05-14  Ira Rosen  <irar@il.ibm.com>
4923         PR tree-optimization/36098
4924         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
4925         value for the first load in the group in case of a gap.
4926         (vect_build_slp_tree): Check that there are no gaps in loads.
4928 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
4930         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
4931         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
4932         expand_copysign_bit, ): Change call to emit_no_conflict_block to
4933         emit_insn and remove unneeded code to construct extra args.
4934         (emit_no_conflict_block): Removed.
4935         * optabls.h: (emit_no_conflict_block): Removed.
4936         * cse.c (cse_extended_basic_block): Remove search for
4937         REG_NO_CONFLICT note.
4938         * global.c: Removed incorrect comment added in revision 117.
4939         * expr.c (convert_move): Change call to emit_no_conflict_block to
4940         emit_insn.
4941         * recog.c: Change comments so that they do not mention
4942         REG_NO_CONFLICT.
4943         * local_alloc.c (combine_regs): Removed last parameter.
4944         (no_conflict_p): Removed.
4945         (block_alloc): Removed note, no_conflict_combined_regno and set
4946         local vars. Removed all code to process REG_NO_CONFLICT blocks.
4947         (combine_regs): Removed already_dead and code to look for
4948         REG_NO_CONFLICT notes.
4949         * lower_subreg (remove_retval_note): Removed code to look for
4950         REG_NO_CONFLICT block.
4951         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
4952         (resolve_clobber): Remove code to process libcalls that have
4953         REG_NO_CONFLICT notes.
4954         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
4955         case.
4956         * combine.c (can_combine_p, distribute_notes):  Removed
4957         REG_NO_CONFLICT case.
4958         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
4959         to emit_insns.
4960         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
4961         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
4962         Ditto.
4963         * reg-notes.def (NO_CONFLICT): Removed.
4965 2008-05-14  David S. Miller  <davem@davemloft.net>
4967         * config/sparc/sparc.c (sparc_profile_hook): If
4968         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
4969         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
4970         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
4972 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
4974         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
4976 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
4978         PR target/36222
4979         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
4980         and op1 expansion before vector concat to have less live pseudos.
4982 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
4984         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
4985         ix86_expand_vector_set if supported.
4987 2008-05-13  Diego Novillo  <dnovillo@google.com>
4988             Kenneth Zadeck  <zadeck@naturalbridge.com>
4990         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
4992         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
4993         phinodes_print_statistics, init_ssanames, fini_ssanames,
4994         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
4995         release_ssa_name, release_defs, replace_ssa_name_symbol,
4996         ssanames_print_statistics): Move ...
4997         * tree-flow.h: ... here.
4998         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
4999         Use FN instead of cfun.
5000         (make_ssa_name_fn): Rename from make_ssa_name.
5001         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5002         * tree-flow-inline.h (make_ssa_name): Move from
5003         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
5004         * omp-low.c (expand_omp_parallel):
5005         * tree-flow-inline.h (redirect_edge_var_map_result):
5006         * tree-ssa.c (init_tree_ssa): Add argument FN.
5007         Use it instead of cfun.  Update all users.
5009 2008-05-13  Tom Tromey  <tromey@redhat.com>
5011         PR preprocessor/22168:
5012         * doc/cpp.texi (Top): Update menu.
5013         (Alternatives to Wrapper #ifndef): New node.
5014         (Other Directives): Document deprecation.
5015         (Obsolete Features): Remove menu.
5016         (Assertions): Merge node into Obsolete Features.
5017         (Obsolete once-only headers): Move earlier; rename to Alternatives
5018         to Wrapper #ifndef.
5019         * doc/cppopts.texi: Update.
5020         * c.opt (Wdeprecated): Enable for C and ObjC.
5021         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
5022         (C++ Dialect Options): Move -Wno-deprecated from here to...
5023         (Warning Options): ... here.
5025 2008-05-13  Richard Guenther  <rguenther@suse.de>
5027         PR middle-end/36227
5028         * fold-const.c (fold_sign_changed_comparison): Do not allow
5029         changes in pointer-ness.
5031 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5033         PR target/24713
5034         * config/sh/sh.c (sh_expand_prologue): Don't clear
5035         RTX_FRAME_RELATED_P for push insns.
5037 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
5039         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
5041 2008-05-12  Anatoly Sokolov <aesok@post.ru>
5043         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
5044         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
5045         Use 'machine->is_leaf' instead of 'leaf_func_p'.
5047 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5049         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
5050         (*vec_concatv4sf_sse): This.
5051         (*sse2_concatv2si): Renamed to ...
5052         (*vec_concatv2si_sse2): This.
5053         (*sse1_concatv2si): Renamed to ...
5054         (*vec_concatv2si_sse): This.
5055         (*vec_concatv2di_rex): Renamed to ...
5056         (*vec_concatv2di_rex64): This.
5057         (*vec_concatv2si_sse4_1): New.
5058         (*vec_concatv2di_rex64_sse4_1): Likewise.
5060 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
5062         PR rtl-optimization/36111
5063         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
5064         that was created for swappable operands.
5066 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
5068         PR ada/36001
5069         * Makefile.in: Substitute GNATMAKE and GNATBIND.
5070         * configure.ac: Add call to ACX_PROG_GNAT.
5072 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
5074         * optc-gen.awk: Fix comment typo.
5076 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5078         * pretty-print.c (pp_integer_with_precision): Use
5079         HOST_LONG_LONG_FORMAT.
5081 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
5083         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
5084                 
5085 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5087         * config/i386/i386.c (bdesc_ptest): Removed.
5088         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
5089         (bdesc_args): Add __builtin_ia32_ptestz128,
5090         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
5091         (ix86_init_mmx_sse_builtins): Updated.
5092         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
5093         (ix86_expand_builtin): Updated.
5095 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5097         * tree-cfg.c (valid_fixed_convert_types_p): New function.
5098         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
5100 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
5102         * value-prof.c (interesting_stringop_to_profile): Do not
5103         return early for BUILT_IN_MEMPCPY.
5105 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5107         * calls.c (expand_call): Don't use callgraph to increase
5108         preferred_stack_boundary.
5110         * cgraph.h (cgraph_rtl_info): Use unsigned on
5111         preferred_incoming_stack_boundary.
5113         * final.c (rest_of_clean_state): Use unsigned on
5114         preferred_stack_boundary.
5116 2008-05-09  Tom Tromey  <tromey@redhat.com>
5118         PR preprocessor/22231:
5119         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
5120         proceeding.
5122 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
5124         PR tree-optimization/36129
5125         * tree-ssa-ccp.c: Include value-prof.h.
5126         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
5127         built-in function was folded to a constant.
5128         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
5130 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
5131             Sebastian Pop  <sebastian.pop@amd.com>
5133         * tree-scalar-evolution.c: Document instantiate_scev.
5134         (instantiate_parameters_1): Renamed instantiate_scev_1.
5135         Don't use the same loop for instantiation_loop and evolution_loop.
5136         (instantiate_scev): New.
5137         (instantiate_parameters): Moved...
5138         (resolve_mixers): Update call to instantiate_scev_1 to pass the
5139         same loop twice.  Maintains the semantics for this function.
5140         * tree-scalar-evolution.h (instantiate_scev): Declare.
5141         (instantiate_parameters): ...here.  Now static inline.
5142         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
5143         instead of resolve_mixers.
5145 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5147         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
5149 2008-05-09  Tomas Bily  <tbily@suse.cz>
5151         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
5152         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
5153         * tree-ssa-structalias.c (get_constraint_for): Likewise.
5154         * c-common.c (c_common_truthvalue_conversion): Likewise.
5155         * tree-object-size.c (compute_object_offset): Likewise.
5156         * tree-inline.c (estimate_num_insns_1): Likewise.
5157         * varasm.c (const_hash_1, compare_constant, copy_constant)
5158         (compute_reloc_for_constant, output_addressed_constants)
5159         (initializer_constant_valid_p): Likewise.
5160         * c-omp.c (check_omp_for_incr_expr): Likewise.
5161         * gimplify.c (gimplify_expr): Likewise.
5162         * c-typeck.c (c_finish_return): Likewise.
5163         * tree-vectorizer.c (supportable_widening_operation)
5164         (supportable_narrowing_operation): Likewise.
5165         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
5166         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
5167         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
5168         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
5169         (descr_info_loc): Likewise.
5170         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5171         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
5172         (fold_unary): Likewise.
5173         * builtins.c (get_pointer_alignment): Likewise.
5174         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
5175         (instantiate_parameters_1): Likewise.
5176         * tree.c (expr_align, stabilize_reference): Likewise.
5177         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5178         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5179         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
5180         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5181         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
5182         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
5183         Likewise.
5184         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
5185         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
5186         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5187         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
5188         (forward_propagate_comparison)
5189         (tree_ssa_forward_propagate_single_use_vars): Likewise.
5190         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
5191         * emit-rtl.c (component_ref_for_mem_expr)
5192         (set_mem_attributes_minus_bitpos): Likewise.
5193         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
5194         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
5195         Likewise.
5196         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
5197         (build_function_call, pointer_diff, build_compound_expr)
5198         (c_finish_return): Likewise.
5199         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
5200         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
5201         Likewise.
5202         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
5203         * expr.c (is_aligning_offset): Likewise.
5204         * tree-ssa-alias.c (is_escape_site): Likewise.
5205         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
5206         (check_all_va_list_escapes): Likewise.
5207         * tree-ssa-loop-ivopts.c (determine_base_object)
5208         (determine_common_wider_type): Likewise.
5209         * dojump.c (do_jump): Likewise.
5210         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
5211         * tree-gimple.c (is_gimple_cast): Likewise.
5212         * fold-const.c (decode_field_reference, )
5213         (fold_sign_changed_comparison, fold_unary, fold_comparison)
5214         (fold_binary): Likewise.
5215         * tree-ssa-alias-warnings.c (find_alias_site_helper)
5216         (already_warned_in_frontend_p): Likewise.
5217         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
5218         * tree.c (really_constant_p, get_unwidened): Likewise.
5219         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5220         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5221         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
5222         Likewise.
5223         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
5224         CONVERT_EXPR_P.
5225         (CONVERT_EXPR_P): Define.
5226         (CASE_CONVERT): Define.
5227         
5228 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
5230         PR middle-end/36117
5231         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
5232         (delete_unmarked_insns): When deleting a call, call
5233         delete_unreachable_blocks.
5234         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
5235         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
5237 2008-05-08  Richard Guenther  <rguenther@suse.de>
5239         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
5240         (-ftree-salias): Likewise.
5241         (salias-max-implicit-fields): Remove param documentation.
5242         (salias-max-array-elements): Likewise.
5243         * tree-pass.h (pass_create_structure_vars): Remove.
5244         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
5245         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
5246         * tree-ssa-alias.c (create_structure_vars): Remove.
5247         (gate_structure_vars): Likewise.
5248         (pass_create_structure_vars): Likewise.
5249         (gate_build_alias): Likewise.
5250         (pass_build_alias): Adjust to run always and dump the function.
5251         * common.opt (ftree-salias): Hide.
5252         * passes.c (init_optimization_passes): Remove
5253         pass_create_structure_vars, adjust comment.
5254         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
5255         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
5256         * opts.c (decode_options): Do not set flag_tree_salias.
5257         (common_handle_option): Add OPT_ftree_salias to the backward
5258         compatibility section.
5260 2008-05-08  Richard Guenther  <rguenther@suse.de>
5262         * tree-flow-inline.h (var_can_have_subvars): Move ...
5263         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
5264         * tree-flow.h (var_can_have_subvars): Remove.
5265         (push_fields_onto_fieldstack): Remove.
5266         (sort_fieldstack): Likewise.
5267         (struct fieldoff): Move ...
5268         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
5269         alias_set and base_for_components fields.
5270         (sort_fieldstack): Make static.
5271         (push_fields_onto_fieldstack): Likewise.  Remove code that
5272         handles anything but RECORD_TYPEs.  Remove alias_set and
5273         base_for_components handling.
5274         (create_variable_info_for): Adjust.
5276 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
5278         * common.opt (Wframe-larger-than=): Shorten the help message
5279         to one line.
5280         * doc/invoke.texi (Wframe-larger-than=): Add more description.
5282 2008-05-08  Rafael Espindola  <espindola@google.com>
5284         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
5285         trap.
5286         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
5287         trap and that both operands are gimple values.
5288         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
5289         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
5290         is a fp operation.
5292 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
5294         * read-rtl.c (join_c_conditions): Return the first string if the
5295         two strings are equal.
5297 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
5299         * gensupport.h (pred_data): Add a "num_codes" field.
5300         (add_predicate_code): Declare.
5301         * gensupport.c (add_predicate_code): New function.
5302         (std_pred_table): Add an "allows_const_p" field.
5303         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
5304         Remove the (incomplete) list of such codes from the codes field.
5305         (init_predicate_table): Use add_predicate_code.  Add all
5306         RTX_CONST_OBJs if allows_const_p is true.
5307         * genrecog.c (process_define_predicate): Use add_predicate_code.
5309 2008-05-08  David Daney  <ddaney@avtrex.com>
5310             Richard Sandiford  <rsandifo@nildram.co.uk>
5311         
5312         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
5313         special case of constant zero operands.
5314         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
5315         old and new values.  Special case constant zero values.
5316         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
5317         fails.
5318         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
5319         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
5321 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
5323         PR target/36090
5324         * simplify-rtx.c (simplify_plus_minus): Create CONST of
5325         similar RTX_CONST_OBJ before CONST_INT.
5327 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
5329         * stmt.c (expand_stack_restore): Change sa mode if needed.
5331 2008-05-08  Richard Guenther  <rguenther@suse.de>
5333         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
5334         return type to bool.
5335         (ix86_sol10_return_in_memory): Likewise.
5336         (ix86_i386elf_return_in_memory): Likewise.
5337         (ix86_i386interix_return_in_memory): Likewise.
5338         * config/i386/i386.c (ix86_return_in_memory): Likewise.
5339         (ix86_sol10_return_in_memory): Likewise.
5340         (ix86_i386elf_return_in_memory): Likewise.
5341         (ix86_i386interix_return_in_memory): Likewise.
5343 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
5345         PR bootstrap/36180
5346         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
5347         fndecl argument.
5348         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
5349         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
5350         declared in front.
5352 2008-05-08  Richard Guenther  <rguenther@suse.de>
5354         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
5355         * tree-data-ref.h (struct dr_alias): Remove subvars field.
5356         (DR_SUBVARS): Remove.
5357         * tree-dfa.c (dump_subvars_for): Remove.
5358         (debug_subvars_for): Likewise.
5359         (dump_variable): Do not dump subvars.
5360         (remove_referenced_var): Do not remove subvars.
5361         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
5362         (lookup_subvars_for_var): Remove.
5363         (get_subvars_for_var): Likewise.
5364         (get_subvars_at): Likewise.
5365         (get_first_overlapping_subvar): Likewise.
5366         (overlap_subvar): Likewise.
5367         * tree-flow.h (subvar_t): Remove.
5368         (struct var_ann_d): Remove subvars field.
5369         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
5370         argument.  Remove special handling of SFTs.
5371         (compute_tag_properties): Likewise.
5372         (set_initial_properties): Likewise.
5373         (compute_call_clobbered): Likewise.
5374         (count_mem_refs): Likewise.
5375         (compute_memory_partitions): Likewise.
5376         (compute_flow_insensitive_aliasing): Likewise.
5377         (setup_pointers_and_addressables): Likewise.
5378         (new_type_alias): Likewise.
5379         (struct used_part): Remove.
5380         (used_portions): Likewise.
5381         (struct used_part_map): Likewise.
5382         (used_part_map_eq): Likewise.
5383         (used_part_map_hash): Likewise.
5384         (free_used_part_map): Likewise.
5385         (up_lookup): Likewise.
5386         (up_insert): Likewise.
5387         (get_or_create_used_part_for): Likewise.
5388         (create_sft): Likewise.
5389         (create_overlap_variables_for): Likewise.
5390         (find_used_portions): Likewise.
5391         (create_structure_vars): Likewise.
5392         * tree.def (STRUCT_FIELD_TAG): Remove.
5393         * tree.h (MTAG_P): Adjust.
5394         (struct tree_memory_tag): Remove base_for_components and
5395         unpartitionable flags.
5396         (struct tree_struct_field_tag): Remove.
5397         (SFT_PARENT_VAR): Likewise.
5398         (SFT_OFFSET): Likewise.
5399         (SFT_SIZE): Likewise.
5400         (SFT_NONADDRESSABLE_P): Likewise.
5401         (SFT_ALIAS_SET): Likewise.
5402         (SFT_UNPARTITIONABLE_P): Likewise.
5403         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
5404         (union tree_node): Remove sft field.
5405         * alias.c (get_alias_set): Remove special handling of SFTs.
5406         * print-tree.c (print_node): Remove handling of SFTs.
5407         * tree-dump.c (dequeue_and_dump): Likewise.
5408         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
5409         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
5410         * tree-predcom.c (set_alias_info): Do not set subvars.
5411         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
5412         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
5413         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
5414         (add_vars_for_offset): Remove.
5415         (add_virtual_operand): Remove special handling of SFTs.
5416         (add_call_clobber_ops): Likewise.
5417         (add_call_read_ops): Likewise.
5418         (get_asm_expr_operands): Likewise.
5419         (get_modify_stmt_operands): Likewise.
5420         (get_expr_operands): Likewise.
5421         (add_to_addressable_set): Likewise.
5422         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
5423         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
5424         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
5425         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
5426         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
5427         (tree_node_structure): Likewise.
5428         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
5429         handling of SFTs.
5430         (find_what_p_points_to): Likewise.
5432 2008-05-08  Sa Liu  <saliu@de.ibm.com>
5434         * config/spu/spu.md: Fixed subti3 pattern.
5436 2008-05-08  Richard Guenther  <rguenther@suse.de>
5438         PR middle-end/36154
5439         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5440         sure to create a representative for trailing arrays for PTA.
5442 2008-05-08  Richard Guenther  <rguenther@suse.de>
5444         PR middle-end/36172
5445         * fold-const.c (operand_equal_p): Two objects which types
5446         differ in pointerness are not equal.
5448 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
5450         * calls.c (compute_argument_block_size): Add argument tree fndecl.
5451         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
5452         (emit_library_call_value_1): Add new variable fndecl initialized by
5453         NULL_TREE. It should be the decl type of orgfun, but this information
5454         seems not to be available here, so it uses the default calling abi.
5455         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
5456         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
5457         by TARGET_RETURN_IN_MEMORY.
5458         * config/i386/i386-interix.h: Likewise.
5459         * config/i386/i386.h: Likewise.
5460         * config/i386/i386elf.h: Likewise.
5461         * config/i386/ptx4-i.h: Likewise.
5462         * config/i386/sol2-10.h: Likewise.
5463         * config/i386/sysv4.h: Likewise.
5464         * config/i386/vx-common.h: Likewise.
5465         * config/cris/cris.h: Removed #if 0 clause.
5466         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
5467         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
5468         argument.
5469         (ix86_sol10_return_in_memory): Likewise.
5470         (ix86_i386elf_return_in_memory): New.
5471         (ix86_i386interix_return_in_memory): New.
5472         * config/mt/mt-protos.h (mt_return_in_memory): New.
5473         * config/mt/mt.c: Likewise.
5474         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
5475         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
5476         * config/bfin/bfin.h: Likewise.
5477         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
5478         argument.
5479         * config/bfin/bfin.c: Likewise.
5480         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
5481         * config/alpha/unicosmk.h: Likewise.
5482         * config/i386/cygming.h: Likewise.
5483         * config/iq2000/iq2000.h: Likewise.
5484         * config/mips/mips.h: Likewise.
5485         * config/mn10300/mn10300.h: Likewise.
5486         * config/rs6000/rs6000.h: Likewise.
5487         * config/score/score.h: Likewise.
5488         * config/spu/spu.h: Likewise.
5489         * config/v850/v850.h: Likewise.
5490         * defaults.h: Likewise.
5491         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
5492         * expr.c (emit_block_move): Adjust use of
5493         OUTGOING_REG_PARM_STACK_SPACE.
5494         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
5495         OUTGOING_REG_PARM_STACK_SPACE.
5496         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
5498 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
5500         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
5501         on OMP_RETURN for OMP_FOR.
5503         PR debug/35896
5504         * dwarf2out.c (dw_expand_expr, common_check): Removed.
5505         (fortran_common): New function.
5506         (gen_variable_die): Call fortran_common instead of common_check,
5507         adjust for it returning tree instead of rtx.  Formatting.
5509 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
5511         PR rtl/7335
5512         PR rtl/33826
5513         * see.c (see_copy_insn): Copy new pure const attributes for new call.
5514         * c-decl.c (merge_decls): Ditto.
5515         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
5516         to RTL_CONST_OR_PURE_CALL_P.
5517         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
5518         Initialized DECL_LOOPING_CONST_PURE.
5519         (process_call_operands): Set tree_side_effects properly.
5520         * tree.h (TREE_READONLY_DECL_P): Removed.
5521         (DECL_IS_PURE): Renamed to DECL_PURE_P.
5522         (DECL_LOOPING_OR_CONST_P): New macro.
5523         (struct tree_function_decl): Added looping_const_or_pure_p.
5524         (ECF_*) Renumbered.
5525         (ECF_LOOPING_OR_CONST_P): New macro.
5526         * rtlanal.c (pure_const_p): Removed.
5527         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
5528         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
5529         to RTL_CONST_CALL_P.
5530         * ipa-pure-const.c (pure_const_state_e): Added looping field.
5531         (check_decl, check_tree, check_call, scan_function): Initialize
5532         looping.
5533         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
5534         (static_execute): Set looping true for recursive functions.
5535         Undo setting state to IPA_NEITHER for recursive functions.
5536         * cse.c (cse_insn): 
5537         * ifcvt.c (noce_can_store_speculate_p): Changed
5538         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
5539         RTL_CONST_OR_PURE_CALL_P.
5540         * dse.c (scan_insn): Ditto.
5541         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
5542         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
5543         RTL_CONST_OR_PURE_CALL_P.
5544         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
5545         pure_call_p to RTL_CONST_CALL_P.
5546         * gimplify.c (gimplify_call_expr): Clear side effects for
5547         non-looping pure and constant calls.
5548         * calls.c (emit_call_1): Set rtl flags from ecf flags.
5549         (flags_from_decl_or_type): Set ecf flags from decl flags.
5550         (initialize_argument_information): Turn off
5551         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
5552         Change const to pure if callee_copies is true rather than just
5553         turning off const.
5554         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
5555         way of marking pure calls.
5556         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
5557         Remove hack that was supposed to fix pr7335 and remove old
5558         way of marking pure calls.
5559         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
5560         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
5561         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
5562         RTL_CONST_OR_PURE_CALL_P.
5563         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
5564         * loop-invariant.c (find_exits, find_invariant_bb): Changed
5565         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
5566         * sched-deps.c (schedule_analyze): Ditto.
5567         * rtl.h (struct rtx_def): Use call field, unchanging field, and
5568         return_val field of calls to represent pure and const function info.
5569         (CONST_OR_PURE_CALL_P): Deleted macro.
5570         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
5571         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
5572         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
5573         TREE_READONLY.
5574         * tree-optimize.c (execute_fixup_cfg): Added test for
5575         ECF_LOOPING_CONST_OR_PURE.
5576         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
5577         DECL_PURE_P.
5578         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
5579         effects for looping pure or const calls.
5580         (verify_gimple_expr): Added verification code. 
5581         * config/alpha/alpha.c (alpha_legitimize_address,
5582         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
5583         RTL_CONST_CALL_P.
5584         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
5585         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
5586         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
5587         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
5588         RTL_CONST_OR_PURE_CALL_P.
5589         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
5590         and const calls to be deleted.
5592 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
5594         PR target/35714
5595         * config/i386/mmx.md (mmx_subv2sf3): New expander.
5596         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
5597         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
5598         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5599         to handle nonimmediate operands.
5600         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
5601         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
5602         to handle nonimmediate operands.
5603         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
5604         (mmx_pmulhrwv4hi3): New expander.  Use
5605         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5606         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
5607         (sse2_umulv1siv1di3): New expander.  Use
5608         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5609         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
5610         (mmx_eq<mode>3): New expander.  Use
5611         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5612         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
5613         (mmx_uavgv8qi3): New expander.  Use
5614         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5615         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
5616         (mmx_uavgv4hi3): New expander.  Use
5617         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5619         * config/i386/sse.md
5620         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
5621         to handle nonimmediate operands.
5622         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
5623         to handle nonimmediate operands.
5624         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
5625         to handle nonimmediate operands.
5626         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
5627         to handle nonimmediate operands.
5628         (sse2_unpckhpd_exp): New expander.  Use
5629         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5630         (sse2_unpcklpd_exp): New expander.  Use
5631         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5632         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
5633         to handle nonimmediate operands.
5634         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
5635         to handle nonimmediate operands.
5636         (*sse2_<plusminus_insn><mode>3): Rename from
5637         sse2_<plusminus_insn><mode>3 insn pattern.
5638         (sse2_<plusminus_insn><mode>3): New expander.  Use
5639         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5640         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
5641         (sse2_umulv2siv2di3): New expander.  Use
5642         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5643         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
5644         (sse4_1_mulv2siv2di3): New expander.  Use
5645         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5646         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
5647         (sse2_pmaddwd): New expander.  Use
5648         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5649         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
5650         (sse2_eq<mode>3): New expander.  Use
5651         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5652         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
5653         (sse4_1_eqv2di3): New expander.  Use
5654         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5655         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
5656         (sse2_uavgv16qi3): New expander.  Use
5657         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5658         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
5659         (sse2_uavgv16qi3): New expander.  Use
5660         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5661         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
5662         (sse2_uavgv8hi3): New expander.  Use
5663         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5664         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
5665         (ssse3_pmulhrswv8hi3): New expander.  Use
5666         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5667         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
5668         (ssse3_pmulhrswv4hi3): New expander.  Use
5669         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5671         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
5672         (<sse>_vmmul<mode>3): Ditto.
5673         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
5674         (divv2df3): Ditto.
5675         (ssse3_pmaddubsw128): Use register_operand for operand 1.
5676         (ssse3_pmaddubsw): Ditto.
5678         * config/i386/i386.c (struct_builtin_description)
5679         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
5680         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
5681         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
5682         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
5683         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
5684         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
5685         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
5686         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
5687         (ix86_fixup_binary_operands): Assert that src1
5688         and src2 must have the same mode when swapped.
5689         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
5690         and ix86_binary_operator_ok.  Do not force operands in registers
5691         when optimizing.
5693 2008-05-07  Jan Hubicka  <jh@suse.cz>
5695         * cgraph.c (dump_cgraph_node): Update.
5696         * cgraph.h (cgraph_local_info): Break out inline summary.
5697         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
5698         hook.
5699         * ipa-inline (inline_summary): New accestor function.
5700         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
5701         cgraph_decide_inlining, compute_inline_parameters): Update.
5702         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
5704 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
5706         Cleanup ColdFire scheduling support and add V4 pipeline model.
5708         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
5709         (define_attr cpu): Add cfv4 value.
5710         (define_attr type, define_attr type1): Merge into a single 'type'
5711         attribute.  Update all uses.
5712         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
5713         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
5714         Update all uses.
5715         (define_attr opx_mem, define_attr opy_mem): Remove.
5716         (define_attr op_mem): Clean up, update comment.
5717         (define_attr size): Use specific values instead of general int.
5718         (define_attr guess, define_attr split): Remove.  Update all uses.
5719         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
5720         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
5721         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
5722         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
5723         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
5724         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
5725         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
5726         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
5727         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
5728         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
5729         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
5730         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
5731         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
5732         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
5733         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
5734         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
5735         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
5736         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
5737         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
5738         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
5739         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
5740         Update or set attributes.
5741         (stack_tie): New fake instruction.
5743         * config/m68k/m68k.h (TUNE_CFV4): New macro.
5744         (m68k_sched_attr_size): Update declaration.
5745         (m68k_sched_attr_type2): Remove.
5746         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
5747         Declare new bypass predicates.
5749         * config/m68k/m68k.c (m68k_sched_issue_rate,
5750         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
5751         implementations.
5752         (TARGET_SCHED_ISSUE_RATE,
5753         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
5754         (override_options): Handle scheduling for ColdFire V4 core.
5755         (m68k_expand_prologue): Emit stack_tie.
5756         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
5757         'OP_TYPE_FPN'.  Update all uses.
5758         (sched_guess_p): Remove.
5759         (sched_address_type): Handle symbolic addresses.
5760         (sched_get_operand): New static function.
5761         (sched_operand_type): Merge into sched_attr_op_type.
5762         (sched_attr_op_type): Handle FP registers, handle quick constants,
5763         update.
5764         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
5765         (m68k_sched_attr_size): Update.  Move logic to ...
5766         (sched_get_attr_size_int): New static function.
5767         (sched_get_opxy_mem_type): New static function.
5768         (m68k_sched_attr_op_mem): Update.
5769         (m68k_sched_attr_type2): Remove.
5770         (sched_cfv4_bypass_data): New static variable.
5771         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
5772         (m68k_sched_issue_rate): Implement scheduler hook.
5773         (struct _sched_ib: enabled_p): New field.
5774         (m68k_sched_variable_issue): Update.  Handle V4.
5775         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
5776         sched_dump_class_func_t, sched_dump_split_class,
5777         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
5778         sched_dump_dfa_class, m68k_sched_dump): Remove.
5779         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
5780         hook.
5781         (m68k_sched_init_global): Remove statisctics dumping, introduce
5782         sanity check that all instructions have pipeline reservations.  Handle
5783         ColdFire V4 core.
5784         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5785         Handle ColdFire V4 core.
5786         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
5787         New static functions.
5788         (m68k_sched_address_bypass_p): New bypass predicate.
5789         (sched_get_indexed_address_scale): New static function.
5790         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
5792         * cf.md: Update comments.
5793         (define_attr type2): Remove.  Use 'type' attribute instead.
5794         Update all uses.
5795         (cf_ib): Rename to cfv123_ib.  Update all uses.
5796         (cf_oep): Rename to cfv123_oep.  Update all uses.
5797         (cf_chr): Rename to cfv123_chr.  Update all uses.
5798         (cf_mem): Rename to cfv123_mem.  Update all uses.
5799         (cf_mac): Move to more appropriate place.
5800         (cfv123_guess): New automaton and cpu_unit.
5801         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
5802         Update uses of 'size' attribute.  Handle before reload scheduling.
5803         (cfv123_guess): New dummy reservation for unhandled instructions.
5804         (cfv4_*): Pipeline description of ColdFire V4 core.
5805         (ignore): New reservation to handle 'ignore' type.
5807 2008-05-07  Ian Lance Taylor  <iant@google.com>
5809         PR middle-end/36013
5810         * gimplify.c (find_single_pointer_decl_1): Don't look through
5811         indirections.
5812         (find_single_pointer_decl): Adjust comments.
5814 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
5816         PR middle-end/36137
5817         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
5818         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
5820         PR middle-end/36106
5821         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
5822         integral type rather than floating point, then VIEW_CONVERT_EXPR
5823         to the floating point type.
5825 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
5827         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
5828         TFmode op0 to register.
5830 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
5832         * c-decl.c (grokdeclarator): Comment typo.
5834 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
5836         * tree-flow.h: Remove prototype for computed_goto_p.
5837         * tree-cfg.c (computed_goto_p): Make static.
5839 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5841         PR target/35657
5842         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
5843         (contains_aligned_value_p): This.  Handle _Decimal128.
5844         (ix86_function_arg_boundary): Only align _Decimal128 to its
5845         natural boundary and handle it properly.
5847 2008-05-06  Martin Jambor  <mjambor@suse.cz>
5849         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
5850         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
5851         (ipcp_method_set_orig_node): Removed.
5852         (ipcp_cval_get_cvalue_type): Removed.
5853         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
5854         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
5855         (ipcp_cval_set_cvalue_type): Removed.
5856         (ipcp_cval_get_cvalue): Removed.
5857         (ipcp_cval_set_cvalue): Removed.
5858         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
5859         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
5860         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
5861         (ipcp_cval_meet): Renamed to ipa_lattice_meet
5862         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
5863         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
5864         (ipcp_get_ith_lattice): Changed parameters.
5865         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
5866         (ipcp_lattice_from_jfunc): Changed parameters.
5867         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
5868         (ipcp_method_cval_print): Added temporary variable info.
5869         (ipcp_redirect): Removed already unused local variable caller.
5870         (ipcp_redirect): New temporary variable orig_callee_info
5871         (ipcp_redirect): Removed newly unused local variable callee.
5872         (ipcp_redirect): Removed (a bit confusing) local variable type.
5873         (ipcp_insert_stage): Added local variable info.
5874         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
5875         renamed too
5876         (ipcp_formal_create): Removed.
5877         (ipcp_method_cval_set): Removed.
5878         (ipcp_propagate_stage): Renamed lattice variables.
5879         (ipcp_method_cval_set_cvalue_type): Removed.
5880         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
5881         (ipcp_print_all_lattices): Changed printed strings to refer to 
5882         lattices rather than cvals.
5883         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
5884         (ipcp_propagate_const): Changed formal parameters.
5885         (build_const_val): Changed formal parameters.
5886         (ipcp_insert_stage): Removed useless variable cvalue
5887         (build_const_val): Changed formal parameters.
5888         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
5889         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
5890         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
5891         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
5892         (ipcp_print_func_profile_counts): Changed string from "method" to 
5893         "function"
5894         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
5895         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
5896         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
5897         (ipcp_structures_print): Renamed to ipcp_print_all_structures
5898         (ipcp_profile_print): Renamed to ipcp_print_profile_data
5899         (ipcp_lat_is_const): Changed parameters and made inline.
5900         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
5901         (ipcp_redirect): Renamed to ipcp_need_redirect_p
5902         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
5903         the predicate condition directly
5904         (ipcp_propagate_stage): Added local variable args. Removed local
5905         variable callee.  (Both are mere code simplifications.)
5906         (ipcp_method_dont_insert_const): Renamed to
5907         ipcp_node_not_modifiable_p.
5908         (ipcp_node_not_modifiable_p): Made inline.
5909         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
5910         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
5911         (ipcp_print_all_lattices): Removed variable cvalue
5912         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
5913         Updated comments.
5915 2008-05-06  Olivier Hainque  <hainque@adacore.com>
5917         * tree-sra.c (try_instantiate_multiple_fields): Early return
5918         if field has POINTER_TYPE.
5920 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
5922         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
5923         by using 'q' specifier for instruction.
5924         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
5926 2008-05-06  Anatoly Sokolov <aesok@post.ru>
5928         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
5929         Change mode of zero_extract from QImode to HImode.
5930         (sign bit tests peepholes): (Ditto.).
5932 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
5934         * config/i386/mmx.md: Remove double backslashes from asm templates.
5935         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
5936         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5937         to handle nonimmediate operands.
5938         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
5939         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5940         to handle nonimmediate operands.
5941         (*mmx_<code>v2sf3_finite): New insn pattern.
5942         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
5943         (mmx_<code>v2sf3): New expander.  Use
5944         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5945         (mmx_<plusminus_insn><mode>3): New expander.  Use
5946         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5947         (*mmx_<plusminus_insn><mode>3): New insn pattern.
5948         (mmx_add<mode>3): Removed.
5949         (mmx_ssadd<mode>3): Ditto.
5950         (mmx_usadd<mode>3): Ditto.
5951         (mmx_sub<mode>3): Ditto.
5952         (mmx_sssub<mode>3): Ditto.
5953         (mmx_ussub<mode>3): Ditto.
5954         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
5955         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
5956         to handle nonimmediate operands.
5957         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
5958         insn pattern.
5959         (mmx_smulv4hi3_highpart): New expander.  Use
5960         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5961         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
5962         insn pattern.
5963         (mmx_umulv4hi3_highpart): New expander.  Use
5964         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5965         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
5966         (mmx_<code>v4hi3): New expander.  Use
5967         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5968         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
5969         (mmx_<code>v8qi3): New expander.  Use
5970         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5971         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
5972         (mmx_<code><mode>3): New expander.  Use
5973         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5975 2008-05-05  Jan Hubicka  <jh@suse.cz>
5977         PR tree-optimization/36118
5978         * passes.c (pass_init_dump_file): Fix dump header.
5980 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
5982         PR middle-end/36141
5983         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
5984         VCE for function decls.
5986 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
5988         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
5990 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
5992         * config/i386/i386.md (sat_plusminus): New.
5993         (plusminus_insn): Likewise.
5994         (plusminus_mnemonic): Likewise.
5995         (addsub): Removed.
5996         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
5997         (*<addsub><mode>3_cc_overflow): Renamed to ...
5998         (*<plusminus_insn><mode>3_cc_overflow): This.
5999         (*<addsub>si3_zext_cc_overflow): Renamed to ...
6000         (*<plusminus_insn>si3_zext_cc_overflow): This.
6002         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6003         (<plusminus_insn><mode>3): This.
6004         (*<addsub><mode>3): Renamed to ...
6005         (*<plusminus_insn><mode>3): This.
6006         (<sse>_vm<addsub><mode>3): Renamed to ...
6007         (<sse>_vm<plusminus_insn><mode>3): This.
6008         (sse3_h<addsub>v4sf3): Renamed to ...
6009         (sse3_h<plusminus_insn>v4sf3): This.
6010         (sse3_h<addsub>v2df3): Renamed to ...
6011         (sse3_h<plusminus_insn>v2df3): This.
6012         (<plusminus_insn><mode>3): New.
6013         (*<plusminus_insn><mode>3): Likewise.
6014         (sse2_<plusminus_insn><mode>3): Likewise.
6015         (add<mode>): Removed.
6016         (*add<mode>3): Likewise.
6017         (sse2_ssadd<mode>3): Likewise.
6018         (sse2_usadd<mode>3): Likewise.
6019         (sub<mode>3): Likewise.
6020         (*sub<mode>3): Likewise.
6021         (sse2_sssub<mode>3): Likewise.
6022         (sse2_ussub<mode>3): Likewise.
6024 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
6026         * gthr-single.h: Add in required interface elements as per gthr.h.
6027         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
6028         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
6029         Generalize UNUSED macro. 
6030         (__gthread_once): Add.
6031         (__gthread_key_create): Add.
6032         (__gthread_key_delete): Add.
6033         (__gthread_getspecific): Add.
6034         (__gthread_setspecific): Add.
6035         
6036 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
6038         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
6039         the same size types for the indirect reference on the rhs, then
6040         create a VCE.
6042 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
6044         * config/i386/i386.md
6045         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
6046         one insn template instead of template series.
6047         (*xordi_1_rex64): Ditto.
6048         (*xordi_2_rex64): Ditto.
6050 2008-05-05  Ira Rosen  <irar@il.ibm.com>
6052         PR tree-optimization/36119
6053         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
6054         in case of SLP.
6056 2008-06-04  Jan Hubicka  <jh@suse.cz>
6058         tree-optimization/36100
6059         * tree-pass.h (pass_O0_always_inline): Declare.
6060         * ipa-inline.c (inline_transform): Remove dead code.
6061         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6062         pass_O0_always_inline): New.
6063         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
6065 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
6067         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
6068         mnemonic in this_param move for TARGET_64BIT.
6070 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
6072         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
6073         (*strmovsi_rex_1): Ditto.
6074         (*strsetsi_1): Ditto.
6075         (*strsetsi_rex_1): Ditto.
6077         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
6078         adddicc expanders using SWI mode iterator.
6080 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6082         PR target/36121
6083         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
6084         argument handling.
6086 2008-05-04  David S. Miller  <davem@davemloft.net>
6088         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
6089         (sparc*-*-linux*): Use linux.h in tm_file.
6090         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
6091         compiler defaulting to 32-bit.
6092         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
6093         no longer needed.
6094         * config/sparc/linux.h: Remove definitions now obtained
6095         properly from linux.h
6096         * config/sparc/linux64.h: Likewise.
6097         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
6098         don't want this setting for 32-bit builds in a biarch compiler.
6099         * doc/install.texi: Add sparc-linux to list of targets
6100         supporting --enable-targets=all.
6102 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
6104         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
6106 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
6108         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
6109         after V4SI_FTYPE_V8HI.
6110         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
6111         case V4SI_FTYPE_V2DF.
6113 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
6115         * doc/invoke.texi (max-flow-memory-locations): Removed.
6116         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
6117         
6118 2008-05-03  Richard Guenther  <rguenther@suse.de>
6120         PR middle-end/34973
6121         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
6123 2008-05-02  David S. Miller  <davem@davemloft.net>
6125         * config.gcc (need_64bit_hwint): Document libcpp dependency.
6127 2008-05-02  Simon Baldwin <simonb@google.com>
6129         PR bootstrap/36108
6130         * c-common.h (warn_array_subscript_range): Removed.
6131         * c-common.c (warn_array_subscript_range): Ditto.
6132         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
6133         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
6135 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6137         * config/i386/i386.c (ix86_special_builtin_type): New.
6138         (bdesc_special_args): Likewise.
6139         (ix86_expand_special_args_builtin): Likewise.
6140         (ix86_init_mmx_sse_builtins): Updated.
6141         (ix86_expand_builtin): Updated.
6142         (ix86_expand_store_builtin): Removed.
6143         (ix86_expand_unop_builtin): Likewise.
6145         * config/i386/mm3dnow.h (__v2sf): Moved to ...
6146         * config/i386/mmintrin.h (__v2sf): Here.
6148         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
6149         const __v2sf.
6150         (_mm_loadl_pi): Likewise.
6151         (_mm_storeh_pi): Replace __v2si with __v2sf.
6152         (_mm_storel_pi): Likewise.
6154         * doc/extend.texi: Correct __builtin_ia32_loadhps,
6155         __builtin_ia32_loadlps, __builtin_ia32_storehps,
6156         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
6157         __builtin_ia32_loadlpd.
6159 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6161         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
6162         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
6163         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
6164         (ix86_init_mmx_sse_builtins): Updated.
6165         (ix86_expand_args_builtin): Likewise.
6166         (ix86_expand_builtin): Likewise.
6167         (ix86_expand_unop1_builtin): Renamed to ...
6168         (ix86_expand_unop_vec_merge_builtin): This.
6170 2008-05-01  Jan Hubicka  <jh@suse.cz>
6172         PR bootstrap/36100
6173         * ipa-inline.c (inline_generate_summary): Make static.
6174         (inline_transform): Do not call inlining at -O0; make static.
6175         * passes.c (execute_todo): Add sanity check.
6176         (execute_one_ipa_transform_pass): Execute proper flags.
6178 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6180         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
6181         (DECL_NONADDRESSABLE_P): Likewise.
6182         * alias.c (record_component_aliases): Fix comment.
6184 2008-05-01  Simon Baldwin <simonb@google.com>
6186         * c-common.h (warn_array_subscript_range): New function.
6187         * c-common.c (warn_array_subscript_range): Ditto.
6188         * tree-vrp.c (check_array_ref): Corrected code to agree with
6189         comment, ignoring only arrays of size 0 or size 1.
6190         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
6192 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6194         * config/i386/i386.c (ix86_builtin_type): Replace
6195         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
6196         (bdesc_args): Updated.
6197         (ix86_init_mmx_sse_builtins): Likewise.
6198         (ix86_expand_args_builtin): Likewise.
6200         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
6201         with __v1di.
6203         * doc/extend.texi: Correct __builtin_ia32_palignr.
6205 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6207         PR target/36095
6208         * config/i386/i386.c (bdesc_crc32): Removed.
6209         (ix86_expand_crc32): Likewise.
6210         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
6211         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
6212         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
6213         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
6214         UINT_FTYPE_UINT_UCHAR.
6215         (bdesc_args): Updated. Add crc32 builtins.
6216         (ix86_init_mmx_sse_builtins): Updated.
6217         (ix86_expand_args_builtin): Updated to support subreg.
6219         * doc/extend.texi: Correct __builtin_ia32_crc32di.
6221 2008-05-01  Jan Hubicka  <jh@suse.cz>
6223         * tree-pass.h (opt_pass): Add IPA_PASS.
6224         (varpool_node, cgraph_node): Forward declare.
6225         (ipa_opt_pass): Define.
6226         (pass_ipa_inline): Turn into ipa_opt_pass.
6227         (pass_apply_inline): Remove.
6228         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
6229         (apply_inline): Turn into ....
6230         (inline_transform): ... this one.
6231         (inline_generate_summary): New function.
6232         (pass_apply_inline): Remove.
6233         * function.h (ipa_opt_pass): Forward declare structure; typedef;
6234         vector.
6235         (struct function): Add ipa_transforms_to_apply.
6236         * passes.c (register_one_dump_file): Work on IPA_PASS.
6237         (init_optimization_passes): Remove pass_inline_parameters and
6238         pass_apply_inline.
6239         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
6240         (execute_one_pass) ... here; apply transforms when possible.
6241         (add_ipa_transform_pass, execute_ipa_summary_asses,
6242         execute_one_ipa_transform_pass): New.
6243         (execute_ipa_pass_list): Update for IPA_PASS type.
6245 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6247         * config/i386/i386.c (ix86_builtin_type): Add
6248         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
6249         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
6250         (bdesc_args): Add SSE4a builtins.
6251         (ix86_init_mmx_sse_builtins): Updated.
6252         (ix86_expand_args_builtin): Likewise.
6253         (ix86_expand_builtin): Likewise.
6255 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6257         * config/i386/i386.c (ix86_builtin_type): Add
6258         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
6259         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
6260         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
6261         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
6262         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
6263         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
6264         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
6265         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
6266         and DI_FTYPE_DI_DI_INT.
6267         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
6268         (ix86_init_mmx_sse_builtins): Updated.
6269         (ix86_expand_args_builtin): Likewise.
6270         (ix86_expand_builtin): Likewise.
6271         (ix86_expand_binop_imm_builtin): Removed.
6273         * doc/extend.texi: Correct __builtin_ia32_palignr128.
6275 2008-04-30  Richard Guenther  <rguenther@suse.de>
6277         PR tree-optimization/32921
6278         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
6280 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
6282         * config/arm/arm.c (arm_unwind_emit): Use
6283         crtl->all_throwers_are_sibcalls instead of
6284         cfun->all_throwers_are_sibcalls.
6285         (arm_output_fn_unwind): Likewise.
6286         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
6287         instead of cfun->uses_pic_offset_table.
6288         (frv_expand_prologue): Likewise.
6289         (frv_frame_pointer_required): Likewise.
6290         (frv_expand_fdpic_call): Likewise.
6291         (frv_emit_movsi): Likewise.
6292         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
6293         cfun->returns_pcc_struct instead of
6294         current_function_returns_pcc_struct.
6295         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
6296         instead of cfun->calls_eh_return.
6297         (m32c_pushm_popm): Likewise.
6298         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
6299         "extern" declaration.
6301 2008-04-30  Richard Guenther  <rguenther@suse.de>
6303         PR tree-optimization/21636
6304         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
6305         constant address.
6306         (evaluate_stmt): Print the likely value.
6307         (ccp_visit_stmt): Avoid excessive vertical spacing.
6309 2008-04-30  Rafael Espindola  <espindola@google.com>
6311         * builtins.c (fold_call_expr): Return realret.
6312         * tree-ssa-threadedge.c
6313         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
6314         __builtin_object_size.
6316 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
6318         * gcc.c (wrapper_string): New variable.
6319         (insert_wrapper): New function.
6320         (execute): New option -wrapper.
6321         * doc/invoke.texi (Overall Options): New driver option -wrapper.
6323 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
6325         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
6326         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
6327         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
6328         from...
6329         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
6330         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
6331         config/rs6000/e500crtres64gprctr.asm,
6332         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
6333         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
6334         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
6335         config/rs6000/e500crtsav64gprctr.asm,
6336         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
6337         config/rs6000/e500crtsavg64gprctr.asm: New files.
6338         * config/rs6000/t-ppccomm: Add build rules for new files.
6339         (LIB2FUNCS_STATIC_EXTRA): Add new files.
6340         * config/rs6000/t-netbsd: Add build rules for new files.
6341         (LIB2FUNCS_STATIC_EXTRA): New variable.
6342         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
6343         (CRTSAVRES_DEFAULT_SPEC): Likewise.
6344         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
6346 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
6348         * config/i386/i386.c (ix86_builtin_type): Add
6349         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
6350         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
6351         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
6352         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
6353         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
6354         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
6355         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
6356         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
6357         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
6358         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
6359         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
6360         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
6361         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
6362         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
6363         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
6364         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
6365         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
6366         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
6367         V1DI_FTYPE_V2SI_V2SI.
6368         (bdesc_2arg): Moved to ...
6369         (bdesc_args): Here.
6370         (ix86_init_mmx_sse_builtins): Updated.
6371         (ix86_expand_args_builtin): Updated.  Take a pointer
6372         to const struct builtin_description.  Handle comparison
6373         builtin functions.
6374         (ix86_expand_sse_compare): Take a new argument for swapping operands.
6375         (ix86_expand_builtin): Updated.
6377         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
6378         (ssse3_pmaddubsw128): This.
6379         (ssse3_pmaddubswv4hi3): Renamed to ...
6380         (ssse3_pmaddubsw): This.
6382         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
6383         (__builtin_ia32_packssdw128): Likewise.
6384         (__builtin_ia32_packuswb128): Likewise.
6385         (__builtin_ia32_pmaddubsw): Likewise.
6386         (__builtin_ia32_pmaddubsw128): Likewise.
6388 2008-04-30  Richard Guenther  <rguenther@suse.de>
6390         PR tree-optimization/14847
6391         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
6392         (recognize_bits_test): Use it.
6393         (recognize_single_bit_test): Likewise.
6395 2008-04-30  Martin Jambor  <mjambor@suse.cz>
6397         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
6398         instead of setting number of formal parameters to zero.
6399         (ipcp_init_stage): Do not set the number of actual parameters to zero 
6400         either.
6401         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
6402         which are called with variable number of arguments.
6403         (ipcp_insert_stage): Explicitely skipping all nodes which are
6404         called with variable number of arguments.
6405         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
6406         number of parameters.
6408         * ipa-prop.h (struct ipa_node_params): Added flag
6409         called_with_var_arguments
6410         (ipa_set_param_count): Added.  Changed sole setter to use it.
6411         (ipa_get_param_count): Added.  All readers of param_count
6412         converted to use it instead.
6413         (ipa_set_called_with_variable_arg): Added.
6414         (ipa_is_called_with_var_arguments): Added.
6415         (ipa_get_ith_param): Added.  All readers of param_decls converted
6416         to use it instead.
6417         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
6418         changed to use it. 
6419         (ipa_get_cs_argument_count): Added, all readers of argument_count
6420         changed to cal it.
6421         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
6422         to use it.
6423         
6424         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
6425         (struct ipcp_lattice): Renamed cval_type to type
6426         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
6428         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
6429         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
6430         (ipcp_insert_stage): Changed the type of variable cvalue to tree
6431         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
6432         (build_const_val): Changed the type of parameter cvalue to tree
6433         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
6434         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
6435         
6436         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
6437         constant 
6439         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
6440         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
6441         (ipa_add_method): Renamed to ipa_push_func_to_list
6442         (ipa_remove_method): Renamed to ipa_pop_func_from_list
6443         (ipa_callsite_param_count): Removed.
6444         (ipa_callsite_param_count_set): Removed.
6445         (ipa_callsite_param): Removed.
6446         (ipa_callsite_callee): Removed.
6447         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
6448         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
6449         (ipa_method_formal_count): Removed.
6450         (ipa_method_formal_count_set): Removed.
6451         (ipa_method_get_tree): Removed.
6452         (ipa_method_tree_map_create): Removed.
6453         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
6454         (ipa_create_param_decls_array): Creates the array itself
6455         (ipa_create_param_decls_array): Temporary variable info instead of 
6456         a few dereferences.
6457         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
6458         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
6459         (get_type): Removed.
6460         (ipa_jf_get_info_type): Removed.
6461         (ipa_node_create): Renamed to ipa_create_node_params
6462         (ipa_free): Renamed to ipa_free_all_node_params
6463         (ipa_nodes_create): Renamed to ipa_create_all_node_params
6464         (ipa_edges_create): Renamed to ipa_create_all_edge_args
6465         (ipa_edges_free): Renamed to ipa_free_all_edge_args
6466         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
6467         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
6468         ipa_free_all_edge_args
6469         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
6470         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
6471         (ipa_create_methodlist_node): Removed.
6472         (ipa_methodlist_method): Removed.
6473         (ipa_methodlist_method_set): Removed.
6474         (ipa_methodlist_next_method): Removed.
6475         (ipa_methodlist_next_method_set): Removed.
6476         (ipa_method_is_modified): Removed.
6477         (ipa_method_modify_create): Removed.
6478         (ipa_method_modify_init): Temporary variable info instead of a few 
6479         dereferences.
6480         (ipa_detect_param_modifications): Temporary variable info instead of 
6481         a few dereferences.
6482         (ipa_compute_jump_functions): Temporary variable info instead of 
6483         a few dereferences.
6484         (ipa_method_modify_set): Removed.
6485         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
6486         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
6487         than craph_node as the first parameter.
6488         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
6489         (ipa_method_modify_init): Removed.
6490         (ipa_compute_jump_functions): Added a temp variable instead of 
6491         repeatadly dereferencing the cgraph_edge.aux pointer
6492         (ipa_callsite_param_set_type): Removed.
6493         (ipa_compute_jump_functions): i renamed to index and moved to 
6494         an inner block
6495         (ipa_callsite_param_set_info_type_formal): Removed.
6496         (ipa_callsite_param_set_info_type): Removed.
6497         (ipa_callsite_param_map_create): Removed.
6498         (ipa_callsite_tree): Removed.
6499         (ipa_callsite_caller): Removed.
6500         (ipa_pop_func_from_list): return_method removed to return_func
6502         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
6503         prefixed all values with IPA_. Changed all users.
6504         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
6505         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
6506         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
6507         (union parameter_info): Renamed to jump_func_value.
6508         (union jump_func_value): Renamed value to constant
6509         (struct ipa_jump_func): Renamed info_type to value
6510         (struct ipa_node): Renamed to ipa_node_params
6511         (struct ipa_node_params): Renamed ipa_arg_num to param_count
6512         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
6513         (struct ipa_node_params): Renamed ipa_mod to modified_flags
6514         (struct ipa_edge): Renamed to ipa_edge_args
6515         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
6516         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
6517         (struct ipa_methodlist): Renamed to ipa_func_list
6518         (struct ipa_func_list): method_p renamed to node, next_method
6519         renamed to next
6520         (ipa_methodlist_p): Removed, switched all users to struct pointer
6521         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
6523 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
6525         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
6526         (rs6000_emit_epilogue): Use backchain to restore only when we
6527         have a large frame.  Make use of frame pointer to restore if we
6528         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
6530 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
6532         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6533         Add mode to zero_extract.
6534         (sign bit tests peepholes): (Ditto.).
6536 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
6538         * config/i386/i386.c (ix86_builtins): Replace Prescott New
6539         Instructions in comments with SSE3.
6540         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
6541         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
6542         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
6543         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
6544         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
6545         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
6546         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
6547         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
6548         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
6549         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
6550         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
6551         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
6552         (bdesc_sse_args): Renamed to ...
6553         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
6554         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
6555         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
6556         IX86_BUILTIN_FABSQ.
6557         (bdesc_1arg): Moved to ...
6558         (bdesc_args): Here.
6559         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
6560         Instructions in comments with SSE3.
6561         (ix86_expand_sse_operands_builtin): Renamed to ...
6562         (ix86_expand_args_builtin): This.  Updated.
6563         (ix86_expand_unop1_builtin): Update comments.
6564         (ix86_expand_builtin): Updated.
6566 2008-04-29  Richard Guenther  <rguenther@suse.de>
6568         PR tree-optimization/36078
6569         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6570         Update virtual SSA form after cleaning up the CFG.
6572 2008-04-29  Richard Guenther  <rguenther@suse.de>
6574         PR middle-end/15255
6575         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
6577 2008-04-29  Richard Guenther  <rguenther@suse.de>
6579         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
6580         (compute_may_aliases): Do not call finalize_ref_all_pointers.
6581         (compute_flow_insensitive_aliasing): Do not treat
6582         PTR_IS_REF_ALL pointers special.
6583         (get_smt_for): Likewise.
6584         (may_alias_p): Re-structure.
6585         (is_escape_site): A ref-all pointer conversion is not an escape site.
6586         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
6587         PTR_IS_REF_ALL pointers special.
6588         * tree-ssa-structalias.h (struct alias_info): Remove
6589         ref_all_symbol_mem_tag field.
6590         (PTR_IS_REF_ALL): Remove.
6592 2008-04-29  Richard Guenther  <rguenther@suse.de>
6594         PR middle-end/36077
6595         * fold-const.c (extract_muldiv_1): In combining division constants
6596         make sure to never overflow.
6598 2008-04-29  Nick Clifton  <nickc@redhat.com>
6600         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
6602 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6604         PR bootstrap/35169
6605         * optc-gen.awk: Work around HP-UX/IA awk bug.
6607 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
6609         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
6610         2008-04-25 commit.
6612 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
6614         PR target/36073
6615         * config/i386/i386.md
6616         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
6617         Change operand 1 predicate to nonimmediate_operand.
6619 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
6621         PR debug/36060
6622         * dwarf2out.c (struct die_struct): Mark as chain_circular through
6623         die_sub field.
6624         * gengtype.c (walk_type, write_func_for_structure): Handle
6625         chain_circular.
6626         * doc/gty.texi: Document chain_circular.
6628 2008-04-28  Richard Guenther  <rguenther@suse.de>
6630         PR tree-optimization/36066
6631         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
6632         SCEV and loop.
6634 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
6636         PR target/36064
6637         * config/i386/i386.md
6638         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
6639         Use match_scratch instead of match_operand for operands 3 and 4.
6641 2008-04-27  Richard Guenther  <rguenther@suse.de>
6643         PR tree-optimization/18754
6644         PR tree-optimization/34223
6645         * tree-pass.h (pass_complete_unrolli): Declare.
6646         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
6647         loop size before and after unconditionally of UL_NO_GROWTH in effect.
6648         Rewrite loop into loop closed SSA form if it is not already.
6649         (tree_unroll_loops_completely): Re-structure to iterate over
6650         innermost loops with intermediate CFG cleanups.
6651         Unroll outermost loops only if requested or the code does not grow
6652         doing so.
6653         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
6654         loops are available.
6655         (tree_vectorize): Instead do so here.
6656         (tree_complete_unroll): Also unroll outermost loops.
6657         (tree_complete_unroll_inner): New function.
6658         (gate_tree_complete_unroll_inner): Likewise.
6659         (pass_complete_unrolli): New pass.
6660         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
6661         uses outside of the loop.
6662         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
6663         form if it is available.  
6664         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
6665         * passes.c (init_optimization_passes): Schedule complete inner
6666         loop unrolling pass before the first CCP pass after final inlining.
6668 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
6670         * targhooks.h (default_emutls_var_fields,
6671         default_emutls_var_init): Declare.
6672         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
6673         * target.h (struct gcc_target): Add struct emutls member.
6674         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
6675         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
6676         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
6677         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
6678         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
6679         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
6680         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
6681         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
6682         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
6683         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
6684         emit debug information.
6685         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
6686         * varasm.c: Include targhooks.h.
6687         (emutls_object_section, emutls_tmpl_section): New.
6688         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
6689         (EMUTLS_SEPARATOR): New.
6690         (prefix_name): New.
6691         (get_emutls_object_name): New.
6692         (default_emutls_var_fields): New, broken out of ...
6693         (get_emutls_object_type): ... here.  Adjust to use target hooks.
6694         (get_emutls_init_templ_addr): Adjust to use target hooks.
6695         (emutls_decl): Adjust to use target hooks.
6696         (emutls_finish): Likewise.
6697         (default_emutls_var_init): New, broken out of ...
6698         (assemble_variable): ... here.  Adjust to use target hooks.
6699         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
6700         SECCAT_EMUTLS_TMPL.
6701         * c-common.c (handle_section_attribute): Prevent overriding
6702         sections for emulated tls with special sections.
6703         * config/i386/i386.c (x86_64_elf_select_section): Add
6704         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
6705         (x86_64_elf_unique_section): Likewise.
6706         * config/vxworks.c: Include tree.h.
6707         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
6708         (vxworks_override_options): Set TLS scheme.
6709         * doc/tm.texi (Emulated TLS): New node.
6711 2008-04-26  Simon Baldwin <simonb@google.com>
6713         PR c/35652
6714         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
6715         with propagated string constants.
6717 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
6719         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
6720         constraint for operand 2 when operand 0 is memory operand.
6721         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
6722         operand 0 is memory operand.
6723         (fix_trunc<mode>_i387_with_temp): Ditto.
6724         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
6725         operand 2 when operand 1 is memory operand.
6726         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
6727         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
6728         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
6729         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
6730         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
6731         operands 2,3 and 4 when operand 1 is memory operand.
6732         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
6733         is memory operand.
6734         (fistdi2_floor_with_temp): Ditto.
6735         (fist<mode>2_floor_with_temp): Ditto.
6736         (fistdi2_ceil_with_temp): Ditto.
6737         (fist<mode>2_ceil_with_temp): Ditto.
6738         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
6740 2008-04-26  David Daney  <ddaney@avtrex.com>
6742         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
6743         unspec_volitile.
6744         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
6745         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6746         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6747         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
6748         (compare_and_swap_12): New insn.
6749         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
6750         * config/mips/mips.c (mips_force_binary): New function.
6751         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
6752         (mips_expand_compare_and_swap_12): New function.
6753         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
6755 2008-04-25  Jan Hubicka  <jh@suse.cz>
6757         PR testsuite/35843
6758         * cfgexpand.c (pass_expand): Turn into RTL pass.
6759         * passes.c (execute_one_pass): Do pass typechecking after execution.
6760         * tree-pass.h (pass_expand): Turn into RTL pass.
6762         * function.h (struct rtl_data): Move here fields
6763         accesses_prior_frames, calls_eh_return, saves_all_registers,
6764         has_nonlocal_goto, has_asm_statement, is_thunk,
6765         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
6766         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
6767         arg_pointer_save_area_init from struct function; turn into bool.
6768         (struct function): Move
6769         calls_eh_return, saves_all_registers, has_nonlocal_goto,
6770         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
6771         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
6772         tail_call_emit, arg_pointer_save_area_init
6773         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
6774         (current_function_returns_struct, current_function_returns_pcc_struct,
6775         current_function_calls_setjmp, current_function_calls_alloca,
6776         current_function_accesses_prior_frames,
6777         current_function_calls_eh_return, current_function_is_thunk,
6778         current_function_stdarg, current_function_profile,
6779         current_function_limit_stack, current_function_uses_pic_offset_table,
6780         current_function_uses_const_pool, current_function_has_nonlocal_label,
6781         current_function_saves_all_registers,
6782         current_function_has_nonlocal_goto,
6783         current_function_has_asm_statement): Remove accesor macros.
6784         * ra-conflict.c (global_conflicts): Update.
6785         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
6786         (suitable_for_tail_call_opt_p): Update.
6787         * builtins.c (expand_builtin_return_addr): Update.
6788         (expand_builtin_setjmp_setup): Update.
6789         (expand_builtin_nonlocal_goto): Update.
6790         * final.c (final_start_function): Update.
6791         (profile_function): Update.
6792         (leaf_function_p): Update.
6793         (only_leaf_regs_used): Update.
6794         * df-scan.c (df_get_exit_block_use_set): Update.
6795         * dojump.c (clear_pending_stack_adjust): Update.
6796         * tree-stdarg.c (gate_optimize_stdarg): Update.
6797         * gimple-low.c (lower_function_body): Update.
6798         * global.c (compute_regsets): Update.
6799         (global_alloc): Update.
6800         * dwarf2out.c (dwarf2out_begin_prologue): Update.
6801         * expr.c (expand_assignment): Update.
6802         * dse.c (dse_step0): Update.
6803         (dse_step1): Update.
6804         * c-decl.c (store_parm_decls): Update.
6805         * local-alloc.c (combine_regs): Update.
6806         (find_free_reg): Update.
6807         * function.c (assign_parms_augmented_arg_list): Update.
6808         (assign_parm_find_data_types): Update.
6809         (assign_parms): Update.
6810         (allocate_struct_function): Update.
6811         (expand_function_start): Update.
6812         (expand_function_end): Update.
6813         (get_arg_pointer_save_area): Update.
6814         (thread_prologue_and_epilogue_insns): Update.
6815         (rest_of_match_asm_constraints): Update.
6816         * stor-layout.c (variable_size): Update.
6817         * gcse.c (gcse_main): Update.
6818         (bypass_jumps): Update.
6819         * gimplify.c (gimplify_function_tree): Update.
6820         * calls.c (emit_call_1): Update.
6821         (expand_call): Update.
6822         * bt-load.c (compute_defs_uses_and_gen): Update.
6823         * except.c (sjlj_assign_call_site_values): Update.
6824         (sjlj_emit_function_enter): Update.
6825         (can_throw_external): Update.
6826         (set_nothrow_function_flags): Update.
6827         (expand_builtin_unwind_init): Update.
6828         (expand_eh_return): Update.
6829         (convert_to_eh_region_ranges): Update.
6830         (output_function_exception_table): Update.
6831         * emit-rtl.c (gen_tmp_stack_mem): Update.
6832         * cfgexpand.c (expand_used_vars): Update.
6833         (tree_expand_cfg): Update.
6834         * cfgcleanup.c (rest_of_handle_jump): Update.
6835         * explow.c (allocate_dynamic_stack_space): Update.
6836         * varasm.c (assemble_start_function): Update.
6837         (force_const_mem): Update.
6838         (mark_constant_pool): Update.
6839         * tree-optimize.c (tree_rest_of_compilation): Update.
6840         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
6841         * tree-cfg.c (notice_special_calls): Update.
6842         (is_ctrl_altering_stmt): Update.
6843         (tree_can_make_abnormal_goto): Update.
6844         (tree_purge_dead_abnormal_call_edges): Update.
6845         * config/alpha/predicates.md: Update.
6846         * config/alpha/alpha.c (alpha_sa_mask): Update.
6847         (alpha_sa_size): Update.
6848         (alpha_does_function_need_gp): Update.
6849         (alpha_expand_prologue): Update.
6850         (alpha_start_function): Update.
6851         (alpha_output_function_end_prologue): Update.
6852         (alpha_expand_epilogue): Update.
6853         * config/frv/frv.c (frv_stack_info): Update.
6854         (frv_expand_epilogue): Update.
6855         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
6856         (s390_register_info): Update.
6857         (s390_frame_info): Update.
6858         (s390_init_frame_layout): Update.
6859         (s390_can_eliminate): Update.
6860         (save_gprs): Update.
6861         * config/spu/spu.c (spu_split_immediate): Update.
6862         (need_to_save_reg): Update.
6863         (spu_expand_prologue): Update.
6864         (spu_expand_epilogue): Update.
6865         * config/sparc/sparc.md: Update.
6866         * config/sparc/sparc.c (eligible_for_return_delay): Update.
6867         (sparc_tls_got): Update.
6868         (legitimize_pic_address): Update.
6869         (sparc_emit_call_insn): Update.
6870         (sparc_expand_prologue): Update.
6871         (output_return): Update.
6872         (print_operand): Update.
6873         (sparc_function_ok_for_sibcall): Update.
6874         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
6875         * config/m32r/m32r.md: Update.
6876         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
6877         (m32r_compute_frame_size): Update.
6878         (m32r_expand_prologue): Update.
6879         (m32r_expand_epilogue): Update.
6880         (m32r_legitimize_pic_address): Update.
6881         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
6882         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6883         * config/i386/i386.c (ix86_frame_pointer_required): Update.
6884         (gen_push): Update.
6885         (ix86_save_reg): Update.
6886         (ix86_compute_frame_layout): Update.
6887         (ix86_expand_prologue): Update.
6888         (ix86_expand_epilogue): Update.
6889         * config/sh/sh.c (output_stack_adjust): Update.
6890         (calc_live_regs): Update.
6891         (sh5_schedule_saves): Update.
6892         (sh_expand_prologue): Update.
6893         (sh_expand_epilogue): Update.
6894         (sh_setup_incoming_varargs): Update.
6895         (sh_allocate_initial_value): Update.
6896         (sh_get_pr_initial_val): Update.
6897         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
6898         * config/sh/sh.md (label:): Update.
6899         * config/avr/avr.c (out_movhi_mr_r): Update.
6900         * config/crx/crx.h (enum): Update.
6901         * config/xtensa/xtensa.h (along): Update.
6902         * config/stormy16/stormy16.c Update.
6903         (xstormy16_compute_stack_layout): Update.
6904         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
6905         (fr30_expand_prologue): Update.
6906         * config/cris/cris.c (cris_conditional_register_usage): Update.
6907         (cris_reg_saved_in_regsave_area): Update.
6908         (cris_initial_frame_pointer_offset): Update.
6909         (cris_simple_epilogue): Update.
6910         (cris_expand_prologue): Update.
6911         (cris_expand_epilogue): Update.
6912         (cris_expand_pic_call_address): Update.
6913         (cris_asm_output_symbol_ref): Update.
6914         (cris_asm_output_label_ref): Update.
6915         * config/cris/cris.md Update.
6916         * config/iq2000/iq2000.c (compute_frame_size): Update.
6917         (iq2000_expand_epilogue): Update.
6918         * config/mt/mt.h (save_direction): Update.
6919         * config/mn10300/mn10300.c (mn10300_function_value): Update.
6920         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6921         (ia64_secondary_reload_class): Update.
6922         * config/m68k/m68k.c (m68k_save_reg): Update.
6923         (m68k_expand_prologue): Update.
6924         (m68k_expand_epilogue): Update.
6925         (legitimize_pic_address): Update.
6926         * config/rs6000/rs6000.c (rs6000_got_register): Update.
6927         (first_reg_to_save): Update.
6928         (first_altivec_reg_to_save): Update.
6929         (compute_vrsave_mask): Update.
6930         (compute_save_world_info): Update.
6931         (rs6000_stack_info): Update.
6932         (spe_func_has_64bit_regs_p): Update.
6933         (rs6000_ra_ever_killed): Update.
6934         (rs6000_emit_eh_reg_restore): Update.
6935         (rs6000_emit_allocate_stack): Update.
6936         (rs6000_emit_prologue): Update.
6937         (rs6000_emit_epilogue): Update.
6938         (rs6000_output_function_epilogue): Update.
6939         (output_profile_hook): Update.
6940         (rs6000_elf_declare_function_name): Update.
6941         * config/rs6000/rs6000.h (rs6000_args): Update.
6942         * config/rs6000/rs6000.md: Update.
6943         * config/mcore/mcore.c (mcore_expand_prolog): Update.
6944         * config/arc/arc.c (arc_output_function_epilogue): Update.
6945         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
6946         * config/darwin.c (machopic_function_base_name): Update.
6947         * config/score/score3.c (score3_compute_frame_size): Update.
6948         (rpush): Update.
6949         (rpop): Update.
6950         (score3_epilogue): Update.
6951         * config/score/score7.c (score7_compute_frame_size): Update.
6952         (score7_prologue): Update.
6953         (score7_epilogue): Update.
6954         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
6955         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6956         * config/arm/arm.c (use_return_insn): Update.
6957         (require_pic_register): Update.
6958         (arm_load_pic_register): Update.
6959         (arm_compute_save_reg0_reg12_mask): Update.
6960         (arm_compute_save_reg_mask): Update.
6961         (thumb1_compute_save_reg_mask): Update.
6962         (output_return_instruction): Update.
6963         (arm_output_function_prologue): Update.
6964         (arm_output_epilogue): Update.
6965         (arm_get_frame_offsets): Update.
6966         (arm_expand_prologue): Update.
6967         (thumb_pushpop): Update.
6968         (thumb_exit): Update.
6969         (thumb1_expand_prologue): Update.
6970         (thumb1_expand_epilogue): Update.
6971         (arm_unwind_emit): Update.
6972         (arm_output_fn_unwind): Update.
6973         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
6974         * config/arm/arm.md: Update.
6975         * config/pa/pa.md: Update.
6976         * config/pa/pa.c (legitimize_pic_address): Update.
6977         (compute_frame_size): Update.
6978         (hppa_expand_prologue): Update.
6979         (hppa_expand_epilogue): Update.
6980         (borx_reg_operand): Update.
6981         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
6982         (HARD_REGNO_RENAME_OK): Update.
6983         * config/mips/mips.c (mips_global_pointer): Update.
6984         (mips_save_reg_p): Update.
6985         (mips_compute_frame_info): Update.
6986         (mips_frame_pointer_required): Update.
6987         (mips_expand_prologue): Update.
6988         (mips_expand_epilogue): Update.
6989         (mips_can_use_return_insn): Update.
6990         (mips_reorg_process_insns): Update.
6991         * config/v850/v850.c (compute_register_save_size): Update.
6992         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
6993         * config/mmix/mmix.c (along): Update.
6994         (mmix_expand_epilogue): Update.
6995         * config/bfin/bfin.c (legitimize_pic_address): Update.
6996         (must_save_p): Update.
6997         (stack_frame_needed_p): Update.
6998         (add_to_reg): Update.
6999         (bfin_expand_prologue): Update.
7000         * stmt.c (expand_asm_operands): Update.
7001         * reload1.c (reload): Update.
7002         (init_elim_table): Update.
7004 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
7005         
7006         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7007         
7008 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
7010         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7011         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
7012         (mov<mode>): Removed.
7013         (*movv4sf_internal): Likewise.
7014         (*movv2df_internal): Likewise.
7016 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7018         * config.gcc (crx-*-elf): Remove deprecation.
7020 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
7022         * config/i386/cygming-crtend.c (register_frame_ctor): Register
7023         __gcc_deregister_frame with atexit.
7024         (deregister_frame_dtor): Remove.
7026 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
7027             Nathan Sidwell  <nathan@codesourcery.com>
7029         * config/rs6000/rs6000.opt (mspe): Remove Var property.
7030         (misel): Likewise.
7031         * config/rs6000/rs6000.h (rs6000_spe): Declare.
7032         (rs6000_isel): Likewise.
7033         * config/rs6000/rs6000.c (rs6000_spe): New variable.
7034         (rs6000_isel): New variable.
7035         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
7037 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7039         PR c++/35758
7040         * c-common.c (handle_vector_size_attribute): Call
7041         lang_hooks.types.reconstruct_complex_type instead of
7042         reconstruct_complex_type.
7043         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
7044         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
7045         * langhooks.h (struct lang_hooks_for_types): Add
7046         reconstruct_complex_type hook.
7047         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
7048         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7050 2008-04-24  Richard Guenther  <rguenther@suse.de>
7052         * c-common.h (check_builtin_function_arguments): Declare.
7053         * c-common.c (validate_nargs): New function.
7054         (check_builtin_function_arguments): Likewise.
7055         * c-typeck.c (build_function_call): Call
7056         check_builtin_function_arguments.
7057         * builtins.c (fold_builtin_classify): Remove error reporting code.
7058         (fold_builtin_unordered_cmp): Likewise.
7059         (fold_builtin_1): Likewise.
7060         (fold_builtin_n): Likewise.
7062 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7064         PR tree-optimization/36008
7065         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
7066         the original op1, rather than delta by step.
7068 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
7069             Sebastian Pop  <sebastian.pop@amd.com>
7071         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7072         eliminate_local_variables_stmt, eliminate_local_variables,
7073         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7074         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7075         of code delimited by two edges in the CFG.
7076         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7077         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7078         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
7079         the case of parallelisation of reductions.
7080         (expr_invariant_in_region_p): New.
7082         * tree-flow.h (gather_blocks_in_sese_region): Declared.
7083         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7085 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7086             Richard Guenther  <rguenther@suse.de>
7088         PR tree-optimization/36034
7089         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
7090         incapable of dealing with loads with gaps.
7092 2008-04-24  Rafael Espindola  <espindola@google.com>
7094         * tree-flow.h (vrp_evaluate_conditional): Change signature.
7095         * tree-ssa-propagate.c (fold_predicate_in): Update call to
7096         vrp_evaluate_conditional.
7097         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
7098         (vrp_evaluate_conditional): Split the cond argument.
7099         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
7100         (simplify_stmt_for_jump_threading): Update call to
7101         vrp_evaluate_conditional.
7103 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7105         PR tree-optimization/35982
7106         * tree-vect-analyze.c (vect_check_interleaving): Check that the
7107         interleaved data-refs are of the same type.
7109 2008-04-24  Danny Smith  <dannysmith@users.net>
7111         * c-format.c (check_format_info_main): Use strncmp rather than a
7112         magic prefix to handle multichar length specs.
7113         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
7114         Don't prefix "I64" and "I32" with '\0'.
7116 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7118         PR target/36015
7119         * config/i386/i386.c (init_cumulative_args): Don't pass anything
7120         in registers for -m32 only if stdarg_p (fntype).
7122 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
7124         PR rtl-optimization/36006
7125         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
7126         temp to op0 in order to avoid invalid rtx sharing.
7128 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7130         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
7131         check TREE_INVARIANT.
7132         * tree-gimple.c (is_gimple_address): New.
7133         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
7134         * tree-gimple.h (is_gimple_address): New.
7135         * tree.h (decl_address_invariant_p): New.
7136         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
7137         (build_string): Likewise.
7138         (decl_address_invariant_p): New, from is_gimple_invariant_address.
7139         (tree_invariant_p_1): Likewise.
7140         (save_expr): Use it.
7141         (tree_invariant_p): New.
7142         (skip_simple_arithmetic): Use it.
7143         (stabilize_reference_1): Use it.
7144         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
7145         simplify.
7146         (build1_stat): Drop code to compute TREE_INVARIANT.
7147         (build2_stat): Drop code to compute TREE_INVARIANT.
7148         (build3_stat): Drop code to compute TREE_INVARIANT.
7149         (build4_stat): Drop code to compute TREE_INVARIANT.
7150         (build5_stat): Drop code to compute TREE_INVARIANT.
7151         (build7_stat): Drop code to compute TREE_INVARIANT.
7152         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
7153         * tree.h (struct tree_base): Remove invariant_flag.
7154         (TREE_INVARIANT): Remove.
7155         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
7156         (fold_builtin_expect): Check TREE_CONSTANT.
7157         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
7158         * c-tree.h (c_expr_to_decl): Drop third parameter.
7159         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
7160         (build_c_cast): Don't set TREE_INVARIANT.
7161         (pop_init_level): Don't set TREE_INVARIANT.
7162         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
7163         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
7164         TREE_CONSTANT.
7165         (gimplify_init_constructor): Don't set TREE_INVARIANT.
7166         (gimplify_addr_expr): Adjust comment.
7167         * tree-mudflap.c (mf_build_string):
7168         * print-tree.c (print_node): Don't print TREE_INVARIANT.
7169         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
7170         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
7171         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
7172         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
7173         * langhooks.h (struct lang_hooks): Drop third parameter from
7174         expr_to_decl.
7176 2008-04-23  Richard Guenther  <rguenther@suse.de>
7178         PR tree-optimization/27799
7179         PR tree-optimization/32921
7180         PR tree-optimization/32624
7181         * tree-ssa-structalias.c (merge_smts_into): Only merge the
7182         SMTs aliases and the tag itself into the solution.
7183         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
7184         merge the points-to solution back into the SMT aliases.
7185         (may_alias_p): Use alias_set_subset_of instead of
7186         aliases_conflict_p.  A pointer which points to
7187         memory with alias set zero may access any variable.
7189 2008-04-23  Richard Guenther  <rguenther@suse.de>
7191         * alias.c (alias_set_subset_of): Correctly handle asking
7192         if zero is a subset of an alias set with zero child.
7193         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
7194         (compute_flow_insensitive_aliasing): Correctly walk all
7195         pointers.  Do not unnecessarily union sets.
7197 2008-04-23  Richard Guenther  <rguenther@suse.de>
7199         PR middle-end/36021
7200         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
7202 2008-04-22  Tomas Bily  <tbily@suse.cz>
7204         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
7205         unreachable case.
7206         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
7207         NON_LVALUE_EXPR.
7208         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7209         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7210         * tree-inline.c (estimate_num_insns_1): Likewise.
7211         * varasm.c (const_hash_1, compare_constant, copy_constant)
7212         (compute_reloc_for_constant, output_addressed_constants): Likewise.
7213         * emit-rtl.c (component_ref_for_mem_expr)
7214         (set_mem_attributes_minus_bitpos): Likewise.
7215         * expr.c (highest_pow2_factor, expand_expr_real_1, )
7216         (is_aligning_offset): Likewise.
7217         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
7218         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7219         * dojump.c (do_jump): Likewise.
7220         * builtins.c (get_pointer_alignment, get_memory_rtx)
7221         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
7222         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
7224 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
7226         PR rtl-optimization/36017
7227         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
7228         expanding the library call.
7230 2008-04-22  Ian Lance Taylor  <iant@google.com>
7232         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
7233         than size_in_bytes.
7235 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
7237         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
7238         of LR/CTR moves for Power6.
7240 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
7242         PR middle-end/36003
7243         * passes.c (init_optimization_passes): Remove
7244         pass_fast_rtl_byte_dce.
7245         
7246 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
7248         PR target/29096
7249         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
7250         builtin functions to generate faster code.
7251         (_mm_cvtpu16_ps): Ditto.
7252         (_mm_cvtpi32x2_ps): Ditto.
7254 2008-04-22  Nick Clifton  <nickc@redhat.com>
7256         * common.opt (ftree-loop-distribution): Add Optimization
7257         attribute.
7259         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
7260         (frv_expand_builtin_va_start): Likewise.
7262         * config/arm/arm.c (thumb_find_work_register): Fix location of
7263         argument register count.
7265 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7267         Support scheduling for ColdFire V1 and V3 microarchitecture.
7268         Improve scheduling of multiplication instructions.
7270         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
7271         (mac): New instruction attribute.
7272         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
7273         (m68k_sched_mac): New variable.
7274         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
7275         Handle cfv1 and cfv3.
7276         (max_insn_size): New static variable.
7277         (struct _sched_ib): New type.
7278         (sched_ib): New static variable.
7279         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
7280         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
7281         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
7282         Update.
7283         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
7284         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
7285         new variables.  Update.
7286         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7287         Add modeling of cfv3 instruction buffer.  Update.
7288         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
7289         * config/m68k/m68k.h (TUNE_CFV3): New macro.
7290         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
7291         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
7292         a particular reservation applies to.
7293         (type2): Reorganize attribute values.  Rename alu to alu_reg,
7294         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
7295         to mul_l and mul_w.
7296         (cf_ib_*): Simplify description of instruction buffer.
7297         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
7298         (cf_mem): Split into cf_mem1 and cf_mem2.
7299         (cf_v2_move_??): Rename to cfv12_alu_??.
7300         (cf_v2_move_l_??): Rename to cfv12_omove_??.
7301         (cf_v2_mul_??): Remove reservations.
7302         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
7303         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
7304         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
7305         appropriate place.
7306         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
7307         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
7308         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
7309         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
7310         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
7311         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
7312         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
7313         expansions of the above reservations for instructions of sizes
7314         1, 2 and 3 words.
7316 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7318         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
7320 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
7322         * coverage.c: Include tree-pass.h.
7323         (coverage_counter_alloc): Print da_file_name to the dump file.
7325 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
7327         * sbitmap.c (sbitmap_range_empty_p): New function.
7328         * sbitmap.h (sbitmap_range_empty_p): New function.
7329         * bitmap.h: Now includes obstack.h.
7331 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
7332             Kenneth Zadeck  <zadeck@naturalbridge.com>
7334         * dbgcnt.def (ra_byte_scan): Added.
7335         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
7336         when the last hit happens for a counter.  
7337         * timevar.def (TV_DF_BYTE_LR): New variable.
7338         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
7339         * passes.c (pass_fast_rtl_byte_dce): New pass.
7340         * fwprop.c (update_df): Added mode to call df_ref_create.
7341         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
7342         DF_REF_EXTRACT_OFFSET.
7343         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
7344         DF_BYTE_LR_OUT, df_byte_lr): New macro.
7345         (df_mm): New enum.
7346         (df_ref_extract): Added mode field.
7347         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
7348         DF_REF_EXTRACT_OFFSET.
7349         (DF_REF_EXTRACT_MODE): New macro.
7350         (df_byte_lr_bb_info): New structure.
7351         (df_print_byte_regset, df_compute_accessed_bytes, 
7352         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
7353         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
7354         df_byte_lr_simulate_uses,
7355         df_byte_lr_simulate_artificial_refs_at_top,
7356         df_byte_lr_simulate_artificial_refs_at_end,
7357         df_compute_accessed_bytes): New function.
7358         (df_ref_create): Add parameter.
7359         (df_byte_lr_get_bb_info): New inline function.
7360         * df-scan.c (df_ref_record, df_uses_record,
7361         df_ref_create_structure): Added mode parameter.
7362         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
7363         df_defs_record, df_uses_record, df_get_conditional_uses,
7364         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
7365         df_entry_block_defs_collect, df_exit_block_uses_collect):
7366         Added mode parameter to calls to df_ref_record, df_uses_record,
7367         df_ref_create_structure.
7368         (df_ref_equal_p, df_ref_compare): Added test for modes.
7369         (df_ref_create_structure): Added code to set mode.  Renamed
7370         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
7371         DF_REF_EXTRACT_OFFSET.
7372         * df-core.c (df_print_byte_regset): New function.
7373         * df-byte-scan.c: New file.
7374         * df-problems.c (df_rd_transfer_function): Removed unnecessary
7375         calls to BITMAP_FREE.  
7376         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
7377         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
7378         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
7379         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
7380         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
7381         df_byte_lr_local_compute, df_byte_lr_init,
7382         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
7383         df_byte_lr_transfer_function, df_byte_lr_free, 
7384         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
7385         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
7386         df_byte_lr_simulate_uses,
7387         df_byte_lr_simulate_artificial_refs_at_top,
7388         df_byte_lr_simulate_artificial_refs_at_end): New function.
7389         * dce.c (byte_dce_process_block): New function.
7390         (dce_process_block): au is now passed in rather than computed
7391         locally.  Changed loops that look at artificial defs to not look
7392         for conditional or partial ones, because there never are any.  
7393         (fast_dce): Now is able to drive byte_dce_process_block or 
7394         dce_process_block depending on the kind of dce being done.
7395         (rest_of_handle_fast_dce): Add parameter to fast_dce.
7396         (rest_of_handle_fast_byte_dce): New function.
7397         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
7398         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
7400 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
7402         PR fortran/35019
7403         * gcc.h: Added fortran options that take arguments to
7404         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
7405         macros.
7407 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7409         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
7410         scalarization if on the LHS and not a full access.
7412 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7414         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
7416 2008-04-18  Rafael Espindola  <espindola@google.com>
7418         * tree-vrp.c (find_case_label_index): Fix the binary search.
7419         (find_case_label_range): New.
7420         (vrp_visit_switch_stmt): Use find_case_label_range.
7421         (simplify_switch_using_ranges): Use find_case_label_range.
7423 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7425         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
7426         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
7428 2008-04-18  Tom Tromey  <tromey@redhat.com>
7430         PR libcpp/15500:
7431         * doc/cpp.texi (Implementation-defined behavior): Mention
7432         -finput-charset.
7434 2008-04-18  Ian Lance Taylor  <iant@google.com>
7436         * fold-const.c (pointer_may_wrap_p): New static function.
7437         (fold_comparison): Add another test for pointer overflow.  Use
7438         pointer_may_wrap_p to disable some false positives.
7440 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
7441           
7442         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
7443         (fname_as_string): Match updated cpp_interpret_string prototype.
7444         (fix_string_type): Support char16_t* and char32_t*.
7445         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
7446         derivative) nodes.  Register as builtin if C++0x.
7447         (c_parse_error): Support CPP_CHAR{16,32}.
7448         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
7449         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
7450         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
7451         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
7452         CTI_CHAR32_ARRAY_TYPE>: New elements.
7453         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
7454         char32_type_node, signed_char32_type_node, char16_array_type_node,
7455         char32_array_type_node): New defines.
7456         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
7457         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
7458         (lex_string): Support CPP_STRING{16,32}, match updated
7459         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
7460         (lex_charconst): Support CPP_CHAR{16,32}.
7461         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
7462         and CPP_STRING{16,32}.
7464 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
7466         PR bootstrap/35457
7467         * aclocal.m4: Regenerate.
7468         * configure: Regenerate.
7470 2008-04-18  Jan Hubicka  <jh@suse.cz>
7472         * except.c (dw2_size_of_call_site_table,
7473         sjlj_size_of_call_site_table): Use vector API for call_site_record.
7475         * cgraphbuild.c (build_cgraph_edges): Update.
7476         * tree-pass.h: Update comment.
7477         * final.c (leaf_function_p): Update.
7478         (leaf_renumber_regs): Update.
7479         (rest_of_clean_state): Update.
7480         * omp-low.c (expand_omp_parallel): Update.
7481         * ipa-reference.c (analyze_function): Update.
7482         * reorg.c (find_end_label): Update.
7483         (optimize_skip): Update.
7484         (fill_simple_delay_slots): Update.
7485         (fill_simple_delay_slots): Update.
7486         (make_return_insns): Update.
7487         (dbr_schedule): Update.
7488         * gimple-low.c (record_vars_into): Update.
7489         * cfgbuild.c (make_edges): Update.
7490         * function.c (assign_stack_local): Update.
7491         (assign_parm_adjust_stack_rtl): Update.
7492         (locate_and_pad_parm): Update.
7493         (allocate_struct_function): Do not initialize stack_alignment_needed
7494         and preferred_stack_boundary here.
7495         (stack_protect_prologue): Update.
7496         (stack_protect_epilogue): Update.
7497         (expand_function_start): Initialize stack_alignment_needed,
7498         preferred_stack_boundary and max_jumptable_ents.
7499         (expand_function_end): Update.
7500         (free_after_compilation): Do not NULLify epilogue_delay_list.
7501         * function.h (struct rtl_data): Add stack_protect_guard,
7502         stack_alignment_needed,
7503         preferred_stack_boundary, epilogue_delay_list.
7504         (struct function): Remove value_histograms, stack_alignment_needed,
7505         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
7506         last_label_uid,
7507         unexpanded_var_list, stack_protect_guard.
7508         (current_function_epilogue_delay_list): Remove.
7509         * ipa-type-escape.c (analyze_function): Update.
7510         * gimplify.c (pop_gimplify_context): Update comment.
7511         * calls.c (expand_call): Update.
7512         (emit_library_call_value_1): Update.
7513         * except.c (set_nothrow_function_flags): Update.
7514         * cfgexpand.c (get_decl_align_unit): Update.
7515         (create_stack_guard): Update.
7516         (estimated_stack_frame_size): Update.
7517         (expand_used_vars): Update.
7518         (tree_expand_cfg): Free histogram earliers, init expansion variables.
7519         * explow.c (allocate_dynamic_stack_space): Update.
7520         * tree-ssa-live.c (remove_unused_locals): Update.
7521         * varasm.c (mark_constant_pool): Update.
7522         * tree-inline.c (remap_decls): Update.
7523         (initialize_cfun): Update.
7524         (declare_return_variable): Update.
7525         (inline_forbidden_p): Update.
7526         (expand_call_inline): Update.
7527         (declare_inline_vars): Update.
7528         (tree_function_versioning): Update.
7529         * tree-flow.h (value_histograms): New.
7530         (VALUE_HISTOGRAMS): New macro.
7531         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
7532         last_label_uid.
7533         * tree-cfg.c (set_bb_for_stmt): Update.
7534         (replace_by_duplicate_decl): Update.
7535         (move_block_to_fn): Update.
7536         (new_label_mapper): Update.
7537         (dump_function_to_file): Update.
7538         * ipa-struct-reorg.c (build_data_structure): Update.
7539         * cfgrtl.c (print_rtl_with_bb): Update.
7540         * reload1.c (reload): Update.
7541         (reload): Update.
7542         * config/i386/i386.c (setup_incoming_varargs_64,
7543         ix86_compute_frame_layout): Update.
7544         * config/arc/arc.c (arc_output_function_epilogue): Update.
7546 2008-04-18  Marius Strobl <marius@FreeBSD.org>
7548         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
7549         for FreeBSD as well.
7550         * gthr-posix95.h: Likewise.
7552 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
7554         PR rtl-optimization/35838
7555         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
7556         out the byte offset of the first subreg.
7558 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
7560         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
7561         to split_ti instead of three separate calls with single member arrays.
7562         (subti3 splitter): Ditto.
7563         (adddi3 splitter): Ditto with split_di.
7564         (subdi3 splitter): Ditto.
7565         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
7566         two separate calls with single member arrays.  Swap match_dup
7567         operands 1 and 2 to better fit into the array.
7568         (negdi2 splitter): Ditto with split_di.
7569         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
7570         two separate calls with single member arrays.  Swap match_dup operands
7571         6 and 7 to better fit into the array.
7573 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7575         * config/i386/i386.c (sse_builtin_type): New.
7576         (bdesc_sse_args): Likewise.
7577         (bdesc_sse_3arg): Removed.
7578         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
7579         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
7580         IX86_BUILTIN_ROUNDPS.
7581         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
7582         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
7583         IX86_BUILTIN_ROUNDPS.
7584         (ix86_expand_sse_4_operands_builtin): Removed.
7585         (ix86_expand_sse_operands_builtin): New.
7586         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
7587         and CODE_FOR_sse4_1_roundps.
7588         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
7589         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
7591 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
7593         PR target/35907
7594         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
7595         regs before frame pop when needed.  If use_backchain_to_restore_sp
7596         then load backchain into a temp reg to restore vr and vrsave.  Add
7597         code to restore vr after frame pop if possible.
7599 2008-04-17  Richard Guenther  <rguenther@suse.de>
7601         * tree-vn.c (expressions_equal_p): Do not check type
7602         equality or compatibility before calling operand_equal_p.
7603         * fold-const.c (operand_equal_p): Check equivalence of
7604         integer constants before bailing out due to signedness or
7605         precision differences.
7606         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
7607         spurious differences in type qualification.  Ignore types
7608         for COMPONENT_REFs at all.
7610 2008-04-17  Christian Bruel  <christian.bruel@st.com>
7612         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
7613         msw_skip comparison.
7614         
7615 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
7617         PR c/35739
7618         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
7619         reg type.
7621         PR tree-optimization/35899
7622         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
7623         rather than TREE_OPERAND.
7625 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
7627         PR target/35944
7628         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
7629         temporary registers.  Change operand predicate to general_operand.
7630         (remainderxf3): Ditto.
7632 2008-04-16  Richard Guenther  <rguenther@suse.de>
7634         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
7635         * tree-affine.c (aff_combination_expand): Look through some
7636         conversions.
7638 2008-04-15  Doug Kwan  <dougkwan@google.com>
7640         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
7641         for hex printing.
7642         * tree-pretty-print.c (dump_generic_node): Ditto.
7643         * final.c (output_addr_const): Ditto.
7644         * dwarf2out.c (output_cfi): Ditto.
7645         * c-pretty-print.c (pp_c_integer_constant): Ditto.
7646         * print-rtl.c (print_rtx): Ditto.
7647         * print-tree.c (print_node_brief, print_node): Ditto.
7648         * c-common.c (match_case_to_enum_1): Ditto.
7649         * sched-vis.c (print_value): Ditto.
7650         * config/i386/i386.c (print_operand): Cast to long unsigned int
7651         for hex printing.
7653 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
7654         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
7655         MS Windows VirtualProtect function.
7657 2008-04-15  Jan Hubicka  <jh@suse.cz>
7659         * gengtype.c (write_root): Param_is argument is OK.
7660         * expr.c (expand_expr_real_1): Update call of get_exception_*.
7661         * function.h: Include varray.h
7662         (rtl_eh): New stucture based on except.c one.
7663         (call_site_record): New forward declaration and vector type.
7664         * calls.c (emit_call_1): Do not call
7665         note_current_region_may_contain_throw.
7666         * except.c (eh_status): Remove cur_region, try_region since they are
7667         unused.
7668         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
7669         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
7670         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
7671         Remove call_site_data_used, call_site_data_size.
7672         Turn call_site_record into vector in function.h.
7673         (note_current_region_may_contain_throw): Remove.
7674         (get_exception_pointer, get_exception_filter): Do not take struct
7675         function argument; update.
7676         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
7677         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
7678         build_post_landing_pads, dw2_build_landing_pads,
7679         sjlj_assign_call_site_values, sjlj_mark_call_sites,
7680         sjlj_emit_function_enter, sjlj_emit_function_enter, 
7681         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
7682         sjlj_build_landing_pads, finish_eh_generation,
7683         remove_exception_handler_label, remove_eh_handler,
7684         maybe_remove_eh_handler, add_reachable_handler,
7685         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
7686         add_action_record, collect_one_action_chain, add_call_site,
7687         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
7688         sjlj_output_call_site_table, output_function_exception_table,
7689         * except.h (note_current_region_may_contain_throw): Remove
7690         (get_exception_pointer, get_exception_filter): Do not take struct
7691         function argument.
7692         * Makefile.in (GTFILES): Put varargs before struct function.
7694 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7696         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
7697         punt for STRING_CST.
7698         (get_constraint_for): Deal with STRING_CST here instead.
7700 2008-04-15  Richard Guenther  <rguenther@suse.de>
7702         * tree-ssa-propagate.c (substitute_and_fold): Substitute
7703         statements in a basic-block with a backward walk.  Do not
7704         substitute into dead statements but instead remove those.
7706 2008-04-15  Richard Guenther  <rguenther@suse.de>
7708         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
7709         to zero, thus disable creation of SFTs.
7711 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7713         * tree-predcom.c (suitable_reference_p): Return false if the
7714         reference can throw.
7716 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
7718         PR c/35751
7719         * c-decl.c (finish_decl): If extern or static var has variable
7720         size, set TREE_TYPE (decl) to error_mark_node.
7722 2008-04-15  Rafael Espindola  <espindola@google.com>
7724         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
7725         variable arg1.
7727 2008-04-15  Richard Guenther  <rguenther@suse.de>
7729         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7730         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
7731         (visit_reference_op_load): Do walk vuse-vdef chains on
7732         vn_reference_lookup.
7733         (visit_reference_op_store): But do not here.
7734         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
7735         vn_reference_lookup.
7736         (vn_lookup_with_vuses): But do so here.
7738 2008-04-14  Ian Lance Taylor  <iant@google.com>
7740         * fold-const.c (fold_overflow_warning): Remove assertion.
7742 2008-04-15  Ben Elliston  <bje@au.ibm.com>
7744         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
7745         temp1 local variables.
7747 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
7749         PR target/35661
7750         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
7751         ".text.unlikely" section as executable.
7753 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
7755         * config/ia64/ia64.c (rtx_needs_barrier): Handle
7756         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
7757         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
7758         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
7759         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
7760         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
7761         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
7763 2008-04-14  Ian Lance Taylor  <iant@google.com>
7765         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
7766         * fold-const.c (fold_comparison): If appropriate, test
7767         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
7768         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
7769         reassociating a pointer type.
7770         * doc/invoke.texi (Optimize Options): Document that
7771         -fstrict-overflow applies to pointer wraparound.
7773 2008-04-13  Jan Hubicka  <jh@suse.cz>
7775         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
7777 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
7779         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
7780         we are going to "save the world".
7782 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
7784         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
7785         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
7786         operand 0 constraint, not "=".
7788 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
7790         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
7792 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7794         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
7795         of size of positions_needed * CHAR_BIT.
7797 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7799         PR middle-end/35897
7800         * dse.c (store_info): Change positions_needed to unsigned
7801         HOST_WIDE_INT.
7802         (lowpart_bitmask): New.
7803         (record_store): Cast to unsigned HOST_WIDE_INT for
7804         positions_needed.  Assert width <= size of positions_needed *
7805         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
7806         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
7807         lowpart_bitmask to set mask.
7809 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7811         * config/bfin/constraints.md: New file.
7812         * config/bfin/bfin.md: Include it.
7813         (adddi3): Use satisfies_constraint functions instead of the old macros.
7814         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
7815         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
7816         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
7817         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
7818         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
7819         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
7820         EXTRA_CONSTRAINT): Delete.
7821         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
7822         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
7823         of the old macros.
7824         * config/bfin/bfin.c: Include "tm-constrs.h".
7825         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
7826         Use satisfies_constraint functions instead of the old macros.
7827         * doc/md.texi (Blackfin Constraints): Update file name reference.
7829 2008-04-11  Richard Guenther  <rguenther@suse.de>
7831         PR tree-optimization/35869
7832         * tree-vrp.c (execute_vrp): Move switch statement update after
7833         jump threading.  Schedule another cfg cleanup run.
7835 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
7837         PR c/35744
7838         * attribs.c (decl_attributes): Return early on errorneous node.
7840 2008-04-10  Oleg Ryjkov  <olegr@google.com>
7842         * tree.h (struct tree_base): Added a new flag default_def_flag.
7843         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
7845 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7847         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
7849 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7851         PR target/35768
7852         * pa.md: Define mode iterator P.  Define mode attribute dwc.
7853         (dcacheflush): Update pattern to use iterator P and attribute dwc.
7854         (icacheflush): Likewise.
7855         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
7856         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
7858 2008-04-11  Ben Elliston  <bje@au.ibm.com>
7860         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
7862 2008-04-10  Rafael Espindola  <espindola@google.com>
7864         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
7865         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
7866         (extract_range_from_expr): The same.
7868 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
7870         * config/mips/mips.md (GPR2): New mode iterator.
7871         (seq): Add comment.
7872         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
7873         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
7874         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
7875         Rewrite these to take two modes, the mode of comparison and the
7876         mode of the destination.
7877         * config/mips/mips.c (mips_expand_scc): Instead of having
7878         paradoxical subreg as destination, expand "narrowing" scc if mode
7879         of comparison is SI and target is requested in DI mode.
7880         (mips_emit_int_order_test): Update comment.  Make mode of
7881         comparison match CMP0 rather than TARGET.  When creating inverse
7882         target use mode of TARGET.
7884 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
7886         * gcov-dump.c (tag_summary): Only print summaries for the first
7887         GCOV_COUNTERS_SUMMABLE counters.
7889 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
7891         * config/i386/i386.md (absneg): New code iterator.
7892         (absnegprefix): New code attribute.
7893         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
7894         patterns using absneg code iterator.
7895         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
7896         using absneg code iterator.
7897         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
7898         *neg<mode>2 patterns using absneg code iterator.
7899         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7900         *negextendsfdf2 patterns using absneg code iterator.
7901         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
7902         *negextendsfxf2 patterns using absneg code iterator.
7903         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7904         *negextendsfdf2 patterns using absneg code iterator.
7905         * config/i386/sse.md (<code><mode>2): Macroize expander from
7906         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
7908 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
7910         * config/s390/s390.h: Remove the remains of the recent search
7911         & replace action of current_function_outgoing_args_size.
7913 2008-04-10  Ira Rosen  <irar@il.ibm.com>
7915         PR tree-optimization/35821
7916         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
7917         NEW_STMT_LIST is not NULL.
7919 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
7921         PR libstdc++/35597
7922         * toplev.c (process_options): Remove -ffunction-sections debugging
7923         warning.
7925 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
7927         PR middle-end/PR28690
7928         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
7929         than gen_rtx_fmt_ee to perform more canonicalizations.
7931 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7933         PR driver/35665
7934         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
7936 2008-04-09  Richard Guenther  <rguenther@suse.de>
7938         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
7939         (dump_function_to_file): Dump function arguments with types.
7941 2008-04-08  Richard Guenther  <rguenther@suse.de>
7943         * fold-const.c (fold_widened_comparison): Do not allow
7944         sign-changes that change the result.
7946 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
7948         PR target/35839
7949         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
7950         kinds of indirect references.
7952 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
7954         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
7955         GNU Fortran language string.
7957 2008-04-08  Rafael Espindola  <espindola@google.com>
7959         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
7960         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
7961         * tree.h (tree_call_nonnegative_warnv_p): New.
7963 2008-04-08  Jan Hubicka  <jh@suse.cz>
7965         * function.c (free_after_compilation): Clear out regno_reg_rtx
7966         pointer.
7968 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
7970         Revert
7971         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
7973         PR middle-end/PR28690
7974         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
7975         same precedence as REG_POINTER and MEM_POINTER operands.
7977 2008-04-08  Richard Guenther  <rguenther@suse.de>
7979         PR middle-end/35834
7980         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
7981         for adding index to base.
7983 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
7985         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
7986         (MINGW_ENABLE_EXECUTE_STACK): New.
7987         (IN_LIBGCC2): For libgcc include windows.h file for
7988         function declarations.
7990 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
7992         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
7993         and tem2 if tem1 is not a REG or MULT.
7995 2008-04-08  Jan Hubicka  <jh@suse.cz>
7997         * function.h (incomming_args): Break out of struct function.
7998         (function_subsections): Break out of struct function.
7999         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8000         return_rtx and hard_reg_initial_vals from struct function.
8001         Kill inl_max_label_num.
8002         (current_function_pops_args, current_function_args_info,
8003         current_function_args_size, current_function_args_size,
8004         current_function_pretend_args_size,
8005         current_function_outgoing_args_size,
8006         current_function_internal_arg_pointer, current_function_return_rtx):
8007         Kill compatibility accestor macros.
8008         * builtins.c (expand_builtin_apply_args_1): Update.
8009         (expand_builtin_next_arg): Update.
8010         * df-scan.c (df_get_call_refs): Update.
8011         * dbxout.c (dbxout_function_end): Update.
8012         * dwarf2out.c (dwarf2out_switch_text_section): Update.
8013         (output_line_info): Update.
8014         (secname_for_decl): Update.
8015         (dwarf2out_var_location): Update.
8016         * function.c (free_after_compilation): Update.
8017         (assign_parm_find_stack_rtl): Update.
8018         (assign_parms): Update.
8019         (expand_dummy_function_end): Update.
8020         (expand_function_end): Update.
8021         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
8022         (expand_call): Update.
8023         (emit_library_call_value_1): Update.
8024         (store_one_arg): Update.
8025         * varasm.c (initialize_cold_section_name): Update.
8026         (unlikely_text_section): Update.
8027         (unlikely_text_section_p): Update.
8028         (assemble_start_function): Update.
8029         (assemble_end_function): Update.
8030         (default_section_type_flags): Update.
8031         (switch_to_section): Update.
8032         * integrate.c (set_decl_abstract_flags): Update.
8033         (get_hard_reg_initial_val): Update.
8034         (has_hard_reg_initial_val): Update.
8035         (allocate_initial_values): Update.
8036         * resource.c (init_resource_info): Update.
8037         * config/alpha/alpha.c (NUM_ARGS): Update.
8038         (direct_return): Update.
8039         (alpha_va_start): Update.
8040         (alpha_sa_size): Update.
8041         (alpha_initial_elimination_offset): Update.
8042         (alpha_expand_prologue): Update.
8043         (alpha_start_function): Update.
8044         (alpha_expand_epilogue): Update.
8045         (unicosmk_initial_elimination_offset):
8046         * config/alpha/alpha.md (call expander): Update.
8047         * config/s390/s390.c (s390_register_info): Update.
8048         (s390_register_info): Update.
8049         (s390_frame_info): Update.
8050         (s390_initial_elimination_offset): Update.
8051         (s390_build_builtin_va_list): Update.
8052         (s390_va_start): Update.
8053         * config/spu/spu.c (direct_return): Update.
8054         (spu_expand_prologue): Update.
8055         (spu_initial_elimination_offset): Update.
8056         (spu_build_builtin_va_list): Update.
8057         (spu_va_start): Update.
8058         * config/sparc/sparc.c (sparc_init_modes): Update.
8059         (sparc_compute_frame_size): Update.
8060         (function_value): Update.
8061         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
8062         * config/i386/i386.md (return expander): Update.
8063         * config/i386/i386.c (ix86_va_start): Update.
8064         (ix86_can_use_return_insn_p): Update.
8065         (ix86_compute_frame_layout): Update.
8066         (ix86_expand_epilogue): Update.
8067         * config/sh/sh.c (output_stack_adjust): Update.
8068         (calc_live_regs): Update.
8069         (sh_expand_prologue): Update.
8070         (sh_builtin_saveregs): Update.
8071         (sh_va_start): Update.
8072         (initial_elimination_offset): Update.
8073         (sh_allocate_initial_value): Update.
8074         (sh_function_ok_for_sibcall): Update.
8075         (sh_get_pr_initial_val): Update.
8076         * config/sh/sh.md (return expander): Update.
8077         * config/avr/avr.c (frame_pointer_required_p): UPdate.
8078         * config/crx/crx.c (crx_compute_frame): UPdate.
8079         (crx_initial_elimination_offset): UPdate.
8080         * config/xtensa/xtensa.c (compute_frame_size): Update
8081         (xtensa_builtin_saveregs): Update.
8082         (xtensa_va_start): Update.
8083         (order_regs_for_local_alloc): Update.
8084         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
8085         (xstormy16_expand_builtin_va_start): Update.
8086         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
8087         * config/m68hc11/m68hc11.md (return expanders): Update.
8088         * config/m68hc11/m68hc11.c (expand_prologue): Update.
8089         (expand_epilogue): Update.
8090         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
8091         (cris_simple_epilogue): Update.
8092         (cris_expand_prologue): Update.
8093         (cris_expand_epilogue): Update.
8094         * config/iq2000/iq2000.c (iq2000_va_start): Update.
8095         (compute_frame_size): Update.
8096         * config/mt/mt.c (mt_compute_frame_size): Update.
8097         * config/mn10300/mn10300.c (expand_prologue): Update.
8098         (expand_epilogue): Update.
8099         (initial_offset): Update.
8100         (mn10300_builtin_saveregs):
8101         * config/mn10300/mn10300.md (return expander): Update.
8102         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8103         (ia64_initial_elimination_offset): Update.
8104         (ia64_initial_elimination_offset): Update.
8105         (ia64_expand_prologue): Update.
8106         * config/m68k/m68k.md (return expander): Update.
8107         * config/rs6000/rs6000.c (rs6000_va_start): Update.
8108         (rs6000_stack_info): Update.
8109         * config/mcore/mcore.c (layout_mcore_frame): Update.
8110         (mcore_expand_prolog): Update.
8111         * config/arc/arc.c (arc_compute_frame_size): Update.
8112         * config/score/score3.c (score3_compute_frame_size): Update.
8113         * config/score/score7.c (score7_compute_frame_size): Update.
8114         * config/arm/arm.c (use_return_insn): Update.
8115         (thumb_find_work_register): Update.
8116         (arm_compute_save_reg_mask): Update.
8117         (arm_output_function_prologue): Update.
8118         (arm_output_epilogue): Update.
8119         (arm_size_return_regs): Update.
8120         (arm_get_frame_offsets): Update.
8121         (arm_expand_prologue): Update.
8122         (thumb_exit): Update.
8123         (thumb_unexpanded_epilogue): Update.
8124         (thumb1_output_function_prologue): Update.
8125         * config/pa/pa.md (return expander): Update.
8126         * config/pa/pa.c (compute_frame_size): Update.
8127         (hppa_builtin_saveregs): Update.
8128         * config/mips/mips.c (mips_va_start): Update.
8129         (mips16_build_function_stub): Update.
8130         (mips_compute_frame_info): Update.
8131         (mips_restore_gp): Update.
8132         (mips_output_function_prologue): Update.
8133         (mips_expand_prologue): Update.
8134         * config/v850/v850.c (compute_frame_size): Update.
8135         (expand_prologue): * config/mmix/mmix.c (along): update.
8136         (mmix_initial_elimination_offset): update.
8137         (mmix_reorg): update.
8138         (mmix_use_simple_return): update.
8139         (mmix_expand_prologue): update.
8140         (mmix_expand_epilogue): Update.
8141         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
8142         (emit_link_insn): Update.
8144 2008-04-08  Anatoly Sokolov <aesok@post.ru>
8146         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
8147         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
8148         instructions.
8149         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
8150         atmega103 device.
8152 2008-04-07  Jan Hubicka  <jh@suse.cz>
8154         * function.h (rtl): Rename to x_rtl.
8155         (crtl): New define.
8156         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
8157         frame_offset, stack_check_probe_note, arg_pointer_save_area,
8158         used_temp_slots avail_temp_slots, temp_slot_level,
8159         nonlocal_goto_handler_labels): Update accesstors.
8160         (rtl): New global variable.
8161         (struct function): Move some fileds to rtl_data.
8162         (get_arg_pointer_save_area): Update prototype.
8163         * builtins.c (expand_builtin_setjmp_receiver): Update call of
8164         get_arg_pointer_save_area.
8165         * expr.c (init_expr): Update
8166         * function.c (get_frame_size): Update
8167         (assign_stack_local): Update
8168         (expand_function_end): Update.
8169         (get_art_pointer_save_area): Update
8170         * function.h 
8171         * emit-rtl.c (rtl): Declare.
8172         (regno_reg_rtx): Declare.
8173         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
8174         Update.
8175         (gen_reg_rtx): Update.
8176         * varasm.c (n_deferred_constatns): Update accestor.
8177         (init_varasm_status): Do not allocate varasm_status.
8178         (force_const_mem, get_pool_size, output_constant_pool): Update.
8179         * stmt.c (force_label_rtx): Do not use x_ prefixes.
8180         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
8181         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
8182         * sparc/sparc.h (INIT_EXPANDERS): Update.
8183         * ia64/ia64.h (INIT_EXPANDERS): Update.
8185 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
8187         * reload.c (push_secondary_reload): Add missing break to for loop.
8189 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8191         PR middle-end/PR28690
8192         * rtlanal.c: Update copyright years.
8193         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
8194         as REG_POINTER and MEM_POINTER operands.
8195         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
8196         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
8197         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
8198         * gcse.c: Update copyright years.
8199         (pre_delete): Call gen_reg_rtx_and_attrs.
8200         (hoist_code): Likewise.
8201         (build_store_vectors): Likewise.
8202         (delete_store): Likewise.
8203         * loop-invariant.c (move_invariant_reg): Likewise.
8204         Update copyright years.
8206 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
8208         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
8209         control string instead of quoted.
8211 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8213         * doc/rtl.texi: Rewrite of subreg section.
8215 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
8217         PR/35842
8218         * config/i386/i386.c (legitimize_pic_address): Add treating
8219         of dllimport SYM_REF's.
8220         (legitimize_dllimport_symbol): Add prototype.
8222 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8224         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
8225         reference in constructor with non self-referential type.
8227 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8229         Removal of Return with Depressed Stack Pointer support
8230         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
8231         (ECF_SP_DEPRESSED): Likewise.
8232         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
8233         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
8234         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8235         (expand_call): Do not test ECF_SP_DEPRESSED.
8236         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8237         * function.c (keep_stack_depressed): Delete.
8238         (handle_epilogue_set): Likewise.
8239         (update_epilogue_consts): Likewise.
8240         (emit_equiv_load): Likewise.
8241         (thread_prologue_and_epilogue_insns): Remove support for Return with
8242         Depressed Stack Pointer.
8243         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8245 2008-04-06  Richard Guenther  <rguenther@suse.de>
8247         PR tree-optimization/35400
8248         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
8249         information from SSA_NAMEs.
8251 2008-04-06  Anatoly Sokolov <aesok@post.ru>
8253         * config/avr/avr.h (avr_mega_p): Remove declaration.
8254         (AVR_MEGA): Remove macro.
8255         * config/avr/avr.c (avr_mega_p): Remove variable.
8256         (avr_override_options): Remove inicializion of avr_mega_p.
8257         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
8258         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
8259         (avr_jump_mode): (Ditto.).
8260         (avr_output_progmem_section_asm_op): (Ditto.).
8261         (avr_asm_init_sections): (Ditto.).
8262         (avr_asm_init_sections): (Ditto.).
8263         (avr_rtx_costs): (Ditto.).
8264         * config/avr/avr.md: (Ditto.).
8265         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
8266         '__AVR_MEGA__'.
8268 2008-04-06  Richard Guenther  <rguenther@suse.de>
8270         PR tree-optimization/35842
8271         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
8272         is_gimple_invariant_address.
8274 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8276         * gcc.c (default_compilers): Sync Fortran extensions list with
8277         that in fortran/lang-specs.h.
8278         * doc/invoke.texi: Likewise.
8279         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
8280         * dwarf2out.c (gen_compile_unit_die): Likewise.
8282 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
8284         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
8286 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
8288         PR target/12329
8289         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
8290         attribute is used for nested functions.
8292 2008-04-05  Jan Hubicka  <jh@suse.cz>
8294         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
8296         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
8297         letter argument.
8298         (dump_files): Update.
8299         (enable_rtl_dump_file): Do not accept letter argument.
8300         * tree-pass.h (dump_file_info): Remove letter argument.
8301         * toplev.c (decode_d_option): Update -da handling.
8302         * toplev.h (enable_rtl_dump_file): Update prototype.
8303         * passes.c (register_one_dump_file): Do not accept IPA argument; work
8304         it out based on pass type.
8305         (register_dump_files_1): Likewise.
8306         (init_optimization_passes): Update register_one_dump_file calls.
8307         (execute_one_pass): Sanity check that IPA passes are called at IPA
8308         level and RTL passes at RTL level.
8309         (execute_pass_list): IPA pass can not be after or subpass of
8310         GIMPLE/RTL pass.
8311         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
8312         disallov RTL subpasses of IPA subpasses.
8314 2008-04-05  Ben Elliston  <bje@au.ibm.com>
8316         * tree-cfg.c (need_fake_edge_p): Return false for calls to
8317         builtins that return exactly once and do not throw. Cache call to
8318         call_expr_flags.
8320 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
8322         PR rtl-optimization/34916
8323         PR middle-end/35519
8324         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
8325         between instruction pairs.
8327 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
8329         * doc/invoke.texi: Document -mbitops for SH.
8330         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
8331         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
8332         * config/sh/sh.c (print_operand): Add %t operand code.
8333         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
8334         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
8335         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
8336         (extendqihi2): Likewise.
8337         (movqi_i): Likewise.
8338         (insv): Use bset, bclr and bst instructions for SH2A if possible.
8339         (extv): Use bld instruction for SH2A if possible.
8340         (extzv): Likewise.
8341         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
8342         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
8343         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
8344         (bset.b, bclr.b): Define peepholes.
8345         * config/sh/sh.opt (mbitops): New option.
8347 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
8349         PR target/35620
8350         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
8351         and view convert expression.
8353 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
8355         PR target/35364
8356         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
8358 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
8360         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
8362         * config/i386/cpuid.h (bit_AES): New.
8363         (bit_PCLMUL): Likewise.
8365         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
8366         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
8367         SSE2 if AES or PCLMUL is enabled.
8368         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
8369         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
8370         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
8371         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
8372         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
8373         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
8374         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
8375         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
8376         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
8377         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
8378         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
8379         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
8380         __builtin_ia32_aeskeygenassist128 and
8381         __builtin_ia32_pclmulqdq128.
8382         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
8383         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
8384         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
8386         * config/i386/i386.h (TARGET_AES): New.
8387         (TARGET_PCLMUL): Likewise.
8388         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
8390         * config/i386/i386.md (UNSPEC_AESENC): New.
8391         (UNSPEC_AESENCLAST): Likewise.
8392         (UNSPEC_AESDEC): Likewise.
8393         (UNSPEC_AESDECLAST): Likewise.
8394         (UNSPEC_AESIMC): Likewise.
8395         (UNSPEC_AESKEYGENASSIST): Likewise.
8396         (UNSPEC_PCLMUL): Likewise.
8398         * config/i386/i386.opt (maes): New.
8399         (mpclmul): Likewise.
8401         * config/i386/sse.md (aesenc): New pattern.
8402         (aesenclast): Likewise.
8403         (aesdec): Likewise.
8404         (aesdeclast): Likewise.
8405         (aesimc): Likewise.
8406         (aeskeygenassist): Likewise.
8407         (pclmulqdq): Likewise.
8409         * config/i386/wmmintrin.h: New.
8411         * doc/extend.texi: Document AES and PCLMUL built-in function.
8413         * doc/invoke.texi: Document -maes and -mpclmul.
8415 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
8417         * function.c (free_after_parsing): Replace with
8418         cxx_push_function_context from C++ front-end.
8419         (allocate_struct_function): Don't call langhook.
8420         * langhooks.h (struct lang_hooks_for_functions): Delete.
8421         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
8422         member "function".
8423         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
8424         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
8425         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
8426         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
8427         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
8428         remove LANG_HOOKS_FUNCTION_INITIALIZER.
8429         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
8431         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
8432         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
8433         
8434 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
8436         PR c/35440
8437         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
8438         for all types.
8440 2008-04-04  Richard Guenther  <rguenther@suse.de>
8442         PR middle-end/35823
8443         * fold-const.c (optimize_minmax_comparison): Use the correct
8444         type for the constant in the simplified comparison.
8446 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
8448         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
8449         Pass L2 size as "--param l2-cache-size" to the compiler.
8450         (decode_l2_cache): New function to decode L2 cache parameters using
8451         0x8000006 extended cpuid function.
8452         (detect_caches_amd): Determine parameters of L2 cache using
8453         decode_l2_caches function.
8454         (decode_caches_intel): Decode L2 cache parameters.
8455         (detect_caches_intel): Determine L2 cache parameters using
8456         decode_caches_intel and decode_l2_caches functions.
8458 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
8460         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
8461         secondary input reload for subword loads from the constant pool.
8463 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
8465         PR target/35713
8466         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
8467           constants of the appropriate size for runtime calculations.
8469         PR c/35712
8470         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
8471           decimal-float literal constant zero.
8473 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
8475         PR c/35738
8476         * c-parser.c (c_parser_omp_atomic): Call
8477         default_function_array_conversion on the RHS.
8479         PR middle-end/35818
8480         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
8481         call is_variable_sized if decl has incomplete type.
8483 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
8485         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
8487 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
8489         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
8490         iterators.
8491         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
8492         (sgt<u>): Merge sgt and sgtu into new expander.
8493         (sgt, sgtu): Remove expanders.
8494         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
8495         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
8496         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
8497         *sgtu_<mode>_mips16 into new pattern.
8498         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
8499         (sge<u>): Merge sge and sgeu into new expander.
8500         (sge, sgeu): Remove expanders.
8501         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
8502         new pattern.
8503         (*sge_<mode>, second *sge_<mode>): Remove patterns.
8504         (slt<u>): Merge slt and sltu into new expander.
8505         (slt, sltu): Remove expanders.
8506         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
8507         (*slt_<mode>, *sltu_<mode>): Remove patterns.
8508         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
8509         *sltu_<mode>_mips16 into new pattern.
8510         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
8511         (sle<u>): Merge sle and sleu into new expander.
8512         (sle, sleu): Remove expanders.
8513         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
8514         (*sle_<mode>, *sleu_<mode>): Remove patterns.
8515         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
8516         *sleu_<mode>_mips16 into new pattern.
8517         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
8519 2008-04-03  Jan Hubicka  <jh@suse.cz>
8521         PR tree-optimization/35795
8522         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
8523         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8524         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8525         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8526         * score/score3.c (score3_output_mi_thunk): Likewise.
8527         * score/score7.c (score7_output_mi_thunk): Likewise.
8528         * mips/mips.c (mips_output_mi_thunk): Likewise.
8530 2008-04-03  Richard Guenther  <rguenther@suse.de>
8532         * tree-vrp.c (extract_range_from_unary_expr): Handle all
8533         conversions.  Simplify code.
8535 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8537         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
8539 2008-04-03  Tom Tromey  <tromey@redhat.com>
8540             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8542         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
8543         * config/bfin/t-bfin-linux (generated_files): Add
8544         linux-sysroot-suffix.h.
8545         * doc/install.texi (Prerequisites): Require make 3.80.
8546         * doc/sourcebuild.texi (Front End Directory): Document new
8547         variable.
8548         * Makefile.in (generated_files): New variable.
8549         (ALL_HOST_OBJS): New variable.
8550         ($(ALL_HOST_OBJS)): New target.
8552 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
8554         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
8555         (remap_block): Call id->transform_lang_insert_block instead
8556         of langhook.
8557         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
8558         Set id.transform_lang_insert_block to NULL.
8559         (clone_body): Move to cp/optimize.c
8560         * tree-inline.h (struct copy_body_data): Change
8561         transform_lang_insert_block to function pointer.
8562         (copy_generic_body, copy_decl_no_change): Export.
8563         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
8564         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
8565         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
8567         * c-tree.h (insert_block): Kill.
8568         * c-decl.c (insert_block): Kill.
8570 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
8572         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8573         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
8574         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
8575         argument.
8576         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
8577         argument, call {push,pop}_function_context from here.
8578         * c-parser.c: Use c_{push,pop}_function_context.
8580         * function.c (push_function_context_to): Move meat ...
8581         (push_function_context): ... here.  Simplify.
8582         * function.c (pop_function_context_from): Move meat ...
8583         (pop_function_context): ... here.  Simplify.
8584         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
8585         leave_nested).
8586         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8587         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
8588         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
8589         * tree.h (push_function_context_to, pop_function_context_from): Remove.
8591 2008-04-03  Ben Elliston  <bje@au.ibm.com>
8593         * expmed.c (extract_force_align_mem_bit_field): Remove.
8595 2008-04-03  Richard Guenther  <rguenther@suse.de>
8597         PR middle-end/35800
8598         * expr.h (try_casesi): Adjust prototype.
8599         * expr.c (try_casesi): Take fallback label as extra parameter.
8600         Use that for gen_casesi if default_label is NULL.
8601         * stmt.c (expand_case): Pass fallback label to try_casesi,
8602         make sure to fill gaps with a fallback label if default_label
8603         is not present.
8605 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
8607         PR target/35801
8608         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
8610 2008-04-03  Ben Elliston  <bje@au.ibm.com>
8612         * expmed.c (extract_split_bit_field): Remove if (0) code.
8613         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
8614         (do_ds_constraint): Likewise.
8616 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
8618         * doc/cppopts.texi (-dU): Document.
8619         * c-common.h (flag_dump_macros): Update comment.
8620         * c-opts.c (handle_OPT_d): Handle -dU.
8621         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
8622         dump_queued_macros, cb_used_define, cb_used_undef): New.
8623         (init_pp_output): Handle -dU.
8624         (cb_line_change): Call dump_queued_macros.
8625         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
8627 2008-04-02  Anatoly Sokolov <aesok@post.ru>
8629         * config/avr/predicates.md (io_address_operand): New predicate. 
8630         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
8631         * config/avr/avr.c (avr_io_address_p): Remove function.
8632         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
8633         'avr_io_address_p' function.
8634         (out_movhi_r_mr): (Ditto.).
8635         (out_movqi_mr_r): (Ditto.).
8636         (out_movhi_mr_r): (Ditto.).
8637         (avr_address_cost): (Ditto.).
8639 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
8641         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
8642         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
8643         in 32bit mode when XMM registers are available to avoid store
8644         forwarding stalls.
8645         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
8646         corresponding post-reload splitters.
8648 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8650         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
8651         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
8652         __builtin_ia32_roundss.
8653         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
8654         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
8655         __builtin_ia32_roundss.
8656         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
8657         IX86_BUILTIN_SHUFPD here.
8659 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8661         * config/i386/i386.md (plogic): New.
8662         (plogicprefix): Likewise.
8664         * config/i386/mmx.md (mmx_<code><mode>3): New.
8665         (mmx_and<mode>3): Removed.
8666         (mmx_ior<mode>3): Likewise.
8667         (mmx_xor<mode>3): Likewise.
8669         * config/i386/sse.md (<code><mode>3): New.
8670         (*<code><mode>3): Likewise.
8671         (*<code><mode>3): Likewise.
8672         (<code><mode>3): Likewise.
8673         (*sse_<code><mode>3): Likewise.
8674         (*sse2_<code><mode>3): Likewise.
8675         (<code>tf3): Likewise.
8676         (*<code>tf3): Likewise.
8677         (and<mode>3): Likewise.
8678         (*and<mode>3): Likewise.
8679         (ior<mode>3): Removed.
8680         (*ior<mode>3): Likewise.
8681         (xor<mode>3): Likewise.
8682         (*xor<mode>3): Likewise.
8683         (*and<mode>3): Likewise.
8684         (*ior<mode>3): Likewise.
8685         (*xor<mode>3): Likewise.
8686         (and<mode>3): Likewise.
8687         (*sse_and<mode>3): Likewise.
8688         (*sse2_and<mode>3): Likewise.
8689         (andtf3): Likewise.
8690         (*andtf3): Likewise.
8691         (ior<mode>3): Likewise.
8692         (*sse_ior<mode>3): Likewise.
8693         (*sse2_ior<mode>3): Likewise.
8694         (iortf3): Likewise.
8695         (*iortf3): Likewise.
8696         (xor<mode>3): Likewise.
8697         (*sse_xor<mode>3): Likewise.
8698         (*sse2_xor<mode>3): Likewise.
8699         (xortf3): Likewise.
8700         (*xortf3): Likewise.
8702 2008-04-02  Richard Guenther  <rguenther@suse.de>
8704         PR tree-optimization/14495
8705         PR tree-optimization/34793
8706         * tree-vrp.c (struct switch_update): New structure.
8707         (to_remove_edges, to_update_switch_stmts): New VECs.
8708         (simplify_switch_using_ranges): New function.  Remove not taken
8709         case labels and edges.
8710         (simplify_stmt_using_ranges): Call it.
8711         (identify_jump_threads): Mark edges we have queued for removal
8712         so we don't thread them.
8713         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
8714         case label vector.
8715         * tree-cfg.c (group_case_labels): Deal with missing default label.
8716         (tree_verify_flow_info): Allow missing default label.
8717         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
8718         (emit_case_nodes): Likewise.
8719         (expand_case): Do not rely on the default label to be present.
8720         * expr.c (try_casesi): Deal with NULL default_label.
8721         (do_tablejump): Likewise.
8723 2008-04-02  Richard Guenther  <rguenther@suse.de>
8725         PR tree-optimization/14495
8726         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
8727         SWITCH_EXPR here ...
8728         (vrp_visit_switch_stmt): ... but here (new function).
8729         (find_case_label_index): New helper function.
8730         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
8732 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8734         * fwprop.c: Fix ISO-C99ism.
8736 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8738         PR bootstrap/35752
8739         * Makefile.in (objdir): Set it here.
8740         * configure.ac: Not here.  Find dynamic linker characteristics.
8741         * exec-tool.in: Use them.
8742         * aclocal.m4: Regenerate.
8743         * configure: Regenerate.
8745 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8747         * expr.c (expand_var): Delete it.
8748         * expr.h (expand_var): Delete prototype.
8749         * function.c (expand_function_start): Use expand_decl instead.
8750         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
8751         langhook.
8753 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
8755         PR rtl-optimization/35542
8756         * fwprop.c (forward_propagate_and_simplify): Replace
8757         loc_reg_mentioned_in_p with reg_mentioned_p.
8759 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8761         PR rtl-optimization/35281
8762         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
8763         (propagate_rtx_1): Handle PR_HANDLE_MEM.
8764         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
8765         (varying_mem_p): Move above propagate_rtx.
8766         (all_uses_available_at): Do not check MEMs.
8768 2008-04-02  Rafael Espindola  <espindola@google.com>
8770         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
8771         (register_edge_assert_for_2): Split the cond argument.
8772         (register_edge_assert_for_1): Adjust for the change in
8773         register_edge_assert_for_2.
8774         (register_edge_assert_for): Split the cond argument.
8775         (find_switch_asserts): Adjust for the change in
8776         register_edge_assert_for.
8778 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
8780         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
8781         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
8782         offsets for 64-bit mingw.
8783         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
8784         abi for x86_64-pc-mingw.
8786 2008-04-02  Richard Guenther  <rguenther@suse.de>
8788         * tree-vrp.c (extract_range_from_assert): Make sure to not
8789         produce range min/max with TREE_OVERFOW set.
8790         If merging a anti-range and a range keep the anti-range if
8791         the range covers all values of the type.
8792         (register_edge_assert_for_2): Only allow sign-changing
8793         conversions in detecting canonical range checks.  Also
8794         register an assert for the unsigned name if useful.
8796         PR tree-optimization/35787
8797         * tree-vrp.c (vrp_val_max): New function.
8798         (vrp_val_min): Likewise.
8799         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
8800         (vrp_val_is_min): Likewise.
8801         (supports_overflow_infinity): Use vrp_val_{min,max}.
8802         (negative_overflow_infinity): Likewise.
8803         (positive_overflow_infinity): Likewise.
8804         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
8805         (is_positive_overflow_infinity): Likewise.
8806         (is_overflow_infinity): Likewise.
8807         (avoid_overflow_infinity): Use vrp_val_{min,max} and
8808         vrp_val_is_{min,max}.
8809         (set_and_canonicalize_value_range): Canonicalize anti-ranges
8810         to ranges if possible.  Avoid empty ranges.
8812 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8814         PR middle-end/35705
8815         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
8816         the expression is a function address.
8818 2008-04-01  George Helffrich  <george@gcc.gnu.org>
8820         PR fortran/35154, fortran/23057
8821         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
8822         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
8823         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
8824         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
8825         in common.
8826         (dbxout_syms): Check for COMMON-based symbol and wrap in
8827         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
8828         in bracket for efficiency.
8830         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
8831         using DW_TAG_common_block + member offset.
8832         (add_pubname_string): New function.
8833         (dw_expand_expr): New function to find block name and offset for
8834         COMMON var.
8835         (common_check): New function to check whether symbol in Fortran COMMON.
8836         (gen_variable_die): If COMMON, use DW_TAG_common_block.
8838 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
8840         PR c/35436
8841         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
8843 2008-04-02  Ben Elliston  <bje@au.ibm.com>
8845         * config/v850/v850.md (casesi): Remove if (0) code.
8846         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8847         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8849 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
8851         * config/i386/i386.md (rex64suffix): New mode attribute.
8852         (floathi<mode>2): Disable expander for SSE math.
8853         (*floathi<mode>2_1): New insn insn_and_split pattern.
8854         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
8855         corresponding post-reload splitters.
8856         (*floathi<mode>2_i387): New macroized insn pattern.
8857         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
8858         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
8859         insn_and_split pattern.
8860         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
8861         New macroized instruction patterns and corresponding post-reload
8862         splitters.
8863         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
8864         and corresponding post-reload splitters.
8865         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
8866         New macroized instruction patterns.
8867         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
8868         macroized instruction patterns and corresponding post-reload splitters.
8869         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
8870         corresponding post-reload splitters.
8871         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
8872         New macroized instruction patterns.
8873         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
8874         corresponding post-reload splitters.
8875         (*floatsi<mode>2_i387): New macroized instruction patterns.
8877 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8879         * config/i386/i386.md (smaxmin): New.
8880         (umaxmin): Likewise.
8881         (maxminiprefix): Likewise.
8882         (maxminfprefix): Likewise.
8883         (<code><mode>3): Likewise.
8884         (smin<mode>3): Removed.
8885         (smax<mode>3): Likewise.
8887         * config/i386/mmx.md (mmx_<code>v2sf3): New.
8888         (mmx_<code>v4hi3): Likewise.
8889         (mmx_<code>v8qi3): Likewise.
8890         (mmx_smaxv2sf3): Removed.
8891         (mmx_sminv2sf3): Likewise.
8892         (mmx_umaxv8qi3): Likewise.
8893         (mmx_smaxv4hi3): Likewise.
8894         (mmx_uminv8qi3): Likewise.
8895         (mmx_sminv4hi3): Likewise.
8897         * config/i386/sse.md (<addsub><mode>3): New.
8898         (*<addsub><mode>3): Likewise.
8899         (<sse>_vm<addsub><mode>3): Likewise.
8900         (<maxmin><mode>3): Likewise.
8901         (*<maxmin><mode>3_finite): Likewise.
8902         (*<maxmin><mode>3): Likewise.
8903         (<sse>_vm<maxmin><mode>3): Likewise.
8904         (sse3_h<addsub>v4sf3): Likewise.
8905         (sse3_h<addsub>v2df3): Likewise.
8906         (<maxmin>v16qi3): Likewise.
8907         (*<maxmin>v16qi3): Likewise.
8908         (<maxmin>v8hi3): Likewise.
8909         (*<maxmin>v8hi3): Likewise.
8910         (*sse4_1_<maxmin><mode>3): Likewise.
8911         (*sse4_1_<maxmin><mode>3): Likewise.
8912         (add<mode>3): Removed.
8913         (*add<mode>3): Likewise.
8914         (<sse>_vmadd<mode>3): Likewise.
8915         (sub<mode>3): Likewise.
8916         (*sub<mode>3): Likewise.
8917         (<sse>_vmsub<mode>3): Likewise.
8918         (smin<mode>3): Likewise.
8919         (*smin<mode>3_finite): Likewise.
8920         (*smin<mode>3): Likewise.
8921         (<sse>_vmsmin<mode>3): Likewise.
8922         (smax<mode>3): Likewise.
8923         (*smax<mode>3_finite): Likewise.
8924         (*smax<mode>3): Likewise.
8925         (<sse>_vmsmax<mode>3): Likewise.
8926         (sse3_haddv4sf3): Likewise.
8927         (sse3_haddv2df3): Likewise.
8928         (sse3_hsubv4sf3): Likewise.
8929         (sse3_hsubv2df3): Likewise.
8930         (umaxv16qi3): Likewise.
8931         (*umaxv16qi3): Likewise.
8932         (smaxv8hi3): Likewise.
8933         (*smaxv8hi3): Likewise.
8934         (*sse4_1_smax<mode>3): Likewise.
8935         (*sse4_1_umax<mode>3): Likewise.
8936         (uminv16qi3): Likewise.
8937         (*uminv16qi3): Likewise.
8938         (sminv8hi3): Likewise.
8939         (*sminv8hi3): Likewise.
8940         (*sse4_1_smin<mode>3): Likewise.
8941         (*sse4_1_umin<mode>3): Likewise.
8943 2008-04-01  Rafael Espindola  <espindola@google.com>
8945         * tree-cfg.c (verify_expr): remove in_phi.
8946         (verify_stmt): Don't call walk_tree with verify_expr. Use
8947         is_gimple_min_invariant instead of is_gimple_val.
8949 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
8951         * doc/include/gpl_v3.texi: Update for manpage generation.
8952         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
8953         gpl.texi.
8954         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
8955         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
8956         gpl_v3.texi instead of gpl.texi.
8957         (gpl.pod): New.
8959 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
8961         PR pch/13675
8962         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
8964 2008-04-01  Rafael Espindola  <espindola@google.com>
8966         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
8967         (extract_code_and_val_from_cond): Use
8968         extract_code_and_val_from_cond_with_ops.
8970 2008-04-01  Jan Hubicka  <jh@suse.cz>
8972         * function.c (free_after_compilation): Free epilogue_delay_list.
8973         (prepare_function_start): Assert that previous compilation was freed.
8975 2008-04-01  Jan Hubicka  <jh@suse.cz>
8976             Jim Wilson  <wilson@tuliptree.org>
8977             Andreas Tobler <andreast@gcc.gnu.org>
8979         PR middle-end/35781
8980         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
8981         rtl.emit instead cfun->emit.
8982         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
8983         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
8985 2008-04-01  Ben Elliston  <bje@au.ibm.com>
8987         * doc/c-tree.texi (Function Basics): Fix grammatical error.
8989 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
8991         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
8992         New options
8993         (fprofile-use): Add var flag_profile_use
8994         * coverage.c (coverage_begin_output): Do not open a gcno file for
8995         output only if -ftest-coverage is set.
8996         Do not add getpwd() to gcda file path.
8997         (build_gcov_info): Check the new flag
8998         flag_profile_datafile_relative_path.
8999         (coverage_init): Use profile_data_prefix.
9000         Read profile counter only if flag_profile_use is set.
9001         * opts.c (common_handle_option): New option fprofile-use=,
9002         fprofile-dir=, fprofile-generate=.
9003         * toplev.c (profile_data_prefix): New variable definition.
9004         * toplev.h (profile_data_prefix): New declaration.
9005         * doc/invoke.tex (Option Summary, Optimization Options):
9006         Add new options.
9008 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
9010         * varasm.c (output_constant_pool_1): In LABEL_REF check,
9011         use tmp consistently.
9013         PR target/35695
9014         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9015         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9016         UNSPEC_FR_RECIP_APPROX_RES.
9017         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9019 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
9021         PR c/35750
9022         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
9024 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9026         PR middle-end/30186
9027         * fold-const.c (fold_indirect_ref_1): Support accessing non first
9028         element of the vector via a pointer.
9030 2008-03-31  Ian Lance Taylor  <iant@google.com>
9032         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
9034 2008-03-31  Jan Hubicka  <jh@suse.cz>
9036         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9037         get_arg_pointer_save_area.
9038         * expr.c (init_expr): Just clear out rtl.expr.
9039         * function.c (free_after_compilation): Clear out whole RTL structure.
9040         (get_func_frame_size): Merge into ...
9041         (get_frame_size): ... this one.
9042         (assign_stack_local_1): Merge into ...
9043         (assign_stack_local): ... this one.
9044         (expand_function_end): Update call of get_arg_pointer_save_area.
9045         (get_art_pointer_save_area): Remove cfun argument.
9046         * function.h (emit_status): regno_pointer_align does not need length
9047         attribute. Move x_regno_reg_rtx to ...
9048         (regno_reg_rtx): ... new global array.
9049         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
9050         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
9051         apply_args_value, forced_labels, stack_pointer_delta):
9052         Update accestors.
9053         (struct varasm_status): Move here from varasm.c
9054         (struct rtl_data): New. Move here some fields from struct function.
9055         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9056         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9057         used_temp_slots avail_temp_slots, temp_slot_level,
9058         nonlocal_goto_handler_labels): Update accesstors.
9059         (rtl): New global variable.
9060         (struct function): Move some fileds to rtl_data.
9061         (get_arg_pointer_save_area): Update prototype.
9062         * emit-rtl.c (rtl): Declare.
9063         (regno_reg_rtx): Declare.
9064         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9065         Update.
9066         (gen_reg_rtx): Update.
9067         (init_virtual_regs): Do not tate emit_status argument.
9068         (init_emit): Do not allocate emit.
9069         * varasm.c (varasm_statuc): Move to function.h.
9070         (n_deferred_constatns): Update accestor.
9071         (init_varasm_status): Do not allocate varasm_status.
9072         (force_const_mem, get_pool_size, output_constant_pool): Update.
9073         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9074         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9076 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
9078         PR rtl-optimization/35729
9079         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
9080         references.
9082 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9084         PR target/32000
9085         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
9086         load/store if memory is unaligned.
9087         (*movti_rex64): Likewise.
9089         * config/i386/predicates.md (misaligned_operand): New.
9091 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
9093         PR tree-opt/35431
9094         * tree-ssa-phiopt.c (conditional_replacement): Return early for
9095         complex types.
9097 2008-03-31  Jan Beulich  <jbeulich@novell.com>
9099         * config/ia64/constraints.md: Add 'j' constraint.
9100         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
9101         (movdi_internal): Likewise.
9103 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
9105         PR c/35748
9106         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
9108 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9110         PR target/35757
9111         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
9112         proper error message for the third argument on blendpd and
9113         blendps.
9115         * config/i386/sse.md (blendbits): New.
9116         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
9118 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9120         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
9122 2008-03-30  Richard Guenther  <rguenther@suse.de>
9124         PR middle-end/31023
9125         * fold-const.c (fold_sign_changed_comparison): Do leave
9126         conversions to base-types alone.
9128 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9130         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
9131         the link register if one altivec register is be saved.
9133 2008-03-30  Ben Elliston  <bje@au.ibm.com>
9135         * final.c (final_scan_insn): Remove if (0) code.
9137 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
9139         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
9141 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9143         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
9144         of V4SFmode to ix86_binary_operator_ok.
9146 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
9148         * config/i386/i386.c (override_options): Initialize
9149         ix86_veclib_handler to ix86_veclibabi_svml when
9150         -mveclibabi=svml is used.
9151         (ix86_veclibabi_svml): New function for SVML ABI style
9152         vectorization support.
9153         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
9155 2008-03-28  Rafael Espindola  <espindola@google.com>
9157         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
9158         (tree_binary_nonnegative_warnv_p): Make it public.
9159         (tree_single_nonnegative_warnv_p): Make it public.
9160         (tree_invalid_nonnegative_warnv_p): Make it public.
9161         (tree_unary_nonzero_warnv_p): Make it public.
9162         (tree_binary_nonzero_warnv_p): Make it public
9163         (tree_single_nonzero_warnv_p): Make it public.
9164         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
9165         (extract_range_from_binary_expr): Split the expr argument.
9166         (extract_range_from_unary_expr): Split the expr argument.
9167         (extract_range_from_comparison): Split the expr argument.
9168         (extract_range_from_expr): Use the new aux functions.
9169         (vrp_evaluate_conditional_warnv): Use
9170         vrp_evaluate_conditional_warnv_with_ops.
9171         * tree.h (tree_unary_nonzero_warnv_p): Declare.
9172         (tree_binary_nonzero_warnv_p): Declare.
9173         (tree_single_nonzero_warnv_p): Declare.
9174         (tree_expr_nonzero_warnv_p): Declare.
9175         (tree_unary_nonnegative_warnv_p): Declare.
9176         (tree_binary_nonnegative_warnv_p): Declare.
9177         (tree_single_nonnegative_warnv_p): Declare.
9178         (tree_invalid_nonnegative_warnv_p): Declare.
9180 2008-03-28  Richard Guenther  <rguenther@suse.de>
9182         PR tree-optimization/30317
9183         PR tree-optimization/30911
9184         PR tree-optimization/34793
9185         * tree-vrp.c (set_and_canonicalize_value_range): New function.
9186         (struct assert_locus_d): New member EXPR.
9187         (register_new_assert_for): Add EXPR parameter to support
9188         ASSERT_EXPR <name, expr OP limit>.
9189         (register_edge_assert_for_1): Adjust callers.
9190         (find_assert_locations): Likewise.
9191         (process_assert_insertions_for): Build condition from expression.
9192         (extract_range_from_assert): Handle ASSERT_EXPRs
9193         of the form ASSERT_EXPR <name, expr OP limit>.
9194         (register_edge_assert_for_2): New helper registering
9195         asserts for comparisons.  Recognize range tests of the form
9196         (unsigned)i - CST1 OP CST2.
9197         (register_edge_assert_for_1): Use it.
9198         (register_edge_assert_for): Likewise.
9199         (needs_overflow_infinity): Integer sub-types
9200         do not need overflow infinities.
9201         (vrp_val_is_max): The extreme values of integer sub-types
9202         are those of the base type.
9203         (vrp_val_is_min): Likewise.
9204         * tree.def (ASSERT_EXPR): Document extra allowed conditional
9205         expressions.
9207 2008-03-28  Nick Clifton  <nickc@redhat.com>
9209         PR target/31110
9210         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
9211         Return GENERAL_REGS for stack adjustment reloads.
9213 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9215         PR target/31334
9216         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
9217         const_vector when all the vectors are constant.
9219 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
9221         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
9222         comparisons.
9223         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
9224         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
9225         (scc_sf): New.
9226         (s<code>_sf): Use new scc_sf attribute for opcode names.
9228 2008-03-27  Tom Tromey  <tromey@redhat.com>
9230         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
9231         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
9232         config/spu/t-spu-elf, config/i386/t-interix,
9233         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
9234         config/i386/x-darwin, config/i386/x-mingw32,
9235         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
9236         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
9237         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
9238         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
9239         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
9240         config/rs6000/x-darwin, config/rs6000/t-rs6000,
9241         config/score/t-score-elf, config/arm/t-strongarm-pe,
9242         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
9243         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
9244         Revert automatic dependency patch.
9246 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9248         PR target/35657
9249         * config/i386/i386.c (ix86_function_arg_boundary): Align
9250         decimal floating point to its natural boundary.
9252 2008-03-27  Richard Guenther  <rguenther@suse.de>
9254         PR middle-end/35716
9255         * fold-const.c (fold_comparison): Restrict distinct decl
9256         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
9257         solely rely on operand_equal_p.
9259 2008-03-27  Richard Guenther  <rguenther@suse.de>
9261         PR c/32511
9262         * c-common.c (handle_weak_attribute): Reject combination of
9263         weak and inline.
9265 2008-03-27  Richard Guenther  <rguenther@suse.de>
9267         PR tree-optimization/32810
9268         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
9269         conversions from DECL_INITIAL.
9270         (fold_const_aggregate_ref): Likewise from constructor elements.
9272 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
9274         * tree-affine.h (aff_combination_expand): Declare.
9275         (get_inner_reference_aff): Likewise.
9276         * tree-affine.c (aff_combination_expand): Split out from
9277         tree_to_aff_combination_expand.
9278         (get_inner_reference_aff): New function.
9279         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
9280         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
9281         (struct lim_aux_data): sm_done field removed.
9282         (mem_ref_loc_p, mem_ref_locs_p): New types.
9283         (struct mem_ref): Added id, stored, accesses_in_loop,
9284         indep_loop, dep_loop, indep_ref, dep_ref fields.
9285         Removed is_stored, locs and next fields.
9286         (memory_accesses): New variable.
9287         (movement_possibility): Do not allow moving statements
9288         that store to memory.
9289         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
9290         New functions.
9291         (determine_max_movement): For statements with memory references,
9292         find the outermost loop in that the reference is independent.
9293         (move_computations_stmt): Mark the virtual operands for renaming.
9294         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
9295         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
9296         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
9297         add_vop_ref_mapping, create_vop_ref_mapping_loop,
9298         create_vop_ref_mapping, analyze_memory_references,
9299         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
9300         get_all_locs_in_loop, ref_always_accessed_p,
9301         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
9302         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
9303         store_motion_loop, store_motion): New functions.
9304         (struct vop_to_refs_elt): New type.
9305         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
9306         memref_hash, memref_eq, hoist_memory_references): Rewritten.
9307         (schedule_sm): Replaced by...
9308         (execute_sm): ... this.
9309         (determine_lsm_ref, hoist_memory_references,
9310         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
9311         find_more_ref_vops, free_mem_ref, free_mem_refs,
9312         determine_lsm_loop, determine_lsm): Removed.
9313         (tree_ssa_lim_finalize): Free data structures used by store motion.
9314         (tree_ssa_lim): Call analyze_memory_references.  Use
9315         store_motion instead of determine_lsm.
9317 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
9319         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
9320         rename tmake_file to m68hc11/t-m68hc11.
9321         (mcore): Set inhibit_libc to true.
9322         * config.host (alpha*-dec-*vms*): Set extra_programs.
9323         (interix3*): Don't use host_xmake_file.
9324         * configure.ac: Let config.gcc override inhibit_libc.
9325         * configure: Regenerate.
9327         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
9328         * config/t-openbsd-thread: Remove commented out lines.
9329         
9330         * config/x-interix: Remove.
9332         * config/m68hc11/t-m68hc11-gas: Rename to...
9333         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
9335         * config/mcore/t-mcore: Remove T_CFLAGS.
9336         * config/mcore/t-mcore-pe: Likewise.
9338 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
9340         * configure.ac: Replace custom __GNU_SOURCE test with
9341         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
9342         * aclocal.m4: Regenerate.
9343         * configure: Regenerate.
9344         * config.in: Regenerate.
9346 2008-03-27  Richard Guenther  <rguenther@suse.de>
9348         * fold-const.c (target.h): Include.
9349         (fold_comparison): Fold comparison of addresses of decls
9350         that bind locally or of constants.  Consolidate address folding code.
9351         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
9352         results from fold_binary_to_constant.
9353         (compare_values_warnv): Likewise.
9355 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
9357         PR middle-end/35429
9358         * fold-const.c (fold_truthop): Check for integeral types when folding
9359         a == 0 && b == 0 and a != 0 || b != 0 .
9361 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9363         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
9365 2008-03-26  Andreas Schwab  <schwab@suse.de>
9367         * doc/invoke.texi: Fix use of @item vs. @itemx.
9369 2008-03-26  Tom Tromey  <tromey@redhat.com>
9371         * Makefile.in (build/gensupport.o, build/print-rtl.o,
9372         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
9373         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
9374         build/gencodes.o, build/genconditions.o, build/genconfig.o,
9375         build/genconstants.o, build/genemit.o, build/genextract.o,
9376         build/genflags.o, build/genmddeps.o, build/genopinit.o,
9377         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
9378         options.h.
9380 2008-03-26  Richard Guenther  <rguenther@suse.de>
9382         Revert
9383         2008-03-26  Richard Guenther  <rguenther@suse.de>
9385         * fold-const.c (target.h): Include.
9386         (fold_comparison): Fold comparison of addresses of two decls
9387         that bind locally.  Consolidate address folding code.
9389 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9391         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
9392         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
9393         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
9394         dconstsqrt2, dconstthird, dconste and/or dconst10.
9395         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
9396         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
9397         dconstsqrt2, dconste): Delete.
9398         (init_emit_once): Likewise.  Simplify initializing dconstm1.
9399         Constify variable.
9400         * real.c (get_real_const): New.
9401         * real.h (dconst3, dconst10, dconstm2, dconstthird,
9402         dconstsqrt2, dconste): Delete.
9403         (real_value_const, get_real_const): New.
9405 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9407         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
9409         * config/i386/i386.c (ix86_function_arg_boundary): Check
9410         BIGGEST_ALIGNMENT instead of 128.
9411         (setup_incoming_varargs_64): Likewise.
9413 2008-03-26  Tom Tromey  <tromey@redhat.com>
9415         * Makefile.in (DEPFILES): Add missing '/'.
9417 2008-03-26  Richard Guenther  <rguenther@suse.de>
9419         * fold-const.c (target.h): Include.
9420         (fold_comparison): Fold comparison of addresses of two decls
9421         that bind locally.  Consolidate address folding code.
9423 2008-03-26  Nick Clifton  <nickc@redhat.com>
9425         PR target/31232
9426         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
9427         not allow INT+INT as a legitimate addressing mode.
9429 2008-03-26  Richard Guenther  <rguenther@suse.de>
9431         * tree-flow.h (widen_bitfield): Remove declaration.
9432         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
9433         (widen_bitfield): Remove function.
9434         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
9435         code.
9437 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9439         PR target/31558
9440         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
9441         error_mark_node's.
9443 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
9445         PR rtl-optimization/35232
9446         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
9447         (forget_old_reloads_1, forget_marked_reloads): Don't clear
9448         reg_reloaded_call_part_clobbered here.
9449         (reload_regs_reach_end_p): New function.
9450         (reload_reg_rtx_for_input): New variable.
9451         (reload_reg_rtx_for_output): Likewise.
9452         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
9453         when reassigning a pseudo register.  Load reloadreg from 
9454         reload_reg_rtx_for_input, moving the mode and register
9455         calculation to...
9456         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
9457         instead of the original when deciding whether an input reload
9458         would be a no-op or whether an output reload can be deleted.
9459         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
9460         when setting up new_spill_reg_store.  Load it from
9461         reload_reg_rtx_for_output, moving the mode and register
9462         calculation to...
9463         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
9464         instead of the original when deciding whether an output reload
9465         would be a no-op.  Do the same when modifying insn notes.
9466         Use rtx_equal_p instead of == to compare the registers.
9467         (inherit_piecemeal_p): Take a mode and two register numbers
9468         as argument.
9469         (emit_reload_insns): Clear new_spill_reg_store for every hard
9470         register in the reload register.  Remove spill registers
9471         from reg_reloaded_valid before considering whether to record
9472         inheritance information for them.  Use reload_reg_rtx_for_output
9473         instead of reg_rtx when recording output reloads.  Use
9474         reload_reg_rtx_for_input instead of reg_rtx when recording
9475         input reloads.  Set or clear reg_reloaded_call_part_clobbered
9476         at the same time as setting reg_reloaded_valid.
9477         (delete_output_reload): Add a new_reload_reg parameter and use it
9478         instead of rld[j].reg_rtx.
9479         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
9480         calls accordingly.
9482 2008-03-25  Tom Tromey  <tromey@redhat.com>
9484         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
9485         (build/genattr.o): Likewise.
9486         (build/genattrtab.o): Likewise.
9487         (build/gencodes.o): Likewise.
9488         (build/genconfig.o): Likewise.
9489         (build/genconstants.o): Likewise.
9490         (build/genemit.o): Likewise.
9491         (build/genextract.o): Likewise.
9492         (build/genflags.o): Likewise.
9494 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
9495         
9496         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
9497         instead of size_int for integer types.
9498         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
9499         to match type of MINUS_EXPR.
9500         
9501 2008-03-25  Tom Tromey  <tromey@redhat.com>
9503         * configure: Rebuilt.
9504         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
9505         Makefile.
9507 2008-03-25  Tom Tromey  <tromey@redhat.com>
9509         * config/x-solaris (host-solaris.o): Update.
9510         * config/x-linux (host-linux.o): Update.
9511         * config/x-hpux (host-hpux.o): Update.
9512         * config/x-darwin (host-darwin.o): Update.
9513         * config/v850/t-v850e (v850-c.o): Update.
9514         * config/v850/t-v850 (v850-c.o): Update.
9515         * config/t-vxworks (vxworks.o): Update.
9516         * config/t-sol2 (sol2-c.o, sol2.o): Update.
9517         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
9518         * config/spu/t-spu-elf (spu-c.o): Update.
9519         (spu.o): Remove.
9520         * config/sh/t-symbian (sh-c.o): Update.
9521         (symbian.o): Update.
9522         * config/sh/t-sh (sh-c.o): Update.
9523         * config/score/t-score-elf (score7.o, score3.o): Update.
9524         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
9525         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
9526         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
9527         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
9528         (rs6000.o): Remove.
9529         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9530         * config/m32c/t-m32c (m32c-pragma.o): Update.
9531         * config/ia64/t-ia64 (ia64-c.o): Update.
9532         * config/i386/x-mingw32 (host-mingw32.o): Update.
9533         * config/i386/x-i386 (driver-i386.o): Update.
9534         * config/i386/x-darwin (host-i386-darwin.o): Update.
9535         * config/i386/x-cygwin (host-cygwin.o): Update.
9536         * config/i386/t-nwld (nwld.o): Update.
9537         * config/i386/t-netware (netware.o): Update.
9538         * config/i386/t-interix (winnt.o): Update.
9539         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
9540         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
9541         msformat-c.o): Update.
9542         * config/bfin/t-bfin-linux (generated_files): Add
9543         linux-sysroot-suffix.h.
9544         * config/arm/t-wince-pe (pe.o): Update.
9545         * config/arm/t-strongarm-pe (pe.o): Update.
9546         * config/arm/t-pe (pe.o): Update.
9547         * config/arm/t-arm (arm-c.o): Update.
9548         * doc/install.texi (Prerequisites): Require make 3.80.
9549         * Makefile.in: Remove .o targets.
9550         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
9551         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
9552         (simple_generated_h, simple_generated_c): Move earlier.
9553         (generated_files): New variable.
9554         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
9555         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
9556         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
9557         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
9558         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
9559         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
9560         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
9561         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
9562         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
9563         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
9564         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
9565         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
9566         (.c.o): Remove.
9567         (COMPILE.base, COMPILE): New variables.
9568         (%.o): New pattern rule.
9569         (ALL_HOST_OBJS): New variable.
9570         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
9571         (dummy-checksum.o, cc1-checksum.o): Remove.
9572         (DRIVER_SHLIB): New variable.
9573         (DRIVER_DEFINES): Use it.
9574         (gencondmd.c): Move out of build/.
9575         (s-conditions): Update.
9576         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
9577         (ALL_BUILD_OBJS): Likewise.
9578         (build/%.o): Use BUILDCOMPILE.
9579         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
9580         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
9581         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
9582         build/gencheck.o, build/gencodes.o, build/genconditions.o,
9583         build/genconfig.o, build/genconstants.o, build/genemit.o,
9584         build/genextract.o, build/genflags.o, build/genmddeps.o,
9585         build/genopinit.o, build/genoutput.o, build/genpeep.o,
9586         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
9587         build/gen-protos.o, build/scan.o, build/fix-header.o,
9588         build/scan-decls.o): Simplify.
9589         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
9590         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
9591         prefix.o, toplev.o): Reduce to variable setting.
9592         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
9593         ($(out_object_file), gcc-options.o): New targets.
9594         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
9595         * configure: Rebuilt.
9596         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
9597         * doc/sourcebuild.texi (Front End Directory): Document new variable.
9599 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
9601         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
9602         complain when we hit an error, return ERROR_MARK_NODE.
9604 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
9606         * config/sh/constraints.md (Pso, Psz): New constraints.
9607         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
9608         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
9610 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
9612         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
9613         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
9615 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
9617         * config/sh/sh.md (prefetch): Add condition for SH2A target.
9618         (prefetch_sh2a): New.   
9620 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
9621             Naveen.H.S  <naveen.hs@kpitcummins.com>
9623         * config/sh/constraints.md (I28): New constraint.
9624         * config/sh/sh.c (broken_move): Add support for movi20s.
9625         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
9627 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
9628             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
9629             Naveen.H.S  <naveen.hs@kpitcummins.com>
9631         * config/sh/sh.c (SH_ATTRIBUTES): Define.
9632         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
9633         (print_operand): Handle resbank in %@ operand code.
9634         (sh_encode_section_info): New.
9635         (push_regs): Add conditions for resbank.
9636         (sh_expand_epilogue): Likewise.
9637         (sh_insert_attributes): Likewise.
9638         (sh_attribute_table): Likewise.
9639         (sh_handle_resbank_handler_attribute): New.
9640         (sh2a_handle_function_vector_handler_attribute): New.
9641         (sh2a_is_function_vector_call): New.
9642         (sh2a_get_function_vector_number): New.
9643         (sh2a_function_vector_p): New.
9644         (sh_cfun_resbank_handler_p): New.
9645         * config/sh/sh.md (calli): Emit jsr/n if possible.
9646         (calli_tbr_rel): New.
9647         (calli_pcrel): Emit jsr/n if possible.
9648         (return_i): Emit rts/n if possible.
9649         (call_valuei_tbr_rel): New.
9650         (call_valuei_pcrel): Add condition for SH2A target.
9651         (call_value): Likewise.
9652         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
9653         (sh2a_get_function_vector_number): Likewise.
9654         (sh2a_is_function_vector_call): Likewise.
9655         * doc/extend.texi: Document TBR relative addressing of SH2A.
9656         (resbank): Add description for SH2A.
9658 2008-03-24  Richard Guenther  <rguenther@suse.de>
9660         PR c/22371
9661         * gimplify.c (gimplify_modify_expr): For frontend type-correct
9662         pointer assignments change conversions according to middle-end rules.
9663         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
9664         * configure.ac: Include type checking in yes.
9665         * configure: Regenerate.
9667 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9669         * diagnostic.c (diagnostic_count_diagnostic): Delete.
9670         (diagnostic_report_diagnostic): Update. Handle ICEs here.
9671         
9672 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
9674         * gthr-vxworks.h (UNUSED): Define.
9676 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9678         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
9680 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
9682         * doc/extend.texi (Function Attributes): Add missing comma in the
9683         example of the "alloc_size" attribute.
9684         
9685 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
9687         Revert:
9688         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9690         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9691         32bit host.
9693         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
9695         PR target/35496
9696         * stor-layout.c (update_alignment_for_field): Set minimum alignment
9697         of the underlying type of a MS bitfield layout to the natural
9698         alignment of the type.
9700         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
9702         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
9703         to their natural alignment to avoid store forwarding stalls.
9705 2008-03-22  Richard Guenther  <rguenther@suse.de>
9707         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
9708         For PHI nodes verify the address is invariant.
9709         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
9710         (get_symbol_constant_value): Use is_gimple_min_invariant.
9711         (maybe_fold_stmt_indirect): Likewise.
9713 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
9715         PR rtl-optimization/33927
9716         * Makefile.in (dse.o): Depend on $(TM_P_H).
9717         * expr.h (extract_low_bits): Declare.
9718         * expmed.c (extract_low_bits): New function.
9719         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
9720         * dse.c: Include tm_p.h.
9721         (find_shift_sequence): Remove the read_reg argument and return the
9722         read value.  Emit the instructions instead of returning them.
9723         Iterate on new_mode rather than calculating it each time.
9724         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
9725         source to NEW_MODE and extract_low_bits to convert the shifted
9726         value to READ_MODE.
9727         (replace_read): Allow the load and store to have different mode
9728         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
9729         or extraction instructions before trying the replacement.  Update
9730         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
9732 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
9734         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
9735         to their natural alignment to avoid store forwarding stalls.
9737 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9739         PR target/27946
9740         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
9741         encouraging but not allowing gprs for input;
9742         change the input constraint to !f#r.
9743         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
9744         gprs for output;
9745         change the output constraint to !f#r.
9747 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
9749         PR target/13958
9750         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
9751         corresponding post-reload splitters.
9752         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
9753         when x87 FP math is selected.
9754         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
9755         New function prototype.
9756         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
9757         unreachable function to ease macroization of insn patterns.
9759 2008-03-21  Martin Jambor  <mjambor@suse.cz>
9761         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
9762         reference dumps if ddr is NULL or dependence is unknown.
9764 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9766         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
9767         unsigned extension into account.
9768         (ATOMIC_COMPARE_AND_SWAP): Likewise.
9769         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
9770         Do computations on a scratch register.
9772 2008-03-21  Richard Guenther  <rguenther@suse.de>
9774         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9775         Use is_gimple_min_invariant instead of TREE_INVARIANT.
9776         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9777         * tree-ssa-dom.c (record_equality): Likewise.
9778         * tree-inline.c (copy_body_r): Likewise.
9779         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
9780         TREE_INVARIANT.
9782 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9784         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
9785         as 'delete_unused' argument.
9787 2008-03-20  Richard Guenther  <rguenther@suse.de>
9789         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
9790         special casing of constant qualifiers.
9791         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
9792         care about them in general.
9793         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
9794         regardless of their type.
9795         (fold_stmt_r): Forcefully fold *& if we end up with that.
9797 2008-03-20  Paul Brook  <paul@codesourcery.com>
9799         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
9800         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
9801         linker flags.
9802         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
9803         definition.
9804         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
9805         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
9807 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
9809         * common.opt (Wmudflap): New option.
9810         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
9811         (mx_register_decls): Likewise.
9812         (mudflap_finish_file): Likewise.
9813         * doc/invoke.texi: Document -Wno-mudflap.
9815 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
9817         * c-format.c (replace_format_name_to_system_name): New.
9818         (cmp_attribs): New.
9819         (convert_format_name_to_system_name): New.
9820         (decode_format_attr): Add use of convert_format_name_to_system_name.
9821         (format_types_orig): Add gnu_ prefix to names.
9822         (check_format_info_main): Special treating of \0 escaped names for
9823         supporting multi-character format specifiers as I32, I64.
9824         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
9825         (gnu_target_overrides_format_attributes): New.
9826         * c-format.h: Add structure target_ovr_attr to hold
9827         system specific formatter names.
9828         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
9829         msformat-c.o file to c_target_objs and cxx_target_objs.
9830         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9831         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
9832         (TARGET_N_FORMAT_TYPES): New.
9833         * config/i386/msformat-c.c: New.
9834         * config/i386/t-cygming: Add build rule for msformat-c.o.
9835         * doc/extend.texi: Add new format names gnu_* and ms_* and
9836         further details.
9837         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9839 2008-03-20  Ira Rosen  <irar@il.ibm.com>
9841         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
9842         optimizations turned on under -O3.
9843         (ftree-vectorize): Add that the flag is turned on with -O3.
9845 2008-03-20  Ben Elliston  <bje@au.ibm.com>
9847         * regmove.c (try_auto_increment): Fix spelling error in comment.
9848         * final.c (final_scan_insn): Likewise.
9850 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
9852         PR target/14552
9853         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
9854         allocator preferences for "y" and "r" class registers.
9855         ("*mov<mode>_internal"): Ditto.
9856         ("*movv2sf_internal_rex64"): Ditto.
9857         ("*movv2sf_internal"): Ditto.
9859 2008-03-19  Michael Matz  <matz@suse.de>
9861         PR middle-end/35616
9862         * calls.c (expand_call): Check overlap of arguments with call
9863         address for sibcalls.
9865 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
9867         PR target/35496
9868         * stor-layout.c (update_alignment_for_field): Set minimum alignment
9869         of the underlying type of a MS bitfield layout to the natural
9870         alignment of the type.
9872 2008-03-19  Jan Hubicka  <jh@suse.cz>
9874         PR other/35094
9875         * toplev.c (decode_d_option): Handle all CPP flags.
9876         * tree-vrp.c: Update tree_pass descriptors.
9877         * regrename.c: Update tree_pass descriptors.
9878         * fwprop.c: Update tree_pass descriptors.
9879         * doc/invoke.texi: Remove documentation of dropped -d? flags.
9880         * tree-into-ssa.c: Update tree_pass descriptors.
9881         * tree-dump.c: Update tree_pass descriptors.
9882         * tree-complex.c: Update tree_pass descriptors.
9883         * tree-dump.h: Update tree_pass descriptors.
9884         * see.c: Update tree_pass descriptors.
9885         * cgraphbuild.c: Update tree_pass descriptors.
9886         * tracer.c: Update tree_pass descriptors.
9887         * tree-loop-distribution.c: Update tree_pass descriptors.
9888         * cgraph.c: Update tree_pass descriptors.
9889         * postreload-gcse.c: Update tree_pass descriptors.
9890         * postreload.c: Update tree_pass descriptors.
9891         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
9892         * tree-tailcall.c: Update tree_pass descriptors.
9893         * tree-pass.h (tree_opt_pass): Rename to ...
9894         (opt_pass) ... this one; add "type" field and remove letter field.
9895         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
9896         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
9897         all_lowering_passes): Update declaration.
9898         * ipa-cp.c: Update tree_pass descriptors.
9899         * final.c: Update tree_pass descriptors.
9900         * omp-low.c: Update tree_pass descriptors.
9901         * tree-ssa-dse.c: Update tree_pass descriptors.
9902         * ipa-reference.c: Update tree_pass descriptors.
9903         * tree-ssa-uncprop.c: Update tree_pass descriptors.
9904         * auto-inc-dec.c: Update tree_pass descriptors.
9905         * reorg.c: Update tree_pass descriptors.
9906         * cgraphunit.c: Update tree_pass descriptors.
9907         * tree-ssa-copyrename.c: Update tree_pass descriptors.
9908         * tree-ssa-ccp.c: Update tree_pass descriptors.
9909         * df-core.c: Update tree_pass descriptors.
9910         * mode-switching.c: Update tree_pass descriptors.
9911         * tree-nomudflap.c: Update tree_pass descriptors.
9912         * modulo-sched.c: Update tree_pass descriptors.
9913         * ipa-pure-const.c: Update tree_pass descriptors.
9914         * cse.c: Update tree_pass descriptors.
9915         * web.c: Update tree_pass descriptors.
9916         * tree-stdarg.c: Update tree_pass descriptors.
9917         * tree-ssa-math-opts.c: Update tree_pass descriptors.
9918         * tree-ssa-dom.c: Update tree_pass descriptors.
9919         * tree-nrv.c: Update tree_pass descriptors.
9920         * tree-ssa-alias.c: Update tree_pass descriptors.
9921         * loop-init.c: Update tree_pass descriptors.
9922         * gimple-low.c: Update tree_pass descriptors.
9923         * ipa-inline.c: Update tree_pass descriptors.
9924         * tree-ssa-sink.c: Update tree_pass descriptors.
9925         * global.c: Update tree_pass descriptors.
9926         * ifcvt.c: Update tree_pass descriptors.
9927         * jump.c: Update tree_pass descriptors.
9928         * predict.c: Update tree_pass descriptors.
9929         * tree-ssa-loop.c: Update tree_pass descriptors.
9930         * recog.c: Update tree_pass descriptors.
9931         * dse.c: Update tree_pass descriptors.
9932         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
9933         * tree-eh.c: Update tree_pass descriptors.
9934         * regmove.c: Update tree_pass descriptors.
9935         * local-alloc.c
9936         * function.c: Update tree_pass descriptors.
9937         * tree-vectorizer.c: Update tree_pass descriptors.
9938         * gcse.c: Update tree_pass descriptors.
9939         * ipa-type-escape.c: Update tree_pass descriptors.
9940         * tree-if-conv.c: Update tree_pass descriptors.
9941         * init-regs.c: Update tree_pass descriptors.
9942         * ipa.c: Update tree_pass descriptors.
9943         * tree-ssa-phiopt.c: Update tree_pass descriptors.
9944         * rtl-factoring.c: Update tree_pass descriptors.
9945         * lower-subreg.c: Update tree_pass descriptors.
9946         * bt-load.c: Update tree_pass descriptors.
9947         * tree-dfa.c: Update tree_pass descriptors.
9948         * except.c: Update tree_pass descriptors.
9949         * emit-rtl.c: Update tree_pass descriptors.
9950         * cfgexpand.c: Update tree_pass descriptors.
9951         * tree-cfgcleanup.c: Update tree_pass descriptors.
9952         * cfgcleanup.c: Update tree_pass descriptors.
9953         * tree-ssa-pre.c: Update tree_pass descriptors.
9954         * tree-sra.c: Update tree_pass descriptors.
9955         * tree-mudflap.c: Update tree_pass descriptors.
9956         * tree-ssa-copy.c: Update tree_pass descriptors.
9957         * cfglayout.c: Update tree_pass descriptors.
9958         * tree-ssa-forwprop.c: Update tree_pass descriptors.
9959         * tree-ssa-dce.c: Update tree_pass descriptors.
9960         * tree-ssa.c: Update tree_pass descriptors.
9961         * regclass.c: Update tree_pass descriptors.
9962         * integrate.c: Update tree_pass descriptors.
9963         * tree-optimize.c: Update tree_pass descriptors.
9964         * tree-ssa-phiprop.c: Update tree_pass descriptors.
9965         * tree-object-size.c: Update tree_pass descriptors.
9966         * combine.c: Update tree_pass descriptors.
9967         * tree-outof-ssa.c: Update tree_pass descriptors.
9968         * bb-reorder.c: Update tree_pass descriptors.
9969         * stack-ptr-mod.c: Update tree_pass descriptors.
9970         * var-tracking.c: Update tree_pass descriptors.
9971         * tree-profile.c: Update tree_pass descriptors.
9972         * tree-vect-generic.c: Update tree_pass descriptors.
9973         * reg-stack.c: Update tree_pass descriptors.
9974         * sched-rgn.c: Update tree_pass descriptors.
9975         * tree-ssa-structalias.c: Update tree_pass descriptors.
9976         * tree-cfg.c: Update tree_pass descriptors.
9977         * passes.c (current_pass): Update declaration.
9978         (finish_optimization_passes): Update.
9979         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
9980         (register_one_dump_file, register_dump_files_1, next_pass_1):
9981         Update arguments.
9982         (init_optimization_passes): Update handling of new types.
9983         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
9984         * ipa-struct-reorg.c: Update tree_pass descriptors.
9985         * tree-ssa-reassoc.c: Update tree_pass descriptors.
9986         * combine-stack-adj.c: Update tree_pass descriptors.
9987         * cfgrtl.c: Update tree_pass descriptors.
9988         * dce.c: Update tree_pass descriptors.
9989         * tree-ssanames.c: Update tree_pass descriptors.
9991 2008-03-19  Richard Guenther  <rguenther@suse.de>
9993         PR middle-end/35609
9994         * tree-ssa.c (walk_data): New structure.
9995         (warn_uninitialized_var): If not always_executed warn with "maybe"
9996         instead of "is".
9997         (execute_early_warn_uninitialized): Compute post-dominators.
9998         Initialize always_executed before processing each basic block.
10000 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10002         PR target/35504
10003         * config/i386/i386.c (x86_this_parameter): Calculate correct location
10004         of "this" pointer when "regparm = N" or "fastcall" is in effect.
10006 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10008         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10010 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10012         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10013         is true.
10014         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10015         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10016         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
10017         target after ignore has been set, and move there also the commputation
10018         of subtarget and original_target.
10019         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10020         (LANG_HOOKS_INITIALIZER): Remove it.
10021         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
10023 2008-03-18  Richard Guenther  <rguenther@suse.de>
10025         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
10026         found an expression with constants, note that in the VN for the lhs.
10027         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
10028         fold them to constants if possible.  Run cleanup_cfg if done so.
10029         (execute_pre): Return todo.
10030         (do_pre): Likewise.
10031         (execute_fre): Likewise.
10032         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
10033         of constants.
10034         (get_prop_source_stmt): Look through pointer conversions.
10036 2008-03-18  Jan Hubicka  <jh@suse.cz>
10038         * tree-pretty-print.c: Include predict.h.
10039         (dump_generic_node): Dump predictor.
10040         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
10041         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
10042         * gimple-low.c (lower_stmt): Likewise.
10043         * expr.c (expand_expr_real): Likewise.
10044         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
10045         them.
10046         (build_predict_expr, build_predict_expr): New.
10047         * predict.h (predictor_name, build_predict_expr): Update.
10048         * c-typeck.c (c_finish_bc_stmt): Add prediction.
10049         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
10050         * predict.def (PRED_CONTINUE): Update hitrate.
10051         * tree.def (PREDICT_EXPR): Define.
10052         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
10053         do not handle BIND_EXPR.
10054         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
10055         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
10056         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
10057         operands.
10059 2008-03-18  Michael Matz  <matz@suse.de>
10061         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
10063 2008-03-18  Richard Guenther  <rguenther@suse.de>
10065         * tree-gimple.h (is_gimple_invariant_address): Declare.
10066         (is_gimple_constant): Likewise.
10067         * tree-gimple.c (is_gimple_constant): New function.
10068         (is_gimple_invariant_address): Likewise.
10069         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
10070         and is_gimple_invariant_address.
10071         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
10072         previous change.
10073         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
10074         an addressable base.
10076 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
10078         PR middle-end/35611
10079         * gimplify.c (gimplify_expr): Gimplify second operand of
10080         OMP_ATOMIC_LOAD.
10082 2008-03-17  Richard Guenther  <rguenther@suse.de>
10084         PR tree-optimization/19637
10085         * fold-const.c (fold_unary): Remove restrictions of removing
10086         intermediate pointer-conversions (P2)(P1)P0.
10087         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
10088         conversion to void pointer.
10089         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
10091 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
10093         PR debug/31510
10094         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
10095         emulated thread local variables.
10097 2008-03-16  Richard Guenther  <rguenther@suse.de>
10099         PR middle-end/35607
10100         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10101         expand TREE_INVARIANT operations that are not gimple invariant.
10103 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
10105         * doc/extend.texi (Alignment): Say that the ABI controls
10106         the __alignof__ for non-strict-alignment targets rather
10107         than being a recommendation.
10109 2008-03-15  Paul Brook  <paul@codesourcery.com>
10111         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
10112         annotations.
10113         (arm_output_fn_unwind): Mark functions that can not be unwound.
10115 2008-03-15  Paul Brook  <paul@codesourcery.com>
10117         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
10118         extension instructions.
10120 2008-03-15  Richard Guenther  <rguenther@suse.de>
10122         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
10123         and fold constant aggregate refs.
10124         (fold_const_aggregate_ref): Handle string constants
10125         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
10126         (evaluate_stmt): Simplify now that ccp_fold folds constant
10127         aggregate refs.
10129 2008-03-15  Paul Brook  <paul@codesourcery.com>
10131         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
10132         (extzv): Use gen_extzv_t2.
10133         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
10135 2008-03-15  Richard Guenther  <rguenther@suse.de>
10137         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
10138         (fold_const_aggregate_ref): Likewise.
10139         (get_value): Return NULL if we don't have any values.
10140         (ccp_finalize): Set const_val to NULL after freeing it.
10141         * tree-flow.h (get_symbol_constant_value): Declare.
10142         (fold_const_aggregate_ref): Likewise.
10143         * tree-ssa-sccvn.c (try_to_simplify): Use them.
10145 2008-03-15  Richard Guenther  <rguenther@suse.de>
10147         PR middle-end/35593
10148         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
10149         to not produce negative array indices if not allowed.  Add
10150         parameter to indicate that.
10151         (maybe_fold_offset_to_component_ref): Allow negative array
10152         indices only for the first member of a structure.
10153         (maybe_fold_offset_to_reference): Allow negative array indices.
10154         (maybe_fold_stmt_addition): Likewise.
10156 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
10157             Anatoly Sokolov <aesok@post.ru>
10159         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
10160         (avr_arch): Add ARCH_AVR6.
10161         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
10162         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
10163         instead of fixed value 2.
10164         (print_operand_address): Use gs() asm specifier instead of pm().
10165         (avr_assemble_integer): (Ditto.).
10166         (avr_output_addr_vec_elt): (Ditto.).
10167         (print_operand): Handle "!" code.
10168         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
10169         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
10170         (AVR_HAVE_EIJMP_EICALL): Define.
10171         (AVR_3_BYTE_PC): Redefine.
10172         (AVR_2_BYTE_PC): (Ditto.).
10173         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
10174         (LINK_SPEC): Add atmega2560 and atmega2561.
10175         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
10176         (crtm2561.o).
10177         * config/avr/avr.md (call_insn): Use eicall instead of icall 
10178         for 3 byte PC devices.
10179         (call_value_insn): (Ditto.).
10180         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
10181         (indirect_jump): Use only for for 2 byte PC devices.
10182         (*tablejump): (Ditto.).
10183         (*indirect_jump_avr6): Add insn.
10184         (*tablejump_rjmp): Don't use for 3 byte PC devices.
10185         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
10186         instead of ijmp for 3 byte PC devices.
10187         (__tablejump2__): (Ditto.).
10188         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
10189         (MULITLIB_DIRNAMES): (Ditto.). 
10190         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
10192 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
10194         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
10195         "sse2_umulsidi3".  Use V1DI mode for operand 0.
10196         ("mmx_psadbw"): Use V1DI mode for operand 0.
10197         * config/i386/i386-modes.def (V1SI): New vector mode.
10198         * config/i386/i386.c (struct builtin_description)
10199         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
10200         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
10201         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
10202         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
10203         v1di_ftype_v8qi_v8qi type.
10204         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
10206         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
10207         __builtin_ia32_pmuludq]: Fix the mode of return value.
10209 2008-03-15  Richard Guenther  <rguenther@suse.de>
10211         PR middle-end/35595
10212         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
10213         being a PHI_NODE.
10215 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
10216         
10217         * doc/invoke.texi (Option Summary, Xtensa Options): Document
10218         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
10219         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
10220         unless TARGET_SERIALIZE_VOLATILE is enabled.
10221         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
10222         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
10223         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
10225 2008-03-14  Richard Guenther  <rguenther@suse.de>
10227         PR tree-optimization/34172
10228         * tree-flow.h (refs_may_alias_p): Declare.
10229         (get_single_def_stmt): Likewise.
10230         (get_single_def_stmt_from_phi): Likewise.
10231         (get_single_def_stmt_with_phi): Likewise.
10232         * tree-dfa.c (refs_may_alias_p): New function.
10233         (get_single_def_stmt): Likewise.
10234         (get_single_def_stmt_from_phi): Likewise.
10235         (get_single_def_stmt_with_phi): Likewise.
10236         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
10237         (vn_reference_lookup_1): New helper function.
10238         (vn_reference_lookup): Walk the virtual use-def chain to
10239         continue searching for a match if the def does not alias the
10240         reference we are looking for.
10242 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
10244         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
10245         archive and Perzl.  Update The Written Word listing.
10247 2008-03-14  Richard Guenther  <rguenther@suse.de>
10249         PR tree-optimization/34043
10250         PR tree-optimization/33989
10251         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
10252         when doing FRE.
10253         (bitmap_find_leader): Use extra argument to verify dominance
10254         relationship inside a basic-block.
10255         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
10256         (find_leader_in_sets): Adjust.
10257         (create_component_ref_by_pieces): Take extra argument for
10258         dominance check, handle lookup failures.
10259         (find_or_generate_expression): Likewise.
10260         (create_expression_by_pieces): Likewise.
10261         (insert_into_preds_of_block): Adjust.
10262         (create_value_expr_from): If asked for, verify all operands
10263         are in the blocks AVAIL_OUT set.
10264         (make_values_for_stmt): Check for SSA_NAMEs that are life
10265         over an abnormal edge.
10266         (compute_avail): Remove such check.
10267         (do_SCCVN_insertion): New function.
10268         (eliminate): If we do not find a leader suitable for replacement
10269         insert a replacement expression from SCCVN if available.
10270         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
10271         (struct vn_ssa_aux): Add needs_insertion flag.
10272         * tree-ssa-sccvn.c (may_insert): New global flag.
10273         (copy_reference_ops_from_ref): Value-number union member access
10274         based on its size, not type and member if insertion is allowed.
10275         (visit_reference_op_load): For a weak match from union type
10276         punning lookup a view-converted value and insert a SSA_NAME
10277         for that value if that is not found.
10278         (visit_use): Make dumps shorter.  Do not disallow value numbering
10279         SSA_NAMEs that are life over an abnormal edge to constants.
10280         (free_scc_vn): Release inserted SSA_NAMEs.
10281         (run_scc_vn): New flag to specify whether insertion is allowed.
10282         Process SSA_NAMEs in forward order.
10283         * tree-ssa-loop-im.c (for_each_index): Handle invariant
10284         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
10285         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
10286         pointer type to/from integral types that do not change the
10287         precision to regular conversions.
10289 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
10291         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
10292         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
10293         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
10294         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
10295         input arguments and the mode of return value.  Built-in functions
10296         that operate on whole 64-bit MMX register now use V1DI mode.
10298 2008-03-13  Alon Dayan  <alond@il.ibm.com>
10299             Olga Golovanevsky  <olga@il.ibm.com>
10301         PR tree-optimization/35041
10302         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
10303         to locate the right position in a statement.
10305 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
10307         PR target/34000
10308         PR target/35553
10309         * config/i386/xmmintrin.h:  Change all static inline functions to
10310         extern inline and add __gnu_inline__ attribute.
10311         * config/i386/bmintrin.h: Ditto.
10312         * config/i386/smmintrin.h: Ditto.
10313         * config/i386/tmmintrin.h: Ditto.
10314         * config/i386/mmintrin-common.h: Ditto.
10315         * config/i386/ammintrin.h: Ditto.
10316         * config/i386/emmintrin.h: Ditto.
10317         * config/i386/pmmintrin.h: Ditto.
10318         * config/i386/mmintrin.h: Ditto.
10319         * config/i386/mm3dnow.h: Ditto.
10321 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
10323         PR middle-end/35185
10324         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
10325         (lower_omp_2): New function.
10326         (lower_omp_1, lower_omp): Rewritten.
10328 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
10330         PR 35054
10331         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
10332         with the phrase "Microsoft Windows compilers".
10333         (Push/Pop Macro Pragmas): New subsection. Document
10334         #pragma push_macro and pragma pop_macro.
10336 2008-03-12  Paul Brook  <paul@codesourcery.com>
10338         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
10340 2008-03-12  Paul Brook  <paul@codesourcery.com>
10342         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
10343         (thumb2_alusi3_short): Exclude PLUS and MINUS.
10344         (thumb2_addsi_shortim): Rename ...
10345         (thumb2_addsi_short): ... to this.  Allow register operands.
10346         (thumb2_subsi_short): New pattern.
10347         (thumb2_one_cmplsi2_short,
10348         thumb2_negsi2_short): New patterns and peepholes.
10350 2008-03-12  Paul Brook  <paul@codesourcery.com>
10352         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
10354 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
10356         * config/i386/i386.md (int_cond): New code iterator.
10357         (fp_cond): Ditto.
10358         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
10359         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
10360         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
10361         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
10362         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
10363         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
10364         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
10365         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
10367 2008-03-12  Paul Brook  <paul@codesourcery.com>
10369         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
10370         instead of {arm,thumb}_compute_save_reg_mask.
10371         (output_return_instruction): Ditto.
10372         (thumb_unexpanded_epilogue): Ditto.
10373         (thumb1_expand_prologue): Ditto.
10374         (thumb1_output_function_prologue): Ditto.
10375         (arm_set_return_address): Ditto.
10376         (thumb_set_return_address): Ditto.
10377         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
10378         regs to achieve stack alignment.
10379         (thumb1_compute_save_reg_mask): Fix compiler warning.
10380         (arm_output_epilogue): Use offsets->saved_regs_mask.
10381         Adjust stack pointer by poping call clobered registers.
10382         (arm_expand_prologue): Use offsets->saved_regs_mask.
10383         Adjust stack pointer by pushing extra registers.
10384         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
10386 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
10388         PR tree-opt/35422
10389         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
10390         conversion to the operands of a multiplication.
10392 2008-03-12  Richard Guenther  <rguenther@suse.de>
10394         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
10395         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
10396         * timevar.def (TV_TREE_PHIPROP): Add.
10397         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
10398         pass description.  Use TV_TREE_PHIPROP.
10399         * tree-ssa-forwprop.c: Remove phiprop code.
10401 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
10403         PR middle-end/35549
10404         * omp-low.c (maybe_lookup_decl): Constify first argument.
10405         (use_pointer_for_field): Change last argument from bool to
10406         omp_context *.  Disallow shared copy-in/out in nested
10407         parallel if decl is shared in outer parallel too.
10408         (build_outer_var_ref, scan_sharing_clauses,
10409         lower_rec_input_clauses, lower_copyprivate_clauses,
10410         lower_send_clauses, lower_send_shared_vars): Adjust callers.
10412 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
10413             Ira Rosen  <irar@il.ibm.com>
10415         * tree-vectorizer.c (free_stmt_vec_info): New function.
10416         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
10417         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
10418         * tree-vectorizer.h (free_stmt_vec_info): Declare.
10419         * tree-vect-transform.c (vectorizable_conversion): Free
10420         vec_oprnds0 if it was allocated.
10421         (vect_permute_store_chain): Remove unused VECs.
10422         (vectorizable_store): Free VECs that are allocated in the..
10423         function.
10424         (vect_transform_strided_load, vectorizable_load): Likewise.
10425         (vect_remove_stores): Simplify the code.
10426         (vect_transform_loop): Move code to vect_remove_stores().
10427         Call vect_remove_stores() and free_stmt_vec_info().
10429 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10431         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
10432         TARGET_HPUX.  Revise comment.
10433         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
10434         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
10435         Use sr4 variant of `be' instruction when not generating PIC code.
10436         (attr_length_call): Adjust for above change.
10438 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10440         * ipa-reference.c (static_execute): Remove module_statics_const and
10441         associated setting code.
10443 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
10445         PR target/35540
10446         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
10447         predicate for operand 1.
10448         (paritysi2_cmp): Use register_operand predicate for operand 2.
10449         Use earlyclobber modifier for operand 1.  Remove support for
10450         memory operands.
10451         (paritydi2_cmp): Use register_operand predicate for operand 3.
10452         Use earlyclobber modifier for operand 1.  Remove support for
10453         memory operands.
10455 2008-03-11  Paul Brook  <paul@codesourcery.com>
10456             Vladimir Prus  <vladimir@codesourcery.com>
10458         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
10459         (arm_compute_save_reg0_reg12_mask): Always
10460         check if register 11 must be saved.  Always safe hard frame pointer
10461         when frame_pointer_needeed.
10462         (arm_compute_save_reg_mask): Save IP and PC
10463         only with apcs frames.
10464         (arm_output_epilogue): Adjust Thumb2 codepath to
10465         be also invoked and work for ARM non-apcs frames.
10466         (arm_expand_prologue): Don't bother saving IP
10467         for non-apcs frame, since it's not clobbered by
10468         prologue code.  Implement non-apcs frame
10469         layout.
10471 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
10473         PR rtl-optimization/35281
10474         * expr.c (convert_move): Use a new pseudo for the intermediate
10475         from_mode->word_mode result.
10477 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
10479         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
10480         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
10481         * toplev.c (compile_file): Don't call it.
10483 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
10485         PR middle-end/35526
10486         * expr.c (store_expr): Call emit_block_move if the mode
10487         of "temp" RTX is BLKmode.
10489 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10490             Richard Guenther  <rguenther@suse.de>
10492         PR tree-optimization/31358
10493         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
10494         the step with a NULL_TREE.
10495         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
10496         to sizetype if type is a pointer type.
10497         (add_candidate_1): Don't convert the base and step to
10498         the generic type if the orginal type is a pointer type.
10499         (add_iv_value_candidates): Use sizetype for the step
10500         if type is a pointer type.
10501         (cand_value_at): Likewise.
10502         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
10503         for pointer types.
10504         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
10505         Don't convert the tem affine to the type.
10506         (add_elt_to_tree): Use sizetype for the step if a pointer.
10507         Use POINTER_PLUS_EXPR for pointers.
10508         (aff_combination_to_tree): Use sizetype for the step if a
10509         pointer.
10511 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
10513         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
10514         Remove commutativity hint.
10516 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
10518         PR c/35438
10519         PR c/35439
10520         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
10521         errorneous type.  Check that v is a VAR_DECL.
10523         PR middle-end/35099
10524         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
10526 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10528         PR tree-optimization/35494
10529         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
10530         may be overriden at link and run time.
10532 2008-03-10  Richard Guenther  <rguenther@suse.de>
10534         PR tree-optimization/34677
10535         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
10536         (poolify_tree): Likewise.
10537         (modify_expr_template): Likewise.
10538         (poolify_modify_stmt): Likewise.
10539         (insert_fake_stores): Handle all component-ref style stores
10540         in addition to INDIRECT_REF.  Also handle complex types.
10541         Do not poolify the inserted load.
10542         (realify_fake_stores): Do not rebuild the tree but only
10543         make it a SSA_NAME copy.
10544         (init_pre): Remove initialzation of modify_expr_template.
10545         Do not allocate modify_expr_node_pool.
10546         (fini_pre): Do not free modify_expr_node_pool.
10548 2008-03-10  Paul Brook  <paul@codesourcery.com>
10550         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
10551         to avoid conflicts.
10553 2008-03-10  Paul Brook  <paul@codesourcery.com>
10554             Mark Shinwell  <shinwell@codesourcery.com>
10556         * config/arm/cortex-r4.md: New.
10557         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
10558         insn attributes.
10559         * config/arm/arm.md: Include cortex-r4.md.
10560         (insn): Add smmls, sdiv and udiv values.
10561         (generic_sched): Don't use generic scheduling for Cortex-R4.
10562         (arm_issue_rate): New function.
10563         (TARGET_SCHED_ISSUE_RATE): Define.
10565 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
10567         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
10569 2008-03-10  Richard Guenther  <rguenther@suse.de>
10571         * tree-ssa-pre.c (get_sccvn_value): Simplify.
10572         (compute_avail): Do not add stmt uses to AVAIL_OUT.
10574 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
10576         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
10577         Set default to true.
10579 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10581         * c.opt (Wsynth): Deprecate.
10582         * doc/invoke.texi (Option Summary, Warning Options): Document
10583         -Wno-format-contains-nul.
10585 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
10587         PR target/35496
10588         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
10589         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
10591 2008-03-09  Ira Rosen  <irar@il.ibm.com>
10593         * config/rs6000/rs6000.c (builtin_description): Rename vector
10594         left shift operations.
10595         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
10596         (altivec_vsl<VI_char>): Rename to ...
10597         (ashl<mode>3): ... new name.
10598         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
10599         gen_ashlv4si3.
10600         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
10602 2008-03-08  Richard Guenther  <rguenther@suse.de>
10604         * coverage.h (tree_coverage_counter_addr): Declare.
10605         * coverage.c (tree_coverage_counter_addr): New function.
10606         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
10607         before using again.
10608         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
10609         (tree_gen_one_value_profiler): Likewise.
10610         (tree_gen_ic_profiler): Likewise.
10611         (tree_gen_average_profiler): Likewise.
10612         (tree_gen_ior_profiler): Likewise.
10614 2008-03-08  Richard Guenther  <rguenther@suse.de>
10616         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
10617         (vn_binary_op_insert): Likewise.
10618         (vn_unary_op_lookup): Likewise.
10619         (vn_unary_op_insert): Likewise.
10620         (vn_nary_op_lookup): Declare.
10621         (vn_nary_op_insert): Likewise.
10622         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
10623         and binary hashes, use a single obstack for unary_op_pool
10624         and binary_op_pool.
10625         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
10626         a single struct vn_nary_op_s.  Store tree code length and
10627         a variable number of operands.
10628         (struct vn_reference_op_struct): Remove unused op2.
10629         (vn_reference_op_eq): Do not compare op2.
10630         (vn_reference_op_compute_hash): Do not compute hash of op2.
10631         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
10632         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
10633         with vn_nary_op_compute_hash.
10634         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
10635         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
10636         vn_nary_op_lookup.
10637         (vn_unary_op_insert, vn_binary_op_insert): Replace with
10638         vn_nary_op_insert.
10639         (visit_unary_op): Call nary functions.
10640         (visit_binary_op): Likewise.
10641         (process_scc): Adjust for struct vn_tables_s changes.
10642         (allocate_vn_table): Likewise.
10643         (free_vn_table): Likewise.
10644         * tree-vn.c (vn_add): Call nary functions.
10645         (vn_lookup): Likewise.
10647 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
10649         PR target/35498
10650         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
10651         wdst back after sync_compare_and_swapqhi_internal.
10653 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
10655         PR target/22152
10656         * config/i386/i386-modes.def (V1DI): New vector mode.
10657         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
10658         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
10659         (MMXMODE248): Ditto.
10660         (MMXMODE): Add V1DI mode.
10661         (mmxvecsize): Change DI mode to V1DI mode.
10662         ("mov<mode>): Use MMXMODEI8 mode iterator.
10663         ("*mov<mode>_internal_rex64"): Ditto.
10664         ("*mov<mode>_internal"): Ditto.
10665         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
10666         ("mmx_sub<mode>3"): Ditto.
10667         ("mmx_adddi3"): Remove insn pattern.
10668         ("mmx_subdi3"): Ditto.
10669         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
10670         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
10671         ("mmx_ashl<mode>3"): Ditto.
10672         ("mmx_lshrdi3"): Remove insn pattern.
10673         ("mmx_ashldi3"): Ditto.
10674         * config/i386/i386.c (classify_argument): Handle V1DImode.
10675         (function_arg_advance_32): Ditto.
10676         (function_arg_32): Ditto.
10677         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
10678         mmx_addv1di3 insn pattern.
10679         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
10680         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
10681         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
10682         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
10683         Remove definitions of built-in functions.
10684         (V1DI_type_node): New node.
10685         (v1di_ftype_v1di_int): Ditto.
10686         (v1di_ftype_v1di_v1di): Ditto.
10687         (v2si_ftype_v2si_si): Ditto.
10688         (v4hi_ftype_v4hi_di): Remove node.
10689         (v2si_ftype_v2si_di): Ditto.
10690         (ix86_init_mmx_sse_builtins): Handle V1DImode.
10691         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
10692         Redefine builtins using def_builtin_const with *_ftype_*_int node.
10693         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
10694         Add new builtins using def_builtin_const.
10695         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
10696         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
10697         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
10698         * config/i386/mmintrin.h (__v1di): New typedef.
10699         (_mm_add_si64): Cast arguments to __v1di type.
10700         (_mm_sub_si64): Ditto.
10701         (_mm_sll_pi16): Cast __count to __v4hi type.
10702         (_mm_sll_pi32): Cast __count to __v2si type.
10703         (_mm_sll_si64): Cast arguments to __v1di type.
10704         (_mm_srl_pi16): Cast __count to __v4hi type.
10705         (_mm_srl_pi32): Cast __count to __v2si type.
10706         (_mm_srl_si64): Cast arguments to __v1di type.
10707         (_mm_sra_pi16): Cast __count to __v4hi type.
10708         (_mm_sra_pi32): Cast __count to __v2si type.
10709         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
10710         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
10711         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
10712         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
10713         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
10714         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
10715         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
10716         (_mm_srai_pi32): Use __builtin_ia32_psradi.
10717         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
10718         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
10719         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
10720         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
10722 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
10724         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
10726 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
10728         PR target/35373
10729         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
10730         reg+const addressing for Altivec modes.  Don't generate reg+reg
10731         addressing for TFmode or TDmode quantities.
10733 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
10735         * c-common.c (vector_types_convertible_p): Call langhook
10736         instead of comptypes.
10738 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10740         PR tree-opt/35402
10741         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
10742         integral and scalar float variables which have a
10743         NULL DECL_INITIAL.
10745 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
10747         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
10748         dwarf_register_span hook when emitting unwind information for
10749         register-to-memory saves.
10750         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
10751         (rs6000_frame_related): Remove call to spe_synthesize_frame.
10753 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
10755         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
10756         for the same VAR_DECL.
10758 2008-03-06  Tom Tromey  <tromey@redhat.com>
10760         * treelang: Delete.
10761         * doc/standards.texi (Standards): Don't mention treelang.
10762         * doc/invoke.texi (Overall Options): Don't mention treelang.
10763         * doc/install.texi (Prerequisites): Don't mention bison or
10764         treelang.
10765         (Configuration): Don't mention treelang.
10766         (Building): Likewise.
10767         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
10769 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
10771         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
10772         word-extractions out of a multi-word object.
10774 2008-03-06  Richard Guenther  <rguenther@suse.de>
10776         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
10777         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
10778         result type and precision.
10779         * expr.c (get_inner_reference): Set unsignedp based on the result
10780         type of BIT_FIELD_REF.
10781         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
10782         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
10783         (try_instantiate_multiple_fields): Likewise.  Use the correct type
10784         for BIT_FIELD_REF.
10785         (sra_build_assignment): Likewise.
10786         (sra_build_elt_assignment): Likewise.
10787         (sra_explode_bitfield_assignment): Likewise.
10788         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
10789         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
10790         set BIT_FIELD_REF_UNSIGNED.
10791         (vectorizable_load): Likewise.
10793 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
10795         * cse.c (cse_extended_basic_block): Invalidate artificial defs
10796         at bb start.
10798 2008-03-06  Richard Guenther  <rguenther@suse.de>
10800         * alias.c (struct alias_set_entry): Move has_zero_child field
10801         to pack with alias_set.
10803 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10805         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10806         32bit host.
10808 2008-03-05  Ian Lance Taylor  <iant@google.com>
10810         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
10812 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
10814         * fwprop.c (update_df): Support width and offset parameters of
10815         df_ref_create.
10816         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
10817         global_conflicts): Change DF_REF_EXTRACT to either
10818         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10819         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10820         * df-scan.c (df_ref_record, df_defs_record,
10821         df_ref_create_structure, df_def_record_1, df_uses_record,
10822         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
10823         df_bb_refs_collect, df_entry_block_defs_collect,
10824         df_exit_block_uses_collect): Support new width and offset fields.
10825         (ref_extract_pool): New storage pool.
10826         (df_free_ref): New function.
10827         (df_reg_chain_unlink, df_free_collection_rec,
10828         df_sort_and_compress_refs): Call df_free_ref.
10829         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
10830         of df_ref_extract.
10831         (df_ref_create_structure): Allocate df_ref_extract if offset and
10832         width fields are used.
10833         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
10834         (df_uses_record): Get offset and width from ZERO_EXTRACT 
10835         and SIGN_EXTRACT.
10836         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
10837         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10838         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10839         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
10840         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10841         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10842         (df_ref_extract): New structure.
10843         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
10844         (df_ref_create): Add width and offset parameters.
10845         
10846 2008-03-05  Richard Guenther  <rguenther@suse.de>
10848         * tree-ssa-structalias.c (get_constraint_for_component_ref):
10849         Use ranges_overlap_p.
10850         (offset_overlaps_with_access): Rename
10851         to ranges_overlap_p and move ...
10852         * tree-flow-inline.h (ranges_overlap_p): ... here.
10854         * tree.h (get_inner_reference, handled_component_p): Update
10855         comments.
10857         * tree.h (record_component_aliases, get_alias_set,
10858         alias_sets_conflict_p, alias_sets_must_conflict_p,
10859         objects_must_conflict_p): Move declarations ...
10860         * alias.h (record_component_aliases, get_alias_set,
10861         alias_sets_conflict_p, alias_sets_must_conflict_p,
10862         objects_must_conflict_p): ... here.
10863         Include coretypes.h.
10864         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
10866 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
10868         * cfg.c: Include tree-flow.h.
10869         (remove_edge_raw): Call redirect_edge_var_map_clear.
10870         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
10871         * tree-flow-inline.h (redirect_edge_var_map_def): New.
10872         (redirect_edge_var_map_result): New.
10873         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
10874         PENDING_STMT use with redirect_edge_var_map_*.
10875         * tree-ssa.c (edge_var_maps): New definition.
10876         (redirect_edge_var_map_add): New.
10877         (redirect_edge_var_map_clear): New.
10878         (redirect_edge_var_map_dup): New.
10879         (redirect_edge_var_map_vector): New.
10880         (redirect_edge_var_map_destroy): New.
10881         (ssa_redirect_edge): Replace PENDING_STMT use with
10882         redirect_edge_var_map_*.
10883         (flush_pending_stmts): Same.
10884         (delete_tree_ssa): Destroy edge var map.
10885         * tree-flow.h (struct _edge_var_map): New.
10886         Define edge_var_map vector type.
10887         Declare redirect_edge_var_map_* prototypes.
10888         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
10889         * tree-cfg.c (reinstall_phi_args): Replace
10890         PENDING_STMT use with redirect_edge_var_map_*.
10892 2008-03-05  Richard Guenther  <rguenther@suse.de>
10894         PR tree-optimization/35472
10895         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
10896         whose single use_stmt has a overlapping set of loaded and
10897         stored symbols as that use_stmt might be a noop assignment then.
10899 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
10901         * gthr-rtems.h: Implement __gthread_mutex_destroy.
10903 2008-03-05  Richard Guenther  <rguenther@suse.de>
10905         PR c++/35336
10906         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
10907         should be constants.
10908         * tree-cfg.c (verify_expr): Verify it.
10909         * fold-const.c (fold_truthop): Remove code generating
10910         BIT_FIELD_REFs of structure bases.
10911         (fold_binary): Likewise.
10912         (fold_ternary): Position and size of BIT_FIELD_REFs are
10913         always host integers.
10914         (make_bit_field_ref): Remove.
10915         (optimize_bit_field_compare): Remove.
10916         (all_ones_mask_p): Remove.
10918 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
10920         PR gcc/33009
10921         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
10922         (split_block_and_df_analyze): New. Split basic block and rebuild
10923         dataflow.
10924         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
10925         SPLIT_BLOCK.
10926         (split_pattern_seq): Likewise.
10927         (erase_matching_seqs): Likewise.
10928         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
10930 2008-03-04  Geoff Keating  <geoffk@apple.com>
10932         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
10933         declaration and code.
10934         (tree_invalid_nonnegative_warnv_p): Likewise.
10936 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10938         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
10939         examples.  Truncate option-names then causing overfull hbox.
10941 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10943         PR target/35222
10944         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
10945         on hpux10.
10946         * configure: Rebuilt.
10948 2008-03-04  Rafael Espindola  <espindola@google.com>
10950         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
10951         (tree_unary_nonnegative_warnv_p): New.
10952         (tree_binary_nonnegative_warnv_p): New.
10953         (tree_single_nonnegative_warnv_p): New.
10954         (tree_invalid_nonnegative_warnv_p): New.
10955         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
10957 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
10959         PR 28322
10960         * opts.c (handle_option): Postpone 'unknown option' errors only for
10961         warning options.
10963 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
10965         PR target/35453
10966         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
10967         (_SIDD_XXX): This.
10969 2008-03-04  Rafael Espindola  <espindola@google.com>
10971         * fold-const.c (tree_unary_nonzero_warnv_p): New.
10972         (tree_binary_nonzero_warnv_p): New.
10973         (tree_single_nonzero_warnv_p): New.
10974         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
10976 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
10978         PR middle-end/35456
10979         * fold-const.c (fold_cond_expr_with_comparison): Prevent
10980         transformations for modes that have signed zeros.
10981         * ifcvt.c (noce_try_abs): Ditto.
10983 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
10985         * config/i386/i386.c (override_options): Force
10986         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
10988 2008-03-04  Jan Hubicka  <jh@suse.cz>
10990         PR c++/35262
10991         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
10992         in last commit.
10994 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
10996         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
10997         label to probe the stack.
10999 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11001         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11002         (__gthr_win32_mutex_destroy): Declare.
11003         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11004         __gthr_win32_mutex_destroy.
11005         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
11007 2008-03-03  Jan Hubicka  <jh@suse.cz>
11009         PR c++/35262
11010         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11011         aggressive on inlining cold calls.
11013 2008-03-03  Richard Guenther  <rguenther@suse.de>
11015         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11016         struct copies into the expression table.
11017         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11018         (try_to_simplify): Likewise.
11019         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
11020         integral and pointer arguments which do not change the
11021         precision to NOP_EXPRs.
11022         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
11023         VIEW_CONVERT_EXPR case.
11025 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
11027         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
11028         defined in a loop at depth 0 is invariant.
11029         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11030         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
11031         be called at loop depth 0.
11033 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
11035         PR driver/35420
11036         * gcc.c (process_command): Update copyright notice dates.
11037         * gcov.c (print_version): Likewise.
11038         * gcov-dump.c (print_version): Likewise.
11039         * mips-tfile.c (main): Likewise.
11040         * mips-tdump.c (main): Likewise.
11042 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11044         PR 24924
11045         * c-common.c (flag_permissive): Delete.
11046         (constant_expression_warnings): Check flags first.
11047         (constant_expression_error): New.
11048         * c-common.h (flag_permissive): Delete.
11049         (constant_expression_error): Declare.
11050         * flags.h (flag_permissive): Declare. Update description.
11051         * diagnostic.c (pedwarn): Update.
11052         (permerror): New.
11053         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
11054         (permissive_error_kind): New.
11055         * toplev.c (flag_permissive): Define. Update description.
11056         * toplev.h (permissive_error_kind): Declare.
11057         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
11058         (pedwarn_c90): Use pedantic_warning_kind.
11059         * c-opts.c (c_common_post_options): flag_permissive does not affect
11060         flag_pedantic_errors.
11062 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
11064         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
11065         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
11066         __absvsi2, __absvDI2): Use unsigned arithmetic.
11068 2008-03-02  Andi Kleen  <ak@suse.de>
11069             Richard Guenther  <rguenther@suse.de>
11071         * struct-equiv.c: Remove file.
11072         * cfg_cleanup.c (condjump_equiv_p): Remove.
11073         * Makefile.in (OBJS-common): Remove struct-equiv.o.
11074         (struct-equiv.o): Remove rule.
11075         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
11076         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
11077         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
11079 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11081         * ifcvt.c (noce_process_if_block): Try to handle only the then
11082         block if the else block exists but isn't suitable.
11084 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11086         PR gcc/35063
11087         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
11088         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
11089         regression from previous patch.
11091 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11093         PR gcc/35063
11094         * gthr.h: Add __gthread_mutex_destroy as a function that must be
11095         implemented.
11096         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
11097         * gthr-single.h (__gthread_mutex_destroy): Likewise.
11098         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
11099         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
11100         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
11101         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
11102         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
11103         (__gthread_mutex_destroy_function): Rename to
11104         __gthread_mutex_destroy.
11105         * gthr-dce.h (__gthread_mutex_destroy): Call
11106         pthread_mutex_destroy.
11107         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
11108         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
11109         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
11111 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11113         * df-scan.c (df_ref_chain_change_bb): Simplify.
11114         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
11115         set_block_for_insn if there's any change.
11116         * df.h ((df_insn_change_bb): Fix prototype.
11117         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
11118         df_insn_change_bb, don't call set_block_for_insn.
11119         * emit-rtl.c (reorder_insns): Likewise.
11120         * haifa-sched.c (move_insn): Likewise.
11122 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11124         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
11126 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11128         * tree-flow-inline.h (next_readonly_imm_use): Return
11129         NULL_USE_OPERAND_P after the end.
11131 2008-03-01  Richard Guenther  <rguenther@suse.de>
11133         PR tree-optimization/35411
11134         * tree-sra.c (sra_build_assignment): Split conversion to
11135         final type to a separate statement if we are not assigning
11136         to a register.
11138 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11140         * fold-const.c (fold_convertible_p): Correct the logic to follow
11141         that in fold_convert().
11143 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
11145         PR c++/35315
11146         * tree-inline.c (build_duplicate_type): When we make a
11147         duplicate type, make it unique in the canonical types system.
11149 2008-02-29  Tom Tromey  <tromey@redhat.com>
11151         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
11152         input_file_stack_history, input_file_stack_restored): Remove.
11153         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11154         * input.h (struct file_stack): Remove.
11155         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11156         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
11157         Likewise.
11158         * diagnostic.h (struct diagnostic_context) <last_module>: Change
11159         type.
11160         (diagnostic_last_module_changed): Add 'map' argument.
11161         (diagnostic_set_last_function): Likewise.
11162         * diagnostic.c (undiagnostic_report_current_module): Iterate using
11163         line map, not input_file_stack.
11164         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
11166 2008-02-29  Paul Brook  <paul@codesourcery.com>
11168         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
11170 2008-02-29  Paul Brook  <paul@codesourcery.com>
11172         * config/arm/ieee754-df.S (muldf3): Use RET macros.
11174 2008-02-29  Richard Guenther  <rguenther@suse.de>
11176         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
11177         vn_lookup_or_add.
11178         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
11179         value for comparing for a store match.
11180         (simplify_unary_expression): Do nothing for SSA_NAMEs.
11181         (try_to_simplify): Do not do a full-blown reference lookup.
11183 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11185         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
11186         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
11188         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
11190 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
11192         * tree-loop-linear.c (try_interchange_loops): Compare memory access
11193         strides against cache sizes.
11195 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11197         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
11198         constant to fpul.
11200 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
11202         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
11203         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
11204         is smaller than the original promoted value.
11205         (simplify_subreg): If OP is a SUBREG, try to preserve its
11206         SUBREG_PROMOTED_VAR_P information.
11208 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
11210         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
11211         (VN_INFO_GET): Allocate new objects on the obstack.
11212         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
11213         for rpo_numbers_temp, for consistency.
11214         (free_scc_vn): Free the obstack.
11216 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
11218         * doc/invoke.texi: Document -ftree-loop-distribution.
11219         * tree-loop-distribution.c: New.
11220         * tree-pass.h (pass_loop_distribution): New.
11221         * graphds.h (struct graph): Add htab_t indices.
11222         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
11223         * tree-vectorizer.c (rename_variables_in_loop): Extern.
11224         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
11225         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
11226         * tree-data-ref.c (debug_data_dependence_relations): New.
11227         (dump_data_dependence_relation): Also print data references.
11228         (free_data_ref): Extern.
11229         (same_access_functions): Moved...
11230         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
11231         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
11232         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
11233         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
11234         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
11235         (stmts_from_loop): Skip LABEL_EXPR.
11236         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
11237         New.
11238         (build_rdg): Initialize rdg->indices htab.
11239         (free_rdg, stores_from_loop, ref_base_address,
11240         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
11241         have_similar_memory_accesses_1, ref_base_address_1,
11242         remove_similar_memory_refs): New.
11243         * tree-data-ref.h: Depend on tree-chrec.h.
11244         (debug_data_dependence_relations, free_data_ref): Declared.
11245         (same_access_functions): ... here.
11246         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
11247         New.
11248         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
11249         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
11250         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
11251         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
11252         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
11253         rdg_vertex_for_stmt): Declared.
11254         (struct rdg_edge): Add level.
11255         (RDGE_LEVEL): New.
11256         (free_rdg, stores_from_loop, remove_similar_memory_refs,
11257         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
11258         Declared.
11259         (rdg_has_similar_memory_accesses): New.
11260         * tree-vect-analyze.c: Remove unused static decls.
11261         * lambda.h (dependence_level): New.
11262         * common.opt (ftree-loop-distribution): New.
11263         * tree-flow.h (mark_virtual_ops_in_bb, 
11264         slpeel_tree_duplicate_loop_to_edge_cfg,
11265         rename_variables_in_loop): Declared.
11266         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
11267         (OBJS-common): Add tree-loop-distribution.o.
11268         (tree-loop-distribution.o): New rule.
11269         * tree-cfg.c (mark_virtual_ops_in_bb): New.
11270         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
11271         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
11273 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
11275         PR target/33963
11276         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
11277         other than structures and unions.
11279 2008-02-28  Richard Guenther  <rguenther@suse.de>
11281         Revert:
11282         2008-02-26  Richard Guenther  <rguenther@suse.de>
11284         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11285         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11286         (lookup_decl_from_uid): Declare.
11287         (remove_decl_from_map): Likewise.
11288         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11289         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11290         (decl_for_uid_map): New global hashtable mapping DECL_UID
11291         to the decl tree.
11292         (init_ttree): Allocate it.
11293         (insert_decl_to_uid_decl_map): New helper function.
11294         (make_node_stat): Insert new decls into the map.
11295         (copy_node_stat): Likewise.
11296         (lookup_decl_from_uid): New function.
11297         (remove_decl_from_map): Likewise.
11298         (print_decl_for_uid_map_statistics): New helper.
11299         (dump_tree_statistics): Call it.
11301         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11302         (referenced_var_iterator): Adjust.
11303         (FOR_EACH_REFERENCED_VAR): Adjust.
11304         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11305         (num_referenced_vars): Adjust.
11306         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11307         (first_referenced_var): Remove.
11308         (end_referenced_vars_p): Likewise.
11309         (next_referenced_var): Likewise.
11310         (referenced_var_iterator_set): New helper function.
11311         * tree-dfa.c (referenced_var_lookup): Adjust.
11312         (referenced_var_check_and_insert): Likewise.
11313         (remove_referenced_var): Likewise.
11314         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11315         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11316         (verify_call_clobbering): Likewise.
11317         (verify_memory_partitions): Likewise.
11318         (init_tree_ssa): Allocate bitmap instead of hashtable for
11319         referenced_vars.
11320         (delete_tree_ssa): Adjust.
11321         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11322         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11323         (compute_tag_properties): Likewise.
11324         (set_initial_properties): Likewise.
11325         (find_partition_for): Likewise.
11326         (update_reference_counts): Likewise.
11327         (dump_may_aliases_for): Likewise.
11328         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11329         (add_call_clobber_ops): Likewise.
11330         (add_call_read_ops): Likewise.
11331         (get_asm_expr_operands): Likewise.
11332         * tree-into-ssa.c (dump_decl_set): Likewise.
11333         (update_ssa): Likewise.
11334         * tree-sra.c (scan_function): Likewise.
11335         (decide_instantiations): Likewise.
11336         (scalarize_parms): Likewise.
11337         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11338         (dsa_named_for): Likewise.
11339         * tree-ssa-structalias.c (update_alias_info): Likewise.
11340         (merge_smts_into): Likewise.
11342 2008-02-27  David Daney  <ddaney@avtrex.com>
11344         PR target/34409
11345         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
11346         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
11347         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
11348         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
11349         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
11351 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
11353         PR target/25477
11354         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
11355         (BUILT_IN_NEXTTOWARD): Remove.
11356         (BUILT_IN_NEXTTOWARDF): Ditto.
11357         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
11358         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
11360 2008-02-27  Tom Tromey  <tromey@redhat.com>
11362         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
11363         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
11365 2008-02-27  Jan Beulich  <jbeulich@novell.com>
11367         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
11368         update the respective field on newdecl.
11370 2008-02-27  Revital Eres  <eres@il.ibm.com>
11372         PR rtl-optimization/34999
11373         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
11374         crossing edges that ends with a call insn.
11375         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
11376         call insn and clear the EDGE_CROSSING flag of the crossing edge
11377         when fixing fallthru edges.
11379 2008-02-27  Richard Guenther  <rguenther@suse.de>
11381         PR middle-end/35390
11382         * fold-const.c (fold_unary): Return the correct argument,
11383         converted to the result type.
11385 2008-02-27  Richard Guenther  <rguenther@suse.de>
11387         PR middle-end/34971
11388         * expr.c (expand_expr_real_1): Assert on rotates that operate
11389         on partial modes.
11390         * fold-const.c (fold_binary): Use the types precision, not the
11391         bitsize of the mode if folding rotate expressions.  Build rotates
11392         only for full modes.
11394 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
11396         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
11397         and CPP_PRAGMA_EOL.
11398         * c-pragma.c (pragma_ns_name): New typedef.
11399         (registered_pp_pragmas): New variable.
11400         (c_pp_lookup_pragma): New function.
11401         (c_register_pragma_1): If flag_preprocess_only, do nothing
11402         for non-expanded pragmas, for expanded ones push pragma's
11403         namespace and name into registered_pp_pragmas vector.
11404         (c_invoke_pragma_handler): Register OpenMP pragmas even when
11405         flag_preprocess_only, don't register GCC pch_preprocess
11406         pragma if flag_preprocess_only.
11407         * c-opts.c (c_common_init): Call init_pragma even if
11408         flag_preprocess_only.
11409         * c-pragma.c (c_pp_lookup_pragma): New prototype.
11410         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
11411         cpp_register_pragma if flag_preprocess_only.
11413 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11415         PR c/28800
11416         * c-parser.c (c_parser_translation_unit): Warn for empty
11417         translation unit, not empty source file.
11419 2008-02-26  Paul Brook  <paul@codesourcery.com>
11421         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
11422         operand for Thumb-2.
11423         * config/arm/arm.h (reg_class): Add CORE_REGS.
11424         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
11425         (BASE_REG_CLASS): Use CORE_REGS.
11426         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
11427         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
11428         (REGNO_OK_FOR_INDEX_P): Exclude SP.
11429         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
11430         ARM_REGNO_OK_FOR_INDEX_P.
11431         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
11432         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
11433         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
11434         (ldm/stm peepholes): Ditto.
11435         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
11436         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
11437         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
11438         * config/arm/constraints.md: Enable "k" constraint on ARM.
11440 2008-02-27  Ben Elliston  <bje@au.ibm.com>
11442         * config/rs6000/rs6000.c: Annotate cache line size field in all
11443         instances of struct processor_costs.
11445 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
11447         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
11448         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
11449         jump_bypass): New counters.
11450         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
11451         * dce.c (gate_ud_dce): Same.
11452         (gate_fast_dce): Same.
11453         * dse.c (gate_dse1): New function.
11454         (gate_dse2): New function.
11455         (gate_dse): Merge results of new gate functions.
11456         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
11457         (gate_handle_jump_bypass): Add dbg_cnt.
11458         (gate_handle_gcse): Add dbg_cnt.
11459         * ifcvt.c (gate_handle_if_conversion): Same.
11460         (gate_handle_if_after_combine): Same.
11461         (gate_handle_if_after_reload): Same.
11462         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
11464 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
11466         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
11467         line sizes.
11468         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
11470 2008-02-26  Jason Merrill  <jason@redhat.com>
11472         PR c++/35315
11473         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
11474         alone if it's the naming decl for the type's main variant.
11476 2008-02-26  Tom Tromey  <tromey@redhat.com>
11478         * system.h (USE_MAPPED_LOCATION): Poison.
11479         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
11480         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
11481         (make_goto_expr_edges): Likewise.
11482         (remove_bb): Likewise.
11483         (execute_warn_function_return): Likewise.
11484         * basic-block.h (struct edge_def) <goto_locus>: Change type to
11485         location_t.
11486         * c-common.c (fname_decl): Remove old location code.
11487         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
11488         location code.
11489         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
11490         variant.
11491         (ASM_INPUT_SOURCE_LOCATION): Likewise.
11492         (gen_rtx_ASM_INPUT): Likewise.
11493         (gen_rtx_ASM_INPUT_loc): Likewise.
11494         (get_rtx_asm_OPERANDS): Remove.
11495         * cfglayout.c (insn_locators_alloc): Remove old location code.
11496         (set_curr_insn_source_location): Likewise.
11497         (curr_insn_locator): Likewise.
11498         * print-tree.c (print_node): Remove old location code.
11499         * tree-mudflap.c (mf_varname_tree): Remove old location code.
11500         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
11501         * cfgexpand.c (expand_gimple_cond_expr): Don't use
11502         location_from_locus.
11503         (construct_exit_block): Remove old location code.
11504         * emit-rtl.c (force_next_line_note): Remove old location code.
11505         * profile.c (branch_prob): Remove old location code.
11506         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
11507         LOC_LINE): Remove old-location variants.
11508         * langhooks.c (lhd_print_error_function): Remove old location
11509         code.
11510         * configure, config.in: Rebuilt.
11511         * configure.ac (--enable-mapped-location): Remove.
11512         * c-decl.c (c_init_decl_processing): Remove old location code.
11513         (finish_function): Likewise.
11514         * recog.c (decode_asm_operands): Remove old location code.
11515         * c-pch.c (c_common_read_pch): Remove old location code.
11516         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
11517         variants.
11518         * gimple-low.c (lower_function_body): Remove old location code.
11519         * toplev.c (unknown_location): Remove.
11520         (push_srcloc): Remove old-location variant.
11521         (process_options): Remove old location code.
11522         (lang_dependent_init): Likewise.
11523         * input.h (UNKNOWN_LOCATION): Move definition.
11524         (location_t): Undeprecate.
11525         (source_locus): Remove.
11526         (location_from_locus): Remove.
11527         (struct location_s): Remove.
11528         Remove all old-location code.
11529         (input_line, input_filename): Remove.
11530         * final.c (final_scan_insn): Remove old location code.
11531         * diagnostic.c (diagnostic_build_prefix): Remove
11532         USE_MAPPED_LOCATION test.
11533         * tree.h (gimple_stmt) <locus>: Now a location_t.
11534         (tree_exp) <locus>: Likewise.
11535         (DECL_IS_BUILTIN): Remove old-location variant.
11536         (annotate_with_file_line, annotate_with_locus): Likewise.
11537         (expr_locus, set_expr_locus): Update.
11538         * tree.c (build1_stat): Remove old location code.
11539         (last_annotated_node): Remove.
11540         (annotate_with_file_line): Remove old-location variant.
11541         (annotate_with_locus): Likewise.
11542         (expr_location): Remove old location code.
11543         (set_expr_location): Likewise.
11544         (expr_has_location): Likewise.
11545         (expr_locus): Likewise.
11546         (set_expr_locus): Likewise.
11547         (expr_filename): Don't use location_from_locus.
11548         (expr_lineno): Likewise.
11549         * rtl-error.c (location_for_asm): Remove old location code.
11550         * c-lex.c (cb_line_change): Remove old location code.
11551         (fe_file_change): Likewise.
11552         (cb_def_pragma): Likewise.
11553         (c_lex_with_flags): Likewise.
11554         * gengtype.c (do_typedef): Don't special-case location types.
11555         (define_location_structures): Remove.
11556         (main): Don't call define_location_structures.
11557         * tree-pretty-print.c (dump_implicit_edges): Remove old location
11558         code.
11560 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11562         PR 26264
11563         * builtins.def (BUILT_IN_STDARG_START): Remove.
11564         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
11565         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
11566         * tree-inline.c (inline_forbidden_p_1): Likewise.
11567         
11568 2008-02-26  Richard Guenther  <rguenther@suse.de>
11570         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11571         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11572         (lookup_decl_from_uid): Declare.
11573         (remove_decl_from_map): Likewise.
11574         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11575         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11576         (decl_for_uid_map): New global hashtable mapping DECL_UID
11577         to the decl tree.
11578         (init_ttree): Allocate it.
11579         (insert_decl_to_uid_decl_map): New helper function.
11580         (make_node_stat): Insert new decls into the map.
11581         (copy_node_stat): Likewise.
11582         (lookup_decl_from_uid): New function.
11583         (remove_decl_from_map): Likewise.
11584         (print_decl_for_uid_map_statistics): New helper.
11585         (dump_tree_statistics): Call it.
11587         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11588         (referenced_var_iterator): Adjust.
11589         (FOR_EACH_REFERENCED_VAR): Adjust.
11590         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11591         (num_referenced_vars): Adjust.
11592         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11593         (first_referenced_var): Remove.
11594         (end_referenced_vars_p): Likewise.
11595         (next_referenced_var): Likewise.
11596         (referenced_var_iterator_set): New helper function.
11597         * tree-dfa.c (referenced_var_lookup): Adjust.
11598         (referenced_var_check_and_insert): Likewise.
11599         (remove_referenced_var): Likewise.
11600         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11601         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11602         (verify_call_clobbering): Likewise.
11603         (verify_memory_partitions): Likewise.
11604         (init_tree_ssa): Allocate bitmap instead of hashtable for
11605         referenced_vars.
11606         (delete_tree_ssa): Adjust.
11607         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11608         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11609         (compute_tag_properties): Likewise.
11610         (set_initial_properties): Likewise.
11611         (find_partition_for): Likewise.
11612         (update_reference_counts): Likewise.
11613         (dump_may_aliases_for): Likewise.
11614         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11615         (add_call_clobber_ops): Likewise.
11616         (add_call_read_ops): Likewise.
11617         (get_asm_expr_operands): Likewise.
11618         * tree-into-ssa.c (dump_decl_set): Likewise.
11619         (update_ssa): Likewise.
11620         * tree-sra.c (scan_function): Likewise.
11621         (decide_instantiations): Likewise.
11622         (scalarize_parms): Likewise.
11623         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11624         (dsa_named_for): Likewise.
11625         * tree-ssa-structalias.c (update_alias_info): Likewise.
11626         (merge_smts_into): Likewise.
11628 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11630         PR 34351
11631         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
11632         * c-opts.c (c_common_handle_option): Wall enables
11633         Wvolatile-register-var.
11634         * common.opt: Move Wvolatile-register-var to...
11635         * c.opt: ...here.
11636         
11637 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11639         * common.opt (Wlarger-than=): New.
11640         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
11641         -Wlarger-than=.
11642         * opts.c (common_handle_option): Handle -Wlarger-than=.
11643         * optc-gen.awk: Likewise.
11644         * opth-gen.awk: Likewise.
11645         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
11646         * tree-optimize.c (tree_rest_of_compilation): Likewise.
11647         
11648 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11650         * c-common.c (match_case_to_enum_1): Add appropriate
11651         OPT_W* parameter to warning.
11652         (c_do_switch_warnings): Likewise.
11653         * c-typeck.c (warning_init): Add one more parameter following
11654         'warning' function.
11655         (push_init_level): Update call to warning_init.
11656         (pop_init_level): Likewise.
11657         (add_pending_init): Likewise.
11658         (output_init_element: Likewise.
11660 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11662         PR 28322
11663         * toplev.c (toplev_main): If there are warnings or error, print
11664         errors for ignored options.
11665         * opts.c (ignored_options): New static variable.
11666         (postpone_unknown_option_error): New.
11667         (print_ignored_options): New.
11668         (handle_option): Postpone errors for unknown -Wno-* options.
11669         * opts.h (print_ignored_options): Declare.
11670         
11671 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11673         * config/mips/mips.md (loadgp_blockage, blockage): Change type
11674         to "ghost".
11676 2008-02-25  Richard Guenther  <rguenther@suse.de>
11678         Revert:
11679         2008-02-25  Richard Guenther  <rguenther@suse.de>
11681         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11682         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11683         (lookup_decl_from_uid): Declare.
11684         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11685         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11686         (decl_for_uid_map): New global hashtable mapping DECL_UID
11687         to the decl tree.
11688         (init_ttree): Allocate it.
11689         (insert_decl_to_uid_decl_map): New helper function.
11690         (make_node_stat): Insert new decls into the map.
11691         (copy_node_stat): Likewise.
11692         (lookup_decl_from_uid): New function.
11693         (print_decl_for_uid_map_statistics): New helper.
11694         (dump_tree_statistics): Call it.
11696         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11697         (referenced_var_iterator): Adjust.
11698         (FOR_EACH_REFERENCED_VAR): Adjust.
11699         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11700         (num_referenced_vars): Adjust.
11701         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11702         (first_referenced_var): Remove.
11703         (end_referenced_vars_p): Likewise.
11704         (next_referenced_var): Likewise.
11705         (referenced_var_iterator_set): New helper function.
11706         * tree-dfa.c (referenced_var_lookup): Adjust.
11707         (referenced_var_check_and_insert): Likewise.
11708         (remove_referenced_var): Likewise.
11709         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11710         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11711         (verify_call_clobbering): Likewise.
11712         (verify_memory_partitions): Likewise.
11713         (init_tree_ssa): Allocate bitmap instead of hashtable for
11714         referenced_vars.
11715         (delete_tree_ssa): Adjust.
11716         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11717         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11718         (compute_tag_properties): Likewise.
11719         (set_initial_properties): Likewise.
11720         (find_partition_for): Likewise.
11721         (update_reference_counts): Likewise.
11722         (dump_may_aliases_for): Likewise.
11723         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11724         (add_call_clobber_ops): Likewise.
11725         (add_call_read_ops): Likewise.
11726         (get_asm_expr_operands): Likewise.
11727         * tree-into-ssa.c (dump_decl_set): Likewise.
11728         (update_ssa): Likewise.
11729         * tree-sra.c (scan_function): Likewise.
11730         (decide_instantiations): Likewise.
11731         (scalarize_parms): Likewise.
11732         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11733         (dsa_named_for): Likewise.
11734         * tree-ssa-structalias.c (update_alias_info): Likewise.
11735         (merge_smts_into): Likewise.
11737 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
11739         PR fortran/29549
11740         * doc/invoke.texi (-fcx-limited-range): Document new option.
11741         * toplev.c (process_options): Handle -fcx-fortran-rules.
11742         * common.opt: Add documentation for -fcx-fortran-rules.
11744 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
11746         PR c/35162
11747         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
11748         actual behaviour and C99.
11749         
11750 2008-02-26  Ben Elliston  <bje@au.ibm.com>
11752         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
11753         (ASM_CPU_POWER6_SPEC): Likewise.
11754         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
11755         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
11756         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
11758 2008-02-25  Richard Guenther  <rguenther@suse.de>
11760         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11761         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11762         (lookup_decl_from_uid): Declare.
11763         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11764         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11765         (decl_for_uid_map): New global hashtable mapping DECL_UID
11766         to the decl tree.
11767         (init_ttree): Allocate it.
11768         (insert_decl_to_uid_decl_map): New helper function.
11769         (make_node_stat): Insert new decls into the map.
11770         (copy_node_stat): Likewise.
11771         (lookup_decl_from_uid): New function.
11772         (print_decl_for_uid_map_statistics): New helper.
11773         (dump_tree_statistics): Call it.
11775         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11776         (referenced_var_iterator): Adjust.
11777         (FOR_EACH_REFERENCED_VAR): Adjust.
11778         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11779         (num_referenced_vars): Adjust.
11780         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11781         (first_referenced_var): Remove.
11782         (end_referenced_vars_p): Likewise.
11783         (next_referenced_var): Likewise.
11784         (referenced_var_iterator_set): New helper function.
11785         * tree-dfa.c (referenced_var_lookup): Adjust.
11786         (referenced_var_check_and_insert): Likewise.
11787         (remove_referenced_var): Likewise.
11788         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11789         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11790         (verify_call_clobbering): Likewise.
11791         (verify_memory_partitions): Likewise.
11792         (init_tree_ssa): Allocate bitmap instead of hashtable for
11793         referenced_vars.
11794         (delete_tree_ssa): Adjust.
11795         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11796         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11797         (compute_tag_properties): Likewise.
11798         (set_initial_properties): Likewise.
11799         (find_partition_for): Likewise.
11800         (update_reference_counts): Likewise.
11801         (dump_may_aliases_for): Likewise.
11802         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11803         (add_call_clobber_ops): Likewise.
11804         (add_call_read_ops): Likewise.
11805         (get_asm_expr_operands): Likewise.
11806         * tree-into-ssa.c (dump_decl_set): Likewise.
11807         (update_ssa): Likewise.
11808         * tree-sra.c (scan_function): Likewise.
11809         (decide_instantiations): Likewise.
11810         (scalarize_parms): Likewise.
11811         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11812         (dsa_named_for): Likewise.
11813         * tree-ssa-structalias.c (update_alias_info): Likewise.
11814         (merge_smts_into): Likewise.
11816 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
11818         PR target/35258
11819         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
11820         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
11821         * alias.h (nonoverlapping_memrefs_p): Likewise.
11823 2008-02-25  Jan Beulich  <jbeulich@novell.com>
11825         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
11826         * config/i386/netware-libgcc.exp: Add __bswap?i2,
11827         __emultls_get_address, __emultls_register_common,
11828         __floatundi?f, and _Unwind_GetIPInfo.
11829         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
11830         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
11831         (gen_regparm_prefix): Likewise.
11832         (i386_nlm_encode_section_info): Sync with
11833         config/i386/winnt.c:i386_pe_encode_section_info().
11834         (i386_nlm_maybe_mangle_decl_assembler_name): New.
11835         i386_nlm_mangle_decl_assembler_name): New.
11836         (netware_override_options): New.
11837         * config/i386/netware.h (netware_override_options): Declare.
11838         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
11839         (i386_nlm_mangle_decl_assembler_name): Declare.
11840         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
11842 2008-02-25  Ben Elliston  <bje@au.ibm.com>
11844         PR other/32948
11845         * c-decl.c (grokdeclarator): Remove unused local variables
11846         `typedef_type' and `type_as_written'.
11847         * bb-reorder.c
11848         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
11849         unused local variable `has_hot_blocks'.
11850         (fix_crossing_conditional_branches): Remove unused local variable
11851         `prev_bb'.
11852         
11853 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
11855         PR middle-end/19984
11856         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
11857         using DEF_C99_BUILTIN.
11858         (BUILT_IN_NANF): Ditto.
11859         (BUILT_IN_NANL): Ditto.
11861 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
11862             Revital Eres  <eres@il.ibm.com>
11864         * modulo-sched.c (calculate_must_precede_follow): Address TODO
11865         regarding the order of two dependent insns in the same row.
11867 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11869         * stor-layout.c (layout_decl): Do not bump the alignment of a
11870         bit-field to more than byte alignment if it is packed.
11872 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
11874         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
11875         e300c2 and e300c3.
11877 2008-02-24  Diego Novillo  <dnovillo@google.com>
11879         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
11881         PR 33738
11882         * tree-vrp.c (vrp_evaluate_conditional): With
11883         -Wtype-limits, emit a warning when comparing against a
11884         constant outside the natural range of OP0's type.
11885         * c.opt (Wtype-limits): Move ...
11886         * common.opt (Wtype-limits): ... here.
11888 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
11890         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
11891         * config/rs6000/e300c2c3.md: New file.
11892         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11893         e300c2 and e300c3.
11894         (rs6000_override_options): Add e300c2 and e300c3 cases to
11895         processor_target_table. Do not allow usage of Altivec or Spe
11896         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
11897         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
11898         * config/rs6000/rs6000.h (processor_type): Add
11899         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
11900         (ASM_CPU_SPEC): Add e300c2 and e300c3.
11901         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
11902         and ppce300c3. Include e300c2c3.md.
11904 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
11906         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
11907         instead of TARGET_STRICT_ALIGN.
11909 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
11911         * explow.c (memory_address): Assert that the generated address is
11912         valid.
11914 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11916         PR target/25477
11917         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
11918         * config/darwin-ppc-ldouble-patch.def: New file.
11919         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
11920         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
11921         SUBTARGET_INIT_BUILTINS if defined.
11922         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
11923         New functions.
11925 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11927         PR rtl-opt/33512
11928         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
11929         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
11931 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11933         PR pch/35027
11934         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
11935         file" warning condtional on -Winvalid-PCH.
11937 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
11939         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
11941 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
11943         PR target/22076
11944         PR target/34256 
11945         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
11946         prevent reload from using MMX registers.
11947         (*mov<mode>_internal): Ditto.
11948         (*movv2sf_internal_rex64): Ditto.
11949         (*movv2sf_internal): Ditto.
11951 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11953         PR documentation/31569
11954         * doc/install.texi2html: Use makeinfo --no-number-sections.
11956 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
11958         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
11959         ensure that we can address an entire entity > 8 bytes.  Don't
11960         generate reg+reg addressing for such data.
11962 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
11964         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
11965         strings when optimizing for size, unless the target cares about
11966         alignment.
11968 2008-02-22  Tom Tromey  <tromey@redhat.com>
11970         * regclass.c (current_pass): Remove declaration.
11972 2008-02-22  Anatoly Sokolov <aesok@post.ru>
11974         * config/avr/libgcc.S (__RAMPZ__): Define.
11975         (__do_copy_data): Add for devices with 128KB code memory.
11977 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
11979         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
11980         Use spe_abi.
11981         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
11983 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
11985         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
11986         GENNONACR_REGS.
11988 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11990         PR c/19999
11991         * c-typeck.c (build_binary_op): Warn about floating point
11992         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
11994 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
11996         PR target/34526
11997         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
11998         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
11999         add vrsave.
12000         (rs6000_override_options): Set altivec_abi as default, not override,
12001         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12002         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12003         is used; use new member spe_abi.
12004         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12005         spe_abi and altivec_abi.
12007 2008-02-22  Tomas Bily  <tbily@suse.cz>
12009         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12011 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12013         PR bootstrap/35273
12014         * config.build (build_file_translate): Set to `CMD //c' only if
12015         it works.
12016         * Makefile.in (build_file_translate): Improve comment.
12018 2008-02-21  Jan Hubicka  <jh@suse.cz>
12020         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
12021         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
12022         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
12024 2008-02-21  Michael Matz  <matz@suse.de>
12026         PR target/35264
12027         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
12029 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
12031         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
12032         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
12033         as insn constraint.
12034         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
12035         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
12036         SSE_VEC_FLOAT_MODE_P as insn constraint.
12037         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
12038         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
12039         sse4a_movntdf using MODEF mode iterator.
12040         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
12041         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
12042         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
12043         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
12044         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
12045         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
12046         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
12048 2008-02-21  Richard Guenther  <rguenther@suse.de>
12050         * tree.def (PAREN_EXPR): New tree code.
12051         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
12052         and PAREN_EXPR.
12053         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
12054         * expr.c (expand_expr_real_1): Likewise.
12055         * tree-inline.c (estimate_num_insns_1): Likewise.
12056         * tree-complex.c (expand_complex_move): Likewise.
12057         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
12058         as plain x.
12060 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12062         PR target/35225
12063         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
12065 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12067         PR target/35190
12068         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
12070         * config/sh/sh.c (find_barrier): Don't go past
12071         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
12073 2008-02-20  DJ Delorie  <dj@redhat.com>
12075         * config/h8300/h8300.md (insv): Force source operand to be a register.
12077         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
12078         as a jump, not as a plain insn.
12079         
12080 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
12082         * doc/invoke.texi (Warning Options): Add new option
12083         -Wframe-larger-than=.
12084         (-Wframe-larger-than): Document.
12086         * flags.h (warn_frame_larger_than, frame_larger_than_size):
12087         Add declarations for new option variables.
12089         * final.c (final_start_function): Check the frame size
12090         before emission and issue a Wframe-larger-than warning.
12092         * opts.c (warn_frame_larger_than, frame_larger_than_size):
12093         Add definitions for new option variables.
12094         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
12096         * common.opt (Wframe-larger-than=): New option.
12098 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12100         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
12101         (<sse>_div<mode>3): Ditto.
12102         (<sse>_vmdiv<mode>3): Ditto.
12103         (<sse>_vmsqrt<mode>2): Ditto.
12104         (*smax<mode>3): Ditto.
12105         (sse5_frcz<mode>2): Ditto.
12106         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
12107         as insn constraint.
12109 2008-02-20  Richard Guenther  <rguenther@suse.de>
12111         PR middle-end/35265
12112         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
12113         be happy with INTEGRAL_TYPE_P.
12115 2008-02-20  Richard Guenther  <rguenther@suse.de>
12117         * fold-const.c (split_tree): Associate floatig-point expressions
12118         if flag_associative_math is set.
12120 2008-02-20  Richard Guenther  <rguenther@suse.de>
12122         * tree.h (fold_real_zero_addition_p): Declare.
12123         * fold-const.c (fold_real_zero_addition_p): Export.
12124         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
12125         floating-point operations with zero and one.
12127 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
12129         * doc/install.texi: Correct references to CFLAGS, replacing them
12130         with BOOT_CFLAGS.  Document flags used during bootstrap for
12131         target libraries.
12132                                 
12133 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12135         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
12136         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
12137         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
12138         insn constraint.
12139         (smin<mode>3): Ditto from similar patterns.
12140         (smax<mode>3): Ditto.
12141         (*ieee_smin<mode>3): Ditto.
12142         (*ieee_smax<mode>3): Ditto.
12143         * config/i386/sse.md (sse): New mode attribute.
12144         (mov<mode>): Macroize expander from movv4sf and movv2df using
12145         SSEMODEF2P mode iterator.
12146         (<sse>_movnt<mode>): Ditto from similar patterns. Use
12147         SSE_VEC_FLOAT_MODE_P as insn constraint.
12148         (storent<mode>): Ditto.
12149         (storent<mode>): Macroize expander from storentsf and storentdf using
12150         MODEF mode iterator.
12151         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
12152         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
12153         (abs<mode>2): Ditto from similar patterns.
12154         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
12155         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
12156         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
12157         (<sse>_vmsqrt<mode>2): Ditto.
12158         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
12159         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
12160         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
12161         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
12162         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
12163         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
12164         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
12165         insn constraint.
12166         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
12167         iterator and SSE_FLOAT_MODE_P as insn constraint.
12168         (<sse>_ucomi): Ditto from similar patterns.
12169         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
12170         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
12171         SSE_VEC_FLOAT_MODE_P as insn constraint.
12172         (vcond<mode>): Ditto from similar patterns.
12173         (and<mode>3, *and<mode>3): Ditto.
12174         (<sse>_nand<mode>3): Ditto.
12175         (ior<mode>3, *ior<mode>3): Ditto.
12176         (xor<mode>3, *xor<mode>3): Ditto.
12177         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
12178         iterator and SSE_FLOAT_MODE_P as insn constraint.
12179         (*nand<mode>3): Ditto from similar patterns.
12180         (*ior<mode>3): Ditto.
12181         (*xor<mode>3): Ditto.
12183 2008-02-20  Ira Rosen  <irar@il.ibm.com>
12185         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
12186         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
12187         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
12189 2008-02-19  Jan Hubicka  <jh@suse.cz>
12191         * predict.c (tree_bb_level_predictions): Remove variable next
12192         mistakely introduced by previous commit.
12194 2008-02-19  Jan Hubicka  <jh@suse.cz>
12196         * predict.c (predict_paths_leading_to): Rewrite.
12197         (predict_paths_for_bb): New.
12198         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
12200 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12202         PR bootstrap/35218
12203         * Makefile.in (build_file_translate): New.
12204         (gcc-vers.texi): Use it for translating $(abs_srcdir).
12205         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
12206         * configure.ac (build_file_translate): Substitute it.
12207         * configure: Regenerate.
12209 2008-02-19  Jan Hubicka  <jh@suse.cz>
12211         PR rtl-optimization/34408
12212         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
12213         invalid sharing.
12215 2008-02-19  Jan Hubicka  <jh@suse.cz>
12217         PR middle-end/28779
12218         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
12219         call_expr.
12221 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
12223         PR Ada/35186
12224         * config/i386/i386-modes.def: Revert the last DI alignment
12225         change until Ada people can look into it.
12227 2008-02-19  Nick Clifton  <nickc@redhat.com>
12229         * opts.c (print_specific_help): Fix typo in --help text.
12231 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
12233         PR target/35239
12234         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
12235         32-bit inline asm without asm alternatives for host GCC < 3.0.
12237 2008-02-19  Richard Guenther  <rguenther@suse.de>
12239         PR tree-optimization/34989
12240         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
12241         Allow propagation to INDIRECT_REF if we can simplify only.
12243 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12245         * c-common.c (warn_for_collisions_1): Use appropriate option when
12246         warning.
12248 2008-02-19  Nick Clifton  <nickc@redhat.com>
12250         PR other/31349
12251         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
12252         (handle_options): Fix indentation.
12253         (print_filtered_help): If no language-specific options were
12254         displayed tell the user how to list all the options supported by
12255         the language's front-end.
12256         (print_specific_help): Fix indentation and remove duplicate line.
12257         (common_handle_option): Handle the -v option.
12258         For --help enable the display of undocumented options if the -v
12259         switch has been included on the command line.
12260         For --help= check for overlaps in the arguments between the option
12261         classes and the language names and issue a warning when they
12262         cannot be disambiguated.
12263         * c.opt (v): Pass on to the common option handler.
12265 2008-02-19  Revital Eres  <eres@il.ibm.com> 
12267         * modulo-sched.c (sms_schedule): Change dump message when
12268         create_ddg function fails.
12269         (try_scheduling_node_in_cycle): Rename row to cycle.
12270         (print_partial_schedule): Rename CYCLE to ROW.
12272 2008-02-19  Christian Bruel  <christian.bruel@st.com>
12273             Zdenek Dvorak  <ook@ucw.cz>
12275         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
12277 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
12279         PR target/33555
12280         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
12281         (*x86_movdicc_0_m1_se): Ditto.
12283 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
12285         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
12286         (CMPtype): Define as __gcc_CMPtype.
12287         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
12288         (CMPtype): Define as __gcc_CMPtype.
12290 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
12292         Support valgrind 3.3 for --enable-checking=valgrind.
12293         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
12294         here.
12295         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
12296         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
12297         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
12298         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
12299         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
12300         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
12301         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
12302         respectively.
12303         * ggc-zone.c: Similar.
12304         * ggc-page.c: Similar.
12306 2008-02-19  Paul Brook  <paul@codesourcery.com>
12308         PR target/35071
12309         * config/arm/ieee754-df.S: Fix do_it typo.
12310         * config/arm/ieee754-sf.S: Fix do_it typo.
12312 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12314         PR target/35189
12315         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
12316         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
12317         (OPTION_MASK_ISA_SSE_SET): Likewise.
12318         (OPTION_MASK_ISA_SSE2_SET): Likewise.
12319         (OPTION_MASK_ISA_SSE3_SET): Likewise.
12320         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
12321         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
12322         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
12323         (OPTION_MASK_ISA_SSE4_SET): Likewise.
12324         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
12325         (OPTION_MASK_ISA_SSE5_SET): Likewise.
12326         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
12327         (OPTION_MASK_ISA_MMX_UNSET): Updated.
12328         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
12329         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
12330         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
12331         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
12332         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
12333         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
12334         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
12335         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
12336         (OPTION_MASK_ISA_SSE4): Removed.
12337         (ix86_handle_option): Turn on bits in ix86_isa_flags and
12338         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
12339         (override_options): Don't turn on implied SSE/MMX bits in
12340         ix86_isa_flags.
12342 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12344         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12345         32bit host.
12347 2008-02-18  Joey Ye  <joey.ye@intel.com>
12349         PR middle-end/34921
12350         * tree-nested.c (insert_field_into_struct): Set type alignment
12351         to field alignment if the former is less than the latter.
12353 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
12355         * BASE-VER: Set to 4.4.0.
12357 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12359         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
12360         * doc/cfg.texi: Likewise.
12361         * doc/extend.texi: Likewise.
12362         * doc/gty.texi: Likewise.
12363         * doc/invoke.texi: Likewise.
12364         * doc/loop.texi: Likewise.
12365         * doc/md.texi: Likewise.
12366         * doc/passes.texi: Likewise.
12367         * doc/rtl.texi: Likewise.
12368         * doc/sourcebuild.texi: Likewise.
12369         * doc/tm.texi: Likewise.
12370         * doc/tree-ssa.texi: Likewise.
12372 2008-02-17  Richard Guenther  <rguenther@suse.de>
12374         PR middle-end/35227
12375         * tree-complex.c (init_parameter_lattice_values): Handle parameters
12376         without default definition.
12378 2008-02-17  Richard Guenther  <rguenther@suse.de>
12380         PR tree-optimization/35231
12381         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
12382         if A | B != 1.
12384 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
12386         Revert:
12387         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
12388         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
12389         libgcc_cmp_return mode.
12391 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12393         PR c/28368
12394         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
12396 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
12398         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
12399         multilibs.
12401 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12403         * doc/c-tree.texi: Use `@.' where appropriate.
12404         * doc/extend.texi: Likewise.
12405         * doc/install.texi: Likewise.
12406         * doc/invoke.texi: Likewise.
12407         * doc/loop.texi: Likewise.
12408         * doc/makefile.texi: Likewise.
12409         * doc/md.texi: Likewise.
12410         * doc/passes.texi: Likewise.
12411         * doc/standards.texi: Likewise.
12412         * doc/tm.texi: Likewise.
12414 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
12416         PR middle-end/35196
12417         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
12418         in entry_bb.
12419         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
12420         rather than in entry_bb.
12422 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
12424         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
12425         libgcc_cmp_return mode.
12427 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
12429         PR middle-end/35130
12430         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
12431         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
12433 2008-02-15  Richard Guenther  <rguenther@suse.de>
12434             Zdenek Dvorak  <ook@ucw.cz>
12436         PR tree-optimization/35164
12437         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
12438         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
12439         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
12440         Only propagate addresses which do not have abnormal SSA_NAMEs
12441         in their operands.
12443 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
12445         PR target/35088
12446         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
12448 2008-02-15  Jan Hubicka  <jh@suse.cz>
12450         PR middle-end/35149
12451         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
12453 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
12455         PR middle-end/34621
12456         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
12457         when calculating alignment_pad.
12459 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
12461         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
12462         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
12463         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
12464         and STACK_BOUNDARY define.
12466 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
12468         PR preprocessor/35061
12469         * c-pragma.c (handle_pragma_pop_macro): Check that
12470         pushed_macro_table has been allocated.
12472 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12474         PR middle-end/35136
12475         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
12476         (force_gimple_operand): Likewise.
12477         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
12478         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
12479         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
12480         (find_interesting_uses_address): Check addressability and alignment
12481         of the base expression only after substituting bases of IVs into it.
12483 2008-02-14  Michael Matz  <matz@suse.de>
12485         PR target/34930
12486         * function.c (instantiate_virtual_regs_in_insn): Reload address
12487         before falling back to reloading the whole operand.
12489 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
12491         * config/s390/s390.c (s390_mainpool_start): Emit the pool
12492         before the first section switch note.
12494 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12496         * doc/bugreport.texi: Update copyright years.
12497         * doc/c-tree.texi: Likewise.
12498         * doc/cfg.texi: Likewise.
12499         * doc/cpp.texi: Likewise.
12500         * doc/cppinternals.texi: Likewise.
12501         * doc/fragments.texi: Likewise.
12502         * doc/frontends.texi: Likewise.
12503         * doc/gcc.texi: Likewise.
12504         * doc/gty.texi: Likewise.
12505         * doc/hostconfig.texi: Likewise.
12506         * doc/implement-c.texi: Likewise.
12507         * doc/libgcc.texi: Likewise.
12508         * doc/loop.texi: Likewise.
12509         * doc/makefile.texi: Likewise.
12510         * doc/options.texi: Likewise.
12511         * doc/passes.texi: Likewise.
12512         * doc/rtl.texi: Likewise.
12513         * doc/sourcebuild.texi: Likewise.
12514         * doc/standards.texi: Likewise.
12515         * doc/tree-ssa.texi: Likewise.
12516         * doc/trouble.texi: Likewise.
12518         * doc/extend.texi: Use @: or add comma where appropriate.
12519         * doc/invoke.texi: Likewise.
12520         * doc/tm.texi: Likewise.
12522 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
12524         PR target/34393
12525         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
12526         to a reg.
12528 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
12530         * doc/md.texi (clz, ctz): Add reference.
12531         * doc/rtl.texi (clz, ctz): Likewise.
12533 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12535         PR other/35148
12536         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
12537         srcdir.
12539 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
12541         * config/s390/s390.c (struct constant_pool): New field
12542         emit_pool_after added.
12543         (s390_mainpool_start): Set the emit_pool_after flag according
12544         to the section switch notes.
12545         (s390_mainpool_finish): Consider emit_pool_after when emitting
12546         the literal pool at the end of the function.
12547         (s390_chunkify_start): Force literal pool splits at section
12548         switch notes.
12550 2008-02-13  Michael Matz  <matz@suse.de>
12552         PR debug/35065
12553         * var-tracking.c (clobber_variable_part): Correctly traverse the
12554         list.
12556 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12558         PR 29673
12559         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
12560         Add -fdump-ipa-inline.
12561         * tree-dump.c (dump_files): Remove tree-inlined dump.
12562         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
12563         
12564 2008-02-12  Richard Guenther  <rguenther@suse.de>
12566         PR tree-optimization/35171
12567         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
12568         default defs.
12570 2008-02-12  Richard Guenther  <rguenther@suse.de>
12572         PR middle-end/35163
12573         * fold-const.c (fold_widened_comparison): Use get_unwidened in
12574         value-preserving mode.  Disallow final truncation.
12576 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
12578         PR middle-end/35136
12579         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
12580         code from here to...
12581         (force_gimple_operand): ...here.
12583 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
12585         PR c++/35144
12586         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
12587         non-compatible pointers.
12588         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
12589         different FIELD_DECLs, try harder by comparing field offsets, sizes
12590         and types.
12592         PR inline-asm/35160
12593         * function.c (match_asm_constraints_1): Don't replace the same input
12594         multiple times.
12596 2008-02-12  Anatoly Sokolov <aesok@post.ru>
12598         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
12599         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
12600         (expand_epilogue): Restore RAMPZ register.
12601         * config/avr/avr.md (RAMPZ_ADDR): New constant.
12603 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
12605         * config/i386/cygwin.asm: (__alloca): Correct calling
12606         convention and alignment.
12607         (__chkstk): Force 8 byte stack alignment.
12609 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
12610             Richard Guenther  <rguenther@suse.de>
12612         PR tree-optimization/33992
12613         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
12614         the zero we compare against.
12616 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
12618         PR libfortran/35063
12619         * gthr-win32.h (__gthread_mutex_destroy_function): New function
12620         to CloseHandle after unlocking to prevent accumulation of handle
12621         count.
12623 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12625         PR middle_end/34150
12626         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
12627         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
12628         and update LABEL_NUSES during and after reload.
12630 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
12632         PR middle-end/34627
12633         * combine.c (simplify_if_then_else): Make sure the comparison is
12634         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
12636 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
12638         PR bootstrap/35051
12639         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
12640         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
12641         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
12642         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
12643         * tree.h (get_type_static_bounds): Likewise.
12645 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12647         * doc/invoke.texi (Option Summary, C++ Dialect Options)
12648         (Objective-C and Objective-C++ Dialect Options, Warning Options):
12649         Make -Wfoo language annotations match what the compiler outputs.
12651 2008-02-08  Sa Liu  <saliu@de.ibm.com>
12653         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
12654         intrinsics spu_convts, spu_convtu, spu_convtf.
12656 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
12658         * doc/extend.texi (Function Attributes) <noinline>: Mention
12659         asm ("") as method to keep calls.
12661 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12663         PR other/32754
12664         * doc/options.texi (Options): Replace references to opts.sh with
12665         optc-gen.awk.
12666         * opts-common.c: Likewise.
12667         * optc-gen.awk: Likewise.
12668         
12669 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
12671         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
12673 2008-02-07  Richard Henderson  <rth@redhat.com>
12675         PR rtl-opt/33410
12676         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
12677         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
12678         funny mode.
12680 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
12682         PR tree-optimization/35085
12683         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
12684         for operand entry oe2 in addition to operand entry oe3 in order to
12685         expose more opportunities for vectorizer sum reduction.
12687 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12689         PR other/35107
12690         * Makefile.in (LIBS): Remove $(GMPLIBS).
12691         (cc1-dummy, cc1): Add $(GMPLIBS).
12693 2008-02-06  Jan Hubicka  <jh@suse.cz>
12695         PR target/23322
12696         * i386.md (moddf_integer): Do not produce partial memory stalls for
12697         targets where it hurts.
12699 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
12701         PR target/35083
12702         * optabs.c (expand_float): Do not check for decimal modes when
12703         expanding unsigned integer through signed conversion.
12705 2008-02-06  Nick Clifton  <nickc@redhat.com>
12707         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
12708         inside the clobber with a match_operand and duplicated operand
12709         number in the constraint.
12710         (ineqbranchsi): Delete redundant comment.
12712 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
12714         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
12715         builtin_define ("__USE_INIT_FINI__").
12716         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
12717         -msx multilibs.
12718         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
12720 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12722         PR documentation/30330
12723         * doc/invoke.texi (C++ Dialect Options)
12724         (Objective-C and Objective-C++ Dialect Options, Warning Options):
12725         For each warning option -Wfoo that allows -Wno-foo, ensure both
12726         -Wfoo and -Wno-foo are listed in the option index.  Fix index
12727         entry of -Wswitch-default, index -Wnormalized= including the
12728         `=', and -Wlarger-than-@var{len} including @var{len}.
12730 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
12732         * config/i386/i386.md (floatunssisf2): Use
12733         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
12734         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
12735         Macroize expander using MODEF mode iterator.
12737 2008-02-05  Diego Novillo  <dnovillo@google.com>
12739         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
12741         PR 33738
12742         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
12744 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12746         PR other/35070
12747         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
12749 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
12751         PR target/35084
12752         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
12753         to indicate if a message should be generated.
12754         (init_cumulative_args): Updated.
12755         (function_value_32): Likewise.
12757 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
12759         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
12761 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
12763         PR target/35083
12764         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
12765         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
12767 2008-02-04  Diego Novillo  <dnovillo@google.com>
12769         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
12771         PR 33738
12772         * tree-vrp.c (vrp_evaluate_conditional): With
12773         -Wtype-limits, emit a warning when comparing against a
12774         constant outside the natural range of OP0's type.
12776 2008-02-04  Richard Guenther  <rguenther@suse.de>
12778         PR middle-end/33631
12779         * expr.c (count_type_elements): Give for unions instead of
12780         guessing.
12782 2008-02-04  Richard Guenther  <rguenther@suse.de>
12784         PR middle-end/35043
12785         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
12786         to TYPE_DOMAINs base type instead of using bitsizetype here.
12788 2008-02-03  Jason Merrill  <jason@redhat.com>
12790         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
12792 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12794         PR other/29972
12795         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
12796         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
12797         (RS/6000 and PowerPC Options): Fix typos and markup.
12798         * doc/passes.texi (Tree-SSA passes): Likewise.
12800 2008-02-02  Michael Matz  <matz@suse.de>
12802         PR target/35045
12803         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
12804         from record_last_reg_set_info.
12805         (record_last_reg_set_info): Take an RTX argument, iterate over all
12806         constituent hardregs.
12807         (record_last_set_info, record_opr_changes): Change calls to
12808         new signature or to record_last_reg_set_info_regno.
12810 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12812         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
12814 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
12816         PR rtl-optimization/34773
12817         * reg-notes.def (EQUAL): Mention significance of combination of
12818         REG_EQUAL and REG_RETVAL.
12819         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
12820         insn that has a REG_RETVAL.
12822 2008-02-01  Roger Sayle  <roger@eyesopen.com>
12824         PR bootstrap/33781
12825         * configure.ac (--enable-fixed-point): Disable unless explicitly
12826         requested on IRIX.
12827         * configure: Regenerate.
12829 2008-02-01  Richard Guenther  <rguenther@suse.de>
12831         PR other/35042
12832         * invoke.texi (-finline-limit): Remove no longer true parts
12833         of the documentation.  Note that there is no default value.
12835 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
12836             Mark Mitchell  <mark@codesourcery.com>
12837             Ben Elliston  <bje@au.ibm.com>
12839         PR c/29326
12840         * doc/extend.texi (Other Builtins): Document.
12842 2008-01-31  Tom Browder <tom.browder@gmail.com>
12844         * doc/c-tree.texi (Types): Fix grammar.
12845         (Expression trees): Ditto.
12846         * doc/passes.texi (Tree-SSA passes): Ditto.
12847         
12848         * doc/configterms.texi (Configure Terms): Fix typo.
12849         * doc/cpp.texi (Common Predefined Macros): Ditto.
12850         * doc/md.texi (Machine Constraints): Ditto.
12851         
12852         * doc/makefile.texi (Makefile): Add comma.
12854 2008-01-31  Tom Browder  <tom.browder@gmail.com>
12855             Gerald Pfeifer  <gerald@pfeifer.com>
12856         
12857         * doc/sourcebuild.texi (Front End): Remove references to CVS
12858         and CVSROOT/modules.
12859         (Texinfo Manuals): Replace reference to CVS by one to SVN.
12860         (Back End): Remove reference to CVS.
12862 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
12864         PR target/34900
12865         * config/mips/mips.c (gen_load_const_gp): New function, taking a
12866         comment from...
12867         (mips16_gp_pseudo_reg): ...here.
12868         * config/mips/mips.md (load_const_gp): Replace with...
12869         (load_const_gp_<mode>): ...this :P-based insn.
12871 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12873         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
12874         options. Minor fixes.
12875         (-std): Move reference to standards closer to where language
12876         standards are first mentioned.
12877         
12878 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
12880         PR rtl-optimization/34995
12881         * reload.c (alternative_allows_const_pool_ref): Take an rtx
12882         parameter and return a bool.  If the rtx parameter is nonnull,
12883         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
12884         (find_reloads): Update call accordingly.  Pass the new operand
12885         if it needed no address reloads, otherwise pass null.
12887 2008-01-30  Richard Henderson  <rth@redhat.com>
12889         PR c/34993
12890         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
12891         for unbounded arrays.
12893 2008-01-30  Silvius Rus  <rus@google.com>
12895         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
12897 2008-01-30  Jan Hubicka  <jh@suse.cz>
12899         PR target/34982
12900         * i386.c (init_cumulative_args): Use real function declaration when
12901         calling locally.
12903 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
12905         PR rtl-optimization/34998
12906         * global.c (build_insn_chain): Treat non-subreg_lowpart
12907         SUBREGs of pseudos as clobbering all the words covered by the
12908         SUBREG, not just all the bytes.
12909         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
12910         original df_ref rather than an extract parameter.
12911         (global_conflicts): Update call accordingly.
12913 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
12915         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
12916         the overflow check to make it easier to read.
12917         (__fixtfdi): Change the type of the ll member in union
12918         long_double to UDItype_x.
12920 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
12922         PR middle-end/34969
12923         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
12924         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
12925         * tree-inline.c (fold_marked_statements): Call
12926         cgraph_update_edges_for_call_stmt if folding a call statement.
12927         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
12928         debug_generic_stmt calls, reset it back afterwards.
12930         PR c/35017
12931         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
12932         static decls.
12933         * c-typeck.c (build_external_ref): Don't pedwarn about
12934         static vars in current function's scope.
12936 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
12938         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
12940 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
12942         PR c/35002
12943         * ipa-struct-reorg.c: Fix spelling.
12944         * params.def: Ditto.
12946 2008-01-29  Richard Guenther  <rguenther@suse.de>
12948         PR middle-end/35006
12949         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
12950         field.
12951         * tree-inline.c (remap_type): Increment remapping_type_depth
12952         around remapping types.
12953         (copy_body_r): Only add referenced variables if they are referenced
12954         from code, not types.
12956 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
12958         PR c++/34055
12959         PR c++/34103
12960         PR c++/34219
12961         PR c++/34606
12962         PR c++/34753
12963         PR c++/34754
12964         PR c++/34755
12965         PR c++/34919
12966         PR c++/34961
12967         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
12968         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
12970 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
12972         PR target/34412
12973         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
12974         pointer for tiny stack.
12976 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
12978         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
12980 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
12982         * config/vx-common.h: Fix typo in comment.
12984 2008-01-28  Ian Lance Taylor  <iant@google.com>
12986         PR c++/34862
12987         PR c++/33407
12988         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12989         coalesce pointers if they have different DECL_NO_TBAA_P values.
12990         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
12991         between variables with different DECL_NO_TBAA_P values.
12993 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
12995         PR 31535
12996         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
12997         are not legitimate small data references on SPE targets.
12999 2008-01-28  David Daney  <ddaney@avtrex.com>
13001         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13003 2008-01-28  David Daney  <ddaney@avtrex.com>
13005         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
13007 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
13009         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13010         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13011         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13012         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13013         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13014         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13015         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13016         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13018 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13020         * basic-block.h (condjump_equiv_p): Fix comment.
13022 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13024         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
13025         print_generic_stmt_indented): Fix comment.
13027 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13029         * configure.ac (__stack_chk_fail): Add detecion for availability
13030         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
13031         * configure: Regenerate.
13033 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
13035         PR middle-end/34688
13036         * final.c (output_addr_const): Handle TRUNCATE.
13038 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
13040         PR target/34711
13041         * tree-ssa-loop-ivopts.c (comp_cost): New type.
13042         (zero_cost, infinite_cost): New constants.
13043         (struct cost_pair): Change type of cost to comp_cost.
13044         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
13045         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
13046         New functions.
13047         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
13048         split_address_cost, ptr_difference_cost, difference_cost,
13049         get_computation_cost_at, get_computation_cost,
13050         determine_use_iv_cost_generic, determine_use_iv_cost_address,
13051         determine_use_iv_cost_condition, determine_use_iv_costs,
13052         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
13053         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
13054         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
13055         Change type of cost to comp_cost.
13056         (determine_iv_cost): Increase cost of non-original ivs, instead
13057         of decreasing the cost of original ones.
13058         (get_address_cost): Indicate the complexity of the addressing mode 
13059         in comp_cost.
13060         (try_add_cand_for): Prefer using ivs not specific to some object.
13061         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
13063 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
13064             Janis Johnson  <janis187@us.ibm.com>
13066         PR target/34814
13067         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
13068         (TARGET_INSTANTIATE_DECLS): Likewise.
13069         * target.h (expand_to_rtl_hook): New target hook.
13070         (instantiate_decls): Likewise.
13071         * function.c (instantiate_decl): Make non-static.  Rename to...
13072         (instantiate_decl_rtl): ... this.
13073         (instantiate_expr): Use instantiate_decl_rtl.
13074         (instantiate_decls_1): Likewise.
13075         (instantiate_decls): Likewise.
13076         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
13077         * function.h (instantiate_decl_rtl): Add prototype.
13078         * cfgexpand.c (target.h): New include.
13079         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
13080         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
13081         (TARGET_INSTANTIATE_DECLS): Likewise.
13082         (TARGET_INITIALIZER): New target hooks added.
13083         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
13084         New prototype.
13085         * config/rs6000/rs6000.c (tree-flow.h): New include.
13086         (machine_function): Add sdmode_stack_slot field.
13087         (rs6000_alloc_sdmode_stack_slot): New function.
13088         (rs6000_instantiate_decls): Likewise.
13089         (rs6000_secondary_memory_needed_rtx): Likewise.
13090         (rs6000_check_sdmode): Likewise.
13091         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
13092         (TARGET_INSTANTIATE_DECLS): Likewise.
13093         (rs6000_hard_regno_mode_ok): Allow SDmode.
13094         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
13095         (rs6000_emit_move): Handle SDmode.
13096         (function_arg_advance): Likewise.
13097         (function_arg): Likewise.
13098         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
13099         SDmode var args for 32-bit compiles.
13100         (rs6000_secondary_reload_class): Handle SDmode.
13101         (rs6000_output_function_epilogue): Likewise.
13102         (rs6000_function_value): Simplify if statement.
13103         (rs6000_libcall_value): Likewise.
13104         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
13105         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
13106         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
13107         (movsd_hardfloat): New define_insn.
13108         (movsd_softfloat): Likewise.
13109         (movsd_store): Likewise.
13110         (movsd_load): Likewise.
13111         (extendsddd2): Likewise.
13112         (extendsdtd2): Likewise.
13113         (truncddsd2): Likewise.
13114         (movdd_hardfloat64): Fixup comment.
13115         (UNSPEC_MOVSD_LOAD): New constant.
13116         (UNSPEC_MOVSD_STORE): Likewise.
13118 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
13120         PR c++/34965
13121         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
13122         TRUTH_XOR_EXPR.
13123         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
13124         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
13125         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
13126         and TRUTH_XOR_EXPR.
13128 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
13130         PR target/34794
13131         * config.gcc: Separate AIX 5.3 from AIX 6.1.
13132         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13133         __LONGDOUBLE128 too.
13134         * config/rs6000/aix61.h: New file.
13136 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13138         PR rtl-optimization/34959
13139         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
13140         popcount and parity rtxes the same mode as their operand.
13141         Truncate or extend the result to the return value's mode
13142         if necessary.
13144 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13146         PR target/34981
13147         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
13148         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
13149         to GOT_VERSION_REGNUM.
13150         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
13151         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
13152         * config/mips/mips.c (mips_emit_call_insn): New function.
13153         (mips_call_tls_get_addr): Call mips_expand_call directly.
13154         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
13155         emit_call_insn.
13156         (mips16_build_call_stub): Likewise.  Return the call insn or null.
13157         (mips_expand_call): Update the call to mips16_build_call_stub
13158         accordingly and a remove redundant condition.  Assert that MIPS16
13159         stubs do not use lazy binding.  Use mips_emit_call_insn and return
13160         the call insn.
13161         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
13162         TARGET_USE_GOT.
13163         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
13164         (mips_avoid_hazard): Remove hazard_set handling.
13165         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
13166         (UNSPEC_RESTORE_GP): ...this.
13167         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
13168         (FAKE_CALL_REGNO): Rename to...
13169         (GOT_VERSION_REGNUM): ...this.
13170         (type): Add "ghost" value.  Add an associated insn reservation.
13171         (hazard_set): Remove.
13172         (exception_receiver): Rename to...
13173         (restore_gp): ...this and update the unspec identifier accordingly.
13174         (exception_receiver, nonlocal_got_receiver): New expanders.
13175         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
13176         FAKE_CALL_REGNO.  Remove hazard_set attribute.
13177         (set_got_version, update_got_version): New patterns.
13179 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
13181         PR target/34970
13182         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
13184 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
13186         PR other/31955
13187         * doc/install.texi2html: Generate gcc-vers.texi.
13189 2008-01-25  DJ Delorie  <dj@redhat.com>
13191         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13193 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
13195         * config/c4x: Remove directory.
13196         * config.gcc (crx-*, mt-*): Mark obsolete.
13197         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
13198         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
13199         sh-*-rtemscoff*): Remove cases.
13200         * defaults.h (C4X_FLOAT_FORMAT): Remove.
13201         * real.c (encode_c4x_single, decode_c4x_single,
13202         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
13203         c4x_extended_format): Remove.
13204         * real.h (c4x_single_format, c4x_extended_format): Remove.
13205         * doc/extend.texi (interrupt, naked): Remove mention of attributes
13206         on C4x.
13207         (Pragmas): Remove comment about c4x pragmas.
13208         * doc/install.texi (c4x): Remove target-specific instructions.
13209         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
13210         * doc/md.texi (Machine Constraints): Remove C4x documentation.
13211         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
13212         refer to C4x source files as examples.
13213         (C4X_FLOAT_FORMAT): Remove documentation.
13215 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
13217         * config/bfin/bfin.c (override_options): Reorder tests so that
13218         flag_pic gets enabled for -msep-data.
13220 2008-01-25  Richard Guenther  <rguenther@suse.de>
13222         PR middle-end/32244
13223         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
13224         to its bitfield precision if required.
13226 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
13228         PR middle-end/33880
13229         * tree-nested.c (walk_omp_for): New function.
13230         (convert_nonlocal_reference, convert_local_reference): Call
13231         walk_omp_for on OMP_FOR.
13232         (convert_call_expr): Call walk_body on OMP_FOR's
13233         OMP_FOR_PRE_INIT_BODY.
13235 2008-01-25  Richard Guenther  <rguenther@suse.de>
13237         PR tree-optimization/34966
13238         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
13239         default defs and PHI_NODEs we have to insert after the
13240         defining statement.
13242 2008-01-24  Nick Clifton  <nickc@redhat.com>
13244         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
13245         Provide a default definition.
13246         (LIBGCC2_UNITS_PER_WORD): Likewise.
13248         * config/stormy16/stormy16.c: Include df.h for the prototype
13249         for df_regs_ever_live_p.
13250         (xstormy16_expand_builtin_va_start): Convert the stack offset
13251         into a component_ref and then use POINTER_PLUS_EXPR to add it
13252         to the incoming_virtual_args_rtx.
13253         (xstormy16_gimplify_va_arg_expr): Rename to
13254         xstormy16_gimplify_va_arg_expr.
13255         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
13256         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
13257         xstormy16_gimplify_va_arg_expr.
13258         Fix up some formatting issues.
13260         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
13261         Move to predicates.md.
13262         (xs_hi_general_operand): Likewise.
13263         (xs_hi_nonmemory_operand): Likewise.
13264         * config/stormy16/predicates.md:
13265         (xstormy16_carry_plus_operand): New predicate.
13266         (xs_hi_general_operand): New predicate.
13267         (xs_hi_nonmemory_operand): New predicate.
13268         * config/stormy16/stormy16-protos.h:
13269         (xstormy16_carry_plus_operand): Delete prototype.
13270         (xs_hi_general_operand): Likewise.
13271         (xs_hi_nonmemory_operand): Likewise.
13273         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
13274         modifiers as they are no longer needed and they can trigger
13275         reload spill failures.
13277         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
13278         with a match_operand in order to help reload.
13280         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
13281         constraint with 'e' for the 8th alternative as this version of
13282         the mov.w instruction only accepts the lower 8 registers.
13284 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
13286         PR target/34856
13287         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
13288         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
13289         vector elements.
13291 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
13293         PR middle-end/33333
13294         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
13296 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
13298         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
13299         New functions.
13300         (remove_structure): Update allocations list before removing structure.
13301         
13302 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
13304         * ipa-struct-reorg.c (is_safe_cond_expr, 
13305         create_new_stmts_for_cond_expr): Use integer_zerop function,
13306         that recognize not only zero-pointer, but zero-integer too.
13308 2008-01-25  Ben Elliston  <bje@au.ibm.com>
13310         PR other/22232
13311         * fixproto: Escape "." in sed expression that strips leading "./".
13313 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13315         PR driver/34904
13316         * gcc.c (SWITCH_OK): Removed.
13317         (SWITCH_LIVE): Changed to bit.
13318         (SWITCH_FALSE): Likewise.
13319         (SWITCH_IGNORE): Likewise.
13320         (switchstr): Change live_cond to unsigned int.
13321         (process_command): Replace SWITCH_OK with 0.
13322         (do_self_spec): Likewise.
13323         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
13324         (give_switch): Likewise.
13325         (used_arg): Likewise.
13326         (do_spec_1): Set the SWITCH_IGNORE bit.
13327         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
13328         bits.  Set the SWITCH_LIVE bit.
13330 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13332         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
13334 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
13336         PR tree-optimization/34472
13337         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
13338         parameter to a "bool *" and set *DATA to false if there is
13339         an unsafe access.  Do not delete the structure here.
13340         (check_cond_exprs): Delete it here instead.
13341         (check_cond_exprs, exclude_cold_structs): Do not increase
13342         I when removing a structure.
13344 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
13346         PR target/34856
13347         * config/i386/i386.c (ix86_expand_vector_init): Consider only
13348         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
13350 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
13352         PR middle-end/34934
13353         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
13354         a fixed vector for stack.
13356 2008-01-24  Ben Elliston  <bje@au.ibm.com>
13358         PR c++/25701
13359         * doc/gcc.texi (Software development): Add a direntry for g++.
13360         
13361 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
13363         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
13364         stale and straggling -fforce-addr comments above.
13366         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
13367         define.
13368         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
13369         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
13371 2008-01-23  Michael Matz  <matz@suse.de>
13373         PR debug/34895
13374         * dwarf2out.c (force_type_die): Use modified_type_die instead of
13375         gen_type_die.
13377 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
13379         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
13380         malloc result type.
13382 2008-01-23 Anatoly Sokolov <aesok@post.ru>
13384         * config/avr/avr.c (avr_current_arch): New variable.
13385         (avr_arch_types): Add 'avr31' and 'avr51' entries.
13386         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
13387         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
13388         (avr_override_options): Init 'avr_current_arch'. 
13389         (base_arch_s): Move from here...
13390         * config/avr/avr.h (base_arch_s): ... here. Add new members 
13391         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
13392         'mega' to 'have_jmp_call'.
13393         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
13394         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
13395         macros.
13396         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
13397         architectures.
13398         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
13399         MULTILIB_MATCHES): (Ditto.).
13401 2008-01-23  Richard Guenther  <rguenther@suse.de>
13403         PR middle-end/31529
13404         * cgraphunit.c (cgraph_reset_node): Always mark the node
13405         not reachable if it is not queued already.
13407 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
13409         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
13410         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
13411         (cputype_selected): New static variable.
13412         (bfin_handle_option): Set it if -mcpu is used.
13413         (override_option): Select default set of workarounds if no cpu type
13414         selected on the command line.
13415         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
13417         From  Michael Frysinger  <michael.frysinger@analog.com>
13418         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
13419         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
13421         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
13422         for bf547, bf523, bf524, and bf526.
13423         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
13424         bf526.
13425         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13426         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
13427         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
13428         __ADSPBF547__ and __ADSPBF54x__ for bf547.
13429         * doc/invoke.texi (Blackfin Options): Document that
13430         -mcpu now accept bf547, bf523, bf524, and bf526.
13432 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13434         PR rtl-optimization/34628
13435         * combine.c (try_combine): Stop and undo after the first combination
13436         if an autoincrement side-effect on the first insn has effectively
13437         been lost.
13439 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
13441         PR target/34529
13442         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
13443         Offset addresses are not valid for Altivec or paired float modes.
13445 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
13447         PR c++/34607
13448         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
13449         if DECL_INITIAL (decl) is error_mark_node.
13451         PR c++/34914
13452         * c-common.c (handle_vector_size_attribute): Only allow
13453         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
13454         the same way as pointer, array etc. types.
13455         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
13457         PR c++/34917
13458         * tree.c (build_type_attribute_qual_variant): Call
13459         build_qualified_type if attributes are equal, but quals are not.
13461 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13463         PR 32102
13464         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
13465         * flags.h (warn_strict_aliasing): Remove.
13466         (warn_strict_overflow): Remove.
13467         * opts.c (warn_strict_aliasing): Remove.
13468         (warn_strict_overflow): Remove.
13469         * c-opts.c (c_common_handle_option): -Wall only sets
13470         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
13471         (c_common_post_options): Give default values to -Wstrict-aliasing
13472         and -Wstrict-overflow if they are uninitialized.
13473         * common.opt (Wstrict-aliasing): Specify Var and Init.
13474         (Wstrict-overflow): Likewise.
13476 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
13478         PR rtl-optimization/26854
13479         PR rtl-optimization/34400
13480         PR rtl-optimization/34884
13481         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
13482         DF_RD->gen.
13483         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
13484         (df_rd_bb_info.expanded_lr_out): Deleted
13485         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
13486         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
13487         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
13488         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
13489         Removed code to allocate, initialize or free expanded_lr_out.
13490         (df_rd_bb_local_compute_process_def): Restructured to make more
13491         understandable.
13492         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
13493         sets if the sets are being trimmed.
13495 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
13497         PR bootstrap/32287
13498         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
13499         (as_vers): Likewise.
13500         * configure: Regenerated.
13502 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13504         PR middle-end/33092
13505         * tree-pass.h (pass_build_alias): New pass.
13506         * tree-ssa-alias.c (gate_build_alias): New.
13507         (pass_build_alias): New.
13508         * passes.c (init_optimization_passes): Add pass_build_alias after
13509         pass_create_structure_vars.
13511 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
13513         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
13514         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
13515         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
13516         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
13517         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
13518         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
13519         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
13520         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
13521         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
13522         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
13523         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
13524         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
13525         * config/s390/s390.md (FP_ALL): New mode iterator.
13526         (_d): New mode attribute.
13527         ("*signbit<mode>2>"): Changed mode of first operand.
13528         ("isinf<mode>2"): Changed mode of first operand.
13529         ("*TDC_insn"): Adaptation for DFP modes.
13531 2008-01-22  Ben Elliston  <bje@au.ibm.com>
13533         * tree.c (check_qualified_type): Improve function description.
13535 2008-01-21  Jason Merrill  <jason@redhat.com>
13537         PR c++/34196
13538         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
13539         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
13540         if it is set.
13542 2008-01-21  DJ Delorie  <dj@redhat.com>
13544         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
13545         return zero.
13547 2008-01-21  Richard Guenther  <rguenther@suse.de>
13549         PR middle-end/34856
13550         * tree-cfg.c (verify_expr): Allow all invariant expressions
13551         instead of just constant class ones as reference argument.
13552         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
13553         like any other constant.
13554         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13556 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
13558         * regmove.c (fixup_match_1): Update call crossed frequencies.
13560 2008-01-21  Richard Guenther  <rguenther@suse.de>
13562         PR c/34885
13563         * tree-inline.c (setup_one_parameter): Deal with mismatched
13564         types using a VIEW_CONVERT_EXPR.
13566 2008-01-21  Alon Dayan  <alond@il.ibm.com>
13567             Olga Golovanevsky  <olga@il.ibm.com>
13568         
13569         PR tree-optimization/34701
13570         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
13571         when the structure size is not a power of 2.
13573 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13575         * doc/install.texi: Add doc for --enable-checking=df.
13576         
13577 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13579         PR rtl-optimization/34808
13580         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
13582 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
13584         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
13585         input.
13587 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
13589         PR rtl-optimization/26854
13590         PR rtl-optimization/34400
13591         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
13592         DF_RD->gen.
13593         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
13594         (df_rd_bb_info.expanded_lr_out): New.
13595         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
13596         * loop_iv.c (iv_analysis_loop_init): Ditto.
13597         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
13598         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
13599         Added code to allocate, initialize or free expanded_lr_out.
13600         (df_rd_bb_local_compute_process_def): Restructured to make
13601         more understandable.
13602         (df_rd_confluence_n): Add code to do nothing with fake edges and
13603         code to no apply invalidate_by_call sets if the sets are being trimmed.
13604         (df_lr_local_finalize): Renamed to df_lr_finalize.
13605         (df_live_local_finalize): Renamed to df_live_finalize.
13607 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
13609         PR target/34831
13610         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
13611         deciding whether to use reciprocal instructions.
13613 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
13615         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
13616         dwarf2out_note_section_used if cold_text_section is NULL.
13618 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
13620         PR gcov-profile/34610
13621         * tree-cfg.c (make_edges): Mark both outgoing edges from
13622         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
13623         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
13624         from OMP_FOR and OMP_CONTINUE outgoing edges.
13626         * tree-profile.c (tree_profiling): Return early if
13627         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
13628         at the end.
13629         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
13630         from cfun to child_cfun.
13631         * function.h (struct function): Add after_tree_profile bit.
13633 2008-01-19 Anatoly Sokolov <aesok@post.ru>
13635         * config/avr/avr.S (_exit): Disable interrupt.
13637 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
13638             Steven Bosscher  <stevenb.gcc@gmail.com>
13640         PR rtl-optimization/26854
13641         PR rtl-optimization/34400
13642         * df-problems.c (df_live_scratch): New scratch bitmap.
13643         (df_live_alloc): Allocate df_live_scratch when doing df_live.
13644         (df_live_reset): Clear the proper bitmaps.
13645         (df_live_bb_local_compute): Only process the artificial defs once
13646         since the order is not important.
13647         (df_live_init): Init the df_live sets only with the variables
13648         found live by df_lr.
13649         (df_live_transfer_function): Use the df_lr sets to prune the
13650         df_live sets as they are being computed.  
13651         (df_live_free): Free df_live_scratch.
13653 2008-01-18  Ian Lance Taylor  <iant@google.com>
13655         * common.opt: Add fmerge-debug-strings.
13656         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
13657         flag_merge_debug_strings rather than flag_merge_constants.
13658         * doc/invoke.texi (Option Summary): Mention
13659         -fmerge-debug-strings.
13660         (Debugging Options): Document -fmerge-debug-strings.
13662 2008-01-18  Ian Lance Taylor  <iant@google.com>
13664         PR c++/33407
13665         * tree.h (DECL_IS_OPERATOR_NEW): Define.
13666         (struct tree_function_decl): Add new field operator_new_flag.
13667         * tree-inline.c (expand_call_inline): When inlining a call to
13668         operator new, force the return value to go into a variable, and
13669         set DECL_NO_TBAA_P on that variable.
13670         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
13672 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
13674         PR debug/34484
13675         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
13676         DWARF2_DEBUGGING_INFO.
13677         (dwarf2out_note_section_used): Ditto.  Add prototype.
13678         (have_multiple_function_sections, text_section_used,
13679         cold_text_section_used, *cold_text_sections): Move declarations
13680         before their uses.
13682 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
13684         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
13685         field and add signal_ra.
13686         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
13687         assignments to frame state pc.  Move end of stack check after
13688         MD_FALLBACK_FRAME_STATE_FOR.
13689         (uw_update_context_1): Use frame state signal_regs if set, instead
13690         of checking signal_frame flag.
13691         (uw_update_context): Use frame state signal_ra if set.
13692         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
13693         * config/xtensa/linux-unwind.h: New file.
13695 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
13697         * modulo-sched.c (get_sched_window): Fix comment typo.
13699 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
13701         PR tree-optimization/34648
13702         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
13704 2008-01-17  Anatoly Sokolov <aesok@post.ru>
13706         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
13707         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
13709 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
13711         PR rtl-optimization/34400
13712         * df-core.c (df_worklist_dataflow_overeager,
13713         df_worklist_dataflow_doublequeue): New functions.
13714         (df_worklist_dataflow): Two different worklist solvers.
13715         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
13716         New param.
13718 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13720         PR testsuite/34821
13721         * doc/invoke.texi: Document the dependence on pthread for fopenmp
13722         and ftree-parallelize-loops.
13724 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
13726         PR rtl-optimization/34826
13727         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
13729 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13731         * global.c (find_reg): Mark the eh regs as used if necessary.
13732         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
13733         * ra.h (struct allocno): no_eh_reg field added.  Changed
13734         no_stack_reg type to bitfield.
13736 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13738         * tree.c (substitute_in_expr): Add missing 'break'.
13740 2008-01-17  Richard Guenther  <rguenther@suse.de>
13742         PR tree-optimization/34825
13743         * tree-ssa-math-opts.c (is_division_by): Do not recognize
13744         x / x as division to handle.
13746 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13748         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
13749         "-pthread" is specified.
13750         * pa-hpux11.h (LIB_SPEC): Likewise.
13752 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
13753             Peter Bergner  <bergner@vnet.ibm.com>
13755         PR rtl-optimization/33796
13756         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
13758 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13760         PR libgfortran/34699
13761         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
13762         static links.
13763         * pa-hpux10.h (LINK_SPEC): Likewise.
13764         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
13766 2008-01-16  Richard Guenther  <rguenther@suse.de>
13768         PR middle-end/32628
13769         * fold-const.c (fold_convert_const_int_from_int): Do not
13770         set overflow if that occured only because of a sign extension
13771         change when converting from/to a sizetype with the same
13772         precision and signedness.
13774 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
13776         PR debug/34249
13777         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
13778         location address to the correct place.  Update copyright year.
13780 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13782         * lambda-code.c (lambda_transform_legal_p): Handle the case of
13783         no dependences in the dependence_relations vector.
13785 2008-01-16  Jan Hubicka  <jh@suse.cz>
13787         PR rtl-optimization/31396
13788         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
13789         * cfg.c (dump_reg_info): Print it.
13790         * regs.h (struct reg_info_t): add freq_calls_crossed.
13791         (REG_FREQ_CALLS_CROSSED): New macro.
13792         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
13793         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
13794         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
13795         regmove_optimize): Update call crossed frequencies.
13796         * local-alloc.c (struct qty): Add freq_calls_crossed.
13797         (alloc_qty): Copute freq_calls_crossed.
13798         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
13799         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
13800         * ra.h (struct allocno): Add freq_calls_crossed.
13802 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13804         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
13805         libgomp when compiling with ftree-parallelize-loops.
13806         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
13808 2008-01-16  Richard Guenther  <rguenther@suse.de>
13810         PR tree-optimization/34769
13811         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
13812         * tree.c (int_cst_value): Instead make this function more
13813         permissive in what it accepts as valid input.  Document this
13814         function always sign-extends the value.
13816 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
13817             Richard Guenther  <rguenther@suse.de>
13819         PR c/34668
13820         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
13821         (gimple_fold_indirect_ref_rhs): ... this.
13822         (gimple_fold_indirect_ref): New function with foldings
13823         that preserve lvalueness.
13824         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
13825         * tree-flow.h (gimple_fold_indirect_ref): Declare.
13826         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
13827         to fold an INDIRECT_REF, fall back to the old use of
13828         fold_indirect_ref_1.
13830 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13832         * tree-data-ref.c (subscript_dependence_tester_1): Call 
13833         free_conflict_function.
13834         (compute_self_dependence): Same.
13836 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
13838         PR debug/34249
13839         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
13840         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
13841         function global.
13842         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
13843         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
13844         for DWARF2_UNWIND_INFO targets.
13846 2008-01-16  Richard Guenther  <rguenther@suse.de>
13848         PR c/34768
13849         * c-typeck.c (common_pointer_type): Do not merge inconsistent
13850         type qualifiers for function types.
13852 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
13854         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
13855         loop_iterator li from previous commit.
13857 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
13859         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
13861 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
13863         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
13864         (parallelize_loops): Don't parallelize irreducible components.
13866 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13868         PR c++/24924
13869         * c-opts (c_common_post_options): Do not enable CPP
13870         flag_pedantic_errors by default.
13871         
13872 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
13874         PR rtl-optimization/31944
13875         * cse.c (remove_pseudo_from_table): New function.
13876         (merge_equiv_classes): Use above function to remove pseudo-registers.
13877         (invalidate): Likewise.
13879 2008-01-13  Richard Guenther  <rguenther@suse.de>
13881         PR middle-end/34601
13882         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
13883         instead of TYPE_MODE to deal with calls from expand_one_error_var.
13885 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
13887         * gcse.c (cprop_jump): Call validate_unshare_change instead of
13888         validate_change to unshare the source of the PC set.
13890 2008-01-12  Jan Hubicka  <jh@suse.cz>
13892         PR middle-end/32135
13893         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
13894         references above array bounds.  This might trigger bounds checks for
13895         pointers to arrays.
13897 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
13899         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
13900         new_replaceable_dependencies.
13902 2008-01-12  Doug Kwan  <dougkwan@google.com>
13904         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
13905         instead of OPT_Wreturn_type in warning due to ignored return type
13906         qualifiers.
13907         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
13908         options included in -Wextra.
13909         * c.opt: New option -Wignored_qualifiers.
13910         * doc/invoke.texi (Warning Options, -Wextra): Add new option
13911         -Wignore_qualifiers.
13912         (-Wignored-qualifiers): Document.
13913         (-Wreturn-type): Remove description of functionality now handled
13914         by -Wignored-qualifiers.
13916 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
13918         PR ada/33788
13919         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
13920         NOP_EXPR if it is between integral types with the same precision.
13922 2008-01-12  Jan Hubicka  <jh@suse.cz>
13924         PR other/28023
13925         * invoke.texi (max-inline-recursive-depth): Fix default value.
13927 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
13929         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
13930         correct type.
13932 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
13933         
13934         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
13935         
13936 2008-01-11  James E. Wilson  <wilson@specifix.com>
13938         PR target/26015
13939         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
13941 2008-01-11  Anatoly Sokolov <aesok@post.ru>
13943         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
13944         save/restore frame pointer register and don't use 'call-prologues' 
13945         optimization in function with "OS_task" attribute.
13947 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13949         PR middle-end/31309
13950         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
13951         when copying to memory.
13953 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
13955         PR rtl-optimization/30905
13956         * cfgcleanup.c: Include dce.h
13957         (crossjumps_occured): New global variable.
13958         (try_crossjump_bb): Exit loop after finding a fallthru edge.
13959         If something changed, set crossjumps_occured to true.
13960         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
13961         Don't add/remove fake edges to exit here...
13962         (cleanup_cfg): ...but do it here, when crossjumping.
13963         Run a fast DCE when successful crossjumps occured in the latest
13964         iteration of try_optimize_cfg.
13966 2008-01-11  Richard Guenther  <rguenther@suse.de>
13968         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
13969         (struct vn_unary_op_s): Likewise.
13970         (vn_reference_insert): Free old reference on hash collision.
13972 2008-01-10  Raksit Ashok  <raksit@google.com>
13974         PR rtl-optimization/27971
13975         * combine.c (find_split_point): Split PLUS expressions which are
13976         inside a MEM rtx, and whose first operand is complex.
13978 2008-01-10  DJ Delorie  <dj@redhat.com>
13980         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
13981         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
13982         (m32c_hard_regno_ok): Call the underlying function.
13984 2008-01-10  Richard Guenther  <rguenther@suse.de>
13986         PR middle-end/34683
13987         * tree-cfg.c (tree_merge_blocks): Do not go through the
13988         full-blown folding and stmt updating path if we just deal
13989         with virtual operands.
13990         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
13991         test for abnormal SSA_NAMEs.
13993 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
13995         PR middle-end/34641
13996         * reload.c (push_reload): Add assertions.  All constants from
13997         reg_equiv_constant should have been used for replacing the respective
13998         pseudo earlier.
13999         (find_reloads_address): Invoke find_reloads_address_part for
14000         constant taken from the reg_equiv_constant array.
14002 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
14004         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14005         field (valnum) the first in the struct.  Replace bools with
14006         unit bit fields.
14008 2008-01-10  Richard Guenther  <rguenther@suse.de>
14010         PR tree-optimization/34651
14011         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
14012         types and ordering for masking and converting.
14014 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
14016         PR tree-optimization/34017
14017         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14018         also for PHI_NODE expressions.
14020 2008-01-09  Jan Hubicka  <jh@suse.cz>
14022         PR tree-optimization/34708
14023         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
14024         based on number of case labels.
14025         (init_inline_once): Remove switch_cost.
14026         * tree-inline.h (eni_weights_d): Remove switch_cost.
14028 2008-01-09  Richard Guenther  <rguenther@suse.de>
14029         Andrew Pinski  <andrew_pinski@playstation.sony.com>
14031         PR middle-end/30132
14032         * gimplify.c (gimplify_cond_expr): Do not create an addressable
14033         temporary if an rvalue is ok or an lvalue is not required.
14035 2008-01-09  Richard Guenther  <rguenther@suse.de>
14037         PR middle-end/34458
14038         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
14039         adjust return type.
14041 2008-01-09  Richard Guenther  <rguenther@suse.de>
14043         PR middle-end/34679
14044         * tree.c (host_integerp): Check for sizetype only if the
14045         type is an integer type.
14047 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
14049         PR debug/26364
14050         * opts.c (decode_options): Disable inlining of functions called
14051         once if not in unit-at-a-time mode.
14053 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
14055         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
14057 2008-01-08  Richard Guenther  <rguenther@suse.de>
14059         PR middle-end/31863
14060         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
14061         out early if the result will be unused.
14063 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14065         PR target/34709
14066         Revert:
14068         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14069         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14070         for TARGET_RECIP.       
14071         
14072 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
14073         
14074         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
14075         for vectorization tuned.
14076         
14077 2008-01-08  Richard Guenther  <rguenther@suse.de>
14079         PR tree-optimization/34683
14080         * tree-ssa-operands.c (operand_build_cmp): Export.
14081         * tree-ssa-operands.h (operand_build_cmp): Declare.
14082         * tree-vn.c (vuses_compare): Remove.
14083         (sort_vuses): Use operand_build_cmp.
14084         (sort_vuses_heap): Likewise.
14085         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
14086         to re-use old VEC if available.  Do not sort already sorted VUSEs.
14087         (vdefs_to_vec): Do not sort already sorted VDEFs.
14089 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14091         PR middle-end/34694
14092         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
14094 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14096         PR target/34702
14097         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
14098         limitations of reciprocal sequences on x86 targets.
14100 2008-01-08  Richard Guenther  <rguenther@suse.de>
14102         PR tree-optimization/34683
14103         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
14105 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
14107         PR target/34622
14108         * config/darwin.c (darwin_mergeable_string_section): Don't use
14109         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
14111 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
14113         PR target/34682
14114         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
14115         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
14116         predicates of op0 and op1 to register_operand.
14117         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
14118         expander using X87MODEF mode iterator.  Change predicates of
14119         op0 and op1 to register_operand.
14120         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
14121         corresponding patterns and macroize using MODEF macro.  Change
14122         predicates of op0 and op1 to register_operand and remove
14123         "m" constraint. Disparage "r" alternative with "!".
14124         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
14125         macroize using X87MODEF macro.  Change predicates of op0 and op1
14126         to register_operand and remove "m" constraint.  Disparage "r"
14127         alternative with "!".
14128         (absneg splitter with memory operands): Remove.
14129         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
14130         patterns and macroize using X87MODEF mode iterator.
14131         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
14132         Change predicate of op1 to register_operand.
14133         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
14134         for memory operands.
14136 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
14138         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
14140 2008-01-07  Richard Guenther  <rguenther@suse.de>
14142         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
14143         fields.
14145 2008-01-07  Richard Guenther  <rguenther@suse.de>
14147         PR tree-optimization/34683
14148         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
14149         VOPs of the needed size to save memory.  Use VEC_quick_push
14150         to save compile-time.
14151         (vdefs_to_vec): Likewise.
14153 2008-01-07  Sa Liu  <saliu@de.ibm.com>
14155         * config/spu/spu.md (divdf3): Genetate inline code for double
14156         division.  The implementation doesn't handle INF or NAN, therefore it
14157         only applies when -ffinite-math-only is given.
14159 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
14161         PR libstdc++/34680
14162         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
14163         * doc/cpp.texi ([Common Predefined Macros]): Document.
14165 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
14167         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
14168         order to use commutative addition instead of subtraction.
14170 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14171             Mircea Namolaru  <namolaru@il.ibm.com>
14172             Vladimir Yanovsky  <yanov@il.ibm.com>
14173             Revital Eres  <eres@il.ibm.com>
14175         PR tree-optimization/34263
14176         * tree-outof-ssa.c (process_single_block_loop_latch,
14177         contains_tree_r): New functions.
14178         (analyze_edges_for_bb): Call process_single_block_loop_latch
14179         function to empty single-basic-block latch block if possible.
14181 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14183         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14184         for TARGET_RECIP.
14185         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
14187 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
14189         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
14191 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
14193         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
14195 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
14197         PR tree-optimization/34618
14198         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
14199         flag from T.
14201 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14203         PR target/34673
14204         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
14205         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
14206         Update copyright year.
14208         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
14209         Update copyright year.
14210         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
14211         using NR fixup.
14213 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
14215         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
14216         edge does not point to current bb before changing need_assert.
14218 2008-01-04  Richard Guenther  <rguenther@suse.de>
14220         PR middle-end/34029
14221         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
14222         for verifying purposes if they are is_gimple_min_invariant.
14224 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
14226         PR tree-optimization/34448
14227         PR tree-optimization/34465
14228         * gimplify.c (gimplify_init_constructor): Add new parameter
14229         notify_temp_creation.  Use it.
14230         (gimplify_modify_expr_rhs): Take volatiles into account when
14231         optimizing constructors.
14232         Do not optimize constructors if gimplify_init_constructor will dump to
14233         memory.
14234         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
14235         * gcc.c-torture/compile/pr34448.c: New.
14237 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
14239         PR gcov-profile/34609
14240         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
14241         return_slot if result is TREE_ADDRESSABLE.
14243 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
14245         * config/mips/mips.md (sqrt_condition): Tweak comment.
14246         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
14248 2008-01-03  Tom Tromey  <tromey@redhat.com>
14250         PR c/34457
14251         * c-common.c (c_type_hash): Handle VLAs.
14253 2008-01-03  Jan Hubicka  <jh@suse.cz>
14255         PR tree-optimization/31081
14256         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
14257         0 when inlining and not inlining to first basic block.
14258         (remap_decl): When var is initialized to 0, don't set default_def.
14259         (expand_call_inline): Set entry_bb.
14260         * tree-inline.h (copy_body_data): Add entry_bb.
14262 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
14264         PR c++/34619
14265         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
14266         before returning.
14268         PR tree-optimization/29484
14269         * tree-inline.c (inline_forbidden_p_2): New function.
14270         (inline_forbidden_p): Disallow inlining if some static var
14271         has an address of a local LABEL_DECL in its initializer.
14272         * doc/extend.texi (Labels as Values): Document &&foo behaviour
14273         vs. inlining.
14275 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14277         PR tree-optimization/34635
14278         * tree-data-ref.c (add_other_self_distances): Make sure that the
14279         evolution step is constant.
14281 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
14283         PR middle-end/34608
14284         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
14286 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
14288         * tree-sra.c (scalarize_init): Insert the generate_element_init
14289         statements after the generate_element_zero statements.
14291 2008-01-02  Richard Guenther  <rguenther@suse.de>
14293         PR middle-end/34093
14294         PR middle-end/31976
14295         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
14296         for very large number of operands instead of ICEing.
14298 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
14300         PR target/34013
14301         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
14302         while stack probing.
14304 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
14306         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
14307         in C++0x mode.
14309 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
14311         PR libmudflap/26442
14312         * tree-mudflap.c (mx_register_decls): Guard warning by
14313         !DECL_ARTIFICIAL check.
14315 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
14317         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
14318         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
14319         sse5_perm<mode>): Fix constraints.