OSDN Git Service

69053a9593065d4dd5d4bcfaf7332bde8039ef17
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2008-07-04  Jakub Jelinek  <jakub@redhat.com>
2
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*.
7
8 2008-07-04  Richard Guenther  <rguenther@suse.de>
9
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.
16
17 2008-07-04  Kai Tietz  <kai.tietz@onevision.com>
18
19         * config.gcc (extra_headers): Add cross-stdarg.h for target
20         x86_64-*-* and i?86-*-*.
21         * config/i386/cross-stdarg.h: New.
22         * builtins.c (std_fn_abi_va_list): New.
23         (std_canonical_va_list_type): New.
24         (stabilize_va_list): Replace va_list_type_node use by
25         mtarget.canonical_va_list_type.
26         (gimplify_va_arg_expr): Likewise.
27         (expand_builtin_va_copy): Replace va_list_type_node use by
28         mtarget.fn_abi_va_list.
29         * tree-sra.c (is_va_list_type): New helper.
30         (decl_can_be_decomposed_p): Replace
31         va_list_type_node use by is_va_list_type.
32         * tree-ssa-ccp.c (optimize_stdarg_builtin): Likewise.
33         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
34         * c-common.c (c_common_nodes_and_builtins): Use TARGET_ENUM_VA_LIST.
35         * config/i386/i386-protos.h (ix86_get_valist_type): New.
36         (ix86_enum_va_list): New.
37         * config/i386/i386.c (sysv_va_list_type_node): New.
38         (ms_va_list_type_node): New.
39         (ix86_function_type_abi): Remove sorry.
40         (ix86_build_builtin_va_list_abi): New.
41         (ix86_build_builtin_va_list): Call ix86_build_builtin_va_list_abi
42         for 64-bit targets.
43         (ix86_va_start): Replace va_list_type_node by sysv_va_list_type_node.
44         (ix86_init_builtins_va_builtins_abi): New.
45         (ix86_init_builtins): Use ix86_init_builtins_va_builtins_abi
46         for 64-bit targets.
47         (ix86_handle_abi_attribute): New.
48         (attribute_spec): Add sysv_abi and ms_abi.
49         (ix86_fn_abi_va_list): New.
50         (ix86_canonical_va_list_type): New.
51         (ix86_enum_va_list): New.
52         (TARGET_FN_ABI_VA_LIST): New.
53         (TARGET_CANONICAL_VA_LIST_TYPE): New.
54         * config/i386/i386.h (TARGET_ENUM_VA_LIST): New.
55         * doc/tm.texi (TARGET_FN_ABI_VA_LIST): New.
56         (TARGET_CANONICAL_VA_LIST_TYPE): New.
57         (TARGET_ENUM_VA_LIST): New.
58         * expr.h (std_fn_abi_va_list): New.
59         (std_canonical_va_list_type): New.
60         * target-def.h (TARGET_FN_ABI_VA_LIST): New.
61         (TARGET_CANONICAL_VA_LIST_TYPE): New.
62         (TARGET_INITIALIZER): Add TARGET_FN_ABI_VA_LIST and
63         TARGET_CANONICAL_VA_LIST_TYPE.
64         * target.h (struct gcc_target): Add fn_abi_va_list hook
65         and canonical_va_list_type hook.
66
67 2008-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
68
69         * ggc-zone.c (lookup_page_table_if_allocated,
70         set_page_table_entry, zone_find_object_size, alloc_small_page,
71         alloc_large_page, ggc_free, gt_ggc_m_S, ggc_marked_p, init_ggc,
72         new_ggc_zone, init_ggc_pch, ggc_pch_this_base, ggc_pch_read): Fix
73         -Wc++-compat and/or -Wcast-qual warnings.
74
75 2008-07-04  Alan Modra  <amodra@bigpond.net.au>
76
77         PR target/36634
78         * config/rs6000/rs6000.md (call, call_value): Don't arrange for
79         pic_offset_table_rtx to be marked as used here.
80         (call_nonlocal_sysv, call_value_nonlocal_sysv): Add split for
81         TARGET_SECURE_PLT to "use" pic_offset_table_rtx.
82         (call_nonlocal_sysv_secure, call_value_nonlocal_sysv_secure): New insn.
83         (sibcall_nonlocal_sysv, sibcall_value_nonlocal_sysv): Assert
84         !TARGET_SECURE_PLT.
85
86 2008-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
87
88         * alloc-pool.c (hash_descriptor, eq_descriptor,
89         alloc_pool_descriptor): Fix -Wc++-compat warnings.
90         * bitmap.c (hash_descriptor, eq_descriptor, bitmap_descriptor):
91         Likewise.
92         * ggc-common.c (hash_descriptor, eq_descriptor, hash_ptr, eq_ptr,
93         loc_descriptor, ggc_prune_ptr, ggc_free_overhead,
94         final_cmp_statistic, cmp_statistic, dump_ggc_loc_statistics):
95         Likewise.
96         * varray.c (hash_descriptor, eq_descriptor, varray_descriptor):
97         Likewise.
98
99 2008-07-03  Eric Botcazou  <ebotcazou@adacore.com>
100
101         * tree-flow.h (loop_only_exit_p): Declare.
102         * tree-ssa-loop-niter.c (loop_only_exit_p): Make public.
103         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Reinstate direct check on
104         the number of iterations if it is constant.  Otherwise, if this is the
105         only possible exit of the loop, use the conservative estimate on the
106         number of iterations of the entire loop if available.
107
108 2008-07-03  Richard Sandiford  <rdsandiford@googlemail.com>
109
110         * Makefile.in (libgcc.mvars): Add LIBGCC_SYNC and LIBGCC_SYNC_CFLAGS.
111         * libgcc-std.ver (GCC_4.4.0): New version, inherited from GCC_4.3.0.
112         Add synchronization functions.
113         * config/sync.c: New file.
114         * config/mips/t-libgcc-mips16 (LIBGCC_SYNC): Define.
115         (LIBGCC_SYNC_CFLAGS): Likewise.
116
117 2008-07-03  Uros Bizjak  <ubizjak@gmail.com>
118
119         PR target/36710
120         * config/i386/i386.md (mode): Add TF to "mode" attribute.
121         (*pushtf_sse): New insn pattern.
122         (pushtf splitters): New splitters.
123
124 2008-07-03  Michael Meissner  <gnu@the-meissners.org>
125
126         PR middle-end/35736
127         * predict.c (build_predict_expr): Use void_type_node for the tree
128         type, instead of NULL_TREE.
129
130 2008-07-03  H.J. Lu  <hongjiu.lu@intel.com>
131
132         * config/i386/i386.c (contains_aligned_value_p): Return true
133         for TCmode.
134         (ix86_data_alignment): Align TCmode to 128bits.
135         (ix86_local_alignment): Likewise.
136
137 2008-07-03  Andrew Haley  <aph@redhat.com>
138
139         PR bootstrap/33304
140         * vec.h (VEC_TA): New.
141         (DEF_VEC_I, DEF_VEC_P, DEF_VEC_ALLOC_I, DEF_VEC_ALLOC_P,
142         DEF_VEC_O, DEF_VEC_ALLOC_O: Use VEC_TA.
143         * c-common.c (C_COMMON_FIXED_TYPES_SAT): New macro.
144         (C_COMMON_FIXED_MODE_TYPES_SAT): New macro.
145         (C_COMMON_FIXED_TYPES): Remove first arg.
146         (C_COMMON_FIXED_MODE_TYPES): Likewise.
147         * tree.c (MAKE_FIXED_TYPE_NODE): Break into two macros,
148         MAKE_FIXED_TYPE_NODE and MAKE_FIXED_TYPE_NODE_WIDTH in order
149         not to use empty macro arguments.
150
151 2008-07-02  Joseph Myers  <joseph@codesourcery.com>
152
153         * config/alpha/vms_tramp.asm, config/arm/crti.asm,
154         config/arm/crtn.asm, config/bfin/crti.s, config/bfin/crtlibid.s,
155         config/bfin/crtn.s, config/fr30/crti.asm, config/fr30/crtn.asm,
156         config/frv/lib1funcs.asm, config/i386/sol2-c1.asm,
157         config/i386/sol2-ci.asm, config/i386/sol2-cn.asm,
158         config/i386/sol2-gc1.asm, config/ia64/crti.asm,
159         config/ia64/crtn.asm, config/m68hc11/larith.asm,
160         config/m68hc11/m68hc11-crt0.S, config/m68k/crti.s,
161         config/m68k/crtn.s, config/mcore/crti.asm, config/mcore/crtn.asm,
162         config/rs6000/crtresfpr.asm, config/rs6000/crtresgpr.asm,
163         config/rs6000/crtresxfpr.asm, config/rs6000/crtresxgpr.asm,
164         config/rs6000/crtsavfpr.asm, config/rs6000/crtsavgpr.asm,
165         config/rs6000/crtsavres.asm, config/rs6000/e500crtres32gpr.asm,
166         config/rs6000/e500crtres64gpr.asm,
167         config/rs6000/e500crtres64gprctr.asm,
168         config/rs6000/e500crtrest32gpr.asm,
169         config/rs6000/e500crtrest64gpr.asm,
170         config/rs6000/e500crtresx32gpr.asm,
171         config/rs6000/e500crtresx64gpr.asm,
172         config/rs6000/e500crtsav32gpr.asm,
173         config/rs6000/e500crtsav64gpr.asm,
174         config/rs6000/e500crtsav64gprctr.asm,
175         config/rs6000/e500crtsavg32gpr.asm,
176         config/rs6000/e500crtsavg64gpr.asm,
177         config/rs6000/e500crtsavg64gprctr.asm, config/rs6000/eabi-ci.asm,
178         config/rs6000/eabi-cn.asm, config/rs6000/eabi.asm,
179         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
180         config/rs6000/tramp.asm, config/sparc/sol2-ci.asm,
181         config/sparc/sol2-cn.asm: Remove .file directives.
182
183 2008-07-02  Richard Sandiford  <rdsandiford@googlemail.com>
184
185         * resource.c (mark_referenced_resources): Look inside
186         UNSPEC_VOLATILEs and ASM_INPUTs.
187
188 2008-07-02  Ian Lance Taylor  <iant@google.com>
189
190         * rtlanal.c (add_reg_note): New function.
191         * rtl.h (add_reg_note): Declare.
192         * auto-inc-dec.c (attempt_change): Use add_reg_note.
193         * bb-reorder.c (add_reg_crossing_jump_notes): Likewise.
194         * builtins.c (expand_builtin_longjmp): Likewise.
195         (expand_builtin_nonlocal_goto): Likewise.
196         * calls.c (emit_call_1, expand_call): Likewise.
197         * cfgexpand.c (add_reg_br_prob_note): Likewise.
198         * cfglayout.c (fixup_reorder_chain): Likewise.
199         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
200         (commit_one_edge_insertion): Likewise.
201         * combine.c (move_deaths, distribute_notes): Likewise.
202         * df-problems.c (df_set_note): Likewise.
203         * emit-rtl.c (link_cc0_insns, try_split): Likewise.
204         (set_unique_reg_note): Likewise.
205         (emit_copy_of_insn_after): Likewise.
206         * expr.c (expand_expr_real): Likewise.
207         * gcse.c (add_label_notes): Likewise.
208         * haifa-sched.c (create_check_block_twin): Likewise.
209         * jump.c (mark_jump_label_1): Likewise.
210         * loop-doloop.c (add_test, doloop_modify): Likewise.
211         * loop-unswitch.c (compare_and_jump_seq): Likewise.
212         * lower-subreg.c (move_eh_region_note): Likewise.
213         * optabs.c (emit_libcall_block): Likewise.
214         * predict.c (predict_insn): Likewise.
215         (combine_predictions_for_insn): Likewise.
216         * recog.c (peephole2_optimize): Likewise.
217         * regmove.c (try_auto_increment): Likewise.
218         * reg-stack.c (emit_pop_insn, move_for_stack_reg): Likewise.
219         * reload.c (find_reloads): Likewise.
220         * reload1.c (fixup_eh_region_note): Likewise.
221         (reload_as_needed, add_auto_inc_notes, copy_eh_notes): Likewise.
222         * reorg.c (delete_prior_computation): Likewise.
223         (delete_computation, dbr_schedule): Likewise.
224         * config/pa/pa.c (legitimize_pic_address): Likewise.
225         * config/sh/sh.c (sh_reorg): Likewise.
226
227 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
228
229         PR target/36669
230         * config/libgcc-glibc.ver: Add %exclude.
231         * config/m32r/libgcc-glibc.ver: Likwise.
232         * config/s390/libgcc-glibc.ver: Likwise.
233         * config/sh/libgcc-glibc.ver: Likwise.
234         * config/sparc/libgcc-sparc-glibc.ver: Likwise.
235
236         * config/i386/libgcc-glibc.ver: New.
237
238         * config/i386/libgcc-x86_64-glibc.ver: Removed.
239
240 2008-07-02  H.J. Lu  <hongjiu.lu@intel.com>
241
242         * config.gcc: Remove i386/t-fprules-softfp64 soft-fp/t-softfp
243         from tmake_file from i[34567]86-*-darwin*, x86_64-*-darwin*,
244         i[34567]86-*-linux*, x86_64-*-linux*.  Add
245         i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file for
246         i[34567]86-*-darwin*, x86_64-*-darwin*, i[34567]86-*-linux*,
247         x86_64-*-linux*.  Add i386/t-linux to tmake_file for
248         i[34567]86-*-linux*, x86_64-*-linux*.
249
250         * libgcc-std.ver: Add empty GCC_4.4.0.
251
252         * mkmap-symver.awk: Support multiple versions per symbol.
253
254         * config/i386/i386.c (ix86_init_builtins): Always define
255         __builtin_fabsq and __builtin_copysignq with fallbacks.
256         (ix86_expand_builtin): Emit normal call for __builtin_fabsq
257         and __builtin_copysignq if SSE2 isn't available.
258
259         * config/i386/linux.h (LIBGCC2_HAS_TF_MODE): Defined.
260         (LIBGCC2_TF_CEXT): Likwise.
261         (TF_SIZE): Likwise.
262
263         * config/i386/linux64.h (LIBGCC2_HAS_TF_MODE): Defined as 1.
264
265         * config/i386/sfp-machine.h: Moved to libgcc.
266
267         * config/i386/sfp-machine.h: New.
268         * config/i386/t-linux: Likwise.
269
270         * config/i386/t-darwin: Remove softfp_wrap_start and
271         softfp_wrap_end.
272         * config/i386/t-darwin64: Likewise.
273
274         * config/i386/t-fprules-softfp64: Renamed to ...
275         * config/i386/t-fprules-softfp: This.
276
277         * config/i386/t-linux64: Remove SHLIB_MAPFILES, softfp_wrap_start
278         and softfp_wrap_end.
279
280 2008-07-02  Jason Merrill  <jason@redhat.com>
281
282         * tree.c (ctor_to_list): Use FOR_EACH_CONSTRUCTOR_ELT.
283
284         * tree.c (ctor_to_list): New fn.
285         * tree.h: Declare it.
286         (CONSTRUCTOR_ELT): New macro.
287         (CONSTRUCTOR_NELTS): New macro.
288
289 2008-07-02  Richard Guenther  <rguenther@suse.de>
290
291         * tree-ssa-structalias.c (struct variable_info): Reorder
292         to fill padding on 64bit hosts.  Make collapsed_to an int.
293         (get_varinfo_fc): Deal with that.
294         (new_var_info): Likewise.
295         (collapse_rest_of_var): Likewise.
296
297 2008-07-02  Joshua Sumali  <jsumali@redhat.com>
298
299         * doc/install.texi (--enable-java-home): Document.
300         (--enable-aot-compile-rpm): Likewise.
301         (--with-arch-directory): Likewise.
302         (--with-os-directory): Likewise.
303         (--with-origin-name): Likewise.
304         (--with-arch-suffix): Likewise.
305         (--with-jvm-root-dir): Likewise.
306         (--with-jvm-jar-dir): Likewise.
307         (--with-python-dir): Likewise.
308
309 2008-07-02  Richard Guenther  <rguenther@suse.de>
310
311         * tree-ssa-forwprop.c (can_propagate_from): Exclude loads
312         from decls explicitly.  Merge operand checking from tuples.
313
314 2008-07-02  Martin Jambor  <mjambor@suse.cz>
315
316         * tree-switch-conversion.c: Included timevar.h which I forgot before.
317         
318 2008-07-02  Martin Jambor  <mjambor@suse.cz>
319
320         * tree-switch-conversion.c: Included timevar.h
321         (pass_convert_switch): Added a timevar id (TV_TREE_SWITCH_CONVERSION).
322
323         * timevar.def: Added TV_TREE_SWITCH_CONVERSION.
324
325 2008-07-02  Martin Jambor  <mjambor@suse.cz>
326
327         * tree-switch-conversion.c: Corrected various comments and
328         whitespace issues
329         (build_constructors): Fixed minor formatting mistakes.
330
331         * invoke.texi (Optimize Options): Corrected the
332         switch-conversion-max-branch-ratio parameter.
333
334 2008-07-02  Mark Shinwell  <shinwell@codesourcery.com>
335
336         * final.c (asm_insn_count): Return zero for an empty asm body.
337
338 2008-07-02  Richard Guenther  <rguenther@suse.de>
339
340         * bitmap.h (bitmap_set_bit): Return bool.
341         (bitmap_clear_bit): Likewise.
342         * bitmap.c (bitmap_set_bit): Return if the bit changed.  Only
343         write to the bitmap if it would.
344         (bitmap_clear_bit): Likewise.
345         * tree-ssa-structalias.c (add_implicit_graph_edge): Use
346         bitmap_set_bit return value.
347         (add_pred_graph_edge): Likewise.
348         (add_graph_edge): Likewise.
349         (do_sd_constraint): Likewise.
350         (do_ds_constraint): Likewise.
351
352 2008-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
353
354         * config/alpha/alpha.c (alpha_need_linkage, alpha_use_linkage):
355         Fix -Wc++-compat and/or -Wcast-qual warnings.
356         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration,
357         gen_regparm_prefix): Likewise.
358         * vmsdbgout.c (write_modbeg, lookup_filename,
359         vmsdbgout_source_line, vmsdbgout_init): Likewise.
360
361 2008-07-02  Danny Smith  <dannysmith@users.sourceforge.net>
362
363         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Undef to let
364         defaults.h definition apply.
365
366 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
367
368         * function.c (assign_parm_remove_parallels): New.
369         (assign_parm_setup_block_p): Do not return true for non-BLKmode
370         PARALLELs.
371         (assign_parm_setup_block): Do not handle them.
372         (assign_parm_setup_reg, assign_parm_setup_stack): Call
373         assign_parm_remove_parallels.
374
375 2008-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
376
377         * c-typeck.c (convert_for_assignment): Use
378         vector_targets_convertible_p.
379         * c-common.c (vector_targets_convertible_p): New.
380         * c-common.h (vector_targets_convertible_p): New prototype.
381         * config/rs6000/rs6000.c (rs6000_is_opaque_type): Do not check
382         opaque_p_V2SI_type_node.
383
384 2008-07-01  Steve Ellcey  <sje@cup.hp.com>
385
386         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Do not allow
387         RFmode constants.
388
389 2008-07-01  Uros Bizjak  <ubizjak@gmail.com>
390
391         * config/i386/i386.c (ix86_build_signbit_mask): Generate TImode and
392         TFmode constants via two element DImode vector for hosts with
393         HOST_BITS_PER_WIDE_INT < 64.
394         (ix86_init_builtins): Define __builtin_fabsq and __builtin_copysignq
395         also for HOST_BITS_PER_WIDE_INT < 64.
396
397 2008-07-01  Richard Guenther  <rguenther@suse.de>
398
399         PR tree-optimization/36666
400         * tree-ssa-structalias.c (get_constraint_for_1): Declare.
401         (get_constraint_exp_from_ssa_var): Split into ...
402         (get_constraint_exp_for_temp): ... this ...
403         (get_constraint_for_ssa_var): ... and that.
404         Return constraint expressions for all touched sub-fields
405         if the results address is not taken.
406         (process_constraint): Remove assertion that aggregate
407         assignments do not happen at this place.
408         (get_constraint_for_component_ref): Add address_p argument.
409         Return constraint expressions for all touched sub-fields
410         if the results address is not taken.
411         (do_deref): Use get_constraint_exp_for_temp.
412         (get_constraint_for_1): Rename from ...
413         (get_constraint_for): ... this.  Add the old function as wrapper.
414         (do_structure_copy): Use get_constraint_for_1.
415
416 2008-07-01  Martin Jambor  <mjambor@suse.cz>
417
418         * Makefile.in (tree-switch-conversion.o): Add.
419         (OBJS-common): Add tree-swtch-conversion.o.
420         * passes.c (init_optimization_passes): Add pass_convert_switch.
421         * tree-pass.h: (pass_convert_switch): Add.
422         * tree-switch-conversion.c: New file.
423         * gcc.dg/tree-ssa/cswtch.c: New testcase.
424         * common.opt (ftree-cswtch): New option.
425         * params.h (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
426         * params.def (PARAM_SWITCH_CONVERSION_BRANCH_RATIO): New parameter.
427         * opts.c (decode_options): Set flag_tree_switch_conversion when
428         optimization level is >= 2.
429         * doc/invoke.texi (Optimize Options): Added description of
430         -ftree-swtch-conversion and switch-conversion-max-branch-ratio.
431
432 2008-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
433
434         * config/darwin-driver.c (darwin_default_min_version): Fix
435         -Wc++-compat warnings.
436
437 2008-06-30  Uros Bizjak  <ubizjak@gmail.com>
438
439         * config/i386/i386.md (*movti_rex64): Add "!" to "r" constraint
440         of operand 0.
441
442 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
443
444         * ifcvt.c (cond_move_process_if_block): Free vectors on false return.
445         
446 2008-06-30  Kenneth Zadeck <zadeck@naturalbridge.com>
447
448         PR rtl-optimization/34744
449         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): New macros.
450         (df_scan_free_internal): Free data structures not
451         allocated in storage pools.
452         (df_mw_hardreg_chain_delete_eq_uses): Use df_scan_free_mws_vec.
453         (df_refs_add_to_chains): Use df_scan_free_ref_vec and
454         df_scan_free_mws_vec.
455         * dse.c (dse_step6): Free offset_map_p and offset_map_n
456         unconditionally.
457
458 2008-06-30  H.J. Lu  <hongjiu.lu@intel.com>
459
460         * config/i386/i386.c (contains_aligned_value_p): Return true
461         for __float128.
462         (ix86_function_arg_boundary): Return its natural boundary
463         for __float128.
464         (return_in_memory_32): Don't check TDmode.
465         (ix86_split_to_parts): Support splitting into 4 parts and
466         support TFmode for 32bit target.
467         (ix86_split_long_move): Support splitting into 4 parts.
468         (bdesc_args): Enable IX86_BUILTIN_FABSQ and IX86_BUILTIN_COPYSIGNQ
469         for SSE2.
470         (ix86_init_mmx_sse_builtins): Move __float80 and __float128 to ...
471         (ix86_init_builtins): Here.
472         (ix86_scalar_mode_supported_p): Always return true for TFmode.
473         (ix86_c_mode_for_suffix): Always return TFmode and XFmode for
474         'q' and 'w', respectively. 
475
476         * config/i386/i386.md (movtf): Check TARGET_SSE2 instead of
477         TARGET_64BIT.
478         (movtf_internal): Likewise.
479         (<code>tf2): Likewise.
480         (*absnegtf2_sse): Likewise.
481         (copysign<mode>3): Likewise.
482         (copysign<mode>3_const): Likewise.
483         (copysign<mode>3_var): Likewise.
484         (define_split UNSPEC_COPYSIGN): Likewise.
485         * config/i386/sse.md (*nandtf3): Likewise.
486         (<code>tf3): Likewise.
487         (*<code>tf3): Likewise.
488
489 2008-06-30  Joey Ye  <joey.ye@intel.com>
490             H.J. Lu  <hongjiu.lu@intel.com>
491
492         * global.c (compute_regsets): Set frame_pointer_needed here.
493         * reload1.c (init_elim_table): Don't set frame_pointer_needed here.
494
495 2008-06-30  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
496
497         * doc/install.texi (specific): Expand Windows build notes.
498
499 2008-06-30  Ira Rosen  <irar@il.ibm.com>
500
501         PR tree-optimization/36648
502         * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Divide
503         number of prolog iterations by step. Fix the comment.
504
505 2008-06-30  Richard Guenther  <rguenther@suse.de>
506
507         PR middle-end/36671
508         * tree-ssa-structalias.c (handle_lhs_call): Add flags argument,
509         handle calls from ECF_MALLOC functions.
510         (handle_pure_call): ECF_MALLOC functions do not return
511         call-used memory.
512         (find_func_aliases): Handle all calls, adjust calls to handle_lhs_call.
513
514 2008-06-29  Andreas Schwab  <schwab@suse.de>
515
516         * config/m68k/m68k.c (print_operand): Always print a float
517         constant in hex.
518         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND)
519         (ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND):
520         Remove macros.
521
522         * config/rs6000/x-linux64: Remove never used file.
523
524 2008-06-29  Richard Guenther  <rguenther@suse.de>
525
526         * tree-ssa-structalias.h (compute_points_to_sets): Adjust
527         prototype.
528         (struct alias_info): Move ...
529         * tree-ssa-alias.c: ... here.
530         (update_alias_info): Declare.
531         (compute_may_aliases): Call it.
532         (update_alias_info): New function.
533         * tree-ssa-structalias.c (update_alias_info): Move ...
534         * tree-ssa-alias.c (update_alias_info_1): ... here.
535         * tree-ssa-structalias.c (process_constraint_1): Remove
536         unused from_call argument.  Rename to ...
537         (process_constraint): ... this.  Delete old wrapper.
538         (make_constraint_to): Adjust callers.
539         (handle_const_call): Likewise.
540         (handle_pure_call): Likewise.
541         (init_base_vars): Likewise.
542         (handle_lhs_call): Likewise.  Remove unnecessary constraint.
543         (find_func_aliases): We don't need structure copies for
544         complex types.
545         (make_constraint_from_anything): Remove.
546         (create_variable_info_for): For globals make constraints
547         from escaped, not from anything.
548         (compute_points_to_sets): Do not call update_alias_info.
549         (ipa_pta_execute): Use make_constraint_from.
550
551 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
552
553         * Makefile.in (CXX_COMPAT_WARN, cxx_compat_warn): Delete.
554         (bitmap.o-warn, dominance.o-warn): New.
555         * configure.ac (cxx_compat_warn): Delete.
556         (loose_warn): Add -Wcast-qual and -Wc++-compat.
557         * system.h: Remove #pragma diagnostic for -Wcast-qual and
558         -Wc++-compat.
559         * configure: Regenerate.
560
561         * optabs.c (libfunc_decl_hash, libfunc_decl_eq): Fix -Wcast-qual
562         warnings.
563
564 2008-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
565
566         * alloc-pool.c (create_alloc_pool): Fix -Wc++-compat warnings.
567         * df-scan.c (df_notes_rescan): Likewise.
568         * ggc-page.c (set_page_table_entry): Likewise.
569         * intl.c (gcc_gettext_width): Likewise.
570         * varasm.c (get_unnamed_section, get_noswitch_section,
571         get_section): Likewise.
572
573 2008-06-28  Andrew Jenner  <andrew@codesourcery.com>
574
575         * regrename.c (build_def_use): Don't copy RTX.
576
577 2008-06-28  Sandra Loosemore  <sandra@codesourcery.com>
578
579         * doc/extend.texi (Variable Attributes): Use @ref instead of @xref.
580         (Type Attributes): Fix nesting of @table and @subsection.  Adjust
581         punctuation.  Use @ref instead of @xref.
582         (Function Names): Remove stray @display/@end display.
583         (C++ Attributes): Use @ref instead of @xref.
584         (Deprecated Features): Fix punctuation around @xref.
585         (Backwards Compatibility): Likewise.
586         * doc/rtl.texi (Incdec): Remove stray @table/@end table.
587
588 2008-06-28  Joseph Myers  <joseph@codesourcery.com>
589
590         * config/rs6000/predicates.md (easy_fp_constant): Reject TFmode
591         constants for E500 double.
592
593 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
594
595         * doc/rtl.texi (const_vector): Document const_fixed as legitimate
596         element type of const_vector.
597
598 2008-06-28  Uros Bizjak  <ubizjak@gmail.com>
599
600         * config/i386/i386.md (addti3, adddi3, addsi3, addhi3, addqi3):
601         Remove FLAGS_REG clobber from expander pattern.
602         (subti3, subdi3, subsi3, subhi3, subqi3): Ditto.
603         (anddi3, andsi3, andhi3, andqi3): Ditto.
604         (iordi3, iorsi3, iorhi3, iorqi3): Ditto.
605         (xordi3, xorsi3, xorhi3, xorqi3): Ditto.
606         (negti2, negdi2, negsi2, neghi2, negqi2): Ditto.
607         (ashlsi3, ashlhi3, ashlqi3): Ditto.
608         (ashrsi3, ashrhi3, ashrqi3): Ditto.
609         (lshrsi3, lshrhi3, lshrqi3): Ditto.
610         (rotldi3, rotlsi3, rotlhi3, rotlqi3): Ditto.
611         (rotrdi3, rotrsi3, rotrhi3, rotrqi3): Ditto.
612
613 2008-06-28  Richard Guenther  <rguenther@suse.de>
614
615         * tree-ssa-structalias.c (callused_id, var_callused,
616         callused_tree): Add.
617         (handle_pure_call): New function.
618         (find_func_aliases): Call it.
619         (find_what_p_points_to): Handle the call-used set.
620         (clobber_what_escaped): Likewise.
621         (compute_call_used_vars): New function.
622         (init_base_vars): Init the call-used variable.
623         (do_sd_constraint): Do not propagate the solution from CALLUSED
624         but use CALLUSED as a placeholder.
625         (solve_graph): Likewise.
626         * tree-flow-inline.h (gimple_call_used_vars): New function.
627         * tree-flow.h (struct gimple_df): Add call_used_vars bitmap.
628         (compute_call_used_vars): Declare.
629         * tree-ssa-alias.c (set_initial_properties): Call
630         compute_call_used_vars.
631         (reset_alias_info): Clear call-used variables.
632         (add_call_clobber_ops): Assert we are not called for const/pure
633         functions.  Remove handling of them.
634         (add_call_read_ops): Handle pure functions by adding the
635         call-used set of variables as VUSEs.
636         * tree-ssa.c (init_tree_ssa): Allocate call-used bitmap.
637         (delete_tree_ssa): Free it.
638         * tree-dfa.c (remove_referenced_var): Clear the var from the
639         call-used bitmap.
640
641 2008-06-28  Kai Tietz  <kai.tietz@onevision.com>
642
643         * tree.c (build_varargs_function_type_list): New.
644         (build_function_type_list_1): New.
645         (build_function_type_list): Use build_function_type_list_1.
646         * tree.h (build_varargs_function_type_list): New.
647
648 2008-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
649
650         PR target/34856
651         * config/spu/spu.c (spu_builtin_splats): Do not generate
652         invalid CONST_VECTOR expressions.
653         (spu_expand_vector_init): Likewise.
654
655 2008-06-28  Richard Sandiford  <rdsandiford@googlemail.com>
656
657         * optabs.c (libfunc_decls): New variable.
658         (libfunc_decl_hash, libfunc_decl_eq): New functions.
659         (init_one_libfunc): Reuse decls and SYMBOL_REFs when asked
660         for the same function twice.
661
662 2008-06-27  Uros Bizjak  <ubizjak@gmail.com>
663
664         * config/i386/i386.md (ashlti3, ashrti3, lshrti3): Expand using
665         ix86_expand_binary_operator directly.
666         (*ashlti3_1): Rename from ashlti3_1.  Use nonmemory_operand predicate
667         for operand 2.
668         (*ashrti3_1): Ditto.
669         (*lshrti3_1): Ditto.
670         (*ashlti3_2, *ashrti3_2, *lshrti3_2): Remove insn patterns.
671         (ashlti, ashrti and lshrti splitters): Handle nonmemory operand 2
672         using only one splitter.  Conditionaly execute splitter before or
673         after peephole2 pass.
674         (ashlti, ashrti and lshrti peephole2): Define peephole2 patterns.
675         (x86_shld): Rename from x86_shld_1.  Compress operand 2 constraints.
676         Use only one alternative in asm template.
677         (x86_64_shld): Compress operand 2 constraints. Use only one alternative
678         in asm template.
679         (*ashldi3_cmp_rex64): Use const_1_to_63_operand operand predicate and
680         "J" operand constraint for operand 2.
681         (*ashldi3_cconly_rex64): Ditto.
682         (*ashrdi3_cmp_rex64): Ditto.
683         (*ashrdi3_cconly_rex64): Ditto.
684         (*lshrdi3_cmp_rex64): Ditto.
685         (*lshrdi3_cconly_rex64): Ditto.
686         * config/i386/predicates.md (const_1_to_63_operand): New predicate.
687         * config/i386/i386.md (print_operand) ['s']: Print ", " using fputs.
688         (split_ashr, split_ashl, split_lshr): Use gen_x86_shrd instead of
689         gen_x86_shrd_1.
690
691 2008-06-27  Jakub Jelinek  <jakub@redhat.com>
692
693         * gimplify.c (omp_is_private): Don't return true if decl is not
694         already private on #pragma omp for or #pragma omp parallel for.
695
696         PR debug/36617
697         * tree-cfg.c (struct move_stmt_d): Replace block field with
698         orig_block and new_block fields.
699         (move_stmt_r): Only set TREE_BLOCK to p->new_block if
700         if it used to be NULL, p->orig_block or if p->orig_block is NULL.
701         (move_block_to_fn): Replace vars_map and new_label_map arguments
702         with struct move_stmt_d pointer.
703         (replace_block_vars_by_duplicates): New function.
704         (move_sese_region_to_fn): Add ORIG_BLOCK argument.  Adjust
705         move_block_to_fn caller.  If ORIG_BLOCK is non-NULL, move over
706         all subblocks of ORIG_BLOCK to the new function.  Call
707         replace_block_vars_by_duplicates.
708         * tree-flow.h (move_sese_region_to_fn): Adjust prototype.
709         * omp-low.c (expand_omp_taskreg): Set TREE_USED on DECL_INITIAL
710         BLOCK of the new function.  Adjust move_sese_region_to_fn caller.
711         Prune vars with original DECL_CONTEXT from child_cfun->local_decls.
712         (expand_omp): Temporarily set input_location to the location of
713         region's controlling stmt.
714         (lower_omp_sections, lower_omp_for): Add a BLOCK into outermost
715         BIND_EXPR, push ctx->block_vars and gimplification vars into
716         the BIND_EXPR and its block's BLOCK_VARS instead of directly
717         into dest function.
718         (lower_omp_single): Set TREE_USED on the BIND_EXPR's BLOCK if
719         there are any BLOCK_VARS.
720         (lower_omp_taskreg): Set BLOCK on a BIND_EXPR containing the
721         OMP_PARALLEL or OMP_TASK stmt.
722         (lower_omp): Save and restore input_location around the lower_omp_1
723         call.
724
725 2008-06-27  Richard Guenther  <rguenther@suse.de>
726
727         PR tree-optimization/36400
728         PR tree-optimization/36373
729         PR tree-optimization/36344
730         * tree-ssa-structalias.c (var_escaped, escaped_tree, escaped_id,
731         var_nonlocal, nonlocal_tree, nonlocal_id): New globals
732         (update_alias_info): Remove call clobbering code.
733         (make_constraint_to): New helper function.
734         (make_escape_constraint): Likewise.
735         (handle_rhs_call): Use it on all pointer containing arguments.
736         Also mark the static chain escaped.
737         (handle_lhs_call): Make constraints from NONLOCAL and ESCAPED
738         instead of ANYTHING.
739         (make_constraint_from): New helper split out from ...
740         (make_constraint_from_anything): ... here.
741         (find_func_aliases): Add constraints for escape sites.
742         (intra_create_variable_infos): Make constraints from NONLOCAL
743         for parameters.
744         (find_what_p_points_to): Interpret NONLOCAL and ESCAPED the same
745         as ANYTHING.
746         (clobber_what_p_points_to): Remove.
747         (clobber_what_escaped): New function.
748         (init_base_vars): Init NONLOCAL and ESCAPED.
749         (do_sd_constraint): Do not propagate the solution from ESCAPED
750         but use ESCAPED as a placeholder.
751         (solve_graph): Likewise.
752         * tree-flow.h (clobber_what_p_points_to): Remove.
753         (clobber_what_escaped): Declare.
754         * tree-ssa-alias.c (set_initial_properties): Call it.
755         Remove code clobbering escaped pointers.
756
757 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
758
759         * function.c (allocate_struct_function): Only allocate a unique
760         funcdef_no if the decl is nonzero.
761
762 2008-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
763
764         * config/mips/mips-protos.h (mips_split_const_insns): Declare.
765         * config/mips/mips.c (mips_split_const_insns): New function.
766         * config/mips/mips.md (move_type): New attribute.
767         (mode): Move attribute definition earlier in file.  Add "TI" and "TF".
768         (dword_mode): New attribute.
769         (type): Avoid long line.  Map "move_type"s to "type"s,
770         choosing "multi" for doubleword moves if appropriate.
771         Swap MTC/MFC comments to match their declaration order.
772         (extended_mips16): Default to "yes" if "move_type" is "sll0",
773         "type" is "branch" or "jal" is "direct".
774         (length): Handle "extended_mips16" first.  Make the default
775         "0" for "ghost" instructions.  Set the length from "move_type".
776         (truncdisi2, truncdihi2, truncdiqi2): Use "move_type" instead
777         of "type", with "sll0" for the register alternative.  Remove the
778         "extended_mips16" attribute.
779         (zero_extendsidi2, *clear_upper32): Use "move_type" instead
780         of "type", with "shift_shift" for the register alternative.
781         Remove the "length" attribute.
782         (*extend<SHORT:mode><GPR:mode>2, *extendqihi2): Likewise.
783         (*zero_extend<SHORT:mode><GPR:mode>2): Use "move_type" instead
784         of "type", with "andi" for the register alternative.
785         (*zero_extendqihi2): Likewise.
786         (*zero_extend<SHORT:mode><GPR:mode>2_mips16e): Use a "move_type"
787         of "andi" instead of a "type" of "arith".
788         (*zero_extend<SHORT:mode><GPR:mode>2_mips16): Use "move_type"
789         instead of "type".
790         (*zero_extendqihi2_mips16, mov_<load>l, mov_<load>r, mov_<store>l)
791         (mov_<store>r, *mov<mode>_ra): Likewise.
792         (extendsidi2): Use "move_type" instead of "type", with "move"
793         for the register alternative.
794         (*extend<SHORT:mode><GPR:mode>2_mips16e): Use "move_type" instead
795         of "type", with "signext" for the register alternative.
796         (*extend<SHORT:mode><GPR:mode>2_se<SHORT:size>): Likewise.
797         (*extendqihi2_mips16e, *extendqihi2_seb): Likewise.
798         (fix_truncdfsi2_insn, fix_truncsfsi2_insn, fix_truncdfdi2)
799         (fix_truncsfdi2, floatsidf2, floatdidf2, floatsisf2, floatdisf2)
800         (floatdisf2, *branch_equality<mode>_mips16): Likewise.
801         (unnamed branch insn): Likewise.
802         (*movdi_gp32_fp64): Fold into...
803         (*movdi_32bit): ...here.
804         (*movdf_hardfloat_64bit, *movdf_hardfloat_32bit): Combine into...
805         (*movdf_hardfloat): ...this new pattern.
806         (*movdf_softfloat): Remove redundant FPR alternatives.
807         (*movti, *movti_mips16, *movtf, *movtf_mips16): Add "mode" attributes.
808         (*movv2sf_hardfloat_64bit, *movv2sf_hardfloat_32bit): Combine into...
809         (*movv2sf): ...this new pattern.  Use "DF" rather than "SF" for
810         the "move" attribute.
811         (*movdi_32bit): Use "move_type" instead of "type" and remove the
812         "length" attribute.  Use "fpload" and "fpstore" instead of "load"
813         and "store" for COP loads and stores.
814         (*movdi_32bit_mips16, *movdi_64bit, *movsi_internal, movcc)
815         (*movhi_internal, *movhi_mips16, *movqi_internal, *movqi_mips16)
816         (*movsf_hardfloat, *movsf_softfloat, *movsi_mips16, *movdf_hardfloat)
817         (*movdf_softfloat, *movdf_mips16, *movti, *movti_mips16, *movtf)
818         (*movtf_mips16, *movv2sf): Likewise.
819         (mfhi<GPR:mode>_<HILO:mode>, mflo<GPR:mode>_<HILO:mode>)
820         (load_low<mode>, load_high<mode>, store_word<mode>, mthc1<mode>)
821         (mfhc1<mode>): Use "move_type" instead of "move".
822         (*low<mode>_mips16): Use "extended_mips16" instead of "length".
823         (loadgp_blockage): Remove the "length" attribute.
824         (blockage, set_got_version, update_got_version): Likewise.
825         (call_internal): Remove the "extended_mips16" attribute.
826         (call_value_internal, call_value_multiple_internal): Likewise.
827         * config/mips/loongson.md (mov<mode>_internal): Use "move_type"
828         instead of "move".
829         * config/mips/mips-dsp.md (mips_lbux, mips_lhx, mips_lwx): Remove
830         the "length" attribute.
831
832 2008-06-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
833
834         * c-format.c (handle_format_attribute): Fix -Wc++-compat and/or
835         -Wcast-qual warnings.
836         * c-pragma.c (dpm_eq, handle_pragma_push_macro,
837         handle_pragma_pop_macro): Likewise.
838         * collect2.c (resolve_lib_name): Likewise.
839         * config/arc/arc.c (arc_init): Likewise.
840         * config/arm/arm.c (neon_builtin_compare,
841         locate_neon_builtin_icode): Likewise.
842         * config/arm/pe.c (arm_mark_dllexport, arm_pe_unique_section): Likewise.
843         * config/bfin/bfin.c (bfin_init_machine_status,
844         bfin_optimize_loop): Likewise.
845         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Likewise.
846         * config/cris/cris.c (cris_init_expanders): Likewise.
847         * config/darwin-c.c (frameworks_in_use, add_framework): Likewise.
848         * config/darwin.c (machopic_indirection_eq,
849         machopic_indirection_name, machopic_output_indirection): Likewise.
850         * config/frv/frv.c (frv_init_machine_status, frv_compare_insns,
851         frv_io_check_address, frv_io_handle_set, frv_io_handle_use_1,
852         frv_optimize_membar): Likewise.
853         * config/i386/cygwin.h (mingw_scan,
854         GCC_DRIVER_HOST_INITIALIZATION): Likewise.
855         * config/i386/cygwin1.c (mingw_scan): Likewise.
856         * config/i386/i386.c (machopic_output_stub): Likewise.
857         * config/i386/winnt.c (gen_stdcall_or_fastcall_suffix,
858         i386_pe_unique_section): Likewise.
859         * config/ia64/ia64.c (ia64_init_machine_status,
860         ia64_h_i_d_extended, get_free_bundle_state, bundling, ia64_reorg):
861         Likewise.
862         * config/iq2000/iq2000.c, iq2000_init_machine_status): Likewise.
863         * config/m68hc11/m68hc11.c (m68hc11_encode_label): Likewise.
864         * config/m68k/m68k.c (m68k_handle_option,
865         m68k_sched_md_init_global): Likewise.
866         * config/mcore/mcore.c (mcore_mark_dllexport, mcore_mark_dllimport,
867         mcore_unique_section): Likewise.
868         * config/mips/mips.c (mips_block_move_straight,
869         mips16_rewrite_pool_refs, mips_sim_wait_regs_2, mips_sim_record_set):
870         Likewise.
871         * config/mmix/mmix.c (mmix_init_machine_status,
872         mmix_encode_section_info): Likewise.
873         * config/pa/pa.c (pa_init_machine_status, hppa_encode_label): Likewise.
874         * config/rs6000/rs6000.c (rs6000_init_machine_status,
875         print_operand_address, output_toc, redefine_groups,
876         rs6000_elf_encode_section_info, machopic_output_stub): Likewise.
877         * config/s390/s390.c (s390_init_machine_status): Likewise.
878         * config/score/score.c (score_block_move_straight,
879         score_block_move_loop_body): Likewise.
880         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
881         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
882         * emit-rtl.c (find_auto_inc): Likewise.
883         * gcc.c (translate_options, process_command): Likewise.
884         * reorg.c (dbr_schedule): Likewise.
885         * sdbout.c (sdbout_start_source_file, sdbout_init): Likewise.
886         * xcoffout.c (xcoffout_declare_function): Likewise.
887
888 2008-06-27  Daniel Berlin  <dberlin@dberlin.org>
889
890         * tree-ssa-structalias.c (find_func_aliases): Trivial fix to get
891         ipa-pta working again.
892
893 2008-06-27  David Edelsohn  <edelsohn@gnu.org>
894
895         * config/rs6000/t-aix52: Append large data option to LDFLAGS for
896         genautomata.
897
898 2008-06-27  Edmar Wienskoski  <edmar@freescale.com>
899
900         * config.gcc (powerpc*-*-*): Add new core e500mc.
901         * config/rs6000/e500mc.md: New file.
902         * config/rs6000/rs6000.c (processor_costs): Add new costs for
903         e500mc.
904         (rs6000_override_options): Add e500mc case to
905         processor_target_table. Altivec and Spe options not allowed
906         with e500mc. Add isel instruction to e500mc by
907         default. Initialize rs6000_cost for e500mc.
908         (rs6000_issue_rate): Set issue rate for e500mc.
909         * config/rs6000/rs6000.h (processor_type): Add
910         PROCESSOR_PPCE500MC.
911         (ASM_CPU_SPEC): Add e500mc.
912         Set TARGET_ISEL to rs6000_isel.
913         * config/rs6000/e500.h: Remove redefinition of TARGET_ISEL.
914         (CHECK_E500_OPTIONS): Remove TARGET_ISEL.
915         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce500mc.
916         Include e500mc.md.
917         * doc/invoke.texi: Add e500mc to list of cpus.
918
919 2008-06-27  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
920
921         PR c/34867
922         * c-lex.c (lex_charconst): Initialize unsignedp.
923
924 2008-06-27  Olivier Hainque  <hainque@adacore.com>
925
926         * gimplify.c (gimplify_modify_expr_to_memset): Assert our
927         documented assumptions.
928
929 2008-06-26  H.J. Lu  <hongjiu.lu@intel.com>
930
931         * dwarf2out.c: Remove trailing white spaces.  Break long line
932         in comments.
933
934 2008-06-26  Richard Sandiford  <rdsandiford@googlemail.com>
935
936         * libfuncs.h (LTI_synchronize): New libfunc_index.
937         (synchronize_libfunc): Declare.
938         * builtins.c (expand_builtin_synchronize): Consider using
939         synchronize_libfunc before falling back on an asm blockage.
940         * config/mips/mips.c: Include libfuncs.h
941         (mips_init_libfuncs): Initialize synchronize_libfunc for TARGET_MIPS16.
942
943 2008-06-26  Nathan Froyd  <froydnj@codesourcery.com>
944
945         * config/rs6000/rs6000.c (emit_allocate_stack): Add copy_r11
946         parameter.  Copy stack_reg to r11 where appropriate.
947         (no_global_regs_above): Add gpr parameter.
948         (rs6000_stack_info): Only add padding for SPE save area if we
949         are saving SPE GPRs and CR.
950         (saveres_routine_syms): New variable.
951         (FIRST_SAVRES_REGISTER, LAST_SAVRES_REGISTER, N_SAVRES_REGISTERS):
952         Define.
953         (rs6000_savres_routine_sym): New function.
954         (rs6000_emit_stack_reset, rs6000_restore_saved_cr): New functions,
955         split out of...
956         (rs6000_emit_epilogue): ...here.  Use rs6000_use_multiple_p and
957         rs6000_savres_strategy.  Restore GPRs out-of-line if appropriate.
958         Tweak FPR out-of-line saving.
959         (rs6000_make_savres_rtx): New function.
960         (rs6000_use_multiple_p): New function.
961         (rs6000_savres_strategy): New function.
962         (rs6000_emit_prologue): Use rs6000_savres_strategy.  Save GPRs
963         out-of-line if appropriate.
964         * config/rs6000/sysv4.h (FP_SAVE_INLINE): Save FPRs out-of-line
965         if we are optimizing for size.
966         (GP_SAVE_INLINE): Define.
967         (SAVE_FP_SUFFIX, RESTORE_FP_SUFFIX): Only use _l on 64-bit targets.
968         * config/rs6000/darwin.h (GP_SAVE_INLINE): Define.
969         * config/rs6000/aix.h (GP_SAVE_INLINE): Define.
970         * config/rs6000/rs6000.md (*save_gpregs_<mode>): New insn.
971         (*save_fpregs_<mode>): Add use of r11.
972         (*restore_gpregs_<mode>): New insn.
973         (*return_and_restore_gpregs_<mode>): New insn.
974         (*return_and_restore_fpregs_<mode>): Adjust to clobber LR and
975         use r11.
976         * config/rs6000/spe.md (*save_gpregs_spe): New insn.
977         (*restore_gpregs_spe): New insn.
978         (*return_and_restore_gpregs_spe): New insn.
979         * config/rs6000/predicates.md (save_world_operation): Fix check.
980
981 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
982
983         * tree-into-ssa (insert_phi_nodes_for): 'var' must be a DECL at
984         this point, so assert that.
985
986 2008-06-26  Steven Bosscher  <steven@gcc.gnu.org>
987
988         * cfganal.c: Include vec.h and vecprim.h.
989         (compute_idf): Import from...
990         * tree-into-ssa (compute_idf): ...here.
991         * basic-block.h (compute_idf): Export.
992
993 2008-06-26  Joseph Myers  <joseph@codesourcery.com>
994
995         * c-decl.c (merge_decls): Use !current_function_decl to check for
996         extern declaration of C99 inline function being at file scope.
997
998 2008-06-25  John David Anglin  <dave.anglin@gcc-cnrc.gc.ca>
999
1000         * config.gcc (hppa[12]*-*-hpux10*): Don't use fixproto.
1001
1002 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1003
1004         * alias.c (record_alias_subset, init_alias_analysis): Fix
1005         -Wc++-compat and/or -Wcast-qual warnings.
1006         * attribs.c (lookup_attribute_spec): Likewise.
1007         * bb-reorder.c (find_traces, rotate_loop, find_traces_1_round,
1008         copy_bb, connect_traces,
1009         find_rarely_executed_basic_blocks_and_cr): Likewise.
1010         * bt-load.c (find_btr_def_group, add_btr_def, new_btr_user,
1011         note_btr_set, migrate_btr_defs): Likewise.
1012         * builtins.c (result_vector, expand_builtin_memcpy,
1013         expand_builtin_mempcpy_args, expand_builtin_strncpy,
1014         builtin_memset_read_str, expand_builtin_printf,
1015         fold_builtin_memchr, rewrite_call_expr, fold_builtin_printf):
1016         Likewise.
1017         * caller-save.c (mark_set_regs): Likewise.
1018         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1019         * cgraph.c (cgraph_edge): Likewise.
1020         * combine.c (likely_spilled_retval_1): Likewise.
1021         * coverage.c (htab_counts_entry_hash, htab_counts_entry_eq,
1022         htab_counts_entry_del, get_coverage_counts): Likewise.
1023         * cselib.c (new_elt_list, new_elt_loc_list, entry_and_rtx_equal_p,
1024         new_cselib_val): Likewise.
1025         * dbgcnt.c (dbg_cnt_process_opt): Likewise.
1026         * dbxout.c (dbxout_init, dbxout_type, output_used_types_helper):
1027         Likewise.
1028         * df-core.c (df_compact_blocks): Likewise.
1029         * df-problems.c (df_grow_bb_info, df_chain_create): Likewise.
1030         * df-scan.c (df_grow_reg_info, df_ref_create,
1031         df_insn_create_insn_record, df_insn_rescan, df_notes_rescan,
1032         df_ref_compare, df_ref_create_structure, df_bb_refs_record,
1033         df_record_entry_block_defs, df_record_exit_block_uses,
1034         df_bb_verify): Likewise.
1035         * df.h (DF_REF_EXTRACT_WIDTH_CONST, DF_REF_EXTRACT_OFFSET_CONST,
1036         DF_REF_EXTRACT_MODE_CONST): New.
1037         * dominance.c (get_immediate_dominator, get_dominated_by,
1038         nearest_common_dominator, root_of_dom_tree,
1039         iterate_fix_dominators, first_dom_son, next_dom_son): Fix
1040         -Wc++-compat and/or -Wcast-qual warnings.
1041         * dse.c (clear_alias_set_lookup, get_group_info, gen_rtx_MEM,
1042         record_store, replace_read, check_mem_read_rtx, scan_insn,
1043         dse_step1, dse_record_singleton_alias_set): Likewise.
1044         * dwarf2asm.c (dw2_force_const_mem): Likewise.
1045
1046 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1047
1048         * dwarf2out.c (new_cfi, queue_reg_save, dwarf2out_begin_prologue,
1049         dwarf2out_frame_init, new_loc_descr, new_die, lookup_decl_die,
1050         lookup_decl_loc, add_var_loc_to_decl, compute_section_prefix,
1051         assign_symbol_names, htab_cu_hash, htab_cu_eq, htab_cu_del,
1052         build_abbrev_table, new_loc_list, output_comp_unit, add_arange,
1053         add_ranges_num, add_ranges_by_labels, file_info_cmp,
1054         file_name_acquire, output_file_names, add_const_value_attribute,
1055         premark_used_types_helper, file_table_eq, file_table_hash,
1056         lookup_filename, dwarf2out_var_location, dwarf2out_source_line,
1057         dwarf2out_init, file_table_relative_p): Fix -Wc++-compat and/or
1058         -Wcast-qual warnings.
1059         * ebitmap.c (ebitmap_array_grow, ebitmap_array_init,
1060         ebitmap_alloc, ebitmap_ior, ebitmap_and_compl): Likewise.
1061         * emit-rtl.c (get_mem_attrs, get_reg_attrs, gen_rtvec,
1062         gen_reg_rtx, start_sequence, init_emit): Likewise.
1063         * et-forest.c (et_new_occ, et_new_tree): Likewise.
1064         * except.c (init_eh_for_function, gen_eh_region,
1065         remove_unreachable_regions, add_ehl_entry, duplicate_eh_regions_1,
1066         arh_to_landing_pad, arh_to_label, add_action_record,
1067         add_call_site, switch_to_exception_section): Likewise.
1068         * expmed.c (synth_mult): Likewise.
1069         * expr.c (gen_group_rtx, emit_group_load, emit_group_store,
1070         store_expr): Likewise.
1071         * final.c (shorten_branches, final_scan_insn, debug_queue_symbol):
1072         Likewise.
1073         * function.c (assign_stack_temp_for_type,
1074         allocate_struct_function, match_asm_constraints_1): Likewise.
1075         * gcov-io.c (gcov_allocate): Likewise.
1076         * gcse.c (GNEW, GCNEW, GNEWVEC, GCNEWVEC, GRESIZEVEC, GNEWVAR,
1077         GCNEWVAR, GRESIZEVAR, GOBNEW, GOBNEWVAR): New.
1078         (gcse_main, alloc_gcse_mem, alloc_gcse_mem, alloc_reg_set_mem,
1079         record_one_set, insert_expr_in_table, insert_set_in_table,
1080         dump_hash_table, compute_hash_table_work, alloc_hash_table,
1081         pre_ldst_expr_hash, pre_ldst_expr_eq, find_rtx_in_ldst,
1082         reg_set_info, reg_clear_last_set): Fix -Wc++-compat and/or
1083         -Wcast-qual warnings.
1084
1085 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1086
1087         * cse.c (approx_reg_cost_1, cse_insn): Fix -Wc++-compat and/or
1088         -Wcast-qual warnings.
1089         * gcc.c (process_command): Likewise.
1090         * genattrtab.c (oballoc): Use XOBNEW.
1091         (oballocvec): Define.
1092         (attr_hash_add_rtx, attr_hash_add_string, attr_string,
1093         get_attr_value, fill_attr, make_length_attrs, gen_attr, gen_insn,
1094         gen_delay, find_attr, gen_insn_reserv, gen_bypass_1): Fix
1095         -Wc++-compat and/or -Wcast-qual warnings.
1096         * genautomata.c (XCREATENODE, XCREATENODEVEC, XCREATENODEVAR,
1097         XCOPYNODE, XCOPYNODEVEC, XCOPYNODEVAR): New.
1098         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
1099         gen_presence_absence_set, gen_automaton, gen_regexp_el,
1100         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
1101         gen_regexp_sequence, gen_reserv, gen_insn_reserv, process_excls,
1102         add_excls, process_presence_absence_names,
1103         process_presence_absence_patterns, add_presence_absence,
1104         process_regexp, add_advance_cycle_insn_decl, get_free_alt_state,
1105         get_free_state, add_arc, get_free_automata_list_el,
1106         form_reserv_sets_list, copy_insn_regexp, transform_1, transform_2,
1107         transform_3, cache_presence, create_ainsns, create_automata,
1108         create_state_ainsn_table, dfa_insn_code_enlarge,
1109         output_trans_func, output_min_issue_delay_func,
1110         output_dead_lock_func, output_reset_func,
1111         output_get_cpu_unit_code_func, output_dfa_start_func,
1112         expand_automata): Likewise.
1113         * genextract.c (gen_insn): Likewise.
1114         * gengtype-lex.l: Likewise.
1115         * gengtype.c (read_input_list, adjust_field_type,
1116         process_gc_options): Likewise.
1117         * genoutput.c (note_constraint): Likewise.
1118         * genpreds.c (mangle, add_constraint): Likewise.
1119         * genrecog.c (process_define_predicate, new_decision,
1120         add_to_sequence): Likewise.
1121         * gensupport.c (record_insn_name): Likewise.
1122
1123 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1124
1125         * config/i386/driver-i386.c (detect_caches_amd,
1126         detect_caches_intel, host_detect_local_cpu): Fix -Wc++-compat
1127         and/or -Wcast-qual warnings.
1128         *ggc-common.c (ggc_mark_roots, gt_pch_note_object,
1129         gt_pch_note_reorder, relocate_ptrs, write_pch_globals,
1130         gt_pch_save): Likewise.
1131         * ggc-page.c (push_depth, push_by_depth, alloc_anon, alloc_page,
1132         gt_ggc_m_S, clear_marks, ggc_pch_read): Likewise.
1133         * global.c (compute_regsets): Likewise.
1134         * graph.c (print_rtl_graph_with_bb, clean_graph_dump_file,
1135         finish_graph_dump_file): Likewise.
1136         * haifa-sched.c (schedule_block, extend_h_i_d, extend_ready,
1137         unlink_bb_notes): Likewise.
1138         * integrate.c (get_hard_reg_initial_val): Likewise.
1139         * ipa-prop.c (ipa_push_func_to_list): Likewise.
1140         * ipa-struct-reorg.c (gen_var_name, gen_cluster_name): Likewise.
1141         * local-alloc.c (update_equiv_regs): Likewise.
1142         * loop-invariant.c (check_invariant_table_size,
1143         hash_invariant_expr, eq_invariant_expr, find_or_insert_inv):
1144         Likewise.
1145         * loop-iv.c (check_iv_ref_table_size, analyzed_for_bivness_p,
1146         altered_reg_used, mark_altered): Likewise.
1147         * loop-unroll.c (si_info_eq, ve_info_eq, allocate_basic_variable,
1148         insert_var_expansion_initialization,
1149         combine_var_copies_in_loop_exit, apply_opt_in_copies,
1150         release_var_copies): Likewise.
1151         * matrix-reorg.c (mat_acc_phi_hash, mat_acc_phi_eq, mtt_info_eq,
1152         analyze_matrix_decl, add_allocation_site, analyze_transpose,
1153         analyze_accesses_for_phi_node, check_var_notmodified_p,
1154         check_allocation_function, find_sites_in_func,
1155         record_all_accesses_in_func, transform_access_sites,
1156         transform_allocation_sites): Likewise.
1157         * omp-low.c (new_omp_region, create_omp_child_function_name,
1158         check_omp_nesting_restrictions, check_combined_parallel,
1159         lower_omp_2, diagnose_sb_1, diagnose_sb_2): Likewise.
1160         * optabs.c (no_conflict_move_test, gen_libfunc, gen_fp_libfunc,
1161         gen_intv_fp_libfunc, gen_interclass_conv_libfunc,
1162         gen_intraclass_conv_libfunc, set_optab_libfunc, set_conv_libfunc):
1163         Likewise.
1164         * opts-common.c (prune_options): Likewise.
1165         * opts.c (add_input_filename, print_filtered_help,
1166         get_option_state): Likewise.
1167         * params.c (add_params): Likewise.
1168         * passes.c (set_pass_for_id, next_pass_1,
1169         do_per_function_toporder, pass_fini_dump_file): Likewise.
1170         * postreload.c (reload_cse_simplify_operands): Likewise.
1171         * predict.c (tree_predicted_by_p, tree_predict_edge,
1172         clear_bb_predictions, combine_predictions_for_bb): Likewise.
1173
1174 2008-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1175
1176         * ra.h (add_neighbor): Fix -Wc++-compat and/or -Wcast-qual
1177         warnings.
1178         * recog.c (check_asm_operands, validate_change_1): Likewise.
1179         * reg-stack.c (check_asm_stack_operands, subst_asm_stack_regs,
1180         subst_asm_stack_regs): Likewise.
1181         * regclass.c (regclass, som_hash, som_eq, record_subregs_of_mode,
1182         cannot_change_mode_set_regs, invalid_mode_change_p): Likewise.
1183         * regmove.c (reg_is_remote_constant_p): Likewise.
1184         * regrename.c (regrename_optimize, scan_rtx_reg,
1185         kill_clobbered_value, kill_set_value, kill_autoinc_value):
1186         Likewise.
1187         * regstat.c (regstat_init_n_sets_and_refs, regstat_compute_ri,
1188         regstat_compute_calls_crossed): Likewise.
1189         * reload1.c (init_reload, new_insn_chain,
1190         has_nonexceptional_receiver, reload, copy_reloads,
1191         calculate_needs_all_insns, init_elim_table): Likewise.
1192         * rtl-factoring.c (compute_rtx_cost, fill_hash_bucket): Likewise.
1193         * rtl.c (shallow_copy_rtx_stat): Likewise.
1194         * rtlanal.c (parms_set): Likewise.
1195         * sbitmap.c (sbitmap_alloc, sbitmap_alloc_with_popcount,
1196         sbitmap_resize, sbitmap_vector_alloc): Likewise.
1197         * sched-ebb.c (earliest_block_with_similiar_load,
1198         add_deps_for_risky_insns): Likewise.
1199         * sched-rgn.c (find_rgns, gather_region_statistics, extend_rgns,
1200         schedule_region): Likewise.
1201         * see.c (eq_descriptor_pre_extension,
1202         hash_descriptor_pre_extension, hash_del_pre_extension,
1203         eq_descriptor_properties, hash_descriptor_properties,
1204         hash_del_properties, see_seek_pre_extension_expr,
1205         see_initialize_data_structures, see_print_register_properties,
1206         see_print_pre_extension_expr, see_delete_merged_def_extension,
1207         see_delete_unmerged_def_extension, see_emit_use_extension,
1208         see_pre_delete_extension, see_map_extension, see_commit_changes,
1209         see_analyze_merged_def_local_prop,
1210         see_analyze_merged_def_local_prop,
1211         see_analyze_unmerged_def_local_prop, see_analyze_use_local_prop,
1212         see_set_prop_merged_def, see_set_prop_unmerged_def,
1213         see_set_prop_unmerged_use, see_print_one_extension,
1214         see_merge_one_use_extension, see_merge_one_def_extension,
1215         see_store_reference_and_extension, see_update_uses_relevancy,
1216         see_update_defs_relevancy): Likewise.
1217         * statistics.c (hash_statistics_hash, hash_statistics_eq,
1218         hash_statistics_free, curr_statistics_hash): Likewise.
1219         * stmt.c (parse_output_constraint, decl_overlaps_hard_reg_set_p,
1220         expand_asm_operands, expand_return, case_bit_test_cmp,
1221         expand_case): Likewise.
1222         * stor-layout.c (start_record_layout): Likewise.
1223         * stringpool.c (ggc_alloc_string, gt_pch_n_S,
1224         gt_pch_save_stringpool): Likewise.
1225         * tree-data-ref.c (hash_stmt_vertex_info,
1226         have_similar_memory_accesses_1, ref_base_address_1): Likewise.
1227         * tree-ssa-phiopt.c (name_to_bb_hash): Likewise.
1228
1229 2008-06-25  Uros Bizjak  <ubizjak@gmail.com>
1230
1231         PR target/36627
1232         * config/i386/i386.md : Change constraints of HImode and QImode
1233         immediate operands from "i" to "n".  Change SImode "ni" constraint to
1234         "i" and SImode "rmi" constraint to "g".  Remove all constraints
1235         from const0_operand and const1_operand predicated operands.
1236         (i): Change QImode and HImode attribute from "i" to "n".
1237         (*subqi_2): Change HImode operands to QImode.
1238         (*subqi_3): Ditto.
1239
1240 2008-06-25  Olivier Hainque  <hainque@adacore.com>
1241
1242         * Makefile.in (GTFILES_H): Use | instead of ; as separator in
1243         sed substitutions.
1244
1245 2008-06-25  Richard Guenther  <rguenther@suse.de>
1246
1247         * tree-ssa-structalias.c (fieldoff_compare): Make sure to
1248         not overflow the result type.
1249
1250 2008-06-25  Richard Guenther  <rguenther@suse.de>
1251
1252         * tree-vn.c (vn_add): Handle TRUTH_*_EXPR.
1253         (vn_lookup): Likewise.
1254
1255 2008-06-25  Richard Guenther  <rguenther@suse.de>
1256
1257         PR tree-optimization/35518
1258         * fold-const.c (fold_ternary): Strip trivial BIT_FIELD_REFs.
1259         * tree-sra.c (instantiate_element): Use fold_build3 to build
1260         BIT_FIELD_REFs.
1261         (try_instantiate_multiple_fields): Likewise.
1262
1263 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1264
1265         * config/rs6000/rs6000.md: Change all string instruction's clobber to
1266         be early clobbers.
1267
1268 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1269
1270         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Set
1271         use_backchain_to_restore_sp to true
1272         if the offset of the link register save area would go over the 32k - 1
1273         offset limit of the load
1274         instructions.
1275
1276 2008-06-25  Hans-Peter Nilsson  <hp@axis.com>
1277
1278         * doc/invoke.texi (Optimize Options) <fstrict-aliasing>: Add
1279         anchor for the type-punning blurb.  Cross-reference "Structures
1280         unions enumerations and bit-fields implementation".  Provide a
1281         cast-through-pointer example.  Make final sentence self-contained.
1282         * doc/implement-c.texi (Structures unions enumerations and
1283         bit-fields implementation): Cross-reference the type-punning blurb
1284         in the -fstrict-aliasing documentation.
1285
1286 2008-06-24  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1287
1288         PR middle-end/36594
1289         * builtins.c (expand_builtin_nonlocal_goto): Stabilize the address of
1290         the memory instead of the memory itself for the save area.
1291
1292 2008-06-24  Olivier Hainque  <hainque@adacore.com>
1293             Nicolas Roche  <roche@adacore.com>
1294
1295         * gengtype.c (srcdir_len): size_t instead of int.
1296         (get_file_realbasename): New function.  For F a filename, the real
1297         basename of F, with all the path components stripped.
1298         (get_file_srcdir_relative_path): New function.  For F a filename, the
1299         relative path to F from $(srcdir).
1300         (get_file_basename): Rewrite using get_file_srcdir_relative_path and
1301         get_file_realbasename.  Adjust the head comment.
1302         (get_prefix_langdir_index): New function. For F a filename, return the
1303         lang_dir_names[] relative index of the language directory that is
1304         a prefix in F.
1305         (get_file_langdir): For F a filename, return the name of the language
1306         directory where F is located.
1307         (get_file_gtfilename): New function. The gt- output file name for an
1308         input filename F.
1309         (get_output_file_with_visibility): Replace in-line computations with
1310         uses of get_file_gtfilename and get_prefix_langdir_index.
1311         * Makefile.in (GTFILES_H): Adjust to match what gengtype generates.
1312
1313 2008-06-24  Jakub Jelinek  <jakub@redhat.com>
1314
1315         PR tree-optimization/36504
1316         * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Skip
1317         references without base address.
1318
1319 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1320
1321         PR middle-end/36584
1322         * calls.c (expand_call): Increase alignment for recursive functions.
1323
1324 2008-06-23  Anatoly Sokolov  <aesok@post.ru>
1325
1326         * config/avr/avr.c (avr_function_value): Add new 'outgoing' argument.
1327         (TARGET_FUNCTION_VALUE): New define.
1328         * config/avr/avr-protos.h (avr_function_value): Remove declaration.
1329         * config/avr/avr.h (FUNCTION_VALUE): Remove.
1330
1331 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1332
1333         * config/i386/i386.md (fmodxf3): Change sequence of move instructions.
1334         (fmod<mode>3): Ditto.
1335         (remainderxf3): Ditto.
1336         (remainder<mode>3): Ditto.
1337
1338 2008-06-23  Jakub Jelinek  <jakub@redhat.com>
1339
1340         PR target/36533
1341         * emit-rtl.c (set_reg_attrs_from_value): Do nothing if
1342         REG is a hard register.
1343
1344         PR tree-optimization/36508
1345         * tree-ssa-pre.c (compute_antic): Allow num_iterations up to
1346         499, don't check it at all in release compilers.
1347
1348 2008-06-23  Uros Bizjak  <ubizjak@gmail.com>
1349
1350         * config/i386/i386.md (*fop_<mode>_1_i387): Use SSE_FLOAT_MODE_P
1351         together with SSE_TARGET_MATH to disable insn pattern.
1352         (*fop_<MODEF:mode>_2_i387): Ditto.
1353         (*fop_<MODEF:mode>_3_i387): Ditto.
1354
1355 2008-06-22  Andy Hutchinson  <hutchinsonandy@aim.com>
1356
1357         * config/avr/avr.h (SUPPORTS_INIT_PRIORITY): Define.
1358         
1359 2008-06-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1360
1361         PR middle-end/34906
1362         * gimplify.c (gimplify_asm_expr): Check the return code of
1363         parse_output_constraint call, set function return and is_inout
1364         value if it failed.
1365
1366 2008-06-22  Ian Lance Taylor  <iant@google.com>
1367
1368         * c-lex.c (narrowest_unsigned_type): Change itk to int.
1369         (narrowest_signed_type): Likewise.
1370         * c-typeck.c (c_common_type): Change local variable mclass to enum
1371         mode_class, twice.
1372         (parser_build_binary_op): Compare the TREE_CODE_CLASS with
1373         tcc_comparison, not the tree code itself.
1374         * c-common.c (def_fn_type): Pass int, not an enum, to va_arg.
1375         (c_expand_expr): Cast modifier to enum expand_modifier.
1376         * c-common.h (C_RID_CODE): Add casts.
1377         (C_SET_RID_CODE): Define.
1378         * c-parser.c (c_parse_init): Use C_SET_RID_CODE.
1379         (c_lex_one_token): Add cast to avoid warning.
1380         (c_parser_objc_type_name): Rename local typename to type_name.
1381         (check_no_duplicate_clause): Change code parameter to enum
1382         omp_clause_code.
1383         (c_parser_omp_var_list_parens): Change kind parameter to enum
1384         omp_clause_code.
1385         (c_parser_omp_flush): Pass OMP_CLAUSE_ERROR, not 0, to
1386         c_parser_omp_list_var_parens.
1387         (c_parser_omp_threadprivate): Likewise.
1388         * cp/lex.c (init_reswords): Use C_SET_RID_CODE.
1389         * cp/parser.c (cp_lexer_get_preprocessor_token): Likewise.
1390         * c-format.c (NO_FMT): Define.
1391         (printf_length_specs): Use NO_FMT.
1392         (asm_fprintf_length_specs): Likewise.
1393         (gcc_diag_length_specs): Likewise.
1394         (scanf_length_specs): Likewise.
1395         (strfmon_length_specs): Likewise.
1396         (gcc_gfc_length_specs): Likewise.
1397         (printf_flag_specs): Change 0 to STD_C89.
1398         (asm_fprintf_flag_specs): Likewise.
1399         (gcc_diag_flag_specs): Likewise.
1400         (gcc_cxxdiag_flag_specs): Likewise.
1401         (scanf_flag_specs): Likewise.
1402         (strftime_flag_specs): Likewise.
1403         (strfmon_flag_specs): Likewise.
1404         (print_char_table): Likewise.
1405         (asm_fprintf_char_table): Likewise.
1406         (gcc_diag_char_table): Likewise.
1407         (gcc_tdiag_char_table): Likewise.
1408         (gcc_cdiag_char_table): Likewise.
1409         (gcc_cxxdiag_char_table): Likewise.
1410         (gcc_gfc_char_table): Likewise.
1411         (scan_char_table): Likewise.
1412         (time_char_table): Likewis.
1413         (monetary_char_table): Likewise.
1414         * c-format.h (BADLEN): Likewise.
1415
1416 2008-06-21  Ian Lance Taylor  <iant@google.com>
1417
1418         * tree.h (enum tree_code): Include all-tree.def, not tree.def.
1419         Define END_OF_BASE_TREE_CODES around inclusion.
1420         * tree.c (tree_code_type): New global array.
1421         (tree_code_length, tree_code_name): Likewise.
1422         * Makefile.in (TREE_H): Add all-tree.def, c-common.def, and
1423         $(lang_tree_files).
1424         (all-tree.def, s-alltree): New targets.
1425         (gencheck.h, s-gencheck): Remove.
1426         (tree.o): Depend upon all-tree.def.
1427         (build/gencheck.o): Remove gencheck.h dependency.
1428         (mostlyclean): Don't remove gencheck.h.
1429         * c-common.h (enum c_tree_code): Remove.
1430         * c-lang.c (tree_code_type): Remove.
1431         (tree_code_length, tree_code_name): Remove.
1432         * gencheck.c (tree_codes): Include all-tree.def, rather than
1433         tree.def, c-common.def, and gencheck.h.  Undefined DEFTREECODE
1434         after it is used.
1435         * tree-browser.c (tb_tree_codes): Include all-tree.def, rather
1436         than tree.def.
1437         * cp/cp-tree.h (enum cplus_tree_code): Remove.
1438         (operator_name_info): Size to MAX_TREE_CODES.
1439         (assignment_operator_name_info): Likewise.
1440         * cp/cp-lang.c (tree_code_type): Remove.
1441         (tree_code_length, tree_code_name): Remove.
1442         * cp/lex.c (operator_name_info): Size to MAX_TREE_CODES.
1443         (assignment_operator_name_info): Likewise.
1444         * cp/decl.c (grok_op_properties): Change LAST_CPLUS_TREE_CODE to
1445         MAX_TREE_CODES.
1446         * cp/mangle.c (write_expression): Likewise.
1447         * cp/Make-lang.in (CXX_TREE_H): Remove cp/cp-tree.def.
1448         * fortran/f95-lang.c (tree_code_type): Remove.
1449         (tree_code_length, tree_code_name): Remove.
1450         * java/java-tree.h (enum java_tree_code): Remove.
1451         * java/lang.c (tree_code_type): Remove.
1452         (tree_code_length, tree_code_name): Remove.
1453         * java/Make-lang.in (JAVA_TREE_H): Remove java/java-tree.def.
1454         * objc/objc-act.h (enum objc_tree_code): Remove.
1455         * objc/objc-lang.c (tree_code_type): Remove.
1456         (tree_code_length, tree_code_name): Remove.
1457         * objcp/objcp-lang.c (tree_code_type): Remove.
1458         (tree_code_length, tree_code_name): Remove.
1459         * ada/ada-tree.h (enum gnat_tree_code): Remove.
1460         * ada/Make-lang.in (ADA_TREE_H): Remove ada/ada-tre.def.
1461         * ada/misc.c (tree_code_type): Remove.
1462         (tree_code_length, tree_code_name): Remove.
1463
1464 2008-06-21  Bernhard Fischer  <aldot@gcc.gnu.org>
1465
1466         * tree-ssa-pre.c (fini_antic): Bitmap_sets have to be freed before
1467         the grand_bitmap_obstack.
1468
1469 2008-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1470
1471         * ggc.h (GGC_RESIZEVAR): New, reorder macros.
1472         * tracer.c (tail_duplicate): Fix for -Wc++-compat.
1473         * tree-affine.c (aff_combination_expand, free_name_expansion): Likewise.
1474         * tree-cfg.c (replace_by_duplicate_decl, replace_ssa_name,
1475         move_stmt_r, new_label_mapper): Likewise.
1476         * tree-complex.c (cvc_lookup): Likewise.
1477         * tree-dfa.c (create_function_ann): Likewise.
1478         * tree-dump.c (dump_register): Likewise.
1479         * tree-if-conv.c (tree_if_conversion, add_to_predicate_list,
1480         find_phi_replacement_condition): Likewise.
1481         * tree-inline.c (copy_phis_for_bb, estimate_num_insns_1,
1482         tree_function_versioning): Likewise.
1483         * tree-into-ssa.c (cmp_dfsnum): Likewise.
1484         * tree-iterator.c (tsi_link_before, tsi_link_after): Likewise.
1485         * tree-nested.c (lookup_field_for_decl, lookup_tramp_for_decl,
1486         get_nonlocal_debug_decl, convert_nonlocal_reference,
1487         convert_nonlocal_omp_clauses, get_local_debug_decl,
1488         convert_local_reference, convert_local_omp_clauses,
1489         convert_nl_goto_reference, convert_nl_goto_receiver,
1490         convert_tramp_reference, convert_call_expr): Likewise.
1491         * tree-outof-ssa.c (contains_tree_r): Likewise.
1492         * tree-parloops.c (reduction_phi, initialize_reductions,
1493         eliminate_local_variables_1, add_field_for_reduction,
1494         add_field_for_name, create_phi_for_local_result,
1495         create_call_for_reduction_1, create_loads_for_reductions,
1496         create_stores_for_reduction, create_loads_and_stores_for_name):
1497         Likewise.
1498         * tree-phinodes.c (allocate_phi_node): Likewise.
1499         * tree-predcom.c (order_drefs, execute_pred_commoning_cbck): Likewise.
1500         * tree-sra.c (sra_elt_hash, sra_elt_eq, lookup_element): Likewise.
1501         * tree-ssa-alias.c (get_mem_sym_stats_for): Likewise.
1502         * tree-ssa-coalesce.c (compare_pairs): Likewise.
1503         * tree-ssa-loop-im.c (mem_ref_in_stmt, memref_hash, memref_eq,
1504         memref_free, gather_mem_refs_stmt, vtoe_hash, vtoe_eq, vtoe_free,
1505         record_vop_access, get_vop_accesses, get_vop_stores): Likewise.
1506         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise. 
1507         * tree-ssa-sccvn.c (VN_INFO_GET, free_phi, free_reference,
1508         vn_nary_op_insert): Likewise.
1509         * tree-ssa.c (redirect_edge_var_map_add,
1510         redirect_edge_var_map_clear, redirect_edge_var_map_dup): Likewise.
1511         * tree-vectorizer.c (vectorize_loops): Likewise.
1512         * tree.c (make_node_stat, copy_node_stat, build_int_cst_wide,
1513         build_fixed, build_real, make_tree_binfo_stat, make_tree_vec_stat,
1514         tree_cons_stat, build1_stat, build_variant_type_copy,
1515         decl_init_priority_lookup, decl_fini_priority_lookup,
1516         decl_priority_info, decl_restrict_base_lookup,
1517         decl_restrict_base_insert, decl_debug_expr_lookup,
1518         decl_debug_expr_insert, decl_value_expr_lookup,
1519         decl_value_expr_insert, type_hash_eq, type_hash_lookup,
1520         type_hash_add, get_file_function_name, tree_check_failed,
1521         tree_not_check_failed, tree_range_check_failed,
1522         omp_clause_range_check_failed, build_omp_clause,
1523         build_vl_exp_stat): Likewise.
1524         * value-prof.c (gimple_histogram_value,
1525         gimple_duplicate_stmt_histograms): Likewise.
1526         * var-tracking.c (attrs_list_insert, attrs_list_copy,
1527         unshare_variable, variable_union_info_cmp_pos, variable_union,
1528         dataflow_set_different_1, dataflow_set_different_2,
1529         vt_find_locations, variable_was_changed, set_variable_part,
1530         emit_notes_for_differences_1, emit_notes_for_differences_2): Likewise.
1531         * varasm.c (prefix_name, emutls_decl, section_entry_eq,
1532         section_entry_hash, object_block_entry_eq,
1533         object_block_entry_hash, create_block_symbol,
1534         initialize_cold_section_name, default_function_rodata_section,
1535         strip_reg_name, set_user_assembler_name, const_desc_eq,
1536         build_constant_desc, output_constant_def, lookup_constant_def,
1537         const_desc_rtx_hash, const_desc_rtx_eq, const_rtx_hash_1,
1538         create_constant_pool, force_const_mem, compute_reloc_for_rtx_1,
1539         default_internal_label): Likewise.
1540         * varray.c (varray_init, varray_grow): Likewise.
1541         * vec.c (vec_gc_o_reserve_1, vec_heap_o_reserve_1): Likewise.
1542
1543 2008-06-20  Uros Bizjak  <ubizjak@gmail.com>
1544
1545         * config/i386/i386.md (*jcc_fused_1): Handle all valid compare
1546         operators for "test" insn.  Macroize insn using SWI mode macro.
1547         (*jcc_fused_2): Ditto.
1548         (*jcc_fused_3): Macroize insn using SWI mode macro.
1549         (*jcc_fused_4): Ditto.
1550
1551 2008-06-20  Bernhard Fischer  <aldot@gcc.gnu.org>
1552
1553         * tree-ssa-pre.c: Fix typo in comment.
1554         (init_antic, fini_antic): Add explicit funtions for
1555         initializing and deinitializing ANTIC and AVAIL sets.
1556         (create_expression_by_pieces): Fix typo in comment.
1557         Remove redundant set of new_stuff and use NULL_TREE instead of NULL.
1558         (execute_pre): Eventually dump details about ANTIC_IN.
1559
1560 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1561
1562         * collect2.c (main, add_to_list): Fix for -Wc++-compat.
1563         * gcc.c (translate_options, init_spec, store_arg, read_specs,
1564         add_to_obstack, file_at_path, find_a_file, execute,
1565         add_preprocessor_option, add_assembler_option, add_linker_option,
1566         process_command, insert_wrapper, do_option_spec, do_self_spec,
1567         spec_path, do_spec_1, is_directory, main, used_arg,
1568         getenv_spec_function): Likewise.
1569         * tlink.c (symbol_hash_lookup, file_hash_lookup,
1570         demangled_hash_lookup, symbol_push, file_push, frob_extension):
1571         Likewise.
1572
1573 2008-06-19  Kenneth Zadeck <zadeck@naturalbridge.com>
1574
1575         * doc/rtl.texi: Updated subreg section.
1576
1577 2008-06-19  Jakub Jelinek  <jakub@redhat.com>
1578
1579         PR c++/36523
1580         * cgraphunit.c (cgraph_process_new_functions): Don't clear
1581         node->needed and node->reachable.
1582         * cgraphbuild.c (record_reference): Handle OMP_PARALLEL and OMP_TASK.
1583         * omp-low.c (delete_omp_context): Call finalize_task_copyfn.
1584         (expand_task_call): Don't call expand_task_copyfn.
1585         (expand_task_copyfn): Renamed to...
1586         (finalize_task_copyfn): ... this.
1587
1588 2008-06-19  Jan Hubicka  <jh@suse.cz>
1589
1590         * builtins.c (expand_builtin_nonlocal_goto): Stabilize r_sp before
1591         clobbering framepointer.
1592
1593 2008-06-19  Jan Hubicka  <jh@suse.cz>
1594
1595         * tree-optimize.c (execute_early_local_optimizations): Set
1596         cgraph_state only at first invocation.
1597
1598 2008-06-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1599
1600         * system.h (-Wc++-compat): Activate as a warning, no an error.
1601
1602 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
1603
1604         * config/i386/i386.md (*jcc_fused_1): Use ASM_COMMENT_START
1605         instead of "#" in insn asm template.
1606         (*jcc_fused_2): Ditto.
1607
1608 2008-06-19  Uros Bizjak  <ubizjak@gmail.com>
1609
1610         * config/i386/i386.h (ix86_tune_indices)
1611         [X86_TUNE_FUSE_CMP_AND_BRANCH]: New.
1612         (TARGET_FUSE_CMP_AND_BRANCH): New define.
1613         * config/i386/i386.md (*jcc_fused_1): New insn pattern
1614         (*jcc_fused_2): Ditto.
1615         * config/i386/i386.c (ix86_tune_features): Add m_CORE2 to
1616         X86_TUNE_FUSE_CMP_AND_BRANCH targets.
1617         (print operand): Handle 'E' and 'e' code.
1618
1619 2008-06-19  Anatoly Sokolov  <aesok@post.ru>
1620
1621         * config/avr/avr.c (avr_mcu_t): Add attiny13a.
1622         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
1623         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
1624
1625 2008-06-19  Bernhard Fischer  <aldot@gcc.gnu.org>
1626
1627         * cgraphunit.c (cgraph_finalize_function): Remove redundant setting of
1628         node->decl.
1629         (cgraph_expand_function): Use local copy of decl.
1630         (cgraph_expand_all_functions): Remove redundant initialization of
1631         order_pos.
1632         (cgraph_optimize): Reword internal_error message.
1633
1634 2008-06-19  Chung-Lin Tang  <ctang@marvell.com>
1635
1636         * arm-protos.h (arm_return_in_memory): Remove public
1637         arm_return_in_memory() prototype.
1638         * arm.c (arm_return_in_memory): Add static prototype, add target
1639         hook macro, change definition and comments.
1640         * arm.h (TARGET_RETURN_IN_MEMORY): Remove.
1641
1642 2008-06-19  Ben Elliston  <bje@au.ibm.com>
1643
1644         * dfp.h, dfp.c, config/dfp-bit.h, config/dfp-bit.c, real.h,
1645         real.c: Remove references to IEEE 754R.
1646         * doc/install.texi (Configuration): IEEE 754R -> IEEE 754-2008.
1647         * doc/libgcc.texi (Decimal float library routines): Likewise.
1648
1649 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1650
1651         * targhooks.h (struct gcc_target): New member unwind_word_mode.
1652         (default_unwind_word_mode): Add prototype.
1653         * targhooks.c (default_unwind_word_mode): New function.
1654         (default_eh_return_filter_mode): Return targetm.unwind_word_mode ()
1655         instead of word_mode.
1656         * target-def.h (TARGET_UNWIND_WORD_MODE): New macro.
1657         (TARGET_INITIALIZER): Use it.
1658
1659         * c-common.c (handle_mode_attribute): Support "unwind_word"
1660         mode attribute.
1661         * unwind-generic.h (_Unwind_Word, _Unwind_Sword): Use it.
1662
1663         * except.c (init_eh): Use targetm.unwind_word_mode () instead of
1664         word_mode to access SjLj_Function_Context member "data".
1665         (sjlj_emit_dispatch_table): Likewise.  Also, perform type
1666         conversion from targetm.eh_return_filter_mode () to
1667         targetm.unwind_word_mode () if they differ.
1668
1669         * builtin-types.def (BT_UNWINDWORD): New primitive type.
1670         (BT_FN_UNWINDWORD_PTR): New function type.
1671         (BT_FN_WORD_PTR): Remove.
1672         * builtins.def (BUILT_IN_EXTEND_POINTER): Use BT_FN_UNWINDWORD_PTR.
1673         * except.c (expand_builtin_extend_pointer): Convert pointer to
1674         targetm.unwind_word_mode () instead of word_mode.
1675
1676         * config/spu/spu-protos.h (spu_eh_return_filter_mode): Remove.
1677         * config/spu/spu.c (spu_eh_return_filter_mode): Remove.
1678         (spu_unwind_word_mode): New function.
1679         (TARGET_EH_RETURN_FILTER_MODE): Do not define.
1680         (TARGET_UNWIND_WORD_MODE): Define.
1681         * config/spu/t-spu-elf (TARGET_LIBGCC2_CFLAGS): Remove -D__word__=SI.
1682
1683 2008-06-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1684
1685         * config/spu/spu.c (reg_align): Remove.
1686         (regno_aligned_for_load): Also accept ARG_POINTER_REGNUM.
1687         (spu_split_load): Use regno_aligned_for_load instead of reg_align.
1688         (spu_split_store): Likewise.
1689
1690 2008-06-18  Bernhard Fischer  <aldot@gcc.gnu.org>
1691
1692         * gcc/tree-vn.c: Fix typo in comment.
1693
1694 2008-06-18  Jan Hubicka  <jh@suse.cz>
1695
1696         * cgraphunit.c (cgraph_optimize): Output debug info when doing
1697         toplevel reorder too.
1698
1699 2008-06-18  Jan Hubicka  <jh@suse.cz>
1700
1701         * c-opts.c (c_common_post_options): PCH is not compatible with
1702         no-unit-at-a-time.
1703         * opts.c (handle_options): Enable unit-at-a-time at O0 along with
1704         -fno-toplevel-reorder by default now.
1705
1706 2008-06-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1707
1708         PR documentation/30739
1709         * doc/install.texi (Prerequisites): Document dependency on awk.
1710
1711 2008-06-18  Uros Bizjak  <ubizjak@gmail.com>
1712             Ian Lance Taylor  <iant@google.com>
1713
1714         PR rtl-optimization/35604
1715         * jump.c (redirect_exp_1): Skip the condition of an IF_THEN_ELSE. We
1716         only want to change jump destinations, not eventual label comparisons.
1717
1718 2008-06-16  Jan Hubicka  <jh@suse.cz>
1719
1720         * cgraphunit.c (cgraph_expand_pending_functions): Give up at
1721         syntax errors.
1722         (cgraph_analyze_function): Likewise.
1723
1724 2008-06-16  Jan Hubicka  <jh@suse.cz>
1725
1726         * cgraph.h (cgraph_mark_if_needed): New function.
1727         * cgraphunit.c (cgraph_mark_if_needed): New function.
1728         * c-decl.c (duplicate_decl): Use it.
1729
1730 2008-06-16  Jan Hubicka  <jh@suse.cz>
1731
1732         * cgraph.c (cgraph_add_new_function): When in expansion state, do
1733         lowering.
1734
1735 2008-06-16  Jan Hubicka  <jh@suse.cz>
1736
1737         * tree-outof-ssa.c (pass_out_of_ssa): Do not depend on PROP_alias.
1738
1739 2008-06-16  Daniel Jacobowitz  <dan@codesourcery.com>
1740             Kazu Hirata  <kazu@codesourcery.com>
1741             Maxim Kuvyrkov  <maxim@codesourcery.com
1742
1743         * config.gcc (mips64el-st-linux-gnu): Use mips/st.h and mips/t-st.
1744         * config.host: Use driver-native.o and mips/x-native for mips*-linux*.
1745         * config/mips/linux.h (host_detect_local_cpu): Declare, add to
1746         EXTRA_SPEC_FUNCTIONS.
1747         (MARCH_MTUNE_NATIVE_SPECS, BASE_DRIVER_SELF_SPECS): New macros.
1748         (DRIVER_SELF_SPECS): Adjust.
1749         * config/mips/linux64.h (DRIVER_SELF_SPECS): Update.
1750         * config/mips/st.h, config/mips/t-st: New.
1751         * config/mips/driver-native.c, config/mips/x-native: New.
1752         * doc/invoke.texi (MIPS): Document 'native' value for -march and
1753         -mtune options.
1754
1755 2008-06-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
1756
1757         * config/mips/mips.h (ISA_HAS_CONDMOVE): Slice ISA_HAS_FP_CONDMOVE
1758         from it.
1759         (ISA_HAS_FP_CONDMOVE): New macro.
1760         (ISA_HAS_FP_MADD4_MSUB4, ISA_HAS_FP_MADD3_MSUB3): New macros.
1761         (ISA_HAS_NMADD_NMSUB): Rename to ISA_HAS_NMADD4_NMSUB4.
1762         (ISA_HAS_NMADD3_NMSUB3): New macro.
1763         * config/mips/mips.c (mips_rtx_costs): Update.
1764         * config/mips/mips.md (MOVECC): Don't use FP conditional moves when
1765         compiling for ST Loongson 2E/2F.
1766         (madd<mode>): Rename to madd4<mode>.  Update.
1767         (madd3<mode>): New pattern.
1768         (msub<mode>): Rename to msub4<mode>.  Update.
1769         (msub3<mode>): New pattern.
1770         (nmadd<mode>): Rename to nmadd4<mode>.  Update.
1771         (nmadd3<mode>): New pattern.
1772         (nmadd<mode>_fastmath): Rename to nmadd4<mode>_fastmath.  Update.
1773         (nmadd3<mode>_fastmath): New pattern.
1774         (nmsub<mode>): Rename to nmsub4<mode>.  Update.
1775         (nmsub3<mode>): New pattern.
1776         (nmsub<mode>_fastmath): Rename to nmsub4<mode>_fastmath.  Update.
1777         (nmsub3<mode>_fastmath): New pattern.
1778         (mov<SCALARF:mode>_on_<MOVECC:mode>, mov<mode>cc): Update.
1779
1780 2008-06-18  Steven Bosscher  <steven@gcc.gnu.org>
1781
1782         * df.h (struct df_ref): Replace 'insn' field with 'insn_info' field.
1783         (DF_REF_INSN_INFO): New.
1784         (DF_REF_INSN, DF_REF_INSN_UID): Rewrite macros using DF_REF_INSN_INFO.
1785         (DF_REF_IS_ARTIFICIAL): Artificial refs are now identified as refs
1786         with a NULL DF_REF_INSN_INFO.
1787         (DF_INSN_INFO_GET, DF_INSN_INFO_SET): Renamed from DF_INSN_GET and
1788         DF_INSN_SET.
1789         (DF_INSN_INFO_LUID, DF_INSN_INFO_DEFS, DF_INSN_INFO_USES,
1790         DF_INSN_INFO_EQ_USES): New.
1791         (DF_INSN_LUID, DF_INSN_DEFS, DF_INSN_USES, DF_INSN_EQ_USES,
1792         DF_INSN_UID_LUID, DF_INSN_UID_DEFS, DF_INSN_UID_USES,
1793         DF_INSN_UID_EQ_USES): Rewrite using DF_INSN_INFO_* macros.
1794         * df-core.c: Update comment for above changes.
1795         (df_insn_debug_regno): Use DF_INSN_INFO_GET instead of INSN_UID and
1796         DF_INSN_UID_* macros.
1797         (df_ref_debug): Check for NULL DF_REF_INSN_INFO.
1798         * df-scan.c (df_ref_record): Take a df_insn_info instead of an
1799         insn rtx.  Update all callers.
1800         (df_def_record_1, df_defs_record, df_uses_record, df_get_call_refs,
1801         df_ref_create_structure, df_insn_refs_collect): Likewise.
1802         (df_ref_equal_p): Compare DF_REF_INSN_INFO pointers for the refs.
1803         * df-problems.c (df_chain_dump): Test for non-NULL DF_REF_INSN_INFO.
1804         (df_live_bb_local_compute): Retrieve DF_INSN_INFO, use DF_INSN_INFO_*
1805         macros to access the insn refs.
1806         (df_chain_top_dump, df_chain_bottom_dump, df_byte_lr_alloc): Likewise.
1807         * fwprop.c (use_killed_between): Use DF_REF_INSN accessor macro.
1808         (all_uses_available): Retrieve DF_INSN_INFO for def_insn, and use it
1809         for accessing the refs.
1810         (try_fwprop_subst): Likewise.
1811         * ddg.c (add_cross_iteration_register_deps): Use DF_REF_INSN macro.
1812         * web.c (union_defs): Retrieve DF_INSN_INFO for def_insn, and use it
1813         for accessing the refs.
1814         * loop-invariant.c (invariant_for_use): Use DF_REF_BB macro.
1815         (check_dependencies): Use DF_INSN_INFO_GET, use DF_INSN_INFO_* macros
1816         to look at the insn refs.
1817         (record_uses): Likewise.
1818         * dce.c (deletable_insn_p): Don't tolerate artificial DEFs in this
1819         function anymore.
1820         (mark_artificial_uses): Don't mark_insn for artificial refs.
1821         (mark_reg_rependencies): Likewise.
1822
1823         * doc/rtl.texi: Remove documentation of ADDRESSOF.
1824
1825 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1826
1827         * configure: Regenerate.
1828
1829 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1830
1831         * config/avr/avr.c (avr_mcu_t): Remove atmega32hvb.
1832         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1833         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1834
1835 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1836
1837         * config/avr/avr.c (avr_mcu_t): Add attiny167.
1838         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1839         * gcc/config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1840
1841 2008-06-17  Eric B. Weddington  <eric.weddington@atmel.com>
1842
1843         * config/avr/avr.c (avr_mcu_t): Add atmega32u4.
1844         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise. 
1845         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1846
1847 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
1848
1849         * tree-ssa-sccvn.c: Fix format of comments.
1850
1851 2008-06-17  Bernhard Fischer  <aldot@gcc.gnu.org>
1852
1853         * cgraph.c: Remove unneeded forward declarations of eq_node()
1854         and hash_node().
1855
1856 2008-06-17  Steven Bosscher  <steven@gcc.gnu.org>
1857
1858         * see.c (see_analyse_one_def): Do not look for REG_LIBCALL and
1859         REG_RETVAL notes.
1860         (see_update_relevancy): Likewise.
1861         * fwprop.c (try_fwprop_subst): Likewise.
1862         * rtlanal.c (noop_move_p): Likewise.
1863         * builtins.c (expand_buitlin_mathfn): Don't try to add REG_EQUAL
1864         notes to non-existing libcall blocks.
1865         * cse.c (cse_insn): Change prototype.  Don't update libcall notes.
1866         Remove orig_set.
1867         (cse_extended_basic_block): Don't track libcall and no-conflict notes.
1868         (dead_libcall_p): Remove.
1869         (delete_trivially_dead_insns): Don't use it.
1870         * web.c (union_defs): Remove comment about keeping nops.
1871         * gcse.c (hash_scan_insn): Don't take libcall pointers.
1872         (compute_hash_table_work): Don't track libcall notes.
1873         (do_local_cprop): Don't take libcall pointers.  Don't update
1874         libcall notes.
1875         (adjust_libcall_notes): Deleted.
1876         (local_cprop_pass): Remove stack for nested libcalls (which shouldn't
1877         ever have existed in the first place).
1878         (replace_store_insn): Don't try to remove libcall notes.
1879         * lower-subreg.c (move_libcall_note, move_retval_note): Deleted.
1880         (resolve_reg_notes): Don't call them.
1881         (resolve_simple_move): Likewise.
1882         (decompose_multiword_subregs): Remove block handling REG_RETVAL notes.
1883         Don't remove REG_RETVAL notes.
1884         * emit-rtl.c (try_split): Don't update libcall notes.
1885         (emit_copy_of_insn_after): Dito.
1886         * cselib.c (cselib_current_insn_in_libcall): Remove.
1887         (cselib_process_insn): Don't set/clear it.
1888         (new_elt_loc_list): Don't record it.
1889         (cselib_init): Don't initialize it.
1890         * cselib.c (struct elt_loc_list): Remove in_libcall field.
1891         * loop-invariant.c (find_invariant_insn): Don't look for libcall
1892         notes.
1893         * sched-deps.c (sched_analyze_insn): Don't group libcall blocks.
1894         (sched_analyze): Don't set up deps->libcall_block_tail_insn.
1895         (init_deps): Don't initialize it.
1896         * sched-int.h (struct deps): Rremove libcall_block_tail_insn field.
1897         * combine.c (delete_noop_moves): Don't update libcall notes.
1898         (can_combine_p): Remove now pointless #if 0 block.
1899         (try_combine): Remove another obsolete #if 0 block.
1900         (distribute_notes): Don't distribute libcall notes.
1901         * reg-notes.def (REG_LIBCALL, REG_RETVAL): Remove.
1902         * dce.c (libcall_dead_p): Remove.
1903         (delete_unmarked_insns): Don't handle libcall blocks.
1904         (preserve_libcall_for_dce): Remove.
1905         (prescan_insns_for_dce): Don't special-case libcall block insns.
1906         * reload1 (reload): Don't handle libcall notes. 
1907         * doc/rtl.texi (REG_LIBCALL, REG_RETVAL, REG_LIBCALL_ID): Remove
1908         documentation.
1909
1910 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
1911
1912         * config/avr/avr.c (avr_mcu_t): Add atmega32c1.
1913         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1914         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1915
1916 2008-06-16  Eric B. Weddington  <eric.weddington@atmel.com>
1917
1918         * config/avr/avr.c (avr_mcu_t): Add atmega32m1.
1919         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1920         * config/avr/t-avr (MULTILIB_MATCHES): Likewise. 
1921
1922 2008-06-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1923
1924         * Makefile.in (FLAGS_TO_PASS): Add $(datarootdir).
1925
1926 2008-06-16  Ira Rosen  <irar@il.ibm.com>
1927
1928         PR tree-optimization/36493
1929         * tree-vect-transform.c (vect_create_data_ref_ptr): Remove TYPE from
1930         the arguments list. Use VECTYPE to create vector pointer.
1931         (vectorizable_store): Fail if accesses through a pointer to vectype
1932         do not alias the original memory reference operands.
1933         Call vect_create_data_ref_ptr without the removed argument.
1934         (vectorizable_load): Likewise.
1935         (vect_setup_realignment): Call vect_create_data_ref_ptr without the
1936         removed argument.
1937
1938 2008-06-015  Andy Hutchinson  <hutchinsonandy@aim.com>
1939
1940         PR target/36336
1941         * config/avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Add check for 
1942         reg_equiv_constant.
1943
1944 2008-06-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
1945
1946         * config/mips/loongson2ef.md: New file.
1947         * config/mips/mips.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
1948         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
1949         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
1950         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): New constants.
1951         (define_attr "cpu"): Rename loongson2e and loongson2f to loongson_2e
1952         and loongson_2f.
1953         (loongson2ef.md): New include.
1954         * config/mips/loongson.md (vec_pack_ssat_<mode>, vec_pack_usat_<mode>)
1955         (add<mode>3, paddd, ssadd<mode>3, usadd<mode>3)
1956         (loongson_and_not_<mode>, loongson_average_<mode>, loongson_eq_<mode>)
1957         (loongson_gt_<mode>, loongson_extract_halfword)
1958         (loongson_insert_halfword_0, loongson_insert_halfword_2)
1959         (loongson_insert_halfword_3, loongson_mult_add, smax<mode>3)
1960         (umax<mode>3, smin<mode>3, umin<mode>3, loongson_move_byte_mask)
1961         (umul<mode>3_highpart, smul<mode>3_highpart, loongson_smul_lowpart)
1962         (loongson_umul_word, loongson_pasubub, reduc_uplus_<mode>)
1963         (loongson_psadbh, loongson_pshufh, loongson_psll<mode>)
1964         (loongson_psra<mode>, loongson_psrl<mode>, sub<mode>3, psubd)
1965         (sssub<mode>3, ussub<mode>3, vec_interleave_high<mode>)
1966         (vec_interleave_low<mode>): Define type attribute.
1967         * config/mips/mips.c (mips_ls2): New static variable.
1968         (mips_issue_rate): Update to handle tuning for Loongson 2E/2F.
1969         (mips_ls2_init_dfa_post_cycle_insn, mips_init_dfa_post_cycle_insn)
1970         (sched_ls2_dfa_post_advance_cycle, mips_dfa_post_advance_cycle):
1971         Implement target scheduling hooks.
1972         (mips_multipass_dfa_lookahead): Update to handle tuning for
1973         Loongson 2E/2F.
1974         (mips_sched_init): Initialize data for Loongson scheduling.
1975         (mips_ls2_variable_issue): New static function.
1976         (mips_variable_issue): Update to handle tuning for Loongson 2E/2F.
1977         Add sanity check.
1978         (TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN)
1979         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Override target hooks.
1980         * config/mips/mips.h (TUNE_LOONGSON_2EF): New macros.
1981         (ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS):
1982         Handle ST Loongson 2E/2F cores.
1983         (CPU_UNITS_QUERY): Define macro to enable querying of DFA units.
1984
1985 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1986
1987         * omp-low.c (extract_omp_for_data): Fix comment typo.
1988         * c.opt: Fix typo.
1989
1990 2008-06-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1991
1992         * doc/sourcebuild.texi (Config Fragments): Remove obsolete
1993         FIXME note about gcc/config.guess.
1994         * doc/options.texi (Option file format): Remove non-ASCII bytes.
1995         * doc/cpp.texi: Expand TABs, drop indentation outside examples.
1996         * doc/cppopts.texi: Likewise.
1997         * doc/extend.texi: Likewise.
1998         * doc/gcc.texi: Likewise.
1999         * doc/gccint.texi: Likewise.
2000         * doc/gcov.texi: Likewise.
2001         * doc/gty.texi: Likewise.
2002         * doc/hostconfig.texi: Likewise.
2003         * doc/install.texi: Likewise.
2004         * doc/invoke.texi: Likewise.
2005         * doc/loop.texi: Likewise.
2006         * doc/makefile.texi: Likewise.
2007         * doc/md.texi: Likewise.
2008         * doc/passes.texi: Likewise.
2009         * doc/tm.texi: Likewise.
2010         * doc/tree-ssa.texi: Likewise.
2011         * doc/trouble.texi: Likewise.
2012
2013 2008-06-15  Mark Shinwell  <shinwell@codesourcery.com>
2014             Nathan Sidwell  <nathan@codesourcery.com>
2015             Maxim Kuvyrkov  <maxim@codesourcery.com>
2016             Richard Sandiford  <rdsandiford@googlemail.com>
2017         
2018         * config/mips/mips-modes.def: Add V8QI, V4HI and V2SI modes.
2019         * config/mips/mips-protos.h (mips_expand_vector_init): New.
2020         * config/mips/mips-ftypes.def: Add function types for Loongson-2E/2F
2021         builtins.
2022         * config/mips/mips.c (mips_split_doubleword_move): Handle new modes.
2023         (mips_hard_regno_mode_ok_p): Allow 64-bit vector modes for Loongson.
2024         (mips_vector_mode_supported_p): Add V2SImode, V4HImode and
2025         V8QImode cases.
2026         (LOONGSON_BUILTIN, LOONGSON_BUILTIN_ALIAS): New.
2027         (CODE_FOR_loongson_packsswh, CODE_FOR_loongson_packsshb,
2028         (CODE_FOR_loongson_packushb, CODE_FOR_loongson_paddw,
2029         (CODE_FOR_loongson_paddh, CODE_FOR_loongson_paddb,
2030         (CODE_FOR_loongson_paddsh, CODE_FOR_loongson_paddsb)
2031         (CODE_FOR_loongson_paddush, CODE_FOR_loongson_paddusb)
2032         (CODE_FOR_loongson_pmaxsh, CODE_FOR_loongson_pmaxub)
2033         (CODE_FOR_loongson_pminsh, CODE_FOR_loongson_pminub)
2034         (CODE_FOR_loongson_pmulhuh, CODE_FOR_loongson_pmulhh)
2035         (CODE_FOR_loongson_biadd, CODE_FOR_loongson_psubw)
2036         (CODE_FOR_loongson_psubh, CODE_FOR_loongson_psubb)
2037         (CODE_FOR_loongson_psubsh, CODE_FOR_loongson_psubsb)
2038         (CODE_FOR_loongson_psubush, CODE_FOR_loongson_psubusb)
2039         (CODE_FOR_loongson_punpckhbh, CODE_FOR_loongson_punpckhhw)
2040         (CODE_FOR_loongson_punpckhwd, CODE_FOR_loongson_punpcklbh)
2041         (CODE_FOR_loongson_punpcklhw, CODE_FOR_loongson_punpcklwd): New.
2042         (mips_builtins): Add Loongson builtins.
2043         (mips_loongson_2ef_bdesc): New.
2044         (mips_bdesc_arrays): Add mips_loongson_2ef_bdesc.
2045         (mips_builtin_vector_type): Handle unsigned versions of vector modes.
2046         (MIPS_ATYPE_UQI, MIPS_ATYPE_UDI, MIPS_ATYPE_V2SI, MIPS_ATYPE_UV2SI)
2047         (MIPS_ATYPE_V4HI, MIPS_ATYPE_UV4HI, MIPS_ATYPE_V8QI, MIPS_ATYPE_UV8QI):
2048         New.
2049         (mips_expand_vector_init): New.
2050         * config/mips/mips.h (HAVE_LOONGSON_VECTOR_MODES): New.
2051         (TARGET_CPU_CPP_BUILTINS): Define __mips_loongson_vector_rev
2052         if appropriate.
2053         * config/mips/mips.md: Add unspec numbers for Loongson
2054         builtins.  Include loongson.md.
2055         (MOVE64): Include Loongson vector modes.
2056         (SPLITF): Include Loongson vector modes.
2057         (HALFMODE): Handle Loongson vector modes.
2058         * config/mips/loongson.md: New.
2059         * config/mips/loongson.h: New.
2060         * config.gcc: Add loongson.h header for mips*-*-* targets.
2061         * doc/extend.texi (MIPS Loongson Built-in Functions): New.
2062
2063 2008-06-14  Joseph Myers  <joseph@codesourcery.com>
2064
2065         * config.gcc (arc-*-elf*, avr-*-*, fr30-*-elf, frv-*-elf,
2066         h8300-*-elf*, h8300-*-*, i[34567]86-*-elf*, x86_64-*-elf*,
2067         i[34567]86-*-aout*, i[34567]86-*-coff*, ia64*-*-elf*,
2068         iq2000*-*-elf*, m32r-*-elf*, m32rle-*-elf*, m32r-*-linux*,
2069         m32rle-*-linux*, m68hc11-*-*|m6811-*-*, m68hc12-*-*|m6812-*-*,
2070         m68k-*-coff*, mcore-*-elf, mcore-*-pe*, mipsisa64sr71k-*-elf*,
2071         mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*, mips-*-elf* |
2072         mipsel-*-elf*, mips64-*-elf* | mips64el-*-elf*, mips64vr-*-elf* |
2073         mips64vrel-*-elf*, mips64orion-*-elf* | mips64orionel-*-elf*,
2074         mipstx39-*-elf* | mipstx39el-*-elf*, mn10300-*-*, pdp11-*-,
2075         powerpc-*-elf*, powerpcle-*-elf*, sh-*-elf* | sh[12346l]*-*-elf* |
2076         sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* |
2077         sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* |
2078         sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* |
2079         sh64l*-*-netbsd*, sh-*-*, sparc-*-elf*, sparc64-*-elf*,
2080         v850e1-*-*, v850e-*-*, v850-*-*, xstormy16-*-elf, m32c-*-elf*):
2081         Remove use_fixproto=yes.
2082         (ia64*-*-hpux*): Remove comment about using fixproto.
2083         (m68k-*-uclinuxoldabi*, m68k-*-uclinux*): Remove use_fixproto=no.
2084
2085 2008-06-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2086
2087         * configure.ac: Update gthr-default.h lazily, to avoid unneeded
2088         library rebuilds.
2089         * configure: Regenerate.
2090
2091 2008-06-13  Eric Botcazou  <ebotcazou@adacore.com>
2092
2093         PR middle-end/36520
2094         * builtins.c (get_memory_rtx): Test for the presence of DECL_SIZE_UNIT
2095         before evaluating it.
2096
2097 2008-06-13  Jakub Jelinek  <jakub@redhat.com>
2098
2099         PR c/36507
2100         * c-decl.c (merge_decls): Don't clear DECL_EXTERNAL for
2101         nested inline functions.
2102         (start_decl, start_function): Don't invert DECL_EXTERNAL
2103         for nested inline functions.
2104
2105 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2106
2107         * config/mips/mips.md: Remove TARGET_DEBUG_D_MODE conditions from
2108         splits that must be made for correctness.
2109
2110 2008-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
2111
2112         * config/mips/mips.c (BUILTIN_AVAIL_NON_MIPS16): New macro.
2113         (AVAIL_NON_MIPS16): Likewise.
2114         (mips_builtin_description): Replace target_flags with a predicate.
2115         (paired_single, sb1_paired_single, mips3d, dsp, dspr2, dsp_32)
2116         (dspr2_32): New availability predicates.
2117         (MIPS_BUILTIN): New macro.
2118         (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS)
2119         (CMP_4S_BUILTINS, MOVTF_BUILTINS, CMP_BUILTINS)
2120         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): Use it.
2121         Replace the TARGET_FLAGS parameters with AVAIL parameters.
2122         (mips_ps_bdesc, mips_sb1_bdesc, mips_dsp_bdesc)
2123         (mips_dsp_32only_bdesc): Merge into...
2124         (mips_builtins): ...this new array.
2125         (mips_bdesc_map, mips_bdesc_arrays): Delete.
2126         (mips_init_builtins): Update after above changes.
2127         (mips_expand_builtin_1): Merge into...
2128         (mips_expand_builtin): ...here and update after above changes.
2129
2130 2008-06-12  Paul Brook  <paul@codesourcery.com>
2131
2132         * longlong.h (__arm__): Define count_leading_zeros.
2133         * config/arm/lib1funcs.asm (xxh, xxl, yyh, yyl): Define.
2134         (clzsi2, clzdi2): New functions.
2135         * config/arm/bpabi-v6m.S (xxh, xxl, yyh, yyl): Remove.
2136         * config/arm/bpabi.S (xxh, xxl, yyh, yyl): Remove.
2137         * config/arm/t-strongarm-elf (LIB1ASMFUNCS): Ditto.
2138         * config/arm/t-vxworks (LIB1ASMFUNCS): Ditto.
2139         * config/arm/t-pe (LIB1ASMFUNCS): Ditto.
2140         * config/arm/t-arm-elf (LIB1ASMFUNCS): Ditto.
2141         * config/arm/t-arm-coff (LIB1ASMFUNCS): Ditto.
2142         * config/arm/t-linux (LIB1ASMFUNCS): Ditto.
2143         * config/arm/t-symbian (LIB1ASMFUNCS): Ditto.
2144         * config/arm/t-wince-pe (LIB1ASMFUNCS): Ditto.
2145
2146 2008-06-12  Kazu Hirata  <kazu@codesourcery.com>
2147
2148         * config/m68k/m68k.c (m68k_tune_flags): New.
2149         (override_options): Compute m68k_tune_flags.
2150         (MULL_COST, MULW_COST): Update for various variants of CFV2.
2151         * config/m68k/m68k.h (TUNE_MAC, TUNE_EMAC): New.
2152
2153 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2154
2155         PR middle-end/36506
2156         * omp-low.c (expand_omp_sections): Initialize l2 to avoid bogus warning.
2157
2158 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2159
2160         * tree-inline.c (copy_body_r): Copy TREE_SIDE_EFFECTS along with
2161         TREE_THIS_VOLATILE on INDIRECT_REF nodes.
2162
2163 2008-06-12  Eric Botcazou  <ebotcazou@adacore.com>
2164
2165         * expr.c (store_field): Do a block copy from BLKmode to BLKmode-like.
2166         (get_inner_reference): Use BLKmode for byte-aligned BLKmode bitfields.
2167
2168 2008-06-12  Jakub Jelinek  <jakub@redhat.com>
2169
2170         PR middle-end/36506
2171         * omp-low.c (expand_omp_sections): Handle #pragma omp sections with
2172         reductions.
2173
2174 2008-06-12  Richard Guenther  <rguenther@suse.de>
2175
2176         PR tree-optimization/36345
2177         * tree-flow.h (struct ptr_info_def): Align escape_mask,
2178         add memory_tag_needed flag.
2179         (may_alias_p): Declare.
2180         * tree-ssa-alias.c (may_alias_p): Export.
2181         (set_initial_properties): Use memory_tag_needed flag.
2182         (update_reference_counts): Likewise.
2183         (reset_alias_info): Reset memory_tag_needed flag.
2184         (create_name_tags): Check memory_tag_needed flag.
2185         (dump_points_to_info_for): Dump it.
2186         * tree-ssa-structalias.c (struct variable_info): Remove
2187         directly_dereferenced flag.
2188         (new_var_info): Do not initialize it.
2189         (process_constraint_1): Do not set it.
2190         (update_alias_info): Set is_dereferenced flag.
2191         (set_uids_in_ptset): Use may_alias_p.
2192         (set_used_smts): Check memory_tag_needed flag.
2193         (find_what_p_points_to): Likewise.  Pass is_dereferenced flag.
2194         * tree-ssa-alias.c (verify_flow_sensitive_alias_info): Check
2195         memory_tag_needed flag.
2196         * tree-ssa-alias-warnings.c (dsa_named_for): Try to recover
2197         from broken design.
2198
2199 2008-06-12  Kai Tietz  <kai.tietz@onevision.com>
2200
2201         * config/i386/i386.c (ix86_compute_frame_layout): Disable
2202         red zone for w64 abi.
2203         (ix86_expand_prologue): Likewise.
2204         (ix86_force_to_memory): Likewise.
2205         (ix86_free_from_memory): Likewise.
2206
2207 2008-06-11  Edmar Wienskoski  <edmar@freescale.com>
2208
2209         PR target/36425
2210         * config/rs6000/rs6000.c (rs6000_override_options): Set
2211         rs6000_isel conditionally to the absence of comand line override.
2212         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
2213         Remove duplicate rs6000_isel setting.
2214         * config/rs6000/eabispe.h: Ditto.
2215
2216 2008-06-11  Richard Guenther  <rguenther@suse.de>
2217
2218         * alias.c (get_alias_set): Use the element alias-set for arrays.
2219         (record_component_aliases): For arrays and vectors do nothing.
2220         * c-common.c (strict_aliasing_warning): Handle the cases
2221         of alias set zero explicitly.
2222         * Makefile.in (dfp.o-warn): Add -Wno-error.
2223
2224 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
2225
2226         * config.gcc (all_defaults): Add arch_32 arch_64 cpu_32 cpu_64
2227         tune_32 tune_64.
2228         (i[34567]86-*-* | x86_64-*-*): Add arch_32 arch_64 cpu_32 cpu_64
2229         tune_32 tune_64 to supported_defaults.  Allow values not
2230         supporting 64-bit mode for arch_32, cpu_32 and tune_32 for
2231         x86_64.  Do not override cpu_32 or cpu_64 values from target name.
2232         (i[34567]86-*-linux*, i[34567]86-*-solaris2.1[0-9]*): Only default
2233         with_cpu_64 to generic for 64-bit-supporting configurations, not
2234         with_cpu.  Remove FIXMEs.
2235         * doc/install.texi (--with-cpu-32, --with-cpu-64, --with-arch-32,
2236         --with-arch-64, --with-tune-32, --with-tune-64): Document.
2237         * config/i386/i386.h (OPT_ARCH32, OPT_ARCH64): Define.
2238         (OPTION_DEFAULT_SPECS): Add tune_32, tune_64, cpu_32, cpu_64,
2239         arch_32 and arch_64.
2240
2241 2008-06-11  Eric Botcazou  <ebotcazou@adacore.com>
2242             Olivier Hainque  <hainque@adacore.com>
2243
2244         * builtins.c (get_memory_rtx): Accept byte-addressable bitfields.
2245         Use DECL_SIZE_UNIT to retrieve the size of the field.
2246
2247 2008-06-11  Joseph Myers  <joseph@codesourcery.com>
2248
2249         * config/arm/arm.c (arm_init_neon_builtins): Move initialization
2250         with function calls after declarations.  Lay out
2251         neon_float_type_node before further use.
2252
2253 2008-06-11  Richard Guenther  <rguenther@suse.de>
2254
2255         * tree-flow.h (may_point_to_global_var): Declare.
2256         * tree-ssa-alias.c (may_point_to_global_var): New function.
2257         * tree-ssa-sink.c (is_hidden_global_store): Use it.
2258
2259 2008-06-10  Kazu Hirata  <kazu@codesourcery.com>
2260
2261         * configure.ac: Teach that fido supports .debug_line.
2262         * configure: Regenerate.
2263
2264 2008-06-10  Tom Tromey  <tromey@redhat.com>
2265
2266         * c-lex.c (fe_file_change): Pass SOURCE_LINE to start_source_file
2267         debug hook.
2268
2269 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
2270
2271         * dfp.c (WORDS_BIGENDIAN): Define to 0 if not defined.
2272         (encode_decimal64, decode_decimal64, encode_decimal128,
2273         decode_decimal128): Reverse order of 32-bit parts of value if host
2274         and target endianness differ.
2275
2276 2008-06-10  Vinodha Ramasamy  <vinodha@google.com>
2277
2278         * value_prob.c (tree_divmod_fixed_value_transform): Use gcov_type.
2279         Avoid division by 0.
2280         (tree_mod_pow2_value_transform): Likewise.
2281         (tree_ic_transform): Likewise.
2282         (tree_stringops_transform): Likewise.
2283         (tree_mod_subtract_transform): Likewise.
2284         * tree-inline-c (copy_bb): Corrected int type to gcov_type.
2285         (copy_edges_for_bb): Likewise.
2286         (initialize_cfun): Likewise.
2287
2288 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
2289
2290         * config/i386/i386.md (*btdi_rex64): Change operand 1 predicate to
2291         nonmemory_operand. Add "N" operand constraint.
2292         (*btsi): Ditto.
2293         (*jcc_btdi_mask_rex64): New instruction and split pattern.
2294         (*jcc_btsi_mask): Ditto.
2295         (*jcc_btsi_mask_1): Ditto.
2296
2297 2008-06-10  Joseph Myers  <joseph@codesourcery.com>
2298
2299         * config/rs6000/rs6000.c (build_opaque_vector_type): Set
2300         TYPE_CANONICAL for copied element type.
2301
2302 2008-06-10  Uros Bizjak  <ubizjak@gmail.com>
2303
2304         PR target/36473
2305         * config/i386/i386.c (ix86_tune_features) [TUNE_USE_BT]:
2306         Add m_CORE2 and m_GENERIC.
2307         * config/i386/predicates.md (bt_comparison_operator): New predicate.
2308         * config/i386/i386.md (*btdi_rex64): New instruction pattern.
2309         (*btsi): Ditto.
2310         (*jcc_btdi_rex64): New instruction and split pattern.
2311         (*jcc_btsi): Ditto.
2312         (*jcc_btsi_1): Ditto.
2313         (*btsq): Fix Intel asm dialect operand order.
2314         (*btrq): Ditto.
2315         (*btcq): Ditto.
2316
2317 2008-06-09  Andy Hutchinson  <hutchinsonandy@aim.com>
2318
2319         PR middle-end/36447
2320         * simplify-rtx.c (simplify_subreg): Add check for shift count 
2321         greater than size.
2322
2323 2008-06-09  Richard Sandiford  <rdsandiford@googlemail.com>
2324
2325         * doc/md.texi: Synchronize with later constraints.md change.
2326         * longlong.h (umul_ppmm): Replace the MIPS asm implementation
2327         with a C implementation.
2328         * config/mips/mips.c (mips_legitimize_move): Remove MFHI and
2329         MFLO handling.
2330         (mips_subword): Assume TImode for CONST_INTs if TARGET_64BIT.
2331         (mips_split_doubleword_move): Use special MTHI and MFHI instructions
2332         when moving to and from MD_REGNUM.
2333         (mips_output_move): Don't handle moves from GPRs to HI_REGNUM.
2334         Handle moves from LO_REGNUM to GPRs using MFLO, MACC or DMACC.
2335         Handle byte and halfword moves.
2336         (mips_hard_regno_mode_ok_p): Handle MD_REGS and DSP_ACC_REGS
2337         separately.
2338         * config/mips/constraints.md (h): Turn into NO_REGS.
2339         (l, x): Update documentation.
2340         * config/mips/mips.md (UNSPEC_MFHILO): Delete.
2341         (UNSPEC_MFHI, UNSPEC_MTHI, UNSPEC_SET_HILO): New.
2342         (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): Renumber.
2343         (HILO): New mode iterator.
2344         (MOVE128): Add TI.
2345         (any_div): New code iterator.
2346         (u): Extend code attribute to div and udiv.
2347         (*add<mode>3_mips16, *movdi_64bit_mips16, *movsi_mips16): Use
2348         d_operand in the splitters.  Remove redundant CONST_INT checks.
2349         (mulsi3_mult3, mul<mode>3_internal, mul<mode>3_r4000, *mul_acc_si)
2350         (*macc, *msac, *msac_using_macc, *macc2, *msac2, *mul_sub_si)
2351         (*muls): Remove "=h" clobbers.  Adjust peephole2s and define_splits
2352         accordingly, using normal moves instead of unspecs to move LO into
2353         a GPR.  Use d_operand and lo_operand instead of *_REG_P checks.
2354         (<u>mulsidi3): Handle expansion in C code.
2355         (<u>mulsidi3_32bit_internal): Rename to...
2356         (<u>mulsidi3_32bit): ...this.
2357         (<u>mulsidi3_32bit_r4000): Fix insn separator.
2358         (*<u>mulsidi3_64bit): Rename to...
2359         (<u>mulsidi3_64bit): ...this.  Combine DImode "=h" and "=l" clobbers
2360         into a TImode "=x" clobber.  In the split, use an UNSPEC_SET_HILO
2361         to set LO and HI to the multiplication result.  Use a normal move
2362         for MFLO and an unspec for MFHI.
2363         (*<u>mulsidi3_64bit_parts): Replace with...
2364         (<u>mulsidi3_64bit_hilo): ...this new instruction.
2365         (<su>mulsi3_highpart): Extend to TARGET_FIX_R4000.
2366         (<su>mulsi3_highpart_internal): Turn into a define_insn_and_split
2367         and extend it to TARGET_FIX_R4000.  Store the destination in a GPR
2368         instead of HI.  Split the instruction into a separate multiplication
2369         and MFHI if !TARGET_FIX_R4000.
2370         (<su>muldi3_highpart): Likewise.
2371         (<su>mulsi3_highpart_mulhi_internal): Remove the first alternative
2372         and the "=h" clobber.
2373         (*<su>mulsi3_highpart_neg_mulhi_internal): Likewise.
2374         (<u>mulditi3): New expander.
2375         (<u>mulditi3_internal, <u>mulditi3_r4000): New patterns.
2376         (madsi): Remove "=h" clobber.
2377         (divmod<mode>4, udivmod<mode>4): Turn into define_insn_and_splits.
2378         Force the modulus result to be a GPR and split the instruction into
2379         a division followed by an MFHI after reload.
2380         (<u>divmod<GPR:mode>4_hilo_<HILO:mode>): New instruction.
2381         (*lea_high64): Use d_operand in the define_peephole2.  Likewise
2382         the MIPS16 HIGH define_split.
2383         (*movdi_32bit, *movdi_gp32_fp64, *movdi_32bit_mips16): Change type
2384         of acc<->gpr moves to "multi".
2385         (*movdi_64bit): Replace the single "x" alternative with
2386         alternatives for moving into and out of "a".
2387         (*movhi_internal, *movqi_internal): Likewise.  Use mips_output_move.
2388         (*movsi_internal): Extend the "d<-A" alternative to "d<-a".
2389         (*movdi_64bit_mips16, *movsi_mips16): Add d<-a alternatives.
2390         Use d_operand in the splitters.  Remove redundant CONST_INT checks.
2391         (*movhi_mips16, *movqi_mips16): Likewise.  Use mips_output_move.
2392         (movti): New expander.
2393         (*movti, *movti_mips16): New insns.
2394         (mfhilo_<mode>, *mfhilo_<mode>, *mfhilo_<mode>_macc): Delete.
2395         (mfhi<GPR:mode>_<HILO:mode>): New pattern.
2396         (mthi<GPR:mode>_<HILO:mode>): Likewise.
2397         * config/mips/predicates.md (fpr_operand): Delete.
2398         (d_operand): New predicate.
2399
2400 2008-06-09  Michael Meissner  <michael.meissner@amd.com>
2401
2402         * config.gcc (i[34567]86-*-*): Put test in quotes to prevent
2403         failure on some Bourne shells.
2404         (x86_64-*-*): Ditto.
2405
2406 2008-06-09  Kai Tietz  <kai.tietz@onevision.com>
2407
2408         * config/i386/cygming.h (TARGET_SUBTARGET64_DEFAULT): New.
2409
2410 2008-06-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
2411
2412         * doc/install.texi (*-*-solaris2*): Remove obsolete contents.
2413         (sparc-sun-solaris2*): Likewise.
2414
2415 2008-06-09  Arnaud Charlet  <charlet@adacore.com
2416
2417         * doc/install.texi: Update requirements to build the Ada compiler.
2418
2419 2008-06-08  Steven Bosscher  <stevenb.gcc@gmail.com>
2420
2421         * df-scan.c (struct df_scan_problem_data): Remove the
2422         mw_link_pool alloc pool.
2423         (df_scan_free_internal): Don't free it.
2424         (df_scan_alloc): Don't allocate it.
2425         * df.h (struct df_link): Update comment.
2426
2427 2008-06-08  Nathan Sidwell  <nathan@codesourcery.com>
2428
2429         * except.h: Correct checks for when SJLJ exceptions must be used.
2430
2431 2008-06-08  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2432
2433         * doc/invoke.texi (Wenum-compare): Mention that it is enabled by
2434         default.
2435         
2436 2008-06-08  Joseph Myers  <joseph@codesourcery.com>
2437
2438         PR tree-optimization/36218
2439         * configure.ac: Use LDFLAGS="${LDFLAGS_FOR_BUILD}" when running
2440         configure for the build system.
2441         (BUILD_LDFLAGS): Define.
2442         * configure: Regenerate.
2443         * Makefile.in (BUILD_LDFLAGS): Define to @BUILD_LDFLAGS@.
2444
2445 2008-07-08  Anatoly Sokolov  <aesok@post.ru>
2446
2447         PR target/36424
2448         * config/avr/avr.h (HARD_REGNO_RENAME_OK): Define.
2449         * config/avr/avr.c (avr_hard_regno_rename_ok): New function. 
2450         * config/avr/avr-protos.h (avr_hard_regno_rename_ok): New prototype. 
2451
2452 2008-06-07  Danny Smith  <dannysmith@users.sourceforge.net>
2453
2454         * config/i386/cygming.h (MAYBE_UWIN_CPP_BUILTINS): Remove.
2455
2456 2008-06-07  Joseph Myers  <joseph@codesourcery.com>
2457
2458         * config.gcc (Obsolete configurations): Remove list of
2459         configurations.
2460         (Unsupported targets list): Add *-*-linux*aout*, *-*-linux*libc1*,
2461         *-*-solaris2.[0-6], *-*-solaris2.[0-6].*, *-*-sysv*.  Remove other
2462         targets matched by those patterns.
2463         (strongarm*-*-*, ep9312*-*-*, xscale-*-*, parisc*-*-*,
2464         m680[012]0-*-*, *-*-linux*libc1*, *-*-linux*aout*,
2465         alpha*-*-unicosmk*, strongarm*-*-freebsd*, ep9312-*-elf,
2466         arm*-*-kaos*, cris-*-aout, parisc*64*-*-linux*, parisc*-*-linux*,
2467         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
2468         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
2469         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-sco3.2v5*,
2470         i[34567]86-*-sysv5*, i[34567]86-*-sysv4*, i[34567]86-*-uwin*,
2471         i[34567]86-*-kaos*, m68020-*-elf*, m68010-*-netbsdelf*,
2472         mips-wrs-windiss, mt-*-elf, powerpc-*-beos*, powerpc-*-chorusos*,
2473         powerpc-wrs-windiss*, powerpcle-*-sysv*, powerpc-*-kaos*,
2474         powerpcle-*-kaos*, sh*-*-kaos*, sparc-*-sysv4*, strongarm-*-elf*,
2475         strongarm-*-pe, strongarm-*-kaos*, vax-*-bsd*, vax-*-sysv*,
2476         vax-*-ultrix*, xscale-*-elf, xscale-*-coff,
2477         i[34567]86-*-linux*aout*, i[34567]86-*-linux*libc1): Remove.
2478         Make code for Solaris 7 and greater unconditional for Solaris.
2479         (ep9312-*-*, parisc1*, m680[012]0-*-*, parisc*-*-*, mt-*-*):
2480         Remove --with-* handling.
2481         * config/rs6000/sysv4.h (-mwindiss): Remove from all specs.
2482         (LIB_WINDISS_SPEC, CPP_OS_WINDISS_SPEC, STARTFILE_WINDISS_SPEC,
2483         ENDFILE_WINDISS_SPEC, LINK_START_WINDISS_SPEC,
2484         LINK_OS_WINDISS_SPEC): Remove.
2485         * config/rs6000/sysv4.opt (mwindiss): Remove.
2486         * configure.ac (strongarm*-*-*, xscale*-*-*): Remove.
2487         * configure: Regenerate.
2488         * doc/cpp.texi: Don't mention BeOS.
2489         * doc/extend.texi (interrupt): Don't mention MS1.
2490         * doc/install.texi: (i386-@var{any}-sysv, m68k-bull-sysv,
2491         m68k-hp-hpux, m68000-hp-hpux, m68000-att-sysv,
2492         alphaev5-cray-unicosmk*, xscale-*-*, i?86-*-linux*aout,
2493         i?86-*-sco3.2v5*, i?86-*-udk, m68k-hp-hpux, powerpc-*-sysv4,
2494         powerpc-*-sysv4, powerpcle-*-sysv4, *-*-sysv*, vax-dec-ultrix):
2495         Remove.
2496         * doc/invoke.texi (MT Options): Remove.
2497         (-mwindiss): Remove.
2498         (CRIS Options): Remove cris-axis-aout references.
2499         (HPPA Options): Don't mention hppa1.1-*-pro.
2500         * doc/md.texi: (MorphoTech family): Remove.
2501         * libgcc2.c: Don't handle UWIN.
2502         * config/alpha/t-unicosmk: Remove.
2503         * config/alpha/unicosmk.h: Remove.
2504         * config/arm/kaos-arm.h: Remove.
2505         * config/arm/kaos-strongarm.h: Remove.
2506         * config/arm/strongarm-coff.h: Remove.
2507         * config/arm/strongarm-elf.h: Remove.
2508         * config/arm/strongarm-pe.h: Remove.
2509         * config/arm/t-strongarm-pe: Remove.
2510         * config/arm/t-xscale-coff: Remove.
2511         * config/arm/t-xscale-elf: Remove.
2512         * config/arm/xscale-coff.h: Remove.
2513         * config/arm/xscale-elf.h: Remove.
2514         * config/chorus.h: Remove.
2515         * config/cris/aout.h: Remove.
2516         * config/cris/aout.opt: Remove.
2517         * config/cris/t-aout: Remove.
2518         * config/i386/beos-elf.h: Remove.
2519         * config/i386/kaos-i386.h: Remove.
2520         * config/i386/ptx4-i.h: Remove.
2521         * config/i386/sco5.h: Remove.
2522         * config/i386/sco5.opt: Remove.
2523         * config/i386/sysv4-cpp.h: Remove.
2524         * config/i386/sysv5.h: Remove.
2525         * config/i386/t-beos: Remove.
2526         * config/i386/t-sco5: Remove.
2527         * config/i386/t-uwin: Remove.
2528         * config/i386/uwin.asm: Remove.
2529         * config/i386/uwin.h: Remove.
2530         * config/kaos.h: Remove.
2531         * config/mips/windiss.h: Remove.
2532         * config/mt: Remove directory.
2533         * config/pa/pa-osf.h: Remove.
2534         * config/pa/pa-pro-end.h: Remove.
2535         * config/pa/t-pro: Remove.
2536         * config/ptx4.h: Remove.
2537         * config/rs6000/beos.h: Remove.
2538         * config/rs6000/kaos-ppc.h: Remove.
2539         * config/rs6000/t-beos: Remove.
2540         * config/rs6000/windiss.h: Remove.
2541         * config/sh/kaos-sh.h: Remove.
2542         * config/sol2-6.h: Remove.
2543         * config/sparc/sol26-sld.h: Remove.
2544         * config/sparc/sysv4-only.h: Remove.
2545         * config/vax/bsd.h: Remove.
2546         * config/vax/t-memfuncs: Remove.
2547         * config/vax/ultrix.h: Remove.
2548         * config/vax/vaxv.h: Remove.
2549         * config/windiss.h: Remove.
2550
2551 2008-06-06  Uros Bizjak <ubizjak@gmail.com>
2552
2553         PR rtl-optimization/36438
2554         * cse.c (fold_rtx) [ASHIFT, LSHIFTRT, ASHIFTRT]: Break out early
2555         for vector shifts with constant scalar shift operands.
2556
2557 2008-06-06  Sandip Matte  <sandip@rmicorp.com>
2558
2559         * doc/invoke.texi: Document -march=xlr.
2560         * config/mips/xlr.md: New file.
2561         * config/mips/mips.md: Include it.
2562         (cpu): Add "xlr".
2563         * config/mips/mips.h (PROCESSOR_XLR): New processor_type.
2564         * config/mips/mips.c (mips_cpu_info_table): Add an XLR entry.
2565         (mips_rtx_cost_data): Likewise.
2566
2567 2008-06-06  Nathan Froyd  <froydnj@codesourcery.com>
2568
2569         * config/rs6000/rs6000.c (rs6000_mode_dependent_address): Remove
2570         PRE_INC and PRE_DEC cases.
2571
2572 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2573
2574         PR rtl-optimization/36419
2575         * except.c (expand_resx_expr): Call do_pending_stack_adjust () before
2576         the emitting jump insn.
2577
2578         PR target/36362
2579         * gimplify.c (gimplify_expr) <case TRUTH_NOT_EXPR>: If *expr_p type
2580         is not bool, boolify the whole *expr_p and convert to the desired type.
2581
2582 2008-06-06  Jakub Jelinek  <jakub@redhat.com>
2583
2584         * c-cppbuiltin.c (c_cpp_builtins): Change _OPENMP value to 200805.
2585         * langhooks.h (struct lang_hooks_for_decls): Add omp_finish_clause.
2586         Add omp_private_outer_ref hook, add another argument to
2587         omp_clause_default_ctor hook.
2588         * langhooks-def.h (LANG_HOOKS_OMP_FINISH_CLAUSE): Define.
2589         (LANG_HOOKS_OMP_PRIVATE_OUTER_REF): Define.
2590         (LANG_HOOKS_OMP_CLAUSE_DEFAULT_CTOR): Change to
2591         hook_tree_tree_tree_tree_null.
2592         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_FINISH_CLAUSE and
2593         LANG_HOOKS_OMP_PRIVATE_OUTER_REF.
2594         * hooks.c (hook_tree_tree_tree_tree_null): New function.
2595         * hooks.h (hook_tree_tree_tree_tree_null): New prototype.
2596         * tree.def (OMP_TASK): New tree code.
2597         * tree.h (OMP_TASK_COPYFN, OMP_TASK_ARG_SIZE, OMP_TASK_ARG_ALIGN,
2598         OMP_CLAUSE_PRIVATE_OUTER_REF, OMP_CLAUSE_LASTPRIVATE_STMT,
2599         OMP_CLAUSE_COLLAPSE_ITERVAR, OMP_CLAUSE_COLLAPSE_COUNT,
2600         OMP_TASKREG_CHECK, OMP_TASKREG_BODY, OMP_TASKREG_CLAUSES,
2601         OMP_TASKREG_FN, OMP_TASKREG_DATA_ARG, OMP_TASK_BODY,
2602         OMP_TASK_CLAUSES, OMP_TASK_FN, OMP_TASK_DATA_ARG,
2603         OMP_CLAUSE_COLLAPSE_EXPR): Define.
2604         (enum omp_clause_default_kind): Add OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
2605         (OMP_DIRECTIVE_P): Add OMP_TASK.
2606         (OMP_CLAUSE_COLLAPSE, OMP_CLAUSE_UNTIED): New clause codes.
2607         (OMP_CLAUSE_SCHEDULE_AUTO): New schedule kind.
2608         * tree.c (omp_clause_code_name): Add OMP_CLAUSE_COLLAPSE
2609         and OMP_CLAUSE_UNTIED entries.
2610         (omp_clause_num_ops): Likewise.  Increase OMP_CLAUSE_LASTPRIVATE
2611         num_ops to 2.
2612         (walk_tree_1): Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2613         Walk OMP_CLAUSE_LASTPRIVATE_STMT.
2614         * tree-pretty-print.c (dump_omp_clause): Handle
2615         OMP_CLAUSE_SCHEDULE_AUTO, OMP_CLAUSE_UNTIED, OMP_CLAUSE_COLLAPSE,
2616         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.
2617         (dump_generic_node): Handle OMP_TASK and collapsed OMP_FOR loops.
2618         * c-omp.c (c_finish_omp_for): Allow pointer iterators.  Remove
2619         warning about unsigned iterators.  Change decl/init/cond/incr
2620         arguments to TREE_VECs, check arguments for all collapsed loops.
2621         (c_finish_omp_taskwait): New function.
2622         (c_split_parallel_clauses): Put OMP_CLAUSE_COLLAPSE clause to
2623         ws_clauses.
2624         * c-parser.c (c_parser_omp_for_loop): Parse collapsed loops.  Call
2625         default_function_array_conversion on init.  Add par_clauses argument.
2626         If decl is present in parallel's lastprivate clause, change it to
2627         shared and add lastprivate clause for decl to OMP_FOR_CLAUSES.
2628         Add clauses argument, on success set OMP_FOR_CLAUSES to it.  Look up
2629         collapse count in clauses.
2630         (c_parser_omp_for, c_parser_omp_parallel): Adjust
2631         c_parser_omp_for_loop callers.
2632         (OMP_FOR_CLAUSE_MASK): Add 1 << PRAGMA_OMP_CLAUSE_COLLAPSE.
2633         (c_parser_pragma): Handle PRAGMA_OMP_TASKWAIT.
2634         (c_parser_omp_clause_name): Handle collapse and untied clauses.
2635         (c_parser_omp_clause_collapse, c_parser_omp_clause_untied): New
2636         functions.
2637         (c_parser_omp_clause_schedule): Handle schedule(auto).
2638         Include correct location in the error message.
2639         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_COLLAPSE
2640         and PRAGMA_OMP_CLAUSE_UNTIED.
2641         (OMP_TASK_CLAUSE_MASK): Define.
2642         (c_parser_omp_task, c_parser_omp_taskwait): New functions.
2643         (c_parser_omp_construct): Handle PRAGMA_OMP_TASK.
2644         * tree-nested.c (convert_nonlocal_omp_clauses,
2645         convert_local_omp_clauses): Handle OMP_CLAUSE_LASTPRIVATE_STMT,
2646         OMP_CLAUSE_REDUCTION_INIT, OMP_CLAUSE_REDUCTION_MERGE,
2647         OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2648         Don't handle TREE_STATIC or DECL_EXTERNAL VAR_DECLs in
2649         OMP_CLAUSE_DECL.
2650         (conver_nonlocal_reference, convert_local_reference,
2651         convert_call_expr): Handle OMP_TASK the same as OMP_PARALLEL.  Use
2652         OMP_TASKREG_* macros rather than OMP_PARALLEL_*.
2653         (walk_omp_for): Adjust for OMP_FOR_{INIT,COND,INCR} changes.
2654         * tree-gimple.c (is_gimple_stmt): Handle OMP_TASK.
2655         * c-tree.h (c_begin_omp_task, c_finish_omp_task): New prototypes.
2656         * c-pragma.h (PRAGMA_OMP_TASK, PRAGMA_OMP_TASKWAIT): New.
2657         (PRAGMA_OMP_CLAUSE_COLLAPSE, PRAGMA_OMP_CLAUSE_UNTIED): New.
2658         * c-typeck.c (c_begin_omp_task, c_finish_omp_task): New functions.
2659         (c_finish_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
2660         OMP_CLAUSE_UNTIED.
2661         * c-pragma.c (init_pragma): Init omp task and omp taskwait pragmas.
2662         * c-common.h (c_finish_omp_taskwait): New prototype.
2663         * gimple-low.c (lower_stmt): Handle OMP_TASK.
2664         * tree-parloops.c (create_parallel_loop): Create 1 entry
2665         vectors for OMP_FOR_{INIT,COND,INCR}.
2666         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
2667         (make_edges): Handle OMP_TASK.
2668         * tree-ssa-operands.c (get_expr_operands): Handle collapsed OMP_FOR
2669         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2670         * tree-inline.c (estimate_num_insns_1): Handle OMP_TASK.
2671         * builtin-types.def (BT_PTR_ULONGLONG, BT_PTR_FN_VOID_PTR_PTR,
2672         BT_FN_BOOL_ULONGLONGPTR_ULONGLONGPTR,
2673         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULLPTR_ULLPTR,
2674         BT_FN_BOOL_BOOL_ULL_ULL_ULL_ULL_ULLPTR_ULLPTR,
2675         BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT): New.
2676         * omp-builtins.def (BUILT_IN_GOMP_TASK, BUILT_IN_GOMP_TASKWAIT,
2677         BUILT_IN_GOMP_LOOP_ULL_STATIC_START,
2678         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_START,
2679         BUILT_IN_GOMP_LOOP_ULL_GUIDED_START,
2680         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_START,
2681         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_START,
2682         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_START,
2683         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_START,
2684         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_START,
2685         BUILT_IN_GOMP_LOOP_ULL_STATIC_NEXT,
2686         BUILT_IN_GOMP_LOOP_ULL_DYNAMIC_NEXT,
2687         BUILT_IN_GOMP_LOOP_ULL_GUIDED_NEXT,
2688         BUILT_IN_GOMP_LOOP_ULL_RUNTIME_NEXT,
2689         BUILT_IN_GOMP_LOOP_ULL_ORDERED_STATIC_NEXT,
2690         BUILT_IN_GOMP_LOOP_ULL_ORDERED_DYNAMIC_NEXT,
2691         BUILT_IN_GOMP_LOOP_ULL_ORDERED_GUIDED_NEXT,
2692         BUILT_IN_GOMP_LOOP_ULL_ORDERED_RUNTIME_NEXT): New builtins.
2693         * gimplify.c (gimplify_omp_for): Allow pointer type for decl,
2694         handle POINTER_PLUS_EXPR.  If loop counter has been replaced and
2695         original iterator is present in lastprivate clause or if
2696         collapse > 1, set OMP_CLAUSE_LASTPRIVATE_STMT.  Handle collapsed
2697         OMP_FOR loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2698         (gimplify_expr): Handle OMP_SECTIONS_SWITCH and OMP_TASK.
2699         (enum gimplify_omp_var_data): Add GOVD_PRIVATE_OUTER_REF.
2700         (omp_notice_variable): Set GOVD_PRIVATE_OUTER_REF if needed,
2701         if it is set, lookup var in outer contexts too.  Handle
2702         OMP_CLAUSE_DEFAULT_FIRSTPRIVATE.  Handle vars that are supposed
2703         to be implicitly determined firstprivate for task regions.
2704         (gimplify_scan_omp_clauses): Set GOVD_PRIVATE_OUTER_REF if needed,
2705         if it is set, lookup var in outer contexts too.  Set
2706         OMP_CLAUSE_PRIVATE_OUTER_REF if GOVD_PRIVATE_OUTER_REF is set.
2707         Handle OMP_CLAUSE_LASTPRIVATE_STMT, OMP_CLAUSE_COLLAPSE and
2708         OMP_CLAUSE_UNTIED.  Take region_type as last argument
2709         instead of in_parallel and in_combined_parallel.
2710         (gimplify_omp_parallel, gimplify_omp_for, gimplify_omp_workshare):
2711         Adjust callers.
2712         (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_PRIVATE_OUTER_REF if
2713         GOVD_PRIVATE_OUTER_REF is set.  Call omp_finish_clause langhook.
2714         (new_omp_context): Set default_kind to
2715         OMP_CLAUSE_DEFAULT_UNSPECIFIED for OMP_TASK regions.
2716         (omp_region_type): New enum.
2717         (struct gimplify_omp_ctx): Remove is_parallel and is_combined_parallel
2718         fields, add region_type.
2719         (new_omp_context): Take region_type as argument instead of is_parallel
2720         and is_combined_parallel.
2721         (gimple_add_tmp_var, omp_firstprivatize_variable, omp_notice_variable,
2722         omp_is_private, omp_check_private): Adjust ctx->is_parallel and
2723         ctx->is_combined_parallel checks.
2724         (gimplify_omp_task): New function.
2725         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_COLLAPSE and
2726         OMP_CLAUSE_UNTIED.
2727         * omp-low.c (extract_omp_for_data): Use schedule(static)
2728         for schedule(auto).  Handle pointer and unsigned iterators.
2729         Compute fd->iter_type.  Handle POINTER_PLUS_EXPR increments.
2730         Add loops argument.  Extract data for collapsed OMP_FOR loops.
2731         (expand_parallel_call): Assert sched_kind isn't auto,
2732         map runtime schedule to index 3.
2733         (struct omp_for_data_loop): New type.
2734         (struct omp_for_data): Remove v, n1, n2, step, cond_code fields.
2735         Add loop, loops, collapse and iter_type fields.
2736         (workshare_safe_to_combine_p): Disallow combined for if
2737         iter_type is unsigned long long.  Don't combine collapse > 1 loops
2738         unless all bounds and steps are constant.  Adjust extract_omp_for_data
2739         caller.
2740         (expand_omp_for_generic): Handle pointer, unsigned and long long
2741         iterators.  Handle collapsed OMP_FOR loops.  Adjust
2742         for struct omp_for_data changes.  If libgomp function doesn't return
2743         boolean_type_node, add comparison of the return value with 0.
2744         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk): Handle
2745         pointer, unsigned and long long iterators.  Adjust for struct
2746         omp_for_data changes.
2747         (expand_omp_for): Assert sched_kind isn't auto, map runtime schedule
2748         to index 3.  Use GOMP_loop_ull*{start,next} if iter_type is
2749         unsigned long long.  Allocate loops array, pass it to
2750         extract_omp_for_data.  For collapse > 1 loops use always
2751         expand_omp_for_generic.
2752         (omp_context): Add sfield_map and srecord_type fields.
2753         (is_task_ctx, lookup_sfield): New functions.
2754         (use_pointer_for_field): Use is_task_ctx helper.  Change first
2755         argument's type from const_tree to tree.  Clarify comment.
2756         In OMP_TASK disallow copy-in/out sharing.
2757         (build_sender_ref): Call lookup_sfield instead of lookup_field.
2758         (install_var_field): Add mask argument.  Populate both record_type
2759         and srecord_type if needed.
2760         (delete_omp_context): Destroy sfield_map, clear DECL_ABSTRACT_ORIGIN
2761         in srecord_type.
2762         (fixup_child_record_type): Also remap FIELD_DECL's DECL_SIZE{,_UNIT}
2763         and DECL_FIELD_OFFSET.
2764         (scan_sharing_clauses): Adjust install_var_field callers.  For
2765         firstprivate clauses on explicit tasks allocate the var by value in
2766         record_type unconditionally, rather than by reference.
2767         Handle OMP_CLAUSE_PRIVATE_OUTER_REF.  Scan OMP_CLAUSE_LASTPRIVATE_STMT.
2768         Use is_taskreg_ctx instead of is_parallel_ctx.
2769         Handle OMP_CLAUSE_COLLAPSE and OMP_CLAUSE_UNTIED.
2770         (create_omp_child_function_name): Add task_copy argument, use
2771         *_omp_cpyfn* names if it is true.
2772         (create_omp_child_function): Add task_copy argument, if true create
2773         *_omp_cpyfn* helper function.
2774         (scan_omp_parallel): Adjust create_omp_child_function callers.
2775         Rename parallel_nesting_level to taskreg_nesting_level.
2776         (scan_omp_task): New function.
2777         (lower_rec_input_clauses): Don't run constructors for firstprivate
2778         explicit task vars which are initialized by *_omp_cpyfn*.  
2779         Pass outer var ref to omp_clause_default_ctor hook if
2780         OMP_CLAUSE_PRIVATE_OUTER_REF or OMP_CLAUSE_LASTPRIVATE.
2781         Replace OMP_CLAUSE_REDUCTION_PLACEHOLDER decls in
2782         OMP_CLAUSE_REDUCTION_INIT.
2783         (lower_send_clauses): Clear DECL_ABSTRACT_ORIGIN if in task to
2784         avoid duplicate setting of fields.  Handle
2785         OMP_CLAUSE_PRIVATE_OUTER_REF.
2786         (lower_send_shared_vars): Use srecord_type if non-NULL.  Don't
2787         copy-out if TREE_READONLY, only copy-in.
2788         (expand_task_copyfn): New function.
2789         (expand_task_call): New function.
2790         (struct omp_taskcopy_context): New type.
2791         (task_copyfn_copy_decl, task_copyfn_remap_type, create_task_copyfn):
2792         New functions.
2793         (lower_omp_parallel): Rename to...
2794         (lower_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
2795         Call create_task_copyfn if srecord_type is needed.  Adjust
2796         sender_decl type.
2797         (task_shared_vars): New variable.
2798         (check_omp_nesting_restrictions): Warn if work-sharing,
2799         barrier, master or ordered region is closely nested inside OMP_TASK.
2800         Add warnings for barrier if closely nested inside of work-sharing,
2801         ordered, or master region.
2802         (scan_omp_1): Call check_omp_nesting_restrictions even for
2803         GOMP_barrier calls.  Rename parallel_nesting_level to
2804         taskreg_nesting_level.  Handle OMP_TASK.
2805         (lower_lastprivate_clauses): Even if some lastprivate is found on a
2806         work-sharing construct, continue looking for them on parent parallel
2807         construct.
2808         (lower_omp_for_lastprivate): Add lastprivate clauses
2809         to the beginning of dlist rather than end.  Adjust for struct
2810         omp_for_data changes.
2811         (lower_omp_for): Add rec input clauses before OMP_FOR_PRE_BODY,
2812         not after it.  Handle collapsed OMP_FOR loops, adjust for
2813         OMP_FOR_{INIT,COND,INCR} changes, adjust extract_omp_for_data caller.
2814         (get_ws_args_for): Adjust extract_omp_for_data caller.
2815         (scan_omp_for): Handle collapsed OMP_FOR
2816         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.
2817         (lower_omp_single_simple): If libgomp function doesn't return
2818         boolean_type_node, add comparison of the return value with 0.
2819         (diagnose_sb_1, diagnose_sb_2): Handle collapsed OMP_FOR
2820         loops, adjust for OMP_FOR_{INIT,COND,INCR} changes.  Handle OMP_TASK.
2821         (parallel_nesting_level): Rename to...
2822         (taskreg_nesting_level): ... this.
2823         (is_taskreg_ctx): New function.
2824         (build_outer_var_ref, omp_copy_decl): Use is_taskreg_ctx instead
2825         of is_parallel_ctx.
2826         (execute_lower_omp): Rename parallel_nesting_level to
2827         taskreg_nesting_level.
2828         (expand_omp_parallel): Rename to...
2829         (expand_omp_taskreg): ... this.  Use OMP_TASKREG_* macros where needed.
2830         Call omp_task_call for OMP_TASK regions.
2831         (expand_omp): Adjust caller, handle OMP_TASK.
2832         (lower_omp_1): Adjust lower_omp_taskreg caller, handle OMP_TASK.
2833
2834         * bitmap.c (bitmap_default_obstack_depth): New variable.
2835         (bitmap_obstack_initialize, bitmap_obstack_release): Do nothing
2836         if argument is NULL and bitmap_default_obstack is already initialized.
2837         * ipa-struct-reorg.c (do_reorg_1): Call bitmap_obstack_release
2838         at the end.
2839         * matrix-reorg.c (matrix_reorg): Likewise.
2840
2841 2008-06-06  Uros Bizjak  <ubizjak@gmail.com>
2842
2843         * config/i386/i386.md (*indirect_jump): Macroize using P
2844         mode iterator.  Remove !TARGET_64BIT from insn constraints.
2845         (*tablejump_1): Ditto.
2846         (*indirect_jump_rex64): Remove insn pattern.
2847         (*tablejump_1_rex64): Ditto.
2848         (eh_return_<mode>): Macroize using P mode iterator from eh_return_di
2849         and eh_return_si insn patterns.
2850
2851 2008-06-06  Richard Guenther  <rguenther@suse.de>
2852
2853         * tree-ssa-structalias.c (merge_smts_into): Remove.
2854         (find_what_p_points_to): Do not bother to compute the
2855         points-to set for pt_anything pointers.
2856         * tree-ssa-operands.c (get_addr_dereference_operands): No NMT
2857         for pt_anything pointers is ok.
2858
2859 2008-06-06  Jan Hubicka  <jh@suse.cz>
2860
2861         * passes.c (execute_ipa_pass_list): Do not regenerate summaries.
2862
2863 2008-06-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2864
2865         * cgraph.c: Fix typos in comments.
2866         (cgraph_availability_names): Fix string typo.
2867         * fold-const.c: Fix typos in comments.
2868         (fold_binary): Fix typo in warning.
2869         * genautomata.c: Fix typos in comments.
2870         (check_presence_pattern_sets): Fix typo in local variable.
2871         (output_description): Fix typo in output.
2872         * ggc-zone.c (ggc_pch_finish): Fix typo in error message.
2873         * hwint.h: Likewise.
2874         * matrix-reorg.c (check_allocation_function): Likewise.
2875         * omega.c (smooth_weird_equations): Likewise.
2876         * auto-inc-dec.c: Fix typos in comments.
2877         * bb-reorder.c: Likewise.
2878         * builtins.c: Likewise.
2879         * c-common.c: Likewise.
2880         * c-cppbuiltin.c: Likewise.
2881         * c-parser.c: Likewise.
2882         * c-pretty-print.c: Likewise.
2883         * cfgcleanup.c: Likewise.
2884         * cfgexpand.c: Likewise.
2885         * cfghooks.c: Likewise.
2886         * cfglayout.c: Likewise.
2887         * cfgloopmanip.c: Likewise.
2888         * cgraphunit.c: Likewise.
2889         * coverage.c: Likewise.
2890         * dbxout.c: Likewise.
2891         * df-byte-scan.c: Likewise.
2892         * df-core.c: Likewise.
2893         * df-problems.c: Likewise.
2894         * df-scan.c: Likewise.
2895         * dfp.c: Likewise.
2896         * dominance.c: Likewise.
2897         * domwalk.c: Likewise.
2898         * dse.c: Likewise.
2899         * dwarf2out.c: Likewise.
2900         * emit-rtl.c: Likewise.
2901         * et-forest.c: Likewise.
2902         * function.c: Likewise.
2903         * function.h: Likewise.
2904         * gcc.c: Likewise.
2905         * gcov-io.c: Likewise.
2906         * gcov.c: Likewise.
2907         * gcse.c: Likewise.
2908         * genattrtab.c: Likewise.
2909         * ggc-page.c: Likewise.
2910         * gimplify.c: Likewise.
2911         * gthr-lynx.h: Likewise.
2912         * haifa-sched.c: Likewise.
2913         * ipa-cp.c: Likewise.
2914         * ipa-inline.c: Likewise.
2915         * ipa-prop.h: Likewise.
2916         * ipa-pure-const.c: Likewise.
2917         * ipa-struct-reorg.c: Likewise.
2918         * ipa-struct-reorg.h: Likewise.
2919         * ipa-type-escape.c: Likewise.
2920         * ipa.c: Likewise.
2921         * loop-doloop.c: Likewise.
2922         * mips-tfile.c: Likewise.
2923         * mkmap-flat.awk: Likewise.
2924         * mkmap-symver.awk: Likewise.
2925         * modulo-sched.c: Likewise.
2926         * omp-low.c: Likewise.
2927         * optabs.c: Likewise.
2928         * optabs.h: Likewise.
2929         * opts.c: Likewise.
2930         * passes.c: Likewise.
2931         * postreload-gcse.c: Likewise.
2932         * postreload.c: Likewise.
2933         * predict.c: Likewise.
2934         * pretty-print.h: Likewise.
2935         * profile.c: Likewise.
2936         * protoize.c: Likewise.
2937         * ra-conflict.c: Likewise.
2938         * real.c: Likewise.
2939         * recog.c: Likewise.
2940         * regclass.c: Likewise.
2941         * regs.h: Likewise.
2942         * reload.c: Likewise.
2943         * rtl-error.c: Likewise.
2944         * rtlanal.c: Likewise.
2945         * scan.h: Likewise.
2946         * sched-rgn.c: Likewise.
2947         * see.c: Likewise.
2948         * stmt.c: Likewise.
2949         * target.h: Likewise.
2950         * tree-dfa.c: Likewise.
2951         * tree-eh.c: Likewise.
2952         * tree-flow-inline.h: Likewise.
2953         * tree-inline.c: Likewise.
2954         * tree-into-ssa.c: Likewise.
2955         * tree-loop-distribution.c: Likewise.
2956         * tree-nested.c: Likewise.
2957         * tree-parloops.c: Likewise.
2958         * tree-pass.h: Likewise.
2959         * tree-pretty-print.c: Likewise.
2960         * tree-profile.c: Likewise.
2961         * tree-scalar-evolution.c: Likewise.
2962         * tree-sra.c: Likewise.
2963         * tree-ssa-alias-warnings.c: Likewise.
2964         * tree-ssa-ccp.c: Likewise.
2965         * tree-ssa-coalesce.c: Likewise.
2966         * tree-ssa-dom.c: Likewise.
2967         * tree-ssa-dse.c: Likewise.
2968         * tree-ssa-forwprop.c: Likewise.
2969         * tree-ssa-live.c: Likewise.
2970         * tree-ssa-live.h: Likewise.
2971         * tree-ssa-loop-im.c: Likewise.
2972         * tree-ssa-loop-ivopts.c: Likewise.
2973         * tree-ssa-loop-niter.c: Likewise.
2974         * tree-ssa-loop-prefetch.c: Likewise.
2975         * tree-ssa-phiopt.c: Likewise.
2976         * tree-ssa-phiprop.c: Likewise.
2977         * tree-ssa-sccvn.c: Likewise.
2978         * tree-ssa-ter.c: Likewise.
2979         * tree-ssa-threadupdate.c: Likewise.
2980         * tree-ssa.c: Likewise.
2981         * tree-vect-analyze.c: Likewise.
2982         * tree-vect-transform.c: Likewise.
2983         * tree-vectorizer.c: Likewise.
2984         * tree-vn.c: Likewise.
2985         * tree-vrp.c: Likewise.
2986         * tree.c: Likewise.
2987         * tree.def: Likewise.
2988         * tree.h: Likewise.
2989         * unwind-dw2-fde.c: Likewise.
2990         * unwind.inc: Likewise.
2991         * value-prof.c: Likewise.
2992         * vmsdbgout.c: Likewise.
2993
2994 2008-06-05  David Edelsohn  <edelsohn@gnu.org>
2995
2996         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Do not
2997         always place FP constants in the TOC for TARGET_POWERPC64.
2998         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Same.
2999
3000 2008-06-05  Joseph Myers  <joseph@codesourcery.com>
3001
3002         * config.gcc (powerpc-*-linux*spe*): Use t-dfprules.
3003         * config/rs6000/dfp.md (negdd2, absdd2, negtd2, abstd2): Do not
3004         enable for TARGET_E500_DOUBLE.
3005         (*movdd_softfloat32): Also enable for !TARGET_FPRS.
3006         * config/rs6000/rs6000.c (invalid_e500_subreg): Treat decimal
3007         floating-point modes like integer modes for E500 double.
3008         (rs6000_legitimate_offset_address_p): Likewise.
3009         (rs6000_legitimize_address): Likewise.  Do not allow REG+REG
3010         addressing for DDmode for E500 double.
3011         (rs6000_hard_regno_nregs): Do not treat decimal floating-point
3012         modes as using 64-bits of registers for E500 double.
3013         (spe_build_register_parallel): Do not handle DDmode or TDmode.
3014         (rs6000_spe_function_arg): Do not handle DDmode or TDmode
3015         specially for E500 double.
3016         (function_arg): Do not call rs6000_spe_function_arg for DDmode or
3017         TDmode for E500 double.
3018         (rs6000_gimplify_va_arg): Only handle SDmode in registers
3019         specially if TARGET_HARD_FLOAT && TARGET_FPRS.
3020         (rs6000_split_multireg_move): Do not handle TDmode specially for
3021         E500 double.
3022         (spe_func_has_64bit_regs_p): Do not treat DDmode or TDmode as
3023         using 64-bit registers for E500 double.
3024         (emit_frame_save): Do not handle DDmode specially for E500 double.
3025         (gen_frame_mem_offset): Likewise.
3026         (rs6000_function_value): Do not call spe_build_register_parallel
3027         for DDmode or TDmode.
3028         (rs6000_libcall_value): Likewise.
3029         * config/rs6000/rs6000.h (LOCAL_ALIGNMENT, MEMBER_TYPE_FORCES_BLK,
3030         DATA_ALIGNMENT, CLASS_MAX_NREGS): Do not handle DDmode specially
3031         for E500 double.
3032
3033 2008-06-04  H.J. Lu  <hongjiu.lu@intel.com>
3034
3035         * config/i386/i386.c (setup_incoming_varargs_64): Fix a typo
3036         in comments.
3037
3038 2008-06-04  Junjie Gu <jgu@tensilica.com>
3039
3040         * config/xtensa/lib2funcs.S (__xtensa_nonlocal_goto): Use unsigned
3041         comparison for frame pointers.
3042
3043 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3044
3045         PR target/27386
3046         * config/avr/avr.h (PUSH_ROUNDING): Remove.
3047
3048 2008-06-04  Andy Hutchinson  <hutchinsonandy@aim.com>
3049
3050         PR target/30243
3051         * builtins.c (expand_builtin_signbit): Don't take lowpart when
3052         register is already smaller or equal to required mode. 
3053
3054 2008-06-04  Xinliang David Li  <davidxl@google.com>
3055
3056         * tree-call-cdce.c: New file. 
3057         (cond_dead_built_in_calls): New static variable.
3058         (input_domain): New struct.
3059         (check_pow): New function.
3060         (check_builtin_call): Ditto.
3061         (check_target_format): Ditto.
3062         (is_call_dce_candidate): Ditto.
3063         (gen_one_condition): Ditto.
3064         (gen_conditions_for_domain): Ditto.
3065         (get_domain): Ditto.
3066         (gen_conditions_for_pow_cst_base): Ditto.
3067         (gen_conditions_for_pow_int_base): Ditto.
3068         (gen_conditions_for_pow): Ditto.
3069         (get_no_error_domain): Ditto.
3070         (gen_shrink_wrap_conditions): Ditto.
3071         (shrink_wrap_one_built_in_call): Ditto.
3072         (shink_wrap_conditional_dead_built_in_calls): Ditto.
3073         (tree_call_cdce): Ditto.
3074         (gate_call_cdce): Ditto.
3075         (pass_call_cdce): New gimple pass.
3076         * passes.c: (init_optimization_passes): New pass.
3077         * tree-pass.h: New pass declaration.
3078         * opts.c (decode_options): New flag setting.
3079         * common.opt: Add -ftree-builtin-call-dce flag.
3080         * Makefile.in: Add new source file.
3081         * tempvar.def: New tv_id.
3082         * doc/invoke.texi (-ftree-builtin-call-dce): New flag.
3083
3084 2008-06-04  Richard Guenther  <rguenther@suse.de>
3085
3086         * tree-flow-inline.h (is_global_var): Do not check TREE_STATIC on MTAGs.
3087         (is_call_clobbered): Always check var_ann->call_clobbered.
3088         (mark_call_clobbered): Always set var_ann->call_clobbered.
3089         (clear_call_clobbered): Always clear var_ann->call_clobbered.
3090         * tree-ssa-alias.c (mark_non_addressable): Use clear_call_clobbered.
3091         (reset_alias_info): Clear call clobbering info on MTAGs and
3092         globals as well.
3093         (set_pt_anything): Set pt_global_mem.
3094         (create_tag_raw): Adjust comment.
3095         (may_be_aliased): Do not check TREE_PUBLIC on MTAGs.
3096
3097 2008-06-04  Joseph Myers  <joseph@codesourcery.com>
3098             Maxim Kuvyrkov  <maxim@codesourcery.com>
3099
3100         * config/m68k/m68k.opt (mxgot): New option.
3101         * config/m68k/m68k.c (legitimize_pic_address): Handle -mxgot.
3102         (m68k_output_addr_const_extra): New.
3103         * config/m68k/m68k.h (OUTPUT_ADDR_CONST_EXTRA): New.
3104         * config/m68k/m68k-protos.h (m68k_output_addr_const_extra): Declare.
3105         * config/m68k/m68k.md (UNSPEC_GOTOFF): Define.
3106         * doc/invoke.texi (M680x0 Options): Document -mxgot.
3107
3108 2008-06-04  Richard Guenther  <rguenther@suse.de>
3109
3110         * tree-ssa-structalias.c (handle_ptr_arith): Correctly handle
3111         negative or non-representable offsets.
3112
3113 2008-06-03  H.J. Lu  <hongjiu.lu@intel.com>
3114
3115         * config/i386/i386.c (ix86_gen_leave): New.
3116         (ix86_gen_pop1): Likewise.
3117         (ix86_gen_add3): Likewise.
3118         (ix86_gen_sub3): Likewise.
3119         (ix86_gen_sub3_carry): Likewise.
3120         (ix86_gen_one_cmpl2): Likewise.
3121         (ix86_gen_monitor): Likewise.
3122         (override_options): Initialize ix86_gen_leave, ix86_gen_pop1,
3123         ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
3124         ix86_gen_one_cmpl2 and ix86_gen_monitor.
3125         (ix86_file_end): Use mov%z0 instead of mov{q}/mov{l}.
3126         (output_set_got): Use mov%z0, pop%z0 and add%z0 instead of
3127         mov{q}/mov{l}, pop{q}/pop{l} and add{q}/add{l}.
3128         (ix86_expand_epilogue): Updated.
3129         (print_operand): Handle integer register operand for 'z'.
3130         (ix86_expand_strlensi_unroll_1): Likewise.
3131         (ix86_expand_strlen): Likewise.
3132         (ix86_expand_builtin): Likewise.
3133         (x86_output_mi_thunk): Use mov%z1 and add%z1 instead of
3134         mov{q}/mov{l} and add{q}/add{l}.
3135
3136 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3137
3138         * config/i386/i386.md (P): New mode iterator.
3139         (SFmode push_operand splitter): Macroize DImode and SImode pushes
3140         using P mode iterator.
3141         (DFmode push_operand splitter): Ditto.
3142         (XFmode push_operand splitter): Ditto.
3143         (DFmode float_extend SFmode push_operand splitter): Ditto.
3144         (XFmode float_extend SFmode push_operand splitter): Do not generate
3145         SImode pushes for 64bit target.  Macroize Dimode and SImode
3146         pushes using P mode iterator.
3147         (XFmode float_extend DFmode push_operand splitter): Ditto.
3148
3149 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3150
3151         * config/i386/i386-protos.h (ix86_reg_parm_stack_space): New.
3152         * config/i386/i386.h (ix86_reg_parm_stack_space): Removed prototype.
3153         * config/i386/i386.c (ix86_reg_parm_stack_space): Changed
3154         return type to int.
3155         (ix86_call_abi_override): Remove check for call_used_regs.
3156
3157 2008-06-03  Richard Guenther  <rguenther@suse.de>
3158
3159         * tree-ssa-structalias.c (find_func_aliases): Add constraints
3160         for the lhs of calls if the return type contains pointers.
3161
3162 2008-06-03  Kai Tietz  <kai.tietz@onevision.com>
3163
3164         * doc/tm.texi (OVERRIDE_ABI_FORMAT): New.
3165         * doc/extend.texi (ms_abi,sysv_abi): New attribute description.
3166         * function.c (allocate_struct_function): Use of OVERRIDE_ABI_FORMAT.
3167         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Make use
3168         of cfun and DEFAULT_ABI to deceide abi mode.
3169         (DEFAULT_ABI): New.
3170         (REG_PARM_STACK_SPACE): Removed.
3171         (OUTGOING_REG_PARM_STACK_SPACE): Removed.
3172         (STACK_BOUNDARY): Use default target to deceide stack boundary.
3173         * config/i386/i386-protos.h (ix86_cfun_abi): New.
3174         (ix86_function_abi): Likewise.
3175         (ix86_function_type_abi): Likewise.
3176         (ix86_call_abi_override): Likewise.
3177         * confid/i386/i386.md (SSE_REGPARM_MAX): Replaced by abi
3178         specific define X86_64_SSE_REGPARM_MAX/X64_SSE_REGPARM_MAX.
3179         * config/i386/i386.c (override_options): Replace TARGET_64BIT_MS_ABI.
3180         (X86_64_VARARGS_SIZE): Replace REGPARM_MAX and SSE_REGPARM_MAX by abi
3181         specific defines.
3182         (X86_64_REGPARM_MAX): New.
3183         (X86_64_SSE_REGPARM_MAX): New.
3184         (X64_REGPARM_MAX): New.
3185         (X64_SSE_REGPARM_MAX): New.
3186         (X86_32_REGPARM_MAX): New.
3187         (X86_32_SSE_REGPARM_MAX): New.
3188         (ix86_handle_cconv_attribute): Replace TARGET_64BIT_MS_ABI.
3189         (ix86_function_regparm): Handle user calling abi.
3190         (ix86_function_arg_regno_p): Replace TARGET_64BIT_MS_ABI
3191         by DEFAULT_ABI versus SYSV_ABI check.
3192         (ix86_reg_parm_stack_space): New.
3193         (ix86_function_type_abi): New.
3194         (ix86_call_abi_override): New.
3195         (ix86_function_abi): New.
3196         (ix86_cfun_abi): New.
3197         (init_cumulative_args): Call abi specific initialization.
3198         (function_arg_advance): Remove TARGET_64BIT_MS_ABI.
3199         (function_arg_64): Extend SSE_REGPARM_MAX check.
3200         (function_arg (): Remove TARGET_64BIT_MS_ABI.
3201         (ix86_pass_by_reference): Likewise.
3202         (ix86_function_value_regno_p): Likewise.
3203         (function_value_64): Replace REGPARM_MAX, and SSE_REGPARM_MAX.
3204         (ix86_function_value_1): Replace TARGET_64BIT_MS_ABI.
3205         (return_in_memory_ms_64): Replace TARGET_64BIT_MS_ABI.
3206         (ix86_build_builtin_va_list): Replace TARGET_64BIT_MS_ABI.
3207         (setup_incoming_varargs_64): Adjust regparm for call abi.
3208         (ix86_setup_incoming_varargs): Replace TARGET_64BIT_MS_ABI.
3209         (ix86_va_start): Likewise.
3210         (ix86_gimplify_va_arg): Likewise.
3211         (ix86_expand_prologue): Likewise.
3212         (output_pic_addr_const): Likewise.
3213         (ix86_init_machine_status): Initialize call_abi by DEFAULT_ABI.
3214         (x86_this_parameter): Replace TARGET_64BIT_MS_ABI.
3215         (x86_output_mi_thunk): Likewise.
3216         (x86_function_profiler): Likewise.
3217         * config/i386/i386.h (TARGET_64BIT_MS_ABI): Use ix64_cfun_abi.
3218         (SYSV_ABI, MS_ABI): New constants.
3219         (DEFAULT_ABI): New.
3220         (init_regs): Add prototype of function in regclass.c file.
3221         (OVERRIDE_ABI_FORMAT): New.
3222         (CONDITIONAL_REGISTER_USAGE): Remove TARGET_64BIT_MS_ABI part.
3223         (REG_PARM_STACK_SPACE): Use ix86_reg_parm_stack_space.
3224         (OUTGOING_REG_PARM_STACK_SPACE): New.
3225         (ix86_reg_parm_stack_space): New prototype.
3226         (CUMULATIVE_ARGS): Add call_abi member.
3227         (machine_function): Add call_abi member.
3228         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Replace
3229         TARGET_64BIT_MS_ABI by DEFAULT_ABI compare to MS_ABI.
3230
3231 2008-06-02  Andy Hutchinson  <hutchinsonandy@aim.com> 
3232
3233         PR target/34879
3234         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Redefine.
3235         (avr_builtin_setjmp_frame_value): New function.
3236         * config/avr/avr.md (nonlocal_goto_receiver): Define.
3237         (nonlocal_goto): Define.
3238
3239 2008-06-02  Richard Sandiford  <rdsandiford@googlemail.com>
3240
3241         * config/mips/mips.c (mips_emit_loadgp): Return early if
3242         there is nothing do to, otherwise emit a blockage if
3243         !TARGET_EXPLICIT_RELOCS || crtl->profile.
3244         * config/mips/mips.md (loadgp_blockage): Use SI rather than DI.
3245
3246 2008-06-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3247
3248         * configure.ac: Drop unneeded backslash ending up in config.in.
3249         * acinclude.m4: Likewise.
3250         * config.in: Regenerate.
3251
3252 2008-05-26  Jan Hubicka  <jh@suse.cz>
3253
3254         * predict.c (maybe_hot_frequency_p): Break out of...
3255         (maybe_hot_bb_p): ... here.
3256         (maybe_hot_edge_p): New.
3257         * tree-ssa-coalesce.c (coalesce_cost_edge): Compute cost based on edge.
3258         * basic-block.h (maybe_hot_edge_p): Declare.
3259
3260 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
3261
3262         * config/i386/i386.md (*cmpfp_<mode>): Enable for optimize_size.
3263         (*cmpfp_<mode>_cc): Ditto.
3264         (*fp_jcc_8<mode>_387): Ditto.
3265         (*fop_<MODEF:mode>_2_i387): Ditto.
3266         (*fop_<MODEF:mode>_3_i387): Ditto.
3267         (*fop_xf_2_i387): Ditto.
3268         (*fop_xf_3_i387): Ditto.
3269
3270 2008-06-02  Tomas Bily  <tbily@suse.cz>
3271
3272         * tree-ssa-ifcombine.c (get_name_for_bit_test): Use CONVERT_EXPR_P.
3273
3274 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3275
3276         * config/mips/mips.c (mips_valid_offset_p): New function.
3277         (mips_valid_lo_sum_p): Likewise.
3278         (mips_classify_address): Use them.
3279         (mips_force_address): New function.
3280         (mips_legitimize_address): Use it.
3281         * config/mips/mips.md (MOVE128): New mode iterator.
3282         (movtf): Require TARGET_64BIT.  Remove empty strings.
3283         (*movtf_internal): Rename to...
3284         (*movtf): ...this and require !TARGET_MIPS16.  Use "m" instead
3285         of "R" and use {,fp}{load,store} attributes instead of "multi".
3286         Use a separate define_split.
3287         (*movtf_mips16): New pattern.
3288
3289 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3290
3291         * config/mips/mips-protos.h (mips_expand_before_return): Declare.
3292         * config/mips/mips.c (mips_expand_before_return): New function.
3293         (mips_expand_epilogue): Call it.
3294         * config/mips/mips.md (return): Turn into a define_expand.
3295         (*return): New insn.
3296
3297 2008-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
3298
3299         * rtl.h (emit_clobber, gen_clobber, emit_use, gen_use): Declare.
3300         * emit-rtl.c (emit_clobber, gen_clobber, emit_use, gen_use): New
3301         functions.  Do not emit uses and clobbers of CONCATs; individually
3302         use and clobber their operands.
3303         * builtins.c (expand_builtin_setjmp_receiver): Use emit_clobber,
3304         gen_clobber, emit_use and gen_use.
3305         (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
3306         (expand_builtin_return): Likewise.
3307         * cfgbuild.c (count_basic_blocks): Likewise.
3308         * cfgrtl.c (rtl_flow_call_edges_add): Likewise.
3309         * explow.c (emit_stack_restore): Likewise.
3310         * expmed.c (extract_bit_field_1): Likewise.
3311         * expr.c (convert_move, emit_move_complex_parts): Likewise.
3312         (emit_move_multi_word, store_constructor): Likewise.
3313         * function.c (do_clobber_return_reg, do_use_return_reg): Likewise.
3314         (thread_prologue_and_epilogue_insns): Likewise.
3315         * lower-subreg.c (resolve_simple_move): Likewise.
3316         * optabs.c (widen_operand, expand_binop): Likewise.
3317         (expand_doubleword_bswap, emit_no_conflict_block): Likewise.
3318         * reload.c (find_reloads): Likewise.
3319         * reload1.c (eliminate_regs_in_insn): Likewise.
3320         * stmt.c (expand_nl_goto_receiver): Likewise.
3321         * config/alpha/alpha.md (builtin_longjmp): Likewise.
3322         * config/arc/arc.md (*movdi_insn, *movdf_insn): Likewise.
3323         * config/arm/arm.c (arm_load_pic_register): Likewise.
3324         (thumb1_expand_epilogue, thumb_set_return_address): Likewise.
3325         * config/arm/arm.md (untyped_return): Likewise.
3326         * config/arm/linux-elf.h (PROFILE_HOOK): Likewise.
3327         * config/avr/avr.c (expand_prologue): Likewise.
3328         * config/bfin/bfin.c (do_unlink): Likewise.
3329         * config/bfin/bfin.md (<optab>di3, adddi3, subdi3): Likewise.
3330         * config/cris/cris.c (cris_expand_prologue): Likewise.
3331         * config/darwin.c (machopic_indirect_data_reference): Likewise.
3332         (machopic_legitimize_pic_address): Likewise.
3333         * config/frv/frv.c (frv_frame_access, frv_expand_epilogue): Likewise.
3334         (frv_ifcvt_modify_insn, frv_expand_mdpackh_builtin): Likewise.
3335         * config/i386/i386.c (ix86_expand_vector_move_misalign): Likewise.
3336         (ix86_expand_convert_uns_didf_sse): Likewise.
3337         (ix86_expand_vector_init_general): Likewise.
3338         * config/ia64/ia64.md (eh_epilogue): Likewise.
3339         * config/iq2000/iq2000.c (iq2000_expand_epilogue): Likewise.
3340         * config/m32c/m32c.c (m32c_emit_eh_epilogue): Likewise.
3341         * config/m32r/m32r.c (m32r_reload_lr): Likewise.
3342         (config/iq2000/iq2000.c): Likewise.
3343         * config/mips/mips.md (fixuns_truncdfsi2): Likewise.
3344         (fixuns_truncdfdi2, fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3345         (builtin_longjmp): Likewise.
3346         * config/mn10300/mn10300.md (call, call_value): Likewise.
3347         * config/pa/pa.md (nonlocal_goto, nonlocal_longjmp): Likewise.
3348         * config/pdp11/pdp11.md (abshi2): Likewise.
3349         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3350         * config/s390/s390.c (s390_emit_prologue): Likewise.
3351         * config/s390/s390.md (movmem_long, setmem_long): Likewise.
3352         (cmpmem_long, extendsidi2, zero_extendsidi2, udivmoddi4): Likewise.
3353         (builtin_setjmp_receiver, restore_stack_nonlocal): Likewise.
3354         * config/sh/sh.c (prepare_move_operands): Likewise.
3355         (output_stack_adjust, sh_expand_epilogue): Likewise.
3356         (sh_set_return_address, sh_expand_t_scc): Likewise.
3357         * config/sparc/sparc.c (load_pic_register): Likewise.
3358         * config/sparc/sparc.md (untyped_return, nonlocal_goto): Likewise.
3359         * config/spu/spu.c (spu_expand_epilogue): Likewise.
3360         * config/v850/v850.c (expand_epilogue): Likewise.
3361
3362 2008-05-31  Anatoly Sokolov  <aesok@post.ru>
3363
3364         * config/avr/avr.md (UNSPECV_WRITE_SP_IRQ_ON): New constants.
3365         (UNSPECV_WRITE_SP_IRQ_OFF): (Ditto.).
3366         (movhi_sp_r_irq_off, movhi_sp_r_irq_on): New insn.
3367         * config/avr/avr.c (expand_prologue, expand_epilogue): Use 
3368         movhi_sp_r_irq_off and movhi_sp_r_irq_on insns for writing to the 
3369         stack pointer register.
3370         (output_movhi): Remove code for interrupt specific writing to the 
3371         stack pointer register.
3372
3373 2008-05-31  Richard Guenther  <rguenther@suse.de>
3374
3375         PR tree-optimization/34244
3376         * fold-const.c (tree_expr_nonnegative_warnv_p): Do not ask VRP.
3377         (tree_expr_nonzero_warnv_p): Likewise.
3378         * tree-vrp.c (vrp_expr_computes_nonnegative): Call
3379         ssa_name_nonnegative_p.
3380         (vrp_expr_computes_nonzero): Call ssa_name_nonzero_p.
3381         (extract_range_from_unary_expr): Use vrp_expr_computes_nonzero,
3382         not tree_expr_nonzero_warnv_p.
3383
3384         PR tree-optimization/36262
3385         Revert
3386         2007-11-29  Zdenek Dvorak  <ook@ucw.cz>
3387
3388         PR tree-optimization/34244
3389         * tree-vrp.c (adjust_range_with_scev): Clear scev cache.
3390         (record_numbers_of_iterations): New function.
3391         (execute_vrp): Cache the numbers of iterations of loops.
3392         * tree-scalar-evolution.c (scev_reset_except_niters):
3393         New function.
3394         (scev_reset): Use scev_reset_except_niters.
3395         * tree-scalar-evolution.h (scev_reset_except_niters): Declare.
3396
3397 2008-05-31  Bernd Schmidt  <bernd.schmidt@analog.com>
3398
3399         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3400         __WORKAROUND_RETS when appropriate.
3401
3402 2008-05-31  Uros Bizjak  <ubizjak@gmail.com>
3403
3404         * config/i386/i386.md (*fop_<mode>_comm_mixed): Macroize from
3405         *fop_sf_comm_mixed and *fop_df_comm_mixed insn patterns using MODEF
3406         mode iterator.
3407         (*fop_<mode>_comm_sse): Macroize from *fop_sf_comm_sse and
3408         *fop_df_comm_sse insn patterns using MODEF mode iterator.
3409         (*fop_<mode>_comm_i387): Macroize from *fop_sf_comm_i387 and
3410         *fop_df_comm_i387 insn patterns using MODEF mode iterator.
3411         (*fop_<mode>_1_mixed): Macroize from *fop_sf_1_mixed and
3412         *fop_df_1_mixed insn patterns using MODEF mode iterator.
3413         (*fop_<mode>_1_sse): Macroize from *fop_sf_1_sse and
3414         *fop_df_1_sse insn patterns using MODEF mode iterator.
3415         (*fop_<mode>_1_i387): Macroize from *fop_sf_1_i387 and
3416         *fop_df_1_i387 insn patterns using MODEF mode iterator.
3417         (*fop_<MODEF:mode>_2_i387): Macroize from *fop_sf_2<mode>_i387 and
3418         *fop_df_2<mode>_i387 insn patterns using MODEF mode iterator.
3419         (*fop_<MODEF:mode>_3_i387): Macroize from *fop_sf_3<mode>_i387 and
3420         *fop_df_3<mode>_i387 insn patterns using MODEF mode iterator.
3421         (*fop_xf_2_i387): Rename from *fop_xf_2<mode>_i387.
3422         (*fop_xf_3_i387): Rename from *fop_xf_3<mode>_i387.
3423         (*fop_xf_4_i387): Use <MODE> for mode attribute.
3424         (*fop_xf_5_i387): Ditto.
3425         (*fop_xf_6_i387): Ditto.
3426
3427 2008-05-30  Richard Guenther  <rguenther@suse.de>
3428
3429         * builtins.c (build_string_literal): Avoid generating
3430         a non-gimple_val result.
3431
3432 2008-05-30  DJ Delorie  <dj@redhat.com>
3433
3434         * exec-tool.in: Use an environment variable (private) instead of a
3435         file (shared) as a semaphore, so as to not break parallel builds.
3436
3437 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
3438
3439         * optabs.c (maybe_encapsulate_block): Remove.
3440         (emit_libcall_block): Adjust accordingly.
3441         * optabs.h (maybe_encapsulate_block): Remove prototype.
3442
3443         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address):
3444         Don't use maybe_encapsulate_block.
3445
3446 2008-05-30  Steven Bosscher  <stevenb.gcc@gmail.com>
3447
3448         * config/rs6000/rs6000.c (rs6000_legitimize_address,
3449         rs6000_legitimize_reload_address, rs6000_emit_move): Make sure an
3450         rtx is a SYMBOL_REF before calling get_pool_constant.
3451
3452 2008-05-30  Eric Botcazou  <ebotcazou@adacore.com>
3453
3454         * fold-const.c (fold_unary) <CASE_CONVERT>: Add ??? comment.
3455
3456 2008-05-30  Danny Smith  <dannysmith@users.sourceforge.net>
3457
3458         * incpath.c: Use HOST_LACKS_INODE_NUMBERS conditional
3459         rather than OS names to choose INO_T_EQ definition.
3460         (DIRS_EQ) [!INO_T_EQ]: Don't worry about case in comparison.
3461         (add_path) [!INO_T_EQ]: Use lrealpath to fill canonical_name field.
3462
3463 2008-05-29  Daniel Franke  <franke.daniel@gmail.com>
3464
3465         PR target/36348
3466         * config/darwin-f.c: New.
3467         * config/t-darwin: Added rule to build darwin-f.o.
3468         * config.gcc: Defined new variable, fortran_target_objs.
3469         (*-*-darwin*): Set fortran_target_objs.
3470         * Makefile.in: Defined new variable FORTRAN_TARGET_OBJS.
3471         * configure.ac: Substitute fortran_target_objs, set FORTRAN_TARGET_OBJS.
3472         * configure: Regenerated.
3473
3474 2008-05-29  H.J. Lu  <hongjiu.lu@intel.com>
3475
3476         PR target/35771
3477         * config/i386/i386.c (ix86_function_arg_boundary): Convert to
3478         canonical type if needed.
3479
3480 2008-05-29  Eric Botcazou  <ebotcazou@adacore.com>
3481
3482         * tree-nested.c (check_for_nested_with_variably_modified): Fix typo.
3483
3484 2008-05-29  Richard Guenther  <rguenther@suse.de>
3485
3486         PR tree-optimization/36343
3487         PR tree-optimization/36346
3488         PR tree-optimization/36347
3489         * tree-flow.h (clobber_what_p_points_to): Declare.
3490         * tree-ssa-structalias.c (set_uids_in_ptset): Whether the
3491         pointed-to variable is dereferenced is irrelevant to whether
3492         the pointer can access the pointed-to variable.
3493         (clobber_what_p_points_to): New function.
3494         * tree-ssa-alias.c (set_initial_properties): Use it.
3495         * tree-ssa.c (verify_flow_sensitive_alias_info): Adjust
3496         call clobber check for NMTs.
3497
3498 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
3499         
3500         * value-prof.c (tree_ic_transform): Use HOST_WIDEST_INT_PRINT_DEC
3501         for printing gcov_type.
3502
3503 2008-05-28  Seongbae Park  <seongbae.park@gmail.com>
3504
3505         * tree-ssa-propagate.c (set_rhs): Preserve the histogram
3506         and the eh region information.
3507         * value-prof.c (gimple_move_stmt_histograms): New function.
3508         * value-prof.h (gimple_move_stmt_histograms): New function declaration.
3509
3510 2008-05-28  Andreas Tobler  <a.tobler@schweiz.org>
3511
3512         * config/pa/pa.md: Remove extern frame_pointer_needed declaration.
3513
3514 2008-05-28  Seongbae Park <seongbae.park@gmail.com>
3515
3516         * value-prof.c (tree_ic_transform): Print counts.
3517         * tree-profile.c (tree_gen_ic_func_profiler):
3518         Clear __gcov_indreict_call_callee variable to avoid misattribution
3519         of the profile.
3520
3521 2008-05-28  Rafael Espindola  <espindola@google.com>
3522
3523         * see.c (see_def_extension_not_merged): Use copy_rtx_if_shared to avoid
3524         invalid sharing.
3525
3526 2008-05-28  Richard Guenther  <rguenther@suse.de>
3527
3528         PR tree-optimization/36339
3529         * tree-ssa-alias.c (set_initial_properties): Move pt_anything
3530         and clobbering code out of the loop.
3531
3532 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
3533
3534         * config/s390/constraints.md ('b', 'C', 'D', 'e'): New constraint
3535         letters defined.
3536
3537         * config/s390/s390.c (s390_compare_and_branch_condition_mask,
3538         s390_contiguous_bitmask_p, s390_symref_operand_p,
3539         s390_check_symref_alignment, s390_reload_larl_operand,
3540         s390_reload_symref_address): New functions.
3541         (s390_branch_condition_mnemonic): Support compare and branch
3542         instructions.
3543         (s390_mem_constraint): Avoid symrefs to accepted by the 'T'
3544         and 'W' constraints.
3545         (s390_secondary_reload): Add secondary reloads for unaligned
3546         symbol refs or symbol refs to floating point or QI/TI mode
3547         integer values.
3548         (legitimate_address_p): Accept symbol references as addresses.
3549         (s390_expand_insv): Use rotate and insert selected bits
3550         instruction for insv when building for z10.
3551         (print_operand_address): Handle symbol ref addresses.
3552         (print_operand): Output modifier 'c' added for signed byte values.
3553         (s390_encode_section_info): Mark symbol refs with
3554         SYMBOL_FLAG_NOT_NATURALLY_ALIGNED if appropriate.
3555
3556         * config/s390/s390.md (SIL,RRS,RIS): New instruction formats added.
3557         (length attribute): RRF, RRR have 4 byte length.
3558         (FPALL, INTALL): New mode iterators added.
3559         (*tstdi_sign, *cmpdi_ccs_sign, *cmpsi_ccs_sign,
3560         *cmp<mode>_ccs, *cmpdi_ccu_zero, *cmpdi_ccu, *cmpsi_ccu, *cmphi_ccu,
3561         *movdi_64, *movsi_zarch, *movhi, movmem<mode>, *movmem_short,
3562         *extendsidi2, *extendhidi2_extimm, *extendhisi2_extimm,
3563         *zero_extendsidi2, adddi3, *adddi3_31z, *adddi3_31, addsi3,
3564         *add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry2_cc,
3565         *add<mode>3_cc, *add<mode>3_imm_cc, *muldi3_sign, muldi3,
3566         *mulsi3_sign, mulsi3, mulsidi3): Patterns enhanced with z10
3567         instructions.
3568         (*cmphi_ccs_z10, *cmpdi_ccs_signhi_rl, *cmpsi_ccu_zerohi_rlsi,
3569         *cmp<GPR:mode>_ccu_zerohi_rldi, *cmp_and_br_signed_<mode>,
3570         *cmp_and_br_unsigned_<mode>, reload<INTALL:mode><P:mode>_tomem_z10,
3571         reload<INTALL:mode><P:mode>_toreg_z10,
3572         reload<FPALL:mode><P:mode>_tomem_z10,
3573         reload<FPALL:mode><P:mode>_toreg_z10,
3574         reload<P:mode>_larl_odd_addend_z10, *execute_rl, *insv<mode>_z10,
3575         *insv<mode>_z10_noshift, *insv<mode>_or_z10_noshift,
3576         *zero_extendhi<mode>2_z10, *cmp_and_trap_signed_int<mode>,
3577         *cmp_and_trap_unsigned_int<mode>, prefetch): New pattern or expander
3578         definition.
3579         (movmem, clrmem, cmpmem): New splitters added.
3580
3581         * config/s390/predicates.md (larl_operand): Use
3582         SYMBOL_REF_FLAGS (op) & SYMBOL_FLAG_ALIGN1 replaced with
3583         SYMBOL_REF_ALIGN1_P.
3584         (s390_signed_integer_comparison,
3585         s390_unsigned_integer_comparison): New predicates.
3586
3587         * config/s390/s390-protos.h (s390_check_symref_alignment,
3588         s390_contiguous_bitmask_p, s390_reload_larl_operand,
3589         s390_reload_symref_address,
3590         s390_compare_and_branch_condition_mask): Prototypes added.
3591
3592         * config/s390/s390.h (TARGET_MEM_CONSTRAINT,
3593         SYMBOL_REF_ALIGN1_P, SYMBOL_FLAG_NOT_NATURALLY_ALIGNED,
3594         SYMBOL_REF_NOT_NATURALLY_ALIGNED_P): Macro definition added.
3595
3596 2008-05-28  Andreas Krebbel  <krebbel1@de.ibm.com>
3597
3598         * config/s390/s390.c (z10_cost): New cost function for z10.
3599         (s390_handle_arch_option, override_options): Support -march=z10 switch.
3600         (s390_issue_rate): Adjust issue rate for z10.
3601         * config/s390/s390.h (processor_type): Add PROCESSOR_2097_Z10.
3602         (processor_flags): Add PF_Z10.
3603         (TARGET_CPU_Z10, TARGET_Z10): New macro definitions.
3604         * config/s390/s390.md (cpu, cpu_facility attributes): Add z10.
3605         * gcc/config.gcc: Add z10.
3606
3607 2008-05-28  Richard Guenther  <rguenther@suse.de>
3608
3609         PR tree-optimization/36291
3610         * tree-flow. h (struct gimple_df): Remove var_anns member.
3611         * tree-flow-inline.h (gimple_var_anns): Remove.
3612         (var_ann): Simplify.
3613         * tree-dfa.c (create_var_ann): Simplify.
3614         (remove_referenced_var): Clear alias info from var_anns of globals.
3615         * tree-ssa.c (init_tree_ssa): Do not allocate var_anns.
3616         (delete_tree_ssa): Clear alias info from var_anns of globals.
3617         Do not free var_anns.
3618         (var_ann_eq): Remove.
3619         (var_ann_hash): Likewise.
3620
3621 2008-05-28  Mark Shinwell  <shinwell@codesourcery.com>
3622
3623         * config/mips/mips.c (mips_cpu_info_table): Add loongson2e
3624         and loongson2f entries.
3625         (mips_rtx_cost_data): Add entries for Loongson-2E/2F.
3626         * config/mips/mips.h (processor_type): Add Loongson-2E
3627         and Loongson-2F entries.
3628         (TARGET_LOONGSON_2E, TARGET_LOONGSON_2F, TARGET_LOONGSON_2EF): New.
3629         (MIPS_ISA_LEVEL_SPEC): Handle Loongson-2E/2F.
3630         * config/mips/mips.md (define_attr cpu): Add loongson2e and loongson2f.
3631         * doc/invoke.texi (MIPS Options): Document loongson2e
3632         and loongson2f processor names.
3633
3634 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3635
3636         PR target/35767
3637         PR target/35771
3638         * config/i386/i386.c (ix86_function_arg_boundary): Use
3639         alignment of canonical type.
3640         (ix86_expand_vector_move): Check unaligned memory access for
3641         all SSE modes.
3642
3643 2008-05-27  H.J. Lu  <hongjiu.lu@intel.com>
3644
3645         * dwarf2out.c (current_fde): Change return type to dw_fde_ref.
3646         Moved to the front of file.
3647
3648 2008-05-27  Xuepeng Guo  <xuepeng.guo@intel.com>
3649             H.J. Lu  <hongjiu.lu@intel.com>
3650
3651         * dwarf2out.c (current_fde): New.
3652         (add_cfi): Use it.
3653         (lookup_cfa:): Likewise.
3654         (dwarf2out_end_epilogue): Likewise.
3655         (dwarf2out_note_section_used): Likewise.
3656
3657 2008-05-27  Michael Matz  <matz@suse.de>
3658
3659         PR c++/27975
3660         * c.opt (Wenum-compare): New warning option.
3661         * doc/invoke.texi  (Warning Options): Document -Wenum-compare.
3662
3663 2008-05-27  Michael Matz  <matz@suse.de>
3664
3665         PR middle-end/36326
3666         * tree-gimple.c (is_gimple_mem_rhs): Remove work-around for
3667         non-BLKmode types.
3668         * tree-tailcall.c (find_tail_calls): Don't mark calls storing
3669         into memory as tail calls.
3670
3671 2008-05-27  Richard Guenther  <rguenther@suse.de>
3672
3673         PR tree-optimization/36339
3674         * tree-ssa-alias.c (set_initial_properties): Escaped pt_anything
3675         pointers cause all addressable variables to be call clobbered.
3676
3677 2008-05-27  Richard Guenther  <rguenther@suse.de>
3678
3679         PR tree-optimization/36245
3680         * tree-ssa-address.c (add_to_parts): Deal with non-pointer bases.
3681
3682 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3683
3684         * config/s390/s390.md: Replace all occurences of the 'm'
3685         constraint with 'RT'.
3686
3687 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3688
3689         * config/s390/s390.md ("cpu_facility", "enabled"): Attribute
3690         definitions added.
3691         ("*movdi_64dfp", "*movdi_64extimm", "*movdi_64"): Merged into
3692         "*movdi_64".
3693         ("*anddi3_extimm", "*anddi3"): Merged into "*anddi3".
3694         ("*iordi3_extimm", "*iordi3"): Merged into "*iordi3".
3695         ("*xordi3_extimm", "*xordi3"): Merged into "*xordi3".
3696
3697 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3698
3699         * reload.c: (find_reloads): Skip alternatives according to the
3700         "enabled" attribute. Constify the constraint variable.
3701         * recog.c (get_attr_enabled): Add default implementation.
3702         (extract_insn): Set the alternative_enabled_p array
3703         in the recog_data struct.
3704         (preprocess_constraints, constrain_operands): Skip
3705         alternatives according to the "enabled" attribute
3706         * recog.h (struct recog_data): New field alternative_enabled_p.
3707         (skip_alternative): New inline function.
3708         * regclass.c: (record_operand_costs): Check the "enabled" attribute.
3709         (record_reg_classes): Skip alternative according to the
3710         "enabled" attribute.
3711
3712         * doc/md.texi: Add documention for the "enabled" attribute.
3713
3714 2008-05-27  Andreas Krebbel  <krebbel1@de.ibm.com>
3715
3716         * defaults.h (TARGET_MEM_CONSTRAINT): New target macro added.
3717         * postreload.c (reload_cse_simplify_operands): Replace 'm'
3718         constraint with TARGET_MEM_CONSTRAINT.
3719         * recog.c (asm_operand_ok, preprocess_constraints,
3720         constrain_operands): Likewise.
3721         * regclass.c (record_reg_classes): Likewise.
3722         * reload.c (find_reloads, alternative_allows_const_pool_ref): Likewise.
3723         * reload1.c (maybe_fix_stack_asms): Likewise.
3724         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
3725         * recog.h: Adjust comment.
3726         * genpreds.c (generic_constraint_letters): Remove 'm' constraint.
3727         * genoutput.c (note_constraint): Don't emit error for 'm' constraint.
3728         * doc/md.texi: Add a note to description of 'm' constraint.
3729         * doc/tm.texi: Document the new TARGET_MEM_CONSTRAINT macro.
3730
3731 2008-05-27  Eric Botcazou  <ebotcazou@adacore.com>
3732
3733         * tree-sra.c (sra_type_can_be_decomposed_p) <RECORD_TYPE>: Make sure
3734         that the bitfield is of integral type before testing its precision.
3735
3736 2008-05-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
3737             Sa Liu  <saliu@de.ibm.com> 
3738
3739         * config/spu/spu.c (spu_init_libfuncs): Add __multi3, __divti3, 
3740         __modti3, __udivti3, __umodti3 and __udivmodti4.
3741         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add files
3742         that implement TImode mul and div functions.
3743         * config/spu/multi3.c: New. Implement __multi3.
3744         * config/spu/divmodti4.c: New. Implement _udivmodti4 and others.
3745         * testsuite/gcc.target/spu/muldivti3.c: New. Test TImode mul and div
3746         functions on SPU.
3747
3748 2008-05-26  Steven Bosscher  <stevenb.gcc@gmail.com>
3749
3750         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Generate
3751         new tls_gd_* and tls_ld_* insns instead of an insn sequence.
3752         * config/rs6000/rs6000.md (TLSmode, tls_abi_suffix, tls_insn_suffix,
3753         tls_sysv_suffix): New mode and mode attribute iterators.
3754         (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64): Remove.
3755         (lts_gd_aix*, tls_gd_sysv*, tls_ld_aix*, tls_ld_sysv*): New patterns.
3756         (tls_dtprel_*, tls_dtprel_ha_*, tls_dtprel_lo_*, tls_got_dtprel_*,
3757         tls_tprel_*, tls_tprel_ha_*, tls_tprel_lo_*, tls_got_tprel_*,
3758         tls_tls_*): Merge 32 bit and 64 bit variants using aforementioned
3759         iterators.
3760
3761 2008-05-26  Eric Botcazou  <ebotcazou@adacore.com>
3762
3763         PR tree-optimization/36329
3764         * tree.h (CALL_CANNOT_INLINE_P): Add access check.
3765         * tree-gimple.h (CALL_STMT_CANNOT_INLINE_P): New macro.
3766         * cgraphbuild.c (initialize_inline_failed): Use the latter
3767         macro in lieu of the former.
3768         * ipa-inline.c (cgraph_mark_inline): Likewise.
3769         (cgraph_decide_inlining_of_small_function): Likewise.
3770         (cgraph_decide_inlining): Likewise.
3771         (cgraph_decide_inlining_incrementally): Likewise.
3772
3773 2008-05-26  Tristan Gingold  <gingold@adacore.com>
3774             Anatoly Sokolov  <aesok@post.ru>
3775
3776         * config/avr/avr.md ("call_prologue_saves"): Use hi8(gs())/lo8(gs())
3777         instead of pm_lo8/pm_hi8 to makes this call working on avr6.
3778         * config/avr/avr.c (expand_prologue): Tune "call_prologue" 
3779         optimization for 'avr6' architecture.
3780
3781 2008-05-26  Andy Hutchinson  <hutchinsonandy@aim.com>
3782
3783         PR target/34932
3784         * config/avr/avr.md (*addhi3_zero_extend2): Remove.
3785
3786 2008-05-26  Richard Guenther  <rguenther@suse.de>
3787
3788         * tree-ssa-sccvn.c (expr_has_constants): Declare.
3789         (visit_reference_op_load): Initialize VN_INFO->has_constants properly.
3790
3791 2008-05-26  H.J. Lu  <hongjiu.lu@intel.com>
3792
3793         PR middle-end/36253
3794         * caller-save.c (insert_restore): Verify alignment of spill space.
3795         (insert_save): Likewise.
3796         * cfgexpand.c (LOCAL_ALIGNMENT): Removed.
3797         * defaults.h (LOCAL_ALIGNMENT): New. Provide default.
3798         (STACK_SLOT_ALIGNMENT): Likewise.
3799         * function.c (LOCAL_ALIGNMENT): Removed.
3800         (get_stack_local_alignment): New.
3801         (assign_stack_local): Use it.  Set alignment on stack slot.
3802         (assign_stack_temp_for_type): Use get_stack_local_alignment.
3803         * config/i386/i386.h (LOCAL_ALIGNMENT): Updated.
3804         (STACK_SLOT_ALIGNMENT): New.
3805         * config/i386/i386.c (ix86_local_alignment): Handle caller-save
3806         stack slot in XFmode.
3807
3808         * doc/tm.texi (STACK_SLOT_ALIGNMENT): New.
3809
3810 2008-05-26  Kai Tietz  <kai.tietz@onevision.com>
3811
3812         PR/36321
3813         * config/i386/i386.md (allocate_stack_worker_64): Make sure
3814         argument operand in rax isn't removed.
3815
3816 2008-05-26  Richard Guenther  <rguenther@suse.de>
3817
3818         PR middle-end/36300
3819         * fold-const.c (extract_muldiv_1): Use TYPE_OVERFLOW_WRAPS,
3820         not TYPE_UNSIGNED.  Use TYPE_PRECISION instead of GET_MODE_SIZE.
3821
3822 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3823
3824         PR bootstrap/36331
3825         * c-cppbuiltin.c (define__GNUC__): Re-add definition of __GNUG__.
3826
3827 2008-05-26  Dominique Dhumieres  <dominiq@lps.ens.fr>
3828
3829         * config/darwin-c.c: Include "incpath.h" instead of "c-incpath.h".
3830         * config/t-darwin: Use "incpath.h" instead of "c-incpath.h".
3831
3832 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3833
3834         * tree-nested.c (convert_tramp_reference) <ADDR_EXPR>: Do not
3835         build a trampoline if we don't want one.
3836         * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Do not
3837         return zero for nested functions if we don't want a trampoline.
3838
3839 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3840
3841         * doc/invoke.texi: Added f77, f77-cpp-input to list of file types.
3842
3843 2008-05-26  Daniel Franke  <franke.daniel@gmail.com>
3844
3845         PR fortran/18428
3846         * c.opt: Removed undocumented option '-lang-fortran'.
3847         * c-common.h: Removed global variable 'lang_fortran'.
3848         * c-opts.c (c_common_handle_option): Removed code to handle
3849         option '-lang-fortran'. Updated includes.
3850         * c-cppbuiltin.c (c_cpp_builtins): Removed conditional
3851         definition of '__GFORTRAN__'.
3852         (define__GNUC__): Reimplemented to use BASEVER and
3853         cpp_define_formatted.
3854         (builtin_define_with_value_n): Removed.
3855         * c-incpath.h: Renamed to ...
3856         * incpath.h: ... this.
3857         * c-incpath.c: Renamed to ...
3858         * incpath.c: ... this. Updated includes.
3859         * fix-header.c: Updated includes.
3860         * Makefile.in: Replaced c-incpath.[ch] by incpath.[ch].
3861         (c-cppbuiltin.o): Added dependency on and definition of BASEVER.
3862         (OBJ-archive): Added cppdefault.o, incpath.o and prefix.o.
3863
3864 2008-05-25  Eric Botcazou  <ebotcazou@adacore.com>
3865
3866         * tree.h: Update the table of flags used on tree nodes.
3867         (TREE_NO_TRAMPOLINE): New accessor for static_flag.
3868         (SAVE_EXPR_RESOLVED_P): Use automatically-built access check.
3869         (FORCED_LABEL): Add access check.
3870         (CALL_EXPR_RETURN_SLOT_OPT): Likewise.
3871         (ASM_INPUT_P): Likewise.
3872         (ASM_VOLATILE_P): Likewise.
3873         (EH_FILTER_MUST_NOT_THROW): Access static_flag directly.
3874         (OMP_SECTION_LAST): Access private_flag directly.
3875         (OMP_RETURN_NOWAIT): Likewise.
3876         (OMP_PARALLEL_COMBINED): Likewise.
3877         (OMP_CLAUSE_PRIVATE_DEBUG): Access public_flag directly.
3878         (OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE): Likewise.
3879         * tree-ssa-propagate.c (STMT_IN_SSA_EDGE_WORKLIST): Access
3880         deprecated_flag directly.
3881
3882 2008-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3883
3884         * final.c (frame_pointer_needed): Removed.
3885         * flags.h (frame_pointer_needed): Likewise.
3886
3887         * function.h (rtl_data): Add frame_pointer_needed.
3888         (frame_pointer_needed): New.
3889
3890 2008-05-25  Arthur Loiret  <arthur.loiret@u-psud.fr>
3891
3892         * config.gcc (sh2[lbe]*-*-linux*): Allow target.
3893
3894 2008-05-25  Steven Bosscher  <stevenb.gcc@gmail.com>
3895
3896         * gcse.c (hash_scan_set): Do not pick up a REG_EQUAL value if
3897         SRC is a REG.
3898
3899 2008-05-25  Alan Modra  <amodra@bigpond.net.au>
3900
3901         * c-common.c (strip_array_types): Move function to..
3902         * tree.c: ..here.
3903         (get_inner_array_type): Delete.
3904         * c-common.h (strip_array_types): Move declaration to..
3905         * tree.h: ..here.
3906         (get_inner_array_type): Delete.
3907         * config/i386/i386.c (x86_field_alignment): Use strip_array_types.
3908         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
3909         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
3910         * config/pa/pa.c (emit_move_sequence): Likewise.
3911
3912 2008-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3913
3914         * config/i386/i386.md (*sse_prologue_save_insn): Set length
3915         attribute to 34.
3916
3917 2008-05-24  Andy Hutchinson  <hutchinsonandy@aim.com>
3918
3919         * function.c: Include target hook for nonlocal_goto frame value.
3920
3921 2008-05-24  Richard Guenther  <rguenther@suse.de>
3922
3923         * tree-dfa.c (refs_may_alias_p): Re-instantiate case that a scalar
3924         variable can be only accessed through a pointer or a union.
3925
3926 2008-05-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3927
3928         * builtins.c (fold_builtin_fpclassify): Fix spelling of FP_INFINITE.
3929         * doc/extend.texi: Likewise.
3930
3931 2008-05-23  DJ Delorie  <dj@redhat.com>
3932
3933         * config/m32c/jump.md (untyped_call): Add.
3934
3935         * config/m32c/m32c.c (m32c_return_addr_rtx): Change pointer type
3936         for A24 to PSImode.
3937         (m32c_address_cost): Detail costs for indirect offsets.
3938
3939 2008-05-23  Rafael Espindola  <espindola@google.com>
3940
3941         * see.c (see_get_extension_data): Don't use SUBREG_REG to test
3942         if a node is a SUBREG.
3943         (see_analyze_one_def): Don't use SUBREG_REG to test if a node
3944         is a SUBREG.
3945
3946 2008-05-23  Paul Brook  <paul@codesourcery.com>
3947             Carlos O'Donell  <carlos@codesourcery.com>
3948
3949         * doc/extend.texi: Clarify use of __attribute__((naked)).
3950         * doc/tm.texi: Document TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3951         * target.h (gcc_target): Add allocate_stack_slots_for_args.
3952         * function.c (use_register_for_decl): Use
3953         targetm.calls.allocate_stack_slots_for_args.
3954         * target-def.h (TARGET_CALLS): Add TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS.
3955         * config/arm/arm.c (arm_allocate_stack_slots_for_args): New function.
3956         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
3957
3958 2008-05-23  Eric Botcazou  <ebotcazou@adacore.com>
3959
3960         * expr.c (highest_pow2_factor) <BIT_AND_EXPR>: New case.
3961
3962 2008-05-23  Steven Munroe  <sjmunroe@us.ibm.com>
3963
3964         * config/rs6000/darwin-ldouble.c (fmsub): Eliminate the full
3965         PACK/UNPACK between FP_SUB_Q and FD_TRUNC so that the result
3966         is only rounded once.
3967
3968 2008-05-23  Richard Guenther  <rguenther@suse.de>
3969
3970         * tree-ssa-operands.c (mark_difference_for_renaming): Use bitmap_xor.
3971
3972 2008-05-23  Uros Bizjak  <ubizjak@gmail.com>
3973             Jakub Jelinek  <jakub@redhat.com>
3974
3975         PR target/36079
3976         * configure.ac: Handle --enable-cld.
3977         * configure: Regenerated.
3978         * config.gcc: Add USE_IX86_CLD to tm_defines for x86 targets.
3979         * config/i386/i386.h (struct machine_function): Add needs_cld field.
3980         (ix86_current_function_needs_cld): New define.
3981         * config/i386/i386.md (UNSPEC_CLD): New unspec volatile constant.
3982         (cld): New isns pattern.
3983         (strmov_singleop, rep_mov, strset_singleop, rep_stos, cmpstrnqi_nz_1,
3984         cmpstrnqi_1, strlenqi_1): Set ix86_current_function_needs_cld flag.
3985         * config/i386/i386.opt (mcld): New option.
3986         * config/i386/i386.c (ix86_expand_prologue): Emit cld insn if
3987         TARGET_CLD and ix86_current_function_needs_cld.
3988         (override_options): Use -mcld by default for 32-bit code if
3989         USE_IX86_CLD.
3990
3991         * doc/install.texi (Options specification): Document --enable-cld.
3992         * doc/invoke.texi (Machine Dependent Options)
3993         [i386 and x86-64 Options]: Add -mcld option.
3994         (Intel 386 and AMD x86-64 Options): Document -mcld option.
3995
3996 2008-05-23  Kai Tietz  <kai.tietz@onevison.com>
3997         * config/i386/i386.c (return_in_memory_32): Add ATTRIBUTE_UNUSED.
3998         (return_in_memory_64): Likewise.
3999         (return_in_memory_ms_64): Likewise.
4000
4001 2008-05-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4002
4003         * builtin-types.def (BT_FN_INT_INT_INT_INT_INT_INT_VAR): New.
4004         * builtins.c (fold_builtin_fpclassify): New.
4005         (fold_builtin_varargs): Handle BUILT_IN_FPCLASSIFY.
4006         * builtins.def (BUILT_IN_FPCLASSIFY): New.
4007         * c-common.c (handle_type_generic_attribute): Adjust to accept
4008         fixed arguments before an elipsis.
4009         (check_builtin_function_arguments): Handle BUILT_IN_FPCLASSIFY.
4010         * doc/extend.texi: Document __builtin_fpclassify.
4011
4012 2008-05-22  Aldy Hernandez  <aldyh@redhat.com>
4013
4014         * omp-low.c (gate_expand_omp_ssa): Remove.
4015         (pass_expand_omp_ssa): Remove.
4016         (gate_expand_omp): Do not check for flag_openmp_ssa.
4017         * common.opt (-fopenmp-ssa): Remove.
4018         * passes.c (init_optimization_passes): Remove pass_expand_omp_ssa.
4019
4020 2008-05-22  Kaz Kojima  <kkojima@gcc.gnu.org>
4021
4022         * config/sh/sh.opt (mfixed-range): New option.
4023         * config/sh/sh-protos.h (sh_fix_range): Declare.
4024         * config/sh/sh.c (sh_fix_range): New function.
4025         * config/sh/sh.h (sh_fixed_range_str): Declare.
4026         (OVERRIDE_OPTIONS): Call sh_fix_range if sh_fixed_range_str
4027         is not empty.
4028         * doc/invoke.texi (SH Options): Document -mfixed-range.
4029
4030 2008-05-22  Kai Tietz  <kai.tietz@onevision.com>
4031
4032         * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Undefine
4033         it before the redeclaration.
4034
4035 2008-05-22  Anatoly Sokolov <aesok@post.ru>
4036
4037         * config/avr/avr.c (get_sequence_length): Add new function.
4038         (expand_prologue, expand_epilogue): Remove duplicate code.
4039
4040 2008-05-22  Rafael Espindola  <espindola@google.com>
4041
4042         * see.c (see_pre_insert_extensions): Use copy_rtx to avoid invalid rtx
4043         sharing.
4044
4045 2008-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4046
4047         * defaults.h (UNITS_PER_SIMD_WORD): Add scalar mode as argument.
4048         * doc/tm.texi (UNITS_PER_SIMD_WORD): Likewise.
4049
4050         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Replace
4051         UNITS_PER_SIMD_WORD with GET_MODE_SIZE (TYPE_MODE (vectype)).
4052         (vect_update_misalignment_for_peel): Likewise.
4053         (vector_alignment_reachable_p): Likewise.
4054         * tree-vect-transform.c (vectorizable_load): Likewise.
4055         * tree-vectorizer.c (vect_supportable_dr_alignment): Likewise.
4056         (get_vectype_for_scalar_type): Pass mode of scalar_type
4057         to UNITS_PER_SIMD_WORD.
4058
4059         * config/arm/arm.h (UNITS_PER_SIMD_WORD): Updated.
4060         * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
4061         * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
4062         * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
4063         * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
4064
4065 2008-05-22  Ira Rosen  <irar@il.ibm.com>
4066
4067         PR tree-optimization/36293
4068         * tree-vect-transform.c (vect_transform_strided_load): Don't check
4069         if the first load must be skipped because of a gap.
4070
4071 2008-05-22  Richard Guenther  <rguenther@suse.de>
4072
4073         * tree-dfa.c (refs_may_alias_p): Exit early if possible.  Handle
4074         more cases of offset disambiguation that is possible if
4075         strict-aliasing rules apply.
4076         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use refs_may_alias_p
4077         for basic offset and type-based disambiguation.
4078
4079 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4080
4081         * config/i386/i386.c (ix86_expand_vector_init_one_var): Use
4082         ix86_expand_vector_set on V16QImode for SSE4.1.
4083
4084 2008-05-21  Tom Tromey  <tromey@redhat.com>
4085
4086         * c.opt (Wimport): Mark as undocumented.
4087         * doc/invoke.texi (Option Summary): Don't mention -Wimport or
4088         -Wno-import.
4089         (Warning Options): Likewise.
4090         * doc/cppopts.texi: Don't mention -Wimport.
4091
4092 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
4093
4094         PR tree-optimization/36287
4095         PR tree-optimization/36286
4096         * lambda-code.c (build_access_matrix): Do not use the loop->num
4097         for computing the number of induction variables: use the loop depth
4098         instead.
4099
4100 2008-05-21  Kai Tietz  <kai.tietz@onevision.com>
4101
4102         PR/36280
4103         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Honor
4104         option -f(no-)leading-underscore.
4105
4106 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4107
4108         * config/i386/i386.c (ix86_expand_vector_init_general): Use
4109         GET_MODE_NUNITS (mode).
4110
4111 2008-05-21  Peter Bergner  <bergner@vnet.ibm.com>
4112
4113         * doc/invoke.texi: Add cpu_type's 464 and 464fp.
4114         (-mmulhw): Add 464 to description.
4115         (-mdlmzb): Likewise.
4116         * config.gcc: Handle --with-cpu=464 and --with-cpu=464fp.
4117         * config/rs6000/rs6000.c (processor_target_table): Add 464 and
4118         464fp entries.
4119         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 464 and 464fp support.
4120         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include -mcpu=464.
4121         * config/rs6000/rs6000.md: Update comments for 464.
4122
4123 2008-05-21  Janis Johnson  <janis187@us.ibm.com>
4124
4125         * doc/sourcebuild.texi (Test Directives): Add dg-xfail-run-if.
4126
4127 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4128
4129         * config/i386/sse.md (vec_extractv4sf): Removed.
4130         (vec_extractv2df): Likewise.
4131         (vec_extractv2di): Likewise.
4132         (vec_extractv4si): Likewise.
4133         (vec_extractv8hi): Likewise.
4134         (vec_extractv16qi): Likewise.
4135         (vec_extract<mode>): New.
4136
4137 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4138
4139         * config/i386/sse.md (vec_setv4sf): Removed.
4140         (vec_setv2df): Likewise.
4141         (vec_setv2di): Likewise.
4142         (vec_setv4si): Likewise.
4143         (vec_setv8hi): Likewise.
4144         (vec_setv16qi): Likewise.
4145         (vec_set<mode>): New.
4146
4147 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4148
4149         * config/i386/i386.c (ix86_expand_vector_init_general): Remove
4150         goto for vec_concat and vec_interleave.
4151
4152 2008-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4153
4154         * config/i386/sse.md (vec_initv4sf): Removed.
4155         (vec_initv2df): Likewise.
4156         (vec_initv2di): Likewise.
4157         (vec_initv4si): Likewise.
4158         (vec_initv8hi): Likewise.
4159         (vec_initv16qi): Likewise.
4160         (vec_init<mode>): New.
4161
4162 2008-05-21  Joseph Myers  <joseph@codesourcery.com>
4163
4164         * collect2.c (find_a_file): Use IS_ABSOLUTE_PATH.
4165
4166 2008-05-21  Tom Tromey  <tromey@redhat.com>
4167
4168         * ggc-zone.c (lookup_page_table_if_allocated): New function.
4169         (zone_find_object_offset): Likewise.
4170         (gt_ggc_m_S): Likewise.
4171         (highest_bit): Likewise.
4172         * ggc-page.c (gt_ggc_m_S): New function.
4173         * stringpool.c (string_stack): Remove.
4174         (init_stringpool): Update.
4175         (ggc_alloc_string): Use ggc_alloc.
4176         (maybe_delete_ident): New function.
4177         (ggc_purge_stringpool): Likewise.
4178         (gt_ggc_m_S): Remove.
4179         * ggc-common.c (ggc_protect_identifiers): New global.
4180         (ggc_mark_roots): Call ggc_purge_stringpool.  Use
4181         ggc_protect_identifiers.
4182         * ggc.h (ggc_protect_identifiers): Declare.
4183         (gt_ggc_m_S): Update.
4184         (ggc_purge_stringpool): Declare.
4185         * toplev.c (compile_file): Set and reset ggc_protect_identifiers.
4186         * gengtype.c (write_types_process_field) <TYPE_STRING>: Remove
4187         special case.
4188         (write_root): Cast gt_ggc_m_S to gt_pointer_walker.
4189
4190 2008-05-21  David S. Miller  <davem@davemloft.net>
4191
4192         * config.gcc (sparc-*-linux*): Always include sparc/t-linux in
4193         tmake_file.
4194
4195 2008-05-21  Eric Botcazou  <ebotcazou@adacore.com>
4196
4197         * cfgexpand.c (tree_expand_cfg): Zap the EH throw statement table
4198         once finished.
4199
4200 2008-05-20  David Daney  <ddaney@avtrex.com>
4201
4202         * config/mips/mips.md (UNSPEC_SYNC_NEW_OP_12,
4203         UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE_12): New define_constants.
4204         (UNSPEC_SYNC_EXCHANGE, UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
4205         UNSPEC_UPDATE_GOT_VERSION): Renumber.
4206         (optab, insn): Add 'plus' and 'minus' to define_code_attr.
4207         (atomic_hiqi_op): New define_code_iterator.
4208         (sync_compare_and_swap<mode>): Call mips_expand_atomic_qihi instead of
4209         mips_expand_compare_and_swap_12.
4210         (compare_and_swap_12): Use MIPS_COMPARE_AND_SWAP_12 instead of
4211         MIPS_COMPARE_AND_SWAP_12_0.  Pass argument to MIPS_COMPARE_AND_SWAP_12.
4212         (sync_<optab><mode>, sync_old_<optab><mode>,
4213         sync_new_<optab><mode>, sync_nand<mode>, sync_old_nand<mode>,
4214         sync_new_nand<mode>): New define_expands for HI and QI mode operands.
4215         (sync_<optab>_12, sync_old_<optab>_12, sync_new_<optab>_12,
4216         sync_nand_12, sync_old_nand_12, sync_new_nand_12): New insns.
4217         (sync_lock_test_and_set<mode>): New define_expand for HI and QI modes.
4218         (test_and_set_12): New insn.
4219         (sync_old_add<mode>, sync_new_add<mode>, sync_old_<optab><mode>,
4220         sync_new_<optab><mode>, sync_old_nand<mode>,
4221         sync_new_nand<mode>, sync_lock_test_and_set<mode>):  Add early
4222         clobber to operand 0 for SI and DI mode insns.
4223         * config/mips/mips-protos.h (mips_gen_fn_6, mips_gen_fn_5,
4224         mips_gen_fn_4): New typedefs.
4225         (mips_gen_fn_ptrs): Define new union type.
4226         (mips_expand_compare_and_swap_12): Remove declaration.
4227         (mips_expand_atomic_qihi): Declare function.
4228         * config/mips/mips.c (mips_expand_compare_and_swap_12): Rename to...
4229         (mips_expand_atomic_qihi): ... this.  Use new generator function
4230         parameter.
4231         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): Add OPS parameter.
4232         (MIPS_COMPARE_AND_SWAP_12_0): Delete macro.
4233         (MIPS_COMPARE_AND_SWAP_12_ZERO_OP, MIPS_COMPARE_AND_SWAP_12_NONZERO_OP,
4234         MIPS_SYNC_OP_12, MIPS_SYNC_OP_12_NOT_NOP,
4235         MIPS_SYNC_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12,
4236         MIPS_SYNC_OLD_OP_12_NOT_NOP, MIPS_SYNC_OLD_OP_12_NOT_NOP_REG,
4237         MIPS_SYNC_OLD_OP_12_NOT_NOT, MIPS_SYNC_OLD_OP_12_NOT_NOT_REG,
4238         MIPS_SYNC_NEW_OP_12, MIPS_SYNC_NEW_OP_12_NOT_NOP,
4239         MIPS_SYNC_NEW_OP_12_NOT_NOT, MIPS_SYNC_EXCHANGE_12,
4240         MIPS_SYNC_EXCHANGE_12_ZERO_OP, MIPS_SYNC_EXCHANGE_12_NONZERO_OP):
4241         New macros.
4242
4243 2008-05-20  H.J. Lu  <hongjiu.lu@intel.com>
4244
4245         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Add
4246         the missing break.
4247
4248 2008-05-20  Anatoly Sokolov <aesok@post.ru>
4249
4250         * config/avr/avr.h (machine_function): Add 'is_OS_main' field.
4251         * config/avr/avr.c (avr_OS_main_function_p): Add new function.
4252         (avr_attribute_table): Add 'OS_main' function attribute.
4253         (avr_regs_to_save, expand_prologue, expand_epilogue): Handle
4254         functions with 'OS_main' attribute.
4255
4256 2008-05-20  Richard Guenther  <rguenther@suse.de>
4257
4258         PR tree-optimization/35204
4259         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): New
4260         helper, split out from ...
4261         (DFS): ... here.  Make the DFS walk non-recursive.
4262
4263 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
4264             Jan Sjodin  <jan.sjodin@amd.com>
4265
4266         PR tree-optimization/36181
4267         * tree-parloops.c (loop_has_vector_phi_nodes): New.
4268         (parallelize_loops): Don't parallelize when the loop has vector
4269         phi nodes.
4270
4271 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4272             Sebastian Pop  <sebastian.pop@amd.com>
4273
4274         * tree-loop-linear.c (gather_interchange_stats): Look in the access
4275         matrix, and never look at the tree representation of the memory
4276         accesses.
4277         (linear_transform_loops): Computes parameters and access matrices.
4278         * tree-data-ref.c (compute_data_dependences_for_loop): Returns false
4279         when fails.
4280         (access_matrix_get_index_for_parameter): New.
4281         * tree-data-ref.h (struct access_matrix): New.
4282         (AM_LOOP_NEST_NUM, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
4283         AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
4284         AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT,
4285         am_vector_index_for_loop): New.
4286         (struct data_reference): Add field access_matrix.
4287         (DR_ACCESS_MATRIX): New.
4288         (compute_data_dependences_for_loop): Update declaration.
4289         (lambda_collect_parameters, lambda_compute_access_matrices): Declared.
4290         * lambda.h (lambda_vector_vec_p): Declared.
4291         * lambda-code.c: Depend on pointer-set.h.
4292         (lambda_collect_parameters_from_af, lambda_collect_parameters,
4293         av_for_af_base, av_for_af, build_access_matrix,
4294         lambda_compute_access_matrices): New.
4295         * Makefile.in (lambda-code.o): Depend on pointer-set.h.
4296
4297 2008-05-20  Joseph Myers  <joseph@codesourcery.com>
4298
4299         * doc/install.texi2html: Generate gcc-vers.texi in $DESTDIR not
4300         $SOURCEDIR/include.
4301
4302 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4303             Sebastian Pop  <sebastian.pop@amd.com>
4304
4305         PR tree-optimization/36206
4306         * tree-scalar-evolution.c: Remove enum INSERT_SUPERLOOP_CHRECS,
4307         FOLD_CONVERSIONS.
4308         (instantiate_scev_1): Rename flags to fold_conversions.
4309         Do not check for INSERT_SUPERLOOP_CHRECS, keep SSA_NAMEs defined
4310         outeside instantiation_loop.
4311         * tree-chrec.h (evolution_function_is_affine_in_loop): New.
4312         (evolution_function_is_affine_or_constant_p): Removed.
4313         * tree-data-ref.c (dr_analyze_indices): Replace resolve_mixers with
4314         instantiate_scev.
4315         (analyze_siv_subscript): Pass in the loop nest number.
4316         Call evolution_function_is_affine_in_loop instead of 
4317         evolution_function_is_affine_p.
4318         (analyze_overlapping_iterations): Pass in the loop nest number.
4319
4320 2008-05-20  Jan Sjodin  <jan.sjodin@amd.com>
4321             Sebastian Pop  <sebastian.pop@amd.com>
4322
4323         PR tree-optimization/36206
4324         * tree-chrec.h (chrec_fold_op): New.
4325         * tree-data-ref.c (initialize_matrix_A): Traverse NOP_EXPR, PLUS_EXPR,
4326         and other trees.
4327
4328 2008-05-20  Nathan Sidwell  <nathan@codesourcery.com>
4329
4330         * c-incpath.c (INO_T_EQ): Do not define on non-inode systems.
4331         (DIRS_EQ): New.
4332         (remove_duplicates): Do not set inode on non-inode systems.
4333         Use DIRS_EQ.
4334
4335 2008-05-20  Sandra Loosemore  <sandra@codesourcery.com>
4336
4337         * config.gcc (tm_file): Update comments about relative pathnames.
4338
4339 2008-05-20  Richard Guenther  <rguenther@suse.de>
4340
4341         * tree-ssa-reassoc.c (fini_reassoc): Use the statistics infrastructure.
4342         * tree-ssa-sccvn.c (process_scc): Likewise.
4343         * tree-ssa-sink.c (execute_sink_code): Likewise.
4344         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
4345         * tree-vrp.c (process_assert_insertions): Likewise.
4346         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
4347         (perform_tree_ssa_dce): Likewise.
4348         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
4349         (dump_dominator_optimization_stats): Likewise.
4350         * tree-vectorizer.c (vectorize_loops): Likewise.
4351
4352 2008-05-20  Richard Guenther  <rguenther@suse.de>
4353
4354         * tree-vn.c (vn_lookup_with_vuses): Do not use the alias oracle.
4355
4356 2008-05-20  Kai Tietz  <kai.tietz@onevision.com>
4357
4358         * config/i386/i386-protos.h (ix86_return_in_memory): Removed.
4359         (ix86_i386elf_return_in_memory): Likewise.
4360         (ix86_i386interix_return_in_memory): Likewise.
4361         * config/i386/i386-interix.h (TARGET_RETURN_IN_MEMORY): Removed.
4362         (SUBTARGET_RETURN_IN_MEMORY): New.
4363         * config/i386/i386elf.h: Likewise.
4364         * config/i386/ptx4-i.h: Likewise.
4365         * config/i386/sol2-10.h: Likewise.
4366         * config/i386/sysv4.h: Likewise.
4367         * config/i386/vx-common.h: Likewise.
4368         * config/i386/i386.h (TARGET_RETURN_IN_MEMORY): Removed.
4369         * config/i386/i386.c (ix86_return_in_memory): Made static and
4370         make use of optional SUBTARGET_RETURN_IN_MEMORY macro.
4371         (ix86_i386elf_return_in_memory): Removed.
4372         (ix86_i386interix_return_in_memory): Removed.
4373         (TARGET_RETURN_IN_MEMORY): Declared within i386.c only.
4374         * target-def.h (TARGET_RETURN_IN_MEMORY): Remove protection #ifdef.
4375
4376 2008-05-20  Alexandre Oliva  <aoliva@redhat.com>
4377
4378         * cselib.c (cselib_record_sets): Use correct mode for IF_THEN_ELSE.
4379
4380 2008-05-19  Xinliang David Li  <davidxl@google.com>
4381
4382         * tree-ssa-dce.c: Revert patches of 2008-05-17 and 2008-05-18. 
4383         * opts.c: Ditto.
4384         * common.opt: Ditto.
4385         * doc/invoke.texi: Ditto.
4386
4387 2008-05-19  Eric Botcazou  <ebotcazou@adacore.com>
4388
4389         * tree.c (substitute_in_expr) <tcc_vl_exp>: Fix thinko.
4390         (substitute_placeholder_in_expr) <tcc_vl_exp>: Minor tweak.
4391
4392 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4393
4394         * config/i386/i386.c (ix86_expand_vector_init_concat): Change
4395         sizes of operand array from 8/4 to 4/2.
4396         (ix86_expand_vector_init_general): Change size of operand array
4397         from 32 to 16.  Remove op0, op1 and half_mode.
4398
4399 2008-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4400
4401         * config/i386/i386.c (ix86_expand_vector_init_concat): New.
4402         (ix86_expand_vector_init_interleave): Likewise.
4403         (ix86_expand_vector_init_general): Use them.  Assert
4404         word_mode == SImode when n_words == 4.
4405
4406 2008-05-19  Uros Bizjak  <ubizjak@gmail.com>
4407
4408         * config/i386/i386.c (ix86_secondary_reload): New static function.
4409         (TARGET_SECONDARY_RELOAD): New define.
4410         * config/i386/i386.h (SECONDARY_OUTPUT_RELOAD_CLASS): Remove.
4411         * config/i386/i386.md (reload_outqi): Remove.
4412
4413 2008-05-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4414
4415         PR middle-end/35509
4416         * builtins.c (mathfn_built_in_1): Renamed from mathfn_built_in.
4417         Add `implicit' parameter.  Handle BUILT_IN_SIGNBIT.
4418         (mathfn_built_in): Rewrite in terms of mathfn_built_in_1.
4419         (fold_builtin_classify): Handle BUILT_IN_ISINF_SIGN.
4420         (fold_builtin_1): Likewise.
4421         * builtins.def (BUILT_IN_ISINF_SIGN): New.
4422         c-common.c (check_builtin_function_arguments): Handle
4423         BUILT_IN_ISINF_SIGN.
4424         * doc/extend.texi: Document __builtin_isinf_sign.
4425         * fold-const.c (operand_equal_p): Handle COND_EXPR.
4426
4427 2008-05-18  Eric Botcazou  <ebotcazou@adacore.com>
4428
4429         * tree-ssa-dom.c (tree_ssa_dominator_optimize): If some blocks need
4430         EH cleanup at the end of the pass, search for those that have been
4431         turned into forwarder blocks and do the cleanup on their successor.
4432
4433 2008-05-18  Richard Guenther  <rguenther@suse.de>
4434
4435         * tree-cfg.c (verify_gimple_expr): Allow conversions from
4436         pointers to sizetype and vice versa.
4437
4438 2008-05-18 Xinliang David Li   <davidxl@google.com>
4439
4440         * gcc/tree-ssa-dce.c: Coding style fix.
4441         (check_pow): Documentation comment. 
4442         (check_log): Documenation comment. Coding style fix.
4443         (is_unnecessary_except_errno_call): Ditto.
4444         (gen_conditions_for_pow): Ditto.
4445         (gen_conditions_for_log): Ditto.
4446         (gen_shrink_wrap_conditions): Ditto.
4447         (shrink_wrap_one_built_in_calls): Ditto.
4448         * gcc/doc/invoke.texi: Better documentation string.
4449         * ChangeLog: Fix wrong change log entries from 
4450         May 17 checkin on function call DCE.
4451
4452 2008-05-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4453
4454         * config/sh/sh.c (sh_output_mi_thunk): Update the use of init_flow.
4455
4456 2008-05-17  Kenneth Zadeck <zadeck@naturalbridge.com>
4457
4458         * doc/rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P): Fixed typos.
4459         * df-problems.c (simulation routines): Fixed block comment to
4460         properly say how to add forwards scanning functions.
4461         
4462 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4463
4464         * tree-inline.c (setup_one_parameter): Remove dead code.
4465
4466 2008-05-17  Eric Botcazou  <ebotcazou@adacore.com>
4467
4468         * fold-const.c (fold_unary) <CASE_CONVERT>: Fold the cast into
4469         a BIT_AND_EXPR only for an INTEGER_TYPE.
4470
4471 2008-05-17 Xinliang David Li   <davidxl@google.com>
4472
4473         * gcc/tree-ssa-dce.c (cond_dead_built_in_calls): New static variable.
4474         (check_pow, check_log, is_unnecessary_except_errno_call): New 
4475         functions to check for eliminating math functions that are pure 
4476         except for setting errno.
4477         (gen_conditions_for_pow, gen_conditionas_for_log): New functions to
4478         general condition expressions for shrink-wrapping pow/log calls.
4479         (gen_shrink_wrap_conditions): Ditto.
4480         (shrink_wrap_one_built_in_call): Ditto.
4481         (shrink_wrap_conditional_dead_built_in_calls): Ditto.
4482         (mark_operand_necessary): If debugging, output if OP is necessary.
4483         (eliminate_unnecessary_stmts): Eliminate pow, log calls that are
4484         unnecessary.
4485         * gcc/opts.c (decode_options): set flag_tree_builtin_dce to 1 when
4486         opt level >= 2.
4487         * gcc/common.opt: New user flag -ftree-builtin-dce.
4488         * gcc/doc/invoke.texi (-ftree-builtin-dce): New option.
4489
4490 2008-05-16  David S. Miller  <davem@davemloft.net>
4491
4492         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Undef before overriding.
4493         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
4494
4495 2008-05-16  Uros Bizjak  <ubizjak@gmail.com>
4496
4497         PR target/36246
4498         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): New define.
4499
4500 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4501
4502         * ifcvt.c (dead_or_predicable): Rename
4503         df_simulate_one_insn_backwards to df_simulate_one_insn.
4504         * recog.c (peephole2_optimize): Ditto.
4505         * rtl-factoring.c (collect_pattern_seqs, clear_regs_live_in_seq):
4506         Ditto.
4507         * df.h: Rename df_simulate_one_insn_backwards to
4508         df_simulate_one_insn.  and delete df_simulate_one_insn_forwards.
4509         * df-problems.c (df_simulate_artificial_refs_at_top) Reversed
4510         scanning of defs and uses.
4511         (df_simulate_one_insn_backwards): Renamed to df_simulate_one_insn.
4512         (df_simulate_one_insn_forwards): Removed.
4513
4514 2008-05-16  Doug Kwan  <dougkwan@google.com>
4515
4516         * real.c (real_to_decimal, real_to_hexadecimal): Distinguish
4517         QNaN & SNaN.
4518         (real_from_string): Handle NaNs and Inf as approriate.
4519
4520 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
4521
4522         * doc/gty.texi (Source Files Containing Type Information): Note
4523         that headers should appear first in the gtfiles list.
4524
4525 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4526
4527         * tree.def (COND_EXEC): Properly documented this code.
4528
4529 2008-05-16  Diego Novillo  <dnovillo@google.com>
4530
4531         * dwarf2asm.c (dw2_assemble_integer): Clarify comment.
4532         * tree-nested.c (get_trampoline_type): Set DECL_CONTEXT for
4533         the new field.
4534
4535 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4536
4537         * tree-ssa-dse (max_stmt_uid): Removed.
4538         (get_stmt_uid, dse_possible_dead_store_p, dse_optimize_stmt, 
4539         tree_ssa_dse): Encapsulate all uses of stmt_ann->uid.
4540         * tree-ssa-sccvn.c (compare_ops, init_scc_vn): Ditto.
4541         * function.h (cfun.last_stmt_uid): New field.
4542         * tree-flow-inline.h (set_gimple_stmt_uid, gimple_stmt_uid,
4543         gimple_stmt_max_uid, set_gimple_stmt_max_uid, inc_gimple_stmt_max_uid):
4544         New functions.
4545         * tree-dfa.c (renumber_gimple_stmt_uids): New function.
4546         (create_stmt_ann): Initialize the ann->uid field.
4547         * tree-ssa-pre.c (compute_avail): Encapsulate the stmt_ann->uid
4548         with new calls.
4549         * tree-flow.h (renumber_gimple_stmt_uids): New function.
4550
4551 2008-05-16  Nathan Froyd  <froydnj@codesourcery.com>
4552
4553         * tree-flow.h (init_empty_tree_cfg_for_function): Declare.
4554         * tree-cfg.c (init_empty_tree_cfg_for_function): Define.
4555         (init_empty_tree_cfg): Call it.
4556
4557 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4558
4559         * cfg.c (init_flow): Add argument THE_FUN.  Use it instead of cfun.
4560         Update all users.
4561
4562 2008-05-16  Kenneth Zadeck <zadeck@naturalbridge.com>
4563
4564         * doc/invoke.text (-fdump-tree-*-verbose): New option.
4565         * tree-dump.c (dump_options): New verbose option.
4566         * tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
4567         Add verbose dump.
4568         * tree-pass.h (TDF_VERBOSE): New dump flag.
4569         * print-tree.c (print_node): Added code to be able to print PHI_NODES.
4570         (tree-flow.h): Added include.
4571         * Makefile.in (print-tree.o):  Added TREE_FLOW_H.
4572
4573 2008-05-16  Bernd Schmidt  <bernd.schmidt@analog.com>
4574
4575         * config/bfin/bfin.c (bfin_discover_loops): Delete empty loops.
4576
4577         From Jie Zhang  <jie.zhang@analog.com>
4578         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4579         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Remove mcpu=bf532-0.3,
4580         mcpu=bf561-none and mcpu=bf561-0.2.
4581         * config/bfin/t-bfin-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4582         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
4583         * config/bfin/t-bfin-linux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
4584         MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Likewise.
4585         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add BFIN_CPU_UNKNOWN.
4586         * config/bfin/elf.h (STARTFILE_SPEC): Use specific CRT for BF561.
4587         (LIB_SPEC): Use proper linker script for bf561.  Error if no mcpu
4588         option.
4589         * config/bfin/bfin.c (bfin_cpu_type): Set to BFIN_CPU_UNKNOWN.
4590         (cputype_selected): Remove.
4591         (bfin_handle_option): Don't use cputype_selected.
4592         (override_options): When no mcpu option, enable all workarounds.
4593         Don't use bfin_workarounds.
4594         * config/bfin/bfin.h (DRIVER_SELF_SPECS): Don't set default
4595         processor type.
4596         (DEFAULT_CPU_TYPE): Don't define.
4597
4598 2008-05-16  Richard Guenther  <rguenther@suse.de>
4599
4600         * tree-ssa-propagate.c (substitute_and_fold): Fix stmt walking
4601         on deletion of the last stmt.
4602
4603 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4604
4605         * config/i386/i386.c (ix86_expand_vector_init_general): Optimize
4606         V8HImode for SSE2 and V16QImode for SSE4.1.
4607
4608 2008-05-15  Kenneth Zadeck <zadeck@naturalbridge.com>
4609
4610         * cgraph.h (compute_inline_parameters): Made public.
4611         * tree-pass.h (ipa_opt_pass): Removed function_generate_summary,
4612         variable_generate_summary, function_write_summary,
4613         variable_write_summary, variable_read_summary.  Added generate_summary,
4614         write_summary, read_summary.
4615         * cgraphunit.c (cgraph_process_new_functions): Changed call from
4616         pass_ipa_inline.function_generate_summary, to
4617         compute_inline_parameters. 
4618         * ipa-inline.c (compute_inline_parameters): Made public and added
4619         node parameter.
4620         (compute_inline_parameters_for_current): New function.
4621         (pass_inline_param): Now calls compute_inline_parameters_for_current.
4622         (inline_generate_summary): Removed parameter and made to loop over
4623         all cgraph nodes.
4624         (pass_ipa_inline): Updated for new IPA_PASS structure.
4625         * passes.c (execute_ipa_summary_passes): Now is called once per
4626         pass rather than once per node*pass.
4627         
4628 2008-05-15  Anatoly Sokolov <aesok@post.ru>
4629
4630         * config/avr/avr.c (avr_base_arch_macro, avr_have_movw_lpmx_p, 
4631         avr_have_mul_p, avr_asm_only_p): Remove variables.
4632         (avr_override_options): Remove initialization of removed variables.
4633         (avr_file_start):  Convert removed variables to fields of 
4634         'struct base_arch_s *avr_current_arch'. 
4635         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): (Ditto.).
4636         (AVR_HAVE_MUL): (Ditto.).
4637         (AVR_HAVE_MOVW): (Ditto.).
4638         (AVR_HAVE_LPMX): (Ditto.). 
4639         (avr_base_arch_macro, avr_have_movw_lpmx_p, avr_have_mul_p, 
4640         avr_asm_only_p): Remove declaration.
4641
4642 2008-05-15  Diego Novillo  <dnovillo@google.com>
4643
4644         * config/arm/arm.c (arm_return_in_memory): Fix return type.
4645         * config/arm/arm-protos.h (arm_return_in_memory): Likewise.
4646
4647 2008-05-15  Adam Nemet  <anemet@caviumnetworks.com>
4648
4649         PR middle-end/36194
4650         * combine.c (check_conversion): Rename back to check_promoted_subreg.
4651         Don't call record_truncated_value from here.
4652         (record_truncated_value): Turn it into a for_each_rtx callback.
4653         (record_truncated_values): New function.
4654         (combine_instructions): Call note_uses with record_truncated_values.
4655         Change name of check_conversion to check_promoted_subreg. 
4656
4657 2008-05-15  Janis Johnson  <janis187@us.ibm.com>
4658
4659         * doc/sourcebuild.texi: Document support for torture tests.
4660
4661 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
4662
4663         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Add "m" constraint
4664         to alternative 4 of operand 2.
4665
4666 2008-05-15  Richard Guenther  <rguenther@suse.de>
4667
4668         * tree-pass.h (current_pass): Declare.
4669         (get_pass_for_id): Likewise.
4670         * passes.c (passes_by_id, passes_by_id_size): New globals.
4671         (set_pass_for_id): New function.
4672         (get_pass_for_id): Likewise.
4673         (register_one_dump_file): Use set_pass_for_id to populate passes_by_id.
4674         (execute_function_todo): Flush per function statistics.
4675         * toplev.c (compile_file): Init statistics.
4676         (general_init): Do early statistics initialization.
4677         (finalize): Finish statistics.
4678         * statistics.h (statistics_early_init): Declare.
4679         (statistics_init): Likewise.
4680         (statistics_fini): Likewise.
4681         (statistics_fini_pass): Likewise.
4682         (statistics_counter_event): Likewise.
4683         (statistics_histogram_event): Likewise.
4684         * statistics.c: New file.
4685         * Makefile.in (OBJS-common): Add statistics.o.
4686         (statistics.o): Add dependencies.
4687         * doc/invoke.texi (-fdump-statistics): Document.
4688
4689         * tree-ssa-pre.c (compute_antic): Use statistics_histogram_event.
4690         (insert): Likewise.
4691         (execute_pre): Use statistics_counter_event.
4692         * tree-ssa-propagate.c (struct prop_stats_d): Add num_dce field.
4693         (substitute_and_fold): Increment it.  Use statistics_counter_event.
4694
4695 2008-05-15  Diego Novillo  <dnovillo@google.com>
4696
4697         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00893.html
4698
4699         * treestruct.def (TS_STRUCT_FIELD_TAG): Remove.
4700         * tree-ssa-alias.c (new_type_alias): Remove references to
4701         sub-variables from comment.
4702         * tree-ssa-operands.c (swap_tree_operands): Likewise.
4703
4704 2008-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4705
4706         * config/i386/sse.md (*vec_concatv2sf_sse4_1): Set prefix_extra
4707         attribute to 1 only for insertps alternative.
4708
4709 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4710
4711         * config/bfin/bfin.md (loadbytes): New pattern.
4712         * config/bfin/bfin.c (enum bfin_builtins): Add BFIN_BUILTIN_LOADBYTES.
4713         (bfin_init_builtins): Initialize it.
4714         (bdesc_1arg): Add it.
4715
4716 2008-05-15  Sa Liu  <saliu@de.ibm.com>
4717
4718         * testsuite/gfortran.dg/c_kind_int128_test1.f03: New.
4719         * testsuite/gfortran.dg/c_kind_int128_test2.f03: New.
4720         * testsuite/lib/target-supports.exp: Add
4721         check_effective_target_fortran_integer_16.
4722
4723 2008-05-15  Bernd Schmidt  <bernd.schmidt@analog.com>
4724
4725         * config/bfin/bfin.h (TARGET_RETURN_IN_MEMORY): Don't define here.
4726         * config/bfin/bfin-protos.h (bfin_return_in_memory): Don't declare.
4727         * config/bfin/bfin.c (bfin_return_in_memory): Now static.  Return bool.
4728         (TARGET_RETURN_IN_MEMORY): Define.
4729
4730 2008-05-15  Richard Guenther  <rguenther@suse.de>
4731
4732         PR middle-end/36244
4733         * tree-ssa-alias.c (new_type_alias): Do not set TREE_READONLY.
4734         * tree-flow-inline.h (unmodifiable_var_p): Memory tags never
4735         represent unmodifiable vars.
4736
4737 2008-05-15  Richard Guenther  <rguenther@suse.de>
4738
4739         * tree-dfa.c (refs_may_alias_p): Allow all kinds of
4740         INDIRECT_REF and TARGET_MEM_REF.
4741         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
4742         TARGET_MEM_REF.
4743
4744 2008-05-15  Uros Bizjak  <ubizjak@gmail.com>
4745             H.J. Lu  <hongjiu.lu@intel.com>
4746
4747         * config/i386/sse.md (*vec_concatv2sf_sse4_1): New insn pattern.
4748         (*vec_concatv2si_sse4_1): Use vector_move_operand predicate
4749         for operand 2.  Remove pinsr{q,d} with 0x0 immediate operand from
4750         insn alternatives.  Add missing alternatives.
4751         (*vec_concatv2di_rex64_sse4_1): Likewise.
4752         (*vec_concatv2si_sse2): Use "x" register constraint instead of "Y2".
4753         (*vec_concatv2di_rex64_sse): Rename from *vec_concatv2di_rex64.
4754         Require TARGET_SSE.
4755
4756 2008-05-15  Richard Guenther  <rguenther@suse.de>
4757
4758         PR tree-optimization/36009
4759         PR tree-optimization/36204
4760         * tree-ssa-loop-im.c (tree-ssa-propagate.h): Include.
4761         (determine_invariantness_stmt): Record the loop a store is
4762         always executed in.
4763         * Makefile.in (tree-ssa-loop-im.o): Add tree-ssa-propagate.h
4764         dependency.
4765
4766 2008-05-15  Richard Guenther  <rguenther@suse.de>
4767
4768         PR tree-optimization/34330
4769         * tree-ssa-alias.c (get_smt_for): Only assert that accesses
4770         through the pointer will alias the SMT.
4771
4772 2008-05-14  Andreas Tobler  <a.tobler@schweiz.org>
4773
4774         * config/sparc/sparc.h (NO_PROFILE_COUNTERS): Define as 0.
4775
4776 2008-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4777
4778         * config/i386/sse.md (*sse4_1_pinsrq): Make it 64bit only.
4779
4780 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4781             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4782
4783         * optabs.h (optab_index): Add OTI_vashl, OTI_vlshr, OTI_vashr,
4784         OTI_vrotl, OTI_vrotr to support vector/vector shifts.
4785         (vashl_optab): New optab for vector/vector shifts.
4786         (vashr_optab): Ditto.
4787         (vlshr_optab): Ditto.
4788         (vrotl_optab): Ditto.
4789         (vrotr_optab): Ditto.
4790         (optab_subtype): New enum for optab_for_tree_code call.
4791         (optab_for_tree_code): Add enum optab_subtype argument.
4792
4793         * optabs.c (optab_for_tree_code): Take an additional argument to
4794         distinguish between a vector shift by a scalar and vector shift by
4795         a vector.  Make lshr/ashr/ashl/rotl/rotr optabs just vector
4796         shifted by a scalar.  Use vlshr/vashr/vashl/vrotl/vrotr for the
4797         vector shift by a vector.
4798         (expand_widen_pattern_expr): Pass additional argument to
4799         optab_for_tree_code.
4800
4801         * genopinit.c (optabs): Add vashr_optab, vashl_optab, vlshr_optab,
4802         vrotl_optab, vrotr_optab.
4803
4804         * expr.c (expand_expr_real_1): Update calls to
4805         optab_for_tree_code to distinguish between vector shifted by a
4806         scalar and vector shifted by a vector.
4807         * tree-vectorizer.c (supportable_widening_operation): Ditto.
4808         (supportable_narrowing_operation): Ditto.
4809         * tree-vect-analyze.c (vect_build_slp_tree): Ditto.
4810         * tree-vect-patterns.c (vect_pattern_recog_1): Ditto.
4811         * tree-vect-transform.c (vect_model_reduction_cost): Ditto.
4812         (vect_create_epilog_for_reduction): Ditto.
4813         (vectorizable_reduction): Ditto.
4814         (vectorizable_operation): Ditto.
4815         (vect_strided_store_supported): Ditto.
4816         (vect_strided_load_supported): Ditto.
4817         * tree-vect-generic.c (expand_vector_operations_1): Ditto.
4818         * expmed.c (expand_shift): Ditto.
4819
4820         * doc/md.texi (ashl@var{m}3): Document that operand 2 is always a
4821         scalar type.
4822         (ashr@var{m}3): Ditto.
4823         (vashl@var{m}3): Document new vector/vector shift standard name.
4824         (vashr@var{m}3): Ditto.
4825         (vlshr@var{m}3): Ditto.
4826         (vrotl@var{m}3): Ditto.
4827         (vrotr@var{m}3): Ditto.
4828
4829         * config/i386/i386.md (PPERM_SRC): Move PPERM masks here from i386.c.
4830         (PPERM_INVERT): Ditto.
4831         (PPERM_REVERSE): Ditto.
4832         (PPERM_REV_INV): Ditto.
4833         (PPERM_ZERO): Ditto.
4834         (PPERM_ONES): Ditto.
4835         (PPERM_SIGN): Ditto.
4836         (PPERM_INV_SIGN): Ditto.
4837         (PPERM_SRC1): Ditto.
4838         (PPERM_SRC2): Ditto.
4839
4840         * config/i386/sse.md (mulv2di3): Add SSE5 support.
4841         (sse5_pmacsdql_mem): New SSE5 define_and_split that temporarily
4842         allows a memory operand to be the value being added, and split it
4843         to improve vectorization.
4844         (sse5_pmacsdqh_mem): Ditto.
4845         (sse5_mulv2div2di3_low): SSE5 32-bit multiply and extend function.
4846         (sse5_mulv2div2di3_high): Ditto.
4847         (vec_pack_trunc_v8hi): Add SSE5 pperm support.
4848         (vec_pack_trunc_v4si): Ditto.
4849         (vec_pack_trunc_v2di): Ditto.
4850         (sse5_pcmov_<mode>): Remove code that tried to use use
4851         andps/andnps instead of pcmov.
4852         (vec_widen_smult_hi_v4si): If we have SSE5, use the pmacsdql and
4853         pmacsdqh instructions.
4854         (vec_widen_smult_lo_v4si): Ditto.
4855
4856         * config/i386/i386.c (PPERM_SRC): Move PPERM masks to i386.md.
4857         (PPERM_INVERT): Ditto.
4858         (PPERM_REVERSE): Ditto.
4859         (PPERM_REV_INV): Ditto.
4860         (PPERM_ZERO): Ditto.
4861         (PPERM_ONES): Ditto.
4862         (PPERM_SIGN): Ditto.
4863         (PPERM_INV_SIGN): Ditto.
4864         (PPERM_SRC1): Ditto.
4865         (PPERM_SRC2): Ditto.
4866         (ix86_expand_sse_movcc): Move the SSE5 test after the if
4867         true/false tests.
4868         (ix86_expand_int_vcond): If SSE5 generate all possible integer
4869         comparisons.
4870         (ix86_sse5_valid_op_p): Allow num_memory to be negative, which
4871         says ignore whether the last reference is a memory operand.
4872
4873 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4874             Paolo Bonzini <bonzini at gnu dot org>
4875
4876         * config/rs6000/rs6000.c (bdesc_2arg): Change the names of vector
4877         shift patterns.
4878
4879         * config/rs6000/altivec.md (vashl<mode>3): Rename from ashl<mode>3.
4880         (vlshr<mode>3): Rename from vlshr<mode>3.
4881         (vashr<mode>3): Rename from vashr<mode>3.
4882         (mulv4sf3): Change the names of vector shift patterns.
4883         (mulv4si3): Ditto.
4884         (negv4sf2): Ditt.
4885
4886         * config/spu/spu.c (spu_initialize_trampoline): Rename vector
4887         shift insns.
4888
4889         * config/spu/spu-builtins.def (SI_SHLH): Rename vector shift insns.
4890         (SI_SHLHI): Ditto.
4891         (SI_SHL): Ditto.
4892         (SI_SHLI): Ditto.
4893         (SI_ROTH): Ditto.
4894         (SI_ROTHI): Ditto.
4895         (SI_ROT): Ditto.
4896         (SI_ROTI): Ditto.
4897         (SPU_RL_0): Ditto.
4898         (SPU_RL_1): Ditto.
4899         (SPU_RL_2): Ditto.
4900         (SPU_RL_3): Ditto.
4901         (SPU_RL_4): Ditto.
4902         (SPU_RL_5): Ditto.
4903         (SPU_RL_6): Ditto.
4904         (SPU_RL_7): Ditto.
4905         (SPU_SL_0): Ditto.
4906         (SPU_SL_1): Ditto.
4907         (SPU_SL_2): Ditto.
4908         (SPU_SL_3): Ditto.
4909         (SPU_SL_4): Ditto.
4910         (SPU_SL_5): Ditto.
4911         (SPU_SL_6): Ditto.
4912         (SPU_SL_7): Ditto.
4913
4914         * config/spu/spu.md (v): New iterator macro to add v for vector types.
4915         (floatunssidf2_internal): Change vector/vector shift names.
4916         (floatunsdidf2_internal): Ditto.
4917         (mulv8hi3): Ditto.
4918         (ashrdi3): Ditto.
4919         (ashrti3): Ditto.
4920         (cgt_df): Ditto.
4921         (cgt_v2df): Ditto.
4922         (dftsv): Ditto.
4923         (vashl<mode>3): Rename from ashl<mode>3.
4924         (vashr<mode>3): Rename from ashr<mode>3.
4925         (vlshr<mode>3): Rename from lshr<mode>3.
4926         (vrotl<mode>3): Rename from rotl<mode>3.
4927
4928 2008-05-14  Michael Meissner  <michael.meissner@amd.com>
4929
4930         PR target/36224
4931         * config/i386/sse.md (vec_widen_smult_hi_v4si): Delete, using unsigned
4932         multiply gives the wrong value when doing widening multiplies.
4933         (vec_widen_smult_lo_v4si): Ditto.
4934
4935 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
4936
4937         * optabs.c (prepare_cmp_insn): Changed LCT_PURE_MAKE_BLOCK to
4938         LCT_PURE and LCT_CONST_MAKE_BLOCK to LCT_CONST in calls to
4939         emit_library_call_value. 
4940         * builtins.c (expand_builtin_powi, expand_builtin_memcmp): Ditto.
4941         * tree.h (ECF_LIBCALL_BLOCK): Removed.
4942         * calls.c (initialize_argument_information, precompute_arguments, 
4943         expand_call, emit_library_call_value_1): Remove ECF_LIBCALL_BLOCK.
4944         (precompute_arguments): Removed flags parameter.
4945         * rtl.h (LCT_CONST_MAKE_BLOCK, LCT_PURE_MAKE_BLOCK): Removed.
4946         
4947 2008-05-14  Richard Guenther  <rguenther@suse.de>
4948
4949         * tree-ssa-dse.c (dse_possible_dead_store_p): Remove dead code.
4950         Make sure to register the store if the use is a PHI_NODE.
4951
4952 2008-05-14  Olivier Hainque  <hainque@adacore.com>
4953
4954         * expr.c (expand_expr_real_1) <normal_inner_ref>: Force op0 to
4955         memory if the component is to be referenced in BLKmode according
4956         to get_inner_reference.
4957
4958 2008-05-14  Adam Nemet  <anemet@caviumnetworks.com>
4959
4960         * calls.c (emit_library_call_value_1): Restore code clearing
4961         ECF_LIBCALL_BLOCK to ensure that we only call end_sequence once.
4962
4963 2008-05-14  Olivier Hainque  <hainque@adacore.com>
4964             Nicolas Roche  <roche@adacore.com>
4965
4966         * configure.ac: Add support for a "gcc_subdir" variable in
4967         config-lang.in, to denote a subdirectory where the language/GCC
4968         integration files are to be found.
4969         * configure: Regenerate.
4970
4971 2008-05-14  Ira Rosen  <irar@il.ibm.com>
4972
4973         PR tree-optimization/36098
4974         * tree-vect-analyze.c (vect_analyze_group_access): Set the gap
4975         value for the first load in the group in case of a gap.
4976         (vect_build_slp_tree): Check that there are no gaps in loads.
4977
4978 2008-05-14  Kenneth Zadeck <zadeck@naturalbridge.com>
4979
4980         * doc/rtl.texi: Removed reference to REG_NO_CONFLICT notes.
4981         * optabs.c (expand_binop, expand_absneg_bit, expand_unop,
4982         expand_copysign_bit, ): Change call to emit_no_conflict_block to
4983         emit_insn and remove unneeded code to construct extra args.
4984         (emit_no_conflict_block): Removed.
4985         * optabls.h: (emit_no_conflict_block): Removed.
4986         * cse.c (cse_extended_basic_block): Remove search for
4987         REG_NO_CONFLICT note.
4988         * global.c: Removed incorrect comment added in revision 117.
4989         * expr.c (convert_move): Change call to emit_no_conflict_block to
4990         emit_insn.
4991         * recog.c: Change comments so that they do not mention
4992         REG_NO_CONFLICT.
4993         * local_alloc.c (combine_regs): Removed last parameter.
4994         (no_conflict_p): Removed.
4995         (block_alloc): Removed note, no_conflict_combined_regno and set
4996         local vars. Removed all code to process REG_NO_CONFLICT blocks.
4997         (combine_regs): Removed already_dead and code to look for
4998         REG_NO_CONFLICT notes.
4999         * lower_subreg (remove_retval_note): Removed code to look for
5000         REG_NO_CONFLICT block.
5001         (resolve_reg_notes): Removed REG_NO_CONFLICT case.
5002         (resolve_clobber): Remove code to process libcalls that have
5003         REG_NO_CONFLICT notes.
5004         * loop_invariant.c (find_invariant_insn): Removed REG_NO_CONFLICT
5005         case.
5006         * combine.c (can_combine_p, distribute_notes):  Removed
5007         REG_NO_CONFLICT case.
5008         * config/cris/cris.md (movdi pattern): Changed emit_no_conflict_block
5009         to emit_insns.
5010         * config/mn10300/mn10300.md (absdf2, negdf2 patterns): Ditto.
5011         * config/m68k/m68k.md (negdf2, negxf2, absdf2, absxf2 patterns):
5012         Ditto.
5013         * reg-notes.def (NO_CONFLICT): Removed.
5014
5015 2008-05-14  David S. Miller  <davem@davemloft.net>
5016
5017         * config/sparc/sparc.c (sparc_profile_hook): If
5018         NO_PROFILE_COUNTERS, don't generate and pass a label into mcount.
5019         * config/sparc/linux.h (NO_PROFILE_COUNTERS): Define as 1.
5020         * config/sparc/linux64.h (NO_PROFILE_COUNTERS): Likewise.
5021
5022 2008-05-14  Andreas Krebbel  <krebbel1@de.ibm.com>
5023
5024         * cse.c (cse_cc_succs): Invoke delete_insn_and_edges.
5025
5026 2008-05-13  Uros Bizjak  <ubizjak@gmail.com>
5027
5028         PR target/36222
5029         * config/i386/i386.c (ix86_expand_vector_init_general): Rearrange op0
5030         and op1 expansion before vector concat to have less live pseudos.
5031
5032 2008-05-13  H.J. Lu  <hongjiu.lu@intel.com>
5033
5034         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
5035         ix86_expand_vector_set if supported.
5036
5037 2008-05-13  Diego Novillo  <dnovillo@google.com>
5038             Kenneth Zadeck  <zadeck@naturalbridge.com>
5039
5040         http://gcc.gnu.org/ml/gcc-patches/2008-05/msg00748.html
5041
5042         * tree.h (init_phinodes, fini_phinodes, release_phi_node,
5043         phinodes_print_statistics, init_ssanames, fini_ssanames,
5044         make_ssa_name, duplicate_ssa_name, duplicate_ssa_name_ptr_info,
5045         release_ssa_name, release_defs, replace_ssa_name_symbol,
5046         ssanames_print_statistics): Move ...
5047         * tree-flow.h: ... here.
5048         * tree-ssanames.c (init_ssanames): Add arguments FN and SIZE.
5049         Use FN instead of cfun.
5050         (make_ssa_name_fn): Rename from make_ssa_name.
5051         (pass_release_ssa_names): Add TODO_dump_func to finish flags.
5052         * tree-flow-inline.h (make_ssa_name): Move from
5053         tree-ssanames.c.  Convert to static inline.  Call make_ssa_name_fn.
5054         * omp-low.c (expand_omp_parallel):
5055         * tree-flow-inline.h (redirect_edge_var_map_result):
5056         * tree-ssa.c (init_tree_ssa): Add argument FN.
5057         Use it instead of cfun.  Update all users.
5058
5059 2008-05-13  Tom Tromey  <tromey@redhat.com>
5060
5061         PR preprocessor/22168:
5062         * doc/cpp.texi (Top): Update menu.
5063         (Alternatives to Wrapper #ifndef): New node.
5064         (Other Directives): Document deprecation.
5065         (Obsolete Features): Remove menu.
5066         (Assertions): Merge node into Obsolete Features.
5067         (Obsolete once-only headers): Move earlier; rename to Alternatives
5068         to Wrapper #ifndef.
5069         * doc/cppopts.texi: Update.
5070         * c.opt (Wdeprecated): Enable for C and ObjC.
5071         * doc/invoke.texi (Option Summary): Move -Wno-deprecated.
5072         (C++ Dialect Options): Move -Wno-deprecated from here to...
5073         (Warning Options): ... here.
5074
5075 2008-05-13  Richard Guenther  <rguenther@suse.de>
5076
5077         PR middle-end/36227
5078         * fold-const.c (fold_sign_changed_comparison): Do not allow
5079         changes in pointer-ness.
5080
5081 2008-05-12  Kaz Kojima  <kkojima@gcc.gnu.org>
5082
5083         PR target/24713
5084         * config/sh/sh.c (sh_expand_prologue): Don't clear
5085         RTX_FRAME_RELATED_P for push insns.
5086
5087 2008-05-12  Andy Hutchinson  <hutchinsonandy@aim.com>
5088
5089         * config/avr/avr.h (MAX_OFILE_ALIGNMENT): Define.
5090
5091 2008-05-12  Anatoly Sokolov <aesok@post.ru>
5092
5093         * config/avr/avr.h (machine_function): Add 'is_leaf' field.
5094         * config/avr/avr.c (avr_regs_to_save): Compute 'machine->is_leaf'.
5095         Use 'machine->is_leaf' instead of 'leaf_func_p'.
5096
5097 2008-05-12  H.J. Lu  <hongjiu.lu@intel.com>
5098
5099         * config/i386/sse.md (*sse_concatv4sf): Renamed to ...
5100         (*vec_concatv4sf_sse): This.
5101         (*sse2_concatv2si): Renamed to ...
5102         (*vec_concatv2si_sse2): This.
5103         (*sse1_concatv2si): Renamed to ...
5104         (*vec_concatv2si_sse): This.
5105         (*vec_concatv2di_rex): Renamed to ...
5106         (*vec_concatv2di_rex64): This.
5107         (*vec_concatv2si_sse4_1): New.
5108         (*vec_concatv2di_rex64_sse4_1): Likewise.
5109
5110 2008-05-12  Uros Bizjak  <ubizjak@gmail.com>
5111
5112         PR rtl-optimization/36111
5113         * recog.c (validate_replace_rtx_1): Unshare new RTL expression
5114         that was created for swappable operands.
5115
5116 2008-05-12  Samuel Tardieu  <sam@rfc1149.net>
5117
5118         PR ada/36001
5119         * Makefile.in: Substitute GNATMAKE and GNATBIND.
5120         * configure.ac: Add call to ACX_PROG_GNAT.
5121
5122 2008-05-11  Volker Reichelt  <v.reichelt@netcologne.de>
5123
5124         * optc-gen.awk: Fix comment typo.
5125
5126 2008-05-11  Aaron W. LaFramboise  <aaronavay62@aaronwl.com>
5127
5128         * pretty-print.c (pp_integer_with_precision): Use
5129         HOST_LONG_LONG_FORMAT.
5130
5131 2008-05-10  Kenneth Zadeck  <zadeck@naturalbridge.com>
5132
5133         * gcse.c (store_killed_in_insn): Negated call to RTL_CONST_CALL_P.
5134                 
5135 2008-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5136
5137         * config/i386/i386.c (bdesc_ptest): Removed.
5138         (ix86_builtin_type): Add INT_FTYPE_V2DI_V2DI_PTEST.
5139         (bdesc_args): Add __builtin_ia32_ptestz128,
5140         __builtin_ia32_ptestc128 and __builtin_ia32_ptestnzc128.
5141         (ix86_init_mmx_sse_builtins): Updated.
5142         (ix86_expand_args_builtin): Handle INT_FTYPE_V2DI_V2DI_PTEST.
5143         (ix86_expand_builtin): Updated.
5144
5145 2008-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
5146
5147         * tree-cfg.c (valid_fixed_convert_types_p): New function.
5148         (verify_gimple_expr): Handle FIXED_CONVERT_EXPR.
5149
5150 2008-05-10  Uros Bizjak  <ubizjak@gmail.com>
5151
5152         * value-prof.c (interesting_stringop_to_profile): Do not
5153         return early for BUILT_IN_MEMPCPY.
5154
5155 2008-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5156
5157         * calls.c (expand_call): Don't use callgraph to increase
5158         preferred_stack_boundary.
5159
5160         * cgraph.h (cgraph_rtl_info): Use unsigned on
5161         preferred_incoming_stack_boundary.
5162
5163         * final.c (rest_of_clean_state): Use unsigned on
5164         preferred_stack_boundary.
5165
5166 2008-05-09  Tom Tromey  <tromey@redhat.com>
5167
5168         PR preprocessor/22231:
5169         * c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
5170         proceeding.
5171
5172 2008-05-09  Uros Bizjak  <ubizjak@gmail.com>
5173
5174         PR tree-optimization/36129
5175         * tree-ssa-ccp.c: Include value-prof.h.
5176         (execute_fold_all_builtins): Call gimple_remove_stmt_histograms if
5177         built-in function was folded to a constant.
5178         * Makefile.in (tree-ssa-ccp.c): Depend on value-prof.h
5179
5180 2008-05-09  Jan Sjodin  <jan.sjodin@amd.com>
5181             Sebastian Pop  <sebastian.pop@amd.com>
5182
5183         * tree-scalar-evolution.c: Document instantiate_scev.
5184         (instantiate_parameters_1): Renamed instantiate_scev_1.
5185         Don't use the same loop for instantiation_loop and evolution_loop.
5186         (instantiate_scev): New.
5187         (instantiate_parameters): Moved...
5188         (resolve_mixers): Update call to instantiate_scev_1 to pass the
5189         same loop twice.  Maintains the semantics for this function.
5190         * tree-scalar-evolution.h (instantiate_scev): Declare.
5191         (instantiate_parameters): ...here.  Now static inline.
5192         * tree-data-ref.c (dr_analyze_indices): Call instantiate_scev
5193         instead of resolve_mixers.
5194
5195 2008-05-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
5196
5197         * rtl-factoring.c (collect_pattern_seqs): Fix typo.
5198
5199 2008-05-09  Tomas Bily  <tbily@suse.cz>
5200
5201         * config/pa/pa.c (reloc_needed): Use CASE_CONVERT.
5202         * tree-cfg.c (verify_expr, verify_gimple_expr): Likewise.
5203         * tree-ssa-structalias.c (get_constraint_for): Likewise.
5204         * c-common.c (c_common_truthvalue_conversion): Likewise.
5205         * tree-object-size.c (compute_object_offset): Likewise.
5206         * tree-inline.c (estimate_num_insns_1): Likewise.
5207         * varasm.c (const_hash_1, compare_constant, copy_constant)
5208         (compute_reloc_for_constant, output_addressed_constants)
5209         (initializer_constant_valid_p): Likewise.
5210         * c-omp.c (check_omp_for_incr_expr): Likewise.
5211         * gimplify.c (gimplify_expr): Likewise.
5212         * c-typeck.c (c_finish_return): Likewise.
5213         * tree-vectorizer.c (supportable_widening_operation)
5214         (supportable_narrowing_operation): Likewise.
5215         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Likewise.
5216         * matrix-reorg.c (can_calculate_expr_before_stmt): Likewise.
5217         * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
5218         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info)
5219         (descr_info_loc): Likewise.
5220         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
5221         * fold-const.c (operand_equal_p, make_range, extract_muldiv_1)
5222         (fold_unary): Likewise.
5223         * builtins.c (get_pointer_alignment): Likewise.
5224         * tree-scalar-evolution.c (interpret_rhs_modify_stmt)
5225         (instantiate_parameters_1): Likewise.
5226         * tree.c (expr_align, stabilize_reference): Likewise.
5227         * tree-pretty-print.c (dump_generic_node, op_prio): Likewise.
5228         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
5229         * convert.c (strip_float_extensions): Use CONVERT_EXPR_P.
5230         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
5231         * config/alpha/alpha.c (va_list_skip_additions): Likewise.
5232         * c-common.c (c_alignof_expr, check_function_arguments_recurse):
5233         Likewise.
5234         * tree-ssa.c (tree_ssa_useless_type_conversion): Likewise.
5235         * varasm.c (initializer_constant_valid_p, output_constant): Likewise.
5236         * tree-ssa-forwprop.c (get_prop_source_stmt, can_propagate_from)
5237         (forward_propagate_addr_expr_1, forward_propagate_addr_expr)
5238         (forward_propagate_comparison)
5239         (tree_ssa_forward_propagate_single_use_vars): Likewise.
5240         * cfgexpand.c (discover_nonconstant_array_refs_r): Likewise.
5241         * emit-rtl.c (component_ref_for_mem_expr)
5242         (set_mem_attributes_minus_bitpos): Likewise.
5243         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
5244         * gimplify.c (gimplify_conversion, goa_lhs_expr_p, gimplify_expr):
5245         Likewise.
5246         * c-typeck.c (default_function_array_conversion, build_indirect_ref)
5247         (build_function_call, pointer_diff, build_compound_expr)
5248         (c_finish_return): Likewise.
5249         * tree-vect-analyze.c (vect_determine_vectorization_factor): Likewise.
5250         * matrix-reorg.c (get_inner_of_cast_expr, may_flatten_matrices_1):
5251         Likewise.
5252         * tree-ssa-ifcombine.c (recognize_single_bit_test): Likewise.
5253         * expr.c (is_aligning_offset): Likewise.
5254         * tree-ssa-alias.c (is_escape_site): Likewise.
5255         * tree-stdarg.c (va_list_counter_bump, check_va_list_escapes)
5256         (check_all_va_list_escapes): Likewise.
5257         * tree-ssa-loop-ivopts.c (determine_base_object)
5258         (determine_common_wider_type): Likewise.
5259         * dojump.c (do_jump): Likewise.
5260         * tree-ssa-sccvn.c (simplify_unary_expression): Likewise.
5261         * tree-gimple.c (is_gimple_cast): Likewise.
5262         * fold-const.c (decode_field_reference, )
5263         (fold_sign_changed_comparison, fold_unary, fold_comparison)
5264         (fold_binary): Likewise.
5265         * tree-ssa-alias-warnings.c (find_alias_site_helper)
5266         (already_warned_in_frontend_p): Likewise.
5267         * builtins.c (get_memory_rtx, fold_builtin_next_arg): Likewise.
5268         * tree.c (really_constant_p, get_unwidened): Likewise.
5269         * tree-ssa-loop-niter.c (expand_simple_operations): Likewise.
5270         * tree-ssa-loop-im.c (rewrite_bittest): Likewise.
5271         * tree-vrp.c (register_edge_assert_for_2, register_edge_assert_for_1):
5272         Likewise.
5273         * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS, STRIP_TYPE_NOPS): Use
5274         CONVERT_EXPR_P.
5275         (CONVERT_EXPR_P): Define.
5276         (CASE_CONVERT): Define.
5277         
5278 2008-05-08  Kenneth Zadeck  <zadeck@naturalbridge.com>
5279
5280         PR middle-end/36117
5281         * dce.c (deletable_insn_p): Do not delete calls if df_in_progress.
5282         (delete_unmarked_insns): When deleting a call, call
5283         delete_unreachable_blocks.
5284         * rtl.texi (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
5285         RTL_CONST_OR_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P): Fixed doc.
5286
5287 2008-05-08  Richard Guenther  <rguenther@suse.de>
5288
5289         * doc/invoke.texi (-fdump-tree-salias): Remove documentation.
5290         (-ftree-salias): Likewise.
5291         (salias-max-implicit-fields): Remove param documentation.
5292         (salias-max-array-elements): Likewise.
5293         * tree-pass.h (pass_create_structure_vars): Remove.
5294         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): Remove.
5295         (SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
5296         * tree-ssa-alias.c (create_structure_vars): Remove.
5297         (gate_structure_vars): Likewise.
5298         (pass_create_structure_vars): Likewise.
5299         (gate_build_alias): Likewise.
5300         (pass_build_alias): Adjust to run always and dump the function.
5301         * common.opt (ftree-salias): Hide.
5302         * passes.c (init_optimization_passes): Remove
5303         pass_create_structure_vars, adjust comment.
5304         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): Remove.
5305         (PARAM_SALIAS_MAX_ARRAY_ELEMENTS): Likewise.
5306         * opts.c (decode_options): Do not set flag_tree_salias.
5307         (common_handle_option): Add OPT_ftree_salias to the backward
5308         compatibility section.
5309
5310 2008-05-08  Richard Guenther  <rguenther@suse.de>
5311
5312         * tree-flow-inline.h (var_can_have_subvars): Move ...
5313         * tree-ssa-structalias.c (var_can_have_subvars): ... here.
5314         * tree-flow.h (var_can_have_subvars): Remove.
5315         (push_fields_onto_fieldstack): Remove.
5316         (sort_fieldstack): Likewise.
5317         (struct fieldoff): Move ...
5318         * tree-ssa-structalias.c (struct fieldoff): ... here.  Remove
5319         alias_set and base_for_components fields.
5320         (sort_fieldstack): Make static.
5321         (push_fields_onto_fieldstack): Likewise.  Remove code that
5322         handles anything but RECORD_TYPEs.  Remove alias_set and
5323         base_for_components handling.
5324         (create_variable_info_for): Adjust.
5325
5326 2008-05-08  Seongbae Park  <seongbae.park@gmail.com>
5327
5328         * common.opt (Wframe-larger-than=): Shorten the help message
5329         to one line.
5330         * doc/invoke.texi (Wframe-larger-than=): Add more description.
5331
5332 2008-05-08  Rafael Espindola  <espindola@google.com>
5333
5334         * tree-complex.c (expand_complex_div_wide): Don't create CONDs that
5335         trap.
5336         * tree-gimple.c (is_gimple_condexpr): Check that the expression doesn't
5337         trap and that both operands are gimple values.
5338         (canonicalize_cond_expr_cond): Use is_gimple_condexpr.
5339         * gcc/tree-eh.c (tree_could_trap_p): Correctly detect if a comparison
5340         is a fp operation.
5341
5342 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
5343
5344         * read-rtl.c (join_c_conditions): Return the first string if the
5345         two strings are equal.
5346
5347 2008-05-08  Richard Sandiford  <rsandifo@nildram.co.uk>
5348
5349         * gensupport.h (pred_data): Add a "num_codes" field.
5350         (add_predicate_code): Declare.
5351         * gensupport.c (add_predicate_code): New function.
5352         (std_pred_table): Add an "allows_const_p" field.
5353         (std_preds): Set this field for predicates that allow RTX_CONST_OBJs.
5354         Remove the (incomplete) list of such codes from the codes field.
5355         (init_predicate_table): Use add_predicate_code.  Add all
5356         RTX_CONST_OBJs if allows_const_p is true.
5357         * genrecog.c (process_define_predicate): Use add_predicate_code.
5358
5359 2008-05-08  David Daney  <ddaney@avtrex.com>
5360             Richard Sandiford  <rsandifo@nildram.co.uk>
5361         
5362         * config/mips/mips.md (mips_expand_compare_and_swap_12): Handle
5363         special case of constant zero operands.
5364         * config/mips/mips.c (mips_expand_compare_and_swap_12): Zero extend
5365         old and new values.  Special case constant zero values.
5366         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP): Skip 'sync' if compare
5367         fails.
5368         (MIPS_COMPARE_AND_SWAP_12): Handle constant zero operands.
5369         (MIPS_COMPARE_AND_SWAP_12_0): New macro.
5370
5371 2008-05-08  Paolo Bonzini  <bonzini@gnu.org>
5372
5373         PR target/36090
5374         * simplify-rtx.c (simplify_plus_minus): Create CONST of
5375         similar RTX_CONST_OBJ before CONST_INT.
5376
5377 2008-05-08  Steve Ellcey  <sje@cup.hp.com>
5378
5379         * stmt.c (expand_stack_restore): Change sa mode if needed.
5380
5381 2008-05-08  Richard Guenther  <rguenther@suse.de>
5382
5383         * config/i386/i386-protos.h (ix86_return_in_memory): Adjust
5384         return type to bool.
5385         (ix86_sol10_return_in_memory): Likewise.
5386         (ix86_i386elf_return_in_memory): Likewise.
5387         (ix86_i386interix_return_in_memory): Likewise.
5388         * config/i386/i386.c (ix86_return_in_memory): Likewise.
5389         (ix86_sol10_return_in_memory): Likewise.
5390         (ix86_i386elf_return_in_memory): Likewise.
5391         (ix86_i386interix_return_in_memory): Likewise.
5392
5393 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
5394
5395         PR bootstrap/36180
5396         * calls.c (compute_argument_block_size ): Add ATTRIBUTE_UNUSED to
5397         fndecl argument.
5398         (emit_library_call_value_1): Add ATTRIBUTE_UNUSED to variable fndecl.
5399         * target-def.h: Check that TARGET_RETURN_IN_MEMORY isn't
5400         declared in front.
5401
5402 2008-05-08  Richard Guenther  <rguenther@suse.de>
5403
5404         * tree-data-ref.c (dr_analyze_alias): Do not set DR_SUBVARS.
5405         * tree-data-ref.h (struct dr_alias): Remove subvars field.
5406         (DR_SUBVARS): Remove.
5407         * tree-dfa.c (dump_subvars_for): Remove.
5408         (debug_subvars_for): Likewise.
5409         (dump_variable): Do not dump subvars.
5410         (remove_referenced_var): Do not remove subvars.
5411         * tree-flow-inline.h (clear_call_clobbered): SFTs no longer exist.
5412         (lookup_subvars_for_var): Remove.
5413         (get_subvars_for_var): Likewise.
5414         (get_subvars_at): Likewise.
5415         (get_first_overlapping_subvar): Likewise.
5416         (overlap_subvar): Likewise.
5417         * tree-flow.h (subvar_t): Remove.
5418         (struct var_ann_d): Remove subvars field.
5419         * tree-ssa-alias.c (mark_aliases_call_clobbered): Remove queued
5420         argument.  Remove special handling of SFTs.
5421         (compute_tag_properties): Likewise.
5422         (set_initial_properties): Likewise.
5423         (compute_call_clobbered): Likewise.
5424         (count_mem_refs): Likewise.
5425         (compute_memory_partitions): Likewise.
5426         (compute_flow_insensitive_aliasing): Likewise.
5427         (setup_pointers_and_addressables): Likewise.
5428         (new_type_alias): Likewise.
5429         (struct used_part): Remove.
5430         (used_portions): Likewise.
5431         (struct used_part_map): Likewise.
5432         (used_part_map_eq): Likewise.
5433         (used_part_map_hash): Likewise.
5434         (free_used_part_map): Likewise.
5435         (up_lookup): Likewise.
5436         (up_insert): Likewise.
5437         (get_or_create_used_part_for): Likewise.
5438         (create_sft): Likewise.
5439         (create_overlap_variables_for): Likewise.
5440         (find_used_portions): Likewise.
5441         (create_structure_vars): Likewise.
5442         * tree.def (STRUCT_FIELD_TAG): Remove.
5443         * tree.h (MTAG_P): Adjust.
5444         (struct tree_memory_tag): Remove base_for_components and
5445         unpartitionable flags.
5446         (struct tree_struct_field_tag): Remove.
5447         (SFT_PARENT_VAR): Likewise.
5448         (SFT_OFFSET): Likewise.
5449         (SFT_SIZE): Likewise.
5450         (SFT_NONADDRESSABLE_P): Likewise.
5451         (SFT_ALIAS_SET): Likewise.
5452         (SFT_UNPARTITIONABLE_P): Likewise.
5453         (SFT_BASE_FOR_COMPONENTS_P): Likewise.
5454         (union tree_node): Remove sft field.
5455         * alias.c (get_alias_set): Remove special handling of SFTs.
5456         * print-tree.c (print_node): Remove handling of SFTs.
5457         * tree-dump.c (dequeue_and_dump): Likewise.
5458         * tree-into-ssa.c (mark_sym_for_renaming): Likewise.
5459         * tree-nrv.c (dest_safe_for_nrv_p): Remove special handling of SFTs.
5460         * tree-predcom.c (set_alias_info): Do not set subvars.
5461         * tree-pretty-print.c (dump_generic_node): Do not handle SFTs.
5462         * tree-ssa-loop-ivopts.c (get_ref_tag): Likewise.
5463         * tree-ssa-operands.c (access_can_touch_variable): Likewise.
5464         (add_vars_for_offset): Remove.
5465         (add_virtual_operand): Remove special handling of SFTs.
5466         (add_call_clobber_ops): Likewise.
5467         (add_call_read_ops): Likewise.
5468         (get_asm_expr_operands): Likewise.
5469         (get_modify_stmt_operands): Likewise.
5470         (get_expr_operands): Likewise.
5471         (add_to_addressable_set): Likewise.
5472         * tree-ssa.c (verify_ssa_name): Do not handle SFTs.
5473         * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
5474         * tree-vect-transform.c (vect_create_data_ref_ptr): Do not set subvars.
5475         * tree.c (init_ttree): Remove STRUCT_FIELD_TAG initialization.
5476         (tree_code_size): Remove STRUCT_FIELD_TAG handling.
5477         (tree_node_structure): Likewise.
5478         * tree-ssa-structalias.c (set_uids_in_ptset): Remove special
5479         handling of SFTs.
5480         (find_what_p_points_to): Likewise.
5481
5482 2008-05-08  Sa Liu  <saliu@de.ibm.com>
5483
5484         * config/spu/spu.md: Fixed subti3 pattern.
5485
5486 2008-05-08  Richard Guenther  <rguenther@suse.de>
5487
5488         PR middle-end/36154
5489         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
5490         sure to create a representative for trailing arrays for PTA.
5491
5492 2008-05-08  Richard Guenther  <rguenther@suse.de>
5493
5494         PR middle-end/36172
5495         * fold-const.c (operand_equal_p): Two objects which types
5496         differ in pointerness are not equal.
5497
5498 2008-05-08  Kai Tietz  <kai.tietz@onevision.com>
5499
5500         * calls.c (compute_argument_block_size): Add argument tree fndecl.
5501         (OUTGOING_REG_PARM_STACK_SPACE): Add function type argument.
5502         (emit_library_call_value_1): Add new variable fndecl initialized by
5503         NULL_TREE. It should be the decl type of orgfun, but this information
5504         seems not to be available here, so it uses the default calling abi.
5505         * config/arm/arm.c (arm_return_in_memory): Add fntype argumen.
5506         * config/arm/arm.h (RETURN_IN_MEMORY): Replace RETURN_IN_MEMORY
5507         by TARGET_RETURN_IN_MEMORY.
5508         * config/i386/i386-interix.h: Likewise.
5509         * config/i386/i386.h: Likewise.
5510         * config/i386/i386elf.h: Likewise.
5511         * config/i386/ptx4-i.h: Likewise.
5512         * config/i386/sol2-10.h: Likewise.
5513         * config/i386/sysv4.h: Likewise.
5514         * config/i386/vx-common.h: Likewise.
5515         * config/cris/cris.h: Removed #if 0 clause.
5516         * config/arm/arm-protos.h (arm_return_in_memory): Add fntype argument.
5517         * config/i386/i386-protos.h (ix86_return_in_memory): Add fntype
5518         argument.
5519         (ix86_sol10_return_in_memory): Likewise.
5520         (ix86_i386elf_return_in_memory): New.
5521         (ix86_i386interix_return_in_memory): New.
5522         * config/mt/mt-protos.h (mt_return_in_memory): New.
5523         * config/mt/mt.c: Likewise.
5524         * config/mt/mt.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
5525         (RETURN_IN_MEMORY):  Replace by TARGET_RETURN_IN_MEMORY.
5526         * config/bfin/bfin.h: Likewise.
5527         * config/bfin/bfin-protos.h (bfin_return_in_memory): Add fntype
5528         argument.
5529         * config/bfin/bfin.c: Likewise.
5530         * config/pa/pa.h (OUTGOING_REG_PARM_STACK_SPACE): Add FNTYPE argument.
5531         * config/alpha/unicosmk.h: Likewise.
5532         * config/i386/cygming.h: Likewise.
5533         * config/iq2000/iq2000.h: Likewise.
5534         * config/mips/mips.h: Likewise.
5535         * config/mn10300/mn10300.h: Likewise.
5536         * config/rs6000/rs6000.h: Likewise.
5537         * config/score/score.h: Likewise.
5538         * config/spu/spu.h: Likewise.
5539         * config/v850/v850.h: Likewise.
5540         * defaults.h: Likewise.
5541         * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Adjust documentation.
5542         * expr.c (emit_block_move): Adjust use of
5543         OUTGOING_REG_PARM_STACK_SPACE.
5544         * function.c (STACK_DYNAMIC_OFFSET): Adjust use of
5545         OUTGOING_REG_PARM_STACK_SPACE.
5546         * targhooks.c (default_return_in_memory): Remove RETURN_IN_MEMORY.
5547
5548 2008-05-08  Jakub Jelinek  <jakub@redhat.com>
5549
5550         * tree-parloops.c (create_parallel_loop): Set OMP_RETURN_NOWAIT
5551         on OMP_RETURN for OMP_FOR.
5552
5553         PR debug/35896
5554         * dwarf2out.c (dw_expand_expr, common_check): Removed.
5555         (fortran_common): New function.
5556         (gen_variable_die): Call fortran_common instead of common_check,
5557         adjust for it returning tree instead of rtx.  Formatting.
5558
5559 2008-05-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
5560
5561         PR rtl/7335
5562         PR rtl/33826
5563         * see.c (see_copy_insn): Copy new pure const attributes for new call.
5564         * c-decl.c (merge_decls): Ditto.
5565         * postreload.c (record_opr_changes): Change CONST_OR_PURE_CALL_P
5566         to RTL_CONST_OR_PURE_CALL_P.
5567         * tree.c (define_local_buitin): Rename DECL_IS_PURE to DECL_PURE_P.
5568         Initialized DECL_LOOPING_CONST_PURE.
5569         (process_call_operands): Set tree_side_effects properly.
5570         * tree.h (TREE_READONLY_DECL_P): Removed.
5571         (DECL_IS_PURE): Renamed to DECL_PURE_P.
5572         (DECL_LOOPING_OR_CONST_P): New macro.
5573         (struct tree_function_decl): Added looping_const_or_pure_p.
5574         (ECF_*) Renumbered.
5575         (ECF_LOOPING_OR_CONST_P): New macro.
5576         * rtlanal.c (pure_const_p): Removed.
5577         * builtins.c (expand_builtin): Rename DECL_IS_PURE to DECL_PURE_P.
5578         * reorg.c (delete_prior_computation) Changed CONST_OR_PURE_CALL_P
5579         to RTL_CONST_CALL_P.
5580         * ipa-pure-const.c (pure_const_state_e): Added looping field.
5581         (check_decl, check_tree, check_call, scan_function): Initialize
5582         looping.
5583         (analyze_function): Rename DECL_IS_PURE to DECL_PURE_P.
5584         (static_execute): Set looping true for recursive functions.
5585         Undo setting state to IPA_NEITHER for recursive functions.
5586         * cse.c (cse_insn): 
5587         * ifcvt.c (noce_can_store_speculate_p): Changed
5588         CONST_OR_PURE_CALL_P and pure_call_p to RTL_CONST_CALL_P or 
5589         RTL_CONST_OR_PURE_CALL_P.
5590         * dse.c (scan_insn): Ditto.
5591         * local-alloc.c (validate_equiv_mem, memref_used_between_p): Ditto.
5592         * gcse.c (oprs_not_seen_p) Changed CONST_OR_PURE_CALL_P to
5593         RTL_CONST_OR_PURE_CALL_P.
5594         (store_killed_in_insn): Changed CONST_OR_PURE_CALL_P and
5595         pure_call_p to RTL_CONST_CALL_P.
5596         * gimplify.c (gimplify_call_expr): Clear side effects for
5597         non-looping pure and constant calls.
5598         * calls.c (emit_call_1): Set rtl flags from ecf flags.
5599         (flags_from_decl_or_type): Set ecf flags from decl flags.
5600         (initialize_argument_information): Turn off
5601         ECF_LOOPING_CONST_OR_PURE when turning off ECF_CONST.
5602         Change const to pure if callee_copies is true rather than just
5603         turning off const.
5604         (expand_call): Turn off ECF_LOOPING_PURE_CONST_CALL and remove old
5605         way of marking pure calls.
5606         (emit_library_call_value_1): Turn off ECF_LOOPING_PURE_CONST_CALL.
5607         Remove hack that was supposed to fix pr7335 and remove old
5608         way of marking pure calls.
5609         * emit-rtl.c (emit_copy_of_insn_after): Copy RTL_CONST_CALL_P,
5610         RTL_PURE_CALL_P, RTL_LOOPING_CONST_OR_PURE_CALL_P.
5611         * cselib.c (cselib_process_insn): Changed CONST_OR_PURE_CALL_P to
5612         RTL_CONST_OR_PURE_CALL_P.
5613         * tree-ssa-pre.c (can_value_number_call): Fixed spacing.
5614         * loop-invariant.c (find_exits, find_invariant_bb): Changed
5615         CONST_OR_PURE_CALL_P to RTL_CONST_OR_PURE_CALL_P.
5616         * sched-deps.c (schedule_analyze): Ditto.
5617         * rtl.h (struct rtx_def): Use call field, unchanging field, and
5618         return_val field of calls to represent pure and const function info.
5619         (CONST_OR_PURE_CALL_P): Deleted macro.
5620         (RTL_CONST_CALL_P, RTL_PURE_CALL_P,
5621         RTL_LOOPING_CONST_OR_PURE_CALL_P, RTL_CONST_OR_PURE_P): New macros.
5622         * tree-inline.c (copy_body_r): Changed TREE_READONLY_DECL_P to
5623         TREE_READONLY.
5624         * tree-optimize.c (execute_fixup_cfg): Added test for
5625         ECF_LOOPING_CONST_OR_PURE.
5626         * c-common.c (handle_pure_attribute): Changed DECL_IS_PURE to
5627         DECL_PURE_P.
5628         * tree-cfg.c (update_call_expr_flags): Do not clear tree side
5629         effects for looping pure or const calls.
5630         (verify_gimple_expr): Added verification code. 
5631         * config/alpha/alpha.c (alpha_legitimize_address,
5632         alpha_emit_xfloating_libcall): Changed CONST_OR_PURE_CALL_P to
5633         RTL_CONST_CALL_P.
5634         * config/s390/s390.c (s390_emit_tls_call_insn): Ditto.
5635         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Ditto.
5636         * config/mips/mips.c (mips_call_tls_get_addr): Ditto.
5637         * cfgrtl.c (need_fake_edge_p): Changed CONST_OR_PURE_CALL_P to
5638         RTL_CONST_OR_PURE_CALL_P.
5639         * dce.c (deletable_insn_p): Allow non looping, non sibling, pure
5640         and const calls to be deleted.
5641
5642 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
5643
5644         PR target/35714
5645         * config/i386/mmx.md (mmx_subv2sf3): New expander.
5646         (*mmx_subv2sf3): Rename from mmx_subv2sf3 insn pattern.
5647         (*mmx_eqv2sf3): Rename from mmx_eqv2sf3 insn pattern.
5648         (mmx_eqv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5649         to handle nonimmediate operands.
5650         (*mmx_paddwd): Rename from mmx_paddwd insn pattern.
5651         (mmx_paddwd): New expander.  Use ix86_fixup_binary_operands_no_copy
5652         to handle nonimmediate operands.
5653         (*mmx_pmulhrwv4hi3): Rename from mmx_pmulhrwv4hi3 insn pattern.
5654         (mmx_pmulhrwv4hi3): New expander.  Use
5655         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5656         (*sse2_umulv1siv1di3): Rename from sse2_umulv1siv1di3 insn pattern.
5657         (sse2_umulv1siv1di3): New expander.  Use
5658         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5659         (*mmx_eq<mode>3): Rename from mmx_eq<mode>3 insn pattern.
5660         (mmx_eq<mode>3): New expander.  Use
5661         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5662         (*mmx_uavgv8qi3): Rename from mmx_uavgv8qi3 insn pattern.
5663         (mmx_uavgv8qi3): New expander.  Use
5664         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5665         (*mmx_uavgv4hi3): Rename from mmx_uavgv4hi3 insn pattern.
5666         (mmx_uavgv4hi3): New expander.  Use
5667         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5668
5669         * config/i386/sse.md
5670         (sse_movhlps_exp): New expander.  Use ix86_fixup_binary_operands
5671         to handle nonimmediate operands.
5672         (sse_movlhps_exp): New expander.  Use ix86_fixup_binary_operands
5673         to handle nonimmediate operands.
5674         (sse_loadhps_exp): New expander.  Use ix86_fixup_binary_operands
5675         to handle nonimmediate operands.
5676         (sse_loadlps_exp): New expander.  Use ix86_fixup_binary_operands
5677         to handle nonimmediate operands.
5678         (sse2_unpckhpd_exp): New expander.  Use
5679         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5680         (sse2_unpcklpd_exp): New expander.  Use
5681         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5682         (sse_loadhpd_exp): New expander.  Use ix86_fixup_binary_operands
5683         to handle nonimmediate operands.
5684         (sse_loadlpd): New expander.  Use ix86_fixup_binary_operands
5685         to handle nonimmediate operands.
5686         (*sse2_<plusminus_insn><mode>3): Rename from
5687         sse2_<plusminus_insn><mode>3 insn pattern.
5688         (sse2_<plusminus_insn><mode>3): New expander.  Use
5689         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5690         (*sse2_umulv2siv2di3): Rename from sse2_umulv2siv2di3 insn pattern.
5691         (sse2_umulv2siv2di3): New expander.  Use
5692         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5693         (*sse4_1_mulv2siv2di3): Rename from sse4_1_mulv2siv2di3 insn pattern.
5694         (sse4_1_mulv2siv2di3): New expander.  Use
5695         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5696         (*sse2_pmaddwd): Rename from sse2_pmaddwd insn pattern.
5697         (sse2_pmaddwd): New expander.  Use
5698         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5699         (*sse2_eq<mode>3): Rename from sse2_eq<mode>3 insn pattern.
5700         (sse2_eq<mode>3): New expander.  Use
5701         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5702         (*sse4_1_eqv2di3): Rename from sse4_1_eqv2di3 insn pattern.
5703         (sse4_1_eqv2di3): New expander.  Use
5704         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5705         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
5706         (sse2_uavgv16qi3): New expander.  Use
5707         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5708         (*sse2_uavgv16qi3): Rename from sse2_uavgv16qi3 insn pattern.
5709         (sse2_uavgv16qi3): New expander.  Use
5710         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5711         (*sse2_uavgv8hi3): Rename from sse2_uavgv8hi3 insn pattern.
5712         (sse2_uavgv8hi3): New expander.  Use
5713         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5714         (*ssse3_pmulhrswv8hi3): Rename from ssse3_pmulhrswv8hi3 insn pattern.
5715         (ssse3_pmulhrswv8hi3): New expander.  Use
5716         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5717         (*ssse3_pmulhrswv4hi3): Rename from ssse3_pmulhrswv4hi3 insn pattern.
5718         (ssse3_pmulhrswv4hi3): New expander.  Use
5719         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5720
5721         (<sse>_vm<plusminus_insn><mode>3): Do not use ix86_binary_operator_ok.
5722         (<sse>_vmmul<mode>3): Ditto.
5723         (divv4sf3): Do not use ix86_fixup_binary_operands_no_copy.
5724         (divv2df3): Ditto.
5725         (ssse3_pmaddubsw128): Use register_operand for operand 1.
5726         (ssse3_pmaddubsw): Ditto.
5727
5728         * config/i386/i386.c (struct_builtin_description)
5729         [IX86_BUILTIN_LOADHPS]: Use CODE_FOR_sse_loadhps_exp.
5730         [IX86_BUILTIN_STOREHPS]: Use CODE_FOR_sse_loadlps_exp.
5731         [IX86_BUILTIN_LOADHPD]: Use CODE_FOR_sse2_loadhpd_exp.
5732         [IX86_BUILTIN_LOADLPD]: Use CODE_FOR_sse2_loadlpd_exp.
5733         [IX86_BUILTIN_MOVHLPS]: Use CODE_FOR_sse_movhlps_exp.
5734         [IX86_BUILTIN_MOVLHPS]: Use CODE_FOR_sse_movlhps_exp.
5735         [IX86_BUILTIN_UNPCKHPD]: Use FOR_sse2_unpckhpd_exp.
5736         [IX86_BUILTIN_UNPCKLPD]: Use FOR_sse2_unpcklpd_exp.
5737         (ix86_fixup_binary_operands): Assert that src1
5738         and src2 must have the same mode when swapped.
5739         (ix86_expand_binop_builtin): Do not use ix86_fixup_binary_operands
5740         and ix86_binary_operator_ok.  Do not force operands in registers
5741         when optimizing.
5742
5743 2008-05-07  Jan Hubicka  <jh@suse.cz>
5744
5745         * cgraph.c (dump_cgraph_node): Update.
5746         * cgraph.h (cgraph_local_info): Break out inline summary.
5747         * cgraphunit.c (cgraph_process_new_functions): Use inliner analysis
5748         hook.
5749         * ipa-inline (inline_summary): New accestor function.
5750         (cgraph_clone_inlined_nodes, cgraph_check_inline_limits,
5751         cgraph_decide_inlining, compute_inline_parameters): Update.
5752         * ipa.c (cgraph_remove_unreachable_nodes): Remove statistics.
5753
5754 2008-05-07  Maxim Kuvyrkov  <maxim@codesourcery.com>
5755
5756         Cleanup ColdFire scheduling support and add V4 pipeline model.
5757
5758         * config/m68k/m68k.md (UNSPEC_TIE): New constant.
5759         (define_attr cpu): Add cfv4 value.
5760         (define_attr type, define_attr type1): Merge into a single 'type'
5761         attribute.  Update all uses.
5762         (define_attr opx_type, define_attr opy_type, define_attr opx_access):
5763         Rearrange and update.  Rename value 'reg' to 'Rn', add value 'FPn'.
5764         Update all uses.
5765         (define_attr opx_mem, define_attr opy_mem): Remove.
5766         (define_attr op_mem): Clean up, update comment.
5767         (define_attr size): Use specific values instead of general int.
5768         (define_attr guess, define_attr split): Remove.  Update all uses.
5769         (movdf_internal, tstsi_internal, tsthi_internal, tstqi_internal,
5770         tst<mode>_68881, pushexthisi_const, movsi_const0_68000_10,
5771         movsi_const0_68040_60, movsi_const0, movsi_cf, movstrictqi_cf,
5772         zero_extendhisi2_cf, zero_extendqisi2_cfv4, cfv4_extendhisi2,
5773         68k_extendhisi2, extendqihi2, cfv4_extendqisi2, 68k_extendqisi2,
5774         floatsi<mode>2_68881, ftrunc<mode>2_68881, ftrunc<mode>2_cf,
5775         fix<mode>qi2_68881, fix<mode>hi2_68881, fix<mode>si2_68881,
5776         adddi_dishl32, addsi3_5200, add<mode>3_floatsi_68881,
5777         add<mode>3_floathi_68881, add<mode>3_floatqi_68881,
5778         add<mode>3_68881, add<mode>3_cf, subdi_dishl32, subsi3,
5779         sub<mode>3_floatsi_68881, sub<mode>3_floathi_68881,
5780         sub<mode>3_floatqi_68881, sub<mode>3_68881, sub<mode>3_cf,
5781         mulhi3, mulhisi3, mulhisisi3_s, mulsi3_68020, mulsi3_cf,
5782         umulhisi3, mulhisisi3_z, mul<mode>3_floatsi_68881,
5783         mul<mode>3_floathi_68881, mul<mode>3_floatqi_68881, fmul<mode>3_cf,
5784         div<mode>3_cf, sqrt<mode>2_cf, abs<mode>2_cf, clzsi2,
5785         one_cmplsi2_5200, subreghi1ashrdi_const32, ashrsi3, lshrsi3,
5786         bsetmemqi, bsetmemqi_ext, bclrmemqi, bclrmemqi_ext,
5787         beq, bne, bgt, blt, bordered, bunordered, buneq, bunge, bungt, bunle,
5788         bunlt, bltgt, tablejump_internal, call, non_symbolic_call_value,
5789         symbolic_call_value_jsr, symbolic_call_value_bsr, link):
5790         Update or set attributes.
5791         (stack_tie): New fake instruction.
5792
5793         * config/m68k/m68k.h (TUNE_CFV4): New macro.
5794         (m68k_sched_attr_size): Update declaration.
5795         (m68k_sched_attr_type2): Remove.
5796         (m68k_sched_address_bypass_p, m68k_sched_indexed_address_bypass_p):
5797         Declare new bypass predicates.
5798
5799         * config/m68k/m68k.c (m68k_sched_issue_rate,
5800         m68k_sched_first_cycle_multipass_dfa_lookahead): Declare hook
5801         implementations.
5802         (TARGET_SCHED_ISSUE_RATE,
5803         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Override hooks.
5804         (override_options): Handle scheduling for ColdFire V4 core.
5805         (m68k_expand_prologue): Emit stack_tie.
5806         (enum attr_op_type): Split value 'OP_TYPE_REG' to 'OP_TYPE_RN' and
5807         'OP_TYPE_FPN'.  Update all uses.
5808         (sched_guess_p): Remove.
5809         (sched_address_type): Handle symbolic addresses.
5810         (sched_get_operand): New static function.
5811         (sched_operand_type): Merge into sched_attr_op_type.
5812         (sched_attr_op_type): Handle FP registers, handle quick constants,
5813         update.
5814         (m68k_sched_attr_opx_type, m68k_sched_attr_opy_type): Update.
5815         (m68k_sched_attr_size): Update.  Move logic to ...
5816         (sched_get_attr_size_int): New static function.
5817         (sched_get_opxy_mem_type): New static function.
5818         (m68k_sched_attr_op_mem): Update.
5819         (m68k_sched_attr_type2): Remove.
5820         (sched_cfv4_bypass_data): New static variable.
5821         (m68k_sched_adjust_cost): Handle ColdFire V4 bypass.
5822         (m68k_sched_issue_rate): Implement scheduler hook.
5823         (struct _sched_ib: enabled_p): New field.
5824         (m68k_sched_variable_issue): Update.  Handle V4.
5825         (SCHED_DUMP_TODO, SCHED_DUMP_DONE, SCHED_DUMP_NOTHING,
5826         sched_dump_class_func_t, sched_dump_split_class,
5827         sched_dump_dfa_guess_unit_code, sched_dump_dfa_state,
5828         sched_dump_dfa_class, m68k_sched_dump): Remove.
5829         (m68k_sched_first_cycle_multipass_dfa_lookahead): Implement scheduler
5830         hook.
5831         (m68k_sched_init_global): Remove statisctics dumping, introduce
5832         sanity check that all instructions have pipeline reservations.  Handle
5833         ColdFire V4 core.
5834         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
5835         Handle ColdFire V4 core.
5836         (sched_mem_operand_p, sched_get_reg_operand, sched_get_mem_operand):
5837         New static functions.
5838         (m68k_sched_address_bypass_p): New bypass predicate.
5839         (sched_get_indexed_address_scale): New static function.
5840         (m68k_sched_indexed_address_bypass_p): New bypass predicate.
5841
5842         * cf.md: Update comments.
5843         (define_attr type2): Remove.  Use 'type' attribute instead.
5844         Update all uses.
5845         (cf_ib): Rename to cfv123_ib.  Update all uses.
5846         (cf_oep): Rename to cfv123_oep.  Update all uses.
5847         (cf_chr): Rename to cfv123_chr.  Update all uses.
5848         (cf_mem): Rename to cfv123_mem.  Update all uses.
5849         (cf_mac): Move to more appropriate place.
5850         (cfv123_guess): New automaton and cpu_unit.
5851         (cfv123_*, cfv12_*, cfv1_*, cfv2_*, cfv3_*): Use type attribute.
5852         Update uses of 'size' attribute.  Handle before reload scheduling.
5853         (cfv123_guess): New dummy reservation for unhandled instructions.
5854         (cfv4_*): Pipeline description of ColdFire V4 core.
5855         (ignore): New reservation to handle 'ignore' type.
5856
5857 2008-05-07  Ian Lance Taylor  <iant@google.com>
5858
5859         PR middle-end/36013
5860         * gimplify.c (find_single_pointer_decl_1): Don't look through
5861         indirections.
5862         (find_single_pointer_decl): Adjust comments.
5863
5864 2008-05-07  Jakub Jelinek  <jakub@redhat.com>
5865
5866         PR middle-end/36137
5867         * fold-const.c (fold_binary): Use STRIP_SIGN_NOPS instead of
5868         STRIP_NOPS on arguments even for MIN_EXPR and MAX_EXPR.
5869
5870         PR middle-end/36106
5871         * omp-low.c (expand_omp_atomic_pipeline): Load value using the
5872         integral type rather than floating point, then VIEW_CONVERT_EXPR
5873         to the floating point type.
5874
5875 2008-05-07  Uros Bizjak  <ubizjak@gmail.com>
5876
5877         * config/i386/i386.c (ix86_expand_copysign): Force non-zero constant
5878         TFmode op0 to register.
5879
5880 2008-05-07  Alan Modra  <amodra@bigpond.net.au>
5881
5882         * c-decl.c (grokdeclarator): Comment typo.
5883
5884 2008-05-06  Aldy Hernandez  <aldyh@redhat.com>
5885
5886         * tree-flow.h: Remove prototype for computed_goto_p.
5887         * tree-cfg.c (computed_goto_p): Make static.
5888
5889 2008-05-06  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         PR target/35657
5892         * config/i386/i386.c (contains_128bit_aligned_vector_p): Renamed to ...
5893         (contains_aligned_value_p): This.  Handle _Decimal128.
5894         (ix86_function_arg_boundary): Only align _Decimal128 to its
5895         natural boundary and handle it properly.
5896
5897 2008-05-06  Martin Jambor  <mjambor@suse.cz>
5898
5899         * ipa-cp.c (ipcp_method_orig_node): Renamed to ipcp_get_orig_node.
5900         (ipcp_method_is_cloned): Renamed to ipcp_node_is_clone
5901         (ipcp_method_set_orig_node): Removed.
5902         (ipcp_cval_get_cvalue_type): Removed.
5903         (ipcp_method_get_scale): Renamed to ipcp_get_node_scale.
5904         (ipcp_method_set_scale): Renamed to ipcp_set_node_scale.
5905         (ipcp_cval_set_cvalue_type): Removed.
5906         (ipcp_cval_get_cvalue): Removed.
5907         (ipcp_cval_set_cvalue): Removed.
5908         (ipcp_type_is_const): Renamed to ipcp_lat_is_const.
5909         (ipcp_cval_equal_cvalues): Renamed to ipcp_lats_are_equal
5910         (ipcp_lats_are_equal): Changed parameters to two ipcp_lattice's
5911         (ipcp_cval_meet): Renamed to ipa_lattice_meet
5912         (ipcp_cval_changed): Changed to use ipcp_lat_is_const
5913         (ipcp_method_cval): Renamed to ipcp_get_ith_lattice
5914         (ipcp_get_ith_lattice): Changed parameters.
5915         (ipcp_cval_compute): Renamed to ipcp_lattice_from_jfunc
5916         (ipcp_lattice_from_jfunc): Changed parameters.
5917         (ipcp_redirect): Local lattice pointer instead of lattice type variable.
5918         (ipcp_method_cval_print): Added temporary variable info.
5919         (ipcp_redirect): Removed already unused local variable caller.
5920         (ipcp_redirect): New temporary variable orig_callee_info
5921         (ipcp_redirect): Removed newly unused local variable callee.
5922         (ipcp_redirect): Removed (a bit confusing) local variable type.
5923         (ipcp_insert_stage): Added local variable info.
5924         (ipcp_cval_changed): Renamed to ipcp_lattice_changed, parameters 
5925         renamed too
5926         (ipcp_formal_create): Removed.
5927         (ipcp_method_cval_set): Removed.
5928         (ipcp_propagate_stage): Renamed lattice variables.
5929         (ipcp_method_cval_set_cvalue_type): Removed.
5930         (ipcp_method_cval_print): Renamed to ipcp_print_all_lattices
5931         (ipcp_print_all_lattices): Changed printed strings to refer to 
5932         lattices rather than cvals.
5933         (ipcp_method_cval_init): Renamed to ipcp_initialize_node_lattices
5934         (ipcp_propagate_const): Changed formal parameters.
5935         (build_const_val): Changed formal parameters.
5936         (ipcp_insert_stage): Removed useless variable cvalue
5937         (build_const_val): Changed formal parameters.
5938         (ipcp_method_compute_scale): Renamed to ipcp_compute_node_scale
5939         (ipcp_after_propagate): Renamed to ipcp_change_tops_to_bottom
5940         (ipcp_callsite_param_print): Renamed to ipcp_print_all_jump_functions
5941         (ipcp_profile_mt_count_print): Renamed to ipcp_print_func_profile_counts
5942         (ipcp_print_func_profile_counts): Changed string from "method" to 
5943         "function"
5944         (ipcp_profile_cs_count_print): Renamed to ipcp_print_call_profile_counts
5945         (ipcp_profile_edge_print): Renamed to ipcp_print_edge_profiles
5946         (ipcp_profile_bb_print): Renamed to ipcp_print_bb_profiles
5947         (ipcp_structures_print): Renamed to ipcp_print_all_structures
5948         (ipcp_profile_print): Renamed to ipcp_print_profile_data
5949         (ipcp_lat_is_const): Changed parameters and made inline.
5950         (ipcp_replace_map_create): Renamed to ipcp_create_replace_map
5951         (ipcp_redirect): Renamed to ipcp_need_redirect_p
5952         (ipcp_need_redirect_p): Calls ipcp_lat_is_const instead of using 
5953         the predicate condition directly
5954         (ipcp_propagate_stage): Added local variable args. Removed local
5955         variable callee.  (Both are mere code simplifications.)
5956         (ipcp_method_dont_insert_const): Renamed to
5957         ipcp_node_not_modifiable_p.
5958         (ipcp_node_not_modifiable_p): Made inline.
5959         (ipcp_cloned_create): Renamed to ipcp_init_cloned_node
5960         (ipcp_propagate_const): Renamed to ipcp_propagate_one_const
5961         (ipcp_print_all_lattices): Removed variable cvalue
5962         (ipcp_method_scale_print): Renamed to ipcp_function_scale_print
5963         Updated comments.
5964
5965 2008-05-06  Olivier Hainque  <hainque@adacore.com>
5966
5967         * tree-sra.c (try_instantiate_multiple_fields): Early return
5968         if field has POINTER_TYPE.
5969
5970 2008-05-06  Kai Tietz  <kai.tietz@onevision.com>
5971
5972         * config/i386/i386.c (output_set_got): Fix for x86_64 output_emit_asm
5973         by using 'q' specifier for instruction.
5974         (ix86_file_end): Replaced case TARGET_64BIT_MS_ABI by TARGET_64BIT.
5975
5976 2008-05-06  Anatoly Sokolov <aesok@post.ru>
5977
5978         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
5979         Change mode of zero_extract from QImode to HImode.
5980         (sign bit tests peepholes): (Ditto.).
5981
5982 2008-05-06  Uros Bizjak  <ubizjak@gmail.com>
5983
5984         * config/i386/mmx.md: Remove double backslashes from asm templates.
5985         (*mmx_addv2sf3): Rename from mmx_addv2sf3 insn pattern.
5986         (mmx_addv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5987         to handle nonimmediate operands.
5988         (*mmx_mulv2sf3): Rename from mmx_mulv2sf3 insn pattern.
5989         (mmx_mulv2sf3): New expander.  Use ix86_fixup_binary_operands_no_copy
5990         to handle nonimmediate operands.
5991         (*mmx_<code>v2sf3_finite): New insn pattern.
5992         (*mmx_<code>v2sf3): Rename from mmx_<code>v2sf3 insn pattern.
5993         (mmx_<code>v2sf3): New expander.  Use
5994         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5995         (mmx_<plusminus_insn><mode>3): New expander.  Use
5996         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
5997         (*mmx_<plusminus_insn><mode>3): New insn pattern.
5998         (mmx_add<mode>3): Removed.
5999         (mmx_ssadd<mode>3): Ditto.
6000         (mmx_usadd<mode>3): Ditto.
6001         (mmx_sub<mode>3): Ditto.
6002         (mmx_sssub<mode>3): Ditto.
6003         (mmx_ussub<mode>3): Ditto.
6004         (*mmx_mulv4hi3): Rename from mmx_mulv4hi3 insn pattern.
6005         (mmx_mulv4hi3): New expander.  Use ix86_fixup_binary_operands_no_copy
6006         to handle nonimmediate operands.
6007         (*mmx_smulv4hi3_highpart): Rename from mmx_smulv4hi3_highpart
6008         insn pattern.
6009         (mmx_smulv4hi3_highpart): New expander.  Use
6010         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6011         (*mmx_umulv4hi3_highpart): Rename from mmx_umulv4hi3_highpart
6012         insn pattern.
6013         (mmx_umulv4hi3_highpart): New expander.  Use
6014         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6015         (*mmx_<code>v4hi3): Rename from mmx_<code>v4hi3 insn pattern.
6016         (mmx_<code>v4hi3): New expander.  Use
6017         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6018         (*mmx_<code>v8qi3): Rename from mmx_<code>v8qi3 insn pattern.
6019         (mmx_<code>v8qi3): New expander.  Use
6020         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6021         (*mmx_<code><mode>3): Rename from mmx_<code><mode>3 insn pattern.
6022         (mmx_<code><mode>3): New expander.  Use
6023         ix86_fixup_binary_operands_no_copy to handle nonimmediate operands.
6024
6025 2008-05-05  Jan Hubicka  <jh@suse.cz>
6026
6027         PR tree-optimization/36118
6028         * passes.c (pass_init_dump_file): Fix dump header.
6029
6030 2008-05-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
6031
6032         PR middle-end/36141
6033         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't create
6034         VCE for function decls.
6035
6036 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6037
6038         * config/i386/sse.md (sse2_<plusminus_insn><mode>3): Fix a typo.
6039
6040 2008-05-05  H.J. Lu  <hongjiu.lu@intel.com>
6041
6042         * config/i386/i386.md (sat_plusminus): New.
6043         (plusminus_insn): Likewise.
6044         (plusminus_mnemonic): Likewise.
6045         (addsub): Removed.
6046         (comm): Add ss_plus, us_plus, ss_minus and us_minus.
6047         (*<addsub><mode>3_cc_overflow): Renamed to ...
6048         (*<plusminus_insn><mode>3_cc_overflow): This.
6049         (*<addsub>si3_zext_cc_overflow): Renamed to ...
6050         (*<plusminus_insn>si3_zext_cc_overflow): This.
6051
6052         * config/i386/sse.md (<addsub><mode>3): Renamed to ...
6053         (<plusminus_insn><mode>3): This.
6054         (*<addsub><mode>3): Renamed to ...
6055         (*<plusminus_insn><mode>3): This.
6056         (<sse>_vm<addsub><mode>3): Renamed to ...
6057         (<sse>_vm<plusminus_insn><mode>3): This.
6058         (sse3_h<addsub>v4sf3): Renamed to ...
6059         (sse3_h<plusminus_insn>v4sf3): This.
6060         (sse3_h<addsub>v2df3): Renamed to ...
6061         (sse3_h<plusminus_insn>v2df3): This.
6062         (<plusminus_insn><mode>3): New.
6063         (*<plusminus_insn><mode>3): Likewise.
6064         (sse2_<plusminus_insn><mode>3): Likewise.
6065         (add<mode>): Removed.
6066         (*add<mode>3): Likewise.
6067         (sse2_ssadd<mode>3): Likewise.
6068         (sse2_usadd<mode>3): Likewise.
6069         (sub<mode>3): Likewise.
6070         (*sub<mode>3): Likewise.
6071         (sse2_sssub<mode>3): Likewise.
6072         (sse2_ussub<mode>3): Likewise.
6073
6074 2008-05-05  Benjamin Kosnik  <bkoz@redhat.com>
6075
6076         * gthr-single.h: Add in required interface elements as per gthr.h.
6077         Add stub types for __gthread_key_t, __gthread_once_t. Add defines
6078         for __GTHREAD_ONCE_INIT, __GTHREAD_RECURSIVE_MUTEX_INIT.
6079         Generalize UNUSED macro. 
6080         (__gthread_once): Add.
6081         (__gthread_key_create): Add.
6082         (__gthread_key_delete): Add.
6083         (__gthread_getspecific): Add.
6084         (__gthread_setspecific): Add.
6085         
6086 2008-05-05  Andrew Pinski  <Andrew.Pinski@playstation.sony.com>
6087
6088         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): If we have
6089         the same size types for the indirect reference on the rhs, then
6090         create a VCE.
6091
6092 2008-05-05  Uros Bizjak  <ubizjak@gmail.com>
6093
6094         * config/i386/i386.md
6095         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Use only
6096         one insn template instead of template series.
6097         (*xordi_1_rex64): Ditto.
6098         (*xordi_2_rex64): Ditto.
6099
6100 2008-05-05  Ira Rosen  <irar@il.ibm.com>
6101
6102         PR tree-optimization/36119
6103         * tree-vect-transform.c (vectorizable_assignment): Set NCOPIES to 1
6104         in case of SLP.
6105
6106 2008-06-04  Jan Hubicka  <jh@suse.cz>
6107
6108         tree-optimization/36100
6109         * tree-pass.h (pass_O0_always_inline): Declare.
6110         * ipa-inline.c (inline_transform): Remove dead code.
6111         (cgraph_gate_O0_always_inline, cgraph_O0_always_inline,
6112         pass_O0_always_inline): New.
6113         * passes.c (init_optimization_passes): Add pass_O0_always_inline.
6114
6115 2008-05-04  Kai Tietz  <kai.tietz@onevision.com>
6116
6117         * config/i386/i386.c (x86_output_mi_thunk): Use movq alternative
6118         mnemonic in this_param move for TARGET_64BIT.
6119
6120 2008-05-04  Uros Bizjak  <ubizjak@gmail.com>
6121
6122         * config/i386/i386.md (*strmovsi_1): Simplify asm alternatives.
6123         (*strmovsi_rex_1): Ditto.
6124         (*strsetsi_1): Ditto.
6125         (*strsetsi_rex_1): Ditto.
6126
6127         (add<mode>cc): Macroize expander from addqicc, addhicc, addsicc and
6128         adddicc expanders using SWI mode iterator.
6129
6130 2008-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6131
6132         PR target/36121
6133         * config/i386/i386.c (ix86_expand_special_args_builtin): Remove three
6134         argument handling.
6135
6136 2008-05-04  David S. Miller  <davem@davemloft.net>
6137
6138         * config.gcc (sparc*-*-*): Always set need_64bit_hwint to yes.
6139         (sparc*-*-linux*): Use linux.h in tm_file.
6140         (sparc-*-linux*): If 'enabled_targets' is 'all', build a bi-arch
6141         compiler defaulting to 32-bit.
6142         (sparc*-*-*): Remove explicit target settings of need_64bit_hwint,
6143         no longer needed.
6144         * config/sparc/linux.h: Remove definitions now obtained
6145         properly from linux.h
6146         * config/sparc/linux64.h: Likewise.
6147         (ASM_CPU_DEFAULT_SPEC): Change this to ASM_CPU64_DEFAULT_SPEC, we
6148         don't want this setting for 32-bit builds in a biarch compiler.
6149         * doc/install.texi: Add sparc-linux to list of targets
6150         supporting --enable-targets=all.
6151
6152 2008-05-03  Andrew Pinski  <pinskia@gmail.com>
6153
6154         * Makefile.in (tree-ssa-phiprop.o): Fix dependencies.
6155
6156 2008-05-03  H.J. Lu  <hongjiu.lu@intel.com>
6157
6158         * config/i386/i386.c (ix86_builtin_type): Move V4SI_FTYPE_V4SF
6159         after V4SI_FTYPE_V8HI.
6160         (ix86_init_mmx_sse_builtins): Move case V4HI_FTYPE_V4HI after
6161         case V4SI_FTYPE_V2DF.
6162
6163 2008-05-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
6164
6165         * doc/invoke.texi (max-flow-memory-locations): Removed.
6166         * params.def (PARAM_MAX_FLOW_MEMORY_LOCATIONS): Removed.
6167         
6168 2008-05-03  Richard Guenther  <rguenther@suse.de>
6169
6170         PR middle-end/34973
6171         * opts.c (set_Wstrict_aliasing): Handle the turn-off case.
6172
6173 2008-05-02  David S. Miller  <davem@davemloft.net>
6174
6175         * config.gcc (need_64bit_hwint): Document libcpp dependency.
6176
6177 2008-05-02  Simon Baldwin <simonb@google.com>
6178
6179         PR bootstrap/36108
6180         * c-common.h (warn_array_subscript_range): Removed.
6181         * c-common.c (warn_array_subscript_range): Ditto.
6182         * tree-vrp.c (check_array_ref): Revert to ignoring arrays with size 2.
6183         * c-typeck.c (build_array_ref): Remove warn_array_subscript_range.
6184
6185 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6186
6187         * config/i386/i386.c (ix86_special_builtin_type): New.
6188         (bdesc_special_args): Likewise.
6189         (ix86_expand_special_args_builtin): Likewise.
6190         (ix86_init_mmx_sse_builtins): Updated.
6191         (ix86_expand_builtin): Updated.
6192         (ix86_expand_store_builtin): Removed.
6193         (ix86_expand_unop_builtin): Likewise.
6194
6195         * config/i386/mm3dnow.h (__v2sf): Moved to ...
6196         * config/i386/mmintrin.h (__v2sf): Here.
6197
6198         * config/i386/xmmintrin.h (_mm_loadh_pi): Replace __v2si with
6199         const __v2sf.
6200         (_mm_loadl_pi): Likewise.
6201         (_mm_storeh_pi): Replace __v2si with __v2sf.
6202         (_mm_storel_pi): Likewise.
6203
6204         * doc/extend.texi: Correct __builtin_ia32_loadhps,
6205         __builtin_ia32_loadlps, __builtin_ia32_storehps,
6206         __builtin_ia32_storelps, __builtin_ia32_loadhpd and
6207         __builtin_ia32_loadlpd.
6208
6209 2008-05-02  H.J. Lu  <hongjiu.lu@intel.com>
6210
6211         * config/i386/i386.c (ix86_builtin_type): Add FLOAT_FTYPE_FLOAT,
6212         V4SF_FTYPE_V4SF_VEC_MERGE and V2DF_FTYPE_V2DF_VEC_MERGE.
6213         (bdesc_args): Updated.  Add scalar SSE builtins with vec_merge.
6214         (ix86_init_mmx_sse_builtins): Updated.
6215         (ix86_expand_args_builtin): Likewise.
6216         (ix86_expand_builtin): Likewise.
6217         (ix86_expand_unop1_builtin): Renamed to ...
6218         (ix86_expand_unop_vec_merge_builtin): This.
6219
6220 2008-05-01  Jan Hubicka  <jh@suse.cz>
6221
6222         PR bootstrap/36100
6223         * ipa-inline.c (inline_generate_summary): Make static.
6224         (inline_transform): Do not call inlining at -O0; make static.
6225         * passes.c (execute_todo): Add sanity check.
6226         (execute_one_ipa_transform_pass): Execute proper flags.
6227
6228 2008-05-01  Eric Botcazou  <ebotcazou@adacore.com>
6229
6230         * tree.h (TYPE_NONALIASED_COMPONENT): Expand comment.
6231         (DECL_NONADDRESSABLE_P): Likewise.
6232         * alias.c (record_component_aliases): Fix comment.
6233
6234 2008-05-01  Simon Baldwin <simonb@google.com>
6235
6236         * c-common.h (warn_array_subscript_range): New function.
6237         * c-common.c (warn_array_subscript_range): Ditto.
6238         * tree-vrp.c (check_array_ref): Corrected code to agree with
6239         comment, ignoring only arrays of size 0 or size 1.
6240         * c-typeck.c (build_array_ref): Call warn_array_subscript_range.
6241
6242 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6243
6244         * config/i386/i386.c (ix86_builtin_type): Replace
6245         DI_FTYPE_DI_DI_INT with V1DI2DI_FTYPE_V1DI_V1DI_INT.
6246         (bdesc_args): Updated.
6247         (ix86_init_mmx_sse_builtins): Likewise.
6248         (ix86_expand_args_builtin): Likewise.
6249
6250         * config/i386/tmmintrin.h (_mm_alignr_pi8): Replace long long
6251         with __v1di.
6252
6253         * doc/extend.texi: Correct __builtin_ia32_palignr.
6254
6255 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6256
6257         PR target/36095
6258         * config/i386/i386.c (bdesc_crc32): Removed.
6259         (ix86_expand_crc32): Likewise.
6260         (ix86_builtin_type): Replace V2DI2TI_FTYPE_V2DI2TI_INT with
6261         V2DI2TI_FTYPE_V2DI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT with
6262         V2DI2TI_FTYPE_V2DI_V2DI_INT.  Add UINT64_FTYPE_UINT64_UINT64,
6263         UINT_FTYPE_UINT_UINT, UINT_FTYPE_UINT_USHORT and
6264         UINT_FTYPE_UINT_UCHAR.
6265         (bdesc_args): Updated. Add crc32 builtins.
6266         (ix86_init_mmx_sse_builtins): Updated.
6267         (ix86_expand_args_builtin): Updated to support subreg.
6268
6269         * doc/extend.texi: Correct __builtin_ia32_crc32di.
6270
6271 2008-05-01  Jan Hubicka  <jh@suse.cz>
6272
6273         * tree-pass.h (opt_pass): Add IPA_PASS.
6274         (varpool_node, cgraph_node): Forward declare.
6275         (ipa_opt_pass): Define.
6276         (pass_ipa_inline): Turn into ipa_opt_pass.
6277         (pass_apply_inline): Remove.
6278         * ipa-inline.c (pass_ipa_inline): Turn into ipa_opt_pass.
6279         (apply_inline): Turn into ....
6280         (inline_transform): ... this one.
6281         (inline_generate_summary): New function.
6282         (pass_apply_inline): Remove.
6283         * function.h (ipa_opt_pass): Forward declare structure; typedef;
6284         vector.
6285         (struct function): Add ipa_transforms_to_apply.
6286         * passes.c (register_one_dump_file): Work on IPA_PASS.
6287         (init_optimization_passes): Remove pass_inline_parameters and
6288         pass_apply_inline.
6289         (pass_init_dump_file, pass_fini_dump_file): Break out from ....
6290         (execute_one_pass) ... here; apply transforms when possible.
6291         (add_ipa_transform_pass, execute_ipa_summary_asses,
6292         execute_one_ipa_transform_pass): New.
6293         (execute_ipa_pass_list): Update for IPA_PASS type.
6294
6295 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6296
6297         * config/i386/i386.c (ix86_builtin_type): Add
6298         V2DI_FTYPE_V2DI_V16QI, V2DI_FTYPE_V2DI_UINT_UINT and
6299         V2DI_FTYPE_V2DI_V2DI_UINT_UINT.
6300         (bdesc_args): Add SSE4a builtins.
6301         (ix86_init_mmx_sse_builtins): Updated.
6302         (ix86_expand_args_builtin): Likewise.
6303         (ix86_expand_builtin): Likewise.
6304
6305 2008-05-01  H.J. Lu  <hongjiu.lu@intel.com>
6306
6307         * config/i386/i386.c (ix86_builtin_type): Add
6308         V8HI_FTYPE_V8HI_V8HI_COUNT, V8HI_FTYPE_V8HI_SI_COUNT,
6309         V4SI_FTYPE_V4SI_V4SI_COUNT, V4SI_FTYPE_V4SI_SI_COUNT,
6310         V4HI_FTYPE_V4HI_V4HI_COUNT, V4HI_FTYPE_V4HI_SI_COUNT,
6311         V2DI_FTYPE_V2DI_V2DI_COUNT, V2DI_FTYPE_V2DI_SI_COUNT,
6312         V2SI_FTYPE_V2SI_V2SI_COUNT, V2SI_FTYPE_V2SI_SI_COUNT,
6313         V1DI_FTYPE_V1DI_V1DI_COUNT, V1DI_FTYPE_V1DI_SI_COUNT,
6314         V8HI_FTYPE_V8HI_INT, V4SI_FTYPE_V4SI_INT, V4HI_FTYPE_V4HI_INT,
6315         V2DI2TI_FTYPE_V2DI2TI_INT, V2DI2TI_FTYPE_V2DI2TI_V2DI2TI_INT
6316         and DI_FTYPE_DI_DI_INT.
6317         (bdesc_args): Add MMX/SSE shift, shuffle and palignr builtins.
6318         (ix86_init_mmx_sse_builtins): Updated.
6319         (ix86_expand_args_builtin): Likewise.
6320         (ix86_expand_builtin): Likewise.
6321         (ix86_expand_binop_imm_builtin): Removed.
6322
6323         * doc/extend.texi: Correct __builtin_ia32_palignr128.
6324
6325 2008-04-30  Richard Guenther  <rguenther@suse.de>
6326
6327         PR tree-optimization/32921
6328         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Disambiguate with TBAA.
6329
6330 2008-04-30  Richard Sandiford  <rsandifo@nildram.co.uk>
6331
6332         * config/arm/arm.c (arm_unwind_emit): Use
6333         crtl->all_throwers_are_sibcalls instead of
6334         cfun->all_throwers_are_sibcalls.
6335         (arm_output_fn_unwind): Likewise.
6336         * config/frv/frv.c (frv_stack_info): Use crtl->uses_pic_offset_table
6337         instead of cfun->uses_pic_offset_table.
6338         (frv_expand_prologue): Likewise.
6339         (frv_frame_pointer_required): Likewise.
6340         (frv_expand_fdpic_call): Likewise.
6341         (frv_emit_movsi): Likewise.
6342         * config/iq2000/iq2000.c (iq2000_expand_prologue): Use
6343         cfun->returns_pcc_struct instead of
6344         current_function_returns_pcc_struct.
6345         * config/m32c/m32c.c (need_to_save): Use crtl->calls_eh_return
6346         instead of cfun->calls_eh_return.
6347         (m32c_pushm_popm): Likewise.
6348         * config/xtensa/xtensa.h (cfun->calls_alloca): Remove bogus
6349         "extern" declaration.
6350
6351 2008-04-30  Richard Guenther  <rguenther@suse.de>
6352
6353         PR tree-optimization/21636
6354         * tree-ssa-ccp.c (ccp_fold): Handle &p->x with p being a
6355         constant address.
6356         (evaluate_stmt): Print the likely value.
6357         (ccp_visit_stmt): Avoid excessive vertical spacing.
6358
6359 2008-04-30  Rafael Espindola  <espindola@google.com>
6360
6361         * builtins.c (fold_call_expr): Return realret.
6362         * tree-ssa-threadedge.c
6363         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
6364         __builtin_object_size.
6365
6366 2008-04-30  Seongbae Park  <seongbae.park@gmail.com>
6367
6368         * gcc.c (wrapper_string): New variable.
6369         (insert_wrapper): New function.
6370         (execute): New option -wrapper.
6371         * doc/invoke.texi (Overall Options): New driver option -wrapper.
6372
6373 2008-04-30  Nathan Froyd  <froydnj@codesourcery.com>
6374
6375         * config/rs6000/crtresgpr.asm, config/rs6000/crtresxgpr.asm,
6376         config/rs6000/crtsavgpr.asm, config/rs6000/crtresfpr.asm,
6377         config/rs6000/crtresxfpr.asm, config/rs6000/crtsavfpr.asm: Break out
6378         from...
6379         * config/rs6000/crtsavres.asm: ...here.  Remove unneeded file.
6380         * config/rs6000/e500crtres32gpr.asm, config/rs6000/e500crtres64gpr.asm,
6381         config/rs6000/e500crtres64gprctr.asm,
6382         config/rs6000/e500crtrest32gpr.asm, config/rs6000/e500crtrest64gpr.asm,
6383         config/rs6000/e500crtresx32gpr.asm, config/rs6000/e500crtresx64gpr.asm,
6384         config/rs6000/e500crtsav32gpr.asm, config/rs6000/e500crtsav64gpr.asm,
6385         config/rs6000/e500crtsav64gprctr.asm,
6386         config/rs6000/e500crtsavg32gpr.asm, config/rs6000/e500crtsavg64gpr.asm,
6387         config/rs6000/e500crtsavg64gprctr.asm: New files.
6388         * config/rs6000/t-ppccomm: Add build rules for new files.
6389         (LIB2FUNCS_STATIC_EXTRA): Add new files.
6390         * config/rs6000/t-netbsd: Add build rules for new files.
6391         (LIB2FUNCS_STATIC_EXTRA): New variable.
6392         * config/rs6000/sysv4.h (ENDFILE_SPEC): Don't include crtsavres.o
6393         (CRTSAVRES_DEFAULT_SPEC): Likewise.
6394         * config/rs6000/netbsd.h (ENDFILE_SPEC): Likewise.
6395
6396 2008-04-30  H.J. Lu  <hongjiu.lu@intel.com>
6397
6398         * config/i386/i386.c (ix86_builtin_type): Add
6399         FLOAT128_FTYPE_FLOAT128_FLOAT128, V16QI_FTYPE_V16QI_V16QI,
6400         V16QI_FTYPE_V8HI_V8HI, V8QI_FTYPE_V8QI_V8QI,
6401         V8QI_FTYPE_V4HI_V4HI, V8HI_FTYPE_V8HI_V8HI,
6402         V8HI_FTYPE_V16QI_V16QI, V8HI_FTYPE_V4SI_V4SI,
6403         V4SI_FTYPE_V4SI_V4SI, V4SI_FTYPE_V8HI_V8HI,
6404         V4SI_FTYPE_V4SF_V4SF, V4SI_FTYPE_V2DF_V2DF,
6405         V4HI_FTYPE_V4HI_V4HI, V4HI_FTYPE_V8QI_V8QI,
6406         V4HI_FTYPE_V2SI_V2SI, V4SF_FTYPE_V4SF_V4SF,
6407         V4SF_FTYPE_V4SF_V4SF_SWAP, V4SF_FTYPE_V4SF_V2SI,
6408         V4SF_FTYPE_V4SF_V2DF, V4SF_FTYPE_V4SF_DI,
6409         V4SF_FTYPE_V4SF_SI, V2DI_FTYPE_V2DI_V2DI,
6410         V2DI_FTYPE_V16QI_V16QI, V2DI_FTYPE_V4SI_V4SI,
6411         V2DI_FTYPE_V2DF_V2DF, V2SI_FTYPE_V2SI_V2SI,
6412         V2SI_FTYPE_V4HI_V4HI, V2SI_FTYPE_V2SF_V2SF,
6413         V2DF_FTYPE_V2DF_V2DF, V2DF_FTYPE_V2DF_V2DF_SWAP,
6414         V2DF_FTYPE_V2DF_V4SF, V2DF_FTYPE_V2DF_DI,
6415         V2DF_FTYPE_V2DF_SI, V2SF_FTYPE_V2SF_V2SF,
6416         V1DI_FTYPE_V1DI_V1DI, V1DI_FTYPE_V8QI_V8QI and
6417         V1DI_FTYPE_V2SI_V2SI.
6418         (bdesc_2arg): Moved to ...
6419         (bdesc_args): Here.
6420         (ix86_init_mmx_sse_builtins): Updated.
6421         (ix86_expand_args_builtin): Updated.  Take a pointer
6422         to const struct builtin_description.  Handle comparison
6423         builtin functions.
6424         (ix86_expand_sse_compare): Take a new argument for swapping operands.
6425         (ix86_expand_builtin): Updated.
6426
6427         * config/i386/sse.md (ssse3_pmaddubswv8hi3): Renamed to ...
6428         (ssse3_pmaddubsw128): This.
6429         (ssse3_pmaddubswv4hi3): Renamed to ...
6430         (ssse3_pmaddubsw): This.
6431
6432         * doc/extend.texi (__builtin_ia32_packsswb128): Correct prototype.
6433         (__builtin_ia32_packssdw128): Likewise.
6434         (__builtin_ia32_packuswb128): Likewise.
6435         (__builtin_ia32_pmaddubsw): Likewise.
6436         (__builtin_ia32_pmaddubsw128): Likewise.
6437
6438 2008-04-30  Richard Guenther  <rguenther@suse.de>
6439
6440         PR tree-optimization/14847
6441         * tree-ssa-ifcombine.c (get_name_for_bit_test): New helper function.
6442         (recognize_bits_test): Use it.
6443         (recognize_single_bit_test): Likewise.
6444
6445 2008-04-30  Martin Jambor  <mjambor@suse.cz>
6446
6447         * ipa-cp.c (ipcp_init_stage): Calls ipa_set_called_with_variable_arg
6448         instead of setting number of formal parameters to zero.
6449         (ipcp_init_stage): Do not set the number of actual parameters to zero 
6450         either.
6451         (ipcp_propagate_stage): Explicitly skipping all calls to nodes
6452         which are called with variable number of arguments.
6453         (ipcp_insert_stage): Explicitely skipping all nodes which are
6454         called with variable number of arguments.
6455         (ipcp_callsite_param_print): Skipps callsites to nodes with varaible 
6456         number of parameters.
6457
6458         * ipa-prop.h (struct ipa_node_params): Added flag
6459         called_with_var_arguments
6460         (ipa_set_param_count): Added.  Changed sole setter to use it.
6461         (ipa_get_param_count): Added.  All readers of param_count
6462         converted to use it instead.
6463         (ipa_set_called_with_variable_arg): Added.
6464         (ipa_is_called_with_var_arguments): Added.
6465         (ipa_get_ith_param): Added.  All readers of param_decls converted
6466         to use it instead.
6467         (ipa_set_cs_argument_count): Added, sole writer to argument_count 
6468         changed to use it. 
6469         (ipa_get_cs_argument_count): Added, all readers of argument_count
6470         changed to cal it.
6471         (ipa_get_ith_jump_func): Added. Accessors of jump values changed 
6472         to use it.
6473         
6474         * ipa-prop.h (struct ipcp_formal): Renamed to ipcp_lattice
6475         (struct ipcp_lattice): Renamed cval_type to type
6476         (struct ipa_node_params): ipcp_cval renamed to ipcp_lattices
6477
6478         * ipa-cp.c (ipcp_cval_get_cvalue): Changed return value to tree
6479         (ipcp_cval_set_cvalue): Changed type of parameter value to tree
6480         (ipcp_insert_stage): Changed the type of variable cvalue to tree
6481         (ipcp_replace_map_create): Changed the type of parameter cvalue to tree
6482         (build_const_val): Changed the type of parameter cvalue to tree
6483         (ipcp_propagate_const): Changed the type of parameter cvalue to tree
6484         (ipcp_method_cval_set_cvalue_type): Renamed parameter cval_type1 to type
6485         
6486         * ipa-prop.h (struct ipcp_formal): Replaced cvalue with tree called 
6487         constant 
6488
6489         * ipa-prop.c (ipa_methodlist_init): Renamed to ipa_init_func_list
6490         (ipa_methodlist_not_empty): Removed, the sole user now checks directly
6491         (ipa_add_method): Renamed to ipa_push_func_to_list
6492         (ipa_remove_method): Renamed to ipa_pop_func_from_list
6493         (ipa_callsite_param_count): Removed.
6494         (ipa_callsite_param_count_set): Removed.
6495         (ipa_callsite_param): Removed.
6496         (ipa_callsite_callee): Removed.
6497         (ipa_callsite_compute_param): Renamed to ipa_compute_jump_functions
6498         (ipa_callsite_compute_count): Renamed to ipa_count_arguments
6499         (ipa_method_formal_count): Removed.
6500         (ipa_method_formal_count_set): Removed.
6501         (ipa_method_get_tree): Removed.
6502         (ipa_method_tree_map_create): Removed.
6503         (ipa_method_compute_tree_map): Renamed to ipa_create_param_decls_array
6504         (ipa_create_param_decls_array): Creates the array itself
6505         (ipa_create_param_decls_array): Temporary variable info instead of 
6506         a few dereferences.
6507         (ipa_method_formal_compute_count): Renamed to ipa_count_formal_params
6508         (ipa_method_compute_modify): Renamed to ipa_detect_param_modifications
6509         (get_type): Removed.
6510         (ipa_jf_get_info_type): Removed.
6511         (ipa_node_create): Renamed to ipa_create_node_params
6512         (ipa_free): Renamed to ipa_free_all_node_params
6513         (ipa_nodes_create): Renamed to ipa_create_all_node_params
6514         (ipa_edges_create): Renamed to ipa_create_all_edge_args
6515         (ipa_edges_free): Renamed to ipa_free_all_edge_args
6516         (ipa_nodes_free): Integrated into ipa_free_all_node_params and removed
6517         (ipa_free_all_node_params): Deallocation to jump_functions moved to 
6518         ipa_free_all_edge_args
6519         (ipa_method_tree_print): Renamed to ipa_print_all_tree_maps
6520         (ipa_method_modify_print): Renamed to ipa_print_all_params_modified
6521         (ipa_create_methodlist_node): Removed.
6522         (ipa_methodlist_method): Removed.
6523         (ipa_methodlist_method_set): Removed.
6524         (ipa_methodlist_next_method): Removed.
6525         (ipa_methodlist_next_method_set): Removed.
6526         (ipa_method_is_modified): Removed.
6527         (ipa_method_modify_create): Removed.
6528         (ipa_method_modify_init): Temporary variable info instead of a few 
6529         dereferences.
6530         (ipa_detect_param_modifications): Temporary variable info instead of 
6531         a few dereferences.
6532         (ipa_compute_jump_functions): Temporary variable info instead of 
6533         a few dereferences.
6534         (ipa_method_modify_set): Removed.
6535         (ipa_method_tree_map): Renamed to ipa_get_param_decl_index
6536         (ipa_get_param_decl_index): Now accepts struct ipa_node_params rather 
6537         than craph_node as the first parameter.
6538         (ipa_method_modify_stmt): Renamed to ipa_check_stmt_modifications
6539         (ipa_method_modify_init): Removed.
6540         (ipa_compute_jump_functions): Added a temp variable instead of 
6541         repeatadly dereferencing the cgraph_edge.aux pointer
6542         (ipa_callsite_param_set_type): Removed.
6543         (ipa_compute_jump_functions): i renamed to index and moved to 
6544         an inner block
6545         (ipa_callsite_param_set_info_type_formal): Removed.
6546         (ipa_callsite_param_set_info_type): Removed.
6547         (ipa_callsite_param_map_create): Removed.
6548         (ipa_callsite_tree): Removed.
6549         (ipa_callsite_caller): Removed.
6550         (ipa_pop_func_from_list): return_method removed to return_func
6551
6552         * ipa-prop.h (enum cvalue_type): Renamed to ipa_lattice_type,
6553         prefixed all values with IPA_. Changed all users.
6554         (enum jump_func_type): Rnamed UNKNOWN_IPATYPE to IPA_UNKNOWN, 
6555         CONST_IPATYPE to IPA_CONST, CONST_IPATYPE_REF to IPA_CONST_REF 
6556         and FORMAL_IPATYPE IPA_PASS_THROUGH. 
6557         (union parameter_info): Renamed to jump_func_value.
6558         (union jump_func_value): Renamed value to constant
6559         (struct ipa_jump_func): Renamed info_type to value
6560         (struct ipa_node): Renamed to ipa_node_params
6561         (struct ipa_node_params): Renamed ipa_arg_num to param_count
6562         (struct ipa_node_params): Renamed ipa_param_tree to param_decls
6563         (struct ipa_node_params): Renamed ipa_mod to modified_flags
6564         (struct ipa_edge): Renamed to ipa_edge_args
6565         (struct ipa_edge_args): Renamed ipa_param_num to argument_count
6566         (struct ipa_edge_args): Renamed ipa_param_map to jump_functions
6567         (struct ipa_methodlist): Renamed to ipa_func_list
6568         (struct ipa_func_list): method_p renamed to node, next_method
6569         renamed to next
6570         (ipa_methodlist_p): Removed, switched all users to struct pointer
6571         (IS_VALID_TREE_MAP_INDEX): Renamed to IS_VALID_JUMP_FUNC_INDEX
6572
6573 2008-04-30  Alan Modra  <amodra@bigpond.net.au>
6574
6575         * config/rs6000/rs6000.c (ALWAYS_RESTORE_ALTIVEC_BEFORE_POP): Define.
6576         (rs6000_emit_epilogue): Use backchain to restore only when we
6577         have a large frame.  Make use of frame pointer to restore if we
6578         have one.  Handle ALWAYS_RESTORE_ALTIVEC_BEFORE_POP.
6579
6580 2008-04-29  Paolo Bonzini  <bonzini@gnu.org>
6581
6582         * config/avr/avr.md (*sbrx_branch, *sbix_branch, *sbix_branch_tmp):
6583         Add mode to zero_extract.
6584         (sign bit tests peepholes): (Ditto.).
6585
6586 2008-04-29  H.J. Lu  <hongjiu.lu@intel.com>
6587
6588         * config/i386/i386.c (ix86_builtins): Replace Prescott New
6589         Instructions in comments with SSE3.
6590         (ix86_builtin_type): This.  Add FLOAT128_FTYPE_FLOAT128,
6591         INT64_FTYPE_V4SF, INT64_FTYPE_V2DF, INT_FTYPE_V16QI,
6592         INT_FTYPE_V8QI, INT_FTYPE_V4SF, INT_FTYPE_V2DF,
6593         V16QI_FTYPE_V16QI, V8HI_FTYPE_V8HI, V8HI_FTYPE_V16QI,
6594         V8QI_FTYPE_V8QI, V4SI_FTYPE_V4SI, V4SI_FTYPE_V16QI,
6595         V4SI_FTYPE_V4SF, V4SI_FTYPE_V8HI, V4SI_FTYPE_V2DF,
6596         V4HI_FTYPE_V4HI, V4SF_FTYPE_V4SF, V4SF_FTYPE_V4SI,
6597         V4SF_FTYPE_V2DF, V2DI_FTYPE_V2DI, V2DI_FTYPE_V16QI,
6598         V2DI_FTYPE_V8HI, V2DI_FTYPE_V4SI, V2DF_FTYPE_V2DF,
6599         V2DF_FTYPE_V4SI, V2DF_FTYPE_V4SF, V2DF_FTYPE_V2SI,
6600         V2SI_FTYPE_V2SI, V2SI_FTYPE_V4SF, V2SI_FTYPE_V2SF,
6601         V2SI_FTYPE_V2DF, V2SF_FTYPE_V2SF and V2SF_FTYPE_V2SI.
6602         (bdesc_sse_args): Renamed to ...
6603         (bdesc_args): This.  Add IX86_BUILTIN_PF2ID, IX86_BUILTIN_PFRCP,
6604         IX86_BUILTIN_PFRSQRT, IX86_BUILTIN_PI2FD, IX86_BUILTIN_PF2IW,
6605         IX86_BUILTIN_PSWAPDSI, IX86_BUILTIN_PSWAPDSF and
6606         IX86_BUILTIN_FABSQ.
6607         (bdesc_1arg): Moved to ...
6608         (bdesc_args): Here.
6609         (ix86_init_mmx_sse_builtins): Updated.  Replace Prescott New
6610         Instructions in comments with SSE3.
6611         (ix86_expand_sse_operands_builtin): Renamed to ...
6612         (ix86_expand_args_builtin): This.  Updated.
6613         (ix86_expand_unop1_builtin): Update comments.
6614         (ix86_expand_builtin): Updated.
6615
6616 2008-04-29  Richard Guenther  <rguenther@suse.de>
6617
6618         PR tree-optimization/36078
6619         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6620         Update virtual SSA form after cleaning up the CFG.
6621
6622 2008-04-29  Richard Guenther  <rguenther@suse.de>
6623
6624         PR middle-end/15255
6625         * fold-const.c (fold_binary): Fold (A + A) * C to A * 2*C.
6626
6627 2008-04-29  Richard Guenther  <rguenther@suse.de>
6628
6629         * tree-ssa-alias.c (finalize_ref_all_pointers): Remove.
6630         (compute_may_aliases): Do not call finalize_ref_all_pointers.
6631         (compute_flow_insensitive_aliasing): Do not treat
6632         PTR_IS_REF_ALL pointers special.
6633         (get_smt_for): Likewise.
6634         (may_alias_p): Re-structure.
6635         (is_escape_site): A ref-all pointer conversion is not an escape site.
6636         * tree-ssa-structalias.c (find_what_p_points_to): Do not treat
6637         PTR_IS_REF_ALL pointers special.
6638         * tree-ssa-structalias.h (struct alias_info): Remove
6639         ref_all_symbol_mem_tag field.
6640         (PTR_IS_REF_ALL): Remove.
6641
6642 2008-04-29  Richard Guenther  <rguenther@suse.de>
6643
6644         PR middle-end/36077
6645         * fold-const.c (extract_muldiv_1): In combining division constants
6646         make sure to never overflow.
6647
6648 2008-04-29  Nick Clifton  <nickc@redhat.com>
6649
6650         * doc/tm.texi (RETURN_ADDR_RTX): Fix typo.
6651
6652 2008-04-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6653
6654         PR bootstrap/35169
6655         * optc-gen.awk: Work around HP-UX/IA awk bug.
6656
6657 2008-04-28  Danny Smith  <dannysmith@users.sourceforge.net>
6658
6659         * config/i386/cygming-crtend.c (register_frame_ctor): Revert my
6660         2008-04-25 commit.
6661
6662 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
6663
6664         PR target/36073
6665         * config/i386/i386.md
6666         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit):
6667         Change operand 1 predicate to nonimmediate_operand.
6668
6669 2008-04-28  Jakub Jelinek  <jakub@redhat.com>
6670
6671         PR debug/36060
6672         * dwarf2out.c (struct die_struct): Mark as chain_circular through
6673         die_sub field.
6674         * gengtype.c (walk_type, write_func_for_structure): Handle
6675         chain_circular.
6676         * doc/gty.texi: Document chain_circular.
6677
6678 2008-04-28  Richard Guenther  <rguenther@suse.de>
6679
6680         PR tree-optimization/36066
6681         * tree-vrp.c (execute_vrp): Cleanup the CFG only after finalizing
6682         SCEV and loop.
6683
6684 2008-04-28  Uros Bizjak  <ubizjak@gmail.com>
6685
6686         PR target/36064
6687         * config/i386/i386.md
6688         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters):
6689         Use match_scratch instead of match_operand for operands 3 and 4.
6690
6691 2008-04-27  Richard Guenther  <rguenther@suse.de>
6692
6693         PR tree-optimization/18754
6694         PR tree-optimization/34223
6695         * tree-pass.h (pass_complete_unrolli): Declare.
6696         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Print
6697         loop size before and after unconditionally of UL_NO_GROWTH in effect.
6698         Rewrite loop into loop closed SSA form if it is not already.
6699         (tree_unroll_loops_completely): Re-structure to iterate over
6700         innermost loops with intermediate CFG cleanups.
6701         Unroll outermost loops only if requested or the code does not grow
6702         doing so.
6703         * tree-ssa-loop.c (gate_tree_vectorize): Don't shortcut if no
6704         loops are available.
6705         (tree_vectorize): Instead do so here.
6706         (tree_complete_unroll): Also unroll outermost loops.
6707         (tree_complete_unroll_inner): New function.
6708         (gate_tree_complete_unroll_inner): Likewise.
6709         (pass_complete_unrolli): New pass.
6710         * tree-ssa-loop-manip.c (find_uses_to_rename_use): Only record
6711         uses outside of the loop.
6712         (tree_duplicate_loop_to_header_edge): Only verify loop-closed SSA
6713         form if it is available.  
6714         * tree-flow.h (tree_unroll_loops_completely): Add extra parameter.
6715         * passes.c (init_optimization_passes): Schedule complete inner
6716         loop unrolling pass before the first CCP pass after final inlining.
6717
6718 2008-04-27  Nathan Sidwell  <nathan@codesourcery.com>
6719
6720         * targhooks.h (default_emutls_var_fields,
6721         default_emutls_var_init): Declare.
6722         * tree.h (DECL_THREAD_LOCAL): Compare against TLS_MODEL_REAL.
6723         * target.h (struct gcc_target): Add struct emutls member.
6724         * target-def.h (TARGET_EMUTLS_GET_ADDRESS,
6725         TARGET_EMUTLS_REGISTER_COMMON, TARGET_EMUTLS_VAR_SECTION,
6726         TARGET_EMUTLS_TMPL_SECTION, TARGET_EMUTLS_VAR_PREFIX,
6727         TARGET_EMUTLS_TMPL_PREFIX, TARGET_EMUTLS_VAR_FIELDS,
6728         TARGET_EMUTLS_VAR_INIT, TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS,
6729         TARGET_EMUTLS_VAR_ALIGN_FIXED, TARGET_EMUTLS): New.
6730         (TARGET_INITIALIZER): Add TARGET_EMUTLS.
6731         * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS,
6732         BUILT_IN_EMUTLS_REGISTER_COMMON): Get name from targetm structure.
6733         * dwarf2out.c (loc_descriptor_from_tree_1): Check if emutls can
6734         emit debug information.
6735         * coretypes.h (tls_model): Add TLS_MODEL_EMULATED, TLS_MODEL_REAL.
6736         * varasm.c: Include targhooks.h.
6737         (emutls_object_section, emutls_tmpl_section): New.
6738         (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): Remove.
6739         (EMUTLS_SEPARATOR): New.
6740         (prefix_name): New.
6741         (get_emutls_object_name): New.
6742         (default_emutls_var_fields): New, broken out of ...
6743         (get_emutls_object_type): ... here.  Adjust to use target hooks.
6744         (get_emutls_init_templ_addr): Adjust to use target hooks.
6745         (emutls_decl): Adjust to use target hooks.
6746         (emutls_finish): Likewise.
6747         (default_emutls_var_init): New, broken out of ...
6748         (assemble_variable): ... here.  Adjust to use target hooks.
6749         * output.h (enum section_category): Add SECCAT_EMUTLS_VAR,
6750         SECCAT_EMUTLS_TMPL.
6751         * c-common.c (handle_section_attribute): Prevent overriding
6752         sections for emulated tls with special sections.
6753         * config/i386/i386.c (x86_64_elf_select_section): Add
6754         SECCAT_EMUTLS_VAR and SECCAT_EMUTLS_TMPL.
6755         (x86_64_elf_unique_section): Likewise.
6756         * config/vxworks.c: Include tree.h.
6757         (vxworks_emutls_var_fields, vxworks_emutls_var_init): New.
6758         (vxworks_override_options): Set TLS scheme.
6759         * doc/tm.texi (Emulated TLS): New node.
6760
6761 2008-04-26  Simon Baldwin <simonb@google.com>
6762
6763         PR c/35652
6764         * builtins.c (c_strlen): Suppressed multiple warnings that can occur
6765         with propagated string constants.
6766
6767 2008-04-26  Uros Bizjak  <ubizjak@gmail.com>
6768
6769         * config/i386/i386.md (fix_trunc<mode>_i387_fisttp_with_temp): Use 'X'
6770         constraint for operand 2 when operand 0 is memory operand.
6771         (fix_truncdi_i387_with_temp): : Use 'X' constraint for operand 4 when
6772         operand 0 is memory operand.
6773         (fix_trunc<mode>_i387_with_temp): Ditto.
6774         (*floatsi<mode>2_vector_mixed_with_temp): Use 'X' constraint for
6775         operand 2 when operand 1 is memory operand.
6776         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Ditto.
6777         (*floatsi<mode>2_vector_sse_with_temp): Ditto.
6778         (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Ditto.
6779         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
6780         (floatdi<X87MODEF:mode>2_i387_with_xmm): Use 'X' constraint for
6781         operands 2,3 and 4 when operand 1 is memory operand.
6782         (fistdi2_with_temp): Use 'X' constraint for operand 2 when operand 0
6783         is memory operand.
6784         (fistdi2_floor_with_temp): Ditto.
6785         (fist<mode>2_floor_with_temp): Ditto.
6786         (fistdi2_ceil_with_temp): Ditto.
6787         (fist<mode>2_ceil_with_temp): Ditto.
6788         (*truncdfsf_fast_mixed): Merge alternatives 0 and 1.
6789
6790 2008-04-26  David Daney  <ddaney@avtrex.com>
6791
6792         * config/mips/mips.md (UNSPEC_COMPARE_AND_SWAP_12): New
6793         unspec_volitile.
6794         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_EXCHANGE,
6795         UNSPEC_MEMORY_BARRIER, UNSPEC_SET_GOT_VERSION,
6796         UNSPEC_UPDATE_GOT_VERSION): Renumber.
6797         (sync_compare_and_swap<mode>): New expand for QI and HI modes.
6798         (compare_and_swap_12): New insn.
6799         * config/mips/mips-protos.h (mips_expand_compare_and_swap_12): Declare.
6800         * config/mips/mips.c (mips_force_binary): New function.
6801         (mips_emit_int_order_test, mips_expand_synci_loop): Use it.
6802         (mips_expand_compare_and_swap_12): New function.
6803         * config/mips/mips.h (MIPS_COMPARE_AND_SWAP_12): New macro.
6804
6805 2008-04-25  Jan Hubicka  <jh@suse.cz>
6806
6807         PR testsuite/35843
6808         * cfgexpand.c (pass_expand): Turn into RTL pass.
6809         * passes.c (execute_one_pass): Do pass typechecking after execution.
6810         * tree-pass.h (pass_expand): Turn into RTL pass.
6811
6812         * function.h (struct rtl_data): Move here fields
6813         accesses_prior_frames, calls_eh_return, saves_all_registers,
6814         has_nonlocal_goto, has_asm_statement, is_thunk,
6815         all_throwers_are_sibcalls, limit_stack, profile, uses_const_pool,
6816         uses_pic_offset_table, uses_eh_lsda, tail_call_emit,
6817         arg_pointer_save_area_init from struct function; turn into bool.
6818         (struct function): Move
6819         calls_eh_return, saves_all_registers, has_nonlocal_goto,
6820         has_asm_statement, is_thunk, all_throwers_are_sibcalls, limit_stack,
6821         profile, uses_const_pool, uses_pic_offset_table, uses_eh_lsda,
6822         tail_call_emit, arg_pointer_save_area_init
6823         into struct rtl_data.  Remove recursive_call_emit and gimplified flags.
6824         (current_function_returns_struct, current_function_returns_pcc_struct,
6825         current_function_calls_setjmp, current_function_calls_alloca,
6826         current_function_accesses_prior_frames,
6827         current_function_calls_eh_return, current_function_is_thunk,
6828         current_function_stdarg, current_function_profile,
6829         current_function_limit_stack, current_function_uses_pic_offset_table,
6830         current_function_uses_const_pool, current_function_has_nonlocal_label,
6831         current_function_saves_all_registers,
6832         current_function_has_nonlocal_goto,
6833         current_function_has_asm_statement): Remove accesor macros.
6834         * ra-conflict.c (global_conflicts): Update.
6835         * tree-tailcall.c (suitable_for_tail_opt_p): Update.
6836         (suitable_for_tail_call_opt_p): Update.
6837         * builtins.c (expand_builtin_return_addr): Update.
6838         (expand_builtin_setjmp_setup): Update.
6839         (expand_builtin_nonlocal_goto): Update.
6840         * final.c (final_start_function): Update.
6841         (profile_function): Update.
6842         (leaf_function_p): Update.
6843         (only_leaf_regs_used): Update.
6844         * df-scan.c (df_get_exit_block_use_set): Update.
6845         * dojump.c (clear_pending_stack_adjust): Update.
6846         * tree-stdarg.c (gate_optimize_stdarg): Update.
6847         * gimple-low.c (lower_function_body): Update.
6848         * global.c (compute_regsets): Update.
6849         (global_alloc): Update.
6850         * dwarf2out.c (dwarf2out_begin_prologue): Update.
6851         * expr.c (expand_assignment): Update.
6852         * dse.c (dse_step0): Update.
6853         (dse_step1): Update.
6854         * c-decl.c (store_parm_decls): Update.
6855         * local-alloc.c (combine_regs): Update.
6856         (find_free_reg): Update.
6857         * function.c (assign_parms_augmented_arg_list): Update.
6858         (assign_parm_find_data_types): Update.
6859         (assign_parms): Update.
6860         (allocate_struct_function): Update.
6861         (expand_function_start): Update.
6862         (expand_function_end): Update.
6863         (get_arg_pointer_save_area): Update.
6864         (thread_prologue_and_epilogue_insns): Update.
6865         (rest_of_match_asm_constraints): Update.
6866         * stor-layout.c (variable_size): Update.
6867         * gcse.c (gcse_main): Update.
6868         (bypass_jumps): Update.
6869         * gimplify.c (gimplify_function_tree): Update.
6870         * calls.c (emit_call_1): Update.
6871         (expand_call): Update.
6872         * bt-load.c (compute_defs_uses_and_gen): Update.
6873         * except.c (sjlj_assign_call_site_values): Update.
6874         (sjlj_emit_function_enter): Update.
6875         (can_throw_external): Update.
6876         (set_nothrow_function_flags): Update.
6877         (expand_builtin_unwind_init): Update.
6878         (expand_eh_return): Update.
6879         (convert_to_eh_region_ranges): Update.
6880         (output_function_exception_table): Update.
6881         * emit-rtl.c (gen_tmp_stack_mem): Update.
6882         * cfgexpand.c (expand_used_vars): Update.
6883         (tree_expand_cfg): Update.
6884         * cfgcleanup.c (rest_of_handle_jump): Update.
6885         * explow.c (allocate_dynamic_stack_space): Update.
6886         * varasm.c (assemble_start_function): Update.
6887         (force_const_mem): Update.
6888         (mark_constant_pool): Update.
6889         * tree-optimize.c (tree_rest_of_compilation): Update.
6890         * stack-ptr-mod.c (notice_stack_pointer_modification): Update.
6891         * tree-cfg.c (notice_special_calls): Update.
6892         (is_ctrl_altering_stmt): Update.
6893         (tree_can_make_abnormal_goto): Update.
6894         (tree_purge_dead_abnormal_call_edges): Update.
6895         * config/alpha/predicates.md: Update.
6896         * config/alpha/alpha.c (alpha_sa_mask): Update.
6897         (alpha_sa_size): Update.
6898         (alpha_does_function_need_gp): Update.
6899         (alpha_expand_prologue): Update.
6900         (alpha_start_function): Update.
6901         (alpha_output_function_end_prologue): Update.
6902         (alpha_expand_epilogue): Update.
6903         * config/frv/frv.c (frv_stack_info): Update.
6904         (frv_expand_epilogue): Update.
6905         * config/s390/s390.c (s390_regs_ever_clobbered): Update.
6906         (s390_register_info): Update.
6907         (s390_frame_info): Update.
6908         (s390_init_frame_layout): Update.
6909         (s390_can_eliminate): Update.
6910         (save_gprs): Update.
6911         * config/spu/spu.c (spu_split_immediate): Update.
6912         (need_to_save_reg): Update.
6913         (spu_expand_prologue): Update.
6914         (spu_expand_epilogue): Update.
6915         * config/sparc/sparc.md: Update.
6916         * config/sparc/sparc.c (eligible_for_return_delay): Update.
6917         (sparc_tls_got): Update.
6918         (legitimize_pic_address): Update.
6919         (sparc_emit_call_insn): Update.
6920         (sparc_expand_prologue): Update.
6921         (output_return): Update.
6922         (print_operand): Update.
6923         (sparc_function_ok_for_sibcall): Update.
6924         * config/sparc/sparc.h (EXIT_IGNORE_STACK): Update.
6925         * config/m32r/m32r.md: Update.
6926         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Update.
6927         (m32r_compute_frame_size): Update.
6928         (m32r_expand_prologue): Update.
6929         (m32r_expand_epilogue): Update.
6930         (m32r_legitimize_pic_address): Update.
6931         * config/m32r/m32r.h (FRAME_POINTER_REQUIRED): Update.
6932         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
6933         * config/i386/i386.c (ix86_frame_pointer_required): Update.
6934         (gen_push): Update.
6935         (ix86_save_reg): Update.
6936         (ix86_compute_frame_layout): Update.
6937         (ix86_expand_prologue): Update.
6938         (ix86_expand_epilogue): Update.
6939         * config/sh/sh.c (output_stack_adjust): Update.
6940         (calc_live_regs): Update.
6941         (sh5_schedule_saves): Update.
6942         (sh_expand_prologue): Update.
6943         (sh_expand_epilogue): Update.
6944         (sh_setup_incoming_varargs): Update.
6945         (sh_allocate_initial_value): Update.
6946         (sh_get_pr_initial_val): Update.
6947         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): Update.
6948         * config/sh/sh.md (label:): Update.
6949         * config/avr/avr.c (out_movhi_mr_r): Update.
6950         * config/crx/crx.h (enum): Update.
6951         * config/xtensa/xtensa.h (along): Update.
6952         * config/stormy16/stormy16.c Update.
6953         (xstormy16_compute_stack_layout): Update.
6954         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Update.
6955         (fr30_expand_prologue): Update.
6956         * config/cris/cris.c (cris_conditional_register_usage): Update.
6957         (cris_reg_saved_in_regsave_area): Update.
6958         (cris_initial_frame_pointer_offset): Update.
6959         (cris_simple_epilogue): Update.
6960         (cris_expand_prologue): Update.
6961         (cris_expand_epilogue): Update.
6962         (cris_expand_pic_call_address): Update.
6963         (cris_asm_output_symbol_ref): Update.
6964         (cris_asm_output_label_ref): Update.
6965         * config/cris/cris.md Update.
6966         * config/iq2000/iq2000.c (compute_frame_size): Update.
6967         (iq2000_expand_epilogue): Update.
6968         * config/mt/mt.h (save_direction): Update.
6969         * config/mn10300/mn10300.c (mn10300_function_value): Update.
6970         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
6971         (ia64_secondary_reload_class): Update.
6972         * config/m68k/m68k.c (m68k_save_reg): Update.
6973         (m68k_expand_prologue): Update.
6974         (m68k_expand_epilogue): Update.
6975         (legitimize_pic_address): Update.
6976         * config/rs6000/rs6000.c (rs6000_got_register): Update.
6977         (first_reg_to_save): Update.
6978         (first_altivec_reg_to_save): Update.
6979         (compute_vrsave_mask): Update.
6980         (compute_save_world_info): Update.
6981         (rs6000_stack_info): Update.
6982         (spe_func_has_64bit_regs_p): Update.
6983         (rs6000_ra_ever_killed): Update.
6984         (rs6000_emit_eh_reg_restore): Update.
6985         (rs6000_emit_allocate_stack): Update.
6986         (rs6000_emit_prologue): Update.
6987         (rs6000_emit_epilogue): Update.
6988         (rs6000_output_function_epilogue): Update.
6989         (output_profile_hook): Update.
6990         (rs6000_elf_declare_function_name): Update.
6991         * config/rs6000/rs6000.h (rs6000_args): Update.
6992         * config/rs6000/rs6000.md: Update.
6993         * config/mcore/mcore.c (mcore_expand_prolog): Update.
6994         * config/arc/arc.c (arc_output_function_epilogue): Update.
6995         * config/arc/arc.h (FRAME_POINTER_REQUIRED): Update.
6996         * config/darwin.c (machopic_function_base_name): Update.
6997         * config/score/score3.c (score3_compute_frame_size): Update.
6998         (rpush): Update.
6999         (rpop): Update.
7000         (score3_epilogue): Update.
7001         * config/score/score7.c (score7_compute_frame_size): Update.
7002         (score7_prologue): Update.
7003         (score7_epilogue): Update.
7004         * config/score/score.h (FRAME_POINTER_REQUIRED): Update.
7005         * config/arm/linux-elf.h (SUBTARGET_FRAME_POINTER_REQUIRED): Update.
7006         * config/arm/arm.c (use_return_insn): Update.
7007         (require_pic_register): Update.
7008         (arm_load_pic_register): Update.
7009         (arm_compute_save_reg0_reg12_mask): Update.
7010         (arm_compute_save_reg_mask): Update.
7011         (thumb1_compute_save_reg_mask): Update.
7012         (output_return_instruction): Update.
7013         (arm_output_function_prologue): Update.
7014         (arm_output_epilogue): Update.
7015         (arm_get_frame_offsets): Update.
7016         (arm_expand_prologue): Update.
7017         (thumb_pushpop): Update.
7018         (thumb_exit): Update.
7019         (thumb1_expand_prologue): Update.
7020         (thumb1_expand_epilogue): Update.
7021         (arm_unwind_emit): Update.
7022         (arm_output_fn_unwind): Update.
7023         * config/arm/arm.h (FRAME_POINTER_REQUIRED): Update.
7024         * config/arm/arm.md: Update.
7025         * config/pa/pa.md: Update.
7026         * config/pa/pa.c (legitimize_pic_address): Update.
7027         (compute_frame_size): Update.
7028         (hppa_expand_prologue): Update.
7029         (hppa_expand_epilogue): Update.
7030         (borx_reg_operand): Update.
7031         * config/pa/pa.h (FRAME_POINTER_REQUIRED): Update.
7032         (HARD_REGNO_RENAME_OK): Update.
7033         * config/mips/mips.c (mips_global_pointer): Update.
7034         (mips_save_reg_p): Update.
7035         (mips_compute_frame_info): Update.
7036         (mips_frame_pointer_required): Update.
7037         (mips_expand_prologue): Update.
7038         (mips_expand_epilogue): Update.
7039         (mips_can_use_return_insn): Update.
7040         (mips_reorg_process_insns): Update.
7041         * config/v850/v850.c (compute_register_save_size): Update.
7042         * config/mmix/mmix.h (FRAME_POINTER_REQUIRED): Update.
7043         * config/mmix/mmix.c (along): Update.
7044         (mmix_expand_epilogue): Update.
7045         * config/bfin/bfin.c (legitimize_pic_address): Update.
7046         (must_save_p): Update.
7047         (stack_frame_needed_p): Update.
7048         (add_to_reg): Update.
7049         (bfin_expand_prologue): Update.
7050         * stmt.c (expand_asm_operands): Update.
7051         * reload1.c (reload): Update.
7052         (init_elim_table): Update.
7053
7054 2008-04-25  Bob Wilson  <bob.wilson@acm.org>
7055         
7056         * optabs.c (expand_float): Fix REG_EQUAL for UNSIGNED_FLOAT libcall.
7057         
7058 2008-04-25  H.J. Lu  <hongjiu.lu@intel.com>
7059
7060         * config/i386/sse.md (mov<mode>): Replace SSEMODEI with SSEMODE.
7061         (*mov<mode>_internal): Likewise.  Support V4SF and V2DF.
7062         (mov<mode>): Removed.
7063         (*movv4sf_internal): Likewise.
7064         (*movv2df_internal): Likewise.
7065
7066 2008-04-25  Pompapathi V Gadad <Pompapathi.V.Gadad@nsc.com>
7067
7068         * config.gcc (crx-*-elf): Remove deprecation.
7069
7070 2008-04-25  Danny Smith  <dannysmith@users.sourceforge.net>
7071
7072         * config/i386/cygming-crtend.c (register_frame_ctor): Register
7073         __gcc_deregister_frame with atexit.
7074         (deregister_frame_dtor): Remove.
7075
7076 2008-04-24  Nathan Froyd  <froydnj@codesourcery.com>
7077             Nathan Sidwell  <nathan@codesourcery.com>
7078
7079         * config/rs6000/rs6000.opt (mspe): Remove Var property.
7080         (misel): Likewise.
7081         * config/rs6000/rs6000.h (rs6000_spe): Declare.
7082         (rs6000_isel): Likewise.
7083         * config/rs6000/rs6000.c (rs6000_spe): New variable.
7084         (rs6000_isel): New variable.
7085         (rs6000_handle_option): Handle OPT_mspe and OPT_misel.
7086
7087 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7088
7089         PR c++/35758
7090         * c-common.c (handle_vector_size_attribute): Call
7091         lang_hooks.types.reconstruct_complex_type instead of
7092         reconstruct_complex_type.
7093         * config/rs6000/rs6000.c (rs6000_handle_altivec_attribute): Likewise.
7094         * config/spu/spu.c (spu_handle_vector_attribute): Likewise.
7095         * langhooks.h (struct lang_hooks_for_types): Add
7096         reconstruct_complex_type hook.
7097         * langhooks-def.h (LANG_HOOKS_RECONSTRUCT_COMPLEX_TYPE): Define.
7098         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add it.
7099
7100 2008-04-24  Richard Guenther  <rguenther@suse.de>
7101
7102         * c-common.h (check_builtin_function_arguments): Declare.
7103         * c-common.c (validate_nargs): New function.
7104         (check_builtin_function_arguments): Likewise.
7105         * c-typeck.c (build_function_call): Call
7106         check_builtin_function_arguments.
7107         * builtins.c (fold_builtin_classify): Remove error reporting code.
7108         (fold_builtin_unordered_cmp): Likewise.
7109         (fold_builtin_1): Likewise.
7110         (fold_builtin_n): Likewise.
7111
7112 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7113
7114         PR tree-optimization/36008
7115         * fold-const.c (try_move_mult_to_index): If s == NULL, divide
7116         the original op1, rather than delta by step.
7117
7118 2008-04-22  Antoniu Pop  <antoniu.pop@gmail.com>
7119             Sebastian Pop  <sebastian.pop@amd.com>
7120
7121         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7122         eliminate_local_variables_stmt, eliminate_local_variables,
7123         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7124         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7125         of code delimited by two edges in the CFG.
7126         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7127         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7128         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate 
7129         the case of parallelisation of reductions.
7130         (expr_invariant_in_region_p): New.
7131
7132         * tree-flow.h (gather_blocks_in_sese_region): Declared.
7133         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7134
7135 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7136             Richard Guenther  <rguenther@suse.de>
7137
7138         PR tree-optimization/36034
7139         * tree-vect-analyze.c (vect_analyze_group_access): SLP is
7140         incapable of dealing with loads with gaps.
7141
7142 2008-04-24  Rafael Espindola  <espindola@google.com>
7143
7144         * tree-flow.h (vrp_evaluate_conditional): Change signature.
7145         * tree-ssa-propagate.c (fold_predicate_in): Update call to
7146         vrp_evaluate_conditional.
7147         * tree-vrp.c (vrp_evaluate_conditional_warnv): Remove.
7148         (vrp_evaluate_conditional): Split the cond argument.
7149         (vrp_visit_cond_stmt): Use vrp_evaluate_conditional_warnv_with_ops.
7150         (simplify_stmt_for_jump_threading): Update call to
7151         vrp_evaluate_conditional.
7152
7153 2008-04-24  Ira Rosen  <irar@il.ibm.com>
7154
7155         PR tree-optimization/35982
7156         * tree-vect-analyze.c (vect_check_interleaving): Check that the
7157         interleaved data-refs are of the same type.
7158
7159 2008-04-24  Danny Smith  <dannysmith@users.net>
7160
7161         * c-format.c (check_format_info_main): Use strncmp rather than a
7162         magic prefix to handle multichar length specs.
7163         * config/i386/msformat-c.c (format_length_info ms_printf_length_specs):
7164         Don't prefix "I64" and "I32" with '\0'.
7165
7166 2008-04-24  Jakub Jelinek  <jakub@redhat.com>
7167
7168         PR target/36015
7169         * config/i386/i386.c (init_cumulative_args): Don't pass anything
7170         in registers for -m32 only if stdarg_p (fntype).
7171
7172 2008-04-24  Uros Bizjak  <ubizjak@gmail.com>
7173
7174         PR rtl-optimization/36006
7175         * expmed.c (store_fixed_bit_field): Copy op0 rtx before moving
7176         temp to op0 in order to avoid invalid rtx sharing.
7177
7178 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
7179
7180         * tree-cfg.c (verify_expr): Check with is_gimple_address.  Don't
7181         check TREE_INVARIANT.
7182         * tree-gimple.c (is_gimple_address): New.
7183         (is_gimple_invariant_address): Simplify using decl_address_invariant_p.
7184         * tree-gimple.h (is_gimple_address): New.
7185         * tree.h (decl_address_invariant_p): New.
7186         * tree.c (make_node_stat): Don't set TREE_INVARIANT.
7187         (build_string): Likewise.
7188         (decl_address_invariant_p): New, from is_gimple_invariant_address.
7189         (tree_invariant_p_1): Likewise.
7190         (save_expr): Use it.
7191         (tree_invariant_p): New.
7192         (skip_simple_arithmetic): Use it.
7193         (stabilize_reference_1): Use it.
7194         (recompute_tree_invariant_for_addr_expr): Don't update TREE_INVARIANT,
7195         simplify.
7196         (build1_stat): Drop code to compute TREE_INVARIANT.
7197         (build2_stat): Drop code to compute TREE_INVARIANT.
7198         (build3_stat): Drop code to compute TREE_INVARIANT.
7199         (build4_stat): Drop code to compute TREE_INVARIANT.
7200         (build5_stat): Drop code to compute TREE_INVARIANT.
7201         (build7_stat): Drop code to compute TREE_INVARIANT.
7202         (merge_dllimport_decl_attributes): Don't mention TREE_INVARIANT.
7203         * tree.h (struct tree_base): Remove invariant_flag.
7204         (TREE_INVARIANT): Remove.
7205         * builtins.c (build_string_literal): Don't set TREE_INVARIANT.
7206         (fold_builtin_expect): Check TREE_CONSTANT.
7207         * tree-ssa-ccp.c (fold_stmt_r): Adjust comment.
7208         * c-tree.h (c_expr_to_decl): Drop third parameter.
7209         * c-typeck.c (build_external_ref): Don't set TREE_INVARIANT.
7210         (build_c_cast): Don't set TREE_INVARIANT.
7211         (pop_init_level): Don't set TREE_INVARIANT.
7212         (c_objc_common_truthvalue_conversion): Don't set TREE_INVARIANT.
7213         * gimplify.c (gimplify_init_ctor_preeval): Add assertion, test
7214         TREE_CONSTANT.
7215         (gimplify_init_constructor): Don't set TREE_INVARIANT.
7216         (gimplify_addr_expr): Adjust comment.
7217         * tree-mudflap.c (mf_build_string):
7218         * print-tree.c (print_node): Don't print TREE_INVARIANT.
7219         * tree-nested.c (convert_nonlocal_reference): Adjust comment.
7220         * c-common.c (fix_string_type): Don't set TREE_INVARIANT.
7221         * langhooks-def.h (lhd_expr_to_decl): Drop third parameter.
7222         * langhooks.c (lhd_expr_to_decl): Drop third parameter.
7223         * langhooks.h (struct lang_hooks): Drop third parameter from
7224         expr_to_decl.
7225
7226 2008-04-23  Richard Guenther  <rguenther@suse.de>
7227
7228         PR tree-optimization/27799
7229         PR tree-optimization/32921
7230         PR tree-optimization/32624
7231         * tree-ssa-structalias.c (merge_smts_into): Only merge the
7232         SMTs aliases and the tag itself into the solution.
7233         * tree-ssa-alias.c (compute_flow_sensitive_aliasing): Do not
7234         merge the points-to solution back into the SMT aliases.
7235         (may_alias_p): Use alias_set_subset_of instead of
7236         aliases_conflict_p.  A pointer which points to
7237         memory with alias set zero may access any variable.
7238
7239 2008-04-23  Richard Guenther  <rguenther@suse.de>
7240
7241         * alias.c (alias_set_subset_of): Correctly handle asking
7242         if zero is a subset of an alias set with zero child.
7243         * tree-ssa-alias.c (have_common_aliases_p): Simplify logic.
7244         (compute_flow_insensitive_aliasing): Correctly walk all
7245         pointers.  Do not unnecessarily union sets.
7246
7247 2008-04-23  Richard Guenther  <rguenther@suse.de>
7248
7249         PR middle-end/36021
7250         * c-common.c (handle_alloc_size_attribute): Use type_num_arguments.
7251
7252 2008-04-22  Tomas Bily  <tbily@suse.cz>
7253
7254         * tree-cfg.c (verify_expr): Check for NON_LVALUE_EXPR as
7255         unreachable case.
7256         * tree-vrp.c (extract_range_from_unary_expr): Removed unused
7257         NON_LVALUE_EXPR.
7258         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
7259         * tree-ssa-structalias.c (get_constraint_for): Likewise.
7260         * tree-inline.c (estimate_num_insns_1): Likewise.
7261         * varasm.c (const_hash_1, compare_constant, copy_constant)
7262         (compute_reloc_for_constant, output_addressed_constants): Likewise.
7263         * emit-rtl.c (component_ref_for_mem_expr)
7264         (set_mem_attributes_minus_bitpos): Likewise.
7265         * expr.c (highest_pow2_factor, expand_expr_real_1, )
7266         (is_aligning_offset): Likewise.
7267         * dwarf2out.c (loc_descriptor_from_tree_1, add_bound_info): Likewise.
7268         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Likewise.
7269         * dojump.c (do_jump): Likewise.
7270         * builtins.c (get_pointer_alignment, get_memory_rtx)
7271         (integer_valued_real_p, fold_builtin_next_arg): Likewise.
7272         * tree-scalar-evolution.c (instantiate_parameters_1): Likewise.
7273
7274 2008-04-23  Jakub Jelinek  <jakub@redhat.com>
7275
7276         PR rtl-optimization/36017
7277         * builtins.c (expand_errno_check): Clear CALL_EXPR_TAILCALL before
7278         expanding the library call.
7279
7280 2008-04-22  Ian Lance Taylor  <iant@google.com>
7281
7282         * fold-const.c (pointer_may_wrap_p): Call int_size_in_bytes rather
7283         than size_in_bytes.
7284
7285 2008-04-22  Pat Haugen  <pthaugen@us.ibm.com>
7286
7287         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase cost
7288         of LR/CTR moves for Power6.
7289
7290 2008-04-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
7291
7292         PR middle-end/36003
7293         * passes.c (init_optimization_passes): Remove
7294         pass_fast_rtl_byte_dce.
7295         
7296 2008-04-22  Uros Bizjak  <ubizjak@gmail.com>
7297
7298         PR target/29096
7299         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Rearrange calls to
7300         builtin functions to generate faster code.
7301         (_mm_cvtpu16_ps): Ditto.
7302         (_mm_cvtpi32x2_ps): Ditto.
7303
7304 2008-04-22  Nick Clifton  <nickc@redhat.com>
7305
7306         * common.opt (ftree-loop-distribution): Add Optimization
7307         attribute.
7308
7309         * config/frv/frv.c (frv_stack_info): Use crtl instead of cfun.
7310         (frv_expand_builtin_va_start): Likewise.
7311
7312         * config/arm/arm.c (thumb_find_work_register): Fix location of
7313         argument register count.
7314
7315 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7316
7317         Support scheduling for ColdFire V1 and V3 microarchitecture.
7318         Improve scheduling of multiplication instructions.
7319
7320         * config/m68k/m68k.md (cpu): Add cfv1 and cfv3.  Rename cf_v2 to cfv1.
7321         (mac): New instruction attribute.
7322         * config/m68k/m68k.c (override_options): Handle cfv1, cfv3 and mac.
7323         (m68k_sched_mac): New variable.
7324         (m68k_sched_attr_type2, m68k_sched_md_init_global): Update.
7325         Handle cfv1 and cfv3.
7326         (max_insn_size): New static variable.
7327         (struct _sched_ib): New type.
7328         (sched_ib): New static variable.
7329         (sched_ib_size, sched_ib_filled, sched_ib_insn): Convert variables
7330         to fields of 'struct _sched_ib sched_ib'.  Update all uses.
7331         (m68k_sched_variable_issue): Add modeling of cfv3 instruction buffer.
7332         Update.
7333         (m68k_sched_md_init_global, m68k_sched_md_finish_global,
7334         m68k_sched_md_init, m68k_sched_md_finish): Handle cfv1 and cfv3.  Init
7335         new variables.  Update.
7336         (m68k_sched_dfa_pre_advance_cycle, m68k_sched_dfa_post_advance_cycle):
7337         Add modeling of cfv3 instruction buffer.  Update.
7338         * config/m68k/m68k-protos.h (m68k_sched_mac): Declare.
7339         * config/m68k/m68k.h (TUNE_CFV3): New macro.
7340         * config/m68k/cf.md: Change substrings 'cf_v2' to 'cfv12' or 'cfv123'.
7341         (cf_* reservations): Rename to cfv12 or cfv123 to indicate cores
7342         a particular reservation applies to.
7343         (type2): Reorganize attribute values.  Rename alu to alu_reg,
7344         alu_l to alu, move_l to omove.  Join move to alu.  Split mul
7345         to mul_l and mul_w.
7346         (cf_ib_*): Simplify description of instruction buffer.
7347         (cf_ib_w0, cf_ib_w4, cf_ib_w5, cf_ib_w6): Remove.
7348         (cf_mem): Split into cf_mem1 and cf_mem2.
7349         (cf_v2_move_??): Rename to cfv12_alu_??.
7350         (cf_v2_move_l_??): Rename to cfv12_omove_??.
7351         (cf_v2_mul_??): Remove reservations.
7352         (cfv12_mul_l_??, cfv12_mul_w_??, cfv12_mac_w_??, cfv12_mac_l_??,
7353         cfv12_emac_??, cfv12_emac_w_i0): New reservations.
7354         (cfv12_rts, cfv12_call, cfv12_bcc, cfv12_bra, cfv12_jmp): Move to
7355         appropriate place.
7356         (cfv3_alu_10, cfv3_omove_10, cfv3_alu_i0, cfv3_omove_i0, cfv3_alu_01,
7357         cfv3_alu_0i, cfv3_alu_11, cfv3_omove_11, cfv3_alu_i1, cfv3_omove_i1,
7358         cfv3_alu_1i, cfv3_omove_1i, cfv3_pea_11, cfv3_pea_i1, cfv3_mul_w_10,
7359         cfv3_mul_l_10, cfv3_mul_w_i0, cfv3_mac_w_10, cfv3_mac_l_10,
7360         cfv3_mac_w_i0, cfv3_emac_10, cfv3_emac_w_i0, cfv3_rts, cfv3_call,
7361         cfv3_bcc, cfv3_bra, cfv3_jmp): New reservations.
7362         (cfv3_*_1, cfv3_*_2, cfv3_*_3): New instruction reservations that are
7363         expansions of the above reservations for instructions of sizes
7364         1, 2 and 3 words.
7365
7366 2008-04-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
7367
7368         * rtl-factoring.c (collect_patterns_seqs): Handle CC0 targets.
7369
7370 2008-04-21  Adam Nemet  <anemet@caviumnetworks.com>
7371
7372         * coverage.c: Include tree-pass.h.
7373         (coverage_counter_alloc): Print da_file_name to the dump file.
7374
7375 2008-04-21  Kenneth Zadeck  <zadeck@naturalbridge.com>
7376
7377         * sbitmap.c (sbitmap_range_empty_p): New function.
7378         * sbitmap.h (sbitmap_range_empty_p): New function.
7379         * bitmap.h: Now includes obstack.h.
7380
7381 2008-04-21  Richard Sandiford  <rsandifo@nildram.co.uk>
7382             Kenneth Zadeck  <zadeck@naturalbridge.com>
7383
7384         * dbgcnt.def (ra_byte_scan): Added.
7385         * dbgcnt.c (dbg_cnt): Added code to print message to dump_file
7386         when the last hit happens for a counter.  
7387         * timevar.def (TV_DF_BYTE_LR): New variable.
7388         * tree-pass.h (pass_fast_rtl_byte_dce): New pass.
7389         * passes.c (pass_fast_rtl_byte_dce): New pass.
7390         * fwprop.c (update_df): Added mode to call df_ref_create.
7391         Renamed DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
7392         DF_REF_EXTRACT_OFFSET.
7393         * df.h (DF_BYTE_LR, DF_BYTE_LR_BB_INFO, DF_BYTE_LR_IN, 
7394         DF_BYTE_LR_OUT, df_byte_lr): New macro.
7395         (df_mm): New enum.
7396         (df_ref_extract): Added mode field.
7397         (DF_REF_WIDTH, DF_REF_OFFSET) Renamed to DF_REF_EXTRACT_WIDTH and
7398         DF_REF_EXTRACT_OFFSET.
7399         (DF_REF_EXTRACT_MODE): New macro.
7400         (df_byte_lr_bb_info): New structure.
7401         (df_print_byte_regset, df_compute_accessed_bytes, 
7402         df_byte_lr_add_problem, df_byte_lr_get_regno_start,
7403         df_byte_lr_get_regno_len, df_byte_lr_simulate_defs,
7404         df_byte_lr_simulate_uses,
7405         df_byte_lr_simulate_artificial_refs_at_top,
7406         df_byte_lr_simulate_artificial_refs_at_end,
7407         df_compute_accessed_bytes): New function.
7408         (df_ref_create): Add parameter.
7409         (df_byte_lr_get_bb_info): New inline function.
7410         * df-scan.c (df_ref_record, df_uses_record,
7411         df_ref_create_structure): Added mode parameter.
7412         (df_ref_create, df_notes_rescan, df_ref_record, df_def_record_1, 
7413         df_defs_record, df_uses_record, df_get_conditional_uses,
7414         df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect, 
7415         df_entry_block_defs_collect, df_exit_block_uses_collect):
7416         Added mode parameter to calls to df_ref_record, df_uses_record,
7417         df_ref_create_structure.
7418         (df_ref_equal_p, df_ref_compare): Added test for modes.
7419         (df_ref_create_structure): Added code to set mode.  Renamed
7420         DF_REF_WIDTH and DF_REF_OFFSET to DF_REF_EXTRACT_WIDTH and
7421         DF_REF_EXTRACT_OFFSET.
7422         * df-core.c (df_print_byte_regset): New function.
7423         * df-byte-scan.c: New file.
7424         * df-problems.c (df_rd_transfer_function): Removed unnecessary
7425         calls to BITMAP_FREE.  
7426         (df_byte_lr_problem_data, df_problem problem_BYTE_LR): New structure.
7427         (df_byte_lr_get_regno_start, df_byte_lr_get_regno_len,
7428         df_byte_lr_set_bb_info, df_byte_lr_free_bb_info, 
7429         df_byte_lr_check_regs, df_byte_lr_expand_bitmap, 
7430         df_byte_lr_alloc, df_byte_lr_reset, df_byte_lr_bb_local_compute,
7431         df_byte_lr_local_compute, df_byte_lr_init,
7432         df_byte_lr_confluence_0, df_byte_lr_confluence_n, 
7433         df_byte_lr_transfer_function, df_byte_lr_free, 
7434         df_byte_lr_top_dump, df_byte_lr_bottom_dump,
7435         df_byte_lr_add_problem, df_byte_lr_simulate_defs, 
7436         df_byte_lr_simulate_uses,
7437         df_byte_lr_simulate_artificial_refs_at_top,
7438         df_byte_lr_simulate_artificial_refs_at_end): New function.
7439         * dce.c (byte_dce_process_block): New function.
7440         (dce_process_block): au is now passed in rather than computed
7441         locally.  Changed loops that look at artificial defs to not look
7442         for conditional or partial ones, because there never are any.  
7443         (fast_dce): Now is able to drive byte_dce_process_block or 
7444         dce_process_block depending on the kind of dce being done.
7445         (rest_of_handle_fast_dce): Add parameter to fast_dce.
7446         (rest_of_handle_fast_byte_dce): New function.
7447         (rtl_opt_pass pass_fast_rtl_byte_dce): New pass.
7448         * Makefile.in (df-byte-scan.o, debugcnt.o): Added dependencies.
7449
7450 2008-04-21  Daniel Franke  <franke.daniel@gmail.com>
7451
7452         PR fortran/35019
7453         * gcc.h: Added fortran options that take arguments to
7454         DEFAULT_SWITCH_TAKES_ARG and DEFAULT_WORD_SWITCH_TAKES_ARG
7455         macros.
7456
7457 2008-04-20  Eric Botcazou  <ebotcazou@adacore.com>
7458
7459         * tree-sra.c (sra_walk_expr) <VIEW_CONVERT_EXPR>: Disable
7460         scalarization if on the LHS and not a full access.
7461
7462 2008-04-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7463
7464         * Makefile.in (s-gtyp-input): Remove tmp-gi.list before writing it.
7465
7466 2008-04-18  Rafael Espindola  <espindola@google.com>
7467
7468         * tree-vrp.c (find_case_label_index): Fix the binary search.
7469         (find_case_label_range): New.
7470         (vrp_visit_switch_stmt): Use find_case_label_range.
7471         (simplify_switch_using_ranges): Use find_case_label_range.
7472
7473 2008-04-18  Eric Botcazou  <ebotcazou@adacore.com>
7474
7475         * gimplify.c (gimplify_modify_expr_rhs) <COND_EXPR>: Gimplify the LHS
7476         using the is_gimple_lvalue predicate instead of is_gimple_min_lval.
7477
7478 2008-04-18  Tom Tromey  <tromey@redhat.com>
7479
7480         PR libcpp/15500:
7481         * doc/cpp.texi (Implementation-defined behavior): Mention
7482         -finput-charset.
7483
7484 2008-04-18  Ian Lance Taylor  <iant@google.com>
7485
7486         * fold-const.c (pointer_may_wrap_p): New static function.
7487         (fold_comparison): Add another test for pointer overflow.  Use
7488         pointer_may_wrap_p to disable some false positives.
7489
7490 2008-04-18  Kris Van Hees <kris.van.hees@oracle.com>
7491           
7492         * c-common.c (CHAR16_TYPE, CHAR32_TYPE): New macros.
7493         (fname_as_string): Match updated cpp_interpret_string prototype.
7494         (fix_string_type): Support char16_t* and char32_t*.
7495         (c_common_nodes_and_builtins): Add char16_t and char32_t (and
7496         derivative) nodes.  Register as builtin if C++0x.
7497         (c_parse_error): Support CPP_CHAR{16,32}.
7498         * c-common.h (RID_CHAR16, RID_CHAR32): New elements. 
7499         (enum c_tree_index) <CTI_CHAR16_TYPE, CTI_SIGNED_CHAR16_TYPE,
7500         CTI_UNSIGNED_CHAR16_TYPE, CTI_CHAR32_TYPE, CTI_SIGNED_CHAR32_TYPE,
7501         CTI_UNSIGNED_CHAR32_TYPE, CTI_CHAR16_ARRAY_TYPE,
7502         CTI_CHAR32_ARRAY_TYPE>: New elements.
7503         (char16_type_node, signed_char16_type_node, unsigned_char16_type_node,
7504         char32_type_node, signed_char32_type_node, char16_array_type_node,
7505         char32_array_type_node): New defines.
7506         * c-lex.c (cb_ident): Match updated cpp_interpret_string prototype.
7507         (c_lex_with_flags): Support CPP_CHAR{16,32} and CPP_STRING{16,32}.
7508         (lex_string): Support CPP_STRING{16,32}, match updated
7509         cpp_interpret_string and cpp_interpret_string_notranslate prototypes.
7510         (lex_charconst): Support CPP_CHAR{16,32}.
7511         * c-parser.c (c_parser_postfix_expression): Support CPP_CHAR{16,32}
7512         and CPP_STRING{16,32}.
7513
7514 2008-04-18  Paolo Bonzini  <bonzini@gnu.org>
7515
7516         PR bootstrap/35457
7517         * aclocal.m4: Regenerate.
7518         * configure: Regenerate.
7519
7520 2008-04-18  Jan Hubicka  <jh@suse.cz>
7521
7522         * except.c (dw2_size_of_call_site_table,
7523         sjlj_size_of_call_site_table): Use vector API for call_site_record.
7524
7525         * cgraphbuild.c (build_cgraph_edges): Update.
7526         * tree-pass.h: Update comment.
7527         * final.c (leaf_function_p): Update.
7528         (leaf_renumber_regs): Update.
7529         (rest_of_clean_state): Update.
7530         * omp-low.c (expand_omp_parallel): Update.
7531         * ipa-reference.c (analyze_function): Update.
7532         * reorg.c (find_end_label): Update.
7533         (optimize_skip): Update.
7534         (fill_simple_delay_slots): Update.
7535         (fill_simple_delay_slots): Update.
7536         (make_return_insns): Update.
7537         (dbr_schedule): Update.
7538         * gimple-low.c (record_vars_into): Update.
7539         * cfgbuild.c (make_edges): Update.
7540         * function.c (assign_stack_local): Update.
7541         (assign_parm_adjust_stack_rtl): Update.
7542         (locate_and_pad_parm): Update.
7543         (allocate_struct_function): Do not initialize stack_alignment_needed
7544         and preferred_stack_boundary here.
7545         (stack_protect_prologue): Update.
7546         (stack_protect_epilogue): Update.
7547         (expand_function_start): Initialize stack_alignment_needed,
7548         preferred_stack_boundary and max_jumptable_ents.
7549         (expand_function_end): Update.
7550         (free_after_compilation): Do not NULLify epilogue_delay_list.
7551         * function.h (struct rtl_data): Add stack_protect_guard,
7552         stack_alignment_needed,
7553         preferred_stack_boundary, epilogue_delay_list.
7554         (struct function): Remove value_histograms, stack_alignment_needed,
7555         preferred_stack_boundary, epilogue_delay_list, max_jumptable_ents,
7556         last_label_uid,
7557         unexpanded_var_list, stack_protect_guard.
7558         (current_function_epilogue_delay_list): Remove.
7559         * ipa-type-escape.c (analyze_function): Update.
7560         * gimplify.c (pop_gimplify_context): Update comment.
7561         * calls.c (expand_call): Update.
7562         (emit_library_call_value_1): Update.
7563         * except.c (set_nothrow_function_flags): Update.
7564         * cfgexpand.c (get_decl_align_unit): Update.
7565         (create_stack_guard): Update.
7566         (estimated_stack_frame_size): Update.
7567         (expand_used_vars): Update.
7568         (tree_expand_cfg): Free histogram earliers, init expansion variables.
7569         * explow.c (allocate_dynamic_stack_space): Update.
7570         * tree-ssa-live.c (remove_unused_locals): Update.
7571         * varasm.c (mark_constant_pool): Update.
7572         * tree-inline.c (remap_decls): Update.
7573         (initialize_cfun): Update.
7574         (declare_return_variable): Update.
7575         (inline_forbidden_p): Update.
7576         (expand_call_inline): Update.
7577         (declare_inline_vars): Update.
7578         (tree_function_versioning): Update.
7579         * tree-flow.h (value_histograms): New.
7580         (VALUE_HISTOGRAMS): New macro.
7581         * basic-block.h (control_flow_graph): Add max_jumptable_ents,
7582         last_label_uid.
7583         * tree-cfg.c (set_bb_for_stmt): Update.
7584         (replace_by_duplicate_decl): Update.
7585         (move_block_to_fn): Update.
7586         (new_label_mapper): Update.
7587         (dump_function_to_file): Update.
7588         * ipa-struct-reorg.c (build_data_structure): Update.
7589         * cfgrtl.c (print_rtl_with_bb): Update.
7590         * reload1.c (reload): Update.
7591         (reload): Update.
7592         * config/i386/i386.c (setup_incoming_varargs_64,
7593         ix86_compute_frame_layout): Update.
7594         * config/arc/arc.c (arc_output_function_epilogue): Update.
7595
7596 2008-04-18  Marius Strobl <marius@FreeBSD.org>
7597
7598         * gthr-posix.h (__gthread_active_p): Use the Solaris implementation
7599         for FreeBSD as well.
7600         * gthr-posix95.h: Likewise.
7601
7602 2008-04-17  Richard Sandiford  <rsandifo@nildram.co.uk>
7603
7604         PR rtl-optimization/35838
7605         * dse.c (find_shift_sequence): Use subreg_lowpart_offset to work
7606         out the byte offset of the first subreg.
7607
7608 2008-04-17  Uros Bizjak  <ubizjak@gmail.com>
7609
7610         * config/i386/i386.md (addti3 splitter): Pass arrays of 3 operands
7611         to split_ti instead of three separate calls with single member arrays.
7612         (subti3 splitter): Ditto.
7613         (adddi3 splitter): Ditto with split_di.
7614         (subdi3 splitter): Ditto.
7615         (negti2 splitter): Pass arrays of 2 operands to split_ti instead of
7616         two separate calls with single member arrays.  Swap match_dup
7617         operands 1 and 2 to better fit into the array.
7618         (negdi2 splitter): Ditto with split_di.
7619         (movdfcc splitter):  Pass arrays of 2 operands to split_di instead of
7620         two separate calls with single member arrays.  Swap match_dup operands
7621         6 and 7 to better fit into the array.
7622
7623 2008-04-17  H.J. Lu  <hongjiu.lu@intel.com>
7624
7625         * config/i386/i386.c (sse_builtin_type): New.
7626         (bdesc_sse_args): Likewise.
7627         (bdesc_sse_3arg): Removed.
7628         (bdesc_2arg): Remove IX86_BUILTIN_AESKEYGENASSIST128.
7629         (bdesc_1arg): Remove IX86_BUILTIN_ROUNDPD and
7630         IX86_BUILTIN_ROUNDPS.
7631         (ix86_init_mmx_sse_builtins): Handle bdesc_sse_args.  Remove
7632         bdesc_sse_3arg.  Remove IX86_BUILTIN_ROUNDPD and
7633         IX86_BUILTIN_ROUNDPS.
7634         (ix86_expand_sse_4_operands_builtin): Removed.
7635         (ix86_expand_sse_operands_builtin): New.
7636         (ix86_expand_unop_builtin): Remove CODE_FOR_sse4_1_roundpd
7637         and CODE_FOR_sse4_1_roundps.
7638         (ix86_expand_builtin): Remove IX86_BUILTIN_AESKEYGENASSIST128.
7639         Handle bdesc_sse_args.  Remove bdesc_sse_3arg.
7640
7641 2008-04-17  Alan Modra  <amodra@bigpond.net.au>
7642
7643         PR target/35907
7644         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Restore vr and vrsave
7645         regs before frame pop when needed.  If use_backchain_to_restore_sp
7646         then load backchain into a temp reg to restore vr and vrsave.  Add
7647         code to restore vr after frame pop if possible.
7648
7649 2008-04-17  Richard Guenther  <rguenther@suse.de>
7650
7651         * tree-vn.c (expressions_equal_p): Do not check type
7652         equality or compatibility before calling operand_equal_p.
7653         * fold-const.c (operand_equal_p): Check equivalence of
7654         integer constants before bailing out due to signedness or
7655         precision differences.
7656         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ignore
7657         spurious differences in type qualification.  Ignore types
7658         for COMPONENT_REFs at all.
7659
7660 2008-04-17  Christian Bruel  <christian.bruel@st.com>
7661
7662         * config/sh/sh.c (expand_cbranchdi4): Use original operands for
7663         msw_skip comparison.
7664         
7665 2008-04-16  Jakub Jelinek  <jakub@redhat.com>
7666
7667         PR c/35739
7668         * tree-nrv.c (tree_nrv): Don't optimize if result_type is GIMPLE
7669         reg type.
7670
7671         PR tree-optimization/35899
7672         * tree-inline.c (expand_call_inline): Use GIMPLE_STMT_OPERAND
7673         rather than TREE_OPERAND.
7674
7675 2008-04-16  Uros Bizjak  <ubizjak@gmail.com>
7676
7677         PR target/35944
7678         * config/i386/i386.md (fmodxf3): Copy operand 1 and operand 2 into
7679         temporary registers.  Change operand predicate to general_operand.
7680         (remainderxf3): Ditto.
7681
7682 2008-04-16  Richard Guenther  <rguenther@suse.de>
7683
7684         * Makefile.in (tree-affine.o): Add $(FLAGS_H) dependency.
7685         * tree-affine.c (aff_combination_expand): Look through some
7686         conversions.
7687
7688 2008-04-15  Doug Kwan  <dougkwan@google.com>
7689
7690         * dwarf2asm.c (dw2_assemble_integer): Cast to unsigned HOST_WIDE_INT
7691         for hex printing.
7692         * tree-pretty-print.c (dump_generic_node): Ditto.
7693         * final.c (output_addr_const): Ditto.
7694         * dwarf2out.c (output_cfi): Ditto.
7695         * c-pretty-print.c (pp_c_integer_constant): Ditto.
7696         * print-rtl.c (print_rtx): Ditto.
7697         * print-tree.c (print_node_brief, print_node): Ditto.
7698         * c-common.c (match_case_to_enum_1): Ditto.
7699         * sched-vis.c (print_value): Ditto.
7700         * config/i386/i386.c (print_operand): Cast to long unsigned int
7701         for hex printing.
7702
7703 2008-04-15  Danny Smith  <dannysmith@users.sourceforge.net>
7704         * libgcc2.c [L_trampoline]: Remove  unnecessary prototype for
7705         MS Windows VirtualProtect function.
7706
7707 2008-04-15  Jan Hubicka  <jh@suse.cz>
7708
7709         * gengtype.c (write_root): Param_is argument is OK.
7710         * expr.c (expand_expr_real_1): Update call of get_exception_*.
7711         * function.h: Include varray.h
7712         (rtl_eh): New stucture based on except.c one.
7713         (call_site_record): New forward declaration and vector type.
7714         * calls.c (emit_call_1): Do not call
7715         note_current_region_may_contain_throw.
7716         * except.c (eh_status): Remove cur_region, try_region since they are
7717         unused.
7718         Move filter, exc_ptr, ttype_data, ehspec_data, action_record_data and
7719         exception_handler_label_map, ehr_stackadj, ehr_handler, ehr_label,
7720         sjlj_fc, sjlj_exit_after to rth_eh in function.h. 
7721         Remove call_site_data_used, call_site_data_size.
7722         Turn call_site_record into vector in function.h.
7723         (note_current_region_may_contain_throw): Remove.
7724         (get_exception_pointer, get_exception_filter): Do not take struct
7725         function argument; update.
7726         (add_ehl_entry, find_exception_handler_labels, ehspec_filter_hash,
7727         add_ttypes_entry, add_ehspec_entry, assign_filter_values,
7728         build_post_landing_pads, dw2_build_landing_pads,
7729         sjlj_assign_call_site_values, sjlj_mark_call_sites,
7730         sjlj_emit_function_enter, sjlj_emit_function_enter, 
7731         sjlj_emit_function_exit, sjlj_emit_dispatch_table,
7732         sjlj_build_landing_pads, finish_eh_generation,
7733         remove_exception_handler_label, remove_eh_handler,
7734         maybe_remove_eh_handler, add_reachable_handler,
7735         reachable_handlers, expand_builtin_eh_return, expand_eh_return,
7736         add_action_record, collect_one_action_chain, add_call_site,
7737         convert_to_eh_region_ranges, sjlj_size_of_call_site_table,
7738         sjlj_output_call_site_table, output_function_exception_table,
7739         * except.h (note_current_region_may_contain_throw): Remove
7740         (get_exception_pointer, get_exception_filter): Do not take struct
7741         function argument.
7742         * Makefile.in (GTFILES): Put varargs before struct function.
7743
7744 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7745
7746         * tree-ssa-structalias.c (get_constraint_for_component_ref): Do not
7747         punt for STRING_CST.
7748         (get_constraint_for): Deal with STRING_CST here instead.
7749
7750 2008-04-15  Richard Guenther  <rguenther@suse.de>
7751
7752         * tree-ssa-propagate.c (substitute_and_fold): Substitute
7753         statements in a basic-block with a backward walk.  Do not
7754         substitute into dead statements but instead remove those.
7755
7756 2008-04-15  Richard Guenther  <rguenther@suse.de>
7757
7758         * params.def (PARAM_MAX_FIELDS_FOR_FIELD_SENSITIVE): Set default
7759         to zero, thus disable creation of SFTs.
7760
7761 2008-04-15  Eric Botcazou  <ebotcazou@adacore.com>
7762
7763         * tree-predcom.c (suitable_reference_p): Return false if the
7764         reference can throw.
7765
7766 2008-04-15  Jakub Jelinek  <jakub@redhat.com>
7767
7768         PR c/35751
7769         * c-decl.c (finish_decl): If extern or static var has variable
7770         size, set TREE_TYPE (decl) to error_mark_node.
7771
7772 2008-04-15  Rafael Espindola  <espindola@google.com>
7773
7774         * fold-const.c (tree_call_nonnegative_warnv_p): Remove local
7775         variable arg1.
7776
7777 2008-04-15  Richard Guenther  <rguenther@suse.de>
7778
7779         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
7780         * tree-ssa-sccvn.c (vn_reference_lookup): New parameter maywalk.
7781         (visit_reference_op_load): Do walk vuse-vdef chains on
7782         vn_reference_lookup.
7783         (visit_reference_op_store): But do not here.
7784         * tree-vn.c (vn_lookup): Do not walk vuse-vdef chains on
7785         vn_reference_lookup.
7786         (vn_lookup_with_vuses): But do so here.
7787
7788 2008-04-14  Ian Lance Taylor  <iant@google.com>
7789
7790         * fold-const.c (fold_overflow_warning): Remove assertion.
7791
7792 2008-04-15  Ben Elliston  <bje@au.ibm.com>
7793
7794         * config/alpha/alpha.c (alpha_initialize_trampoline): Remove temp,
7795         temp1 local variables.
7796
7797 2008-04-15  Zuxy Meng  <zuxy.meng@gmail.com>
7798
7799         PR target/35661
7800         * config/i386/winnt.c (i386_pe_section_type_flags): Mark
7801         ".text.unlikely" section as executable.
7802
7803 2008-04-14  James E. Wilson  <wilson@tuliptree.org>
7804
7805         * config/ia64/ia64.c (rtx_needs_barrier): Handle
7806         UNSPEC_FR_SQRT_RECIP_APPROX_RES.
7807         * config/ia64/ia64.c (UNSPEC_FR_SQRT_RECIP_APPROX_RES): Define.
7808         (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr,
7809         divsf3_internal_lat, sqrt_approx, sqrtsf2_internal_thr,
7810         divdf3_internal_lat, sqrtdf2_internal_thr, divxf3_internal_lat,
7811         divxf3_internal_thr, sqrtxf2_internal_thr, recip_approx): Use it.
7812
7813 2008-04-14  Ian Lance Taylor  <iant@google.com>
7814
7815         * flags.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Define.
7816         * fold-const.c (fold_comparison): If appropriate, test
7817         POINTER_TYPE_OVERFLOW_UNDEFINED, and issue an overflow warning.
7818         (fold_binary): Test POINTER_TYPE_OVERFLOW_UNDEFINED when
7819         reassociating a pointer type.
7820         * doc/invoke.texi (Optimize Options): Document that
7821         -fstrict-overflow applies to pointer wraparound.
7822
7823 2008-04-13  Jan Hubicka  <jh@suse.cz>
7824
7825         * m32.c (m32c_pushm_popm): Use crtl->retrun_rtx.
7826
7827 2008-04-12  Andrew Pinski  <pinskia@gmail.com>
7828
7829         * config/rs6000/rs6000.c (compute_save_world_info): Set lr_save_p if
7830         we are going to "save the world".
7831
7832 2008-04-13  Hans-Peter Nilsson  <hp@axis.com>
7833
7834         * config/cris/cris.md ("*andhi_lowpart_non_v32", "*andhi_lowpart_v32")
7835         ("*andqi_lowpart_non_v32", "*andqi_lowpart_v32"): Use "+" for the
7836         operand 0 constraint, not "=".
7837
7838 2008-04-11  James E. Wilson  <wilson@tuliptree.org>
7839
7840         * system.h: Change ASSERT_CHECKING to ENABLE_ASSERT_CHECKING.
7841
7842 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7843
7844         * dse.c (record_store): Use HOST_BITS_PER_WIDE_INT instead
7845         of size of positions_needed * CHAR_BIT.
7846
7847 2008-04-11  H.J. Lu  <hongjiu.lu@intel.com>
7848
7849         PR middle-end/35897
7850         * dse.c (store_info): Change positions_needed to unsigned
7851         HOST_WIDE_INT.
7852         (lowpart_bitmask): New.
7853         (record_store): Cast to unsigned HOST_WIDE_INT for
7854         positions_needed.  Assert width <= size of positions_needed *
7855         CHAR_BIT.  Call lowpart_bitmask to initialize positions_needed.
7856         (check_mem_read_rtx): Use unsigned HOST_WIDE_INT on mask.  Call
7857         lowpart_bitmask to set mask.
7858
7859 2008-04-11  Bernd Schmidt  <bernd.schmidt@analog.com>
7860
7861         * config/bfin/constraints.md: New file.
7862         * config/bfin/bfin.md: Include it.
7863         (adddi3): Use satisfies_constraint functions instead of the old macros.
7864         * config/bfin/bfin.h (REG_CLASS_FROM_LETTER, CONSTRAINT_LEN,
7865         CONST_18UBIT_IMM_P, CONST_16BIT_IMM_P, CONST_16UBIT_IMM_P,
7866         CONST_7BIT_IMM_P, CONST_7NBIT_IMM_P, CONST_5UBIT_IMM_P,
7867         CONST_4BIT_IMM_P, CONST_4UBIT_IMM_P, CONST_3BIT_IMM_P,
7868         CONST_3UBIT_IMM_P, CONST_OK_FOR_K, CONST_OK_FOR_P, CONST_OK_FOR_M,
7869         CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER,
7870         EXTRA_CONSTRAINT): Delete.
7871         * config/bfin/predicates.md (highbits_operand, reg_or_7bit_operand,
7872         reg_or_neg7bit_operand): Use satisfies_constraint functions instead
7873         of the old macros.
7874         * config/bfin/bfin.c: Include "tm-constrs.h".
7875         (bfin_secondary_reload, split_load_immediate, bfin_rtx_costs):
7876         Use satisfies_constraint functions instead of the old macros.
7877         * doc/md.texi (Blackfin Constraints): Update file name reference.
7878
7879 2008-04-11  Richard Guenther  <rguenther@suse.de>
7880
7881         PR tree-optimization/35869
7882         * tree-vrp.c (execute_vrp): Move switch statement update after
7883         jump threading.  Schedule another cfg cleanup run.
7884
7885 2008-04-11  Volker Reichelt  <v.reichelt@netcologne.de>
7886
7887         PR c/35744
7888         * attribs.c (decl_attributes): Return early on errorneous node.
7889
7890 2008-04-10  Oleg Ryjkov  <olegr@google.com>
7891
7892         * tree.h (struct tree_base): Added a new flag default_def_flag.
7893         (SSA_NAME_IS_DEFAULT_DEF): Changed to use the new flag.
7894
7895 2008-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7896
7897         * config.gcc (need_64bit_hwint): Need 64bit hwint for sh-*-*.
7898
7899 2008-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7900
7901         PR target/35768
7902         * pa.md: Define mode iterator P.  Define mode attribute dwc.
7903         (dcacheflush): Update pattern to use iterator P and attribute dwc.
7904         (icacheflush): Likewise.
7905         * pa.h (INITIALIZE_TRAMPOLINE): Use dcacheflushsi/icacheflushsi if
7906         !TARGET_64BIT, and dcacheflushdi/icacheflushdi if TARGET_64BIT.
7907
7908 2008-04-11  Ben Elliston  <bje@au.ibm.com>
7909
7910         * config/spu/spu.c (spu_init_builtins): Mark builtins as nothrow.
7911
7912 2008-04-10  Rafael Espindola  <espindola@google.com>
7913
7914         * tree-vrp.c (extract_range_from_binary_expr): Don't handle
7915         TRUTH_ANDIF_EXPR or TRUTH_ORIF_EXPR.
7916         (extract_range_from_expr): The same.
7917
7918 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
7919
7920         * config/mips/mips.md (GPR2): New mode iterator.
7921         (seq): Add comment.
7922         (*seq_<mode>, *seq_<mode>_mips16, *sne_<mode>, *sgt<u>_<mode>,
7923         *sgt<u>_<mode>_mips16, *sge<u>_<mode>, *slt<u>_<mode>,
7924         *slt<u>_<mode>_mips16 *sle<u>_<mode>, *sle<u>_<mode>_mips16):
7925         Rewrite these to take two modes, the mode of comparison and the
7926         mode of the destination.
7927         * config/mips/mips.c (mips_expand_scc): Instead of having
7928         paradoxical subreg as destination, expand "narrowing" scc if mode
7929         of comparison is SI and target is requested in DI mode.
7930         (mips_emit_int_order_test): Update comment.  Make mode of
7931         comparison match CMP0 rather than TARGET.  When creating inverse
7932         target use mode of TARGET.
7933
7934 2008-04-10  Adam Nemet  <anemet@caviumnetworks.com>
7935
7936         * gcov-dump.c (tag_summary): Only print summaries for the first
7937         GCOV_COUNTERS_SUMMABLE counters.
7938
7939 2008-04-10  Uros Bizjak  <ubizjak@gmail.com>
7940
7941         * config/i386/i386.md (absneg): New code iterator.
7942         (absnegprefix): New code attribute.
7943         (<code><mode>2): Macroize expander from abs<mode>2 and neg<mode>2
7944         patterns using absneg code iterator.
7945         (<code>tf2): Macroize expander from abstf2 and negtf2 patterns
7946         using absneg code iterator.
7947         (*<code><mode>2_1): Macroize insn pattern from *abs<mode>2_1 and
7948         *neg<mode>2 patterns using absneg code iterator.
7949         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7950         *negextendsfdf2 patterns using absneg code iterator.
7951         (*<code>extendsfxf2): Macroize insn pattern from *absextendsfxf2 and
7952         *negextendsfxf2 patterns using absneg code iterator.
7953         (*<code>extendsfdf2): Macroize insn pattern from *absextendsfdf2 and
7954         *negextendsfdf2 patterns using absneg code iterator.
7955         * config/i386/sse.md (<code><mode>2): Macroize expander from
7956         abs<mode>2 and neg<mode>2 patterns using absneg code iterator. 
7957
7958 2008-04-10  Andreas Krebbel  <krebbel1@de.ibm.com>
7959
7960         * config/s390/s390.h: Remove the remains of the recent search
7961         & replace action of current_function_outgoing_args_size.
7962
7963 2008-04-10  Ira Rosen  <irar@il.ibm.com>
7964
7965         PR tree-optimization/35821
7966         * tree-vect-transform.c (vect_create_data_ref_ptr): Add check that
7967         NEW_STMT_LIST is not NULL.
7968
7969 2008-04-09  David Edelsohn  <edelsohn@gnu.org>
7970
7971         PR libstdc++/35597
7972         * toplev.c (process_options): Remove -ffunction-sections debugging
7973         warning.
7974
7975 2008-04-09  Peter Bergner  <bergner@vnet.ibm.com>
7976
7977         PR middle-end/PR28690
7978         * explow.c (break_out_memory_refs): Use simplify_gen_binary rather
7979         than gen_rtx_fmt_ee to perform more canonicalizations.
7980
7981 2008-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7982
7983         PR driver/35665
7984         * collect2.c (write_c_file): Don't wrap in "#ifdef __cplusplus".
7985
7986 2008-04-09  Richard Guenther  <rguenther@suse.de>
7987
7988         * tree-cfg.c (verify_stmt): Print complete bogus stmt.
7989         (dump_function_to_file): Dump function arguments with types.
7990
7991 2008-04-08  Richard Guenther  <rguenther@suse.de>
7992
7993         * fold-const.c (fold_widened_comparison): Do not allow
7994         sign-changes that change the result.
7995
7996 2008-04-08  Janis Johnson  <janis187@us.ibm.com>
7997
7998         PR target/35839
7999         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle additional
8000         kinds of indirect references.
8001
8002 2008-04-08  David Edelsohn  <edelsohn@gnu.org>
8003
8004         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Update
8005         GNU Fortran language string.
8006
8007 2008-04-08  Rafael Espindola  <espindola@google.com>
8008
8009         * fold-canst.c (tree_call_nonnegative_warnv_p): New.
8010         (tree_invalid_nonnegative_warnv_p): Use tree_call_nonnegative_warnv_p.
8011         * tree.h (tree_call_nonnegative_warnv_p): New.
8012
8013 2008-04-08  Jan Hubicka  <jh@suse.cz>
8014
8015         * function.c (free_after_compilation): Clear out regno_reg_rtx
8016         pointer.
8017
8018 2008-04-08  Peter Bergner  <bergner@vnet.ibm.com>
8019
8020         Revert
8021         2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8022
8023         PR middle-end/PR28690
8024         * rtlanal.c: (commutative_operand_precedence): Give SYMBOL_REF's the
8025         same precedence as REG_POINTER and MEM_POINTER operands.
8026
8027 2008-04-08  Richard Guenther  <rguenther@suse.de>
8028
8029         PR middle-end/35834
8030         * tree-ssa-address.c (create_mem_ref): Use POINTER_PLUS_EXPR
8031         for adding index to base.
8032
8033 2008-04-08  Kai Tietz  <kai.tietz@onevision.com>
8034
8035         * config/i386/mingw32.h (ENABLE_EXECUTE_STACK): New.
8036         (MINGW_ENABLE_EXECUTE_STACK): New.
8037         (IN_LIBGCC2): For libgcc include windows.h file for
8038         function declarations.
8039
8040 2008-04-08  Hans-Peter Nilsson  <hp@axis.com>
8041
8042         * config/cris/cris.c (cris_address_cost): For a PLUS, swap tem1
8043         and tem2 if tem1 is not a REG or MULT.
8044
8045 2008-04-08  Jan Hubicka  <jh@suse.cz>
8046
8047         * function.h (incomming_args): Break out of struct function.
8048         (function_subsections): Break out of struct function.
8049         (rtl_data): Add args, subsections fields. Break out outgoing_args_size,
8050         return_rtx and hard_reg_initial_vals from struct function.
8051         Kill inl_max_label_num.
8052         (current_function_pops_args, current_function_args_info,
8053         current_function_args_size, current_function_args_size,
8054         current_function_pretend_args_size,
8055         current_function_outgoing_args_size,
8056         current_function_internal_arg_pointer, current_function_return_rtx):
8057         Kill compatibility accestor macros.
8058         * builtins.c (expand_builtin_apply_args_1): Update.
8059         (expand_builtin_next_arg): Update.
8060         * df-scan.c (df_get_call_refs): Update.
8061         * dbxout.c (dbxout_function_end): Update.
8062         * dwarf2out.c (dwarf2out_switch_text_section): Update.
8063         (output_line_info): Update.
8064         (secname_for_decl): Update.
8065         (dwarf2out_var_location): Update.
8066         * function.c (free_after_compilation): Update.
8067         (assign_parm_find_stack_rtl): Update.
8068         (assign_parms): Update.
8069         (expand_dummy_function_end): Update.
8070         (expand_function_end): Update.
8071         * calls.c (mem_overlaps_already_clobbered_arg_p): Update.
8072         (expand_call): Update.
8073         (emit_library_call_value_1): Update.
8074         (store_one_arg): Update.
8075         * varasm.c (initialize_cold_section_name): Update.
8076         (unlikely_text_section): Update.
8077         (unlikely_text_section_p): Update.
8078         (assemble_start_function): Update.
8079         (assemble_end_function): Update.
8080         (default_section_type_flags): Update.
8081         (switch_to_section): Update.
8082         * integrate.c (set_decl_abstract_flags): Update.
8083         (get_hard_reg_initial_val): Update.
8084         (has_hard_reg_initial_val): Update.
8085         (allocate_initial_values): Update.
8086         * resource.c (init_resource_info): Update.
8087         * config/alpha/alpha.c (NUM_ARGS): Update.
8088         (direct_return): Update.
8089         (alpha_va_start): Update.
8090         (alpha_sa_size): Update.
8091         (alpha_initial_elimination_offset): Update.
8092         (alpha_expand_prologue): Update.
8093         (alpha_start_function): Update.
8094         (alpha_expand_epilogue): Update.
8095         (unicosmk_initial_elimination_offset):
8096         * config/alpha/alpha.md (call expander): Update.
8097         * config/s390/s390.c (s390_register_info): Update.
8098         (s390_register_info): Update.
8099         (s390_frame_info): Update.
8100         (s390_initial_elimination_offset): Update.
8101         (s390_build_builtin_va_list): Update.
8102         (s390_va_start): Update.
8103         * config/spu/spu.c (direct_return): Update.
8104         (spu_expand_prologue): Update.
8105         (spu_initial_elimination_offset): Update.
8106         (spu_build_builtin_va_list): Update.
8107         (spu_va_start): Update.
8108         * config/sparc/sparc.c (sparc_init_modes): Update.
8109         (sparc_compute_frame_size): Update.
8110         (function_value): Update.
8111         * config/m32r/m32r.c (m32r_compute_frame_size): Update.
8112         * config/i386/i386.md (return expander): Update.
8113         * config/i386/i386.c (ix86_va_start): Update.
8114         (ix86_can_use_return_insn_p): Update.
8115         (ix86_compute_frame_layout): Update.
8116         (ix86_expand_epilogue): Update.
8117         * config/sh/sh.c (output_stack_adjust): Update.
8118         (calc_live_regs): Update.
8119         (sh_expand_prologue): Update.
8120         (sh_builtin_saveregs): Update.
8121         (sh_va_start): Update.
8122         (initial_elimination_offset): Update.
8123         (sh_allocate_initial_value): Update.
8124         (sh_function_ok_for_sibcall): Update.
8125         (sh_get_pr_initial_val): Update.
8126         * config/sh/sh.md (return expander): Update.
8127         * config/avr/avr.c (frame_pointer_required_p): UPdate.
8128         * config/crx/crx.c (crx_compute_frame): UPdate.
8129         (crx_initial_elimination_offset): UPdate.
8130         * config/xtensa/xtensa.c (compute_frame_size): Update
8131         (xtensa_builtin_saveregs): Update.
8132         (xtensa_va_start): Update.
8133         (order_regs_for_local_alloc): Update.
8134         * config/stormy16/stormy16.c (xstormy16_compute_stack_layout): Update.
8135         (xstormy16_expand_builtin_va_start): Update.
8136         * config/fr30/fr30.c (fr30_compute_frame_size): Update.
8137         * config/m68hc11/m68hc11.md (return expanders): Update.
8138         * config/m68hc11/m68hc11.c (expand_prologue): Update.
8139         (expand_epilogue): Update.
8140         * config/cris/cris.c (cris_initial_frame_pointer_offset): Update.
8141         (cris_simple_epilogue): Update.
8142         (cris_expand_prologue): Update.
8143         (cris_expand_epilogue): Update.
8144         * config/iq2000/iq2000.c (iq2000_va_start): Update.
8145         (compute_frame_size): Update.
8146         * config/mt/mt.c (mt_compute_frame_size): Update.
8147         * config/mn10300/mn10300.c (expand_prologue): Update.
8148         (expand_epilogue): Update.
8149         (initial_offset): Update.
8150         (mn10300_builtin_saveregs):
8151         * config/mn10300/mn10300.md (return expander): Update.
8152         * config/ia64/ia64.c (ia64_compute_frame_size): Update.
8153         (ia64_initial_elimination_offset): Update.
8154         (ia64_initial_elimination_offset): Update.
8155         (ia64_expand_prologue): Update.
8156         * config/m68k/m68k.md (return expander): Update.
8157         * config/rs6000/rs6000.c (rs6000_va_start): Update.
8158         (rs6000_stack_info): Update.
8159         * config/mcore/mcore.c (layout_mcore_frame): Update.
8160         (mcore_expand_prolog): Update.
8161         * config/arc/arc.c (arc_compute_frame_size): Update.
8162         * config/score/score3.c (score3_compute_frame_size): Update.
8163         * config/score/score7.c (score7_compute_frame_size): Update.
8164         * config/arm/arm.c (use_return_insn): Update.
8165         (thumb_find_work_register): Update.
8166         (arm_compute_save_reg_mask): Update.
8167         (arm_output_function_prologue): Update.
8168         (arm_output_epilogue): Update.
8169         (arm_size_return_regs): Update.
8170         (arm_get_frame_offsets): Update.
8171         (arm_expand_prologue): Update.
8172         (thumb_exit): Update.
8173         (thumb_unexpanded_epilogue): Update.
8174         (thumb1_output_function_prologue): Update.
8175         * config/pa/pa.md (return expander): Update.
8176         * config/pa/pa.c (compute_frame_size): Update.
8177         (hppa_builtin_saveregs): Update.
8178         * config/mips/mips.c (mips_va_start): Update.
8179         (mips16_build_function_stub): Update.
8180         (mips_compute_frame_info): Update.
8181         (mips_restore_gp): Update.
8182         (mips_output_function_prologue): Update.
8183         (mips_expand_prologue): Update.
8184         * config/v850/v850.c (compute_frame_size): Update.
8185         (expand_prologue): * config/mmix/mmix.c (along): update.
8186         (mmix_initial_elimination_offset): update.
8187         (mmix_reorg): update.
8188         (mmix_use_simple_return): update.
8189         (mmix_expand_prologue): update.
8190         (mmix_expand_epilogue): Update.
8191         * config/bfin/bfin.c (bfin_initial_elimination_offset): Update.
8192         (emit_link_insn): Update.
8193
8194 2008-04-08  Anatoly Sokolov <aesok@post.ru>
8195
8196         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Define 
8197         __AVR_HAVE_EIJMP_EICALL__ macro if device have EIJMP and EICALL 
8198         instructions.
8199         * config/avr/avr.c (avr_mcu_types): Set AVR31 architecture for 
8200         atmega103 device.
8201
8202 2008-04-07  Jan Hubicka  <jh@suse.cz>
8203
8204         * function.h (rtl): Rename to x_rtl.
8205         (crtl): New define.
8206         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
8207         frame_offset, stack_check_probe_note, arg_pointer_save_area,
8208         used_temp_slots avail_temp_slots, temp_slot_level,
8209         nonlocal_goto_handler_labels): Update accesstors.
8210         (rtl): New global variable.
8211         (struct function): Move some fileds to rtl_data.
8212         (get_arg_pointer_save_area): Update prototype.
8213         * builtins.c (expand_builtin_setjmp_receiver): Update call of
8214         get_arg_pointer_save_area.
8215         * expr.c (init_expr): Update
8216         * function.c (get_frame_size): Update
8217         (assign_stack_local): Update
8218         (expand_function_end): Update.
8219         (get_art_pointer_save_area): Update
8220         * function.h 
8221         * emit-rtl.c (rtl): Declare.
8222         (regno_reg_rtx): Declare.
8223         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
8224         Update.
8225         (gen_reg_rtx): Update.
8226         * varasm.c (n_deferred_constatns): Update accestor.
8227         (init_varasm_status): Do not allocate varasm_status.
8228         (force_const_mem, get_pool_size, output_constant_pool): Update.
8229         * stmt.c (force_label_rtx): Do not use x_ prefixes.
8230         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
8231         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
8232         * sparc/sparc.h (INIT_EXPANDERS): Update.
8233         * ia64/ia64.h (INIT_EXPANDERS): Update.
8234
8235 2008-04-07  James E. Wilson  <wilson@tuliptree.org>
8236
8237         * reload.c (push_secondary_reload): Add missing break to for loop.
8238
8239 2008-04-07  Peter Bergner  <bergner@vnet.ibm.com>
8240
8241         PR middle-end/PR28690
8242         * rtlanal.c: Update copyright years.
8243         (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
8244         as REG_POINTER and MEM_POINTER operands.
8245         * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
8246         (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
8247         * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
8248         * gcse.c: Update copyright years.
8249         (pre_delete): Call gen_reg_rtx_and_attrs.
8250         (hoist_code): Likewise.
8251         (build_store_vectors): Likewise.
8252         (delete_store): Likewise.
8253         * loop-invariant.c (move_invariant_reg): Likewise.
8254         Update copyright years.
8255
8256 2008-04-07  Uros Bizjak  <ubizjak@gmail.com>
8257
8258         * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
8259         control string instead of quoted.
8260
8261 2008-04-07  Kenneth Zadeck  <zadeck@naturalbridge.com>
8262
8263         * doc/rtl.texi: Rewrite of subreg section.
8264
8265 2008-04-07  Kai Tietz  <kai.tietz@onevision.com>
8266
8267         PR/35842
8268         * config/i386/i386.c (legitimize_pic_address): Add treating
8269         of dllimport SYM_REF's.
8270         (legitimize_dllimport_symbol): Add prototype.
8271
8272 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8273
8274         * fold-const.c (fold) <ARRAY_REF>: New case.  Try to fold constant
8275         reference in constructor with non self-referential type.
8276
8277 2008-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8278
8279         Removal of Return with Depressed Stack Pointer support
8280         * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
8281         (ECF_SP_DEPRESSED): Likewise.
8282         (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
8283         * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
8284         (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8285         (expand_call): Do not test ECF_SP_DEPRESSED.
8286         * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8287         * function.c (keep_stack_depressed): Delete.
8288         (handle_epilogue_set): Likewise.
8289         (update_epilogue_consts): Likewise.
8290         (emit_equiv_load): Likewise.
8291         (thread_prologue_and_epilogue_insns): Remove support for Return with
8292         Depressed Stack Pointer.
8293         * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
8294
8295 2008-04-06  Richard Guenther  <rguenther@suse.de>
8296
8297         PR tree-optimization/35400
8298         * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
8299         information from SSA_NAMEs.
8300
8301 2008-04-06  Anatoly Sokolov <aesok@post.ru>
8302
8303         * config/avr/avr.h (avr_mega_p): Remove declaration.
8304         (AVR_MEGA): Remove macro.
8305         * config/avr/avr.c (avr_mega_p): Remove variable.
8306         (avr_override_options): Remove inicializion of avr_mega_p.
8307         Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
8308         (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
8309         (avr_jump_mode): (Ditto.).
8310         (avr_output_progmem_section_asm_op): (Ditto.).
8311         (avr_asm_init_sections): (Ditto.).
8312         (avr_asm_init_sections): (Ditto.).
8313         (avr_rtx_costs): (Ditto.).
8314         * config/avr/avr.md: (Ditto.).
8315         * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of 
8316         '__AVR_MEGA__'.
8317
8318 2008-04-06  Richard Guenther  <rguenther@suse.de>
8319
8320         PR tree-optimization/35842
8321         * tree-ssa-address.c (fixed_address_object_p): Adjust to match
8322         is_gimple_invariant_address.
8323
8324 2008-04-06  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
8325
8326         * gcc.c (default_compilers): Sync Fortran extensions list with
8327         that in fortran/lang-specs.h.
8328         * doc/invoke.texi: Likewise.
8329         * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
8330         * dwarf2out.c (gen_compile_unit_die): Likewise.
8331
8332 2008-04-06  Tom G. Christensen  <tgc@jupiterrise.com>
8333
8334         * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
8335
8336 2008-04-05  Uros Bizjak  <ubizjak@gmail.com>
8337
8338         PR target/12329
8339         * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
8340         attribute is used for nested functions.
8341
8342 2008-04-05  Jan Hubicka  <jh@suse.cz>
8343
8344         * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
8345
8346         * tree-dump.c (dump_enable_all): Remove prototype; do not accept
8347         letter argument.
8348         (dump_files): Update.
8349         (enable_rtl_dump_file): Do not accept letter argument.
8350         * tree-pass.h (dump_file_info): Remove letter argument.
8351         * toplev.c (decode_d_option): Update -da handling.
8352         * toplev.h (enable_rtl_dump_file): Update prototype.
8353         * passes.c (register_one_dump_file): Do not accept IPA argument; work
8354         it out based on pass type.
8355         (register_dump_files_1): Likewise.
8356         (init_optimization_passes): Update register_one_dump_file calls.
8357         (execute_one_pass): Sanity check that IPA passes are called at IPA
8358         level and RTL passes at RTL level.
8359         (execute_pass_list): IPA pass can not be after or subpass of
8360         GIMPLE/RTL pass.
8361         (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
8362         disallov RTL subpasses of IPA subpasses.
8363
8364 2008-04-05  Ben Elliston  <bje@au.ibm.com>
8365
8366         * tree-cfg.c (need_fake_edge_p): Return false for calls to
8367         builtins that return exactly once and do not throw. Cache call to
8368         call_expr_flags.
8369
8370 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
8371
8372         PR rtl-optimization/34916
8373         PR middle-end/35519
8374         * combine.c (create_log_links): Do not create duplicate LOG_LINKS
8375         between instruction pairs.
8376
8377 2008-04-04  Naveen.H.S  <naveen.hs@kpitcummins.com>
8378
8379         * doc/invoke.texi: Document -mbitops for SH.
8380         * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
8381         * config/sh/predicates.md (bitwise_memory_operand): New predicate.
8382         * config/sh/sh.c (print_operand): Add %t operand code.
8383         * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
8384         * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
8385         (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
8386         (extendqihi2): Likewise.
8387         (movqi_i): Likewise.
8388         (insv): Use bset, bclr and bst instructions for SH2A if possible.
8389         (extv): Use bld instruction for SH2A if possible.
8390         (extzv): Likewise.
8391         (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
8392         bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
8393         bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
8394         (bset.b, bclr.b): Define peepholes.
8395         * config/sh/sh.opt (mbitops): New option.
8396
8397 2008-04-04  Janis Johnson  <janis187@us.ibm.com>
8398
8399         PR target/35620
8400         * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
8401         and view convert expression.
8402
8403 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
8404
8405         PR target/35364
8406         * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
8407
8408 2008-04-04  H.J. Lu  <hongjiu.lu@intel.com>
8409
8410         * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
8411
8412         * config/i386/cpuid.h (bit_AES): New.
8413         (bit_PCLMUL): Likewise.
8414
8415         * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
8416         (override_options): Handle PTA_AES and PTA_PCLMUL.  Enable
8417         SSE2 if AES or PCLMUL is enabled.
8418         (ix86_builtins): Add IX86_BUILTIN_AESENC128,
8419         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
8420         IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
8421         IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
8422         (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
8423         (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
8424         IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
8425         IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
8426         (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
8427         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
8428         __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
8429         __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
8430         __builtin_ia32_aeskeygenassist128 and
8431         __builtin_ia32_pclmulqdq128.
8432         * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
8433         (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
8434         IX86_BUILTIN_PSRLDQI128.  Handle IX86_BUILTIN_AESKEYGENASSIST128.
8435
8436         * config/i386/i386.h (TARGET_AES): New.
8437         (TARGET_PCLMUL): Likewise.
8438         (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
8439
8440         * config/i386/i386.md (UNSPEC_AESENC): New.
8441         (UNSPEC_AESENCLAST): Likewise.
8442         (UNSPEC_AESDEC): Likewise.
8443         (UNSPEC_AESDECLAST): Likewise.
8444         (UNSPEC_AESIMC): Likewise.
8445         (UNSPEC_AESKEYGENASSIST): Likewise.
8446         (UNSPEC_PCLMUL): Likewise.
8447
8448         * config/i386/i386.opt (maes): New.
8449         (mpclmul): Likewise.
8450
8451         * config/i386/sse.md (aesenc): New pattern.
8452         (aesenclast): Likewise.
8453         (aesdec): Likewise.
8454         (aesdeclast): Likewise.
8455         (aesimc): Likewise.
8456         (aeskeygenassist): Likewise.
8457         (pclmulqdq): Likewise.
8458
8459         * config/i386/wmmintrin.h: New.
8460
8461         * doc/extend.texi: Document AES and PCLMUL built-in function.
8462
8463         * doc/invoke.texi: Document -maes and -mpclmul.
8464
8465 2008-04-04  Paolo Bonzini  <bonzini@gnu.org>
8466
8467         * function.c (free_after_parsing): Replace with
8468         cxx_push_function_context from C++ front-end.
8469         (allocate_struct_function): Don't call langhook.
8470         * langhooks.h (struct lang_hooks_for_functions): Delete.
8471         (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
8472         member "function".
8473         * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
8474         (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
8475         LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
8476         LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
8477         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
8478         remove LANG_HOOKS_FUNCTION_INITIALIZER.
8479         * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
8480
8481         * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
8482         Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
8483         
8484 2008-04-04  Jakub Jelinek  <jakub@redhat.com>
8485
8486         PR c/35440
8487         * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
8488         for all types.
8489
8490 2008-04-04  Richard Guenther  <rguenther@suse.de>
8491
8492         PR middle-end/35823
8493         * fold-const.c (optimize_minmax_comparison): Use the correct
8494         type for the constant in the simplified comparison.
8495
8496 2008-04-04  Zuxy Meng <zuxy.meng@gmail.com>
8497
8498         * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
8499         Pass L2 size as "--param l2-cache-size" to the compiler.
8500         (decode_l2_cache): New function to decode L2 cache parameters using
8501         0x8000006 extended cpuid function.
8502         (detect_caches_amd): Determine parameters of L2 cache using
8503         decode_l2_caches function.
8504         (decode_caches_intel): Decode L2 cache parameters.
8505         (detect_caches_intel): Determine L2 cache parameters using
8506         decode_caches_intel and decode_l2_caches functions.
8507
8508 2008-04-03  Bob Wilson  <bob.wilson@acm.org>
8509
8510         * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
8511         secondary input reload for subword loads from the constant pool.
8512
8513 2008-04-03  Janis Johnson  <janis187@us.ibm.com>
8514
8515         PR target/35713
8516         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
8517           constants of the appropriate size for runtime calculations.
8518
8519         PR c/35712
8520         * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
8521           decimal-float literal constant zero.
8522
8523 2008-04-03  Jakub Jelinek  <jakub@redhat.com>
8524
8525         PR c/35738
8526         * c-parser.c (c_parser_omp_atomic): Call
8527         default_function_array_conversion on the RHS.
8528
8529         PR middle-end/35818
8530         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
8531         call is_variable_sized if decl has incomplete type.
8532
8533 2008-04-03  H.J. Lu  <hongjiu.lu@intel.com>
8534
8535         * config/i386/i386-protos.h (ix86_aligned_p): Removed.
8536
8537 2008-04-03  Adam Nemet  <anemet@caviumnetworks.com>
8538
8539         * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
8540         iterators.
8541         (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
8542         (sgt<u>): Merge sgt and sgtu into new expander.
8543         (sgt, sgtu): Remove expanders.
8544         (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
8545         (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
8546         (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
8547         *sgtu_<mode>_mips16 into new pattern.
8548         (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
8549         (sge<u>): Merge sge and sgeu into new expander.
8550         (sge, sgeu): Remove expanders.
8551         (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
8552         new pattern.
8553         (*sge_<mode>, second *sge_<mode>): Remove patterns.
8554         (slt<u>): Merge slt and sltu into new expander.
8555         (slt, sltu): Remove expanders.
8556         (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
8557         (*slt_<mode>, *sltu_<mode>): Remove patterns.
8558         (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
8559         *sltu_<mode>_mips16 into new pattern.
8560         (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
8561         (sle<u>): Merge sle and sleu into new expander.
8562         (sle, sleu): Remove expanders.
8563         (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
8564         (*sle_<mode>, *sleu_<mode>): Remove patterns.
8565         (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
8566         *sleu_<mode>_mips16 into new pattern.
8567         (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
8568
8569 2008-04-03  Jan Hubicka  <jh@suse.cz>
8570
8571         PR tree-optimization/35795
8572         * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
8573         * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8574         * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8575         * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8576         * score/score3.c (score3_output_mi_thunk): Likewise.
8577         * score/score7.c (score7_output_mi_thunk): Likewise.
8578         * mips/mips.c (mips_output_mi_thunk): Likewise.
8579
8580 2008-04-03  Richard Guenther  <rguenther@suse.de>
8581
8582         * tree-vrp.c (extract_range_from_unary_expr): Handle all
8583         conversions.  Simplify code.
8584
8585 2008-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
8586
8587         * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
8588
8589 2008-04-03  Tom Tromey  <tromey@redhat.com>
8590             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8591
8592         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
8593         * config/bfin/t-bfin-linux (generated_files): Add
8594         linux-sysroot-suffix.h.
8595         * doc/install.texi (Prerequisites): Require make 3.80.
8596         * doc/sourcebuild.texi (Front End Directory): Document new
8597         variable.
8598         * Makefile.in (generated_files): New variable.
8599         (ALL_HOST_OBJS): New variable.
8600         ($(ALL_HOST_OBJS)): New target.
8601
8602 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
8603
8604         * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
8605         (remap_block): Call id->transform_lang_insert_block instead
8606         of langhook.
8607         (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
8608         Set id.transform_lang_insert_block to NULL.
8609         (clone_body): Move to cp/optimize.c
8610         * tree-inline.h (struct copy_body_data): Change
8611         transform_lang_insert_block to function pointer.
8612         (copy_generic_body, copy_decl_no_change): Export.
8613         * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
8614         * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
8615         (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
8616
8617         * c-tree.h (insert_block): Kill.
8618         * c-decl.c (insert_block): Kill.
8619
8620 2008-04-03  Paolo Bonzini  <bonzini@gnu.org>
8621
8622         * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8623         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
8624         * c-tree.h (c_push_function_context, c_pop_function_context): Remove
8625         argument.
8626         * c-decl.c (c_push_function_context, c_pop_function_context): Remove
8627         argument, call {push,pop}_function_context from here.
8628         * c-parser.c: Use c_{push,pop}_function_context.
8629
8630         * function.c (push_function_context_to): Move meat ...
8631         (push_function_context): ... here.  Simplify.
8632         * function.c (pop_function_context_from): Move meat ...
8633         (pop_function_context): ... here.  Simplify.
8634         * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
8635         leave_nested).
8636         * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
8637         LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
8638         (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
8639         * tree.h (push_function_context_to, pop_function_context_from): Remove.
8640
8641 2008-04-03  Ben Elliston  <bje@au.ibm.com>
8642
8643         * expmed.c (extract_force_align_mem_bit_field): Remove.
8644
8645 2008-04-03  Richard Guenther  <rguenther@suse.de>
8646
8647         PR middle-end/35800
8648         * expr.h (try_casesi): Adjust prototype.
8649         * expr.c (try_casesi): Take fallback label as extra parameter.
8650         Use that for gen_casesi if default_label is NULL.
8651         * stmt.c (expand_case): Pass fallback label to try_casesi,
8652         make sure to fill gaps with a fallback label if default_label
8653         is not present.
8654
8655 2008-04-03  Dominique d'Humieres <dominiq@lps.ens.fr>
8656
8657         PR target/35801
8658         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
8659
8660 2008-04-03  Ben Elliston  <bje@au.ibm.com>
8661
8662         * expmed.c (extract_split_bit_field): Remove if (0) code.
8663         * tree-ssa-structalias.c (do_sd_constraint): Likewise.
8664         (do_ds_constraint): Likewise.
8665
8666 2008-04-02  Joseph Myers  <joseph@codesourcery.com>
8667
8668         * doc/cppopts.texi (-dU): Document.
8669         * c-common.h (flag_dump_macros): Update comment.
8670         * c-opts.c (handle_OPT_d): Handle -dU.
8671         * c-ppoutput.c (macro_queue, define_queue, undef_queue,
8672         dump_queued_macros, cb_used_define, cb_used_undef): New.
8673         (init_pp_output): Handle -dU.
8674         (cb_line_change): Call dump_queued_macros.
8675         * toplev.c (decode_d_option): Accept -dU as preprocessor option.
8676
8677 2008-04-02  Anatoly Sokolov <aesok@post.ru>
8678
8679         * config/avr/predicates.md (io_address_operand): New predicate. 
8680         * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
8681         * config/avr/avr.c (avr_io_address_p): Remove function.
8682         (out_movqi_r_mr): Use 'io_address_operand' predicate instead of 
8683         'avr_io_address_p' function.
8684         (out_movhi_r_mr): (Ditto.).
8685         (out_movqi_mr_r): (Ditto.).
8686         (out_movhi_mr_r): (Ditto.).
8687         (avr_address_cost): (Ditto.).
8688
8689 2008-04-02  Uros Bizjak  <ubizjak@gmail.com>
8690
8691         * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
8692         Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
8693         in 32bit mode when XMM registers are available to avoid store
8694         forwarding stalls.
8695         (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
8696         corresponding post-reload splitters.
8697
8698 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8699
8700         * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
8701         and __builtin_ia32_shufpd.  Provide __builtin_ia32_roundsd and
8702         __builtin_ia32_roundss.
8703         (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
8704         __builtin_ia32_shufpd, __builtin_ia32_roundsd and
8705         __builtin_ia32_roundss.
8706         (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
8707         IX86_BUILTIN_SHUFPD here.
8708
8709 2008-04-02  H.J. Lu  <hongjiu.lu@intel.com>
8710
8711         * config/i386/i386.md (plogic): New.
8712         (plogicprefix): Likewise.
8713
8714         * config/i386/mmx.md (mmx_<code><mode>3): New.
8715         (mmx_and<mode>3): Removed.
8716         (mmx_ior<mode>3): Likewise.
8717         (mmx_xor<mode>3): Likewise.
8718
8719         * config/i386/sse.md (<code><mode>3): New.
8720         (*<code><mode>3): Likewise.
8721         (*<code><mode>3): Likewise.
8722         (<code><mode>3): Likewise.
8723         (*sse_<code><mode>3): Likewise.
8724         (*sse2_<code><mode>3): Likewise.
8725         (<code>tf3): Likewise.
8726         (*<code>tf3): Likewise.
8727         (and<mode>3): Likewise.
8728         (*and<mode>3): Likewise.
8729         (ior<mode>3): Removed.
8730         (*ior<mode>3): Likewise.
8731         (xor<mode>3): Likewise.
8732         (*xor<mode>3): Likewise.
8733         (*and<mode>3): Likewise.
8734         (*ior<mode>3): Likewise.
8735         (*xor<mode>3): Likewise.
8736         (and<mode>3): Likewise.
8737         (*sse_and<mode>3): Likewise.
8738         (*sse2_and<mode>3): Likewise.
8739         (andtf3): Likewise.
8740         (*andtf3): Likewise.
8741         (ior<mode>3): Likewise.
8742         (*sse_ior<mode>3): Likewise.
8743         (*sse2_ior<mode>3): Likewise.
8744         (iortf3): Likewise.
8745         (*iortf3): Likewise.
8746         (xor<mode>3): Likewise.
8747         (*sse_xor<mode>3): Likewise.
8748         (*sse2_xor<mode>3): Likewise.
8749         (xortf3): Likewise.
8750         (*xortf3): Likewise.
8751
8752 2008-04-02  Richard Guenther  <rguenther@suse.de>
8753
8754         PR tree-optimization/14495
8755         PR tree-optimization/34793
8756         * tree-vrp.c (struct switch_update): New structure.
8757         (to_remove_edges, to_update_switch_stmts): New VECs.
8758         (simplify_switch_using_ranges): New function.  Remove not taken
8759         case labels and edges.
8760         (simplify_stmt_using_ranges): Call it.
8761         (identify_jump_threads): Mark edges we have queued for removal
8762         so we don't thread them.
8763         (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
8764         case label vector.
8765         * tree-cfg.c (group_case_labels): Deal with missing default label.
8766         (tree_verify_flow_info): Allow missing default label.
8767         * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
8768         (emit_case_nodes): Likewise.
8769         (expand_case): Do not rely on the default label to be present.
8770         * expr.c (try_casesi): Deal with NULL default_label.
8771         (do_tablejump): Likewise.
8772
8773 2008-04-02  Richard Guenther  <rguenther@suse.de>
8774
8775         PR tree-optimization/14495
8776         * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
8777         SWITCH_EXPR here ...
8778         (vrp_visit_switch_stmt): ... but here (new function).
8779         (find_case_label_index): New helper function.
8780         (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
8781
8782 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8783
8784         * fwprop.c: Fix ISO-C99ism.
8785
8786 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8787
8788         PR bootstrap/35752
8789         * Makefile.in (objdir): Set it here.
8790         * configure.ac: Not here.  Find dynamic linker characteristics.
8791         * exec-tool.in: Use them.
8792         * aclocal.m4: Regenerate.
8793         * configure: Regenerate.
8794
8795 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8796
8797         * expr.c (expand_var): Delete it.
8798         * expr.h (expand_var): Delete prototype.
8799         * function.c (expand_function_start): Use expand_decl instead.
8800         * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
8801         langhook.
8802
8803 2008-04-02  Andy Hutchinson <hutchinsonamdy@aim.com>
8804
8805         PR rtl-optimization/35542
8806         * fwprop.c (forward_propagate_and_simplify): Replace
8807         loc_reg_mentioned_in_p with reg_mentioned_p.
8808
8809 2008-04-02  Paolo Bonzini  <bonzini@gnu.org>
8810
8811         PR rtl-optimization/35281
8812         * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
8813         (propagate_rtx_1): Handle PR_HANDLE_MEM.
8814         (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
8815         (varying_mem_p): Move above propagate_rtx.
8816         (all_uses_available_at): Do not check MEMs.
8817
8818 2008-04-02  Rafael Espindola  <espindola@google.com>
8819
8820         * tree-vrp.c (extract_code_and_val_from_cond): Remove.
8821         (register_edge_assert_for_2): Split the cond argument.
8822         (register_edge_assert_for_1): Adjust for the change in
8823         register_edge_assert_for_2.
8824         (register_edge_assert_for): Split the cond argument.
8825         (find_switch_asserts): Adjust for the change in
8826         register_edge_assert_for.
8827
8828 2008-04-02  Kai Tietz  <kai.tietz@onevision.com>
8829
8830         * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
8831         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
8832         offsets for 64-bit mingw.
8833         * config/i386/i386.c (ix86_pass_by_reference): Correct calling
8834         abi for x86_64-pc-mingw.
8835
8836 2008-04-02  Richard Guenther  <rguenther@suse.de>
8837
8838         * tree-vrp.c (extract_range_from_assert): Make sure to not
8839         produce range min/max with TREE_OVERFOW set.
8840         If merging a anti-range and a range keep the anti-range if
8841         the range covers all values of the type.
8842         (register_edge_assert_for_2): Only allow sign-changing
8843         conversions in detecting canonical range checks.  Also
8844         register an assert for the unsigned name if useful.
8845
8846         PR tree-optimization/35787
8847         * tree-vrp.c (vrp_val_max): New function.
8848         (vrp_val_min): Likewise.
8849         (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
8850         (vrp_val_is_min): Likewise.
8851         (supports_overflow_infinity): Use vrp_val_{min,max}.
8852         (negative_overflow_infinity): Likewise.
8853         (positive_overflow_infinity): Likewise.
8854         (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
8855         (is_positive_overflow_infinity): Likewise.
8856         (is_overflow_infinity): Likewise.
8857         (avoid_overflow_infinity): Use vrp_val_{min,max} and
8858         vrp_val_is_{min,max}.
8859         (set_and_canonicalize_value_range): Canonicalize anti-ranges
8860         to ranges if possible.  Avoid empty ranges.
8861
8862 2008-04-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8863
8864         PR middle-end/35705
8865         * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
8866         the expression is a function address.
8867
8868 2008-04-01  George Helffrich  <george@gcc.gnu.org>
8869
8870         PR fortran/35154, fortran/23057
8871         * dbxout.c: Emit .stabs debug info for Fortran COMMON block
8872         variables as base symbol name + offset using N_BCOMM/N_ECOMM.
8873         (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
8874         (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
8875         in common.
8876         (dbxout_syms): Check for COMMON-based symbol and wrap in
8877         N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
8878         in bracket for efficiency.
8879
8880         * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
8881         using DW_TAG_common_block + member offset.
8882         (add_pubname_string): New function.
8883         (dw_expand_expr): New function to find block name and offset for
8884         COMMON var.
8885         (common_check): New function to check whether symbol in Fortran COMMON.
8886         (gen_variable_die): If COMMON, use DW_TAG_common_block.
8887
8888 2008-04-01  Volker Reichelt  <v.reichelt@netcologne.de>
8889
8890         PR c/35436
8891         * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
8892
8893 2008-04-02  Ben Elliston  <bje@au.ibm.com>
8894
8895         * config/v850/v850.md (casesi): Remove if (0) code.
8896         * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8897         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
8898
8899 2008-04-01  Uros Bizjak  <ubizjak@gmail.com>
8900
8901         * config/i386/i386.md (rex64suffix): New mode attribute.
8902         (floathi<mode>2): Disable expander for SSE math.
8903         (*floathi<mode>2_1): New insn insn_and_split pattern.
8904         (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
8905         corresponding post-reload splitters.
8906         (*floathi<mode>2_i387): New macroized insn pattern.
8907         (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
8908         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
8909         insn_and_split pattern.
8910         (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
8911         New macroized instruction patterns and corresponding post-reload
8912         splitters.
8913         (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
8914         and corresponding post-reload splitters.
8915         (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
8916         New macroized instruction patterns.
8917         (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
8918         macroized instruction patterns and corresponding post-reload splitters.
8919         (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
8920         corresponding post-reload splitters.
8921         (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
8922         New macroized instruction patterns.
8923         (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
8924         corresponding post-reload splitters.
8925         (*floatsi<mode>2_i387): New macroized instruction patterns.
8926
8927 2008-04-01  H.J. Lu  <hongjiu.lu@intel.com>
8928
8929         * config/i386/i386.md (smaxmin): New.
8930         (umaxmin): Likewise.
8931         (maxminiprefix): Likewise.
8932         (maxminfprefix): Likewise.
8933         (<code><mode>3): Likewise.
8934         (smin<mode>3): Removed.
8935         (smax<mode>3): Likewise.
8936
8937         * config/i386/mmx.md (mmx_<code>v2sf3): New.
8938         (mmx_<code>v4hi3): Likewise.
8939         (mmx_<code>v8qi3): Likewise.
8940         (mmx_smaxv2sf3): Removed.
8941         (mmx_sminv2sf3): Likewise.
8942         (mmx_umaxv8qi3): Likewise.
8943         (mmx_smaxv4hi3): Likewise.
8944         (mmx_uminv8qi3): Likewise.
8945         (mmx_sminv4hi3): Likewise.
8946
8947         * config/i386/sse.md (<addsub><mode>3): New.
8948         (*<addsub><mode>3): Likewise.
8949         (<sse>_vm<addsub><mode>3): Likewise.
8950         (<maxmin><mode>3): Likewise.
8951         (*<maxmin><mode>3_finite): Likewise.
8952         (*<maxmin><mode>3): Likewise.
8953         (<sse>_vm<maxmin><mode>3): Likewise.
8954         (sse3_h<addsub>v4sf3): Likewise.
8955         (sse3_h<addsub>v2df3): Likewise.
8956         (<maxmin>v16qi3): Likewise.
8957         (*<maxmin>v16qi3): Likewise.
8958         (<maxmin>v8hi3): Likewise.
8959         (*<maxmin>v8hi3): Likewise.
8960         (*sse4_1_<maxmin><mode>3): Likewise.
8961         (*sse4_1_<maxmin><mode>3): Likewise.
8962         (add<mode>3): Removed.
8963         (*add<mode>3): Likewise.
8964         (<sse>_vmadd<mode>3): Likewise.
8965         (sub<mode>3): Likewise.
8966         (*sub<mode>3): Likewise.
8967         (<sse>_vmsub<mode>3): Likewise.
8968         (smin<mode>3): Likewise.
8969         (*smin<mode>3_finite): Likewise.
8970         (*smin<mode>3): Likewise.
8971         (<sse>_vmsmin<mode>3): Likewise.
8972         (smax<mode>3): Likewise.
8973         (*smax<mode>3_finite): Likewise.
8974         (*smax<mode>3): Likewise.
8975         (<sse>_vmsmax<mode>3): Likewise.
8976         (sse3_haddv4sf3): Likewise.
8977         (sse3_haddv2df3): Likewise.
8978         (sse3_hsubv4sf3): Likewise.
8979         (sse3_hsubv2df3): Likewise.
8980         (umaxv16qi3): Likewise.
8981         (*umaxv16qi3): Likewise.
8982         (smaxv8hi3): Likewise.
8983         (*smaxv8hi3): Likewise.
8984         (*sse4_1_smax<mode>3): Likewise.
8985         (*sse4_1_umax<mode>3): Likewise.
8986         (uminv16qi3): Likewise.
8987         (*uminv16qi3): Likewise.
8988         (sminv8hi3): Likewise.
8989         (*sminv8hi3): Likewise.
8990         (*sse4_1_smin<mode>3): Likewise.
8991         (*sse4_1_umin<mode>3): Likewise.
8992
8993 2008-04-01  Rafael Espindola  <espindola@google.com>
8994
8995         * tree-cfg.c (verify_expr): remove in_phi.
8996         (verify_stmt): Don't call walk_tree with verify_expr. Use
8997         is_gimple_min_invariant instead of is_gimple_val.
8998
8999 2008-04-01  Joseph Myers  <joseph@codesourcery.com>
9000
9001         * doc/include/gpl_v3.texi: Update for manpage generation.
9002         * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
9003         gpl.texi.
9004         * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
9005         * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
9006         gpl_v3.texi instead of gpl.texi.
9007         (gpl.pod): New.
9008
9009 2008-04-01  Jakub Jelinek  <jakub@redhat.com>
9010
9011         PR pch/13675
9012         * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
9013
9014 2008-04-01  Rafael Espindola  <espindola@google.com>
9015
9016         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
9017         (extract_code_and_val_from_cond): Use
9018         extract_code_and_val_from_cond_with_ops.
9019
9020 2008-04-01  Jan Hubicka  <jh@suse.cz>
9021
9022         * function.c (free_after_compilation): Free epilogue_delay_list.
9023         (prepare_function_start): Assert that previous compilation was freed.
9024
9025 2008-04-01  Jan Hubicka  <jh@suse.cz>
9026             Jim Wilson  <wilson@tuliptree.org>
9027             Andreas Tobler <andreast@gcc.gnu.org>
9028
9029         PR middle-end/35781
9030         * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
9031         rtl.emit instead cfun->emit.
9032         * sparc/sparc.h (INIT_EXPANDERS): Likewise.
9033         * ia64/ia64.h (INIT_EXPANDERS): Likewise.
9034
9035 2008-04-01  Ben Elliston  <bje@au.ibm.com>
9036
9037         * doc/c-tree.texi (Function Basics): Fix grammatical error.
9038
9039 2008-03-31  Seongbae Park <seongbae.park@gmail.com>
9040
9041         * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
9042         New options
9043         (fprofile-use): Add var flag_profile_use
9044         * coverage.c (coverage_begin_output): Do not open a gcno file for
9045         output only if -ftest-coverage is set.
9046         Do not add getpwd() to gcda file path.
9047         (build_gcov_info): Check the new flag
9048         flag_profile_datafile_relative_path.
9049         (coverage_init): Use profile_data_prefix.
9050         Read profile counter only if flag_profile_use is set.
9051         * opts.c (common_handle_option): New option fprofile-use=,
9052         fprofile-dir=, fprofile-generate=.
9053         * toplev.c (profile_data_prefix): New variable definition.
9054         * toplev.h (profile_data_prefix): New declaration.
9055         * doc/invoke.tex (Option Summary, Optimization Options):
9056         Add new options.
9057
9058 2008-03-31  James E. Wilson  <wilson@tuliptree.org>
9059
9060         * varasm.c (output_constant_pool_1): In LABEL_REF check,
9061         use tmp consistently.
9062
9063         PR target/35695
9064         * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
9065         * config/ia64/ia64.c (rtx_needs_barrier): Handle
9066         UNSPEC_FR_RECIP_APPROX_RES.
9067         * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
9068
9069 2008-03-31  Volker Reichelt  <v.reichelt@netcologne.de>
9070
9071         PR c/35750
9072         * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
9073
9074 2008-03-31  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9075
9076         PR middle-end/30186
9077         * fold-const.c (fold_indirect_ref_1): Support accessing non first
9078         element of the vector via a pointer.
9079
9080 2008-03-31  Ian Lance Taylor  <iant@google.com>
9081
9082         * tlink.c (scan_linker_output): Look for symbol name in single quotes.
9083
9084 2008-03-31  Jan Hubicka  <jh@suse.cz>
9085
9086         * builtins.c (expand_builtin_setjmp_receiver): Update call of
9087         get_arg_pointer_save_area.
9088         * expr.c (init_expr): Just clear out rtl.expr.
9089         * function.c (free_after_compilation): Clear out whole RTL structure.
9090         (get_func_frame_size): Merge into ...
9091         (get_frame_size): ... this one.
9092         (assign_stack_local_1): Merge into ...
9093         (assign_stack_local): ... this one.
9094         (expand_function_end): Update call of get_arg_pointer_save_area.
9095         (get_art_pointer_save_area): Remove cfun argument.
9096         * function.h (emit_status): regno_pointer_align does not need length
9097         attribute. Move x_regno_reg_rtx to ...
9098         (regno_reg_rtx): ... new global array.
9099         (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
9100         (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
9101         apply_args_value, forced_labels, stack_pointer_delta):
9102         Update accestors.
9103         (struct varasm_status): Move here from varasm.c
9104         (struct rtl_data): New. Move here some fields from struct function.
9105         (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
9106         frame_offset, stack_check_probe_note, arg_pointer_save_area,
9107         used_temp_slots avail_temp_slots, temp_slot_level,
9108         nonlocal_goto_handler_labels): Update accesstors.
9109         (rtl): New global variable.
9110         (struct function): Move some fileds to rtl_data.
9111         (get_arg_pointer_save_area): Update prototype.
9112         * emit-rtl.c (rtl): Declare.
9113         (regno_reg_rtx): Declare.
9114         (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
9115         Update.
9116         (gen_reg_rtx): Update.
9117         (init_virtual_regs): Do not tate emit_status argument.
9118         (init_emit): Do not allocate emit.
9119         * varasm.c (varasm_statuc): Move to function.h.
9120         (n_deferred_constatns): Update accestor.
9121         (init_varasm_status): Do not allocate varasm_status.
9122         (force_const_mem, get_pool_size, output_constant_pool): Update.
9123         * stmt.c (force_label_rtx): Do not use x_ prefixes.
9124         (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
9125
9126 2008-03-31  Zdenek Dvorak  <ook@ucw.cz>
9127
9128         PR rtl-optimization/35729
9129         * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
9130         references.
9131
9132 2008-03-31  H.J. Lu  <hongjiu.lu@intel.com>
9133
9134         PR target/32000
9135         * config/i386/i386.md (*movti_internal): Emit unaligned SSE
9136         load/store if memory is unaligned.
9137         (*movti_rex64): Likewise.
9138
9139         * config/i386/predicates.md (misaligned_operand): New.
9140
9141 2008-03-31  Andrew Pinski  <pinskia@gmail.com>
9142
9143         PR tree-opt/35431
9144         * tree-ssa-phiopt.c (conditional_replacement): Return early for
9145         complex types.
9146
9147 2008-03-31  Jan Beulich  <jbeulich@novell.com>
9148
9149         * config/ia64/constraints.md: Add 'j' constraint.
9150         * config/ia64/ia64.md (movsi_internal): Add addp4 case.
9151         (movdi_internal): Likewise.
9152
9153 2008-03-30  Volker Reichelt  <v.reichelt@netcologne.de>
9154
9155         PR c/35748
9156         * c-typeck.c (build_c_cast): Skip invalid fields in unions.
9157
9158 2008-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9159
9160         PR target/35757
9161         * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
9162         proper error message for the third argument on blendpd and
9163         blendps.
9164
9165         * config/i386/sse.md (blendbits): New.
9166         (sse4_1_blendp<ssemodesuffixf2c>): Use it.
9167
9168 2008-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9169
9170         * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
9171
9172 2008-03-30  Richard Guenther  <rguenther@suse.de>
9173
9174         PR middle-end/31023
9175         * fold-const.c (fold_sign_changed_comparison): Do leave
9176         conversions to base-types alone.
9177
9178 2008-03-29  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9179
9180         * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
9181         the link register if one altivec register is be saved.
9182
9183 2008-03-30  Ben Elliston  <bje@au.ibm.com>
9184
9185         * final.c (final_scan_insn): Remove if (0) code.
9186
9187 2008-03-28  Volker Reichelt  <v.reichelt@netcologne.de>
9188
9189         * c-parser.c (c_parser_next_token_is_keyword): Simplify.
9190
9191 2008-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9192
9193         * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
9194         of V4SFmode to ix86_binary_operator_ok.
9195
9196 2008-03-28  Uros Bizjak  <ubizjak@gmail.com>
9197
9198         * config/i386/i386.c (override_options): Initialize
9199         ix86_veclib_handler to ix86_veclibabi_svml when
9200         -mveclibabi=svml is used.
9201         (ix86_veclibabi_svml): New function for SVML ABI style
9202         vectorization support.
9203         * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
9204
9205 2008-03-28  Rafael Espindola  <espindola@google.com>
9206
9207         * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
9208         (tree_binary_nonnegative_warnv_p): Make it public.
9209         (tree_single_nonnegative_warnv_p): Make it public.
9210         (tree_invalid_nonnegative_warnv_p): Make it public.
9211         (tree_unary_nonzero_warnv_p): Make it public.
9212         (tree_binary_nonzero_warnv_p): Make it public
9213         (tree_single_nonzero_warnv_p): Make it public.
9214         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
9215         (extract_range_from_binary_expr): Split the expr argument.
9216         (extract_range_from_unary_expr): Split the expr argument.
9217         (extract_range_from_comparison): Split the expr argument.
9218         (extract_range_from_expr): Use the new aux functions.
9219         (vrp_evaluate_conditional_warnv): Use
9220         vrp_evaluate_conditional_warnv_with_ops.
9221         * tree.h (tree_unary_nonzero_warnv_p): Declare.
9222         (tree_binary_nonzero_warnv_p): Declare.
9223         (tree_single_nonzero_warnv_p): Declare.
9224         (tree_expr_nonzero_warnv_p): Declare.
9225         (tree_unary_nonnegative_warnv_p): Declare.
9226         (tree_binary_nonnegative_warnv_p): Declare.
9227         (tree_single_nonnegative_warnv_p): Declare.
9228         (tree_invalid_nonnegative_warnv_p): Declare.
9229
9230 2008-03-28  Richard Guenther  <rguenther@suse.de>
9231
9232         PR tree-optimization/30317
9233         PR tree-optimization/30911
9234         PR tree-optimization/34793
9235         * tree-vrp.c (set_and_canonicalize_value_range): New function.
9236         (struct assert_locus_d): New member EXPR.
9237         (register_new_assert_for): Add EXPR parameter to support
9238         ASSERT_EXPR <name, expr OP limit>.
9239         (register_edge_assert_for_1): Adjust callers.
9240         (find_assert_locations): Likewise.
9241         (process_assert_insertions_for): Build condition from expression.
9242         (extract_range_from_assert): Handle ASSERT_EXPRs
9243         of the form ASSERT_EXPR <name, expr OP limit>.
9244         (register_edge_assert_for_2): New helper registering
9245         asserts for comparisons.  Recognize range tests of the form
9246         (unsigned)i - CST1 OP CST2.
9247         (register_edge_assert_for_1): Use it.
9248         (register_edge_assert_for): Likewise.
9249         (needs_overflow_infinity): Integer sub-types
9250         do not need overflow infinities.
9251         (vrp_val_is_max): The extreme values of integer sub-types
9252         are those of the base type.
9253         (vrp_val_is_min): Likewise.
9254         * tree.def (ASSERT_EXPR): Document extra allowed conditional
9255         expressions.
9256
9257 2008-03-28  Nick Clifton  <nickc@redhat.com>
9258
9259         PR target/31110
9260         * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
9261         Return GENERAL_REGS for stack adjustment reloads.
9262
9263 2008-03-28  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9264
9265         PR target/31334
9266         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
9267         const_vector when all the vectors are constant.
9268
9269 2008-03-27  Bob Wilson  <bob.wilson@acm.org>
9270
9271         * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
9272         comparisons.
9273         * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
9274         (any_scc_sf): Add uneq, unlt, unle and unordered operators.
9275         (scc_sf): New.
9276         (s<code>_sf): Use new scc_sf attribute for opcode names.
9277
9278 2008-03-27  Tom Tromey  <tromey@redhat.com>
9279
9280         * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
9281         configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
9282         config/spu/t-spu-elf, config/i386/t-interix,
9283         config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
9284         config/i386/x-darwin, config/i386/x-mingw32,
9285         config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
9286         config/sh/t-sh, config/sh/t-symbian, config/x-linux,
9287         config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
9288         config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
9289         config/rs6000/x-rs6000, config/rs6000/x-darwin64,
9290         config/rs6000/x-darwin, config/rs6000/t-rs6000,
9291         config/score/t-score-elf, config/arm/t-strongarm-pe,
9292         config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
9293         config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
9294         Revert automatic dependency patch.
9295
9296 2008-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9297
9298         PR target/35657
9299         * config/i386/i386.c (ix86_function_arg_boundary): Align
9300         decimal floating point to its natural boundary.
9301
9302 2008-03-27  Richard Guenther  <rguenther@suse.de>
9303
9304         PR middle-end/35716
9305         * fold-const.c (fold_comparison): Restrict distinct decl
9306         comparison folding to VAR_DECLs and PARM_DECLs.  Do not
9307         solely rely on operand_equal_p.
9308
9309 2008-03-27  Richard Guenther  <rguenther@suse.de>
9310
9311         PR c/32511
9312         * c-common.c (handle_weak_attribute): Reject combination of
9313         weak and inline.
9314
9315 2008-03-27  Richard Guenther  <rguenther@suse.de>
9316
9317         PR tree-optimization/32810
9318         * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
9319         conversions from DECL_INITIAL.
9320         (fold_const_aggregate_ref): Likewise from constructor elements.
9321
9322 2008-03-27  Zdenek Dvorak  <ook@ucw.cz>
9323
9324         * tree-affine.h (aff_combination_expand): Declare.
9325         (get_inner_reference_aff): Likewise.
9326         * tree-affine.c (aff_combination_expand): Split out from
9327         tree_to_aff_combination_expand.
9328         (get_inner_reference_aff): New function.
9329         * tree-parloops.c (loop_parallel_p): Free vectorizer info.
9330         * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
9331         (struct lim_aux_data): sm_done field removed.
9332         (mem_ref_loc_p, mem_ref_locs_p): New types.
9333         (struct mem_ref): Added id, stored, accesses_in_loop,
9334         indep_loop, dep_loop, indep_ref, dep_ref fields.
9335         Removed is_stored, locs and next fields.
9336         (memory_accesses): New variable.
9337         (movement_possibility): Do not allow moving statements
9338         that store to memory.
9339         (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
9340         New functions.
9341         (determine_max_movement): For statements with memory references,
9342         find the outermost loop in that the reference is independent.
9343         (move_computations_stmt): Mark the virtual operands for renaming.
9344         (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
9345         gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
9346         vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
9347         add_vop_ref_mapping, create_vop_ref_mapping_loop,
9348         create_vop_ref_mapping, analyze_memory_references,
9349         cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
9350         get_all_locs_in_loop, ref_always_accessed_p,
9351         refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
9352         ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
9353         store_motion_loop, store_motion): New functions.
9354         (struct vop_to_refs_elt): New type.
9355         (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
9356         memref_hash, memref_eq, hoist_memory_references): Rewritten.
9357         (schedule_sm): Replaced by...
9358         (execute_sm): ... this.
9359         (determine_lsm_ref, hoist_memory_references,
9360         loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
9361         find_more_ref_vops, free_mem_ref, free_mem_refs,
9362         determine_lsm_loop, determine_lsm): Removed.
9363         (tree_ssa_lim_finalize): Free data structures used by store motion.
9364         (tree_ssa_lim): Call analyze_memory_references.  Use
9365         store_motion instead of determine_lsm.
9366
9367 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
9368
9369         * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
9370         rename tmake_file to m68hc11/t-m68hc11.
9371         (mcore): Set inhibit_libc to true.
9372         * config.host (alpha*-dec-*vms*): Set extra_programs.
9373         (interix3*): Don't use host_xmake_file.
9374         * configure.ac: Let config.gcc override inhibit_libc.
9375         * configure: Regenerate.
9376
9377         * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
9378         * config/t-openbsd-thread: Remove commented out lines.
9379         
9380         * config/x-interix: Remove.
9381
9382         * config/m68hc11/t-m68hc11-gas: Rename to...
9383         * config/m68hc11/t-m68hc11: ... this.  Remove T_CPPFLAGS.
9384
9385         * config/mcore/t-mcore: Remove T_CFLAGS.
9386         * config/mcore/t-mcore-pe: Likewise.
9387
9388 2008-03-27  Paolo Bonzini  <bonzini@gnu.org>
9389
9390         * configure.ac: Replace custom __GNU_SOURCE test with
9391         AC_USE_SYSTEM_EXTENSIONS.  Move it earlier.
9392         * aclocal.m4: Regenerate.
9393         * configure: Regenerate.
9394         * config.in: Regenerate.
9395
9396 2008-03-27  Richard Guenther  <rguenther@suse.de>
9397
9398         * fold-const.c (target.h): Include.
9399         (fold_comparison): Fold comparison of addresses of decls
9400         that bind locally or of constants.  Consolidate address folding code.
9401         * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
9402         results from fold_binary_to_constant.
9403         (compare_values_warnv): Likewise.
9404
9405 2008-03-27  Andrew Pinski  <pinskia@gmail.com>
9406
9407         PR middle-end/35429
9408         * fold-const.c (fold_truthop): Check for integeral types when folding
9409         a == 0 && b == 0 and a != 0 || b != 0 .
9410
9411 2008-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9412
9413         * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
9414
9415 2008-03-26  Andreas Schwab  <schwab@suse.de>
9416
9417         * doc/invoke.texi: Fix use of @item vs. @itemx.
9418
9419 2008-03-26  Tom Tromey  <tromey@redhat.com>
9420
9421         * Makefile.in (build/gensupport.o, build/print-rtl.o,
9422         build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
9423         build/genattrtab.o, build/genautomata.o, build/gencheck.o,
9424         build/gencodes.o, build/genconditions.o, build/genconfig.o,
9425         build/genconstants.o, build/genemit.o, build/genextract.o,
9426         build/genflags.o, build/genmddeps.o, build/genopinit.o,
9427         build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
9428         options.h.
9429
9430 2008-03-26  Richard Guenther  <rguenther@suse.de>
9431
9432         Revert
9433         2008-03-26  Richard Guenther  <rguenther@suse.de>
9434
9435         * fold-const.c (target.h): Include.
9436         (fold_comparison): Fold comparison of addresses of two decls
9437         that bind locally.  Consolidate address folding code.
9438
9439 2008-03-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9440
9441         * builtins.c (expand_builtin_pow, fold_builtin_cabs,
9442         fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
9443         fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
9444         dconstsqrt2, dconstthird, dconste and/or dconst10.
9445         * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
9446         * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
9447         dconstsqrt2, dconste): Delete.
9448         (init_emit_once): Likewise.  Simplify initializing dconstm1.
9449         Constify variable.
9450         * real.c (get_real_const): New.
9451         * real.h (dconst3, dconst10, dconstm2, dconstthird,
9452         dconstsqrt2, dconste): Delete.
9453         (real_value_const, get_real_const): New.
9454
9455 2008-03-26  H.J. Lu  <hongjiu.lu@intel.com>
9456
9457         * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
9458
9459         * config/i386/i386.c (ix86_function_arg_boundary): Check
9460         BIGGEST_ALIGNMENT instead of 128.
9461         (setup_incoming_varargs_64): Likewise.
9462
9463 2008-03-26  Tom Tromey  <tromey@redhat.com>
9464
9465         * Makefile.in (DEPFILES): Add missing '/'.
9466
9467 2008-03-26  Richard Guenther  <rguenther@suse.de>
9468
9469         * fold-const.c (target.h): Include.
9470         (fold_comparison): Fold comparison of addresses of two decls
9471         that bind locally.  Consolidate address folding code.
9472
9473 2008-03-26  Nick Clifton  <nickc@redhat.com>
9474
9475         PR target/31232
9476         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
9477         not allow INT+INT as a legitimate addressing mode.
9478
9479 2008-03-26  Richard Guenther  <rguenther@suse.de>
9480
9481         * tree-flow.h (widen_bitfield): Remove declaration.
9482         * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
9483         (widen_bitfield): Remove function.
9484         * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
9485         code.
9486
9487 2008-03-25  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9488
9489         PR target/31558
9490         * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
9491         error_mark_node's.
9492
9493 2008-03-25  Richard Sandiford  <rsandifo@nildram.co.uk>
9494
9495         PR rtl-optimization/35232
9496         * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
9497         (forget_old_reloads_1, forget_marked_reloads): Don't clear
9498         reg_reloaded_call_part_clobbered here.
9499         (reload_regs_reach_end_p): New function.
9500         (reload_reg_rtx_for_input): New variable.
9501         (reload_reg_rtx_for_output): Likewise.
9502         (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
9503         when reassigning a pseudo register.  Load reloadreg from 
9504         reload_reg_rtx_for_input, moving the mode and register
9505         calculation to...
9506         (do_input_reload): ...here.  Use the mode-adjusted reg_rtx
9507         instead of the original when deciding whether an input reload
9508         would be a no-op or whether an output reload can be deleted.
9509         (emit_output_reload_insns): Use the mode-adjusted reg_rtx
9510         when setting up new_spill_reg_store.  Load it from
9511         reload_reg_rtx_for_output, moving the mode and register
9512         calculation to...
9513         (do_output_reload): ...here.  Use the mode-adjusted reg_rtx
9514         instead of the original when deciding whether an output reload
9515         would be a no-op.  Do the same when modifying insn notes.
9516         Use rtx_equal_p instead of == to compare the registers.
9517         (inherit_piecemeal_p): Take a mode and two register numbers
9518         as argument.
9519         (emit_reload_insns): Clear new_spill_reg_store for every hard
9520         register in the reload register.  Remove spill registers
9521         from reg_reloaded_valid before considering whether to record
9522         inheritance information for them.  Use reload_reg_rtx_for_output
9523         instead of reg_rtx when recording output reloads.  Use
9524         reload_reg_rtx_for_input instead of reg_rtx when recording
9525         input reloads.  Set or clear reg_reloaded_call_part_clobbered
9526         at the same time as setting reg_reloaded_valid.
9527         (delete_output_reload): Add a new_reload_reg parameter and use it
9528         instead of rld[j].reg_rtx.
9529         (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
9530         calls accordingly.
9531
9532 2008-03-25  Tom Tromey  <tromey@redhat.com>
9533
9534         * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
9535         (build/genattr.o): Likewise.
9536         (build/genattrtab.o): Likewise.
9537         (build/gencodes.o): Likewise.
9538         (build/genconfig.o): Likewise.
9539         (build/genconstants.o): Likewise.
9540         (build/genemit.o): Likewise.
9541         (build/genextract.o): Likewise.
9542         (build/genflags.o): Likewise.
9543
9544 2008-03-25  Bob Wilson  <bob.wilson@acm.org>
9545         
9546         * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
9547         instead of size_int for integer types.
9548         (xtensa_gimplify_va_arg_expr): Likewise.  Convert index to sizetype
9549         to match type of MINUS_EXPR.
9550         
9551 2008-03-25  Tom Tromey  <tromey@redhat.com>
9552
9553         * configure: Rebuilt.
9554         * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
9555         Makefile.
9556
9557 2008-03-25  Tom Tromey  <tromey@redhat.com>
9558
9559         * config/x-solaris (host-solaris.o): Update.
9560         * config/x-linux (host-linux.o): Update.
9561         * config/x-hpux (host-hpux.o): Update.
9562         * config/x-darwin (host-darwin.o): Update.
9563         * config/v850/t-v850e (v850-c.o): Update.
9564         * config/v850/t-v850 (v850-c.o): Update.
9565         * config/t-vxworks (vxworks.o): Update.
9566         * config/t-sol2 (sol2-c.o, sol2.o): Update.
9567         * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
9568         * config/spu/t-spu-elf (spu-c.o): Update.
9569         (spu.o): Remove.
9570         * config/sh/t-symbian (sh-c.o): Update.
9571         (symbian.o): Update.
9572         * config/sh/t-sh (sh-c.o): Update.
9573         * config/score/t-score-elf (score7.o, score3.o): Update.
9574         * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
9575         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
9576         * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
9577         * config/rs6000/t-rs6000 (rs6000-c.o): Update.
9578         (rs6000.o): Remove.
9579         * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
9580         * config/m32c/t-m32c (m32c-pragma.o): Update.
9581         * config/ia64/t-ia64 (ia64-c.o): Update.
9582         * config/i386/x-mingw32 (host-mingw32.o): Update.
9583         * config/i386/x-i386 (driver-i386.o): Update.
9584         * config/i386/x-darwin (host-i386-darwin.o): Update.
9585         * config/i386/x-cygwin (host-cygwin.o): Update.
9586         * config/i386/t-nwld (nwld.o): Update.
9587         * config/i386/t-netware (netware.o): Update.
9588         * config/i386/t-interix (winnt.o): Update.
9589         * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
9590         * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
9591         msformat-c.o): Update.
9592         * config/bfin/t-bfin-linux (generated_files): Add
9593         linux-sysroot-suffix.h.
9594         * config/arm/t-wince-pe (pe.o): Update.
9595         * config/arm/t-strongarm-pe (pe.o): Update.
9596         * config/arm/t-pe (pe.o): Update.
9597         * config/arm/t-arm (arm-c.o): Update.
9598         * doc/install.texi (Prerequisites): Require make 3.80.
9599         * Makefile.in: Remove .o targets.
9600         (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
9601         (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
9602         (simple_generated_h, simple_generated_c): Move earlier.
9603         (generated_files): New variable.
9604         (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
9605         TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
9606         BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
9607         ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
9608         REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
9609         CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
9610         CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
9611         INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
9612         PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
9613         TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
9614         DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
9615         VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
9616         (.c.o): Remove.
9617         (COMPILE.base, COMPILE): New variables.
9618         (%.o): New pattern rule.
9619         (ALL_HOST_OBJS): New variable.
9620         (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
9621         (dummy-checksum.o, cc1-checksum.o): Remove.
9622         (DRIVER_SHLIB): New variable.
9623         (DRIVER_DEFINES): Use it.
9624         (gencondmd.c): Move out of build/.
9625         (s-conditions): Update.
9626         (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
9627         (ALL_BUILD_OBJS): Likewise.
9628         (build/%.o): Use BUILDCOMPILE.
9629         (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
9630         build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
9631         build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
9632         build/gencheck.o, build/gencodes.o, build/genconditions.o,
9633         build/genconfig.o, build/genconstants.o, build/genemit.o,
9634         build/genextract.o, build/genflags.o, build/genmddeps.o,
9635         build/genopinit.o, build/genoutput.o, build/genpeep.o,
9636         build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
9637         build/gen-protos.o, build/scan.o, build/fix-header.o,
9638         build/scan-decls.o): Simplify.
9639         (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
9640         cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
9641         prefix.o, toplev.o): Reduce to variable setting.
9642         (libbackend.o): Use COMPILE.  Remove most dependencies.  Move later.
9643         ($(out_object_file), gcc-options.o): New targets.
9644         ($(ALL_HOST_OBJS)): New target.  Include dependency files.
9645         * configure: Rebuilt.
9646         * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
9647         * doc/sourcebuild.texi (Front End Directory): Document new variable.
9648
9649 2008-03-25  Douglas Gregor  <doug.gregor@gmail.com>
9650
9651         * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
9652         complain when we hit an error, return ERROR_MARK_NODE.
9653
9654 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
9655
9656         * config/sh/constraints.md (Pso, Psz): New constraints.
9657         * config/sh/sh.c (print_operand): Add %V and %W operand codes.
9658         * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
9659
9660 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
9661
9662         * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
9663         * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
9664
9665 2008-03-25  Naveen.H.S  <naveen.hs@kpitcummins.com>
9666
9667         * config/sh/sh.md (prefetch): Add condition for SH2A target.
9668         (prefetch_sh2a): New.   
9669
9670 2008-03-25  Jayant Sonar  <Jayant.sonar@kpitcummins.com>
9671             Naveen.H.S  <naveen.hs@kpitcummins.com>
9672
9673         * config/sh/constraints.md (I28): New constraint.
9674         * config/sh/sh.c (broken_move): Add support for movi20s.
9675         * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
9676
9677 2008-03-25  Anil Paranjape  <anil.paranjape@kpitcummins.com>
9678             Jayant Sonar  <Jayant.sonar@kpitcummins.com>
9679             Naveen.H.S  <naveen.hs@kpitcummins.com>
9680
9681         * config/sh/sh.c (SH_ATTRIBUTES): Define.
9682         (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
9683         (print_operand): Handle resbank in %@ operand code.
9684         (sh_encode_section_info): New.
9685         (push_regs): Add conditions for resbank.
9686         (sh_expand_epilogue): Likewise.
9687         (sh_insert_attributes): Likewise.
9688         (sh_attribute_table): Likewise.
9689         (sh_handle_resbank_handler_attribute): New.
9690         (sh2a_handle_function_vector_handler_attribute): New.
9691         (sh2a_is_function_vector_call): New.
9692         (sh2a_get_function_vector_number): New.
9693         (sh2a_function_vector_p): New.
9694         (sh_cfun_resbank_handler_p): New.
9695         * config/sh/sh.md (calli): Emit jsr/n if possible.
9696         (calli_tbr_rel): New.
9697         (calli_pcrel): Emit jsr/n if possible.
9698         (return_i): Emit rts/n if possible.
9699         (call_valuei_tbr_rel): New.
9700         (call_valuei_pcrel): Add condition for SH2A target.
9701         (call_value): Likewise.
9702         * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
9703         (sh2a_get_function_vector_number): Likewise.
9704         (sh2a_is_function_vector_call): Likewise.
9705         * doc/extend.texi: Document TBR relative addressing of SH2A.
9706         (resbank): Add description for SH2A.
9707
9708 2008-03-24  Richard Guenther  <rguenther@suse.de>
9709
9710         PR c/22371
9711         * gimplify.c (gimplify_modify_expr): For frontend type-correct
9712         pointer assignments change conversions according to middle-end rules.
9713         (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
9714         * configure.ac: Include type checking in yes.
9715         * configure: Regenerate.
9716
9717 2008-03-24  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
9718
9719         * diagnostic.c (diagnostic_count_diagnostic): Delete.
9720         (diagnostic_report_diagnostic): Update. Handle ICEs here.
9721         
9722 2008-03-24  Nathan Sidwell  <nathan@codesourcery.com>
9723
9724         * gthr-vxworks.h (UNUSED): Define.
9725
9726 2008-03-23  H.J. Lu  <hongjiu.lu@intel.com>
9727
9728         * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
9729
9730 2008-03-23  Zuxy Meng <zuxy.meng@gmail.com>
9731
9732         * doc/extend.texi (Function Attributes): Add missing comma in the
9733         example of the "alloc_size" attribute.
9734         
9735 2008-03-23  Uros Bizjak  <ubizjak@gmail.com>
9736
9737         Revert:
9738         2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9739
9740         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
9741         32bit host.
9742
9743         2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
9744
9745         PR target/35496
9746         * stor-layout.c (update_alignment_for_field): Set minimum alignment
9747         of the underlying type of a MS bitfield layout to the natural
9748         alignment of the type.
9749
9750         2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
9751
9752         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
9753         to their natural alignment to avoid store forwarding stalls.
9754
9755 2008-03-22  Richard Guenther  <rguenther@suse.de>
9756
9757         * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
9758         For PHI nodes verify the address is invariant.
9759         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
9760         (get_symbol_constant_value): Use is_gimple_min_invariant.
9761         (maybe_fold_stmt_indirect): Likewise.
9762
9763 2008-03-22  Richard Sandiford  <rsandifo@nildram.co.uk>
9764
9765         PR rtl-optimization/33927
9766         * Makefile.in (dse.o): Depend on $(TM_P_H).
9767         * expr.h (extract_low_bits): Declare.
9768         * expmed.c (extract_low_bits): New function.
9769         * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
9770         * dse.c: Include tm_p.h.
9771         (find_shift_sequence): Remove the read_reg argument and return the
9772         read value.  Emit the instructions instead of returning them.
9773         Iterate on new_mode rather than calculating it each time.
9774         Check MODES_TIEABLE_P.  Use simplify_gen_subreg to convert the
9775         source to NEW_MODE and extract_low_bits to convert the shifted
9776         value to READ_MODE.
9777         (replace_read): Allow the load and store to have different mode
9778         classes.  Use extract_low_bits when SHIFT == 0.  Create the shift
9779         or extraction instructions before trying the replacement.  Update
9780         dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
9781
9782 2008-03-22  Uros Bizjak  <ubizjak@gmail.com>
9783
9784         * config/i386/i386.c (assign_386_stack_local): Align DImode slots
9785         to their natural alignment to avoid store forwarding stalls.
9786
9787 2008-03-21  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9788
9789         PR target/27946
9790         * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
9791         encouraging but not allowing gprs for input;
9792         change the input constraint to !f#r.
9793         (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
9794         gprs for output;
9795         change the output constraint to !f#r.
9796
9797 2008-03-21  Uros Bizjak  <ubizjak@gmail.com>
9798
9799         PR target/13958
9800         * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
9801         corresponding post-reload splitters.
9802         ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
9803         when x87 FP math is selected.
9804         * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
9805         New function prototype.
9806         * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
9807         unreachable function to ease macroization of insn patterns.
9808
9809 2008-03-21  Martin Jambor  <mjambor@suse.cz>
9810
9811         * tree-data-ref.c (dump_data_dependence_relation): Avoid data
9812         reference dumps if ddr is NULL or dependence is unknown.
9813
9814 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9815
9816         * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
9817         unsigned extension into account.
9818         (ATOMIC_COMPARE_AND_SWAP): Likewise.
9819         (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
9820         Do computations on a scratch register.
9821
9822 2008-03-21  Richard Guenther  <rguenther@suse.de>
9823
9824         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9825         Use is_gimple_min_invariant instead of TREE_INVARIANT.
9826         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9827         * tree-ssa-dom.c (record_equality): Likewise.
9828         * tree-inline.c (copy_body_r): Likewise.
9829         * tree-ssa-pre.c (make_values_for_stmt): Remove test for
9830         TREE_INVARIANT.
9831
9832 2008-03-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9833
9834         * config/sh/sh.c (split_branches): Pass zero to redirect_jump
9835         as 'delete_unused' argument.
9836
9837 2008-03-20  Richard Guenther  <rguenther@suse.de>
9838
9839         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
9840         special casing of constant qualifiers.
9841         * tree-ssa.c (useless_type_conversion_p_1): Instead do not
9842         care about them in general.
9843         * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
9844         regardless of their type.
9845         (fold_stmt_r): Forcefully fold *& if we end up with that.
9846
9847 2008-03-20  Paul Brook  <paul@codesourcery.com>
9848
9849         * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
9850         * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
9851         linker flags.
9852         * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
9853         definition.
9854         (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
9855         * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
9856
9857 2008-03-20  Volker Reichelt  <v.reichelt@netcologne.de>
9858
9859         * common.opt (Wmudflap): New option.
9860         * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
9861         (mx_register_decls): Likewise.
9862         (mudflap_finish_file): Likewise.
9863         * doc/invoke.texi: Document -Wno-mudflap.
9864
9865 2008-03-20  Kai Tietz  <kai.tietz@onevision.com>
9866
9867         * c-format.c (replace_format_name_to_system_name): New.
9868         (cmp_attribs): New.
9869         (convert_format_name_to_system_name): New.
9870         (decode_format_attr): Add use of convert_format_name_to_system_name.
9871         (format_types_orig): Add gnu_ prefix to names.
9872         (check_format_info_main): Special treating of \0 escaped names for
9873         supporting multi-character format specifiers as I32, I64.
9874         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
9875         (gnu_target_overrides_format_attributes): New.
9876         * c-format.h: Add structure target_ovr_attr to hold
9877         system specific formatter names.
9878         * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
9879         msformat-c.o file to c_target_objs and cxx_target_objs.
9880         * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9881         (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
9882         (TARGET_N_FORMAT_TYPES): New.
9883         * config/i386/msformat-c.c: New.
9884         * config/i386/t-cygming: Add build rule for msformat-c.o.
9885         * doc/extend.texi: Add new format names gnu_* and ms_* and
9886         further details.
9887         * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
9888
9889 2008-03-20  Ira Rosen  <irar@il.ibm.com>
9890
9891         * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
9892         optimizations turned on under -O3.
9893         (ftree-vectorize): Add that the flag is turned on with -O3.
9894
9895 2008-03-20  Ben Elliston  <bje@au.ibm.com>
9896
9897         * regmove.c (try_auto_increment): Fix spelling error in comment.
9898         * final.c (final_scan_insn): Likewise.
9899
9900 2008-03-20  Uros Bizjak  <ubizjak@gmail.com>
9901
9902         PR target/14552
9903         * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
9904         allocator preferences for "y" and "r" class registers.
9905         ("*mov<mode>_internal"): Ditto.
9906         ("*movv2sf_internal_rex64"): Ditto.
9907         ("*movv2sf_internal"): Ditto.
9908
9909 2008-03-19  Michael Matz  <matz@suse.de>
9910
9911         PR middle-end/35616
9912         * calls.c (expand_call): Check overlap of arguments with call
9913         address for sibcalls.
9914
9915 2008-03-19  Uros Bizjak  <ubizjak@gmail.com>
9916
9917         PR target/35496
9918         * stor-layout.c (update_alignment_for_field): Set minimum alignment
9919         of the underlying type of a MS bitfield layout to the natural
9920         alignment of the type.
9921
9922 2008-03-19  Jan Hubicka  <jh@suse.cz>
9923
9924         PR other/35094
9925         * toplev.c (decode_d_option): Handle all CPP flags.
9926         * tree-vrp.c: Update tree_pass descriptors.
9927         * regrename.c: Update tree_pass descriptors.
9928         * fwprop.c: Update tree_pass descriptors.
9929         * doc/invoke.texi: Remove documentation of dropped -d? flags.
9930         * tree-into-ssa.c: Update tree_pass descriptors.
9931         * tree-dump.c: Update tree_pass descriptors.
9932         * tree-complex.c: Update tree_pass descriptors.
9933         * tree-dump.h: Update tree_pass descriptors.
9934         * see.c: Update tree_pass descriptors.
9935         * cgraphbuild.c: Update tree_pass descriptors.
9936         * tracer.c: Update tree_pass descriptors.
9937         * tree-loop-distribution.c: Update tree_pass descriptors.
9938         * cgraph.c: Update tree_pass descriptors.
9939         * postreload-gcse.c: Update tree_pass descriptors.
9940         * postreload.c: Update tree_pass descriptors.
9941         * tree-ssa-loop-ch.c: Update tree_pass descriptors.
9942         * tree-tailcall.c: Update tree_pass descriptors.
9943         * tree-pass.h (tree_opt_pass): Rename to ...
9944         (opt_pass) ... this one; add "type" field and remove letter field.
9945         (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
9946         (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
9947         all_lowering_passes): Update declaration.
9948         * ipa-cp.c: Update tree_pass descriptors.
9949         * final.c: Update tree_pass descriptors.
9950         * omp-low.c: Update tree_pass descriptors.
9951         * tree-ssa-dse.c: Update tree_pass descriptors.
9952         * ipa-reference.c: Update tree_pass descriptors.
9953         * tree-ssa-uncprop.c: Update tree_pass descriptors.
9954         * auto-inc-dec.c: Update tree_pass descriptors.
9955         * reorg.c: Update tree_pass descriptors.
9956         * cgraphunit.c: Update tree_pass descriptors.
9957         * tree-ssa-copyrename.c: Update tree_pass descriptors.
9958         * tree-ssa-ccp.c: Update tree_pass descriptors.
9959         * df-core.c: Update tree_pass descriptors.
9960         * mode-switching.c: Update tree_pass descriptors.
9961         * tree-nomudflap.c: Update tree_pass descriptors.
9962         * modulo-sched.c: Update tree_pass descriptors.
9963         * ipa-pure-const.c: Update tree_pass descriptors.
9964         * cse.c: Update tree_pass descriptors.
9965         * web.c: Update tree_pass descriptors.
9966         * tree-stdarg.c: Update tree_pass descriptors.
9967         * tree-ssa-math-opts.c: Update tree_pass descriptors.
9968         * tree-ssa-dom.c: Update tree_pass descriptors.
9969         * tree-nrv.c: Update tree_pass descriptors.
9970         * tree-ssa-alias.c: Update tree_pass descriptors.
9971         * loop-init.c: Update tree_pass descriptors.
9972         * gimple-low.c: Update tree_pass descriptors.
9973         * ipa-inline.c: Update tree_pass descriptors.
9974         * tree-ssa-sink.c: Update tree_pass descriptors.
9975         * global.c: Update tree_pass descriptors.
9976         * ifcvt.c: Update tree_pass descriptors.
9977         * jump.c: Update tree_pass descriptors.
9978         * predict.c: Update tree_pass descriptors.
9979         * tree-ssa-loop.c: Update tree_pass descriptors.
9980         * recog.c: Update tree_pass descriptors.
9981         * dse.c: Update tree_pass descriptors.
9982         * tree-ssa-ifcombine.c: Update tree_pass descriptors.
9983         * tree-eh.c: Update tree_pass descriptors.
9984         * regmove.c: Update tree_pass descriptors.
9985         * local-alloc.c
9986         * function.c: Update tree_pass descriptors.
9987         * tree-vectorizer.c: Update tree_pass descriptors.
9988         * gcse.c: Update tree_pass descriptors.
9989         * ipa-type-escape.c: Update tree_pass descriptors.
9990         * tree-if-conv.c: Update tree_pass descriptors.
9991         * init-regs.c: Update tree_pass descriptors.
9992         * ipa.c: Update tree_pass descriptors.
9993         * tree-ssa-phiopt.c: Update tree_pass descriptors.
9994         * rtl-factoring.c: Update tree_pass descriptors.
9995         * lower-subreg.c: Update tree_pass descriptors.
9996         * bt-load.c: Update tree_pass descriptors.
9997         * tree-dfa.c: Update tree_pass descriptors.
9998         * except.c: Update tree_pass descriptors.
9999         * emit-rtl.c: Update tree_pass descriptors.
10000         * cfgexpand.c: Update tree_pass descriptors.
10001         * tree-cfgcleanup.c: Update tree_pass descriptors.
10002         * cfgcleanup.c: Update tree_pass descriptors.
10003         * tree-ssa-pre.c: Update tree_pass descriptors.
10004         * tree-sra.c: Update tree_pass descriptors.
10005         * tree-mudflap.c: Update tree_pass descriptors.
10006         * tree-ssa-copy.c: Update tree_pass descriptors.
10007         * cfglayout.c: Update tree_pass descriptors.
10008         * tree-ssa-forwprop.c: Update tree_pass descriptors.
10009         * tree-ssa-dce.c: Update tree_pass descriptors.
10010         * tree-ssa.c: Update tree_pass descriptors.
10011         * regclass.c: Update tree_pass descriptors.
10012         * integrate.c: Update tree_pass descriptors.
10013         * tree-optimize.c: Update tree_pass descriptors.
10014         * tree-ssa-phiprop.c: Update tree_pass descriptors.
10015         * tree-object-size.c: Update tree_pass descriptors.
10016         * combine.c: Update tree_pass descriptors.
10017         * tree-outof-ssa.c: Update tree_pass descriptors.
10018         * bb-reorder.c: Update tree_pass descriptors.
10019         * stack-ptr-mod.c: Update tree_pass descriptors.
10020         * var-tracking.c: Update tree_pass descriptors.
10021         * tree-profile.c: Update tree_pass descriptors.
10022         * tree-vect-generic.c: Update tree_pass descriptors.
10023         * reg-stack.c: Update tree_pass descriptors.
10024         * sched-rgn.c: Update tree_pass descriptors.
10025         * tree-ssa-structalias.c: Update tree_pass descriptors.
10026         * tree-cfg.c: Update tree_pass descriptors.
10027         * passes.c (current_pass): Update declaration.
10028         (finish_optimization_passes): Update.
10029         (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
10030         (register_one_dump_file, register_dump_files_1, next_pass_1):
10031         Update arguments.
10032         (init_optimization_passes): Update handling of new types.
10033         (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
10034         * ipa-struct-reorg.c: Update tree_pass descriptors.
10035         * tree-ssa-reassoc.c: Update tree_pass descriptors.
10036         * combine-stack-adj.c: Update tree_pass descriptors.
10037         * cfgrtl.c: Update tree_pass descriptors.
10038         * dce.c: Update tree_pass descriptors.
10039         * tree-ssanames.c: Update tree_pass descriptors.
10040
10041 2008-03-19  Richard Guenther  <rguenther@suse.de>
10042
10043         PR middle-end/35609
10044         * tree-ssa.c (walk_data): New structure.
10045         (warn_uninitialized_var): If not always_executed warn with "maybe"
10046         instead of "is".
10047         (execute_early_warn_uninitialized): Compute post-dominators.
10048         Initialize always_executed before processing each basic block.
10049
10050 2008-03-18  Mikulas Patocka  <mikulas@artax.karlin.mff.cuni.cz>
10051
10052         PR target/35504
10053         * config/i386/i386.c (x86_this_parameter): Calculate correct location
10054         of "this" pointer when "regparm = N" or "fastcall" is in effect.
10055
10056 2008-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10057
10058         * doc/include/texinfo.tex: Update to version 2008-03-17.10.
10059
10060 2008-03-18  Paolo Bonzini  <bonzini@gnu.org>
10061
10062         * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
10063         is true.
10064         (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
10065         (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
10066         is true.  Add "&& !ignore" condition to reduce_bit_field.  Modify
10067         target after ignore has been set, and move there also the commputation
10068         of subtarget and original_target.
10069         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
10070         (LANG_HOOKS_INITIALIZER): Remove it.
10071         * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
10072
10073 2008-03-18  Richard Guenther  <rguenther@suse.de>
10074
10075         * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
10076         found an expression with constants, note that in the VN for the lhs.
10077         * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
10078         fold them to constants if possible.  Run cleanup_cfg if done so.
10079         (execute_pre): Return todo.
10080         (do_pre): Likewise.
10081         (execute_fre): Likewise.
10082         * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
10083         of constants.
10084         (get_prop_source_stmt): Look through pointer conversions.
10085
10086 2008-03-18  Jan Hubicka  <jh@suse.cz>
10087
10088         * tree-pretty-print.c: Include predict.h.
10089         (dump_generic_node): Dump predictor.
10090         * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
10091         * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
10092         * gimple-low.c (lower_stmt): Likewise.
10093         * expr.c (expand_expr_real): Likewise.
10094         * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
10095         them.
10096         (build_predict_expr, build_predict_expr): New.
10097         * predict.h (predictor_name, build_predict_expr): Update.
10098         * c-typeck.c (c_finish_bc_stmt): Add prediction.
10099         * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
10100         * predict.def (PRED_CONTINUE): Update hitrate.
10101         * tree.def (PREDICT_EXPR): Define.
10102         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
10103         do not handle BIND_EXPR.
10104         * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
10105         * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
10106         * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
10107         operands.
10108
10109 2008-03-18  Michael Matz  <matz@suse.de>
10110
10111         * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
10112
10113 2008-03-18  Richard Guenther  <rguenther@suse.de>
10114
10115         * tree-gimple.h (is_gimple_invariant_address): Declare.
10116         (is_gimple_constant): Likewise.
10117         * tree-gimple.c (is_gimple_constant): New function.
10118         (is_gimple_invariant_address): Likewise.
10119         (is_gimple_min_invariant): Implement in terms of is_gimple_constant
10120         and is_gimple_invariant_address.
10121         * tree-ssa-loop-niter.c (expand_simple_operations): Revert
10122         previous change.
10123         * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
10124         an addressable base.
10125
10126 2008-03-18  Jakub Jelinek  <jakub@redhat.com>
10127
10128         PR middle-end/35611
10129         * gimplify.c (gimplify_expr): Gimplify second operand of
10130         OMP_ATOMIC_LOAD.
10131
10132 2008-03-17  Richard Guenther  <rguenther@suse.de>
10133
10134         PR tree-optimization/19637
10135         * fold-const.c (fold_unary): Remove restrictions of removing
10136         intermediate pointer-conversions (P2)(P1)P0.
10137         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
10138         conversion to void pointer.
10139         (get_maxval_strlen): Handle addresses of the form &(*p)[0].
10140
10141 2008-03-16  James E. Wilson  <wilson@tuliptree.org>
10142
10143         PR debug/31510
10144         * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
10145         emulated thread local variables.
10146
10147 2008-03-16  Richard Guenther  <rguenther@suse.de>
10148
10149         PR middle-end/35607
10150         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10151         expand TREE_INVARIANT operations that are not gimple invariant.
10152
10153 2008-03-16  Hans-Peter Nilsson  <hp@axis.com>
10154
10155         * doc/extend.texi (Alignment): Say that the ABI controls
10156         the __alignof__ for non-strict-alignment targets rather
10157         than being a recommendation.
10158
10159 2008-03-15  Paul Brook  <paul@codesourcery.com>
10160
10161         * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
10162         annotations.
10163         (arm_output_fn_unwind): Mark functions that can not be unwound.
10164
10165 2008-03-15  Paul Brook  <paul@codesourcery.com>
10166
10167         * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
10168         extension instructions.
10169
10170 2008-03-15  Richard Guenther  <rguenther@suse.de>
10171
10172         * tree-ssa-ccp.c (ccp_fold): Also read from constant values
10173         and fold constant aggregate refs.
10174         (fold_const_aggregate_ref): Handle string constants
10175         and constructors in ARRAY_REFs.  Handle INDIRECT_REF.
10176         (evaluate_stmt): Simplify now that ccp_fold folds constant
10177         aggregate refs.
10178
10179 2008-03-15  Paul Brook  <paul@codesourcery.com>
10180
10181         * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
10182         (extzv): Use gen_extzv_t2.
10183         (insv_t2, insv_zero, extv, extzv_t2): New patterns.
10184
10185 2008-03-15  Richard Guenther  <rguenther@suse.de>
10186
10187         * tree-ssa-ccp.c (get_symbol_constant_value): Export.
10188         (fold_const_aggregate_ref): Likewise.
10189         (get_value): Return NULL if we don't have any values.
10190         (ccp_finalize): Set const_val to NULL after freeing it.
10191         * tree-flow.h (get_symbol_constant_value): Declare.
10192         (fold_const_aggregate_ref): Likewise.
10193         * tree-ssa-sccvn.c (try_to_simplify): Use them.
10194
10195 2008-03-15  Richard Guenther  <rguenther@suse.de>
10196
10197         PR middle-end/35593
10198         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
10199         to not produce negative array indices if not allowed.  Add
10200         parameter to indicate that.
10201         (maybe_fold_offset_to_component_ref): Allow negative array
10202         indices only for the first member of a structure.
10203         (maybe_fold_offset_to_reference): Allow negative array indices.
10204         (maybe_fold_stmt_addition): Likewise.
10205
10206 2008-03-15  Bjoern Haase  <bjoern.m.haase@web.de>
10207             Anatoly Sokolov <aesok@post.ru>
10208
10209         * config/avr/avr.c (avr_arch_types): Add avr6 entry.
10210         (avr_arch): Add ARCH_AVR6.
10211         (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
10212         (initial_elimination_offset): Initialize and use 'avr_pc_size' 
10213         instead of fixed value 2.
10214         (print_operand_address): Use gs() asm specifier instead of pm().
10215         (avr_assemble_integer): (Ditto.).
10216         (avr_output_addr_vec_elt): (Ditto.).
10217         (print_operand): Handle "!" code.
10218         * config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add 
10219         __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
10220         (AVR_HAVE_EIJMP_EICALL): Define.
10221         (AVR_3_BYTE_PC): Redefine.
10222         (AVR_2_BYTE_PC): (Ditto.).
10223         (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
10224         (LINK_SPEC): Add atmega2560 and atmega2561.
10225         (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561 
10226         (crtm2561.o).
10227         * config/avr/avr.md (call_insn): Use eicall instead of icall 
10228         for 3 byte PC devices.
10229         (call_value_insn): (Ditto.).
10230         (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
10231         (indirect_jump): Use only for for 2 byte PC devices.
10232         (*tablejump): (Ditto.).
10233         (*indirect_jump_avr6): Add insn.
10234         (*tablejump_rjmp): Don't use for 3 byte PC devices.
10235         * config/avr/libgcc.S (__prologue_saves__): Use eijmp 
10236         instead of ijmp for 3 byte PC devices.
10237         (__tablejump2__): (Ditto.).
10238         * config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
10239         (MULITLIB_DIRNAMES): (Ditto.). 
10240         (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
10241
10242 2008-03-15  Uros Bizjak  <ubizjak@gmail.com>
10243
10244         * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
10245         "sse2_umulsidi3".  Use V1DI mode for operand 0.
10246         ("mmx_psadbw"): Use V1DI mode for operand 0.
10247         * config/i386/i386-modes.def (V1SI): New vector mode.
10248         * config/i386/i386.c (struct builtin_description)
10249         [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
10250         (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
10251         (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
10252         (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
10253         v1di_ftype_v8qi_v8qi type.
10254         [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
10255
10256         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
10257         __builtin_ia32_pmuludq]: Fix the mode of return value.
10258
10259 2008-03-15  Richard Guenther  <rguenther@suse.de>
10260
10261         PR middle-end/35595
10262         * tree-ssa-pre.c (bitmap_find_leader): Handle expression
10263         being a PHI_NODE.
10264
10265 2008-03-14  Bob Wilson  <bob.wilson@acm.org>
10266         
10267         * doc/invoke.texi (Option Summary, Xtensa Options): Document
10268         -mserialize-volatile and -mno-serialize-volatile Xtensa options.
10269         * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
10270         unless TARGET_SERIALIZE_VOLATILE is enabled.
10271         * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
10272         * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
10273         * config/xtensa/xtensa.opt (mserialize_volatile): New option.
10274
10275 2008-03-14  Richard Guenther  <rguenther@suse.de>
10276
10277         PR tree-optimization/34172
10278         * tree-flow.h (refs_may_alias_p): Declare.
10279         (get_single_def_stmt): Likewise.
10280         (get_single_def_stmt_from_phi): Likewise.
10281         (get_single_def_stmt_with_phi): Likewise.
10282         * tree-dfa.c (refs_may_alias_p): New function.
10283         (get_single_def_stmt): Likewise.
10284         (get_single_def_stmt_from_phi): Likewise.
10285         (get_single_def_stmt_with_phi): Likewise.
10286         * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
10287         (vn_reference_lookup_1): New helper function.
10288         (vn_reference_lookup): Walk the virtual use-def chain to
10289         continue searching for a match if the def does not alias the
10290         reference we are looking for.
10291
10292 2008-03-14  David Edelsohn  <edelsohn@gnu.org>
10293
10294         * doc/install.texi (Binaries): Remove UCLA archive.  Add HVCC
10295         archive and Perzl.  Update The Written Word listing.
10296
10297 2008-03-14  Richard Guenther  <rguenther@suse.de>
10298
10299         PR tree-optimization/34043
10300         PR tree-optimization/33989
10301         * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
10302         when doing FRE.
10303         (bitmap_find_leader): Use extra argument to verify dominance
10304         relationship inside a basic-block.
10305         (can_PRE_operation): Add VIEW_CONVERT_EXPR.
10306         (find_leader_in_sets): Adjust.
10307         (create_component_ref_by_pieces): Take extra argument for
10308         dominance check, handle lookup failures.
10309         (find_or_generate_expression): Likewise.
10310         (create_expression_by_pieces): Likewise.
10311         (insert_into_preds_of_block): Adjust.
10312         (create_value_expr_from): If asked for, verify all operands
10313         are in the blocks AVAIL_OUT set.
10314         (make_values_for_stmt): Check for SSA_NAMEs that are life
10315         over an abnormal edge.
10316         (compute_avail): Remove such check.
10317         (do_SCCVN_insertion): New function.
10318         (eliminate): If we do not find a leader suitable for replacement
10319         insert a replacement expression from SCCVN if available.
10320         * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
10321         (struct vn_ssa_aux): Add needs_insertion flag.
10322         * tree-ssa-sccvn.c (may_insert): New global flag.
10323         (copy_reference_ops_from_ref): Value-number union member access
10324         based on its size, not type and member if insertion is allowed.
10325         (visit_reference_op_load): For a weak match from union type
10326         punning lookup a view-converted value and insert a SSA_NAME
10327         for that value if that is not found.
10328         (visit_use): Make dumps shorter.  Do not disallow value numbering
10329         SSA_NAMEs that are life over an abnormal edge to constants.
10330         (free_scc_vn): Release inserted SSA_NAMEs.
10331         (run_scc_vn): New flag to specify whether insertion is allowed.
10332         Process SSA_NAMEs in forward order.
10333         * tree-ssa-loop-im.c (for_each_index): Handle invariant
10334         ADDR_EXPRs inside VIEW_CONVERT_EXPR.
10335         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
10336         pointer type to/from integral types that do not change the
10337         precision to regular conversions.
10338
10339 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
10340
10341         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
10342         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
10343         __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
10344         __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
10345         input arguments and the mode of return value.  Built-in functions
10346         that operate on whole 64-bit MMX register now use V1DI mode.
10347
10348 2008-03-13  Alon Dayan  <alond@il.ibm.com>
10349             Olga Golovanevsky  <olga@il.ibm.com>
10350
10351         PR tree-optimization/35041
10352         * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
10353         to locate the right position in a statement.
10354
10355 2008-03-13  Uros Bizjak  <ubizjak@gmail.com>
10356
10357         PR target/34000
10358         PR target/35553
10359         * config/i386/xmmintrin.h:  Change all static inline functions to
10360         extern inline and add __gnu_inline__ attribute.
10361         * config/i386/bmintrin.h: Ditto.
10362         * config/i386/smmintrin.h: Ditto.
10363         * config/i386/tmmintrin.h: Ditto.
10364         * config/i386/mmintrin-common.h: Ditto.
10365         * config/i386/ammintrin.h: Ditto.
10366         * config/i386/emmintrin.h: Ditto.
10367         * config/i386/pmmintrin.h: Ditto.
10368         * config/i386/mmintrin.h: Ditto.
10369         * config/i386/mm3dnow.h: Ditto.
10370
10371 2008-03-13  Jakub Jelinek  <jakub@redhat.com>
10372
10373         PR middle-end/35185
10374         * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
10375         (lower_omp_2): New function.
10376         (lower_omp_1, lower_omp): Rewritten.
10377
10378 2008-03-13  Danny Smith  <dannysmith@users.sourceforge.net>
10379
10380         PR 35054
10381         * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
10382         with the phrase "Microsoft Windows compilers".
10383         (Push/Pop Macro Pragmas): New subsection. Document
10384         #pragma push_macro and pragma pop_macro.
10385
10386 2008-03-12  Paul Brook  <paul@codesourcery.com>
10387
10388         * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
10389
10390 2008-03-12  Paul Brook  <paul@codesourcery.com>
10391
10392         * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
10393         (thumb2_alusi3_short): Exclude PLUS and MINUS.
10394         (thumb2_addsi_shortim): Rename ...
10395         (thumb2_addsi_short): ... to this.  Allow register operands.
10396         (thumb2_subsi_short): New pattern.
10397         (thumb2_one_cmplsi2_short,
10398         thumb2_negsi2_short): New patterns and peepholes.
10399
10400 2008-03-12  Paul Brook  <paul@codesourcery.com>
10401
10402         * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
10403
10404 2008-03-12  Uros Bizjak  <ubizjak@gmail.com>
10405
10406         * config/i386/i386.md (int_cond): New code iterator.
10407         (fp_cond): Ditto.
10408         ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
10409         sge, sgeu, sle and sleu expanders usign int_cond code iterator.
10410         ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
10411         sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
10412         ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
10413         bge, bgeu, ble and bleu expanders usign int_cond code iterator.
10414         ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
10415         bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
10416
10417 2008-03-12  Paul Brook  <paul@codesourcery.com>
10418
10419         * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
10420         instead of {arm,thumb}_compute_save_reg_mask.
10421         (output_return_instruction): Ditto.
10422         (thumb_unexpanded_epilogue): Ditto.
10423         (thumb1_expand_prologue): Ditto.
10424         (thumb1_output_function_prologue): Ditto.
10425         (arm_set_return_address): Ditto.
10426         (thumb_set_return_address): Ditto.
10427         (arm_get_frame_offsets): Set offsets->saved_regs_mask.  Push extra
10428         regs to achieve stack alignment.
10429         (thumb1_compute_save_reg_mask): Fix compiler warning.
10430         (arm_output_epilogue): Use offsets->saved_regs_mask.
10431         Adjust stack pointer by poping call clobered registers.
10432         (arm_expand_prologue): Use offsets->saved_regs_mask.
10433         Adjust stack pointer by pushing extra registers.
10434         * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
10435
10436 2008-03-12  Paolo Bonzini  <bonzini@gnu.org>
10437
10438         PR tree-opt/35422
10439         * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
10440         conversion to the operands of a multiplication.
10441
10442 2008-03-12  Richard Guenther  <rguenther@suse.de>
10443
10444         * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
10445         (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
10446         * timevar.def (TV_TREE_PHIPROP): Add.
10447         * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
10448         pass description.  Use TV_TREE_PHIPROP.
10449         * tree-ssa-forwprop.c: Remove phiprop code.
10450
10451 2008-03-12  Jakub Jelinek  <jakub@redhat.com>
10452
10453         PR middle-end/35549
10454         * omp-low.c (maybe_lookup_decl): Constify first argument.
10455         (use_pointer_for_field): Change last argument from bool to
10456         omp_context *.  Disallow shared copy-in/out in nested
10457         parallel if decl is shared in outer parallel too.
10458         (build_outer_var_ref, scan_sharing_clauses,
10459         lower_rec_input_clauses, lower_copyprivate_clauses,
10460         lower_send_clauses, lower_send_shared_vars): Adjust callers.
10461
10462 2008-03-12  Victor Kaplansky  <victork@il.ibm.com>
10463             Ira Rosen  <irar@il.ibm.com>
10464
10465         * tree-vectorizer.c (free_stmt_vec_info): New function.
10466         (destroy_loop_vec_info): Move code to free_stmt_vec_info().
10467         Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
10468         * tree-vectorizer.h (free_stmt_vec_info): Declare.
10469         * tree-vect-transform.c (vectorizable_conversion): Free
10470         vec_oprnds0 if it was allocated.
10471         (vect_permute_store_chain): Remove unused VECs.
10472         (vectorizable_store): Free VECs that are allocated in the..
10473         function.
10474         (vect_transform_strided_load, vectorizable_load): Likewise.
10475         (vect_remove_stores): Simplify the code.
10476         (vect_transform_loop): Move code to vect_remove_stores().
10477         Call vect_remove_stores() and free_stmt_vec_info().
10478
10479 2008-03-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10480
10481         * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
10482         TARGET_HPUX.  Revise comment.
10483         (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
10484         * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
10485         Use sr4 variant of `be' instruction when not generating PIC code.
10486         (attr_length_call): Adjust for above change.
10487
10488 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10489
10490         * ipa-reference.c (static_execute): Remove module_statics_const and
10491         associated setting code.
10492
10493 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
10494
10495         PR target/35540
10496         * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
10497         predicate for operand 1.
10498         (paritysi2_cmp): Use register_operand predicate for operand 2.
10499         Use earlyclobber modifier for operand 1.  Remove support for
10500         memory operands.
10501         (paritydi2_cmp): Use register_operand predicate for operand 3.
10502         Use earlyclobber modifier for operand 1.  Remove support for
10503         memory operands.
10504
10505 2008-03-11  Paul Brook  <paul@codesourcery.com>
10506             Vladimir Prus  <vladimir@codesourcery.com>
10507
10508         * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
10509         (arm_compute_save_reg0_reg12_mask): Always
10510         check if register 11 must be saved.  Always safe hard frame pointer
10511         when frame_pointer_needeed.
10512         (arm_compute_save_reg_mask): Save IP and PC
10513         only with apcs frames.
10514         (arm_output_epilogue): Adjust Thumb2 codepath to
10515         be also invoked and work for ARM non-apcs frames.
10516         (arm_expand_prologue): Don't bother saving IP
10517         for non-apcs frame, since it's not clobbered by
10518         prologue code.  Implement non-apcs frame
10519         layout.
10520
10521 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
10522
10523         PR rtl-optimization/35281
10524         * expr.c (convert_move): Use a new pseudo for the intermediate
10525         from_mode->word_mode result.
10526
10527 2008-03-11  Paolo Bonzini  <bonzini@gnu.org>
10528
10529         * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
10530         * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
10531         * toplev.c (compile_file): Don't call it.
10532
10533 2008-03-11  Uros Bizjak  <ubizjak@gmail.com>
10534
10535         PR middle-end/35526
10536         * expr.c (store_expr): Call emit_block_move if the mode
10537         of "temp" RTX is BLKmode.
10538
10539 2008-03-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10540             Richard Guenther  <rguenther@suse.de>
10541
10542         PR tree-optimization/31358
10543         * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
10544         the step with a NULL_TREE.
10545         * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
10546         to sizetype if type is a pointer type.
10547         (add_candidate_1): Don't convert the base and step to
10548         the generic type if the orginal type is a pointer type.
10549         (add_iv_value_candidates): Use sizetype for the step
10550         if type is a pointer type.
10551         (cand_value_at): Likewise.
10552         * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
10553         for pointer types.
10554         * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
10555         Don't convert the tem affine to the type.
10556         (add_elt_to_tree): Use sizetype for the step if a pointer.
10557         Use POINTER_PLUS_EXPR for pointers.
10558         (aff_combination_to_tree): Use sizetype for the step if a
10559         pointer.
10560
10561 2008-03-10  Vladimir Makarov  <vmakarov@redhat.com>
10562
10563         * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
10564         Remove commutativity hint.
10565
10566 2008-03-10  Jakub Jelinek  <jakub@redhat.com>
10567
10568         PR c/35438
10569         PR c/35439
10570         * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
10571         errorneous type.  Check that v is a VAR_DECL.
10572
10573         PR middle-end/35099
10574         * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
10575
10576 2008-03-10  H.J. Lu  <hongjiu.lu@intel.com>
10577
10578         PR tree-optimization/35494
10579         * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
10580         may be overriden at link and run time.
10581
10582 2008-03-10  Richard Guenther  <rguenther@suse.de>
10583
10584         PR tree-optimization/34677
10585         * tree-ssa-pre.c (modify_expr_node_pool): Remove.
10586         (poolify_tree): Likewise.
10587         (modify_expr_template): Likewise.
10588         (poolify_modify_stmt): Likewise.
10589         (insert_fake_stores): Handle all component-ref style stores
10590         in addition to INDIRECT_REF.  Also handle complex types.
10591         Do not poolify the inserted load.
10592         (realify_fake_stores): Do not rebuild the tree but only
10593         make it a SSA_NAME copy.
10594         (init_pre): Remove initialzation of modify_expr_template.
10595         Do not allocate modify_expr_node_pool.
10596         (fini_pre): Do not free modify_expr_node_pool.
10597
10598 2008-03-10  Paul Brook  <paul@codesourcery.com>
10599
10600         * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
10601         to avoid conflicts.
10602
10603 2008-03-10  Paul Brook  <paul@codesourcery.com>
10604             Mark Shinwell  <shinwell@codesourcery.com>
10605
10606         * config/arm/cortex-r4.md: New.
10607         * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
10608         insn attributes.
10609         * config/arm/arm.md: Include cortex-r4.md.
10610         (insn): Add smmls, sdiv and udiv values.
10611         (generic_sched): Don't use generic scheduling for Cortex-R4.
10612         (arm_issue_rate): New function.
10613         (TARGET_SCHED_ISSUE_RATE): Define.
10614
10615 2008-03-10  Sebastian Pop  <sebastian.pop@amd.com>
10616
10617         * doc/invoke.texi (-ftree-loop-distribution): Add an example.
10618
10619 2008-03-10  Richard Guenther  <rguenther@suse.de>
10620
10621         * tree-ssa-pre.c (get_sccvn_value): Simplify.
10622         (compute_avail): Do not add stmt uses to AVAIL_OUT.
10623
10624 2008-03-10  Paolo Bonzini  <bonzini@gnu.org>
10625
10626         * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
10627         Set default to true.
10628
10629 2008-03-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10630
10631         * c.opt (Wsynth): Deprecate.
10632         * doc/invoke.texi (Option Summary, Warning Options): Document
10633         -Wno-format-contains-nul.
10634
10635 2008-03-09  Uros Bizjak  <ubizjak@gmail.com>
10636
10637         PR target/35496
10638         * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
10639         ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
10640
10641 2008-03-09  Ira Rosen  <irar@il.ibm.com>
10642
10643         * config/rs6000/rs6000.c (builtin_description): Rename vector
10644         left shift operations.
10645         * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
10646         (altivec_vsl<VI_char>): Rename to ...
10647         (ashl<mode>3): ... new name.
10648         (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
10649         gen_ashlv4si3.
10650         (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
10651
10652 2008-03-08  Richard Guenther  <rguenther@suse.de>
10653
10654         * coverage.h (tree_coverage_counter_addr): Declare.
10655         * coverage.c (tree_coverage_counter_addr): New function.
10656         * tree-profile.c (tree_gen_edge_profiler): Unshare counter
10657         before using again.
10658         (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
10659         (tree_gen_one_value_profiler): Likewise.
10660         (tree_gen_ic_profiler): Likewise.
10661         (tree_gen_average_profiler): Likewise.
10662         (tree_gen_ior_profiler): Likewise.
10663
10664 2008-03-08  Richard Guenther  <rguenther@suse.de>
10665
10666         * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
10667         (vn_binary_op_insert): Likewise.
10668         (vn_unary_op_lookup): Likewise.
10669         (vn_unary_op_insert): Likewise.
10670         (vn_nary_op_lookup): Declare.
10671         (vn_nary_op_insert): Likewise.
10672         * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
10673         and binary hashes, use a single obstack for unary_op_pool
10674         and binary_op_pool.
10675         (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
10676         a single struct vn_nary_op_s.  Store tree code length and
10677         a variable number of operands.
10678         (struct vn_reference_op_struct): Remove unused op2.
10679         (vn_reference_op_eq): Do not compare op2.
10680         (vn_reference_op_compute_hash): Do not compute hash of op2.
10681         (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
10682         (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
10683         with vn_nary_op_compute_hash.
10684         (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
10685         (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
10686         vn_nary_op_lookup.
10687         (vn_unary_op_insert, vn_binary_op_insert): Replace with
10688         vn_nary_op_insert.
10689         (visit_unary_op): Call nary functions.
10690         (visit_binary_op): Likewise.
10691         (process_scc): Adjust for struct vn_tables_s changes.
10692         (allocate_vn_table): Likewise.
10693         (free_vn_table): Likewise.
10694         * tree-vn.c (vn_add): Call nary functions.
10695         (vn_lookup): Likewise.
10696
10697 2008-03-08  Jakub Jelinek  <jakub@redhat.com>
10698
10699         PR target/35498
10700         * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
10701         wdst back after sync_compare_and_swapqhi_internal.
10702
10703 2008-03-08  Uros Bizjak  <ubizjak@gmail.com>
10704
10705         PR target/22152
10706         * config/i386/i386-modes.def (V1DI): New vector mode.
10707         * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
10708         * config/i386/mmx.md (MMXMODEI8): New mode iterator.
10709         (MMXMODE248): Ditto.
10710         (MMXMODE): Add V1DI mode.
10711         (mmxvecsize): Change DI mode to V1DI mode.
10712         ("mov<mode>): Use MMXMODEI8 mode iterator.
10713         ("*mov<mode>_internal_rex64"): Ditto.
10714         ("*mov<mode>_internal"): Ditto.
10715         ("mmx_add<mode>3"): Ditto.  Handle V1DImode for TARGET_SSE2.
10716         ("mmx_sub<mode>3"): Ditto.
10717         ("mmx_adddi3"): Remove insn pattern.
10718         ("mmx_subdi3"): Ditto.
10719         ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
10720         ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
10721         ("mmx_ashl<mode>3"): Ditto.
10722         ("mmx_lshrdi3"): Remove insn pattern.
10723         ("mmx_ashldi3"): Ditto.
10724         * config/i386/i386.c (classify_argument): Handle V1DImode.
10725         (function_arg_advance_32): Ditto.
10726         (function_arg_32): Ditto.
10727         (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
10728         mmx_addv1di3 insn pattern.
10729         [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
10730         [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
10731         IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
10732         IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
10733         Remove definitions of built-in functions.
10734         (V1DI_type_node): New node.
10735         (v1di_ftype_v1di_int): Ditto.
10736         (v1di_ftype_v1di_v1di): Ditto.
10737         (v2si_ftype_v2si_si): Ditto.
10738         (v4hi_ftype_v4hi_di): Remove node.
10739         (v2si_ftype_v2si_di): Ditto.
10740         (ix86_init_mmx_sse_builtins): Handle V1DImode.
10741         (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
10742         Redefine builtins using def_builtin_const with *_ftype_*_int node.
10743         (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
10744         Add new builtins using def_builtin_const.
10745         (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
10746         IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
10747         IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
10748         * config/i386/mmintrin.h (__v1di): New typedef.
10749         (_mm_add_si64): Cast arguments to __v1di type.
10750         (_mm_sub_si64): Ditto.
10751         (_mm_sll_pi16): Cast __count to __v4hi type.
10752         (_mm_sll_pi32): Cast __count to __v2si type.
10753         (_mm_sll_si64): Cast arguments to __v1di type.
10754         (_mm_srl_pi16): Cast __count to __v4hi type.
10755         (_mm_srl_pi32): Cast __count to __v2si type.
10756         (_mm_srl_si64): Cast arguments to __v1di type.
10757         (_mm_sra_pi16): Cast __count to __v4hi type.
10758         (_mm_sra_pi32): Cast __count to __v2si type.
10759         (_mm_slli_pi16): Use __builtin_ia32_psllwi.
10760         (_mm_slli_pi32): Use __builtin_ia32_pslldi.
10761         (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
10762         (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
10763         (_mm_srli_pi32): Use __builtin_ia32_psrldi.
10764         (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
10765         (_mm_srai_pi16): Use __builtin_ia32_psrawi.
10766         (_mm_srai_pi32): Use __builtin_ia32_psradi.
10767         * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
10768         * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
10769         __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
10770         __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
10771
10772 2008-03-07  Joseph Myers  <joseph@codesourcery.com>
10773
10774         * doc/include/texinfo.tex: Update to version 2008-03-07.10.
10775
10776 2008-03-07  Peter Bergner  <bergner@vnet.ibm.com>
10777
10778         PR target/35373
10779         * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
10780         reg+const addressing for Altivec modes.  Don't generate reg+reg
10781         addressing for TFmode or TDmode quantities.
10782
10783 2008-03-07  Paolo Bonzini  <bonzini@gnu.org>
10784
10785         * c-common.c (vector_types_convertible_p): Call langhook
10786         instead of comptypes.
10787
10788 2008-03-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10789
10790         PR tree-opt/35402
10791         * tree-ssa-ccp.c (get_symbol_constant_value): Handle
10792         integral and scalar float variables which have a
10793         NULL DECL_INITIAL.
10794
10795 2008-03-06  Nathan Froyd  <froydnj@codesourcery.com>
10796
10797         * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
10798         dwarf_register_span hook when emitting unwind information for
10799         register-to-memory saves.
10800         * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
10801         (rs6000_frame_related): Remove call to spe_synthesize_frame.
10802
10803 2008-03-06  Jakub Jelinek  <jakub@redhat.com>
10804
10805         * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
10806         for the same VAR_DECL.
10807
10808 2008-03-06  Tom Tromey  <tromey@redhat.com>
10809
10810         * treelang: Delete.
10811         * doc/standards.texi (Standards): Don't mention treelang.
10812         * doc/invoke.texi (Overall Options): Don't mention treelang.
10813         * doc/install.texi (Prerequisites): Don't mention bison or
10814         treelang.
10815         (Configuration): Don't mention treelang.
10816         (Building): Likewise.
10817         * doc/frontends.texi (G++ and GCC): Don't mention treelang.
10818
10819 2008-03-06  Paolo Bonzini  <bonzini@gnu.org>
10820
10821         * simplify-rtx.c (simplify_subreg): Remove useless shifts from
10822         word-extractions out of a multi-word object.
10823
10824 2008-03-06  Richard Guenther  <rguenther@suse.de>
10825
10826         * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
10827         * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
10828         result type and precision.
10829         * expr.c (get_inner_reference): Set unsignedp based on the result
10830         type of BIT_FIELD_REF.
10831         * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
10832         * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
10833         (try_instantiate_multiple_fields): Likewise.  Use the correct type
10834         for BIT_FIELD_REF.
10835         (sra_build_assignment): Likewise.
10836         (sra_build_elt_assignment): Likewise.
10837         (sra_explode_bitfield_assignment): Likewise.
10838         * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
10839         * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
10840         set BIT_FIELD_REF_UNSIGNED.
10841         (vectorizable_load): Likewise.
10842
10843 2008-03-06  Andreas Krebbel  <krebbel1@de.ibm.com>
10844
10845         * cse.c (cse_extended_basic_block): Invalidate artificial defs
10846         at bb start.
10847
10848 2008-03-06  Richard Guenther  <rguenther@suse.de>
10849
10850         * alias.c (struct alias_set_entry): Move has_zero_child field
10851         to pack with alias_set.
10852
10853 2008-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10854
10855         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
10856         32bit host.
10857
10858 2008-03-05  Ian Lance Taylor  <iant@google.com>
10859
10860         * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
10861
10862 2008-03-05  Kenneth Zadeck  <zadeck@naturalbridge.com>
10863
10864         * fwprop.c (update_df): Support width and offset parameters of
10865         df_ref_create.
10866         * ra-conflict.c (mark_reg_store, clear_reg_in_live,
10867         global_conflicts): Change DF_REF_EXTRACT to either
10868         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10869         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10870         * df-scan.c (df_ref_record, df_defs_record,
10871         df_ref_create_structure, df_def_record_1, df_uses_record,
10872         df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
10873         df_bb_refs_collect, df_entry_block_defs_collect,
10874         df_exit_block_uses_collect): Support new width and offset fields.
10875         (ref_extract_pool): New storage pool.
10876         (df_free_ref): New function.
10877         (df_reg_chain_unlink, df_free_collection_rec,
10878         df_sort_and_compress_refs): Call df_free_ref.
10879         (df_ref_equal_p, df_ref_compare): Compare offset and width fields
10880         of df_ref_extract.
10881         (df_ref_create_structure): Allocate df_ref_extract if offset and
10882         width fields are used.
10883         (df_def_record_1): Get offset and width from ZERO_EXTRACT.
10884         (df_uses_record): Get offset and width from ZERO_EXTRACT 
10885         and SIGN_EXTRACT.
10886         * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
10887         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10888         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10889         * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
10890         DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT.  Change
10891         DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
10892         (df_ref_extract): New structure.
10893         (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
10894         (df_ref_create): Add width and offset parameters.
10895         
10896 2008-03-05  Richard Guenther  <rguenther@suse.de>
10897
10898         * tree-ssa-structalias.c (get_constraint_for_component_ref):
10899         Use ranges_overlap_p.
10900         (offset_overlaps_with_access): Rename
10901         to ranges_overlap_p and move ...
10902         * tree-flow-inline.h (ranges_overlap_p): ... here.
10903
10904         * tree.h (get_inner_reference, handled_component_p): Update
10905         comments.
10906
10907         * tree.h (record_component_aliases, get_alias_set,
10908         alias_sets_conflict_p, alias_sets_must_conflict_p,
10909         objects_must_conflict_p): Move declarations ...
10910         * alias.h (record_component_aliases, get_alias_set,
10911         alias_sets_conflict_p, alias_sets_must_conflict_p,
10912         objects_must_conflict_p): ... here.
10913         Include coretypes.h.
10914         * Makefile.in (ALIAS_H): Add coretypes.h dependency.
10915
10916 2008-03-05  Aldy Hernandez  <aldyh@redhat.com>
10917
10918         * cfg.c: Include tree-flow.h.
10919         (remove_edge_raw): Call redirect_edge_var_map_clear.
10920         (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
10921         * tree-flow-inline.h (redirect_edge_var_map_def): New.
10922         (redirect_edge_var_map_result): New.
10923         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
10924         PENDING_STMT use with redirect_edge_var_map_*.
10925         * tree-ssa.c (edge_var_maps): New definition.
10926         (redirect_edge_var_map_add): New.
10927         (redirect_edge_var_map_clear): New.
10928         (redirect_edge_var_map_dup): New.
10929         (redirect_edge_var_map_vector): New.
10930         (redirect_edge_var_map_destroy): New.
10931         (ssa_redirect_edge): Replace PENDING_STMT use with
10932         redirect_edge_var_map_*.
10933         (flush_pending_stmts): Same.
10934         (delete_tree_ssa): Destroy edge var map.
10935         * tree-flow.h (struct _edge_var_map): New.
10936         Define edge_var_map vector type.
10937         Declare redirect_edge_var_map_* prototypes.
10938         * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
10939         * tree-cfg.c (reinstall_phi_args): Replace
10940         PENDING_STMT use with redirect_edge_var_map_*.
10941
10942 2008-03-05  Richard Guenther  <rguenther@suse.de>
10943
10944         PR tree-optimization/35472
10945         * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
10946         whose single use_stmt has a overlapping set of loaded and
10947         stored symbols as that use_stmt might be a noop assignment then.
10948
10949 2008-03-05  Joel Sherrill <joel.sherrill@oarcorp.com>
10950
10951         * gthr-rtems.h: Implement __gthread_mutex_destroy.
10952
10953 2008-03-05  Richard Guenther  <rguenther@suse.de>
10954
10955         PR c++/35336
10956         * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
10957         should be constants.
10958         * tree-cfg.c (verify_expr): Verify it.
10959         * fold-const.c (fold_truthop): Remove code generating
10960         BIT_FIELD_REFs of structure bases.
10961         (fold_binary): Likewise.
10962         (fold_ternary): Position and size of BIT_FIELD_REFs are
10963         always host integers.
10964         (make_bit_field_ref): Remove.
10965         (optimize_bit_field_compare): Remove.
10966         (all_ones_mask_p): Remove.
10967
10968 2008-03-05  Gabor Loki  <loki@gcc.gnu.org>
10969
10970         PR gcc/33009
10971         * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
10972         (split_block_and_df_analyze): New. Split basic block and rebuild
10973         dataflow.
10974         (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
10975         SPLIT_BLOCK.
10976         (split_pattern_seq): Likewise.
10977         (erase_matching_seqs): Likewise.
10978         (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
10979
10980 2008-03-04  Geoff Keating  <geoffk@apple.com>
10981
10982         * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
10983         declaration and code.
10984         (tree_invalid_nonnegative_warnv_p): Likewise.
10985
10986 2008-03-05  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
10987
10988         * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
10989         examples.  Truncate option-names then causing overfull hbox.
10990
10991 2008-03-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10992
10993         PR target/35222
10994         * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
10995         on hpux10.
10996         * configure: Rebuilt.
10997
10998 2008-03-04  Rafael Espindola  <espindola@google.com>
10999
11000         * fold-const.c (tree_simple_nonnegative_warnv_p): New.
11001         (tree_unary_nonnegative_warnv_p): New.
11002         (tree_binary_nonnegative_warnv_p): New.
11003         (tree_single_nonnegative_warnv_p): New.
11004         (tree_invalid_nonnegative_warnv_p): New.
11005         (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
11006
11007 2008-03-04  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11008
11009         PR 28322
11010         * opts.c (handle_option): Postpone 'unknown option' errors only for
11011         warning options.
11012
11013 2008-03-04  H.J. Lu  <hongjiu.lu@intel.com>
11014
11015         PR target/35453
11016         * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
11017         (_SIDD_XXX): This.
11018
11019 2008-03-04  Rafael Espindola  <espindola@google.com>
11020
11021         * fold-const.c (tree_unary_nonzero_warnv_p): New.
11022         (tree_binary_nonzero_warnv_p): New.
11023         (tree_single_nonzero_warnv_p): New.
11024         (tree_expr_nonzero_warnv_p): Redefine using the new functions.
11025
11026 2008-03-04  Uros Bizjak  <ubizjak@gmail.com>
11027
11028         PR middle-end/35456
11029         * fold-const.c (fold_cond_expr_with_comparison): Prevent
11030         transformations for modes that have signed zeros.
11031         * ifcvt.c (noce_try_abs): Ditto.
11032
11033 2008-03-04  Joseph Myers  <joseph@codesourcery.com>
11034
11035         * config/i386/i386.c (override_options): Force
11036         -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
11037
11038 2008-03-04  Jan Hubicka  <jh@suse.cz>
11039
11040         PR c++/35262
11041         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
11042         in last commit.
11043
11044 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11045
11046         * config/i386/i386.md (allocate_stack_worker_32): Use  __chkstk
11047         label to probe the stack.
11048
11049 2008-03-04  Danny Smith  <dannysmith@users.sourceforge.net>
11050
11051         * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
11052         (__gthr_win32_mutex_destroy): Declare.
11053         [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
11054         __gthr_win32_mutex_destroy.
11055         * config/i386/gthr-win32.c  (__gthr_win32_mutex_destroy): Define.
11056
11057 2008-03-03  Jan Hubicka  <jh@suse.cz>
11058
11059         PR c++/35262
11060         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
11061         aggressive on inlining cold calls.
11062
11063 2008-03-03  Richard Guenther  <rguenther@suse.de>
11064
11065         * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
11066         struct copies into the expression table.
11067         (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
11068         (try_to_simplify): Likewise.
11069         * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
11070         integral and pointer arguments which do not change the
11071         precision to NOP_EXPRs.
11072         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
11073         VIEW_CONVERT_EXPR case.
11074
11075 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
11076
11077         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
11078         defined in a loop at depth 0 is invariant.
11079         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
11080         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
11081         be called at loop depth 0.
11082
11083 2008-03-02  Jakub Jelinek  <jakub@redhat.com>
11084
11085         PR driver/35420
11086         * gcc.c (process_command): Update copyright notice dates.
11087         * gcov.c (print_version): Likewise.
11088         * gcov-dump.c (print_version): Likewise.
11089         * mips-tfile.c (main): Likewise.
11090         * mips-tdump.c (main): Likewise.
11091
11092 2008-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11093
11094         PR 24924
11095         * c-common.c (flag_permissive): Delete.
11096         (constant_expression_warnings): Check flags first.
11097         (constant_expression_error): New.
11098         * c-common.h (flag_permissive): Delete.
11099         (constant_expression_error): Declare.
11100         * flags.h (flag_permissive): Declare. Update description.
11101         * diagnostic.c (pedwarn): Update.
11102         (permerror): New.
11103         * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
11104         (permissive_error_kind): New.
11105         * toplev.c (flag_permissive): Define. Update description.
11106         * toplev.h (permissive_error_kind): Declare.
11107         * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
11108         (pedwarn_c90): Use pedantic_warning_kind.
11109         * c-opts.c (c_common_post_options): flag_permissive does not affect
11110         flag_pedantic_errors.
11111
11112 2008-03-02  Joseph Myers  <joseph@codesourcery.com>
11113
11114         * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
11115         __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
11116         __absvsi2, __absvDI2): Use unsigned arithmetic.
11117
11118 2008-03-02  Andi Kleen  <ak@suse.de>
11119             Richard Guenther  <rguenther@suse.de>
11120
11121         * struct-equiv.c: Remove file.
11122         * cfg_cleanup.c (condjump_equiv_p): Remove.
11123         * Makefile.in (OBJS-common): Remove struct-equiv.o.
11124         (struct-equiv.o): Remove rule.
11125         * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
11126         insns_match_p, struct_equiv_block_eq, struct_equiv_init, 
11127         rtx_equiv_p, condjump_equiv_p): Remove prototypes.
11128
11129 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11130
11131         * ifcvt.c (noce_process_if_block): Try to handle only the then
11132         block if the else block exists but isn't suitable.
11133
11134 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11135
11136         PR gcc/35063
11137         * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
11138         * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
11139         regression from previous patch.
11140
11141 2008-03-01  Janne Blomqvist  <jb@gcc.gnu.org>
11142
11143         PR gcc/35063
11144         * gthr.h: Add __gthread_mutex_destroy as a function that must be
11145         implemented.
11146         * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
11147         * gthr-single.h (__gthread_mutex_destroy): Likewise.
11148         * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
11149         * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
11150         * gthr-nks.h (__gthread_mutex_destroy): Likewise.
11151         * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
11152         * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
11153         (__gthread_mutex_destroy_function): Rename to
11154         __gthread_mutex_destroy.
11155         * gthr-dce.h (__gthread_mutex_destroy): Call
11156         pthread_mutex_destroy.
11157         * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
11158         * gthr-posix.h (__gthread_mutex_destroy): Likewise.
11159         * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
11160
11161 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11162
11163         * df-scan.c (df_ref_chain_change_bb): Simplify.
11164         (df_insn_change_bb): Add new_bb argument.  Simplify.  Call
11165         set_block_for_insn if there's any change.
11166         * df.h ((df_insn_change_bb): Fix prototype.
11167         * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
11168         df_insn_change_bb, don't call set_block_for_insn.
11169         * emit-rtl.c (reorder_insns): Likewise.
11170         * haifa-sched.c (move_insn): Likewise.
11171
11172 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11173
11174         * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
11175
11176 2008-03-01  Alexandre Oliva  <aoliva@redhat.com>
11177
11178         * tree-flow-inline.h (next_readonly_imm_use): Return
11179         NULL_USE_OPERAND_P after the end.
11180
11181 2008-03-01  Richard Guenther  <rguenther@suse.de>
11182
11183         PR tree-optimization/35411
11184         * tree-sra.c (sra_build_assignment): Split conversion to
11185         final type to a separate statement if we are not assigning
11186         to a register.
11187
11188 2008-02-29  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11189
11190         * fold-const.c (fold_convertible_p): Correct the logic to follow
11191         that in fold_convert().
11192
11193 2008-02-29  Douglas Gregor  <doug.gregor@gmail.com>
11194
11195         PR c++/35315
11196         * tree-inline.c (build_duplicate_type): When we make a
11197         duplicate type, make it unique in the canonical types system.
11198
11199 2008-02-29  Tom Tromey  <tromey@redhat.com>
11200
11201         * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
11202         input_file_stack_history, input_file_stack_restored): Remove.
11203         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11204         * input.h (struct file_stack): Remove.
11205         (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
11206         (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
11207         Likewise.
11208         * diagnostic.h (struct diagnostic_context) <last_module>: Change
11209         type.
11210         (diagnostic_last_module_changed): Add 'map' argument.
11211         (diagnostic_set_last_function): Likewise.
11212         * diagnostic.c (undiagnostic_report_current_module): Iterate using
11213         line map, not input_file_stack.
11214         * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
11215
11216 2008-02-29  Paul Brook  <paul@codesourcery.com>
11217
11218         * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
11219
11220 2008-02-29  Paul Brook  <paul@codesourcery.com>
11221
11222         * config/arm/ieee754-df.S (muldf3): Use RET macros.
11223
11224 2008-02-29  Richard Guenther  <rguenther@suse.de>
11225
11226         * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
11227         vn_lookup_or_add.
11228         * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
11229         value for comparing for a store match.
11230         (simplify_unary_expression): Do nothing for SSA_NAMEs.
11231         (try_to_simplify): Do not do a full-blown reference lookup.
11232
11233 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11234
11235         * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
11236         (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
11237
11238         * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
11239
11240 2008-02-29  Sebastian Pop  <sebastian.pop@amd.com>
11241
11242         * tree-loop-linear.c (try_interchange_loops): Compare memory access
11243         strides against cache sizes.
11244
11245 2008-02-29  Kaz Kojima  <kkojima@gcc.gnu.org>
11246
11247         * config/sh/sh.c (sh_secondary_reload): Handle loading a float
11248         constant to fpul.
11249
11250 2008-02-28  Richard Sandiford  <rsandifo@nildram.co.uk>
11251
11252         * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
11253         of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
11254         is smaller than the original promoted value.
11255         (simplify_subreg): If OP is a SUBREG, try to preserve its
11256         SUBREG_PROMOTED_VAR_P information.
11257
11258 2008-02-28  Steven Bosscher  <stevenb.gcc@gmail.com>
11259
11260         * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
11261         (VN_INFO_GET): Allocate new objects on the obstack.
11262         (init_scc_vn): Initialize the obstack.  Use XDELETE instead of free
11263         for rpo_numbers_temp, for consistency.
11264         (free_scc_vn): Free the obstack.
11265
11266 2008-02-28  Sebastian Pop  <sebastian.pop@amd.com>
11267
11268         * doc/invoke.texi: Document -ftree-loop-distribution.
11269         * tree-loop-distribution.c: New.
11270         * tree-pass.h (pass_loop_distribution): New.
11271         * graphds.h (struct graph): Add htab_t indices.
11272         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
11273         * tree-vectorizer.c (rename_variables_in_loop): Extern.
11274         (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
11275         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
11276         * tree-data-ref.c (debug_data_dependence_relations): New.
11277         (dump_data_dependence_relation): Also print data references.
11278         (free_data_ref): Extern.
11279         (same_access_functions): Moved...
11280         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
11281         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
11282         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
11283         struct rdg_vertex_info, rdg_vertex_for_stmt): New.
11284         (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
11285         (stmts_from_loop): Skip LABEL_EXPR.
11286         (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
11287         New.
11288         (build_rdg): Initialize rdg->indices htab.
11289         (free_rdg, stores_from_loop, ref_base_address,
11290         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
11291         have_similar_memory_accesses_1, ref_base_address_1,
11292         remove_similar_memory_refs): New.
11293         * tree-data-ref.h: Depend on tree-chrec.h.
11294         (debug_data_dependence_relations, free_data_ref): Declared.
11295         (same_access_functions): ... here.
11296         (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
11297         New.
11298         (struct rdg_vertex): Add has_mem_write and has_mem_reads.
11299         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
11300         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
11301         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
11302         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
11303         rdg_vertex_for_stmt): Declared.
11304         (struct rdg_edge): Add level.
11305         (RDGE_LEVEL): New.
11306         (free_rdg, stores_from_loop, remove_similar_memory_refs,
11307         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
11308         Declared.
11309         (rdg_has_similar_memory_accesses): New.
11310         * tree-vect-analyze.c: Remove unused static decls.
11311         * lambda.h (dependence_level): New.
11312         * common.opt (ftree-loop-distribution): New.
11313         * tree-flow.h (mark_virtual_ops_in_bb, 
11314         slpeel_tree_duplicate_loop_to_edge_cfg,
11315         rename_variables_in_loop): Declared.
11316         * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
11317         (OBJS-common): Add tree-loop-distribution.o.
11318         (tree-loop-distribution.o): New rule.
11319         * tree-cfg.c (mark_virtual_ops_in_bb): New.
11320         (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
11321         * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
11322
11323 2008-02-28  Joseph Myers  <joseph@codesourcery.com>
11324
11325         PR target/33963
11326         * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
11327         other than structures and unions.
11328
11329 2008-02-28  Richard Guenther  <rguenther@suse.de>
11330
11331         Revert:
11332         2008-02-26  Richard Guenther  <rguenther@suse.de>
11333
11334         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11335         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11336         (lookup_decl_from_uid): Declare.
11337         (remove_decl_from_map): Likewise.
11338         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11339         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11340         (decl_for_uid_map): New global hashtable mapping DECL_UID
11341         to the decl tree.
11342         (init_ttree): Allocate it.
11343         (insert_decl_to_uid_decl_map): New helper function.
11344         (make_node_stat): Insert new decls into the map.
11345         (copy_node_stat): Likewise.
11346         (lookup_decl_from_uid): New function.
11347         (remove_decl_from_map): Likewise.
11348         (print_decl_for_uid_map_statistics): New helper.
11349         (dump_tree_statistics): Call it.
11350
11351         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11352         (referenced_var_iterator): Adjust.
11353         (FOR_EACH_REFERENCED_VAR): Adjust.
11354         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11355         (num_referenced_vars): Adjust.
11356         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11357         (first_referenced_var): Remove.
11358         (end_referenced_vars_p): Likewise.
11359         (next_referenced_var): Likewise.
11360         (referenced_var_iterator_set): New helper function.
11361         * tree-dfa.c (referenced_var_lookup): Adjust.
11362         (referenced_var_check_and_insert): Likewise.
11363         (remove_referenced_var): Likewise.
11364         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11365         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11366         (verify_call_clobbering): Likewise.
11367         (verify_memory_partitions): Likewise.
11368         (init_tree_ssa): Allocate bitmap instead of hashtable for
11369         referenced_vars.
11370         (delete_tree_ssa): Adjust.
11371         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11372         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11373         (compute_tag_properties): Likewise.
11374         (set_initial_properties): Likewise.
11375         (find_partition_for): Likewise.
11376         (update_reference_counts): Likewise.
11377         (dump_may_aliases_for): Likewise.
11378         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11379         (add_call_clobber_ops): Likewise.
11380         (add_call_read_ops): Likewise.
11381         (get_asm_expr_operands): Likewise.
11382         * tree-into-ssa.c (dump_decl_set): Likewise.
11383         (update_ssa): Likewise.
11384         * tree-sra.c (scan_function): Likewise.
11385         (decide_instantiations): Likewise.
11386         (scalarize_parms): Likewise.
11387         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11388         (dsa_named_for): Likewise.
11389         * tree-ssa-structalias.c (update_alias_info): Likewise.
11390         (merge_smts_into): Likewise.
11391
11392 2008-02-27  David Daney  <ddaney@avtrex.com>
11393
11394         PR target/34409
11395         * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
11396         * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
11397         * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
11398         * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
11399         * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
11400
11401 2008-02-27  Uros Bizjak  <ubizjak@gmail.com>
11402
11403         PR target/25477
11404         * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
11405         (BUILT_IN_NEXTTOWARD): Remove.
11406         (BUILT_IN_NEXTTOWARDF): Ditto.
11407         * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
11408         alloca/strcpy/strcat.  Remove commented-out code.  Fix whitespace.
11409
11410 2008-02-27  Tom Tromey  <tromey@redhat.com>
11411
11412         * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
11413         DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
11414
11415 2008-02-27  Jan Beulich  <jbeulich@novell.com>
11416
11417         * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
11418         update the respective field on newdecl.
11419
11420 2008-02-27  Revital Eres  <eres@il.ibm.com>
11421
11422         PR rtl-optimization/34999
11423         * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
11424         crossing edges that ends with a call insn.
11425         (fix_up_fall_thru_edges): Handle crossing edges that ends with a
11426         call insn and clear the EDGE_CROSSING flag of the crossing edge
11427         when fixing fallthru edges.
11428
11429 2008-02-27  Richard Guenther  <rguenther@suse.de>
11430
11431         PR middle-end/35390
11432         * fold-const.c (fold_unary): Return the correct argument,
11433         converted to the result type.
11434
11435 2008-02-27  Richard Guenther  <rguenther@suse.de>
11436
11437         PR middle-end/34971
11438         * expr.c (expand_expr_real_1): Assert on rotates that operate
11439         on partial modes.
11440         * fold-const.c (fold_binary): Use the types precision, not the
11441         bitsize of the mode if folding rotate expressions.  Build rotates
11442         only for full modes.
11443
11444 2008-02-27  Jakub Jelinek  <jakub@redhat.com>
11445
11446         * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
11447         and CPP_PRAGMA_EOL.
11448         * c-pragma.c (pragma_ns_name): New typedef.
11449         (registered_pp_pragmas): New variable.
11450         (c_pp_lookup_pragma): New function.
11451         (c_register_pragma_1): If flag_preprocess_only, do nothing
11452         for non-expanded pragmas, for expanded ones push pragma's
11453         namespace and name into registered_pp_pragmas vector.
11454         (c_invoke_pragma_handler): Register OpenMP pragmas even when
11455         flag_preprocess_only, don't register GCC pch_preprocess
11456         pragma if flag_preprocess_only.
11457         * c-opts.c (c_common_init): Call init_pragma even if
11458         flag_preprocess_only.
11459         * c-pragma.c (c_pp_lookup_pragma): New prototype.
11460         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
11461         cpp_register_pragma if flag_preprocess_only.
11462
11463 2008-02-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11464
11465         PR c/28800
11466         * c-parser.c (c_parser_translation_unit): Warn for empty
11467         translation unit, not empty source file.
11468
11469 2008-02-26  Paul Brook  <paul@codesourcery.com>
11470
11471         * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
11472         operand for Thumb-2.
11473         * config/arm/arm.h (reg_class): Add CORE_REGS.
11474         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
11475         (BASE_REG_CLASS): Use CORE_REGS.
11476         (PREFERRED_RELOAD_CLASS): Add STACK_REG.
11477         (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
11478         (REGNO_OK_FOR_INDEX_P): Exclude SP.
11479         (ARM_REG_OK_FOR_INDEX_P): Always define.  Use
11480         ARM_REGNO_OK_FOR_INDEX_P.
11481         (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
11482         * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
11483         arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
11484         (ldm/stm peepholes): Ditto.
11485         * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
11486         * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
11487         * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
11488         * config/arm/constraints.md: Enable "k" constraint on ARM.
11489
11490 2008-02-27  Ben Elliston  <bje@au.ibm.com>
11491
11492         * config/rs6000/rs6000.c: Annotate cache line size field in all
11493         instances of struct processor_costs.
11494
11495 2008-02-26  David Edelsohn  <edelsohn@gnu.org>
11496
11497         * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
11498         dse2, gcse, if_conversion, if_after_combine, if_after_reload,
11499         jump_bypass): New counters.
11500         * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
11501         * dce.c (gate_ud_dce): Same.
11502         (gate_fast_dce): Same.
11503         * dse.c (gate_dse1): New function.
11504         (gate_dse2): New function.
11505         (gate_dse): Merge results of new gate functions.
11506         * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
11507         (gate_handle_jump_bypass): Add dbg_cnt.
11508         (gate_handle_gcse): Add dbg_cnt.
11509         * ifcvt.c (gate_handle_if_conversion): Same.
11510         (gate_handle_if_after_combine): Same.
11511         (gate_handle_if_after_reload): Same.
11512         * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
11513
11514 2008-02-26  Edmar Wienskoski  <edmar@freescale.com>
11515
11516         * config/rs6000/rs6000.c (processor_costs): Update e300 cache
11517         line sizes.
11518         * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
11519
11520 2008-02-26  Jason Merrill  <jason@redhat.com>
11521
11522         PR c++/35315
11523         * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE 
11524         alone if it's the naming decl for the type's main variant.
11525
11526 2008-02-26  Tom Tromey  <tromey@redhat.com>
11527
11528         * system.h (USE_MAPPED_LOCATION): Poison.
11529         * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
11530         * tree-cfg.c (make_cond_expr_edges): Remove old location code.
11531         (make_goto_expr_edges): Likewise.
11532         (remove_bb): Likewise.
11533         (execute_warn_function_return): Likewise.
11534         * basic-block.h (struct edge_def) <goto_locus>: Change type to
11535         location_t.
11536         * c-common.c (fname_decl): Remove old location code.
11537         * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
11538         location code.
11539         * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
11540         variant.
11541         (ASM_INPUT_SOURCE_LOCATION): Likewise.
11542         (gen_rtx_ASM_INPUT): Likewise.
11543         (gen_rtx_ASM_INPUT_loc): Likewise.
11544         (get_rtx_asm_OPERANDS): Remove.
11545         * cfglayout.c (insn_locators_alloc): Remove old location code.
11546         (set_curr_insn_source_location): Likewise.
11547         (curr_insn_locator): Likewise.
11548         * print-tree.c (print_node): Remove old location code.
11549         * tree-mudflap.c (mf_varname_tree): Remove old location code.
11550         (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
11551         * cfgexpand.c (expand_gimple_cond_expr): Don't use
11552         location_from_locus.
11553         (construct_exit_block): Remove old location code.
11554         * emit-rtl.c (force_next_line_note): Remove old location code.
11555         * profile.c (branch_prob): Remove old location code.
11556         * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
11557         LOC_LINE): Remove old-location variants.
11558         * langhooks.c (lhd_print_error_function): Remove old location
11559         code.
11560         * configure, config.in: Rebuilt.
11561         * configure.ac (--enable-mapped-location): Remove.
11562         * c-decl.c (c_init_decl_processing): Remove old location code.
11563         (finish_function): Likewise.
11564         * recog.c (decode_asm_operands): Remove old location code.
11565         * c-pch.c (c_common_read_pch): Remove old location code.
11566         * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
11567         variants.
11568         * gimple-low.c (lower_function_body): Remove old location code.
11569         * toplev.c (unknown_location): Remove.
11570         (push_srcloc): Remove old-location variant.
11571         (process_options): Remove old location code.
11572         (lang_dependent_init): Likewise.
11573         * input.h (UNKNOWN_LOCATION): Move definition.
11574         (location_t): Undeprecate.
11575         (source_locus): Remove.
11576         (location_from_locus): Remove.
11577         (struct location_s): Remove.
11578         Remove all old-location code.
11579         (input_line, input_filename): Remove.
11580         * final.c (final_scan_insn): Remove old location code.
11581         * diagnostic.c (diagnostic_build_prefix): Remove
11582         USE_MAPPED_LOCATION test.
11583         * tree.h (gimple_stmt) <locus>: Now a location_t.
11584         (tree_exp) <locus>: Likewise.
11585         (DECL_IS_BUILTIN): Remove old-location variant.
11586         (annotate_with_file_line, annotate_with_locus): Likewise.
11587         (expr_locus, set_expr_locus): Update.
11588         * tree.c (build1_stat): Remove old location code.
11589         (last_annotated_node): Remove.
11590         (annotate_with_file_line): Remove old-location variant.
11591         (annotate_with_locus): Likewise.
11592         (expr_location): Remove old location code.
11593         (set_expr_location): Likewise.
11594         (expr_has_location): Likewise.
11595         (expr_locus): Likewise.
11596         (set_expr_locus): Likewise.
11597         (expr_filename): Don't use location_from_locus.
11598         (expr_lineno): Likewise.
11599         * rtl-error.c (location_for_asm): Remove old location code.
11600         * c-lex.c (cb_line_change): Remove old location code.
11601         (fe_file_change): Likewise.
11602         (cb_def_pragma): Likewise.
11603         (c_lex_with_flags): Likewise.
11604         * gengtype.c (do_typedef): Don't special-case location types.
11605         (define_location_structures): Remove.
11606         (main): Don't call define_location_structures.
11607         * tree-pretty-print.c (dump_implicit_edges): Remove old location
11608         code.
11609
11610 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11611
11612         PR 26264
11613         * builtins.def (BUILT_IN_STDARG_START): Remove.
11614         * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
11615         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
11616         * tree-inline.c (inline_forbidden_p_1): Likewise.
11617         
11618 2008-02-26  Richard Guenther  <rguenther@suse.de>
11619
11620         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11621         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11622         (lookup_decl_from_uid): Declare.
11623         (remove_decl_from_map): Likewise.
11624         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11625         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11626         (decl_for_uid_map): New global hashtable mapping DECL_UID
11627         to the decl tree.
11628         (init_ttree): Allocate it.
11629         (insert_decl_to_uid_decl_map): New helper function.
11630         (make_node_stat): Insert new decls into the map.
11631         (copy_node_stat): Likewise.
11632         (lookup_decl_from_uid): New function.
11633         (remove_decl_from_map): Likewise.
11634         (print_decl_for_uid_map_statistics): New helper.
11635         (dump_tree_statistics): Call it.
11636
11637         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11638         (referenced_var_iterator): Adjust.
11639         (FOR_EACH_REFERENCED_VAR): Adjust.
11640         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11641         (num_referenced_vars): Adjust.
11642         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11643         (first_referenced_var): Remove.
11644         (end_referenced_vars_p): Likewise.
11645         (next_referenced_var): Likewise.
11646         (referenced_var_iterator_set): New helper function.
11647         * tree-dfa.c (referenced_var_lookup): Adjust.
11648         (referenced_var_check_and_insert): Likewise.
11649         (remove_referenced_var): Likewise.
11650         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11651         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11652         (verify_call_clobbering): Likewise.
11653         (verify_memory_partitions): Likewise.
11654         (init_tree_ssa): Allocate bitmap instead of hashtable for
11655         referenced_vars.
11656         (delete_tree_ssa): Adjust.
11657         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11658         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11659         (compute_tag_properties): Likewise.
11660         (set_initial_properties): Likewise.
11661         (find_partition_for): Likewise.
11662         (update_reference_counts): Likewise.
11663         (dump_may_aliases_for): Likewise.
11664         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11665         (add_call_clobber_ops): Likewise.
11666         (add_call_read_ops): Likewise.
11667         (get_asm_expr_operands): Likewise.
11668         * tree-into-ssa.c (dump_decl_set): Likewise.
11669         (update_ssa): Likewise.
11670         * tree-sra.c (scan_function): Likewise.
11671         (decide_instantiations): Likewise.
11672         (scalarize_parms): Likewise.
11673         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11674         (dsa_named_for): Likewise.
11675         * tree-ssa-structalias.c (update_alias_info): Likewise.
11676         (merge_smts_into): Likewise.
11677
11678 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11679
11680         PR 34351
11681         * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
11682         * c-opts.c (c_common_handle_option): Wall enables
11683         Wvolatile-register-var.
11684         * common.opt: Move Wvolatile-register-var to...
11685         * c.opt: ...here.
11686         
11687 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11688
11689         * common.opt (Wlarger-than=): New.
11690         * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
11691         -Wlarger-than=.
11692         * opts.c (common_handle_option): Handle -Wlarger-than=.
11693         * optc-gen.awk: Likewise.
11694         * opth-gen.awk: Likewise.
11695         * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
11696         * tree-optimize.c (tree_rest_of_compilation): Likewise.
11697         
11698 2008-02-26  Manuel Lopez-Ibanez <manu@gcc.gnu.org>
11699
11700         * c-common.c (match_case_to_enum_1): Add appropriate
11701         OPT_W* parameter to warning.
11702         (c_do_switch_warnings): Likewise.
11703         * c-typeck.c (warning_init): Add one more parameter following
11704         'warning' function.
11705         (push_init_level): Update call to warning_init.
11706         (pop_init_level): Likewise.
11707         (add_pending_init): Likewise.
11708         (output_init_element: Likewise.
11709
11710 2008-02-26  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
11711
11712         PR 28322
11713         * toplev.c (toplev_main): If there are warnings or error, print
11714         errors for ignored options.
11715         * opts.c (ignored_options): New static variable.
11716         (postpone_unknown_option_error): New.
11717         (print_ignored_options): New.
11718         (handle_option): Postpone errors for unknown -Wno-* options.
11719         * opts.h (print_ignored_options): Declare.
11720         
11721 2008-02-25  Richard Sandiford  <rsandifo@nildram.co.uk>
11722
11723         * config/mips/mips.md (loadgp_blockage, blockage): Change type
11724         to "ghost".
11725
11726 2008-02-25  Richard Guenther  <rguenther@suse.de>
11727
11728         Revert:
11729         2008-02-25  Richard Guenther  <rguenther@suse.de>
11730
11731         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11732         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11733         (lookup_decl_from_uid): Declare.
11734         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11735         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11736         (decl_for_uid_map): New global hashtable mapping DECL_UID
11737         to the decl tree.
11738         (init_ttree): Allocate it.
11739         (insert_decl_to_uid_decl_map): New helper function.
11740         (make_node_stat): Insert new decls into the map.
11741         (copy_node_stat): Likewise.
11742         (lookup_decl_from_uid): New function.
11743         (print_decl_for_uid_map_statistics): New helper.
11744         (dump_tree_statistics): Call it.
11745
11746         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11747         (referenced_var_iterator): Adjust.
11748         (FOR_EACH_REFERENCED_VAR): Adjust.
11749         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11750         (num_referenced_vars): Adjust.
11751         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11752         (first_referenced_var): Remove.
11753         (end_referenced_vars_p): Likewise.
11754         (next_referenced_var): Likewise.
11755         (referenced_var_iterator_set): New helper function.
11756         * tree-dfa.c (referenced_var_lookup): Adjust.
11757         (referenced_var_check_and_insert): Likewise.
11758         (remove_referenced_var): Likewise.
11759         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11760         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11761         (verify_call_clobbering): Likewise.
11762         (verify_memory_partitions): Likewise.
11763         (init_tree_ssa): Allocate bitmap instead of hashtable for
11764         referenced_vars.
11765         (delete_tree_ssa): Adjust.
11766         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11767         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11768         (compute_tag_properties): Likewise.
11769         (set_initial_properties): Likewise.
11770         (find_partition_for): Likewise.
11771         (update_reference_counts): Likewise.
11772         (dump_may_aliases_for): Likewise.
11773         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11774         (add_call_clobber_ops): Likewise.
11775         (add_call_read_ops): Likewise.
11776         (get_asm_expr_operands): Likewise.
11777         * tree-into-ssa.c (dump_decl_set): Likewise.
11778         (update_ssa): Likewise.
11779         * tree-sra.c (scan_function): Likewise.
11780         (decide_instantiations): Likewise.
11781         (scalarize_parms): Likewise.
11782         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11783         (dsa_named_for): Likewise.
11784         * tree-ssa-structalias.c (update_alias_info): Likewise.
11785         (merge_smts_into): Likewise.
11786
11787 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
11788
11789         PR fortran/29549
11790         * doc/invoke.texi (-fcx-limited-range): Document new option.
11791         * toplev.c (process_options): Handle -fcx-fortran-rules.
11792         * common.opt: Add documentation for -fcx-fortran-rules.
11793
11794 2008-02-25  Janne Blomqvist  <jb@gcc.gnu.org>
11795
11796         PR c/35162
11797         * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
11798         actual behaviour and C99.
11799         
11800 2008-02-26  Ben Elliston  <bje@au.ibm.com>
11801
11802         * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
11803         (ASM_CPU_POWER6_SPEC): Likewise.
11804         (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
11805         Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
11806         (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
11807
11808 2008-02-25  Richard Guenther  <rguenther@suse.de>
11809
11810         * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
11811         * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
11812         (lookup_decl_from_uid): Declare.
11813         * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
11814         * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
11815         (decl_for_uid_map): New global hashtable mapping DECL_UID
11816         to the decl tree.
11817         (init_ttree): Allocate it.
11818         (insert_decl_to_uid_decl_map): New helper function.
11819         (make_node_stat): Insert new decls into the map.
11820         (copy_node_stat): Likewise.
11821         (lookup_decl_from_uid): New function.
11822         (print_decl_for_uid_map_statistics): New helper.
11823         (dump_tree_statistics): Call it.
11824
11825         * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
11826         (referenced_var_iterator): Adjust.
11827         (FOR_EACH_REFERENCED_VAR): Adjust.
11828         (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
11829         (num_referenced_vars): Adjust.
11830         * tree-flow-inline.h (gimple_referenced_vars): Adjust.
11831         (first_referenced_var): Remove.
11832         (end_referenced_vars_p): Likewise.
11833         (next_referenced_var): Likewise.
11834         (referenced_var_iterator_set): New helper function.
11835         * tree-dfa.c (referenced_var_lookup): Adjust.
11836         (referenced_var_check_and_insert): Likewise.
11837         (remove_referenced_var): Likewise.
11838         * tree-ssa.c (verify_flow_insensitive_alias_info): Use
11839         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11840         (verify_call_clobbering): Likewise.
11841         (verify_memory_partitions): Likewise.
11842         (init_tree_ssa): Allocate bitmap instead of hashtable for
11843         referenced_vars.
11844         (delete_tree_ssa): Adjust.
11845         * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
11846         FOR_EACH_REFERENCED_VAR_IN_BITMAP.
11847         (compute_tag_properties): Likewise.
11848         (set_initial_properties): Likewise.
11849         (find_partition_for): Likewise.
11850         (update_reference_counts): Likewise.
11851         (dump_may_aliases_for): Likewise.
11852         * tree-ssa-operands.c (add_virtual_operand): Likewise.
11853         (add_call_clobber_ops): Likewise.
11854         (add_call_read_ops): Likewise.
11855         (get_asm_expr_operands): Likewise.
11856         * tree-into-ssa.c (dump_decl_set): Likewise.
11857         (update_ssa): Likewise.
11858         * tree-sra.c (scan_function): Likewise.
11859         (decide_instantiations): Likewise.
11860         (scalarize_parms): Likewise.
11861         * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
11862         (dsa_named_for): Likewise.
11863         * tree-ssa-structalias.c (update_alias_info): Likewise.
11864         (merge_smts_into): Likewise.
11865
11866 2008-02-25  Andreas Krebbel  <krebbel1@de.ibm.com>
11867
11868         PR target/35258
11869         * cse.c (cse_insn): Avoid creation of overlapping MEMs.
11870         * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
11871         * alias.h (nonoverlapping_memrefs_p): Likewise.
11872
11873 2008-02-25  Jan Beulich  <jbeulich@novell.com>
11874
11875         * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
11876         * config/i386/netware-libgcc.exp: Add __bswap?i2,
11877         __emultls_get_address, __emultls_register_common,
11878         __floatundi?f, and _Unwind_GetIPInfo.
11879         * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
11880         Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
11881         (gen_regparm_prefix): Likewise.
11882         (i386_nlm_encode_section_info): Sync with
11883         config/i386/winnt.c:i386_pe_encode_section_info().
11884         (i386_nlm_maybe_mangle_decl_assembler_name): New.
11885         i386_nlm_mangle_decl_assembler_name): New.
11886         (netware_override_options): New.
11887         * config/i386/netware.h (netware_override_options): Declare.
11888         (OVERRIDE_OPTIONS): Re-define to netware_override_options.
11889         (i386_nlm_mangle_decl_assembler_name): Declare.
11890         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
11891
11892 2008-02-25  Ben Elliston  <bje@au.ibm.com>
11893
11894         PR other/32948
11895         * c-decl.c (grokdeclarator): Remove unused local variables
11896         `typedef_type' and `type_as_written'.
11897         * bb-reorder.c
11898         (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
11899         unused local variable `has_hot_blocks'.
11900         (fix_crossing_conditional_branches): Remove unused local variable
11901         `prev_bb'.
11902         
11903 2008-02-25  Uros Bizjak  <ubizjak@gmail.com>
11904
11905         PR middle-end/19984
11906         * builtins.def (BUILT_IN_NAN): Define as c99 builtin
11907         using DEF_C99_BUILTIN.
11908         (BUILT_IN_NANF): Ditto.
11909         (BUILT_IN_NANL): Ditto.
11910
11911 2008-02-25  Ayal Zaks  <zaks@il.ibm.com>
11912             Revital Eres  <eres@il.ibm.com>
11913
11914         * modulo-sched.c (calculate_must_precede_follow): Address TODO
11915         regarding the order of two dependent insns in the same row.
11916
11917 2008-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11918
11919         * stor-layout.c (layout_decl): Do not bump the alignment of a
11920         bit-field to more than byte alignment if it is packed.
11921
11922 2008-02-24  David Edelsohn  <edelsohn@gnu.org>
11923
11924         * config/rs6000/rs6000.c (processor_costs): Add cache costs for
11925         e300c2 and e300c3.
11926
11927 2008-02-24  Diego Novillo  <dnovillo@google.com>
11928
11929         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
11930
11931         PR 33738
11932         * tree-vrp.c (vrp_evaluate_conditional): With
11933         -Wtype-limits, emit a warning when comparing against a
11934         constant outside the natural range of OP0's type.
11935         * c.opt (Wtype-limits): Move ...
11936         * common.opt (Wtype-limits): ... here.
11937
11938 2008-02-24  Edmar Wienskoski  <edmar@freescale.com>
11939
11940         * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
11941         * config/rs6000/e300c2c3.md: New file.
11942         * config/rs6000/rs6000.c (processor_costs): Add new costs for
11943         e300c2 and e300c3.
11944         (rs6000_override_options): Add e300c2 and e300c3 cases to
11945         processor_target_table. Do not allow usage of Altivec or Spe
11946         with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
11947         (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
11948         * config/rs6000/rs6000.h (processor_type): Add
11949         PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
11950         (ASM_CPU_SPEC): Add e300c2 and e300c3.
11951         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
11952         and ppce300c3. Include e300c2c3.md.
11953
11954 2008-02-23  David Edelsohn  <edelsohn@gnu.org>
11955
11956         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
11957         instead of TARGET_STRICT_ALIGN.
11958
11959 2008-02-23  Joseph Myers  <joseph@codesourcery.com>
11960
11961         * explow.c (memory_address): Assert that the generated address is
11962         valid.
11963
11964 2008-02-23  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
11965
11966         PR target/25477
11967         * config/darwin-protos.h: Add darwin_patch_builtins prototype.
11968         * config/darwin-ppc-ldouble-patch.def: New file.
11969         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
11970         * config/rs6000/rs6000.c (rs6000_init_builtins): Call
11971         SUBTARGET_INIT_BUILTINS if defined.
11972         * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
11973         New functions.
11974
11975 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11976
11977         PR rtl-opt/33512
11978         * simplify-rtx.c (simplify_binary_operation_1): Add simplification
11979         of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
11980
11981 2008-02-23  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11982
11983         PR pch/35027
11984         * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
11985         file" warning condtional on -Winvalid-PCH.
11986
11987 2008-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
11988
11989         * expmed.c (extract_bit_field): Always use adjust_address for MEM.
11990
11991 2008-02-23  Uros Bizjak  <ubizjak@gmail.com>
11992
11993         PR target/22076
11994         PR target/34256 
11995         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
11996         prevent reload from using MMX registers.
11997         (*mov<mode>_internal): Ditto.
11998         (*movv2sf_internal_rex64): Ditto.
11999         (*movv2sf_internal): Ditto.
12000
12001 2008-02-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12002
12003         PR documentation/31569
12004         * doc/install.texi2html: Use makeinfo --no-number-sections.
12005
12006 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12007
12008         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
12009         ensure that we can address an entire entity > 8 bytes.  Don't
12010         generate reg+reg addressing for such data.
12011
12012 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12013
12014         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
12015         strings when optimizing for size, unless the target cares about
12016         alignment.
12017
12018 2008-02-22  Tom Tromey  <tromey@redhat.com>
12019
12020         * regclass.c (current_pass): Remove declaration.
12021
12022 2008-02-22  Anatoly Sokolov <aesok@post.ru>
12023
12024         * config/avr/libgcc.S (__RAMPZ__): Define.
12025         (__do_copy_data): Add for devices with 128KB code memory.
12026
12027 2008-02-22  Nathan Froyd  <froydnj@codesourcery.com>
12028
12029         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
12030         Use spe_abi.
12031         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12032
12033 2008-02-22  Hans-Peter Nilsson  <hp@axis.com>
12034
12035         * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
12036         GENNONACR_REGS.
12037
12038 2008-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12039
12040         PR c/19999
12041         * c-typeck.c (build_binary_op): Warn about floating point
12042         comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
12043
12044 2008-02-21  Janis Johnson  <janis187@us.ibm.com>
12045
12046         PR target/34526
12047         * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
12048         (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
12049         add vrsave.
12050         (rs6000_override_options): Set altivec_abi as default, not override,
12051         for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
12052         TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
12053         is used; use new member spe_abi.
12054         (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
12055         spe_abi and altivec_abi.
12056
12057 2008-02-22  Tomas Bily  <tbily@suse.cz>
12058
12059         * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
12060
12061 2008-02-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12062
12063         PR bootstrap/35273
12064         * config.build (build_file_translate): Set to `CMD //c' only if
12065         it works.
12066         * Makefile.in (build_file_translate): Improve comment.
12067
12068 2008-02-21  Jan Hubicka  <jh@suse.cz>
12069
12070         * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
12071         PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
12072         PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
12073
12074 2008-02-21  Michael Matz  <matz@suse.de>
12075
12076         PR target/35264
12077         * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
12078
12079 2008-02-21  Uros Bizjak  <ubizjak@gmail.com>
12080
12081         * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
12082         movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
12083         as insn constraint.
12084         * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
12085         from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
12086         SSE_VEC_FLOAT_MODE_P as insn constraint.
12087         (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
12088         (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
12089         sse4a_movntdf using MODEF mode iterator.
12090         (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
12091         sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
12092         (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
12093         (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
12094         (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
12095         (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
12096         (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
12097
12098 2008-02-21  Richard Guenther  <rguenther@suse.de>
12099
12100         * tree.def (PAREN_EXPR): New tree code.
12101         * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
12102         and PAREN_EXPR.
12103         * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
12104         * expr.c (expand_expr_real_1): Likewise.
12105         * tree-inline.c (estimate_num_insns_1): Likewise.
12106         * tree-complex.c (expand_complex_move): Likewise.
12107         * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
12108         as plain x.
12109
12110 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12111
12112         PR target/35225
12113         * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
12114
12115 2008-02-20  Kaz Kojima  <kkojima@gcc.gnu.org>
12116
12117         PR target/35190
12118         * config/sh/sh.md (jump_compact): Disable for crossing jumps.
12119
12120         * config/sh/sh.c (find_barrier): Don't go past
12121         NOTE_INSN_SWITCH_TEXT_SECTIONS note.
12122
12123 2008-02-20  DJ Delorie  <dj@redhat.com>
12124
12125         * config/h8300/h8300.md (insv): Force source operand to be a register.
12126
12127         * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
12128         as a jump, not as a plain insn.
12129         
12130 2008-02-20  Seongbae Park <seongbae.park@gmail.com>
12131
12132         * doc/invoke.texi (Warning Options): Add new option
12133         -Wframe-larger-than=.
12134         (-Wframe-larger-than): Document.
12135
12136         * flags.h (warn_frame_larger_than, frame_larger_than_size):
12137         Add declarations for new option variables.
12138
12139         * final.c (final_start_function): Check the frame size
12140         before emission and issue a Wframe-larger-than warning.
12141
12142         * opts.c (warn_frame_larger_than, frame_larger_than_size):
12143         Add definitions for new option variables.
12144         (common_handle_option): Handle new option OPT_Wframe_larger_than_.
12145
12146         * common.opt (Wframe-larger-than=): New option.
12147
12148 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12149
12150         * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
12151         (<sse>_div<mode>3): Ditto.
12152         (<sse>_vmdiv<mode>3): Ditto.
12153         (<sse>_vmsqrt<mode>2): Ditto.
12154         (*smax<mode>3): Ditto.
12155         (sse5_frcz<mode>2): Ditto.
12156         (sse5_vmfrcz<mode>2): Ditto.  Use TARGET_SSE5 instead of TARGET_ROUND
12157         as insn constraint.
12158
12159 2008-02-20  Richard Guenther  <rguenther@suse.de>
12160
12161         PR middle-end/35265
12162         * builtins.c (validate_arg): If we want an INTEGER_TYPE,
12163         be happy with INTEGRAL_TYPE_P.
12164
12165 2008-02-20  Richard Guenther  <rguenther@suse.de>
12166
12167         * fold-const.c (split_tree): Associate floatig-point expressions
12168         if flag_associative_math is set.
12169
12170 2008-02-20  Richard Guenther  <rguenther@suse.de>
12171
12172         * tree.h (fold_real_zero_addition_p): Declare.
12173         * fold-const.c (fold_real_zero_addition_p): Export.
12174         * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
12175         floating-point operations with zero and one.
12176
12177 2008-02-20  Paolo Bonzini  <bonzini@gnu.org>
12178
12179         * doc/install.texi: Correct references to CFLAGS, replacing them
12180         with BOOT_CFLAGS.  Document flags used during bootstrap for
12181         target libraries.
12182                                 
12183 2008-02-20  Uros Bizjak  <ubizjak@gmail.com>
12184
12185         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
12186         * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
12187         and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
12188         insn constraint.
12189         (smin<mode>3): Ditto from similar patterns.
12190         (smax<mode>3): Ditto.
12191         (*ieee_smin<mode>3): Ditto.
12192         (*ieee_smax<mode>3): Ditto.
12193         * config/i386/sse.md (sse): New mode attribute.
12194         (mov<mode>): Macroize expander from movv4sf and movv2df using
12195         SSEMODEF2P mode iterator.
12196         (<sse>_movnt<mode>): Ditto from similar patterns. Use
12197         SSE_VEC_FLOAT_MODE_P as insn constraint.
12198         (storent<mode>): Ditto.
12199         (storent<mode>): Macroize expander from storentsf and storentdf using
12200         MODEF mode iterator.
12201         (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
12202         mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
12203         (abs<mode>2): Ditto from similar patterns.
12204         (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
12205         (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
12206         (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
12207         (<sse>_vmsqrt<mode>2): Ditto.
12208         (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
12209         (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
12210         (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
12211         (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
12212         (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
12213         sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
12214         mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
12215         insn constraint.
12216         (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
12217         iterator and SSE_FLOAT_MODE_P as insn constraint.
12218         (<sse>_ucomi): Ditto from similar patterns.
12219         (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
12220         sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
12221         SSE_VEC_FLOAT_MODE_P as insn constraint.
12222         (vcond<mode>): Ditto from similar patterns.
12223         (and<mode>3, *and<mode>3): Ditto.
12224         (<sse>_nand<mode>3): Ditto.
12225         (ior<mode>3, *ior<mode>3): Ditto.
12226         (xor<mode>3, *xor<mode>3): Ditto.
12227         (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
12228         iterator and SSE_FLOAT_MODE_P as insn constraint.
12229         (*nand<mode>3): Ditto from similar patterns.
12230         (*ior<mode>3): Ditto.
12231         (*xor<mode>3): Ditto.
12232
12233 2008-02-20  Ira Rosen  <irar@il.ibm.com>
12234
12235         * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
12236         vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
12237         vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
12238
12239 2008-02-19  Jan Hubicka  <jh@suse.cz>
12240
12241         * predict.c (tree_bb_level_predictions): Remove variable next
12242         mistakely introduced by previous commit.
12243
12244 2008-02-19  Jan Hubicka  <jh@suse.cz>
12245
12246         * predict.c (predict_paths_leading_to): Rewrite.
12247         (predict_paths_for_bb): New.
12248         (tree_bb_level_predictions): Update call of predict_paths_leading_to.
12249
12250 2008-02-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12251
12252         PR bootstrap/35218
12253         * Makefile.in (build_file_translate): New.
12254         (gcc-vers.texi): Use it for translating $(abs_srcdir).
12255         * config.build (build_file_translate): Set to `CMD //c' on MinGW.
12256         * configure.ac (build_file_translate): Substitute it.
12257         * configure: Regenerate.
12258
12259 2008-02-19  Jan Hubicka  <jh@suse.cz>
12260
12261         PR rtl-optimization/34408
12262         * see.c (see_def_extension_not_merged): Copy subreg so we don't have
12263         invalid sharing.
12264
12265 2008-02-19  Jan Hubicka  <jh@suse.cz>
12266
12267         PR middle-end/28779
12268         * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
12269         call_expr.
12270
12271 2008-02-19  H.J. Lu  <hongjiu.lu@intel.com>
12272
12273         PR Ada/35186
12274         * config/i386/i386-modes.def: Revert the last DI alignment
12275         change until Ada people can look into it.
12276
12277 2008-02-19  Nick Clifton  <nickc@redhat.com>
12278
12279         * opts.c (print_specific_help): Fix typo in --help text.
12280
12281 2008-02-19  Jakub Jelinek  <jakub@redhat.com>
12282
12283         PR target/35239
12284         * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
12285         32-bit inline asm without asm alternatives for host GCC < 3.0.
12286
12287 2008-02-19  Richard Guenther  <rguenther@suse.de>
12288
12289         PR tree-optimization/34989
12290         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
12291         Allow propagation to INDIRECT_REF if we can simplify only.
12292
12293 2008-02-19  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12294
12295         * c-common.c (warn_for_collisions_1): Use appropriate option when
12296         warning.
12297
12298 2008-02-19  Nick Clifton  <nickc@redhat.com>
12299
12300         PR other/31349
12301         * opts.c (undocumented_msg): Leave blank unless checking is enabled.
12302         (handle_options): Fix indentation.
12303         (print_filtered_help): If no language-specific options were
12304         displayed tell the user how to list all the options supported by
12305         the language's front-end.
12306         (print_specific_help): Fix indentation and remove duplicate line.
12307         (common_handle_option): Handle the -v option.
12308         For --help enable the display of undocumented options if the -v
12309         switch has been included on the command line.
12310         For --help= check for overlaps in the arguments between the option
12311         classes and the language names and issue a warning when they
12312         cannot be disambiguated.
12313         * c.opt (v): Pass on to the common option handler.
12314
12315 2008-02-19  Revital Eres  <eres@il.ibm.com> 
12316
12317         * modulo-sched.c (sms_schedule): Change dump message when
12318         create_ddg function fails.
12319         (try_scheduling_node_in_cycle): Rename row to cycle.
12320         (print_partial_schedule): Rename CYCLE to ROW.
12321
12322 2008-02-19  Christian Bruel  <christian.bruel@st.com>
12323             Zdenek Dvorak  <ook@ucw.cz>
12324
12325         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
12326
12327 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
12328
12329         PR target/33555
12330         * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
12331         (*x86_movdicc_0_m1_se): Ditto.
12332
12333 2008-02-19  Uros Bizjak  <ubizjak@gmail.com>
12334
12335         * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
12336         (CMPtype): Define as __gcc_CMPtype.
12337         * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
12338         (CMPtype): Define as __gcc_CMPtype.
12339
12340 2008-02-19  Hans-Peter Nilsson  <hp@axis.com>
12341
12342         Support valgrind 3.3 for --enable-checking=valgrind.
12343         * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
12344         here.
12345         [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
12346         [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
12347         [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
12348         * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
12349         Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
12350         VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
12351         VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
12352         respectively.
12353         * ggc-zone.c: Similar.
12354         * ggc-page.c: Similar.
12355
12356 2008-02-19  Paul Brook  <paul@codesourcery.com>
12357
12358         PR target/35071
12359         * config/arm/ieee754-df.S: Fix do_it typo.
12360         * config/arm/ieee754-sf.S: Fix do_it typo.
12361
12362 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12363
12364         PR target/35189
12365         * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
12366         (OPTION_MASK_ISA_3DNOW_SET): Likewise.
12367         (OPTION_MASK_ISA_SSE_SET): Likewise.
12368         (OPTION_MASK_ISA_SSE2_SET): Likewise.
12369         (OPTION_MASK_ISA_SSE3_SET): Likewise.
12370         (OPTION_MASK_ISA_SSSE3_SET): Likewise.
12371         (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
12372         (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
12373         (OPTION_MASK_ISA_SSE4_SET): Likewise.
12374         (OPTION_MASK_ISA_SSE4A_SET): Likewise.
12375         (OPTION_MASK_ISA_SSE5_SET): Likewise.
12376         (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
12377         (OPTION_MASK_ISA_MMX_UNSET): Updated.
12378         (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
12379         (OPTION_MASK_ISA_SSE_UNSET): Likewise.
12380         (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
12381         (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
12382         (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
12383         (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
12384         (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
12385         (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
12386         (OPTION_MASK_ISA_SSE4): Removed.
12387         (ix86_handle_option): Turn on bits in ix86_isa_flags and
12388         ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
12389         (override_options): Don't turn on implied SSE/MMX bits in
12390         ix86_isa_flags.
12391
12392 2008-02-18  H.J. Lu  <hongjiu.lu@intel.com>
12393
12394         * config/i386/i386-modes.def: Use 4 byte alignment on DI for
12395         32bit host.
12396
12397 2008-02-18  Joey Ye  <joey.ye@intel.com>
12398
12399         PR middle-end/34921
12400         * tree-nested.c (insert_field_into_struct): Set type alignment
12401         to field alignment if the former is less than the latter.
12402
12403 2008-02-18  Jakub Jelinek  <jakub@redhat.com>
12404
12405         * BASE-VER: Set to 4.4.0.
12406
12407 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12408
12409         * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
12410         * doc/cfg.texi: Likewise.
12411         * doc/extend.texi: Likewise.
12412         * doc/gty.texi: Likewise.
12413         * doc/invoke.texi: Likewise.
12414         * doc/loop.texi: Likewise.
12415         * doc/md.texi: Likewise.
12416         * doc/passes.texi: Likewise.
12417         * doc/rtl.texi: Likewise.
12418         * doc/sourcebuild.texi: Likewise.
12419         * doc/tm.texi: Likewise.
12420         * doc/tree-ssa.texi: Likewise.
12421
12422 2008-02-17  Richard Guenther  <rguenther@suse.de>
12423
12424         PR middle-end/35227
12425         * tree-complex.c (init_parameter_lattice_values): Handle parameters
12426         without default definition.
12427
12428 2008-02-17  Richard Guenther  <rguenther@suse.de>
12429
12430         PR tree-optimization/35231
12431         * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
12432         if A | B != 1.
12433
12434 2008-02-17  Uros Bizjak  <ubizjak@gmail.com>
12435
12436         Revert:
12437         2008-02-15  Uros Bizjak  <ubizjak@gmail.com>    
12438         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
12439         libgcc_cmp_return mode.
12440
12441 2008-02-16  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12442
12443         PR c/28368
12444         * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
12445
12446 2008-02-16  Ralf Corsepius  <ralf.corsepius@rtems.org>
12447
12448         * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
12449         multilibs.
12450
12451 2008-02-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12452
12453         * doc/c-tree.texi: Use `@.' where appropriate.
12454         * doc/extend.texi: Likewise.
12455         * doc/install.texi: Likewise.
12456         * doc/invoke.texi: Likewise.
12457         * doc/loop.texi: Likewise.
12458         * doc/makefile.texi: Likewise.
12459         * doc/md.texi: Likewise.
12460         * doc/passes.texi: Likewise.
12461         * doc/standards.texi: Likewise.
12462         * doc/tm.texi: Likewise.
12463
12464 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
12465
12466         PR middle-end/35196
12467         * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
12468         in entry_bb.
12469         (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
12470         rather than in entry_bb.
12471
12472 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
12473
12474         * config/i386/sfp-machine.h (CMPtype): Define as typedef using
12475         libgcc_cmp_return mode.
12476
12477 2008-02-15  Jakub Jelinek  <jakub@redhat.com>
12478
12479         PR middle-end/35130
12480         * tree-nested.c (convert_call_expr): Put FRAME.* vars into
12481         OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
12482
12483 2008-02-15  Richard Guenther  <rguenther@suse.de>
12484             Zdenek Dvorak  <ook@ucw.cz>
12485
12486         PR tree-optimization/35164
12487         * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
12488         * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
12489         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
12490         Only propagate addresses which do not have abnormal SSA_NAMEs
12491         in their operands.
12492
12493 2008-02-15  Joseph Myers  <joseph@codesourcery.com>
12494
12495         PR target/35088
12496         * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
12497
12498 2008-02-15  Jan Hubicka  <jh@suse.cz>
12499
12500         PR middle-end/35149
12501         * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
12502
12503 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
12504
12505         PR middle-end/34621
12506         * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
12507         when calculating alignment_pad.
12508
12509 2008-02-15  Uros Bizjak  <ubizjak@gmail.com>
12510
12511         * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
12512         (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
12513         * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
12514         and STACK_BOUNDARY define.
12515
12516 2008-02-14  Danny Smith  <dannysmith@users.sourceforge.net>
12517
12518         PR preprocessor/35061
12519         * c-pragma.c (handle_pragma_pop_macro): Check that
12520         pushed_macro_table has been allocated.
12521
12522 2008-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12523
12524         PR middle-end/35136
12525         * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
12526         (force_gimple_operand): Likewise.
12527         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
12528         for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
12529         Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
12530         (find_interesting_uses_address): Check addressability and alignment
12531         of the base expression only after substituting bases of IVs into it.
12532
12533 2008-02-14  Michael Matz  <matz@suse.de>
12534
12535         PR target/34930
12536         * function.c (instantiate_virtual_regs_in_insn): Reload address
12537         before falling back to reloading the whole operand.
12538
12539 2008-02-14  Andreas Krebbel  <krebbel1@de.ibm.com>
12540
12541         * config/s390/s390.c (s390_mainpool_start): Emit the pool
12542         before the first section switch note.
12543
12544 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12545
12546         * doc/bugreport.texi: Update copyright years.
12547         * doc/c-tree.texi: Likewise.
12548         * doc/cfg.texi: Likewise.
12549         * doc/cpp.texi: Likewise.
12550         * doc/cppinternals.texi: Likewise.
12551         * doc/fragments.texi: Likewise.
12552         * doc/frontends.texi: Likewise.
12553         * doc/gcc.texi: Likewise.
12554         * doc/gty.texi: Likewise.
12555         * doc/hostconfig.texi: Likewise.
12556         * doc/implement-c.texi: Likewise.
12557         * doc/libgcc.texi: Likewise.
12558         * doc/loop.texi: Likewise.
12559         * doc/makefile.texi: Likewise.
12560         * doc/options.texi: Likewise.
12561         * doc/passes.texi: Likewise.
12562         * doc/rtl.texi: Likewise.
12563         * doc/sourcebuild.texi: Likewise.
12564         * doc/standards.texi: Likewise.
12565         * doc/tree-ssa.texi: Likewise.
12566         * doc/trouble.texi: Likewise.
12567
12568         * doc/extend.texi: Use @: or add comma where appropriate.
12569         * doc/invoke.texi: Likewise.
12570         * doc/tm.texi: Likewise.
12571
12572 2008-02-14  Alan Modra  <amodra@bigpond.net.au>
12573
12574         PR target/34393
12575         * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
12576         to a reg.
12577
12578 2008-02-14  Jesper Nilsson  <jesper.nilsson@axis.com>
12579
12580         * doc/md.texi (clz, ctz): Add reference.
12581         * doc/rtl.texi (clz, ctz): Likewise.
12582
12583 2008-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12584
12585         PR other/35148
12586         * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
12587         srcdir.
12588
12589 2008-02-13  Andreas Krebbel  <krebbel1@de.ibm.com>
12590
12591         * config/s390/s390.c (struct constant_pool): New field
12592         emit_pool_after added.
12593         (s390_mainpool_start): Set the emit_pool_after flag according
12594         to the section switch notes.
12595         (s390_mainpool_finish): Consider emit_pool_after when emitting
12596         the literal pool at the end of the function.
12597         (s390_chunkify_start): Force literal pool splits at section
12598         switch notes.
12599
12600 2008-02-13  Michael Matz  <matz@suse.de>
12601
12602         PR debug/35065
12603         * var-tracking.c (clobber_variable_part): Correctly traverse the
12604         list.
12605
12606 2008-02-13  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12607
12608         PR 29673
12609         * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
12610         Add -fdump-ipa-inline.
12611         * tree-dump.c (dump_files): Remove tree-inlined dump.
12612         * tree-pass.h (tree_dump_index): Remove TDI_inlined.
12613         
12614 2008-02-12  Richard Guenther  <rguenther@suse.de>
12615
12616         PR tree-optimization/35171
12617         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
12618         default defs.
12619
12620 2008-02-12  Richard Guenther  <rguenther@suse.de>
12621
12622         PR middle-end/35163
12623         * fold-const.c (fold_widened_comparison): Use get_unwidened in
12624         value-preserving mode.  Disallow final truncation.
12625
12626 2008-02-12  Eric Botcazou  <ebotcazou@adacore.com>
12627
12628         PR middle-end/35136
12629         * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
12630         code from here to...
12631         (force_gimple_operand): ...here.
12632
12633 2008-02-12  Jakub Jelinek  <jakub@redhat.com>
12634
12635         PR c++/35144
12636         * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
12637         non-compatible pointers.
12638         (generate_element_copy): If SRC and DST are RECORD_TYPEs with
12639         different FIELD_DECLs, try harder by comparing field offsets, sizes
12640         and types.
12641
12642         PR inline-asm/35160
12643         * function.c (match_asm_constraints_1): Don't replace the same input
12644         multiple times.
12645
12646 2008-02-12  Anatoly Sokolov <aesok@post.ru>
12647
12648         * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
12649         * config/avr/avr.c (expand_prologue): Save RAMPZ register.
12650         (expand_epilogue): Restore RAMPZ register.
12651         * config/avr/avr.md (RAMPZ_ADDR): New constant.
12652
12653 2008-02-11  Kai Tietz  <kai.tietz@onevision.com>
12654
12655         * config/i386/cygwin.asm: (__alloca): Correct calling
12656         convention and alignment.
12657         (__chkstk): Force 8 byte stack alignment.
12658
12659 2008-02-11  Uros Bizjak  <ubizjak@gmail.com>
12660             Richard Guenther  <rguenther@suse.de>
12661
12662         PR tree-optimization/33992
12663         * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
12664         the zero we compare against.
12665
12666 2008-02-10  Danny Smith  <dannysmith@users.sourceforge.net>
12667
12668         PR libfortran/35063
12669         * gthr-win32.h (__gthread_mutex_destroy_function): New function
12670         to CloseHandle after unlocking to prevent accumulation of handle
12671         count.
12672
12673 2008-02-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12674
12675         PR middle_end/34150
12676         * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
12677         pic_label_operand source.  Similarly, add a REG_LABEL_OPERAND note
12678         and update LABEL_NUSES during and after reload.
12679
12680 2008-02-08  Steven Bosscher  <stevenb.gcc@gmail.com>
12681
12682         PR middle-end/34627
12683         * combine.c (simplify_if_then_else): Make sure the comparison is
12684         against const0_rtx when simplifying to (abs x) or (neg (abs X)).
12685
12686 2008-02-08  Richard Sandiford  <rsandifo@nildram.co.uk>
12687
12688         PR bootstrap/35051
12689         * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
12690         (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
12691         * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
12692         (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
12693         * tree.h (get_type_static_bounds): Likewise.
12694
12695 2008-02-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12696
12697         * doc/invoke.texi (Option Summary, C++ Dialect Options)
12698         (Objective-C and Objective-C++ Dialect Options, Warning Options):
12699         Make -Wfoo language annotations match what the compiler outputs.
12700
12701 2008-02-08  Sa Liu  <saliu@de.ibm.com>
12702
12703         * config/spu/spu-builtins.def: Fixed wrong parameter type in spu 
12704         intrinsics spu_convts, spu_convtu, spu_convtf.
12705
12706 2008-02-08  Hans-Peter Nilsson  <hp@axis.com>
12707
12708         * doc/extend.texi (Function Attributes) <noinline>: Mention
12709         asm ("") as method to keep calls.
12710
12711 2008-02-07  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12712
12713         PR other/32754
12714         * doc/options.texi (Options): Replace references to opts.sh with
12715         optc-gen.awk.
12716         * opts-common.c: Likewise.
12717         * optc-gen.awk: Likewise.
12718         
12719 2008-02-07  Andreas Krebbel  <krebbel1@de.ibm.com>
12720
12721         * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
12722
12723 2008-02-07  Richard Henderson  <rth@redhat.com>
12724
12725         PR rtl-opt/33410
12726         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
12727         EXPR_LIST for the REG_EQUAL instead of a comparison with a 
12728         funny mode.
12729
12730 2008-02-07  Uros Bizjak  <ubizjak@gmail.com>
12731
12732         PR tree-optimization/35085
12733         * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
12734         for operand entry oe2 in addition to operand entry oe3 in order to
12735         expose more opportunities for vectorizer sum reduction.
12736
12737 2008-02-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12738
12739         PR other/35107
12740         * Makefile.in (LIBS): Remove $(GMPLIBS).
12741         (cc1-dummy, cc1): Add $(GMPLIBS).
12742
12743 2008-02-06  Jan Hubicka  <jh@suse.cz>
12744
12745         PR target/23322
12746         * i386.md (moddf_integer): Do not produce partial memory stalls for
12747         targets where it hurts.
12748
12749 2008-02-06  Uros Bizjak  <ubizjak@gmail.com>
12750
12751         PR target/35083
12752         * optabs.c (expand_float): Do not check for decimal modes when
12753         expanding unsigned integer through signed conversion.
12754
12755 2008-02-06  Nick Clifton  <nickc@redhat.com>
12756
12757         * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
12758         inside the clobber with a match_operand and duplicated operand
12759         number in the constraint.
12760         (ineqbranchsi): Delete redundant comment.
12761
12762 2008-02-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
12763
12764         * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add 
12765         builtin_define ("__USE_INIT_FINI__").
12766         * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
12767         -msx multilibs.
12768         * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
12769
12770 2008-02-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12771
12772         PR documentation/30330
12773         * doc/invoke.texi (C++ Dialect Options)
12774         (Objective-C and Objective-C++ Dialect Options, Warning Options):
12775         For each warning option -Wfoo that allows -Wno-foo, ensure both
12776         -Wfoo and -Wno-foo are listed in the option index.  Fix index
12777         entry of -Wswitch-default, index -Wnormalized= including the
12778         `=', and -Wlarger-than-@var{len} including @var{len}.
12779
12780 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
12781
12782         * config/i386/i386.md (floatunssisf2): Use
12783         ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
12784         (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
12785         Macroize expander using MODEF mode iterator.
12786
12787 2008-02-05  Diego Novillo  <dnovillo@google.com>
12788
12789         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
12790
12791         PR 33738
12792         * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
12793
12794 2008-02-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12795
12796         PR other/35070
12797         * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
12798
12799 2008-02-05  H.J. Lu  <hongjiu.lu@intel.com>
12800
12801         PR target/35084
12802         * config/i386/i386.c (ix86_function_sseregparm): Add an arg
12803         to indicate if a message should be generated.
12804         (init_cumulative_args): Updated.
12805         (function_value_32): Likewise.
12806
12807 2008-02-05  Joseph Myers  <joseph@codesourcery.com>
12808
12809         * doc/include/texinfo.tex: Update to version 2008-02-04.16.
12810
12811 2008-02-05  Uros Bizjak  <ubizjak@gmail.com>
12812
12813         PR target/35083
12814         * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
12815         Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
12816
12817 2008-02-04  Diego Novillo  <dnovillo@google.com>
12818
12819         http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
12820
12821         PR 33738
12822         * tree-vrp.c (vrp_evaluate_conditional): With
12823         -Wtype-limits, emit a warning when comparing against a
12824         constant outside the natural range of OP0's type.
12825
12826 2008-02-04  Richard Guenther  <rguenther@suse.de>
12827
12828         PR middle-end/33631
12829         * expr.c (count_type_elements): Give for unions instead of
12830         guessing.
12831
12832 2008-02-04  Richard Guenther  <rguenther@suse.de>
12833
12834         PR middle-end/35043
12835         * gimplify.c (gimplify_init_ctor_eval): Convert array indices
12836         to TYPE_DOMAINs base type instead of using bitsizetype here.
12837
12838 2008-02-03  Jason Merrill  <jason@redhat.com>
12839
12840         * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
12841
12842 2008-02-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12843
12844         PR other/29972
12845         * doc/invoke.texi (C++ Dialect Options, Optimize Options)
12846         (HPPA Options, i386 and x86-64 Options, IA-64 Options)
12847         (RS/6000 and PowerPC Options): Fix typos and markup.
12848         * doc/passes.texi (Tree-SSA passes): Likewise.
12849
12850 2008-02-02  Michael Matz  <matz@suse.de>
12851
12852         PR target/35045
12853         * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
12854         from record_last_reg_set_info.
12855         (record_last_reg_set_info): Take an RTX argument, iterate over all
12856         constituent hardregs.
12857         (record_last_set_info, record_opr_changes): Change calls to
12858         new signature or to record_last_reg_set_info_regno.
12859
12860 2008-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
12861
12862         * doc/extend.texi (X86 Built-in Functions): Fix grammar.
12863
12864 2008-02-01  Hans-Peter Nilsson  <hp@axis.com>
12865
12866         PR rtl-optimization/34773
12867         * reg-notes.def (EQUAL): Mention significance of combination of
12868         REG_EQUAL and REG_RETVAL.
12869         * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
12870         insn that has a REG_RETVAL.
12871
12872 2008-02-01  Roger Sayle  <roger@eyesopen.com>
12873
12874         PR bootstrap/33781
12875         * configure.ac (--enable-fixed-point): Disable unless explicitly
12876         requested on IRIX.
12877         * configure: Regenerate.
12878
12879 2008-02-01  Richard Guenther  <rguenther@suse.de>
12880
12881         PR other/35042
12882         * invoke.texi (-finline-limit): Remove no longer true parts
12883         of the documentation.  Note that there is no default value.
12884
12885 2008-02-01  Andrew Pinski  <pinskia@gmail.com>
12886             Mark Mitchell  <mark@codesourcery.com>
12887             Ben Elliston  <bje@au.ibm.com>
12888
12889         PR c/29326
12890         * doc/extend.texi (Other Builtins): Document.
12891
12892 2008-01-31  Tom Browder <tom.browder@gmail.com>
12893
12894         * doc/c-tree.texi (Types): Fix grammar.
12895         (Expression trees): Ditto.
12896         * doc/passes.texi (Tree-SSA passes): Ditto.
12897         
12898         * doc/configterms.texi (Configure Terms): Fix typo.
12899         * doc/cpp.texi (Common Predefined Macros): Ditto.
12900         * doc/md.texi (Machine Constraints): Ditto.
12901         
12902         * doc/makefile.texi (Makefile): Add comma.
12903
12904 2008-01-31  Tom Browder  <tom.browder@gmail.com>
12905             Gerald Pfeifer  <gerald@pfeifer.com>
12906         
12907         * doc/sourcebuild.texi (Front End): Remove references to CVS
12908         and CVSROOT/modules.
12909         (Texinfo Manuals): Replace reference to CVS by one to SVN.
12910         (Back End): Remove reference to CVS.
12911
12912 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
12913
12914         PR target/34900
12915         * config/mips/mips.c (gen_load_const_gp): New function, taking a
12916         comment from...
12917         (mips16_gp_pseudo_reg): ...here.
12918         * config/mips/mips.md (load_const_gp): Replace with...
12919         (load_const_gp_<mode>): ...this :P-based insn.
12920
12921 2008-01-31  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
12922
12923         * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
12924         options. Minor fixes.
12925         (-std): Move reference to standards closer to where language
12926         standards are first mentioned.
12927         
12928 2008-01-31  Richard Sandiford  <rsandifo@nildram.co.uk>
12929
12930         PR rtl-optimization/34995
12931         * reload.c (alternative_allows_const_pool_ref): Take an rtx
12932         parameter and return a bool.  If the rtx parameter is nonnull,
12933         check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
12934         (find_reloads): Update call accordingly.  Pass the new operand
12935         if it needed no address reloads, otherwise pass null.
12936
12937 2008-01-30  Richard Henderson  <rth@redhat.com>
12938
12939         PR c/34993
12940         * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
12941         for unbounded arrays.
12942
12943 2008-01-30  Silvius Rus  <rus@google.com>
12944
12945         * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
12946
12947 2008-01-30  Jan Hubicka  <jh@suse.cz>
12948
12949         PR target/34982
12950         * i386.c (init_cumulative_args): Use real function declaration when
12951         calling locally.
12952
12953 2008-01-30  Richard Sandiford  <rsandifo@nildram.co.uk>
12954
12955         PR rtl-optimization/34998
12956         * global.c (build_insn_chain): Treat non-subreg_lowpart
12957         SUBREGs of pseudos as clobbering all the words covered by the
12958         SUBREG, not just all the bytes.
12959         * ra-conflict.c (clear_reg_in_live): Likewise.  Take the
12960         original df_ref rather than an extract parameter.
12961         (global_conflicts): Update call accordingly.
12962
12963 2008-01-30  Andreas Krebbel  <krebbel1@de.ibm.com>
12964
12965         * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
12966         the overflow check to make it easier to read.
12967         (__fixtfdi): Change the type of the ll member in union
12968         long_double to UDItype_x.
12969
12970 2008-01-30  Jakub Jelinek  <jakub@redhat.com>
12971
12972         PR middle-end/34969
12973         * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
12974         * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
12975         * tree-inline.c (fold_marked_statements): Call
12976         cgraph_update_edges_for_call_stmt if folding a call statement.
12977         * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
12978         debug_generic_stmt calls, reset it back afterwards.
12979
12980         PR c/35017
12981         * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
12982         static decls.
12983         * c-typeck.c (build_external_ref): Don't pedwarn about
12984         static vars in current function's scope.
12985
12986 2008-01-29  Joseph Myers  <joseph@codesourcery.com>
12987
12988         * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
12989
12990 2008-01-29  Bernhard Fischer  <aldot@gcc.gnu.org>
12991
12992         PR c/35002
12993         * ipa-struct-reorg.c: Fix spelling.
12994         * params.def: Ditto.
12995
12996 2008-01-29  Richard Guenther  <rguenther@suse.de>
12997
12998         PR middle-end/35006
12999         * tree-inline.h (struct copy_body_data): Add remapping_type_depth
13000         field.
13001         * tree-inline.c (remap_type): Increment remapping_type_depth
13002         around remapping types.
13003         (copy_body_r): Only add referenced variables if they are referenced
13004         from code, not types.
13005
13006 2008-01-29  Douglas Gregor  <doug.gregor@gmail.com>
13007
13008         PR c++/34055
13009         PR c++/34103
13010         PR c++/34219
13011         PR c++/34606
13012         PR c++/34753
13013         PR c++/34754
13014         PR c++/34755
13015         PR c++/34919
13016         PR c++/34961
13017         * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
13018         qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
13019
13020 2008-01-28  Andy Hutchinson   <hutchinsonandy@netscape.net>
13021
13022         PR target/34412
13023         * config/avr/avr.c (expand_prologue): Use correct QI mode frame 
13024         pointer for tiny stack.
13025
13026 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13027
13028         * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
13029
13030 2008-01-28  Bernhard Fischer  <aldot@gcc.gnu.org>
13031
13032         * config/vx-common.h: Fix typo in comment.
13033
13034 2008-01-28  Ian Lance Taylor  <iant@google.com>
13035
13036         PR c++/34862
13037         PR c++/33407
13038         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13039         coalesce pointers if they have different DECL_NO_TBAA_P values.
13040         * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
13041         between variables with different DECL_NO_TBAA_P values.
13042
13043 2008-01-28  Nathan Froyd  <froydnj@codesourcery.com>
13044
13045         PR 31535
13046         * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
13047         are not legitimate small data references on SPE targets.
13048
13049 2008-01-28  David Daney  <ddaney@avtrex.com>
13050
13051         * doc/install.texi (mips-*-*): Recommend binutils 2.18.
13052
13053 2008-01-28  David Daney  <ddaney@avtrex.com>
13054
13055         * doc/install.texi (--disable-libgcj-bc):  Reword documentation.
13056
13057 2008-01-27  Joseph Myers  <joseph@codesourcery.com>
13058
13059         * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
13060         m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
13061         *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
13062         *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
13063         hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
13064         i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
13065         i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
13066         vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
13067
13068 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13069
13070         * basic-block.h (condjump_equiv_p): Fix comment.
13071
13072 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13073
13074         * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
13075         print_generic_stmt_indented): Fix comment.
13076
13077 2008-01-27  Bernhard Fischer  <aldot@gcc.gnu.org>
13078
13079         * configure.ac (__stack_chk_fail): Add detecion for availability
13080         of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
13081         * configure: Regenerate.
13082
13083 2008-01-26  Maxim Kuvyrkov  <maxim@codesourcery.com>
13084
13085         PR middle-end/34688
13086         * final.c (output_addr_const): Handle TRUNCATE.
13087
13088 2008-01-26  Zdenek Dvorak  <ook@ucw.cz>
13089
13090         PR target/34711
13091         * tree-ssa-loop-ivopts.c (comp_cost): New type.
13092         (zero_cost, infinite_cost): New constants.
13093         (struct cost_pair): Change type of cost to comp_cost.
13094         (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
13095         (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
13096         New functions.
13097         (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
13098         split_address_cost, ptr_difference_cost, difference_cost,
13099         get_computation_cost_at, get_computation_cost,
13100         determine_use_iv_cost_generic, determine_use_iv_cost_address,
13101         determine_use_iv_cost_condition, determine_use_iv_costs,
13102         cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
13103         iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
13104         iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
13105         Change type of cost to comp_cost.
13106         (determine_iv_cost): Increase cost of non-original ivs, instead
13107         of decreasing the cost of original ones.
13108         (get_address_cost): Indicate the complexity of the addressing mode 
13109         in comp_cost.
13110         (try_add_cand_for): Prefer using ivs not specific to some object.
13111         * tree-flow.h (force_expr_to_var_cost): Declaration removed.
13112
13113 2008-01-26  Peter Bergner  <bergner@vnet.ibm.com>
13114             Janis Johnson  <janis187@us.ibm.com>
13115
13116         PR target/34814
13117         * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
13118         (TARGET_INSTANTIATE_DECLS): Likewise.
13119         * target.h (expand_to_rtl_hook): New target hook.
13120         (instantiate_decls): Likewise.
13121         * function.c (instantiate_decl): Make non-static.  Rename to...
13122         (instantiate_decl_rtl): ... this.
13123         (instantiate_expr): Use instantiate_decl_rtl.
13124         (instantiate_decls_1): Likewise.
13125         (instantiate_decls): Likewise.
13126         (instantiate_virtual_regs: Call new instantiate_decls taget hook.
13127         * function.h (instantiate_decl_rtl): Add prototype.
13128         * cfgexpand.c (target.h): New include.
13129         (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
13130         * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
13131         (TARGET_INSTANTIATE_DECLS): Likewise.
13132         (TARGET_INITIALIZER): New target hooks added.
13133         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
13134         New prototype.
13135         * config/rs6000/rs6000.c (tree-flow.h): New include.
13136         (machine_function): Add sdmode_stack_slot field.
13137         (rs6000_alloc_sdmode_stack_slot): New function.
13138         (rs6000_instantiate_decls): Likewise.
13139         (rs6000_secondary_memory_needed_rtx): Likewise.
13140         (rs6000_check_sdmode): Likewise.
13141         (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
13142         (TARGET_INSTANTIATE_DECLS): Likewise.
13143         (rs6000_hard_regno_mode_ok): Allow SDmode.
13144         (num_insns_constant): Likewise.  Handle _Decimal32 constants.
13145         (rs6000_emit_move): Handle SDmode.
13146         (function_arg_advance): Likewise.
13147         (function_arg): Likewise.
13148         (rs6000_gimplify_va_arg): Likewise.  Add special handling of
13149         SDmode var args for 32-bit compiles.
13150         (rs6000_secondary_reload_class): Handle SDmode.
13151         (rs6000_output_function_epilogue): Likewise.
13152         (rs6000_function_value): Simplify if statement.
13153         (rs6000_libcall_value): Likewise.
13154         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
13155         (SECONDARY_MEMORY_NEEDED_RTX): Add define.
13156         * config/rs6000/dfp.md (movsd): New define_expand and splitter.
13157         (movsd_hardfloat): New define_insn.
13158         (movsd_softfloat): Likewise.
13159         (movsd_store): Likewise.
13160         (movsd_load): Likewise.
13161         (extendsddd2): Likewise.
13162         (extendsdtd2): Likewise.
13163         (truncddsd2): Likewise.
13164         (movdd_hardfloat64): Fixup comment.
13165         (UNSPEC_MOVSD_LOAD): New constant.
13166         (UNSPEC_MOVSD_STORE): Likewise.
13167
13168 2008-01-26  Jakub Jelinek  <jakub@redhat.com>
13169
13170         PR c++/34965
13171         * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
13172         TRUTH_XOR_EXPR.
13173         (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
13174         (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
13175         (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
13176         and TRUTH_XOR_EXPR.
13177
13178 2008-01-26  David Edelsohn  <edelsohn@gnu.org>
13179
13180         PR target/34794
13181         * config.gcc: Separate AIX 5.3 from AIX 6.1.
13182         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
13183         __LONGDOUBLE128 too.
13184         * config/rs6000/aix61.h: New file.
13185
13186 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13187
13188         PR rtl-optimization/34959
13189         * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
13190         popcount and parity rtxes the same mode as their operand.
13191         Truncate or extend the result to the return value's mode
13192         if necessary.
13193
13194 2008-01-26  Richard Sandiford  <rsandifo@nildram.co.uk>
13195
13196         PR target/34981
13197         * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
13198         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
13199         to GOT_VERSION_REGNUM.
13200         (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
13201         (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
13202         * config/mips/mips.c (mips_emit_call_insn): New function.
13203         (mips_call_tls_get_addr): Call mips_expand_call directly.
13204         (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
13205         emit_call_insn.
13206         (mips16_build_call_stub): Likewise.  Return the call insn or null.
13207         (mips_expand_call): Update the call to mips16_build_call_stub
13208         accordingly and a remove redundant condition.  Assert that MIPS16
13209         stubs do not use lazy binding.  Use mips_emit_call_insn and return
13210         the call insn.
13211         (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
13212         TARGET_USE_GOT.
13213         (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
13214         (mips_avoid_hazard): Remove hazard_set handling.
13215         * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
13216         (UNSPEC_RESTORE_GP): ...this.
13217         (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
13218         (FAKE_CALL_REGNO): Rename to...
13219         (GOT_VERSION_REGNUM): ...this.
13220         (type): Add "ghost" value.  Add an associated insn reservation.
13221         (hazard_set): Remove.
13222         (exception_receiver): Rename to...
13223         (restore_gp): ...this and update the unspec identifier accordingly.
13224         (exception_receiver, nonlocal_got_receiver): New expanders.
13225         (load_call<mode>): Use GOT_VERSION_REGNUM.  Don't set
13226         FAKE_CALL_REGNO.  Remove hazard_set attribute.
13227         (set_got_version, update_got_version): New patterns.
13228
13229 2008-01-26  Danny Smith  <dannysmith@users.sourceforge.net>
13230
13231         PR target/34970
13232         * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
13233
13234 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
13235
13236         PR other/31955
13237         * doc/install.texi2html: Generate gcc-vers.texi.
13238
13239 2008-01-25  DJ Delorie  <dj@redhat.com>
13240
13241         * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13242
13243 2008-01-25  Joseph Myers  <joseph@codesourcery.com>
13244
13245         * config/c4x: Remove directory.
13246         * config.gcc (crx-*, mt-*): Mark obsolete.
13247         (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
13248         h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
13249         sh-*-rtemscoff*): Remove cases.
13250         * defaults.h (C4X_FLOAT_FORMAT): Remove.
13251         * real.c (encode_c4x_single, decode_c4x_single,
13252         encode_c4x_extended, decode_c4x_extended, c4x_single_format,
13253         c4x_extended_format): Remove.
13254         * real.h (c4x_single_format, c4x_extended_format): Remove.
13255         * doc/extend.texi (interrupt, naked): Remove mention of attributes
13256         on C4x.
13257         (Pragmas): Remove comment about c4x pragmas.
13258         * doc/install.texi (c4x): Remove target-specific instructions.
13259         * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
13260         * doc/md.texi (Machine Constraints): Remove C4x documentation.
13261         * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
13262         refer to C4x source files as examples.
13263         (C4X_FLOAT_FORMAT): Remove documentation.
13264
13265 2008-01-25  Bernd Schmidt  <bernd.schmidt@analog.com>
13266
13267         * config/bfin/bfin.c (override_options): Reorder tests so that
13268         flag_pic gets enabled for -msep-data.
13269
13270 2008-01-25  Richard Guenther  <rguenther@suse.de>
13271
13272         PR middle-end/32244
13273         * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
13274         to its bitfield precision if required.
13275
13276 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
13277
13278         PR middle-end/33880
13279         * tree-nested.c (walk_omp_for): New function.
13280         (convert_nonlocal_reference, convert_local_reference): Call
13281         walk_omp_for on OMP_FOR.
13282         (convert_call_expr): Call walk_body on OMP_FOR's
13283         OMP_FOR_PRE_INIT_BODY.
13284
13285 2008-01-25  Richard Guenther  <rguenther@suse.de>
13286
13287         PR tree-optimization/34966
13288         * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
13289         default defs and PHI_NODEs we have to insert after the
13290         defining statement.
13291
13292 2008-01-24  Nick Clifton  <nickc@redhat.com>
13293
13294         * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
13295         Provide a default definition.
13296         (LIBGCC2_UNITS_PER_WORD): Likewise.
13297
13298         * config/stormy16/stormy16.c: Include df.h for the prototype
13299         for df_regs_ever_live_p.
13300         (xstormy16_expand_builtin_va_start): Convert the stack offset
13301         into a component_ref and then use POINTER_PLUS_EXPR to add it
13302         to the incoming_virtual_args_rtx.
13303         (xstormy16_gimplify_va_arg_expr): Rename to
13304         xstormy16_gimplify_va_arg_expr.
13305         Use POINTER_PLUS_EXPR when performing pointer arithmetic.
13306         (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
13307         xstormy16_gimplify_va_arg_expr.
13308         Fix up some formatting issues.
13309
13310         * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
13311         Move to predicates.md.
13312         (xs_hi_general_operand): Likewise.
13313         (xs_hi_nonmemory_operand): Likewise.
13314         * config/stormy16/predicates.md:
13315         (xstormy16_carry_plus_operand): New predicate.
13316         (xs_hi_general_operand): New predicate.
13317         (xs_hi_nonmemory_operand): New predicate.
13318         * config/stormy16/stormy16-protos.h:
13319         (xstormy16_carry_plus_operand): Delete prototype.
13320         (xs_hi_general_operand): Likewise.
13321         (xs_hi_nonmemory_operand): Likewise.
13322
13323         * config/storm16/stormy16.md (addhi3): Remove earlyclobber
13324         modifiers as they are no longer needed and they can trigger
13325         reload spill failures.
13326
13327         * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
13328         with a match_operand in order to help reload.
13329
13330         * config/storm16/stormy16.md (movhi_internal): Replace 'r'
13331         constraint with 'e' for the 8th alternative as this version of
13332         the mov.w instruction only accepts the lower 8 registers.
13333
13334 2008-01-25  Uros Bizjak  <ubizjak@gmail.com>
13335
13336         PR target/34856
13337         * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
13338         Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
13339         vector elements.
13340
13341 2008-01-25  Jakub Jelinek  <jakub@redhat.com>
13342
13343         PR middle-end/33333
13344         * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
13345
13346 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
13347
13348         * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
13349         New functions.
13350         (remove_structure): Update allocations list before removing structure.
13351         
13352 2008-01-25  Golovanevsky Olga  <olga@il.ibm.com>
13353
13354         * ipa-struct-reorg.c (is_safe_cond_expr, 
13355         create_new_stmts_for_cond_expr): Use integer_zerop function,
13356         that recognize not only zero-pointer, but zero-integer too.
13357
13358 2008-01-25  Ben Elliston  <bje@au.ibm.com>
13359
13360         PR other/22232
13361         * fixproto: Escape "." in sed expression that strips leading "./".
13362
13363 2008-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13364
13365         PR driver/34904
13366         * gcc.c (SWITCH_OK): Removed.
13367         (SWITCH_LIVE): Changed to bit.
13368         (SWITCH_FALSE): Likewise.
13369         (SWITCH_IGNORE): Likewise.
13370         (switchstr): Change live_cond to unsigned int.
13371         (process_command): Replace SWITCH_OK with 0.
13372         (do_self_spec): Likewise.
13373         (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
13374         (give_switch): Likewise.
13375         (used_arg): Likewise.
13376         (do_spec_1): Set the SWITCH_IGNORE bit.
13377         (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
13378         bits.  Set the SWITCH_LIVE bit.
13379
13380 2008-01-24  Andreas Krebbel  <krebbel1@de.ibm.com>
13381
13382         * config/s390/s390.h (MOVE_RATIO): Define new target macro.
13383
13384 2008-01-24  Richard Sandiford  <rsandifo@nildram.co.uk>
13385
13386         PR tree-optimization/34472
13387         * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
13388         parameter to a "bool *" and set *DATA to false if there is
13389         an unsafe access.  Do not delete the structure here.
13390         (check_cond_exprs): Delete it here instead.
13391         (check_cond_exprs, exclude_cold_structs): Do not increase
13392         I when removing a structure.
13393
13394 2008-01-24  Uros Bizjak  <ubizjak@gmail.com>
13395
13396         PR target/34856
13397         * config/i386/i386.c (ix86_expand_vector_init): Consider only
13398         CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
13399
13400 2008-01-24  Jakub Jakub Jelinek  <jakub@redhat.com>
13401
13402         PR middle-end/34934
13403         * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
13404         a fixed vector for stack.
13405
13406 2008-01-24  Ben Elliston  <bje@au.ibm.com>
13407
13408         PR c++/25701
13409         * doc/gcc.texi (Software development): Add a direntry for g++.
13410         
13411 2008-01-23  Hans-Peter Nilsson  <hp@axis.com>
13412
13413         * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
13414         stale and straggling -fforce-addr comments above.
13415
13416         * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
13417         define.
13418         * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
13419         * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
13420
13421 2008-01-23  Michael Matz  <matz@suse.de>
13422
13423         PR debug/34895
13424         * dwarf2out.c (force_type_die): Use modified_type_die instead of
13425         gen_type_die.
13426
13427 2008-01-23  Andreas Krebbel  <krebbel1@de.ibm.com>
13428
13429         * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
13430         malloc result type.
13431
13432 2008-01-23 Anatoly Sokolov <aesok@post.ru>
13433
13434         * config/avr/avr.c (avr_current_arch): New variable.
13435         (avr_arch_types): Add 'avr31' and 'avr51' entries.
13436         (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
13437         (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
13438         (avr_override_options): Init 'avr_current_arch'. 
13439         (base_arch_s): Move from here...
13440         * config/avr/avr.h (base_arch_s): ... here. Add new members 
13441         'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename 
13442         'mega' to 'have_jmp_call'.
13443         (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__", 
13444         "__AVR_HAVE_RAMPZ__",   "__AVR_HAVE_ELPM__" and  "__AVR_HAVE_ELPMX__"
13445         macros.
13446         (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51' 
13447         architectures.
13448         * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES, 
13449         MULTILIB_MATCHES): (Ditto.).
13450
13451 2008-01-23  Richard Guenther  <rguenther@suse.de>
13452
13453         PR middle-end/31529
13454         * cgraphunit.c (cgraph_reset_node): Always mark the node
13455         not reachable if it is not queued already.
13456
13457 2008-01-23  Bernd Schmidt  <bernd.schmidt@analog.com>
13458
13459         * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
13460         * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
13461         (cputype_selected): New static variable.
13462         (bfin_handle_option): Set it if -mcpu is used.
13463         (override_option): Select default set of workarounds if no cpu type
13464         selected on the command line.
13465         (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
13466
13467         From  Michael Frysinger  <michael.frysinger@analog.com>
13468         * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
13469         BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
13470
13471         * config/bfin/elf.h (LIB_SPEC): Use proper linker script
13472         for bf547, bf523, bf524, and bf526.
13473         * config/bfin/bfin.c (bfin_cpus[]): Add bf547,  bf523, bf524, and
13474         bf526.
13475         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
13476         __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
13477         __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
13478         __ADSPBF547__ and __ADSPBF54x__ for bf547.
13479         * doc/invoke.texi (Blackfin Options): Document that
13480         -mcpu now accept bf547, bf523, bf524, and bf526.
13481
13482 2008-01-22  Eric Botcazou  <ebotcazou@adacore.com>
13483
13484         PR rtl-optimization/34628
13485         * combine.c (try_combine): Stop and undo after the first combination
13486         if an autoincrement side-effect on the first insn has effectively
13487         been lost.
13488
13489 2008-01-22  David Edelsohn  <edelsohn@gnu.org>
13490
13491         PR target/34529
13492         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
13493         Offset addresses are not valid for Altivec or paired float modes.
13494
13495 2008-01-22  Jakub Jelinek  <jakub@redhat.com>
13496
13497         PR c++/34607
13498         * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
13499         if DECL_INITIAL (decl) is error_mark_node.
13500
13501         PR c++/34914
13502         * c-common.c (handle_vector_size_attribute): Only allow
13503         integral, scalar float and fixed point types.  Handle OFFSET_TYPE
13504         the same way as pointer, array etc. types.
13505         * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
13506
13507         PR c++/34917
13508         * tree.c (build_type_attribute_qual_variant): Call
13509         build_qualified_type if attributes are equal, but quals are not.
13510
13511 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13512
13513         PR 32102
13514         * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
13515         * flags.h (warn_strict_aliasing): Remove.
13516         (warn_strict_overflow): Remove.
13517         * opts.c (warn_strict_aliasing): Remove.
13518         (warn_strict_overflow): Remove.
13519         * c-opts.c (c_common_handle_option): -Wall only sets
13520         -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
13521         (c_common_post_options): Give default values to -Wstrict-aliasing
13522         and -Wstrict-overflow if they are uninitialized.
13523         * common.opt (Wstrict-aliasing): Specify Var and Init.
13524         (Wstrict-overflow): Likewise.
13525
13526 2008-01-22  Kenneth Zadeck  <zadeck@naturalbridge.com>
13527
13528         PR rtl-optimization/26854
13529         PR rtl-optimization/34400
13530         PR rtl-optimization/34884
13531         * ddg.c (create_ddg_dep_from_intra_loop_link): Use
13532         DF_RD->gen.
13533         * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
13534         (df_rd_bb_info.expanded_lr_out): Deleted
13535         * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
13536         * loop_iv.c (iv_analysis_loop_init): Ditto.  * df-problems.c
13537         (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
13538         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
13539         Removed code to allocate, initialize or free expanded_lr_out.
13540         (df_rd_bb_local_compute_process_def): Restructured to make more
13541         understandable.
13542         (df_rd_confluence_n): Removed code to no apply invalidate_by_call
13543         sets if the sets are being trimmed.
13544
13545 2008-01-22  H.J. Lu  <hongjiu.lu@intel.com>
13546
13547         PR bootstrap/32287
13548         * configure.ac (ld_vers): Support GNU linker version xx.xx.*
13549         (as_vers): Likewise.
13550         * configure: Regenerated.
13551
13552 2008-01-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13553
13554         PR middle-end/33092
13555         * tree-pass.h (pass_build_alias): New pass.
13556         * tree-ssa-alias.c (gate_build_alias): New.
13557         (pass_build_alias): New.
13558         * passes.c (init_optimization_passes): Add pass_build_alias after
13559         pass_create_structure_vars.
13560
13561 2008-01-22  Wolfgang Gellerich  <gellerich@de.ibm.com>
13562
13563         * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
13564         Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
13565         (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
13566         S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
13567         (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
13568         S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
13569         (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
13570         S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
13571         (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
13572         (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
13573         (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
13574         (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
13575         * config/s390/s390.md (FP_ALL): New mode iterator.
13576         (_d): New mode attribute.
13577         ("*signbit<mode>2>"): Changed mode of first operand.
13578         ("isinf<mode>2"): Changed mode of first operand.
13579         ("*TDC_insn"): Adaptation for DFP modes.
13580
13581 2008-01-22  Ben Elliston  <bje@au.ibm.com>
13582
13583         * tree.c (check_qualified_type): Improve function description.
13584
13585 2008-01-21  Jason Merrill  <jason@redhat.com>
13586
13587         PR c++/34196
13588         * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
13589         * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
13590         if it is set.
13591
13592 2008-01-21  DJ Delorie  <dj@redhat.com>
13593
13594         * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
13595         return zero.
13596
13597 2008-01-21  Richard Guenther  <rguenther@suse.de>
13598
13599         PR middle-end/34856
13600         * tree-cfg.c (verify_expr): Allow all invariant expressions
13601         instead of just constant class ones as reference argument.
13602         * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
13603         like any other constant.
13604         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
13605
13606 2008-01-21  H.J. Lu  <hongjiu.lu@intel.com>
13607
13608         * regmove.c (fixup_match_1): Update call crossed frequencies.
13609
13610 2008-01-21  Richard Guenther  <rguenther@suse.de>
13611
13612         PR c/34885
13613         * tree-inline.c (setup_one_parameter): Deal with mismatched
13614         types using a VIEW_CONVERT_EXPR.
13615
13616 2008-01-21  Alon Dayan  <alond@il.ibm.com>
13617             Olga Golovanevsky  <olga@il.ibm.com>
13618         
13619         PR tree-optimization/34701
13620         * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
13621         when the structure size is not a power of 2.
13622
13623 2008-01-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
13624
13625         * doc/install.texi: Add doc for --enable-checking=df.
13626         
13627 2008-01-20  Kaz Kojima  <kkojima@gcc.gnu.org>
13628
13629         PR rtl-optimization/34808
13630         * emit-rtl.c (try_split): Handle REG_RETVAL notes.
13631
13632 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
13633
13634         * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
13635         input.
13636
13637 2008-01-19  Kenneth Zadeck  <zadeck@naturalbridge.com>
13638
13639         PR rtl-optimization/26854
13640         PR rtl-optimization/34400
13641         * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
13642         DF_RD->gen.
13643         * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
13644         (df_rd_bb_info.expanded_lr_out): New.
13645         * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
13646         * loop_iv.c (iv_analysis_loop_init): Ditto.
13647         * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
13648         df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
13649         Added code to allocate, initialize or free expanded_lr_out.
13650         (df_rd_bb_local_compute_process_def): Restructured to make
13651         more understandable.
13652         (df_rd_confluence_n): Add code to do nothing with fake edges and
13653         code to no apply invalidate_by_call sets if the sets are being trimmed.
13654         (df_lr_local_finalize): Renamed to df_lr_finalize.
13655         (df_live_local_finalize): Renamed to df_live_finalize.
13656
13657 2008-01-20  Richard Sandiford  <rsandifo@nildram.co.uk>
13658
13659         PR target/34831
13660         * config/mips/mips.md (div<mode>3): Use <recip_condition> when
13661         deciding whether to use reciprocal instructions.
13662
13663 2008-01-19  Uros Bizjak  <ubizjak@gmail.com>
13664
13665         * dwarf2out.c (dwarf2out_switch_text_section): Do not call
13666         dwarf2out_note_section_used if cold_text_section is NULL.
13667
13668 2008-01-19  Jakub Jelinek  <jakub@redhat.com>
13669
13670         PR gcov-profile/34610
13671         * tree-cfg.c (make_edges): Mark both outgoing edges from
13672         OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
13673         * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
13674         from OMP_FOR and OMP_CONTINUE outgoing edges.
13675
13676         * tree-profile.c (tree_profiling): Return early if
13677         cfun->after_tree_profile != 0.  Set cfun->after_tree_profile
13678         at the end.
13679         * omp-low.c (expand_omp_parallel): Copy after_tree_profile
13680         from cfun to child_cfun.
13681         * function.h (struct function): Add after_tree_profile bit.
13682
13683 2008-01-19 Anatoly Sokolov <aesok@post.ru>
13684
13685         * config/avr/avr.S (_exit): Disable interrupt.
13686
13687 2008-01-18  Kenneth Zadeck  <zadeck@naturalbridge.com>
13688             Steven Bosscher  <stevenb.gcc@gmail.com>
13689
13690         PR rtl-optimization/26854
13691         PR rtl-optimization/34400
13692         * df-problems.c (df_live_scratch): New scratch bitmap.
13693         (df_live_alloc): Allocate df_live_scratch when doing df_live.
13694         (df_live_reset): Clear the proper bitmaps.
13695         (df_live_bb_local_compute): Only process the artificial defs once
13696         since the order is not important.
13697         (df_live_init): Init the df_live sets only with the variables
13698         found live by df_lr.
13699         (df_live_transfer_function): Use the df_lr sets to prune the
13700         df_live sets as they are being computed.  
13701         (df_live_free): Free df_live_scratch.
13702
13703 2008-01-18  Ian Lance Taylor  <iant@google.com>
13704
13705         * common.opt: Add fmerge-debug-strings.
13706         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
13707         flag_merge_debug_strings rather than flag_merge_constants.
13708         * doc/invoke.texi (Option Summary): Mention
13709         -fmerge-debug-strings.
13710         (Debugging Options): Document -fmerge-debug-strings.
13711
13712 2008-01-18  Ian Lance Taylor  <iant@google.com>
13713
13714         PR c++/33407
13715         * tree.h (DECL_IS_OPERATOR_NEW): Define.
13716         (struct tree_function_decl): Add new field operator_new_flag.
13717         * tree-inline.c (expand_call_inline): When inlining a call to
13718         operator new, force the return value to go into a variable, and
13719         set DECL_NO_TBAA_P on that variable.
13720         * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
13721
13722 2008-01-18  Uros Bizjak  <ubizjak@gmail.com>
13723
13724         PR debug/34484
13725         * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
13726         DWARF2_DEBUGGING_INFO.
13727         (dwarf2out_note_section_used): Ditto.  Add prototype.
13728         (have_multiple_function_sections, text_section_used,
13729         cold_text_section_used, *cold_text_sections): Move declarations
13730         before their uses.
13731
13732 2008-01-17  Bob Wilson  <bob.wilson@acm.org>
13733
13734         * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
13735         field and add signal_ra.
13736         * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
13737         assignments to frame state pc.  Move end of stack check after
13738         MD_FALLBACK_FRAME_STATE_FOR.
13739         (uw_update_context_1): Use frame state signal_regs if set, instead
13740         of checking signal_frame flag.
13741         (uw_update_context): Use frame state signal_ra if set.
13742         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
13743         * config/xtensa/linux-unwind.h: New file.
13744
13745 2008-01-18  Bernhard Fischer  <aldot@gcc.gnu.org>
13746
13747         * modulo-sched.c (get_sched_window): Fix comment typo.
13748
13749 2008-01-17  Andrew MacLeod  <amacleod@redhat.com>
13750
13751         PR tree-optimization/34648
13752         * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
13753
13754 2008-01-17  Anatoly Sokolov <aesok@post.ru>
13755
13756         * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
13757         * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
13758
13759 2008-01-17  Seongbae Park  <seongbae.park@gmail.com>
13760
13761         PR rtl-optimization/34400
13762         * df-core.c (df_worklist_dataflow_overeager,
13763         df_worklist_dataflow_doublequeue): New functions.
13764         (df_worklist_dataflow): Two different worklist solvers.
13765         * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
13766         New param.
13767
13768 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13769
13770         PR testsuite/34821
13771         * doc/invoke.texi: Document the dependence on pthread for fopenmp
13772         and ftree-parallelize-loops.
13773
13774 2008-01-17  Mircea Namolaru  <namolaru@il.ibm.com>
13775
13776         PR rtl-optimization/34826
13777         * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
13778
13779 2008-01-17  Andreas Krebbel  <krebbel1@de.ibm.com>
13780
13781         * global.c (find_reg): Mark the eh regs as used if necessary.
13782         * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
13783         * ra.h (struct allocno): no_eh_reg field added.  Changed
13784         no_stack_reg type to bitfield.
13785
13786 2008-01-17  Eric Botcazou  <ebotcazou@adacore.com>
13787
13788         * tree.c (substitute_in_expr): Add missing 'break'.
13789
13790 2008-01-17  Richard Guenther  <rguenther@suse.de>
13791
13792         PR tree-optimization/34825
13793         * tree-ssa-math-opts.c (is_division_by): Do not recognize
13794         x / x as division to handle.
13795
13796 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13797
13798         * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
13799         "-pthread" is specified.
13800         * pa-hpux11.h (LIB_SPEC): Likewise.
13801
13802 2008-01-16  Janis Johnson  <janis187@us.ibm.com>
13803             Peter Bergner  <bergner@vnet.ibm.com>
13804
13805         PR rtl-optimization/33796
13806         * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
13807
13808 2008-01-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13809
13810         PR libgfortran/34699
13811         * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
13812         static links.
13813         * pa-hpux10.h (LINK_SPEC): Likewise.
13814         * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
13815
13816 2008-01-16  Richard Guenther  <rguenther@suse.de>
13817
13818         PR middle-end/32628
13819         * fold-const.c (fold_convert_const_int_from_int): Do not
13820         set overflow if that occured only because of a sign extension
13821         change when converting from/to a sizetype with the same
13822         precision and signedness.
13823
13824 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
13825
13826         PR debug/34249
13827         * dwarf2out.c (output_call_frame_info): Move output of FDE initial
13828         location address to the correct place.  Update copyright year.
13829
13830 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13831
13832         * lambda-code.c (lambda_transform_legal_p): Handle the case of
13833         no dependences in the dependence_relations vector.
13834
13835 2008-01-16  Jan Hubicka  <jh@suse.cz>
13836
13837         PR rtl-optimization/31396
13838         * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
13839         * cfg.c (dump_reg_info): Print it.
13840         * regs.h (struct reg_info_t): add freq_calls_crossed.
13841         (REG_FREQ_CALLS_CROSSED): New macro.
13842         * global.c (global_alloc): Compute freq_calls_crossed for allocno.
13843         (find_reg): Update call of CALLER_SAVE_PROFITABLE.
13844         * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
13845         regmove_optimize): Update call crossed frequencies.
13846         * local-alloc.c (struct qty): Add freq_calls_crossed.
13847         (alloc_qty): Copute freq_calls_crossed.
13848         (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
13849         (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
13850         * ra.h (struct allocno): Add freq_calls_crossed.
13851
13852 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13853
13854         * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
13855         libgomp when compiling with ftree-parallelize-loops.
13856         (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
13857
13858 2008-01-16  Richard Guenther  <rguenther@suse.de>
13859
13860         PR tree-optimization/34769
13861         * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
13862         * tree.c (int_cst_value): Instead make this function more
13863         permissive in what it accepts as valid input.  Document this
13864         function always sign-extends the value.
13865
13866 2008-01-16  Jakub Jelinek  <jakub@redhat.com>
13867             Richard Guenther  <rguenther@suse.de>
13868
13869         PR c/34668
13870         * gimplify.c (fold_indirect_ref_rhs): Rename to ...
13871         (gimple_fold_indirect_ref_rhs): ... this.
13872         (gimple_fold_indirect_ref): New function with foldings
13873         that preserve lvalueness.
13874         (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
13875         * tree-flow.h (gimple_fold_indirect_ref): Declare.
13876         * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
13877         to fold an INDIRECT_REF, fall back to the old use of
13878         fold_indirect_ref_1.
13879
13880 2008-01-16  Sebastian Pop  <sebastian.pop@amd.com>
13881
13882         * tree-data-ref.c (subscript_dependence_tester_1): Call 
13883         free_conflict_function.
13884         (compute_self_dependence): Same.
13885
13886 2008-01-16  Uros Bizjak  <ubizjak@gmail.com>
13887
13888         PR debug/34249
13889         * debug.h (dwarf2out_switch_text_section): Move declaration from ...
13890         * dwarf2out.c (dwarf2out_switch_text_section): ... here.  Make
13891         function global.
13892         * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
13893         Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
13894         for DWARF2_UNWIND_INFO targets.
13895
13896 2008-01-16  Richard Guenther  <rguenther@suse.de>
13897
13898         PR c/34768
13899         * c-typeck.c (common_pointer_type): Do not merge inconsistent
13900         type qualifiers for function types.
13901
13902 2008-01-15  Jerry DeLisle  <jvdelisle@gcc.gnu.org>
13903
13904         * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
13905         loop_iterator li from previous commit.
13906
13907 2008-01-15  Sebastian Pop  <sebastian.pop@amd.com>
13908
13909         * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
13910
13911 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
13912
13913         * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
13914         (parallelize_loops): Don't parallelize irreducible components.
13915
13916 2008-01-14  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
13917
13918         PR c++/24924
13919         * c-opts (c_common_post_options): Do not enable CPP
13920         flag_pedantic_errors by default.
13921         
13922 2008-01-14  Eric Botcazou  <ebotcazou@adacore.com>
13923
13924         PR rtl-optimization/31944
13925         * cse.c (remove_pseudo_from_table): New function.
13926         (merge_equiv_classes): Use above function to remove pseudo-registers.
13927         (invalidate): Likewise.
13928
13929 2008-01-13  Richard Guenther  <rguenther@suse.de>
13930
13931         PR middle-end/34601
13932         * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
13933         instead of TYPE_MODE to deal with calls from expand_one_error_var.
13934
13935 2008-01-13  Uros Bizjak  <ubizjak@gmail.com>
13936
13937         * gcse.c (cprop_jump): Call validate_unshare_change instead of
13938         validate_change to unshare the source of the PC set.
13939
13940 2008-01-12  Jan Hubicka  <jh@suse.cz>
13941
13942         PR middle-end/32135
13943         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
13944         references above array bounds.  This might trigger bounds checks for
13945         pointers to arrays.
13946
13947 2008-01-12  Sebastian Pop  <sebastian.pop@amd.com>
13948
13949         * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
13950         new_replaceable_dependencies.
13951
13952 2008-01-12  Doug Kwan  <dougkwan@google.com>
13953
13954         * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
13955         instead of OPT_Wreturn_type in warning due to ignored return type
13956         qualifiers.
13957         * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
13958         options included in -Wextra.
13959         * c.opt: New option -Wignored_qualifiers.
13960         * doc/invoke.texi (Warning Options, -Wextra): Add new option
13961         -Wignore_qualifiers.
13962         (-Wignored-qualifiers): Document.
13963         (-Wreturn-type): Remove description of functionality now handled
13964         by -Wignored-qualifiers.
13965
13966 2008-01-12  Eric Botcazou  <ebotcazou@adacore.com>
13967
13968         PR ada/33788
13969         * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
13970         NOP_EXPR if it is between integral types with the same precision.
13971
13972 2008-01-12  Jan Hubicka  <jh@suse.cz>
13973
13974         PR other/28023
13975         * invoke.texi (max-inline-recursive-depth): Fix default value.
13976
13977 2008-01-12  Zdenek Dvorak  <ook@ucw.cz>
13978
13979         * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
13980         correct type.
13981
13982 2008-01-11  Bob Wilson  <bob.wilson@acm.org>
13983         
13984         * config/xtensa/xtensa.c (override_options): Set flag_shlib.
13985         
13986 2008-01-11  James E. Wilson  <wilson@specifix.com>
13987
13988         PR target/26015
13989         * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
13990
13991 2008-01-11  Anatoly Sokolov <aesok@post.ru>
13992
13993         * config/avr/avr.c (expand_prologue, expand_epilogue): Don't 
13994         save/restore frame pointer register and don't use 'call-prologues' 
13995         optimization in function with "OS_task" attribute.
13996
13997 2008-01-11  Eric Botcazou  <ebotcazou@adacore.com>
13998
13999         PR middle-end/31309
14000         * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
14001         when copying to memory.
14002
14003 2008-01-11  Steven Bosscher  <stevenb.gcc@gmail.com>
14004
14005         PR rtl-optimization/30905
14006         * cfgcleanup.c: Include dce.h
14007         (crossjumps_occured): New global variable.
14008         (try_crossjump_bb): Exit loop after finding a fallthru edge.
14009         If something changed, set crossjumps_occured to true.
14010         (try_optimize_cfg): Clear crossjumps_occured at the beginning.
14011         Don't add/remove fake edges to exit here...
14012         (cleanup_cfg): ...but do it here, when crossjumping.
14013         Run a fast DCE when successful crossjumps occured in the latest
14014         iteration of try_optimize_cfg.
14015
14016 2008-01-11  Richard Guenther  <rguenther@suse.de>
14017
14018         * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
14019         (struct vn_unary_op_s): Likewise.
14020         (vn_reference_insert): Free old reference on hash collision.
14021
14022 2008-01-10  Raksit Ashok  <raksit@google.com>
14023
14024         PR rtl-optimization/27971
14025         * combine.c (find_split_point): Split PLUS expressions which are
14026         inside a MEM rtx, and whose first operand is complex.
14027
14028 2008-01-10  DJ Delorie  <dj@redhat.com>
14029
14030         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
14031         (m32c_hard_regno_nregs): ...this, which is now a wrapper.
14032         (m32c_hard_regno_ok): Call the underlying function.
14033
14034 2008-01-10  Richard Guenther  <rguenther@suse.de>
14035
14036         PR middle-end/34683
14037         * tree-cfg.c (tree_merge_blocks): Do not go through the
14038         full-blown folding and stmt updating path if we just deal
14039         with virtual operands.
14040         * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
14041         test for abnormal SSA_NAMEs.
14042
14043 2008-01-10  Andreas Krebbel  <krebbel1@de.ibm.com>
14044
14045         PR middle-end/34641
14046         * reload.c (push_reload): Add assertions.  All constants from
14047         reg_equiv_constant should have been used for replacing the respective
14048         pseudo earlier.
14049         (find_reloads_address): Invoke find_reloads_address_part for
14050         constant taken from the reg_equiv_constant array.
14051
14052 2008-01-10  Steven Bosscher  <stevenb.gcc@gmail.com>
14053
14054         * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
14055         field (valnum) the first in the struct.  Replace bools with
14056         unit bit fields.
14057
14058 2008-01-10  Richard Guenther  <rguenther@suse.de>
14059
14060         PR tree-optimization/34651
14061         * tree-sra.c (sra_build_assignment): Sanitize.  Use the correct
14062         types and ordering for masking and converting.
14063
14064 2008-01-09  Sebastian Pop  <sebastian.pop@amd.com>
14065
14066         PR tree-optimization/34017
14067         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
14068         also for PHI_NODE expressions.
14069
14070 2008-01-09  Jan Hubicka  <jh@suse.cz>
14071
14072         PR tree-optimization/34708
14073         * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
14074         based on number of case labels.
14075         (init_inline_once): Remove switch_cost.
14076         * tree-inline.h (eni_weights_d): Remove switch_cost.
14077
14078 2008-01-09  Richard Guenther  <rguenther@suse.de>
14079         Andrew Pinski  <andrew_pinski@playstation.sony.com>
14080
14081         PR middle-end/30132
14082         * gimplify.c (gimplify_cond_expr): Do not create an addressable
14083         temporary if an rvalue is ok or an lvalue is not required.
14084
14085 2008-01-09  Richard Guenther  <rguenther@suse.de>
14086
14087         PR middle-end/34458
14088         * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
14089         adjust return type.
14090
14091 2008-01-09  Richard Guenther  <rguenther@suse.de>
14092
14093         PR middle-end/34679
14094         * tree.c (host_integerp): Check for sizetype only if the
14095         type is an integer type.
14096
14097 2008-01-09  Steven Bosscher  <stevenb.gcc@gmail.com>
14098
14099         PR debug/26364
14100         * opts.c (decode_options): Disable inlining of functions called
14101         once if not in unit-at-a-time mode.
14102
14103 2008-01-09  Alexandre Oliva  <aoliva@redhat.com>
14104
14105         * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
14106
14107 2008-01-08  Richard Guenther  <rguenther@suse.de>
14108
14109         PR middle-end/31863
14110         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
14111         out early if the result will be unused.
14112
14113 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14114
14115         PR target/34709
14116         Revert:
14117
14118         2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14119         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14120         for TARGET_RECIP.       
14121         
14122 2008-01-08  Jan Sjodin  <jan.sjodin@amd.com>
14123         
14124         * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
14125         for vectorization tuned.
14126         
14127 2008-01-08  Richard Guenther  <rguenther@suse.de>
14128
14129         PR tree-optimization/34683
14130         * tree-ssa-operands.c (operand_build_cmp): Export.
14131         * tree-ssa-operands.h (operand_build_cmp): Declare.
14132         * tree-vn.c (vuses_compare): Remove.
14133         (sort_vuses): Use operand_build_cmp.
14134         (sort_vuses_heap): Likewise.
14135         * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
14136         to re-use old VEC if available.  Do not sort already sorted VUSEs.
14137         (vdefs_to_vec): Do not sort already sorted VDEFs.
14138
14139 2008-01-08  Jakub Jelinek  <jakub@redhat.com>
14140
14141         PR middle-end/34694
14142         * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
14143
14144 2008-01-08  Uros Bizjak  <ubizjak@gmail.com>
14145
14146         PR target/34702
14147         * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
14148         limitations of reciprocal sequences on x86 targets.
14149
14150 2008-01-08  Richard Guenther  <rguenther@suse.de>
14151
14152         PR tree-optimization/34683
14153         * tree-flow-inline.h (var_ann): Remove overzealous asserts.
14154
14155 2008-01-07  Jakub Jelinek  <jakub@redhat.com>
14156
14157         PR target/34622
14158         * config/darwin.c (darwin_mergeable_string_section): Don't use
14159         .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
14160
14161 2008-01-07  Uros Bizjak  <ubizjak@gmail.com>
14162
14163         PR target/34682
14164         * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
14165         negxf2.  Macroize expander using X87MODEF mode iterator.  Change
14166         predicates of op0 and op1 to register_operand.
14167         (abs<mode>2): Rename from abssf2, absdf2 and negxf2.  Macroize
14168         expander using X87MODEF mode iterator.  Change predicates of
14169         op0 and op1 to register_operand.
14170         ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
14171         corresponding patterns and macroize using MODEF macro.  Change
14172         predicates of op0 and op1 to register_operand and remove
14173         "m" constraint. Disparage "r" alternative with "!".
14174         ("*absneg<mode>2_i387"): Rename from corresponding patterns and
14175         macroize using X87MODEF macro.  Change predicates of op0 and op1
14176         to register_operand and remove "m" constraint.  Disparage "r"
14177         alternative with "!".
14178         (absneg splitter with memory operands): Remove.
14179         ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
14180         patterns and macroize using X87MODEF mode iterator.
14181         * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
14182         Change predicate of op1 to register_operand.
14183         * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
14184         for memory operands.
14185
14186 2008-01-07  Nathan Froyd  <froydnj@codesourcery.com>
14187
14188         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
14189
14190 2008-01-07  Richard Guenther  <rguenther@suse.de>
14191
14192         * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
14193         fields.
14194
14195 2008-01-07  Richard Guenther  <rguenther@suse.de>
14196
14197         PR tree-optimization/34683
14198         * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
14199         VOPs of the needed size to save memory.  Use VEC_quick_push
14200         to save compile-time.
14201         (vdefs_to_vec): Likewise.
14202
14203 2008-01-07  Sa Liu  <saliu@de.ibm.com>
14204
14205         * config/spu/spu.md (divdf3): Genetate inline code for double
14206         division.  The implementation doesn't handle INF or NAN, therefore it
14207         only applies when -ffinite-math-only is given.
14208
14209 2008-01-06  Paolo Carlini  <pcarlini@suse.de>
14210
14211         PR libstdc++/34680
14212         * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
14213         * doc/cpp.texi ([Common Predefined Macros]): Document.
14214
14215 2008-01-06  Uros Bizjak  <ubizjak@gmail.com>
14216
14217         * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
14218         order to use commutative addition instead of subtraction.
14219
14220 2008-01-06  Andrew Pinski  <andrew_pinski@playstation.sony.com>
14221             Mircea Namolaru  <namolaru@il.ibm.com>
14222             Vladimir Yanovsky  <yanov@il.ibm.com>
14223             Revital Eres  <eres@il.ibm.com>
14224
14225         PR tree-optimization/34263
14226         * tree-outof-ssa.c (process_single_block_loop_latch,
14227         contains_tree_r): New functions.
14228         (analyze_edges_for_bb): Call process_single_block_loop_latch
14229         function to empty single-basic-block latch block if possible.
14230
14231 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14232
14233         * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
14234         for TARGET_RECIP.
14235         (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
14236
14237 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
14238
14239         * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
14240
14241 2008-01-05  Richard Sandiford  <rsandifo@nildram.co.uk>
14242
14243         * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
14244
14245 2008-01-05  Jakub Jelinek  <jakub@redhat.com>
14246
14247         PR tree-optimization/34618
14248         * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
14249         flag from T.
14250
14251 2008-01-05  Uros Bizjak  <ubizjak@gmail.com>
14252
14253         PR target/34673
14254         * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
14255         in the call to gen_rtx_NE.  Remove unneeded VECTOR_MODE_P check.
14256         Update copyright year.
14257
14258         * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
14259         Update copyright year.
14260         * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
14261         using NR fixup.
14262
14263 2008-01-05  Zhouyi Zhou  <zhouzhouyi@FreeBSD.org>
14264
14265         * tree-vrp.c (find_conditional_asserts): Remove redundant check that
14266         edge does not point to current bb before changing need_assert.
14267
14268 2008-01-04  Richard Guenther  <rguenther@suse.de>
14269
14270         PR middle-end/34029
14271         * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
14272         for verifying purposes if they are is_gimple_min_invariant.
14273
14274 2008-01-04  Aldy Hernandez  <aldyh@redhat.com>
14275
14276         PR tree-optimization/34448
14277         PR tree-optimization/34465
14278         * gimplify.c (gimplify_init_constructor): Add new parameter
14279         notify_temp_creation.  Use it.
14280         (gimplify_modify_expr_rhs): Take volatiles into account when
14281         optimizing constructors.
14282         Do not optimize constructors if gimplify_init_constructor will dump to
14283         memory.
14284         * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
14285         * gcc.c-torture/compile/pr34448.c: New.
14286
14287 2008-01-04  Jakub Jelinek  <jakub@redhat.com>
14288
14289         PR gcov-profile/34609
14290         * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
14291         return_slot if result is TREE_ADDRESSABLE.
14292
14293 2008-01-04  Richard Sandiford  <rsandifo@nildram.co.uk>
14294
14295         * config/mips/mips.md (sqrt_condition): Tweak comment.
14296         (recip_condition): Likewise.  Require TARGET_FLOAT64 for DFmode.
14297
14298 2008-01-03  Tom Tromey  <tromey@redhat.com>
14299
14300         PR c/34457
14301         * c-common.c (c_type_hash): Handle VLAs.
14302
14303 2008-01-03  Jan Hubicka  <jh@suse.cz>
14304
14305         PR tree-optimization/31081
14306         * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
14307         0 when inlining and not inlining to first basic block.
14308         (remap_decl): When var is initialized to 0, don't set default_def.
14309         (expand_call_inline): Set entry_bb.
14310         * tree-inline.h (copy_body_data): Add entry_bb.
14311
14312 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
14313
14314         PR c++/34619
14315         * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
14316         before returning.
14317
14318         PR tree-optimization/29484
14319         * tree-inline.c (inline_forbidden_p_2): New function.
14320         (inline_forbidden_p): Disallow inlining if some static var
14321         has an address of a local LABEL_DECL in its initializer.
14322         * doc/extend.texi (Labels as Values): Document &&foo behaviour
14323         vs. inlining.
14324
14325 2008-01-03  Sebastian Pop  <sebastian.pop@amd.com>
14326
14327         PR tree-optimization/34635
14328         * tree-data-ref.c (add_other_self_distances): Make sure that the
14329         evolution step is constant.
14330
14331 2008-01-03  Jakub Jelinek  <jakub@redhat.com>
14332
14333         PR middle-end/34608
14334         * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
14335
14336 2008-01-02  Richard Sandiford  <rsandifo@nildram.co.uk>
14337
14338         * tree-sra.c (scalarize_init): Insert the generate_element_init
14339         statements after the generate_element_zero statements.
14340
14341 2008-01-02  Richard Guenther  <rguenther@suse.de>
14342
14343         PR middle-end/34093
14344         PR middle-end/31976
14345         * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
14346         for very large number of operands instead of ICEing.
14347
14348 2008-01-02  Arthur Norman <acn1@cam.ac.uk>
14349
14350         PR target/34013
14351         * config/i386/i386.c (ix86_expand_prologue): Save red-zone
14352         while stack probing.
14353
14354 2008-01-01  Douglas Gregor  <doug.gregor@gmail.com>
14355
14356         * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
14357         in C++0x mode.
14358
14359 2008-01-01  Volker Reichelt  <v.reichelt@netcologne.de>
14360
14361         PR libmudflap/26442
14362         * tree-mudflap.c (mx_register_decls): Guard warning by
14363         !DECL_ARTIFICIAL check.
14364
14365 2008-01-01  Jakub Jelinek  <jakub@redhat.com>
14366
14367         * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
14368         sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
14369         sse5_perm<mode>): Fix constraints.